diff --git a/404.html b/404.html index accb0e1..bd2cd69 100644 --- a/404.html +++ b/404.html @@ -12,5 +12,5 @@
Loading ...
- + diff --git a/index.html b/index.html index accb0e1..bd2cd69 100644 --- a/index.html +++ b/index.html @@ -12,5 +12,5 @@
Loading ...
- + diff --git a/main-CGMHNDMQ.js b/main-CGMHNDMQ.js new file mode 100644 index 0000000..206a395 --- /dev/null +++ b/main-CGMHNDMQ.js @@ -0,0 +1,10 @@ +var Mv=Object.defineProperty,Sv=Object.defineProperties;var Tv=Object.getOwnPropertyDescriptors;var vd=Object.getOwnPropertySymbols;var xv=Object.prototype.hasOwnProperty,Av=Object.prototype.propertyIsEnumerable;var yd=(t,e,r)=>e in t?Mv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,m=(t,e)=>{for(var r in e||={})xv.call(e,r)&&yd(t,r,e[r]);if(vd)for(var r of vd(e))Av.call(e,r)&&yd(t,r,e[r]);return t},W=(t,e)=>Sv(t,Tv(e));var Dd=null;var _a=1;function Ie(t){let e=Dd;return Dd=t,e}var Cd={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 Nv(t){if(!(Ta(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===_a)){if(!t.producerMustRecompute(t)&&!Ma(t)){t.dirty=!1,t.lastCleanEpoch=_a;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=_a}}function wd(t){return t&&(t.nextProducerIndex=0),Ie(t)}function bd(t,e){if(Ie(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Ta(t))for(let r=t.nextProducerIndex;rt.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Ma(t){Ui(t);for(let e=0;e0}function Ui(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Ov(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Rv(){throw new Error}var Fv=Rv;function Id(t){Fv=t}function N(t){return typeof t=="function"}function Un(t){let r=t(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Hi=Un(t=>function(r){t(this),this.message=r?`${r.length} errors occurred during unsubscription: +${r.map((n,i)=>`${i+1}) ${n.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=r});function yn(t,e){if(t){let r=t.indexOf(e);0<=r&&t.splice(r,1)}}var ue=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let o of r)o.remove(this);else r.remove(this);let{initialTeardown:n}=this;if(N(n))try{n()}catch(o){e=o instanceof Hi?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{_d(o)}catch(s){e=e??[],s instanceof Hi?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Hi(e)}}add(e){var r;if(e&&e!==this)if(this.closed)_d(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}}_hasParent(e){let{_parentage:r}=this;return r===e||Array.isArray(r)&&r.includes(e)}_addParent(e){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e}_removeParent(e){let{_parentage:r}=this;r===e?this._parentage=null:Array.isArray(r)&&yn(r,e)}remove(e){let{_finalizers:r}=this;r&&yn(r,e),e instanceof t&&e._removeParent(this)}};ue.EMPTY=(()=>{let t=new ue;return t.closed=!0,t})();var xa=ue.EMPTY;function zi(t){return t instanceof ue||t&&"closed"in t&&N(t.remove)&&N(t.add)&&N(t.unsubscribe)}function _d(t){N(t)?t():t.unsubscribe()}var rt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Hn={setTimeout(t,e,...r){let{delegate:n}=Hn;return n?.setTimeout?n.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=Hn;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Gi(t){Hn.setTimeout(()=>{let{onUnhandledError:e}=rt;if(e)e(t);else throw t})}function jr(){}var Md=(()=>Aa("C",void 0,void 0))();function Sd(t){return Aa("E",void 0,t)}function Td(t){return Aa("N",t,void 0)}function Aa(t,e,r){return{kind:t,value:e,error:r}}var Dn=null;function zn(t){if(rt.useDeprecatedSynchronousErrorHandling){let e=!Dn;if(e&&(Dn={errorThrown:!1,error:null}),t(),e){let{errorThrown:r,error:n}=Dn;if(Dn=null,r)throw n}}else t()}function xd(t){rt.useDeprecatedSynchronousErrorHandling&&Dn&&(Dn.errorThrown=!0,Dn.error=t)}var Cn=class extends ue{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,zi(e)&&e.add(this)):this.destination=Lv}static create(e,r,n){return new Gn(e,r,n)}next(e){this.isStopped?Oa(Td(e),this):this._next(e)}error(e){this.isStopped?Oa(Sd(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Oa(Md,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Pv=Function.prototype.bind;function Na(t,e){return Pv.call(t,e)}var Ra=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(n){Wi(n)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(n){Wi(n)}else Wi(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){Wi(r)}}},Gn=class extends Cn{constructor(e,r,n){super();let i;if(N(e)||!e)i={next:e??void 0,error:r??void 0,complete:n??void 0};else{let o;this&&rt.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&Na(e.next,o),error:e.error&&Na(e.error,o),complete:e.complete&&Na(e.complete,o)}):i=e}this.destination=new Ra(i)}};function Wi(t){rt.useDeprecatedSynchronousErrorHandling?xd(t):Gi(t)}function kv(t){throw t}function Oa(t,e){let{onStoppedNotification:r}=rt;r&&Hn.setTimeout(()=>r(t,e))}var Lv={closed:!0,next:jr,error:kv,complete:jr};var Wn=(()=>typeof Symbol=="function"&&Symbol.observable||"@@observable")();function _e(t){return t}function Fa(...t){return Pa(t)}function Pa(t){return t.length===0?_e:t.length===1?t[0]:function(r){return t.reduce((n,i)=>i(n),r)}}var B=(()=>{class t{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new t;return n.source=this,n.operator=r,n}subscribe(r,n,i){let o=jv(r)?r:new Gn(r,n,i);return zn(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return n=Ad(n),new n((i,o)=>{let s=new Gn({next:a=>{try{r(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[Wn](){return this}pipe(...r){return Pa(r)(this)}toPromise(r){return r=Ad(r),new r((n,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>n(o))})}}return t.create=e=>new t(e),t})();function Ad(t){var e;return(e=t??rt.Promise)!==null&&e!==void 0?e:Promise}function Vv(t){return t&&N(t.next)&&N(t.error)&&N(t.complete)}function jv(t){return t&&t instanceof Cn||Vv(t)&&zi(t)}function ka(t){return N(t?.lift)}function L(t){return e=>{if(ka(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function F(t,e,r,n,i){return new La(t,e,r,n,i)}var La=class extends Cn{constructor(e,r,n,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(u){e.error(u)}}:super._next,this._error=i?function(a){try{i(a)}catch(u){e.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function qn(){return L((t,e)=>{let r=null;t._refCount++;let n=F(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){r=null;return}let i=t._connection,o=r;r=null,i&&(!o||i===o)&&i.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(r=t.connect())})}var Zn=class extends B{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,ka(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new ue;let r=this.getSubject();e.add(this.source.subscribe(F(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=ue.EMPTY)}return e}refCount(){return qn()(this)}};var Nd=Un(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ve=(()=>{class t extends B{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new qi(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new Nd}next(r){zn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){zn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){zn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:n,isStopped:i,observers:o}=this;return n||i?xa:(this.currentObservers=null,o.push(r),new ue(()=>{this.currentObservers=null,yn(o,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:i,isStopped:o}=this;n?r.error(i):o&&r.complete()}asObservable(){let r=new B;return r.source=this,r}}return t.create=(e,r)=>new qi(e,r),t})(),qi=class extends ve{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)}error(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)}complete(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)}_subscribe(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:xa}};var pe=class extends ve{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let r=super._subscribe(e);return!r.closed&&e.next(this._value),r}getValue(){let{hasError:e,thrownError:r,_value:n}=this;if(e)throw r;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var Va={now(){return(Va.delegate||Date).now()},delegate:void 0};var Zi=class extends ue{constructor(e,r){super()}schedule(e,r=0){return this}};var Br={setInterval(t,e,...r){let{delegate:n}=Br;return n?.setInterval?n.setInterval(t,e,...r):setInterval(t,e,...r)},clearInterval(t){let{delegate:e}=Br;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var Yi=class extends Zi{constructor(e,r){super(e,r),this.scheduler=e,this.work=r,this.pending=!1}schedule(e,r=0){var n;if(this.closed)return this;this.state=e;let i=this.id,o=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(o,i,r)),this.pending=!0,this.delay=r,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(o,this.id,r),this}requestAsyncId(e,r,n=0){return Br.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,r,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return r;r!=null&&Br.clearInterval(r)}execute(e,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,r);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,r){let n=!1,i;try{this.work(e)}catch(o){n=!0,i=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){let{id:e,scheduler:r}=this,{actions:n}=r;this.work=this.state=this.scheduler=null,this.pending=!1,yn(n,this),e!=null&&(this.id=this.recycleAsyncId(r,e,null)),this.delay=null,super.unsubscribe()}}};var Yn=class t{constructor(e,r=t.now){this.schedulerActionCtor=e,this.now=r}schedule(e,r=0,n){return new this.schedulerActionCtor(this,e).schedule(n,r)}};Yn.now=Va.now;var Qi=class extends Yn{constructor(e,r=Yn.now){super(e,r),this.actions=[],this._active=!1}flush(e){let{actions:r}=this;if(this._active){r.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,n){for(;e=r.shift();)e.unsubscribe();throw n}}};var Od=new Qi(Yi);var Ue=new B(t=>t.complete());function Rd(t){return t&&N(t.schedule)}function Fd(t){return t[t.length-1]}function Ki(t){return N(Fd(t))?t.pop():void 0}function Qt(t){return Rd(Fd(t))?t.pop():void 0}function kd(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(l){try{c(n.next(l))}catch(d){s(d)}}function u(l){try{c(n.throw(l))}catch(d){s(d)}}function c(l){l.done?o(l.value):i(l.value).then(a,u)}c((n=n.apply(t,e||[])).next())})}function Pd(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function wn(t){return this instanceof wn?(this.v=t,this):new wn(t)}function Ld(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(f){n[f]&&(i[f]=function(h){return new Promise(function(v,j){o.push([f,h,v,j])>1||a(f,h)})})}function a(f,h){try{u(n[f](h))}catch(v){d(o[0][3],v)}}function u(f){f.value instanceof wn?Promise.resolve(f.value.v).then(c,l):d(o[0][2],f)}function c(f){a("next",f)}function l(f){a("throw",f)}function d(f,h){f(h),o.shift(),o.length&&a(o[0][0],o[0][1])}}function Vd(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof Pd=="function"?Pd(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(s){return new Promise(function(a,u){s=t[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(c){o({value:c,done:a})},s)}}var Ji=t=>t&&typeof t.length=="number"&&typeof t!="function";function Xi(t){return N(t?.then)}function eo(t){return N(t[Wn])}function to(t){return Symbol.asyncIterator&&N(t?.[Symbol.asyncIterator])}function no(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Bv(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ro=Bv();function io(t){return N(t?.[ro])}function oo(t){return Ld(this,arguments,function*(){let r=t.getReader();try{for(;;){let{value:n,done:i}=yield wn(r.read());if(i)return yield wn(void 0);yield yield wn(n)}}finally{r.releaseLock()}})}function so(t){return N(t?.getReader)}function de(t){if(t instanceof B)return t;if(t!=null){if(eo(t))return $v(t);if(Ji(t))return Uv(t);if(Xi(t))return Hv(t);if(to(t))return jd(t);if(io(t))return zv(t);if(so(t))return Gv(t)}throw no(t)}function $v(t){return new B(e=>{let r=t[Wn]();if(N(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Uv(t){return new B(e=>{for(let r=0;r{t.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,Gi)})}function zv(t){return new B(e=>{for(let r of t)if(e.next(r),e.closed)return;e.complete()})}function jd(t){return new B(e=>{Wv(t,e).catch(r=>e.error(r))})}function Gv(t){return jd(oo(t))}function Wv(t,e){var r,n,i,o;return kd(this,void 0,void 0,function*(){try{for(r=Vd(t);n=yield r.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){i={error:s}}finally{try{n&&!n.done&&(o=r.return)&&(yield o.call(r))}finally{if(i)throw i.error}}e.complete()})}function Re(t,e,r,n=0,i=!1){let o=e.schedule(function(){r(),i?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!i)return o}function ao(t,e=0){return L((r,n)=>{r.subscribe(F(n,i=>Re(n,t,()=>n.next(i),e),()=>Re(n,t,()=>n.complete(),e),i=>Re(n,t,()=>n.error(i),e)))})}function uo(t,e=0){return L((r,n)=>{n.add(t.schedule(()=>r.subscribe(n),e))})}function Bd(t,e){return de(t).pipe(uo(e),ao(e))}function $d(t,e){return de(t).pipe(uo(e),ao(e))}function Ud(t,e){return new B(r=>{let n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function Hd(t,e){return new B(r=>{let n;return Re(r,e,()=>{n=t[ro](),Re(r,e,()=>{let i,o;try{({value:i,done:o}=n.next())}catch(s){r.error(s);return}o?r.complete():r.next(i)},0,!0)}),()=>N(n?.return)&&n.return()})}function co(t,e){if(!t)throw new Error("Iterable cannot be null");return new B(r=>{Re(r,e,()=>{let n=t[Symbol.asyncIterator]();Re(r,e,()=>{n.next().then(i=>{i.done?r.complete():r.next(i.value)})},0,!0)})})}function zd(t,e){return co(oo(t),e)}function Gd(t,e){if(t!=null){if(eo(t))return Bd(t,e);if(Ji(t))return Ud(t,e);if(Xi(t))return $d(t,e);if(to(t))return co(t,e);if(io(t))return Hd(t,e);if(so(t))return zd(t,e)}throw no(t)}function J(t,e){return e?Gd(t,e):de(t)}function I(...t){let e=Qt(t);return J(t,e)}function Qn(t,e){let r=N(t)?t:()=>t,n=i=>i.error(r());return new B(e?i=>e.schedule(n,0,i):n)}function ja(t){return!!t&&(t instanceof B||N(t.lift)&&N(t.subscribe))}var Ft=Un(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function T(t,e){return L((r,n)=>{let i=0;r.subscribe(F(n,o=>{n.next(t.call(e,o,i++))}))})}var{isArray:qv}=Array;function Zv(t,e){return qv(e)?t(...e):t(e)}function lo(t){return T(e=>Zv(t,e))}var{isArray:Yv}=Array,{getPrototypeOf:Qv,prototype:Kv,keys:Jv}=Object;function fo(t){if(t.length===1){let e=t[0];if(Yv(e))return{args:e,keys:null};if(Xv(e)){let r=Jv(e);return{args:r.map(n=>e[n]),keys:r}}}return{args:t,keys:null}}function Xv(t){return t&&typeof t=="object"&&Qv(t)===Kv}function ho(t,e){return t.reduce((r,n,i)=>(r[n]=e[i],r),{})}function $r(...t){let e=Qt(t),r=Ki(t),{args:n,keys:i}=fo(t);if(n.length===0)return J([],e);let o=new B(ey(n,e,i?s=>ho(i,s):_e));return r?o.pipe(lo(r)):o}function ey(t,e,r=_e){return n=>{Wd(e,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let u=0;u{let c=J(t[u],e),l=!1;c.subscribe(F(n,d=>{o[u]=d,l||(l=!0,a--),a||n.next(r(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}function Wd(t,e,r){t?Re(r,t,e):e()}function qd(t,e,r,n,i,o,s,a){let u=[],c=0,l=0,d=!1,f=()=>{d&&!u.length&&!c&&e.complete()},h=j=>c{o&&e.next(j),c++;let S=!1;de(r(j,l++)).subscribe(F(e,_=>{i?.(_),o?h(_):e.next(_)},()=>{S=!0},void 0,()=>{if(S)try{for(c--;u.length&&cv(_)):v(_)}f()}catch(_){e.error(_)}}))};return t.subscribe(F(e,h,()=>{d=!0,f()})),()=>{a?.()}}function fe(t,e,r=1/0){return N(e)?fe((n,i)=>T((o,s)=>e(n,o,i,s))(de(t(n,i))),r):(typeof e=="number"&&(r=e),L((n,i)=>qd(n,i,t,r)))}function Kt(t=1/0){return fe(_e,t)}function Zd(){return Kt(1)}function Kn(...t){return Zd()(J(t,Qt(t)))}function po(t){return new B(e=>{de(t()).subscribe(e)})}function Ba(...t){let e=Ki(t),{args:r,keys:n}=fo(t),i=new B(o=>{let{length:s}=r;if(!s){o.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=f},()=>u--,void 0,()=>{(!u||!d)&&(c||o.next(n?ho(n,a):a),o.complete())}))}});return e?i.pipe(lo(e)):i}function De(t,e){return L((r,n)=>{let i=0;r.subscribe(F(n,o=>t.call(e,o,i++)&&n.next(o)))})}function He(t){return L((e,r)=>{let n=null,i=!1,o;n=e.subscribe(F(r,void 0,void 0,s=>{o=de(t(s,He(t)(e))),n?(n.unsubscribe(),n=null,o.subscribe(r)):i=!0})),i&&(n.unsubscribe(),n=null,o.subscribe(r))})}function Yd(t,e,r,n,i){return(o,s)=>{let a=r,u=e,c=0;o.subscribe(F(s,l=>{let d=c++;u=a?t(u,l,d):(a=!0,l),n&&s.next(u)},i&&(()=>{a&&s.next(u),s.complete()})))}}function Pt(t,e){return N(e)?fe(t,e,1):fe(t,1)}function $a(t,e=Od){return L((r,n)=>{let i=null,o=null,s=null,a=()=>{if(i){i.unsubscribe(),i=null;let c=o;o=null,n.next(c)}};function u(){let c=s+t,l=e.now();if(l{o=c,s=e.now(),i||(i=e.schedule(u,t),n.add(i))},()=>{a(),n.complete()},void 0,()=>{o=i=null}))})}function Jt(t){return L((e,r)=>{let n=!1;e.subscribe(F(r,i=>{n=!0,r.next(i)},()=>{n||r.next(t),r.complete()}))})}function kt(t){return t<=0?()=>Ue:L((e,r)=>{let n=0;e.subscribe(F(r,i=>{++n<=t&&(r.next(i),t<=n&&r.complete())}))})}function Ua(t){return T(()=>t)}function Ha(t,e=_e){return t=t??ty,L((r,n)=>{let i,o=!0;r.subscribe(F(n,s=>{let a=e(s);(o||!t(i,a))&&(o=!1,i=a,n.next(s))}))})}function ty(t,e){return t===e}function go(t=ny){return L((e,r)=>{let n=!1;e.subscribe(F(r,i=>{n=!0,r.next(i)},()=>n?r.complete():r.error(t())))})}function ny(){return new Ft}function Xt(t){return L((e,r)=>{try{e.subscribe(r)}finally{r.add(t)}})}function pt(t,e){let r=arguments.length>=2;return n=>n.pipe(t?De((i,o)=>t(i,o,n)):_e,kt(1),r?Jt(e):go(()=>new Ft))}function Jn(t){return t<=0?()=>Ue:L((e,r)=>{let n=[];e.subscribe(F(r,i=>{n.push(i),t{for(let i of n)r.next(i);r.complete()},void 0,()=>{n=null}))})}function za(t,e){let r=arguments.length>=2;return n=>n.pipe(t?De((i,o)=>t(i,o,n)):_e,Jn(1),r?Jt(e):go(()=>new Ft))}function Ga(t,e){return L(Yd(t,e,arguments.length>=2,!0))}function Wa(...t){let e=Qt(t);return L((r,n)=>{(e?Kn(t,r,e):Kn(t,r)).subscribe(n)})}function ge(t,e){return L((r,n)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&n.complete();r.subscribe(F(n,u=>{i?.unsubscribe();let c=0,l=o++;de(t(u,l)).subscribe(i=F(n,d=>n.next(e?e(u,d,l,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function Xn(t){return L((e,r)=>{de(t).subscribe(F(r,()=>r.complete(),jr)),!r.closed&&e.subscribe(r)})}function oe(t,e,r){let n=N(t)||e||r?{next:t,error:e,complete:r}:t;return n?L((i,o)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;i.subscribe(F(o,u=>{var c;(c=n.next)===null||c===void 0||c.call(n,u),o.next(u)},()=>{var u;a=!1,(u=n.complete)===null||u===void 0||u.call(n),o.complete()},u=>{var c;a=!1,(c=n.error)===null||c===void 0||c.call(n,u),o.error(u)},()=>{var u,c;a&&((u=n.unsubscribe)===null||u===void 0||u.call(n)),(c=n.finalize)===null||c===void 0||c.call(n)}))}):_e}function Z(t){for(let e in t)if(t[e]===Z)return e;throw Error("Could not find renamed property on target object.")}function mo(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Se(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(Se).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(` +`);return r===-1?e:e.substring(0,r)}function Qd(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var ry=Z({__forward_ref__:Z});function Et(t){return t.__forward_ref__=Et,t.toString=function(){return Se(this())},t}function Me(t){return kf(t)?t():t}function kf(t){return typeof t=="function"&&t.hasOwnProperty(ry)&&t.__forward_ref__===Et}function Lf(t){return t&&!!t.\u0275providers}var Vf="https://g.co/ng/security#xss",b=class extends Error{constructor(e,r){super(Qo(e,r)),this.code=e}};function Qo(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}var iy=Z({\u0275cmp:Z}),oy=Z({\u0275dir:Z}),sy=Z({\u0275pipe:Z}),ay=Z({\u0275mod:Z}),To=Z({\u0275fac:Z}),Ur=Z({__NG_ELEMENT_ID__:Z}),Kd=Z({__NG_ENV_ID__:Z});function Ko(t){return typeof t=="string"?t:t==null?"":String(t)}function uy(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Ko(t)}function cy(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new b(-200,`Circular dependency in DI detected for ${t}${r}`)}function tc(t,e){throw new b(-201,!1)}function ly(t,e){t==null&&dy(e,t,null,"!=")}function dy(t,e,r,n){throw new Error(`ASSERTION ERROR: ${t}`+(n==null?"":` [Expected=> ${r} ${n} ${e} <=Actual]`))}function w(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ee(t){return{providers:t.providers||[],imports:t.imports||[]}}function Jo(t){return Jd(t,Bf)||Jd(t,$f)}function jf(t){return Jo(t)!==null}function Jd(t,e){return t.hasOwnProperty(e)?t[e]:null}function fy(t){let e=t&&(t[Bf]||t[$f]);return e||null}function Xd(t){return t&&(t.hasOwnProperty(ef)||t.hasOwnProperty(hy))?t[ef]:null}var Bf=Z({\u0275prov:Z}),ef=Z({\u0275inj:Z}),$f=Z({ngInjectableDef:Z}),hy=Z({ngInjectorDef:Z}),V=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(V||{}),uu;function Uf(){return uu}function Fe(t){let e=uu;return uu=t,e}function Hf(t,e,r){let n=Jo(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&V.Optional)return null;if(e!==void 0)return e;tc(t,"Injector")}var me=globalThis;var E=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=w({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};var py={},zr=py,cu="__NG_DI_FLAG__",xo="ngTempTokenPath",gy="ngTokenPath",my=/\n/gm,vy="\u0275",tf="__source",ir;function yy(){return ir}function en(t){let e=ir;return ir=t,e}function Dy(t,e=V.Default){if(ir===void 0)throw new b(-203,!1);return ir===null?Hf(t,void 0,e):ir.get(t,e&V.Optional?null:void 0,e)}function C(t,e=V.Default){return(Uf()||Dy)(Me(t),e)}function p(t,e=V.Default){return C(t,Xo(e))}function Xo(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function lu(t){let e=[];for(let r=0;r ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):Se(a)))}i=`{${o.join(", ")}}`}return`${r}${n?"("+n+")":""}[${i}]: ${t.replace(my,` + `)}`}function ei(t){return{toString:t}.toString()}var Gf=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(Gf||{}),yt=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(yt||{}),sr={},ze=[];function Wf(t,e,r){let n=t.length;for(;;){let i=t.indexOf(e,r);if(i===-1)return i;if(i===0||t.charCodeAt(i-1)<=32){let o=e.length;if(i+o===n||t.charCodeAt(i+o)<=32)return i}r=i+1}}function du(t,e,r){let n=0;for(;ne){s=o-1;break}}}for(;oo?f="":f=i[d+1].toLowerCase();let h=n&8?f:null;if(h&&Wf(h,c,0)!==-1||n&2&&c!==f){if(it(n))return!1;s=!0}}}}return it(n)||s}function it(t){return(t&1)===0}function Sy(t,e,r,n){if(e===null)return-1;let i=0;if(n||!r){let o=!1;for(;i-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?i+="."+s:n&4&&(i+=" "+s);else i!==""&&!it(s)&&(e+=rf(o,i),i=""),n=s,o=o||!it(n);r++}return i!==""&&(e+=rf(o,i)),e}function Oy(t){return t.map(Ny).join(",")}function Ry(t){let e=[],r=[],n=1,i=2;for(;n{let e=eh(t),r=W(m({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Gf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||yt.Emulated,styles:t.styles||ze,_:null,schemas:t.schemas||null,tView:null,id:""});th(r);let n=t.dependencies;return r.directiveDefs=sf(n,!1),r.pipeDefs=sf(n,!0),r.id=ky(r),r})}function Fy(t){return nn(t)||Qf(t)}function Py(t){return t!==null}function te(t){return ei(()=>({type:t.type,bootstrap:t.bootstrap||ze,declarations:t.declarations||ze,imports:t.imports||ze,exports:t.exports||ze,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function of(t,e){if(t==null)return sr;let r={};for(let n in t)if(t.hasOwnProperty(n)){let i=t[n],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),r[i]=n,e&&(e[i]=o)}return r}function re(t){return ei(()=>{let e=eh(t);return th(e),e})}function ti(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function nn(t){return t[iy]||null}function Qf(t){return t[oy]||null}function Kf(t){return t[sy]||null}function Jf(t){let e=nn(t)||Qf(t)||Kf(t);return e!==null?e.standalone:!1}function Xf(t,e){let r=t[ay]||null;if(!r&&e===!0)throw new Error(`Type ${Se(t)} does not have '\u0275mod' property.`);return r}function eh(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||sr,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||ze,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:of(t.inputs,e),outputs:of(t.outputs),debugInfo:null}}function th(t){t.features?.forEach(e=>e(t))}function sf(t,e){if(!t)return null;let r=e?Kf:Fy;return()=>(typeof t=="function"?t():t).map(n=>r(n)).filter(Py)}function ky(t){let e=0,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let i of r)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483647+1,"c"+e}var jt=0,P=1,x=2,Ce=3,ot=4,at=5,Ao=6,Wr=7,st=8,ar=9,Dt=10,ye=11,qr=12,af=13,pr=14,Ct=15,ni=16,er=17,vt=18,es=19,nh=20,tn=21,qa=22,_n=23,Le=25,rh=1;var Mn=7,No=8,ur=9,ke=10,nc=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(nc||{});function En(t){return Array.isArray(t)&&typeof t[rh]=="object"}function Bt(t){return Array.isArray(t)&&t[rh]===!0}function rc(t){return(t.flags&4)!==0}function ts(t){return t.componentOffset>-1}function ns(t){return(t.flags&1)===1}function rn(t){return!!t.template}function Ly(t){return(t[x]&512)!==0}function Sn(t,e){let r=t.hasOwnProperty(To);return r?t[To]:null}var fu=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function ut(){return ih}function ih(t){return t.type.prototype.ngOnChanges&&(t.setInput=jy),Vy}ut.ngInherit=!0;function Vy(){let t=sh(this),e=t?.current;if(e){let r=t.previous;if(r===sr)t.previous=e;else for(let n in e)r[n]=e[n];t.current=null,this.ngOnChanges(e)}}function jy(t,e,r,n){let i=this.declaredInputs[r],o=sh(t)||By(t,{previous:sr,current:null}),s=o.current||(o.current={}),a=o.previous,u=a[i];s[i]=new fu(u&&u.currentValue,e,a===sr),t[n]=e}var oh="__ngSimpleChanges__";function sh(t){return t[oh]||null}function By(t,e){return t[oh]=e}var uf=null;var gt=function(t,e,r){uf?.(t,e,r)},$y="svg",Uy="math",Hy=!1;function zy(){return Hy}function wt(t){for(;Array.isArray(t);)t=t[jt];return t}function ah(t,e){return wt(e[t])}function Ge(t,e){return wt(e[t.index])}function uh(t,e){return t.data[e]}function ic(t,e){return t[e]}function an(t,e){let r=e[t];return En(r)?r:r[jt]}function Gy(t){return(t[x]&4)===4}function oc(t){return(t[x]&128)===128}function Wy(t){return Bt(t[Ce])}function cr(t,e){return e==null?null:t[e]}function ch(t){t[er]=0}function qy(t){t[x]&1024||(t[x]|=1024,oc(t)&&Zr(t))}function Zy(t,e){for(;t>0;)e=e[pr],t--;return e}function lh(t){return t[x]&9216||t[_n]?.dirty}function hu(t){lh(t)?Zr(t):t[x]&64&&(zy()?(t[x]|=1024,Zr(t)):t[Dt].changeDetectionScheduler?.notify())}function Zr(t){t[Dt].changeDetectionScheduler?.notify();let e=Yr(t);for(;e!==null&&!(e[x]&8192||(e[x]|=8192,!oc(e)));)e=Yr(e)}function dh(t,e){if((t[x]&256)===256)throw new b(911,!1);t[tn]===null&&(t[tn]=[]),t[tn].push(e)}function Yy(t,e){if(t[tn]===null)return;let r=t[tn].indexOf(e);r!==-1&&t[tn].splice(r,1)}function Yr(t){let e=t[Ce];return Bt(e)?e[Ce]:e}var k={lFrame:yh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Qy(){return k.lFrame.elementDepthCount}function Ky(){k.lFrame.elementDepthCount++}function Jy(){k.lFrame.elementDepthCount--}function fh(){return k.bindingsEnabled}function Xy(){return k.skipHydrationRootTNode!==null}function eD(t){return k.skipHydrationRootTNode===t}function tD(){k.skipHydrationRootTNode=null}function $(){return k.lFrame.lView}function be(){return k.lFrame.tView}function $t(t){return k.lFrame.contextLView=t,t[st]}function Ut(t){return k.lFrame.contextLView=null,t}function xe(){let t=hh();for(;t!==null&&t.type===64;)t=t.parent;return t}function hh(){return k.lFrame.currentTNode}function nD(){let t=k.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Fn(t,e){let r=k.lFrame;r.currentTNode=t,r.isParent=e}function sc(){return k.lFrame.isParent}function ph(){k.lFrame.isParent=!1}function rD(){return k.lFrame.contextLView}function rs(){let t=k.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function iD(t){return k.lFrame.bindingIndex=t}function ac(){return k.lFrame.bindingIndex++}function oD(t){let e=k.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function sD(){return k.lFrame.inI18n}function aD(t,e){let r=k.lFrame;r.bindingIndex=r.bindingRootIndex=t,pu(e)}function uD(){return k.lFrame.currentDirectiveIndex}function pu(t){k.lFrame.currentDirectiveIndex=t}function cD(t){let e=k.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function gh(){return k.lFrame.currentQueryIndex}function uc(t){k.lFrame.currentQueryIndex=t}function lD(t){let e=t[P];return e.type===2?e.declTNode:e.type===1?t[at]:null}function mh(t,e,r){if(r&V.SkipSelf){let i=e,o=t;for(;i=i.parent,i===null&&!(r&V.Host);)if(i=lD(o),i===null||(o=o[pr],i.type&10))break;if(i===null)return!1;e=i,t=o}let n=k.lFrame=vh();return n.currentTNode=e,n.lView=t,!0}function cc(t){let e=vh(),r=t[P];k.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function vh(){let t=k.lFrame,e=t===null?null:t.child;return e===null?yh(t):e}function yh(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function Dh(){let t=k.lFrame;return k.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Ch=Dh;function lc(){let t=Dh();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function dD(t){return(k.lFrame.contextLView=Zy(t,k.lFrame.contextLView))[st]}function gr(){return k.lFrame.selectedIndex}function Tn(t){k.lFrame.selectedIndex=t}function wh(){let t=k.lFrame;return uh(t.tView,t.selectedIndex)}function fD(){return k.lFrame.currentNamespace}var bh=!0;function is(){return bh}function os(t){bh=t}function hD(t,e,r){let{ngOnChanges:n,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(n){let s=ih(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}i&&(r.preOrderHooks??=[]).push(0-t,i),o&&((r.preOrderHooks??=[]).push(t,o),(r.preOrderCheckHooks??=[]).push(t,o))}function ss(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r=n)break}else e[u]<0&&(t[er]+=65536),(a>14>16&&(t[x]&3)===e&&(t[x]+=16384,cf(a,o)):cf(a,o)}var or=-1,xn=class{constructor(e,r,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function gD(t){return t instanceof xn}function mD(t){return(t.flags&8)!==0}function vD(t){return(t.flags&16)!==0}function Ih(t){return t!==or}function Oo(t){return t&32767}function yD(t){return t>>16}function Ro(t,e){let r=yD(t),n=e;for(;r>0;)n=n[pr],r--;return n}var gu=!0;function Fo(t){let e=gu;return gu=t,e}var DD=256,_h=DD-1,Mh=5,CD=0,mt={};function wD(t,e,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(Ur)&&(n=r[Ur]),n==null&&(n=r[Ur]=CD++);let i=n&_h,o=1<>Mh)]|=o}function Po(t,e){let r=Sh(t,e);if(r!==-1)return r;let n=e[P];n.firstCreatePass&&(t.injectorIndex=e.length,Ya(n.data,t),Ya(e,null),Ya(n.blueprint,null));let i=dc(t,e),o=t.injectorIndex;if(Ih(i)){let s=Oo(i),a=Ro(i,e),u=a[P].data;for(let c=0;c<8;c++)e[o+c]=a[s+c]|u[s+c]}return e[o+8]=i,o}function Ya(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Sh(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function dc(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,n=null,i=e;for(;i!==null;){if(n=Oh(i),n===null)return or;if(r++,i=i[pr],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return or}function mu(t,e,r){wD(t,e,r)}function bD(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let r=t.attrs;if(r){let n=r.length,i=0;for(;i>20,d=n?a:a+l,f=i?a+l:c;for(let h=d;h=u&&v.type===r)return h}if(i){let h=s[u];if(h&&rn(h)&&h.type===r)return u}return null}function An(t,e,r,n){let i=t[r],o=e.data;if(gD(i)){let s=i;s.resolving&&cy(uy(o[r]));let a=Fo(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?Fe(s.injectImpl):null,l=mh(t,n,V.Default);try{i=t[r]=s.factory(void 0,o,t,n),e.firstCreatePass&&r>=n.directiveStart&&hD(r,o[r],e)}finally{c!==null&&Fe(c),Fo(a),s.resolving=!1,Ch()}}return i}function ID(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Ur)?t[Ur]:void 0;return typeof e=="number"?e>=0?e&_h:_D:e}function lf(t,e,r){let n=1<>Mh)]&n)}function df(t,e){return!(t&V.Self)&&!(t&V.Host&&e)}var In=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,n){return Ah(this._tNode,this._lView,e,Xo(n),r)}};function _D(){return new In(xe(),$())}function mr(t){return ei(()=>{let e=t.prototype.constructor,r=e[To]||vu(e),n=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==n;){let o=i[To]||vu(i);if(o&&o!==r)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function vu(t){return kf(t)?()=>{let e=vu(Me(t));return e&&e()}:Sn(t)}function MD(t,e,r,n,i){let o=t,s=e;for(;o!==null&&s!==null&&s[x]&2048&&!(s[x]&512);){let a=Nh(o,s,r,n|V.Self,mt);if(a!==mt)return a;let u=o.parent;if(!u){let c=s[nh];if(c){let l=c.get(r,mt,n);if(l!==mt)return l}u=Oh(s),s=s[pr]}o=u}return i}function Oh(t){let e=t[P],r=e.type;return r===2?e.declTNode:r===1?t[at]:null}function fc(t){return bD(xe(),t)}var vo="__parameters__";function SD(t){return function(...r){if(t){let n=t(...r);for(let i in n)this[i]=n[i]}}}function Rh(t,e,r){return ei(()=>{let n=SD(e);function i(...o){if(this instanceof i)return n.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(u,c,l){let d=u.hasOwnProperty(vo)?u[vo]:Object.defineProperty(u,vo,{value:[]})[vo];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return r&&(i.prototype=Object.create(r.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}function TD(t){let e=me.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function xD(t){return typeof t=="function"}function AD(t,e,r){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(r)?hc(r,e):e(r))}function Fh(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function ko(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function OD(t,e,r,n){let i=t.length;if(i==e)t.push(r,n);else if(i===1)t.push(n,t[0]),t[0]=r;else{for(i--,t.push(t[i-1],t[i]);i>e;){let o=i-2;t[i]=t[o],i--}t[e]=r,t[e+1]=n}}function RD(t,e,r){let n=ri(t,e);return n>=0?t[n|1]=r:(n=~n,OD(t,n,e,r)),n}function Qa(t,e){let r=ri(t,e);if(r>=0)return t[r|1]}function ri(t,e){return FD(t,e,1)}function FD(t,e,r){let n=0,i=t.length>>r;for(;i!==n;){let o=n+(i-n>>1),s=t[o<e?i=o:n=o+1}return~(i<{let s=[];i.templateUrl&&s.push(n(i.templateUrl).then(c=>{i.template=c}));let a=typeof i.styles=="string"?[i.styles]:i.styles||[];if(i.styles=a,i.styleUrl&&i.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(i.styleUrls?.length){let c=i.styles.length,l=i.styleUrls;i.styleUrls.forEach((d,f)=>{a.push(""),s.push(n(d).then(h=>{a[c+f]=h,l.splice(l.indexOf(d),1),l.length==0&&(i.styleUrls=void 0)}))})}else i.styleUrl&&s.push(n(i.styleUrl).then(c=>{a.push(c),i.styleUrl=void 0}));let u=Promise.all(s).then(()=>BD(o));e.push(u)}),LD(),Promise.all(e).then(()=>{})}var Lo=new Map,kD=new Set;function LD(){let t=Lo;return Lo=new Map,t}function VD(){return Lo.size===0}function jD(t){return typeof t=="string"?t:t.text()}function BD(t){kD.delete(t)}var lr=new E("ENVIRONMENT_INITIALIZER"),Ph=new E("INJECTOR",-1),kh=new E("INJECTOR_DEF_TYPES"),Vo=class{get(e,r=zr){if(r===zr){let n=new Error(`NullInjectorError: No provider for ${Se(e)}!`);throw n.name="NullInjectorError",n}return r}};function us(t){return{\u0275providers:t}}function $D(...t){return{\u0275providers:Lh(!0,t),\u0275fromNgModule:!0}}function Lh(t,...e){let r=[],n=new Set,i,o=s=>{r.push(s)};return hc(e,s=>{let a=s;yu(a,o,[],n)&&(i||=[],i.push(a))}),i!==void 0&&Vh(i,o),r}function Vh(t,e){for(let r=0;r{e(o,n)})}}function yu(t,e,r,n){if(t=Me(t),!t)return!1;let i=null,o=Xd(t),s=!o&&nn(t);if(!o&&!s){let u=t.ngModule;if(o=Xd(u),o)i=u;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=n.has(i);if(s){if(a)return!1;if(n.add(i),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)yu(c,e,r,n)}}else if(o){if(o.imports!=null&&!a){n.add(i);let c;try{hc(o.imports,l=>{yu(l,e,r,n)&&(c||=[],c.push(l))})}finally{}c!==void 0&&Vh(c,e)}if(!a){let c=Sn(i)||(()=>new i);e({provide:i,useFactory:c,deps:ze},i),e({provide:kh,useValue:i,multi:!0},i),e({provide:lr,useValue:()=>C(i),multi:!0},i)}let u=o.providers;if(u!=null&&!a){let c=t;gc(u,l=>{e(l,c)})}}else return!1;return i!==t&&t.providers!==void 0}function gc(t,e){for(let r of t)Lf(r)&&(r=r.\u0275providers),Array.isArray(r)?gc(r,e):e(r)}var UD=Z({provide:String,useValue:Z});function jh(t){return t!==null&&typeof t=="object"&&UD in t}function HD(t){return!!(t&&t.useExisting)}function zD(t){return!!(t&&t.useFactory)}function dr(t){return typeof t=="function"}function GD(t){return!!t.useClass}var cs=new E("Set Injector scope."),_o={},WD={},Ka;function mc(){return Ka===void 0&&(Ka=new Vo),Ka}var Te=class{},Qr=class extends Te{get destroyed(){return this._destroyed}constructor(e,r,n,i){super(),this.parent=r,this.source=n,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Cu(e,s=>this.processProvider(s)),this.records.set(Ph,tr(void 0,this)),i.has("environment")&&this.records.set(Te,tr(void 0,this));let o=this.records.get(cs);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(kh,ze,V.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of e)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=en(this),n=Fe(void 0),i;try{return e()}finally{en(r),Fe(n)}}get(e,r=zr,n=V.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Kd))return e[Kd](this);n=Xo(n);let i,o=en(this),s=Fe(void 0);try{if(!(n&V.SkipSelf)){let u=this.records.get(e);if(u===void 0){let c=KD(e)&&Jo(e);c&&this.injectableDefInScope(c)?u=tr(Du(e),_o):u=null,this.records.set(e,u)}if(u!=null)return this.hydrate(e,u)}let a=n&V.Self?mc():this.parent;return r=n&V.Optional&&r===zr?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[xo]=a[xo]||[]).unshift(Se(e)),o)throw a;return wy(a,e,"R3InjectorError",this.source)}else throw a}finally{Fe(s),en(o)}}resolveInjectorInitializers(){let e=en(this),r=Fe(void 0),n;try{let i=this.get(lr,ze,V.Self);for(let o of i)o()}finally{en(e),Fe(r)}}toString(){let e=[],r=this.records;for(let n of r.keys())e.push(Se(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new b(205,!1)}processProvider(e){e=Me(e);let r=dr(e)?e:Me(e&&e.provide),n=ZD(e);if(!dr(e)&&e.multi===!0){let i=this.records.get(r);i||(i=tr(void 0,_o,!0),i.factory=()=>lu(i.multi),this.records.set(r,i)),r=e,i.multi.push(e)}this.records.set(r,n)}hydrate(e,r){return r.value===_o&&(r.value=WD,r.value=r.factory()),typeof r.value=="object"&&r.value&&QD(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}injectableDefInScope(e){if(!e.providedIn)return!1;let r=Me(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function Du(t){let e=Jo(t),r=e!==null?e.factory:Sn(t);if(r!==null)return r;if(t instanceof E)throw new b(204,!1);if(t instanceof Function)return qD(t);throw new b(204,!1)}function qD(t){if(t.length>0)throw new b(204,!1);let r=fy(t);return r!==null?()=>r.factory(t):()=>new t}function ZD(t){if(jh(t))return tr(void 0,t.useValue);{let e=Bh(t);return tr(e,_o)}}function Bh(t,e,r){let n;if(dr(t)){let i=Me(t);return Sn(i)||Du(i)}else if(jh(t))n=()=>Me(t.useValue);else if(zD(t))n=()=>t.useFactory(...lu(t.deps||[]));else if(HD(t))n=()=>C(Me(t.useExisting));else{let i=Me(t&&(t.useClass||t.provide));if(YD(t))n=()=>new i(...lu(t.deps));else return Sn(i)||Du(i)}return n}function tr(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function YD(t){return!!t.deps}function QD(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function KD(t){return typeof t=="function"||typeof t=="object"&&t instanceof E}function Cu(t,e){for(let r of t)Array.isArray(r)?Cu(r,e):r&&Lf(r)?Cu(r.\u0275providers,e):e(r)}function It(t,e){t instanceof Qr&&t.assertNotDestroyed();let r,n=en(t),i=Fe(void 0);try{return e()}finally{en(n),Fe(i)}}function JD(t){if(!Uf()&&!yy())throw new b(-203,!1)}function ff(t,e=null,r=null,n){let i=$h(t,e,r,n);return i.resolveInjectorInitializers(),i}function $h(t,e=null,r=null,n,i=new Set){let o=[r||ze,$D(t)];return n=n||(typeof t=="object"?void 0:Se(t)),new Qr(o,e||mc(),n||null,i)}var We=(()=>{let e=class e{static create(n,i){if(Array.isArray(n))return ff({name:""},i,n,"");{let o=n.name??"";return ff({name:o},n.parent,n.providers,o)}}};e.THROW_IF_NOT_FOUND=zr,e.NULL=new Vo,e.\u0275prov=w({token:e,providedIn:"any",factory:()=>C(Ph)}),e.__NG_ELEMENT_ID__=-1;let t=e;return t})();var wu;function Uh(t){wu=t}function XD(){if(wu!==void 0)return wu;if(typeof document<"u")return document;throw new b(210,!1)}var ls=new E("AppId",{providedIn:"root",factory:()=>eC}),eC="ng",vc=new E("Platform Initializer"),_t=new E("Platform ID",{providedIn:"platform",factory:()=>"unknown"});var yc=new E("CSP nonce",{providedIn:"root",factory:()=>XD().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function Hh(t){return t instanceof Function?t():t}function tC(t){return(t??p(We)).get(_t)==="browser"}function zh(t){return(t.flags&128)===128}var Lt=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Lt||{}),nC=/^>|^->||--!>|)/g,iC="\u200B$1\u200B";function oC(t){return t.replace(nC,e=>e.replace(rC,iC))}var Gh=new Map,sC=0;function aC(){return sC++}function uC(t){Gh.set(t[es],t)}function cC(t){Gh.delete(t[es])}var hf="__ngContext__";function on(t,e){En(e)?(t[hf]=e[es],uC(e)):t[hf]=e}var lC;function Dc(t,e){return lC(t,e)}function nr(t,e,r,n,i){if(n!=null){let o,s=!1;Bt(n)?o=n:En(n)&&(s=!0,n=n[jt]);let a=wt(n);t===0&&r!==null?i==null?Qh(e,r,a):jo(e,r,a,i||null,!0):t===1&&r!==null?jo(e,r,a,i||null,!0):t===2?TC(e,a,s):t===3&&e.destroyNode(a),o!=null&&AC(e,t,o,r,i)}}function dC(t,e){return t.createText(e)}function fC(t,e,r){t.setValue(e,r)}function hC(t,e){return t.createComment(oC(e))}function Wh(t,e,r){return t.createElement(e,r)}function pC(t,e){qh(t,e),e[jt]=null,e[at]=null}function gC(t,e,r,n,i,o){n[jt]=i,n[at]=e,fs(t,n,r,1,i,o)}function qh(t,e){e[Dt].changeDetectionScheduler?.notify(),fs(t,e,e[ye],2,null,null)}function mC(t){let e=t[qr];if(!e)return Ja(t[P],t);for(;e;){let r=null;if(En(e))r=e[qr];else{let n=e[ke];n&&(r=n)}if(!r){for(;e&&!e[ot]&&e!==t;)En(e)&&Ja(e[P],e),e=e[Ce];e===null&&(e=t),En(e)&&Ja(e[P],e),r=e&&e[ot]}e=r}}function vC(t,e,r,n){let i=ke+n,o=r.length;n>0&&(r[i-1][ot]=e),n0&&(t[r-1][ot]=n[ot]);let o=ko(t,ke+e);pC(n[P],n);let s=o[vt];s!==null&&s.detachView(o[P]),n[Ce]=null,n[ot]=null,n[x]&=-129}return n}function Yh(t,e){if(!(e[x]&256)){let r=e[ye];r.destroyNode&&fs(t,e,r,3,null,null),mC(e)}}function Ja(t,e){if(!(e[x]&256)){e[x]&=-129,e[x]|=256,e[_n]&&Ed(e[_n]),CC(t,e),DC(t,e),e[P].type===1&&e[ye].destroy();let r=e[ni];if(r!==null&&Bt(e[Ce])){r!==e[Ce]&&Zh(r,e);let n=e[vt];n!==null&&n.detachView(t)}cC(e)}}function DC(t,e){let r=t.cleanup,n=e[Wr];if(r!==null)for(let o=0;o=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[r[o+1]];r[o].call(s)}n!==null&&(e[Wr]=null);let i=e[tn];if(i!==null){e[tn]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[n.directiveStart+i];if(o===yt.None||o===yt.Emulated)return null}return Ge(n,r)}}function jo(t,e,r,n,i){t.insertBefore(e,r,n,i)}function Qh(t,e,r){t.appendChild(e,r)}function pf(t,e,r,n,i){n!==null?jo(t,e,r,n,i):Qh(t,e,r)}function EC(t,e,r,n){t.removeChild(e,r,n)}function Cc(t,e){return t.parentNode(e)}function IC(t,e){return t.nextSibling(e)}function _C(t,e,r){return SC(t,e,r)}function MC(t,e,r){return t.type&40?Ge(t,r):null}var SC=MC,gf;function ds(t,e,r,n){let i=wC(t,n,e),o=e[ye],s=n.parent||e[at],a=_C(s,n,e);if(i!=null)if(Array.isArray(r))for(let u=0;ut,createScript:t=>t,createScriptURL:t=>t})}catch{}return yo}function mf(t){return RC()?.createScriptURL(t)||t}var Bo=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Vf})`}};function ii(t){return t instanceof Bo?t.changingThisBreaksApplicationSecurity:t}function bc(t,e){let r=FC(t);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${Vf})`)}return r===e}function FC(t){return t instanceof Bo&&t.getTypeName()||null}var PC=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ep(t){return t=String(t),t.match(PC)?t:"unsafe:"+t}var hs=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(hs||{});function oi(t){let e=np();return e?e.sanitize(hs.URL,t)||"":bc(t,"URL")?ii(t):ep(Ko(t))}function kC(t){let e=np();if(e)return mf(e.sanitize(hs.RESOURCE_URL,t)||"");if(bc(t,"ResourceURL"))return mf(ii(t));throw new b(904,!1)}function LC(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?kC:oi}function tp(t,e,r){return LC(e,r)(t)}function np(){let t=$();return t&&t[Dt].sanitizer}var Iu=class{};var VC="h",jC="b";var BC=()=>null;function Ec(t,e,r=!1){return BC(t,e,r)}var _u=class{},$o=class{};function $C(t){let e=Error(`No component factory found for ${Se(t)}.`);return e[UC]=t,e}var UC="ngComponent";var Mu=class{resolveComponentFactory(e){throw $C(e)}},ps=(()=>{let e=class e{};e.NULL=new Mu;let t=e;return t})();function HC(){return vr(xe(),$())}function vr(t,e){return new Pe(Ge(t,e))}var Pe=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=HC;let t=e;return t})();function zC(t){return t instanceof Pe?t.nativeElement:t}var Kr=class{},Mt=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>GC();let t=e;return t})();function GC(){let t=$(),e=xe(),r=an(e.index,t);return(En(r)?r:t)[ye]}var WC=(()=>{let e=class e{};e.\u0275prov=w({token:e,providedIn:"root",factory:()=>null});let t=e;return t})(),Xa={};function Ic(t){let e=Ie(null);try{return t()}finally{Ie(e)}}function rp(t){return ZC(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function qC(t,e){if(Array.isArray(t))for(let r=0;re,Tu=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||YC}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,n=this._removalsHead,i=0,o=null;for(;r||n;){let s=!n||r&&r.currentIndex{s=this._trackByFn(i,a),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,a,s,i),n=!0):(n&&(r=this._verifyReinsertion(r,a,s,i)),Object.is(r.item,a)||this._addIdentityChange(r,a)),r=r._next,i++}),this.length=i;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,r,n,i){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,o,i)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,i),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,o,i)):e=this._addAfter(new xu(r,n),o,i)),e}_verifyReinsertion(e,r,n,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;e!==null;){let r=e._next;this._addToRemovals(this._unlink(e)),e=r}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,r,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let i=e._prevRemoved,o=e._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(e,r,n),this._addToMoves(e,n),e}_moveAfter(e,r,n){return this._unlink(e),this._insertAfter(e,r,n),this._addToMoves(e,n),e}_addAfter(e,r,n){return this._insertAfter(e,r,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,n){let i=r===null?this._itHead:r._next;return e._next=i,e._prev=r,i===null?this._itTail=e:i._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new Uo),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,n=e._next;return r===null?this._itHead=n:r._next=n,n===null?this._itTail=r:n._prev=r,e}_addToMoves(e,r){return e.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Uo),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,r){return e.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},xu=class{constructor(e,r){this.item=e,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},Au=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,r){let n;for(n=this._head;n!==null;n=n._nextDup)if((r===null||r<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let r=e._prevDup,n=e._nextDup;return r===null?this._head=n:r._nextDup=n,n===null?this._tail=r:n._prevDup=r,this._head===null}},Uo=class{constructor(){this.map=new Map}put(e){let r=e.trackById,n=this.map.get(r);n||(n=new Au,this.map.set(r,n)),n.add(e)}get(e,r){let n=e,i=this.map.get(n);return i?i.get(e,r):null}remove(e){let r=e.trackById;return this.map.get(r).remove(e)&&this.map.delete(r),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function vf(t,e,r){let n=t.previousIndex;if(n===null)return n;let i=0;return r&&n{let e=class e{constructor(n){this.factories=n}static create(n,i){if(i!=null){let o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||yf()),deps:[[e,new pc,new as]]}}find(n){let i=this.factories.find(o=>o.supports(n));if(i!=null)return i;throw new b(901,!1)}};e.\u0275prov=w({token:e,providedIn:"root",factory:yf});let t=e;return t})();function Ho(t,e,r,n,i=!1){for(;r!==null;){let o=e[r.index];o!==null&&n.push(wt(o)),Bt(o)&&QC(o,n);let s=r.type;if(s&8)Ho(t,e,r.child,n);else if(s&32){let a=Dc(r,e),u;for(;u=a();)n.push(u)}else if(s&16){let a=Kh(e,r);if(Array.isArray(a))n.push(...a);else{let u=Yr(e[Ct]);Ho(u[P],u,a,n,!0)}}r=i?r.projectionNext:r.next}return n}function QC(t,e){for(let r=ke;r{Zr(t.lView)},consumerOnSignalRead(){this.lView[_n]=this}});function op(t){return ap(t[qr])}function sp(t){return ap(t[ot])}function ap(t){for(;t!==null&&!Bt(t);)t=t[ot];return t}var tw="ngOriginalError";function eu(t){return t[tw]}var bt=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&eu(e);for(;r&&eu(r);)r=eu(r);return r||null}},up=new E("",{providedIn:"root",factory:()=>p(bt).handleError.bind(void 0)});var cp=!1,nw=new E("",{providedIn:"root",factory:()=>cp});var un={};function A(t=1){lp(be(),$(),gr()+t,!1)}function lp(t,e,r,n){if(!n)if((e[x]&3)===3){let o=t.preOrderCheckHooks;o!==null&&bo(e,o,r)}else{let o=t.preOrderHooks;o!==null&&Eo(e,o,0,r)}Tn(r)}function g(t,e=V.Default){let r=$();if(r===null)return C(t,e);let n=xe();return Ah(n,r,Me(t),e)}function dp(){let t="invalid";throw new Error(t)}function rw(t,e){let r=t.hostBindingOpCodes;if(r!==null)try{for(let n=0;nLe&&lp(t,e,Le,!1),gt(s?2:0,i),r(n,i)}finally{Tn(o),gt(s?3:1,i)}}function Mc(t,e,r){if(rc(e)){let n=Ie(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;snull;function cw(t,e,r,n){let i=Cp(e);i.push(r),t.firstCreatePass&&wp(t).push(n,i.length-1)}function lw(t,e,r,n,i,o){let s=e?e.injectorIndex:-1,a=0;return Xy()&&(a|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Df(t,e,r,n){for(let i in t)if(t.hasOwnProperty(i)){r=r===null?{}:r;let o=t[i];n===null?Cf(r,e,i,o):n.hasOwnProperty(i)&&Cf(r,e,n[i],o)}return r}function Cf(t,e,r,n){t.hasOwnProperty(r)?t[r].push(e,n):t[r]=[e,n]}function dw(t,e,r){let n=e.directiveStart,i=e.directiveEnd,o=t.data,s=e.attrs,a=[],u=null,c=null;for(let l=n;l0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function vw(t,e,r,n){let i=r.directiveStart,o=r.directiveEnd;ts(r)&&Iw(e,r,t.data[i+r.componentOffset]),t.firstCreatePass||Po(r,e),on(n,e);let s=r.initialInputs;for(let a=i;a-1&&(bu(e,n),ko(r,n))}this._attachedToViewContainer=!1}Yh(this._lView[P],this._lView)}onDestroy(e){dh(this._lView,e)}markForCheck(){Oc(this._cdRefInjectingView||this._lView)}detach(){this._lView[x]&=-129}reattach(){hu(this._lView),this._lView[x]|=128}detectChanges(){this._lView[x]|=1024,Nw(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new b(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,qh(this._lView[P],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new b(902,!1);this._appRef=e,hu(this._lView)}},Pn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Lw;let t=e;return t})();function Lw(t){return Vw(xe(),$(),(t&16)===16)}function Vw(t,e,r){if(ts(t)&&!r){let n=an(t.index,e);return new Nn(n,n)}else if(t.type&47){let n=e[Ct];return new Nn(n,e)}return null}var Mp=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=jw,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),Fu=class extends Mp{constructor(e){super(),this._lView=e}onDestroy(e){return dh(this._lView,e),()=>Yy(this._lView,e)}};function jw(){return new Fu($())}var wf=new Set;function vs(t){wf.has(t)||(wf.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var Pu=class extends ve{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,r,n){let i=e,o=r||(()=>null),s=n;if(e&&typeof e=="object"){let u=e;i=u.next?.bind(u),o=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(o=tu(o),i&&(i=tu(i)),s&&(s=tu(s)));let a=super.subscribe({next:i,error:o,complete:s});return e instanceof ue&&e.add(a),a}};function tu(t){return e=>{setTimeout(t,void 0,e)}}var X=Pu;function bf(...t){}function Bw(){let t=typeof me.requestAnimationFrame=="function",e=me[t?"requestAnimationFrame":"setTimeout"],r=me[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&e&&r){let n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);let i=r[Zone.__symbol__("OriginalDelegate")];i&&(r=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:r}}var q=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new X(!1),this.onMicrotaskEmpty=new X(!1),this.onStable=new X(!1),this.onError=new X(!1),typeof Zone>"u")throw new b(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&r,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=Bw().nativeRequestAnimationFrame,Hw(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new b(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new b(909,!1)}run(e,r,n){return this._inner.run(e,r,n)}runTask(e,r,n,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,$w,bf,bf);try{return o.runTask(s,r,n)}finally{o.cancelTask(s)}}runGuarded(e,r,n){return this._inner.runGuarded(e,r,n)}runOutsideAngular(e){return this._outer.run(e)}},$w={};function Rc(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Uw(t){t.isCheckStableRunning||t.lastRequestAnimationFrameId!==-1||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(me,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,ku(t),t.isCheckStableRunning=!0,Rc(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),ku(t))}function Hw(t){let e=()=>{Uw(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,i,o,s,a)=>{if(zw(a))return r.invokeTask(i,o,s,a);try{return Ef(t),r.invokeTask(i,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),If(t)}},onInvoke:(r,n,i,o,s,a,u)=>{try{return Ef(t),r.invoke(i,o,s,a,u)}finally{t.shouldCoalesceRunChangeDetection&&e(),If(t)}},onHasTask:(r,n,i,o)=>{r.hasTask(i,o),n===i&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,ku(t),Rc(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,n,i,o)=>(r.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function ku(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.lastRequestAnimationFrameId!==-1?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Ef(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function If(t){t._nesting--,Rc(t)}var Lu=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(e,r,n){return e.apply(r,n)}runGuarded(e,r,n){return e.apply(r,n)}runOutsideAngular(e){return e()}runTask(e,r,n,i){return e.apply(r,n)}};function zw(t){return!Array.isArray(t)||t.length!==1?!1:t[0].data?.__ignore_ng_zone__===!0}function Gw(t="zone.js",e){return t==="noop"?new Lu:t==="zone.js"?new q(e):t}var rr=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(rr||{}),Ww={destroy(){}};function Fc(t,e){!e&&JD(Fc);let r=e?.injector??p(We);if(!tC(r))return Ww;vs("NgAfterNextRender");let n=r.get(Pc),i=n.handler??=new ju,o=e?.phase??rr.MixedReadWrite,s=()=>{i.unregister(u),a()},a=r.get(Mp).onDestroy(s),u=new Vu(r,o,()=>{s(),t()});return i.register(u),{destroy:s}}var Vu=class{constructor(e,r,n){this.phase=r,this.callbackFn=n,this.zone=e.get(q),this.errorHandler=e.get(bt,null,{optional:!0})}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(e){this.errorHandler?.handleError(e)}}},ju=class{constructor(){this.executingCallbacks=!1,this.buckets={[rr.EarlyRead]:new Set,[rr.Write]:new Set,[rr.MixedReadWrite]:new Set,[rr.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){let e=!1;this.executingCallbacks=!0;for(let r of Object.values(this.buckets))for(let n of r)e=!0,n.invoke();this.executingCallbacks=!1;for(let r of this.deferredCallbacks)this.buckets[r.phase].add(r);return this.deferredCallbacks.clear(),e}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},Pc=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let o of n)o();return!!this.handler?.execute()||n.length>0}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=w({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function qw(t,e){let r=an(e,t),n=r[P];Zw(n,r);let i=r[jt];i!==null&&r[Ao]===null&&(r[Ao]=Ec(i,r[ar])),kc(n,r,r[st])}function Zw(t,e){for(let r=e.length;r0&&Jh(t,r,o.join(" "))}}function n0(t,e,r){let n=t.projection=[];for(let i=0;i=0;n--){let i=t[n];i.hostVars=e+=i.hostVars,i.hostAttrs=Gr(i.hostAttrs,r=Gr(r,i.hostAttrs))}}function Do(t){return t===sr?{}:t===ze?[]:t}function s0(t,e){let r=t.viewQuery;r?t.viewQuery=(n,i)=>{e(n,i),r(n,i)}:t.viewQuery=e}function a0(t,e){let r=t.contentQueries;r?t.contentQueries=(n,i,o)=>{e(n,i,o),r(n,i,o)}:t.contentQueries=e}function u0(t,e){let r=t.hostBindings;r?t.hostBindings=(n,i)=>{e(n,i),r(n,i)}:t.hostBindings=e}function Lc(t){let e=t.inputConfig,r={};for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];Array.isArray(i)&&i[2]&&(r[n]=i[2])}t.inputTransforms=r}function Vc(t,e,r){return t[e]=r}function c0(t,e){return t[e]}function On(t,e,r){let n=t[e];return Object.is(n,r)?!1:(t[e]=r,!0)}function l0(t,e,r,n){let i=On(t,e,r);return On(t,e+1,n)||i}function yr(t,e,r,n){let i=$(),o=ac();if(On(i,o,e)){let s=be(),a=wh();_w(a,i,t,e,r,n)}return yr}function d0(t,e,r,n){return On(t,ac(),r)?e+Ko(r)+n:un}function Co(t,e){return t<<17|e<<2}function Rn(t){return t>>17&32767}function f0(t){return(t&2)==2}function h0(t,e){return t&131071|e<<17}function Uu(t){return t|2}function hr(t){return(t&131068)>>2}function nu(t,e){return t&-131069|e<<2}function p0(t){return(t&1)===1}function Hu(t){return t|1}function g0(t,e,r,n,i,o){let s=o?e.classBindings:e.styleBindings,a=Rn(s),u=hr(s);t[n]=r;let c=!1,l;if(Array.isArray(r)){let d=r;l=d[1],(l===null||ri(d,l)>0)&&(c=!0)}else l=r;if(i)if(u!==0){let f=Rn(t[a+1]);t[n+1]=Co(f,a),f!==0&&(t[f+1]=nu(t[f+1],n)),t[a+1]=h0(t[a+1],n)}else t[n+1]=Co(a,0),a!==0&&(t[a+1]=nu(t[a+1],n)),a=n;else t[n+1]=Co(u,0),a===0?a=n:t[u+1]=nu(t[u+1],n),u=n;c&&(t[n+1]=Uu(t[n+1])),Mf(t,l,n,!0),Mf(t,l,n,!1),m0(e,l,t,n,o),s=Co(a,u),o?e.classBindings=s:e.styleBindings=s}function m0(t,e,r,n,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&ri(o,e)>=0&&(r[n+1]=Hu(r[n+1]))}function Mf(t,e,r,n){let i=t[r+1],o=e===null,s=n?Rn(i):hr(i),a=!1;for(;s!==0&&(a===!1||o);){let u=t[s],c=t[s+1];v0(u,e)&&(a=!0,t[s+1]=n?Hu(c):Uu(c)),s=n?Rn(c):hr(c)}a&&(t[r+1]=n?Uu(i):Hu(i))}function v0(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?ri(t,e)>=0:!1}function O(t,e,r){let n=$(),i=ac();if(On(n,i,e)){let o=be(),s=wh();hw(o,s,n,t,e,n[ye],r,!1)}return O}function Sf(t,e,r,n,i){let o=e.inputs,s=i?"class":"style";Nc(t,r,o[s],s,n)}function Dr(t,e){return y0(t,e,null,!0),Dr}function y0(t,e,r,n){let i=$(),o=be(),s=oD(2);if(o.firstUpdatePass&&C0(o,t,s,n),e!==un&&On(i,s,e)){let a=o.data[gr()];_0(o,a,i,i[ye],t,i[s+1]=M0(e,r),n,s)}}function D0(t,e){return e>=t.expandoStartIndex}function C0(t,e,r,n){let i=t.data;if(i[r+1]===null){let o=i[gr()],s=D0(t,r);S0(o,n)&&e===null&&!s&&(e=!1),e=w0(i,o,e,n),g0(i,o,e,r,s,n)}}function w0(t,e,r,n){let i=cD(t),o=n?e.residualClasses:e.residualStyles;if(i===null)(n?e.classBindings:e.styleBindings)===0&&(r=ru(null,t,e,r,n),r=Jr(r,e.attrs,n),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(r=ru(i,t,e,r,n),o===null){let u=b0(t,e,n);u!==void 0&&Array.isArray(u)&&(u=ru(null,t,e,u[1],n),u=Jr(u,e.attrs,n),E0(t,e,n,u))}else o=I0(t,e,n)}return o!==void 0&&(n?e.residualClasses=o:e.residualStyles=o),r}function b0(t,e,r){let n=r?e.classBindings:e.styleBindings;if(hr(n)!==0)return t[Rn(n)]}function E0(t,e,r,n){let i=r?e.classBindings:e.styleBindings;t[Rn(i)]=n}function I0(t,e,r){let n,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let u=t[i],c=Array.isArray(u),l=c?u[1]:u,d=l===null,f=r[i+1];f===un&&(f=d?ze:void 0);let h=d?Qa(f,n):l===n?f:void 0;if(c&&!Wo(h)&&(h=Qa(u,n)),Wo(h)&&(a=h,s))return a;let v=t[i+1];i=s?Rn(v):hr(v)}if(e!==null){let u=o?e.residualClasses:e.residualStyles;u!=null&&(a=Qa(u,n))}return a}function Wo(t){return t!==void 0}function M0(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=Se(ii(t)))),t}function S0(t,e){return(t.flags&(e?8:16))!==0}var YR=new RegExp(`^(\\d+)*(${jC}|${VC})*(.*)`);var T0=()=>null;function xf(t,e){return T0(t,e)}function x0(t,e,r,n){let i=e.tView,s=t[x]&4096?4096:16,a=gs(t,i,r,s,null,e,null,null,null,n?.injector??null,n?.dehydratedView??null),u=t[e.index];a[ni]=u;let c=t[vt];return c!==null&&(a[vt]=c.createEmbeddedView(i)),kc(i,a,r),a}function Af(t,e){return!e||e.firstChild===null||zh(t)}function A0(t,e,r,n=!0){let i=e[P];if(vC(i,e,t,r),n){let s=Eu(r,t),a=e[ye],u=Cc(a,t[Mn]);u!==null&&gC(i,t[at],a,e,u,s)}let o=e[Ao];o!==null&&o.firstChild!==null&&(o.firstChild=null)}var St=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=N0;let t=e;return t})();function N0(){let t=xe();return Tp(t,$())}var O0=St,Sp=class extends O0{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return vr(this._hostTNode,this._hostLView)}get injector(){return new In(this._hostTNode,this._hostLView)}get parentInjector(){let e=dc(this._hostTNode,this._hostLView);if(Ih(e)){let r=Ro(e,this._hostLView),n=Oo(e),i=r[P].data[n+8];return new In(i,r)}else return new In(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=Nf(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-ke}createEmbeddedView(e,r,n){let i,o;typeof n=="number"?i=n:n!=null&&(i=n.index,o=n.injector);let s=xf(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},o,s);return this.insertImpl(a,i,Af(this._hostTNode,s)),a}createComponent(e,r,n,i,o){let s=e&&!xD(e),a;if(s)a=r;else{let v=r||{};a=v.index,n=v.injector,i=v.projectableNodes,o=v.environmentInjector||v.ngModuleRef}let u=s?e:new fr(nn(e)),c=n||this.parentInjector;if(!o&&u.ngModule==null){let j=(s?c:this.parentInjector).get(Te,null);j&&(o=j)}let l=nn(u.componentType??{}),d=xf(this._lContainer,l?.id??null),f=d?.firstChild??null,h=u.create(c,i,f,o);return this.insertImpl(h.hostView,a,Af(this._hostTNode,d)),h}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,n){let i=e._lView;if(Wy(i)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let u=i[Ce],c=new Sp(u,u[at],u[Ce]);c.detach(c.indexOf(e))}}let o=this._adjustIndex(r),s=this._lContainer;return A0(s,i,o,n),e.attachToViewContainerRef(),Fh(iu(s),o,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=Nf(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=bu(this._lContainer,r);n&&(ko(iu(this._lContainer),r),Yh(n[P],n))}detach(e){let r=this._adjustIndex(e,-1),n=bu(this._lContainer,r);return n&&ko(iu(this._lContainer),r)!=null?new Nn(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function Nf(t){return t[No]}function iu(t){return t[No]||(t[No]=[])}function Tp(t,e){let r,n=e[t.index];return Bt(n)?r=n:(r=yp(n,e,null,t),e[t.index]=r,ms(e,r)),F0(r,e,t,n),new Sp(r,t,e)}function R0(t,e){let r=t[ye],n=r.createComment(""),i=Ge(e,t),o=Cc(r,i);return jo(r,o,n,IC(r,i),!1),n}var F0=L0,P0=()=>!1;function k0(t,e,r){return P0(t,e,r)}function L0(t,e,r,n){if(t[Mn])return;let i;r.type&8?i=wt(n):i=R0(e,r),t[Mn]=i}function V0(t,e,r,n,i,o,s,a,u){let c=e.consts,l=si(e,t,4,s||null,cr(c,a));Ac(e,r,l,cr(c,u)),ss(e,l);let d=l.tView=xc(2,l,n,i,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c,null);return e.queries!==null&&(e.queries.template(e,l),d.queries=e.queries.embeddedTView(l)),l}function Y(t,e,r,n,i,o,s,a){let u=$(),c=be(),l=t+Le,d=c.firstCreatePass?V0(l,c,u,e,r,n,i,o,s):c.data[l];Fn(d,!1);let f=j0(c,u,d,t);is()&&ds(c,u,f,d),on(f,u);let h=yp(f,u,f,d);return u[l]=h,ms(u,h),k0(h,d,u),ns(d)&&Sc(c,u,d),s!=null&&Tc(u,d,a),Y}var j0=B0;function B0(t,e,r,n){return os(!0),e[ye].createComment("")}function $0(t,e,r,n,i,o){let s=e.consts,a=cr(s,i),u=si(e,t,2,n,a);return Ac(e,r,u,cr(s,o)),u.attrs!==null&&zo(u,u.attrs,!1),u.mergedAttrs!==null&&zo(u,u.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,u),u}function D(t,e,r,n){let i=$(),o=be(),s=Le+t,a=i[ye],u=o.firstCreatePass?$0(s,o,i,e,r,n):o.data[s],c=U0(o,i,u,a,e,t);i[s]=c;let l=ns(u);return Fn(u,!0),Xh(a,c,u),(u.flags&32)!==32&&is()&&ds(o,i,c,u),Qy()===0&&on(c,i),Ky(),l&&(Sc(o,i,u),Mc(o,u,i)),n!==null&&Tc(i,u),D}function y(){let t=xe();sc()?ph():(t=t.parent,Fn(t,!1));let e=t;eD(e)&&tD(),Jy();let r=be();return r.firstCreatePass&&(ss(r,t),rc(t)&&r.queries.elementEnd(t)),e.classesWithoutHost!=null&&mD(e)&&Sf(r,e,$(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&vD(e)&&Sf(r,e,$(),e.stylesWithoutHost,!1),y}function ae(t,e,r,n){return D(t,e,r,n),y(),ae}var U0=(t,e,r,n,i,o)=>(os(!0),Wh(n,i,fD()));function H0(t,e,r,n,i){let o=e.consts,s=cr(o,n),a=si(e,t,8,"ng-container",s);s!==null&&zo(a,s,!0);let u=cr(o,i);return Ac(e,r,a,u),e.queries!==null&&e.queries.elementStart(e,a),a}function jc(t,e,r){let n=$(),i=be(),o=t+Le,s=i.firstCreatePass?H0(o,i,n,e,r):i.data[o];Fn(s,!0);let a=z0(i,n,s,t);return n[o]=a,is()&&ds(i,n,a,s),on(a,n),ns(s)&&(Sc(i,n,s),Mc(i,s,n)),r!=null&&Tc(n,s),jc}function Bc(){let t=xe(),e=be();return sc()?ph():(t=t.parent,Fn(t,!1)),e.firstCreatePass&&(ss(e,t),rc(t)&&e.queries.elementEnd(t)),Bc}var z0=(t,e,r,n)=>(os(!0),hC(e[ye],""));function Ht(){return $()}var bn=void 0;function G0(t){let e=t,r=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return r===1&&n===0?1:5}var W0=["en",[["a","p"],["AM","PM"],bn],[["AM","PM"],bn,bn],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],bn,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],bn,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",bn,"{1} 'at' {0}",bn],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",G0],ou={};function qe(t){let e=q0(t),r=Of(e);if(r)return r;let n=e.split("-")[0];if(r=Of(n),r)return r;if(n==="en")return W0;throw new b(701,!1)}function Of(t){return t in ou||(ou[t]=me.ng&&me.ng.common&&me.ng.common.locales&&me.ng.common.locales[t]),ou[t]}var ce=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(ce||{});function q0(t){return t.toLowerCase().replace(/_/g,"-")}var qo="en-US";var Z0=qo;function Y0(t){ly(t,"Expected localeId to be defined"),typeof t=="string"&&(Z0=t.toLowerCase().replace(/_/g,"-"))}function cn(t){return!!t&&typeof t.then=="function"}function $c(t){return!!t&&typeof t.subscribe=="function"}function ie(t,e,r,n){let i=$(),o=be(),s=xe();return K0(o,i,i[ye],s,t,e,n),ie}function Q0(t,e,r,n){let i=t.cleanup;if(i!=null)for(let o=0;ou?a[u]:null}typeof s=="string"&&(o+=2)}return null}function K0(t,e,r,n,i,o,s){let a=ns(n),c=t.firstCreatePass&&wp(t),l=e[st],d=Cp(e),f=!0;if(n.type&3||s){let j=Ge(n,e),S=s?s(j):j,_=d.length,le=s?K=>s(wt(K[n.index])):n.index,$e=null;if(!s&&a&&($e=Q0(t,e,i,n.index)),$e!==null){let K=$e.__ngLastListenerFn__||$e;K.__ngNextListenerFn__=o,$e.__ngLastListenerFn__=o,f=!1}else{o=Ff(n,e,l,o,!1);let K=r.listen(S,i,o);d.push(o,K),c&&c.push(i,le,_,_+1)}}else o=Ff(n,e,l,o,!1);let h=n.outputs,v;if(f&&h!==null&&(v=h[i])){let j=v.length;if(j)for(let S=0;S-1?an(t.index,e):e;Oc(a);let u=Rf(e,r,n,s),c=o.__ngNextListenerFn__;for(;c;)u=Rf(e,r,c,s)&&u,c=c.__ngNextListenerFn__;return i&&u===!1&&s.preventDefault(),u}}function Ee(t=1){return dD(t)}function J0(t,e,r,n){r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=n}function xp(t){let e=rD();return ic(e,Le+t)}function M(t,e=""){let r=$(),n=be(),i=t+Le,o=n.firstCreatePass?si(n,i,1,e,null):n.data[i],s=X0(n,r,o,e,t);r[i]=s,is()&&ds(n,r,s,o),Fn(o,!1)}var X0=(t,e,r,n,i)=>(os(!0),dC(e[ye],n));function Tt(t){return Ve("",t,""),Tt}function Ve(t,e,r){let n=$(),i=d0(n,t,e,r);return i!==un&&xw(n,gr(),i),Ve}function eb(t,e,r){let n=be();if(n.firstCreatePass){let i=rn(t);zu(r,n.data,n.blueprint,i,!0),zu(e,n.data,n.blueprint,i,!1)}}function zu(t,e,r,n,i){if(t=Me(t),Array.isArray(t))for(let o=0;o>20;if(dr(t)||!t.multi){let h=new xn(c,i,g),v=au(u,e,i?l:l+f,d);v===-1?(mu(Po(a,s),o,u),su(o,t,e.length),e.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(h),s.push(h)):(r[v]=h,s[v]=h)}else{let h=au(u,e,l+f,d),v=au(u,e,l,l+f),j=h>=0&&r[h],S=v>=0&&r[v];if(i&&!S||!i&&!j){mu(Po(a,s),o,u);let _=rb(i?nb:tb,r.length,i,n,c);!i&&S&&(r[v].providerFactory=_),su(o,t,e.length,0),e.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(_),s.push(_)}else{let _=Ap(r[i?v:h],c,!i&&n);su(o,t,h>-1?h:v,_)}!i&&n&&S&&r[v].componentProviders++}}}function su(t,e,r,n){let i=dr(e),o=GD(e);if(i||o){let u=(o?Me(e.useClass):e).prototype.ngOnDestroy;if(u){let c=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){let l=c.indexOf(r);l===-1?c.push(r,[n,u]):c[l+1].push(n,u)}else c.push(r,u)}}}function Ap(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function au(t,e,r,n){for(let i=r;i{r.providersResolver=(n,i)=>eb(n,i?i(t):t,e)}}var sn=class{},Xr=class{};var Zo=class extends sn{constructor(e,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Go(this);let i=Xf(e);this._bootstrapComponents=Hh(i.bootstrap),this._r3Injector=$h(e,r,[{provide:sn,useValue:this},{provide:ps,useValue:this.componentFactoryResolver},...n],Se(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},Yo=class extends Xr{constructor(e){super(),this.moduleType=e}create(e){return new Zo(this.moduleType,e,[])}};function ib(t,e,r){return new Zo(t,e,r)}var Wu=class extends sn{constructor(e){super(),this.componentFactoryResolver=new Go(this),this.instance=null;let r=new Qr([...e.providers,{provide:sn,useValue:this},{provide:ps,useValue:this.componentFactoryResolver}],e.parent||mc(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function ys(t,e,r=null){return new Wu({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}var ob=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let i=Lh(!1,n.type),o=i.length>0?ys([i],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=w({token:e,providedIn:"environment",factory:()=>new e(C(Te))});let t=e;return t})();function Np(t){vs("NgStandalone"),t.getStandaloneInjector=e=>e.get(ob).getOrCreateStandaloneInjector(t)}function Ds(t,e,r){let n=rs()+t,i=$();return i[n]===un?Vc(i,n,r?e.call(r):e()):c0(i,n)}function Cs(t,e,r,n){return Rp($(),rs(),t,e,r,n)}function Op(t,e){let r=t[e];return r===un?void 0:r}function Rp(t,e,r,n,i,o){let s=e+r;return On(t,s,i)?Vc(t,s+1,o?n.call(o,i):n(i)):Op(t,s+1)}function sb(t,e,r,n,i,o,s){let a=e+r;return l0(t,a,i,o)?Vc(t,a+2,s?n.call(s,i,o):n(i,o)):Op(t,a+2)}function Ze(t,e){let r=be(),n,i=t+Le;r.firstCreatePass?(n=ab(e,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks??=[]).push(i,n.onDestroy)):n=r.data[i];let o=n.factory||(n.factory=Sn(n.type,!0)),s,a=Fe(g);try{let u=Fo(!1),c=o();return Fo(u),J0(r,$(),i,c),c}finally{Fe(a)}}function ab(t,e){if(e)for(let r=e.length-1;r>=0;r--){let n=e[r];if(t===n.name)return n}}function lt(t,e,r){let n=t+Le,i=$(),o=ic(i,n);return Pp(i,n)?Rp(i,rs(),e,o.transform,r,o):o.transform(r)}function Fp(t,e,r,n){let i=t+Le,o=$(),s=ic(o,i);return Pp(o,i)?sb(o,rs(),e,s.transform,r,n,s):s.transform(r,n)}function Pp(t,e){return t[P].data[e].pure}function ub(){return this._results[Symbol.iterator]()}var qu=class t{get changes(){return this._changes??=new X}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let r=t.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=ub)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,r){return this._results.reduce(e,r)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,r){this.dirty=!1;let n=ND(e);(this._changesDetected=!AD(this._results,n,r))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}},Vt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=db;let t=e;return t})(),cb=Vt,lb=class extends cb{constructor(e,r,n){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,n){let i=x0(this._declarationLView,this._declarationTContainer,e,{injector:r,dehydratedView:n});return new Nn(i)}};function db(){return Uc(xe(),$())}function Uc(t,e){return t.type&4?new lb(e,t,vr(t,e)):null}var Zu=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Yu=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let n=e.contentQueries!==null?e.contentQueries[0]:r.length,i=[];for(let o=0;o0)n.push(s[a/2]);else{let c=o[a+1],l=e[-u];for(let d=ke;d{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})(),ec=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},bs=(()=>{let e=class e{compileModuleSync(n){return new Yo(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let i=this.compileModuleSync(n),o=Xf(n),s=Hh(o.declarations).reduce((a,u)=>{let c=nn(u);return c&&a.push(new fr(c)),a},[]);return new ec(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),wb=new E("compilerOptions");var kn=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new pe(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Hc=new E(""),ai=new E(""),Es=(()=>{let e=class e{constructor(n,i,o){this._ngZone=n,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,zc||(bb(o),o.addToWindow(i)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{q.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&this._pendingCount===0&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>i.updateCb&&i.updateCb(n)?(clearTimeout(i.timeoutId),!1):!0),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:o})}whenStable(n,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,i,o){return[]}};e.\u0275fac=function(i){return new(i||e)(C(q),C(Is),C(ai))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Is=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return zc?.findTestabilityInTree(this,n,i)??null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function bb(t){zc=t}var zc,_s=new E("Application Initializer"),$p=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i}),this.appInits=p(_s,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(cn(s))n.push(s);else if($c(s)){let a=new Promise((u,c)=>{s.subscribe({complete:u,error:c})});n.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),n.length===0&&i(),this.initialized=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ms=new E("appBootstrapListener");function Eb(t,e,r){let n=new Yo(r);return Promise.resolve(n)}function Ib(){Id(()=>{throw new b(600,!1)})}function _b(t){return t.isBoundToModule}function Mb(t,e,r){try{let n=r();return cn(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}function Up(t,e){return Array.isArray(e)?e.reduce(Up,t):m(m({},t),e)}var Ln=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=p(up),this.afterRenderEffectManager=p(Pc),this.componentTypes=[],this.components=[],this.isStable=p(kn).hasPendingTasks.pipe(T(n=>!n)),this._injector=p(Te)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,i){let o=n instanceof $o;if(!this._injector.get($p).done){let h=!o&&Jf(n),v=!1;throw new b(405,v)}let a;o?a=n:a=this._injector.get(ps).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let u=_b(a)?void 0:this._injector.get(sn),c=i||a.selector,l=a.create(We.NULL,[],c,u),d=l.location.nativeElement,f=l.injector.get(Hc,null);return f?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),So(this.components,l),f?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new b(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{try{let n=this.afterRenderEffectManager.execute()}catch(n){this.internalErrorHandler(n)}this._runningTick=!1}}attachView(n){let i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){let i=n;So(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let i=this._injector.get(Ms,[]);[...this._bootstrapListeners,...i].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>So(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new b(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function So(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function Pf(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var Sb=(()=>{let e=class e{constructor(){this.zone=p(q),this.applicationRef=p(Ln)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Tb(t){return[{provide:q,useFactory:t},{provide:lr,multi:!0,useFactory:()=>{let e=p(Sb,{optional:!0});return()=>e.initialize()}},{provide:lr,multi:!0,useFactory:()=>{let e=p(Nb);return()=>{e.initialize()}}},{provide:up,useFactory:xb}]}function xb(){let t=p(q),e=p(bt);return r=>t.runOutsideAngular(()=>e.handleError(r))}function Ab(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var Nb=(()=>{let e=class e{constructor(){this.subscription=new ue,this.initialized=!1,this.zone=p(q),this.pendingTasks=p(kn)}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()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Ob(){return typeof $localize<"u"&&$localize.locale||qo}var Ss=new E("LocaleId",{providedIn:"root",factory:()=>p(Ss,V.Optional|V.SkipSelf)||Ob()});var Hp=new E("PlatformDestroyListeners"),zp=(()=>{let e=class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){let o=Gw(i?.ngZone,Ab({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return o.run(()=>{let s=ib(n.moduleType,this.injector,Tb(()=>o)),a=s.injector.get(bt,null);return o.runOutsideAngular(()=>{let u=o.onError.subscribe({next:c=>{a.handleError(c)}});s.onDestroy(()=>{So(this._modules,s),u.unsubscribe()})}),Mb(a,o,()=>{let u=s.injector.get($p);return u.runInitializers(),u.donePromise.then(()=>{let c=s.injector.get(Ss,qo);return Y0(c||qo),this._moduleDoBootstrap(s),s})})})}bootstrapModule(n,i=[]){let o=Up({},i);return Eb(this.injector,o,n).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(n){let i=n.injector.get(Ln);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>i.bootstrap(o));else if(n.instance.ngDoBootstrap)n.instance.ngDoBootstrap(i);else throw new b(-403,!1);this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new b(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());let n=this._injector.get(Hp,null);n&&(n.forEach(i=>i()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(i){return new(i||e)(C(We))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})(),Hr=null,Gp=new E("AllowMultipleToken");function Rb(t){if(Hr&&!Hr.get(Gp,!1))throw new b(400,!1);Ib(),Hr=t;let e=t.get(zp);return kb(t),e}function Gc(t,e,r=[]){let n=`Platform: ${e}`,i=new E(n);return(o=[])=>{let s=Wp();if(!s||s.injector.get(Gp,!1)){let a=[...r,...o,{provide:i,useValue:!0}];t?t(a):Rb(Fb(a,n))}return Pb(i)}}function Fb(t=[],e){return We.create({name:e,providers:[{provide:cs,useValue:"platform"},{provide:Hp,useValue:new Set([()=>Hr=null])},...t]})}function Pb(t){let e=Wp();if(!e)throw new b(401,!1);return e}function Wp(){return Hr?.get(zp)??null}function kb(t){t.get(vc,null)?.forEach(r=>r())}var qp=Gc(null,"core",[]),Zp=(()=>{let e=class e{constructor(n){}};e.\u0275fac=function(i){return new(i||e)(C(Ln))},e.\u0275mod=te({type:e}),e.\u0275inj=ee({});let t=e;return t})();function Cr(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Yp(t){let e=nn(t);if(!e)return null;let r=new fr(e);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var Yc=null;function xt(){return Yc}function tg(t){Yc||(Yc=t)}var Ps=class{},we=new E("DocumentToken"),rl=(()=>{let e=class e{historyGo(n){throw new Error("Not implemented")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>(()=>p(Lb))(),providedIn:"platform"});let t=e;return t})(),ng=new E("Location Initialized"),Lb=(()=>{let e=class e extends rl{constructor(){super(),this._doc=p(we),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return xt().getBaseHref(this._doc)}onPopState(n){let i=xt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",n,!1),()=>i.removeEventListener("popstate",n)}onHashChange(n){let i=xt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",n,!1),()=>i.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,i,o){this._history.pushState(n,i,o)}replaceState(n,i,o){this._history.replaceState(n,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>(()=>new e)(),providedIn:"platform"});let t=e;return t})();function il(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function Qp(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,n=r-(t[r-1]==="/"?1:0);return t.slice(0,n)+t.slice(r)}function Gt(t){return t&&t[0]!=="?"?"?"+t:t}var Zt=(()=>{let e=class e{historyGo(n){throw new Error("Not implemented")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>(()=>p(ol))(),providedIn:"root"});let t=e;return t})(),rg=new E("appBaseHref"),ol=(()=>{let e=class e extends Zt{constructor(n,i){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??p(we).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return il(this._baseHref,n)}path(n=!1){let i=this._platformLocation.pathname+Gt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${i}${o}`:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+Gt(s));this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+Gt(s));this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(C(rl),C(rg,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ig=(()=>{let e=class e extends Zt{constructor(n,i){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let i=this._platformLocation.hash;return i==null&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(n){let i=il(this._baseHref,n);return i.length>0?"#"+i:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+Gt(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+Gt(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(C(rl),C(rg,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),br=(()=>{let e=class e{constructor(n){this._subject=new X,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let i=this._locationStrategy.getBaseHref();this._basePath=Bb(Qp(Kp(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,i=""){return this.path()==this.normalize(n+Gt(i))}normalize(n){return e.stripTrailingSlash(jb(this._basePath,Kp(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,i="",o=null){this._locationStrategy.pushState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Gt(i)),o)}replaceState(n,i="",o=null){this._locationStrategy.replaceState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Gt(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{let i=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",i){this._urlChangeListeners.forEach(o=>o(n,i))}subscribe(n,i,o){return this._subject.subscribe({next:n,error:i,complete:o})}};e.normalizeQueryParams=Gt,e.joinWithSlash=il,e.stripTrailingSlash=Qp,e.\u0275fac=function(i){return new(i||e)(C(Zt))},e.\u0275prov=w({token:e,factory:()=>Vb(),providedIn:"root"});let t=e;return t})();function Vb(){return new br(C(Zt))}function jb(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function Kp(t){return t.replace(/\/index.html$/,"")}function Bb(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}var Ae=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(Ae||{}),Q=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(Q||{}),je=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(je||{}),Wt=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t.Infinity=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}(Wt||{});function $b(t){return qe(t)[ce.LocaleId]}function Ub(t,e,r){let n=qe(t),i=[n[ce.DayPeriodsFormat],n[ce.DayPeriodsStandalone]],o=Ye(i,e);return Ye(o,r)}function Hb(t,e,r){let n=qe(t),i=[n[ce.DaysFormat],n[ce.DaysStandalone]],o=Ye(i,e);return Ye(o,r)}function zb(t,e,r){let n=qe(t),i=[n[ce.MonthsFormat],n[ce.MonthsStandalone]],o=Ye(i,e);return Ye(o,r)}function Gb(t,e){let n=qe(t)[ce.Eras];return Ye(n,e)}function Ts(t,e){let r=qe(t);return Ye(r[ce.DateFormat],e)}function xs(t,e){let r=qe(t);return Ye(r[ce.TimeFormat],e)}function As(t,e){let n=qe(t)[ce.DateTimeFormat];return Ye(n,e)}function Ls(t,e){let r=qe(t),n=r[ce.NumberSymbols][e];if(typeof n>"u"){if(e===Wt.CurrencyDecimal)return r[ce.NumberSymbols][Wt.Decimal];if(e===Wt.CurrencyGroup)return r[ce.NumberSymbols][Wt.Group]}return n}function og(t){if(!t[ce.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[ce.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Wb(t){let e=qe(t);return og(e),(e[ce.ExtraData][2]||[]).map(n=>typeof n=="string"?Wc(n):[Wc(n[0]),Wc(n[1])])}function qb(t,e,r){let n=qe(t);og(n);let i=[n[ce.ExtraData][0],n[ce.ExtraData][1]],o=Ye(i,e)||[];return Ye(o,r)||[]}function Ye(t,e){for(let r=e;r>-1;r--)if(typeof t[r]<"u")return t[r];throw new Error("Locale data API: locale data undefined")}function Wc(t){let[e,r]=t.split(":");return{hours:+e,minutes:+r}}var Zb=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ui={},Yb=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,qt=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(qt||{}),H=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(H||{}),U=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(U||{});function Qb(t,e,r,n){let i=oE(t);e=zt(r,e)||e;let s=[],a;for(;e;)if(a=Yb.exec(e),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;e=l}else{s.push(e);break}let u=i.getTimezoneOffset();n&&(u=ag(n,u),i=iE(i,n,!0));let c="";return s.forEach(l=>{let d=nE(l);c+=d?d(i,r,u):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function ks(t,e,r){let n=new Date(0);return n.setFullYear(t,e,r),n.setHours(0,0,0),n}function zt(t,e){let r=$b(t);if(ui[r]=ui[r]||{},ui[r][e])return ui[r][e];let n="";switch(e){case"shortDate":n=Ts(t,je.Short);break;case"mediumDate":n=Ts(t,je.Medium);break;case"longDate":n=Ts(t,je.Long);break;case"fullDate":n=Ts(t,je.Full);break;case"shortTime":n=xs(t,je.Short);break;case"mediumTime":n=xs(t,je.Medium);break;case"longTime":n=xs(t,je.Long);break;case"fullTime":n=xs(t,je.Full);break;case"short":let i=zt(t,"shortTime"),o=zt(t,"shortDate");n=Ns(As(t,je.Short),[i,o]);break;case"medium":let s=zt(t,"mediumTime"),a=zt(t,"mediumDate");n=Ns(As(t,je.Medium),[s,a]);break;case"long":let u=zt(t,"longTime"),c=zt(t,"longDate");n=Ns(As(t,je.Long),[u,c]);break;case"full":let l=zt(t,"fullTime"),d=zt(t,"fullDate");n=Ns(As(t,je.Full),[l,d]);break}return n&&(ui[r][e]=n),n}function Ns(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(r,n){return e!=null&&n in e?e[n]:r})),t}function dt(t,e,r="-",n,i){let o="";(t<0||i&&t<=0)&&(i?t=-t+1:(t=-t,o=r));let s=String(t);for(;s.length0||a>-r)&&(a+=r),t===H.Hours)a===0&&r===-12&&(a=12);else if(t===H.FractionalSeconds)return Kb(a,e);let u=Ls(s,Wt.MinusSign);return dt(a,e,u,n,i)}}function Jb(t,e){switch(t){case H.FullYear:return e.getFullYear();case H.Month:return e.getMonth();case H.Date:return e.getDate();case H.Hours:return e.getHours();case H.Minutes:return e.getMinutes();case H.Seconds:return e.getSeconds();case H.FractionalSeconds:return e.getMilliseconds();case H.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function ne(t,e,r=Ae.Format,n=!1){return function(i,o){return Xb(i,o,t,e,r,n)}}function Xb(t,e,r,n,i,o){switch(r){case U.Months:return zb(e,i,n)[t.getMonth()];case U.Days:return Hb(e,i,n)[t.getDay()];case U.DayPeriods:let s=t.getHours(),a=t.getMinutes();if(o){let c=Wb(e),l=qb(e,i,n),d=c.findIndex(f=>{if(Array.isArray(f)){let[h,v]=f,j=s>=h.hours&&a>=h.minutes,S=s0?Math.floor(i/60):Math.ceil(i/60);switch(t){case qt.Short:return(i>=0?"+":"")+dt(s,2,o)+dt(Math.abs(i%60),2,o);case qt.ShortGMT:return"GMT"+(i>=0?"+":"")+dt(s,1,o);case qt.Long:return"GMT"+(i>=0?"+":"")+dt(s,2,o)+":"+dt(Math.abs(i%60),2,o);case qt.Extended:return n===0?"Z":(i>=0?"+":"")+dt(s,2,o)+":"+dt(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}var eE=0,Fs=4;function tE(t){let e=ks(t,eE,1).getDay();return ks(t,0,1+(e<=Fs?Fs:Fs+7)-e)}function sg(t){return ks(t.getFullYear(),t.getMonth(),t.getDate()+(Fs-t.getDay()))}function qc(t,e=!1){return function(r,n){let i;if(e){let o=new Date(r.getFullYear(),r.getMonth(),1).getDay()-1,s=r.getDate();i=1+Math.floor((s+o)/7)}else{let o=sg(r),s=tE(o.getFullYear()),a=o.getTime()-s.getTime();i=1+Math.round(a/6048e5)}return dt(i,t,Ls(n,Wt.MinusSign))}}function Rs(t,e=!1){return function(r,n){let o=sg(r).getFullYear();return dt(o,t,Ls(n,Wt.MinusSign),e)}}var Zc={};function nE(t){if(Zc[t])return Zc[t];let e;switch(t){case"G":case"GG":case"GGG":e=ne(U.Eras,Q.Abbreviated);break;case"GGGG":e=ne(U.Eras,Q.Wide);break;case"GGGGG":e=ne(U.Eras,Q.Narrow);break;case"y":e=he(H.FullYear,1,0,!1,!0);break;case"yy":e=he(H.FullYear,2,0,!0,!0);break;case"yyy":e=he(H.FullYear,3,0,!1,!0);break;case"yyyy":e=he(H.FullYear,4,0,!1,!0);break;case"Y":e=Rs(1);break;case"YY":e=Rs(2,!0);break;case"YYY":e=Rs(3);break;case"YYYY":e=Rs(4);break;case"M":case"L":e=he(H.Month,1,1);break;case"MM":case"LL":e=he(H.Month,2,1);break;case"MMM":e=ne(U.Months,Q.Abbreviated);break;case"MMMM":e=ne(U.Months,Q.Wide);break;case"MMMMM":e=ne(U.Months,Q.Narrow);break;case"LLL":e=ne(U.Months,Q.Abbreviated,Ae.Standalone);break;case"LLLL":e=ne(U.Months,Q.Wide,Ae.Standalone);break;case"LLLLL":e=ne(U.Months,Q.Narrow,Ae.Standalone);break;case"w":e=qc(1);break;case"ww":e=qc(2);break;case"W":e=qc(1,!0);break;case"d":e=he(H.Date,1);break;case"dd":e=he(H.Date,2);break;case"c":case"cc":e=he(H.Day,1);break;case"ccc":e=ne(U.Days,Q.Abbreviated,Ae.Standalone);break;case"cccc":e=ne(U.Days,Q.Wide,Ae.Standalone);break;case"ccccc":e=ne(U.Days,Q.Narrow,Ae.Standalone);break;case"cccccc":e=ne(U.Days,Q.Short,Ae.Standalone);break;case"E":case"EE":case"EEE":e=ne(U.Days,Q.Abbreviated);break;case"EEEE":e=ne(U.Days,Q.Wide);break;case"EEEEE":e=ne(U.Days,Q.Narrow);break;case"EEEEEE":e=ne(U.Days,Q.Short);break;case"a":case"aa":case"aaa":e=ne(U.DayPeriods,Q.Abbreviated);break;case"aaaa":e=ne(U.DayPeriods,Q.Wide);break;case"aaaaa":e=ne(U.DayPeriods,Q.Narrow);break;case"b":case"bb":case"bbb":e=ne(U.DayPeriods,Q.Abbreviated,Ae.Standalone,!0);break;case"bbbb":e=ne(U.DayPeriods,Q.Wide,Ae.Standalone,!0);break;case"bbbbb":e=ne(U.DayPeriods,Q.Narrow,Ae.Standalone,!0);break;case"B":case"BB":case"BBB":e=ne(U.DayPeriods,Q.Abbreviated,Ae.Format,!0);break;case"BBBB":e=ne(U.DayPeriods,Q.Wide,Ae.Format,!0);break;case"BBBBB":e=ne(U.DayPeriods,Q.Narrow,Ae.Format,!0);break;case"h":e=he(H.Hours,1,-12);break;case"hh":e=he(H.Hours,2,-12);break;case"H":e=he(H.Hours,1);break;case"HH":e=he(H.Hours,2);break;case"m":e=he(H.Minutes,1);break;case"mm":e=he(H.Minutes,2);break;case"s":e=he(H.Seconds,1);break;case"ss":e=he(H.Seconds,2);break;case"S":e=he(H.FractionalSeconds,1);break;case"SS":e=he(H.FractionalSeconds,2);break;case"SSS":e=he(H.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Os(qt.Short);break;case"ZZZZZ":e=Os(qt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Os(qt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Os(qt.Long);break;default:return null}return Zc[t]=e,e}function ag(t,e){t=t.replace(/:/g,"");let r=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(r)?e:r}function rE(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function iE(t,e,r){let n=r?-1:1,i=t.getTimezoneOffset(),o=ag(e,i);return rE(t,n*(o-i))}function oE(t){if(Jp(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[i,o=1,s=1]=t.split("-").map(a=>+a);return ks(i,o-1,s)}let r=parseFloat(t);if(!isNaN(t-r))return new Date(r);let n;if(n=t.match(Zb))return sE(n)}let e=new Date(t);if(!Jp(e))throw new Error(`Unable to convert "${t}" into a date`);return e}function sE(t){let e=new Date(0),r=0,n=0,i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(r=Number(t[9]+t[10]),n=Number(t[9]+t[11])),i.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));let s=Number(t[4]||0)-r,a=Number(t[5]||0)-n,u=Number(t[6]||0),c=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(e,s,a,u,c),e}function Jp(t){return t instanceof Date&&!isNaN(t.valueOf())}function Vs(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let n=r.indexOf("="),[i,o]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var Qc=class{constructor(e,r,n,i){this.$implicit=e,this.ngForOf=r,this.index=n,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Qe=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,i,o){this._viewContainer=n,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(!1)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let i=this._viewContainer;n.forEachOperation((o,s,a)=>{if(o.previousIndex==null)i.createEmbeddedView(this._template,new Qc(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(s===null?void 0:s);else if(s!==null){let u=i.get(s);i.move(u,a),Xp(u,o)}});for(let o=0,s=i.length;o{let s=i.get(o.currentIndex);Xp(s,o)})}static ngTemplateContextGuard(n,i){return!0}};e.\u0275fac=function(i){return new(i||e)(g(St),g(Vt),g(_c))},e.\u0275dir=re({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function Xp(t,e){t.context.$implicit=e.item}var Ke=(()=>{let e=class e{constructor(n,i){this._viewContainer=n,this._context=new Kc,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){eg("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){eg("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,i){return!0}};e.\u0275fac=function(i){return new(i||e)(g(St),g(Vt))},e.\u0275dir=re({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),Kc=class{constructor(){this.$implicit=null,this.ngIf=null}};function eg(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${Se(e)}'.`)}function ug(t,e){return new b(2100,!1)}var Jc=class{createSubscription(e,r){return Ic(()=>e.subscribe({next:r,error:n=>{throw n}}))}dispose(e){Ic(()=>e.unsubscribe())}},Xc=class{createSubscription(e,r){return e.then(r,n=>{throw n})}dispose(e){}},aE=new Xc,uE=new Jc,dn=(()=>{let e=class e{constructor(n){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){return this._obj?n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue:(n&&this._subscribe(n),this._latestValue)}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,i=>this._updateLatestValue(n,i))}_selectStrategy(n){if(cn(n))return aE;if($c(n))return uE;throw ug(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,i){n===this._obj&&(this._latestValue=i,this._ref.markForCheck())}};e.\u0275fac=function(i){return new(i||e)(g(Pn,16))},e.\u0275pipe=ti({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var cE="mediumDate",lE=new E("DATE_PIPE_DEFAULT_TIMEZONE"),dE=new E("DATE_PIPE_DEFAULT_OPTIONS"),cg=(()=>{let e=class e{constructor(n,i,o){this.locale=n,this.defaultTimezone=i,this.defaultOptions=o}transform(n,i,o,s){if(n==null||n===""||n!==n)return null;try{let a=i??this.defaultOptions?.dateFormat??cE,u=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Qb(n,a,s||this.locale,u)}catch(a){throw ug(e,a.message)}}};e.\u0275fac=function(i){return new(i||e)(g(Ss,16),g(lE,24),g(dE,24))},e.\u0275pipe=ti({name:"date",type:e,pure:!0,standalone:!0});let t=e;return t})();var Er=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({});let t=e;return t})(),sl="browser",fE="server";function hE(t){return t===sl}function al(t){return t===fE}var lg=(()=>{let e=class e{};e.\u0275prov=w({token:e,providedIn:"root",factory:()=>hE(p(_t))?new el(p(we),window):new tl});let t=e;return t})(),el=class{constructor(e,r){this.document=e,this.window=r,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let r=pE(this.document,e);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let r=e.getBoundingClientRect(),n=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],i-o[1])}};function pE(t,e){let r=t.getElementById(e)||t.getElementsByName(e)[0];if(r)return r;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=n.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}i=n.nextNode()}}return null}var tl=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},wr=class{};var li=class{},Bs=class{},Vn=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` +`).forEach(r=>{let n=r.indexOf(":");if(n>0){let i=r.slice(0,n),o=i.toLowerCase(),s=r.slice(n+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new t;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,r);let i=(e.op==="a"?this.headers.get(r):void 0)||[];i.push(...n),this.headers.set(r,i);break;case"d":let o=e.value;if(!o)this.headers.delete(r),this.normalizedNames.delete(r);else{let s=this.headers.get(r);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,s)}break}}setHeaderEntries(e,r){let n=(Array.isArray(r)?r:[r]).map(o=>o.toString()),i=e.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var cl=class{encodeKey(e){return dg(e)}encodeValue(e){return dg(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function vE(t,e){let r=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],u=r.get(s)||[];u.push(a),r.set(s,u)}),r}var yE=/%(\d[a-f0-9])/gi,DE={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function dg(t){return encodeURIComponent(t).replace(yE,(e,r)=>DE[r]??e)}function js(t){return`${t}`}var fn=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new cl,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=vE(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let n=e.fromObject[r],i=Array.isArray(n)?n.map(js):[js(n)];this.map.set(r,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(n=>{let i=e[n];Array.isArray(i)?i.forEach(o=>{r.push({param:n,value:o,op:"a"})}):r.push({param:n,value:i,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(n=>r+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new t({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(js(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],i=n.indexOf(js(e.value));i!==-1&&n.splice(i,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var ll=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function CE(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function fg(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function hg(t){return typeof Blob<"u"&&t instanceof Blob}function pg(t){return typeof FormData<"u"&&t instanceof FormData}function wE(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var ci=class t{constructor(e,r,n,i){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(CE(this.method)||i?(this.body=n!==void 0?n:null,o=i):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers||(this.headers=new Vn),this.context||(this.context=new ll),!this.params)this.params=new fn,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),u=a===-1?"?":ad.set(f,e.setHeaders[f]),u)),e.setParams&&(c=Object.keys(e.setParams).reduce((d,f)=>d.set(f,e.setParams[f]),c)),new t(r,n,o,{params:c,headers:u,context:l,reportProgress:a,responseType:i,withCredentials:s})}},Ir=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Ir||{}),di=class{constructor(e,r=200,n="OK"){this.headers=e.headers||new Vn,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},dl=class t extends di{constructor(e={}){super(e),this.type=Ir.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},$s=class t extends di{constructor(e={}){super(e),this.type=Ir.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Us=class extends di{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}};function ul(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var fl=(()=>{let e=class e{constructor(n){this.handler=n}request(n,i,o={}){let s;if(n instanceof ci)s=n;else{let c;o.headers instanceof Vn?c=o.headers:c=new Vn(o.headers);let l;o.params&&(o.params instanceof fn?l=o.params:l=new fn({fromObject:o.params})),s=new ci(n,i,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=I(s).pipe(Pt(c=>this.handler.handle(c)));if(n instanceof ci||o.observe==="events")return a;let u=a.pipe(De(c=>c instanceof $s));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return u.pipe(T(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return u.pipe(T(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return u.pipe(T(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return u.pipe(T(c=>c.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,i={}){return this.request("DELETE",n,i)}get(n,i={}){return this.request("GET",n,i)}head(n,i={}){return this.request("HEAD",n,i)}jsonp(n,i){return this.request("JSONP",n,{params:new fn().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,i={}){return this.request("OPTIONS",n,i)}patch(n,i,o={}){return this.request("PATCH",n,ul(o,i))}post(n,i,o={}){return this.request("POST",n,ul(o,i))}put(n,i,o={}){return this.request("PUT",n,ul(o,i))}};e.\u0275fac=function(i){return new(i||e)(C(li))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function yg(t,e){return e(t)}function bE(t,e){return(r,n)=>e.intercept(r,{handle:i=>t(i,n)})}function EE(t,e,r){return(n,i)=>It(r,()=>e(n,o=>t(o,i)))}var hl=new E(""),pl=new E(""),IE=new E(""),_E=new E("");function ME(){let t=null;return(e,r)=>{t===null&&(t=(p(hl,{optional:!0})??[]).reduceRight(bE,yg));let n=p(kn),i=n.add();return t(e,r).pipe(Xt(()=>n.remove(i)))}}var gg=(()=>{let e=class e extends li{constructor(n,i){super(),this.backend=n,this.injector=i,this.chain=null,this.pendingTasks=p(kn);let o=p(_E,{optional:!0});this.backend=o??n}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(pl),...this.injector.get(IE,[])]));this.chain=o.reduceRight((s,a)=>EE(s,a,this.injector),yg)}let i=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Xt(()=>this.pendingTasks.remove(i)))}};e.\u0275fac=function(i){return new(i||e)(C(Bs),C(Te))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();var SE=/^\)\]\}',?\n/;function TE(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var mg=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new b(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?J(i.\u0275loadImpl()):I(null)).pipe(ge(()=>new B(s=>{let a=i.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((S,_)=>a.setRequestHeader(S,_.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let S=n.detectContentTypeHeader();S!==null&&a.setRequestHeader("Content-Type",S)}if(n.responseType){let S=n.responseType.toLowerCase();a.responseType=S!=="json"?S:"text"}let u=n.serializeBody(),c=null,l=()=>{if(c!==null)return c;let S=a.statusText||"OK",_=new Vn(a.getAllResponseHeaders()),le=TE(a)||n.url;return c=new dl({headers:_,status:a.status,statusText:S,url:le}),c},d=()=>{let{headers:S,status:_,statusText:le,url:$e}=l(),K=null;_!==204&&(K=typeof a.response>"u"?a.responseText:a.response),_===0&&(_=K?200:0);let Oe=_>=200&&_<300;if(n.responseType==="json"&&typeof K=="string"){let nt=K;K=K.replace(SE,"");try{K=K!==""?JSON.parse(K):null}catch(Vr){K=nt,Oe&&(Oe=!1,K={error:Vr,text:K})}}Oe?(s.next(new $s({body:K,headers:S,status:_,statusText:le,url:$e||void 0})),s.complete()):s.error(new Us({error:K,headers:S,status:_,statusText:le,url:$e||void 0}))},f=S=>{let{url:_}=l(),le=new Us({error:S,status:a.status||0,statusText:a.statusText||"Unknown Error",url:_||void 0});s.error(le)},h=!1,v=S=>{h||(s.next(l()),h=!0);let _={type:Ir.DownloadProgress,loaded:S.loaded};S.lengthComputable&&(_.total=S.total),n.responseType==="text"&&a.responseText&&(_.partialText=a.responseText),s.next(_)},j=S=>{let _={type:Ir.UploadProgress,loaded:S.loaded};S.lengthComputable&&(_.total=S.total),s.next(_)};return a.addEventListener("load",d),a.addEventListener("error",f),a.addEventListener("timeout",f),a.addEventListener("abort",f),n.reportProgress&&(a.addEventListener("progress",v),u!==null&&a.upload&&a.upload.addEventListener("progress",j)),a.send(u),s.next({type:Ir.Sent}),()=>{a.removeEventListener("error",f),a.removeEventListener("abort",f),a.removeEventListener("load",d),a.removeEventListener("timeout",f),n.reportProgress&&(a.removeEventListener("progress",v),u!==null&&a.upload&&a.upload.removeEventListener("progress",j)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(i){return new(i||e)(C(wr))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Dg=new E("XSRF_ENABLED"),xE="XSRF-TOKEN",AE=new E("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>xE}),NE="X-XSRF-TOKEN",OE=new E("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>NE}),Hs=class{},RE=(()=>{let e=class e{constructor(n,i,o){this.doc=n,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Vs(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(i){return new(i||e)(C(we),C(_t),C(AE))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function FE(t,e){let r=t.url.toLowerCase();if(!p(Dg)||t.method==="GET"||t.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(t);let n=p(Hs).getToken(),i=p(OE);return n!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),e(t)}var Cg=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Cg||{});function PE(t,e){return{\u0275kind:t,\u0275providers:e}}function kE(...t){let e=[fl,mg,gg,{provide:li,useExisting:gg},{provide:Bs,useExisting:mg},{provide:pl,useValue:FE,multi:!0},{provide:Dg,useValue:!0},{provide:Hs,useClass:RE}];for(let r of t)e.push(...r.\u0275providers);return us(e)}var vg=new E("LEGACY_INTERCEPTOR_FN");function LE(){return PE(Cg.LegacyInterceptors,[{provide:vg,useFactory:ME},{provide:pl,useExisting:vg,multi:!0}])}var wg=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[kE(LE())]});let t=e;return t})();var vl=class extends Ps{constructor(){super(...arguments),this.supportsDOMEvents=!0}},yl=class t extends vl{static makeCurrent(){tg(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=jE();return r==null?null:BE(r)}resetBaseElement(){fi=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Vs(document.cookie,e)}},fi=null;function jE(){return fi=fi||document.querySelector("base"),fi?fi.getAttribute("href"):null}function BE(t){return new URL(t,document.baseURI).pathname}var Dl=class{addToWindow(e){me.getAngularTestability=(n,i=!0)=>{let o=e.findTestabilityInTree(n,i);if(o==null)throw new b(5103,!1);return o},me.getAllAngularTestabilities=()=>e.getAllTestabilities(),me.getAllAngularRootElements=()=>e.getAllRootElements();let r=n=>{let i=me.getAllAngularTestabilities(),o=i.length,s=!1,a=function(u){s=s||u,o--,o==0&&n(s)};i.forEach(u=>{u.whenStable(a)})};me.frameworkStabilizers||(me.frameworkStabilizers=[]),me.frameworkStabilizers.push(r)}findTestabilityInTree(e,r,n){if(r==null)return null;let i=e.getTestability(r);return i??(n?xt().isShadowRoot(r)?this.findTestabilityInTree(e,r.host,!0):this.findTestabilityInTree(e,r.parentElement,!0):null)}},$E=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Cl=new E("EventManagerPlugins"),_g=(()=>{let e=class e{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,i,o){return this._findPluginFor(i).addEventListener(n,i,o)}getZone(){return this._zone}_findPluginFor(n){let i=this._eventNameToPlugin.get(n);if(i)return i;if(i=this._plugins.find(s=>s.supports(n)),!i)throw new b(5101,!1);return this._eventNameToPlugin.set(n,i),i}};e.\u0275fac=function(i){return new(i||e)(C(Cl),C(q))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),zs=class{constructor(e){this._doc=e}},gl="ng-app-id",Mg=(()=>{let e=class e{constructor(n,i,o,s={}){this.doc=n,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=al(s),this.resetHostNodes()}addStyles(n){for(let i of n)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(n){for(let i of n)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(i=>i.remove()),n.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let i of this.getAllStyles())this.addStyleToHost(n,i)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let i of this.hostNodes)this.addStyleToHost(i,n)}onStyleRemoved(n){let i=this.styleRef;i.get(n)?.elements?.forEach(o=>o.remove()),i.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${gl}="${this.appId}"]`);if(n?.length){let i=new Map;return n.forEach(o=>{o.textContent!=null&&i.set(o.textContent,o)}),i}return null}changeUsageCount(n,i){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=i,s.usage}return o.set(n,{usage:i,elements:[]}),i}getStyleElement(n,i){let o=this.styleNodesInDOM,s=o?.get(i);if(s?.parentNode===n)return o.delete(i),s.removeAttribute(gl),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(gl,this.appId),n.appendChild(a),a}}addStyleToHost(n,i){let o=this.getStyleElement(n,i),s=this.styleRef,a=s.get(i)?.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(C(we),C(ls),C(yc,8),C(_t))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),ml={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},bl=/%COMP%/g,Sg="%COMP%",UE=`_nghost-${Sg}`,HE=`_ngcontent-${Sg}`,zE=!0,GE=new E("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>zE});function WE(t){return HE.replace(bl,t)}function qE(t){return UE.replace(bl,t)}function Tg(t,e){return e.map(r=>r.replace(bl,t))}var bg=(()=>{let e=class e{constructor(n,i,o,s,a,u,c,l=null){this.eventManager=n,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=u,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=al(u),this.defaultRenderer=new hi(n,a,c,this.platformIsServer)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===yt.ShadowDom&&(i=W(m({},i),{encapsulation:yt.Emulated}));let o=this.getOrCreateRenderer(n,i);return o instanceof Gs?o.applyToHost(n):o instanceof pi&&o.applyStyles(),o}getOrCreateRenderer(n,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,u=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(i.encapsulation){case yt.Emulated:s=new Gs(c,l,i,this.appId,d,a,u,f);break;case yt.ShadowDom:return new wl(c,l,n,i,a,u,this.nonce,f);default:s=new pi(c,l,i,d,a,u,f);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(C(_g),C(Mg),C(ls),C(GE),C(we),C(_t),C(q),C(yc))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),hi=class{constructor(e,r,n,i){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(ml[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(Eg(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(Eg(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new b(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,i){if(i){r=i+":"+r;let o=ml[i];o?e.setAttributeNS(o,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let i=ml[n];i?e.removeAttributeNS(i,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,i){i&(Lt.DashCase|Lt.Important)?e.style.setProperty(r,n,i&Lt.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&Lt.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=xt().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function Eg(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var wl=class extends hi{constructor(e,r,n,i,o,s,a,u){super(e,o,s,u),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=Tg(i.id,i.styles);for(let l of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},pi=class extends hi{constructor(e,r,n,i,o,s,a,u){super(e,o,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=u?Tg(u,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Gs=class extends pi{constructor(e,r,n,i,o,s,a,u){let c=i+"-"+n.id;super(e,r,n,o,s,a,u,c),this.contentAttr=WE(c),this.hostAttr=qE(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},ZE=(()=>{let e=class e extends zs{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,o){return n.addEventListener(i,o,!1),()=>this.removeEventListener(n,i,o)}removeEventListener(n,i,o){return n.removeEventListener(i,o)}};e.\u0275fac=function(i){return new(i||e)(C(we))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Ig=["alt","control","meta","shift"],YE={"\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"},QE={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},KE=(()=>{let e=class e extends zs{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,i,o){let s=e.parseEventName(i),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>xt().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let i=n.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(i.pop()),a="",u=i.indexOf("code");if(u>-1&&(i.splice(u,1),a="code."),Ig.forEach(l=>{let d=i.indexOf(l);d>-1&&(i.splice(d,1),a+=l+".")}),a+=s,i.length!=0||s.length===0)return null;let c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(n,i){let o=YE[n.key]||n.key,s="";return i.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Ig.forEach(a=>{if(a!==o){let u=QE[a];u(n)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(n,i,o){return s=>{e.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>i(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(i){return new(i||e)(C(we))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function JE(){yl.makeCurrent()}function XE(){return new bt}function eI(){return Uh(document),document}var tI=[{provide:_t,useValue:sl},{provide:vc,useValue:JE,multi:!0},{provide:we,useFactory:eI,deps:[]}],xg=Gc(qp,"browser",tI),nI=new E(""),rI=[{provide:ai,useClass:Dl,deps:[]},{provide:Hc,useClass:Es,deps:[q,Is,ai]},{provide:Es,useClass:Es,deps:[q,Is,ai]}],iI=[{provide:cs,useValue:"root"},{provide:bt,useFactory:XE,deps:[]},{provide:Cl,useClass:ZE,multi:!0,deps:[we,q,_t]},{provide:Cl,useClass:KE,multi:!0,deps:[we]},bg,Mg,_g,{provide:Kr,useExisting:bg},{provide:wr,useClass:$E,deps:[]},[]],Ag=(()=>{let e=class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:ls,useValue:n.appId}]}}};e.\u0275fac=function(i){return new(i||e)(C(nI,12))},e.\u0275mod=te({type:e}),e.\u0275inj=ee({providers:[...iI,...rI],imports:[Er,Zp]});let t=e;return t})();function oI(){return new El(C(we))}var El=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(i){return new(i||e)(C(we))},e.\u0275prov=w({token:e,factory:function(i){let o=null;return i?o=new i:o=oI(),o},providedIn:"root"});let t=e;return t})();var R="primary",xi=Symbol("RouteTitle"),Tl=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function xr(t){return new Tl(t)}function sI(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.lengthn[o]===i)}else return t===e}function mn(t){return ja(t)?t:cn(t)?J(Promise.resolve(t)):I(t)}var uI={exact:Ug,subset:Hg},$g={exact:cI,subset:lI,ignored:()=>!0};function Og(t,e,r){return uI[r.paths](t.root,e.root,r.matrixParams)&&$g[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function cI(t,e){return Nt(t,e)}function Ug(t,e,r){if(!Bn(t.segments,e.segments)||!Zs(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!Ug(t.children[n],e.children[n],r))return!1;return!0}function lI(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>Bg(t[r],e[r]))}function Hg(t,e,r){return zg(t,e,e.segments,r)}function zg(t,e,r,n){if(t.segments.length>r.length){let i=t.segments.slice(0,r.length);return!(!Bn(i,r)||e.hasChildren()||!Zs(i,r,n))}else if(t.segments.length===r.length){if(!Bn(t.segments,r)||!Zs(t.segments,r,n))return!1;for(let i in e.children)if(!t.children[i]||!Hg(t.children[i],e.children[i],n))return!1;return!0}else{let i=r.slice(0,t.segments.length),o=r.slice(t.segments.length);return!Bn(t.segments,i)||!Zs(t.segments,i,n)||!t.children[R]?!1:zg(t.children[R],e,o,n)}}function Zs(t,e,r){return e.every((n,i)=>$g[r](t[i].parameters,n.parameters))}var hn=class{constructor(e=new z([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xr(this.queryParams)),this._queryParamMap}toString(){return hI.serialize(this)}},z=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ys(this)}},jn=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap||(this._parameterMap=xr(this.parameters)),this._parameterMap}toString(){return Wg(this)}};function dI(t,e){return Bn(t,e)&&t.every((r,n)=>Nt(r.parameters,e[n].parameters))}function Bn(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function fI(t,e){let r=[];return Object.entries(t.children).forEach(([n,i])=>{n===R&&(r=r.concat(e(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==R&&(r=r.concat(e(i,n)))}),r}var Ai=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>(()=>new wi)(),providedIn:"root"});let t=e;return t})(),wi=class{parse(e){let r=new Nl(e);return new hn(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${gi(e.root,!0)}`,n=mI(e.queryParams),i=typeof e.fragment=="string"?`#${pI(e.fragment)}`:"";return`${r}${n}${i}`}},hI=new wi;function Ys(t){return t.segments.map(e=>Wg(e)).join("/")}function gi(t,e){if(!t.hasChildren())return Ys(t);if(e){let r=t.children[R]?gi(t.children[R],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==R&&n.push(`${i}:${gi(o,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=fI(t,(n,i)=>i===R?[gi(t.children[R],!1)]:[`${i}:${gi(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[R]!=null?`${Ys(t)}/${r[0]}`:`${Ys(t)}/(${r.join("//")})`}}function Gg(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ws(t){return Gg(t).replace(/%3B/gi,";")}function pI(t){return encodeURI(t)}function Al(t){return Gg(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Qs(t){return decodeURIComponent(t)}function Rg(t){return Qs(t.replace(/\+/g,"%20"))}function Wg(t){return`${Al(t.path)}${gI(t.parameters)}`}function gI(t){return Object.entries(t).map(([e,r])=>`;${Al(e)}=${Al(r)}`).join("")}function mI(t){let e=Object.entries(t).map(([r,n])=>Array.isArray(n)?n.map(i=>`${Ws(r)}=${Ws(i)}`).join("&"):`${Ws(r)}=${Ws(n)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var vI=/^[^\/()?;#]+/;function Il(t){let e=t.match(vI);return e?e[0]:""}var yI=/^[^\/()?;=#]+/;function DI(t){let e=t.match(yI);return e?e[0]:""}var CI=/^[^=?&#]+/;function wI(t){let e=t.match(CI);return e?e[0]:""}var bI=/^[^&#]+/;function EI(t){let e=t.match(bI);return e?e[0]:""}var Nl=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new z([],{}):new z([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[R]=new z(e,r)),n}parseSegment(){let e=Il(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(e),new jn(Qs(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=DI(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let i=Il(this.remaining);i&&(n=i,this.capture(n))}e[Qs(r)]=Qs(n)}parseQueryParam(e){let r=wI(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=EI(this.remaining);s&&(n=s,this.capture(n))}let i=Rg(r),o=Rg(n);if(e.hasOwnProperty(i)){let s=e[i];Array.isArray(s)||(s=[s],e[i]=s),s.push(o)}else e[i]=o}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Il(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new b(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=R);let s=this.parseChildren();r[o]=Object.keys(s).length===1?s[R]:new z([],s),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new b(4011,!1)}};function qg(t){return t.segments.length>0?new z([],{[R]:t}):t}function Zg(t){let e={};for(let[n,i]of Object.entries(t.children)){let o=Zg(i);if(n===R&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[n]=o)}let r=new z(t.segments,e);return II(r)}function II(t){if(t.numberOfChildren===1&&t.children[R]){let e=t.children[R];return new z(t.segments.concat(e.segments),e.children)}return t}function Ar(t){return t instanceof hn}function _I(t,e,r=null,n=null){let i=Yg(t);return Qg(i,e,r,n)}function Yg(t){let e;function r(o){let s={};for(let u of o.children){let c=r(u);s[u.outlet]=c}let a=new z(o.url,s);return o===t&&(e=a),a}let n=r(t.root),i=qg(n);return e??i}function Qg(t,e,r,n){let i=t;for(;i.parent;)i=i.parent;if(e.length===0)return _l(i,i,i,r,n);let o=MI(e);if(o.toRoot())return _l(i,i,new z([],{}),r,n);let s=SI(o,i,t),a=s.processChildren?yi(s.segmentGroup,s.index,o.commands):Jg(s.segmentGroup,s.index,o.commands);return _l(i,s.segmentGroup,a,r,n)}function Ks(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function bi(t){return typeof t=="object"&&t!=null&&t.outlets}function _l(t,e,r,n,i){let o={};n&&Object.entries(n).forEach(([u,c])=>{o[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let s;t===e?s=r:s=Kg(t,e,r);let a=qg(Zg(s));return new hn(a,o,i)}function Kg(t,e,r){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===e?n[i]=r:n[i]=Kg(o,e,r)}),new z(t.segments,n)}var Js=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&Ks(n[0]))throw new b(4003,!1);let i=n.find(bi);if(i&&i!==n.at(-1))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function MI(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Js(!0,0,t);let e=0,r=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?r=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new Js(r,e,n)}var Sr=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function SI(t,e,r){if(t.isAbsolute)return new Sr(e,!0,0);if(!r)return new Sr(e,!1,NaN);if(r.parent===null)return new Sr(r,!0,0);let n=Ks(t.commands[0])?0:1,i=r.segments.length-1+n;return TI(r,i,t.numberOfDoubleDots)}function TI(t,e,r){let n=t,i=e,o=r;for(;o>i;){if(o-=i,n=n.parent,!n)throw new b(4005,!1);i=n.segments.length}return new Sr(n,!1,i-o)}function xI(t){return bi(t[0])?t[0].outlets:{[R]:t}}function Jg(t,e,r){if(t||(t=new z([],{})),t.segments.length===0&&t.hasChildren())return yi(t,e,r);let n=AI(t,e,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndexo!==R)&&t.children[R]&&t.numberOfChildren===1&&t.children[R].segments.length===0){let o=yi(t.children[R],e,r);return new z(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Jg(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new z(t.segments,i)}}function AI(t,e,r){let n=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};for(;i=r.length)return o;let s=t.segments[i],a=r[n];if(bi(a))break;let u=`${a}`,c=n0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!Pg(u,c,s))return o;n+=2}else{if(!Pg(u,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function Ol(t,e,r){let n=t.segments.slice(0,e),i=0;for(;i{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=Ol(new z([],{}),0,n))}),e}function Fg(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function Pg(t,e,r){return t==r.path&&Nt(e,r.parameters)}var Di="imperative",Je=class{constructor(e,r){this.id=e,this.url=r}},Nr=class extends Je{constructor(e,r,n="imperative",i=null){super(e,r),this.type=0,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},ft=class extends Je{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},pn=class extends Je{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},gn=class extends Je{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=16}},Ei=class extends Je{constructor(e,r,n,i){super(e,r),this.error=n,this.target=i,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Xs=class extends Je{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Rl=class extends Je{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Fl=class extends Je{constructor(e,r,n,i,o){super(e,r),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Pl=class extends Je{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},kl=class extends Je{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ll=class{constructor(e){this.route=e,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Vl=class{constructor(e){this.route=e,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},jl=class{constructor(e){this.snapshot=e,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Bl=class{constructor(e){this.snapshot=e,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},$l=class{constructor(e){this.snapshot=e,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ul=class{constructor(e){this.snapshot=e,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ea=class{constructor(e,r,n){this.routerEvent=e,this.position=r,this.anchor=n,this.type=15}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},Ii=class{},_i=class{constructor(e){this.url=e}};var Hl=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Ni,this.attachRef=null}},Ni=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,i){let o=this.getOrCreateContext(n);o.outlet=i,this.contexts.set(n,o)}onChildOutletDestroyed(n){let i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new Hl,this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ta=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=zl(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=zl(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=Gl(e,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return Gl(e,this._root).map(r=>r.value)}};function zl(t,e){if(t===e.value)return e;for(let r of e.children){let n=zl(t,r);if(n)return n}return null}function Gl(t,e){if(t===e.value)return[e];for(let r of e.children){let n=Gl(t,r);if(n.length)return n.unshift(e),n}return[]}var Be=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function Mr(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var na=class extends ta{constructor(e,r){super(e),this.snapshot=r,td(this,e)}toString(){return this.snapshot.toString()}};function Xg(t){let e=OI(t),r=new pe([new jn("",{})]),n=new pe({}),i=new pe({}),o=new pe({}),s=new pe(""),a=new ht(r,n,o,s,i,R,t,e.root);return a.snapshot=e.root,new na(new Be(a,[]),e)}function OI(t){let e={},r={},n={},i="",o=new Mi([],e,n,i,r,R,t,null,{});return new ra("",new Be(o,[]))}var ht=class{constructor(e,r,n,i,o,s,a,u){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(T(c=>c[xi]))??I(void 0),this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(T(e=>xr(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(T(e=>xr(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function ed(t,e,r="emptyOnly"){let n,{routeConfig:i}=t;return e!==null&&(r==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:m(m({},e.params),t.params),data:m(m({},e.data),t.data),resolve:m(m(m(m({},t.data),e.data),i?.data),t._resolvedData)}:n={params:m({},t.params),data:m({},t.data),resolve:m(m({},t.data),t._resolvedData??{})},i&&tm(i)&&(n.resolve[xi]=i.title),n}var Mi=class{get title(){return this.data?.[xi]}constructor(e,r,n,i,o,s,a,u,c){this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=xr(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xr(this.queryParams)),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},ra=class extends ta{constructor(e,r){super(r),this.url=e,td(this,r)}toString(){return em(this._root)}};function td(t,e){e.value._routerState=t,e.children.forEach(r=>td(t,r))}function em(t){let e=t.children.length>0?` { ${t.children.map(em).join(", ")} } `:"";return`${t.value}${e}`}function Ml(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,Nt(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),Nt(e.params,r.params)||t.paramsSubject.next(r.params),aI(e.url,r.url)||t.urlSubject.next(r.url),Nt(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Wl(t,e){let r=Nt(t.params,e.params)&&dI(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||Wl(t.parent,e.parent))}function tm(t){return typeof t.title=="string"||t.title===null}var nd=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=R,this.activateEvents=new X,this.deactivateEvents=new X,this.attachEvents=new X,this.detachEvents=new X,this.parentContexts=p(Ni),this.location=p(St),this.changeDetector=p(Pn),this.environmentInjector=p(Te),this.inputBinder=p(ua,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:i,previousValue:o}=n.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new b(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new b(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new b(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,i){if(this.isActivated)throw new b(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,c=new ql(n,u,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:c,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=re({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[ut]});let t=e;return t})(),ql=class{constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n}get(e,r){return e===ht?this.route:e===Ni?this.childContexts:this.parent.get(e,r)}},ua=new E(""),kg=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:i}=n,o=$r([i.queryParams,i.params,i.data]).pipe(ge(([s,a,u],c)=>(u=m(m(m({},s),a),u),c===0?I(u):Promise.resolve(u)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(n);return}let a=Yp(i.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:u}of a.inputs)n.activatedComponentRef.setInput(u,s[u])});this.outletDataSubscriptions.set(n,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function RI(t,e,r){let n=Si(t,e._root,r?r._root:void 0);return new na(n,e)}function Si(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let i=FI(t,e,r);return new Be(n,i)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>Si(t,a)),s}}let n=PI(e.value),i=e.children.map(o=>Si(t,o));return new Be(n,i)}}function FI(t,e,r){return e.children.map(n=>{for(let i of r.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return Si(t,n,i);return Si(t,n)})}function PI(t){return new ht(new pe(t.url),new pe(t.params),new pe(t.queryParams),new pe(t.fragment),new pe(t.data),t.outlet,t.component,t)}var nm="ngNavigationCancelingError";function rm(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=Ar(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=im(!1,0,e);return i.url=r,i.navigationBehaviorOptions=n,i}function im(t,e,r){let n=new Error("NavigationCancelingError: "+(t||""));return n[nm]=!0,n.cancellationCode=e,r&&(n.url=r),n}function kI(t){return om(t)&&Ar(t.url)}function om(t){return t&&t[nm]}var LI=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=se({type:e,selectors:[["ng-component"]],standalone:!0,features:[Np],decls:1,vars:0,template:function(i,o){i&1&&ae(0,"router-outlet")},dependencies:[nd],encapsulation:2});let t=e;return t})();function VI(t,e){return t.providers&&!t._injector&&(t._injector=ys(t.providers,e,`Route: ${t.path}`)),t._injector??e}function rd(t){let e=t.children&&t.children.map(rd),r=e?W(m({},t),{children:e}):m({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==R&&(r.component=LI),r}function Ot(t){return t.outlet||R}function jI(t,e){let r=t.filter(n=>Ot(n)===e);return r.push(...t.filter(n=>Ot(n)!==e)),r}function Oi(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var BI=(t,e,r,n)=>T(i=>(new Zl(e,i.targetRouterState,i.currentRouterState,r,n).activate(t),i)),Zl=class{constructor(e,r,n,i,o){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),Ml(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let i=Mr(r);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,n);else o&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=Mr(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=Mr(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let i=Mr(r);e.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new Ul(o.value.snapshot))}),e.children.length&&this.forwardEvent(new Bl(e.value.snapshot))}activateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(Ml(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Ml(a.route.value),this.activateChildRoutes(e,null,s.children)}else{let a=Oi(i.snapshot);s.attachRef=null,s.route=i,s.injector=a,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,n)}},ia=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},Tr=class{constructor(e,r){this.component=e,this.route=r}};function $I(t,e,r){let n=t._root,i=e?e._root:null;return mi(n,i,r,[n.value])}function UI(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Rr(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!jf(t)?t:e.get(t):n}function mi(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Mr(e);return t.children.forEach(s=>{HI(s,o[s.value.outlet],r,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Ci(a,r.getContext(s),i)),i}function HI(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let u=zI(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new ia(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?mi(t,e,a?a.children:null,n,i):mi(t,e,r,n,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Tr(a.outlet.component,s))}else s&&Ci(e,a,i),i.canActivateChecks.push(new ia(n)),o.component?mi(t,null,a?a.children:null,n,i):mi(t,null,r,n,i);return i}function zI(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!Bn(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Bn(t.url,e.url)||!Nt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Wl(t,e)||!Nt(t.queryParams,e.queryParams);case"paramsChange":default:return!Wl(t,e)}}function Ci(t,e,r){let n=Mr(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?e?Ci(s,e.children.getContext(o),r):Ci(s,null,r):Ci(s,e,r)}),i.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new Tr(e.outlet.component,i)):r.canDeactivateChecks.push(new Tr(null,i)):r.canDeactivateChecks.push(new Tr(null,i))}function Ri(t){return typeof t=="function"}function GI(t){return typeof t=="boolean"}function WI(t){return t&&Ri(t.canLoad)}function qI(t){return t&&Ri(t.canActivate)}function ZI(t){return t&&Ri(t.canActivateChild)}function YI(t){return t&&Ri(t.canDeactivate)}function QI(t){return t&&Ri(t.canMatch)}function sm(t){return t instanceof Ft||t?.name==="EmptyError"}var qs=Symbol("INITIAL_VALUE");function Or(){return ge(t=>$r(t.map(e=>e.pipe(kt(1),Wa(qs)))).pipe(T(e=>{for(let r of e)if(r!==!0){if(r===qs)return qs;if(r===!1||r instanceof hn)return r}return!0}),De(e=>e!==qs),kt(1)))}function KI(t,e){return fe(r=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=r;return s.length===0&&o.length===0?I(W(m({},r),{guardsResult:!0})):JI(s,n,i,t).pipe(fe(a=>a&&GI(a)?XI(n,o,t,e):I(a)),T(a=>W(m({},r),{guardsResult:a})))})}function JI(t,e,r,n){return J(t).pipe(fe(i=>i_(i.component,i.route,r,e,n)),pt(i=>i!==!0,!0))}function XI(t,e,r,n){return J(e).pipe(Pt(i=>Kn(t_(i.route.parent,n),e_(i.route,n),r_(t,i.path,r),n_(t,i.route,r))),pt(i=>i!==!0,!0))}function e_(t,e){return t!==null&&e&&e(new $l(t)),I(!0)}function t_(t,e){return t!==null&&e&&e(new jl(t)),I(!0)}function n_(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return I(!0);let i=n.map(o=>po(()=>{let s=Oi(e)??r,a=Rr(o,s),u=qI(a)?a.canActivate(e,t):It(s,()=>a(e,t));return mn(u).pipe(pt())}));return I(i).pipe(Or())}function r_(t,e,r){let n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>UI(s)).filter(s=>s!==null).map(s=>po(()=>{let a=s.guards.map(u=>{let c=Oi(s.node)??r,l=Rr(u,c),d=ZI(l)?l.canActivateChild(n,t):It(c,()=>l(n,t));return mn(d).pipe(pt())});return I(a).pipe(Or())}));return I(o).pipe(Or())}function i_(t,e,r,n,i){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return I(!0);let s=o.map(a=>{let u=Oi(e)??i,c=Rr(a,u),l=YI(c)?c.canDeactivate(t,e,r,n):It(u,()=>c(t,e,r,n));return mn(l).pipe(pt())});return I(s).pipe(Or())}function o_(t,e,r,n){let i=e.canLoad;if(i===void 0||i.length===0)return I(!0);let o=i.map(s=>{let a=Rr(s,t),u=WI(a)?a.canLoad(e,r):It(t,()=>a(e,r));return mn(u)});return I(o).pipe(Or(),am(n))}function am(t){return Fa(oe(e=>{if(Ar(e))throw rm(t,e)}),T(e=>e===!0))}function s_(t,e,r,n){let i=e.canMatch;if(!i||i.length===0)return I(!0);let o=i.map(s=>{let a=Rr(s,t),u=QI(a)?a.canMatch(e,r):It(t,()=>a(e,r));return mn(u)});return I(o).pipe(Or(),am(n))}var Ti=class{constructor(e){this.segmentGroup=e||null}},oa=class extends Error{constructor(e){super(),this.urlTree=e}};function _r(t){return Qn(new Ti(t))}function a_(t){return Qn(new b(4e3,!1))}function u_(t){return Qn(im(!1,3))}var Yl=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let n=[],i=r.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return I(n);if(i.numberOfChildren>1||!i.children[R])return a_(e.redirectTo);i=i.children[R]}}applyRedirectCommands(e,r,n){let i=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r.startsWith("/"))throw new oa(i);return i}applyRedirectCreateUrlTree(e,r,n,i){let o=this.createSegmentGroup(e,r.root,n,i);return new hn(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([i,o])=>{if(typeof o=="string"&&o.startsWith(":")){let a=o.substring(1);n[i]=r[a]}else n[i]=o}),n}createSegmentGroup(e,r,n,i){let o=this.createSegments(e,r.segments,n,i),s={};return Object.entries(r.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(e,u,n,i)}),new z(o,s)}createSegments(e,r,n,i){return r.map(o=>o.path.startsWith(":")?this.findPosParam(e,o,i):this.findOrReturn(o,n))}findPosParam(e,r,n){let i=n[r.path.substring(1)];if(!i)throw new b(4001,!1);return i}findOrReturn(e,r){let n=0;for(let i of r){if(i.path===e.path)return r.splice(n),i;n++}return e}},Ql={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function c_(t,e,r,n,i){let o=id(t,e,r);return o.matched?(n=VI(e,n),s_(n,e,r,i).pipe(T(s=>s===!0?o:m({},Ql)))):I(o)}function id(t,e,r){if(e.path==="**")return l_(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?m({},Ql):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let i=(e.matcher||sI)(r,t,e);if(!i)return m({},Ql);let o={};Object.entries(i.posParams??{}).forEach(([a,u])=>{o[a]=u.path});let s=i.consumed.length>0?m(m({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:r.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function l_(t){return{matched:!0,parameters:t.at(-1)?.parameters??{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Lg(t,e,r,n){return r.length>0&&h_(t,r,n)?{segmentGroup:new z(e,f_(n,new z(r,t.children))),slicedSegments:[]}:r.length===0&&p_(t,r,n)?{segmentGroup:new z(t.segments,d_(t,r,n,t.children)),slicedSegments:r}:{segmentGroup:new z(t.segments,t.children),slicedSegments:r}}function d_(t,e,r,n){let i={};for(let o of r)if(ca(t,e,o)&&!n[Ot(o)]){let s=new z([],{});i[Ot(o)]=s}return m(m({},n),i)}function f_(t,e){let r={};r[R]=e;for(let n of t)if(n.path===""&&Ot(n)!==R){let i=new z([],{});r[Ot(n)]=i}return r}function h_(t,e,r){return r.some(n=>ca(t,e,n)&&Ot(n)!==R)}function p_(t,e,r){return r.some(n=>ca(t,e,n))}function ca(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function g_(t,e,r,n){return Ot(t)!==n&&(n===R||!ca(e,r,t))?!1:id(e,t,r).matched}function m_(t,e,r){return e.length===0&&!t.children[r]}var Kl=class{};function v_(t,e,r,n,i,o,s="emptyOnly"){return new Jl(t,e,r,n,i,s,o).recognize()}var y_=31,Jl=class{constructor(e,r,n,i,o,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Yl(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new b(4002,`'${e.segmentGroup}'`)}recognize(){let e=Lg(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(T(r=>{let n=new Mi([],Object.freeze({}),Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,{},R,this.rootComponentType,null,{}),i=new Be(n,r),o=new ra("",i),s=_I(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root,null),{state:o,tree:s}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,R).pipe(He(n=>{if(n instanceof oa)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Ti?this.noMatchError(n):n}))}inheritParamsAndData(e,r){let n=e.value,i=ed(n,r,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(o=>this.inheritParamsAndData(o,n))}processSegmentGroup(e,r,n,i){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n):this.processSegment(e,r,n,n.segments,i,!0).pipe(T(o=>o instanceof Be?[o]:[]))}processChildren(e,r,n){let i=[];for(let o of Object.keys(n.children))o==="primary"?i.unshift(o):i.push(o);return J(i).pipe(Pt(o=>{let s=n.children[o],a=jI(r,o);return this.processSegmentGroup(e,a,s,o)}),Ga((o,s)=>(o.push(...s),o)),Jt(null),za(),fe(o=>{if(o===null)return _r(n);let s=um(o);return D_(s),I(s)}))}processSegment(e,r,n,i,o,s){return J(r).pipe(Pt(a=>this.processSegmentAgainstRoute(a._injector??e,r,a,n,i,o,s).pipe(He(u=>{if(u instanceof Ti)return I(null);throw u}))),pt(a=>!!a),He(a=>{if(sm(a))return m_(n,i,o)?I(new Kl):_r(n);throw a}))}processSegmentAgainstRoute(e,r,n,i,o,s,a){return g_(n,i,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,n,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,i,r,n,o,s):_r(i):_r(i)}expandSegmentAgainstRouteUsingRedirect(e,r,n,i,o,s){let{matched:a,consumedSegments:u,positionalParamSegments:c,remainingSegments:l}=id(r,i,o);if(!a)return _r(r);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>y_&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(u,i.redirectTo,c);return this.applyRedirects.lineralizeSegments(i,d).pipe(fe(f=>this.processSegment(e,n,r,f.concat(l),s,!1)))}matchSegmentAgainstRoute(e,r,n,i,o){let s=c_(r,n,i,e,this.urlSerializer);return n.path==="**"&&(r.children={}),s.pipe(ge(a=>a.matched?(e=n._injector??e,this.getChildConfig(e,n,i).pipe(ge(({routes:u})=>{let c=n._loadedInjector??e,{consumedSegments:l,remainingSegments:d,parameters:f}=a,h=new Mi(l,f,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,w_(n),Ot(n),n.component??n._loadedComponent??null,n,b_(n)),{segmentGroup:v,slicedSegments:j}=Lg(r,l,d,u);if(j.length===0&&v.hasChildren())return this.processChildren(c,u,v).pipe(T(_=>_===null?null:new Be(h,_)));if(u.length===0&&j.length===0)return I(new Be(h,[]));let S=Ot(n)===o;return this.processSegment(c,u,v,j,S?R:o,!0).pipe(T(_=>new Be(h,_ instanceof Be?[_]:[])))}))):_r(r)))}getChildConfig(e,r,n){return r.children?I({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?I({routes:r._loadedRoutes,injector:r._loadedInjector}):o_(e,r,n,this.urlSerializer).pipe(fe(i=>i?this.configLoader.loadChildren(e,r).pipe(oe(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):u_(r))):I({routes:[],injector:e})}};function D_(t){t.sort((e,r)=>e.value.outlet===R?-1:r.value.outlet===R?1:e.value.outlet.localeCompare(r.value.outlet))}function C_(t){let e=t.value.routeConfig;return e&&e.path===""}function um(t){let e=[],r=new Set;for(let n of t){if(!C_(n)){e.push(n);continue}let i=e.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),r.add(i)):e.push(n)}for(let n of r){let i=um(n.children);e.push(new Be(n.value,i))}return e.filter(n=>!r.has(n))}function w_(t){return t.data||{}}function b_(t){return t.resolve||{}}function E_(t,e,r,n,i,o){return fe(s=>v_(t,e,r,n,s.extractedUrl,i,o).pipe(T(({state:a,tree:u})=>W(m({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function I_(t,e){return fe(r=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=r;if(!i.length)return I(r);let o=new Set(i.map(u=>u.route)),s=new Set;for(let u of o)if(!s.has(u))for(let c of cm(u))s.add(c);let a=0;return J(s).pipe(Pt(u=>o.has(u)?__(u,n,t,e):(u.data=ed(u,u.parent,t).resolve,I(void 0))),oe(()=>a++),Jn(1),fe(u=>a===s.size?I(r):Ue))})}function cm(t){let e=t.children.map(r=>cm(r)).flat();return[t,...e]}function __(t,e,r,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!tm(i)&&(o[xi]=i.title),M_(o,t,e,n).pipe(T(s=>(t._resolvedData=s,t.data=ed(t,t.parent,r).resolve,null)))}function M_(t,e,r,n){let i=xl(t);if(i.length===0)return I({});let o={};return J(i).pipe(fe(s=>S_(t[s],e,r,n).pipe(pt(),oe(a=>{o[s]=a}))),Jn(1),Ua(o),He(s=>sm(s)?Ue:Qn(s)))}function S_(t,e,r,n){let i=Oi(e)??n,o=Rr(t,i),s=o.resolve?o.resolve(e,r):It(i,()=>o(e,r));return mn(s)}function Sl(t){return ge(e=>{let r=t(e);return r?J(r).pipe(T(()=>e)):I(e)})}var lm=(()=>{let e=class e{buildTitle(n){let i,o=n.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===R);return i}getResolvedTitleForRoute(n){return n.data[xi]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>(()=>p(T_))(),providedIn:"root"});let t=e;return t})(),T_=(()=>{let e=class e extends lm{constructor(n){super(),this.title=n}updateTitle(n){let i=this.buildTitle(n);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(C(El))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Fi=new E("",{providedIn:"root",factory:()=>({})}),sa=new E("ROUTES"),od=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=p(bs)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return I(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=mn(n.loadComponent()).pipe(T(dm),oe(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),Xt(()=>{this.componentLoaders.delete(n)})),o=new Zn(i,()=>new ve).pipe(qn());return this.componentLoaders.set(n,o),o}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return I({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=x_(i,this.compiler,n,this.onLoadEndListener).pipe(Xt(()=>{this.childrenLoaders.delete(i)})),a=new Zn(s,()=>new ve).pipe(qn());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function x_(t,e,r,n){return mn(t.loadChildren()).pipe(T(dm),fe(i=>i instanceof Xr||Array.isArray(i)?I(i):J(e.compileModuleAsync(i))),T(i=>{n&&n(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(r).injector,s=o.get(sa,[],{optional:!0,self:!0}).flat()),{routes:s.map(rd),injector:o}}))}function A_(t){return t&&typeof t=="object"&&"default"in t}function dm(t){return A_(t)?t.default:t}var sd=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>(()=>p(N_))(),providedIn:"root"});let t=e;return t})(),N_=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),fm=new E(""),hm=new E("");function O_(t,e,r){let n=t.get(hm),i=t.get(we);return t.get(q).runOutsideAngular(()=>{if(!i.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,Promise.resolve();let o,s=new Promise(c=>{o=c}),a=i.startViewTransition(()=>(o(),R_(t))),{onViewTransitionCreated:u}=n;return u&&It(t,()=>u({transition:a,from:e,to:r})),s})}function R_(t){return new Promise(e=>{Fc(e,{injector:t})})}var ad=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ve,this.transitionAbortSubject=new ve,this.configLoader=p(od),this.environmentInjector=p(Te),this.urlSerializer=p(Ai),this.rootContexts=p(Ni),this.location=p(br),this.inputBindingEnabled=p(ua,{optional:!0})!==null,this.titleStrategy=p(lm),this.options=p(Fi,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=p(sd),this.createViewTransition=p(fm,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>I(void 0),this.rootComponentType=null;let n=o=>this.events.next(new Ll(o)),i=o=>this.events.next(new Vl(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let i=++this.navigationId;this.transitions?.next(W(m(m({},this.transitions.value),n),{id:i}))}setupNavigations(n,i,o){return this.transitions=new pe({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Di,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(De(s=>s.id!==0),T(s=>W(m({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),ge(s=>{this.currentTransition=s;let a=!1,u=!1;return I(s).pipe(oe(c=>{this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?W(m({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),ge(c=>{let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload"){let f="";return this.events.next(new gn(c.id,this.urlSerializer.serialize(c.rawUrl),f,0)),c.resolve(null),Ue}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return I(c).pipe(ge(f=>{let h=this.transitions?.getValue();return this.events.next(new Nr(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions?.getValue()?Ue:Promise.resolve(f)}),E_(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),oe(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=W(m({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let h=new Xs(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(h)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:f,extractedUrl:h,source:v,restoredState:j,extras:S}=c,_=new Nr(f,this.urlSerializer.serialize(h),v,j);this.events.next(_);let le=Xg(this.rootComponentType).snapshot;return this.currentTransition=s=W(m({},c),{targetSnapshot:le,urlAfterRedirects:h,extras:W(m({},S),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,I(s)}else{let f="";return this.events.next(new gn(c.id,this.urlSerializer.serialize(c.extractedUrl),f,1)),c.resolve(null),Ue}}),oe(c=>{let l=new Rl(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),T(c=>(this.currentTransition=s=W(m({},c),{guards:$I(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),s)),KI(this.environmentInjector,c=>this.events.next(c)),oe(c=>{if(s.guardsResult=c.guardsResult,Ar(c.guardsResult))throw rm(this.urlSerializer,c.guardsResult);let l=new Fl(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),De(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",3),!1)),Sl(c=>{if(c.guards.canActivateChecks.length)return I(c).pipe(oe(l=>{let d=new Pl(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),ge(l=>{let d=!1;return I(l).pipe(I_(this.paramsInheritanceStrategy,this.environmentInjector),oe({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",2)}}))}),oe(l=>{let d=new kl(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),Sl(c=>{let l=d=>{let f=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(oe(h=>{d.component=h}),T(()=>{})));for(let h of d.children)f.push(...l(h));return f};return $r(l(c.targetSnapshot.root)).pipe(Jt(null),kt(1))}),Sl(()=>this.afterPreactivation()),ge(()=>{let{currentSnapshot:c,targetSnapshot:l}=s,d=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return d?J(d).pipe(T(()=>s)):I(s)}),T(c=>{let l=RI(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=s=W(m({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),oe(()=>{this.events.next(new Ii)}),BI(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),kt(1),oe({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ft(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),Xn(this.transitionAbortSubject.pipe(oe(c=>{throw c}))),Xt(()=>{if(!a&&!u){let c="";this.cancelNavigationTransition(s,c,1)}this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),He(c=>{if(u=!0,om(c))this.events.next(new pn(s.id,this.urlSerializer.serialize(s.extractedUrl),c.message,c.cancellationCode)),kI(c)?this.events.next(new _i(c.url)):s.resolve(!1);else{this.events.next(new Ei(s.id,this.urlSerializer.serialize(s.extractedUrl),c,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(c))}catch(l){s.reject(l)}}return Ue}))}))}cancelNavigationTransition(n,i,o){let s=new pn(n.id,this.urlSerializer.serialize(n.extractedUrl),i,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function F_(t){return t!==Di}var P_=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>(()=>p(k_))(),providedIn:"root"});let t=e;return t})(),Xl=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},k_=(()=>{let e=class e extends Xl{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=mr(e)))(o||e)}})(),e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),pm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>(()=>p(L_))(),providedIn:"root"});let t=e;return t})(),L_=(()=>{let e=class e extends pm{constructor(){super(...arguments),this.location=p(br),this.urlSerializer=p(Ai),this.options=p(Fi,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=p(sd),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new hn,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Xg(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(i=>{i.type==="popstate"&&n(i.url,i.state)})}handleRouterEvent(n,i){if(n instanceof Nr)this.stateMemento=this.createStateMemento();else if(n instanceof gn)this.rawUrlTree=i.initialUrl;else if(n instanceof Xs){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else n instanceof Ii?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):n instanceof pn&&(n.code===3||n.code===2)?this.restoreHistory(i):n instanceof Ei?this.restoreHistory(i,!0):n instanceof ft&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,i){let o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=m(m({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=m(m({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,i){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=mr(e)))(o||e)}})(),e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),vi=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(vi||{});function gm(t,e){t.events.pipe(De(r=>r instanceof ft||r instanceof pn||r instanceof Ei||r instanceof gn),T(r=>r instanceof ft||r instanceof gn?vi.COMPLETE:(r instanceof pn?r.code===0||r.code===1:!1)?vi.REDIRECTING:vi.FAILED),De(r=>r!==vi.REDIRECTING),kt(1)).subscribe(()=>{e()})}function V_(t){throw t}var j_={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},B_={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ne=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=p(ws),this.stateManager=p(pm),this.options=p(Fi,{optional:!0})||{},this.pendingTasks=p(kn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=p(ad),this.urlSerializer=p(Ai),this.location=p(br),this.urlHandlingStrategy=p(sd),this._events=new ve,this.errorHandler=this.options.errorHandler||V_,this.navigated=!1,this.routeReuseStrategy=p(P_),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=p(sa,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!p(ua,{optional:!0}),this.eventsSubscription=new ue,this.isNgZoneEnabled=p(q)instanceof q&&q.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof pn&&i.code!==0&&i.code!==1)this.navigated=!0;else if(i instanceof ft)this.navigated=!0;else if(i instanceof _i){let a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),u={skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||F_(o.source)};this.scheduleNavigation(a,Di,null,u,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}U_(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Di,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",i)},0)}))}navigateToSyncWithBrowser(n,i,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let c=m({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(s.state=c)}let u=this.parseUrl(n);this.scheduleNavigation(u,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(rd),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:u,preserveFragment:c}=i,l=c?this.currentUrlTree.fragment:a,d=null;switch(u){case"merge":d=m(m({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let h=o?o.snapshot:this.routerState.snapshot.root;f=Yg(h)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),f=this.currentUrlTree.root}return Qg(f,n,d,l??null)}navigateByUrl(n,i={skipLocationChange:!1}){let o=Ar(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,Di,null,i)}navigate(n,i={skipLocationChange:!1}){return $_(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,i){let o;if(i===!0?o=m({},j_):i===!1?o=m({},B_):o=i,Ar(n))return Og(this.currentUrlTree,n,o);let s=this.parseUrl(n);return Og(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.entries(n).reduce((i,[o,s])=>(s!=null&&(i[o]=s),i),{})}scheduleNavigation(n,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let u,c,l;a?(u=a.resolve,c=a.reject,l=a.promise):l=new Promise((f,h)=>{u=f,c=h});let d=this.pendingTasks.add();return gm(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:u,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function $_(t){for(let e=0;e{let e=class e{constructor(n,i,o,s,a,u){this.router=n,this.route=i,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=u,this.href=null,this.commands=null,this.onChanges=new ve,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof ft&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n!=null?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,i,o,s,a){if(this.urlTree===null||this.isAnchorElement&&(n!==0||i||o||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state};return this.router.navigateByUrl(this.urlTree,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=this.urlTree!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;let n=this.href===null?null:tp(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(n,i){let o=this.renderer,s=this.el.nativeElement;i!==null?o.setAttribute(s,n,i):o.removeAttribute(s,n)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(i){return new(i||e)(g(Ne),g(ht),fc("tabindex"),g(Mt),g(Pe),g(Zt))},e.\u0275dir=re({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){i&1&&ie("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&yr("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",Cr],skipLocationChange:["skipLocationChange","skipLocationChange",Cr],replaceUrl:["replaceUrl","replaceUrl",Cr],routerLink:"routerLink"},standalone:!0,features:[Lc,ut]});let t=e;return t})(),mm=(()=>{let e=class e{get isActive(){return this._isActive}constructor(n,i,o,s,a){this.router=n,this.element=i,this.renderer=o,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new X,this.routerEventsSubscription=n.events.subscribe(u=>{u instanceof ft&&this.update()})}ngAfterContentInit(){I(this.links.changes,I(null)).pipe(Kt()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=J(n).pipe(Kt()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(n){let i=Array.isArray(n)?n:n.split(" ");this.classes=i.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.classes.forEach(i=>{n?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),n&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(n))})}isLinkActive(n){let i=H_(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>o.urlTree?n.isActive(o.urlTree,i):!1}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}};e.\u0275fac=function(i){return new(i||e)(g(Ne),g(Pe),g(Mt),g(Pn),g(Xe,8))},e.\u0275dir=re({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(i,o,s){if(i&1&&Vp(s,Xe,5),i&2){let a;Lp(a=jp())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[ut]});let t=e;return t})();function H_(t){return!!t.paths}var aa=class{};var z_=(()=>{let e=class e{constructor(n,i,o,s,a){this.router=n,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(De(n=>n instanceof ft),Pt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,i){let o=[];for(let s of i){s.providers&&!s._injector&&(s._injector=ys(s.providers,n,`Route: ${s.path}`));let a=s._injector??n,u=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(u,s.children??s._loadedRoutes))}return J(o).pipe(Kt())}preloadConfig(n,i){return this.preloadingStrategy.preload(i,()=>{let o;i.loadChildren&&i.canLoad===void 0?o=this.loader.loadChildren(n,i):o=I(null);let s=o.pipe(fe(a=>a===null?I(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(i);return J([s,a]).pipe(Kt())}else return s})}};e.\u0275fac=function(i){return new(i||e)(C(Ne),C(bs),C(Te),C(aa),C(od))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),vm=new E(""),G_=(()=>{let e=class e{constructor(n,i,o,s,a={}){this.urlSerializer=n,this.transitions=i,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.anchorScrolling||"disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Nr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof ft?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof gn&&n.code===0&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof ea&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new ea(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(i){dp()},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function W_(t){return t.routerState.root}function Pi(t,e){return{\u0275kind:t,\u0275providers:e}}function q_(){let t=p(We);return e=>{let r=t.get(Ln);if(e!==r.components[0])return;let n=t.get(Ne),i=t.get(ym);t.get(ud)===1&&n.initialNavigation(),t.get(Dm,null,V.Optional)?.setUpPreloading(),t.get(vm,null,V.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var ym=new E("",{factory:()=>new ve}),ud=new E("",{providedIn:"root",factory:()=>1});function Z_(){return Pi(2,[{provide:ud,useValue:0},{provide:_s,multi:!0,deps:[We],useFactory:e=>{let r=e.get(ng,Promise.resolve());return()=>r.then(()=>new Promise(n=>{let i=e.get(Ne),o=e.get(ym);gm(i,()=>{n(!0)}),e.get(ad).afterPreactivation=()=>(n(!0),o.closed?I(void 0):o),i.initialNavigation()}))}}])}function Y_(){return Pi(3,[{provide:_s,multi:!0,useFactory:()=>{let e=p(Ne);return()=>{e.setUpLocationChangeListener()}}},{provide:ud,useValue:2}])}var Dm=new E("");function Q_(t){return Pi(0,[{provide:Dm,useExisting:z_},{provide:aa,useExisting:t}])}function K_(){return Pi(8,[kg,{provide:ua,useExisting:kg}])}function J_(t){let e=[{provide:fm,useValue:O_},{provide:hm,useValue:m({skipNextTransition:!!t?.skipInitialTransition},t)}];return Pi(9,e)}var Vg=new E("ROUTER_FORROOT_GUARD"),X_=[br,{provide:Ai,useClass:wi},Ne,Ni,{provide:ht,useFactory:W_,deps:[Ne]},od,[]],Yt=(()=>{let e=class e{constructor(n){}static forRoot(n,i){return{ngModule:e,providers:[X_,[],{provide:sa,multi:!0,useValue:n},{provide:Vg,useFactory:rM,deps:[[Ne,new as,new pc]]},{provide:Fi,useValue:i||{}},i?.useHash?tM():nM(),eM(),i?.preloadingStrategy?Q_(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?iM(i):[],i?.bindToComponentInputs?K_().\u0275providers:[],i?.enableViewTransitions?J_().\u0275providers:[],oM()]}}static forChild(n){return{ngModule:e,providers:[{provide:sa,multi:!0,useValue:n}]}}};e.\u0275fac=function(i){return new(i||e)(C(Vg,8))},e.\u0275mod=te({type:e}),e.\u0275inj=ee({});let t=e;return t})();function eM(){return{provide:vm,useFactory:()=>{let t=p(lg),e=p(q),r=p(Fi),n=p(ad),i=p(Ai);return r.scrollOffset&&t.setOffset(r.scrollOffset),new G_(i,n,t,e,r)}}}function tM(){return{provide:Zt,useClass:ig}}function nM(){return{provide:Zt,useClass:ol}}function rM(t){return"guarded"}function iM(t){return[t.initialNavigation==="disabled"?Y_().\u0275providers:[],t.initialNavigation==="enabledBlocking"?Z_().\u0275providers:[]]}var jg=new E("");function oM(){return[{provide:jg,useFactory:q_},{provide:Ms,multi:!0,useExisting:jg}]}var et=(()=>{let e=class e{constructor(n){this.http=n,this.apiUrl="https://api5.angular-buch.com"}getAll(){return this.http.get(`${this.apiUrl}/books`).pipe(He(n=>(console.error(n),I([]))))}getSingle(n){return this.http.get(`${this.apiUrl}/books/${n}`)}remove(n){return this.http.delete(`${this.apiUrl}/books/${n}`)}getAllSearch(n){return this.http.get(`${this.apiUrl}/books/search/${n}`).pipe(He(i=>(console.error(i),I([]))))}create(n){return this.http.post(`${this.apiUrl}/books`,n)}update(n){return this.http.put(`${this.apiUrl}/books/${n.isbn}`,n)}check(n){return this.http.get(`${this.apiUrl}/books/${n}/check`)}};e.\u0275fac=function(i){return new(i||e)(C(fl))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var sM=t=>["/books",t];function aM(t,e){if(t&1&&(D(0,"li")(1,"a",6),M(2),D(3,"p",7),M(4),y()()()),t&2){let r=e.$implicit;A(),O("routerLink",Cs(3,sM,r.isbn)),A(),Ve(" ",r.title," "),A(2),Tt(r.subtitle)}}function uM(t,e){t&1&&(D(0,"li"),M(1,"No results"),y())}function cM(t,e){if(t&1&&(D(0,"ul",3),Y(1,aM,5,5,"li",4)(2,uM,2,0,"li",5),y()),t&2){let r=e.ngIf;A(),O("ngForOf",r),A(),O("ngIf",!r.length)}}var Cm=(()=>{let e=class e{constructor(n){this.service=n,this.input$=new ve,this.isLoading=!1,this.results$=this.input$.pipe(De(i=>i.length>=3),$a(500),Ha(),oe(()=>this.isLoading=!0),ge(i=>this.service.getAllSearch(i)),oe(()=>this.isLoading=!1))}};e.\u0275fac=function(i){return new(i||e)(g(et))},e.\u0275cmp=se({type:e,selectors:[["bm-search"]],decls:4,vars:5,consts:[["type","search","autocomplete","off","aria-label","Search",3,"input"],["searchInput",""],["class","search-results",4,"ngIf"],[1,"search-results"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"routerLink"],["role","doc-subtitle"]],template:function(i,o){if(i&1){let s=Ht();D(0,"input",0,1),ie("input",function(){$t(s);let u=xp(1);return Ut(o.input$.next(u.value))}),y(),Y(2,cM,3,2,"ul",2),Ze(3,"async")}i&2&&(Dr("loading",o.isLoading),A(2),O("ngIf",lt(3,3,o.results$)))},dependencies:[Qe,Ke,Xe,dn]});let t=e;return t})();var wm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=se({type:e,selectors:[["bm-home"]],decls:7,vars:0,consts:[["routerLink","/books",1,"button","red"]],template:function(i,o){i&1&&(D(0,"h1"),M(1,"Home"),y(),D(2,"a",0),M(3,` Show book list +`),y(),D(4,"h2"),M(5,"Search"),y(),ae(6,"bm-search"))},dependencies:[Xe,Cm]});let t=e;return t})();var dM=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:wm}],bm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[Yt.forRoot(dM),Yt]});let t=e;return t})();var Pr=(()=>{let e=class e{constructor(){this._isAuthenticated$=new pe(!0),this.isAuthenticated$=this._isAuthenticated$.asObservable()}get isAuthenticated(){return this._isAuthenticated$.value}login(){this._isAuthenticated$.next(!0)}logout(){this._isAuthenticated$.next(!1)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function fM(t,e){if(t&1){let r=Ht();D(0,"button",6),ie("click",function(){$t(r);let i=Ee();return Ut(i.auth.login())}),M(1,"Login"),y()}}function hM(t,e){if(t&1){let r=Ht();D(0,"button",7),ie("click",function(){$t(r);let i=Ee();return Ut(i.auth.logout())}),M(1,"Logout"),y()}}var Em=(()=>{let e=class e{constructor(n){this.auth=n}};e.\u0275fac=function(i){return new(i||e)(g(Pr))},e.\u0275cmp=se({type:e,selectors:[["bm-root"]],decls:12,vars:2,consts:[["routerLink","/home","routerLinkActive","active","ariaCurrentWhenActive","page"],["routerLink","/books","routerLinkActive","active","ariaCurrentWhenActive","page"],["routerLink","/admin","routerLinkActive","active","ariaCurrentWhenActive","page"],[1,"actions"],["class","green",3,"click",4,"ngIf"],["class","red",3,"click",4,"ngIf"],[1,"green",3,"click"],[1,"red",3,"click"]],template:function(i,o){i&1&&(D(0,"nav")(1,"a",0),M(2,"Home"),y(),D(3,"a",1),M(4,"Books"),y(),D(5,"a",2),M(6,"Administration"),y(),D(7,"div",3),Y(8,fM,2,0,"button",4)(9,hM,2,0,"button",5),y()(),D(10,"main"),ae(11,"router-outlet"),y()),i&2&&(A(8),O("ngIf",!o.auth.isAuthenticated),A(),O("ngIf",o.auth.isAuthenticated))},dependencies:[Ke,nd,Xe,mm]});let t=e;return t})();var Im=(()=>{let e=class e{constructor(){this.confirm=new X}onClick(){window.confirm(this.confirmText)&&this.confirm.emit()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=re({type:e,selectors:[["","bmConfirm",""]],hostBindings:function(i,o){i&1&&ie("click",function(){return o.onClick()})},inputs:{confirmText:["bmConfirm","confirmText"]},outputs:{confirm:"confirm"}});let t=e;return t})();var _m=(()=>{let e=class e{constructor(n,i,o){this.template=n,this.viewContainer=i,this.authService=o,this.destroy$=new ve,this.authService.isAuthenticated$.pipe(Xn(this.destroy$)).subscribe(s=>{s?this.viewContainer.createEmbeddedView(this.template):this.viewContainer.clear()})}ngOnDestroy(){this.destroy$.next()}};e.\u0275fac=function(i){return new(i||e)(g(Vt),g(St),g(Pr))},e.\u0275dir=re({type:e,selectors:[["","bmLoggedinOnly",""]]});let t=e;return t})();var la=(()=>{let e=class e{transform(n){return n?`${n.substring(0,3)}-${n.substring(3)}`:""}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ti({name:"isbn",type:e,pure:!0});let t=e;return t})();function mM(t,e){if(t&1&&(D(0,"p",9),M(1),y()),t&2){let r=Ee().ngIf;A(),Tt(r.subtitle)}}function vM(t,e){if(t&1&&(D(0,"li"),M(1),y()),t&2){let r=e.$implicit;A(),Tt(r)}}function yM(t,e){if(t&1&&(D(0,"div")(1,"h2"),M(2,"Published"),y(),M(3),Ze(4,"date"),y()),t&2){let r=Ee().ngIf;A(3),Ve(" ",Fp(4,1,r.published,"longDate")," ")}}function DM(t,e){if(t&1&&ae(0,"img",10),t&2){let r=Ee().ngIf;O("src",r.thumbnailUrl,oi)}}var CM=t=>["/admin/edit",t];function wM(t,e){if(t&1){let r=Ht();jc(0),D(1,"button",11),ie("confirm",function(){$t(r);let i=Ee().ngIf,o=Ee();return Ut(o.removeBook(i.isbn))}),M(2," Remove book "),y(),D(3,"a",12),M(4," Edit book "),y(),Bc()}if(t&2){let r=Ee().ngIf;A(3),O("routerLink",Cs(1,CM,r.isbn))}}function bM(t,e){if(t&1&&(D(0,"div",1)(1,"h1"),M(2),y(),Y(3,mM,2,1,"p",2),D(4,"div",3)(5,"div")(6,"h2"),M(7,"Authors"),y(),D(8,"ul"),Y(9,vM,2,1,"li",4),y()(),D(10,"div")(11,"h2"),M(12,"ISBN"),y(),M(13),Ze(14,"isbn"),y(),Y(15,yM,5,4,"div",5),y(),D(16,"h2"),M(17,"Description"),y(),D(18,"p"),M(19),y(),Y(20,DM,1,1,"img",6),D(21,"a",7),M(22,"Back to list"),y(),Y(23,wM,5,3,"ng-container",8),y()),t&2){let r=e.ngIf;A(2),Tt(r.title),A(),O("ngIf",r.subtitle),A(6),O("ngForOf",r.authors),A(4),Ve(" ",lt(14,7,r.isbn)," "),A(2),O("ngIf",r.published),A(4),Tt(r.description),A(),O("ngIf",r.thumbnailUrl)}}var Sm=(()=>{let e=class e{constructor(n,i,o){this.service=n,this.route=i,this.router=o;let s=this.route.snapshot.paramMap.get("isbn");this.book$=this.service.getSingle(s)}removeBook(n){this.service.remove(n).subscribe(()=>{this.router.navigateByUrl("/books")})}};e.\u0275fac=function(i){return new(i||e)(g(et),g(ht),g(Ne))},e.\u0275cmp=se({type:e,selectors:[["bm-book-details"]],decls:2,vars:3,consts:[["class","details",4,"ngIf"],[1,"details"],["role","doc-subtitle",4,"ngIf"],[1,"header"],[4,"ngFor","ngForOf"],[4,"ngIf"],["alt","Cover",3,"src",4,"ngIf"],["routerLink","..",1,"button","arrow-left"],[4,"bmLoggedinOnly"],["role","doc-subtitle"],["alt","Cover",3,"src"],["bmConfirm","Remove book?",1,"red",3,"confirm"],[1,"button",3,"routerLink"]],template:function(i,o){i&1&&(Y(0,bM,24,9,"div",0),Ze(1,"async")),i&2&&O("ngIf",lt(1,1,o.book$))},dependencies:[Qe,Ke,Xe,Im,_m,dn,cg,la]});let t=e;return t})();function EM(t,e){if(t&1&&ae(0,"img",6),t&2){let r=Ee(2);O("src",r.book.thumbnailUrl,oi)}}function IM(t,e){if(t&1&&(D(0,"p",7),M(1),y()),t&2){let r=Ee(2);A(),Ve(" ",r.book.subtitle," ")}}function _M(t,e){if(t&1&&(D(0,"li"),M(1),y()),t&2){let r=e.$implicit;A(),Ve(" ",r," ")}}function MM(t,e){if(t&1&&(D(0,"a",1),Y(1,EM,1,1,"img",2),D(2,"h2"),M(3),y(),Y(4,IM,2,1,"p",3),D(5,"ul",4),Y(6,_M,2,1,"li",5),y(),D(7,"div"),M(8),Ze(9,"isbn"),y()()),t&2){let r=Ee();O("routerLink",r.book.isbn),A(),O("ngIf",r.book.thumbnailUrl),A(2),Tt(r.book.title),A(),O("ngIf",r.book.subtitle),A(2),O("ngForOf",r.book.authors),A(2),Ve("ISBN ",lt(9,6,r.book.isbn),"")}}var Tm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=se({type:e,selectors:[["bm-book-list-item"]],inputs:{book:"book"},decls:1,vars:1,consts:[["class","list-item",3,"routerLink",4,"ngIf"],[1,"list-item",3,"routerLink"],["alt","Cover",3,"src",4,"ngIf"],["role","doc-subtitle",4,"ngIf"],[1,"comma-list"],[4,"ngFor","ngForOf"],["alt","Cover",3,"src"],["role","doc-subtitle"]],template:function(i,o){i&1&&Y(0,MM,10,8,"a",0),i&2&&O("ngIf",o.book)},dependencies:[Qe,Ke,Xe,la]});let t=e;return t})();function TM(t,e){if(t&1&&(D(0,"li"),ae(1,"bm-book-list-item",4),y()),t&2){let r=e.$implicit;A(),O("book",r)}}function xM(t,e){t&1&&(D(0,"li"),M(1," No books available. "),y())}function AM(t,e){if(t&1&&(D(0,"ul",1),Y(1,TM,2,1,"li",2)(2,xM,2,0,"li",3),y()),t&2){let r=e.ngIf;A(),O("ngForOf",r),A(),O("ngIf",!r.length)}}var xm=(()=>{let e=class e{constructor(n){this.service=n,this.books$=this.service.getAll()}};e.\u0275fac=function(i){return new(i||e)(g(et))},e.\u0275cmp=se({type:e,selectors:[["bm-book-list"]],decls:4,vars:3,consts:[["class","book-list",4,"ngIf"],[1,"book-list"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"book"]],template:function(i,o){i&1&&(D(0,"h1"),M(1,"Books"),y(),Y(2,AM,3,2,"ul",0),Ze(3,"async")),i&2&&(A(2),O("ngIf",lt(3,1,o.books$)))},dependencies:[Qe,Ke,Tm,dn]});let t=e;return t})();var NM=[{path:"books",component:xm},{path:"books/:isbn",component:Sm}],Am=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[Yt.forChild(NM),Yt]});let t=e;return t})();var Nm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[Er,Am]});let t=e;return t})();var Om=(()=>{let e=class e{constructor(n){this.authService=n}intercept(n,i){let o="1234567890";if(this.authService.isAuthenticated){let s=n.clone({setHeaders:{Authorization:`Bearer ${o}`}});return i.handle(s)}else return i.handle(n)}};e.\u0275fac=function(i){return new(i||e)(C(Pr))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();var Bm=(()=>{let e=class e{constructor(n,i){this._renderer=n,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,i){this._renderer.setProperty(this._elementRef.nativeElement,n,i)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(i){return new(i||e)(g(Mt),g(Pe))},e.\u0275dir=re({type:e});let t=e;return t})(),OM=(()=>{let e=class e extends Bm{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=mr(e)))(o||e)}})(),e.\u0275dir=re({type:e,features:[ct]});let t=e;return t})(),ya=new E("NgValueAccessor");var RM={provide:ya,useExisting:Et(()=>Da),multi:!0};function FM(){let t=xt()?xt().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var PM=new E("CompositionEventMode"),Da=(()=>{let e=class e extends Bm{constructor(n,i,o){super(n,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!FM())}writeValue(n){let i=n??"";this.setProperty("value",i)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(i){return new(i||e)(g(Mt),g(Pe),g(PM,8))},e.\u0275dir=re({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){i&1&&ie("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[ln([RM]),ct]});let t=e;return t})();function vn(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function $m(t){return t!=null&&typeof t.length=="number"}var Ca=new E("NgValidators"),wa=new E("NgAsyncValidators"),kM=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Vi=class{static min(e){return LM(e)}static max(e){return VM(e)}static required(e){return jM(e)}static requiredTrue(e){return BM(e)}static email(e){return $M(e)}static minLength(e){return UM(e)}static maxLength(e){return HM(e)}static pattern(e){return zM(e)}static nullValidator(e){return Um(e)}static compose(e){return Zm(e)}static composeAsync(e){return Qm(e)}};function LM(t){return e=>{if(vn(e.value)||vn(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r{if(vn(e.value)||vn(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r>t?{max:{max:t,actual:e.value}}:null}}function jM(t){return vn(t.value)?{required:!0}:null}function BM(t){return t.value===!0?null:{required:!0}}function $M(t){return vn(t.value)||kM.test(t.value)?null:{email:!0}}function UM(t){return e=>vn(e.value)||!$m(e.value)?null:e.value.length$m(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function zM(t){if(!t)return Um;let e,r;return typeof t=="string"?(r="",t.charAt(0)!=="^"&&(r+="^"),r+=t,t.charAt(t.length-1)!=="$"&&(r+="$"),e=new RegExp(r)):(r=t.toString(),e=t),n=>{if(vn(n.value))return null;let i=n.value;return e.test(i)?null:{pattern:{requiredPattern:r,actualValue:i}}}}function Um(t){return null}function Hm(t){return t!=null}function zm(t){return cn(t)?J(t):t}function Gm(t){let e={};return t.forEach(r=>{e=r!=null?m(m({},e),r):e}),Object.keys(e).length===0?null:e}function Wm(t,e){return e.map(r=>r(t))}function GM(t){return!t.validate}function qm(t){return t.map(e=>GM(e)?e:r=>e.validate(r))}function Zm(t){if(!t)return null;let e=t.filter(Hm);return e.length==0?null:function(r){return Gm(Wm(r,e))}}function Ym(t){return t!=null?Zm(qm(t)):null}function Qm(t){if(!t)return null;let e=t.filter(Hm);return e.length==0?null:function(r){let n=Wm(r,e).map(zm);return Ba(n).pipe(T(Gm))}}function Km(t){return t!=null?Qm(qm(t)):null}function Rm(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function Jm(t){return t._rawValidators}function Xm(t){return t._rawAsyncValidators}function ld(t){return t?Array.isArray(t)?t:[t]:[]}function fa(t,e){return Array.isArray(t)?t.includes(e):t===e}function Fm(t,e){let r=ld(e);return ld(t).forEach(i=>{fa(r,i)||r.push(i)}),r}function Pm(t,e){return ld(e).filter(r=>!fa(t,r))}var ha=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Ym(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Km(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,r){return this.control?this.control.hasError(e,r):!1}getError(e,r){return this.control?this.control.getError(e,r):null}},tt=class extends ha{get formDirective(){return null}get path(){return null}},ji=class extends ha{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},pa=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},WM={"[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"},d1=W(m({},WM),{"[class.ng-submitted]":"isSubmitted"}),ev=(()=>{let e=class e extends pa{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(g(ji,2))},e.\u0275dir=re({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&Dr("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[ct]});let t=e;return t})(),tv=(()=>{let e=class e extends pa{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(g(tt,10))},e.\u0275dir=re({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){i&2&&Dr("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[ct]});let t=e;return t})();var ki="VALID",da="INVALID",kr="PENDING",Li="DISABLED";function dd(t){return(ba(t)?t.validators:t)||null}function qM(t){return Array.isArray(t)?Ym(t):t||null}function fd(t,e){return(ba(e)?e.asyncValidators:t)||null}function ZM(t){return Array.isArray(t)?Km(t):t||null}function ba(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function nv(t,e,r){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new b(1e3,"");if(!n[r])throw new b(1001,"")}function rv(t,e,r){t._forEachChild((n,i)=>{if(r[i]===void 0)throw new b(1002,"")})}var Bi=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===ki}get invalid(){return this.status===da}get pending(){return this.status==kr}get disabled(){return this.status===Li}get enabled(){return this.status!==Li}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Fm(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Fm(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Pm(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Pm(e,this._rawAsyncValidators))}hasValidator(e){return fa(this._rawValidators,e)}hasAsyncValidator(e){return fa(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(r=>{r.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=kr,e.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=Li,this.errors=null,this._forEachChild(n=>{n.disable(W(m({},e),{onlySelf:!0}))}),this._updateValue(),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(W(m({},e),{skipPristineCheck:r})),this._onDisabledChange.forEach(n=>n(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=ki,this._forEachChild(n=>{n.enable(W(m({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(W(m({},e),{skipPristineCheck:r})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ki||this.status===kr)&&this._runAsyncValidator(e.emitEvent)),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Li:ki}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=kr,this._hasOwnPendingAsyncValidator=!0;let r=zm(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(r.emitEvent!==!1)}get(e){let r=e;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((n,i)=>n&&n._find(i),this)}getError(e,r){let n=r?this.get(r):this;return n&&n.errors?n.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new X,this.statusChanges=new X}_calculateStatus(){return this._allControlsDisabled()?Li:this.errors?da:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(kr)?kr:this._anyControlsHaveStatus(da)?da:ki}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){ba(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let r=this._parent&&this._parent.dirty;return!e&&!!r&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=qM(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=ZM(this._rawAsyncValidators)}},ga=class extends Bi{constructor(e,r,n){super(dd(r),fd(n,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,r){return this.controls[e]?this.controls[e]:(this.controls[e]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(e,r,n={}){this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(e,r,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],r&&this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,r={}){rv(this,!0,e),Object.keys(e).forEach(n=>{nv(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(Object.keys(e).forEach(n=>{let i=this.controls[n];i&&i.patchValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e={},r={}){this._forEachChild((n,i)=>{n.reset(e?e[i]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r),this._updateTouched(r),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(e,r,n)=>(e[n]=r.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(r,n)=>n._syncPendingControls()?!0:r);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(r=>{let n=this.controls[r];n&&e(n,r)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[r,n]of Object.entries(this.controls))if(this.contains(r)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(r,n,i)=>((n.enabled||this.disabled)&&(r[i]=n.value),r))}_reduceChildren(e,r){let n=e;return this._forEachChild((i,o)=>{n=r(n,i,o)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var iv=new E("CallSetDisabledState",{providedIn:"root",factory:()=>hd}),hd="always";function pd(t,e){return[...e.path,t]}function km(t,e,r=hd){gd(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),QM(t,e),JM(t,e),KM(t,e),YM(t,e)}function Lm(t,e,r=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),va(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function ma(t,e){t.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function YM(t,e){if(e.valueAccessor.setDisabledState){let r=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(r),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(r)})}}function gd(t,e){let r=Jm(t);e.validator!==null?t.setValidators(Rm(r,e.validator)):typeof r=="function"&&t.setValidators([r]);let n=Xm(t);e.asyncValidator!==null?t.setAsyncValidators(Rm(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let i=()=>t.updateValueAndValidity();ma(e._rawValidators,i),ma(e._rawAsyncValidators,i)}function va(t,e){let r=!1;if(t!==null){if(e.validator!==null){let i=Jm(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.validator);o.length!==i.length&&(r=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let i=Xm(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.asyncValidator);o.length!==i.length&&(r=!0,t.setAsyncValidators(o))}}}let n=()=>{};return ma(e._rawValidators,n),ma(e._rawAsyncValidators,n),r}function QM(t,e){e.valueAccessor.registerOnChange(r=>{t._pendingValue=r,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&ov(t,e)})}function KM(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&ov(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function ov(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function JM(t,e){let r=(n,i)=>{e.valueAccessor.writeValue(n),i&&e.viewToModelUpdate(n)};t.registerOnChange(r),e._registerOnDestroy(()=>{t._unregisterOnChange(r)})}function XM(t,e){t==null,gd(t,e)}function eS(t,e){return va(t,e)}function tS(t,e){if(!t.hasOwnProperty("model"))return!1;let r=t.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function nS(t){return Object.getPrototypeOf(t.constructor)===OM}function rS(t,e){t._syncPendingControls(),e.forEach(r=>{let n=r.control;n.updateOn==="submit"&&n._pendingChange&&(r.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function iS(t,e){if(!e)return null;Array.isArray(e);let r,n,i;return e.forEach(o=>{o.constructor===Da?r=o:nS(o)?n=o:i=o}),i||n||r||null}function oS(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function Vm(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function jm(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Rt=class extends Bi{constructor(e=null,r,n){super(dd(r),fd(n,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ba(r)&&(r.nonNullable||r.initialValueIsDefault)&&(jm(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Vm(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Vm(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){jm(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var sS=t=>t instanceof Rt,aS=(()=>{let e=class e extends tt{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return pd(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=mr(e)))(o||e)}})(),e.\u0275dir=re({type:e,features:[ct]});let t=e;return t})();var sv=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=re({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})();var uS=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({});let t=e;return t})();var av=new E("NgModelWithFormControlWarning");var cS={provide:tt,useExisting:Et(()=>Lr)},Lr=(()=>{let e=class e extends tt{constructor(n,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new X,this._setValidators(n),this._setAsyncValidators(i)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(va(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let i=this.form.get(n.path);return km(i,n,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),i}getControl(n){return this.form.get(n.path)}removeControl(n){Lm(n.control||null,n,!1),oS(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,i){this.form.get(n.path).setValue(i)}onSubmit(n){return this.submitted=!0,rS(this.form,this.directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_updateDomValue(){this.directives.forEach(n=>{let i=n.control,o=this.form.get(n.path);i!==o&&(Lm(i||null,n),sS(o)&&(km(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let i=this.form.get(n.path);XM(i,n),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let i=this.form.get(n.path);i&&eS(i,n)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){gd(this.form,this),this._oldForm&&va(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(i){return new(i||e)(g(Ca,10),g(wa,10),g(iv,8))},e.\u0275dir=re({type:e,selectors:[["","formGroup",""]],hostBindings:function(i,o){i&1&&ie("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ln([cS]),ct,ut]});let t=e;return t})(),lS={provide:tt,useExisting:Et(()=>uv)},uv=(()=>{let e=class e extends aS{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),this._setAsyncValidators(o)}_checkParentType(){cv(this._parent)}};e.\u0275fac=function(i){return new(i||e)(g(tt,13),g(Ca,10),g(wa,10))},e.\u0275dir=re({type:e,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[ln([lS]),ct]});let t=e;return t})(),dS={provide:tt,useExisting:Et(()=>Ea)},Ea=(()=>{let e=class e extends tt{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),this._setAsyncValidators(o)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return pd(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){cv(this._parent)}};e.\u0275fac=function(i){return new(i||e)(g(tt,13),g(Ca,10),g(wa,10))},e.\u0275dir=re({type:e,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[ln([dS]),ct]});let t=e;return t})();function cv(t){return!(t instanceof uv)&&!(t instanceof Lr)&&!(t instanceof Ea)}var fS={provide:ji,useExisting:Et(()=>md)},md=(()=>{let e=class e extends ji{set isDisabled(n){}constructor(n,i,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new X,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=iS(this,s)}ngOnChanges(n){this._added||this._setUpControl(),tS(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return pd(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(i){return new(i||e)(g(tt,13),g(Ca,10),g(wa,10),g(ya,10),g(av,8))},e.\u0275dir=re({type:e,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[ln([fS]),ct,ut]});let t=e;return t})();var hS=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[uS]});let t=e;return t})(),$i=class extends Bi{constructor(e,r,n){super(dd(r),fd(n,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,r={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}insert(e,r,n={}){this.controls.splice(e,0,r),this._registerControl(r),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,r={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:r.emitEvent})}setControl(e,r,n={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),r&&(this.controls.splice(i,0,r),this._registerControl(r)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,r={}){rv(this,!1,e),e.forEach((n,i)=>{nv(this,!1,i),this.at(i).setValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(e.forEach((n,i)=>{this.at(i)&&this.at(i).patchValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e=[],r={}){this._forEachChild((n,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r),this._updateTouched(r),this.updateValueAndValidity(r)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(r=>r._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((r,n)=>n._syncPendingControls()?!0:r,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((r,n)=>{e(r,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(r=>r.enabled&&e(r))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};var lv=t=>t instanceof $i;var dv=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:av,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:iv,useValue:n.callSetDisabledState??hd}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[hS]});let t=e;return t})();var hv=(()=>{class t{constructor(r,n){this.renderer=r,this.elementRef=n,this.onInput=i=>{let o=i?new Date(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()):null,s=o?o.toISOString():null;this.onChange(s)},this.onChange=()=>{},this.onTouched=()=>{}}writeValue(r){let n=r?new Date(r):null,i=n?new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())):null;this.renderer.setProperty(this.elementRef.nativeElement,"valueAsDate",i)}registerOnChange(r){this.onChange=r}registerOnTouched(r){this.onTouched=r}setDisabledState(r){this.renderer.setProperty(this.elementRef.nativeElement,"disabled",r)}}return t.\u0275fac=function(r){return new(r||t)(g(Mt),g(Pe))},t.\u0275dir=re({type:t,selectors:[["","useValueAsLocalIso",""]],hostBindings:function(r,n){r&1&&ie("input",function(o){return n.onInput(o.target.valueAsDate)})("blur",function(){return n.onTouched()})},standalone:!0,features:[ln([{provide:ya,useExisting:Et(()=>t),multi:!0}])]}),t})();var pv=(()=>{let e=class e{constructor(n){this.service=n}isbnExists(){return n=>this.service.check(n.value).pipe(T(i=>i?{isbnexists:!0}:null))}};e.\u0275fac=function(i){return new(i||e)(C(et))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var gv=function(t){if(!t.value||typeof t.value!="string")return null;let r=t.value.replace(/-/g,"").length;return r===10||r===13?null:{isbnformat:!0}},mv=function(t){return!lv(t)||t.controls.some(e=>!!e.value)?null:{atleastonevalue:!0}};function gS(t,e){if(t&1&&(D(0,"p",1),M(1),y()),t&2){let r=e.$implicit;A(),Ve(" ",r,` +`)}}var vv=(()=>{let e=class e{constructor(n){this.form=n,this.messages={}}get errors(){if(!this.controlName)return[];let n=this.form.control.get(this.controlName);return!n||!n.errors||!n.touched?[]:Object.keys(n.errors).map(i=>this.messages[i])}};e.\u0275fac=function(i){return new(i||e)(g(Lr))},e.\u0275cmp=se({type:e,selectors:[["bm-form-errors"]],inputs:{controlName:"controlName",messages:"messages"},decls:1,vars:1,consts:[["class","error",4,"ngFor","ngForOf"],[1,"error"]],template:function(i,o){i&1&&Y(0,gS,2,1,"p",0),i&2&&O("ngForOf",o.errors)},dependencies:[Qe]});let t=e;return t})();function vS(t,e){if(t&1&&ae(0,"input",20),t&2){let r=e.index;O("formControlName",r),yr("aria-label","Author "+r)}}var yS=()=>({required:"Title is required"}),DS=()=>({required:"ISBN is required",isbnformat:"ISBN must have 10 or 13 chars",isbnexists:"ISBN already exists"}),CS=()=>({atleastonevalue:"At least one author required"}),Ia=(()=>{let e=class e{constructor(){this.submitBook=new X,this.form=new ga({title:new Rt("",{nonNullable:!0,validators:Vi.required}),subtitle:new Rt("",{nonNullable:!0}),isbn:new Rt("",{nonNullable:!0,validators:[Vi.required,gv],asyncValidators:p(pv).isbnExists()}),description:new Rt("",{nonNullable:!0}),published:new Rt("",{nonNullable:!0}),authors:this.buildAuthorsArray([""]),thumbnailUrl:new Rt("",{nonNullable:!0})})}ngOnChanges(){this.book?(this.setFormValues(this.book),this.setEditMode(!0)):this.setEditMode(!1)}setFormValues(n){this.form.patchValue(n),this.form.setControl("authors",this.buildAuthorsArray(n.authors))}setEditMode(n){let i=this.form.controls.isbn;n?i.disable():i.enable()}buildAuthorsArray(n){return new $i(n.map(i=>new Rt(i,{nonNullable:!0})),mv)}get authors(){return this.form.controls.authors}addAuthorControl(){this.authors.push(new Rt("",{nonNullable:!0}))}submitForm(){let n=this.form.getRawValue(),i=n.authors.filter(s=>!!s),o=W(m({},n),{authors:i});this.submitBook.emit(o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=se({type:e,selectors:[["bm-book-form"]],inputs:{book:"book"},outputs:{submitBook:"submitBook"},features:[ut],decls:30,vars:9,consts:[[3,"formGroup","ngSubmit"],["for","title"],["id","title","formControlName","title"],["controlName","title",3,"messages"],["for","subtitle"],["id","subtitle","formControlName","subtitle"],["for","isbn"],["id","isbn","formControlName","isbn"],["controlName","isbn",3,"messages"],["type","button",1,"add",3,"click"],["formArrayName","authors"],[3,"formControlName",4,"ngFor","ngForOf"],["controlName","authors",3,"messages"],["for","description"],["id","description","formControlName","description"],["for","published"],["type","date","useValueAsLocalIso","","id","published","formControlName","published"],["for","thumbnailUrl"],["type","url","id","thumbnailUrl","formControlName","thumbnailUrl"],["type","submit",3,"disabled"],[3,"formControlName"]],template:function(i,o){i&1&&(D(0,"form",0),ie("ngSubmit",function(){return o.submitForm()}),D(1,"label",1),M(2,"Title"),y(),ae(3,"input",2)(4,"bm-form-errors",3),D(5,"label",4),M(6,"Subtitle"),y(),ae(7,"input",5),D(8,"label",6),M(9,"ISBN"),y(),ae(10,"input",7)(11,"bm-form-errors",8),D(12,"label"),M(13,"Authors"),y(),D(14,"button",9),ie("click",function(){return o.addAuthorControl()}),M(15," + Author "),y(),D(16,"fieldset",10),Y(17,vS,1,2,"input",11),y(),ae(18,"bm-form-errors",12),D(19,"label",13),M(20,"Description"),y(),ae(21,"textarea",14),D(22,"label",15),M(23,"Published"),y(),ae(24,"input",16),D(25,"label",17),M(26,"Thumbnail URL"),y(),ae(27,"input",18),D(28,"button",19),M(29," Save "),y()()),i&2&&(O("formGroup",o.form),A(4),O("messages",Ds(6,yS)),A(7),O("messages",Ds(7,DS)),A(6),O("ngForOf",o.authors.controls),A(),O("messages",Ds(8,CS)),A(10),O("disabled",o.form.invalid))},dependencies:[Qe,sv,Da,ev,tv,Lr,md,Ea,hv,vv]});let t=e;return t})();var Dv=(()=>{let e=class e{constructor(n,i){this.service=n,this.router=i}create(n){this.service.create(n).subscribe(i=>{this.router.navigate(["/books",i.isbn])})}};e.\u0275fac=function(i){return new(i||e)(g(et),g(Ne))},e.\u0275cmp=se({type:e,selectors:[["bm-book-create"]],decls:3,vars:0,consts:[[3,"submitBook"]],template:function(i,o){i&1&&(D(0,"h1"),M(1,"Create Book"),y(),D(2,"bm-book-form",0),ie("submitBook",function(a){return o.create(a)}),y())},dependencies:[Ia]});let t=e;return t})();function wS(t,e){if(t&1){let r=Ht();D(0,"bm-book-form",1),ie("submitBook",function(i){$t(r);let o=Ee();return Ut(o.update(i))}),y()}if(t&2){let r=e.ngIf;O("book",r)}}var Cv=(()=>{let e=class e{constructor(n,i,o){this.service=n,this.route=i,this.router=o,this.book$=this.route.paramMap.pipe(T(s=>s.get("isbn")),ge(s=>this.service.getSingle(s)))}update(n){this.service.update(n).subscribe(i=>{this.router.navigate(["/books",i.isbn])})}};e.\u0275fac=function(i){return new(i||e)(g(et),g(ht),g(Ne))},e.\u0275cmp=se({type:e,selectors:[["bm-book-edit"]],decls:4,vars:3,consts:[[3,"book","submitBook",4,"ngIf"],[3,"book","submitBook"]],template:function(i,o){i&1&&(D(0,"h1"),M(1,"Edit Book"),y(),Y(2,wS,1,1,"bm-book-form",0),Ze(3,"async")),i&2&&(A(2),O("ngIf",lt(3,1,o.book$)))},dependencies:[Ke,Ia,dn]});let t=e;return t})();var bS=[{path:"admin",redirectTo:"admin/create"},{path:"admin/create",component:Dv},{path:"admin/edit/:isbn",component:Cv}],wv=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[Yt.forChild(bS),Yt]});let t=e;return t})();var bv=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=te({type:e}),e.\u0275inj=ee({imports:[Er,wv,dv]});let t=e;return t})();var Ev=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=te({type:e,bootstrap:[Em]}),e.\u0275inj=ee({providers:[{provide:hl,useClass:Om,multi:!0}],imports:[Ag,bm,wg,Nm,bv]});let t=e;return t})();xg().bootstrapModule(Ev).catch(t=>console.error(t)); diff --git a/main-RFGLFMEB.js b/main-RFGLFMEB.js deleted file mode 100644 index 0d9d383..0000000 --- a/main-RFGLFMEB.js +++ /dev/null @@ -1,10 +0,0 @@ -var Rv=Object.defineProperty,Fv=Object.defineProperties;var Pv=Object.getOwnPropertyDescriptors;var md=Object.getOwnPropertySymbols;var kv=Object.prototype.hasOwnProperty,Lv=Object.prototype.propertyIsEnumerable;var vd=(t,e,r)=>e in t?Rv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,m=(t,e)=>{for(var r in e||={})kv.call(e,r)&&vd(t,r,e[r]);if(md)for(var r of md(e))Lv.call(e,r)&&vd(t,r,e[r]);return t},W=(t,e)=>Fv(t,Pv(e));var yd=null;var Ta=1;function Me(t){let e=yd;return yd=t,e}var Dd={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 Vv(t){if(!(Na(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Ta)){if(!t.producerMustRecompute(t)&&!xa(t)){t.dirty=!1,t.lastCleanEpoch=Ta;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=Ta}}function Cd(t){return t&&(t.nextProducerIndex=0),Me(t)}function wd(t,e){if(Me(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Na(t))for(let r=t.nextProducerIndex;rt.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function xa(t){Hi(t);for(let e=0;e0}function Hi(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function jv(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Bv(){throw new Error}var $v=Bv;function Ed(t){$v=t}function N(t){return typeof t=="function"}function Un(t){let r=t(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var zi=Un(t=>function(r){t(this),this.message=r?`${r.length} errors occurred during unsubscription: -${r.map((n,i)=>`${i+1}) ${n.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=r});function Dn(t,e){if(t){let r=t.indexOf(e);0<=r&&t.splice(r,1)}}var fe=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let o of r)o.remove(this);else r.remove(this);let{initialTeardown:n}=this;if(N(n))try{n()}catch(o){e=o instanceof zi?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{Id(o)}catch(s){e=e??[],s instanceof zi?e=[...e,...s.errors]:e.push(s)}}if(e)throw new zi(e)}}add(e){var r;if(e&&e!==this)if(this.closed)Id(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}}_hasParent(e){let{_parentage:r}=this;return r===e||Array.isArray(r)&&r.includes(e)}_addParent(e){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e}_removeParent(e){let{_parentage:r}=this;r===e?this._parentage=null:Array.isArray(r)&&Dn(r,e)}remove(e){let{_finalizers:r}=this;r&&Dn(r,e),e instanceof t&&e._removeParent(this)}};fe.EMPTY=(()=>{let t=new fe;return t.closed=!0,t})();var Oa=fe.EMPTY;function Gi(t){return t instanceof fe||t&&"closed"in t&&N(t.remove)&&N(t.add)&&N(t.unsubscribe)}function Id(t){N(t)?t():t.unsubscribe()}var rt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Hn={setTimeout(t,e,...r){let{delegate:n}=Hn;return n?.setTimeout?n.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=Hn;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Wi(t){Hn.setTimeout(()=>{let{onUnhandledError:e}=rt;if(e)e(t);else throw t})}function Br(){}var _d=(()=>Ra("C",void 0,void 0))();function Md(t){return Ra("E",void 0,t)}function Sd(t){return Ra("N",t,void 0)}function Ra(t,e,r){return{kind:t,value:e,error:r}}var Cn=null;function zn(t){if(rt.useDeprecatedSynchronousErrorHandling){let e=!Cn;if(e&&(Cn={errorThrown:!1,error:null}),t(),e){let{errorThrown:r,error:n}=Cn;if(Cn=null,r)throw n}}else t()}function Td(t){rt.useDeprecatedSynchronousErrorHandling&&Cn&&(Cn.errorThrown=!0,Cn.error=t)}var wn=class extends fe{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Gi(e)&&e.add(this)):this.destination=zv}static create(e,r,n){return new Ft(e,r,n)}next(e){this.isStopped?Pa(Sd(e),this):this._next(e)}error(e){this.isStopped?Pa(Md(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Pa(_d,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Uv=Function.prototype.bind;function Fa(t,e){return Uv.call(t,e)}var ka=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(n){qi(n)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(n){qi(n)}else qi(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){qi(r)}}},Ft=class extends wn{constructor(e,r,n){super();let i;if(N(e)||!e)i={next:e??void 0,error:r??void 0,complete:n??void 0};else{let o;this&&rt.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&Fa(e.next,o),error:e.error&&Fa(e.error,o),complete:e.complete&&Fa(e.complete,o)}):i=e}this.destination=new ka(i)}};function qi(t){rt.useDeprecatedSynchronousErrorHandling?Td(t):Wi(t)}function Hv(t){throw t}function Pa(t,e){let{onStoppedNotification:r}=rt;r&&Hn.setTimeout(()=>r(t,e))}var zv={closed:!0,next:Br,error:Hv,complete:Br};var Gn=(()=>typeof Symbol=="function"&&Symbol.observable||"@@observable")();function Se(t){return t}function La(...t){return Va(t)}function Va(t){return t.length===0?Se:t.length===1?t[0]:function(r){return t.reduce((n,i)=>i(n),r)}}var B=(()=>{class t{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new t;return n.source=this,n.operator=r,n}subscribe(r,n,i){let o=Wv(r)?r:new Ft(r,n,i);return zn(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return n=xd(n),new n((i,o)=>{let s=new Ft({next:a=>{try{r(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[Gn](){return this}pipe(...r){return Va(r)(this)}toPromise(r){return r=xd(r),new r((n,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>n(o))})}}return t.create=e=>new t(e),t})();function xd(t){var e;return(e=t??rt.Promise)!==null&&e!==void 0?e:Promise}function Gv(t){return t&&N(t.next)&&N(t.error)&&N(t.complete)}function Wv(t){return t&&t instanceof wn||Gv(t)&&Gi(t)}function ja(t){return N(t?.lift)}function P(t){return e=>{if(ja(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function k(t,e,r,n,i){return new Ba(t,e,r,n,i)}var Ba=class extends wn{constructor(e,r,n,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(u){e.error(u)}}:super._next,this._error=i?function(a){try{i(a)}catch(u){e.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function Wn(){return P((t,e)=>{let r=null;t._refCount++;let n=k(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){r=null;return}let i=t._connection,o=r;r=null,i&&(!o||i===o)&&i.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(r=t.connect())})}var qn=class extends B{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,ja(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new fe;let r=this.getSubject();e.add(this.source.subscribe(k(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=fe.EMPTY)}return e}refCount(){return Wn()(this)}};var Ad=Un(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var he=(()=>{class t extends B{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new Zi(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new Ad}next(r){zn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){zn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){zn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:n,isStopped:i,observers:o}=this;return n||i?Oa:(this.currentObservers=null,o.push(r),new fe(()=>{this.currentObservers=null,Dn(o,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:i,isStopped:o}=this;n?r.error(i):o&&r.complete()}asObservable(){let r=new B;return r.source=this,r}}return t.create=(e,r)=>new Zi(e,r),t})(),Zi=class extends he{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)}error(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)}complete(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)}_subscribe(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:Oa}};var ve=class extends he{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let r=super._subscribe(e);return!r.closed&&e.next(this._value),r}getValue(){let{hasError:e,thrownError:r,_value:n}=this;if(e)throw r;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var $a={now(){return($a.delegate||Date).now()},delegate:void 0};var Yi=class extends fe{constructor(e,r){super()}schedule(e,r=0){return this}};var $r={setInterval(t,e,...r){let{delegate:n}=$r;return n?.setInterval?n.setInterval(t,e,...r):setInterval(t,e,...r)},clearInterval(t){let{delegate:e}=$r;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var Qi=class extends Yi{constructor(e,r){super(e,r),this.scheduler=e,this.work=r,this.pending=!1}schedule(e,r=0){var n;if(this.closed)return this;this.state=e;let i=this.id,o=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(o,i,r)),this.pending=!0,this.delay=r,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(o,this.id,r),this}requestAsyncId(e,r,n=0){return $r.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,r,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return r;r!=null&&$r.clearInterval(r)}execute(e,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,r);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,r){let n=!1,i;try{this.work(e)}catch(o){n=!0,i=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){let{id:e,scheduler:r}=this,{actions:n}=r;this.work=this.state=this.scheduler=null,this.pending=!1,Dn(n,this),e!=null&&(this.id=this.recycleAsyncId(r,e,null)),this.delay=null,super.unsubscribe()}}};var Zn=class t{constructor(e,r=t.now){this.schedulerActionCtor=e,this.now=r}schedule(e,r=0,n){return new this.schedulerActionCtor(this,e).schedule(n,r)}};Zn.now=$a.now;var Ki=class extends Zn{constructor(e,r=Zn.now){super(e,r),this.actions=[],this._active=!1}flush(e){let{actions:r}=this;if(this._active){r.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,n){for(;e=r.shift();)e.unsubscribe();throw n}}};var Nd=new Ki(Qi);var Re=new B(t=>t.complete());function Od(t){return t&&N(t.schedule)}function Ua(t){return t[t.length-1]}function Ji(t){return N(Ua(t))?t.pop():void 0}function gt(t){return Od(Ua(t))?t.pop():void 0}function Rd(t,e){return typeof Ua(t)=="number"?t.pop():e}function Pd(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(l){try{c(n.next(l))}catch(d){s(d)}}function u(l){try{c(n.throw(l))}catch(d){s(d)}}function c(l){l.done?o(l.value):i(l.value).then(a,u)}c((n=n.apply(t,e||[])).next())})}function Fd(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function bn(t){return this instanceof bn?(this.v=t,this):new bn(t)}function kd(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(f){n[f]&&(i[f]=function(h){return new Promise(function(b,R){o.push([f,h,b,R])>1||a(f,h)})})}function a(f,h){try{u(n[f](h))}catch(b){d(o[0][3],b)}}function u(f){f.value instanceof bn?Promise.resolve(f.value.v).then(c,l):d(o[0][2],f)}function c(f){a("next",f)}function l(f){a("throw",f)}function d(f,h){f(h),o.shift(),o.length&&a(o[0][0],o[0][1])}}function Ld(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof Fd=="function"?Fd(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(s){return new Promise(function(a,u){s=t[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(c){o({value:c,done:a})},s)}}var Xi=t=>t&&typeof t.length=="number"&&typeof t!="function";function eo(t){return N(t?.then)}function to(t){return N(t[Gn])}function no(t){return Symbol.asyncIterator&&N(t?.[Symbol.asyncIterator])}function ro(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function qv(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var io=qv();function oo(t){return N(t?.[io])}function so(t){return kd(this,arguments,function*(){let r=t.getReader();try{for(;;){let{value:n,done:i}=yield bn(r.read());if(i)return yield bn(void 0);yield yield bn(n)}}finally{r.releaseLock()}})}function ao(t){return N(t?.getReader)}function ne(t){if(t instanceof B)return t;if(t!=null){if(to(t))return Zv(t);if(Xi(t))return Yv(t);if(eo(t))return Qv(t);if(no(t))return Vd(t);if(oo(t))return Kv(t);if(ao(t))return Jv(t)}throw ro(t)}function Zv(t){return new B(e=>{let r=t[Gn]();if(N(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Yv(t){return new B(e=>{for(let r=0;r{t.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,Wi)})}function Kv(t){return new B(e=>{for(let r of t)if(e.next(r),e.closed)return;e.complete()})}function Vd(t){return new B(e=>{Xv(t,e).catch(r=>e.error(r))})}function Jv(t){return Vd(so(t))}function Xv(t,e){var r,n,i,o;return Pd(this,void 0,void 0,function*(){try{for(r=Ld(t);n=yield r.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){i={error:s}}finally{try{n&&!n.done&&(o=r.return)&&(yield o.call(r))}finally{if(i)throw i.error}}e.complete()})}function Fe(t,e,r,n=0,i=!1){let o=e.schedule(function(){r(),i?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!i)return o}function uo(t,e=0){return P((r,n)=>{r.subscribe(k(n,i=>Fe(n,t,()=>n.next(i),e),()=>Fe(n,t,()=>n.complete(),e),i=>Fe(n,t,()=>n.error(i),e)))})}function co(t,e=0){return P((r,n)=>{n.add(t.schedule(()=>r.subscribe(n),e))})}function jd(t,e){return ne(t).pipe(co(e),uo(e))}function Bd(t,e){return ne(t).pipe(co(e),uo(e))}function $d(t,e){return new B(r=>{let n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function Ud(t,e){return new B(r=>{let n;return Fe(r,e,()=>{n=t[io](),Fe(r,e,()=>{let i,o;try{({value:i,done:o}=n.next())}catch(s){r.error(s);return}o?r.complete():r.next(i)},0,!0)}),()=>N(n?.return)&&n.return()})}function lo(t,e){if(!t)throw new Error("Iterable cannot be null");return new B(r=>{Fe(r,e,()=>{let n=t[Symbol.asyncIterator]();Fe(r,e,()=>{n.next().then(i=>{i.done?r.complete():r.next(i.value)})},0,!0)})})}function Hd(t,e){return lo(so(t),e)}function zd(t,e){if(t!=null){if(to(t))return jd(t,e);if(Xi(t))return $d(t,e);if(eo(t))return Bd(t,e);if(no(t))return lo(t,e);if(oo(t))return Ud(t,e);if(ao(t))return Hd(t,e)}throw ro(t)}function q(t,e){return e?zd(t,e):ne(t)}function I(...t){let e=gt(t);return q(t,e)}function Yn(t,e){let r=N(t)?t:()=>t,n=i=>i.error(r());return new B(e?i=>e.schedule(n,0,i):n)}function Ha(t){return!!t&&(t instanceof B||N(t.lift)&&N(t.subscribe))}var Pt=Un(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function A(t,e){return P((r,n)=>{let i=0;r.subscribe(k(n,o=>{n.next(t.call(e,o,i++))}))})}var{isArray:ey}=Array;function ty(t,e){return ey(e)?t(...e):t(e)}function fo(t){return A(e=>ty(t,e))}var{isArray:ny}=Array,{getPrototypeOf:ry,prototype:iy,keys:oy}=Object;function ho(t){if(t.length===1){let e=t[0];if(ny(e))return{args:e,keys:null};if(sy(e)){let r=oy(e);return{args:r.map(n=>e[n]),keys:r}}}return{args:t,keys:null}}function sy(t){return t&&typeof t=="object"&&ry(t)===iy}function po(t,e){return t.reduce((r,n,i)=>(r[n]=e[i],r),{})}function Ur(...t){let e=gt(t),r=Ji(t),{args:n,keys:i}=ho(t);if(n.length===0)return q([],e);let o=new B(ay(n,e,i?s=>po(i,s):Se));return r?o.pipe(fo(r)):o}function ay(t,e,r=Se){return n=>{Gd(e,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let u=0;u{let c=q(t[u],e),l=!1;c.subscribe(k(n,d=>{o[u]=d,l||(l=!0,a--),a||n.next(r(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}function Gd(t,e,r){t?Fe(r,t,e):e()}function Wd(t,e,r,n,i,o,s,a){let u=[],c=0,l=0,d=!1,f=()=>{d&&!u.length&&!c&&e.complete()},h=R=>c{o&&e.next(R),c++;let S=!1;ne(r(R,l++)).subscribe(k(e,_=>{i?.(_),o?h(_):e.next(_)},()=>{S=!0},void 0,()=>{if(S)try{for(c--;u.length&&cb(_)):b(_)}f()}catch(_){e.error(_)}}))};return t.subscribe(k(e,h,()=>{d=!0,f()})),()=>{a?.()}}function pe(t,e,r=1/0){return N(e)?pe((n,i)=>A((o,s)=>e(n,o,i,s))(ne(t(n,i))),r):(typeof e=="number"&&(r=e),P((n,i)=>Wd(n,i,t,r)))}function mt(t=1/0){return pe(Se,t)}function qd(){return mt(1)}function Qn(...t){return qd()(q(t,gt(t)))}function go(t){return new B(e=>{ne(t()).subscribe(e)})}function za(...t){let e=Ji(t),{args:r,keys:n}=ho(t),i=new B(o=>{let{length:s}=r;if(!s){o.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=f},()=>u--,void 0,()=>{(!u||!d)&&(c||o.next(n?po(n,a):a),o.complete())}))}});return e?i.pipe(fo(e)):i}function Ga(...t){let e=gt(t),r=Rd(t,1/0),n=t;return n.length?n.length===1?ne(n[0]):mt(r)(q(n,e)):Re}function we(t,e){return P((r,n)=>{let i=0;r.subscribe(k(n,o=>t.call(e,o,i++)&&n.next(o)))})}function He(t){return P((e,r)=>{let n=null,i=!1,o;n=e.subscribe(k(r,void 0,void 0,s=>{o=ne(t(s,He(t)(e))),n?(n.unsubscribe(),n=null,o.subscribe(r)):i=!0})),i&&(n.unsubscribe(),n=null,o.subscribe(r))})}function Zd(t,e,r,n,i){return(o,s)=>{let a=r,u=e,c=0;o.subscribe(k(s,l=>{let d=c++;u=a?t(u,l,d):(a=!0,l),n&&s.next(u)},i&&(()=>{a&&s.next(u),s.complete()})))}}function kt(t,e){return N(e)?pe(t,e,1):pe(t,1)}function Wa(t,e=Nd){return P((r,n)=>{let i=null,o=null,s=null,a=()=>{if(i){i.unsubscribe(),i=null;let c=o;o=null,n.next(c)}};function u(){let c=s+t,l=e.now();if(l{o=c,s=e.now(),i||(i=e.schedule(u,t),n.add(i))},()=>{a(),n.complete()},void 0,()=>{o=i=null}))})}function Jt(t){return P((e,r)=>{let n=!1;e.subscribe(k(r,i=>{n=!0,r.next(i)},()=>{n||r.next(t),r.complete()}))})}function Lt(t){return t<=0?()=>Re:P((e,r)=>{let n=0;e.subscribe(k(r,i=>{++n<=t&&(r.next(i),t<=n&&r.complete())}))})}function qa(t){return A(()=>t)}function Kn(t,e=Se){return t=t??uy,P((r,n)=>{let i,o=!0;r.subscribe(k(n,s=>{let a=e(s);(o||!t(i,a))&&(o=!1,i=a,n.next(s))}))})}function uy(t,e){return t===e}function mo(t=cy){return P((e,r)=>{let n=!1;e.subscribe(k(r,i=>{n=!0,r.next(i)},()=>n?r.complete():r.error(t())))})}function cy(){return new Pt}function Xt(t){return P((e,r)=>{try{e.subscribe(r)}finally{r.add(t)}})}function vt(t,e){let r=arguments.length>=2;return n=>n.pipe(t?we((i,o)=>t(i,o,n)):Se,Lt(1),r?Jt(e):mo(()=>new Pt))}function Jn(t){return t<=0?()=>Re:P((e,r)=>{let n=[];e.subscribe(k(r,i=>{n.push(i),t{for(let i of n)r.next(i);r.complete()},void 0,()=>{n=null}))})}function Za(t,e){let r=arguments.length>=2;return n=>n.pipe(t?we((i,o)=>t(i,o,n)):Se,Jn(1),r?Jt(e):mo(()=>new Pt))}function Ya(t,e){return P(Zd(t,e,arguments.length>=2,!0))}function vo(t={}){let{connector:e=()=>new he,resetOnError:r=!0,resetOnComplete:n=!0,resetOnRefCountZero:i=!0}=t;return o=>{let s,a,u,c=0,l=!1,d=!1,f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=u=void 0,l=d=!1},b=()=>{let R=s;h(),R?.unsubscribe()};return P((R,S)=>{c++,!d&&!l&&f();let _=u=u??e();S.add(()=>{c--,c===0&&!d&&!l&&(a=Qa(b,i))}),_.subscribe(S),!s&&c>0&&(s=new Ft({next:ce=>_.next(ce),error:ce=>{d=!0,f(),a=Qa(h,r,ce),_.error(ce)},complete:()=>{l=!0,f(),a=Qa(h,n),_.complete()}}),ne(R).subscribe(s))})(o)}}function Qa(t,e,...r){if(e===!0){t();return}if(e===!1)return;let n=new Ft({next:()=>{n.unsubscribe(),t()}});return ne(e(...r)).subscribe(n)}function Ka(...t){let e=gt(t);return P((r,n)=>{(e?Qn(t,r,e):Qn(t,r)).subscribe(n)})}function le(t,e){return P((r,n)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&n.complete();r.subscribe(k(n,u=>{i?.unsubscribe();let c=0,l=o++;ne(t(u,l)).subscribe(i=k(n,d=>n.next(e?e(u,d,l,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function Xn(t){return P((e,r)=>{ne(t).subscribe(k(r,()=>r.complete(),Br)),!r.closed&&e.subscribe(r)})}function se(t,e,r){let n=N(t)||e||r?{next:t,error:e,complete:r}:t;return n?P((i,o)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;i.subscribe(k(o,u=>{var c;(c=n.next)===null||c===void 0||c.call(n,u),o.next(u)},()=>{var u;a=!1,(u=n.complete)===null||u===void 0||u.call(n),o.complete()},u=>{var c;a=!1,(c=n.error)===null||c===void 0||c.call(n,u),o.error(u)},()=>{var u,c;a&&((u=n.unsubscribe)===null||u===void 0||u.call(n)),(c=n.finalize)===null||c===void 0||c.call(n)}))}):Se}function Y(t){for(let e in t)if(t[e]===Y)return e;throw Error("Could not find renamed property on target object.")}function yo(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Ee(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(Ee).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(` -`);return r===-1?e:e.substring(0,r)}function Yd(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var ly=Y({__forward_ref__:Y});function _t(t){return t.__forward_ref__=_t,t.toString=function(){return Ee(this())},t}function Te(t){return Pf(t)?t():t}function Pf(t){return typeof t=="function"&&t.hasOwnProperty(ly)&&t.__forward_ref__===_t}function kf(t){return t&&!!t.\u0275providers}var Lf="https://g.co/ng/security#xss",C=class extends Error{constructor(e,r){super(Ko(e,r)),this.code=e}};function Ko(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}var dy=Y({\u0275cmp:Y}),fy=Y({\u0275dir:Y}),hy=Y({\u0275pipe:Y}),py=Y({\u0275mod:Y}),Ao=Y({\u0275fac:Y}),Hr=Y({__NG_ELEMENT_ID__:Y}),Qd=Y({__NG_ENV_ID__:Y});function Jo(t){return typeof t=="string"?t:t==null?"":String(t)}function gy(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Jo(t)}function my(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new C(-200,`Circular dependency in DI detected for ${t}${r}`)}function ic(t,e){let r=e?` in ${e}`:"";throw new C(-201,!1)}function vy(t,e){t==null&&yy(e,t,null,"!=")}function yy(t,e,r,n){throw new Error(`ASSERTION ERROR: ${t}`+(n==null?"":` [Expected=> ${r} ${n} ${e} <=Actual]`))}function w(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function X(t){return{providers:t.providers||[],imports:t.imports||[]}}function Xo(t){return Kd(t,jf)||Kd(t,Bf)}function Vf(t){return Xo(t)!==null}function Kd(t,e){return t.hasOwnProperty(e)?t[e]:null}function Dy(t){let e=t&&(t[jf]||t[Bf]);return e||null}function Jd(t){return t&&(t.hasOwnProperty(Xd)||t.hasOwnProperty(Cy))?t[Xd]:null}var jf=Y({\u0275prov:Y}),Xd=Y({\u0275inj:Y}),Bf=Y({ngInjectableDef:Y}),Cy=Y({ngInjectorDef:Y}),j=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(j||{}),hu;function $f(){return hu}function Pe(t){let e=hu;return hu=t,e}function Uf(t,e,r){let n=Xo(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&j.Optional)return null;if(e!==void 0)return e;ic(Ee(t),"Injector")}var ye=globalThis;var E=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=w({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};var wy={},Gr=wy,pu="__NG_DI_FLAG__",No="ngTempTokenPath",by="ngTokenPath",Ey=/\n/gm,Iy="\u0275",ef="__source",ir;function _y(){return ir}function en(t){let e=ir;return ir=t,e}function My(t,e=j.Default){if(ir===void 0)throw new C(-203,!1);return ir===null?Uf(t,void 0,e):ir.get(t,e&j.Optional?null:void 0,e)}function y(t,e=j.Default){return($f()||My)(Te(t),e)}function p(t,e=j.Default){return y(t,es(e))}function es(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function gu(t){let e=[];for(let r=0;r ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):Ee(a)))}i=`{${o.join(", ")}}`}return`${r}${n?"("+n+")":""}[${i}]: ${t.replace(Ey,` - `)}`}function Xr(t){return{toString:t}.toString()}var zf=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(zf||{}),wt=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(wt||{}),sr={},ze=[];function Gf(t,e,r){let n=t.length;for(;;){let i=t.indexOf(e,r);if(i===-1)return i;if(i===0||t.charCodeAt(i-1)<=32){let o=e.length;if(i+o===n||t.charCodeAt(i+o)<=32)return i}r=i+1}}function mu(t,e,r){let n=0;for(;ne){s=o-1;break}}}for(;oo?f="":f=i[d+1].toLowerCase();let h=n&8?f:null;if(h&&Gf(h,c,0)!==-1||n&2&&c!==f){if(it(n))return!1;s=!0}}}}return it(n)||s}function it(t){return(t&1)===0}function Fy(t,e,r,n){if(e===null)return-1;let i=0;if(n||!r){let o=!1;for(;i-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?i+="."+s:n&4&&(i+=" "+s);else i!==""&&!it(s)&&(e+=nf(o,i),i=""),n=s,o=o||!it(n);r++}return i!==""&&(e+=nf(o,i)),e}function jy(t){return t.map(Vy).join(",")}function By(t){let e=[],r=[],n=1,i=2;for(;n{let e=Xf(t),r=W(m({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===zf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||wt.Emulated,styles:t.styles||ze,_:null,schemas:t.schemas||null,tView:null,id:""});eh(r);let n=t.dependencies;return r.directiveDefs=of(n,!1),r.pipeDefs=of(n,!0),r.id=Hy(r),r})}function $y(t){return rn(t)||Yf(t)}function Uy(t){return t!==null}function ee(t){return Xr(()=>({type:t.type,bootstrap:t.bootstrap||ze,declarations:t.declarations||ze,imports:t.imports||ze,exports:t.exports||ze,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function rf(t,e){if(t==null)return sr;let r={};for(let n in t)if(t.hasOwnProperty(n)){let i=t[n],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),r[i]=n,e&&(e[i]=o)}return r}function re(t){return Xr(()=>{let e=Xf(t);return eh(e),e})}function ei(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function rn(t){return t[dy]||null}function Yf(t){return t[fy]||null}function Qf(t){return t[hy]||null}function Kf(t){let e=rn(t)||Yf(t)||Qf(t);return e!==null?e.standalone:!1}function Jf(t,e){let r=t[py]||null;if(!r&&e===!0)throw new Error(`Type ${Ee(t)} does not have '\u0275mod' property.`);return r}function Xf(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||sr,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||ze,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:rf(t.inputs,e),outputs:rf(t.outputs),debugInfo:null}}function eh(t){t.features?.forEach(e=>e(t))}function of(t,e){if(!t)return null;let r=e?Qf:$y;return()=>(typeof t=="function"?t():t).map(n=>r(n)).filter(Uy)}function Hy(t){let e=0,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let i of r)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483647+1,"c"+e}var Bt=0,L=1,T=2,ge=3,ot=4,at=5,vu=6,qr=7,Ge=8,ar=9,ur=10,De=11,Zr=12,sf=13,gr=14,bt=15,ti=16,er=17,Ct=18,ts=19,th=20,tn=21,Ja=22,_n=23,je=25,nh=1;var Mn=7,Oo=8,cr=9,Ve=10,lr=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t[t.HasChildViewsToRefresh=4]="HasChildViewsToRefresh",t}(lr||{});function nn(t){return Array.isArray(t)&&typeof t[nh]=="object"}function st(t){return Array.isArray(t)&&t[nh]===!0}function oc(t){return(t.flags&4)!==0}function ns(t){return t.componentOffset>-1}function rs(t){return(t.flags&1)===1}function on(t){return!!t.template}function zy(t){return(t[T]&512)!==0}function Sn(t,e){let r=t.hasOwnProperty(Ao);return r?t[Ao]:null}var yu=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function ut(){return rh}function rh(t){return t.type.prototype.ngOnChanges&&(t.setInput=Wy),Gy}ut.ngInherit=!0;function Gy(){let t=oh(this),e=t?.current;if(e){let r=t.previous;if(r===sr)t.previous=e;else for(let n in e)r[n]=e[n];t.current=null,this.ngOnChanges(e)}}function Wy(t,e,r,n){let i=this.declaredInputs[r],o=oh(t)||qy(t,{previous:sr,current:null}),s=o.current||(o.current={}),a=o.previous,u=a[i];s[i]=new yu(u&&u.currentValue,e,a===sr),t[n]=e}var ih="__ngSimpleChanges__";function oh(t){return t[ih]||null}function qy(t,e){return t[ih]=e}var af=null;var yt=function(t,e,r){af?.(t,e,r)},Zy="svg",Yy="math";function Et(t){for(;Array.isArray(t);)t=t[Bt];return t}function sh(t,e){return Et(e[t])}function We(t,e){return Et(e[t.index])}function ah(t,e){return t.data[e]}function sc(t,e){return t[e]}function un(t,e){let r=e[t];return nn(r)?r:r[Bt]}function Qy(t){return(t[T]&4)===4}function ac(t){return(t[T]&128)===128}function Ky(t){return st(t[ge])}function dr(t,e){return e==null?null:t[e]}function uh(t){t[er]=0}function Jy(t){t[T]&1024||(t[T]|=1024,ac(t)&&is(t))}function Xy(t,e){for(;t>0;)e=e[gr],t--;return e}function ch(t){t[T]&9216&&is(t)}function is(t){let e=t[ge];for(;e!==null&&!(st(e)&&e[T]&lr.HasChildViewsToRefresh||nn(e)&&e[T]&8192);){if(st(e))e[T]|=lr.HasChildViewsToRefresh;else if(e[T]|=8192,!ac(e))break;e=e[ge]}}function lh(t,e){if((t[T]&256)===256)throw new C(911,!1);t[tn]===null&&(t[tn]=[]),t[tn].push(e)}function eD(t,e){if(t[tn]===null)return;let r=t[tn].indexOf(e);r!==-1&&t[tn].splice(r,1)}var V={lFrame:vh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function tD(){return V.lFrame.elementDepthCount}function nD(){V.lFrame.elementDepthCount++}function rD(){V.lFrame.elementDepthCount--}function dh(){return V.bindingsEnabled}function iD(){return V.skipHydrationRootTNode!==null}function oD(t){return V.skipHydrationRootTNode===t}function sD(){V.skipHydrationRootTNode=null}function $(){return V.lFrame.lView}function Ie(){return V.lFrame.tView}function $t(t){return V.lFrame.contextLView=t,t[Ge]}function Ut(t){return V.lFrame.contextLView=null,t}function Ae(){let t=fh();for(;t!==null&&t.type===64;)t=t.parent;return t}function fh(){return V.lFrame.currentTNode}function aD(){let t=V.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Pn(t,e){let r=V.lFrame;r.currentTNode=t,r.isParent=e}function uc(){return V.lFrame.isParent}function hh(){V.lFrame.isParent=!1}function uD(){return V.lFrame.contextLView}function os(){let t=V.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function cD(t){return V.lFrame.bindingIndex=t}function cc(){return V.lFrame.bindingIndex++}function lD(t){let e=V.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function dD(){return V.lFrame.inI18n}function fD(t,e){let r=V.lFrame;r.bindingIndex=r.bindingRootIndex=t,Du(e)}function hD(){return V.lFrame.currentDirectiveIndex}function Du(t){V.lFrame.currentDirectiveIndex=t}function pD(t){let e=V.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function ph(){return V.lFrame.currentQueryIndex}function lc(t){V.lFrame.currentQueryIndex=t}function gD(t){let e=t[L];return e.type===2?e.declTNode:e.type===1?t[at]:null}function gh(t,e,r){if(r&j.SkipSelf){let i=e,o=t;for(;i=i.parent,i===null&&!(r&j.Host);)if(i=gD(o),i===null||(o=o[gr],i.type&10))break;if(i===null)return!1;e=i,t=o}let n=V.lFrame=mh();return n.currentTNode=e,n.lView=t,!0}function dc(t){let e=mh(),r=t[L];V.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function mh(){let t=V.lFrame,e=t===null?null:t.child;return e===null?vh(t):e}function vh(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function yh(){let t=V.lFrame;return V.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Dh=yh;function fc(){let t=yh();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function mD(t){return(V.lFrame.contextLView=Xy(t,V.lFrame.contextLView))[Ge]}function mr(){return V.lFrame.selectedIndex}function Tn(t){V.lFrame.selectedIndex=t}function Ch(){let t=V.lFrame;return ah(t.tView,t.selectedIndex)}function vD(){return V.lFrame.currentNamespace}var wh=!0;function ss(){return wh}function as(t){wh=t}function yD(t,e,r){let{ngOnChanges:n,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(n){let s=rh(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}i&&(r.preOrderHooks??=[]).push(0-t,i),o&&((r.preOrderHooks??=[]).push(t,o),(r.preOrderCheckHooks??=[]).push(t,o))}function us(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r=n)break}else e[u]<0&&(t[er]+=65536),(a>14>16&&(t[T]&3)===e&&(t[T]+=16384,uf(a,o)):uf(a,o)}var or=-1,xn=class{constructor(e,r,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function CD(t){return t instanceof xn}function wD(t){return(t.flags&8)!==0}function bD(t){return(t.flags&16)!==0}function Eh(t){return t!==or}function Ro(t){let e=t&32767;return t&32767}function ED(t){return t>>16}function Fo(t,e){let r=ED(t),n=e;for(;r>0;)n=n[gr],r--;return n}var Cu=!0;function Po(t){let e=Cu;return Cu=t,e}var ID=256,Ih=ID-1,_h=5,_D=0,Dt={};function MD(t,e,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(Hr)&&(n=r[Hr]),n==null&&(n=r[Hr]=_D++);let i=n&Ih,o=1<>_h)]|=o}function ko(t,e){let r=Mh(t,e);if(r!==-1)return r;let n=e[L];n.firstCreatePass&&(t.injectorIndex=e.length,eu(n.data,t),eu(e,null),eu(n.blueprint,null));let i=hc(t,e),o=t.injectorIndex;if(Eh(i)){let s=Ro(i),a=Fo(i,e),u=a[L].data;for(let c=0;c<8;c++)e[o+c]=a[s+c]|u[s+c]}return e[o+8]=i,o}function eu(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Mh(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function hc(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,n=null,i=e;for(;i!==null;){if(n=Nh(i),n===null)return or;if(r++,i=i[gr],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return or}function wu(t,e,r){MD(t,e,r)}function SD(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let r=t.attrs;if(r){let n=r.length,i=0;for(;i>20,d=n?a:a+l,f=i?a+l:c;for(let h=d;h=u&&b.type===r)return h}if(i){let h=s[u];if(h&&on(h)&&h.type===r)return u}return null}function An(t,e,r,n){let i=t[r],o=e.data;if(CD(i)){let s=i;s.resolving&&my(gy(o[r]));let a=Po(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?Pe(s.injectImpl):null,l=gh(t,n,j.Default);try{i=t[r]=s.factory(void 0,o,t,n),e.firstCreatePass&&r>=n.directiveStart&&yD(r,o[r],e)}finally{c!==null&&Pe(c),Po(a),s.resolving=!1,Dh()}}return i}function xD(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Hr)?t[Hr]:void 0;return typeof e=="number"?e>=0?e&Ih:AD:e}function cf(t,e,r){let n=1<>_h)]&n)}function lf(t,e){return!(t&j.Self)&&!(t&j.Host&&e)}var In=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,n){return xh(this._tNode,this._lView,e,es(n),r)}};function AD(){return new In(Ae(),$())}function vr(t){return Xr(()=>{let e=t.prototype.constructor,r=e[Ao]||bu(e),n=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==n;){let o=i[Ao]||bu(i);if(o&&o!==r)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function bu(t){return Pf(t)?()=>{let e=bu(Te(t));return e&&e()}:Sn(t)}function ND(t,e,r,n,i){let o=t,s=e;for(;o!==null&&s!==null&&s[T]&2048&&!(s[T]&512);){let a=Ah(o,s,r,n|j.Self,Dt);if(a!==Dt)return a;let u=o.parent;if(!u){let c=s[th];if(c){let l=c.get(r,Dt,n);if(l!==Dt)return l}u=Nh(s),s=s[gr]}o=u}return i}function Nh(t){let e=t[L],r=e.type;return r===2?e.declTNode:r===1?t[at]:null}function pc(t){return SD(Ae(),t)}var Do="__parameters__";function OD(t){return function(...r){if(t){let n=t(...r);for(let i in n)this[i]=n[i]}}}function Oh(t,e,r){return Xr(()=>{let n=OD(e);function i(...o){if(this instanceof i)return n.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(u,c,l){let d=u.hasOwnProperty(Do)?u[Do]:Object.defineProperty(u,Do,{value:[]})[Do];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return r&&(i.prototype=Object.create(r.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}function RD(t){let e=ye.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function FD(t){return typeof t=="function"}function PD(t,e,r){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(r)?gc(r,e):e(r))}function Rh(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function Lo(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function LD(t,e){let r=[];for(let n=0;ne;){let o=i-2;t[i]=t[o],i--}t[e]=r,t[e+1]=n}}function jD(t,e,r){let n=ni(t,e);return n>=0?t[n|1]=r:(n=~n,VD(t,n,e,r)),n}function tu(t,e){let r=ni(t,e);if(r>=0)return t[r|1]}function ni(t,e){return BD(t,e,1)}function BD(t,e,r){let n=0,i=t.length>>r;for(;i!==n;){let o=n+(i-n>>1),s=t[o<e?i=o:n=o+1}return~(i<{let s=[];i.templateUrl&&s.push(n(i.templateUrl).then(c=>{i.template=c}));let a=typeof i.styles=="string"?[i.styles]:i.styles||[];if(i.styles=a,i.styleUrl&&i.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(i.styleUrls?.length){let c=i.styles.length,l=i.styleUrls;i.styleUrls.forEach((d,f)=>{a.push(""),s.push(n(d).then(h=>{a[c+f]=h,l.splice(l.indexOf(d),1),l.length==0&&(i.styleUrls=void 0)}))})}else i.styleUrl&&s.push(n(i.styleUrl).then(c=>{a.push(c),i.styleUrl=void 0}));let u=Promise.all(s).then(()=>WD(o));e.push(u)}),HD(),Promise.all(e).then(()=>{})}var Vo=new Map,UD=new Set;function HD(){let t=Vo;return Vo=new Map,t}function zD(){return Vo.size===0}function GD(t){return typeof t=="string"?t:t.text()}function WD(t){UD.delete(t)}var ri=new E("ENVIRONMENT_INITIALIZER"),Fh=new E("INJECTOR",-1),Ph=new E("INJECTOR_DEF_TYPES"),jo=class{get(e,r=Gr){if(r===Gr){let n=new Error(`NullInjectorError: No provider for ${Ee(e)}!`);throw n.name="NullInjectorError",n}return r}};function ls(t){return{\u0275providers:t}}function qD(...t){return{\u0275providers:kh(!0,t),\u0275fromNgModule:!0}}function kh(t,...e){let r=[],n=new Set,i,o=s=>{r.push(s)};return gc(e,s=>{let a=s;Eu(a,o,[],n)&&(i||=[],i.push(a))}),i!==void 0&&Lh(i,o),r}function Lh(t,e){for(let r=0;r{e(o,n)})}}function Eu(t,e,r,n){if(t=Te(t),!t)return!1;let i=null,o=Jd(t),s=!o&&rn(t);if(!o&&!s){let u=t.ngModule;if(o=Jd(u),o)i=u;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=n.has(i);if(s){if(a)return!1;if(n.add(i),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)Eu(c,e,r,n)}}else if(o){if(o.imports!=null&&!a){n.add(i);let c;try{gc(o.imports,l=>{Eu(l,e,r,n)&&(c||=[],c.push(l))})}finally{}c!==void 0&&Lh(c,e)}if(!a){let c=Sn(i)||(()=>new i);e({provide:i,useFactory:c,deps:ze},i),e({provide:Ph,useValue:i,multi:!0},i),e({provide:ri,useValue:()=>y(i),multi:!0},i)}let u=o.providers;if(u!=null&&!a){let c=t;vc(u,l=>{e(l,c)})}}else return!1;return i!==t&&t.providers!==void 0}function vc(t,e){for(let r of t)kf(r)&&(r=r.\u0275providers),Array.isArray(r)?vc(r,e):e(r)}var ZD=Y({provide:String,useValue:Y});function Vh(t){return t!==null&&typeof t=="object"&&ZD in t}function YD(t){return!!(t&&t.useExisting)}function QD(t){return!!(t&&t.useFactory)}function fr(t){return typeof t=="function"}function KD(t){return!!t.useClass}var ds=new E("Set Injector scope."),So={},JD={},nu;function yc(){return nu===void 0&&(nu=new jo),nu}var xe=class{},Yr=class extends xe{get destroyed(){return this._destroyed}constructor(e,r,n,i){super(),this.parent=r,this.source=n,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,_u(e,s=>this.processProvider(s)),this.records.set(Fh,tr(void 0,this)),i.has("environment")&&this.records.set(xe,tr(void 0,this));let o=this.records.get(ds);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Ph,ze,j.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of e)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=en(this),n=Pe(void 0),i;try{return e()}finally{en(r),Pe(n)}}get(e,r=Gr,n=j.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Qd))return e[Qd](this);n=es(n);let i,o=en(this),s=Pe(void 0);try{if(!(n&j.SkipSelf)){let u=this.records.get(e);if(u===void 0){let c=rC(e)&&Xo(e);c&&this.injectableDefInScope(c)?u=tr(Iu(e),So):u=null,this.records.set(e,u)}if(u!=null)return this.hydrate(e,u)}let a=n&j.Self?yc():this.parent;return r=n&j.Optional&&r===Gr?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[No]=a[No]||[]).unshift(Ee(e)),o)throw a;return Ty(a,e,"R3InjectorError",this.source)}else throw a}finally{Pe(s),en(o)}}resolveInjectorInitializers(){let e=en(this),r=Pe(void 0),n;try{let i=this.get(ri,ze,j.Self);for(let o of i)o()}finally{en(e),Pe(r)}}toString(){let e=[],r=this.records;for(let n of r.keys())e.push(Ee(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new C(205,!1)}processProvider(e){e=Te(e);let r=fr(e)?e:Te(e&&e.provide),n=eC(e);if(!fr(e)&&e.multi===!0){let i=this.records.get(r);i||(i=tr(void 0,So,!0),i.factory=()=>gu(i.multi),this.records.set(r,i)),r=e,i.multi.push(e)}else{let i=this.records.get(r)}this.records.set(r,n)}hydrate(e,r){return r.value===So&&(r.value=JD,r.value=r.factory()),typeof r.value=="object"&&r.value&&nC(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}injectableDefInScope(e){if(!e.providedIn)return!1;let r=Te(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function Iu(t){let e=Xo(t),r=e!==null?e.factory:Sn(t);if(r!==null)return r;if(t instanceof E)throw new C(204,!1);if(t instanceof Function)return XD(t);throw new C(204,!1)}function XD(t){let e=t.length;if(e>0){let n=LD(e,"?");throw new C(204,!1)}let r=Dy(t);return r!==null?()=>r.factory(t):()=>new t}function eC(t){if(Vh(t))return tr(void 0,t.useValue);{let e=jh(t);return tr(e,So)}}function jh(t,e,r){let n;if(fr(t)){let i=Te(t);return Sn(i)||Iu(i)}else if(Vh(t))n=()=>Te(t.useValue);else if(QD(t))n=()=>t.useFactory(...gu(t.deps||[]));else if(YD(t))n=()=>y(Te(t.useExisting));else{let i=Te(t&&(t.useClass||t.provide));if(tC(t))n=()=>new i(...gu(t.deps));else return Sn(i)||Iu(i)}return n}function tr(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function tC(t){return!!t.deps}function nC(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function rC(t){return typeof t=="function"||typeof t=="object"&&t instanceof E}function _u(t,e){for(let r of t)Array.isArray(r)?_u(r,e):r&&kf(r)?_u(r.\u0275providers,e):e(r)}function Bh(t,e){t instanceof Yr&&t.assertNotDestroyed();let r,n=en(t),i=Pe(void 0);try{return e()}finally{en(n),Pe(i)}}function iC(t){if(!$f()&&!_y())throw new C(-203,!1)}function df(t,e=null,r=null,n){let i=$h(t,e,r,n);return i.resolveInjectorInitializers(),i}function $h(t,e=null,r=null,n,i=new Set){let o=[r||ze,qD(t)];return n=n||(typeof t=="object"?void 0:Ee(t)),new Yr(o,e||yc(),n||null,i)}var qe=(()=>{let e=class e{static create(n,i){if(Array.isArray(n))return df({name:""},i,n,"");{let o=n.name??"";return df({name:o},n.parent,n.providers,o)}}};e.THROW_IF_NOT_FOUND=Gr,e.NULL=new jo,e.\u0275prov=w({token:e,providedIn:"any",factory:()=>y(Fh)}),e.__NG_ELEMENT_ID__=-1;let t=e;return t})();var Mu;function Uh(t){Mu=t}function oC(){if(Mu!==void 0)return Mu;if(typeof document<"u")return document;throw new C(210,!1)}var fs=new E("AppId",{providedIn:"root",factory:()=>sC}),sC="ng",Dc=new E("Platform Initializer"),Ht=new E("Platform ID",{providedIn:"platform",factory:()=>"unknown"});var Cc=new E("CSP nonce",{providedIn:"root",factory:()=>oC().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function Hh(t){return t instanceof Function?t():t}function aC(t){return(t??p(qe)).get(Ht)==="browser"}function zh(t){return(t.flags&128)===128}var Vt=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Vt||{}),uC=/^>|^->||--!>|)/g,lC="\u200B$1\u200B";function dC(t){return t.replace(uC,e=>e.replace(cC,lC))}var Gh=new Map,fC=0;function hC(){return fC++}function pC(t){Gh.set(t[ts],t)}function gC(t){Gh.delete(t[ts])}var ff="__ngContext__";function sn(t,e){nn(e)?(t[ff]=e[ts],pC(e)):t[ff]=e}var mC;function wc(t,e){return mC(t,e)}function bc(t){let e=t[ge];return st(e)?e[ge]:e}function Wh(t){return Zh(t[Zr])}function qh(t){return Zh(t[ot])}function Zh(t){for(;t!==null&&!st(t);)t=t[ot];return t}function nr(t,e,r,n,i){if(n!=null){let o,s=!1;st(n)?o=n:nn(n)&&(s=!0,n=n[Bt]);let a=Et(n);t===0&&r!==null?i==null?Jh(e,r,a):Bo(e,r,a,i||null,!0):t===1&&r!==null?Bo(e,r,a,i||null,!0):t===2?PC(e,a,s):t===3&&e.destroyNode(a),o!=null&&LC(e,t,o,r,i)}}function vC(t,e){return t.createText(e)}function yC(t,e,r){t.setValue(e,r)}function DC(t,e){return t.createComment(dC(e))}function Yh(t,e,r){return t.createElement(e,r)}function CC(t,e){let r=e[De];ii(t,e,r,2,null,null),e[Bt]=null,e[at]=null}function wC(t,e,r,n,i,o){n[Bt]=i,n[at]=e,ii(t,n,r,1,i,o)}function bC(t,e){ii(t,e,e[De],2,null,null)}function EC(t){let e=t[Zr];if(!e)return ru(t[L],t);for(;e;){let r=null;if(nn(e))r=e[Zr];else{let n=e[Ve];n&&(r=n)}if(!r){for(;e&&!e[ot]&&e!==t;)nn(e)&&ru(e[L],e),e=e[ge];e===null&&(e=t),nn(e)&&ru(e[L],e),r=e&&e[ot]}e=r}}function IC(t,e,r,n){let i=Ve+n,o=r.length;n>0&&(r[i-1][ot]=e),n0&&(t[r-1][ot]=n[ot]);let o=Lo(t,Ve+e);CC(n[L],n);let s=o[Ct];s!==null&&s.detachView(o[L]),n[ge]=null,n[ot]=null,n[T]&=-129}return n}function Kh(t,e){if(!(e[T]&256)){let r=e[De];e[_n]&&bd(e[_n]),r.destroyNode&&ii(t,e,r,3,null,null),EC(e)}}function ru(t,e){if(!(e[T]&256)){e[T]&=-129,e[T]|=256,SC(t,e),MC(t,e),e[L].type===1&&e[De].destroy();let r=e[ti];if(r!==null&&st(e[ge])){r!==e[ge]&&Qh(r,e);let n=e[Ct];n!==null&&n.detachView(t)}gC(e)}}function MC(t,e){let r=t.cleanup,n=e[qr];if(r!==null)for(let o=0;o=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[r[o+1]];r[o].call(s)}n!==null&&(e[qr]=null);let i=e[tn];if(i!==null){e[tn]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[n.directiveStart+i];if(o===wt.None||o===wt.Emulated)return null}return We(n,r)}}function Bo(t,e,r,n,i){t.insertBefore(e,r,n,i)}function Jh(t,e,r){t.appendChild(e,r)}function hf(t,e,r,n,i){n!==null?Bo(t,e,r,n,i):Jh(t,e,r)}function AC(t,e,r,n){t.removeChild(e,r,n)}function Ec(t,e){return t.parentNode(e)}function NC(t,e){return t.nextSibling(e)}function OC(t,e,r){return FC(t,e,r)}function RC(t,e,r){return t.type&40?We(t,r):null}var FC=RC,pf;function hs(t,e,r,n){let i=TC(t,n,e),o=e[De],s=n.parent||e[at],a=OC(s,n,e);if(i!=null)if(Array.isArray(r))for(let u=0;ut,createScript:t=>t,createScriptURL:t=>t})}catch{}return Co}function gf(t){return BC()?.createScriptURL(t)||t}var $o=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Lf})`}};function oi(t){return t instanceof $o?t.changingThisBreaksApplicationSecurity:t}function _c(t,e){let r=$C(t);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${Lf})`)}return r===e}function $C(t){return t instanceof $o&&t.getTypeName()||null}var UC=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function np(t){return t=String(t),t.match(UC)?t:"unsafe:"+t}var ps=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(ps||{});function si(t){let e=ip();return e?e.sanitize(ps.URL,t)||"":_c(t,"URL")?oi(t):np(Jo(t))}function HC(t){let e=ip();if(e)return gf(e.sanitize(ps.RESOURCE_URL,t)||"");if(_c(t,"ResourceURL"))return gf(oi(t));throw new C(904,!1)}function zC(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?HC:si}function rp(t,e,r){return zC(e,r)(t)}function ip(){let t=$();return t&&t[ur].sanitizer}var GC="h",WC="b";var qC=(t,e,r)=>null;function Mc(t,e,r=!1){return qC(t,e,r)}var xu=class{},Uo=class{};function ZC(t){let e=Error(`No component factory found for ${Ee(t)}.`);return e[YC]=t,e}var YC="ngComponent";var Au=class{resolveComponentFactory(e){throw ZC(e)}},gs=(()=>{let e=class e{};e.NULL=new Au;let t=e;return t})();function QC(){return yr(Ae(),$())}function yr(t,e){return new ke(We(t,e))}var ke=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=QC;let t=e;return t})();function KC(t){return t instanceof ke?t.nativeElement:t}var Qr=class{},Mt=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>JC();let t=e;return t})();function JC(){let t=$(),e=Ae(),r=un(e.index,t);return(nn(r)?r:t)[De]}var XC=(()=>{let e=class e{};e.\u0275prov=w({token:e,providedIn:"root",factory:()=>null});let t=e;return t})(),Nn=class{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}},ew=new Nn("17.0.4"),iu={};function Sc(t){let e=Me(null);try{return t()}finally{Me(e)}}function op(t){return nw(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function tw(t,e){if(Array.isArray(t))for(let r=0;re,Ou=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||rw}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,n=this._removalsHead,i=0,o=null;for(;r||n;){let s=!n||r&&r.currentIndex{s=this._trackByFn(i,a),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,a,s,i),n=!0):(n&&(r=this._verifyReinsertion(r,a,s,i)),Object.is(r.item,a)||this._addIdentityChange(r,a)),r=r._next,i++}),this.length=i;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,r,n,i){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,o,i)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,i),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,o,i)):e=this._addAfter(new Ru(r,n),o,i)),e}_verifyReinsertion(e,r,n,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;e!==null;){let r=e._next;this._addToRemovals(this._unlink(e)),e=r}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,r,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let i=e._prevRemoved,o=e._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(e,r,n),this._addToMoves(e,n),e}_moveAfter(e,r,n){return this._unlink(e),this._insertAfter(e,r,n),this._addToMoves(e,n),e}_addAfter(e,r,n){return this._insertAfter(e,r,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,n){let i=r===null?this._itHead:r._next;return e._next=i,e._prev=r,i===null?this._itTail=e:i._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new Ho),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,n=e._next;return r===null?this._itHead=n:r._next=n,n===null?this._itTail=r:n._prev=r,e}_addToMoves(e,r){return e.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Ho),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,r){return e.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Ru=class{constructor(e,r){this.item=e,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},Fu=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,r){let n;for(n=this._head;n!==null;n=n._nextDup)if((r===null||r<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let r=e._prevDup,n=e._nextDup;return r===null?this._head=n:r._nextDup=n,n===null?this._tail=r:n._prevDup=r,this._head===null}},Ho=class{constructor(){this.map=new Map}put(e){let r=e.trackById,n=this.map.get(r);n||(n=new Fu,this.map.set(r,n)),n.add(e)}get(e,r){let n=e,i=this.map.get(n);return i?i.get(e,r):null}remove(e){let r=e.trackById;return this.map.get(r).remove(e)&&this.map.delete(r),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function mf(t,e,r){let n=t.previousIndex;if(n===null)return n;let i=0;return r&&n{let e=class e{constructor(n){this.factories=n}static create(n,i){if(i!=null){let o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||vf()),deps:[[e,new mc,new cs]]}}find(n){let i=this.factories.find(o=>o.supports(n));if(i!=null)return i;throw new C(901,!1)}};e.\u0275prov=w({token:e,providedIn:"root",factory:vf});let t=e;return t})();function zo(t,e,r,n,i=!1){for(;r!==null;){let o=e[r.index];o!==null&&n.push(Et(o)),st(o)&&iw(o,n);let s=r.type;if(s&8)zo(t,e,r.child,n);else if(s&32){let a=wc(r,e),u;for(;u=a();)n.push(u)}else if(s&16){let a=Xh(e,r);if(Array.isArray(a))n.push(...a);else{let u=bc(e[bt]);zo(u[L],u,a,n,!0)}}r=i?r.projectionNext:r.next}return n}function iw(t,e){for(let r=Ve;r{is(t.lView)},consumerOnSignalRead(){this.lView[_n]=this}}),cw="ngOriginalError";function ou(t){return t[cw]}var It=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&ou(e);for(;r&&ou(r);)r=ou(r);return r||null}};var ap=!1,lw=new E("",{providedIn:"root",factory:()=>ap});var cn={};function x(t){up(Ie(),$(),mr()+t,!1)}function up(t,e,r,n){if(!n)if((e[T]&3)===3){let o=t.preOrderCheckHooks;o!==null&&Io(e,o,r)}else{let o=t.preOrderHooks;o!==null&&_o(e,o,0,r)}Tn(r)}function g(t,e=j.Default){let r=$();if(r===null)return y(t,e);let n=Ae();return xh(n,r,Te(t),e)}function cp(){let t="invalid";throw new Error(t)}function dw(t,e){let r=t.hostBindingOpCodes;if(r!==null)try{for(let n=0;nje&&up(t,e,je,!1),yt(s?2:0,i),r(n,i)}finally{Tn(o),yt(s?3:1,i)}}function xc(t,e,r){if(oc(e)){let n=Me(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;snull;function vw(t,e,r,n){let i=yp(e);i.push(r),t.firstCreatePass&&Dp(t).push(n,i.length-1)}function yw(t,e,r,n,i,o){let s=e?e.injectorIndex:-1,a=0;return iD()&&(a|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function yf(t,e,r,n){for(let i in t)if(t.hasOwnProperty(i)){r=r===null?{}:r;let o=t[i];n===null?Df(r,e,i,o):n.hasOwnProperty(i)&&Df(r,e,n[i],o)}return r}function Df(t,e,r,n){t.hasOwnProperty(r)?t[r].push(e,n):t[r]=[e,n]}function Dw(t,e,r){let n=e.directiveStart,i=e.directiveEnd,o=t.data,s=e.attrs,a=[],u=null,c=null;for(let l=n;l0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function _w(t,e,r,n){let i=r.directiveStart,o=r.directiveEnd;ns(r)&&Ow(e,r,t.data[i+r.componentOffset]),t.firstCreatePass||ko(r,e),sn(n,e);let s=r.initialInputs;for(let a=i;a-1&&(Su(e,n),Lo(r,n))}this._attachedToViewContainer=!1}Kh(this._lView[L],this._lView)}onDestroy(e){lh(this._lView,e)}markForCheck(){Pc(this._cdRefInjectingView||this._lView)}detach(){this._lView[T]&=-129}reattach(){ch(this._lView),this._lView[T]|=128}detectChanges(){jw(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,bC(this._lView[L],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=e}},kn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=zw;let t=e;return t})();function zw(t){return Gw(Ae(),$(),(t&16)===16)}function Gw(t,e,r){if(ns(t)&&!r){let n=un(t.index,e);return new On(n,n)}else if(t.type&47){let n=e[bt];return new On(n,e)}return null}var Mp=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Ww,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),Lu=class extends Mp{constructor(e){super(),this._lView=e}onDestroy(e){return lh(this._lView,e),()=>eD(this._lView,e)}};function Ww(){return new Lu($())}var Cf=new Set;function ys(t){Cf.has(t)||(Cf.add(t),performance?.mark?.("mark_use_counter",{detail:{feature:t}}))}var Vu=class extends he{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,r,n){let i=e,o=r||(()=>null),s=n;if(e&&typeof e=="object"){let u=e;i=u.next?.bind(u),o=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(o=su(o),i&&(i=su(i)),s&&(s=su(s)));let a=super.subscribe({next:i,error:o,complete:s});return e instanceof fe&&e.add(a),a}};function su(t){return e=>{setTimeout(t,void 0,e)}}var J=Vu;function wf(...t){}function qw(){let t=typeof ye.requestAnimationFrame=="function",e=ye[t?"requestAnimationFrame":"setTimeout"],r=ye[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&e&&r){let n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);let i=r[Zone.__symbol__("OriginalDelegate")];i&&(r=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:r}}var Z=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new J(!1),this.onMicrotaskEmpty=new J(!1),this.onStable=new J(!1),this.onError=new J(!1),typeof Zone>"u")throw new C(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&r,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=qw().nativeRequestAnimationFrame,Qw(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new C(909,!1)}run(e,r,n){return this._inner.run(e,r,n)}runTask(e,r,n,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,Zw,wf,wf);try{return o.runTask(s,r,n)}finally{o.cancelTask(s)}}runGuarded(e,r,n){return this._inner.runGuarded(e,r,n)}runOutsideAngular(e){return this._outer.run(e)}},Zw={};function kc(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Yw(t){t.isCheckStableRunning||t.lastRequestAnimationFrameId!==-1||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(ye,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,ju(t),t.isCheckStableRunning=!0,kc(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),ju(t))}function Qw(t){let e=()=>{Yw(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,i,o,s,a)=>{if(Kw(a))return r.invokeTask(i,o,s,a);try{return bf(t),r.invokeTask(i,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),Ef(t)}},onInvoke:(r,n,i,o,s,a,u)=>{try{return bf(t),r.invoke(i,o,s,a,u)}finally{t.shouldCoalesceRunChangeDetection&&e(),Ef(t)}},onHasTask:(r,n,i,o)=>{r.hasTask(i,o),n===i&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,ju(t),kc(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,n,i,o)=>(r.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function ju(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.lastRequestAnimationFrameId!==-1?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function bf(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Ef(t){t._nesting--,kc(t)}var Bu=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new J,this.onMicrotaskEmpty=new J,this.onStable=new J,this.onError=new J}run(e,r,n){return e.apply(r,n)}runGuarded(e,r,n){return e.apply(r,n)}runOutsideAngular(e){return e()}runTask(e,r,n,i){return e.apply(r,n)}},Sp=new E("",{providedIn:"root",factory:Tp});function Tp(){let t=p(Z),e=!0,r=new B(i=>{e=t.isStable&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks,t.runOutsideAngular(()=>{i.next(e),i.complete()})}),n=new B(i=>{let o;t.runOutsideAngular(()=>{o=t.onStable.subscribe(()=>{Z.assertNotInAngularZone(),queueMicrotask(()=>{!e&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks&&(e=!0,i.next(!0))})})});let s=t.onUnstable.subscribe(()=>{Z.assertInAngularZone(),e&&(e=!1,t.runOutsideAngular(()=>{i.next(!1)}))});return()=>{o.unsubscribe(),s.unsubscribe()}});return Ga(r,n.pipe(vo()))}function Kw(t){return!Array.isArray(t)||t.length!==1?!1:t[0].data?.__ignore_ng_zone__===!0}var rr=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(rr||{}),Jw={destroy(){}};function Lc(t,e){!e&&iC(Lc);let r=e?.injector??p(qe);if(!aC(r))return Jw;ys("NgAfterNextRender");let n=r.get(xp),i=n.handler??=new Uu,o=e?.phase??rr.MixedReadWrite,s=()=>{i.unregister(u),a()},a=r.get(Mp).onDestroy(s),u=new $u(r,o,()=>{s(),t()});return i.register(u),{destroy:s}}var $u=class{constructor(e,r,n){this.phase=r,this.callbackFn=n,this.zone=e.get(Z),this.errorHandler=e.get(It,null,{optional:!0})}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(e){this.errorHandler?.handleError(e)}}},Uu=class{constructor(){this.executingCallbacks=!1,this.buckets={[rr.EarlyRead]:new Set,[rr.Write]:new Set,[rr.MixedReadWrite]:new Set,[rr.Read]:new Set},this.deferredCallbacks=new Set}validateBegin(){if(this.executingCallbacks)throw new C(102,!1)}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let r of e)r.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},xp=(()=>{let e=class e{constructor(){this.renderDepth=0,this.handler=null,this.internalCallbacks=[]}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){if(this.renderDepth--,this.renderDepth===0){for(let n of this.internalCallbacks)n();this.internalCallbacks.length=0,this.handler?.execute()}}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=w({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function Xw(t,e){let r=un(e,t),n=r[L];e0(n,r);let i=r[Bt];i!==null&&r[vu]===null&&(r[vu]=Mc(i,r[ar])),Vc(n,r,r[Ge])}function e0(t,e){for(let r=e.length;r0&&ep(t,r,o.join(" "))}}function u0(t,e,r){let n=t.projection=[];for(let i=0;i=0;n--){let i=t[n];i.hostVars=e+=i.hostVars,i.hostAttrs=Wr(i.hostAttrs,r=Wr(r,i.hostAttrs))}}function wo(t){return t===sr?{}:t===ze?[]:t}function f0(t,e){let r=t.viewQuery;r?t.viewQuery=(n,i)=>{e(n,i),r(n,i)}:t.viewQuery=e}function h0(t,e){let r=t.contentQueries;r?t.contentQueries=(n,i,o)=>{e(n,i,o),r(n,i,o)}:t.contentQueries=e}function p0(t,e){let r=t.hostBindings;r?t.hostBindings=(n,i)=>{e(n,i),r(n,i)}:t.hostBindings=e}function jc(t){let e=t.inputConfig,r={};for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];Array.isArray(i)&&i[2]&&(r[n]=i[2])}t.inputTransforms=r}function Bc(t,e,r){return t[e]=r}function g0(t,e){return t[e]}function Rn(t,e,r){let n=t[e];return Object.is(n,r)?!1:(t[e]=r,!0)}function m0(t,e,r,n){let i=Rn(t,e,r);return Rn(t,e+1,n)||i}function Dr(t,e,r,n){let i=$(),o=cc();if(Rn(i,o,e)){let s=Ie(),a=Ch();Rw(a,i,t,e,r,n)}return Dr}function v0(t,e,r,n){return Rn(t,cc(),r)?e+Jo(r)+n:cn}function bo(t,e){return t<<17|e<<2}function Fn(t){return t>>17&32767}function y0(t){return(t&2)==2}function D0(t,e){return t&131071|e<<17}function Gu(t){return t|2}function pr(t){return(t&131068)>>2}function au(t,e){return t&-131069|e<<2}function C0(t){return(t&1)===1}function Wu(t){return t|1}function w0(t,e,r,n,i,o){let s=o?e.classBindings:e.styleBindings,a=Fn(s),u=pr(s);t[n]=r;let c=!1,l;if(Array.isArray(r)){let d=r;l=d[1],(l===null||ni(d,l)>0)&&(c=!0)}else l=r;if(i)if(u!==0){let f=Fn(t[a+1]);t[n+1]=bo(f,a),f!==0&&(t[f+1]=au(t[f+1],n)),t[a+1]=D0(t[a+1],n)}else t[n+1]=bo(a,0),a!==0&&(t[a+1]=au(t[a+1],n)),a=n;else t[n+1]=bo(u,0),a===0?a=n:t[u+1]=au(t[u+1],n),u=n;c&&(t[n+1]=Gu(t[n+1])),_f(t,l,n,!0,o),_f(t,l,n,!1,o),b0(e,l,t,n,o),s=bo(a,u),o?e.classBindings=s:e.styleBindings=s}function b0(t,e,r,n,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&ni(o,e)>=0&&(r[n+1]=Wu(r[n+1]))}function _f(t,e,r,n,i){let o=t[r+1],s=e===null,a=n?Fn(o):pr(o),u=!1;for(;a!==0&&(u===!1||s);){let c=t[a],l=t[a+1];E0(c,e)&&(u=!0,t[a+1]=n?Wu(l):Gu(l)),a=n?Fn(l):pr(l)}u&&(t[r+1]=n?Gu(o):Wu(o))}function E0(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?ni(t,e)>=0:!1}function O(t,e,r){let n=$(),i=cc();if(Rn(n,i,e)){let o=Ie(),s=Ch();ww(o,s,n,t,e,n[De],r,!1)}return O}function Mf(t,e,r,n,i){let o=e.inputs,s=i?"class":"style";Fc(t,r,o[s],s,n)}function Cr(t,e){return I0(t,e,null,!0),Cr}function I0(t,e,r,n){let i=$(),o=Ie(),s=lD(2);if(o.firstUpdatePass&&M0(o,t,s,n),e!==cn&&Rn(i,s,e)){let a=o.data[mr()];N0(o,a,i,i[De],t,i[s+1]=O0(e,r),n,s)}}function _0(t,e){return e>=t.expandoStartIndex}function M0(t,e,r,n){let i=t.data;if(i[r+1]===null){let o=i[mr()],s=_0(t,r);R0(o,n)&&e===null&&!s&&(e=!1),e=S0(i,o,e,n),w0(i,o,e,r,s,n)}}function S0(t,e,r,n){let i=pD(t),o=n?e.residualClasses:e.residualStyles;if(i===null)(n?e.classBindings:e.styleBindings)===0&&(r=uu(null,t,e,r,n),r=Kr(r,e.attrs,n),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(r=uu(i,t,e,r,n),o===null){let u=T0(t,e,n);u!==void 0&&Array.isArray(u)&&(u=uu(null,t,e,u[1],n),u=Kr(u,e.attrs,n),x0(t,e,n,u))}else o=A0(t,e,n)}return o!==void 0&&(n?e.residualClasses=o:e.residualStyles=o),r}function T0(t,e,r){let n=r?e.classBindings:e.styleBindings;if(pr(n)!==0)return t[Fn(n)]}function x0(t,e,r,n){let i=r?e.classBindings:e.styleBindings;t[Fn(i)]=n}function A0(t,e,r){let n,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let u=t[i],c=Array.isArray(u),l=c?u[1]:u,d=l===null,f=r[i+1];f===cn&&(f=d?ze:void 0);let h=d?tu(f,n):l===n?f:void 0;if(c&&!qo(h)&&(h=tu(u,n)),qo(h)&&(a=h,s))return a;let b=t[i+1];i=s?Fn(b):pr(b)}if(e!==null){let u=o?e.residualClasses:e.residualStyles;u!=null&&(a=tu(u,n))}return a}function qo(t){return t!==void 0}function O0(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=Ee(oi(t)))),t}function R0(t,e){return(t.flags&(e?8:16))!==0}var hF=new RegExp(`^(\\d+)*(${WC}|${GC})*(.*)`);var F0=(t,e)=>null;function Tf(t,e){return F0(t,e)}function P0(t,e,r,n){let i=e.tView,s=t[T]&4096?4096:16,a=ms(t,i,r,s,null,e,null,null,null,n?.injector??null,n?.dehydratedView??null),u=t[e.index];a[ti]=u;let c=t[Ct];return c!==null&&(a[Ct]=c.createEmbeddedView(i)),Vc(i,a,r),a}function xf(t,e){return!e||zh(t)}function k0(t,e,r,n=!0){let i=e[L];if(IC(i,e,t,r),n){let o=Tu(r,t),s=e[De],a=Ec(s,t[Mn]);a!==null&&wC(i,t[at],s,e,a,o)}}var St=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=L0;let t=e;return t})();function L0(){let t=Ae();return Np(t,$())}var V0=St,Ap=class extends V0{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return yr(this._hostTNode,this._hostLView)}get injector(){return new In(this._hostTNode,this._hostLView)}get parentInjector(){let e=hc(this._hostTNode,this._hostLView);if(Eh(e)){let r=Fo(e,this._hostLView),n=Ro(e),i=r[L].data[n+8];return new In(i,r)}else return new In(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=Af(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-Ve}createEmbeddedView(e,r,n){let i,o;typeof n=="number"?i=n:n!=null&&(i=n.index,o=n.injector);let s=Tf(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},o,s);return this.insertImpl(a,i,xf(this._hostTNode,s)),a}createComponent(e,r,n,i,o){let s=e&&!FD(e),a;if(s)a=r;else{let b=r||{};a=b.index,n=b.injector,i=b.projectableNodes,o=b.environmentInjector||b.ngModuleRef}let u=s?e:new hr(rn(e)),c=n||this.parentInjector;if(!o&&u.ngModule==null){let R=(s?c:this.parentInjector).get(xe,null);R&&(o=R)}let l=rn(u.componentType??{}),d=Tf(this._lContainer,l?.id??null),f=d?.firstChild??null,h=u.create(c,i,f,o);return this.insertImpl(h.hostView,a,xf(this._hostTNode,d)),h}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,n){let i=e._lView;if(Ky(i)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let u=i[ge],c=new Ap(u,u[at],u[ge]);c.detach(c.indexOf(e))}}let o=this._adjustIndex(r),s=this._lContainer;return k0(s,i,o,n),e.attachToViewContainerRef(),Rh(cu(s),o,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=Af(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=Su(this._lContainer,r);n&&(Lo(cu(this._lContainer),r),Kh(n[L],n))}detach(e){let r=this._adjustIndex(e,-1),n=Su(this._lContainer,r);return n&&Lo(cu(this._lContainer),r)!=null?new On(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function Af(t){return t[Oo]}function cu(t){return t[Oo]||(t[Oo]=[])}function Np(t,e){let r,n=e[t.index];return st(n)?r=n:(r=mp(n,e,null,t),e[t.index]=r,vs(e,r)),B0(r,e,t,n),new Ap(r,t,e)}function j0(t,e){let r=t[De],n=r.createComment(""),i=We(e,t),o=Ec(r,i);return Bo(r,o,n,NC(r,i),!1),n}var B0=H0,$0=(t,e,r)=>!1;function U0(t,e,r){return $0(t,e,r)}function H0(t,e,r,n){if(t[Mn])return;let i;r.type&8?i=Et(n):i=j0(e,r),t[Mn]=i}function z0(t,e,r,n,i,o,s,a,u){let c=e.consts,l=ai(e,t,4,s||null,dr(c,a));Rc(e,r,l,dr(c,u)),us(e,l);let d=l.tView=Oc(2,l,n,i,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c,null);return e.queries!==null&&(e.queries.template(e,l),d.queries=e.queries.embeddedTView(l)),l}function Q(t,e,r,n,i,o,s,a){let u=$(),c=Ie(),l=t+je,d=c.firstCreatePass?z0(l,c,u,e,r,n,i,o,s):c.data[l];Pn(d,!1);let f=G0(c,u,d,t);ss()&&hs(c,u,f,d),sn(f,u);let h=mp(f,u,f,d);return u[l]=h,vs(u,h),U0(h,d,u),rs(d)&&Ac(c,u,d),s!=null&&Nc(u,d,a),Q}var G0=W0;function W0(t,e,r,n){return as(!0),e[De].createComment("")}function q0(t,e,r,n,i,o){let s=e.consts,a=dr(s,i),u=ai(e,t,2,n,a);return Rc(e,r,u,dr(s,o)),u.attrs!==null&&Go(u,u.attrs,!1),u.mergedAttrs!==null&&Go(u,u.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,u),u}function D(t,e,r,n){let i=$(),o=Ie(),s=je+t,a=i[De],u=o.firstCreatePass?q0(s,o,i,e,r,n):o.data[s],c=Z0(o,i,u,a,e,t);i[s]=c;let l=rs(u);return Pn(u,!0),tp(a,c,u),(u.flags&32)!==32&&ss()&&hs(o,i,c,u),tD()===0&&sn(c,i),nD(),l&&(Ac(o,i,u),xc(o,u,i)),n!==null&&Nc(i,u),D}function v(){let t=Ae();uc()?hh():(t=t.parent,Pn(t,!1));let e=t;oD(e)&&sD(),rD();let r=Ie();return r.firstCreatePass&&(us(r,t),oc(t)&&r.queries.elementEnd(t)),e.classesWithoutHost!=null&&wD(e)&&Mf(r,e,$(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&bD(e)&&Mf(r,e,$(),e.stylesWithoutHost,!1),v}function ue(t,e,r,n){return D(t,e,r,n),v(),ue}var Z0=(t,e,r,n,i,o)=>(as(!0),Yh(n,i,vD()));function Y0(t,e,r,n,i){let o=e.consts,s=dr(o,n),a=ai(e,t,8,"ng-container",s);s!==null&&Go(a,s,!0);let u=dr(o,i);return Rc(e,r,a,u),e.queries!==null&&e.queries.elementStart(e,a),a}function $c(t,e,r){let n=$(),i=Ie(),o=t+je,s=i.firstCreatePass?Y0(o,i,n,e,r):i.data[o];Pn(s,!0);let a=Q0(i,n,s,t);return n[o]=a,ss()&&hs(i,n,a,s),sn(a,n),rs(s)&&(Ac(i,n,s),xc(i,s,n)),r!=null&&Nc(n,s),$c}function Uc(){let t=Ae(),e=Ie();return uc()?hh():(t=t.parent,Pn(t,!1)),e.firstCreatePass&&(us(e,t),oc(t)&&e.queries.elementEnd(t)),Uc}var Q0=(t,e,r,n)=>(as(!0),DC(e[De],""));function zt(){return $()}var En=void 0;function K0(t){let e=t,r=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return r===1&&n===0?1:5}var J0=["en",[["a","p"],["AM","PM"],En],[["AM","PM"],En,En],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],En,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],En,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",En,"{1} 'at' {0}",En],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",K0],lu={};function Ze(t){let e=X0(t),r=Nf(e);if(r)return r;let n=e.split("-")[0];if(r=Nf(n),r)return r;if(n==="en")return J0;throw new C(701,!1)}function Nf(t){return t in lu||(lu[t]=ye.ng&&ye.ng.common&&ye.ng.common.locales&&ye.ng.common.locales[t]),lu[t]}var de=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(de||{});function X0(t){return t.toLowerCase().replace(/_/g,"-")}var Zo="en-US";var eb=Zo;function tb(t){vy(t,"Expected localeId to be defined"),typeof t=="string"&&(eb=t.toLowerCase().replace(/_/g,"-"))}function ln(t){return!!t&&typeof t.then=="function"}function Hc(t){return!!t&&typeof t.subscribe=="function"}function oe(t,e,r,n){let i=$(),o=Ie(),s=Ae();return rb(o,i,i[De],s,t,e,n),oe}function nb(t,e,r,n){let i=t.cleanup;if(i!=null)for(let o=0;ou?a[u]:null}typeof s=="string"&&(o+=2)}return null}function rb(t,e,r,n,i,o,s){let a=rs(n),c=t.firstCreatePass&&Dp(t),l=e[Ge],d=yp(e),f=!0;if(n.type&3||s){let R=We(n,e),S=s?s(R):R,_=d.length,ce=s?ie=>s(Et(ie[n.index])):n.index,Ce=null;if(!s&&a&&(Ce=nb(t,e,i,n.index)),Ce!==null){let ie=Ce.__ngLastListenerFn__||Ce;ie.__ngNextListenerFn__=o,Ce.__ngLastListenerFn__=o,f=!1}else{o=Rf(n,e,l,o,!1);let ie=r.listen(S,i,o);d.push(o,ie),c&&c.push(i,ce,_,_+1)}}else o=Rf(n,e,l,o,!1);let h=n.outputs,b;if(f&&h!==null&&(b=h[i])){let R=b.length;if(R)for(let S=0;S-1?un(t.index,e):e;Pc(a);let u=Of(e,r,n,s),c=o.__ngNextListenerFn__;for(;c;)u=Of(e,r,c,s)&&u,c=c.__ngNextListenerFn__;return i&&u===!1&&s.preventDefault(),u}}function _e(t=1){return mD(t)}function ib(t,e,r,n){r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=n}function Op(t){let e=uD();return sc(e,je+t)}function M(t,e=""){let r=$(),n=Ie(),i=t+je,o=n.firstCreatePass?ai(n,i,1,e,null):n.data[i],s=ob(n,r,o,e,t);r[i]=s,ss()&&hs(n,r,s,o),Pn(o,!1)}var ob=(t,e,r,n,i)=>(as(!0),vC(e[De],n));function Tt(t){return Be("",t,""),Tt}function Be(t,e,r){let n=$(),i=v0(n,t,e,r);return i!==cn&&Lw(n,mr(),i),Be}function sb(t,e,r){let n=Ie();if(n.firstCreatePass){let i=on(t);qu(r,n.data,n.blueprint,i,!0),qu(e,n.data,n.blueprint,i,!1)}}function qu(t,e,r,n,i){if(t=Te(t),Array.isArray(t))for(let o=0;o>20;if(fr(t)||!t.multi){let h=new xn(c,i,g),b=fu(u,e,i?l:l+f,d);b===-1?(wu(ko(a,s),o,u),du(o,t,e.length),e.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(h),s.push(h)):(r[b]=h,s[b]=h)}else{let h=fu(u,e,l+f,d),b=fu(u,e,l,l+f),R=h>=0&&r[h],S=b>=0&&r[b];if(i&&!S||!i&&!R){wu(ko(a,s),o,u);let _=cb(i?ub:ab,r.length,i,n,c);!i&&S&&(r[b].providerFactory=_),du(o,t,e.length,0),e.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(_),s.push(_)}else{let _=Rp(r[i?b:h],c,!i&&n);du(o,t,h>-1?h:b,_)}!i&&n&&S&&r[b].componentProviders++}}}function du(t,e,r,n){let i=fr(e),o=KD(e);if(i||o){let u=(o?Te(e.useClass):e).prototype.ngOnDestroy;if(u){let c=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){let l=c.indexOf(r);l===-1?c.push(r,[n,u]):c[l+1].push(n,u)}else c.push(r,u)}}}function Rp(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function fu(t,e,r,n){for(let i=r;i{r.providersResolver=(n,i)=>sb(n,i?i(t):t,e)}}var an=class{},Jr=class{};var Yo=class extends an{constructor(e,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Wo(this);let i=Jf(e);this._bootstrapComponents=Hh(i.bootstrap),this._r3Injector=$h(e,r,[{provide:an,useValue:this},{provide:gs,useValue:this.componentFactoryResolver},...n],Ee(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},Qo=class extends Jr{constructor(e){super(),this.moduleType=e}create(e){return new Yo(this.moduleType,e,[])}};function lb(t,e,r){return new Yo(t,e,r)}var Yu=class extends an{constructor(e){super(),this.componentFactoryResolver=new Wo(this),this.instance=null;let r=new Yr([...e.providers,{provide:an,useValue:this},{provide:gs,useValue:this.componentFactoryResolver}],e.parent||yc(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Ds(t,e,r=null){return new Yu({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}var db=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let i=kh(!1,n.type),o=i.length>0?Ds([i],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=w({token:e,providedIn:"environment",factory:()=>new e(y(xe))});let t=e;return t})();function Fp(t){ys("NgStandalone"),t.getStandaloneInjector=e=>e.get(db).getOrCreateStandaloneInjector(t)}function Cs(t,e,r){let n=os()+t,i=$();return i[n]===cn?Bc(i,n,r?e.call(r):e()):g0(i,n)}function ws(t,e,r,n){return kp($(),os(),t,e,r,n)}function Pp(t,e){let r=t[e];return r===cn?void 0:r}function kp(t,e,r,n,i,o){let s=e+r;return Rn(t,s,i)?Bc(t,s+1,o?n.call(o,i):n(i)):Pp(t,s+1)}function fb(t,e,r,n,i,o,s){let a=e+r;return m0(t,a,i,o)?Bc(t,a+2,s?n.call(s,i,o):n(i,o)):Pp(t,a+2)}function Ye(t,e){let r=Ie(),n,i=t+je;r.firstCreatePass?(n=hb(e,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks??=[]).push(i,n.onDestroy)):n=r.data[i];let o=n.factory||(n.factory=Sn(n.type,!0)),s,a=Pe(g);try{let u=Po(!1),c=o();return Po(u),ib(r,$(),i,c),c}finally{Pe(a)}}function hb(t,e){if(e)for(let r=e.length-1;r>=0;r--){let n=e[r];if(t===n.name)return n}}function lt(t,e,r){let n=t+je,i=$(),o=sc(i,n);return Vp(i,n)?kp(i,os(),e,o.transform,r,o):o.transform(r)}function Lp(t,e,r,n){let i=t+je,o=$(),s=sc(o,i);return Vp(o,i)?fb(o,os(),e,s.transform,r,n,s):s.transform(r,n)}function Vp(t,e){return t[L].data[e].pure}function pb(){return this._results[Symbol.iterator]()}var Qu=class t{get changes(){return this._changes||(this._changes=new J)}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;let r=t.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=pb)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,r){return this._results.reduce(e,r)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,r){this.dirty=!1;let n=kD(e);(this._changesDetected=!PD(this._results,n,r))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}},jt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=vb;let t=e;return t})(),gb=jt,mb=class extends gb{constructor(e,r,n){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,n){let i=P0(this._declarationLView,this._declarationTContainer,e,{injector:r,dehydratedView:n});return new On(i)}};function vb(){return zc(Ae(),$())}function zc(t,e){return t.type&4?new mb(e,t,yr(t,e)):null}var Ku=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Ju=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let n=e.contentQueries!==null?e.contentQueries[0]:r.length,i=[];for(let o=0;o0)n.push(s[a/2]);else{let c=o[a+1],l=e[-u];for(let d=Ve;d{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i}),this.appInits=p(bs,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(ln(s))n.push(s);else if(Hc(s)){let a=new Promise((u,c)=>{s.subscribe({complete:u,error:c})});n.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),n.length===0&&i(),this.initialized=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Es=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function Sb(){return typeof $localize<"u"&&$localize.locale||Zo}var Is=new E("LocaleId",{providedIn:"root",factory:()=>p(Is,j.Optional|j.SkipSelf)||Sb()});var wr=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ve(!1)}add(){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.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),rc=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},_s=(()=>{let e=class e{compileModuleSync(n){return new Qo(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let i=this.compileModuleSync(n),o=Jf(n),s=Hh(o.declarations).reduce((a,u)=>{let c=rn(u);return c&&a.push(new hr(c)),a},[]);return new rc(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Tb=new E("compilerOptions");var Gc=new E(""),ui=new E(""),Ms=(()=>{let e=class e{constructor(n,i,o){this._ngZone=n,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Wc||(xb(o),o.addToWindow(i)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Z.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&this._pendingCount===0&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>i.updateCb&&i.updateCb(n)?(clearTimeout(i.timeoutId),!1):!0),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:o})}whenStable(n,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,i,o){return[]}};e.\u0275fac=function(i){return new(i||e)(y(Z),y(Ss),y(ui))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Ss=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return Wc?.findTestabilityInTree(this,n,i)??null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function xb(t){Wc=t}var Wc,zr=null,Gp=new E("AllowMultipleToken"),Wp=new E("PlatformDestroyListeners"),Ts=new E("appBootstrapListener");function Ab(t,e,r){let n=new Qo(r);return Promise.resolve(n)}function Nb(){Ed(()=>{throw new C(600,!1)})}function Ob(t){return t.isBoundToModule}function Rb(t){if(zr&&!zr.get(Gp,!1))throw new C(400,!1);Nb(),zr=t;let e=t.get(Zp);return Fb(t),e}function Fb(t){t.get(Dc,null)?.forEach(r=>r())}function qc(t,e,r=[]){let n=`Platform: ${e}`,i=new E(n);return(o=[])=>{let s=qp();if(!s||s.injector.get(Gp,!1)){let a=[...r,...o,{provide:i,useValue:!0}];t?t(a):Rb(kb(a,n))}return Pb(i)}}function Pb(t){let e=qp();if(!e)throw new C(401,!1);return e}function kb(t=[],e){return qe.create({name:e,providers:[{provide:ds,useValue:"platform"},{provide:Wp,useValue:new Set([()=>zr=null])},...t]})}function qp(){return zr?.get(Zp)??null}var Zp=(()=>{let e=class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){let o=Vb(i?.ngZone,Lb({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return o.run(()=>{let s=lb(n.moduleType,this.injector,Ub(()=>o)),a=s.injector.get(It,null);return o.runOutsideAngular(()=>{let u=o.onError.subscribe({next:c=>{a.handleError(c)}});s.onDestroy(()=>{xo(this._modules,s),u.unsubscribe()})}),jb(a,o,()=>{let u=s.injector.get(zp);return u.runInitializers(),u.donePromise.then(()=>{let c=s.injector.get(Is,Zo);return tb(c||Zo),this._moduleDoBootstrap(s),s})})})}bootstrapModule(n,i=[]){let o=Yp({},i);return Ab(this.injector,o,n).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(n){let i=n.injector.get(Ln);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>i.bootstrap(o));else if(n.instance.ngDoBootstrap)n.instance.ngDoBootstrap(i);else throw new C(-403,!1);this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new C(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());let n=this._injector.get(Wp,null);n&&(n.forEach(i=>i()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(i){return new(i||e)(y(qe))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function Lb(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}function Vb(t="zone.js",e){return t==="noop"?new Bu:t==="zone.js"?new Z(e):t}function jb(t,e,r){try{let n=r();return ln(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}function Yp(t,e){return Array.isArray(e)?e.reduce(Yp,t):m(m({},t),e)}var Ln=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=p(Qp),this.zoneIsStable=p(Sp),this.componentTypes=[],this.components=[],this.isStable=p(wr).hasPendingTasks.pipe(le(n=>n?I(!1):this.zoneIsStable),Kn(),vo()),this._injector=p(xe)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,i){let o=n instanceof Uo;if(!this._injector.get(zp).done){let b="Cannot bootstrap as there are still asynchronous initializers running."+(!o&&Kf(n)?"":" Bootstrap components in the `ngDoBootstrap` method of the root module.");throw new C(405,!1)}let a;o?a=n:a=this._injector.get(gs).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let u=Ob(a)?void 0:this._injector.get(an),c=i||a.selector,l=a.create(qe.NULL,[],c,u),d=l.location.nativeElement,f=l.injector.get(Gc,null);return f?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),xo(this.components,l),f?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new C(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){let i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){let i=n;xo(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let i=this._injector.get(Ts,[]);[...this._bootstrapListeners,...i].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>xo(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new C(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function xo(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function Ff(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var Qp=new E("",{providedIn:"root",factory:()=>p(It).handleError.bind(void 0)});function Bb(){let t=p(Z),e=p(It);return r=>t.runOutsideAngular(()=>e.handleError(r))}var $b=(()=>{let e=class e{constructor(){this.zone=p(Z),this.applicationRef=p(Ln)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Ub(t){return[{provide:Z,useFactory:t},{provide:ri,multi:!0,useFactory:()=>{let e=p($b,{optional:!0});return()=>e.initialize()}},{provide:Qp,useFactory:Bb},{provide:Sp,useFactory:Tp}]}var Kp=qc(null,"core",[]),Jp=(()=>{let e=class e{constructor(n){}};e.\u0275fac=function(i){return new(i||e)(y(Ln))},e.\u0275mod=ee({type:e}),e.\u0275inj=X({});let t=e;return t})();function br(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Xp(t){let e=rn(t);if(!e)return null;let r=new hr(e);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var Kc=null;function xt(){return Kc}function og(t){Kc||(Kc=t)}var ks=class{},be=new E("DocumentToken"),rl=(()=>{let e=class e{historyGo(n){throw new Error("Not implemented")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>(()=>p(Hb))(),providedIn:"platform"});let t=e;return t})(),sg=new E("Location Initialized"),Hb=(()=>{let e=class e extends rl{constructor(){super(),this._doc=p(be),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return xt().getBaseHref(this._doc)}onPopState(n){let i=xt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",n,!1),()=>i.removeEventListener("popstate",n)}onHashChange(n){let i=xt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",n,!1),()=>i.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,i,o){this._history.pushState(n,i,o)}replaceState(n,i,o){this._history.replaceState(n,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>(()=>new e)(),providedIn:"platform"});let t=e;return t})();function il(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function eg(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,n=r-(t[r-1]==="/"?1:0);return t.slice(0,n)+t.slice(r)}function Wt(t){return t&&t[0]!=="?"?"?"+t:t}var Yt=(()=>{let e=class e{historyGo(n){throw new Error("Not implemented")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>(()=>p(ol))(),providedIn:"root"});let t=e;return t})(),ag=new E("appBaseHref"),ol=(()=>{let e=class e extends Yt{constructor(n,i){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??p(be).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 il(this._baseHref,n)}path(n=!1){let i=this._platformLocation.pathname+Wt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${i}${o}`:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+Wt(s));this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+Wt(s));this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(y(rl),y(ag,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ug=(()=>{let e=class e extends Yt{constructor(n,i){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let i=this._platformLocation.hash;return i==null&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(n){let i=il(this._baseHref,n);return i.length>0?"#"+i:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+Wt(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+Wt(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(y(rl),y(ag,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Ir=(()=>{let e=class e{constructor(n){this._subject=new J,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let i=this._locationStrategy.getBaseHref();this._basePath=Wb(eg(tg(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,i=""){return this.path()==this.normalize(n+Wt(i))}normalize(n){return e.stripTrailingSlash(Gb(this._basePath,tg(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,i="",o=null){this._locationStrategy.pushState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Wt(i)),o)}replaceState(n,i="",o=null){this._locationStrategy.replaceState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Wt(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{let i=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",i){this._urlChangeListeners.forEach(o=>o(n,i))}subscribe(n,i,o){return this._subject.subscribe({next:n,error:i,complete:o})}};e.normalizeQueryParams=Wt,e.joinWithSlash=il,e.stripTrailingSlash=eg,e.\u0275fac=function(i){return new(i||e)(y(Yt))},e.\u0275prov=w({token:e,factory:()=>zb(),providedIn:"root"});let t=e;return t})();function zb(){return new Ir(y(Yt))}function Gb(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function tg(t){return t.replace(/\/index.html$/,"")}function Wb(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}var Ne=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(Ne||{}),K=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(K||{}),$e=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}($e||{}),qt=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t.Infinity=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}(qt||{});function qb(t){return Ze(t)[de.LocaleId]}function Zb(t,e,r){let n=Ze(t),i=[n[de.DayPeriodsFormat],n[de.DayPeriodsStandalone]],o=Qe(i,e);return Qe(o,r)}function Yb(t,e,r){let n=Ze(t),i=[n[de.DaysFormat],n[de.DaysStandalone]],o=Qe(i,e);return Qe(o,r)}function Qb(t,e,r){let n=Ze(t),i=[n[de.MonthsFormat],n[de.MonthsStandalone]],o=Qe(i,e);return Qe(o,r)}function Kb(t,e){let n=Ze(t)[de.Eras];return Qe(n,e)}function xs(t,e){let r=Ze(t);return Qe(r[de.DateFormat],e)}function As(t,e){let r=Ze(t);return Qe(r[de.TimeFormat],e)}function Ns(t,e){let n=Ze(t)[de.DateTimeFormat];return Qe(n,e)}function Vs(t,e){let r=Ze(t),n=r[de.NumberSymbols][e];if(typeof n>"u"){if(e===qt.CurrencyDecimal)return r[de.NumberSymbols][qt.Decimal];if(e===qt.CurrencyGroup)return r[de.NumberSymbols][qt.Group]}return n}function cg(t){if(!t[de.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[de.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Jb(t){let e=Ze(t);return cg(e),(e[de.ExtraData][2]||[]).map(n=>typeof n=="string"?Zc(n):[Zc(n[0]),Zc(n[1])])}function Xb(t,e,r){let n=Ze(t);cg(n);let i=[n[de.ExtraData][0],n[de.ExtraData][1]],o=Qe(i,e)||[];return Qe(o,r)||[]}function Qe(t,e){for(let r=e;r>-1;r--)if(typeof t[r]<"u")return t[r];throw new Error("Locale data API: locale data undefined")}function Zc(t){let[e,r]=t.split(":");return{hours:+e,minutes:+r}}var eE=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ci={},tE=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Zt=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(Zt||{}),H=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(H||{}),U=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(U||{});function nE(t,e,r,n){let i=dE(t);e=Gt(r,e)||e;let s=[],a;for(;e;)if(a=tE.exec(e),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;e=l}else{s.push(e);break}let u=i.getTimezoneOffset();n&&(u=dg(n,u),i=lE(i,n,!0));let c="";return s.forEach(l=>{let d=uE(l);c+=d?d(i,r,u):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Ls(t,e,r){let n=new Date(0);return n.setFullYear(t,e,r),n.setHours(0,0,0),n}function Gt(t,e){let r=qb(t);if(ci[r]=ci[r]||{},ci[r][e])return ci[r][e];let n="";switch(e){case"shortDate":n=xs(t,$e.Short);break;case"mediumDate":n=xs(t,$e.Medium);break;case"longDate":n=xs(t,$e.Long);break;case"fullDate":n=xs(t,$e.Full);break;case"shortTime":n=As(t,$e.Short);break;case"mediumTime":n=As(t,$e.Medium);break;case"longTime":n=As(t,$e.Long);break;case"fullTime":n=As(t,$e.Full);break;case"short":let i=Gt(t,"shortTime"),o=Gt(t,"shortDate");n=Os(Ns(t,$e.Short),[i,o]);break;case"medium":let s=Gt(t,"mediumTime"),a=Gt(t,"mediumDate");n=Os(Ns(t,$e.Medium),[s,a]);break;case"long":let u=Gt(t,"longTime"),c=Gt(t,"longDate");n=Os(Ns(t,$e.Long),[u,c]);break;case"full":let l=Gt(t,"fullTime"),d=Gt(t,"fullDate");n=Os(Ns(t,$e.Full),[l,d]);break}return n&&(ci[r][e]=n),n}function Os(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(r,n){return e!=null&&n in e?e[n]:r})),t}function dt(t,e,r="-",n,i){let o="";(t<0||i&&t<=0)&&(i?t=-t+1:(t=-t,o=r));let s=String(t);for(;s.length0||a>-r)&&(a+=r),t===H.Hours)a===0&&r===-12&&(a=12);else if(t===H.FractionalSeconds)return rE(a,e);let u=Vs(s,qt.MinusSign);return dt(a,e,u,n,i)}}function iE(t,e){switch(t){case H.FullYear:return e.getFullYear();case H.Month:return e.getMonth();case H.Date:return e.getDate();case H.Hours:return e.getHours();case H.Minutes:return e.getMinutes();case H.Seconds:return e.getSeconds();case H.FractionalSeconds:return e.getMilliseconds();case H.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function te(t,e,r=Ne.Format,n=!1){return function(i,o){return oE(i,o,t,e,r,n)}}function oE(t,e,r,n,i,o){switch(r){case U.Months:return Qb(e,i,n)[t.getMonth()];case U.Days:return Yb(e,i,n)[t.getDay()];case U.DayPeriods:let s=t.getHours(),a=t.getMinutes();if(o){let c=Jb(e),l=Xb(e,i,n),d=c.findIndex(f=>{if(Array.isArray(f)){let[h,b]=f,R=s>=h.hours&&a>=h.minutes,S=s0?Math.floor(i/60):Math.ceil(i/60);switch(t){case Zt.Short:return(i>=0?"+":"")+dt(s,2,o)+dt(Math.abs(i%60),2,o);case Zt.ShortGMT:return"GMT"+(i>=0?"+":"")+dt(s,1,o);case Zt.Long:return"GMT"+(i>=0?"+":"")+dt(s,2,o)+":"+dt(Math.abs(i%60),2,o);case Zt.Extended:return n===0?"Z":(i>=0?"+":"")+dt(s,2,o)+":"+dt(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}var sE=0,Ps=4;function aE(t){let e=Ls(t,sE,1).getDay();return Ls(t,0,1+(e<=Ps?Ps:Ps+7)-e)}function lg(t){return Ls(t.getFullYear(),t.getMonth(),t.getDate()+(Ps-t.getDay()))}function Yc(t,e=!1){return function(r,n){let i;if(e){let o=new Date(r.getFullYear(),r.getMonth(),1).getDay()-1,s=r.getDate();i=1+Math.floor((s+o)/7)}else{let o=lg(r),s=aE(o.getFullYear()),a=o.getTime()-s.getTime();i=1+Math.round(a/6048e5)}return dt(i,t,Vs(n,qt.MinusSign))}}function Fs(t,e=!1){return function(r,n){let o=lg(r).getFullYear();return dt(o,t,Vs(n,qt.MinusSign),e)}}var Qc={};function uE(t){if(Qc[t])return Qc[t];let e;switch(t){case"G":case"GG":case"GGG":e=te(U.Eras,K.Abbreviated);break;case"GGGG":e=te(U.Eras,K.Wide);break;case"GGGGG":e=te(U.Eras,K.Narrow);break;case"y":e=me(H.FullYear,1,0,!1,!0);break;case"yy":e=me(H.FullYear,2,0,!0,!0);break;case"yyy":e=me(H.FullYear,3,0,!1,!0);break;case"yyyy":e=me(H.FullYear,4,0,!1,!0);break;case"Y":e=Fs(1);break;case"YY":e=Fs(2,!0);break;case"YYY":e=Fs(3);break;case"YYYY":e=Fs(4);break;case"M":case"L":e=me(H.Month,1,1);break;case"MM":case"LL":e=me(H.Month,2,1);break;case"MMM":e=te(U.Months,K.Abbreviated);break;case"MMMM":e=te(U.Months,K.Wide);break;case"MMMMM":e=te(U.Months,K.Narrow);break;case"LLL":e=te(U.Months,K.Abbreviated,Ne.Standalone);break;case"LLLL":e=te(U.Months,K.Wide,Ne.Standalone);break;case"LLLLL":e=te(U.Months,K.Narrow,Ne.Standalone);break;case"w":e=Yc(1);break;case"ww":e=Yc(2);break;case"W":e=Yc(1,!0);break;case"d":e=me(H.Date,1);break;case"dd":e=me(H.Date,2);break;case"c":case"cc":e=me(H.Day,1);break;case"ccc":e=te(U.Days,K.Abbreviated,Ne.Standalone);break;case"cccc":e=te(U.Days,K.Wide,Ne.Standalone);break;case"ccccc":e=te(U.Days,K.Narrow,Ne.Standalone);break;case"cccccc":e=te(U.Days,K.Short,Ne.Standalone);break;case"E":case"EE":case"EEE":e=te(U.Days,K.Abbreviated);break;case"EEEE":e=te(U.Days,K.Wide);break;case"EEEEE":e=te(U.Days,K.Narrow);break;case"EEEEEE":e=te(U.Days,K.Short);break;case"a":case"aa":case"aaa":e=te(U.DayPeriods,K.Abbreviated);break;case"aaaa":e=te(U.DayPeriods,K.Wide);break;case"aaaaa":e=te(U.DayPeriods,K.Narrow);break;case"b":case"bb":case"bbb":e=te(U.DayPeriods,K.Abbreviated,Ne.Standalone,!0);break;case"bbbb":e=te(U.DayPeriods,K.Wide,Ne.Standalone,!0);break;case"bbbbb":e=te(U.DayPeriods,K.Narrow,Ne.Standalone,!0);break;case"B":case"BB":case"BBB":e=te(U.DayPeriods,K.Abbreviated,Ne.Format,!0);break;case"BBBB":e=te(U.DayPeriods,K.Wide,Ne.Format,!0);break;case"BBBBB":e=te(U.DayPeriods,K.Narrow,Ne.Format,!0);break;case"h":e=me(H.Hours,1,-12);break;case"hh":e=me(H.Hours,2,-12);break;case"H":e=me(H.Hours,1);break;case"HH":e=me(H.Hours,2);break;case"m":e=me(H.Minutes,1);break;case"mm":e=me(H.Minutes,2);break;case"s":e=me(H.Seconds,1);break;case"ss":e=me(H.Seconds,2);break;case"S":e=me(H.FractionalSeconds,1);break;case"SS":e=me(H.FractionalSeconds,2);break;case"SSS":e=me(H.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Rs(Zt.Short);break;case"ZZZZZ":e=Rs(Zt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Rs(Zt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Rs(Zt.Long);break;default:return null}return Qc[t]=e,e}function dg(t,e){t=t.replace(/:/g,"");let r=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(r)?e:r}function cE(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function lE(t,e,r){let n=r?-1:1,i=t.getTimezoneOffset(),o=dg(e,i);return cE(t,n*(o-i))}function dE(t){if(ng(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[i,o=1,s=1]=t.split("-").map(a=>+a);return Ls(i,o-1,s)}let r=parseFloat(t);if(!isNaN(t-r))return new Date(r);let n;if(n=t.match(eE))return fE(n)}let e=new Date(t);if(!ng(e))throw new Error(`Unable to convert "${t}" into a date`);return e}function fE(t){let e=new Date(0),r=0,n=0,i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(r=Number(t[9]+t[10]),n=Number(t[9]+t[11])),i.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));let s=Number(t[4]||0)-r,a=Number(t[5]||0)-n,u=Number(t[6]||0),c=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(e,s,a,u,c),e}function ng(t){return t instanceof Date&&!isNaN(t.valueOf())}function js(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let n=r.indexOf("="),[i,o]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var Jc=class{constructor(e,r,n,i){this.$implicit=e,this.ngForOf=r,this.index=n,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Ke=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,i,o){this._viewContainer=n,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(!1)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let i=this._viewContainer;n.forEachOperation((o,s,a)=>{if(o.previousIndex==null)i.createEmbeddedView(this._template,new Jc(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(s===null?void 0:s);else if(s!==null){let u=i.get(s);i.move(u,a),rg(u,o)}});for(let o=0,s=i.length;o{let s=i.get(o.currentIndex);rg(s,o)})}static ngTemplateContextGuard(n,i){return!0}};e.\u0275fac=function(i){return new(i||e)(g(St),g(jt),g(Tc))},e.\u0275dir=re({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function rg(t,e){t.context.$implicit=e.item}var Je=(()=>{let e=class e{constructor(n,i){this._viewContainer=n,this._context=new Xc,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){ig("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){ig("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,i){return!0}};e.\u0275fac=function(i){return new(i||e)(g(St),g(jt))},e.\u0275dir=re({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),Xc=class{constructor(){this.$implicit=null,this.ngIf=null}};function ig(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${Ee(e)}'.`)}function fg(t,e){return new C(2100,!1)}var el=class{createSubscription(e,r){return Sc(()=>e.subscribe({next:r,error:n=>{throw n}}))}dispose(e){Sc(()=>e.unsubscribe())}},tl=class{createSubscription(e,r){return e.then(r,n=>{throw n})}dispose(e){}},hE=new tl,pE=new el,fn=(()=>{let e=class e{constructor(n){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){return this._obj?n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue:(n&&this._subscribe(n),this._latestValue)}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,i=>this._updateLatestValue(n,i))}_selectStrategy(n){if(ln(n))return hE;if(Hc(n))return pE;throw fg(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,i){n===this._obj&&(this._latestValue=i,this._ref.markForCheck())}};e.\u0275fac=function(i){return new(i||e)(g(kn,16))},e.\u0275pipe=ei({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var gE="mediumDate",mE=new E("DATE_PIPE_DEFAULT_TIMEZONE"),vE=new E("DATE_PIPE_DEFAULT_OPTIONS"),hg=(()=>{let e=class e{constructor(n,i,o){this.locale=n,this.defaultTimezone=i,this.defaultOptions=o}transform(n,i,o,s){if(n==null||n===""||n!==n)return null;try{let a=i??this.defaultOptions?.dateFormat??gE,u=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return nE(n,a,s||this.locale,u)}catch(a){throw fg(e,a.message)}}};e.\u0275fac=function(i){return new(i||e)(g(Is,16),g(mE,24),g(vE,24))},e.\u0275pipe=ei({name:"date",type:e,pure:!0,standalone:!0});let t=e;return t})();var _r=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=X({});let t=e;return t})(),pg="browser",yE="server";function sl(t){return t===yE}var gg=(()=>{let e=class e{};e.\u0275prov=w({token:e,providedIn:"root",factory:()=>new nl(y(be),window)});let t=e;return t})(),nl=class{constructor(e,r){this.document=e,this.window=r,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;let r=DE(this.document,e);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(e){this.supportsScrolling()&&(this.window.history.scrollRestoration=e)}scrollToElement(e){let r=e.getBoundingClientRect(),n=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],i-o[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}};function DE(t,e){let r=t.getElementById(e)||t.getElementsByName(e)[0];if(r)return r;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=n.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}i=n.nextNode()}}return null}var Er=class{};var di=class{},$s=class{},Vn=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` -`).forEach(r=>{let n=r.indexOf(":");if(n>0){let i=r.slice(0,n),o=i.toLowerCase(),s=r.slice(n+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new t;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,r);let i=(e.op==="a"?this.headers.get(r):void 0)||[];i.push(...n),this.headers.set(r,i);break;case"d":let o=e.value;if(!o)this.headers.delete(r),this.normalizedNames.delete(r);else{let s=this.headers.get(r);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,s)}break}}setHeaderEntries(e,r){let n=(Array.isArray(r)?r:[r]).map(o=>o.toString()),i=e.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var ul=class{encodeKey(e){return mg(e)}encodeValue(e){return mg(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function bE(t,e){let r=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],u=r.get(s)||[];u.push(a),r.set(s,u)}),r}var EE=/%(\d[a-f0-9])/gi,IE={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function mg(t){return encodeURIComponent(t).replace(EE,(e,r)=>IE[r]??e)}function Bs(t){return`${t}`}var hn=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new ul,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=bE(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let n=e.fromObject[r],i=Array.isArray(n)?n.map(Bs):[Bs(n)];this.map.set(r,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(n=>{let i=e[n];Array.isArray(i)?i.forEach(o=>{r.push({param:n,value:o,op:"a"})}):r.push({param:n,value:i,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(n=>r+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new t({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(Bs(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],i=n.indexOf(Bs(e.value));i!==-1&&n.splice(i,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var cl=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function _E(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function vg(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function yg(t){return typeof Blob<"u"&&t instanceof Blob}function Dg(t){return typeof FormData<"u"&&t instanceof FormData}function ME(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var li=class t{constructor(e,r,n,i){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(_E(this.method)||i?(this.body=n!==void 0?n:null,o=i):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers||(this.headers=new Vn),this.context||(this.context=new cl),!this.params)this.params=new hn,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),u=a===-1?"?":ad.set(f,e.setHeaders[f]),u)),e.setParams&&(c=Object.keys(e.setParams).reduce((d,f)=>d.set(f,e.setParams[f]),c)),new t(r,n,o,{params:c,headers:u,context:l,reportProgress:a,responseType:i,withCredentials:s})}},Mr=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Mr||{}),fi=class{constructor(e,r=200,n="OK"){this.headers=e.headers||new Vn,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},ll=class t extends fi{constructor(e={}){super(e),this.type=Mr.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Us=class t extends fi{constructor(e={}){super(e),this.type=Mr.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Hs=class extends fi{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}};function al(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var dl=(()=>{let e=class e{constructor(n){this.handler=n}request(n,i,o={}){let s;if(n instanceof li)s=n;else{let c;o.headers instanceof Vn?c=o.headers:c=new Vn(o.headers);let l;o.params&&(o.params instanceof hn?l=o.params:l=new hn({fromObject:o.params})),s=new li(n,i,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=I(s).pipe(kt(c=>this.handler.handle(c)));if(n instanceof li||o.observe==="events")return a;let u=a.pipe(we(c=>c instanceof Us));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return u.pipe(A(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return u.pipe(A(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return u.pipe(A(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return u.pipe(A(c=>c.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,i={}){return this.request("DELETE",n,i)}get(n,i={}){return this.request("GET",n,i)}head(n,i={}){return this.request("HEAD",n,i)}jsonp(n,i){return this.request("JSONP",n,{params:new hn().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,i={}){return this.request("OPTIONS",n,i)}patch(n,i,o={}){return this.request("PATCH",n,al(o,i))}post(n,i,o={}){return this.request("POST",n,al(o,i))}put(n,i,o={}){return this.request("PUT",n,al(o,i))}};e.\u0275fac=function(i){return new(i||e)(y(di))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function Eg(t,e){return e(t)}function SE(t,e){return(r,n)=>e.intercept(r,{handle:i=>t(i,n)})}function TE(t,e,r){return(n,i)=>r.runInContext(()=>e(n,o=>t(o,i)))}var fl=new E(""),hl=new E(""),xE=new E(""),AE=new E("");function NE(){let t=null;return(e,r)=>{t===null&&(t=(p(fl,{optional:!0})??[]).reduceRight(SE,Eg));let n=p(wr),i=n.add();return t(e,r).pipe(Xt(()=>n.remove(i)))}}var Cg=(()=>{let e=class e extends di{constructor(n,i){super(),this.backend=n,this.injector=i,this.chain=null,this.pendingTasks=p(wr);let o=p(AE,{optional:!0});this.backend=o??n}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(hl),...this.injector.get(xE,[])]));this.chain=o.reduceRight((s,a)=>TE(s,a,this.injector),Eg)}let i=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Xt(()=>this.pendingTasks.remove(i)))}};e.\u0275fac=function(i){return new(i||e)(y($s),y(xe))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();var OE=/^\)\]\}',?\n/;function RE(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var wg=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new C(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?q(i.\u0275loadImpl()):I(null)).pipe(le(()=>new B(s=>{let a=i.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((S,_)=>a.setRequestHeader(S,_.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let S=n.detectContentTypeHeader();S!==null&&a.setRequestHeader("Content-Type",S)}if(n.responseType){let S=n.responseType.toLowerCase();a.responseType=S!=="json"?S:"text"}let u=n.serializeBody(),c=null,l=()=>{if(c!==null)return c;let S=a.statusText||"OK",_=new Vn(a.getAllResponseHeaders()),ce=RE(a)||n.url;return c=new ll({headers:_,status:a.status,statusText:S,url:ce}),c},d=()=>{let{headers:S,status:_,statusText:ce,url:Ce}=l(),ie=null;_!==204&&(ie=typeof a.response>"u"?a.responseText:a.response),_===0&&(_=ie?200:0);let pt=_>=200&&_<300;if(n.responseType==="json"&&typeof ie=="string"){let Le=ie;ie=ie.replace(OE,"");try{ie=ie!==""?JSON.parse(ie):null}catch(Kt){ie=Le,pt&&(pt=!1,ie={error:Kt,text:ie})}}pt?(s.next(new Us({body:ie,headers:S,status:_,statusText:ce,url:Ce||void 0})),s.complete()):s.error(new Hs({error:ie,headers:S,status:_,statusText:ce,url:Ce||void 0}))},f=S=>{let{url:_}=l(),ce=new Hs({error:S,status:a.status||0,statusText:a.statusText||"Unknown Error",url:_||void 0});s.error(ce)},h=!1,b=S=>{h||(s.next(l()),h=!0);let _={type:Mr.DownloadProgress,loaded:S.loaded};S.lengthComputable&&(_.total=S.total),n.responseType==="text"&&a.responseText&&(_.partialText=a.responseText),s.next(_)},R=S=>{let _={type:Mr.UploadProgress,loaded:S.loaded};S.lengthComputable&&(_.total=S.total),s.next(_)};return a.addEventListener("load",d),a.addEventListener("error",f),a.addEventListener("timeout",f),a.addEventListener("abort",f),n.reportProgress&&(a.addEventListener("progress",b),u!==null&&a.upload&&a.upload.addEventListener("progress",R)),a.send(u),s.next({type:Mr.Sent}),()=>{a.removeEventListener("error",f),a.removeEventListener("abort",f),a.removeEventListener("load",d),a.removeEventListener("timeout",f),n.reportProgress&&(a.removeEventListener("progress",b),u!==null&&a.upload&&a.upload.removeEventListener("progress",R)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(i){return new(i||e)(y(Er))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Ig=new E("XSRF_ENABLED"),FE="XSRF-TOKEN",PE=new E("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>FE}),kE="X-XSRF-TOKEN",LE=new E("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>kE}),zs=class{},VE=(()=>{let e=class e{constructor(n,i,o){this.doc=n,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=js(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(i){return new(i||e)(y(be),y(Ht),y(PE))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function jE(t,e){let r=t.url.toLowerCase();if(!p(Ig)||t.method==="GET"||t.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(t);let n=p(zs).getToken(),i=p(LE);return n!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),e(t)}var _g=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(_g||{});function BE(t,e){return{\u0275kind:t,\u0275providers:e}}function $E(...t){let e=[dl,wg,Cg,{provide:di,useExisting:Cg},{provide:$s,useExisting:wg},{provide:hl,useValue:jE,multi:!0},{provide:Ig,useValue:!0},{provide:zs,useClass:VE}];for(let r of t)e.push(...r.\u0275providers);return ls(e)}var bg=new E("LEGACY_INTERCEPTOR_FN");function UE(){return BE(_g.LegacyInterceptors,[{provide:bg,useFactory:NE},{provide:hl,useExisting:bg,multi:!0}])}var Mg=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=X({providers:[$E(UE())]});let t=e;return t})();var ml=class extends ks{constructor(){super(...arguments),this.supportsDOMEvents=!0}},vl=class t extends ml{static makeCurrent(){og(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=zE();return r==null?null:GE(r)}resetBaseElement(){hi=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return js(document.cookie,e)}},hi=null;function zE(){return hi=hi||document.querySelector("base"),hi?hi.getAttribute("href"):null}var Gs;function GE(t){Gs=Gs||document.createElement("a"),Gs.setAttribute("href",t);let e=Gs.pathname;return e.charAt(0)==="/"?e:`/${e}`}var yl=class{addToWindow(e){ye.getAngularTestability=(n,i=!0)=>{let o=e.findTestabilityInTree(n,i);if(o==null)throw new C(5103,!1);return o},ye.getAllAngularTestabilities=()=>e.getAllTestabilities(),ye.getAllAngularRootElements=()=>e.getAllRootElements();let r=n=>{let i=ye.getAllAngularTestabilities(),o=i.length,s=!1,a=function(u){s=s||u,o--,o==0&&n(s)};i.forEach(u=>{u.whenStable(a)})};ye.frameworkStabilizers||(ye.frameworkStabilizers=[]),ye.frameworkStabilizers.push(r)}findTestabilityInTree(e,r,n){if(r==null)return null;let i=e.getTestability(r);return i??(n?xt().isShadowRoot(r)?this.findTestabilityInTree(e,r.host,!0):this.findTestabilityInTree(e,r.parentElement,!0):null)}},WE=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Dl=new E("EventManagerPlugins"),Ag=(()=>{let e=class e{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,i,o){return this._findPluginFor(i).addEventListener(n,i,o)}getZone(){return this._zone}_findPluginFor(n){let i=this._eventNameToPlugin.get(n);if(i)return i;if(i=this._plugins.find(s=>s.supports(n)),!i)throw new C(5101,!1);return this._eventNameToPlugin.set(n,i),i}};e.\u0275fac=function(i){return new(i||e)(y(Dl),y(Z))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Ws=class{constructor(e){this._doc=e}},pl="ng-app-id",Ng=(()=>{let e=class e{constructor(n,i,o,s={}){this.doc=n,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=sl(s),this.resetHostNodes()}addStyles(n){for(let i of n)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(n){for(let i of n)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(i=>i.remove()),n.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let i of this.getAllStyles())this.addStyleToHost(n,i)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let i of this.hostNodes)this.addStyleToHost(i,n)}onStyleRemoved(n){let i=this.styleRef;i.get(n)?.elements?.forEach(o=>o.remove()),i.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${pl}="${this.appId}"]`);if(n?.length){let i=new Map;return n.forEach(o=>{o.textContent!=null&&i.set(o.textContent,o)}),i}return null}changeUsageCount(n,i){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=i,s.usage}return o.set(n,{usage:i,elements:[]}),i}getStyleElement(n,i){let o=this.styleNodesInDOM,s=o?.get(i);if(s?.parentNode===n)return o.delete(i),s.removeAttribute(pl),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(pl,this.appId),n.appendChild(a),a}}addStyleToHost(n,i){let o=this.getStyleElement(n,i),s=this.styleRef,a=s.get(i)?.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(y(be),y(fs),y(Cc,8),y(Ht))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),gl={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},wl=/%COMP%/g,Og="%COMP%",qE=`_nghost-${Og}`,ZE=`_ngcontent-${Og}`,YE=!0,QE=new E("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>YE});function KE(t){return ZE.replace(wl,t)}function JE(t){return qE.replace(wl,t)}function Rg(t,e){return e.map(r=>r.replace(wl,t))}var Sg=(()=>{let e=class e{constructor(n,i,o,s,a,u,c,l=null){this.eventManager=n,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=u,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=sl(u),this.defaultRenderer=new pi(n,a,c,this.platformIsServer)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===wt.ShadowDom&&(i=W(m({},i),{encapsulation:wt.Emulated}));let o=this.getOrCreateRenderer(n,i);return o instanceof qs?o.applyToHost(n):o instanceof gi&&o.applyStyles(),o}getOrCreateRenderer(n,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,u=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(i.encapsulation){case wt.Emulated:s=new qs(c,l,i,this.appId,d,a,u,f);break;case wt.ShadowDom:return new Cl(c,l,n,i,a,u,this.nonce,f);default:s=new gi(c,l,i,d,a,u,f);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(y(Ag),y(Ng),y(fs),y(QE),y(be),y(Ht),y(Z),y(Cc))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),pi=class{constructor(e,r,n,i){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(gl[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(Tg(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(Tg(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new C(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,i){if(i){r=i+":"+r;let o=gl[i];o?e.setAttributeNS(o,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let i=gl[n];i?e.removeAttributeNS(i,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,i){i&(Vt.DashCase|Vt.Important)?e.style.setProperty(r,n,i&Vt.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&Vt.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=xt().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function Tg(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Cl=class extends pi{constructor(e,r,n,i,o,s,a,u){super(e,o,s,u),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=Rg(i.id,i.styles);for(let l of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},gi=class extends pi{constructor(e,r,n,i,o,s,a,u){super(e,o,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=u?Rg(u,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},qs=class extends gi{constructor(e,r,n,i,o,s,a,u){let c=i+"-"+n.id;super(e,r,n,o,s,a,u,c),this.contentAttr=KE(c),this.hostAttr=JE(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},XE=(()=>{let e=class e extends Ws{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,o){return n.addEventListener(i,o,!1),()=>this.removeEventListener(n,i,o)}removeEventListener(n,i,o){return n.removeEventListener(i,o)}};e.\u0275fac=function(i){return new(i||e)(y(be))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),xg=["alt","control","meta","shift"],eI={"\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"},tI={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},nI=(()=>{let e=class e extends Ws{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,i,o){let s=e.parseEventName(i),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>xt().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let i=n.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(i.pop()),a="",u=i.indexOf("code");if(u>-1&&(i.splice(u,1),a="code."),xg.forEach(l=>{let d=i.indexOf(l);d>-1&&(i.splice(d,1),a+=l+".")}),a+=s,i.length!=0||s.length===0)return null;let c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(n,i){let o=eI[n.key]||n.key,s="";return i.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),xg.forEach(a=>{if(a!==o){let u=tI[a];u(n)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(n,i,o){return s=>{e.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>i(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(i){return new(i||e)(y(be))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function rI(){vl.makeCurrent()}function iI(){return new It}function oI(){return Uh(document),document}var sI=[{provide:Ht,useValue:pg},{provide:Dc,useValue:rI,multi:!0},{provide:be,useFactory:oI,deps:[]}],Fg=qc(Kp,"browser",sI),aI=new E(""),uI=[{provide:ui,useClass:yl,deps:[]},{provide:Gc,useClass:Ms,deps:[Z,Ss,ui]},{provide:Ms,useClass:Ms,deps:[Z,Ss,ui]}],cI=[{provide:ds,useValue:"root"},{provide:It,useFactory:iI,deps:[]},{provide:Dl,useClass:XE,multi:!0,deps:[be,Z,Ht]},{provide:Dl,useClass:nI,multi:!0,deps:[be]},Sg,Ng,Ag,{provide:Qr,useExisting:Sg},{provide:Er,useClass:WE,deps:[]},[]],Pg=(()=>{let e=class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:fs,useValue:n.appId}]}}};e.\u0275fac=function(i){return new(i||e)(y(aI,12))},e.\u0275mod=ee({type:e}),e.\u0275inj=X({providers:[...cI,...uI],imports:[_r,Jp]});let t=e;return t})();function lI(){return new bl(y(be))}var bl=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(i){return new(i||e)(y(be))},e.\u0275prov=w({token:e,factory:function(i){let o=null;return i?o=new i:o=lI(),o},providedIn:"root"});let t=e;return t})();var F="primary",Ai=Symbol("RouteTitle"),Sl=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function Nr(t){return new Sl(t)}function dI(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.lengthn[o]===i)}else return t===e}function qg(t){return t.length>0?t[t.length-1]:null}function vn(t){return Ha(t)?t:ln(t)?q(Promise.resolve(t)):I(t)}var hI={exact:Yg,subset:Qg},Zg={exact:pI,subset:gI,ignored:()=>!0};function Lg(t,e,r){return hI[r.paths](t.root,e.root,r.matrixParams)&&Zg[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function pI(t,e){return Nt(t,e)}function Yg(t,e,r){if(!Bn(t.segments,e.segments)||!Qs(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!Yg(t.children[n],e.children[n],r))return!1;return!0}function gI(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>Wg(t[r],e[r]))}function Qg(t,e,r){return Kg(t,e,e.segments,r)}function Kg(t,e,r,n){if(t.segments.length>r.length){let i=t.segments.slice(0,r.length);return!(!Bn(i,r)||e.hasChildren()||!Qs(i,r,n))}else if(t.segments.length===r.length){if(!Bn(t.segments,r)||!Qs(t.segments,r,n))return!1;for(let i in e.children)if(!t.children[i]||!Qg(t.children[i],e.children[i],n))return!1;return!0}else{let i=r.slice(0,t.segments.length),o=r.slice(t.segments.length);return!Bn(t.segments,i)||!Qs(t.segments,i,n)||!t.children[F]?!1:Kg(t.children[F],e,o,n)}}function Qs(t,e,r){return e.every((n,i)=>Zg[r](t[i].parameters,n.parameters))}var pn=class{constructor(e=new z([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Nr(this.queryParams)),this._queryParamMap}toString(){return yI.serialize(this)}},z=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ks(this)}},jn=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap||(this._parameterMap=Nr(this.parameters)),this._parameterMap}toString(){return Xg(this)}};function mI(t,e){return Bn(t,e)&&t.every((r,n)=>Nt(r.parameters,e[n].parameters))}function Bn(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function vI(t,e){let r=[];return Object.entries(t.children).forEach(([n,i])=>{n===F&&(r=r.concat(e(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==F&&(r=r.concat(e(i,n)))}),r}var Ni=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>(()=>new bi)(),providedIn:"root"});let t=e;return t})(),bi=class{parse(e){let r=new Al(e);return new pn(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${mi(e.root,!0)}`,n=wI(e.queryParams),i=typeof e.fragment=="string"?`#${DI(e.fragment)}`:"";return`${r}${n}${i}`}},yI=new bi;function Ks(t){return t.segments.map(e=>Xg(e)).join("/")}function mi(t,e){if(!t.hasChildren())return Ks(t);if(e){let r=t.children[F]?mi(t.children[F],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==F&&n.push(`${i}:${mi(o,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=vI(t,(n,i)=>i===F?[mi(t.children[F],!1)]:[`${i}:${mi(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[F]!=null?`${Ks(t)}/${r[0]}`:`${Ks(t)}/(${r.join("//")})`}}function Jg(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Zs(t){return Jg(t).replace(/%3B/gi,";")}function DI(t){return encodeURI(t)}function xl(t){return Jg(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Js(t){return decodeURIComponent(t)}function Vg(t){return Js(t.replace(/\+/g,"%20"))}function Xg(t){return`${xl(t.path)}${CI(t.parameters)}`}function CI(t){return Object.keys(t).map(e=>`;${xl(e)}=${xl(t[e])}`).join("")}function wI(t){let e=Object.keys(t).map(r=>{let n=t[r];return Array.isArray(n)?n.map(i=>`${Zs(r)}=${Zs(i)}`).join("&"):`${Zs(r)}=${Zs(n)}`}).filter(r=>!!r);return e.length?`?${e.join("&")}`:""}var bI=/^[^\/()?;#]+/;function El(t){let e=t.match(bI);return e?e[0]:""}var EI=/^[^\/()?;=#]+/;function II(t){let e=t.match(EI);return e?e[0]:""}var _I=/^[^=?&#]+/;function MI(t){let e=t.match(_I);return e?e[0]:""}var SI=/^[^&#]+/;function TI(t){let e=t.match(SI);return e?e[0]:""}var Al=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new z([],{}):new z([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[F]=new z(e,r)),n}parseSegment(){let e=El(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(e),new jn(Js(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=II(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let i=El(this.remaining);i&&(n=i,this.capture(n))}e[Js(r)]=Js(n)}parseQueryParam(e){let r=MI(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=TI(this.remaining);s&&(n=s,this.capture(n))}let i=Vg(r),o=Vg(n);if(e.hasOwnProperty(i)){let s=e[i];Array.isArray(s)||(s=[s],e[i]=s),s.push(o)}else e[i]=o}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=El(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new C(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=F);let s=this.parseChildren();r[o]=Object.keys(s).length===1?s[F]:new z([],s),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new C(4011,!1)}};function em(t){return t.segments.length>0?new z([],{[F]:t}):t}function tm(t){let e={};for(let n of Object.keys(t.children)){let i=t.children[n],o=tm(i);if(n===F&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[n]=o)}let r=new z(t.segments,e);return xI(r)}function xI(t){if(t.numberOfChildren===1&&t.children[F]){let e=t.children[F];return new z(t.segments.concat(e.segments),e.children)}return t}function Or(t){return t instanceof pn}function AI(t,e,r=null,n=null){let i=nm(t);return rm(i,e,r,n)}function nm(t){let e;function r(o){let s={};for(let u of o.children){let c=r(u);s[u.outlet]=c}let a=new z(o.url,s);return o===t&&(e=a),a}let n=r(t.root),i=em(n);return e??i}function rm(t,e,r,n){let i=t;for(;i.parent;)i=i.parent;if(e.length===0)return Il(i,i,i,r,n);let o=NI(e);if(o.toRoot())return Il(i,i,new z([],{}),r,n);let s=OI(o,i,t),a=s.processChildren?Di(s.segmentGroup,s.index,o.commands):om(s.segmentGroup,s.index,o.commands);return Il(i,s.segmentGroup,a,r,n)}function Xs(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Ei(t){return typeof t=="object"&&t!=null&&t.outlets}function Il(t,e,r,n,i){let o={};n&&Object.entries(n).forEach(([u,c])=>{o[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let s;t===e?s=r:s=im(t,e,r);let a=em(tm(s));return new pn(a,o,i)}function im(t,e,r){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===e?n[i]=r:n[i]=im(o,e,r)}),new z(t.segments,n)}var ea=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&Xs(n[0]))throw new C(4003,!1);let i=n.find(Ei);if(i&&i!==qg(n))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function NI(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new ea(!0,0,t);let e=0,r=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?r=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new ea(r,e,n)}var xr=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function OI(t,e,r){if(t.isAbsolute)return new xr(e,!0,0);if(!r)return new xr(e,!1,NaN);if(r.parent===null)return new xr(r,!0,0);let n=Xs(t.commands[0])?0:1,i=r.segments.length-1+n;return RI(r,i,t.numberOfDoubleDots)}function RI(t,e,r){let n=t,i=e,o=r;for(;o>i;){if(o-=i,n=n.parent,!n)throw new C(4005,!1);i=n.segments.length}return new xr(n,!1,i-o)}function FI(t){return Ei(t[0])?t[0].outlets:{[F]:t}}function om(t,e,r){if(t||(t=new z([],{})),t.segments.length===0&&t.hasChildren())return Di(t,e,r);let n=PI(t,e,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndexo!==F)&&t.children[F]&&t.numberOfChildren===1&&t.children[F].segments.length===0){let o=Di(t.children[F],e,r);return new z(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=om(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new z(t.segments,i)}}function PI(t,e,r){let n=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};for(;i=r.length)return o;let s=t.segments[i],a=r[n];if(Ei(a))break;let u=`${a}`,c=n0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!Bg(u,c,s))return o;n+=2}else{if(!Bg(u,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function Nl(t,e,r){let n=t.segments.slice(0,e),i=0;for(;i{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=Nl(new z([],{}),0,n))}),e}function jg(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function Bg(t,e,r){return t==r.path&&Nt(e,r.parameters)}var Ci="imperative",Xe=class{constructor(e,r){this.id=e,this.url=r}},Rr=class extends Xe{constructor(e,r,n="imperative",i=null){super(e,r),this.type=0,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},ft=class extends Xe{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},gn=class extends Xe{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},mn=class extends Xe{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=16}},Ii=class extends Xe{constructor(e,r,n,i){super(e,r),this.error=n,this.target=i,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},ta=class extends Xe{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ol=class extends Xe{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Rl=class extends Xe{constructor(e,r,n,i,o){super(e,r),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Fl=class extends Xe{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Pl=class extends Xe{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},kl=class{constructor(e){this.route=e,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ll=class{constructor(e){this.route=e,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Vl=class{constructor(e){this.snapshot=e,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},jl=class{constructor(e){this.snapshot=e,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Bl=class{constructor(e){this.snapshot=e,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},$l=class{constructor(e){this.snapshot=e,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},na=class{constructor(e,r,n){this.routerEvent=e,this.position=r,this.anchor=n,this.type=15}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},_i=class{},Mi=class{constructor(e){this.url=e}};var Ul=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Oi,this.attachRef=null}},Oi=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,i){let o=this.getOrCreateContext(n);o.outlet=i,this.contexts.set(n,o)}onChildOutletDestroyed(n){let i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new Ul,this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ra=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=Hl(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=Hl(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=zl(e,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return zl(e,this._root).map(r=>r.value)}};function Hl(t,e){if(t===e.value)return e;for(let r of e.children){let n=Hl(t,r);if(n)return n}return null}function zl(t,e){if(t===e.value)return[e];for(let r of e.children){let n=zl(t,r);if(n.length)return n.unshift(e),n}return[]}var Ue=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function Tr(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var ia=class extends ra{constructor(e,r){super(e),this.snapshot=r,ed(this,e)}toString(){return this.snapshot.toString()}};function sm(t,e){let r=LI(t,e),n=new ve([new jn("",{})]),i=new ve({}),o=new ve({}),s=new ve({}),a=new ve(""),u=new ht(n,i,s,a,o,F,e,r.root);return u.snapshot=r.root,new ia(new Ue(u,[]),r)}function LI(t,e){let r={},n={},i={},o="",s=new Si([],r,i,o,n,F,e,null,{});return new oa("",new Ue(s,[]))}var ht=class{constructor(e,r,n,i,o,s,a,u){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(A(c=>c[Ai]))??I(void 0),this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(A(e=>Nr(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(A(e=>Nr(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Xl(t,e,r="emptyOnly"){let n,{routeConfig:i}=t;return e!==null&&(r==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:m(m({},e.params),t.params),data:m(m({},e.data),t.data),resolve:m(m(m(m({},t.data),e.data),i?.data),t._resolvedData)}:n={params:t.params,data:t.data,resolve:m(m({},t.data),t._resolvedData??{})},i&&um(i)&&(n.resolve[Ai]=i.title),n}var Si=class{get title(){return this.data?.[Ai]}constructor(e,r,n,i,o,s,a,u,c){this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Nr(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Nr(this.queryParams)),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},oa=class extends ra{constructor(e,r){super(r),this.url=e,ed(this,r)}toString(){return am(this._root)}};function ed(t,e){e.value._routerState=t,e.children.forEach(r=>ed(t,r))}function am(t){let e=t.children.length>0?` { ${t.children.map(am).join(", ")} } `:"";return`${t.value}${e}`}function _l(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,Nt(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),Nt(e.params,r.params)||t.paramsSubject.next(r.params),fI(e.url,r.url)||t.urlSubject.next(r.url),Nt(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Gl(t,e){let r=Nt(t.params,e.params)&&mI(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||Gl(t.parent,e.parent))}function um(t){return typeof t.title=="string"||t.title===null}var td=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=F,this.activateEvents=new J,this.deactivateEvents=new J,this.attachEvents=new J,this.detachEvents=new J,this.parentContexts=p(Oi),this.location=p(St),this.changeDetector=p(kn),this.environmentInjector=p(xe),this.inputBinder=p(la,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:i,previousValue:o}=n.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new C(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,i){if(this.isActivated)throw new C(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,c=new Wl(n,u,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:c,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=re({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[ut]});let t=e;return t})(),Wl=class{constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n}get(e,r){return e===ht?this.route:e===Oi?this.childContexts:this.parent.get(e,r)}},la=new E(""),$g=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:i}=n,o=Ur([i.queryParams,i.params,i.data]).pipe(le(([s,a,u],c)=>(u=m(m(m({},s),a),u),c===0?I(u):Promise.resolve(u)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(n);return}let a=Xp(i.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:u}of a.inputs)n.activatedComponentRef.setInput(u,s[u])});this.outletDataSubscriptions.set(n,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function VI(t,e,r){let n=Ti(t,e._root,r?r._root:void 0);return new ia(n,e)}function Ti(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let i=jI(t,e,r);return new Ue(n,i)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>Ti(t,a)),s}}let n=BI(e.value),i=e.children.map(o=>Ti(t,o));return new Ue(n,i)}}function jI(t,e,r){return e.children.map(n=>{for(let i of r.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return Ti(t,n,i);return Ti(t,n)})}function BI(t){return new ht(new ve(t.url),new ve(t.params),new ve(t.queryParams),new ve(t.fragment),new ve(t.data),t.outlet,t.component,t)}var cm="ngNavigationCancelingError";function lm(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=Or(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=dm(!1,0,e);return i.url=r,i.navigationBehaviorOptions=n,i}function dm(t,e,r){let n=new Error("NavigationCancelingError: "+(t||""));return n[cm]=!0,n.cancellationCode=e,r&&(n.url=r),n}function $I(t){return fm(t)&&Or(t.url)}function fm(t){return t&&t[cm]}var UI=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ae({type:e,selectors:[["ng-component"]],standalone:!0,features:[Fp],decls:1,vars:0,template:function(i,o){i&1&&ue(0,"router-outlet")},dependencies:[td],encapsulation:2});let t=e;return t})();function HI(t,e){return t.providers&&!t._injector&&(t._injector=Ds(t.providers,e,`Route: ${t.path}`)),t._injector??e}function nd(t){let e=t.children&&t.children.map(nd),r=e?W(m({},t),{children:e}):m({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==F&&(r.component=UI),r}function Ot(t){return t.outlet||F}function zI(t,e){let r=t.filter(n=>Ot(n)===e);return r.push(...t.filter(n=>Ot(n)!==e)),r}function Ri(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var GI=(t,e,r,n)=>A(i=>(new ql(e,i.targetRouterState,i.currentRouterState,r,n).activate(t),i)),ql=class{constructor(e,r,n,i,o){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),_l(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let i=Tr(r);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,n);else o&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=Tr(e);for(let s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=Tr(e);for(let s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let i=Tr(r);e.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new $l(o.value.snapshot))}),e.children.length&&this.forwardEvent(new jl(e.value.snapshot))}activateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(_l(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),_l(a.route.value),this.activateChildRoutes(e,null,s.children)}else{let a=Ri(i.snapshot);s.attachRef=null,s.route=i,s.injector=a,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,n)}},sa=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},Ar=class{constructor(e,r){this.component=e,this.route=r}};function WI(t,e,r){let n=t._root,i=e?e._root:null;return vi(n,i,r,[n.value])}function qI(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Pr(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!Vf(t)?t:e.get(t):n}function vi(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Tr(e);return t.children.forEach(s=>{ZI(s,o[s.value.outlet],r,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>wi(a,r.getContext(s),i)),i}function ZI(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let u=YI(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new sa(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?vi(t,e,a?a.children:null,n,i):vi(t,e,r,n,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Ar(a.outlet.component,s))}else s&&wi(e,a,i),i.canActivateChecks.push(new sa(n)),o.component?vi(t,null,a?a.children:null,n,i):vi(t,null,r,n,i);return i}function YI(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!Bn(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Bn(t.url,e.url)||!Nt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Gl(t,e)||!Nt(t.queryParams,e.queryParams);case"paramsChange":default:return!Gl(t,e)}}function wi(t,e,r){let n=Tr(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?e?wi(s,e.children.getContext(o),r):wi(s,null,r):wi(s,e,r)}),i.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new Ar(e.outlet.component,i)):r.canDeactivateChecks.push(new Ar(null,i)):r.canDeactivateChecks.push(new Ar(null,i))}function Fi(t){return typeof t=="function"}function QI(t){return typeof t=="boolean"}function KI(t){return t&&Fi(t.canLoad)}function JI(t){return t&&Fi(t.canActivate)}function XI(t){return t&&Fi(t.canActivateChild)}function e_(t){return t&&Fi(t.canDeactivate)}function t_(t){return t&&Fi(t.canMatch)}function hm(t){return t instanceof Pt||t?.name==="EmptyError"}var Ys=Symbol("INITIAL_VALUE");function Fr(){return le(t=>Ur(t.map(e=>e.pipe(Lt(1),Ka(Ys)))).pipe(A(e=>{for(let r of e)if(r!==!0){if(r===Ys)return Ys;if(r===!1||r instanceof pn)return r}return!0}),we(e=>e!==Ys),Lt(1)))}function n_(t,e){return pe(r=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=r;return s.length===0&&o.length===0?I(W(m({},r),{guardsResult:!0})):r_(s,n,i,t).pipe(pe(a=>a&&QI(a)?i_(n,o,t,e):I(a)),A(a=>W(m({},r),{guardsResult:a})))})}function r_(t,e,r,n){return q(t).pipe(pe(i=>c_(i.component,i.route,r,e,n)),vt(i=>i!==!0,!0))}function i_(t,e,r,n){return q(e).pipe(kt(i=>Qn(s_(i.route.parent,n),o_(i.route,n),u_(t,i.path,r),a_(t,i.route,r))),vt(i=>i!==!0,!0))}function o_(t,e){return t!==null&&e&&e(new Bl(t)),I(!0)}function s_(t,e){return t!==null&&e&&e(new Vl(t)),I(!0)}function a_(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return I(!0);let i=n.map(o=>go(()=>{let s=Ri(e)??r,a=Pr(o,s),u=JI(a)?a.canActivate(e,t):s.runInContext(()=>a(e,t));return vn(u).pipe(vt())}));return I(i).pipe(Fr())}function u_(t,e,r){let n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>qI(s)).filter(s=>s!==null).map(s=>go(()=>{let a=s.guards.map(u=>{let c=Ri(s.node)??r,l=Pr(u,c),d=XI(l)?l.canActivateChild(n,t):c.runInContext(()=>l(n,t));return vn(d).pipe(vt())});return I(a).pipe(Fr())}));return I(o).pipe(Fr())}function c_(t,e,r,n,i){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return I(!0);let s=o.map(a=>{let u=Ri(e)??i,c=Pr(a,u),l=e_(c)?c.canDeactivate(t,e,r,n):u.runInContext(()=>c(t,e,r,n));return vn(l).pipe(vt())});return I(s).pipe(Fr())}function l_(t,e,r,n){let i=e.canLoad;if(i===void 0||i.length===0)return I(!0);let o=i.map(s=>{let a=Pr(s,t),u=KI(a)?a.canLoad(e,r):t.runInContext(()=>a(e,r));return vn(u)});return I(o).pipe(Fr(),pm(n))}function pm(t){return La(se(e=>{if(Or(e))throw lm(t,e)}),A(e=>e===!0))}function d_(t,e,r,n){let i=e.canMatch;if(!i||i.length===0)return I(!0);let o=i.map(s=>{let a=Pr(s,t),u=t_(a)?a.canMatch(e,r):t.runInContext(()=>a(e,r));return vn(u)});return I(o).pipe(Fr(),pm(n))}var xi=class{constructor(e){this.segmentGroup=e||null}},aa=class extends Error{constructor(e){super(),this.urlTree=e}};function Sr(t){return Yn(new xi(t))}function f_(t){return Yn(new C(4e3,!1))}function h_(t){return Yn(dm(!1,3))}var Zl=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}noMatchError(e){return new C(4002,!1)}lineralizeSegments(e,r){let n=[],i=r.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return I(n);if(i.numberOfChildren>1||!i.children[F])return f_(e.redirectTo);i=i.children[F]}}applyRedirectCommands(e,r,n){let i=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r.startsWith("/"))throw new aa(i);return i}applyRedirectCreateUrlTree(e,r,n,i){let o=this.createSegmentGroup(e,r.root,n,i);return new pn(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([i,o])=>{if(typeof o=="string"&&o.startsWith(":")){let a=o.substring(1);n[i]=r[a]}else n[i]=o}),n}createSegmentGroup(e,r,n,i){let o=this.createSegments(e,r.segments,n,i),s={};return Object.entries(r.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(e,u,n,i)}),new z(o,s)}createSegments(e,r,n,i){return r.map(o=>o.path.startsWith(":")?this.findPosParam(e,o,i):this.findOrReturn(o,n))}findPosParam(e,r,n){let i=n[r.path.substring(1)];if(!i)throw new C(4001,!1);return i}findOrReturn(e,r){let n=0;for(let i of r){if(i.path===e.path)return r.splice(n),i;n++}return e}},Yl={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function p_(t,e,r,n,i){let o=rd(t,e,r);return o.matched?(n=HI(e,n),d_(n,e,r,i).pipe(A(s=>s===!0?o:m({},Yl)))):I(o)}function rd(t,e,r){if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?m({},Yl):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let i=(e.matcher||dI)(r,t,e);if(!i)return m({},Yl);let o={};Object.entries(i.posParams??{}).forEach(([a,u])=>{o[a]=u.path});let s=i.consumed.length>0?m(m({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:r.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Ug(t,e,r,n){return r.length>0&&v_(t,r,n)?{segmentGroup:new z(e,m_(n,new z(r,t.children))),slicedSegments:[]}:r.length===0&&y_(t,r,n)?{segmentGroup:new z(t.segments,g_(t,e,r,n,t.children)),slicedSegments:r}:{segmentGroup:new z(t.segments,t.children),slicedSegments:r}}function g_(t,e,r,n,i){let o={};for(let s of n)if(da(t,r,s)&&!i[Ot(s)]){let a=new z([],{});o[Ot(s)]=a}return m(m({},i),o)}function m_(t,e){let r={};r[F]=e;for(let n of t)if(n.path===""&&Ot(n)!==F){let i=new z([],{});r[Ot(n)]=i}return r}function v_(t,e,r){return r.some(n=>da(t,e,n)&&Ot(n)!==F)}function y_(t,e,r){return r.some(n=>da(t,e,n))}function da(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function D_(t,e,r,n){return Ot(t)!==n&&(n===F||!da(e,r,t))?!1:t.path==="**"?!0:rd(e,t,r).matched}function C_(t,e,r){return e.length===0&&!t.children[r]}var Ql=class{};function w_(t,e,r,n,i,o,s="emptyOnly"){return new Kl(t,e,r,n,i,s,o).recognize()}var b_=31,Kl=class{constructor(e,r,n,i,o,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Zl(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new C(4002,!1)}recognize(){let e=Ug(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(A(r=>{let n=new Si([],Object.freeze({}),Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,{},F,this.rootComponentType,null,{}),i=new Ue(n,r),o=new oa("",i),s=AI(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root,null),{state:o,tree:s}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,F).pipe(He(n=>{if(n instanceof aa)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof xi?this.noMatchError(n):n}))}inheritParamsAndData(e,r){let n=e.value,i=Xl(n,r,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(o=>this.inheritParamsAndData(o,n))}processSegmentGroup(e,r,n,i){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n):this.processSegment(e,r,n,n.segments,i,!0).pipe(A(o=>o instanceof Ue?[o]:[]))}processChildren(e,r,n){let i=[];for(let o of Object.keys(n.children))o==="primary"?i.unshift(o):i.push(o);return q(i).pipe(kt(o=>{let s=n.children[o],a=zI(r,o);return this.processSegmentGroup(e,a,s,o)}),Ya((o,s)=>(o.push(...s),o)),Jt(null),Za(),pe(o=>{if(o===null)return Sr(n);let s=gm(o);return E_(s),I(s)}))}processSegment(e,r,n,i,o,s){return q(r).pipe(kt(a=>this.processSegmentAgainstRoute(a._injector??e,r,a,n,i,o,s).pipe(He(u=>{if(u instanceof xi)return I(null);throw u}))),vt(a=>!!a),He(a=>{if(hm(a))return C_(n,i,o)?I(new Ql):Sr(n);throw a}))}processSegmentAgainstRoute(e,r,n,i,o,s,a){return D_(n,i,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,n,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,i,r,n,o,s):Sr(i):Sr(i)}expandSegmentAgainstRouteUsingRedirect(e,r,n,i,o,s){let{matched:a,consumedSegments:u,positionalParamSegments:c,remainingSegments:l}=i.path==="**"?Hg(o):rd(r,i,o);if(!a)return Sr(r);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>b_&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(u,i.redirectTo,c);return this.applyRedirects.lineralizeSegments(i,d).pipe(pe(f=>this.processSegment(e,n,r,f.concat(l),s,!1)))}matchSegmentAgainstRoute(e,r,n,i,o){let s;return n.path==="**"?(s=I(Hg(i)),r.children={}):s=p_(r,n,i,e,this.urlSerializer),s.pipe(le(a=>a.matched?(e=n._injector??e,this.getChildConfig(e,n,i).pipe(le(({routes:u})=>{let c=n._loadedInjector??e,{consumedSegments:l,remainingSegments:d,parameters:f}=a,h=new Si(l,f,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,__(n),Ot(n),n.component??n._loadedComponent??null,n,M_(n)),{segmentGroup:b,slicedSegments:R}=Ug(r,l,d,u);if(R.length===0&&b.hasChildren())return this.processChildren(c,u,b).pipe(A(_=>_===null?null:new Ue(h,_)));if(u.length===0&&R.length===0)return I(new Ue(h,[]));let S=Ot(n)===o;return this.processSegment(c,u,b,R,S?F:o,!0).pipe(A(_=>new Ue(h,_ instanceof Ue?[_]:[])))}))):Sr(r)))}getChildConfig(e,r,n){return r.children?I({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?I({routes:r._loadedRoutes,injector:r._loadedInjector}):l_(e,r,n,this.urlSerializer).pipe(pe(i=>i?this.configLoader.loadChildren(e,r).pipe(se(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):h_(r))):I({routes:[],injector:e})}};function E_(t){t.sort((e,r)=>e.value.outlet===F?-1:r.value.outlet===F?1:e.value.outlet.localeCompare(r.value.outlet))}function I_(t){let e=t.value.routeConfig;return e&&e.path===""}function gm(t){let e=[],r=new Set;for(let n of t){if(!I_(n)){e.push(n);continue}let i=e.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),r.add(i)):e.push(n)}for(let n of r){let i=gm(n.children);e.push(new Ue(n.value,i))}return e.filter(n=>!r.has(n))}function __(t){return t.data||{}}function M_(t){return t.resolve||{}}function Hg(t){return{matched:!0,parameters:t.length>0?qg(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function S_(t,e,r,n,i,o){return pe(s=>w_(t,e,r,n,s.extractedUrl,i,o).pipe(A(({state:a,tree:u})=>W(m({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function T_(t,e){return pe(r=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=r;if(!i.length)return I(r);let o=i.map(c=>c.route),s=new Set(o),a=mm(o[0].parent).slice(1),u=0;return q(a).pipe(kt(c=>s.has(c)?x_(c,n,t,e):(c.data=Xl(c,c.parent,t).resolve,I(void 0))),se(()=>u++),Jn(1),pe(c=>u===a.length?I(r):Re))})}function mm(t){let e=t.children.map(r=>mm(r)).flat();return[t,...e]}function x_(t,e,r,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!um(i)&&(o[Ai]=i.title),A_(o,t,e,n).pipe(A(s=>(t._resolvedData=s,t.data=Xl(t,t.parent,r).resolve,null)))}function A_(t,e,r,n){let i=Tl(t);if(i.length===0)return I({});let o={};return q(i).pipe(pe(s=>N_(t[s],e,r,n).pipe(vt(),se(a=>{o[s]=a}))),Jn(1),qa(o),He(s=>hm(s)?Re:Yn(s)))}function N_(t,e,r,n){let i=Ri(e)??n,o=Pr(t,i),s=o.resolve?o.resolve(e,r):i.runInContext(()=>o(e,r));return vn(s)}function Ml(t){return le(e=>{let r=t(e);return r?q(r).pipe(A(()=>e)):I(e)})}var vm=(()=>{let e=class e{buildTitle(n){let i,o=n.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===F);return i}getResolvedTitleForRoute(n){return n.data[Ai]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>(()=>p(O_))(),providedIn:"root"});let t=e;return t})(),O_=(()=>{let e=class e extends vm{constructor(n){super(),this.title=n}updateTitle(n){let i=this.buildTitle(n);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(y(bl))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Pi=new E("",{providedIn:"root",factory:()=>({})}),ua=new E("ROUTES"),id=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=p(_s)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return I(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=vn(n.loadComponent()).pipe(A(ym),se(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),Xt(()=>{this.componentLoaders.delete(n)})),o=new qn(i,()=>new he).pipe(Wn());return this.componentLoaders.set(n,o),o}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return I({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=R_(i,this.compiler,n,this.onLoadEndListener).pipe(Xt(()=>{this.childrenLoaders.delete(i)})),a=new qn(s,()=>new he).pipe(Wn());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function R_(t,e,r,n){return vn(t.loadChildren()).pipe(A(ym),pe(i=>i instanceof Jr||Array.isArray(i)?I(i):q(e.compileModuleAsync(i))),A(i=>{n&&n(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(r).injector,s=o.get(ua,[],{optional:!0,self:!0}).flat()),{routes:s.map(nd),injector:o}}))}function F_(t){return t&&typeof t=="object"&&"default"in t}function ym(t){return F_(t)?t.default:t}var od=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>(()=>p(P_))(),providedIn:"root"});let t=e;return t})(),P_=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Dm=new E(""),Cm=new E("");function k_(t,e,r){let n=t.get(Cm),i=t.get(be);return t.get(Z).runOutsideAngular(()=>{if(!i.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,Promise.resolve();let o,s=new Promise(c=>{o=c}),a=i.startViewTransition(()=>(o(),L_(t))),{onViewTransitionCreated:u}=n;return u&&Bh(t,()=>u({transition:a,from:e,to:r})),s})}function L_(t){return new Promise(e=>{Lc(e,{injector:t})})}var sd=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new he,this.transitionAbortSubject=new he,this.configLoader=p(id),this.environmentInjector=p(xe),this.urlSerializer=p(Ni),this.rootContexts=p(Oi),this.location=p(Ir),this.inputBindingEnabled=p(la,{optional:!0})!==null,this.titleStrategy=p(vm),this.options=p(Pi,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=p(od),this.createViewTransition=p(Dm,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>I(void 0),this.rootComponentType=null;let n=o=>this.events.next(new kl(o)),i=o=>this.events.next(new Ll(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let i=++this.navigationId;this.transitions?.next(W(m(m({},this.transitions.value),n),{id:i}))}setupNavigations(n,i,o){return this.transitions=new ve({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ci,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(we(s=>s.id!==0),A(s=>W(m({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),le(s=>{this.currentTransition=s;let a=!1,u=!1;return I(s).pipe(se(c=>{this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?W(m({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),le(c=>{let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload"){let f="";return this.events.next(new mn(c.id,this.urlSerializer.serialize(c.rawUrl),f,0)),c.resolve(null),Re}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return I(c).pipe(le(f=>{let h=this.transitions?.getValue();return this.events.next(new Rr(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions?.getValue()?Re:Promise.resolve(f)}),S_(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),se(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=W(m({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let h=new ta(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(h)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:f,extractedUrl:h,source:b,restoredState:R,extras:S}=c,_=new Rr(f,this.urlSerializer.serialize(h),b,R);this.events.next(_);let ce=sm(h,this.rootComponentType).snapshot;return this.currentTransition=s=W(m({},c),{targetSnapshot:ce,urlAfterRedirects:h,extras:W(m({},S),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,I(s)}else{let f="";return this.events.next(new mn(c.id,this.urlSerializer.serialize(c.extractedUrl),f,1)),c.resolve(null),Re}}),se(c=>{let l=new Ol(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),A(c=>(this.currentTransition=s=W(m({},c),{guards:WI(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),s)),n_(this.environmentInjector,c=>this.events.next(c)),se(c=>{if(s.guardsResult=c.guardsResult,Or(c.guardsResult))throw lm(this.urlSerializer,c.guardsResult);let l=new Rl(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),we(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",3),!1)),Ml(c=>{if(c.guards.canActivateChecks.length)return I(c).pipe(se(l=>{let d=new Fl(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),le(l=>{let d=!1;return I(l).pipe(T_(this.paramsInheritanceStrategy,this.environmentInjector),se({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",2)}}))}),se(l=>{let d=new Pl(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),Ml(c=>{let l=d=>{let f=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(se(h=>{d.component=h}),A(()=>{})));for(let h of d.children)f.push(...l(h));return f};return Ur(l(c.targetSnapshot.root)).pipe(Jt(),Lt(1))}),Ml(()=>this.afterPreactivation()),le(()=>{let{currentSnapshot:c,targetSnapshot:l}=s,d=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return d?q(d).pipe(A(()=>s)):I(s)}),A(c=>{let l=VI(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=s=W(m({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),se(()=>{this.events.next(new _i)}),GI(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),Lt(1),se({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ft(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),Xn(this.transitionAbortSubject.pipe(se(c=>{throw c}))),Xt(()=>{if(!a&&!u){let c="";this.cancelNavigationTransition(s,c,1)}this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),He(c=>{if(u=!0,fm(c))this.events.next(new gn(s.id,this.urlSerializer.serialize(s.extractedUrl),c.message,c.cancellationCode)),$I(c)?this.events.next(new Mi(c.url)):s.resolve(!1);else{this.events.next(new Ii(s.id,this.urlSerializer.serialize(s.extractedUrl),c,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(c))}catch(l){s.reject(l)}}return Re}))}))}cancelNavigationTransition(n,i,o){let s=new gn(n.id,this.urlSerializer.serialize(n.extractedUrl),i,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function V_(t){return t!==Ci}var j_=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>(()=>p(B_))(),providedIn:"root"});let t=e;return t})(),Jl=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},B_=(()=>{let e=class e extends Jl{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=vr(e)))(o||e)}})(),e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),wm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:()=>(()=>p($_))(),providedIn:"root"});let t=e;return t})(),$_=(()=>{let e=class e extends wm{constructor(){super(...arguments),this.location=p(Ir),this.urlSerializer=p(Ni),this.options=p(Pi,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=p(od),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new pn,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=sm(this.currentUrlTree,null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(i=>{i.type==="popstate"&&n(i.url,i.state)})}handleRouterEvent(n,i){if(n instanceof Rr)this.stateMemento=this.createStateMemento();else if(n instanceof mn)this.rawUrlTree=i.initialUrl;else if(n instanceof ta){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else n instanceof _i?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):n instanceof gn&&(n.code===3||n.code===2)?this.restoreHistory(i):n instanceof Ii?this.restoreHistory(i,!0):n instanceof ft&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,i){let o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=m(m({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=m(m({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,i){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=vr(e)))(o||e)}})(),e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),yi=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(yi||{});function bm(t,e){t.events.pipe(we(r=>r instanceof ft||r instanceof gn||r instanceof Ii||r instanceof mn),A(r=>r instanceof ft||r instanceof mn?yi.COMPLETE:(r instanceof gn?r.code===0||r.code===1:!1)?yi.REDIRECTING:yi.FAILED),we(r=>r!==yi.REDIRECTING),Lt(1)).subscribe(()=>{e()})}function U_(t){throw t}var H_={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},z_={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Oe=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=p(Es),this.stateManager=p(wm),this.options=p(Pi,{optional:!0})||{},this.pendingTasks=p(wr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=p(sd),this.urlSerializer=p(Ni),this.location=p(Ir),this.urlHandlingStrategy=p(od),this._events=new he,this.errorHandler=this.options.errorHandler||U_,this.navigated=!1,this.routeReuseStrategy=p(j_),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=p(ua,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!p(la,{optional:!0}),this.eventsSubscription=new fe,this.isNgZoneEnabled=p(Z)instanceof Z&&Z.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof gn&&i.code!==0&&i.code!==1)this.navigated=!0;else if(i instanceof ft)this.navigated=!0;else if(i instanceof Mi){let a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),u={skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||V_(o.source)};this.scheduleNavigation(a,Ci,null,u,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}W_(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ci,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",i)},0)}))}navigateToSyncWithBrowser(n,i,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let c=m({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(s.state=c)}let u=this.parseUrl(n);this.scheduleNavigation(u,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(nd),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:u,preserveFragment:c}=i,l=c?this.currentUrlTree.fragment:a,d=null;switch(u){case"merge":d=m(m({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let h=o?o.snapshot:this.routerState.snapshot.root;f=nm(h)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),f=this.currentUrlTree.root}return rm(f,n,d,l??null)}navigateByUrl(n,i={skipLocationChange:!1}){let o=Or(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,Ci,null,i)}navigate(n,i={skipLocationChange:!1}){return G_(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,i){let o;if(i===!0?o=m({},H_):i===!1?o=m({},z_):o=i,Or(n))return Lg(this.currentUrlTree,n,o);let s=this.parseUrl(n);return Lg(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.keys(n).reduce((i,o)=>{let s=n[o];return s!=null&&(i[o]=s),i},{})}scheduleNavigation(n,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let u,c,l;a?(u=a.resolve,c=a.reject,l=a.promise):l=new Promise((f,h)=>{u=f,c=h});let d=this.pendingTasks.add();return bm(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:u,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function G_(t){for(let e=0;e{let e=class e{constructor(n,i,o,s,a,u){this.router=n,this.route=i,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=u,this.href=null,this.commands=null,this.onChanges=new he,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof ft&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n!=null?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,i,o,s,a){if(this.urlTree===null||this.isAnchorElement&&(n!==0||i||o||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state};return this.router.navigateByUrl(this.urlTree,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=this.urlTree!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;let n=this.href===null?null:rp(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(n,i){let o=this.renderer,s=this.el.nativeElement;i!==null?o.setAttribute(s,n,i):o.removeAttribute(s,n)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(i){return new(i||e)(g(Oe),g(ht),pc("tabindex"),g(Mt),g(ke),g(Yt))},e.\u0275dir=re({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){i&1&&oe("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&Dr("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",br],skipLocationChange:["skipLocationChange","skipLocationChange",br],replaceUrl:["replaceUrl","replaceUrl",br],routerLink:"routerLink"},standalone:!0,features:[jc,ut]});let t=e;return t})(),Em=(()=>{let e=class e{get isActive(){return this._isActive}constructor(n,i,o,s,a){this.router=n,this.element=i,this.renderer=o,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new J,this.routerEventsSubscription=n.events.subscribe(u=>{u instanceof ft&&this.update()})}ngAfterContentInit(){I(this.links.changes,I(null)).pipe(mt()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=q(n).pipe(mt()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(n){let i=Array.isArray(n)?n:n.split(" ");this.classes=i.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.classes.forEach(i=>{n?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),n&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(n))})}isLinkActive(n){let i=q_(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>o.urlTree?n.isActive(o.urlTree,i):!1}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}};e.\u0275fac=function(i){return new(i||e)(g(Oe),g(ke),g(Mt),g(kn),g(et,8))},e.\u0275dir=re({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(i,o,s){if(i&1&&$p(s,et,5),i&2){let a;Bp(a=Up())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[ut]});let t=e;return t})();function q_(t){return!!t.paths}var ca=class{};var Z_=(()=>{let e=class e{constructor(n,i,o,s,a){this.router=n,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(we(n=>n instanceof ft),kt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,i){let o=[];for(let s of i){s.providers&&!s._injector&&(s._injector=Ds(s.providers,n,`Route: ${s.path}`));let a=s._injector??n,u=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(u,s.children??s._loadedRoutes))}return q(o).pipe(mt())}preloadConfig(n,i){return this.preloadingStrategy.preload(i,()=>{let o;i.loadChildren&&i.canLoad===void 0?o=this.loader.loadChildren(n,i):o=I(null);let s=o.pipe(pe(a=>a===null?I(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(i);return q([s,a]).pipe(mt())}else return s})}};e.\u0275fac=function(i){return new(i||e)(y(Oe),y(_s),y(xe),y(ca),y(id))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Im=new E(""),Y_=(()=>{let e=class e{constructor(n,i,o,s,a={}){this.urlSerializer=n,this.transitions=i,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.anchorScrolling||"disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Rr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof ft?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof mn&&n.code===0&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof na&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new na(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(i){cp()},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function Q_(t){return t.routerState.root}function ki(t,e){return{\u0275kind:t,\u0275providers:e}}function K_(){let t=p(qe);return e=>{let r=t.get(Ln);if(e!==r.components[0])return;let n=t.get(Oe),i=t.get(_m);t.get(ad)===1&&n.initialNavigation(),t.get(Mm,null,j.Optional)?.setUpPreloading(),t.get(Im,null,j.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var _m=new E("",{factory:()=>new he}),ad=new E("",{providedIn:"root",factory:()=>1});function J_(){return ki(2,[{provide:ad,useValue:0},{provide:bs,multi:!0,deps:[qe],useFactory:e=>{let r=e.get(sg,Promise.resolve());return()=>r.then(()=>new Promise(n=>{let i=e.get(Oe),o=e.get(_m);bm(i,()=>{n(!0)}),e.get(sd).afterPreactivation=()=>(n(!0),o.closed?I(void 0):o),i.initialNavigation()}))}}])}function X_(){return ki(3,[{provide:bs,multi:!0,useFactory:()=>{let e=p(Oe);return()=>{e.setUpLocationChangeListener()}}},{provide:ad,useValue:2}])}var Mm=new E("");function eM(t){return ki(0,[{provide:Mm,useExisting:Z_},{provide:ca,useExisting:t}])}function tM(){return ki(8,[$g,{provide:la,useExisting:$g}])}function nM(t){let e=[{provide:Dm,useValue:k_},{provide:Cm,useValue:m({skipNextTransition:!!t?.skipInitialTransition},t)}];return ki(9,e)}var zg=new E("ROUTER_FORROOT_GUARD"),rM=[Ir,{provide:Ni,useClass:bi},Oe,Oi,{provide:ht,useFactory:Q_,deps:[Oe]},id,[]],Qt=(()=>{let e=class e{constructor(n){}static forRoot(n,i){return{ngModule:e,providers:[rM,[],{provide:ua,multi:!0,useValue:n},{provide:zg,useFactory:aM,deps:[[Oe,new cs,new mc]]},{provide:Pi,useValue:i||{}},i?.useHash?oM():sM(),iM(),i?.preloadingStrategy?eM(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?uM(i):[],i?.bindToComponentInputs?tM().\u0275providers:[],i?.enableViewTransitions?nM().\u0275providers:[],cM()]}}static forChild(n){return{ngModule:e,providers:[{provide:ua,multi:!0,useValue:n}]}}};e.\u0275fac=function(i){return new(i||e)(y(zg,8))},e.\u0275mod=ee({type:e}),e.\u0275inj=X({});let t=e;return t})();function iM(){return{provide:Im,useFactory:()=>{let t=p(gg),e=p(Z),r=p(Pi),n=p(sd),i=p(Ni);return r.scrollOffset&&t.setOffset(r.scrollOffset),new Y_(i,n,t,e,r)}}}function oM(){return{provide:Yt,useClass:ug}}function sM(){return{provide:Yt,useClass:ol}}function aM(t){return"guarded"}function uM(t){return[t.initialNavigation==="disabled"?X_().\u0275providers:[],t.initialNavigation==="enabledBlocking"?J_().\u0275providers:[]]}var Gg=new E("");function cM(){return[{provide:Gg,useFactory:K_},{provide:Ts,multi:!0,useExisting:Gg}]}var tt=(()=>{let e=class e{constructor(n){this.http=n,this.apiUrl="https://api5.angular-buch.com"}getAll(){return this.http.get(`${this.apiUrl}/books`).pipe(He(n=>(console.error(n),I([]))))}getSingle(n){return this.http.get(`${this.apiUrl}/books/${n}`)}remove(n){return this.http.delete(`${this.apiUrl}/books/${n}`)}getAllSearch(n){return this.http.get(`${this.apiUrl}/books/search/${n}`).pipe(He(i=>(console.error(i),I([]))))}create(n){return this.http.post(`${this.apiUrl}/books`,n)}update(n){return this.http.put(`${this.apiUrl}/books/${n.isbn}`,n)}check(n){return this.http.get(`${this.apiUrl}/books/${n}/check`)}};e.\u0275fac=function(i){return new(i||e)(y(dl))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var lM=t=>["/books",t];function dM(t,e){if(t&1&&(D(0,"li")(1,"a",6),M(2),D(3,"p",7),M(4),v()()()),t&2){let r=e.$implicit;x(1),O("routerLink",ws(3,lM,r.isbn)),x(1),Be(" ",r.title," "),x(2),Tt(r.subtitle)}}function fM(t,e){t&1&&(D(0,"li"),M(1,"No results"),v())}function hM(t,e){if(t&1&&(D(0,"ul",3),Q(1,dM,5,5,"li",4)(2,fM,2,0,"li",5),v()),t&2){let r=e.ngIf;x(1),O("ngForOf",r),x(1),O("ngIf",!r.length)}}var Sm=(()=>{let e=class e{constructor(n){this.service=n,this.input$=new he,this.isLoading=!1,this.results$=this.input$.pipe(we(i=>i.length>=3),Wa(500),Kn(),se(()=>this.isLoading=!0),le(i=>this.service.getAllSearch(i)),se(()=>this.isLoading=!1))}};e.\u0275fac=function(i){return new(i||e)(g(tt))},e.\u0275cmp=ae({type:e,selectors:[["bm-search"]],decls:4,vars:5,consts:[["type","search","autocomplete","off","aria-label","Search",3,"input"],["searchInput",""],["class","search-results",4,"ngIf"],[1,"search-results"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"routerLink"],["role","doc-subtitle"]],template:function(i,o){if(i&1){let s=zt();D(0,"input",0,1),oe("input",function(){$t(s);let u=Op(1);return Ut(o.input$.next(u.value))}),v(),Q(2,hM,3,2,"ul",2),Ye(3,"async")}i&2&&(Cr("loading",o.isLoading),x(2),O("ngIf",lt(3,3,o.results$)))},dependencies:[Ke,Je,et,fn]});let t=e;return t})();var Tm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ae({type:e,selectors:[["bm-home"]],decls:7,vars:0,consts:[["routerLink","/books",1,"button","red"]],template:function(i,o){i&1&&(D(0,"h1"),M(1,"Home"),v(),D(2,"a",0),M(3,` Show book list -`),v(),D(4,"h2"),M(5,"Search"),v(),ue(6,"bm-search"))},dependencies:[et,Sm]});let t=e;return t})();var gM=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:Tm}],xm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=X({imports:[Qt.forRoot(gM),Qt]});let t=e;return t})();var Lr=(()=>{let e=class e{constructor(){this._isAuthenticated$=new ve(!0),this.isAuthenticated$=this._isAuthenticated$.asObservable()}get isAuthenticated(){return this._isAuthenticated$.value}login(){this._isAuthenticated$.next(!0)}logout(){this._isAuthenticated$.next(!1)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function mM(t,e){if(t&1){let r=zt();D(0,"button",6),oe("click",function(){$t(r);let i=_e();return Ut(i.auth.login())}),M(1,"Login"),v()}}function vM(t,e){if(t&1){let r=zt();D(0,"button",7),oe("click",function(){$t(r);let i=_e();return Ut(i.auth.logout())}),M(1,"Logout"),v()}}var Am=(()=>{let e=class e{constructor(n){this.auth=n}};e.\u0275fac=function(i){return new(i||e)(g(Lr))},e.\u0275cmp=ae({type:e,selectors:[["bm-root"]],decls:12,vars:2,consts:[["routerLink","/home","routerLinkActive","active","ariaCurrentWhenActive","page"],["routerLink","/books","routerLinkActive","active","ariaCurrentWhenActive","page"],["routerLink","/admin","routerLinkActive","active","ariaCurrentWhenActive","page"],[1,"actions"],["class","green",3,"click",4,"ngIf"],["class","red",3,"click",4,"ngIf"],[1,"green",3,"click"],[1,"red",3,"click"]],template:function(i,o){i&1&&(D(0,"nav")(1,"a",0),M(2,"Home"),v(),D(3,"a",1),M(4,"Books"),v(),D(5,"a",2),M(6,"Administration"),v(),D(7,"div",3),Q(8,mM,2,0,"button",4)(9,vM,2,0,"button",5),v()(),D(10,"main"),ue(11,"router-outlet"),v()),i&2&&(x(8),O("ngIf",!o.auth.isAuthenticated),x(1),O("ngIf",o.auth.isAuthenticated))},dependencies:[Je,td,et,Em]});let t=e;return t})();var Nm=(()=>{let e=class e{constructor(){this.confirm=new J}onClick(){window.confirm(this.confirmText)&&this.confirm.emit()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=re({type:e,selectors:[["","bmConfirm",""]],hostBindings:function(i,o){i&1&&oe("click",function(){return o.onClick()})},inputs:{confirmText:["bmConfirm","confirmText"]},outputs:{confirm:"confirm"}});let t=e;return t})();var Om=(()=>{let e=class e{constructor(n,i,o){this.template=n,this.viewContainer=i,this.authService=o,this.destroy$=new he,this.authService.isAuthenticated$.pipe(Xn(this.destroy$)).subscribe(s=>{s?this.viewContainer.createEmbeddedView(this.template):this.viewContainer.clear()})}ngOnDestroy(){this.destroy$.next()}};e.\u0275fac=function(i){return new(i||e)(g(jt),g(St),g(Lr))},e.\u0275dir=re({type:e,selectors:[["","bmLoggedinOnly",""]]});let t=e;return t})();var fa=(()=>{let e=class e{transform(n){return n?`${n.substring(0,3)}-${n.substring(3)}`:""}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=ei({name:"isbn",type:e,pure:!0});let t=e;return t})();function CM(t,e){if(t&1&&(D(0,"p",9),M(1),v()),t&2){let r=_e().ngIf;x(1),Tt(r.subtitle)}}function wM(t,e){if(t&1&&(D(0,"li"),M(1),v()),t&2){let r=e.$implicit;x(1),Tt(r)}}function bM(t,e){if(t&1&&(D(0,"div")(1,"h2"),M(2,"Published"),v(),M(3),Ye(4,"date"),v()),t&2){let r=_e().ngIf;x(3),Be(" ",Lp(4,1,r.published,"longDate")," ")}}function EM(t,e){if(t&1&&ue(0,"img",10),t&2){let r=_e().ngIf;O("src",r.thumbnailUrl,si)}}var IM=t=>["/admin/edit",t];function _M(t,e){if(t&1){let r=zt();$c(0),D(1,"button",11),oe("confirm",function(){$t(r);let i=_e().ngIf,o=_e();return Ut(o.removeBook(i.isbn))}),M(2," Remove book "),v(),D(3,"a",12),M(4," Edit book "),v(),Uc()}if(t&2){let r=_e().ngIf;x(3),O("routerLink",ws(1,IM,r.isbn))}}function MM(t,e){if(t&1&&(D(0,"div",1)(1,"h1"),M(2),v(),Q(3,CM,2,1,"p",2),D(4,"div",3)(5,"div")(6,"h2"),M(7,"Authors"),v(),D(8,"ul"),Q(9,wM,2,1,"li",4),v()(),D(10,"div")(11,"h2"),M(12,"ISBN"),v(),M(13),Ye(14,"isbn"),v(),Q(15,bM,5,4,"div",5),v(),D(16,"h2"),M(17,"Description"),v(),D(18,"p"),M(19),v(),Q(20,EM,1,1,"img",6),D(21,"a",7),M(22,"Back to list"),v(),Q(23,_M,5,3,"ng-container",8),v()),t&2){let r=e.ngIf;x(2),Tt(r.title),x(1),O("ngIf",r.subtitle),x(6),O("ngForOf",r.authors),x(4),Be(" ",lt(14,7,r.isbn)," "),x(2),O("ngIf",r.published),x(4),Tt(r.description),x(1),O("ngIf",r.thumbnailUrl)}}var Fm=(()=>{let e=class e{constructor(n,i,o){this.service=n,this.route=i,this.router=o;let s=this.route.snapshot.paramMap.get("isbn");this.book$=this.service.getSingle(s)}removeBook(n){this.service.remove(n).subscribe(()=>{this.router.navigateByUrl("/books")})}};e.\u0275fac=function(i){return new(i||e)(g(tt),g(ht),g(Oe))},e.\u0275cmp=ae({type:e,selectors:[["bm-book-details"]],decls:2,vars:3,consts:[["class","details",4,"ngIf"],[1,"details"],["role","doc-subtitle",4,"ngIf"],[1,"header"],[4,"ngFor","ngForOf"],[4,"ngIf"],["alt","Cover",3,"src",4,"ngIf"],["routerLink","..",1,"button","arrow-left"],[4,"bmLoggedinOnly"],["role","doc-subtitle"],["alt","Cover",3,"src"],["bmConfirm","Remove book?",1,"red",3,"confirm"],[1,"button",3,"routerLink"]],template:function(i,o){i&1&&(Q(0,MM,24,9,"div",0),Ye(1,"async")),i&2&&O("ngIf",lt(1,1,o.book$))},dependencies:[Ke,Je,et,Nm,Om,fn,hg,fa]});let t=e;return t})();function SM(t,e){if(t&1&&ue(0,"img",6),t&2){let r=_e(2);O("src",r.book.thumbnailUrl,si)}}function TM(t,e){if(t&1&&(D(0,"p",7),M(1),v()),t&2){let r=_e(2);x(1),Be(" ",r.book.subtitle," ")}}function xM(t,e){if(t&1&&(D(0,"li"),M(1),v()),t&2){let r=e.$implicit;x(1),Be(" ",r," ")}}function AM(t,e){if(t&1&&(D(0,"a",1),Q(1,SM,1,1,"img",2),D(2,"h2"),M(3),v(),Q(4,TM,2,1,"p",3),D(5,"ul",4),Q(6,xM,2,1,"li",5),v(),D(7,"div"),M(8),Ye(9,"isbn"),v()()),t&2){let r=_e();O("routerLink",r.book.isbn),x(1),O("ngIf",r.book.thumbnailUrl),x(2),Tt(r.book.title),x(1),O("ngIf",r.book.subtitle),x(2),O("ngForOf",r.book.authors),x(2),Be("ISBN ",lt(9,6,r.book.isbn),"")}}var Pm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ae({type:e,selectors:[["bm-book-list-item"]],inputs:{book:"book"},decls:1,vars:1,consts:[["class","list-item",3,"routerLink",4,"ngIf"],[1,"list-item",3,"routerLink"],["alt","Cover",3,"src",4,"ngIf"],["role","doc-subtitle",4,"ngIf"],[1,"comma-list"],[4,"ngFor","ngForOf"],["alt","Cover",3,"src"],["role","doc-subtitle"]],template:function(i,o){i&1&&Q(0,AM,10,8,"a",0),i&2&&O("ngIf",o.book)},dependencies:[Ke,Je,et,fa]});let t=e;return t})();function OM(t,e){if(t&1&&(D(0,"li"),ue(1,"bm-book-list-item",4),v()),t&2){let r=e.$implicit;x(1),O("book",r)}}function RM(t,e){t&1&&(D(0,"li"),M(1," No books available. "),v())}function FM(t,e){if(t&1&&(D(0,"ul",1),Q(1,OM,2,1,"li",2)(2,RM,2,0,"li",3),v()),t&2){let r=e.ngIf;x(1),O("ngForOf",r),x(1),O("ngIf",!r.length)}}var km=(()=>{let e=class e{constructor(n){this.service=n,this.books$=this.service.getAll()}};e.\u0275fac=function(i){return new(i||e)(g(tt))},e.\u0275cmp=ae({type:e,selectors:[["bm-book-list"]],decls:4,vars:3,consts:[["class","book-list",4,"ngIf"],[1,"book-list"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"book"]],template:function(i,o){i&1&&(D(0,"h1"),M(1,"Books"),v(),Q(2,FM,3,2,"ul",0),Ye(3,"async")),i&2&&(x(2),O("ngIf",lt(3,1,o.books$)))},dependencies:[Ke,Je,Pm,fn]});let t=e;return t})();var PM=[{path:"books",component:km},{path:"books/:isbn",component:Fm}],Lm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=X({imports:[Qt.forChild(PM),Qt]});let t=e;return t})();var Vm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=X({imports:[_r,Lm]});let t=e;return t})();var jm=(()=>{let e=class e{constructor(n){this.authService=n}intercept(n,i){let o="1234567890";if(this.authService.isAuthenticated){let s=n.clone({setHeaders:{Authorization:`Bearer ${o}`}});return i.handle(s)}else return i.handle(n)}};e.\u0275fac=function(i){return new(i||e)(y(Lr))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();var qm=(()=>{let e=class e{constructor(n,i){this._renderer=n,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,i){this._renderer.setProperty(this._elementRef.nativeElement,n,i)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(i){return new(i||e)(g(Mt),g(ke))},e.\u0275dir=re({type:e});let t=e;return t})(),kM=(()=>{let e=class e extends qm{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=vr(e)))(o||e)}})(),e.\u0275dir=re({type:e,features:[ct]});let t=e;return t})(),Ca=new E("NgValueAccessor");var LM={provide:Ca,useExisting:_t(()=>wa),multi:!0};function VM(){let t=xt()?xt().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var jM=new E("CompositionEventMode"),wa=(()=>{let e=class e extends qm{constructor(n,i,o){super(n,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!VM())}writeValue(n){let i=n??"";this.setProperty("value",i)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(i){return new(i||e)(g(Mt),g(ke),g(jM,8))},e.\u0275dir=re({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){i&1&&oe("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[dn([LM]),ct]});let t=e;return t})();function yn(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function Zm(t){return t!=null&&typeof t.length=="number"}var ba=new E("NgValidators"),Ea=new E("NgAsyncValidators"),BM=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ji=class{static min(e){return $M(e)}static max(e){return UM(e)}static required(e){return HM(e)}static requiredTrue(e){return zM(e)}static email(e){return GM(e)}static minLength(e){return WM(e)}static maxLength(e){return qM(e)}static pattern(e){return ZM(e)}static nullValidator(e){return Ym(e)}static compose(e){return tv(e)}static composeAsync(e){return rv(e)}};function $M(t){return e=>{if(yn(e.value)||yn(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r{if(yn(e.value)||yn(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r>t?{max:{max:t,actual:e.value}}:null}}function HM(t){return yn(t.value)?{required:!0}:null}function zM(t){return t.value===!0?null:{required:!0}}function GM(t){return yn(t.value)||BM.test(t.value)?null:{email:!0}}function WM(t){return e=>yn(e.value)||!Zm(e.value)?null:e.value.lengthZm(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function ZM(t){if(!t)return Ym;let e,r;return typeof t=="string"?(r="",t.charAt(0)!=="^"&&(r+="^"),r+=t,t.charAt(t.length-1)!=="$"&&(r+="$"),e=new RegExp(r)):(r=t.toString(),e=t),n=>{if(yn(n.value))return null;let i=n.value;return e.test(i)?null:{pattern:{requiredPattern:r,actualValue:i}}}}function Ym(t){return null}function Qm(t){return t!=null}function Km(t){return ln(t)?q(t):t}function Jm(t){let e={};return t.forEach(r=>{e=r!=null?m(m({},e),r):e}),Object.keys(e).length===0?null:e}function Xm(t,e){return e.map(r=>r(t))}function YM(t){return!t.validate}function ev(t){return t.map(e=>YM(e)?e:r=>e.validate(r))}function tv(t){if(!t)return null;let e=t.filter(Qm);return e.length==0?null:function(r){return Jm(Xm(r,e))}}function nv(t){return t!=null?tv(ev(t)):null}function rv(t){if(!t)return null;let e=t.filter(Qm);return e.length==0?null:function(r){let n=Xm(r,e).map(Km);return za(n).pipe(A(Jm))}}function iv(t){return t!=null?rv(ev(t)):null}function Bm(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function ov(t){return t._rawValidators}function sv(t){return t._rawAsyncValidators}function cd(t){return t?Array.isArray(t)?t:[t]:[]}function pa(t,e){return Array.isArray(t)?t.includes(e):t===e}function $m(t,e){let r=cd(e);return cd(t).forEach(i=>{pa(r,i)||r.push(i)}),r}function Um(t,e){return cd(e).filter(r=>!pa(t,r))}var ga=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=nv(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=iv(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,r){return this.control?this.control.hasError(e,r):!1}getError(e,r){return this.control?this.control.getError(e,r):null}},nt=class extends ga{get formDirective(){return null}get path(){return null}},Bi=class extends ga{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},ma=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},QM={"[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"},x1=W(m({},QM),{"[class.ng-submitted]":"isSubmitted"}),av=(()=>{let e=class e extends ma{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(g(Bi,2))},e.\u0275dir=re({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&Cr("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[ct]});let t=e;return t})(),uv=(()=>{let e=class e extends ma{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(g(nt,10))},e.\u0275dir=re({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){i&2&&Cr("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[ct]});let t=e;return t})();var Li="VALID",ha="INVALID",Vr="PENDING",Vi="DISABLED";function ld(t){return(Ia(t)?t.validators:t)||null}function KM(t){return Array.isArray(t)?nv(t):t||null}function dd(t,e){return(Ia(e)?e.asyncValidators:t)||null}function JM(t){return Array.isArray(t)?iv(t):t||null}function Ia(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function cv(t,e,r){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new C(1e3,"");if(!n[r])throw new C(1001,"")}function lv(t,e,r){t._forEachChild((n,i)=>{if(r[i]===void 0)throw new C(1002,"")})}var $i=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===Li}get invalid(){return this.status===ha}get pending(){return this.status==Vr}get disabled(){return this.status===Vi}get enabled(){return this.status!==Vi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators($m(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators($m(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Um(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Um(e,this._rawAsyncValidators))}hasValidator(e){return pa(this._rawValidators,e)}hasAsyncValidator(e){return pa(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(r=>{r.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Vr,e.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=Vi,this.errors=null,this._forEachChild(n=>{n.disable(W(m({},e),{onlySelf:!0}))}),this._updateValue(),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(W(m({},e),{skipPristineCheck:r})),this._onDisabledChange.forEach(n=>n(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=Li,this._forEachChild(n=>{n.enable(W(m({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(W(m({},e),{skipPristineCheck:r})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Li||this.status===Vr)&&this._runAsyncValidator(e.emitEvent)),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Vi:Li}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Vr,this._hasOwnPendingAsyncValidator=!0;let r=Km(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(r.emitEvent!==!1)}get(e){let r=e;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((n,i)=>n&&n._find(i),this)}getError(e,r){let n=r?this.get(r):this;return n&&n.errors?n.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new J,this.statusChanges=new J}_calculateStatus(){return this._allControlsDisabled()?Vi:this.errors?ha:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Vr)?Vr:this._anyControlsHaveStatus(ha)?ha:Li}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Ia(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let r=this._parent&&this._parent.dirty;return!e&&!!r&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=KM(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=JM(this._rawAsyncValidators)}},va=class extends $i{constructor(e,r,n){super(ld(r),dd(n,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,r){return this.controls[e]?this.controls[e]:(this.controls[e]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(e,r,n={}){this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(e,r,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],r&&this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,r={}){lv(this,!0,e),Object.keys(e).forEach(n=>{cv(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(Object.keys(e).forEach(n=>{let i=this.controls[n];i&&i.patchValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e={},r={}){this._forEachChild((n,i)=>{n.reset(e?e[i]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r),this._updateTouched(r),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(e,r,n)=>(e[n]=r.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(r,n)=>n._syncPendingControls()?!0:r);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(r=>{let n=this.controls[r];n&&e(n,r)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[r,n]of Object.entries(this.controls))if(this.contains(r)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(r,n,i)=>((n.enabled||this.disabled)&&(r[i]=n.value),r))}_reduceChildren(e,r){let n=e;return this._forEachChild((i,o)=>{n=r(n,i,o)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var dv=new E("CallSetDisabledState",{providedIn:"root",factory:()=>fd}),fd="always";function hd(t,e){return[...e.path,t]}function Hm(t,e,r=fd){pd(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),eS(t,e),nS(t,e),tS(t,e),XM(t,e)}function zm(t,e,r=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),Da(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function ya(t,e){t.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function XM(t,e){if(e.valueAccessor.setDisabledState){let r=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(r),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(r)})}}function pd(t,e){let r=ov(t);e.validator!==null?t.setValidators(Bm(r,e.validator)):typeof r=="function"&&t.setValidators([r]);let n=sv(t);e.asyncValidator!==null?t.setAsyncValidators(Bm(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let i=()=>t.updateValueAndValidity();ya(e._rawValidators,i),ya(e._rawAsyncValidators,i)}function Da(t,e){let r=!1;if(t!==null){if(e.validator!==null){let i=ov(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.validator);o.length!==i.length&&(r=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let i=sv(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.asyncValidator);o.length!==i.length&&(r=!0,t.setAsyncValidators(o))}}}let n=()=>{};return ya(e._rawValidators,n),ya(e._rawAsyncValidators,n),r}function eS(t,e){e.valueAccessor.registerOnChange(r=>{t._pendingValue=r,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&fv(t,e)})}function tS(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&fv(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function fv(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function nS(t,e){let r=(n,i)=>{e.valueAccessor.writeValue(n),i&&e.viewToModelUpdate(n)};t.registerOnChange(r),e._registerOnDestroy(()=>{t._unregisterOnChange(r)})}function rS(t,e){t==null,pd(t,e)}function iS(t,e){return Da(t,e)}function oS(t,e){if(!t.hasOwnProperty("model"))return!1;let r=t.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function sS(t){return Object.getPrototypeOf(t.constructor)===kM}function aS(t,e){t._syncPendingControls(),e.forEach(r=>{let n=r.control;n.updateOn==="submit"&&n._pendingChange&&(r.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function uS(t,e){if(!e)return null;Array.isArray(e);let r,n,i;return e.forEach(o=>{o.constructor===wa?r=o:sS(o)?n=o:i=o}),i||n||r||null}function cS(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function Gm(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function Wm(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Rt=class extends $i{constructor(e=null,r,n){super(ld(r),dd(n,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ia(r)&&(r.nonNullable||r.initialValueIsDefault)&&(Wm(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Gm(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Gm(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){Wm(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var lS=t=>t instanceof Rt,dS=(()=>{let e=class e extends nt{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return hd(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=vr(e)))(o||e)}})(),e.\u0275dir=re({type:e,features:[ct]});let t=e;return t})();var hv=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=re({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})();var fS=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=X({});let t=e;return t})();var pv=new E("NgModelWithFormControlWarning");var hS={provide:nt,useExisting:_t(()=>jr)},jr=(()=>{let e=class e extends nt{constructor(n,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new J,this._setValidators(n),this._setAsyncValidators(i)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Da(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let i=this.form.get(n.path);return Hm(i,n,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),i}getControl(n){return this.form.get(n.path)}removeControl(n){zm(n.control||null,n,!1),cS(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,i){this.form.get(n.path).setValue(i)}onSubmit(n){return this.submitted=!0,aS(this.form,this.directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_updateDomValue(){this.directives.forEach(n=>{let i=n.control,o=this.form.get(n.path);i!==o&&(zm(i||null,n),lS(o)&&(Hm(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let i=this.form.get(n.path);rS(i,n),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let i=this.form.get(n.path);i&&iS(i,n)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){pd(this.form,this),this._oldForm&&Da(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(i){return new(i||e)(g(ba,10),g(Ea,10),g(dv,8))},e.\u0275dir=re({type:e,selectors:[["","formGroup",""]],hostBindings:function(i,o){i&1&&oe("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[dn([hS]),ct,ut]});let t=e;return t})(),pS={provide:nt,useExisting:_t(()=>gv)},gv=(()=>{let e=class e extends dS{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),this._setAsyncValidators(o)}_checkParentType(){mv(this._parent)}};e.\u0275fac=function(i){return new(i||e)(g(nt,13),g(ba,10),g(Ea,10))},e.\u0275dir=re({type:e,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[dn([pS]),ct]});let t=e;return t})(),gS={provide:nt,useExisting:_t(()=>_a)},_a=(()=>{let e=class e extends nt{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),this._setAsyncValidators(o)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return hd(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){mv(this._parent)}};e.\u0275fac=function(i){return new(i||e)(g(nt,13),g(ba,10),g(Ea,10))},e.\u0275dir=re({type:e,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[dn([gS]),ct]});let t=e;return t})();function mv(t){return!(t instanceof gv)&&!(t instanceof jr)&&!(t instanceof _a)}var mS={provide:Bi,useExisting:_t(()=>gd)},gd=(()=>{let e=class e extends Bi{set isDisabled(n){}constructor(n,i,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new J,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=uS(this,s)}ngOnChanges(n){this._added||this._setUpControl(),oS(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return hd(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(i){return new(i||e)(g(nt,13),g(ba,10),g(Ea,10),g(Ca,10),g(pv,8))},e.\u0275dir=re({type:e,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[dn([mS]),ct,ut]});let t=e;return t})();var vS=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=X({imports:[fS]});let t=e;return t})(),Ui=class extends $i{constructor(e,r,n){super(ld(r),dd(n,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,r={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}insert(e,r,n={}){this.controls.splice(e,0,r),this._registerControl(r),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,r={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:r.emitEvent})}setControl(e,r,n={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),r&&(this.controls.splice(i,0,r),this._registerControl(r)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,r={}){lv(this,!1,e),e.forEach((n,i)=>{cv(this,!1,i),this.at(i).setValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(e.forEach((n,i)=>{this.at(i)&&this.at(i).patchValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e=[],r={}){this._forEachChild((n,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r),this._updateTouched(r),this.updateValueAndValidity(r)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(r=>r._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((r,n)=>n._syncPendingControls()?!0:r,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((r,n)=>{e(r,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(r=>r.enabled&&e(r))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};var vv=t=>t instanceof Ui;var yv=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:pv,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:dv,useValue:n.callSetDisabledState??fd}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=X({imports:[vS]});let t=e;return t})();var Cv=(()=>{class t{constructor(r,n){this.renderer=r,this.elementRef=n,this.onInput=i=>{let o=i?new Date(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()):null,s=o?o.toISOString():null;this.onChange(s)},this.onChange=()=>{},this.onTouched=()=>{}}writeValue(r){let n=r?new Date(r):null,i=n?new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())):null;this.renderer.setProperty(this.elementRef.nativeElement,"valueAsDate",i)}registerOnChange(r){this.onChange=r}registerOnTouched(r){this.onTouched=r}setDisabledState(r){this.renderer.setProperty(this.elementRef.nativeElement,"disabled",r)}}return t.\u0275fac=function(r){return new(r||t)(g(Mt),g(ke))},t.\u0275dir=re({type:t,selectors:[["","useValueAsLocalIso",""]],hostBindings:function(r,n){r&1&&oe("input",function(o){return n.onInput(o.target.valueAsDate)})("blur",function(){return n.onTouched()})},standalone:!0,features:[dn([{provide:Ca,useExisting:_t(()=>t),multi:!0}])]}),t})();var wv=(()=>{let e=class e{constructor(n){this.service=n}isbnExists(){return n=>this.service.check(n.value).pipe(A(i=>i?{isbnexists:!0}:null))}};e.\u0275fac=function(i){return new(i||e)(y(tt))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var bv=function(t){if(!t.value||typeof t.value!="string")return null;let r=t.value.replace(/-/g,"").length;return r===10||r===13?null:{isbnformat:!0}},Ev=function(t){return!vv(t)||t.controls.some(e=>!!e.value)?null:{atleastonevalue:!0}};function DS(t,e){if(t&1&&(D(0,"p",1),M(1),v()),t&2){let r=e.$implicit;x(1),Be(" ",r,` -`)}}var Iv=(()=>{let e=class e{constructor(n){this.form=n,this.messages={}}get errors(){if(!this.controlName)return[];let n=this.form.control.get(this.controlName);return!n||!n.errors||!n.touched?[]:Object.keys(n.errors).map(i=>this.messages[i])}};e.\u0275fac=function(i){return new(i||e)(g(jr))},e.\u0275cmp=ae({type:e,selectors:[["bm-form-errors"]],inputs:{controlName:"controlName",messages:"messages"},decls:1,vars:1,consts:[["class","error",4,"ngFor","ngForOf"],[1,"error"]],template:function(i,o){i&1&&Q(0,DS,2,1,"p",0),i&2&&O("ngForOf",o.errors)},dependencies:[Ke]});let t=e;return t})();function wS(t,e){if(t&1&&ue(0,"input",20),t&2){let r=e.index;O("formControlName",r),Dr("aria-label","Author "+r)}}var bS=()=>({required:"Title is required"}),ES=()=>({required:"ISBN is required",isbnformat:"ISBN must have 10 or 13 chars",isbnexists:"ISBN already exists"}),IS=()=>({atleastonevalue:"At least one author required"}),Ma=(()=>{let e=class e{constructor(){this.submitBook=new J,this.form=new va({title:new Rt("",{nonNullable:!0,validators:ji.required}),subtitle:new Rt("",{nonNullable:!0}),isbn:new Rt("",{nonNullable:!0,validators:[ji.required,bv],asyncValidators:p(wv).isbnExists()}),description:new Rt("",{nonNullable:!0}),published:new Rt("",{nonNullable:!0}),authors:this.buildAuthorsArray([""]),thumbnailUrl:new Rt("",{nonNullable:!0})})}ngOnChanges(){this.book?(this.setFormValues(this.book),this.setEditMode(!0)):this.setEditMode(!1)}setFormValues(n){this.form.patchValue(n),this.form.setControl("authors",this.buildAuthorsArray(n.authors))}setEditMode(n){let i=this.form.controls.isbn;n?i.disable():i.enable()}buildAuthorsArray(n){return new Ui(n.map(i=>new Rt(i,{nonNullable:!0})),Ev)}get authors(){return this.form.controls.authors}addAuthorControl(){this.authors.push(new Rt("",{nonNullable:!0}))}submitForm(){let n=this.form.getRawValue(),i=n.authors.filter(s=>!!s),o=W(m({},n),{authors:i});this.submitBook.emit(o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ae({type:e,selectors:[["bm-book-form"]],inputs:{book:"book"},outputs:{submitBook:"submitBook"},features:[ut],decls:30,vars:9,consts:[[3,"formGroup","ngSubmit"],["for","title"],["id","title","formControlName","title"],["controlName","title",3,"messages"],["for","subtitle"],["id","subtitle","formControlName","subtitle"],["for","isbn"],["id","isbn","formControlName","isbn"],["controlName","isbn",3,"messages"],["type","button",1,"add",3,"click"],["formArrayName","authors"],[3,"formControlName",4,"ngFor","ngForOf"],["controlName","authors",3,"messages"],["for","description"],["id","description","formControlName","description"],["for","published"],["type","date","useValueAsLocalIso","","id","published","formControlName","published"],["for","thumbnailUrl"],["type","url","id","thumbnailUrl","formControlName","thumbnailUrl"],["type","submit",3,"disabled"],[3,"formControlName"]],template:function(i,o){i&1&&(D(0,"form",0),oe("ngSubmit",function(){return o.submitForm()}),D(1,"label",1),M(2,"Title"),v(),ue(3,"input",2)(4,"bm-form-errors",3),D(5,"label",4),M(6,"Subtitle"),v(),ue(7,"input",5),D(8,"label",6),M(9,"ISBN"),v(),ue(10,"input",7)(11,"bm-form-errors",8),D(12,"label"),M(13,"Authors"),v(),D(14,"button",9),oe("click",function(){return o.addAuthorControl()}),M(15," + Author "),v(),D(16,"fieldset",10),Q(17,wS,1,2,"input",11),v(),ue(18,"bm-form-errors",12),D(19,"label",13),M(20,"Description"),v(),ue(21,"textarea",14),D(22,"label",15),M(23,"Published"),v(),ue(24,"input",16),D(25,"label",17),M(26,"Thumbnail URL"),v(),ue(27,"input",18),D(28,"button",19),M(29," Save "),v()()),i&2&&(O("formGroup",o.form),x(4),O("messages",Cs(6,bS)),x(7),O("messages",Cs(7,ES)),x(6),O("ngForOf",o.authors.controls),x(1),O("messages",Cs(8,IS)),x(10),O("disabled",o.form.invalid))},dependencies:[Ke,hv,wa,av,uv,jr,gd,_a,Cv,Iv]});let t=e;return t})();var Mv=(()=>{let e=class e{constructor(n,i){this.service=n,this.router=i}create(n){this.service.create(n).subscribe(i=>{this.router.navigate(["/books",i.isbn])})}};e.\u0275fac=function(i){return new(i||e)(g(tt),g(Oe))},e.\u0275cmp=ae({type:e,selectors:[["bm-book-create"]],decls:3,vars:0,consts:[[3,"submitBook"]],template:function(i,o){i&1&&(D(0,"h1"),M(1,"Create Book"),v(),D(2,"bm-book-form",0),oe("submitBook",function(a){return o.create(a)}),v())},dependencies:[Ma]});let t=e;return t})();function _S(t,e){if(t&1){let r=zt();D(0,"bm-book-form",1),oe("submitBook",function(i){$t(r);let o=_e();return Ut(o.update(i))}),v()}if(t&2){let r=e.ngIf;O("book",r)}}var Sv=(()=>{let e=class e{constructor(n,i,o){this.service=n,this.route=i,this.router=o,this.book$=this.route.paramMap.pipe(A(s=>s.get("isbn")),le(s=>this.service.getSingle(s)))}update(n){this.service.update(n).subscribe(i=>{this.router.navigate(["/books",i.isbn])})}};e.\u0275fac=function(i){return new(i||e)(g(tt),g(ht),g(Oe))},e.\u0275cmp=ae({type:e,selectors:[["bm-book-edit"]],decls:4,vars:3,consts:[[3,"book","submitBook",4,"ngIf"],[3,"book","submitBook"]],template:function(i,o){i&1&&(D(0,"h1"),M(1,"Edit Book"),v(),Q(2,_S,1,1,"bm-book-form",0),Ye(3,"async")),i&2&&(x(2),O("ngIf",lt(3,1,o.book$)))},dependencies:[Je,Ma,fn]});let t=e;return t})();var MS=[{path:"admin",redirectTo:"admin/create"},{path:"admin/create",component:Mv},{path:"admin/edit/:isbn",component:Sv}],Tv=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=X({imports:[Qt.forChild(MS),Qt]});let t=e;return t})();var xv=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=X({imports:[_r,Tv,yv]});let t=e;return t})();var Av=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ee({type:e,bootstrap:[Am]}),e.\u0275inj=X({providers:[{provide:fl,useClass:jm,multi:!0}],imports:[Pg,xm,Mg,Vm,xv]});let t=e;return t})();Fg().bootstrapModule(Av).catch(t=>console.error(t)); diff --git a/polyfills-LZBJRJJE.js b/polyfills-LZBJRJJE.js deleted file mode 100644 index 57d4c33..0000000 --- a/polyfills-LZBJRJJE.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(e){let n=e.performance;function c(L){n&&n.mark&&n.mark(L)}function r(L,t){n&&n.measure&&n.measure(L,t)}c("Zone");let a=e.__Zone_symbol_prefix||"__zone_symbol__";function l(L){return a+L}let y=e[l("forceDuplicateZoneCheck")]===!0;if(e.Zone){if(y||typeof e.Zone.__symbol__!="function")throw new Error("Zone already loaded.");return e.Zone}let oe=class oe{static assertZonePatched(){if(e.Promise!==re.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=oe.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return te}static __load_patch(t,s,o=!1){if(re.hasOwnProperty(t)){if(!o&&y)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){let v="Zone:"+t;c(v),re[t]=s(e,oe,z),r(v,v)}}get parent(){return this._parent}get name(){return this._name}constructor(t,s){this._parent=t,this._name=s?s.name||"unnamed":"",this._properties=s&&s.properties||{},this._zoneDelegate=new k(this,this._parent&&this._parent._zoneDelegate,s)}get(t){let s=this.getZoneWith(t);if(s)return s._properties[t]}getZoneWith(t){let s=this;for(;s;){if(s._properties.hasOwnProperty(t))return s;s=s._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,s){if(typeof t!="function")throw new Error("Expecting function got: "+t);let o=this._zoneDelegate.intercept(this,t,s),v=this;return function(){return v.runGuarded(o,this,arguments,s)}}run(t,s,o,v){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,s,o,v)}finally{U=U.parent}}runGuarded(t,s=null,o,v){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,s,o,v)}catch(F){if(this._zoneDelegate.handleError(this,F))throw F}}finally{U=U.parent}}runTask(t,s,o){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||$).name+"; Execution: "+this.name+")");if(t.state===H&&(t.type===K||t.type===P))return;let v=t.state!=T;v&&t._transitionTo(T,M),t.runCount++;let F=te;te=t,U={parent:U,zone:this};try{t.type==P&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,s,o)}catch(u){if(this._zoneDelegate.handleError(this,u))throw u}}finally{t.state!==H&&t.state!==d&&(t.type==K||t.data&&t.data.isPeriodic?v&&t._transitionTo(M,T):(t.runCount=0,this._updateTaskCount(t,-1),v&&t._transitionTo(H,T,H))),U=U.parent,te=F}}scheduleTask(t){if(t.zone&&t.zone!==this){let o=this;for(;o;){if(o===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);o=o.parent}}t._transitionTo(X,H);let s=[];t._zoneDelegates=s,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(o){throw t._transitionTo(d,X,H),this._zoneDelegate.handleError(this,o),o}return t._zoneDelegates===s&&this._updateTaskCount(t,1),t.state==X&&t._transitionTo(M,X),t}scheduleMicroTask(t,s,o,v){return this.scheduleTask(new m(N,t,s,o,v,void 0))}scheduleMacroTask(t,s,o,v,F){return this.scheduleTask(new m(P,t,s,o,v,F))}scheduleEventTask(t,s,o,v,F){return this.scheduleTask(new m(K,t,s,o,v,F))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||$).name+"; Execution: "+this.name+")");if(!(t.state!==M&&t.state!==T)){t._transitionTo(x,M,T);try{this._zoneDelegate.cancelTask(this,t)}catch(s){throw t._transitionTo(d,x),this._zoneDelegate.handleError(this,s),s}return this._updateTaskCount(t,-1),t._transitionTo(H,x),t.runCount=0,t}}_updateTaskCount(t,s){let o=t._zoneDelegates;s==-1&&(t._zoneDelegates=null);for(let v=0;vL.hasTask(s,o),onScheduleTask:(L,t,s,o)=>L.scheduleTask(s,o),onInvokeTask:(L,t,s,o,v,F)=>L.invokeTask(s,o,v,F),onCancelTask:(L,t,s,o)=>L.cancelTask(s,o)};class k{constructor(t,s,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=t,this._parentDelegate=s,this._forkZS=o&&(o&&o.onFork?o:s._forkZS),this._forkDlgt=o&&(o.onFork?s:s._forkDlgt),this._forkCurrZone=o&&(o.onFork?this.zone:s._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:s._interceptZS),this._interceptDlgt=o&&(o.onIntercept?s:s._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this.zone:s._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:s._invokeZS),this._invokeDlgt=o&&(o.onInvoke?s:s._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this.zone:s._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:s._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?s:s._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this.zone:s._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:s._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?s:s._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this.zone:s._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:s._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?s:s._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this.zone:s._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:s._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?s:s._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this.zone:s._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let v=o&&o.onHasTask,F=s&&s._hasTaskZS;(v||F)&&(this._hasTaskZS=v?o:b,this._hasTaskDlgt=s,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=t,o.onScheduleTask||(this._scheduleTaskZS=b,this._scheduleTaskDlgt=s,this._scheduleTaskCurrZone=this.zone),o.onInvokeTask||(this._invokeTaskZS=b,this._invokeTaskDlgt=s,this._invokeTaskCurrZone=this.zone),o.onCancelTask||(this._cancelTaskZS=b,this._cancelTaskDlgt=s,this._cancelTaskCurrZone=this.zone))}fork(t,s){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,t,s):new _(t,s)}intercept(t,s,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,t,s,o):s}invoke(t,s,o,v,F){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,t,s,o,v,F):s.apply(o,v)}handleError(t,s){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,t,s):!0}scheduleTask(t,s){let o=s;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,t,s),o||(o=s);else if(s.scheduleFn)s.scheduleFn(s);else if(s.type==N)R(s);else throw new Error("Task is missing scheduleFn.");return o}invokeTask(t,s,o,v){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,t,s,o,v):s.callback.apply(o,v)}cancelTask(t,s){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,t,s);else{if(!s.cancelFn)throw Error("Task is not cancelable");o=s.cancelFn(s)}return o}hasTask(t,s){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,t,s)}catch(o){this.handleError(t,o)}}_updateTaskCount(t,s){let o=this._taskCounts,v=o[t],F=o[t]=v+s;if(F<0)throw new Error("More tasks executed then were scheduled.");if(v==0||F==0){let u={microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:t};this.hasTask(this.zone,u)}}}class m{constructor(t,s,o,v,F,u){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=t,this.source=s,this.data=v,this.scheduleFn=F,this.cancelFn=u,!o)throw new Error("callback is not defined");this.callback=o;let f=this;t===K&&v&&v.useG?this.invoke=m.invokeTask:this.invoke=function(){return m.invokeTask.call(e,f,this,arguments)}}static invokeTask(t,s,o){t||(t=this),Q++;try{return t.runCount++,t.zone.runTask(t,s,o)}finally{Q==1&&E(),Q--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(H,X)}_transitionTo(t,s,o){if(this._state===s||this._state===o)this._state=t,t==H&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${t}', expecting state '${s}'${o?" or '"+o+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let I=l("setTimeout"),Z=l("Promise"),O=l("then"),B=[],A=!1,J;function q(L){if(J||e[Z]&&(J=e[Z].resolve(0)),J){let t=J[O];t||(t=J.then),t.call(J,L)}else e[I](L,0)}function R(L){Q===0&&B.length===0&&q(E),L&&B.push(L)}function E(){if(!A){for(A=!0;B.length;){let L=B;B=[];for(let t=0;tU,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!_[l("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:q},U={parent:null,zone:new _(null,null)},te=null,Q=0;function W(){}return r("Zone","Zone"),e.Zone=_})(globalThis);var me=Object.getOwnPropertyDescriptor,Ne=Object.defineProperty,Ie=Object.getPrototypeOf,it=Object.create,ct=Array.prototype.slice,Me="addEventListener",Le="removeEventListener",Se=Zone.__symbol__(Me),De=Zone.__symbol__(Le),ie="true",ce="false",pe=Zone.__symbol__("");function Ae(e,n){return Zone.current.wrap(e,n)}function je(e,n,c,r,a){return Zone.current.scheduleMacroTask(e,n,c,r,a)}var j=Zone.__symbol__,Pe=typeof window<"u",Te=Pe?window:void 0,Y=Pe&&Te||globalThis,at="removeAttribute";function He(e,n){for(let c=e.length-1;c>=0;c--)typeof e[c]=="function"&&(e[c]=Ae(e[c],n+"_"+c));return e}function lt(e,n){let c=e.constructor.name;for(let r=0;r{let b=function(){return _.apply(this,He(arguments,c+"."+a))};return ae(b,_),b})(l)}}}function Ye(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var $e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,we=!("nw"in Y)&&typeof Y.process<"u"&&{}.toString.call(Y.process)==="[object process]",xe=!we&&!$e&&!!(Pe&&Te.HTMLElement),Je=typeof Y.process<"u"&&{}.toString.call(Y.process)==="[object process]"&&!$e&&!!(Pe&&Te.HTMLElement),be={},We=function(e){if(e=e||Y.event,!e)return;let n=be[e.type];n||(n=be[e.type]=j("ON_PROPERTY"+e.type));let c=this||e.target||Y,r=c[n],a;if(xe&&c===Te&&e.type==="error"){let l=e;a=r&&r.call(this,l.message,l.filename,l.lineno,l.colno,l.error),a===!0&&e.preventDefault()}else a=r&&r.apply(this,arguments),a!=null&&!a&&e.preventDefault();return a};function qe(e,n,c){let r=me(e,n);if(!r&&c&&me(c,n)&&(r={enumerable:!0,configurable:!0}),!r||!r.configurable)return;let a=j("on"+n+"patched");if(e.hasOwnProperty(a)&&e[a])return;delete r.writable,delete r.value;let l=r.get,y=r.set,_=n.slice(2),b=be[_];b||(b=be[_]=j("ON_PROPERTY"+_)),r.set=function(k){let m=this;if(!m&&e===Y&&(m=Y),!m)return;typeof m[b]=="function"&&m.removeEventListener(_,We),y&&y.call(m,null),m[b]=k,typeof k=="function"&&m.addEventListener(_,We,!1)},r.get=function(){let k=this;if(!k&&e===Y&&(k=Y),!k)return null;let m=k[b];if(m)return m;if(l){let I=l.call(this);if(I)return r.set.call(this,I),typeof k[at]=="function"&&k.removeAttribute(n),I}return null},Ne(e,n,r),e[a]=!0}function Ke(e,n,c){if(n)for(let r=0;rfunction(y,_){let b=c(y,_);return b.cbIdx>=0&&typeof _[b.cbIdx]=="function"?je(b.name,_[b.cbIdx],b,a):l.apply(y,_)})}function ae(e,n){e[j("OriginalDelegate")]=n}var Xe=!1,Ze=!1;function ft(){try{let e=Te.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function ht(){if(Xe)return Ze;Xe=!0;try{let e=Te.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Ze=!0)}catch{}return Ze}Zone.__load_patch("ZoneAwarePromise",(e,n,c)=>{let r=Object.getOwnPropertyDescriptor,a=Object.defineProperty;function l(u){if(u&&u.toString===Object.prototype.toString){let f=u.constructor&&u.constructor.name;return(f||"")+": "+JSON.stringify(u)}return u?u.toString():Object.prototype.toString.call(u)}let y=c.symbol,_=[],b=e[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,k=y("Promise"),m=y("then"),I="__creationTrace__";c.onUnhandledError=u=>{if(c.showUncaughtError()){let f=u&&u.rejection;f?console.error("Unhandled Promise rejection:",f instanceof Error?f.message:f,"; Zone:",u.zone.name,"; Task:",u.task&&u.task.source,"; Value:",f,f instanceof Error?f.stack:void 0):console.error(u)}},c.microtaskDrainDone=()=>{for(;_.length;){let u=_.shift();try{u.zone.runGuarded(()=>{throw u.throwOriginal?u.rejection:u})}catch(f){O(f)}}};let Z=y("unhandledPromiseRejectionHandler");function O(u){c.onUnhandledError(u);try{let f=n[Z];typeof f=="function"&&f.call(this,u)}catch{}}function B(u){return u&&u.then}function A(u){return u}function J(u){return t.reject(u)}let q=y("state"),R=y("value"),E=y("finally"),$=y("parentPromiseValue"),H=y("parentPromiseState"),X="Promise.then",M=null,T=!0,x=!1,d=0;function N(u,f){return i=>{try{z(u,f,i)}catch(h){z(u,!1,h)}}}let P=function(){let u=!1;return function(i){return function(){u||(u=!0,i.apply(null,arguments))}}},K="Promise resolved with itself",re=y("currentTaskTrace");function z(u,f,i){let h=P();if(u===i)throw new TypeError(K);if(u[q]===M){let g=null;try{(typeof i=="object"||typeof i=="function")&&(g=i&&i.then)}catch(w){return h(()=>{z(u,!1,w)})(),u}if(f!==x&&i instanceof t&&i.hasOwnProperty(q)&&i.hasOwnProperty(R)&&i[q]!==M)te(i),z(u,i[q],i[R]);else if(f!==x&&typeof g=="function")try{g.call(i,h(N(u,f)),h(N(u,!1)))}catch(w){h(()=>{z(u,!1,w)})()}else{u[q]=f;let w=u[R];if(u[R]=i,u[E]===E&&f===T&&(u[q]=u[H],u[R]=u[$]),f===x&&i instanceof Error){let p=n.currentTask&&n.currentTask.data&&n.currentTask.data[I];p&&a(i,re,{configurable:!0,enumerable:!1,writable:!0,value:p})}for(let p=0;p{try{let C=u[R],S=!!i&&E===i[E];S&&(i[$]=C,i[H]=w);let D=f.run(p,void 0,S&&p!==J&&p!==A?[]:[C]);z(i,!0,D)}catch(C){z(i,!1,C)}},i)}let W="function ZoneAwarePromise() { [native code] }",oe=function(){},L=e.AggregateError;class t{static toString(){return W}static resolve(f){return z(new this(null),T,f)}static reject(f){return z(new this(null),x,f)}static any(f){if(!f||typeof f[Symbol.iterator]!="function")return Promise.reject(new L([],"All promises were rejected"));let i=[],h=0;try{for(let p of f)h++,i.push(t.resolve(p))}catch{return Promise.reject(new L([],"All promises were rejected"))}if(h===0)return Promise.reject(new L([],"All promises were rejected"));let g=!1,w=[];return new t((p,C)=>{for(let S=0;S{g||(g=!0,p(D))},D=>{w.push(D),h--,h===0&&(g=!0,C(new L(w,"All promises were rejected")))})})}static race(f){let i,h,g=new this((C,S)=>{i=C,h=S});function w(C){i(C)}function p(C){h(C)}for(let C of f)B(C)||(C=this.resolve(C)),C.then(w,p);return g}static all(f){return t.allWithCallback(f)}static allSettled(f){return(this&&this.prototype instanceof t?this:t).allWithCallback(f,{thenCallback:h=>({status:"fulfilled",value:h}),errorCallback:h=>({status:"rejected",reason:h})})}static allWithCallback(f,i){let h,g,w=new this((D,G)=>{h=D,g=G}),p=2,C=0,S=[];for(let D of f){B(D)||(D=this.resolve(D));let G=C;try{D.then(V=>{S[G]=i?i.thenCallback(V):V,p--,p===0&&h(S)},V=>{i?(S[G]=i.errorCallback(V),p--,p===0&&h(S)):g(V)})}catch(V){g(V)}p++,C++}return p-=2,p===0&&h(S),w}constructor(f){let i=this;if(!(i instanceof t))throw new Error("Must be an instanceof Promise.");i[q]=M,i[R]=[];try{let h=P();f&&f(h(N(i,T)),h(N(i,x)))}catch(h){z(i,!1,h)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(f,i){let h=this.constructor?.[Symbol.species];(!h||typeof h!="function")&&(h=this.constructor||t);let g=new h(oe),w=n.current;return this[q]==M?this[R].push(w,g,f,i):Q(this,w,g,f,i),g}catch(f){return this.then(null,f)}finally(f){let i=this.constructor?.[Symbol.species];(!i||typeof i!="function")&&(i=t);let h=new i(oe);h[E]=E;let g=n.current;return this[q]==M?this[R].push(g,h,f,f):Q(this,g,h,f,f),h}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;let s=e[k]=e.Promise;e.Promise=t;let o=y("thenPatched");function v(u){let f=u.prototype,i=r(f,"then");if(i&&(i.writable===!1||!i.configurable))return;let h=f.then;f[m]=h,u.prototype.then=function(g,w){return new t((C,S)=>{h.call(this,C,S)}).then(g,w)},u[o]=!0}c.patchThen=v;function F(u){return function(f,i){let h=u.apply(f,i);if(h instanceof t)return h;let g=h.constructor;return g[o]||v(g),h}}return s&&(v(s),le(e,"fetch",u=>F(u))),Promise[n.__symbol__("uncaughtPromiseErrors")]=_,t});Zone.__load_patch("toString",e=>{let n=Function.prototype.toString,c=j("OriginalDelegate"),r=j("Promise"),a=j("Error"),l=function(){if(typeof this=="function"){let k=this[c];if(k)return typeof k=="function"?n.call(k):Object.prototype.toString.call(k);if(this===Promise){let m=e[r];if(m)return n.call(m)}if(this===Error){let m=e[a];if(m)return n.call(m)}}return n.call(this)};l[c]=n,Function.prototype.toString=l;let y=Object.prototype.toString,_="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?_:y.call(this)}});var _e=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){_e=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{_e=!1}var dt={useG:!0},ee={},Qe={},et=new RegExp("^"+pe+"(\\w+)(true|false)$"),tt=j("propagationStopped");function nt(e,n){let c=(n?n(e):e)+ce,r=(n?n(e):e)+ie,a=pe+c,l=pe+r;ee[e]={},ee[e][ce]=a,ee[e][ie]=l}function _t(e,n,c,r){let a=r&&r.add||Me,l=r&&r.rm||Le,y=r&&r.listeners||"eventListeners",_=r&&r.rmAll||"removeAllListeners",b=j(a),k="."+a+":",m="prependListener",I="."+m+":",Z=function(R,E,$){if(R.isRemoved)return;let H=R.callback;typeof H=="object"&&H.handleEvent&&(R.callback=T=>H.handleEvent(T),R.originalDelegate=H);let X;try{R.invoke(R,E,[$])}catch(T){X=T}let M=R.options;if(M&&typeof M=="object"&&M.once){let T=R.originalDelegate?R.originalDelegate:R.callback;E[l].call(E,$.type,T,M)}return X};function O(R,E,$){if(E=E||e.event,!E)return;let H=R||E.target||e,X=H[ee[E.type][$?ie:ce]];if(X){let M=[];if(X.length===1){let T=Z(X[0],H,E);T&&M.push(T)}else{let T=X.slice();for(let x=0;x{throw x})}}}let B=function(R){return O(this,R,!1)},A=function(R){return O(this,R,!0)};function J(R,E){if(!R)return!1;let $=!0;E&&E.useG!==void 0&&($=E.useG);let H=E&&E.vh,X=!0;E&&E.chkDup!==void 0&&(X=E.chkDup);let M=!1;E&&E.rt!==void 0&&(M=E.rt);let T=R;for(;T&&!T.hasOwnProperty(a);)T=Ie(T);if(!T&&R[a]&&(T=R),!T||T[b])return!1;let x=E&&E.eventNameToString,d={},N=T[b]=T[a],P=T[j(l)]=T[l],K=T[j(y)]=T[y],re=T[j(_)]=T[_],z;E&&E.prepend&&(z=T[j(E.prepend)]=T[E.prepend]);function U(i,h){return!_e&&typeof i=="object"&&i?!!i.capture:!_e||!h?i:typeof i=="boolean"?{capture:i,passive:!0}:i?typeof i=="object"&&i.passive!==!1?{...i,passive:!0}:i:{passive:!0}}let te=function(i){if(!d.isExisting)return N.call(d.target,d.eventName,d.capture?A:B,d.options)},Q=function(i){if(!i.isRemoved){let h=ee[i.eventName],g;h&&(g=h[i.capture?ie:ce]);let w=g&&i.target[g];if(w){for(let p=0;pfunction(a,l){a[tt]=!0,r&&r.apply(a,l)})}function Tt(e,n,c,r,a){let l=Zone.__symbol__(r);if(n[l])return;let y=n[l]=n[r];n[r]=function(_,b,k){return b&&b.prototype&&a.forEach(function(m){let I=`${c}.${r}::`+m,Z=b.prototype;try{if(Z.hasOwnProperty(m)){let O=e.ObjectGetOwnPropertyDescriptor(Z,m);O&&O.value?(O.value=e.wrapWithCurrentZone(O.value,I),e._redefineProperty(b.prototype,m,O)):Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],I))}else Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],I))}catch{}}),y.call(n,_,b,k)},e.attachOriginToPatched(n[r],y)}function ot(e,n,c){if(!c||c.length===0)return n;let r=c.filter(l=>l.target===e);if(!r||r.length===0)return n;let a=r[0].ignoreProperties;return n.filter(l=>a.indexOf(l)===-1)}function ze(e,n,c,r){if(!e)return;let a=ot(e,n,c);Ke(e,a,r)}function Oe(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function yt(e,n){if(we&&!Je||Zone[e.symbol("patchEvents")])return;let c=n.__Zone_ignore_on_properties,r=[];if(xe){let a=window;r=r.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let l=ft()?[{target:a,ignoreProperties:["error"]}]:[];ze(a,Oe(a),c&&c.concat(l),Ie(a))}r=r.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let a=0;a{let r=Oe(e);c.patchOnProperties=Ke,c.patchMethod=le,c.bindArguments=He,c.patchMacroTask=ut;let a=n.__symbol__("BLACK_LISTED_EVENTS"),l=n.__symbol__("UNPATCHED_EVENTS");e[l]&&(e[a]=e[l]),e[a]&&(n[a]=n[l]=e[a]),c.patchEventPrototype=Et,c.patchEventTarget=_t,c.isIEOrEdge=ht,c.ObjectDefineProperty=Ne,c.ObjectGetOwnPropertyDescriptor=me,c.ObjectCreate=it,c.ArraySlice=ct,c.patchClass=ge,c.wrapWithCurrentZone=Ae,c.filterProperties=ot,c.attachOriginToPatched=ae,c._redefineProperty=Object.defineProperty,c.patchCallbacks=Tt,c.getGlobalObjects=()=>({globalSources:Qe,zoneSymbolEventNames:ee,eventNames:r,isBrowser:xe,isMix:Je,isNode:we,TRUE_STR:ie,FALSE_STR:ce,ZONE_SYMBOL_PREFIX:pe,ADD_EVENT_LISTENER_STR:Me,REMOVE_EVENT_LISTENER_STR:Le})});function mt(e,n){n.patchMethod(e,"queueMicrotask",c=>function(r,a){Zone.current.scheduleMicroTask("queueMicrotask",a[0])})}var ve=j("zoneTask");function Ee(e,n,c,r){let a=null,l=null;n+=r,c+=r;let y={};function _(k){let m=k.data;return m.args[0]=function(){return k.invoke.apply(this,arguments)},m.handleId=a.apply(e,m.args),k}function b(k){return l.call(e,k.data.handleId)}a=le(e,n,k=>function(m,I){if(typeof I[0]=="function"){let Z={isPeriodic:r==="Interval",delay:r==="Timeout"||r==="Interval"?I[1]||0:void 0,args:I},O=I[0];I[0]=function(){try{return O.apply(this,arguments)}finally{Z.isPeriodic||(typeof Z.handleId=="number"?delete y[Z.handleId]:Z.handleId&&(Z.handleId[ve]=null))}};let B=je(n,I[0],Z,_,b);if(!B)return B;let A=B.data.handleId;return typeof A=="number"?y[A]=B:A&&(A[ve]=B),A&&A.ref&&A.unref&&typeof A.ref=="function"&&typeof A.unref=="function"&&(B.ref=A.ref.bind(A),B.unref=A.unref.bind(A)),typeof A=="number"||A?A:B}else return k.apply(e,I)}),l=le(e,c,k=>function(m,I){let Z=I[0],O;typeof Z=="number"?O=y[Z]:(O=Z&&Z[ve],O||(O=Z)),O&&typeof O.type=="string"?O.state!=="notScheduled"&&(O.cancelFn&&O.data.isPeriodic||O.runCount===0)&&(typeof Z=="number"?delete y[Z]:Z&&(Z[ve]=null),O.zone.cancelTask(O)):k.apply(e,I)})}function pt(e,n){let{isBrowser:c,isMix:r}=n.getGlobalObjects();if(!c&&!r||!e.customElements||!("customElements"in e))return;let a=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"];n.patchCallbacks(n,e.customElements,"customElements","define",a)}function gt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:c,zoneSymbolEventNames:r,TRUE_STR:a,FALSE_STR:l,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let b=0;b{let n=e[Zone.__symbol__("legacyPatch")];n&&n()});Zone.__load_patch("timers",e=>{let n="set",c="clear";Ee(e,n,c,"Timeout"),Ee(e,n,c,"Interval"),Ee(e,n,c,"Immediate")});Zone.__load_patch("requestAnimationFrame",e=>{Ee(e,"request","cancel","AnimationFrame"),Ee(e,"mozRequest","mozCancel","AnimationFrame"),Ee(e,"webkitRequest","webkitCancel","AnimationFrame")});Zone.__load_patch("blocking",(e,n)=>{let c=["alert","prompt","confirm"];for(let r=0;rfunction(b,k){return n.current.run(l,e,k,_)})}});Zone.__load_patch("EventTarget",(e,n,c)=>{kt(e,c),gt(e,c);let r=e.XMLHttpRequestEventTarget;r&&r.prototype&&c.patchEventTarget(e,c,[r.prototype])});Zone.__load_patch("MutationObserver",(e,n,c)=>{ge("MutationObserver"),ge("WebKitMutationObserver")});Zone.__load_patch("IntersectionObserver",(e,n,c)=>{ge("IntersectionObserver")});Zone.__load_patch("FileReader",(e,n,c)=>{ge("FileReader")});Zone.__load_patch("on_property",(e,n,c)=>{yt(c,e)});Zone.__load_patch("customElements",(e,n,c)=>{pt(e,c)});Zone.__load_patch("XHR",(e,n)=>{b(e);let c=j("xhrTask"),r=j("xhrSync"),a=j("xhrListener"),l=j("xhrScheduled"),y=j("xhrURL"),_=j("xhrErrorBeforeScheduled");function b(k){let m=k.XMLHttpRequest;if(!m)return;let I=m.prototype;function Z(d){return d[c]}let O=I[Se],B=I[De];if(!O){let d=k.XMLHttpRequestEventTarget;if(d){let N=d.prototype;O=N[Se],B=N[De]}}let A="readystatechange",J="scheduled";function q(d){let N=d.data,P=N.target;P[l]=!1,P[_]=!1;let K=P[a];O||(O=P[Se],B=P[De]),K&&B.call(P,A,K);let re=P[a]=()=>{if(P.readyState===P.DONE)if(!N.aborted&&P[l]&&d.state===J){let U=P[n.__symbol__("loadfalse")];if(P.status!==0&&U&&U.length>0){let te=d.invoke;d.invoke=function(){let Q=P[n.__symbol__("loadfalse")];for(let W=0;Wfunction(d,N){return d[r]=N[2]==!1,d[y]=N[1],$.apply(d,N)}),H="XMLHttpRequest.send",X=j("fetchTaskAborting"),M=j("fetchTaskScheduling"),T=le(I,"send",()=>function(d,N){if(n.current[M]===!0||d[r])return T.apply(d,N);{let P={target:d,url:d[y],isPeriodic:!1,args:N,aborted:!1},K=je(H,R,P,q,E);d&&d[_]===!0&&!P.aborted&&K.state===J&&K.invoke()}}),x=le(I,"abort",()=>function(d,N){let P=Z(d);if(P&&typeof P.type=="string"){if(P.cancelFn==null||P.data&&P.data.aborted)return;P.zone.cancelTask(P)}else if(n.current[X]===!0)return x.apply(d,N)})}});Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&<(e.navigator.geolocation,["getCurrentPosition","watchPosition"])});Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function c(r){return function(a){rt(e,r).forEach(y=>{let _=e.PromiseRejectionEvent;if(_){let b=new _(r,{promise:a.promise,reason:a.rejection});y.invoke(b)}})}}e.PromiseRejectionEvent&&(n[j("unhandledPromiseRejectionHandler")]=c("unhandledrejection"),n[j("rejectionHandledHandler")]=c("rejectionhandled"))});Zone.__load_patch("queueMicrotask",(e,n,c)=>{mt(e,c)}); diff --git a/polyfills-RX4V3J3S.js b/polyfills-RX4V3J3S.js new file mode 100644 index 0000000..eba136a --- /dev/null +++ b/polyfills-RX4V3J3S.js @@ -0,0 +1,2 @@ +(function(e){let n=e.performance;function c(L){n&&n.mark&&n.mark(L)}function r(L,t){n&&n.measure&&n.measure(L,t)}c("Zone");let a=e.__Zone_symbol_prefix||"__zone_symbol__";function l(L){return a+L}let y=e[l("forceDuplicateZoneCheck")]===!0;if(e.Zone){if(y||typeof e.Zone.__symbol__!="function")throw new Error("Zone already loaded.");return e.Zone}let se=class se{static assertZonePatched(){if(e.Promise!==oe.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=se.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return ne}static __load_patch(t,s,o=!1){if(oe.hasOwnProperty(t)){if(!o&&y)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){let v="Zone:"+t;c(v),oe[t]=s(e,se,z),r(v,v)}}get parent(){return this._parent}get name(){return this._name}constructor(t,s){this._parent=t,this._name=s?s.name||"unnamed":"",this._properties=s&&s.properties||{},this._zoneDelegate=new k(this,this._parent&&this._parent._zoneDelegate,s)}get(t){let s=this.getZoneWith(t);if(s)return s._properties[t]}getZoneWith(t){let s=this;for(;s;){if(s._properties.hasOwnProperty(t))return s;s=s._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,s){if(typeof t!="function")throw new Error("Expecting function got: "+t);let o=this._zoneDelegate.intercept(this,t,s),v=this;return function(){return v.runGuarded(o,this,arguments,s)}}run(t,s,o,v){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,s,o,v)}finally{U=U.parent}}runGuarded(t,s=null,o,v){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,s,o,v)}catch(F){if(this._zoneDelegate.handleError(this,F))throw F}}finally{U=U.parent}}runTask(t,s,o){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||$).name+"; Execution: "+this.name+")");if(t.state===H&&(t.type===K||t.type===P))return;let v=t.state!=T;v&&t._transitionTo(T,M),t.runCount++;let F=ne;ne=t,U={parent:U,zone:this};try{t.type==P&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,s,o)}catch(f){if(this._zoneDelegate.handleError(this,f))throw f}}finally{t.state!==H&&t.state!==d&&(t.type==K||t.data&&t.data.isPeriodic?v&&t._transitionTo(M,T):(t.runCount=0,this._updateTaskCount(t,-1),v&&t._transitionTo(H,T,H))),U=U.parent,ne=F}}scheduleTask(t){if(t.zone&&t.zone!==this){let o=this;for(;o;){if(o===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);o=o.parent}}t._transitionTo(X,H);let s=[];t._zoneDelegates=s,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(o){throw t._transitionTo(d,X,H),this._zoneDelegate.handleError(this,o),o}return t._zoneDelegates===s&&this._updateTaskCount(t,1),t.state==X&&t._transitionTo(M,X),t}scheduleMicroTask(t,s,o,v){return this.scheduleTask(new p(N,t,s,o,v,void 0))}scheduleMacroTask(t,s,o,v,F){return this.scheduleTask(new p(P,t,s,o,v,F))}scheduleEventTask(t,s,o,v,F){return this.scheduleTask(new p(K,t,s,o,v,F))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||$).name+"; Execution: "+this.name+")");if(!(t.state!==M&&t.state!==T)){t._transitionTo(x,M,T);try{this._zoneDelegate.cancelTask(this,t)}catch(s){throw t._transitionTo(d,x),this._zoneDelegate.handleError(this,s),s}return this._updateTaskCount(t,-1),t._transitionTo(H,x),t.runCount=0,t}}_updateTaskCount(t,s){let o=t._zoneDelegates;s==-1&&(t._zoneDelegates=null);for(let v=0;vL.hasTask(s,o),onScheduleTask:(L,t,s,o)=>L.scheduleTask(s,o),onInvokeTask:(L,t,s,o,v,F)=>L.invokeTask(s,o,v,F),onCancelTask:(L,t,s,o)=>L.cancelTask(s,o)};class k{constructor(t,s,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=t,this._parentDelegate=s,this._forkZS=o&&(o&&o.onFork?o:s._forkZS),this._forkDlgt=o&&(o.onFork?s:s._forkDlgt),this._forkCurrZone=o&&(o.onFork?this.zone:s._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:s._interceptZS),this._interceptDlgt=o&&(o.onIntercept?s:s._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this.zone:s._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:s._invokeZS),this._invokeDlgt=o&&(o.onInvoke?s:s._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this.zone:s._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:s._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?s:s._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this.zone:s._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:s._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?s:s._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this.zone:s._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:s._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?s:s._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this.zone:s._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:s._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?s:s._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this.zone:s._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let v=o&&o.onHasTask,F=s&&s._hasTaskZS;(v||F)&&(this._hasTaskZS=v?o:b,this._hasTaskDlgt=s,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=t,o.onScheduleTask||(this._scheduleTaskZS=b,this._scheduleTaskDlgt=s,this._scheduleTaskCurrZone=this.zone),o.onInvokeTask||(this._invokeTaskZS=b,this._invokeTaskDlgt=s,this._invokeTaskCurrZone=this.zone),o.onCancelTask||(this._cancelTaskZS=b,this._cancelTaskDlgt=s,this._cancelTaskCurrZone=this.zone))}fork(t,s){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,t,s):new _(t,s)}intercept(t,s,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,t,s,o):s}invoke(t,s,o,v,F){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,t,s,o,v,F):s.apply(o,v)}handleError(t,s){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,t,s):!0}scheduleTask(t,s){let o=s;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,t,s),o||(o=s);else if(s.scheduleFn)s.scheduleFn(s);else if(s.type==N)R(s);else throw new Error("Task is missing scheduleFn.");return o}invokeTask(t,s,o,v){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,t,s,o,v):s.callback.apply(o,v)}cancelTask(t,s){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,t,s);else{if(!s.cancelFn)throw Error("Task is not cancelable");o=s.cancelFn(s)}return o}hasTask(t,s){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,t,s)}catch(o){this.handleError(t,o)}}_updateTaskCount(t,s){let o=this._taskCounts,v=o[t],F=o[t]=v+s;if(F<0)throw new Error("More tasks executed then were scheduled.");if(v==0||F==0){let f={microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:t};this.hasTask(this.zone,f)}}}class p{constructor(t,s,o,v,F,f){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=t,this.source=s,this.data=v,this.scheduleFn=F,this.cancelFn=f,!o)throw new Error("callback is not defined");this.callback=o;let u=this;t===K&&v&&v.useG?this.invoke=p.invokeTask:this.invoke=function(){return p.invokeTask.call(e,u,this,arguments)}}static invokeTask(t,s,o){t||(t=this),ee++;try{return t.runCount++,t.zone.runTask(t,s,o)}finally{ee==1&&E(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(H,X)}_transitionTo(t,s,o){if(this._state===s||this._state===o)this._state=t,t==H&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${t}', expecting state '${s}'${o?" or '"+o+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let I=l("setTimeout"),O=l("Promise"),Z=l("then"),B=[],j=!1,J;function q(L){if(J||e[O]&&(J=e[O].resolve(0)),J){let t=J[Z];t||(t=J.then),t.call(J,L)}else e[I](L,0)}function R(L){ee===0&&B.length===0&&q(E),L&&B.push(L)}function E(){if(!j){for(j=!0;B.length;){let L=B;B=[];for(let t=0;tU,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!_[l("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:q},U={parent:null,zone:new _(null,null)},ne=null,ee=0;function W(){}return r("Zone","Zone"),e.Zone=_})(globalThis);var ge=Object.getOwnPropertyDescriptor,Ie=Object.defineProperty,Me=Object.getPrototypeOf,ct=Object.create,at=Array.prototype.slice,Le="addEventListener",je="removeEventListener",De=Zone.__symbol__(Le),Oe=Zone.__symbol__(je),ce="true",ae="false",me=Zone.__symbol__("");function Ae(e,n){return Zone.current.wrap(e,n)}function He(e,n,c,r,a){return Zone.current.scheduleMacroTask(e,n,c,r,a)}var A=Zone.__symbol__,we=typeof window<"u",Te=we?window:void 0,Y=we&&Te||globalThis,lt="removeAttribute";function xe(e,n){for(let c=e.length-1;c>=0;c--)typeof e[c]=="function"&&(e[c]=Ae(e[c],n+"_"+c));return e}function ut(e,n){let c=e.constructor.name;for(let r=0;r{let b=function(){return _.apply(this,xe(arguments,c+"."+a))};return le(b,_),b})(l)}}}function $e(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var Je=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Re=!("nw"in Y)&&typeof Y.process<"u"&&{}.toString.call(Y.process)==="[object process]",Ge=!Re&&!Je&&!!(we&&Te.HTMLElement),Ke=typeof Y.process<"u"&&{}.toString.call(Y.process)==="[object process]"&&!Je&&!!(we&&Te.HTMLElement),Pe={},qe=function(e){if(e=e||Y.event,!e)return;let n=Pe[e.type];n||(n=Pe[e.type]=A("ON_PROPERTY"+e.type));let c=this||e.target||Y,r=c[n],a;if(Ge&&c===Te&&e.type==="error"){let l=e;a=r&&r.call(this,l.message,l.filename,l.lineno,l.colno,l.error),a===!0&&e.preventDefault()}else a=r&&r.apply(this,arguments),a!=null&&!a&&e.preventDefault();return a};function Xe(e,n,c){let r=ge(e,n);if(!r&&c&&ge(c,n)&&(r={enumerable:!0,configurable:!0}),!r||!r.configurable)return;let a=A("on"+n+"patched");if(e.hasOwnProperty(a)&&e[a])return;delete r.writable,delete r.value;let l=r.get,y=r.set,_=n.slice(2),b=Pe[_];b||(b=Pe[_]=A("ON_PROPERTY"+_)),r.set=function(k){let p=this;if(!p&&e===Y&&(p=Y),!p)return;typeof p[b]=="function"&&p.removeEventListener(_,qe),y&&y.call(p,null),p[b]=k,typeof k=="function"&&p.addEventListener(_,qe,!1)},r.get=function(){let k=this;if(!k&&e===Y&&(k=Y),!k)return null;let p=k[b];if(p)return p;if(l){let I=l.call(this);if(I)return r.set.call(this,I),typeof k[lt]=="function"&&k.removeAttribute(n),I}return null},Ie(e,n,r),e[a]=!0}function Qe(e,n,c){if(n)for(let r=0;rfunction(y,_){let b=c(y,_);return b.cbIdx>=0&&typeof _[b.cbIdx]=="function"?He(b.name,_[b.cbIdx],b,a):l.apply(y,_)})}function le(e,n){e[A("OriginalDelegate")]=n}var ze=!1,Ze=!1;function ht(){try{let e=Te.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function dt(){if(ze)return Ze;ze=!0;try{let e=Te.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Ze=!0)}catch{}return Ze}Zone.__load_patch("ZoneAwarePromise",(e,n,c)=>{let r=Object.getOwnPropertyDescriptor,a=Object.defineProperty;function l(f){if(f&&f.toString===Object.prototype.toString){let u=f.constructor&&f.constructor.name;return(u||"")+": "+JSON.stringify(f)}return f?f.toString():Object.prototype.toString.call(f)}let y=c.symbol,_=[],b=e[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,k=y("Promise"),p=y("then"),I="__creationTrace__";c.onUnhandledError=f=>{if(c.showUncaughtError()){let u=f&&f.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",f.zone.name,"; Task:",f.task&&f.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(f)}},c.microtaskDrainDone=()=>{for(;_.length;){let f=_.shift();try{f.zone.runGuarded(()=>{throw f.throwOriginal?f.rejection:f})}catch(u){Z(u)}}};let O=y("unhandledPromiseRejectionHandler");function Z(f){c.onUnhandledError(f);try{let u=n[O];typeof u=="function"&&u.call(this,f)}catch{}}function B(f){return f&&f.then}function j(f){return f}function J(f){return t.reject(f)}let q=y("state"),R=y("value"),E=y("finally"),$=y("parentPromiseValue"),H=y("parentPromiseState"),X="Promise.then",M=null,T=!0,x=!1,d=0;function N(f,u){return i=>{try{z(f,u,i)}catch(h){z(f,!1,h)}}}let P=function(){let f=!1;return function(i){return function(){f||(f=!0,i.apply(null,arguments))}}},K="Promise resolved with itself",oe=y("currentTaskTrace");function z(f,u,i){let h=P();if(f===i)throw new TypeError(K);if(f[q]===M){let m=null;try{(typeof i=="object"||typeof i=="function")&&(m=i&&i.then)}catch(w){return h(()=>{z(f,!1,w)})(),f}if(u!==x&&i instanceof t&&i.hasOwnProperty(q)&&i.hasOwnProperty(R)&&i[q]!==M)ne(i),z(f,i[q],i[R]);else if(u!==x&&typeof m=="function")try{m.call(i,h(N(f,u)),h(N(f,!1)))}catch(w){h(()=>{z(f,!1,w)})()}else{f[q]=u;let w=f[R];if(f[R]=i,f[E]===E&&u===T&&(f[q]=f[H],f[R]=f[$]),u===x&&i instanceof Error){let g=n.currentTask&&n.currentTask.data&&n.currentTask.data[I];g&&a(i,oe,{configurable:!0,enumerable:!1,writable:!0,value:g})}for(let g=0;g{try{let C=f[R],S=!!i&&E===i[E];S&&(i[$]=C,i[H]=w);let D=u.run(g,void 0,S&&g!==J&&g!==j?[]:[C]);z(i,!0,D)}catch(C){z(i,!1,C)}},i)}let W="function ZoneAwarePromise() { [native code] }",se=function(){},L=e.AggregateError;class t{static toString(){return W}static resolve(u){return u instanceof t?u:z(new this(null),T,u)}static reject(u){return z(new this(null),x,u)}static withResolvers(){let u={};return u.promise=new t((i,h)=>{u.resolve=i,u.reject=h}),u}static any(u){if(!u||typeof u[Symbol.iterator]!="function")return Promise.reject(new L([],"All promises were rejected"));let i=[],h=0;try{for(let g of u)h++,i.push(t.resolve(g))}catch{return Promise.reject(new L([],"All promises were rejected"))}if(h===0)return Promise.reject(new L([],"All promises were rejected"));let m=!1,w=[];return new t((g,C)=>{for(let S=0;S{m||(m=!0,g(D))},D=>{w.push(D),h--,h===0&&(m=!0,C(new L(w,"All promises were rejected")))})})}static race(u){let i,h,m=new this((C,S)=>{i=C,h=S});function w(C){i(C)}function g(C){h(C)}for(let C of u)B(C)||(C=this.resolve(C)),C.then(w,g);return m}static all(u){return t.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof t?this:t).allWithCallback(u,{thenCallback:h=>({status:"fulfilled",value:h}),errorCallback:h=>({status:"rejected",reason:h})})}static allWithCallback(u,i){let h,m,w=new this((D,G)=>{h=D,m=G}),g=2,C=0,S=[];for(let D of u){B(D)||(D=this.resolve(D));let G=C;try{D.then(V=>{S[G]=i?i.thenCallback(V):V,g--,g===0&&h(S)},V=>{i?(S[G]=i.errorCallback(V),g--,g===0&&h(S)):m(V)})}catch(V){m(V)}g++,C++}return g-=2,g===0&&h(S),w}constructor(u){let i=this;if(!(i instanceof t))throw new Error("Must be an instanceof Promise.");i[q]=M,i[R]=[];try{let h=P();u&&u(h(N(i,T)),h(N(i,x)))}catch(h){z(i,!1,h)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(u,i){let h=this.constructor?.[Symbol.species];(!h||typeof h!="function")&&(h=this.constructor||t);let m=new h(se),w=n.current;return this[q]==M?this[R].push(w,m,u,i):ee(this,w,m,u,i),m}catch(u){return this.then(null,u)}finally(u){let i=this.constructor?.[Symbol.species];(!i||typeof i!="function")&&(i=t);let h=new i(se);h[E]=E;let m=n.current;return this[q]==M?this[R].push(m,h,u,u):ee(this,m,h,u,u),h}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;let s=e[k]=e.Promise;e.Promise=t;let o=y("thenPatched");function v(f){let u=f.prototype,i=r(u,"then");if(i&&(i.writable===!1||!i.configurable))return;let h=u.then;u[p]=h,f.prototype.then=function(m,w){return new t((C,S)=>{h.call(this,C,S)}).then(m,w)},f[o]=!0}c.patchThen=v;function F(f){return function(u,i){let h=f.apply(u,i);if(h instanceof t)return h;let m=h.constructor;return m[o]||v(m),h}}return s&&(v(s),ue(e,"fetch",f=>F(f))),Promise[n.__symbol__("uncaughtPromiseErrors")]=_,t});Zone.__load_patch("toString",e=>{let n=Function.prototype.toString,c=A("OriginalDelegate"),r=A("Promise"),a=A("Error"),l=function(){if(typeof this=="function"){let k=this[c];if(k)return typeof k=="function"?n.call(k):Object.prototype.toString.call(k);if(this===Promise){let p=e[r];if(p)return n.call(p)}if(this===Error){let p=e[a];if(p)return n.call(p)}}return n.call(this)};l[c]=n,Function.prototype.toString=l;let y=Object.prototype.toString,_="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?_:y.call(this)}});var _e=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){_e=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{_e=!1}var _t={useG:!0},te={},et={},tt=new RegExp("^"+me+"(\\w+)(true|false)$"),nt=A("propagationStopped");function rt(e,n){let c=(n?n(e):e)+ae,r=(n?n(e):e)+ce,a=me+c,l=me+r;te[e]={},te[e][ae]=a,te[e][ce]=l}function Et(e,n,c,r){let a=r&&r.add||Le,l=r&&r.rm||je,y=r&&r.listeners||"eventListeners",_=r&&r.rmAll||"removeAllListeners",b=A(a),k="."+a+":",p="prependListener",I="."+p+":",O=function(R,E,$){if(R.isRemoved)return;let H=R.callback;typeof H=="object"&&H.handleEvent&&(R.callback=T=>H.handleEvent(T),R.originalDelegate=H);let X;try{R.invoke(R,E,[$])}catch(T){X=T}let M=R.options;if(M&&typeof M=="object"&&M.once){let T=R.originalDelegate?R.originalDelegate:R.callback;E[l].call(E,$.type,T,M)}return X};function Z(R,E,$){if(E=E||e.event,!E)return;let H=R||E.target||e,X=H[te[E.type][$?ce:ae]];if(X){let M=[];if(X.length===1){let T=O(X[0],H,E);T&&M.push(T)}else{let T=X.slice();for(let x=0;x{throw x})}}}let B=function(R){return Z(this,R,!1)},j=function(R){return Z(this,R,!0)};function J(R,E){if(!R)return!1;let $=!0;E&&E.useG!==void 0&&($=E.useG);let H=E&&E.vh,X=!0;E&&E.chkDup!==void 0&&(X=E.chkDup);let M=!1;E&&E.rt!==void 0&&(M=E.rt);let T=R;for(;T&&!T.hasOwnProperty(a);)T=Me(T);if(!T&&R[a]&&(T=R),!T||T[b])return!1;let x=E&&E.eventNameToString,d={},N=T[b]=T[a],P=T[A(l)]=T[l],K=T[A(y)]=T[y],oe=T[A(_)]=T[_],z;E&&E.prepend&&(z=T[A(E.prepend)]=T[E.prepend]);function U(i,h){return!_e&&typeof i=="object"&&i?!!i.capture:!_e||!h?i:typeof i=="boolean"?{capture:i,passive:!0}:i?typeof i=="object"&&i.passive!==!1?{...i,passive:!0}:i:{passive:!0}}let ne=function(i){if(!d.isExisting)return N.call(d.target,d.eventName,d.capture?j:B,d.options)},ee=function(i){if(!i.isRemoved){let h=te[i.eventName],m;h&&(m=h[i.capture?ce:ae]);let w=m&&i.target[m];if(w){for(let g=0;g{ie.zone.cancelTask(ie)},{once:!0})),d.target=null,pe&&(pe.taskData=null),Ve&&(Q.once=!0),!_e&&typeof ie.options=="boolean"||(ie.options=Q),ie.target=S,ie.capture=Ce,ie.eventName=D,V&&(ie.originalDelegate=G),C?de.unshift(ie):de.push(ie),g)return S}};return T[a]=u(N,k,t,s,M),z&&(T[p]=u(z,I,se,s,M,!0)),T[l]=function(){let i=this||e,h=arguments[0];E&&E.transferEventName&&(h=E.transferEventName(h));let m=arguments[2],w=m?typeof m=="boolean"?!0:m.capture:!1,g=arguments[1];if(!g)return P.apply(this,arguments);if(H&&!H(P,g,i,arguments))return;let C=te[h],S;C&&(S=C[w?ce:ae]);let D=S&&i[S];if(D)for(let G=0;Gfunction(a,l){a[nt]=!0,r&&r.apply(a,l)})}function yt(e,n,c,r,a){let l=Zone.__symbol__(r);if(n[l])return;let y=n[l]=n[r];n[r]=function(_,b,k){return b&&b.prototype&&a.forEach(function(p){let I=`${c}.${r}::`+p,O=b.prototype;try{if(O.hasOwnProperty(p)){let Z=e.ObjectGetOwnPropertyDescriptor(O,p);Z&&Z.value?(Z.value=e.wrapWithCurrentZone(Z.value,I),e._redefineProperty(b.prototype,p,Z)):O[p]&&(O[p]=e.wrapWithCurrentZone(O[p],I))}else O[p]&&(O[p]=e.wrapWithCurrentZone(O[p],I))}catch{}}),y.call(n,_,b,k)},e.attachOriginToPatched(n[r],y)}function st(e,n,c){if(!c||c.length===0)return n;let r=c.filter(l=>l.target===e);if(!r||r.length===0)return n;let a=r[0].ignoreProperties;return n.filter(l=>a.indexOf(l)===-1)}function Ye(e,n,c,r){if(!e)return;let a=st(e,n,c);Qe(e,a,r)}function Ne(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function pt(e,n){if(Re&&!Ke||Zone[e.symbol("patchEvents")])return;let c=n.__Zone_ignore_on_properties,r=[];if(Ge){let a=window;r=r.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let l=ht()?[{target:a,ignoreProperties:["error"]}]:[];Ye(a,Ne(a),c&&c.concat(l),Me(a))}r=r.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let a=0;a{let r=Ne(e);c.patchOnProperties=Qe,c.patchMethod=ue,c.bindArguments=xe,c.patchMacroTask=ft;let a=n.__symbol__("BLACK_LISTED_EVENTS"),l=n.__symbol__("UNPATCHED_EVENTS");e[l]&&(e[a]=e[l]),e[a]&&(n[a]=n[l]=e[a]),c.patchEventPrototype=Tt,c.patchEventTarget=Et,c.isIEOrEdge=dt,c.ObjectDefineProperty=Ie,c.ObjectGetOwnPropertyDescriptor=ge,c.ObjectCreate=ct,c.ArraySlice=at,c.patchClass=ke,c.wrapWithCurrentZone=Ae,c.filterProperties=st,c.attachOriginToPatched=le,c._redefineProperty=Object.defineProperty,c.patchCallbacks=yt,c.getGlobalObjects=()=>({globalSources:et,zoneSymbolEventNames:te,eventNames:r,isBrowser:Ge,isMix:Ke,isNode:Re,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:me,ADD_EVENT_LISTENER_STR:Le,REMOVE_EVENT_LISTENER_STR:je})});function gt(e,n){n.patchMethod(e,"queueMicrotask",c=>function(r,a){Zone.current.scheduleMicroTask("queueMicrotask",a[0])})}var be=A("zoneTask");function Ee(e,n,c,r){let a=null,l=null;n+=r,c+=r;let y={};function _(k){let p=k.data;return p.args[0]=function(){return k.invoke.apply(this,arguments)},p.handleId=a.apply(e,p.args),k}function b(k){return l.call(e,k.data.handleId)}a=ue(e,n,k=>function(p,I){if(typeof I[0]=="function"){let O={isPeriodic:r==="Interval",delay:r==="Timeout"||r==="Interval"?I[1]||0:void 0,args:I},Z=I[0];I[0]=function(){try{return Z.apply(this,arguments)}finally{O.isPeriodic||(typeof O.handleId=="number"?delete y[O.handleId]:O.handleId&&(O.handleId[be]=null))}};let B=He(n,I[0],O,_,b);if(!B)return B;let j=B.data.handleId;return typeof j=="number"?y[j]=B:j&&(j[be]=B),j&&j.ref&&j.unref&&typeof j.ref=="function"&&typeof j.unref=="function"&&(B.ref=j.ref.bind(j),B.unref=j.unref.bind(j)),typeof j=="number"||j?j:B}else return k.apply(e,I)}),l=ue(e,c,k=>function(p,I){let O=I[0],Z;typeof O=="number"?Z=y[O]:(Z=O&&O[be],Z||(Z=O)),Z&&typeof Z.type=="string"?Z.state!=="notScheduled"&&(Z.cancelFn&&Z.data.isPeriodic||Z.runCount===0)&&(typeof O=="number"?delete y[O]:O&&(O[be]=null),Z.zone.cancelTask(Z)):k.apply(e,I)})}function mt(e,n){let{isBrowser:c,isMix:r}=n.getGlobalObjects();if(!c&&!r||!e.customElements||!("customElements"in e))return;let a=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"];n.patchCallbacks(n,e.customElements,"customElements","define",a)}function kt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:c,zoneSymbolEventNames:r,TRUE_STR:a,FALSE_STR:l,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let b=0;b{let n=e[Zone.__symbol__("legacyPatch")];n&&n()});Zone.__load_patch("timers",e=>{let n="set",c="clear";Ee(e,n,c,"Timeout"),Ee(e,n,c,"Interval"),Ee(e,n,c,"Immediate")});Zone.__load_patch("requestAnimationFrame",e=>{Ee(e,"request","cancel","AnimationFrame"),Ee(e,"mozRequest","mozCancel","AnimationFrame"),Ee(e,"webkitRequest","webkitCancel","AnimationFrame")});Zone.__load_patch("blocking",(e,n)=>{let c=["alert","prompt","confirm"];for(let r=0;rfunction(b,k){return n.current.run(l,e,k,_)})}});Zone.__load_patch("EventTarget",(e,n,c)=>{vt(e,c),kt(e,c);let r=e.XMLHttpRequestEventTarget;r&&r.prototype&&c.patchEventTarget(e,c,[r.prototype])});Zone.__load_patch("MutationObserver",(e,n,c)=>{ke("MutationObserver"),ke("WebKitMutationObserver")});Zone.__load_patch("IntersectionObserver",(e,n,c)=>{ke("IntersectionObserver")});Zone.__load_patch("FileReader",(e,n,c)=>{ke("FileReader")});Zone.__load_patch("on_property",(e,n,c)=>{pt(c,e)});Zone.__load_patch("customElements",(e,n,c)=>{mt(e,c)});Zone.__load_patch("XHR",(e,n)=>{b(e);let c=A("xhrTask"),r=A("xhrSync"),a=A("xhrListener"),l=A("xhrScheduled"),y=A("xhrURL"),_=A("xhrErrorBeforeScheduled");function b(k){let p=k.XMLHttpRequest;if(!p)return;let I=p.prototype;function O(d){return d[c]}let Z=I[De],B=I[Oe];if(!Z){let d=k.XMLHttpRequestEventTarget;if(d){let N=d.prototype;Z=N[De],B=N[Oe]}}let j="readystatechange",J="scheduled";function q(d){let N=d.data,P=N.target;P[l]=!1,P[_]=!1;let K=P[a];Z||(Z=P[De],B=P[Oe]),K&&B.call(P,j,K);let oe=P[a]=()=>{if(P.readyState===P.DONE)if(!N.aborted&&P[l]&&d.state===J){let U=P[n.__symbol__("loadfalse")];if(P.status!==0&&U&&U.length>0){let ne=d.invoke;d.invoke=function(){let ee=P[n.__symbol__("loadfalse")];for(let W=0;Wfunction(d,N){return d[r]=N[2]==!1,d[y]=N[1],$.apply(d,N)}),H="XMLHttpRequest.send",X=A("fetchTaskAborting"),M=A("fetchTaskScheduling"),T=ue(I,"send",()=>function(d,N){if(n.current[M]===!0||d[r])return T.apply(d,N);{let P={target:d,url:d[y],isPeriodic:!1,args:N,aborted:!1},K=He(H,R,P,q,E);d&&d[_]===!0&&!P.aborted&&K.state===J&&K.invoke()}}),x=ue(I,"abort",()=>function(d,N){let P=O(d);if(P&&typeof P.type=="string"){if(P.cancelFn==null||P.data&&P.data.aborted)return;P.zone.cancelTask(P)}else if(n.current[X]===!0)return x.apply(d,N)})}});Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&ut(e.navigator.geolocation,["getCurrentPosition","watchPosition"])});Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function c(r){return function(a){ot(e,r).forEach(y=>{let _=e.PromiseRejectionEvent;if(_){let b=new _(r,{promise:a.promise,reason:a.rejection});y.invoke(b)}})}}e.PromiseRejectionEvent&&(n[A("unhandledPromiseRejectionHandler")]=c("unhandledrejection"),n[A("rejectionHandledHandler")]=c("rejectionhandled"))});Zone.__load_patch("queueMicrotask",(e,n,c)=>{gt(e,c)});