diff --git a/404.html b/404.html index 61024b9..1a37d39 100644 --- a/404.html +++ b/404.html @@ -13,5 +13,5 @@ - + diff --git a/index.html b/index.html index 61024b9..1a37d39 100644 --- a/index.html +++ b/index.html @@ -13,5 +13,5 @@ - + diff --git a/main-H2AYSRO2.js b/main-H2AYSRO2.js deleted file mode 100644 index 576dabb..0000000 --- a/main-H2AYSRO2.js +++ /dev/null @@ -1,7 +0,0 @@ -var Vp=Object.defineProperty,jp=Object.defineProperties;var Bp=Object.getOwnPropertyDescriptors;var _c=Object.getOwnPropertySymbols;var Up=Object.prototype.hasOwnProperty,$p=Object.prototype.propertyIsEnumerable;var Mc=(e,t,n)=>t in e?Vp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,g=(e,t)=>{for(var n in t||={})Up.call(t,n)&&Mc(e,n,t[n]);if(_c)for(var n of _c(t))$p.call(t,n)&&Mc(e,n,t[n]);return e},P=(e,t)=>jp(e,Bp(t));var Yt=(e,t,n)=>new Promise((r,i)=>{var o=u=>{try{a(n.next(u))}catch(c){i(c)}},s=u=>{try{a(n.throw(u))}catch(c){i(c)}},a=u=>u.done?r(u.value):Promise.resolve(u.value).then(o,s);a((n=n.apply(e,t)).next())});function Sc(e,t){return Object.is(e,t)}var W=null,Qr=!1,Kr=1,Ye=Symbol("SIGNAL");function F(e){let t=W;return W=e,t}function xc(){return W}var Xn={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 ds(e){if(Qr)throw new Error("");if(W===null)return;W.consumerOnSignalRead(e);let t=W.nextProducerIndex++;if(ti(W),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function hs(e){ti(e);for(let t=0;t0}function ti(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Oc(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Fc(e){return e.producerNode!==void 0}function Pc(e){let t=Object.create(Gp);t.computation=e;let n=()=>{if(Tc(t),ds(t),t.value===Jr)throw t.error;return t.value};return n[Ye]=t,n}var cs=Symbol("UNSET"),ls=Symbol("COMPUTING"),Jr=Symbol("ERRORED"),Gp=P(g({},Xn),{value:cs,dirty:!0,error:null,equal:Sc,producerMustRecompute(e){return e.value===cs||e.value===ls},producerRecomputeValue(e){if(e.value===ls)throw new Error("Detected cycle in computations.");let t=e.value;e.value=ls;let n=Xr(e),r;try{r=e.computation()}catch(i){r=Jr,e.error=i}finally{fs(e,n)}if(t!==cs&&t!==Jr&&r!==Jr&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function Wp(){throw new Error}var kc=Wp;function Lc(){kc()}function Vc(e){kc=e}var qp=null;function jc(e){let t=Object.create(Uc);t.value=e;let n=()=>(ds(t),t.value);return n[Ye]=t,n}function gs(e,t){Nc()||Lc(),e.equal(e.value,t)||(e.value=t,Zp(e))}function Bc(e,t){Nc()||Lc(),gs(e,t(e.value))}var Uc=P(g({},Xn),{equal:Sc,value:void 0});function Zp(e){e.version++,Hp(),Ac(e),qp?.()}function v(e){return typeof e=="function"}function Qt(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 ni=Qt(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: -${n.map((r,i)=>`${i+1}) ${r.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=n});function Et(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var z=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 o of n)o.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(v(r))try{r()}catch(o){t=o instanceof ni?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{$c(o)}catch(s){t=t??[],s instanceof ni?t=[...t,...s.errors]:t.push(s)}}if(t)throw new ni(t)}}add(t){var n;if(t&&t!==this)if(this.closed)$c(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)&&Et(n,t)}remove(t){let{_finalizers:n}=this;n&&Et(n,t),t instanceof e&&t._removeParent(this)}};z.EMPTY=(()=>{let e=new z;return e.closed=!0,e})();var ms=z.EMPTY;function ri(e){return e instanceof z||e&&"closed"in e&&v(e.remove)&&v(e.add)&&v(e.unsubscribe)}function $c(e){v(e)?e():e.unsubscribe()}var Me={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Kt={setTimeout(e,t,...n){let{delegate:r}=Kt;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Kt;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function ii(e){Kt.setTimeout(()=>{let{onUnhandledError:t}=Me;if(t)t(e);else throw e})}function Qe(){}var Hc=vs("C",void 0,void 0);function zc(e){return vs("E",void 0,e)}function Gc(e){return vs("N",e,void 0)}function vs(e,t,n){return{kind:e,value:t,error:n}}var It=null;function Jt(e){if(Me.useDeprecatedSynchronousErrorHandling){let t=!It;if(t&&(It={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=It;if(It=null,n)throw r}}else e()}function Wc(e){Me.useDeprecatedSynchronousErrorHandling&&It&&(It.errorThrown=!0,It.error=e)}var bt=class extends z{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,ri(t)&&t.add(this)):this.destination=Kp}static create(t,n,r){return new Xt(t,n,r)}next(t){this.isStopped?Ds(Gc(t),this):this._next(t)}error(t){this.isStopped?Ds(zc(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Ds(Hc,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()}}},Yp=Function.prototype.bind;function ys(e,t){return Yp.call(e,t)}var Cs=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){oi(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){oi(r)}else oi(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){oi(n)}}},Xt=class extends bt{constructor(t,n,r){super();let i;if(v(t)||!t)i={next:t??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&Me.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&ys(t.next,o),error:t.error&&ys(t.error,o),complete:t.complete&&ys(t.complete,o)}):i=t}this.destination=new Cs(i)}};function oi(e){Me.useDeprecatedSynchronousErrorHandling?Wc(e):ii(e)}function Qp(e){throw e}function Ds(e,t){let{onStoppedNotification:n}=Me;n&&Kt.setTimeout(()=>n(e,t))}var Kp={closed:!0,next:Qe,error:Qp,complete:Qe};var en=typeof Symbol=="function"&&Symbol.observable||"@@observable";function le(e){return e}function ws(...e){return Es(e)}function Es(e){return e.length===0?le:e.length===1?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}var S=(()=>{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,i){let o=Xp(n)?n:new Xt(n,r,i);return Jt(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=qc(r),new r((i,o)=>{let s=new Xt({next:a=>{try{n(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[en](){return this}pipe(...n){return Es(n)(this)}toPromise(n){return n=qc(n),new n((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function qc(e){var t;return(t=e??Me.Promise)!==null&&t!==void 0?t:Promise}function Jp(e){return e&&v(e.next)&&v(e.error)&&v(e.complete)}function Xp(e){return e&&e instanceof bt||Jp(e)&&ri(e)}function Is(e){return v(e?.lift)}function x(e){return t=>{if(Is(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 T(e,t,n,r,i){return new bs(e,t,n,r,i)}var bs=class extends bt{constructor(t,n,r,i,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=i?function(a){try{i(a)}catch(u){t.error(u)}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 tn(){return x((e,t)=>{let n=null;e._refCount++;let r=T(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let i=e._connection,o=n;n=null,i&&(!o||i===o)&&i.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var at=class extends S{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Is(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 z;let n=this.getSubject();t.add(this.source.subscribe(T(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=z.EMPTY)}return t}refCount(){return tn()(this)}};var Zc=Qt(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var U=(()=>{class e extends S{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new si(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Zc}next(n){Jt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Jt(()=>{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(){Jt(()=>{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:i,observers:o}=this;return r||i?ms:(this.currentObservers=null,o.push(n),new z(()=>{this.currentObservers=null,Et(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new S;return n.source=this,n}}return e.create=(t,n)=>new si(t,n),e})(),si=class extends U{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:ms}};var J=class extends U{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 _s={now(){return(_s.delegate||Date).now()},delegate:void 0};var ai=class extends z{constructor(t,n){super()}schedule(t,n=0){return this}};var er={setInterval(e,t,...n){let{delegate:r}=er;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=er;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var ui=class extends ai{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 i=this.id,o=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(o,i,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(o,this.id,n),this}requestAsyncId(t,n,r=0){return er.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&&er.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,i;try{this.work(t)}catch(o){r=!0,i=o||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,Et(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var nn=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)}};nn.now=_s.now;var ci=class extends nn{constructor(t,n=nn.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 Ms=new ci(ui),Yc=Ms;var re=new S(e=>e.complete());function li(e){return e&&v(e.schedule)}function Ss(e){return e[e.length-1]}function di(e){return v(Ss(e))?e.pop():void 0}function Fe(e){return li(Ss(e))?e.pop():void 0}function Qc(e,t){return typeof Ss(e)=="number"?e.pop():t}function Jc(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(l){try{c(r.next(l))}catch(d){s(d)}}function u(l){try{c(r.throw(l))}catch(d){s(d)}}function c(l){l.done?o(l.value):i(l.value).then(a,u)}c((r=r.apply(e,t||[])).next())})}function Kc(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 _t(e){return this instanceof _t?(this.v=e,this):new _t(e)}function Xc(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(f){return function(p){return Promise.resolve(p).then(f,d)}}function a(f,p){r[f]&&(i[f]=function(_){return new Promise(function(O,k){o.push([f,_,O,k])>1||u(f,_)})},p&&(i[f]=p(i[f])))}function u(f,p){try{c(r[f](p))}catch(_){h(o[0][3],_)}}function c(f){f.value instanceof _t?Promise.resolve(f.value.v).then(l,d):h(o[0][2],f)}function l(f){u("next",f)}function d(f){u("throw",f)}function h(f,p){f(p),o.shift(),o.length&&u(o[0][0],o[0][1])}}function el(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 Kc=="function"?Kc(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,u){s=e[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(c){o({value:c,done:a})},s)}}var rn=e=>e&&typeof e.length=="number"&&typeof e!="function";function fi(e){return v(e?.then)}function hi(e){return v(e[en])}function pi(e){return Symbol.asyncIterator&&v(e?.[Symbol.asyncIterator])}function gi(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 eg(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var mi=eg();function vi(e){return v(e?.[mi])}function yi(e){return Xc(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:i}=yield _t(n.read());if(i)return yield _t(void 0);yield yield _t(r)}}finally{n.releaseLock()}})}function Di(e){return v(e?.getReader)}function V(e){if(e instanceof S)return e;if(e!=null){if(hi(e))return tg(e);if(rn(e))return ng(e);if(fi(e))return rg(e);if(pi(e))return tl(e);if(vi(e))return ig(e);if(Di(e))return og(e)}throw gi(e)}function tg(e){return new S(t=>{let n=e[en]();if(v(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ng(e){return new S(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,ii)})}function ig(e){return new S(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function tl(e){return new S(t=>{sg(e,t).catch(n=>t.error(n))})}function og(e){return tl(yi(e))}function sg(e,t){var n,r,i,o;return Jc(this,void 0,void 0,function*(){try{for(n=el(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})}function ae(e,t,n,r=0,i=!1){let o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function Ci(e,t=0){return x((n,r)=>{n.subscribe(T(r,i=>ae(r,e,()=>r.next(i),t),()=>ae(r,e,()=>r.complete(),t),i=>ae(r,e,()=>r.error(i),t)))})}function wi(e,t=0){return x((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function nl(e,t){return V(e).pipe(wi(t),Ci(t))}function rl(e,t){return V(e).pipe(wi(t),Ci(t))}function il(e,t){return new S(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function ol(e,t){return new S(n=>{let r;return ae(n,t,()=>{r=e[mi](),ae(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){n.error(s);return}o?n.complete():n.next(i)},0,!0)}),()=>v(r?.return)&&r.return()})}function Ei(e,t){if(!e)throw new Error("Iterable cannot be null");return new S(n=>{ae(n,t,()=>{let r=e[Symbol.asyncIterator]();ae(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function sl(e,t){return Ei(yi(e),t)}function al(e,t){if(e!=null){if(hi(e))return nl(e,t);if(rn(e))return il(e,t);if(fi(e))return rl(e,t);if(pi(e))return Ei(e,t);if(vi(e))return ol(e,t);if(Di(e))return sl(e,t)}throw gi(e)}function B(e,t){return t?al(e,t):V(e)}function w(...e){let t=Fe(e);return B(e,t)}function ut(e,t){let n=v(e)?e:()=>e,r=i=>i.error(n());return new S(t?i=>t.schedule(r,0,i):r)}function xs(e){return!!e&&(e instanceof S||v(e.lift)&&v(e.subscribe))}var Ke=Qt(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function ul(e){return e instanceof Date&&!isNaN(e)}function I(e,t){return x((n,r)=>{let i=0;n.subscribe(T(r,o=>{r.next(e.call(t,o,i++))}))})}var{isArray:ag}=Array;function ug(e,t){return ag(t)?e(...t):e(t)}function on(e){return I(t=>ug(e,t))}var{isArray:cg}=Array,{getPrototypeOf:lg,prototype:dg,keys:fg}=Object;function Ii(e){if(e.length===1){let t=e[0];if(cg(t))return{args:t,keys:null};if(hg(t)){let n=fg(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function hg(e){return e&&typeof e=="object"&&lg(e)===dg}function bi(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}function _i(...e){let t=Fe(e),n=di(e),{args:r,keys:i}=Ii(e);if(r.length===0)return B([],t);let o=new S(pg(r,t,i?s=>bi(i,s):le));return n?o.pipe(on(n)):o}function pg(e,t,n=le){return r=>{cl(t,()=>{let{length:i}=e,o=new Array(i),s=i,a=i;for(let u=0;u{let c=B(e[u],t),l=!1;c.subscribe(T(r,d=>{o[u]=d,l||(l=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function cl(e,t,n){e?ae(n,e,t):t()}function ll(e,t,n,r,i,o,s,a){let u=[],c=0,l=0,d=!1,h=()=>{d&&!u.length&&!c&&t.complete()},f=_=>c{o&&t.next(_),c++;let O=!1;V(n(_,l++)).subscribe(T(t,k=>{i?.(k),o?f(k):t.next(k)},()=>{O=!0},void 0,()=>{if(O)try{for(c--;u.length&&cp(k)):p(k)}h()}catch(k){t.error(k)}}))};return e.subscribe(T(t,f,()=>{d=!0,h()})),()=>{a?.()}}function $(e,t,n=1/0){return v(t)?$((r,i)=>I((o,s)=>t(r,o,i,s))(V(e(r,i))),n):(typeof t=="number"&&(n=t),x((r,i)=>ll(r,i,e,n)))}function tr(e=1/0){return $(le,e)}function dl(){return tr(1)}function Pe(...e){return dl()(B(e,Fe(e)))}function Mt(e){return new S(t=>{V(e()).subscribe(t)})}function Ts(...e){let t=di(e),{args:n,keys:r}=Ii(e),i=new S(o=>{let{length:s}=n;if(!s){o.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=h},()=>u--,void 0,()=>{(!u||!d)&&(c||o.next(r?bi(r,a):a),o.complete())}))}});return t?i.pipe(on(t)):i}var gg=["addListener","removeListener"],mg=["addEventListener","removeEventListener"],vg=["on","off"];function sn(e,t,n,r){if(v(n)&&(r=n,n=void 0),r)return sn(e,t,n).pipe(on(r));let[i,o]=Cg(e)?mg.map(s=>a=>e[s](t,a,n)):yg(e)?gg.map(fl(e,t)):Dg(e)?vg.map(fl(e,t)):[];if(!i&&rn(e))return $(s=>sn(s,t,n))(V(e));if(!i)throw new TypeError("Invalid event target");return new S(s=>{let a=(...u)=>s.next(1o(a)})}function fl(e,t){return n=>r=>e[n](t,r)}function yg(e){return v(e.addListener)&&v(e.removeListener)}function Dg(e){return v(e.on)&&v(e.off)}function Cg(e){return v(e.addEventListener)&&v(e.removeEventListener)}function hl(e=0,t,n=Yc){let r=-1;return t!=null&&(li(t)?n=t:r=t),new S(i=>{let o=ul(e)?+e-n.now():e;o<0&&(o=0);let s=0;return n.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}function Mi(...e){let t=Fe(e),n=Qc(e,1/0),r=e;return r.length?r.length===1?V(r[0]):tr(n)(B(r,t)):re}var St=new S(Qe);function te(e,t){return x((n,r)=>{let i=0;n.subscribe(T(r,o=>e.call(t,o,i++)&&r.next(o)))})}function ct(e){return x((t,n)=>{let r=null,i=!1,o;r=t.subscribe(T(n,void 0,void 0,s=>{o=V(e(s,ct(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function pl(e,t,n,r,i){return(o,s)=>{let a=n,u=t,c=0;o.subscribe(T(s,l=>{let d=c++;u=a?e(u,l,d):(a=!0,l),r&&s.next(u)},i&&(()=>{a&&s.next(u),s.complete()})))}}function an(e,t){return v(t)?$(e,t,1):$(e,1)}function gl(e){return new S(t=>e.subscribe(t))}var wg={connector:()=>new U};function Si(e,t=wg){let{connector:n}=t;return x((r,i)=>{let o=n();V(e(gl(o))).subscribe(i),i.add(r.subscribe(o))})}function lt(e){return x((t,n)=>{let r=!1;t.subscribe(T(n,i=>{r=!0,n.next(i)},()=>{r||n.next(e),n.complete()}))})}function q(e){return e<=0?()=>re:x((t,n)=>{let r=0;t.subscribe(T(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function ml(){return x((e,t)=>{e.subscribe(T(t,Qe))})}function nr(e){return I(()=>e)}function As(e,t){return t?n=>Pe(t.pipe(q(1),ml()),n.pipe(As(e))):$((n,r)=>V(e(n,r)).pipe(q(1),nr(n)))}function Ns(e,t=Ms){let n=hl(e,t);return As(()=>n)}function xi(e=Eg){return x((t,n)=>{let r=!1;t.subscribe(T(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(e())))})}function Eg(){return new Ke}function rr(e){return x((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function ke(e,t){let n=arguments.length>=2;return r=>r.pipe(e?te((i,o)=>e(i,o,r)):le,q(1),n?lt(t):xi(()=>new Ke))}function un(e){return e<=0?()=>re:x((t,n)=>{let r=[];t.subscribe(T(n,i=>{r.push(i),e{for(let i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function Rs(e,t){let n=arguments.length>=2;return r=>r.pipe(e?te((i,o)=>e(i,o,r)):le,un(1),n?lt(t):xi(()=>new Ke))}function vl(e,t){let n=v(e)?e:()=>e;return v(t)?Si(t,{connector:n}):r=>new at(r,n)}function Os(e){return e?t=>Si(e)(t):t=>vl(new U)(t)}function Fs(e,t){return x(pl(e,t,arguments.length>=2,!0))}function Ps(...e){let t=Fe(e);return x((n,r)=>{(t?Pe(e,n,t):Pe(e,n)).subscribe(r)})}function ne(e,t){return x((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(T(r,u=>{i?.unsubscribe();let c=0,l=o++;V(e(u,l)).subscribe(i=T(r,d=>r.next(t?t(u,d,l,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function ks(e){return x((t,n)=>{V(e).subscribe(T(n,()=>n.complete(),Qe)),!n.closed&&t.subscribe(n)})}function Z(e,t,n){let r=v(e)||t||n?{next:e,error:t,complete:n}:e;return r?x((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(T(o,u=>{var c;(c=r.next)===null||c===void 0||c.call(r,u),o.next(u)},()=>{var u;a=!1,(u=r.complete)===null||u===void 0||u.call(r),o.complete()},u=>{var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,u),o.error(u)},()=>{var u,c;a&&((u=r.unsubscribe)===null||u===void 0||u.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):le}var ed="https://g.co/ng/security#xss",y=class extends Error{constructor(t,n){super(Fa(t,n)),this.code=t}};function Fa(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function ao(e){return{toString:e}.toString()}function j(e){for(let t in e)if(e[t]===j)return t;throw Error("Could not find renamed property on target object.")}function Ig(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ue(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(ue).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 yl(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var bg=j({__forward_ref__:j});function Sn(e){return e.__forward_ref__=Sn,e.toString=function(){return ue(this())},e}function ie(e){return td(e)?e():e}function td(e){return typeof e=="function"&&e.hasOwnProperty(bg)&&e.__forward_ref__===Sn}function C(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function vt(e){return{providers:e.providers||[],imports:e.imports||[]}}function uo(e){return Dl(e,rd)||Dl(e,id)}function nd(e){return uo(e)!==null}function Dl(e,t){return e.hasOwnProperty(t)?e[t]:null}function _g(e){let t=e&&(e[rd]||e[id]);return t||null}function Cl(e){return e&&(e.hasOwnProperty(wl)||e.hasOwnProperty(Mg))?e[wl]:null}var rd=j({\u0275prov:j}),wl=j({\u0275inj:j}),id=j({ngInjectableDef:j}),Mg=j({ngInjectorDef:j}),D=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=C({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function od(e){return e&&!!e.\u0275providers}var Sg=j({\u0275cmp:j}),xg=j({\u0275dir:j}),Tg=j({\u0275pipe:j}),Ag=j({\u0275mod:j}),Li=j({\u0275fac:j}),sr=j({__NG_ELEMENT_ID__:j}),El=j({__NG_ENV_ID__:j});function sd(e){return typeof e=="string"?e:e==null?"":String(e)}function Ng(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():sd(e)}function Rg(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new y(-200,e)}function Pa(e,t){throw new y(-201,!1)}var M=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}(M||{}),Qs;function ad(){return Qs}function ge(e){let t=Qs;return Qs=e,t}function ud(e,t,n){let r=uo(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&M.Optional)return null;if(t!==void 0)return t;Pa(e,"Injector")}var Og={},ar=Og,Fg="__NG_DI_FLAG__",Vi="ngTempTokenPath",Pg="ngTokenPath",kg=/\n/gm,Lg="\u0275",Il="__source",fn;function Vg(){return fn}function dt(e){let t=fn;return fn=e,t}function jg(e,t=M.Default){if(fn===void 0)throw new y(-203,!1);return fn===null?ud(e,void 0,t):fn.get(e,t&M.Optional?null:void 0,t)}function N(e,t=M.Default){return(ad()||jg)(ie(e),t)}function m(e,t=M.Default){return N(e,co(t))}function co(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ks(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):ue(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(kg,` - `)}`}function pn(e,t){let n=e.hasOwnProperty(Li);return n?e[Li]:null}function ka(e,t){e.forEach(n=>Array.isArray(n)?ka(n,t):t(n))}function cd(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ji(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Hg(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(i===1)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){let o=i-2;e[i]=e[o],i--}e[t]=n,e[t+1]=r}}function zg(e,t,n){let r=pr(e,t);return r>=0?e[r|1]=n:(r=~r,Hg(e,r,t,n)),r}function Ls(e,t){let n=pr(e,t);if(n>=0)return e[n|1]}function pr(e,t){return Gg(e,t,1)}function Gg(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=e[o<t?i=o:r=o+1}return~(i<t){s=o-1;break}}}for(;o-1){let o;for(;++io?d="":d=i[l+1].toLowerCase(),r&2&&c!==d){if(Se(r))return!1;s=!0}}}}return Se(r)||s}function Se(e){return(e&1)===0}function Jg(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!Se(s)&&(t+=_l(o,i),i=""),r=s,o=o||!Se(r);n++}return i!==""&&(t+=_l(o,i)),t}function rm(e){return e.map(nm).join(",")}function im(e){let t=[],n=[],r=1,i=2;for(;r{let t=yd(e),n=P(g({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===fd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||je.Emulated,styles:e.styles||me,_:null,schemas:e.schemas||null,tView:null,id:""});Dd(n);let r=e.dependencies;return n.directiveDefs=Sl(r,!1),n.pipeDefs=Sl(r,!0),n.id=am(n),n})}function om(e){return Tt(e)||pd(e)}function sm(e){return e!==null}function yt(e){return ao(()=>({type:e.type,bootstrap:e.bootstrap||me,declarations:e.declarations||me,imports:e.imports||me,exports:e.exports||me,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Ml(e,t){if(e==null)return gn;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],o,s,a=pt.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),t?(n[o]=a!==pt.None?[r,a]:r,t[o]=s):n[o]=r}return n}function ze(e){return ao(()=>{let t=yd(e);return Dd(t),t})}function Tt(e){return e[Sg]||null}function pd(e){return e[xg]||null}function gd(e){return e[Tg]||null}function md(e){let t=Tt(e)||pd(e)||gd(e);return t!==null?t.standalone:!1}function vd(e,t){let n=e[Ag]||null;if(!n&&t===!0)throw new Error(`Type ${ue(e)} does not have '\u0275mod' property.`);return n}function yd(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||gn,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||me,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ml(e.inputs,t),outputs:Ml(e.outputs),debugInfo:null}}function Dd(e){e.features?.forEach(t=>t(e))}function Sl(e,t){if(!e)return null;let n=t?gd:om;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(sm)}function am(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,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].join("|");for(let i of n)t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function xn(e){return{\u0275providers:e}}function um(...e){return{\u0275providers:Cd(!0,e),\u0275fromNgModule:!0}}function Cd(e,...t){let n=[],r=new Set,i,o=s=>{n.push(s)};return ka(t,s=>{let a=s;Xs(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&wd(i,o),n}function wd(e,t){for(let n=0;n{t(o,r)})}}function Xs(e,t,n,r){if(e=ie(e),!e)return!1;let i=null,o=Cl(e),s=!o&&Tt(e);if(!o&&!s){let u=e.ngModule;if(o=Cl(u),o)i=u;else return!1}else{if(s&&!s.standalone)return!1;i=e}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)Xs(c,t,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let c;try{ka(o.imports,l=>{Xs(l,t,n,r)&&(c||=[],c.push(l))})}finally{}c!==void 0&&wd(c,t)}if(!a){let c=pn(i)||(()=>new i);t({provide:i,useFactory:c,deps:me},i),t({provide:dd,useValue:i,multi:!0},i),t({provide:mn,useValue:()=>N(i),multi:!0},i)}let u=o.providers;if(u!=null&&!a){let c=e;Va(u,l=>{t(l,c)})}}else return!1;return i!==e&&e.providers!==void 0}function Va(e,t){for(let n of e)od(n)&&(n=n.\u0275providers),Array.isArray(n)?Va(n,t):t(n)}var cm=j({provide:String,useValue:j});function Ed(e){return e!==null&&typeof e=="object"&&cm in e}function lm(e){return!!(e&&e.useExisting)}function dm(e){return!!(e&&e.useFactory)}function vn(e){return typeof e=="function"}function fm(e){return!!e.useClass}var fo=new D(""),Ri={},hm={},Vs;function ja(){return Vs===void 0&&(Vs=new Bi),Vs}var ye=class{},cr=class extends ye{get destroyed(){return this._destroyed}constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ta(t,s=>this.processProvider(s)),this.records.set(ld,cn(void 0,this)),i.has("environment")&&this.records.set(ye,cn(void 0,this));let o=this.records.get(fo);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(dd,me,M.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=F(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(),F(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=dt(this),r=ge(void 0),i;try{return t()}finally{dt(n),ge(r)}}get(t,n=ar,r=M.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(El))return t[El](this);r=co(r);let i,o=dt(this),s=ge(void 0);try{if(!(r&M.SkipSelf)){let u=this.records.get(t);if(u===void 0){let c=ym(t)&&uo(t);c&&this.injectableDefInScope(c)?u=cn(ea(t),Ri):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=r&M.Self?ja():this.parent;return n=r&M.Optional&&n===ar?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Vi]=a[Vi]||[]).unshift(ue(t)),o)throw a;return Ug(a,t,"R3InjectorError",this.source)}else throw a}finally{ge(s),dt(o)}}resolveInjectorInitializers(){let t=F(null),n=dt(this),r=ge(void 0),i;try{let o=this.get(mn,me,M.Self);for(let s of o)s()}finally{dt(n),ge(r),F(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(ue(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new y(205,!1)}processProvider(t){t=ie(t);let n=vn(t)?t:ie(t&&t.provide),r=gm(t);if(!vn(t)&&t.multi===!0){let i=this.records.get(n);i||(i=cn(void 0,Ri,!0),i.factory=()=>Ks(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=F(null);try{return n.value===Ri&&(n.value=hm,n.value=n.factory()),typeof n.value=="object"&&n.value&&vm(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{F(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=ie(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 ea(e){let t=uo(e),n=t!==null?t.factory:pn(e);if(n!==null)return n;if(e instanceof D)throw new y(204,!1);if(e instanceof Function)return pm(e);throw new y(204,!1)}function pm(e){if(e.length>0)throw new y(204,!1);let n=_g(e);return n!==null?()=>n.factory(e):()=>new e}function gm(e){if(Ed(e))return cn(void 0,e.useValue);{let t=Id(e);return cn(t,Ri)}}function Id(e,t,n){let r;if(vn(e)){let i=ie(e);return pn(i)||ea(i)}else if(Ed(e))r=()=>ie(e.useValue);else if(dm(e))r=()=>e.useFactory(...Ks(e.deps||[]));else if(lm(e))r=()=>N(ie(e.useExisting));else{let i=ie(e&&(e.useClass||e.provide));if(mm(e))r=()=>new i(...Ks(e.deps));else return pn(i)||ea(i)}return r}function cn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function mm(e){return!!e.deps}function vm(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function ym(e){return typeof e=="function"||typeof e=="object"&&e instanceof D}function ta(e,t){for(let n of e)Array.isArray(n)?ta(n,t):n&&od(n)?ta(n.\u0275providers,t):t(n)}function et(e,t){e instanceof cr&&e.assertNotDestroyed();let n,r=dt(e),i=ge(void 0);try{return t()}finally{dt(r),ge(i)}}function Dm(){return ad()!==void 0||Vg()!=null}function Cm(e){return typeof e=="function"}var tt=0,A=1,E=2,oe=3,xe=4,Ae=5,Ui=6,$i=7,De=8,yn=9,Be=10,X=11,lr=12,xl=13,Tn=14,Ue=15,Dn=16,ln=17,Cn=18,ho=19,bd=20,ft=21,js=22,ve=23,Te=25,_d=1;var At=7,Hi=8,zi=9,de=10,Gi=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Gi||{});function ht(e){return Array.isArray(e)&&typeof e[_d]=="object"}function nt(e){return Array.isArray(e)&&e[_d]===!0}function Md(e){return(e.flags&4)!==0}function po(e){return e.componentOffset>-1}function Ba(e){return(e.flags&1)===1}function gt(e){return!!e.template}function na(e){return(e[E]&512)!==0}var ra=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Sd(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function An(){return xd}function xd(e){return e.type.prototype.ngOnChanges&&(e.setInput=Em),wm}An.ngInherit=!0;function wm(){let e=Ad(this),t=e?.current;if(t){let n=e.previous;if(n===gn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Em(e,t,n,r,i){let o=this.declaredInputs[r],s=Ad(e)||Im(e,{previous:gn,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[o];a[o]=new ra(c&&c.currentValue,n,u===gn),Sd(e,t,i,n)}var Td="__ngSimpleChanges__";function Ad(e){return e[Td]||null}function Im(e,t){return e[Td]=t}var Tl=null;var Le=function(e,t,n){Tl?.(e,t,n)},bm="svg",_m="math";function $e(e){for(;Array.isArray(e);)e=e[tt];return e}function Mm(e,t){return $e(t[e])}function Ne(e,t){return $e(t[e.index])}function Ua(e,t){return e.data[t]}function Sm(e,t){return e[t]}function Dt(e,t){let n=t[e];return ht(n)?n:n[tt]}function $a(e){return(e[E]&128)===128}function xm(e){return nt(e[oe])}function Wi(e,t){return t==null?null:e[t]}function Nd(e){e[ln]=0}function Rd(e){e[E]&1024||(e[E]|=1024,$a(e)&&mo(e))}function Tm(e,t){for(;e>0;)t=t[Tn],e--;return t}function go(e){return!!(e[E]&9216||e[ve]?.dirty)}function ia(e){e[Be].changeDetectionScheduler?.notify(8),e[E]&64&&(e[E]|=1024),go(e)&&mo(e)}function mo(e){e[Be].changeDetectionScheduler?.notify(0);let t=Nt(e);for(;t!==null&&!(t[E]&8192||(t[E]|=8192,!$a(t)));)t=Nt(t)}function Od(e,t){if((e[E]&256)===256)throw new y(911,!1);e[ft]===null&&(e[ft]=[]),e[ft].push(t)}function Am(e,t){if(e[ft]===null)return;let n=e[ft].indexOf(t);n!==-1&&e[ft].splice(n,1)}function Nt(e){let t=e[oe];return nt(t)?t[oe]:t}var R={lFrame:$d(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Fd=!1;function Nm(){return R.lFrame.elementDepthCount}function Rm(){R.lFrame.elementDepthCount++}function Om(){R.lFrame.elementDepthCount--}function Pd(){return R.bindingsEnabled}function Fm(){return R.skipHydrationRootTNode!==null}function Pm(e){return R.skipHydrationRootTNode===e}function km(){R.skipHydrationRootTNode=null}function H(){return R.lFrame.lView}function Ce(){return R.lFrame.tView}function Ge(e){return R.lFrame.contextLView=e,e[De]}function We(e){return R.lFrame.contextLView=null,e}function fe(){let e=kd();for(;e!==null&&e.type===64;)e=e.parent;return e}function kd(){return R.lFrame.currentTNode}function Lm(){let e=R.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function gr(e,t){let n=R.lFrame;n.currentTNode=e,n.isParent=t}function Ld(){return R.lFrame.isParent}function Vm(){R.lFrame.isParent=!1}function jm(){return R.lFrame.contextLView}function Vd(){return Fd}function Al(e){Fd=e}function Bm(e){return R.lFrame.bindingIndex=e}function Ha(){return R.lFrame.bindingIndex++}function Um(e){let t=R.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function $m(){return R.lFrame.inI18n}function Hm(e,t){let n=R.lFrame;n.bindingIndex=n.bindingRootIndex=e,oa(t)}function zm(){return R.lFrame.currentDirectiveIndex}function oa(e){R.lFrame.currentDirectiveIndex=e}function Gm(e){let t=R.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function jd(e){R.lFrame.currentQueryIndex=e}function Wm(e){let t=e[A];return t.type===2?t.declTNode:t.type===1?e[Ae]:null}function Bd(e,t,n){if(n&M.SkipSelf){let i=t,o=e;for(;i=i.parent,i===null&&!(n&M.Host);)if(i=Wm(o),i===null||(o=o[Tn],i.type&10))break;if(i===null)return!1;t=i,e=o}let r=R.lFrame=Ud();return r.currentTNode=t,r.lView=e,!0}function za(e){let t=Ud(),n=e[A];R.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ud(){let e=R.lFrame,t=e===null?null:e.child;return t===null?$d(e):t}function $d(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 Hd(){let e=R.lFrame;return R.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var zd=Hd;function Ga(){let e=Hd();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 qm(e){return(R.lFrame.contextLView=Tm(e,R.lFrame.contextLView))[De]}function mr(){return R.lFrame.selectedIndex}function Rt(e){R.lFrame.selectedIndex=e}function Gd(){let e=R.lFrame;return Ua(e.tView,e.selectedIndex)}function Zm(){return R.lFrame.currentNamespace}var Wd=!0;function Wa(){return Wd}function qa(e){Wd=e}function Ym(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let s=xd(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}i&&(n.preOrderHooks??=[]).push(0-e,i),o&&((n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o))}function Za(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[ln]+=65536),(a>14>16&&(e[E]&3)===t&&(e[E]+=16384,Nl(a,o)):Nl(a,o)}var hn=-1,Ot=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function Km(e){return e instanceof Ot}function Jm(e){return(e.flags&8)!==0}function Xm(e){return(e.flags&16)!==0}var Us={},sa=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=co(r);let i=this.injector.get(t,Us,r);return i!==Us||n===Us?i:this.parentInjector.get(t,n,r)}};function Zd(e){return e!==hn}function qi(e){return e&32767}function ev(e){return e>>16}function Zi(e,t){let n=ev(e),r=t;for(;n>0;)r=r[Tn],n--;return r}var aa=!0;function Rl(e){let t=aa;return aa=e,t}var tv=256,Yd=tv-1,Qd=5,nv=0,Ve={};function rv(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(sr)&&(r=n[sr]),r==null&&(r=n[sr]=nv++);let i=r&Yd,o=1<>Qd)]|=o}function Yi(e,t){let n=Kd(e,t);if(n!==-1)return n;let r=t[A];r.firstCreatePass&&(e.injectorIndex=t.length,$s(r.data,e),$s(t,null),$s(r.blueprint,null));let i=Ya(e,t),o=e.injectorIndex;if(Zd(i)){let s=qi(i),a=Zi(i,t),u=a[A].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|u[s+c]}return t[o+8]=i,o}function $s(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Kd(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Ya(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=nf(i),r===null)return hn;if(n++,i=i[Tn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return hn}function ua(e,t,n){rv(e,t,n)}function Jd(e,t,n){if(n&M.Optional||e!==void 0)return e;Pa(t,"NodeInjector")}function Xd(e,t,n,r){if(n&M.Optional&&r===void 0&&(r=null),!(n&(M.Self|M.Host))){let i=e[yn],o=ge(void 0);try{return i?i.get(t,r,n&M.Optional):ud(t,r,n&M.Optional)}finally{ge(o)}}return Jd(r,t,n)}function ef(e,t,n,r=M.Default,i){if(e!==null){if(t[E]&2048&&!(r&M.Self)){let s=uv(e,t,n,r,Ve);if(s!==Ve)return s}let o=tf(e,t,n,r,Ve);if(o!==Ve)return o}return Xd(t,n,r,i)}function tf(e,t,n,r,i){let o=sv(n);if(typeof o=="function"){if(!Bd(t,e,r))return r&M.Host?Jd(i,n,r):Xd(t,n,r,i);try{let s;if(s=o(r),s==null&&!(r&M.Optional))Pa(n);else return s}finally{zd()}}else if(typeof o=="number"){let s=null,a=Kd(e,t),u=hn,c=r&M.Host?t[Ue][Ae]:null;for((a===-1||r&M.SkipSelf)&&(u=a===-1?Ya(e,t):t[a+8],u===hn||!Fl(r,!1)?a=-1:(s=t[A],a=qi(u),t=Zi(u,t)));a!==-1;){let l=t[A];if(Ol(o,a,l.data)){let d=iv(a,t,n,s,r,c);if(d!==Ve)return d}u=t[a+8],u!==hn&&Fl(r,t[A].data[a+8]===c)&&Ol(o,a,t)?(s=l,a=qi(u),t=Zi(u,t)):a=-1}}return i}function iv(e,t,n,r,i,o){let s=t[A],a=s.data[e+8],u=r==null?po(a)&&aa:r!=s&&(a.type&3)!==0,c=i&M.Host&&o===a,l=ov(a,s,n,u,c);return l!==null?wn(t,s,l,a):Ve}function ov(e,t,n,r,i){let o=e.providerIndexes,s=t.data,a=o&1048575,u=e.directiveStart,c=e.directiveEnd,l=o>>20,d=r?a:a+l,h=i?a+l:c;for(let f=d;f=u&&p.type===n)return f}if(i){let f=s[u];if(f&>(f)&&f.type===n)return u}return null}function wn(e,t,n,r){let i=e[n],o=t.data;if(Km(i)){let s=i;s.resolving&&Rg(Ng(o[n]));let a=Rl(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?ge(s.injectImpl):null,l=Bd(e,r,M.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&Ym(n,o[n],t)}finally{c!==null&&ge(c),Rl(a),s.resolving=!1,zd()}}return i}function sv(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(sr)?e[sr]:void 0;return typeof t=="number"?t>=0?t&Yd:av:t}function Ol(e,t,n){let r=1<>Qd)]&r)}function Fl(e,t){return!(e&M.Self)&&!(e&M.Host&&t)}var xt=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return ef(this._tNode,this._lView,t,co(r),n)}};function av(){return new xt(fe(),H())}function Nn(e){return ao(()=>{let t=e.prototype.constructor,n=t[Li]||ca(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let o=i[Li]||ca(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function ca(e){return td(e)?()=>{let t=ca(ie(e));return t&&t()}:pn(e)}function uv(e,t,n,r,i){let o=e,s=t;for(;o!==null&&s!==null&&s[E]&2048&&!(s[E]&512);){let a=tf(o,s,n,r|M.Self,Ve);if(a!==Ve)return a;let u=o.parent;if(!u){let c=s[bd];if(c){let l=c.get(n,Ve,r);if(l!==Ve)return l}u=nf(s),s=s[Tn]}o=u}return i}function nf(e){let t=e[A],n=t.type;return n===2?t.declTNode:n===1?e[Ae]:null}function Pl(e,t=null,n=null,r){let i=rf(e,t,n,r);return i.resolveInjectorInitializers(),i}function rf(e,t=null,n=null,r,i=new Set){let o=[n||me,um(e)];return r=r||(typeof e=="object"?void 0:ue(e)),new cr(o,t||ja(),r||null,i)}var He=class e{static{this.THROW_IF_NOT_FOUND=ar}static{this.NULL=new Bi}static create(t,n){if(Array.isArray(t))return Pl({name:""},n,t,"");{let r=t.name??"";return Pl({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=C({token:e,providedIn:"any",factory:()=>N(ld)})}static{this.__NG_ELEMENT_ID__=-1}};var cv=new D("");cv.__NG_ELEMENT_ID__=e=>{let t=fe();if(t===null)throw new y(204,!1);if(t.type&2)return t.value;if(e&M.Optional)return null;throw new y(204,!1)};var lv="ngOriginalError";function Hs(e){return e[lv]}var of=!0,sf=(()=>{class e{static{this.__NG_ELEMENT_ID__=dv}static{this.__NG_ENV_ID__=n=>n}}return e})(),la=class extends sf{constructor(t){super(),this._lView=t}onDestroy(t){return Od(this._lView,t),()=>Am(this._lView,t)}};function dv(){return new la(H())}var Rn=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new J(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=C({token:e,providedIn:"root",factory:()=>new e})}}return e})();var da=class extends U{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,Dm()&&(this.destroyRef=m(sf,{optional:!0})??void 0,this.pendingTasks=m(Rn,{optional:!0})??void 0)}emit(t){let n=F(null);try{super.next(t)}finally{F(n)}}subscribe(t,n,r){let i=t,o=n||(()=>null),s=r;if(t&&typeof t=="object"){let u=t;i=u.next?.bind(u),o=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return t instanceof z&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},Y=da;function Qi(...e){}function af(e){let t,n;function r(){e=Qi;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 kl(e){return queueMicrotask(()=>e()),()=>{e=Qi}}var Qa="isAngularZone",Ki=Qa+"_ID",fv=0,G=class e{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Y(!1),this.onMicrotaskEmpty=new Y(!1),this.onStable=new Y(!1),this.onError=new Y(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=of}=t;if(typeof Zone>"u")throw new y(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=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,gv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Qa)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new y(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new y(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,hv,Qi,Qi);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},hv={};function Ka(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 pv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){af(()=>{e.callbackScheduled=!1,fa(e),e.isCheckStableRunning=!0,Ka(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),fa(e)}function gv(e){let t=()=>{pv(e)},n=fv++;e._inner=e._inner.fork({name:"angular",properties:{[Qa]:!0,[Ki]:n,[Ki+n]:!0},onInvokeTask:(r,i,o,s,a,u)=>{if(mv(u))return r.invokeTask(o,s,a,u);try{return Ll(e),r.invokeTask(o,s,a,u)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Vl(e)}},onInvoke:(r,i,o,s,a,u,c)=>{try{return Ll(e),r.invoke(o,s,a,u,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!vv(u)&&t(),Vl(e)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,fa(e),Ka(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function fa(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Ll(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Vl(e){e._nesting--,Ka(e)}var ha=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Y,this.onMicrotaskEmpty=new Y,this.onStable=new Y,this.onError=new Y}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,i){return t.apply(n,r)}};function mv(e){return uf(e,"__ignore_ng_zone__")}function vv(e){return uf(e,"__scheduler_tick__")}function uf(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Je=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Hs(t);for(;n&&Hs(n);)n=Hs(n);return n||null}},yv=new D("",{providedIn:"root",factory:()=>{let e=m(G),t=m(Je);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Dv(){return Ja(fe(),H())}function Ja(e,t){return new kt(Ne(e,t))}var kt=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=Dv}}return e})();function cf(e){return(e.flags&128)===128}var lf=new Map,Cv=0;function wv(){return Cv++}function Ev(e){lf.set(e[ho],e)}function pa(e){lf.delete(e[ho])}var jl="__ngContext__";function Ft(e,t){ht(t)?(e[jl]=t[ho],Ev(t)):e[jl]=t}function df(e){return hf(e[lr])}function ff(e){return hf(e[xe])}function hf(e){for(;e!==null&&!nt(e);)e=e[xe];return e}var ga;function pf(e){ga=e}function Iv(){if(ga!==void 0)return ga;if(typeof document<"u")return document;throw new y(210,!1)}var Xa=new D("",{providedIn:"root",factory:()=>bv}),bv="ng",eu=new D(""),rt=new D("",{providedIn:"platform",factory:()=>"unknown"});var tu=new D("",{providedIn:"root",factory:()=>Iv().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var _v="h",Mv="b";var Sv=()=>null;function nu(e,t,n=!1){return Sv(e,t,n)}var gf=!1,xv=new D("",{providedIn:"root",factory:()=>gf});var Ji=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ed})`}};function vo(e){return e instanceof Ji?e.changingThisBreaksApplicationSecurity:e}function mf(e,t){let n=Tv(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${ed})`)}return n===t}function Tv(e){return e instanceof Ji&&e.getTypeName()||null}var Av=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function vf(e){return e=String(e),e.match(Av)?e:"unsafe:"+e}var ru=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}(ru||{});function yf(e){let t=Nv();return t?t.sanitize(ru.URL,e)||"":mf(e,"URL")?vo(e):vf(sd(e))}function Nv(){let e=H();return e&&e[Be].sanitizer}function Df(e){return e instanceof Function?e():e}var Xe=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Xe||{}),Rv;function iu(e,t){return Rv(e,t)}function dn(e,t,n,r,i){if(r!=null){let o,s=!1;nt(r)?o=r:ht(r)&&(s=!0,r=r[tt]);let a=$e(r);e===0&&n!==null?i==null?If(t,n,a):eo(t,n,a,i||null,!0):e===1&&n!==null?eo(t,n,a,i||null,!0):e===2?Wv(t,a,s):e===3&&t.destroyNode(a),o!=null&&Zv(t,e,o,n,i)}}function Ov(e,t){return e.createText(t)}function Cf(e,t,n){return e.createElement(t,n)}function Fv(e,t){wf(e,t),t[tt]=null,t[Ae]=null}function Pv(e,t,n,r,i,o){r[tt]=i,r[Ae]=t,yo(e,r,n,1,i,o)}function wf(e,t){t[Be].changeDetectionScheduler?.notify(9),yo(e,t,t[X],2,null,null)}function kv(e){let t=e[lr];if(!t)return zs(e[A],e);for(;t;){let n=null;if(ht(t))n=t[lr];else{let r=t[de];r&&(n=r)}if(!n){for(;t&&!t[xe]&&t!==e;)ht(t)&&zs(t[A],t),t=t[oe];t===null&&(t=e),ht(t)&&zs(t[A],t),n=t&&t[xe]}t=n}}function Lv(e,t,n,r){let i=de+r,o=n.length;r>0&&(n[i-1][xe]=t),r0&&(e[n-1][xe]=r[xe]);let o=ji(e,de+t);Fv(r[A],r);let s=o[Cn];s!==null&&s.detachView(o[A]),r[oe]=null,r[xe]=null,r[E]&=-129}return r}function su(e,t){if(!(t[E]&256)){let n=t[X];n.destroyNode&&yo(e,t,n,3,null,null),kv(t)}}function zs(e,t){if(t[E]&256)return;let n=F(null);try{t[E]&=-129,t[E]|=256,t[ve]&&ps(t[ve]),jv(e,t),Vv(e,t),t[A].type===1&&t[X].destroy();let r=t[Dn];if(r!==null&&nt(t[oe])){r!==t[oe]&&ou(r,t);let i=t[Cn];i!==null&&i.detachView(e)}pa(t)}finally{F(n)}}function Vv(e,t){let n=e.cleanup,r=t[$i];if(n!==null)for(let o=0;o=0?r[s]():r[-s].unsubscribe(),o+=2}else{let s=r[n[o+1]];n[o].call(s)}r!==null&&(t[$i]=null);let i=t[ft];if(i!==null){t[ft]=null;for(let o=0;o-1){let{encapsulation:o}=e.data[r.directiveStart+i];if(o===je.None||o===je.Emulated)return null}return Ne(r,n)}}function eo(e,t,n,r,i){e.insertBefore(t,n,r,i)}function If(e,t,n){e.appendChild(t,n)}function Bl(e,t,n,r,i){r!==null?eo(e,t,n,r,i):If(e,t,n)}function bf(e,t){return e.parentNode(t)}function $v(e,t){return e.nextSibling(t)}function Hv(e,t,n){return Gv(e,t,n)}function zv(e,t,n){return e.type&40?Ne(e,n):null}var Gv=zv,Ul;function au(e,t,n,r){let i=Bv(e,r,t),o=t[X],s=r.parent||t[Ae],a=Hv(s,r,t);if(i!=null)if(Array.isArray(n))for(let u=0;uTe&&xf(e,t,Te,!1),Le(s?2:0,i),n(r,i)}finally{Rt(o),Le(s?3:1,i)}}function Rf(e,t,n){if(Md(t)){let r=F(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;snull;function ry(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,a=0;return Fm()&&(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:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function $l(e,t,n,r,i){for(let o in t){if(!t.hasOwnProperty(o))continue;let s=t[o];if(s===void 0)continue;r??={};let a,u=pt.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=o;if(i!==null){if(!i.hasOwnProperty(o))continue;c=i[o]}e===0?Hl(r,n,c,a,u):Hl(r,n,c,a)}return r}function Hl(e,t,n,r,i){let o;e.hasOwnProperty(n)?(o=e[n]).push(t,r):o=e[n]=[t,r],i!==void 0&&o.push(i)}function iy(e,t,n){let r=t.directiveStart,i=t.directiveEnd,o=e.data,s=t.attrs,a=[],u=null,c=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function cy(e,t,n,r){let i=n.directiveStart,o=n.directiveEnd;po(n)&&my(t,n,e.data[i+n.componentOffset]),e.firstCreatePass||Yi(n,t),Ft(r,t);let s=n.initialInputs;for(let a=i;a{mo(e.lView)},consumerOnSignalRead(){this.lView[ve]=this}});function Ry(e){let t=e[ve]??Object.create(Oy);return t.lView=e,t}var Oy=P(g({},Xn),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Nt(e.lView);for(;t&&!Gf(t[A]);)t=Nt(t);t&&Rd(t)},consumerOnSignalRead(){this.lView[ve]=this}});function Gf(e){return e.type!==2}var Fy=100;function Wf(e,t=!0,n=0){let r=e[Be],i=r.rendererFactory,o=!1;o||i.begin?.();try{Py(e,n)}catch(s){throw t&&$f(e,s),s}finally{o||(i.end?.(),r.inlineEffectRunner?.flush())}}function Py(e,t){let n=Vd();try{Al(!0),Ca(e,t);let r=0;for(;go(e);){if(r===Fy)throw new y(103,!1);r++,Ca(e,1)}}finally{Al(n)}}function ky(e,t,n,r){let i=t[E];if((i&256)===256)return;let o=!1,s=!1;!o&&t[Be].inlineEffectRunner?.flush(),za(t);let a=!0,u=null,c=null;o||(Gf(e)?(c=xy(t),u=Xr(c)):xc()===null?(a=!1,c=Ry(t),u=Xr(c)):t[ve]&&(ps(t[ve]),t[ve]=null));try{Nd(t),Bm(e.bindingStartIndex),n!==null&&Nf(e,t,n,2,r);let l=(i&3)===3;if(!o)if(l){let f=e.preOrderCheckHooks;f!==null&&Oi(t,f,null)}else{let f=e.preOrderHooks;f!==null&&Fi(t,f,0,null),Bs(t,0)}if(s||Ly(t),qf(t,0),e.contentQueries!==null&&Uf(e,t),!o)if(l){let f=e.contentCheckHooks;f!==null&&Oi(t,f)}else{let f=e.contentHooks;f!==null&&Fi(t,f,1),Bs(t,1)}Kv(e,t);let d=e.components;d!==null&&Yf(t,d,0);let h=e.viewQuery;if(h!==null&&ya(2,h,r),!o)if(l){let f=e.viewCheckHooks;f!==null&&Oi(t,f)}else{let f=e.viewHooks;f!==null&&Fi(t,f,2),Bs(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[js]){for(let f of t[js])f();t[js]=null}o||(t[E]&=-73)}catch(l){throw o||mo(t),l}finally{c!==null&&(fs(c,u),a&&Ay(c)),Ga()}}function qf(e,t){for(let n=df(e);n!==null;n=ff(n))for(let r=de;r-1&&(Xi(t,r),ji(n,r))}this._attachedToViewContainer=!1}su(this._lView[A],this._lView)}onDestroy(t){Od(this._lView,t)}markForCheck(){fu(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[E]&=-129}reattach(){ia(this._lView),this._lView[E]|=128}detectChanges(){this._lView[E]|=1024,Wf(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new y(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=na(this._lView),n=this._lView[Dn];n!==null&&!t&&ou(n,this._lView),wf(this._lView[A],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new y(902,!1);this._appRef=t;let n=na(this._lView),r=this._lView[Dn];r!==null&&!n&&Ef(r,this._lView),ia(this._lView)}};var ET=new RegExp(`^(\\d+)*(${Mv}|${_v})*(.*)`);var jy=()=>null;function wa(e,t){return jy(e,t)}var In=class{},Eo=new D("",{providedIn:"root",factory:()=>!1});var Qf=new D(""),Kf=new D(""),Ea=class{},no=class{};function By(e){let t=Error(`No component factory found for ${ue(e)}.`);return t[Uy]=e,t}var Uy="ngComponent";var Ia=class{resolveComponentFactory(t){throw By(t)}},bn=class{static{this.NULL=new Ia}},_n=class{},On=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>$y()}}return e})();function $y(){let e=H(),t=fe(),n=Dt(t.index,e);return(ht(n)?n:e)[X]}var Hy=(()=>{class e{static{this.\u0275prov=C({token:e,providedIn:"root",factory:()=>null})}}return e})();function ba(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(t!==null)for(let s=0;s0&&Mf(e,n,o.join(" "))}}function Qy(e,t,n){let r=e.projection=[];for(let i=0;i{class e{static{this.__NG_ELEMENT_ID__=Jy}}return e})();function Jy(){let e=fe();return eD(e,H())}var Xy=Io,Jf=class extends Xy{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Ja(this._hostTNode,this._hostLView)}get injector(){return new xt(this._hostTNode,this._hostLView)}get parentInjector(){let t=Ya(this._hostTNode,this._hostLView);if(Zd(t)){let n=Zi(t,this._hostLView),r=qi(t),i=n[A].data[r+8];return new xt(i,n)}else return new xt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Gl(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-de}createEmbeddedView(t,n,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=wa(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,Da(this._hostTNode,s)),a}createComponent(t,n,r,i,o){let s=t&&!Cm(t),a;if(s)a=n;else{let p=n||{};a=p.index,r=p.injector,i=p.projectableNodes,o=p.environmentInjector||p.ngModuleRef}let u=s?t:new dr(Tt(t)),c=r||this.parentInjector;if(!o&&u.ngModule==null){let _=(s?c:this.parentInjector).get(ye,null);_&&(o=_)}let l=Tt(u.componentType??{}),d=wa(this._lContainer,l?.id??null),h=d?.firstChild??null,f=u.create(c,i,h,o);return this.insertImpl(f.hostView,a,Da(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let i=t._lView;if(xm(i)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let u=i[oe],c=new Jf(u,u[Ae],u[oe]);c.detach(c.indexOf(t))}}let o=this._adjustIndex(n),s=this._lContainer;return Hf(s,i,o,r),t.attachToViewContainerRef(),cd(Gs(s),o,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Gl(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Xi(this._lContainer,n);r&&(ji(Gs(this._lContainer),n),su(r[A],r))}detach(t){let n=this._adjustIndex(t,-1),r=Xi(this._lContainer,n);return r&&ji(Gs(this._lContainer),n)!=null?new En(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Gl(e){return e[Hi]}function Gs(e){return e[Hi]||(e[Hi]=[])}function eD(e,t){let n,r=t[e.index];return nt(r)?n=r:(n=Bf(r,t,null,e),t[e.index]=n,wo(t,n)),nD(n,t,e,r),new Jf(n,e,t)}function tD(e,t){let n=e[X],r=n.createComment(""),i=Ne(t,e),o=bf(n,i);return eo(n,o,r,$v(n,i),!1),r}var nD=oD,rD=()=>!1;function iD(e,t,n){return rD(e,t,n)}function oD(e,t,n,r){if(e[At])return;let i;n.type&8?i=$e(r):i=tD(t,n),e[At]=i}var Wl=new Set;function Fn(e){Wl.has(e)||(Wl.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function sD(e){return typeof e=="function"&&e[Ye]!==void 0}function bo(e,t){Fn("NgSignals");let n=jc(e),r=n[Ye];return t?.equal&&(r.equal=t.equal),n.set=i=>gs(r,i),n.update=i=>Bc(r,i),n.asReadonly=aD.bind(n),n}function aD(){let e=this[Ye];if(e.readonlyFn===void 0){let t=()=>this();t[Ye]=e,e.readonlyFn=t}return e.readonlyFn}function Xf(e){return sD(e)&&typeof e.set=="function"}function uD(e){return Object.getPrototypeOf(e.prototype).constructor}function Vt(e){let t=uD(e.type),n=!0,r=[e];for(;t;){let i;if(gt(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new y(903,!1);i=t.\u0275dir}if(i){if(n){r.push(i);let s=e;s.inputs=Ti(e.inputs),s.inputTransforms=Ti(e.inputTransforms),s.declaredInputs=Ti(e.declaredInputs),s.outputs=Ti(e.outputs);let a=i.hostBindings;a&&hD(e,a);let u=i.viewQuery,c=i.contentQueries;if(u&&dD(e,u),c&&fD(e,c),cD(e,i),Ig(e.outputs,i.outputs),gt(i)&&i.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;r--){let i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=ur(i.hostAttrs,n=ur(n,i.hostAttrs))}}function Ti(e){return e===gn?{}:e===me?[]:e}function dD(e,t){let n=e.viewQuery;n?e.viewQuery=(r,i)=>{t(r,i),n(r,i)}:e.viewQuery=t}function fD(e,t){let n=e.contentQueries;n?e.contentQueries=(r,i,o)=>{t(r,i,o),n(r,i,o)}:e.contentQueries=t}function hD(e,t){let n=e.hostBindings;n?e.hostBindings=(r,i)=>{t(r,i),n(r,i)}:e.hostBindings=t}var mt=class{},fr=class{};var Ma=class extends mt{constructor(t,n,r,i=!0){super(),this.ngModuleType=t,this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ro(this);let o=vd(t);this._bootstrapComponents=Df(o.bootstrap),this._r3Injector=rf(t,n,[{provide:mt,useValue:this},{provide:bn,useValue:this.componentFactoryResolver},...r],ue(t),new Set(["environment"])),i&&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)}},Sa=class extends fr{constructor(t){super(),this.moduleType=t}create(t){return new Ma(this.moduleType,t,[])}};var io=class extends mt{constructor(t){super(),this.componentFactoryResolver=new ro(this),this.instance=null;let n=new cr([...t.providers,{provide:mt,useValue:this},{provide:bn,useValue:this.componentFactoryResolver}],t.parent||ja(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function hu(e,t,n=null){return new io({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function _o(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function pD(e){return(e.flags&32)===32}function gD(e,t,n,r,i,o,s,a,u){let c=t.consts,l=Co(t,e,4,s||null,a||null);Lf(t,n,l,Wi(c,u)),Za(t,l);let d=l.tView=cu(2,l,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return t.queries!==null&&(t.queries.template(t,l),d.queries=t.queries.embeddedTView(l)),l}function mD(e,t,n,r,i,o,s,a,u,c){let l=n+Te,d=t.firstCreatePass?gD(l,t,e,r,i,o,s,a,u):t.data[l];gr(d,!1);let h=vD(t,e,d,n);Wa()&&au(t,e,h,d),Ft(h,e);let f=Bf(h,e,h,d);return e[l]=f,wo(e,f),iD(f,d,e),Ba(d)&&Of(t,e,d),u!=null&&Ff(e,d,c),d}function Mo(e,t,n,r,i,o,s,a){let u=H(),c=Ce(),l=Wi(c.consts,o);return mD(u,c,e,t,n,r,i,l,s,a),Mo}var vD=yD;function yD(e,t,n,r){return qa(!0),t[X].createComment("")}var or=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(or||{}),DD=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=C({token:e,providedIn:"root",factory:()=>new e})}}return e})(),ql=class e{constructor(){this.ngZone=m(G),this.scheduler=m(In),this.errorHandler=m(Je,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[or.EarlyRead,or.Write,or.MixedReadWrite,or.Read]}execute(){this.executing=!0;for(let t of e.PHASES)for(let n of this.sequences)if(!(n.erroredOrDestroyed||!n.hooks[t]))try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let t of this.sequences)t.afterRun(),t.once&&(this.sequences.delete(t),t.destroy());for(let t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static{this.\u0275prov=C({token:e,providedIn:"root",factory:()=>new e})}};function Ai(e,t){return e<<17|t<<2}function Pt(e){return e>>17&32767}function CD(e){return(e&2)==2}function wD(e,t){return e&131071|t<<17}function xa(e){return e|2}function Mn(e){return(e&131068)>>2}function Ws(e,t){return e&-131069|t<<2}function ED(e){return(e&1)===1}function Ta(e){return e|1}function ID(e,t,n,r,i,o){let s=o?t.classBindings:t.styleBindings,a=Pt(s),u=Mn(s);e[r]=n;let c=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||pr(d,l)>0)&&(c=!0)}else l=n;if(i)if(u!==0){let h=Pt(e[a+1]);e[r+1]=Ai(h,a),h!==0&&(e[h+1]=Ws(e[h+1],r)),e[a+1]=wD(e[a+1],r)}else e[r+1]=Ai(a,0),a!==0&&(e[a+1]=Ws(e[a+1],r)),a=r;else e[r+1]=Ai(u,0),a===0?a=r:e[u+1]=Ws(e[u+1],r),u=r;c&&(e[r+1]=xa(e[r+1])),Zl(e,l,r,!0),Zl(e,l,r,!1),bD(t,l,e,r,o),s=Ai(a,u),o?t.classBindings=s:t.styleBindings=s}function bD(e,t,n,r,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&pr(o,t)>=0&&(n[r+1]=Ta(n[r+1]))}function Zl(e,t,n,r){let i=e[n+1],o=t===null,s=r?Pt(i):Mn(i),a=!1;for(;s!==0&&(a===!1||o);){let u=e[s],c=e[s+1];_D(u,t)&&(a=!0,e[s+1]=r?Ta(c):xa(c)),s=r?Pt(c):Mn(c)}a&&(e[n+1]=r?xa(i):Ta(i))}function _D(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?pr(e,t)>=0:!1}function pu(e,t,n){let r=H(),i=Ha();if(_o(r,i,t)){let o=Ce(),s=Gd();kf(o,s,r,e,t,r[X],n,!1)}return pu}function Yl(e,t,n,r,i){let o=t.inputs,s=i?"class":"style";lu(e,n,o[s],s,r)}function yr(e,t){return MD(e,t,null,!0),yr}function MD(e,t,n,r){let i=H(),o=Ce(),s=Um(2);if(o.firstUpdatePass&&xD(o,e,s,r),t!==vr&&_o(i,s,t)){let a=o.data[mr()];OD(o,a,i,i[X],e,i[s+1]=FD(t,n),r,s)}}function SD(e,t){return t>=e.expandoStartIndex}function xD(e,t,n,r){let i=e.data;if(i[n+1]===null){let o=i[mr()],s=SD(e,n);PD(o,r)&&t===null&&!s&&(t=!1),t=TD(i,o,t,r),ID(i,o,t,n,s,r)}}function TD(e,t,n,r){let i=Gm(e),o=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=qs(null,e,t,n,r),n=hr(n,t.attrs,r),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(n=qs(i,e,t,n,r),o===null){let u=AD(e,t,r);u!==void 0&&Array.isArray(u)&&(u=qs(null,e,t,u[1],r),u=hr(u,t.attrs,r),ND(e,t,r,u))}else o=RD(e,t,r)}return o!==void 0&&(r?t.residualClasses=o:t.residualStyles=o),n}function AD(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Mn(r)!==0)return e[Pt(r)]}function ND(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[Pt(i)]=r}function RD(e,t,n){let r,i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0;){let u=e[i],c=Array.isArray(u),l=c?u[1]:u,d=l===null,h=n[i+1];h===vr&&(h=d?me:void 0);let f=d?Ls(h,r):l===r?h:void 0;if(c&&!oo(f)&&(f=Ls(u,r)),oo(f)&&(a=f,s))return a;let p=e[i+1];i=s?Pt(p):Mn(p)}if(t!==null){let u=o?t.residualClasses:t.residualStyles;u!=null&&(a=Ls(u,r))}return a}function oo(e){return e!==void 0}function FD(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=ue(vo(e)))),e}function PD(e,t){return(e.flags&(t?8:16))!==0}function Dr(e,t){Fn("NgControlFlow");let n=H(),r=Ha(),i=n[r]!==vr?n[r]:-1,o=i!==-1?Kl(n,Te+i):void 0,s=0;if(_o(n,r,e)){let a=F(null);try{if(o!==void 0&&My(o,s),e!==-1){let u=Te+e,c=Kl(n,u),l=kD(n[A],u),d=wa(c,l.tView.ssrId),h=by(n,l,t,{dehydratedView:d});Hf(c,h,s,Da(l,d))}}finally{F(a)}}else if(o!==void 0){let a=_y(o,s);a!==void 0&&(a[De]=t)}}function Kl(e,t){return e[t]}function kD(e,t){return Ua(e,t)}function LD(e,t,n,r,i,o){let s=t.consts,a=Wi(s,i),u=Co(t,e,2,r,a);return Lf(t,n,u,Wi(s,o)),u.attrs!==null&&ba(u,u.attrs,!1),u.mergedAttrs!==null&&ba(u,u.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,u),u}function we(e,t,n,r){let i=H(),o=Ce(),s=Te+e,a=i[X],u=o.firstCreatePass?LD(s,o,i,t,n,r):o.data[s],c=VD(o,i,u,a,t,e);i[s]=c;let l=Ba(u);return gr(u,!0),Sf(a,c,u),!pD(u)&&Wa()&&au(o,i,c,u),Nm()===0&&Ft(c,i),Rm(),l&&(Of(o,i,u),Rf(o,u,i)),r!==null&&Ff(i,u),we}function Re(){let e=fe();Ld()?Vm():(e=e.parent,gr(e,!1));let t=e;Pm(t)&&km(),Om();let n=Ce();return n.firstCreatePass&&(Za(n,e),Md(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&Jm(t)&&Yl(n,t,H(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&Xm(t)&&Yl(n,t,H(),t.stylesWithoutHost,!1),Re}function Pn(e,t,n,r){return we(e,t,n,r),Re(),Pn}var VD=(e,t,n,r,i,o)=>(qa(!0),Cf(r,i,Zm()));function So(){return H()}var so="en-US";var jD=so;function BD(e){typeof e=="string"&&(jD=e.toLowerCase().replace(/_/g,"-"))}var UD=(e,t,n)=>{};function Ee(e,t,n,r){let i=H(),o=Ce(),s=fe();return eh(o,i,i[X],s,e,t,r),Ee}function $D(e,t,n,r){let i=e.cleanup;if(i!=null)for(let o=0;ou?a[u]:null}typeof s=="string"&&(o+=2)}return null}function eh(e,t,n,r,i,o,s){let a=Ba(r),c=e.firstCreatePass&&Cy(e),l=t[De],d=Dy(t),h=!0;if(r.type&3||s){let _=Ne(r,t),O=s?s(_):_,k=d.length,K=s?_e=>s($e(_e[r.index])):r.index,se=null;if(!s&&a&&(se=$D(e,t,i,r.index)),se!==null){let _e=se.__ngLastListenerFn__||se;_e.__ngNextListenerFn__=o,se.__ngLastListenerFn__=o,h=!1}else{o=Xl(r,t,l,o),UD(_,i,o);let _e=n.listen(O,i,o);d.push(o,_e),c&&c.push(i,K,k,k+1)}}else o=Xl(r,t,l,o);let f=r.outputs,p;if(h&&f!==null&&(p=f[i])){let _=p.length;if(_)for(let O=0;O<_;O+=2){let k=p[O],K=p[O+1],qt=t[k][K].subscribe(o),ce=d.length;d.push(o,qt),c&&c.push(i,r.index,ce,-(ce+1))}}}function Jl(e,t,n,r){let i=F(null);try{return Le(6,t,n),n(r)!==!1}catch(o){return $f(e,o),!1}finally{Le(7,t,n),F(i)}}function Xl(e,t,n,r){return function i(o){if(o===Function)return r;let s=e.componentOffset>-1?Dt(e.index,t):t;fu(s,5);let a=Jl(t,n,r,o),u=i.__ngNextListenerFn__;for(;u;)a=Jl(t,n,u,o)&&a,u=u.__ngNextListenerFn__;return a}}function jt(e=1){return qm(e)}function th(e){let t=jm();return Sm(t,Te+e)}function kn(e,t=""){let n=H(),r=Ce(),i=e+Te,o=r.firstCreatePass?Co(r,i,1,t,null):r.data[i],s=HD(r,n,o,t,e);n[i]=s,Wa()&&au(r,n,s,o),gr(o,!1)}var HD=(e,t,n,r,i)=>(qa(!0),Ov(t[X],r));function gu(e,t,n){Xf(t)&&(t=t());let r=H(),i=Ha();if(_o(r,i,t)){let o=Ce(),s=Gd();kf(o,s,r,e,t,r[X],n,!1)}return gu}function nh(e,t){let n=Xf(e);return n&&e.set(t),n}function mu(e,t){let n=H(),r=Ce(),i=fe();return eh(r,n,n[X],i,e,t),mu}function zD(e,t,n){let r=Ce();if(r.firstCreatePass){let i=gt(e);Aa(n,r.data,r.blueprint,i,!0),Aa(t,r.data,r.blueprint,i,!1)}}function Aa(e,t,n,r,i){if(e=ie(e),Array.isArray(e))for(let o=0;o>20;if(vn(e)||!e.multi){let f=new Ot(c,i,Q),p=Ys(u,t,i?l:l+h,d);p===-1?(ua(Yi(a,s),o,u),Zs(o,e,t.length),t.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[p]=f,s[p]=f)}else{let f=Ys(u,t,l+h,d),p=Ys(u,t,l,l+h),_=f>=0&&n[f],O=p>=0&&n[p];if(i&&!O||!i&&!_){ua(Yi(a,s),o,u);let k=qD(i?WD:GD,n.length,i,r,c);!i&&O&&(n[p].providerFactory=k),Zs(o,e,t.length,0),t.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(k),s.push(k)}else{let k=rh(n[i?p:f],c,!i&&r);Zs(o,e,f>-1?f:p,k)}!i&&r&&O&&n[p].componentProviders++}}}function Zs(e,t,n,r){let i=vn(t),o=fm(t);if(i||o){let u=(o?ie(t.useClass):t).prototype.ngOnDestroy;if(u){let c=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){let l=c.indexOf(n);l===-1?c.push(n,[r,u]):c[l+1].push(r,u)}else c.push(n,u)}}}function rh(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ys(e,t,n,r){for(let i=n;i{n.providersResolver=(r,i)=>zD(r,i?i(e):e,t)}}var ZD=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Cd(!1,n.type),i=r.length>0?hu([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=C({token:e,providedIn:"environment",factory:()=>new e(N(ye))})}}return e})();function To(e){Fn("NgStandalone"),e.getStandaloneInjector=t=>t.get(ZD).getOrCreateStandaloneInjector(e)}var Ao=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();var ih=new D("");function Bt(e){return!!e&&typeof e.then=="function"}function oh(e){return!!e&&typeof e.subscribe=="function"}var No=new D(""),sh=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=m(No,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=i();if(Bt(o))n.push(o);else if(oh(o)){let s=new Promise((a,u)=>{o.subscribe({complete:a,error:u})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),vu=new D("");function YD(){Vc(()=>{throw new y(600,!1)})}function QD(e){return e.isBoundToModule}var KD=10;function JD(e,t,n){try{let r=n();return Bt(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var qe=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=m(yv),this.afterRenderManager=m(DD),this.zonelessEnabled=m(Eo),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new U,this.afterTick=new U,this.componentTypes=[],this.components=[],this.isStable=m(Rn).hasPendingTasks.pipe(I(n=>!n)),this._injector=m(ye)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){let i=n instanceof no;if(!this._injector.get(sh).done){let h=!i&&md(n),f=!1;throw new y(405,f)}let s;i?s=n:s=this._injector.get(bn).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=QD(s)?void 0:this._injector.get(mt),u=r||s.selector,c=s.create(He.NULL,[],u,a),l=c.location.nativeElement,d=c.injector.get(ih,null);return d?.registerApplication(l),c.onDestroy(()=>{this.detachView(c.hostView),Pi(this.components,c),d?.unregisterApplication(l)}),this._loadComponent(c),c}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new y(101,!1);let n=F(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,F(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(_n,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++go(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;Pi(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(vu,[]);[...this._bootstrapListeners,...r].forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Pi(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new y(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Pi(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function XD(e,t,n,r){if(!n&&!go(e))return;Wf(e,t,n&&!r?0:1)}var Ra=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},yu=(()=>{class e{compileModuleSync(n){return new Sa(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),i=vd(n),o=Df(i.declarations).reduce((s,a)=>{let u=Tt(a);return u&&s.push(new dr(u)),s},[]);return new Ra(r,o)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var eC=(()=>{class e{constructor(){this.zone=m(G),this.changeDetectionScheduler=m(In),this.applicationRef=m(qe)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),tC=new D("",{factory:()=>!1});function ah({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new G(P(g({},ch()),{scheduleInRootZone:n})),[{provide:G,useFactory:e},{provide:mn,multi:!0,useFactory:()=>{let r=m(eC,{optional:!0});return()=>r.initialize()}},{provide:mn,multi:!0,useFactory:()=>{let r=m(nC);return()=>{r.initialize()}}},t===!0?{provide:Qf,useValue:!0}:[],{provide:Kf,useValue:n??of}]}function uh(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=ah({ngZoneFactory:()=>{let i=ch(e);return i.scheduleInRootZone=n,i.shouldCoalesceEventChangeDetection&&Fn("NgZone_CoalesceEvent"),new G(i)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return xn([{provide:tC,useValue:!0},{provide:Eo,useValue:!1},r])}function ch(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var nC=(()=>{class e{constructor(){this.subscription=new z,this.initialized=!1,this.zone=m(G),this.pendingTasks=m(Rn)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{G.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{G.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var rC=(()=>{class e{constructor(){this.appRef=m(qe),this.taskService=m(Rn),this.ngZone=m(G),this.zonelessEnabled=m(Eo),this.disableScheduling=m(Qf,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new z,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Ki):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(m(Kf,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,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 ha||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;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 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?kl:af;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Ki+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)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,kl(()=>{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{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function iC(){return typeof $localize<"u"&&$localize.locale||so}var Du=new D("",{providedIn:"root",factory:()=>m(Du,M.Optional|M.SkipSelf)||iC()});var Oa=new D("");function Ni(e){return!e.moduleRef}function oC(e){let t=Ni(e)?e.r3Injector:e.moduleRef.injector,n=t.get(G);return n.run(()=>{Ni(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Je,null),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:o=>{r.handleError(o)}})}),Ni(e)){let o=()=>t.destroy(),s=e.platformInjector.get(Oa);s.add(o),t.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Oa);s.add(o),e.moduleRef.onDestroy(()=>{Pi(e.allPlatformModules,e.moduleRef),i.unsubscribe(),s.delete(o)})}return JD(r,n,()=>{let o=t.get(sh);return o.runInitializers(),o.donePromise.then(()=>{let s=t.get(Du,so);if(BD(s||so),Ni(e)){let a=t.get(qe);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return sC(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function sC(e,t){let n=e.injector.get(qe);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new y(-403,!1);t.push(e)}var ki=null;function aC(e=[],t){return He.create({name:t,providers:[{provide:fo,useValue:"platform"},{provide:Oa,useValue:new Set([()=>ki=null])},...e]})}function uC(e=[]){if(ki)return ki;let t=aC(e);return ki=t,YD(),cC(t),t}function cC(e){e.get(eu,null)?.forEach(n=>n())}function lh(){return!1}var Ut=(()=>{class e{static{this.__NG_ELEMENT_ID__=lC}}return e})();function lC(e){return dC(fe(),H(),(e&16)===16)}function dC(e,t,n){if(po(e)&&!n){let r=Dt(e.index,t);return new En(r,r)}else if(e.type&175){let r=t[Ue];return new En(r,t)}return null}function dh(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,i=uC(r),o=[ah({}),{provide:In,useExisting:rC},...n||[]],s=new io({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1});return oC({r3Injector:s.injector,platformInjector:i,rootComponent:t})}catch(t){return Promise.reject(t)}}function Ro(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function Oo(e,t){Fn("NgSignals");let n=Pc(e);return t?.equal&&(n[Ye].equal=t.equal),n}function Ct(e){let t=F(null);try{return e()}finally{F(t)}}var ph=null;function it(){return ph}function gh(e){ph??=e}var Fo=class{};var Ie=new D(""),mh=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>m(pC),providedIn:"platform"})}}return e})();var pC=(()=>{class e extends mh{constructor(){super(),this._doc=m(Ie),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return it().getBaseHref(this._doc)}onPopState(n){let r=it().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=it().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,i){this._history.pushState(n,r,i)}replaceState(n,r,i){this._history.replaceState(n,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function vh(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 fh(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 $t(e){return e&&e[0]!=="?"?"?"+e:e}var ko=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>m(yh),providedIn:"root"})}}return e})(),gC=new D(""),yh=(()=>{class e extends ko{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??m(Ie).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 vh(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+$t(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${r}${i}`:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+$t(o));this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+$t(o));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{this.\u0275fac=function(r){return new(r||e)(N(mh),N(gC,8))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Cr=(()=>{class e{constructor(n){this._subject=new Y,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=yC(fh(hh(r))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.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+$t(r))}normalize(n){return e.stripTrailingSlash(vC(this._basePath,hh(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",i=null){this._locationStrategy.pushState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+$t(r)),i)}replaceState(n,r="",i=null){this._locationStrategy.replaceState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+$t(r)),i)}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(i=>i(n,r))}subscribe(n,r,i){return this._subject.subscribe({next:n,error:r,complete:i})}static{this.normalizeQueryParams=$t}static{this.joinWithSlash=vh}static{this.stripTrailingSlash=fh}static{this.\u0275fac=function(r){return new(r||e)(N(ko))}}static{this.\u0275prov=C({token:e,factory:()=>mC(),providedIn:"root"})}}return e})();function mC(){return new Cr(N(ko))}function vC(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function hh(e){return e.replace(/\/index.html$/,"")}function yC(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function Dh(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}var wu=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=yt({type:e})}static{this.\u0275inj=vt({})}}return e})(),Eu="browser",DC="server";function Iu(e){return e===Eu}function bu(e){return e===DC}var Po=class{};var Su=class extends Fo{constructor(){super(...arguments),this.supportsDOMEvents=!0}},xu=class e extends Su{static makeCurrent(){gh(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=wC();return n==null?null:EC(n)}resetBaseElement(){wr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Dh(document.cookie,t)}},wr=null;function wC(){return wr=wr||document.querySelector("base"),wr?wr.getAttribute("href"):null}function EC(e){return new URL(e,document.baseURI).pathname}var IC=(()=>{class e{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})(),Tu=new D(""),Ih=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i){return this._findPluginFor(r).addEventListener(n,r,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(o=>o.supports(n)),!r)throw new y(5101,!1);return this._eventNameToPlugin.set(n,r),r}static{this.\u0275fac=function(r){return new(r||e)(N(Tu),N(G))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})(),Lo=class{constructor(t){this._doc=t}},_u="ng-app-id",bh=(()=>{class e{constructor(n,r,i,o={}){this.doc=n,this.appId=r,this.nonce=i,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=bu(o),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(i=>i.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${_u}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(i=>{i.textContent!=null&&r.set(i.textContent,i)}),r}return null}changeUsageCount(n,r){let i=this.styleRef;if(i.has(n)){let o=i.get(n);return o.usage+=r,o.usage}return i.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let i=this.styleNodesInDOM,o=i?.get(r);if(o?.parentNode===n)return i.delete(r),o.removeAttribute(_u),o;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(_u,this.appId),n.appendChild(s),s}}addStyleToHost(n,r){let i=this.getStyleElement(n,r),o=this.styleRef,s=o.get(r)?.elements;s?s.push(i):o.set(r,{elements:[i],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}static{this.\u0275fac=function(r){return new(r||e)(N(Ie),N(Xa),N(tu,8),N(rt))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})(),Mu={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"},Nu=/%COMP%/g,_h="%COMP%",bC=`_nghost-${_h}`,_C=`_ngcontent-${_h}`,MC=!0,SC=new D("",{providedIn:"root",factory:()=>MC});function xC(e){return _C.replace(Nu,e)}function TC(e){return bC.replace(Nu,e)}function Mh(e,t){return t.map(n=>n.replace(Nu,e))}var Ch=(()=>{class e{constructor(n,r,i,o,s,a,u,c=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=u,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=bu(a),this.defaultRenderer=new Er(n,s,u,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===je.ShadowDom&&(r=P(g({},r),{encapsulation:je.Emulated}));let i=this.getOrCreateRenderer(n,r);return i instanceof Vo?i.applyToHost(n):i instanceof Ir&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,u=this.eventManager,c=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case je.Emulated:o=new Vo(u,c,r,this.appId,l,s,a,d);break;case je.ShadowDom:return new Au(u,c,n,r,s,a,this.nonce,d);default:o=new Ir(u,c,r,l,s,a,d);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||e)(N(Ih),N(bh),N(Xa),N(SC),N(Ie),N(rt),N(G),N(tu))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})(),Er=class{constructor(t,n,r,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(Mu[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(wh(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(wh(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 y(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,i){if(i){n=i+":"+n;let o=Mu[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let i=Mu[r];i?t.removeAttributeNS(i,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,i){i&(Xe.DashCase|Xe.Important)?t.style.setProperty(n,r,i&Xe.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Xe.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=it().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 wh(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Au=class extends Er{constructor(t,n,r,i,o,s,a,u){super(t,o,s,u),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=Mh(i.id,i.styles);for(let l of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(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)}},Ir=class extends Er{constructor(t,n,r,i,o,s,a,u){super(t,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this.styles=u?Mh(u,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Vo=class extends Ir{constructor(t,n,r,i,o,s,a,u){let c=i+"-"+r.id;super(t,n,r,o,s,a,u,c),this.contentAttr=xC(c),this.hostAttr=TC(c)}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}},AC=(()=>{class e extends Lo{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i){return n.addEventListener(r,i,!1),()=>this.removeEventListener(n,r,i)}removeEventListener(n,r,i){return n.removeEventListener(r,i)}static{this.\u0275fac=function(r){return new(r||e)(N(Ie))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})(),Eh=["alt","control","meta","shift"],NC={"\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"},RC={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},OC=(()=>{class e extends Lo{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,i){let o=e.parseEventName(r),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>it().onAndCancel(n,o.domEventName,s))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Eh.forEach(c=>{let l=r.indexOf(c);l>-1&&(r.splice(l,1),s+=c+".")}),s+=o,r.length!=0||o.length===0)return null;let u={};return u.domEventName=i,u.fullKey=s,u}static matchEventFullKeyCode(n,r){let i=NC[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),Eh.forEach(s=>{if(s!==i){let a=RC[s];a(n)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{e.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}static{this.\u0275fac=function(r){return new(r||e)(N(Ie))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})();function Sh(e,t){return dh(g({rootComponent:e},FC(t)))}function FC(e){return{appProviders:[...jC,...e?.providers??[]],platformProviders:VC}}function PC(){xu.makeCurrent()}function kC(){return new Je}function LC(){return pf(document),document}var VC=[{provide:rt,useValue:Eu},{provide:eu,useValue:PC,multi:!0},{provide:Ie,useFactory:LC,deps:[]}];var jC=[{provide:fo,useValue:"root"},{provide:Je,useFactory:kC,deps:[]},{provide:Tu,useClass:AC,multi:!0,deps:[Ie,G,rt]},{provide:Tu,useClass:OC,multi:!0,deps:[Ie]},Ch,bh,Ih,{provide:_n,useExisting:Ch},{provide:Po,useClass:IC,deps:[]},[]];var xh=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static{this.\u0275fac=function(r){return new(r||e)(N(Ie))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var b="primary",Br=Symbol("RouteTitle"),ku=class{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 Hn(e){return new ku(e)}function $C(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.lengthr[o]===i)}else return e===t}function Lh(e){return e.length>0?e[e.length-1]:null}function wt(e){return xs(e)?e:Bt(e)?B(Promise.resolve(e)):w(e)}var zC={exact:jh,subset:Bh},Vh={exact:GC,subset:WC,ignored:()=>!0};function Th(e,t,n){return zC[n.paths](e.root,t.root,n.matrixParams)&&Vh[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function GC(e,t){return Ze(e,t)}function jh(e,t,n){if(!zt(e.segments,t.segments)||!Uo(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!jh(e.children[r],t.children[r],n))return!1;return!0}function WC(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>kh(e[n],t[n]))}function Bh(e,t,n){return Uh(e,t,t.segments,n)}function Uh(e,t,n,r){if(e.segments.length>n.length){let i=e.segments.slice(0,n.length);return!(!zt(i,n)||t.hasChildren()||!Uo(i,n,r))}else if(e.segments.length===n.length){if(!zt(e.segments,n)||!Uo(e.segments,n,r))return!1;for(let i in t.children)if(!e.children[i]||!Bh(e.children[i],t.children[i],r))return!1;return!0}else{let i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!zt(e.segments,i)||!Uo(e.segments,i,r)||!e.children[b]?!1:Uh(e.children[b],t,o,r)}}function Uo(e,t,n){return t.every((r,i)=>Vh[n](e[i].parameters,r.parameters))}var st=class{constructor(t=new L([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Hn(this.queryParams),this._queryParamMap}toString(){return YC.serialize(this)}},L=class{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return $o(this)}},Ht=class{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=Hn(this.parameters),this._parameterMap}toString(){return Hh(this)}};function qC(e,t){return zt(e,t)&&e.every((n,r)=>Ze(n.parameters,t[r].parameters))}function zt(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function ZC(e,t){let n=[];return Object.entries(e.children).forEach(([r,i])=>{r===b&&(n=n.concat(t(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==b&&(n=n.concat(t(i,r)))}),n}var cc=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>new Ar,providedIn:"root"})}}return e})(),Ar=class{parse(t){let n=new ju(t);return new st(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${br(t.root,!0)}`,r=JC(t.queryParams),i=typeof t.fragment=="string"?`#${QC(t.fragment)}`:"";return`${n}${r}${i}`}},YC=new Ar;function $o(e){return e.segments.map(t=>Hh(t)).join("/")}function br(e,t){if(!e.hasChildren())return $o(e);if(t){let n=e.children[b]?br(e.children[b],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==b&&r.push(`${i}:${br(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=ZC(e,(r,i)=>i===b?[br(e.children[b],!1)]:[`${i}:${br(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[b]!=null?`${$o(e)}/${n[0]}`:`${$o(e)}/(${n.join("//")})`}}function $h(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function jo(e){return $h(e).replace(/%3B/gi,";")}function QC(e){return encodeURI(e)}function Vu(e){return $h(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ho(e){return decodeURIComponent(e)}function Ah(e){return Ho(e.replace(/\+/g,"%20"))}function Hh(e){return`${Vu(e.path)}${KC(e.parameters)}`}function KC(e){return Object.entries(e).map(([t,n])=>`;${Vu(t)}=${Vu(n)}`).join("")}function JC(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(i=>`${jo(n)}=${jo(i)}`).join("&"):`${jo(n)}=${jo(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var XC=/^[^\/()?;#]+/;function Ru(e){let t=e.match(XC);return t?t[0]:""}var ew=/^[^\/()?;=#]+/;function tw(e){let t=e.match(ew);return t?t[0]:""}var nw=/^[^=?&#]+/;function rw(e){let t=e.match(nw);return t?t[0]:""}var iw=/^[^&#]+/;function ow(e){let t=e.match(iw);return t?t[0]:""}var ju=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new L([],{}):new L([],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[b]=new L(t,n)),r}parseSegment(){let t=Ru(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new y(4009,!1);return this.capture(t),new Ht(Ho(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=tw(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let i=Ru(this.remaining);i&&(r=i,this.capture(r))}t[Ho(n)]=Ho(r)}parseQueryParam(t){let n=rw(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=ow(this.remaining);s&&(r=s,this.capture(r))}let i=Ah(n),o=Ah(r);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}parseParens(t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Ru(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new y(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=b);let s=this.parseChildren();n[o]=Object.keys(s).length===1?s[b]:new L([],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 y(4011,!1)}};function zh(e){return e.segments.length>0?new L([],{[b]:e}):e}function Gh(e){let t={};for(let[r,i]of Object.entries(e.children)){let o=Gh(i);if(r===b&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[r]=o)}let n=new L(e.segments,t);return sw(n)}function sw(e){if(e.numberOfChildren===1&&e.children[b]){let t=e.children[b];return new L(e.segments.concat(t.segments),t.children)}return e}function Nr(e){return e instanceof st}function aw(e,t,n=null,r=null){let i=Wh(e);return qh(i,t,n,r)}function Wh(e){let t;function n(o){let s={};for(let u of o.children){let c=n(u);s[u.outlet]=c}let a=new L(o.url,s);return o===e&&(t=a),a}let r=n(e.root),i=zh(r);return t??i}function qh(e,t,n,r){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return Ou(i,i,i,n,r);let o=uw(t);if(o.toRoot())return Ou(i,i,new L([],{}),n,r);let s=cw(o,i,e),a=s.processChildren?Sr(s.segmentGroup,s.index,o.commands):Yh(s.segmentGroup,s.index,o.commands);return Ou(i,s.segmentGroup,a,n,r)}function zo(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Rr(e){return typeof e=="object"&&e!=null&&e.outlets}function Ou(e,t,n,r,i){let o={};r&&Object.entries(r).forEach(([u,c])=>{o[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let s;e===t?s=n:s=Zh(e,t,n);let a=zh(Gh(s));return new st(a,o,i)}function Zh(e,t,n){let r={};return Object.entries(e.children).forEach(([i,o])=>{o===t?r[i]=n:r[i]=Zh(o,t,n)}),new L(e.segments,r)}var Go=class{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&zo(r[0]))throw new y(4003,!1);let i=r.find(Rr);if(i&&i!==Lh(r))throw new y(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function uw(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Go(!0,0,e);let t=0,n=!1,r=e.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?n=!0:a===".."?t++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new Go(n,t,r)}var Bn=class{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function cw(e,t,n){if(e.isAbsolute)return new Bn(t,!0,0);if(!n)return new Bn(t,!1,NaN);if(n.parent===null)return new Bn(n,!0,0);let r=zo(e.commands[0])?0:1,i=n.segments.length-1+r;return lw(n,i,e.numberOfDoubleDots)}function lw(e,t,n){let r=e,i=t,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new y(4005,!1);i=r.segments.length}return new Bn(r,!1,i-o)}function dw(e){return Rr(e[0])?e[0].outlets:{[b]:e}}function Yh(e,t,n){if(e??=new L([],{}),e.segments.length===0&&e.hasChildren())return Sr(e,t,n);let r=fw(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndexo!==b)&&e.children[b]&&e.numberOfChildren===1&&e.children[b].segments.length===0){let o=Sr(e.children[b],t,n);return new L(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Yh(e.children[o],t,s))}),Object.entries(e.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new L(e.segments,i)}}function fw(e,t,n){let r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};for(;i=n.length)return o;let s=e.segments[i],a=n[r];if(Rr(a))break;let u=`${a}`,c=r0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!Rh(u,c,s))return o;r+=2}else{if(!Rh(u,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Bu(e,t,n){let r=e.segments.slice(0,t),i=0;for(;i{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=Bu(new L([],{}),0,r))}),t}function Nh(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function Rh(e,t,n){return e==n.path&&Ze(t,n.parameters)}var xr="imperative",ee=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}(ee||{}),be=class{constructor(t,n){this.id=t,this.url=n}},Or=class extends be{constructor(t,n,r="imperative",i=null){super(t,n),this.type=ee.NavigationStart,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Gt=class extends be{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=ee.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},pe=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(pe||{}),Uu=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(Uu||{}),ot=class extends be{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=ee.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Wt=class extends be{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=ee.NavigationSkipped}},Fr=class extends be{constructor(t,n,r,i){super(t,n),this.error=r,this.target=i,this.type=ee.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Wo=class extends be{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=ee.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},$u=class extends be{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=ee.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Hu=class extends be{constructor(t,n,r,i,o){super(t,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=ee.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},zu=class extends be{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=ee.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Gu=class extends be{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=ee.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Wu=class{constructor(t){this.route=t,this.type=ee.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},qu=class{constructor(t){this.route=t,this.type=ee.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Zu=class{constructor(t){this.snapshot=t,this.type=ee.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Yu=class{constructor(t){this.snapshot=t,this.type=ee.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Qu=class{constructor(t){this.snapshot=t,this.type=ee.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ku=class{constructor(t){this.snapshot=t,this.type=ee.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Pr=class{},zn=class{constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function pw(e,t){return e.providers&&!e._injector&&(e._injector=hu(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Oe(e){return e.outlet||b}function gw(e,t){let n=e.filter(r=>Oe(r)===t);return n.push(...e.filter(r=>Oe(r)!==t)),n}function Ur(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 Ju=class{get injector(){return Ur(this.route?.snapshot)??this.rootInjector}set injector(t){}constructor(t){this.rootInjector=t,this.outlet=null,this.route=null,this.children=new Xo(this.rootInjector),this.attachRef=null}},Xo=(()=>{class e{constructor(n){this.rootInjector=n,this.contexts=new Map}onChildOutletCreated(n,r){let i=this.getOrCreateContext(n);i.outlet=r,this.contexts.set(n,i)}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 Ju(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static{this.\u0275fac=function(r){return new(r||e)(N(ye))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),qo=class{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=Xu(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=Xu(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=ec(t,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return ec(t,this._root).map(n=>n.value)}};function Xu(e,t){if(e===t.value)return t;for(let n of t.children){let r=Xu(e,n);if(r)return r}return null}function ec(e,t){if(e===t.value)return[t];for(let n of t.children){let r=ec(e,n);if(r.length)return r.unshift(t),r}return[]}var he=class{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function jn(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var Zo=class extends qo{constructor(t,n){super(t),this.snapshot=n,lc(this,t)}toString(){return this.snapshot.toString()}};function Qh(e){let t=mw(e),n=new J([new Ht("",{})]),r=new J({}),i=new J({}),o=new J({}),s=new J(""),a=new Gn(n,r,o,s,i,b,e,t.root);return a.snapshot=t.root,new Zo(new he(a,[]),t)}function mw(e){let t={},n={},r={},i="",o=new Un([],t,r,i,n,b,e,null,{});return new Qo("",new he(o,[]))}var Gn=class{constructor(t,n,r,i,o,s,a,u){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(I(c=>c[Br]))??w(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(I(t=>Hn(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(I(t=>Hn(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Yo(e,t,n="emptyOnly"){let r,{routeConfig:i}=e;return t!==null&&(n==="always"||i?.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),i?.data),e._resolvedData)}:r={params:g({},e.params),data:g({},e.data),resolve:g(g({},e.data),e._resolvedData??{})},i&&Jh(i)&&(r.resolve[Br]=i.title),r}var Un=class{get title(){return this.data?.[Br]}constructor(t,n,r,i,o,s,a,u,c){this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Hn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Hn(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}')`}},Qo=class extends qo{constructor(t,n){super(n),this.url=t,lc(this,n)}toString(){return Kh(this._root)}};function lc(e,t){t.value._routerState=e,t.children.forEach(n=>lc(e,n))}function Kh(e){let t=e.children.length>0?` { ${e.children.map(Kh).join(", ")} } `:"";return`${e.value}${t}`}function Fu(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Ze(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Ze(t.params,n.params)||e.paramsSubject.next(n.params),HC(t.url,n.url)||e.urlSubject.next(n.url),Ze(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function tc(e,t){let n=Ze(e.params,t.params)&&qC(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||tc(e.parent,t.parent))}function Jh(e){return typeof e.title=="string"||e.title===null}var dc=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=b,this.activateEvents=new Y,this.deactivateEvents=new Y,this.attachEvents=new Y,this.detachEvents=new Y,this.parentContexts=m(Xo),this.location=m(Io),this.changeDetector=m(Ut),this.inputBinder=m(fc,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:i}=n.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),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 y(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new y(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new y(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 y(4013,!1);this._activatedRoute=n;let i=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new nc(n,a,i.injector);this.activated=i.createComponent(s,{index:i.length,injector:u,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=ze({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[An]})}}return e})(),nc=class e{__ngOutletInjector(t){return new e(this.route,this.childContexts,t)}constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===Gn?this.route:t===Xo?this.childContexts:this.parent.get(t,n)}},fc=new D("");function vw(e,t,n){let r=kr(e,t._root,n?n._root:void 0);return new Zo(r,t)}function kr(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let i=yw(e,t,n);return new he(r,i)}else{if(e.shouldAttach(t.value)){let o=e.retrieve(t.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>kr(e,a)),s}}let r=Dw(t.value),i=t.children.map(o=>kr(e,o));return new he(r,i)}}function yw(e,t,n){return t.children.map(r=>{for(let i of n.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return kr(e,r,i);return kr(e,r)})}function Dw(e){return new Gn(new J(e.url),new J(e.params),new J(e.queryParams),new J(e.fragment),new J(e.data),e.outlet,e.component,e)}var Lr=class{constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},Xh="ngNavigationCancelingError";function Ko(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=Nr(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=ep(!1,pe.Redirect);return i.url=n,i.navigationBehaviorOptions=r,i}function ep(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[Xh]=!0,n.cancellationCode=t,n}function Cw(e){return tp(e)&&Nr(e.url)}function tp(e){return!!e&&e[Xh]}var ww=(e,t,n,r)=>I(i=>(new rc(t,i.targetRouterState,i.currentRouterState,n,r).activate(e),i)),rc=class{constructor(t,n,r,i,o){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Fu(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let i=jn(n);t.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else o&&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),i=r&&t.value.component?r.children:n,o=jn(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);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),i=r&&t.value.component?r.children:n,o=jn(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let i=jn(n);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Ku(o.value.snapshot))}),t.children.length&&this.forwardEvent(new Yu(t.value.snapshot))}activateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(Fu(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Fu(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},Jo=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},$n=class{constructor(t,n){this.component=t,this.route=n}};function Ew(e,t,n){let r=e._root,i=t?t._root:null;return _r(r,i,n,[r.value])}function Iw(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function qn(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!nd(e)?e:t.get(e):r}function _r(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=jn(t);return e.children.forEach(s=>{bw(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Tr(a,n.getContext(s),i)),i}function bw(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let u=_w(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Jo(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?_r(e,t,a?a.children:null,r,i):_r(e,t,n,r,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new $n(a.outlet.component,s))}else s&&Tr(t,a,i),i.canActivateChecks.push(new Jo(r)),o.component?_r(e,null,a?a.children:null,r,i):_r(e,null,n,r,i);return i}function _w(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!zt(e.url,t.url);case"pathParamsOrQueryParamsChange":return!zt(e.url,t.url)||!Ze(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!tc(e,t)||!Ze(e.queryParams,t.queryParams);case"paramsChange":default:return!tc(e,t)}}function Tr(e,t,n){let r=jn(e),i=e.value;Object.entries(r).forEach(([o,s])=>{i.component?t?Tr(s,t.children.getContext(o),n):Tr(s,null,n):Tr(s,t,n)}),i.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new $n(t.outlet.component,i)):n.canDeactivateChecks.push(new $n(null,i)):n.canDeactivateChecks.push(new $n(null,i))}function $r(e){return typeof e=="function"}function Mw(e){return typeof e=="boolean"}function Sw(e){return e&&$r(e.canLoad)}function xw(e){return e&&$r(e.canActivate)}function Tw(e){return e&&$r(e.canActivateChild)}function Aw(e){return e&&$r(e.canDeactivate)}function Nw(e){return e&&$r(e.canMatch)}function np(e){return e instanceof Ke||e?.name==="EmptyError"}var Bo=Symbol("INITIAL_VALUE");function Wn(){return ne(e=>_i(e.map(t=>t.pipe(q(1),Ps(Bo)))).pipe(I(t=>{for(let n of t)if(n!==!0){if(n===Bo)return Bo;if(n===!1||Rw(n))return n}return!0}),te(t=>t!==Bo),q(1)))}function Rw(e){return Nr(e)||e instanceof Lr}function Ow(e,t){return $(n=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return s.length===0&&o.length===0?w(P(g({},n),{guardsResult:!0})):Fw(s,r,i,e).pipe($(a=>a&&Mw(a)?Pw(r,o,e,t):w(a)),I(a=>P(g({},n),{guardsResult:a})))})}function Fw(e,t,n,r){return B(e).pipe($(i=>Bw(i.component,i.route,n,t,r)),ke(i=>i!==!0,!0))}function Pw(e,t,n,r){return B(t).pipe(an(i=>Pe(Lw(i.route.parent,r),kw(i.route,r),jw(e,i.path,n),Vw(e,i.route,n))),ke(i=>i!==!0,!0))}function kw(e,t){return e!==null&&t&&t(new Qu(e)),w(!0)}function Lw(e,t){return e!==null&&t&&t(new Zu(e)),w(!0)}function Vw(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return w(!0);let i=r.map(o=>Mt(()=>{let s=Ur(t)??n,a=qn(o,s),u=xw(a)?a.canActivate(t,e):et(s,()=>a(t,e));return wt(u).pipe(ke())}));return w(i).pipe(Wn())}function jw(e,t,n){let r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>Iw(s)).filter(s=>s!==null).map(s=>Mt(()=>{let a=s.guards.map(u=>{let c=Ur(s.node)??n,l=qn(u,c),d=Tw(l)?l.canActivateChild(r,e):et(c,()=>l(r,e));return wt(d).pipe(ke())});return w(a).pipe(Wn())}));return w(o).pipe(Wn())}function Bw(e,t,n,r,i){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return w(!0);let s=o.map(a=>{let u=Ur(t)??i,c=qn(a,u),l=Aw(c)?c.canDeactivate(e,t,n,r):et(u,()=>c(e,t,n,r));return wt(l).pipe(ke())});return w(s).pipe(Wn())}function Uw(e,t,n,r){let i=t.canLoad;if(i===void 0||i.length===0)return w(!0);let o=i.map(s=>{let a=qn(s,e),u=Sw(a)?a.canLoad(t,n):et(e,()=>a(t,n));return wt(u)});return w(o).pipe(Wn(),rp(r))}function rp(e){return ws(Z(t=>{if(typeof t!="boolean")throw Ko(e,t)}),I(t=>t===!0))}function $w(e,t,n,r){let i=t.canMatch;if(!i||i.length===0)return w(!0);let o=i.map(s=>{let a=qn(s,e),u=Nw(a)?a.canMatch(t,n):et(e,()=>a(t,n));return wt(u)});return w(o).pipe(Wn(),rp(r))}var Vr=class{constructor(t){this.segmentGroup=t||null}},jr=class extends Error{constructor(t){super(),this.urlTree=t}};function Vn(e){return ut(new Vr(e))}function Hw(e){return ut(new y(4e3,!1))}function zw(e){return ut(ep(!1,pe.GuardRejected))}var ic=class{constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return w(r);if(i.numberOfChildren>1||!i.children[b])return Hw(`${t.redirectTo}`);i=i.children[b]}}applyRedirectCommands(t,n,r,i,o){if(typeof n!="string"){let a=n,{queryParams:u,fragment:c,routeConfig:l,url:d,outlet:h,params:f,data:p,title:_}=i,O=et(o,()=>a({params:f,data:p,queryParams:u,fragment:c,routeConfig:l,url:d,outlet:h,title:_}));if(O instanceof st)throw new jr(O);n=O}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n[0]==="/")throw new jr(s);return s}applyRedirectCreateUrlTree(t,n,r,i){let o=this.createSegmentGroup(t,n.root,r,i);return new st(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(t,n,r,i){let o=this.createSegments(t,n.segments,r,i),s={};return Object.entries(n.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(t,u,r,i)}),new L(o,s)}createSegments(t,n,r,i){return n.map(o=>o.path[0]===":"?this.findPosParam(t,o,i):this.findOrReturn(o,r))}findPosParam(t,n,r){let i=r[n.path.substring(1)];if(!i)throw new y(4001,!1);return i}findOrReturn(t,n){let r=0;for(let i of n){if(i.path===t.path)return n.splice(r),i;r++}return t}},oc={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Gw(e,t,n,r,i){let o=ip(e,t,n);return o.matched?(r=pw(t,r),$w(r,t,n,i).pipe(I(s=>s===!0?o:g({},oc)))):w(o)}function ip(e,t,n){if(t.path==="**")return Ww(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?g({},oc):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let i=(t.matcher||$C)(n,e,t);if(!i)return g({},oc);let o={};Object.entries(i.posParams??{}).forEach(([a,u])=>{o[a]=u.path});let s=i.consumed.length>0?g(g({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:n.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Ww(e){return{matched:!0,parameters:e.length>0?Lh(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function Oh(e,t,n,r){return n.length>0&&Yw(e,n,r)?{segmentGroup:new L(t,Zw(r,new L(n,e.children))),slicedSegments:[]}:n.length===0&&Qw(e,n,r)?{segmentGroup:new L(e.segments,qw(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new L(e.segments,e.children),slicedSegments:n}}function qw(e,t,n,r){let i={};for(let o of n)if(es(e,t,o)&&!r[Oe(o)]){let s=new L([],{});i[Oe(o)]=s}return g(g({},r),i)}function Zw(e,t){let n={};n[b]=t;for(let r of e)if(r.path===""&&Oe(r)!==b){let i=new L([],{});n[Oe(r)]=i}return n}function Yw(e,t,n){return n.some(r=>es(e,t,r)&&Oe(r)!==b)}function Qw(e,t,n){return n.some(r=>es(e,t,r))}function es(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function Kw(e,t,n){return t.length===0&&!e.children[n]}var sc=class{};function Jw(e,t,n,r,i,o,s="emptyOnly"){return new ac(e,t,n,r,i,s,o).recognize()}var Xw=31,ac=class{constructor(t,n,r,i,o,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new ic(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new y(4002,`'${t.segmentGroup}'`)}recognize(){let t=Oh(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(I(({children:n,rootSnapshot:r})=>{let i=new he(r,n),o=new Qo("",i),s=aw(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(t){let n=new Un([],Object.freeze({}),Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),b,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,b,n).pipe(I(r=>({children:r,rootSnapshot:n})),ct(r=>{if(r instanceof jr)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Vr?this.noMatchError(r):r}))}processSegmentGroup(t,n,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r,o):this.processSegment(t,n,r,r.segments,i,!0,o).pipe(I(s=>s instanceof he?[s]:[]))}processChildren(t,n,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return B(o).pipe(an(s=>{let a=r.children[s],u=gw(n,s);return this.processSegmentGroup(t,u,a,s,i)}),Fs((s,a)=>(s.push(...a),s)),lt(null),Rs(),$(s=>{if(s===null)return Vn(r);let a=op(s);return eE(a),w(a)}))}processSegment(t,n,r,i,o,s,a){return B(n).pipe(an(u=>this.processSegmentAgainstRoute(u._injector??t,n,u,r,i,o,s,a).pipe(ct(c=>{if(c instanceof Vr)return w(null);throw c}))),ke(u=>!!u),ct(u=>{if(np(u))return Kw(r,i,o)?w(new sc):Vn(r);throw u}))}processSegmentAgainstRoute(t,n,r,i,o,s,a,u){return Oe(r)!==s&&(s===b||!es(i,o,r))?Vn(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,i,r,o,s,u):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,i,n,r,o,s,u):Vn(i)}expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s,a){let{matched:u,parameters:c,consumedSegments:l,positionalParamSegments:d,remainingSegments:h}=ip(n,i,o);if(!u)return Vn(n);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Xw&&(this.allowRedirects=!1));let f=new Un(o,c,Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,Fh(i),Oe(i),i.component??i._loadedComponent??null,i,Ph(i)),p=Yo(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(p.params),f.data=Object.freeze(p.data);let _=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,d,f,t);return this.applyRedirects.lineralizeSegments(i,_).pipe($(O=>this.processSegment(t,r,n,O.concat(h),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,i,o,s){let a=Gw(n,r,i,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(ne(u=>u.matched?(t=r._injector??t,this.getChildConfig(t,r,i).pipe(ne(({routes:c})=>{let l=r._loadedInjector??t,{parameters:d,consumedSegments:h,remainingSegments:f}=u,p=new Un(h,d,Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,Fh(r),Oe(r),r.component??r._loadedComponent??null,r,Ph(r)),_=Yo(p,s,this.paramsInheritanceStrategy);p.params=Object.freeze(_.params),p.data=Object.freeze(_.data);let{segmentGroup:O,slicedSegments:k}=Oh(n,h,f,c);if(k.length===0&&O.hasChildren())return this.processChildren(l,c,O,p).pipe(I(se=>new he(p,se)));if(c.length===0&&k.length===0)return w(new he(p,[]));let K=Oe(r)===o;return this.processSegment(l,c,O,k,K?b:o,!0,p).pipe(I(se=>new he(p,se instanceof he?[se]:[])))}))):Vn(n)))}getChildConfig(t,n,r){return n.children?w({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?w({routes:n._loadedRoutes,injector:n._loadedInjector}):Uw(t,n,r,this.urlSerializer).pipe($(i=>i?this.configLoader.loadChildren(t,n).pipe(Z(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):zw(n))):w({routes:[],injector:t})}};function eE(e){e.sort((t,n)=>t.value.outlet===b?-1:n.value.outlet===b?1:t.value.outlet.localeCompare(n.value.outlet))}function tE(e){let t=e.value.routeConfig;return t&&t.path===""}function op(e){let t=[],n=new Set;for(let r of e){if(!tE(r)){t.push(r);continue}let i=t.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),n.add(i)):t.push(r)}for(let r of n){let i=op(r.children);t.push(new he(r.value,i))}return t.filter(r=>!n.has(r))}function Fh(e){return e.data||{}}function Ph(e){return e.resolve||{}}function nE(e,t,n,r,i,o){return $(s=>Jw(e,t,n,r,s.extractedUrl,i,o).pipe(I(({state:a,tree:u})=>P(g({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function rE(e,t){return $(n=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return w(n);let o=new Set(i.map(u=>u.route)),s=new Set;for(let u of o)if(!s.has(u))for(let c of sp(u))s.add(c);let a=0;return B(s).pipe(an(u=>o.has(u)?iE(u,r,e,t):(u.data=Yo(u,u.parent,e).resolve,w(void 0))),Z(()=>a++),un(1),$(u=>a===s.size?w(n):re))})}function sp(e){let t=e.children.map(n=>sp(n)).flat();return[e,...t]}function iE(e,t,n,r){let i=e.routeConfig,o=e._resolve;return i?.title!==void 0&&!Jh(i)&&(o[Br]=i.title),oE(o,e,t,r).pipe(I(s=>(e._resolvedData=s,e.data=Yo(e,e.parent,n).resolve,null)))}function oE(e,t,n,r){let i=Lu(e);if(i.length===0)return w({});let o={};return B(i).pipe($(s=>sE(e[s],t,n,r).pipe(ke(),Z(a=>{if(a instanceof Lr)throw Ko(new Ar,a);o[s]=a}))),un(1),nr(o),ct(s=>np(s)?re:ut(s)))}function sE(e,t,n,r){let i=Ur(t)??r,o=qn(e,i),s=o.resolve?o.resolve(t,n):et(i,()=>o(t,n));return wt(s)}function Pu(e){return ne(t=>{let n=e(t);return n?B(n).pipe(I(()=>t)):w(t)})}var ap=(()=>{class e{buildTitle(n){let r,i=n.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===b);return r}getResolvedTitleForRoute(n){return n.data[Br]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>m(aE),providedIn:"root"})}}return e})(),aE=(()=>{class e extends ap{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static{this.\u0275fac=function(r){return new(r||e)(N(xh))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),hc=new D("",{providedIn:"root",factory:()=>({})}),uE=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=lo({type:e,selectors:[["ng-component"]],standalone:!0,features:[To],decls:1,vars:0,template:function(r,i){r&1&&Pn(0,"router-outlet")},dependencies:[dc],encapsulation:2})}}return e})();function pc(e){let t=e.children&&e.children.map(pc),n=t?P(g({},e),{children:t}):g({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==b&&(n.component=uE),n}var gc=new D(""),cE=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=m(yu)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return w(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=wt(n.loadComponent()).pipe(I(up),Z(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),rr(()=>{this.componentLoaders.delete(n)})),i=new at(r,()=>new U).pipe(tn());return this.componentLoaders.set(n,i),i}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return w({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=lE(r,this.compiler,n,this.onLoadEndListener).pipe(rr(()=>{this.childrenLoaders.delete(r)})),s=new at(o,()=>new U).pipe(tn());return this.childrenLoaders.set(r,s),s}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function lE(e,t,n,r){return wt(e.loadChildren()).pipe(I(up),$(i=>i instanceof fr||Array.isArray(i)?w(i):B(t.compileModuleAsync(i))),I(i=>{r&&r(e);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(n).injector,s=o.get(gc,[],{optional:!0,self:!0}).flat()),{routes:s.map(pc),injector:o}}))}function dE(e){return e&&typeof e=="object"&&"default"in e}function up(e){return dE(e)?e.default:e}var mc=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>m(fE),providedIn:"root"})}}return e})(),fE=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),hE=new D("");var pE=new D(""),gE=(()=>{class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new U,this.transitionAbortSubject=new U,this.configLoader=m(cE),this.environmentInjector=m(ye),this.urlSerializer=m(cc),this.rootContexts=m(Xo),this.location=m(Cr),this.inputBindingEnabled=m(fc,{optional:!0})!==null,this.titleStrategy=m(ap),this.options=m(hc,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=m(mc),this.createViewTransition=m(hE,{optional:!0}),this.navigationErrorHandler=m(pE,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>w(void 0),this.rootComponentType=null;let n=i=>this.events.next(new Wu(i)),r=i=>this.events.next(new qu(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(P(g(g({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,i){return this.transitions=new J({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:xr,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(te(o=>o.id!==0),I(o=>P(g({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),ne(o=>{let s=!1,a=!1;return w(o).pipe(ne(u=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",pe.SupersededByNewNavigation),re;this.currentTransition=o,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,targetBrowserUrl:typeof u.extras.browserUrl=="string"?this.urlSerializer.parse(u.extras.browserUrl):u.extras.browserUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?P(g({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=u.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!c&&l!=="reload"){let d="";return this.events.next(new Wt(u.id,this.urlSerializer.serialize(u.rawUrl),d,Uu.IgnoredSameUrlNavigation)),u.resolve(!1),re}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return w(u).pipe(ne(d=>{let h=this.transitions?.getValue();return this.events.next(new Or(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?re:Promise.resolve(d)}),nE(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),Z(d=>{o.targetSnapshot=d.targetSnapshot,o.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=P(g({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let h=new Wo(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:d,extractedUrl:h,source:f,restoredState:p,extras:_}=u,O=new Or(d,this.urlSerializer.serialize(h),f,p);this.events.next(O);let k=Qh(this.rootComponentType).snapshot;return this.currentTransition=o=P(g({},u),{targetSnapshot:k,urlAfterRedirects:h,extras:P(g({},_),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,w(o)}else{let d="";return this.events.next(new Wt(u.id,this.urlSerializer.serialize(u.extractedUrl),d,Uu.IgnoredByUrlHandlingStrategy)),u.resolve(!1),re}}),Z(u=>{let c=new $u(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(c)}),I(u=>(this.currentTransition=o=P(g({},u),{guards:Ew(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),o)),Ow(this.environmentInjector,u=>this.events.next(u)),Z(u=>{if(o.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw Ko(this.urlSerializer,u.guardsResult);let c=new Hu(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(c)}),te(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",pe.GuardRejected),!1)),Pu(u=>{if(u.guards.canActivateChecks.length)return w(u).pipe(Z(c=>{let l=new zu(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),ne(c=>{let l=!1;return w(c).pipe(rE(this.paramsInheritanceStrategy,this.environmentInjector),Z({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(c,"",pe.NoDataFromResolver)}}))}),Z(c=>{let l=new Gu(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}))}),Pu(u=>{let c=l=>{let d=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(l.routeConfig).pipe(Z(h=>{l.component=h}),I(()=>{})));for(let h of l.children)d.push(...c(h));return d};return _i(c(u.targetSnapshot.root)).pipe(lt(null),q(1))}),Pu(()=>this.afterPreactivation()),ne(()=>{let{currentSnapshot:u,targetSnapshot:c}=o,l=this.createViewTransition?.(this.environmentInjector,u.root,c.root);return l?B(l).pipe(I(()=>o)):w(o)}),I(u=>{let c=vw(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=o=P(g({},u),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,o}),Z(()=>{this.events.next(new Pr)}),ww(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),q(1),Z({next:u=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Gt(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{s=!0}}),ks(this.transitionAbortSubject.pipe(Z(u=>{throw u}))),rr(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",pe.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),ct(u=>{if(a=!0,tp(u))this.events.next(new ot(o.id,this.urlSerializer.serialize(o.extractedUrl),u.message,u.cancellationCode)),Cw(u)?this.events.next(new zn(u.url,u.navigationBehaviorOptions)):o.resolve(!1);else{let c=new Fr(o.id,this.urlSerializer.serialize(o.extractedUrl),u,o.targetSnapshot??void 0);try{let l=et(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(l instanceof Lr){let{message:d,cancellationCode:h}=Ko(this.urlSerializer,l);this.events.next(new ot(o.id,this.urlSerializer.serialize(o.extractedUrl),d,h)),this.events.next(new zn(l.redirectTo,l.navigationBehaviorOptions))}else{this.events.next(c);let d=n.errorHandler(u);o.resolve(!!d)}}catch(l){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(l)}}return re}))}))}cancelNavigationTransition(n,r,i){let o=new ot(n.id,this.urlSerializer.serialize(n.extractedUrl),r,i);this.events.next(o),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{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function mE(e){return e!==xr}var vE=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>m(yE),providedIn:"root"})}}return e})(),uc=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},yE=(()=>{class e extends uc{static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Nn(e)))(i||e)}})()}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),cp=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>m(DE),providedIn:"root"})}}return e})(),DE=(()=>{class e extends cp{constructor(){super(...arguments),this.location=m(Cr),this.urlSerializer=m(cc),this.options=m(hc,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=m(mc),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new st,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Qh(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof Or)this.stateMemento=this.createStateMemento();else if(n instanceof Wt)this.rawUrlTree=r.initialUrl;else if(n instanceof Wo){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??i,r)}}else n instanceof Pr?(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 ot&&(n.code===pe.GuardRejected||n.code===pe.NoDataFromResolver)?this.restoreHistory(r):n instanceof Fr?this.restoreHistory(r,!0):n instanceof Gt&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let i=n instanceof st?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){let o=this.browserPageId,s=g(g({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(i,"",s)}else{let o=g(g({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(i,"",o)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.currentUrlTree===n.finalUrl&&o===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{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Nn(e)))(i||e)}})()}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Mr=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Mr||{});function CE(e,t){e.events.pipe(te(n=>n instanceof Gt||n instanceof ot||n instanceof Fr||n instanceof Wt),I(n=>n instanceof Gt||n instanceof Wt?Mr.COMPLETE:(n instanceof ot?n.code===pe.Redirect||n.code===pe.SupersededByNewNavigation:!1)?Mr.REDIRECTING:Mr.FAILED),te(n=>n!==Mr.REDIRECTING),q(1)).subscribe(()=>{t()})}function wE(e){throw e}var EE={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},IE={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},lp=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=m(Ao),this.stateManager=m(cp),this.options=m(hc,{optional:!0})||{},this.pendingTasks=m(Rn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=m(gE),this.urlSerializer=m(cc),this.location=m(Cr),this.urlHandlingStrategy=m(mc),this._events=new U,this.errorHandler=this.options.errorHandler||wE,this.navigated=!1,this.routeReuseStrategy=m(vE),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=m(gc,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!m(fc,{optional:!0}),this.eventsSubscription=new z,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof ot&&r.code!==pe.Redirect&&r.code!==pe.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Gt)this.navigated=!0;else if(r instanceof zn){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),u=g({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||mE(i.source)},s);this.scheduleNavigation(a,xr,null,u,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}_E(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});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),xr,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let u=g({},i);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(o.state=u)}let a=this.parseUrl(n);this.scheduleNavigation(a,r,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(pc),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:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:u}=r,c=u?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":l=g(g({},this.currentUrlTree.queryParams),o);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=o||null}l!==null&&(l=this.removeEmptyProps(l));let d;try{let h=i?i.snapshot:this.routerState.snapshot.root;d=Wh(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return qh(d,n,l,c??null)}navigateByUrl(n,r={skipLocationChange:!1}){let i=Nr(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,xr,null,r)}navigate(n,r={skipLocationChange:!1}){return bE(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 i;if(r===!0?i=g({},EE):r===!1?i=g({},IE):i=r,Nr(n))return Th(this.currentUrlTree,n,i);let o=this.parseUrl(n);return Th(this.currentUrlTree,o,i)}removeEmptyProps(n){return Object.entries(n).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(n,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,u,c;s?(a=s.resolve,u=s.reject,c=s.promise):c=new Promise((d,h)=>{a=d,u=h});let l=this.pendingTasks.add();return CE(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:o,resolve:a,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function bE(e){for(let t=0;tn.\u0275providers)])}function SE(e){return e.routerState.root}function xE(){let e=m(He);return t=>{let n=e.get(qe);if(t!==n.components[0])return;let r=e.get(lp),i=e.get(TE);e.get(AE)===1&&r.initialNavigation(),e.get(NE,null,M.Optional)?.setUpPreloading(),e.get(ME,null,M.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var TE=new D("",{factory:()=>new U}),AE=new D("",{providedIn:"root",factory:()=>1});var NE=new D("");var fp=[];var zr="Service workers are disabled or not supported by this browser";function RE(e){return Mt(()=>ut(new Error(e)))}var Zn=class{constructor(t){if(this.serviceWorker=t,!t)this.worker=this.events=this.registration=RE(zr);else{let r=sn(t,"controllerchange").pipe(I(()=>t.controller)),i=Mt(()=>w(t.controller)),o=Pe(i,r);this.worker=o.pipe(te(l=>!!l)),this.registration=this.worker.pipe(ne(()=>t.getRegistration()));let c=sn(t,"message").pipe(I(l=>l.data)).pipe(te(l=>l&&l.type)).pipe(Os());c.connect(),this.events=c}}postMessage(t,n){return this.worker.pipe(q(1),Z(r=>{r.postMessage(g({action:t},n))})).toPromise().then(()=>{})}postMessageWithOperation(t,n,r){let i=this.waitForOperationCompleted(r),o=this.postMessage(t,n);return Promise.all([o,i]).then(([,s])=>s)}generateNonce(){return Math.round(Math.random()*1e7)}eventsOfType(t){let n;return typeof t=="string"?n=r=>r.type===t:n=r=>t.includes(r.type),this.events.pipe(te(n))}nextEventOfType(t){return this.eventsOfType(t).pipe(q(1))}waitForOperationCompleted(t){return this.eventsOfType("OPERATION_COMPLETED").pipe(te(n=>n.nonce===t),q(1),I(n=>{if(n.result!==void 0)return n.result;throw new Error(n.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}},OE=(()=>{class e{get isEnabled(){return this.sw.isEnabled}constructor(n){if(this.sw=n,this.pushManager=null,this.subscriptionChanges=new U,!n.isEnabled){this.messages=St,this.notificationClicks=St,this.subscription=St;return}this.messages=this.sw.eventsOfType("PUSH").pipe(I(i=>i.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(I(i=>i.data)),this.pushManager=this.sw.registration.pipe(I(i=>i.pushManager));let r=this.pushManager.pipe(ne(i=>i.getSubscription()));this.subscription=Mi(r,this.subscriptionChanges)}requestSubscription(n){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(zr));let r={userVisibleOnly:!0},i=this.decodeBase64(n.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),o=new Uint8Array(new ArrayBuffer(i.length));for(let s=0;ss.subscribe(r)),q(1)).toPromise().then(s=>(this.subscriptionChanges.next(s),s))}unsubscribe(){if(!this.sw.isEnabled)return Promise.reject(new Error(zr));let n=r=>{if(r===null)throw new Error("Not subscribed to push notifications.");return r.unsubscribe().then(i=>{if(!i)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})};return this.subscription.pipe(q(1),ne(n)).toPromise()}decodeBase64(n){return atob(n)}static{this.\u0275fac=function(r){return new(r||e)(N(Zn))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})(),FE=(()=>{class e{get isEnabled(){return this.sw.isEnabled}constructor(n){if(this.sw=n,!n.isEnabled){this.versionUpdates=St,this.unrecoverable=St;return}this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(zr));let n=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:n},n)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(zr));let n=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:n},n)}static{this.\u0275fac=function(r){return new(r||e)(N(Zn))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})();var hp=new D("");function PE(e,t,n,r){return()=>{if(!(Iu(r)&&"serviceWorker"in navigator&&n.enabled!==!1))return;let i=e.get(G),o=e.get(qe);i.runOutsideAngular(()=>{let a=navigator.serviceWorker,u=()=>a.controller?.postMessage({action:"INITIALIZE"});a.addEventListener("controllerchange",u),o.onDestroy(()=>{a.removeEventListener("controllerchange",u)})});let s;if(typeof n.registrationStrategy=="function")s=n.registrationStrategy();else{let[a,...u]=(n.registrationStrategy||"registerWhenStable:30000").split(":");switch(a){case"registerImmediately":s=w(null);break;case"registerWithDelay":s=pp(+u[0]||0);break;case"registerWhenStable":let c=B(e.get(qe).whenStable());s=u[0]?Mi(c,pp(+u[0])):c;break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${n.registrationStrategy}`)}}i.runOutsideAngular(()=>s.pipe(q(1)).subscribe(()=>navigator.serviceWorker.register(t,{scope:n.scope}).catch(a=>console.error("Service worker registration failed with:",a))))}}function pp(e){return w(null).pipe(Ns(e))}function kE(e,t){return new Zn(Iu(t)&&e.enabled!==!1?navigator.serviceWorker:void 0)}var Hr=class{};function gp(e,t={}){return xn([OE,FE,{provide:hp,useValue:e},{provide:Hr,useValue:t},{provide:Zn,useFactory:kE,deps:[Hr,rt]},{provide:No,useFactory:PE,deps:[He,hp,Hr,rt],multi:!0}])}var mp={providers:[uh({eventCoalescing:!0}),dp(fp),gp("ngsw-worker.js",{enabled:!lh(),registrationStrategy:"registerWhenStable:30000"})]};var bp=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}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{this.\u0275fac=function(r){return new(r||e)(Q(On),Q(kt))}}static{this.\u0275dir=ze({type:e})}}return e})(),_p=(()=>{class e extends bp{static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Nn(e)))(i||e)}})()}static{this.\u0275dir=ze({type:e,features:[Vt]})}}return e})(),wc=new D("");var LE={provide:wc,useExisting:Sn(()=>os),multi:!0};function VE(){let e=it()?it().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var jE=new D(""),os=(()=>{class e extends bp{constructor(n,r,i){super(n,r),this._compositionMode=i,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!VE())}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{this.\u0275fac=function(r){return new(r||e)(Q(On),Q(kt),Q(jE,8))}}static{this.\u0275dir=ze({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,i){r&1&&Ee("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[xo([LE]),Vt]})}}return e})();var BE=new D(""),UE=new D("");function Mp(e){return e!=null}function Sp(e){return Bt(e)?B(e):e}function xp(e){let t={};return e.forEach(n=>{t=n!=null?g(g({},t),n):t}),Object.keys(t).length===0?null:t}function Tp(e,t){return t.map(n=>n(e))}function $E(e){return!e.validate}function Ap(e){return e.map(t=>$E(t)?t:n=>t.validate(n))}function HE(e){if(!e)return null;let t=e.filter(Mp);return t.length==0?null:function(n){return xp(Tp(n,t))}}function Np(e){return e!=null?HE(Ap(e)):null}function zE(e){if(!e)return null;let t=e.filter(Mp);return t.length==0?null:function(n){let r=Tp(n,t).map(Sp);return Ts(r).pipe(I(xp))}}function Rp(e){return e!=null?zE(Ap(e)):null}function vp(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function GE(e){return e._rawValidators}function WE(e){return e._rawAsyncValidators}function vc(e){return e?Array.isArray(e)?e:[e]:[]}function ns(e,t){return Array.isArray(e)?e.includes(t):e===t}function yp(e,t){let n=vc(t);return vc(e).forEach(i=>{ns(n,i)||n.push(i)}),n}function Dp(e,t){return vc(t).filter(n=>!ns(e,n))}var rs=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Np(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Rp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=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}},yc=class extends rs{get formDirective(){return null}get path(){return null}},Yr=class extends rs{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Dc=class{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}},qE={"[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"},AN=P(g({},qE),{"[class.ng-submitted]":"isSubmitted"}),Op=(()=>{class e extends Dc{constructor(n){super(n)}static{this.\u0275fac=function(r){return new(r||e)(Q(Yr,2))}}static{this.\u0275dir=ze({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){r&2&&yr("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[Vt]})}}return e})();var Gr="VALID",ts="INVALID",Yn="PENDING",Wr="DISABLED",Kn=class{},is=class extends Kn{constructor(t,n){super(),this.value=t,this.source=n}},qr=class extends Kn{constructor(t,n){super(),this.pristine=t,this.source=n}},Zr=class extends Kn{constructor(t,n){super(),this.touched=t,this.source=n}},Qn=class extends Kn{constructor(t,n){super(),this.status=t,this.source=n}};function ZE(e){return(ss(e)?e.validators:e)||null}function YE(e){return Array.isArray(e)?Np(e):e||null}function QE(e,t){return(ss(t)?t.asyncValidators:e)||null}function KE(e){return Array.isArray(e)?Rp(e):e||null}function ss(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var Cc=class{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=Oo(()=>this.statusReactive()),this.statusReactive=bo(void 0),this._pristine=Oo(()=>this.pristineReactive()),this.pristineReactive=bo(!0),this._touched=Oo(()=>this.touchedReactive()),this.touchedReactive=bo(!1),this._events=new U,this.events=this._events.asObservable(),this._onDisabledChange=[],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 Ct(this.statusReactive)}set status(t){Ct(()=>this.statusReactive.set(t))}get valid(){return this.status===Gr}get invalid(){return this.status===ts}get pending(){return this.status==Yn}get disabled(){return this.status===Wr}get enabled(){return this.status!==Wr}get pristine(){return Ct(this.pristineReactive)}set pristine(t){Ct(()=>this.pristineReactive.set(t))}get dirty(){return!this.pristine}get touched(){return Ct(this.touchedReactive)}set touched(t){Ct(()=>this.touchedReactive.set(t))}get untouched(){return!this.touched}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(yp(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(yp(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Dp(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Dp(t,this._rawAsyncValidators))}hasValidator(t){return ns(this._rawValidators,t)}hasAsyncValidator(t){return ns(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(P(g({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Zr(!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(i=>{i.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 Zr(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(P(g({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new qr(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new qr(!0,r))}markAsPending(t={}){this.status=Yn;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Qn(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(P(g({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Wr,this.errors=null,this._forEachChild(i=>{i.disable(P(g({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new is(this.value,r)),this._events.next(new Qn(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(P(g({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Gr,this._forEachChild(r=>{r.enable(P(g({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(P(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===Gr||this.status===Yn)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new is(this.value,n)),this._events.next(new Qn(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(P(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()?Wr:Gr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=Yn,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=Sp(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{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,i)=>r&&r._find(i),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 Qn(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new Y,this.statusChanges=new Y}_calculateStatus(){return this._allControlsDisabled()?Wr:this.errors?ts:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Yn)?Yn:this._anyControlsHaveStatus(ts)?ts:Gr}_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(),i=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),i&&this._events.next(new qr(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new Zr(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ss(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=YE(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=KE(this._rawAsyncValidators)}};var Fp=new D("CallSetDisabledState",{providedIn:"root",factory:()=>Ec}),Ec="always";function JE(e,t){return[...t.path,e]}function XE(e,t,n=Ec){tI(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),nI(e,t),iI(e,t),rI(e,t),eI(e,t)}function Cp(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function eI(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function tI(e,t){let n=GE(e);t.validator!==null?e.setValidators(vp(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=WE(e);t.asyncValidator!==null?e.setAsyncValidators(vp(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let i=()=>e.updateValueAndValidity();Cp(t._rawValidators,i),Cp(t._rawAsyncValidators,i)}function nI(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Pp(e,t)})}function rI(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Pp(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function Pp(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function iI(e,t){let n=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function oI(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function sI(e){return Object.getPrototypeOf(e.constructor)===_p}function aI(e,t){if(!t)return null;Array.isArray(t);let n,r,i;return t.forEach(o=>{o.constructor===os?n=o:sI(o)?r=o:i=o}),i||r||n||null}function wp(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Ep(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var uI=class extends Cc{constructor(t=null,n,r){super(ZE(n),QE(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ss(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Ep(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){wp(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){wp(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){Ep(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 cI={provide:Yr,useExisting:Sn(()=>Ic)},Ip=Promise.resolve(),Ic=(()=>{class e extends Yr{constructor(n,r,i,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new uI,this._registered=!1,this.name="",this.update=new Y,this._parent=n,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=aI(this,o)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),oI(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){XE(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){Ip.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,i=r!==0&&Ro(r);Ip.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?JE(n,this._parent):[n]}static{this.\u0275fac=function(r){return new(r||e)(Q(yc,9),Q(BE,10),Q(UE,10),Q(wc,10),Q(Ut,8),Q(Fp,8))}}static{this.\u0275dir=ze({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[xo([cI]),Vt,An]})}}return e})();var lI={provide:wc,useExisting:Sn(()=>bc),multi:!0},bc=(()=>{class e extends _p{writeValue(n){this.setProperty("value",parseFloat(n))}registerOnChange(n){this.onChange=r=>{n(r==""?null:parseFloat(r))}}static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Nn(e)))(i||e)}})()}static{this.\u0275dir=ze({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(r,i){r&1&&Ee("change",function(s){return i.onChange(s.target.value)})("input",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},features:[xo([lI]),Vt]})}}return e})();var dI=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=yt({type:e})}static{this.\u0275inj=vt({})}}return e})();var kp=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Fp,useValue:n.callSetDisabledState??Ec}]}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=yt({type:e})}static{this.\u0275inj=vt({imports:[dI]})}}return e})();function hI(e,t){e&1&&(we(0,"p"),kn(1,"Drag any photo to this window or click to select."),Re())}function pI(e,t){e&1&&(we(0,"p"),kn(1,"Processing image..."),Re())}function gI(e,t){if(e&1){let n=So();we(0,"div",3),Pn(1,"img",5),we(2,"div",6)(3,"div",7)(4,"label")(5,"input",8),mu("ngModelChange",function(i){Ge(n);let o=jt();return nh(o.blurAmount,i)||(o.blurAmount=i),We(i)}),Ee("ngModelChange",function(){Ge(n);let i=jt();return We(i.processImage())}),Re()()(),we(6,"div",9)(7,"button",10),Ee("click",function(){Ge(n);let i=jt();return We(i.downloadImage())}),kn(8,"Download Blurred Image"),Re(),we(9,"button",11),Ee("click",function(i){return Ge(n),jt().reset(),We(i.stopPropagation())}),kn(10,"Reset"),Re()()()()}if(e&2){let n=jt();Lt(),pu("src",n.blurredImageUrl,yf),Lt(4),gu("ngModel",n.blurAmount)}}function mI(e,t){if(e&1){let n=So();we(0,"button",12),Ee("click",function(){Ge(n);let i=jt();return We(i.installPwa())}),kn(1," Install App "),Re()}}var as=class e{imageUrl=null;blurredImageUrl=null;isProcessing=!1;blurAmount=100;deferredPrompt;showInstallButton=!1;constructor(){this.handleInstallPrompt()}onDragOver(t){t.preventDefault(),t.stopPropagation()}onDrop(t){return Yt(this,null,function*(){t.preventDefault(),t.stopPropagation();let n=t.dataTransfer?.files[0];n&&n.type.startsWith("image/")&&(this.isProcessing=!0,this.imageUrl=yield this.readFile(n),yield this.processImage(),this.isProcessing=!1)})}onFileSelected(t){return Yt(this,null,function*(){let n=t.target,r=n.files?.[0];r&&r.type.startsWith("image/")&&(this.isProcessing=!0,this.imageUrl=yield this.readFile(r),yield this.processImage(),this.isProcessing=!1),n.value=""})}processImage(){return Yt(this,null,function*(){this.imageUrl&&(this.blurredImageUrl=yield this.applyBlur(this.imageUrl))})}readFile(t){return new Promise(n=>{let r=new FileReader;r.onload=()=>n(r.result),r.readAsDataURL(t)})}isSafari(){let t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")}applyBlur(t){return new Promise(n=>{let r=new Image;r.onload=()=>{let i=document.createElement("canvas"),o=i.getContext("2d"),s=r.width/r.height,a=1920,u=Math.round(a/s);if(i.width=a,i.height=u,this.isSafari()){let c=this.blurAmount/100,l=.4,d=_=>{let O=document.createElement("canvas"),k=O.getContext("2d"),K=_*(1-c*.48);return O.width=i.width*K,O.height=i.height*K,{canvas:O,ctx:k}},h=d(l),f=d(l*.5),p=d(l*.25);h.ctx.drawImage(r,0,0,h.canvas.width,h.canvas.height),f.ctx.drawImage(r,0,0,f.canvas.width,f.canvas.height),p.ctx.drawImage(r,0,0,p.canvas.width,p.canvas.height),o.fillStyle="#000000",o.fillRect(0,0,i.width,i.height),o.globalCompositeOperation="source-over",o.globalAlpha=.7*c,o.drawImage(p.canvas,0,0,i.width,i.height),o.globalAlpha=.6*c,o.drawImage(f.canvas,0,0,i.width,i.height),o.globalAlpha=Math.max(.2,.5*(1-c)),o.drawImage(h.canvas,0,0,i.width,i.height),o.globalCompositeOperation="overlay",o.globalAlpha=.2*(1-c*.5),o.drawImage(h.canvas,0,0,i.width,i.height),o.globalCompositeOperation="soft-light",o.globalAlpha=Math.max(.1,.3*(1-c)),o.drawImage(r,0,0,i.width,i.height)}else o.filter=`blur(${this.blurAmount}px)`,o.drawImage(r,0,0,i.width,i.height),o.globalCompositeOperation="source-over",o.filter=`blur(${this.blurAmount*.8}px) brightness(1.2) contrast(1.3)`,o.globalAlpha=.4,o.drawImage(r,0,0,i.width,i.height),o.globalCompositeOperation="overlay",o.globalAlpha=.1,o.drawImage(r,0,0,i.width,i.height);n(i.toDataURL("image/jpeg",.95))},r.src=t})}handleInstallPrompt(){window.addEventListener("beforeinstallprompt",t=>{t.preventDefault(),this.deferredPrompt=t,this.showInstallButton=!0}),window.addEventListener("appinstalled",()=>{this.showInstallButton=!1,this.deferredPrompt=null})}installPwa(){return Yt(this,null,function*(){if(!this.deferredPrompt)return;this.deferredPrompt.prompt();let{outcome:t}=yield this.deferredPrompt.userChoice;t==="accepted"&&(this.showInstallButton=!1),this.deferredPrompt=null})}downloadImage(){if(this.blurredImageUrl){let t=document.createElement("a");t.href=this.blurredImageUrl,t.download="blurred.jpg",t.click()}}reset(){this.imageUrl=null,this.blurredImageUrl=null,this.blurAmount=100}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=lo({type:e,selectors:[["app-root"]],standalone:!0,features:[To],decls:8,vars:6,consts:[["fileInput",""],[1,"container",3,"dragover","drop","click"],["type","file","accept","image/*",2,"display","none",3,"change"],[1,"result"],[1,"install-button"],["alt","Blurred image",3,"src"],[1,"overlay"],[1,"controls"],["type","range","min","20","max","200",3,"ngModelChange","ngModel"],[1,"button-group"],[3,"click"],[1,"reset",3,"click"],[1,"install-button",3,"click"]],template:function(n,r){if(n&1){let i=So();we(0,"div",1),Ee("dragover",function(s){return Ge(i),We(r.onDragOver(s))})("drop",function(s){return Ge(i),We(r.onDrop(s))})("click",function(){Ge(i);let s=th(2);return We(!r.imageUrl&&s.click())}),we(1,"input",2,0),Ee("change",function(s){return Ge(i),We(r.onFileSelected(s))}),Re(),Mo(3,hI,2,0,"p")(4,pI,2,0,"p")(5,gI,11,2,"div",3),Re(),Mo(6,mI,2,0,"button",4),Pn(7,"router-outlet")}n&2&&(yr("has-image",r.imageUrl),Lt(3),Dr(r.imageUrl?-1:3),Lt(),Dr(r.isProcessing?4:-1),Lt(),Dr(r.blurredImageUrl?5:-1),Lt(),Dr(r.showInstallButton?6:-1))},dependencies:[dc,wu,kp,os,bc,Op,Ic],styles:["*[_ngcontent-%COMP%]{box-sizing:border-box}.container[_ngcontent-%COMP%]{height:100vh;padding:0;margin:0;overflow:hidden;display:flex;flex-direction:column;box-sizing:border-box;justify-content:center;align-items:center}.container[_ngcontent-%COMP%]:not(.has-image){border:4px dashed #ccc;border-radius:4px;padding:20px;cursor:pointer}.result[_ngcontent-%COMP%]{margin:0;position:relative;width:100%;height:100%;display:flex}.result[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;border-radius:0;box-shadow:none}.overlay[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:20px;background:#0003;opacity:.1;transition:opacity .3s ease;border-radius:8px;padding-top:20px}.overlay[_ngcontent-%COMP%]:hover{opacity:1}.controls[_ngcontent-%COMP%]{background:#000000b3;padding:8px 15px;border-radius:4px}.controls[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;align-items:center;color:#fff}.controls[_ngcontent-%COMP%] input[type=range][_ngcontent-%COMP%]{width:200px}button[_ngcontent-%COMP%]:hover{background-color:#0056b3}.button-group[_ngcontent-%COMP%]{display:flex;gap:10px}.reset[_ngcontent-%COMP%]{background-color:#dc3545}.reset[_ngcontent-%COMP%]:hover{background-color:#c82333}.container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1.2rem;color:#666}.install-button[_ngcontent-%COMP%]{position:fixed;bottom:20px;right:20px;padding:12px 24px;background-color:#007bff;color:#fff;border:none;border-radius:24px;cursor:pointer;box-shadow:0 2px 5px #0003;z-index:1000;transition:transform .2s ease}.install-button[_ngcontent-%COMP%]:hover{transform:scale(1.05);background-color:#0056b3}"]})};Sh(as,mp).catch(e=>console.error(e)); diff --git a/main-UDCRRYV7.js b/main-UDCRRYV7.js new file mode 100644 index 0000000..c9055e2 --- /dev/null +++ b/main-UDCRRYV7.js @@ -0,0 +1,7 @@ +var yg=Object.defineProperty,Dg=Object.defineProperties;var Cg=Object.getOwnPropertyDescriptors;var il=Object.getOwnPropertySymbols;var wg=Object.prototype.hasOwnProperty,Eg=Object.prototype.propertyIsEnumerable;var ol=(e,t,n)=>t in e?yg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,p=(e,t)=>{for(var n in t||={})wg.call(t,n)&&ol(e,n,t[n]);if(il)for(var n of il(t))Eg.call(t,n)&&ol(e,n,t[n]);return e},k=(e,t)=>Dg(e,Cg(t));var rn=(e,t,n)=>new Promise((r,i)=>{var o=u=>{try{a(n.next(u))}catch(c){i(c)}},s=u=>{try{a(n.throw(u))}catch(c){i(c)}},a=u=>u.done?r(u.value):Promise.resolve(u.value).then(o,s);a((n=n.apply(e,t)).next())});function sl(e,t){return Object.is(e,t)}var Q=null,gi=!1,mi=1,Je=Symbol("SIGNAL");function P(e){let t=Q;return Q=e,t}function al(){return Q}var ur={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 Us(e){if(gi)throw new Error("");if(Q===null)return;Q.consumerOnSignalRead(e);let t=Q.nextProducerIndex++;if(Ci(Q),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Hs(e){Ci(e);for(let t=0;t0}function Ci(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function fl(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function hl(e){return e.producerNode!==void 0}function pl(e){let t=Object.create(_g);t.computation=e;let n=()=>{if(ul(t),Us(t),t.value===vi)throw t.error;return t.value};return n[Je]=t,n}var js=Symbol("UNSET"),Bs=Symbol("COMPUTING"),vi=Symbol("ERRORED"),_g=k(p({},ur),{value:js,dirty:!0,error:null,equal:sl,producerMustRecompute(e){return e.value===js||e.value===Bs},producerRecomputeValue(e){if(e.value===Bs)throw new Error("Detected cycle in computations.");let t=e.value;e.value=Bs;let n=yi(e),r;try{r=e.computation()}catch(i){r=vi,e.error=i}finally{$s(e,n)}if(t!==js&&t!==vi&&r!==vi&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function Mg(){throw new Error}var gl=Mg;function ml(){gl()}function vl(e){gl=e}var Sg=null;function yl(e){let t=Object.create(Cl);t.value=e;let n=()=>(Us(t),t.value);return n[Je]=t,n}function Gs(e,t){ll()||ml(),e.equal(e.value,t)||(e.value=t,xg(e))}function Dl(e,t){ll()||ml(),Gs(e,t(e.value))}var Cl=k(p({},ur),{equal:sl,value:void 0});function xg(e){e.version++,Ig(),cl(e),Sg?.()}function v(e){return typeof e=="function"}function on(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 wi=on(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: +${n.map((r,i)=>`${i+1}) ${r.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=n});function At(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var W=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 o of n)o.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(v(r))try{r()}catch(o){t=o instanceof wi?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{wl(o)}catch(s){t=t??[],s instanceof wi?t=[...t,...s.errors]:t.push(s)}}if(t)throw new wi(t)}}add(t){var n;if(t&&t!==this)if(this.closed)wl(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)&&At(n,t)}remove(t){let{_finalizers:n}=this;n&&At(n,t),t instanceof e&&t._removeParent(this)}};W.EMPTY=(()=>{let e=new W;return e.closed=!0,e})();var Ws=W.EMPTY;function Ei(e){return e instanceof W||e&&"closed"in e&&v(e.remove)&&v(e.add)&&v(e.unsubscribe)}function wl(e){v(e)?e():e.unsubscribe()}var xe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var sn={setTimeout(e,t,...n){let{delegate:r}=sn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=sn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Ii(e){sn.setTimeout(()=>{let{onUnhandledError:t}=xe;if(t)t(e);else throw e})}function Xe(){}var El=qs("C",void 0,void 0);function Il(e){return qs("E",void 0,e)}function bl(e){return qs("N",e,void 0)}function qs(e,t,n){return{kind:e,value:t,error:n}}var Nt=null;function an(e){if(xe.useDeprecatedSynchronousErrorHandling){let t=!Nt;if(t&&(Nt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Nt;if(Nt=null,n)throw r}}else e()}function _l(e){xe.useDeprecatedSynchronousErrorHandling&&Nt&&(Nt.errorThrown=!0,Nt.error=e)}var Rt=class extends W{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Ei(t)&&t.add(this)):this.destination=Ng}static create(t,n,r){return new un(t,n,r)}next(t){this.isStopped?Ys(bl(t),this):this._next(t)}error(t){this.isStopped?Ys(Il(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Ys(El,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()}}},Tg=Function.prototype.bind;function Zs(e,t){return Tg.call(e,t)}var Qs=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){bi(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){bi(r)}else bi(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){bi(n)}}},un=class extends Rt{constructor(t,n,r){super();let i;if(v(t)||!t)i={next:t??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&xe.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&Zs(t.next,o),error:t.error&&Zs(t.error,o),complete:t.complete&&Zs(t.complete,o)}):i=t}this.destination=new Qs(i)}};function bi(e){xe.useDeprecatedSynchronousErrorHandling?_l(e):Ii(e)}function Ag(e){throw e}function Ys(e,t){let{onStoppedNotification:n}=xe;n&&sn.setTimeout(()=>n(e,t))}var Ng={closed:!0,next:Xe,error:Ag,complete:Xe};var cn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function he(e){return e}function Ks(...e){return Js(e)}function Js(e){return e.length===0?he:e.length===1?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}var T=(()=>{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,i){let o=Og(n)?n:new un(n,r,i);return an(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Ml(r),new r((i,o)=>{let s=new un({next:a=>{try{n(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[cn](){return this}pipe(...n){return Js(n)(this)}toPromise(n){return n=Ml(n),new n((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function Ml(e){var t;return(t=e??xe.Promise)!==null&&t!==void 0?t:Promise}function Rg(e){return e&&v(e.next)&&v(e.error)&&v(e.complete)}function Og(e){return e&&e instanceof Rt||Rg(e)&&Ei(e)}function Xs(e){return v(e?.lift)}function A(e){return t=>{if(Xs(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 N(e,t,n,r,i){return new ea(e,t,n,r,i)}var ea=class extends Rt{constructor(t,n,r,i,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=i?function(a){try{i(a)}catch(u){t.error(u)}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 ln(){return A((e,t)=>{let n=null;e._refCount++;let r=N(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let i=e._connection,o=n;n=null,i&&(!o||i===o)&&i.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var lt=class extends T{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Xs(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 W;let n=this.getSubject();t.add(this.source.subscribe(N(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=W.EMPTY)}return t}refCount(){return ln()(this)}};var Sl=on(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var H=(()=>{class e extends T{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new _i(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Sl}next(n){an(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){an(()=>{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(){an(()=>{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:i,observers:o}=this;return r||i?Ws:(this.currentObservers=null,o.push(n),new W(()=>{this.currentObservers=null,At(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new T;return n.source=this,n}}return e.create=(t,n)=>new _i(t,n),e})(),_i=class extends H{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Ws}};var te=class extends H{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 ta={now(){return(ta.delegate||Date).now()},delegate:void 0};var Mi=class extends W{constructor(t,n){super()}schedule(t,n=0){return this}};var cr={setInterval(e,t,...n){let{delegate:r}=cr;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=cr;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var Si=class extends Mi{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 i=this.id,o=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(o,i,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(o,this.id,n),this}requestAsyncId(t,n,r=0){return cr.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&&cr.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,i;try{this.work(t)}catch(o){r=!0,i=o||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,At(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var dn=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)}};dn.now=ta.now;var xi=class extends dn{constructor(t,n=dn.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 na=new xi(Si),xl=na;var ae=new T(e=>e.complete());function Ti(e){return e&&v(e.schedule)}function ra(e){return e[e.length-1]}function Ai(e){return v(ra(e))?e.pop():void 0}function ke(e){return Ti(ra(e))?e.pop():void 0}function Tl(e,t){return typeof ra(e)=="number"?e.pop():t}function Nl(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(l){try{c(r.next(l))}catch(d){s(d)}}function u(l){try{c(r.throw(l))}catch(d){s(d)}}function c(l){l.done?o(l.value):i(l.value).then(a,u)}c((r=r.apply(e,t||[])).next())})}function Al(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 Ot(e){return this instanceof Ot?(this.v=e,this):new Ot(e)}function Rl(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(f){return function(g){return Promise.resolve(g).then(f,d)}}function a(f,g){r[f]&&(i[f]=function(M){return new Promise(function(y,b){o.push([f,M,y,b])>1||u(f,M)})},g&&(i[f]=g(i[f])))}function u(f,g){try{c(r[f](g))}catch(M){h(o[0][3],M)}}function c(f){f.value instanceof Ot?Promise.resolve(f.value.v).then(l,d):h(o[0][2],f)}function l(f){u("next",f)}function d(f){u("throw",f)}function h(f,g){f(g),o.shift(),o.length&&u(o[0][0],o[0][1])}}function Ol(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 Al=="function"?Al(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,u){s=e[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(c){o({value:c,done:a})},s)}}var fn=e=>e&&typeof e.length=="number"&&typeof e!="function";function Ni(e){return v(e?.then)}function Ri(e){return v(e[cn])}function Oi(e){return Symbol.asyncIterator&&v(e?.[Symbol.asyncIterator])}function Fi(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 Fg(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Pi=Fg();function ki(e){return v(e?.[Pi])}function Li(e){return Rl(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:i}=yield Ot(n.read());if(i)return yield Ot(void 0);yield yield Ot(r)}}finally{n.releaseLock()}})}function Vi(e){return v(e?.getReader)}function j(e){if(e instanceof T)return e;if(e!=null){if(Ri(e))return Pg(e);if(fn(e))return kg(e);if(Ni(e))return Lg(e);if(Oi(e))return Fl(e);if(ki(e))return Vg(e);if(Vi(e))return jg(e)}throw Fi(e)}function Pg(e){return new T(t=>{let n=e[cn]();if(v(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function kg(e){return new T(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Ii)})}function Vg(e){return new T(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Fl(e){return new T(t=>{Bg(e,t).catch(n=>t.error(n))})}function jg(e){return Fl(Li(e))}function Bg(e,t){var n,r,i,o;return Nl(this,void 0,void 0,function*(){try{for(n=Ol(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})}function le(e,t,n,r=0,i=!1){let o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function ji(e,t=0){return A((n,r)=>{n.subscribe(N(r,i=>le(r,e,()=>r.next(i),t),()=>le(r,e,()=>r.complete(),t),i=>le(r,e,()=>r.error(i),t)))})}function Bi(e,t=0){return A((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Pl(e,t){return j(e).pipe(Bi(t),ji(t))}function kl(e,t){return j(e).pipe(Bi(t),ji(t))}function Ll(e,t){return new T(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Vl(e,t){return new T(n=>{let r;return le(n,t,()=>{r=e[Pi](),le(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){n.error(s);return}o?n.complete():n.next(i)},0,!0)}),()=>v(r?.return)&&r.return()})}function Ui(e,t){if(!e)throw new Error("Iterable cannot be null");return new T(n=>{le(n,t,()=>{let r=e[Symbol.asyncIterator]();le(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function jl(e,t){return Ui(Li(e),t)}function Bl(e,t){if(e!=null){if(Ri(e))return Pl(e,t);if(fn(e))return Ll(e,t);if(Ni(e))return kl(e,t);if(Oi(e))return Ui(e,t);if(ki(e))return Vl(e,t);if(Vi(e))return jl(e,t)}throw Fi(e)}function $(e,t){return t?Bl(e,t):j(e)}function E(...e){let t=ke(e);return $(e,t)}function dt(e,t){let n=v(e)?e:()=>e,r=i=>i.error(n());return new T(t?i=>t.schedule(r,0,i):r)}function ia(e){return!!e&&(e instanceof T||v(e.lift)&&v(e.subscribe))}var et=on(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Ul(e){return e instanceof Date&&!isNaN(e)}function _(e,t){return A((n,r)=>{let i=0;n.subscribe(N(r,o=>{r.next(e.call(t,o,i++))}))})}var{isArray:Ug}=Array;function $g(e,t){return Ug(t)?e(...t):e(t)}function hn(e){return _(t=>$g(e,t))}var{isArray:Hg}=Array,{getPrototypeOf:zg,prototype:Gg,keys:Wg}=Object;function $i(e){if(e.length===1){let t=e[0];if(Hg(t))return{args:t,keys:null};if(qg(t)){let n=Wg(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function qg(e){return e&&typeof e=="object"&&zg(e)===Gg}function Hi(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}function zi(...e){let t=ke(e),n=Ai(e),{args:r,keys:i}=$i(e);if(r.length===0)return $([],t);let o=new T(Zg(r,t,i?s=>Hi(i,s):he));return n?o.pipe(hn(n)):o}function Zg(e,t,n=he){return r=>{$l(t,()=>{let{length:i}=e,o=new Array(i),s=i,a=i;for(let u=0;u{let c=$(e[u],t),l=!1;c.subscribe(N(r,d=>{o[u]=d,l||(l=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function $l(e,t,n){e?le(n,e,t):t()}function Hl(e,t,n,r,i,o,s,a){let u=[],c=0,l=0,d=!1,h=()=>{d&&!u.length&&!c&&t.complete()},f=M=>c{o&&t.next(M),c++;let y=!1;j(n(M,l++)).subscribe(N(t,b=>{i?.(b),o?f(b):t.next(b)},()=>{y=!0},void 0,()=>{if(y)try{for(c--;u.length&&cg(b)):g(b)}h()}catch(b){t.error(b)}}))};return e.subscribe(N(t,f,()=>{d=!0,h()})),()=>{a?.()}}function z(e,t,n=1/0){return v(t)?z((r,i)=>_((o,s)=>t(r,o,i,s))(j(e(r,i))),n):(typeof t=="number"&&(n=t),A((r,i)=>Hl(r,i,e,n)))}function lr(e=1/0){return z(he,e)}function zl(){return lr(1)}function Le(...e){return zl()($(e,ke(e)))}function Ft(e){return new T(t=>{j(e()).subscribe(t)})}function oa(...e){let t=Ai(e),{args:n,keys:r}=$i(e),i=new T(o=>{let{length:s}=n;if(!s){o.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=h},()=>u--,void 0,()=>{(!u||!d)&&(c||o.next(r?Hi(r,a):a),o.complete())}))}});return t?i.pipe(hn(t)):i}var Yg=["addListener","removeListener"],Qg=["addEventListener","removeEventListener"],Kg=["on","off"];function pn(e,t,n,r){if(v(n)&&(r=n,n=void 0),r)return pn(e,t,n).pipe(hn(r));let[i,o]=em(e)?Qg.map(s=>a=>e[s](t,a,n)):Jg(e)?Yg.map(Gl(e,t)):Xg(e)?Kg.map(Gl(e,t)):[];if(!i&&fn(e))return z(s=>pn(s,t,n))(j(e));if(!i)throw new TypeError("Invalid event target");return new T(s=>{let a=(...u)=>s.next(1o(a)})}function Gl(e,t){return n=>r=>e[n](t,r)}function Jg(e){return v(e.addListener)&&v(e.removeListener)}function Xg(e){return v(e.on)&&v(e.off)}function em(e){return v(e.addEventListener)&&v(e.removeEventListener)}function Wl(e=0,t,n=xl){let r=-1;return t!=null&&(Ti(t)?n=t:r=t),new T(i=>{let o=Ul(e)?+e-n.now():e;o<0&&(o=0);let s=0;return n.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}function Gi(...e){let t=ke(e),n=Tl(e,1/0),r=e;return r.length?r.length===1?j(r[0]):lr(n)($(r,t)):ae}var Pt=new T(Xe);function oe(e,t){return A((n,r)=>{let i=0;n.subscribe(N(r,o=>e.call(t,o,i++)&&r.next(o)))})}function ft(e){return A((t,n)=>{let r=null,i=!1,o;r=t.subscribe(N(n,void 0,void 0,s=>{o=j(e(s,ft(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function ql(e,t,n,r,i){return(o,s)=>{let a=n,u=t,c=0;o.subscribe(N(s,l=>{let d=c++;u=a?e(u,l,d):(a=!0,l),r&&s.next(u)},i&&(()=>{a&&s.next(u),s.complete()})))}}function gn(e,t){return v(t)?z(e,t,1):z(e,1)}function Zl(e){return new T(t=>e.subscribe(t))}var tm={connector:()=>new H};function Wi(e,t=tm){let{connector:n}=t;return A((r,i)=>{let o=n();j(e(Zl(o))).subscribe(i),i.add(r.subscribe(o))})}function ht(e){return A((t,n)=>{let r=!1;t.subscribe(N(n,i=>{r=!0,n.next(i)},()=>{r||n.next(e),n.complete()}))})}function K(e){return e<=0?()=>ae:A((t,n)=>{let r=0;t.subscribe(N(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function Yl(){return A((e,t)=>{e.subscribe(N(t,Xe))})}function dr(e){return _(()=>e)}function sa(e,t){return t?n=>Le(t.pipe(K(1),Yl()),n.pipe(sa(e))):z((n,r)=>j(e(n,r)).pipe(K(1),dr(n)))}function aa(e,t=na){let n=Wl(e,t);return sa(()=>n)}function qi(e=nm){return A((t,n)=>{let r=!1;t.subscribe(N(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(e())))})}function nm(){return new et}function fr(e){return A((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Ve(e,t){let n=arguments.length>=2;return r=>r.pipe(e?oe((i,o)=>e(i,o,r)):he,K(1),n?ht(t):qi(()=>new et))}function mn(e){return e<=0?()=>ae:A((t,n)=>{let r=[];t.subscribe(N(n,i=>{r.push(i),e{for(let i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function ua(e,t){let n=arguments.length>=2;return r=>r.pipe(e?oe((i,o)=>e(i,o,r)):he,mn(1),n?ht(t):qi(()=>new et))}function Ql(e,t){let n=v(e)?e:()=>e;return v(t)?Wi(t,{connector:n}):r=>new lt(r,n)}function ca(e){return e?t=>Wi(e)(t):t=>Ql(new H)(t)}function la(e,t){return A(ql(e,t,arguments.length>=2,!0))}function da(...e){let t=ke(e);return A((n,r)=>{(t?Le(e,n,t):Le(e,n)).subscribe(r)})}function se(e,t){return A((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(N(r,u=>{i?.unsubscribe();let c=0,l=o++;j(e(u,l)).subscribe(i=N(r,d=>r.next(t?t(u,d,l,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function fa(e){return A((t,n)=>{j(e).subscribe(N(n,()=>n.complete(),Xe)),!n.closed&&t.subscribe(n)})}function J(e,t,n){let r=v(e)||t||n?{next:e,error:t,complete:n}:e;return r?A((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(N(o,u=>{var c;(c=r.next)===null||c===void 0||c.call(r,u),o.next(u)},()=>{var u;a=!1,(u=r.complete)===null||u===void 0||u.call(r),o.complete()},u=>{var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,u),o.error(u)},()=>{var u,c;a&&((u=r.unsubscribe)===null||u===void 0||u.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):he}var Od="https://g.co/ng/security#xss",D=class extends Error{constructor(t,n){super(lu(t,n)),this.code=t}};function lu(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function So(e){return{toString:e}.toString()}function B(e){for(let t in e)if(e[t]===B)return t;throw Error("Could not find renamed property on target object.")}function rm(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function de(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(de).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 Kl(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var im=B({__forward_ref__:B});function Pn(e){return e.__forward_ref__=Pn,e.toString=function(){return de(this())},e}function ue(e){return Fd(e)?e():e}function Fd(e){return typeof e=="function"&&e.hasOwnProperty(im)&&e.__forward_ref__===Pn}function w(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ct(e){return{providers:e.providers||[],imports:e.imports||[]}}function xo(e){return Jl(e,kd)||Jl(e,Ld)}function Pd(e){return xo(e)!==null}function Jl(e,t){return e.hasOwnProperty(t)?e[t]:null}function om(e){let t=e&&(e[kd]||e[Ld]);return t||null}function Xl(e){return e&&(e.hasOwnProperty(ed)||e.hasOwnProperty(sm))?e[ed]:null}var kd=B({\u0275prov:B}),ed=B({\u0275inj:B}),Ld=B({ngInjectableDef:B}),sm=B({ngInjectorDef:B}),C=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=w({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Vd(e){return e&&!!e.\u0275providers}var am=B({\u0275cmp:B}),um=B({\u0275dir:B}),cm=B({\u0275pipe:B}),lm=B({\u0275mod:B}),no=B({\u0275fac:B}),gr=B({__NG_ELEMENT_ID__:B}),td=B({__NG_ENV_ID__:B});function jd(e){return typeof e=="string"?e:e==null?"":String(e)}function dm(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():jd(e)}function fm(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new D(-200,e)}function du(e,t){throw new D(-201,!1)}var x=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}(x||{}),Ma;function Bd(){return Ma}function ye(e){let t=Ma;return Ma=e,t}function Ud(e,t,n){let r=xo(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&x.Optional)return null;if(t!==void 0)return t;du(e,"Injector")}var hm={},mr=hm,pm="__NG_DI_FLAG__",ro="ngTempTokenPath",gm="ngTokenPath",mm=/\n/gm,vm="\u0275",nd="__source",Cn;function ym(){return Cn}function pt(e){let t=Cn;return Cn=e,t}function Dm(e,t=x.Default){if(Cn===void 0)throw new D(-203,!1);return Cn===null?Ud(e,void 0,t):Cn.get(e,t&x.Optional?null:void 0,t)}function O(e,t=x.Default){return(Bd()||Dm)(ue(e),t)}function m(e,t=x.Default){return O(e,To(t))}function To(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Sa(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):de(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(mm,` + `)}`}function En(e,t){let n=e.hasOwnProperty(no);return n?e[no]:null}function fu(e,t){e.forEach(n=>Array.isArray(n)?fu(n,t):t(n))}function $d(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function io(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Im(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(i===1)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){let o=i-2;e[i]=e[o],i--}e[t]=n,e[t+1]=r}}function bm(e,t,n){let r=Ir(e,t);return r>=0?e[r|1]=n:(r=~r,Im(e,r,t,n)),r}function ha(e,t){let n=Ir(e,t);if(n>=0)return e[n|1]}function Ir(e,t){return _m(e,t,1)}function _m(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=e[o<t?i=o:r=o+1}return~(i<t){s=o-1;break}}}for(;o-1){let o;for(;++io?d="":d=i[l+1].toLowerCase(),r&2&&c!==d){if(Te(r))return!1;s=!0}}}}return Te(r)||s}function Te(e){return(e&1)===0}function Rm(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!Te(s)&&(t+=id(o,i),i=""),r=s,o=o||!Te(r);n++}return i!==""&&(t+=id(o,i)),t}function Lm(e){return e.map(km).join(",")}function Vm(e){let t=[],n=[],r=1,i=2;for(;r{let t=Kd(e),n=k(p({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Gd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ue.Emulated,styles:e.styles||De,_:null,schemas:e.schemas||null,tView:null,id:""});Jd(n);let r=e.dependencies;return n.directiveDefs=sd(r,!1),n.pipeDefs=sd(r,!0),n.id=Um(n),n})}function jm(e){return Lt(e)||qd(e)}function Bm(e){return e!==null}function wt(e){return So(()=>({type:e.type,bootstrap:e.bootstrap||De,declarations:e.declarations||De,imports:e.imports||De,exports:e.exports||De,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function od(e,t){if(e==null)return In;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],o,s,a=vt.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),t?(n[o]=a!==vt.None?[r,a]:r,t[o]=s):n[o]=r}return n}function We(e){return So(()=>{let t=Kd(e);return Jd(t),t})}function Lt(e){return e[am]||null}function qd(e){return e[um]||null}function Zd(e){return e[cm]||null}function Yd(e){let t=Lt(e)||qd(e)||Zd(e);return t!==null?t.standalone:!1}function Qd(e,t){let n=e[lm]||null;if(!n&&t===!0)throw new Error(`Type ${de(e)} does not have '\u0275mod' property.`);return n}function Kd(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||In,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||De,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:od(e.inputs,t),outputs:od(e.outputs),debugInfo:null}}function Jd(e){e.features?.forEach(t=>t(e))}function sd(e,t){if(!e)return null;let n=t?Zd:jm;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Bm)}function Um(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,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].join("|");for(let i of n)t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function kn(e){return{\u0275providers:e}}function $m(...e){return{\u0275providers:Xd(!0,e),\u0275fromNgModule:!0}}function Xd(e,...t){let n=[],r=new Set,i,o=s=>{n.push(s)};return fu(t,s=>{let a=s;Ta(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&ef(i,o),n}function ef(e,t){for(let n=0;n{t(o,r)})}}function Ta(e,t,n,r){if(e=ue(e),!e)return!1;let i=null,o=Xl(e),s=!o&&Lt(e);if(!o&&!s){let u=e.ngModule;if(o=Xl(u),o)i=u;else return!1}else{if(s&&!s.standalone)return!1;i=e}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)Ta(c,t,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let c;try{fu(o.imports,l=>{Ta(l,t,n,r)&&(c||=[],c.push(l))})}finally{}c!==void 0&&ef(c,t)}if(!a){let c=En(i)||(()=>new i);t({provide:i,useFactory:c,deps:De},i),t({provide:zd,useValue:i,multi:!0},i),t({provide:bn,useValue:()=>O(i),multi:!0},i)}let u=o.providers;if(u!=null&&!a){let c=e;pu(u,l=>{t(l,c)})}}else return!1;return i!==e&&e.providers!==void 0}function pu(e,t){for(let n of e)Vd(n)&&(n=n.\u0275providers),Array.isArray(n)?pu(n,t):t(n)}var Hm=B({provide:String,useValue:B});function tf(e){return e!==null&&typeof e=="object"&&Hm in e}function zm(e){return!!(e&&e.useExisting)}function Gm(e){return!!(e&&e.useFactory)}function _n(e){return typeof e=="function"}function Wm(e){return!!e.useClass}var No=new C(""),Ki={},qm={},pa;function gu(){return pa===void 0&&(pa=new oo),pa}var we=class{},yr=class extends we{get destroyed(){return this._destroyed}constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Na(t,s=>this.processProvider(s)),this.records.set(Hd,vn(void 0,this)),i.has("environment")&&this.records.set(we,vn(void 0,this));let o=this.records.get(No);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(zd,De,x.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=P(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(),P(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=pt(this),r=ye(void 0),i;try{return t()}finally{pt(n),ye(r)}}get(t,n=mr,r=x.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(td))return t[td](this);r=To(r);let i,o=pt(this),s=ye(void 0);try{if(!(r&x.SkipSelf)){let u=this.records.get(t);if(u===void 0){let c=Jm(t)&&xo(t);c&&this.injectableDefInScope(c)?u=vn(Aa(t),Ki):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=r&x.Self?gu():this.parent;return n=r&x.Optional&&n===mr?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[ro]=a[ro]||[]).unshift(de(t)),o)throw a;return wm(a,t,"R3InjectorError",this.source)}else throw a}finally{ye(s),pt(o)}}resolveInjectorInitializers(){let t=P(null),n=pt(this),r=ye(void 0),i;try{let o=this.get(bn,De,x.Self);for(let s of o)s()}finally{pt(n),ye(r),P(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(de(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new D(205,!1)}processProvider(t){t=ue(t);let n=_n(t)?t:ue(t&&t.provide),r=Ym(t);if(!_n(t)&&t.multi===!0){let i=this.records.get(n);i||(i=vn(void 0,Ki,!0),i.factory=()=>Sa(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=P(null);try{return n.value===Ki&&(n.value=qm,n.value=n.factory()),typeof n.value=="object"&&n.value&&Km(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{P(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=ue(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 Aa(e){let t=xo(e),n=t!==null?t.factory:En(e);if(n!==null)return n;if(e instanceof C)throw new D(204,!1);if(e instanceof Function)return Zm(e);throw new D(204,!1)}function Zm(e){if(e.length>0)throw new D(204,!1);let n=om(e);return n!==null?()=>n.factory(e):()=>new e}function Ym(e){if(tf(e))return vn(void 0,e.useValue);{let t=nf(e);return vn(t,Ki)}}function nf(e,t,n){let r;if(_n(e)){let i=ue(e);return En(i)||Aa(i)}else if(tf(e))r=()=>ue(e.useValue);else if(Gm(e))r=()=>e.useFactory(...Sa(e.deps||[]));else if(zm(e))r=()=>O(ue(e.useExisting));else{let i=ue(e&&(e.useClass||e.provide));if(Qm(e))r=()=>new i(...Sa(e.deps));else return En(i)||Aa(i)}return r}function vn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Qm(e){return!!e.deps}function Km(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Jm(e){return typeof e=="function"||typeof e=="object"&&e instanceof C}function Na(e,t){for(let n of e)Array.isArray(n)?Na(n,t):n&&Vd(n)?Na(n.\u0275providers,t):t(n)}function rt(e,t){e instanceof yr&&e.assertNotDestroyed();let n,r=pt(e),i=ye(void 0);try{return t()}finally{pt(r),ye(i)}}function Xm(){return Bd()!==void 0||ym()!=null}function ev(e){return typeof e=="function"}var it=0,R=1,I=2,ce=3,Ae=4,Re=5,so=6,ao=7,Ee=8,Mn=9,$e=10,ne=11,Dr=12,ad=13,Ln=14,He=15,Sn=16,yn=17,xn=18,Ro=19,rf=20,gt=21,ga=22,Ce=23,Ne=25,of=1;var Vt=7,uo=8,co=9,pe=10,lo=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(lo||{});function mt(e){return Array.isArray(e)&&typeof e[of]=="object"}function ot(e){return Array.isArray(e)&&e[of]===!0}function sf(e){return(e.flags&4)!==0}function Oo(e){return e.componentOffset>-1}function mu(e){return(e.flags&1)===1}function yt(e){return!!e.template}function Ra(e){return(e[I]&512)!==0}var Oa=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function af(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function Vn(){return uf}function uf(e){return e.type.prototype.ngOnChanges&&(e.setInput=nv),tv}Vn.ngInherit=!0;function tv(){let e=lf(this),t=e?.current;if(t){let n=e.previous;if(n===In)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function nv(e,t,n,r,i){let o=this.declaredInputs[r],s=lf(e)||rv(e,{previous:In,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[o];a[o]=new Oa(c&&c.currentValue,n,u===In),af(e,t,i,n)}var cf="__ngSimpleChanges__";function lf(e){return e[cf]||null}function rv(e,t){return e[cf]=t}var ud=null;var je=function(e,t,n){ud?.(e,t,n)},iv="svg",ov="math";function ze(e){for(;Array.isArray(e);)e=e[it];return e}function sv(e,t){return ze(t[e])}function Oe(e,t){return ze(t[e.index])}function vu(e,t){return e.data[t]}function av(e,t){return e[t]}function Et(e,t){let n=t[e];return mt(n)?n:n[it]}function yu(e){return(e[I]&128)===128}function uv(e){return ot(e[ce])}function fo(e,t){return t==null?null:e[t]}function df(e){e[yn]=0}function ff(e){e[I]&1024||(e[I]|=1024,yu(e)&&Po(e))}function cv(e,t){for(;e>0;)t=t[Ln],e--;return t}function Fo(e){return!!(e[I]&9216||e[Ce]?.dirty)}function Fa(e){e[$e].changeDetectionScheduler?.notify(8),e[I]&64&&(e[I]|=1024),Fo(e)&&Po(e)}function Po(e){e[$e].changeDetectionScheduler?.notify(0);let t=jt(e);for(;t!==null&&!(t[I]&8192||(t[I]|=8192,!yu(t)));)t=jt(t)}function hf(e,t){if((e[I]&256)===256)throw new D(911,!1);e[gt]===null&&(e[gt]=[]),e[gt].push(t)}function lv(e,t){if(e[gt]===null)return;let n=e[gt].indexOf(t);n!==-1&&e[gt].splice(n,1)}function jt(e){let t=e[ce];return ot(t)?t[ce]:t}var F={lFrame:Ef(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var pf=!1;function dv(){return F.lFrame.elementDepthCount}function fv(){F.lFrame.elementDepthCount++}function hv(){F.lFrame.elementDepthCount--}function gf(){return F.bindingsEnabled}function pv(){return F.skipHydrationRootTNode!==null}function gv(e){return F.skipHydrationRootTNode===e}function mv(){F.skipHydrationRootTNode=null}function G(){return F.lFrame.lView}function Ie(){return F.lFrame.tView}function qe(e){return F.lFrame.contextLView=e,e[Ee]}function Ze(e){return F.lFrame.contextLView=null,e}function ge(){let e=mf();for(;e!==null&&e.type===64;)e=e.parent;return e}function mf(){return F.lFrame.currentTNode}function vv(){let e=F.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function br(e,t){let n=F.lFrame;n.currentTNode=e,n.isParent=t}function vf(){return F.lFrame.isParent}function yv(){F.lFrame.isParent=!1}function Dv(){return F.lFrame.contextLView}function yf(){return pf}function cd(e){pf=e}function Cv(e){return F.lFrame.bindingIndex=e}function Du(){return F.lFrame.bindingIndex++}function wv(e){let t=F.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Ev(){return F.lFrame.inI18n}function Iv(e,t){let n=F.lFrame;n.bindingIndex=n.bindingRootIndex=e,Pa(t)}function bv(){return F.lFrame.currentDirectiveIndex}function Pa(e){F.lFrame.currentDirectiveIndex=e}function _v(e){let t=F.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Df(e){F.lFrame.currentQueryIndex=e}function Mv(e){let t=e[R];return t.type===2?t.declTNode:t.type===1?e[Re]:null}function Cf(e,t,n){if(n&x.SkipSelf){let i=t,o=e;for(;i=i.parent,i===null&&!(n&x.Host);)if(i=Mv(o),i===null||(o=o[Ln],i.type&10))break;if(i===null)return!1;t=i,e=o}let r=F.lFrame=wf();return r.currentTNode=t,r.lView=e,!0}function Cu(e){let t=wf(),n=e[R];F.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function wf(){let e=F.lFrame,t=e===null?null:e.child;return t===null?Ef(e):t}function Ef(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 If(){let e=F.lFrame;return F.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var bf=If;function wu(){let e=If();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 Sv(e){return(F.lFrame.contextLView=cv(e,F.lFrame.contextLView))[Ee]}function _r(){return F.lFrame.selectedIndex}function Bt(e){F.lFrame.selectedIndex=e}function _f(){let e=F.lFrame;return vu(e.tView,e.selectedIndex)}function xv(){return F.lFrame.currentNamespace}var Mf=!0;function Eu(){return Mf}function Iu(e){Mf=e}function Tv(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let s=uf(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}i&&(n.preOrderHooks??=[]).push(0-e,i),o&&((n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o))}function bu(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[yn]+=65536),(a>14>16&&(e[I]&3)===t&&(e[I]+=16384,ld(a,o)):ld(a,o)}var wn=-1,Ut=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function Nv(e){return e instanceof Ut}function Rv(e){return(e.flags&8)!==0}function Ov(e){return(e.flags&16)!==0}var va={},ka=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=To(r);let i=this.injector.get(t,va,r);return i!==va||n===va?i:this.parentInjector.get(t,n,r)}};function xf(e){return e!==wn}function ho(e){return e&32767}function Fv(e){return e>>16}function po(e,t){let n=Fv(e),r=t;for(;n>0;)r=r[Ln],n--;return r}var La=!0;function dd(e){let t=La;return La=e,t}var Pv=256,Tf=Pv-1,Af=5,kv=0,Be={};function Lv(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(gr)&&(r=n[gr]),r==null&&(r=n[gr]=kv++);let i=r&Tf,o=1<>Af)]|=o}function go(e,t){let n=Nf(e,t);if(n!==-1)return n;let r=t[R];r.firstCreatePass&&(e.injectorIndex=t.length,ya(r.data,e),ya(t,null),ya(r.blueprint,null));let i=_u(e,t),o=e.injectorIndex;if(xf(i)){let s=ho(i),a=po(i,t),u=a[R].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|u[s+c]}return t[o+8]=i,o}function ya(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Nf(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function _u(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=kf(i),r===null)return wn;if(n++,i=i[Ln],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return wn}function Va(e,t,n){Lv(e,t,n)}function Rf(e,t,n){if(n&x.Optional||e!==void 0)return e;du(t,"NodeInjector")}function Of(e,t,n,r){if(n&x.Optional&&r===void 0&&(r=null),!(n&(x.Self|x.Host))){let i=e[Mn],o=ye(void 0);try{return i?i.get(t,r,n&x.Optional):Ud(t,r,n&x.Optional)}finally{ye(o)}}return Rf(r,t,n)}function Ff(e,t,n,r=x.Default,i){if(e!==null){if(t[I]&2048&&!(r&x.Self)){let s=$v(e,t,n,r,Be);if(s!==Be)return s}let o=Pf(e,t,n,r,Be);if(o!==Be)return o}return Of(t,n,r,i)}function Pf(e,t,n,r,i){let o=Bv(n);if(typeof o=="function"){if(!Cf(t,e,r))return r&x.Host?Rf(i,n,r):Of(t,n,r,i);try{let s;if(s=o(r),s==null&&!(r&x.Optional))du(n);else return s}finally{bf()}}else if(typeof o=="number"){let s=null,a=Nf(e,t),u=wn,c=r&x.Host?t[He][Re]:null;for((a===-1||r&x.SkipSelf)&&(u=a===-1?_u(e,t):t[a+8],u===wn||!hd(r,!1)?a=-1:(s=t[R],a=ho(u),t=po(u,t)));a!==-1;){let l=t[R];if(fd(o,a,l.data)){let d=Vv(a,t,n,s,r,c);if(d!==Be)return d}u=t[a+8],u!==wn&&hd(r,t[R].data[a+8]===c)&&fd(o,a,t)?(s=l,a=ho(u),t=po(u,t)):a=-1}}return i}function Vv(e,t,n,r,i,o){let s=t[R],a=s.data[e+8],u=r==null?Oo(a)&&La:r!=s&&(a.type&3)!==0,c=i&x.Host&&o===a,l=jv(a,s,n,u,c);return l!==null?Tn(t,s,l,a):Be}function jv(e,t,n,r,i){let o=e.providerIndexes,s=t.data,a=o&1048575,u=e.directiveStart,c=e.directiveEnd,l=o>>20,d=r?a:a+l,h=i?a+l:c;for(let f=d;f=u&&g.type===n)return f}if(i){let f=s[u];if(f&&yt(f)&&f.type===n)return u}return null}function Tn(e,t,n,r){let i=e[n],o=t.data;if(Nv(i)){let s=i;s.resolving&&fm(dm(o[n]));let a=dd(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?ye(s.injectImpl):null,l=Cf(e,r,x.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&Tv(n,o[n],t)}finally{c!==null&&ye(c),dd(a),s.resolving=!1,bf()}}return i}function Bv(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(gr)?e[gr]:void 0;return typeof t=="number"?t>=0?t&Tf:Uv:t}function fd(e,t,n){let r=1<>Af)]&r)}function hd(e,t){return!(e&x.Self)&&!(e&x.Host&&t)}var kt=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Ff(this._tNode,this._lView,t,To(r),n)}};function Uv(){return new kt(ge(),G())}function jn(e){return So(()=>{let t=e.prototype.constructor,n=t[no]||ja(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let o=i[no]||ja(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function ja(e){return Fd(e)?()=>{let t=ja(ue(e));return t&&t()}:En(e)}function $v(e,t,n,r,i){let o=e,s=t;for(;o!==null&&s!==null&&s[I]&2048&&!(s[I]&512);){let a=Pf(o,s,n,r|x.Self,Be);if(a!==Be)return a;let u=o.parent;if(!u){let c=s[rf];if(c){let l=c.get(n,Be,r);if(l!==Be)return l}u=kf(s),s=s[Ln]}o=u}return i}function kf(e){let t=e[R],n=t.type;return n===2?t.declTNode:n===1?e[Re]:null}function pd(e,t=null,n=null,r){let i=Lf(e,t,n,r);return i.resolveInjectorInitializers(),i}function Lf(e,t=null,n=null,r,i=new Set){let o=[n||De,$m(e)];return r=r||(typeof e=="object"?void 0:de(e)),new yr(o,t||gu(),r||null,i)}var Ge=class e{static{this.THROW_IF_NOT_FOUND=mr}static{this.NULL=new oo}static create(t,n){if(Array.isArray(t))return pd({name:""},n,t,"");{let r=t.name??"";return pd({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=w({token:e,providedIn:"any",factory:()=>O(Hd)})}static{this.__NG_ELEMENT_ID__=-1}};var Hv=new C("");Hv.__NG_ELEMENT_ID__=e=>{let t=ge();if(t===null)throw new D(204,!1);if(t.type&2)return t.value;if(e&x.Optional)return null;throw new D(204,!1)};var zv="ngOriginalError";function Da(e){return e[zv]}var Vf=!0,jf=(()=>{class e{static{this.__NG_ELEMENT_ID__=Gv}static{this.__NG_ENV_ID__=n=>n}}return e})(),Ba=class extends jf{constructor(t){super(),this._lView=t}onDestroy(t){return hf(this._lView,t),()=>lv(this._lView,t)}};function Gv(){return new Ba(G())}var Bn=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new te(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}}return e})();var Ua=class extends H{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,Xm()&&(this.destroyRef=m(jf,{optional:!0})??void 0,this.pendingTasks=m(Bn,{optional:!0})??void 0)}emit(t){let n=P(null);try{super.next(t)}finally{P(n)}}subscribe(t,n,r){let i=t,o=n||(()=>null),s=r;if(t&&typeof t=="object"){let u=t;i=u.next?.bind(u),o=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return t instanceof W&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},X=Ua;function mo(...e){}function Bf(e){let t,n;function r(){e=mo;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 gd(e){return queueMicrotask(()=>e()),()=>{e=mo}}var Mu="isAngularZone",vo=Mu+"_ID",Wv=0,q=class e{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new X(!1),this.onMicrotaskEmpty=new X(!1),this.onStable=new X(!1),this.onError=new X(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=Vf}=t;if(typeof Zone>"u")throw new D(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=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,Yv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Mu)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new D(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new D(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,qv,mo,mo);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},qv={};function Su(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 Zv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Bf(()=>{e.callbackScheduled=!1,$a(e),e.isCheckStableRunning=!0,Su(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),$a(e)}function Yv(e){let t=()=>{Zv(e)},n=Wv++;e._inner=e._inner.fork({name:"angular",properties:{[Mu]:!0,[vo]:n,[vo+n]:!0},onInvokeTask:(r,i,o,s,a,u)=>{if(Qv(u))return r.invokeTask(o,s,a,u);try{return md(e),r.invokeTask(o,s,a,u)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),vd(e)}},onInvoke:(r,i,o,s,a,u,c)=>{try{return md(e),r.invoke(o,s,a,u,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Kv(u)&&t(),vd(e)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,$a(e),Su(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function $a(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function md(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function vd(e){e._nesting--,Su(e)}var Ha=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new X,this.onMicrotaskEmpty=new X,this.onStable=new X,this.onError=new X}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,i){return t.apply(n,r)}};function Qv(e){return Uf(e,"__ignore_ng_zone__")}function Kv(e){return Uf(e,"__scheduler_tick__")}function Uf(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var tt=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Da(t);for(;n&&Da(n);)n=Da(n);return n||null}},Jv=new C("",{providedIn:"root",factory:()=>{let e=m(q),t=m(tt);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Xv(){return xu(ge(),G())}function xu(e,t){return new zt(Oe(e,t))}var zt=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=Xv}}return e})();function $f(e){return(e.flags&128)===128}var Hf=new Map,ey=0;function ty(){return ey++}function ny(e){Hf.set(e[Ro],e)}function za(e){Hf.delete(e[Ro])}var yd="__ngContext__";function $t(e,t){mt(t)?(e[yd]=t[Ro],ny(t)):e[yd]=t}function zf(e){return Wf(e[Dr])}function Gf(e){return Wf(e[Ae])}function Wf(e){for(;e!==null&&!ot(e);)e=e[Ae];return e}var Ga;function qf(e){Ga=e}function ry(){if(Ga!==void 0)return Ga;if(typeof document<"u")return document;throw new D(210,!1)}var Tu=new C("",{providedIn:"root",factory:()=>iy}),iy="ng",Au=new C(""),st=new C("",{providedIn:"platform",factory:()=>"unknown"});var Nu=new C("",{providedIn:"root",factory:()=>ry().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var oy="h",sy="b";var ay=()=>null;function Ru(e,t,n=!1){return ay(e,t,n)}var Zf=!1,uy=new C("",{providedIn:"root",factory:()=>Zf});var yo=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Od})`}};function ko(e){return e instanceof yo?e.changingThisBreaksApplicationSecurity:e}function Yf(e,t){let n=cy(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Od})`)}return n===t}function cy(e){return e instanceof yo&&e.getTypeName()||null}var ly=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Qf(e){return e=String(e),e.match(ly)?e:"unsafe:"+e}var Ou=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}(Ou||{});function Kf(e){let t=dy();return t?t.sanitize(Ou.URL,e)||"":Yf(e,"URL")?ko(e):Qf(jd(e))}function dy(){let e=G();return e&&e[$e].sanitizer}function Jf(e){return e instanceof Function?e():e}var nt=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(nt||{}),fy;function Fu(e,t){return fy(e,t)}function Dn(e,t,n,r,i){if(r!=null){let o,s=!1;ot(r)?o=r:mt(r)&&(s=!0,r=r[it]);let a=ze(r);e===0&&n!==null?i==null?nh(t,n,a):Co(t,n,a,i||null,!0):e===1&&n!==null?Co(t,n,a,i||null,!0):e===2?My(t,a,s):e===3&&t.destroyNode(a),o!=null&&xy(t,e,o,n,i)}}function hy(e,t){return e.createText(t)}function Xf(e,t,n){return e.createElement(t,n)}function py(e,t){eh(e,t),t[it]=null,t[Re]=null}function gy(e,t,n,r,i,o){r[it]=i,r[Re]=t,Lo(e,r,n,1,i,o)}function eh(e,t){t[$e].changeDetectionScheduler?.notify(9),Lo(e,t,t[ne],2,null,null)}function my(e){let t=e[Dr];if(!t)return Ca(e[R],e);for(;t;){let n=null;if(mt(t))n=t[Dr];else{let r=t[pe];r&&(n=r)}if(!n){for(;t&&!t[Ae]&&t!==e;)mt(t)&&Ca(t[R],t),t=t[ce];t===null&&(t=e),mt(t)&&Ca(t[R],t),n=t&&t[Ae]}t=n}}function vy(e,t,n,r){let i=pe+r,o=n.length;r>0&&(n[i-1][Ae]=t),r0&&(e[n-1][Ae]=r[Ae]);let o=io(e,pe+t);py(r[R],r);let s=o[xn];s!==null&&s.detachView(o[R]),r[ce]=null,r[Ae]=null,r[I]&=-129}return r}function ku(e,t){if(!(t[I]&256)){let n=t[ne];n.destroyNode&&Lo(e,t,n,3,null,null),my(t)}}function Ca(e,t){if(t[I]&256)return;let n=P(null);try{t[I]&=-129,t[I]|=256,t[Ce]&&zs(t[Ce]),Dy(e,t),yy(e,t),t[R].type===1&&t[ne].destroy();let r=t[Sn];if(r!==null&&ot(t[ce])){r!==t[ce]&&Pu(r,t);let i=t[xn];i!==null&&i.detachView(e)}za(t)}finally{P(n)}}function yy(e,t){let n=e.cleanup,r=t[ao];if(n!==null)for(let o=0;o=0?r[s]():r[-s].unsubscribe(),o+=2}else{let s=r[n[o+1]];n[o].call(s)}r!==null&&(t[ao]=null);let i=t[gt];if(i!==null){t[gt]=null;for(let o=0;o-1){let{encapsulation:o}=e.data[r.directiveStart+i];if(o===Ue.None||o===Ue.Emulated)return null}return Oe(r,n)}}function Co(e,t,n,r,i){e.insertBefore(t,n,r,i)}function nh(e,t,n){e.appendChild(t,n)}function Dd(e,t,n,r,i){r!==null?Co(e,t,n,r,i):nh(e,t,n)}function rh(e,t){return e.parentNode(t)}function Ey(e,t){return e.nextSibling(t)}function Iy(e,t,n){return _y(e,t,n)}function by(e,t,n){return e.type&40?Oe(e,n):null}var _y=by,Cd;function Lu(e,t,n,r){let i=Cy(e,r,t),o=t[ne],s=r.parent||t[Re],a=Iy(s,r,t);if(i!=null)if(Array.isArray(n))for(let u=0;uNe&&ah(e,t,Ne,!1),je(s?2:0,i),n(r,i)}finally{Bt(o),je(s?3:1,i)}}function dh(e,t,n){if(sf(t)){let r=P(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;snull;function Ly(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,a=0;return pv()&&(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:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function wd(e,t,n,r,i){for(let o in t){if(!t.hasOwnProperty(o))continue;let s=t[o];if(s===void 0)continue;r??={};let a,u=vt.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=o;if(i!==null){if(!i.hasOwnProperty(o))continue;c=i[o]}e===0?Ed(r,n,c,a,u):Ed(r,n,c,a)}return r}function Ed(e,t,n,r,i){let o;e.hasOwnProperty(n)?(o=e[n]).push(t,r):o=e[n]=[t,r],i!==void 0&&o.push(i)}function Vy(e,t,n){let r=t.directiveStart,i=t.directiveEnd,o=e.data,s=t.attrs,a=[],u=null,c=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Hy(e,t,n,r){let i=n.directiveStart,o=n.directiveEnd;Oo(n)&&Qy(t,n,e.data[i+n.componentOffset]),e.firstCreatePass||go(n,t),$t(r,t);let s=n.initialInputs;for(let a=i;a{Po(e.lView)},consumerOnSignalRead(){this.lView[Ce]=this}});function fD(e){let t=e[Ce]??Object.create(hD);return t.lView=e,t}var hD=k(p({},ur),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=jt(e.lView);for(;t&&!bh(t[R]);)t=jt(t);t&&ff(t)},consumerOnSignalRead(){this.lView[Ce]=this}});function bh(e){return e.type!==2}var pD=100;function _h(e,t=!0,n=0){let r=e[$e],i=r.rendererFactory,o=!1;o||i.begin?.();try{gD(e,n)}catch(s){throw t&&wh(e,s),s}finally{o||(i.end?.(),r.inlineEffectRunner?.flush())}}function gD(e,t){let n=yf();try{cd(!0),Qa(e,t);let r=0;for(;Fo(e);){if(r===pD)throw new D(103,!1);r++,Qa(e,1)}}finally{cd(n)}}function mD(e,t,n,r){let i=t[I];if((i&256)===256)return;let o=!1,s=!1;!o&&t[$e].inlineEffectRunner?.flush(),Cu(t);let a=!0,u=null,c=null;o||(bh(e)?(c=uD(t),u=yi(c)):al()===null?(a=!1,c=fD(t),u=yi(c)):t[Ce]&&(zs(t[Ce]),t[Ce]=null));try{df(t),Cv(e.bindingStartIndex),n!==null&&lh(e,t,n,2,r);let l=(i&3)===3;if(!o)if(l){let f=e.preOrderCheckHooks;f!==null&&Ji(t,f,null)}else{let f=e.preOrderHooks;f!==null&&Xi(t,f,0,null),ma(t,0)}if(s||vD(t),Mh(t,0),e.contentQueries!==null&&Ch(e,t),!o)if(l){let f=e.contentCheckHooks;f!==null&&Ji(t,f)}else{let f=e.contentHooks;f!==null&&Xi(t,f,1),ma(t,1)}Ny(e,t);let d=e.components;d!==null&&xh(t,d,0);let h=e.viewQuery;if(h!==null&&Za(2,h,r),!o)if(l){let f=e.viewCheckHooks;f!==null&&Ji(t,f)}else{let f=e.viewHooks;f!==null&&Xi(t,f,2),ma(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[ga]){for(let f of t[ga])f();t[ga]=null}o||(t[I]&=-73)}catch(l){throw o||Po(t),l}finally{c!==null&&($s(c,u),a&&lD(c)),wu()}}function Mh(e,t){for(let n=zf(e);n!==null;n=Gf(n))for(let r=pe;r-1&&(Do(t,r),io(n,r))}this._attachedToViewContainer=!1}ku(this._lView[R],this._lView)}onDestroy(t){hf(this._lView,t)}markForCheck(){$u(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[I]&=-129}reattach(){Fa(this._lView),this._lView[I]|=128}detectChanges(){this._lView[I]|=1024,_h(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new D(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Ra(this._lView),n=this._lView[Sn];n!==null&&!t&&Pu(n,this._lView),eh(this._lView[R],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new D(902,!1);this._appRef=t;let n=Ra(this._lView),r=this._lView[Sn];r!==null&&!n&&th(r,this._lView),Fa(this._lView)}};var uA=new RegExp(`^(\\d+)*(${sy}|${oy})*(.*)`);var DD=()=>null;function Ka(e,t){return DD(e,t)}var Nn=class{},Uo=new C("",{providedIn:"root",factory:()=>!1});var Th=new C(""),Ah=new C(""),Ja=class{},Eo=class{};function CD(e){let t=Error(`No component factory found for ${de(e)}.`);return t[wD]=e,t}var wD="ngComponent";var Xa=class{resolveComponentFactory(t){throw CD(t)}},Rn=class{static{this.NULL=new Xa}},On=class{},Un=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>ED()}}return e})();function ED(){let e=G(),t=ge(),n=Et(t.index,e);return(mt(n)?n:e)[ne]}var ID=(()=>{class e{static{this.\u0275prov=w({token:e,providedIn:"root",factory:()=>null})}}return e})();function eu(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(t!==null)for(let s=0;s0&&oh(e,n,o.join(" "))}}function AD(e,t,n){let r=e.projection=[];for(let i=0;i{class e{static{this.__NG_ELEMENT_ID__=RD}}return e})();function RD(){let e=ge();return FD(e,G())}var OD=$o,Nh=class extends OD{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return xu(this._hostTNode,this._hostLView)}get injector(){return new kt(this._hostTNode,this._hostLView)}get parentInjector(){let t=_u(this._hostTNode,this._hostLView);if(xf(t)){let n=po(t,this._hostLView),r=ho(t),i=n[R].data[r+8];return new kt(i,n)}else return new kt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=bd(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-pe}createEmbeddedView(t,n,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=Ka(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,Ya(this._hostTNode,s)),a}createComponent(t,n,r,i,o){let s=t&&!ev(t),a;if(s)a=n;else{let g=n||{};a=g.index,r=g.injector,i=g.projectableNodes,o=g.environmentInjector||g.ngModuleRef}let u=s?t:new Cr(Lt(t)),c=r||this.parentInjector;if(!o&&u.ngModule==null){let M=(s?c:this.parentInjector).get(we,null);M&&(o=M)}let l=Lt(u.componentType??{}),d=Ka(this._lContainer,l?.id??null),h=d?.firstChild??null,f=u.create(c,i,h,o);return this.insertImpl(f.hostView,a,Ya(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let i=t._lView;if(uv(i)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let u=i[ce],c=new Nh(u,u[Re],u[ce]);c.detach(c.indexOf(t))}}let o=this._adjustIndex(n),s=this._lContainer;return Eh(s,i,o,r),t.attachToViewContainerRef(),$d(wa(s),o,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=bd(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Do(this._lContainer,n);r&&(io(wa(this._lContainer),n),ku(r[R],r))}detach(t){let n=this._adjustIndex(t,-1),r=Do(this._lContainer,n);return r&&io(wa(this._lContainer),n)!=null?new An(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function bd(e){return e[uo]}function wa(e){return e[uo]||(e[uo]=[])}function FD(e,t){let n,r=t[e.index];return ot(r)?n=r:(n=Dh(r,t,null,e),t[e.index]=n,Bo(t,n)),kD(n,t,e,r),new Nh(n,e,t)}function PD(e,t){let n=e[ne],r=n.createComment(""),i=Oe(t,e),o=rh(n,i);return Co(n,o,r,Ey(n,i),!1),r}var kD=jD,LD=()=>!1;function VD(e,t,n){return LD(e,t,n)}function jD(e,t,n,r){if(e[Vt])return;let i;n.type&8?i=ze(r):i=PD(t,n),e[Vt]=i}var _d=new Set;function $n(e){_d.has(e)||(_d.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function BD(e){return typeof e=="function"&&e[Je]!==void 0}function Ho(e,t){$n("NgSignals");let n=yl(e),r=n[Je];return t?.equal&&(r.equal=t.equal),n.set=i=>Gs(r,i),n.update=i=>Dl(r,i),n.asReadonly=UD.bind(n),n}function UD(){let e=this[Je];if(e.readonlyFn===void 0){let t=()=>this();t[Je]=e,e.readonlyFn=t}return e.readonlyFn}function Rh(e){return BD(e)&&typeof e.set=="function"}function $D(e){return Object.getPrototypeOf(e.prototype).constructor}function Wt(e){let t=$D(e.type),n=!0,r=[e];for(;t;){let i;if(yt(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new D(903,!1);i=t.\u0275dir}if(i){if(n){r.push(i);let s=e;s.inputs=Zi(e.inputs),s.inputTransforms=Zi(e.inputTransforms),s.declaredInputs=Zi(e.declaredInputs),s.outputs=Zi(e.outputs);let a=i.hostBindings;a&&qD(e,a);let u=i.viewQuery,c=i.contentQueries;if(u&&GD(e,u),c&&WD(e,c),HD(e,i),rm(e.outputs,i.outputs),yt(i)&&i.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;r--){let i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=vr(i.hostAttrs,n=vr(n,i.hostAttrs))}}function Zi(e){return e===In?{}:e===De?[]:e}function GD(e,t){let n=e.viewQuery;n?e.viewQuery=(r,i)=>{t(r,i),n(r,i)}:e.viewQuery=t}function WD(e,t){let n=e.contentQueries;n?e.contentQueries=(r,i,o)=>{t(r,i,o),n(r,i,o)}:e.contentQueries=t}function qD(e,t){let n=e.hostBindings;n?e.hostBindings=(r,i)=>{t(r,i),n(r,i)}:e.hostBindings=t}var Dt=class{},wr=class{};var nu=class extends Dt{constructor(t,n,r,i=!0){super(),this.ngModuleType=t,this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Io(this);let o=Qd(t);this._bootstrapComponents=Jf(o.bootstrap),this._r3Injector=Lf(t,n,[{provide:Dt,useValue:this},{provide:Rn,useValue:this.componentFactoryResolver},...r],de(t),new Set(["environment"])),i&&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)}},ru=class extends wr{constructor(t){super(),this.moduleType=t}create(t){return new nu(this.moduleType,t,[])}};var bo=class extends Dt{constructor(t){super(),this.componentFactoryResolver=new Io(this),this.instance=null;let n=new yr([...t.providers,{provide:Dt,useValue:this},{provide:Rn,useValue:this.componentFactoryResolver}],t.parent||gu(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Hu(e,t,n=null){return new bo({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function zo(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function ZD(e){return(e.flags&32)===32}function YD(e,t,n,r,i,o,s,a,u){let c=t.consts,l=jo(t,e,4,s||null,a||null);mh(t,n,l,fo(c,u)),bu(t,l);let d=l.tView=ju(2,l,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return t.queries!==null&&(t.queries.template(t,l),d.queries=t.queries.embeddedTView(l)),l}function QD(e,t,n,r,i,o,s,a,u,c){let l=n+Ne,d=t.firstCreatePass?YD(l,t,e,r,i,o,s,a,u):t.data[l];br(d,!1);let h=KD(t,e,d,n);Eu()&&Lu(t,e,h,d),$t(h,e);let f=Dh(h,e,h,d);return e[l]=f,Bo(e,f),VD(f,d,e),mu(d)&&fh(t,e,d),u!=null&&hh(e,d,c),d}function Go(e,t,n,r,i,o,s,a){let u=G(),c=Ie(),l=fo(c.consts,o);return QD(u,c,e,t,n,r,i,l,s,a),Go}var KD=JD;function JD(e,t,n,r){return Iu(!0),t[ne].createComment("")}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||{}),XD=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}}return e})(),Md=class e{constructor(){this.ngZone=m(q),this.scheduler=m(Nn),this.errorHandler=m(tt,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[pr.EarlyRead,pr.Write,pr.MixedReadWrite,pr.Read]}execute(){this.executing=!0;for(let t of e.PHASES)for(let n of this.sequences)if(!(n.erroredOrDestroyed||!n.hooks[t]))try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let t of this.sequences)t.afterRun(),t.once&&(this.sequences.delete(t),t.destroy());for(let t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static{this.\u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}};function Yi(e,t){return e<<17|t<<2}function Ht(e){return e>>17&32767}function eC(e){return(e&2)==2}function tC(e,t){return e&131071|t<<17}function iu(e){return e|2}function Fn(e){return(e&131068)>>2}function Ea(e,t){return e&-131069|t<<2}function nC(e){return(e&1)===1}function ou(e){return e|1}function rC(e,t,n,r,i,o){let s=o?t.classBindings:t.styleBindings,a=Ht(s),u=Fn(s);e[r]=n;let c=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Ir(d,l)>0)&&(c=!0)}else l=n;if(i)if(u!==0){let h=Ht(e[a+1]);e[r+1]=Yi(h,a),h!==0&&(e[h+1]=Ea(e[h+1],r)),e[a+1]=tC(e[a+1],r)}else e[r+1]=Yi(a,0),a!==0&&(e[a+1]=Ea(e[a+1],r)),a=r;else e[r+1]=Yi(u,0),a===0?a=r:e[u+1]=Ea(e[u+1],r),u=r;c&&(e[r+1]=iu(e[r+1])),Sd(e,l,r,!0),Sd(e,l,r,!1),iC(t,l,e,r,o),s=Yi(a,u),o?t.classBindings=s:t.styleBindings=s}function iC(e,t,n,r,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&Ir(o,t)>=0&&(n[r+1]=ou(n[r+1]))}function Sd(e,t,n,r){let i=e[n+1],o=t===null,s=r?Ht(i):Fn(i),a=!1;for(;s!==0&&(a===!1||o);){let u=e[s],c=e[s+1];oC(u,t)&&(a=!0,e[s+1]=r?ou(c):iu(c)),s=r?Ht(c):Fn(c)}a&&(e[n+1]=r?iu(i):ou(i))}function oC(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Ir(e,t)>=0:!1}function zu(e,t,n){let r=G(),i=Du();if(zo(r,i,t)){let o=Ie(),s=_f();gh(o,s,r,e,t,r[ne],n,!1)}return zu}function xd(e,t,n,r,i){let o=t.inputs,s=i?"class":"style";Bu(e,n,o[s],s,r)}function Sr(e,t){return sC(e,t,null,!0),Sr}function sC(e,t,n,r){let i=G(),o=Ie(),s=wv(2);if(o.firstUpdatePass&&uC(o,e,s,r),t!==Mr&&zo(i,s,t)){let a=o.data[_r()];hC(o,a,i,i[ne],e,i[s+1]=pC(t,n),r,s)}}function aC(e,t){return t>=e.expandoStartIndex}function uC(e,t,n,r){let i=e.data;if(i[n+1]===null){let o=i[_r()],s=aC(e,n);gC(o,r)&&t===null&&!s&&(t=!1),t=cC(i,o,t,r),rC(i,o,t,n,s,r)}}function cC(e,t,n,r){let i=_v(e),o=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=Ia(null,e,t,n,r),n=Er(n,t.attrs,r),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(n=Ia(i,e,t,n,r),o===null){let u=lC(e,t,r);u!==void 0&&Array.isArray(u)&&(u=Ia(null,e,t,u[1],r),u=Er(u,t.attrs,r),dC(e,t,r,u))}else o=fC(e,t,r)}return o!==void 0&&(r?t.residualClasses=o:t.residualStyles=o),n}function lC(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Fn(r)!==0)return e[Ht(r)]}function dC(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[Ht(i)]=r}function fC(e,t,n){let r,i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0;){let u=e[i],c=Array.isArray(u),l=c?u[1]:u,d=l===null,h=n[i+1];h===Mr&&(h=d?De:void 0);let f=d?ha(h,r):l===r?h:void 0;if(c&&!_o(f)&&(f=ha(u,r)),_o(f)&&(a=f,s))return a;let g=e[i+1];i=s?Ht(g):Fn(g)}if(t!==null){let u=o?t.residualClasses:t.residualStyles;u!=null&&(a=ha(u,r))}return a}function _o(e){return e!==void 0}function pC(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=de(ko(e)))),e}function gC(e,t){return(e.flags&(t?8:16))!==0}function xr(e,t){$n("NgControlFlow");let n=G(),r=Du(),i=n[r]!==Mr?n[r]:-1,o=i!==-1?Ad(n,Ne+i):void 0,s=0;if(zo(n,r,e)){let a=P(null);try{if(o!==void 0&&sD(o,s),e!==-1){let u=Ne+e,c=Ad(n,u),l=mC(n[R],u),d=Ka(c,l.tView.ssrId),h=iD(n,l,t,{dehydratedView:d});Eh(c,h,s,Ya(l,d))}}finally{P(a)}}else if(o!==void 0){let a=oD(o,s);a!==void 0&&(a[Ee]=t)}}function Ad(e,t){return e[t]}function mC(e,t){return vu(e,t)}function vC(e,t,n,r,i,o){let s=t.consts,a=fo(s,i),u=jo(t,e,2,r,a);return mh(t,n,u,fo(s,o)),u.attrs!==null&&eu(u,u.attrs,!1),u.mergedAttrs!==null&&eu(u,u.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,u),u}function be(e,t,n,r){let i=G(),o=Ie(),s=Ne+e,a=i[ne],u=o.firstCreatePass?vC(s,o,i,t,n,r):o.data[s],c=yC(o,i,u,a,t,e);i[s]=c;let l=mu(u);return br(u,!0),sh(a,c,u),!ZD(u)&&Eu()&&Lu(o,i,c,u),dv()===0&&$t(c,i),fv(),l&&(fh(o,i,u),dh(o,u,i)),r!==null&&hh(i,u),be}function Fe(){let e=ge();vf()?yv():(e=e.parent,br(e,!1));let t=e;gv(t)&&mv(),hv();let n=Ie();return n.firstCreatePass&&(bu(n,e),sf(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&Rv(t)&&xd(n,t,G(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&Ov(t)&&xd(n,t,G(),t.stylesWithoutHost,!1),Fe}function Hn(e,t,n,r){return be(e,t,n,r),Fe(),Hn}var yC=(e,t,n,r,i,o)=>(Iu(!0),Xf(r,i,xv()));function Wo(){return G()}var Mo="en-US";var DC=Mo;function CC(e){typeof e=="string"&&(DC=e.toLowerCase().replace(/_/g,"-"))}var wC=(e,t,n)=>{};function _e(e,t,n,r){let i=G(),o=Ie(),s=ge();return Oh(o,i,i[ne],s,e,t,r),_e}function EC(e,t,n,r){let i=e.cleanup;if(i!=null)for(let o=0;ou?a[u]:null}typeof s=="string"&&(o+=2)}return null}function Oh(e,t,n,r,i,o,s){let a=mu(r),c=e.firstCreatePass&&eD(e),l=t[Ee],d=Xy(t),h=!0;if(r.type&3||s){let M=Oe(r,t),y=s?s(M):M,b=d.length,Z=s?L=>s(ze(L[r.index])):r.index,Y=null;if(!s&&a&&(Y=EC(e,t,i,r.index)),Y!==null){let L=Y.__ngLastListenerFn__||Y;L.__ngNextListenerFn__=o,Y.__ngLastListenerFn__=o,h=!1}else{o=Rd(r,t,l,o),wC(M,i,o);let L=n.listen(y,i,o);d.push(o,L),c&&c.push(i,Z,b,b+1)}}else o=Rd(r,t,l,o);let f=r.outputs,g;if(h&&f!==null&&(g=f[i])){let M=g.length;if(M)for(let y=0;y-1?Et(e.index,t):t;$u(s,5);let a=Nd(t,n,r,o),u=i.__ngNextListenerFn__;for(;u;)a=Nd(t,n,u,o)&&a,u=u.__ngNextListenerFn__;return a}}function qt(e=1){return Sv(e)}function Fh(e){let t=Dv();return av(t,Ne+e)}function zn(e,t=""){let n=G(),r=Ie(),i=e+Ne,o=r.firstCreatePass?jo(r,i,1,t,null):r.data[i],s=IC(r,n,o,t,e);n[i]=s,Eu()&&Lu(r,n,s,o),br(o,!1)}var IC=(e,t,n,r,i)=>(Iu(!0),hy(t[ne],r));function Gu(e,t,n){Rh(t)&&(t=t());let r=G(),i=Du();if(zo(r,i,t)){let o=Ie(),s=_f();gh(o,s,r,e,t,r[ne],n,!1)}return Gu}function Ph(e,t){let n=Rh(e);return n&&e.set(t),n}function Wu(e,t){let n=G(),r=Ie(),i=ge();return Oh(r,n,n[ne],i,e,t),Wu}function bC(e,t,n){let r=Ie();if(r.firstCreatePass){let i=yt(e);su(n,r.data,r.blueprint,i,!0),su(t,r.data,r.blueprint,i,!1)}}function su(e,t,n,r,i){if(e=ue(e),Array.isArray(e))for(let o=0;o>20;if(_n(e)||!e.multi){let f=new Ut(c,i,ee),g=_a(u,t,i?l:l+h,d);g===-1?(Va(go(a,s),o,u),ba(o,e,t.length),t.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[g]=f,s[g]=f)}else{let f=_a(u,t,l+h,d),g=_a(u,t,l,l+h),M=f>=0&&n[f],y=g>=0&&n[g];if(i&&!y||!i&&!M){Va(go(a,s),o,u);let b=SC(i?MC:_C,n.length,i,r,c);!i&&y&&(n[g].providerFactory=b),ba(o,e,t.length,0),t.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(b),s.push(b)}else{let b=kh(n[i?g:f],c,!i&&r);ba(o,e,f>-1?f:g,b)}!i&&r&&y&&n[g].componentProviders++}}}function ba(e,t,n,r){let i=_n(t),o=Wm(t);if(i||o){let u=(o?ue(t.useClass):t).prototype.ngOnDestroy;if(u){let c=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){let l=c.indexOf(n);l===-1?c.push(n,[r,u]):c[l+1].push(r,u)}else c.push(n,u)}}}function kh(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function _a(e,t,n,r){for(let i=n;i{n.providersResolver=(r,i)=>bC(r,i?i(e):e,t)}}var xC=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Xd(!1,n.type),i=r.length>0?Hu([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=w({token:e,providedIn:"environment",factory:()=>new e(O(we))})}}return e})();function Zo(e){$n("NgStandalone"),e.getStandaloneInjector=t=>t.get(xC).getOrCreateStandaloneInjector(e)}var Yo=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();var Lh=new C("");function Zt(e){return!!e&&typeof e.then=="function"}function Vh(e){return!!e&&typeof e.subscribe=="function"}var Qo=new C(""),jh=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=m(Qo,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=i();if(Zt(o))n.push(o);else if(Vh(o)){let s=new Promise((a,u)=>{o.subscribe({complete:a,error:u})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),qu=new C("");function TC(){vl(()=>{throw new D(600,!1)})}function AC(e){return e.isBoundToModule}var NC=10;function RC(e,t,n){try{let r=n();return Zt(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Ye=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=m(Jv),this.afterRenderManager=m(XD),this.zonelessEnabled=m(Uo),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new H,this.afterTick=new H,this.componentTypes=[],this.components=[],this.isStable=m(Bn).hasPendingTasks.pipe(_(n=>!n)),this._injector=m(we)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){let i=n instanceof Eo;if(!this._injector.get(jh).done){let h=!i&&Yd(n),f=!1;throw new D(405,f)}let s;i?s=n:s=this._injector.get(Rn).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=AC(s)?void 0:this._injector.get(Dt),u=r||s.selector,c=s.create(Ge.NULL,[],u,a),l=c.location.nativeElement,d=c.injector.get(Lh,null);return d?.registerApplication(l),c.onDestroy(()=>{this.detachView(c.hostView),eo(this.components,c),d?.unregisterApplication(l)}),this._loadComponent(c),c}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new D(101,!1);let n=P(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,P(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(On,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++Fo(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;eo(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(qu,[]);[...this._bootstrapListeners,...r].forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>eo(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new D(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function eo(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function OC(e,t,n,r){if(!n&&!Fo(e))return;_h(e,t,n&&!r?0:1)}var uu=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},Zu=(()=>{class e{compileModuleSync(n){return new ru(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),i=Qd(n),o=Jf(i.declarations).reduce((s,a)=>{let u=Lt(a);return u&&s.push(new Cr(u)),s},[]);return new uu(r,o)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var FC=(()=>{class e{constructor(){this.zone=m(q),this.changeDetectionScheduler=m(Nn),this.applicationRef=m(Ye)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),PC=new C("",{factory:()=>!1});function Bh({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new q(k(p({},$h()),{scheduleInRootZone:n})),[{provide:q,useFactory:e},{provide:bn,multi:!0,useFactory:()=>{let r=m(FC,{optional:!0});return()=>r.initialize()}},{provide:bn,multi:!0,useFactory:()=>{let r=m(kC);return()=>{r.initialize()}}},t===!0?{provide:Th,useValue:!0}:[],{provide:Ah,useValue:n??Vf}]}function Uh(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=Bh({ngZoneFactory:()=>{let i=$h(e);return i.scheduleInRootZone=n,i.shouldCoalesceEventChangeDetection&&$n("NgZone_CoalesceEvent"),new q(i)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return kn([{provide:PC,useValue:!0},{provide:Uo,useValue:!1},r])}function $h(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var kC=(()=>{class e{constructor(){this.subscription=new W,this.initialized=!1,this.zone=m(q),this.pendingTasks=m(Bn)}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{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var LC=(()=>{class e{constructor(){this.appRef=m(Ye),this.taskService=m(Bn),this.ngZone=m(q),this.zonelessEnabled=m(Uo),this.disableScheduling=m(Th,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new W,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(vo):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(m(Ah,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,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 Ha||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;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 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?gd:Bf;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(vo+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)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,gd(()=>{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{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function VC(){return typeof $localize<"u"&&$localize.locale||Mo}var Yu=new C("",{providedIn:"root",factory:()=>m(Yu,x.Optional|x.SkipSelf)||VC()});var cu=new C("");function Qi(e){return!e.moduleRef}function jC(e){let t=Qi(e)?e.r3Injector:e.moduleRef.injector,n=t.get(q);return n.run(()=>{Qi(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(tt,null),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:o=>{r.handleError(o)}})}),Qi(e)){let o=()=>t.destroy(),s=e.platformInjector.get(cu);s.add(o),t.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>e.moduleRef.destroy(),s=e.platformInjector.get(cu);s.add(o),e.moduleRef.onDestroy(()=>{eo(e.allPlatformModules,e.moduleRef),i.unsubscribe(),s.delete(o)})}return RC(r,n,()=>{let o=t.get(jh);return o.runInitializers(),o.donePromise.then(()=>{let s=t.get(Yu,Mo);if(CC(s||Mo),Qi(e)){let a=t.get(Ye);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return BC(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function BC(e,t){let n=e.injector.get(Ye);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new D(-403,!1);t.push(e)}var to=null;function UC(e=[],t){return Ge.create({name:t,providers:[{provide:No,useValue:"platform"},{provide:cu,useValue:new Set([()=>to=null])},...e]})}function $C(e=[]){if(to)return to;let t=UC(e);return to=t,TC(),HC(t),t}function HC(e){e.get(Au,null)?.forEach(n=>n())}function Hh(){return!1}var Yt=(()=>{class e{static{this.__NG_ELEMENT_ID__=zC}}return e})();function zC(e){return GC(ge(),G(),(e&16)===16)}function GC(e,t,n){if(Oo(e)&&!n){let r=Et(e.index,t);return new An(r,r)}else if(e.type&175){let r=t[He];return new An(r,t)}return null}function zh(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,i=$C(r),o=[Bh({}),{provide:Nn,useExisting:LC},...n||[]],s=new bo({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1});return jC({r3Injector:s.injector,platformInjector:i,rootComponent:t})}catch(t){return Promise.reject(t)}}function Ko(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function Jo(e,t){$n("NgSignals");let n=pl(e);return t?.equal&&(n[Je].equal=t.equal),n}function It(e){let t=P(null);try{return e()}finally{P(t)}}var qh=null;function at(){return qh}function Zh(e){qh??=e}var Xo=class{};var Me=new C(""),Yh=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>m(ZC),providedIn:"platform"})}}return e})();var ZC=(()=>{class e extends Yh{constructor(){super(),this._doc=m(Me),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return at().getBaseHref(this._doc)}onPopState(n){let r=at().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=at().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,i){this._history.pushState(n,r,i)}replaceState(n,r,i){this._history.replaceState(n,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function Qh(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 Gh(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 Qt(e){return e&&e[0]!=="?"?"?"+e:e}var ts=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>m(Kh),providedIn:"root"})}}return e})(),YC=new C(""),Kh=(()=>{class e extends ts{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??m(Me).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 Qh(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Qt(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${r}${i}`:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+Qt(o));this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+Qt(o));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{this.\u0275fac=function(r){return new(r||e)(O(Yh),O(YC,8))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Tr=(()=>{class e{constructor(n){this._subject=new X,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=JC(Gh(Wh(r))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.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+Qt(r))}normalize(n){return e.stripTrailingSlash(KC(this._basePath,Wh(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",i=null){this._locationStrategy.pushState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Qt(r)),i)}replaceState(n,r="",i=null){this._locationStrategy.replaceState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Qt(r)),i)}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(i=>i(n,r))}subscribe(n,r,i){return this._subject.subscribe({next:n,error:r,complete:i})}static{this.normalizeQueryParams=Qt}static{this.joinWithSlash=Qh}static{this.stripTrailingSlash=Gh}static{this.\u0275fac=function(r){return new(r||e)(O(ts))}}static{this.\u0275prov=w({token:e,factory:()=>QC(),providedIn:"root"})}}return e})();function QC(){return new Tr(O(ts))}function KC(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Wh(e){return e.replace(/\/index.html$/,"")}function JC(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function Jh(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}var Ku=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=wt({type:e})}static{this.\u0275inj=Ct({})}}return e})(),Ju="browser",XC="server";function Xu(e){return e===Ju}function ec(e){return e===XC}var es=class{};var rc=class extends Xo{constructor(){super(...arguments),this.supportsDOMEvents=!0}},ic=class e extends rc{static makeCurrent(){Zh(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=tw();return n==null?null:nw(n)}resetBaseElement(){Ar=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Jh(document.cookie,t)}},Ar=null;function tw(){return Ar=Ar||document.querySelector("base"),Ar?Ar.getAttribute("href"):null}function nw(e){return new URL(e,document.baseURI).pathname}var rw=(()=>{class e{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),oc=new C(""),np=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i){return this._findPluginFor(r).addEventListener(n,r,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(o=>o.supports(n)),!r)throw new D(5101,!1);return this._eventNameToPlugin.set(n,r),r}static{this.\u0275fac=function(r){return new(r||e)(O(oc),O(q))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),ns=class{constructor(t){this._doc=t}},tc="ng-app-id",rp=(()=>{class e{constructor(n,r,i,o={}){this.doc=n,this.appId=r,this.nonce=i,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=ec(o),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(i=>i.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${tc}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(i=>{i.textContent!=null&&r.set(i.textContent,i)}),r}return null}changeUsageCount(n,r){let i=this.styleRef;if(i.has(n)){let o=i.get(n);return o.usage+=r,o.usage}return i.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let i=this.styleNodesInDOM,o=i?.get(r);if(o?.parentNode===n)return i.delete(r),o.removeAttribute(tc),o;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(tc,this.appId),n.appendChild(s),s}}addStyleToHost(n,r){let i=this.getStyleElement(n,r),o=this.styleRef,s=o.get(r)?.elements;s?s.push(i):o.set(r,{elements:[i],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}static{this.\u0275fac=function(r){return new(r||e)(O(Me),O(Tu),O(Nu,8),O(st))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),nc={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"},ac=/%COMP%/g,ip="%COMP%",iw=`_nghost-${ip}`,ow=`_ngcontent-${ip}`,sw=!0,aw=new C("",{providedIn:"root",factory:()=>sw});function uw(e){return ow.replace(ac,e)}function cw(e){return iw.replace(ac,e)}function op(e,t){return t.map(n=>n.replace(ac,e))}var Xh=(()=>{class e{constructor(n,r,i,o,s,a,u,c=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=u,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=ec(a),this.defaultRenderer=new Nr(n,s,u,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ue.ShadowDom&&(r=k(p({},r),{encapsulation:Ue.Emulated}));let i=this.getOrCreateRenderer(n,r);return i instanceof rs?i.applyToHost(n):i instanceof Rr&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,u=this.eventManager,c=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case Ue.Emulated:o=new rs(u,c,r,this.appId,l,s,a,d);break;case Ue.ShadowDom:return new sc(u,c,n,r,s,a,this.nonce,d);default:o=new Rr(u,c,r,l,s,a,d);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||e)(O(np),O(rp),O(Tu),O(aw),O(Me),O(st),O(q),O(Nu))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),Nr=class{constructor(t,n,r,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(nc[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(ep(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(ep(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 D(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,i){if(i){n=i+":"+n;let o=nc[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let i=nc[r];i?t.removeAttributeNS(i,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,i){i&(nt.DashCase|nt.Important)?t.style.setProperty(n,r,i&nt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&nt.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=at().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 ep(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var sc=class extends Nr{constructor(t,n,r,i,o,s,a,u){super(t,o,s,u),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=op(i.id,i.styles);for(let l of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(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)}},Rr=class extends Nr{constructor(t,n,r,i,o,s,a,u){super(t,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this.styles=u?op(u,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},rs=class extends Rr{constructor(t,n,r,i,o,s,a,u){let c=i+"-"+r.id;super(t,n,r,o,s,a,u,c),this.contentAttr=uw(c),this.hostAttr=cw(c)}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}},lw=(()=>{class e extends ns{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i){return n.addEventListener(r,i,!1),()=>this.removeEventListener(n,r,i)}removeEventListener(n,r,i){return n.removeEventListener(r,i)}static{this.\u0275fac=function(r){return new(r||e)(O(Me))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),tp=["alt","control","meta","shift"],dw={"\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"},fw={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},hw=(()=>{class e extends ns{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,i){let o=e.parseEventName(r),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>at().onAndCancel(n,o.domEventName,s))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),tp.forEach(c=>{let l=r.indexOf(c);l>-1&&(r.splice(l,1),s+=c+".")}),s+=o,r.length!=0||o.length===0)return null;let u={};return u.domEventName=i,u.fullKey=s,u}static matchEventFullKeyCode(n,r){let i=dw[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),tp.forEach(s=>{if(s!==i){let a=fw[s];a(n)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{e.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}static{this.\u0275fac=function(r){return new(r||e)(O(Me))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})();function sp(e,t){return zh(p({rootComponent:e},pw(t)))}function pw(e){return{appProviders:[...Dw,...e?.providers??[]],platformProviders:yw}}function gw(){ic.makeCurrent()}function mw(){return new tt}function vw(){return qf(document),document}var yw=[{provide:st,useValue:Ju},{provide:Au,useValue:gw,multi:!0},{provide:Me,useFactory:vw,deps:[]}];var Dw=[{provide:No,useValue:"root"},{provide:tt,useFactory:mw,deps:[]},{provide:oc,useClass:lw,multi:!0,deps:[Me,q,st]},{provide:oc,useClass:hw,multi:!0,deps:[Me]},Xh,rp,np,{provide:On,useExisting:Xh},{provide:es,useClass:rw,deps:[]},[]];var ap=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static{this.\u0275fac=function(r){return new(r||e)(O(Me))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var S="primary",Yr=Symbol("RouteTitle"),fc=class{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 Kn(e){return new fc(e)}function Ew(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.lengthr[o]===i)}else return e===t}function mp(e){return e.length>0?e[e.length-1]:null}function bt(e){return ia(e)?e:Zt(e)?$(Promise.resolve(e)):E(e)}var bw={exact:yp,subset:Dp},vp={exact:_w,subset:Mw,ignored:()=>!0};function up(e,t,n){return bw[n.paths](e.root,t.root,n.matrixParams)&&vp[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function _w(e,t){return Qe(e,t)}function yp(e,t,n){if(!Jt(e.segments,t.segments)||!ss(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!yp(e.children[r],t.children[r],n))return!1;return!0}function Mw(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>gp(e[n],t[n]))}function Dp(e,t,n){return Cp(e,t,t.segments,n)}function Cp(e,t,n,r){if(e.segments.length>n.length){let i=e.segments.slice(0,n.length);return!(!Jt(i,n)||t.hasChildren()||!ss(i,n,r))}else if(e.segments.length===n.length){if(!Jt(e.segments,n)||!ss(e.segments,n,r))return!1;for(let i in t.children)if(!e.children[i]||!Dp(e.children[i],t.children[i],r))return!1;return!0}else{let i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!Jt(e.segments,i)||!ss(e.segments,i,r)||!e.children[S]?!1:Cp(e.children[S],t,o,r)}}function ss(e,t,n){return t.every((r,i)=>vp[n](e[i].parameters,r.parameters))}var ct=class{constructor(t=new V([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Kn(this.queryParams),this._queryParamMap}toString(){return Tw.serialize(this)}},V=class{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return as(this)}},Kt=class{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=Kn(this.parameters),this._parameterMap}toString(){return Ep(this)}};function Sw(e,t){return Jt(e,t)&&e.every((n,r)=>Qe(n.parameters,t[r].parameters))}function Jt(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function xw(e,t){let n=[];return Object.entries(e.children).forEach(([r,i])=>{r===S&&(n=n.concat(t(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==S&&(n=n.concat(t(i,r)))}),n}var jc=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>new jr,providedIn:"root"})}}return e})(),jr=class{parse(t){let n=new gc(t);return new ct(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${Or(t.root,!0)}`,r=Rw(t.queryParams),i=typeof t.fragment=="string"?`#${Aw(t.fragment)}`:"";return`${n}${r}${i}`}},Tw=new jr;function as(e){return e.segments.map(t=>Ep(t)).join("/")}function Or(e,t){if(!e.hasChildren())return as(e);if(t){let n=e.children[S]?Or(e.children[S],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==S&&r.push(`${i}:${Or(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=xw(e,(r,i)=>i===S?[Or(e.children[S],!1)]:[`${i}:${Or(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[S]!=null?`${as(e)}/${n[0]}`:`${as(e)}/(${n.join("//")})`}}function wp(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function is(e){return wp(e).replace(/%3B/gi,";")}function Aw(e){return encodeURI(e)}function pc(e){return wp(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function us(e){return decodeURIComponent(e)}function cp(e){return us(e.replace(/\+/g,"%20"))}function Ep(e){return`${pc(e.path)}${Nw(e.parameters)}`}function Nw(e){return Object.entries(e).map(([t,n])=>`;${pc(t)}=${pc(n)}`).join("")}function Rw(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(i=>`${is(n)}=${is(i)}`).join("&"):`${is(n)}=${is(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var Ow=/^[^\/()?;#]+/;function uc(e){let t=e.match(Ow);return t?t[0]:""}var Fw=/^[^\/()?;=#]+/;function Pw(e){let t=e.match(Fw);return t?t[0]:""}var kw=/^[^=?&#]+/;function Lw(e){let t=e.match(kw);return t?t[0]:""}var Vw=/^[^&#]+/;function jw(e){let t=e.match(Vw);return t?t[0]:""}var gc=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new V([],{}):new V([],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[S]=new V(t,n)),r}parseSegment(){let t=uc(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new D(4009,!1);return this.capture(t),new Kt(us(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=Pw(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let i=uc(this.remaining);i&&(r=i,this.capture(r))}t[us(n)]=us(r)}parseQueryParam(t){let n=Lw(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=jw(this.remaining);s&&(r=s,this.capture(r))}let i=cp(n),o=cp(r);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}parseParens(t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=uc(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new D(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=S);let s=this.parseChildren();n[o]=Object.keys(s).length===1?s[S]:new V([],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 D(4011,!1)}};function Ip(e){return e.segments.length>0?new V([],{[S]:e}):e}function bp(e){let t={};for(let[r,i]of Object.entries(e.children)){let o=bp(i);if(r===S&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[r]=o)}let n=new V(e.segments,t);return Bw(n)}function Bw(e){if(e.numberOfChildren===1&&e.children[S]){let t=e.children[S];return new V(e.segments.concat(t.segments),t.children)}return e}function Br(e){return e instanceof ct}function Uw(e,t,n=null,r=null){let i=_p(e);return Mp(i,t,n,r)}function _p(e){let t;function n(o){let s={};for(let u of o.children){let c=n(u);s[u.outlet]=c}let a=new V(o.url,s);return o===e&&(t=a),a}let r=n(e.root),i=Ip(r);return t??i}function Mp(e,t,n,r){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return cc(i,i,i,n,r);let o=$w(t);if(o.toRoot())return cc(i,i,new V([],{}),n,r);let s=Hw(o,i,e),a=s.processChildren?kr(s.segmentGroup,s.index,o.commands):xp(s.segmentGroup,s.index,o.commands);return cc(i,s.segmentGroup,a,n,r)}function cs(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Ur(e){return typeof e=="object"&&e!=null&&e.outlets}function cc(e,t,n,r,i){let o={};r&&Object.entries(r).forEach(([u,c])=>{o[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let s;e===t?s=n:s=Sp(e,t,n);let a=Ip(bp(s));return new ct(a,o,i)}function Sp(e,t,n){let r={};return Object.entries(e.children).forEach(([i,o])=>{o===t?r[i]=n:r[i]=Sp(o,t,n)}),new V(e.segments,r)}var ls=class{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&cs(r[0]))throw new D(4003,!1);let i=r.find(Ur);if(i&&i!==mp(r))throw new D(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function $w(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new ls(!0,0,e);let t=0,n=!1,r=e.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?n=!0:a===".."?t++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new ls(n,t,r)}var Zn=class{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function Hw(e,t,n){if(e.isAbsolute)return new Zn(t,!0,0);if(!n)return new Zn(t,!1,NaN);if(n.parent===null)return new Zn(n,!0,0);let r=cs(e.commands[0])?0:1,i=n.segments.length-1+r;return zw(n,i,e.numberOfDoubleDots)}function zw(e,t,n){let r=e,i=t,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new D(4005,!1);i=r.segments.length}return new Zn(r,!1,i-o)}function Gw(e){return Ur(e[0])?e[0].outlets:{[S]:e}}function xp(e,t,n){if(e??=new V([],{}),e.segments.length===0&&e.hasChildren())return kr(e,t,n);let r=Ww(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndexo!==S)&&e.children[S]&&e.numberOfChildren===1&&e.children[S].segments.length===0){let o=kr(e.children[S],t,n);return new V(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=xp(e.children[o],t,s))}),Object.entries(e.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new V(e.segments,i)}}function Ww(e,t,n){let r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};for(;i=n.length)return o;let s=e.segments[i],a=n[r];if(Ur(a))break;let u=`${a}`,c=r0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!dp(u,c,s))return o;r+=2}else{if(!dp(u,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function mc(e,t,n){let r=e.segments.slice(0,t),i=0;for(;i{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=mc(new V([],{}),0,r))}),t}function lp(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function dp(e,t,n){return e==n.path&&Qe(t,n.parameters)}var Lr="imperative",re=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}(re||{}),Se=class{constructor(t,n){this.id=t,this.url=n}},$r=class extends Se{constructor(t,n,r="imperative",i=null){super(t,n),this.type=re.NavigationStart,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Xt=class extends Se{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=re.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},ve=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(ve||{}),vc=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(vc||{}),ut=class extends Se{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=re.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},en=class extends Se{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=re.NavigationSkipped}},Hr=class extends Se{constructor(t,n,r,i){super(t,n),this.error=r,this.target=i,this.type=re.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},ds=class extends Se{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=re.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},yc=class extends Se{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=re.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Dc=class extends Se{constructor(t,n,r,i,o){super(t,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=re.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Cc=class extends Se{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=re.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},wc=class extends Se{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=re.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ec=class{constructor(t){this.route=t,this.type=re.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ic=class{constructor(t){this.route=t,this.type=re.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},bc=class{constructor(t){this.snapshot=t,this.type=re.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},_c=class{constructor(t){this.snapshot=t,this.type=re.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Mc=class{constructor(t){this.snapshot=t,this.type=re.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Sc=class{constructor(t){this.snapshot=t,this.type=re.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var zr=class{},Jn=class{constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function Zw(e,t){return e.providers&&!e._injector&&(e._injector=Hu(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Pe(e){return e.outlet||S}function Yw(e,t){let n=e.filter(r=>Pe(r)===t);return n.push(...e.filter(r=>Pe(r)!==t)),n}function Qr(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 xc=class{get injector(){return Qr(this.route?.snapshot)??this.rootInjector}set injector(t){}constructor(t){this.rootInjector=t,this.outlet=null,this.route=null,this.children=new ys(this.rootInjector),this.attachRef=null}},ys=(()=>{class e{constructor(n){this.rootInjector=n,this.contexts=new Map}onChildOutletCreated(n,r){let i=this.getOrCreateContext(n);i.outlet=r,this.contexts.set(n,i)}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 xc(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static{this.\u0275fac=function(r){return new(r||e)(O(we))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),fs=class{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=Tc(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=Tc(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=Ac(t,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return Ac(t,this._root).map(n=>n.value)}};function Tc(e,t){if(e===t.value)return t;for(let n of t.children){let r=Tc(e,n);if(r)return r}return null}function Ac(e,t){if(e===t.value)return[t];for(let n of t.children){let r=Ac(e,n);if(r.length)return r.unshift(t),r}return[]}var me=class{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function qn(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var hs=class extends fs{constructor(t,n){super(t),this.snapshot=n,Bc(this,t)}toString(){return this.snapshot.toString()}};function Tp(e){let t=Qw(e),n=new te([new Kt("",{})]),r=new te({}),i=new te({}),o=new te({}),s=new te(""),a=new Xn(n,r,o,s,i,S,e,t.root);return a.snapshot=t.root,new hs(new me(a,[]),t)}function Qw(e){let t={},n={},r={},i="",o=new Yn([],t,r,i,n,S,e,null,{});return new gs("",new me(o,[]))}var Xn=class{constructor(t,n,r,i,o,s,a,u){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(_(c=>c[Yr]))??E(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(_(t=>Kn(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(_(t=>Kn(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function ps(e,t,n="emptyOnly"){let r,{routeConfig:i}=e;return t!==null&&(n==="always"||i?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:p(p({},t.params),e.params),data:p(p({},t.data),e.data),resolve:p(p(p(p({},e.data),t.data),i?.data),e._resolvedData)}:r={params:p({},e.params),data:p({},e.data),resolve:p(p({},e.data),e._resolvedData??{})},i&&Np(i)&&(r.resolve[Yr]=i.title),r}var Yn=class{get title(){return this.data?.[Yr]}constructor(t,n,r,i,o,s,a,u,c){this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Kn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Kn(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}')`}},gs=class extends fs{constructor(t,n){super(n),this.url=t,Bc(this,n)}toString(){return Ap(this._root)}};function Bc(e,t){t.value._routerState=e,t.children.forEach(n=>Bc(e,n))}function Ap(e){let t=e.children.length>0?` { ${e.children.map(Ap).join(", ")} } `:"";return`${e.value}${t}`}function lc(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Qe(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Qe(t.params,n.params)||e.paramsSubject.next(n.params),Iw(t.url,n.url)||e.urlSubject.next(n.url),Qe(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Nc(e,t){let n=Qe(e.params,t.params)&&Sw(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||Nc(e.parent,t.parent))}function Np(e){return typeof e.title=="string"||e.title===null}var Uc=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=S,this.activateEvents=new X,this.deactivateEvents=new X,this.attachEvents=new X,this.detachEvents=new X,this.parentContexts=m(ys),this.location=m($o),this.changeDetector=m(Yt),this.inputBinder=m($c,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:i}=n.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),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 D(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new D(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new D(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 D(4013,!1);this._activatedRoute=n;let i=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new Rc(n,a,i.injector);this.activated=i.createComponent(s,{index:i.length,injector:u,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=We({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Vn]})}}return e})(),Rc=class e{__ngOutletInjector(t){return new e(this.route,this.childContexts,t)}constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===Xn?this.route:t===ys?this.childContexts:this.parent.get(t,n)}},$c=new C("");function Kw(e,t,n){let r=Gr(e,t._root,n?n._root:void 0);return new hs(r,t)}function Gr(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let i=Jw(e,t,n);return new me(r,i)}else{if(e.shouldAttach(t.value)){let o=e.retrieve(t.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Gr(e,a)),s}}let r=Xw(t.value),i=t.children.map(o=>Gr(e,o));return new me(r,i)}}function Jw(e,t,n){return t.children.map(r=>{for(let i of n.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return Gr(e,r,i);return Gr(e,r)})}function Xw(e){return new Xn(new te(e.url),new te(e.params),new te(e.queryParams),new te(e.fragment),new te(e.data),e.outlet,e.component,e)}var Wr=class{constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},Rp="ngNavigationCancelingError";function ms(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=Br(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=Op(!1,ve.Redirect);return i.url=n,i.navigationBehaviorOptions=r,i}function Op(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[Rp]=!0,n.cancellationCode=t,n}function eE(e){return Fp(e)&&Br(e.url)}function Fp(e){return!!e&&e[Rp]}var tE=(e,t,n,r)=>_(i=>(new Oc(t,i.targetRouterState,i.currentRouterState,n,r).activate(e),i)),Oc=class{constructor(t,n,r,i,o){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),lc(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let i=qn(n);t.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else o&&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),i=r&&t.value.component?r.children:n,o=qn(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);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),i=r&&t.value.component?r.children:n,o=qn(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let i=qn(n);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Sc(o.value.snapshot))}),t.children.length&&this.forwardEvent(new _c(t.value.snapshot))}activateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(lc(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),lc(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},vs=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Qn=class{constructor(t,n){this.component=t,this.route=n}};function nE(e,t,n){let r=e._root,i=t?t._root:null;return Fr(r,i,n,[r.value])}function rE(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function tr(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!Pd(e)?e:t.get(e):r}function Fr(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=qn(t);return e.children.forEach(s=>{iE(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Vr(a,n.getContext(s),i)),i}function iE(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let u=oE(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new vs(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Fr(e,t,a?a.children:null,r,i):Fr(e,t,n,r,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Qn(a.outlet.component,s))}else s&&Vr(t,a,i),i.canActivateChecks.push(new vs(r)),o.component?Fr(e,null,a?a.children:null,r,i):Fr(e,null,n,r,i);return i}function oE(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!Jt(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Jt(e.url,t.url)||!Qe(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Nc(e,t)||!Qe(e.queryParams,t.queryParams);case"paramsChange":default:return!Nc(e,t)}}function Vr(e,t,n){let r=qn(e),i=e.value;Object.entries(r).forEach(([o,s])=>{i.component?t?Vr(s,t.children.getContext(o),n):Vr(s,null,n):Vr(s,t,n)}),i.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new Qn(t.outlet.component,i)):n.canDeactivateChecks.push(new Qn(null,i)):n.canDeactivateChecks.push(new Qn(null,i))}function Kr(e){return typeof e=="function"}function sE(e){return typeof e=="boolean"}function aE(e){return e&&Kr(e.canLoad)}function uE(e){return e&&Kr(e.canActivate)}function cE(e){return e&&Kr(e.canActivateChild)}function lE(e){return e&&Kr(e.canDeactivate)}function dE(e){return e&&Kr(e.canMatch)}function Pp(e){return e instanceof et||e?.name==="EmptyError"}var os=Symbol("INITIAL_VALUE");function er(){return se(e=>zi(e.map(t=>t.pipe(K(1),da(os)))).pipe(_(t=>{for(let n of t)if(n!==!0){if(n===os)return os;if(n===!1||fE(n))return n}return!0}),oe(t=>t!==os),K(1)))}function fE(e){return Br(e)||e instanceof Wr}function hE(e,t){return z(n=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return s.length===0&&o.length===0?E(k(p({},n),{guardsResult:!0})):pE(s,r,i,e).pipe(z(a=>a&&sE(a)?gE(r,o,e,t):E(a)),_(a=>k(p({},n),{guardsResult:a})))})}function pE(e,t,n,r){return $(e).pipe(z(i=>CE(i.component,i.route,n,t,r)),Ve(i=>i!==!0,!0))}function gE(e,t,n,r){return $(t).pipe(gn(i=>Le(vE(i.route.parent,r),mE(i.route,r),DE(e,i.path,n),yE(e,i.route,n))),Ve(i=>i!==!0,!0))}function mE(e,t){return e!==null&&t&&t(new Mc(e)),E(!0)}function vE(e,t){return e!==null&&t&&t(new bc(e)),E(!0)}function yE(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return E(!0);let i=r.map(o=>Ft(()=>{let s=Qr(t)??n,a=tr(o,s),u=uE(a)?a.canActivate(t,e):rt(s,()=>a(t,e));return bt(u).pipe(Ve())}));return E(i).pipe(er())}function DE(e,t,n){let r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>rE(s)).filter(s=>s!==null).map(s=>Ft(()=>{let a=s.guards.map(u=>{let c=Qr(s.node)??n,l=tr(u,c),d=cE(l)?l.canActivateChild(r,e):rt(c,()=>l(r,e));return bt(d).pipe(Ve())});return E(a).pipe(er())}));return E(o).pipe(er())}function CE(e,t,n,r,i){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return E(!0);let s=o.map(a=>{let u=Qr(t)??i,c=tr(a,u),l=lE(c)?c.canDeactivate(e,t,n,r):rt(u,()=>c(e,t,n,r));return bt(l).pipe(Ve())});return E(s).pipe(er())}function wE(e,t,n,r){let i=t.canLoad;if(i===void 0||i.length===0)return E(!0);let o=i.map(s=>{let a=tr(s,e),u=aE(a)?a.canLoad(t,n):rt(e,()=>a(t,n));return bt(u)});return E(o).pipe(er(),kp(r))}function kp(e){return Ks(J(t=>{if(typeof t!="boolean")throw ms(e,t)}),_(t=>t===!0))}function EE(e,t,n,r){let i=t.canMatch;if(!i||i.length===0)return E(!0);let o=i.map(s=>{let a=tr(s,e),u=dE(a)?a.canMatch(t,n):rt(e,()=>a(t,n));return bt(u)});return E(o).pipe(er(),kp(r))}var qr=class{constructor(t){this.segmentGroup=t||null}},Zr=class extends Error{constructor(t){super(),this.urlTree=t}};function Wn(e){return dt(new qr(e))}function IE(e){return dt(new D(4e3,!1))}function bE(e){return dt(Op(!1,ve.GuardRejected))}var Fc=class{constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return E(r);if(i.numberOfChildren>1||!i.children[S])return IE(`${t.redirectTo}`);i=i.children[S]}}applyRedirectCommands(t,n,r,i,o){if(typeof n!="string"){let a=n,{queryParams:u,fragment:c,routeConfig:l,url:d,outlet:h,params:f,data:g,title:M}=i,y=rt(o,()=>a({params:f,data:g,queryParams:u,fragment:c,routeConfig:l,url:d,outlet:h,title:M}));if(y instanceof ct)throw new Zr(y);n=y}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n[0]==="/")throw new Zr(s);return s}applyRedirectCreateUrlTree(t,n,r,i){let o=this.createSegmentGroup(t,n.root,r,i);return new ct(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(t,n,r,i){let o=this.createSegments(t,n.segments,r,i),s={};return Object.entries(n.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(t,u,r,i)}),new V(o,s)}createSegments(t,n,r,i){return n.map(o=>o.path[0]===":"?this.findPosParam(t,o,i):this.findOrReturn(o,r))}findPosParam(t,n,r){let i=r[n.path.substring(1)];if(!i)throw new D(4001,!1);return i}findOrReturn(t,n){let r=0;for(let i of n){if(i.path===t.path)return n.splice(r),i;r++}return t}},Pc={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function _E(e,t,n,r,i){let o=Lp(e,t,n);return o.matched?(r=Zw(t,r),EE(r,t,n,i).pipe(_(s=>s===!0?o:p({},Pc)))):E(o)}function Lp(e,t,n){if(t.path==="**")return ME(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?p({},Pc):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let i=(t.matcher||Ew)(n,e,t);if(!i)return p({},Pc);let o={};Object.entries(i.posParams??{}).forEach(([a,u])=>{o[a]=u.path});let s=i.consumed.length>0?p(p({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:n.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function ME(e){return{matched:!0,parameters:e.length>0?mp(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function fp(e,t,n,r){return n.length>0&&TE(e,n,r)?{segmentGroup:new V(t,xE(r,new V(n,e.children))),slicedSegments:[]}:n.length===0&&AE(e,n,r)?{segmentGroup:new V(e.segments,SE(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new V(e.segments,e.children),slicedSegments:n}}function SE(e,t,n,r){let i={};for(let o of n)if(Ds(e,t,o)&&!r[Pe(o)]){let s=new V([],{});i[Pe(o)]=s}return p(p({},r),i)}function xE(e,t){let n={};n[S]=t;for(let r of e)if(r.path===""&&Pe(r)!==S){let i=new V([],{});n[Pe(r)]=i}return n}function TE(e,t,n){return n.some(r=>Ds(e,t,r)&&Pe(r)!==S)}function AE(e,t,n){return n.some(r=>Ds(e,t,r))}function Ds(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function NE(e,t,n){return t.length===0&&!e.children[n]}var kc=class{};function RE(e,t,n,r,i,o,s="emptyOnly"){return new Lc(e,t,n,r,i,s,o).recognize()}var OE=31,Lc=class{constructor(t,n,r,i,o,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Fc(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new D(4002,`'${t.segmentGroup}'`)}recognize(){let t=fp(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(_(({children:n,rootSnapshot:r})=>{let i=new me(r,n),o=new gs("",i),s=Uw(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(t){let n=new Yn([],Object.freeze({}),Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),S,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,S,n).pipe(_(r=>({children:r,rootSnapshot:n})),ft(r=>{if(r instanceof Zr)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof qr?this.noMatchError(r):r}))}processSegmentGroup(t,n,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r,o):this.processSegment(t,n,r,r.segments,i,!0,o).pipe(_(s=>s instanceof me?[s]:[]))}processChildren(t,n,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return $(o).pipe(gn(s=>{let a=r.children[s],u=Yw(n,s);return this.processSegmentGroup(t,u,a,s,i)}),la((s,a)=>(s.push(...a),s)),ht(null),ua(),z(s=>{if(s===null)return Wn(r);let a=Vp(s);return FE(a),E(a)}))}processSegment(t,n,r,i,o,s,a){return $(n).pipe(gn(u=>this.processSegmentAgainstRoute(u._injector??t,n,u,r,i,o,s,a).pipe(ft(c=>{if(c instanceof qr)return E(null);throw c}))),Ve(u=>!!u),ft(u=>{if(Pp(u))return NE(r,i,o)?E(new kc):Wn(r);throw u}))}processSegmentAgainstRoute(t,n,r,i,o,s,a,u){return Pe(r)!==s&&(s===S||!Ds(i,o,r))?Wn(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,i,r,o,s,u):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,i,n,r,o,s,u):Wn(i)}expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s,a){let{matched:u,parameters:c,consumedSegments:l,positionalParamSegments:d,remainingSegments:h}=Lp(n,i,o);if(!u)return Wn(n);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>OE&&(this.allowRedirects=!1));let f=new Yn(o,c,Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,hp(i),Pe(i),i.component??i._loadedComponent??null,i,pp(i)),g=ps(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(g.params),f.data=Object.freeze(g.data);let M=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,d,f,t);return this.applyRedirects.lineralizeSegments(i,M).pipe(z(y=>this.processSegment(t,r,n,y.concat(h),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,i,o,s){let a=_E(n,r,i,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(se(u=>u.matched?(t=r._injector??t,this.getChildConfig(t,r,i).pipe(se(({routes:c})=>{let l=r._loadedInjector??t,{parameters:d,consumedSegments:h,remainingSegments:f}=u,g=new Yn(h,d,Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,hp(r),Pe(r),r.component??r._loadedComponent??null,r,pp(r)),M=ps(g,s,this.paramsInheritanceStrategy);g.params=Object.freeze(M.params),g.data=Object.freeze(M.data);let{segmentGroup:y,slicedSegments:b}=fp(n,h,f,c);if(b.length===0&&y.hasChildren())return this.processChildren(l,c,y,g).pipe(_(Y=>new me(g,Y)));if(c.length===0&&b.length===0)return E(new me(g,[]));let Z=Pe(r)===o;return this.processSegment(l,c,y,b,Z?S:o,!0,g).pipe(_(Y=>new me(g,Y instanceof me?[Y]:[])))}))):Wn(n)))}getChildConfig(t,n,r){return n.children?E({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?E({routes:n._loadedRoutes,injector:n._loadedInjector}):wE(t,n,r,this.urlSerializer).pipe(z(i=>i?this.configLoader.loadChildren(t,n).pipe(J(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):bE(n))):E({routes:[],injector:t})}};function FE(e){e.sort((t,n)=>t.value.outlet===S?-1:n.value.outlet===S?1:t.value.outlet.localeCompare(n.value.outlet))}function PE(e){let t=e.value.routeConfig;return t&&t.path===""}function Vp(e){let t=[],n=new Set;for(let r of e){if(!PE(r)){t.push(r);continue}let i=t.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),n.add(i)):t.push(r)}for(let r of n){let i=Vp(r.children);t.push(new me(r.value,i))}return t.filter(r=>!n.has(r))}function hp(e){return e.data||{}}function pp(e){return e.resolve||{}}function kE(e,t,n,r,i,o){return z(s=>RE(e,t,n,r,s.extractedUrl,i,o).pipe(_(({state:a,tree:u})=>k(p({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function LE(e,t){return z(n=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return E(n);let o=new Set(i.map(u=>u.route)),s=new Set;for(let u of o)if(!s.has(u))for(let c of jp(u))s.add(c);let a=0;return $(s).pipe(gn(u=>o.has(u)?VE(u,r,e,t):(u.data=ps(u,u.parent,e).resolve,E(void 0))),J(()=>a++),mn(1),z(u=>a===s.size?E(n):ae))})}function jp(e){let t=e.children.map(n=>jp(n)).flat();return[e,...t]}function VE(e,t,n,r){let i=e.routeConfig,o=e._resolve;return i?.title!==void 0&&!Np(i)&&(o[Yr]=i.title),jE(o,e,t,r).pipe(_(s=>(e._resolvedData=s,e.data=ps(e,e.parent,n).resolve,null)))}function jE(e,t,n,r){let i=hc(e);if(i.length===0)return E({});let o={};return $(i).pipe(z(s=>BE(e[s],t,n,r).pipe(Ve(),J(a=>{if(a instanceof Wr)throw ms(new jr,a);o[s]=a}))),mn(1),dr(o),ft(s=>Pp(s)?ae:dt(s)))}function BE(e,t,n,r){let i=Qr(t)??r,o=tr(e,i),s=o.resolve?o.resolve(t,n):rt(i,()=>o(t,n));return bt(s)}function dc(e){return se(t=>{let n=e(t);return n?$(n).pipe(_(()=>t)):E(t)})}var Bp=(()=>{class e{buildTitle(n){let r,i=n.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===S);return r}getResolvedTitleForRoute(n){return n.data[Yr]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>m(UE),providedIn:"root"})}}return e})(),UE=(()=>{class e extends Bp{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static{this.\u0275fac=function(r){return new(r||e)(O(ap))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Hc=new C("",{providedIn:"root",factory:()=>({})}),$E=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Ao({type:e,selectors:[["ng-component"]],standalone:!0,features:[Zo],decls:1,vars:0,template:function(r,i){r&1&&Hn(0,"router-outlet")},dependencies:[Uc],encapsulation:2})}}return e})();function zc(e){let t=e.children&&e.children.map(zc),n=t?k(p({},e),{children:t}):p({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==S&&(n.component=$E),n}var Gc=new C(""),HE=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=m(Zu)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return E(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=bt(n.loadComponent()).pipe(_(Up),J(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),fr(()=>{this.componentLoaders.delete(n)})),i=new lt(r,()=>new H).pipe(ln());return this.componentLoaders.set(n,i),i}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return E({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=zE(r,this.compiler,n,this.onLoadEndListener).pipe(fr(()=>{this.childrenLoaders.delete(r)})),s=new lt(o,()=>new H).pipe(ln());return this.childrenLoaders.set(r,s),s}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function zE(e,t,n,r){return bt(e.loadChildren()).pipe(_(Up),z(i=>i instanceof wr||Array.isArray(i)?E(i):$(t.compileModuleAsync(i))),_(i=>{r&&r(e);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(n).injector,s=o.get(Gc,[],{optional:!0,self:!0}).flat()),{routes:s.map(zc),injector:o}}))}function GE(e){return e&&typeof e=="object"&&"default"in e}function Up(e){return GE(e)?e.default:e}var Wc=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>m(WE),providedIn:"root"})}}return e})(),WE=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),qE=new C("");var ZE=new C(""),YE=(()=>{class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new H,this.transitionAbortSubject=new H,this.configLoader=m(HE),this.environmentInjector=m(we),this.urlSerializer=m(jc),this.rootContexts=m(ys),this.location=m(Tr),this.inputBindingEnabled=m($c,{optional:!0})!==null,this.titleStrategy=m(Bp),this.options=m(Hc,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=m(Wc),this.createViewTransition=m(qE,{optional:!0}),this.navigationErrorHandler=m(ZE,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>E(void 0),this.rootComponentType=null;let n=i=>this.events.next(new Ec(i)),r=i=>this.events.next(new Ic(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(k(p(p({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,i){return this.transitions=new te({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:Lr,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(oe(o=>o.id!==0),_(o=>k(p({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),se(o=>{let s=!1,a=!1;return E(o).pipe(se(u=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",ve.SupersededByNewNavigation),ae;this.currentTransition=o,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,targetBrowserUrl:typeof u.extras.browserUrl=="string"?this.urlSerializer.parse(u.extras.browserUrl):u.extras.browserUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?k(p({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=u.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!c&&l!=="reload"){let d="";return this.events.next(new en(u.id,this.urlSerializer.serialize(u.rawUrl),d,vc.IgnoredSameUrlNavigation)),u.resolve(!1),ae}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return E(u).pipe(se(d=>{let h=this.transitions?.getValue();return this.events.next(new $r(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?ae:Promise.resolve(d)}),kE(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),J(d=>{o.targetSnapshot=d.targetSnapshot,o.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=k(p({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let h=new ds(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:d,extractedUrl:h,source:f,restoredState:g,extras:M}=u,y=new $r(d,this.urlSerializer.serialize(h),f,g);this.events.next(y);let b=Tp(this.rootComponentType).snapshot;return this.currentTransition=o=k(p({},u),{targetSnapshot:b,urlAfterRedirects:h,extras:k(p({},M),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,E(o)}else{let d="";return this.events.next(new en(u.id,this.urlSerializer.serialize(u.extractedUrl),d,vc.IgnoredByUrlHandlingStrategy)),u.resolve(!1),ae}}),J(u=>{let c=new yc(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(c)}),_(u=>(this.currentTransition=o=k(p({},u),{guards:nE(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),o)),hE(this.environmentInjector,u=>this.events.next(u)),J(u=>{if(o.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw ms(this.urlSerializer,u.guardsResult);let c=new Dc(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(c)}),oe(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",ve.GuardRejected),!1)),dc(u=>{if(u.guards.canActivateChecks.length)return E(u).pipe(J(c=>{let l=new Cc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),se(c=>{let l=!1;return E(c).pipe(LE(this.paramsInheritanceStrategy,this.environmentInjector),J({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(c,"",ve.NoDataFromResolver)}}))}),J(c=>{let l=new wc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}))}),dc(u=>{let c=l=>{let d=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(l.routeConfig).pipe(J(h=>{l.component=h}),_(()=>{})));for(let h of l.children)d.push(...c(h));return d};return zi(c(u.targetSnapshot.root)).pipe(ht(null),K(1))}),dc(()=>this.afterPreactivation()),se(()=>{let{currentSnapshot:u,targetSnapshot:c}=o,l=this.createViewTransition?.(this.environmentInjector,u.root,c.root);return l?$(l).pipe(_(()=>o)):E(o)}),_(u=>{let c=Kw(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=o=k(p({},u),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,o}),J(()=>{this.events.next(new zr)}),tE(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),K(1),J({next:u=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Xt(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{s=!0}}),fa(this.transitionAbortSubject.pipe(J(u=>{throw u}))),fr(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",ve.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),ft(u=>{if(a=!0,Fp(u))this.events.next(new ut(o.id,this.urlSerializer.serialize(o.extractedUrl),u.message,u.cancellationCode)),eE(u)?this.events.next(new Jn(u.url,u.navigationBehaviorOptions)):o.resolve(!1);else{let c=new Hr(o.id,this.urlSerializer.serialize(o.extractedUrl),u,o.targetSnapshot??void 0);try{let l=rt(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(l instanceof Wr){let{message:d,cancellationCode:h}=ms(this.urlSerializer,l);this.events.next(new ut(o.id,this.urlSerializer.serialize(o.extractedUrl),d,h)),this.events.next(new Jn(l.redirectTo,l.navigationBehaviorOptions))}else{this.events.next(c);let d=n.errorHandler(u);o.resolve(!!d)}}catch(l){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(l)}}return ae}))}))}cancelNavigationTransition(n,r,i){let o=new ut(n.id,this.urlSerializer.serialize(n.extractedUrl),r,i);this.events.next(o),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{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function QE(e){return e!==Lr}var KE=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>m(JE),providedIn:"root"})}}return e})(),Vc=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},JE=(()=>{class e extends Vc{static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=jn(e)))(i||e)}})()}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),$p=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>m(XE),providedIn:"root"})}}return e})(),XE=(()=>{class e extends $p{constructor(){super(...arguments),this.location=m(Tr),this.urlSerializer=m(jc),this.options=m(Hc,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=m(Wc),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new ct,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Tp(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof $r)this.stateMemento=this.createStateMemento();else if(n instanceof en)this.rawUrlTree=r.initialUrl;else if(n instanceof ds){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??i,r)}}else n instanceof zr?(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 ut&&(n.code===ve.GuardRejected||n.code===ve.NoDataFromResolver)?this.restoreHistory(r):n instanceof Hr?this.restoreHistory(r,!0):n instanceof Xt&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let i=n instanceof ct?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){let o=this.browserPageId,s=p(p({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(i,"",s)}else{let o=p(p({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(i,"",o)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.currentUrlTree===n.finalUrl&&o===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{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=jn(e)))(i||e)}})()}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Pr=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Pr||{});function eI(e,t){e.events.pipe(oe(n=>n instanceof Xt||n instanceof ut||n instanceof Hr||n instanceof en),_(n=>n instanceof Xt||n instanceof en?Pr.COMPLETE:(n instanceof ut?n.code===ve.Redirect||n.code===ve.SupersededByNewNavigation:!1)?Pr.REDIRECTING:Pr.FAILED),oe(n=>n!==Pr.REDIRECTING),K(1)).subscribe(()=>{t()})}function tI(e){throw e}var nI={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},rI={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Hp=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=m(Yo),this.stateManager=m($p),this.options=m(Hc,{optional:!0})||{},this.pendingTasks=m(Bn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=m(YE),this.urlSerializer=m(jc),this.location=m(Tr),this.urlHandlingStrategy=m(Wc),this._events=new H,this.errorHandler=this.options.errorHandler||tI,this.navigated=!1,this.routeReuseStrategy=m(KE),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=m(Gc,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!m($c,{optional:!0}),this.eventsSubscription=new W,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof ut&&r.code!==ve.Redirect&&r.code!==ve.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Xt)this.navigated=!0;else if(r instanceof Jn){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),u=p({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||QE(i.source)},s);this.scheduleNavigation(a,Lr,null,u,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}oI(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});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),Lr,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let u=p({},i);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(o.state=u)}let a=this.parseUrl(n);this.scheduleNavigation(a,r,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(zc),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:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:u}=r,c=u?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":l=p(p({},this.currentUrlTree.queryParams),o);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=o||null}l!==null&&(l=this.removeEmptyProps(l));let d;try{let h=i?i.snapshot:this.routerState.snapshot.root;d=_p(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return Mp(d,n,l,c??null)}navigateByUrl(n,r={skipLocationChange:!1}){let i=Br(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Lr,null,r)}navigate(n,r={skipLocationChange:!1}){return iI(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 i;if(r===!0?i=p({},nI):r===!1?i=p({},rI):i=r,Br(n))return up(this.currentUrlTree,n,i);let o=this.parseUrl(n);return up(this.currentUrlTree,o,i)}removeEmptyProps(n){return Object.entries(n).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(n,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,u,c;s?(a=s.resolve,u=s.reject,c=s.promise):c=new Promise((d,h)=>{a=d,u=h});let l=this.pendingTasks.add();return eI(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:o,resolve:a,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function iI(e){for(let t=0;tn.\u0275providers)])}function aI(e){return e.routerState.root}function uI(){let e=m(Ge);return t=>{let n=e.get(Ye);if(t!==n.components[0])return;let r=e.get(Hp),i=e.get(cI);e.get(lI)===1&&r.initialNavigation(),e.get(dI,null,x.Optional)?.setUpPreloading(),e.get(sI,null,x.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var cI=new C("",{factory:()=>new H}),lI=new C("",{providedIn:"root",factory:()=>1});var dI=new C("");var Gp=[];var Xr="Service workers are disabled or not supported by this browser";function fI(e){return Ft(()=>dt(new Error(e)))}var nr=class{constructor(t){if(this.serviceWorker=t,!t)this.worker=this.events=this.registration=fI(Xr);else{let r=pn(t,"controllerchange").pipe(_(()=>t.controller)),i=Ft(()=>E(t.controller)),o=Le(i,r);this.worker=o.pipe(oe(l=>!!l)),this.registration=this.worker.pipe(se(()=>t.getRegistration()));let c=pn(t,"message").pipe(_(l=>l.data)).pipe(oe(l=>l&&l.type)).pipe(ca());c.connect(),this.events=c}}postMessage(t,n){return this.worker.pipe(K(1),J(r=>{r.postMessage(p({action:t},n))})).toPromise().then(()=>{})}postMessageWithOperation(t,n,r){let i=this.waitForOperationCompleted(r),o=this.postMessage(t,n);return Promise.all([o,i]).then(([,s])=>s)}generateNonce(){return Math.round(Math.random()*1e7)}eventsOfType(t){let n;return typeof t=="string"?n=r=>r.type===t:n=r=>t.includes(r.type),this.events.pipe(oe(n))}nextEventOfType(t){return this.eventsOfType(t).pipe(K(1))}waitForOperationCompleted(t){return this.eventsOfType("OPERATION_COMPLETED").pipe(oe(n=>n.nonce===t),K(1),_(n=>{if(n.result!==void 0)return n.result;throw new Error(n.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}},hI=(()=>{class e{get isEnabled(){return this.sw.isEnabled}constructor(n){if(this.sw=n,this.pushManager=null,this.subscriptionChanges=new H,!n.isEnabled){this.messages=Pt,this.notificationClicks=Pt,this.subscription=Pt;return}this.messages=this.sw.eventsOfType("PUSH").pipe(_(i=>i.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(_(i=>i.data)),this.pushManager=this.sw.registration.pipe(_(i=>i.pushManager));let r=this.pushManager.pipe(se(i=>i.getSubscription()));this.subscription=Gi(r,this.subscriptionChanges)}requestSubscription(n){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(Xr));let r={userVisibleOnly:!0},i=this.decodeBase64(n.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),o=new Uint8Array(new ArrayBuffer(i.length));for(let s=0;ss.subscribe(r)),K(1)).toPromise().then(s=>(this.subscriptionChanges.next(s),s))}unsubscribe(){if(!this.sw.isEnabled)return Promise.reject(new Error(Xr));let n=r=>{if(r===null)throw new Error("Not subscribed to push notifications.");return r.unsubscribe().then(i=>{if(!i)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})};return this.subscription.pipe(K(1),se(n)).toPromise()}decodeBase64(n){return atob(n)}static{this.\u0275fac=function(r){return new(r||e)(O(nr))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),pI=(()=>{class e{get isEnabled(){return this.sw.isEnabled}constructor(n){if(this.sw=n,!n.isEnabled){this.versionUpdates=Pt,this.unrecoverable=Pt;return}this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Xr));let n=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:n},n)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Xr));let n=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:n},n)}static{this.\u0275fac=function(r){return new(r||e)(O(nr))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})();var Wp=new C("");function gI(e,t,n,r){return()=>{if(!(Xu(r)&&"serviceWorker"in navigator&&n.enabled!==!1))return;let i=e.get(q),o=e.get(Ye);i.runOutsideAngular(()=>{let a=navigator.serviceWorker,u=()=>a.controller?.postMessage({action:"INITIALIZE"});a.addEventListener("controllerchange",u),o.onDestroy(()=>{a.removeEventListener("controllerchange",u)})});let s;if(typeof n.registrationStrategy=="function")s=n.registrationStrategy();else{let[a,...u]=(n.registrationStrategy||"registerWhenStable:30000").split(":");switch(a){case"registerImmediately":s=E(null);break;case"registerWithDelay":s=qp(+u[0]||0);break;case"registerWhenStable":let c=$(e.get(Ye).whenStable());s=u[0]?Gi(c,qp(+u[0])):c;break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${n.registrationStrategy}`)}}i.runOutsideAngular(()=>s.pipe(K(1)).subscribe(()=>navigator.serviceWorker.register(t,{scope:n.scope}).catch(a=>console.error("Service worker registration failed with:",a))))}}function qp(e){return E(null).pipe(aa(e))}function mI(e,t){return new nr(Xu(t)&&e.enabled!==!1?navigator.serviceWorker:void 0)}var Jr=class{};function Zp(e,t={}){return kn([hI,pI,{provide:Wp,useValue:e},{provide:Jr,useValue:t},{provide:nr,useFactory:mI,deps:[Jr,st]},{provide:Qo,useFactory:gI,deps:[Ge,Wp,Jr,st],multi:!0}])}var Yp={providers:[Uh({eventCoalescing:!0}),zp(Gp),Zp("ngsw-worker.js",{enabled:!Hh(),registrationStrategy:"registerWhenStable:30000"})]};var rg=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}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{this.\u0275fac=function(r){return new(r||e)(ee(Un),ee(zt))}}static{this.\u0275dir=We({type:e})}}return e})(),ig=(()=>{class e extends rg{static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=jn(e)))(i||e)}})()}static{this.\u0275dir=We({type:e,features:[Wt]})}}return e})(),Kc=new C("");var vI={provide:Kc,useExisting:Pn(()=>bs),multi:!0};function yI(){let e=at()?at().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var DI=new C(""),bs=(()=>{class e extends rg{constructor(n,r,i){super(n,r),this._compositionMode=i,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!yI())}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{this.\u0275fac=function(r){return new(r||e)(ee(Un),ee(zt),ee(DI,8))}}static{this.\u0275dir=We({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,i){r&1&&_e("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[qo([vI]),Wt]})}}return e})();var CI=new C(""),wI=new C("");function og(e){return e!=null}function sg(e){return Zt(e)?$(e):e}function ag(e){let t={};return e.forEach(n=>{t=n!=null?p(p({},t),n):t}),Object.keys(t).length===0?null:t}function ug(e,t){return t.map(n=>n(e))}function EI(e){return!e.validate}function cg(e){return e.map(t=>EI(t)?t:n=>t.validate(n))}function II(e){if(!e)return null;let t=e.filter(og);return t.length==0?null:function(n){return ag(ug(n,t))}}function lg(e){return e!=null?II(cg(e)):null}function bI(e){if(!e)return null;let t=e.filter(og);return t.length==0?null:function(n){let r=ug(n,t).map(sg);return oa(r).pipe(_(ag))}}function dg(e){return e!=null?bI(cg(e)):null}function Qp(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function _I(e){return e._rawValidators}function MI(e){return e._rawAsyncValidators}function qc(e){return e?Array.isArray(e)?e:[e]:[]}function ws(e,t){return Array.isArray(e)?e.includes(t):e===t}function Kp(e,t){let n=qc(t);return qc(e).forEach(i=>{ws(n,i)||n.push(i)}),n}function Jp(e,t){return qc(t).filter(n=>!ws(e,n))}var Es=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=lg(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=dg(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=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}},Zc=class extends Es{get formDirective(){return null}get path(){return null}},ii=class extends Es{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Yc=class{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}},SI={"[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"},mR=k(p({},SI),{"[class.ng-submitted]":"isSubmitted"}),fg=(()=>{class e extends Yc{constructor(n){super(n)}static{this.\u0275fac=function(r){return new(r||e)(ee(ii,2))}}static{this.\u0275dir=We({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){r&2&&Sr("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[Wt]})}}return e})();var ei="VALID",Cs="INVALID",rr="PENDING",ti="DISABLED",or=class{},Is=class extends or{constructor(t,n){super(),this.value=t,this.source=n}},ni=class extends or{constructor(t,n){super(),this.pristine=t,this.source=n}},ri=class extends or{constructor(t,n){super(),this.touched=t,this.source=n}},ir=class extends or{constructor(t,n){super(),this.status=t,this.source=n}};function xI(e){return(_s(e)?e.validators:e)||null}function TI(e){return Array.isArray(e)?lg(e):e||null}function AI(e,t){return(_s(t)?t.asyncValidators:e)||null}function NI(e){return Array.isArray(e)?dg(e):e||null}function _s(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var Qc=class{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=Jo(()=>this.statusReactive()),this.statusReactive=Ho(void 0),this._pristine=Jo(()=>this.pristineReactive()),this.pristineReactive=Ho(!0),this._touched=Jo(()=>this.touchedReactive()),this.touchedReactive=Ho(!1),this._events=new H,this.events=this._events.asObservable(),this._onDisabledChange=[],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 It(this.statusReactive)}set status(t){It(()=>this.statusReactive.set(t))}get valid(){return this.status===ei}get invalid(){return this.status===Cs}get pending(){return this.status==rr}get disabled(){return this.status===ti}get enabled(){return this.status!==ti}get pristine(){return It(this.pristineReactive)}set pristine(t){It(()=>this.pristineReactive.set(t))}get dirty(){return!this.pristine}get touched(){return It(this.touchedReactive)}set touched(t){It(()=>this.touchedReactive.set(t))}get untouched(){return!this.touched}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(Kp(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Kp(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Jp(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Jp(t,this._rawAsyncValidators))}hasValidator(t){return ws(this._rawValidators,t)}hasAsyncValidator(t){return ws(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(k(p({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new ri(!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(i=>{i.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 ri(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(k(p({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new ni(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new ni(!0,r))}markAsPending(t={}){this.status=rr;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new ir(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(k(p({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=ti,this.errors=null,this._forEachChild(i=>{i.disable(k(p({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Is(this.value,r)),this._events.next(new ir(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(k(p({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=ei,this._forEachChild(r=>{r.enable(k(p({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(k(p({},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===ei||this.status===rr)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Is(this.value,n)),this._events.next(new ir(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(k(p({},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()?ti:ei}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=rr,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=sg(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{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,i)=>r&&r._find(i),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new ir(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new X,this.statusChanges=new X}_calculateStatus(){return this._allControlsDisabled()?ti:this.errors?Cs:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(rr)?rr:this._anyControlsHaveStatus(Cs)?Cs:ei}_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(),i=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),i&&this._events.next(new ni(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new ri(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){_s(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=TI(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=NI(this._rawAsyncValidators)}};var hg=new C("CallSetDisabledState",{providedIn:"root",factory:()=>Jc}),Jc="always";function RI(e,t){return[...t.path,e]}function OI(e,t,n=Jc){PI(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),kI(e,t),VI(e,t),LI(e,t),FI(e,t)}function Xp(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function FI(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function PI(e,t){let n=_I(e);t.validator!==null?e.setValidators(Qp(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=MI(e);t.asyncValidator!==null?e.setAsyncValidators(Qp(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let i=()=>e.updateValueAndValidity();Xp(t._rawValidators,i),Xp(t._rawAsyncValidators,i)}function kI(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&pg(e,t)})}function LI(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&pg(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function pg(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function VI(e,t){let n=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function jI(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function BI(e){return Object.getPrototypeOf(e.constructor)===ig}function UI(e,t){if(!t)return null;Array.isArray(t);let n,r,i;return t.forEach(o=>{o.constructor===bs?n=o:BI(o)?r=o:i=o}),i||r||n||null}function eg(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function tg(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var $I=class extends Qc{constructor(t=null,n,r){super(xI(n),AI(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),_s(n)&&(n.nonNullable||n.initialValueIsDefault)&&(tg(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){eg(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){eg(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){tg(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 HI={provide:ii,useExisting:Pn(()=>Xc)},ng=Promise.resolve(),Xc=(()=>{class e extends ii{constructor(n,r,i,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new $I,this._registered=!1,this.name="",this.update=new X,this._parent=n,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=UI(this,o)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),jI(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){OI(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){ng.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,i=r!==0&&Ko(r);ng.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?RI(n,this._parent):[n]}static{this.\u0275fac=function(r){return new(r||e)(ee(Zc,9),ee(CI,10),ee(wI,10),ee(Kc,10),ee(Yt,8),ee(hg,8))}}static{this.\u0275dir=We({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[qo([HI]),Wt,Vn]})}}return e})();var zI={provide:Kc,useExisting:Pn(()=>el),multi:!0},el=(()=>{class e extends ig{writeValue(n){this.setProperty("value",parseFloat(n))}registerOnChange(n){this.onChange=r=>{n(r==""?null:parseFloat(r))}}static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=jn(e)))(i||e)}})()}static{this.\u0275dir=We({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(r,i){r&1&&_e("change",function(s){return i.onChange(s.target.value)})("input",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},features:[qo([zI]),Wt]})}}return e})();var GI=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=wt({type:e})}static{this.\u0275inj=Ct({})}}return e})();var gg=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:hg,useValue:n.callSetDisabledState??Jc}]}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=wt({type:e})}static{this.\u0275inj=Ct({imports:[GI]})}}return e})();function Ms(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ms=function(t){return typeof t}:Ms=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ms(e)}function qI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var ZI=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],YI=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function QI(e,t,n,r,i){if(typeof e=="string"&&(e=document.getElementById(e)),!e||Ms(e)!=="object"||!("getContext"in e))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var o=e.getContext("2d");try{return o.getImageData(t,n,r,i)}catch(s){throw new Error("unable to access image data: "+s)}}function vg(e,t,n,r,i,o){if(!(isNaN(o)||o<1)){o|=0;var s=QI(e,t,n,r,i);s=KI(s,t,n,r,i,o),e.getContext("2d").putImageData(s,t,n)}}function KI(e,t,n,r,i,o){for(var s=e.data,a=2*o+1,u=r-1,c=i-1,l=o+1,d=l*(l+1)/2,h=new mg,f=h,g,M=1;M>>Y,s[U+1]=si*Z>>>Y,s[U+2]=ai*Z>>>Y,oi-=xs,si-=Ts,ai-=As,xs-=y.r,Ts-=y.g,As-=y.b,L=ie+((L=Ns+o+1)>>Y,s[L+1]=fi*Z>>>Y,s[L+2]=hi*Z>>>Y,di-=Rs,fi-=Os,hi-=Fs,Rs-=y.r,Os-=y.g,Fs-=y.b,L=nn+((L=Vs+l){let r=new FileReader;r.onload=()=>n(r.result),r.readAsDataURL(t)})}isSafari(){let t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")}applyBlur(t){return new Promise(n=>{let r=new Image;r.onload=()=>{let i=document.createElement("canvas"),o=i.getContext("2d"),s=r.width/r.height,a=1920,u=Math.round(a/s);i.width=a,i.height=u,o.drawImage(r,0,0,i.width,i.height),vg(i,0,0,i.width,i.height,this.blurAmount),n(i.toDataURL("image/jpeg",.95))},r.src=t})}handleInstallPrompt(){window.addEventListener("beforeinstallprompt",t=>{t.preventDefault(),this.deferredPrompt=t,this.showInstallButton=!0}),window.addEventListener("appinstalled",()=>{this.showInstallButton=!1,this.deferredPrompt=null})}installPwa(){return rn(this,null,function*(){if(!this.deferredPrompt)return;this.deferredPrompt.prompt();let{outcome:t}=yield this.deferredPrompt.userChoice;t==="accepted"&&(this.showInstallButton=!1),this.deferredPrompt=null})}downloadImage(){if(this.blurredImageUrl){let t=document.createElement("a");t.href=this.blurredImageUrl,t.download="blurred.jpg",t.click()}}reset(){this.imageUrl=null,this.blurredImageUrl=null,this.blurAmount=100}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Ao({type:e,selectors:[["app-root"]],standalone:!0,features:[Zo],decls:8,vars:6,consts:[["fileInput",""],[1,"container",3,"dragover","drop","click"],["type","file","accept","image/*",2,"display","none",3,"change"],[1,"result"],[1,"install-button"],["alt","Blurred image",3,"src"],[1,"overlay"],[1,"controls"],["type","range","min","20","max","200",3,"ngModelChange","ngModel"],[1,"button-group"],[3,"click"],[1,"reset",3,"click"],[1,"install-button",3,"click"]],template:function(n,r){if(n&1){let i=Wo();be(0,"div",1),_e("dragover",function(s){return qe(i),Ze(r.onDragOver(s))})("drop",function(s){return qe(i),Ze(r.onDrop(s))})("click",function(){qe(i);let s=Fh(2);return Ze(!r.imageUrl&&s.click())}),be(1,"input",2,0),_e("change",function(s){return qe(i),Ze(r.onFileSelected(s))}),Fe(),Go(3,XI,2,0,"p")(4,eb,2,0,"p")(5,tb,11,2,"div",3),Fe(),Go(6,nb,2,0,"button",4),Hn(7,"router-outlet")}n&2&&(Sr("has-image",r.imageUrl),Gt(3),xr(r.imageUrl?-1:3),Gt(),xr(r.isProcessing?4:-1),Gt(),xr(r.blurredImageUrl?5:-1),Gt(),xr(r.showInstallButton?6:-1))},dependencies:[Uc,Ku,gg,bs,el,fg,Xc],styles:["*[_ngcontent-%COMP%]{box-sizing:border-box}.container[_ngcontent-%COMP%]{height:100vh;padding:0;margin:0;overflow:hidden;display:flex;flex-direction:column;box-sizing:border-box;justify-content:center;align-items:center}.container[_ngcontent-%COMP%]:not(.has-image){border:4px dashed #ccc;border-radius:4px;padding:20px;cursor:pointer}.result[_ngcontent-%COMP%]{margin:0;position:relative;width:100%;height:100%;display:flex}.result[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;border-radius:0;box-shadow:none}.overlay[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:20px;background:#0003;opacity:.1;transition:opacity .3s ease;border-radius:8px;padding-top:20px}.overlay[_ngcontent-%COMP%]:hover{opacity:1}.controls[_ngcontent-%COMP%]{background:#000000b3;padding:8px 15px;border-radius:4px}.controls[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;align-items:center;color:#fff}.controls[_ngcontent-%COMP%] input[type=range][_ngcontent-%COMP%]{width:200px}button[_ngcontent-%COMP%]:hover{background-color:#0056b3}.button-group[_ngcontent-%COMP%]{display:flex;gap:10px}.reset[_ngcontent-%COMP%]{background-color:#dc3545}.reset[_ngcontent-%COMP%]:hover{background-color:#c82333}.container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1.2rem;color:#666}.install-button[_ngcontent-%COMP%]{position:fixed;bottom:20px;right:20px;padding:12px 24px;background-color:#007bff;color:#fff;border:none;border-radius:24px;cursor:pointer;box-shadow:0 2px 5px #0003;z-index:1000;transition:transform .2s ease}.install-button[_ngcontent-%COMP%]:hover{transform:scale(1.05);background-color:#0056b3}"]})};sp(Ss,Yp).catch(e=>console.error(e)); diff --git a/ngsw.json b/ngsw.json index 25a8687..d862966 100644 --- a/ngsw.json +++ b/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1731749954945, + "timestamp": 1731865689815, "index": "/index.html", "assetGroups": [ { @@ -12,7 +12,7 @@ }, "urls": [ "/index.html", - "/main-H2AYSRO2.js", + "/main-UDCRRYV7.js", "/manifest.webmanifest", "/polyfills-FFHMD2TL.js", "/styles-IH7QB2KV.css" @@ -51,8 +51,8 @@ "/icons/icon-512x512.png": "cd40b87e4f512eb3a2b58683ef0ae2b0d7c8c0fe", "/icons/icon-72x72.png": "07871cf6100dcda9b3fa6405f7eda8d3ca222ace", "/icons/icon-96x96.png": "8062df6a91de14cae02b34ba5cba37f1af03d383", - "/index.html": "ea6170841afaa8ac542ee92de50a5d2680beba2b", - "/main-H2AYSRO2.js": "da49fda728649022e46809477b5872101a96606e", + "/index.html": "eceb434dc13a87ceb4e733e5754d4619159f80bb", + "/main-UDCRRYV7.js": "86d6d63efac73a85569915b8e7716ad02ddcbc93", "/manifest.webmanifest": "9a84f24cd1efc6aeffe787653ae8590a795f3a2d", "/polyfills-FFHMD2TL.js": "f49b49a155bc7d192db62a4c15d0a612b460a667", "/styles-IH7QB2KV.css": "420e493224bf31e7de01bcdf9fd81bb33c95d60c"