aiservermanager 0.6.4 → 0.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4 @@
1
+ var Gg=Object.defineProperty,Wg=Object.defineProperties;var Qg=Object.getOwnPropertyDescriptors;var ro=Object.getOwnPropertySymbols;var xu=Object.prototype.hasOwnProperty,Au=Object.prototype.propertyIsEnumerable;var Nu=(t,e,n)=>e in t?Gg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,G=(t,e)=>{for(var n in e||={})xu.call(e,n)&&Nu(t,n,e[n]);if(ro)for(var n of ro(e))Au.call(e,n)&&Nu(t,n,e[n]);return t},ee=(t,e)=>Wg(t,Qg(e));var Cs=(t,e)=>{var n={};for(var r in t)xu.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&ro)for(var r of ro(t))e.indexOf(r)<0&&Au.call(t,r)&&(n[r]=t[r]);return n};var Ms=(t,e,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(l){o(l)}},s=c=>{try{a(n.throw(c))}catch(l){o(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(t,e)).next())});var ce=null,oo=!1,Lt=1,Kg=null,Z=Symbol("SIGNAL");function D(t){let e=ce;return ce=t,e}function co(){return ce}var Ft={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function jt(t){if(oo)throw new Error("");if(ce===null)return;ce.consumerOnSignalRead(t);let e=ce.producersTail;if(e!==void 0&&e.producer===t)return;let n,r=ce.recomputing;if(r&&(n=e!==void 0?e.nextProducer:ce.producers,n!==void 0&&n.producer===t)){ce.producersTail=n,n.lastReadVersion=t.version,n.knownValidAtEpoch=Lt;return}let o=t.consumersTail;if(o!==void 0&&o.consumer===ce&&(!r||o.knownValidAtEpoch===Lt))return;let i=En(ce),s={producer:t,consumer:ce,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:Lt,lastReadVersion:t.version,nextConsumer:void 0};ce.producersTail=s,e!==void 0?e.nextProducer=s:ce.producers=s,i&&Pu(t,s)}function ku(){Lt++}function lo(t){if(!(En(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Lt)){if(!t.producerMustRecompute(t)&&!vn(t)){ao(t);return}t.producerRecomputeValue(t),ao(t)}}function Ns(t){if(t.consumers===void 0)return;let e=oo;oo=!0;try{for(let n=t.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Zg(r)}}finally{oo=e}}function xs(){return ce?.consumerAllowSignalWrites!==!1}function Zg(t){t.dirty=!0,Ns(t),t.consumerMarkedDirty?.(t)}function ao(t){t.dirty=!1,t.lastCleanEpoch=Lt}function pt(t){return t&&Ru(t),D(t)}function Ru(t){if(t.producersTail?.knownValidAtEpoch===Lt){let e=t.producers;for(;e!==void 0;)e.knownValidAtEpoch=null,e=e.nextProducer}t.producersTail=void 0,t.recomputing=!0}function Vt(t,e){D(e),t&&Ou(t)}function Ou(t){t.recomputing=!1;let e=t.producersTail,n=e!==void 0?e.nextProducer:t.producers;if(n!==void 0){if(En(t))do n=As(n);while(n!==void 0);e!==void 0?e.nextProducer=void 0:t.producers=void 0}}function vn(t){for(let e=t.producers;e!==void 0;e=e.nextProducer){let n=e.producer,r=e.lastReadVersion;if(r!==n.version||(lo(n),r!==n.version))return!0}return!1}function ht(t){if(En(t)){let e=t.producers;for(;e!==void 0;)e=As(e)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function Pu(t,e){let n=t.consumersTail,r=En(t);if(n!==void 0?(e.nextConsumer=n.nextConsumer,n.nextConsumer=e):(e.nextConsumer=void 0,t.consumers=e),e.prevConsumer=n,t.consumersTail=e,!r)for(let o=t.producers;o!==void 0;o=o.nextProducer)Pu(o.producer,o)}function As(t){let e=t.producer,n=t.nextProducer,r=t.nextConsumer,o=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:e.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(e.consumers=r,!En(e)){let i=e.producers;for(;i!==void 0;)i=As(i)}return n}function En(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function uo(t){Kg?.(t)}function fo(t,e){return Object.is(t,e)}function or(t,e){let n=Object.create(Yg);n.computation=t,e!==void 0&&(n.equal=e);let r=()=>{if(lo(n),jt(n),n.value===rr)throw n.error;return n.value};return r[Z]=n,uo(n),r}var io=Symbol("UNSET"),so=Symbol("COMPUTING"),rr=Symbol("ERRORED"),Yg=ee(G({},Ft),{value:io,dirty:!0,error:null,equal:fo,kind:"computed",producerMustRecompute(t){return t.value===io||t.value===so},producerRecomputeValue(t){if(t.value===so)throw new Error("");let e=t.value;t.value=so;let n=pt(t),r,o=!1;try{r=t.computation(),D(null),o=e!==io&&e!==rr&&r!==rr&&t.equal(e,r)}catch(i){r=rr,t.error=i}finally{Vt(t,n)}if(o){t.value=e;return}t.value=r,t.version++}});function Jg(){throw new Error}var Lu=Jg;function Fu(t){Lu(t)}function ks(t){Lu=t}var Xg=null;function Rs(t,e){let n=Object.create(ir);n.value=t,e!==void 0&&(n.equal=e);let r=()=>ju(n);return r[Z]=n,uo(n),[r,s=>In(n,s),s=>Os(n,s)]}function ju(t){return jt(t),t.value}function In(t,e){xs()||Fu(t),t.equal(t.value,e)||(t.value=e,ey(t))}function Os(t,e){xs()||Fu(t),In(t,e(t.value))}var ir=ee(G({},Ft),{equal:fo,value:void 0,kind:"signal"});function ey(t){t.version++,ku(),Ns(t),Xg?.(t)}var Ps=ee(G({},Ft),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function Ls(t){if(t.dirty=!1,t.version>0&&!vn(t))return;t.version++;let e=pt(t);try{t.cleanup(),t.fn()}finally{Vt(t,e)}}var Fs;function po(){return Fs}function Ue(t){let e=Fs;return Fs=t,e}var Vu=Symbol("NotFound");function Dn(t){return t===Vu||t?.name==="\u0275NotFound"}function Hu(t){let e=D(null);try{return t()}finally{D(e)}}function C(t){return typeof t=="function"}function _n(t){let n=t(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var ho=_n(t=>function(n){t(this),this.message=n?`${n.length} errors occurred during unsubscription:
2
+ ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
3
+ `)}`:"",this.name="UnsubscriptionError",this.errors=n});function Ht(t,e){if(t){let n=t.indexOf(e);0<=n&&t.splice(n,1)}}var $=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:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(C(r))try{r()}catch(i){e=i instanceof ho?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Bu(i)}catch(s){e=e??[],s instanceof ho?e=[...e,...s.errors]:e.push(s)}}if(e)throw new ho(e)}}add(e){var n;if(e&&e!==this)if(this.closed)Bu(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}}_hasParent(e){let{_parentage:n}=this;return n===e||Array.isArray(n)&&n.includes(e)}_addParent(e){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e}_removeParent(e){let{_parentage:n}=this;n===e?this._parentage=null:Array.isArray(n)&&Ht(n,e)}remove(e){let{_finalizers:n}=this;n&&Ht(n,e),e instanceof t&&e._removeParent(this)}};$.EMPTY=(()=>{let t=new $;return t.closed=!0,t})();var js=$.EMPTY;function mo(t){return t instanceof $||t&&"closed"in t&&C(t.remove)&&C(t.add)&&C(t.unsubscribe)}function Bu(t){C(t)?t():t.unsubscribe()}var Me={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Tn={setTimeout(t,e,...n){let{delegate:r}=Tn;return r?.setTimeout?r.setTimeout(t,e,...n):setTimeout(t,e,...n)},clearTimeout(t){let{delegate:e}=Tn;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function go(t){Tn.setTimeout(()=>{let{onUnhandledError:e}=Me;if(e)e(t);else throw t})}function Bt(){}var $u=Vs("C",void 0,void 0);function Uu(t){return Vs("E",void 0,t)}function qu(t){return Vs("N",t,void 0)}function Vs(t,e,n){return{kind:t,value:e,error:n}}var $t=null;function wn(t){if(Me.useDeprecatedSynchronousErrorHandling){let e=!$t;if(e&&($t={errorThrown:!1,error:null}),t(),e){let{errorThrown:n,error:r}=$t;if($t=null,n)throw r}}else t()}function zu(t){Me.useDeprecatedSynchronousErrorHandling&&$t&&($t.errorThrown=!0,$t.error=t)}var Ut=class extends ${constructor(e){super(),this.isStopped=!1,e?(this.destination=e,mo(e)&&e.add(this)):this.destination=ry}static create(e,n,r){return new Ne(e,n,r)}next(e){this.isStopped?Bs(qu(e),this):this._next(e)}error(e){this.isStopped?Bs(Uu(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Bs($u,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()}}},ty=Function.prototype.bind;function Hs(t,e){return ty.call(t,e)}var $s=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:n}=this;if(n.next)try{n.next(e)}catch(r){yo(r)}}error(e){let{partialObserver:n}=this;if(n.error)try{n.error(e)}catch(r){yo(r)}else yo(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(n){yo(n)}}},Ne=class extends Ut{constructor(e,n,r){super();let o;if(C(e)||!e)o={next:e??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Me.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),o={next:e.next&&Hs(e.next,i),error:e.error&&Hs(e.error,i),complete:e.complete&&Hs(e.complete,i)}):o=e}this.destination=new $s(o)}};function yo(t){Me.useDeprecatedSynchronousErrorHandling?zu(t):go(t)}function ny(t){throw t}function Bs(t,e){let{onStoppedNotification:n}=Me;n&&Tn.setTimeout(()=>n(t,e))}var ry={closed:!0,next:Bt,error:ny,complete:Bt};var bn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function xe(t){return t}function Gu(t){return t.length===0?xe:t.length===1?t[0]:function(n){return t.reduce((r,o)=>o(r),n)}}var k=(()=>{class t{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=iy(n)?n:new Ne(n,r,o);return wn(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Wu(r),new r((o,i)=>{let s=new Ne({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[bn](){return this}pipe(...n){return Gu(n)(this)}toPromise(n){return n=Wu(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return t.create=e=>new t(e),t})();function Wu(t){var e;return(e=t??Me.Promise)!==null&&e!==void 0?e:Promise}function oy(t){return t&&C(t.next)&&C(t.error)&&C(t.complete)}function iy(t){return t&&t instanceof Ut||oy(t)&&mo(t)}function Us(t){return C(t?.lift)}function x(t){return e=>{if(Us(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function N(t,e,n,r,o){return new qs(t,e,n,r,o)}var qs=class extends Ut{constructor(e,n,r,o,i,s){super(e),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){e.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function Qu(){return x((t,e)=>{let n=null;t._refCount++;let r=N(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){n=null;return}let o=t._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),e.unsubscribe()});t.subscribe(r),r.closed||(n=t.connect())})}var zs=class extends k{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Us(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 $;let n=this.getSubject();e.add(this.source.subscribe(N(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),e.closed&&(this._connection=null,e=$.EMPTY)}return e}refCount(){return Qu()(this)}};var Sn={schedule(t){let e=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=Sn;r&&(e=r.requestAnimationFrame,n=r.cancelAnimationFrame);let o=e(i=>{n=void 0,t(i)});return new $(()=>n?.(o))},requestAnimationFrame(...t){let{delegate:e}=Sn;return(e?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:e}=Sn;return(e?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var Ku=_n(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ye=(()=>{class t extends k{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new vo(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Ku}next(n){wn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){wn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){wn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?js:(this.currentObservers=null,i.push(n),new $(()=>{this.currentObservers=null,Ht(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new k;return n.source=this,n}}return t.create=(e,n)=>new vo(e,n),t})(),vo=class extends ye{constructor(e,n){super(),this.destination=e,this.source=n}next(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,e)}error(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,e)}complete(){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||n===void 0||n.call(e)}_subscribe(e){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(e))!==null&&r!==void 0?r:js}};var sr=class extends ye{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let n=super._subscribe(e);return!n.closed&&e.next(this._value),n}getValue(){let{hasError:e,thrownError:n,_value:r}=this;if(e)throw n;return this._throwIfClosed(),r}next(e){super.next(this._value=e)}};var ar={now(){return(ar.delegate||Date).now()},delegate:void 0};var cr=class extends ye{constructor(e=1/0,n=1/0,r=ar){super(),this._bufferSize=e,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,n)}next(e){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(e),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(e),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!e.closed;s+=r?1:2)e.next(i[s]);return this._checkFinalizedStatuses(e),n}_trimBuffer(){let{_bufferSize:e,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}};var Eo=class extends ${constructor(e,n){super()}schedule(e,n=0){return this}};var lr={setInterval(t,e,...n){let{delegate:r}=lr;return r?.setInterval?r.setInterval(t,e,...n):setInterval(t,e,...n)},clearInterval(t){let{delegate:e}=lr;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var mt=class extends Eo{constructor(e,n){super(e,n),this.scheduler=e,this.work=n,this.pending=!1}schedule(e,n=0){var r;if(this.closed)return this;this.state=e;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(e,n,r=0){return lr.setInterval(e.flush.bind(e,this),r)}recycleAsyncId(e,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&lr.clearInterval(n)}execute(e,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(e,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,n){let r=!1,o;try{this.work(e)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:e,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,Ht(r,this),e!=null&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null,super.unsubscribe()}}};var sy=1,Gs,Ws={};function Zu(t){return t in Ws?(delete Ws[t],!0):!1}var Yu={setImmediate(t){let e=sy++;return Ws[e]=!0,Gs||(Gs=Promise.resolve()),Gs.then(()=>Zu(e)&&t()),e},clearImmediate(t){Zu(t)}};var{setImmediate:ay,clearImmediate:cy}=Yu,ur={setImmediate(...t){let{delegate:e}=ur;return(e?.setImmediate||ay)(...t)},clearImmediate(t){let{delegate:e}=ur;return(e?.clearImmediate||cy)(t)},delegate:void 0};var Io=class extends mt{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}requestAsyncId(e,n,r=0){return r!==null&&r>0?super.requestAsyncId(e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=ur.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(e,n,r);let{actions:i}=e;n!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(ur.clearImmediate(n),e._scheduled===n&&(e._scheduled=void 0))}};var Cn=class t{constructor(e,n=t.now){this.schedulerActionCtor=e,this.now=n}schedule(e,n=0,r){return new this.schedulerActionCtor(this,e).schedule(r,n)}};Cn.now=ar.now;var gt=class extends Cn{constructor(e,n=Cn.now){super(e,n),this.actions=[],this._active=!1}flush(e){let{actions:n}=this;if(this._active){n.push(e);return}let r;this._active=!0;do if(r=e.execute(e.state,e.delay))break;while(e=n.shift());if(this._active=!1,r){for(;e=n.shift();)e.unsubscribe();throw r}}};var Do=class extends gt{flush(e){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;e=e||r.shift();do if(o=e.execute(e.state,e.delay))break;while((e=r[0])&&e.id===n&&r.shift());if(this._active=!1,o){for(;(e=r[0])&&e.id===n&&r.shift();)e.unsubscribe();throw o}}};var ly=new Do(Io);var qt=new gt(mt),Ju=qt;var _o=class extends mt{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}requestAsyncId(e,n,r=0){return r!==null&&r>0?super.requestAsyncId(e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=Sn.requestAnimationFrame(()=>e.flush(void 0))))}recycleAsyncId(e,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(e,n,r);let{actions:i}=e;n!=null&&n===e._scheduled&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(Sn.cancelAnimationFrame(n),e._scheduled=void 0)}};var To=class extends gt{flush(e){this._active=!0;let n;e?n=e.id:(n=this._scheduled,this._scheduled=void 0);let{actions:r}=this,o;e=e||r.shift();do if(o=e.execute(e.state,e.delay))break;while((e=r[0])&&e.id===n&&r.shift());if(this._active=!1,o){for(;(e=r[0])&&e.id===n&&r.shift();)e.unsubscribe();throw o}}};var uy=new To(_o);var dr=new k(t=>t.complete());function wo(t){return t&&C(t.schedule)}function Qs(t){return t[t.length-1]}function bo(t){return C(Qs(t))?t.pop():void 0}function qe(t){return wo(Qs(t))?t.pop():void 0}function Xu(t,e){return typeof Qs(t)=="number"?t.pop():e}function td(t,e,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(t,e||[])).next())})}function ed(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function zt(t){return this instanceof zt?(this.v=t,this):new zt(t)}function nd(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(h){return Promise.resolve(h).then(f,d)}}function a(f,h){r[f]&&(o[f]=function(m){return new Promise(function(v,_){i.push([f,m,v,_])>1||c(f,m)})},h&&(o[f]=h(o[f])))}function c(f,h){try{l(r[f](h))}catch(m){p(i[0][3],m)}}function l(f){f.value instanceof zt?Promise.resolve(f.value.v).then(u,d):p(i[0][2],f)}function u(f){c("next",f)}function d(f){c("throw",f)}function p(f,h){f(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function rd(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof ed=="function"?ed(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=t[i]&&function(s){return new Promise(function(a,c){s=t[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}var So=t=>t&&typeof t.length=="number"&&typeof t!="function";function Co(t){return C(t?.then)}function Mo(t){return C(t[bn])}function No(t){return Symbol.asyncIterator&&C(t?.[Symbol.asyncIterator])}function xo(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 dy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ao=dy();function ko(t){return C(t?.[Ao])}function Ro(t){return nd(this,arguments,function*(){let n=t.getReader();try{for(;;){let{value:r,done:o}=yield zt(n.read());if(o)return yield zt(void 0);yield yield zt(r)}}finally{n.releaseLock()}})}function Oo(t){return C(t?.getReader)}function j(t){if(t instanceof k)return t;if(t!=null){if(Mo(t))return fy(t);if(So(t))return py(t);if(Co(t))return hy(t);if(No(t))return od(t);if(ko(t))return my(t);if(Oo(t))return gy(t)}throw xo(t)}function fy(t){return new k(e=>{let n=t[bn]();if(C(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function py(t){return new k(e=>{for(let n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}function hy(t){return new k(e=>{t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,go)})}function my(t){return new k(e=>{for(let n of t)if(e.next(n),e.closed)return;e.complete()})}function od(t){return new k(e=>{yy(t,e).catch(n=>e.error(n))})}function gy(t){return od(Ro(t))}function yy(t,e){var n,r,o,i;return td(this,void 0,void 0,function*(){try{for(n=rd(t);r=yield n.next(),!r.done;){let s=r.value;if(e.next(s),e.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}e.complete()})}function fe(t,e,n,r=0,o=!1){let i=e.schedule(function(){n(),o?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(i),!o)return i}function Po(t,e=0){return x((n,r)=>{n.subscribe(N(r,o=>fe(r,t,()=>r.next(o),e),()=>fe(r,t,()=>r.complete(),e),o=>fe(r,t,()=>r.error(o),e)))})}function Lo(t,e=0){return x((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e))})}function id(t,e){return j(t).pipe(Lo(e),Po(e))}function sd(t,e){return j(t).pipe(Lo(e),Po(e))}function ad(t,e){return new k(n=>{let r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}function cd(t,e){return new k(n=>{let r;return fe(n,e,()=>{r=t[Ao](),fe(n,e,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>C(r?.return)&&r.return()})}function Fo(t,e){if(!t)throw new Error("Iterable cannot be null");return new k(n=>{fe(n,e,()=>{let r=t[Symbol.asyncIterator]();fe(n,e,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function ld(t,e){return Fo(Ro(t),e)}function ud(t,e){if(t!=null){if(Mo(t))return id(t,e);if(So(t))return ad(t,e);if(Co(t))return sd(t,e);if(No(t))return Fo(t,e);if(ko(t))return cd(t,e);if(Oo(t))return ld(t,e)}throw xo(t)}function ze(t,e){return e?ud(t,e):j(t)}function vy(...t){let e=qe(t);return ze(t,e)}function Ey(t,e){let n=C(t)?t:()=>t,r=o=>o.error(n());return new k(e?o=>e.schedule(r,0,o):r)}function Iy(t){return!!t&&(t instanceof k||C(t.lift)&&C(t.subscribe))}var dd=_n(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Dy(t,e){let n=typeof e=="object";return new Promise((r,o)=>{let i=new Ne({next:s=>{r(s),i.unsubscribe()},error:o,complete:()=>{n?r(e.defaultValue):o(new dd)}});t.subscribe(i)})}function fd(t){return t instanceof Date&&!isNaN(t)}function tt(t,e){return x((n,r)=>{let o=0;n.subscribe(N(r,i=>{r.next(t.call(e,i,o++))}))})}var{isArray:_y}=Array;function Ty(t,e){return _y(e)?t(...e):t(e)}function jo(t){return tt(e=>Ty(t,e))}var{isArray:wy}=Array,{getPrototypeOf:by,prototype:Sy,keys:Cy}=Object;function Vo(t){if(t.length===1){let e=t[0];if(wy(e))return{args:e,keys:null};if(My(e)){let n=Cy(e);return{args:n.map(r=>e[r]),keys:n}}}return{args:t,keys:null}}function My(t){return t&&typeof t=="object"&&by(t)===Sy}function Ho(t,e){return t.reduce((n,r,o)=>(n[r]=e[o],n),{})}function Ny(...t){let e=qe(t),n=bo(t),{args:r,keys:o}=Vo(t);if(r.length===0)return ze([],e);let i=new k(xy(r,e,o?s=>Ho(o,s):xe));return n?i.pipe(jo(n)):i}function xy(t,e,n=xe){return r=>{pd(e,()=>{let{length:o}=t,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)pd(e,()=>{let l=ze(t[c],e),u=!1;l.subscribe(N(r,d=>{i[c]=d,u||(u=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function pd(t,e,n){t?fe(n,t,e):e()}function hd(t,e,n,r,o,i,s,a){let c=[],l=0,u=0,d=!1,p=()=>{d&&!c.length&&!l&&e.complete()},f=m=>l<r?h(m):c.push(m),h=m=>{i&&e.next(m),l++;let v=!1;j(n(m,u++)).subscribe(N(e,_=>{o?.(_),i?f(_):e.next(_)},()=>{v=!0},void 0,()=>{if(v)try{for(l--;c.length&&l<r;){let _=c.shift();s?fe(e,s,()=>h(_)):h(_)}p()}catch(_){e.error(_)}}))};return t.subscribe(N(e,f,()=>{d=!0,p()})),()=>{a?.()}}function yt(t,e,n=1/0){return C(e)?yt((r,o)=>tt((i,s)=>e(r,i,o,s))(j(t(r,o))),n):(typeof e=="number"&&(n=e),x((r,o)=>hd(r,o,t,n)))}function Bo(t=1/0){return yt(xe,t)}function md(){return Bo(1)}function Mn(...t){return md()(ze(t,qe(t)))}function Ay(t){return new k(e=>{j(t()).subscribe(e)})}function ky(...t){let e=bo(t),{args:n,keys:r}=Vo(t),o=new k(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u<s;u++){let d=!1;j(n[u]).subscribe(N(i,p=>{d||(d=!0,l--),a[u]=p},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?Ho(r,a):a),i.complete())}))}});return e?o.pipe(jo(e)):o}function fr(t=0,e,n=Ju){let r=-1;return e!=null&&(wo(e)?n=e:r=e),new k(o=>{let i=fd(t)?+t-n.now():t;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function Ry(...t){let e=qe(t),n=Xu(t,1/0),r=t;return r.length?r.length===1?j(r[0]):Bo(n)(ze(r,e)):dr}function Ks(t,e){return x((n,r)=>{let o=0;n.subscribe(N(r,i=>t.call(e,i,o++)&&r.next(i)))})}function gd(t){return x((e,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let l=o;o=null,n.next(l)}s&&n.complete()},c=()=>{i=null,s&&n.complete()};e.subscribe(N(n,l=>{r=!0,o=l,i||j(t(l)).subscribe(i=N(n,a,c))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function Oy(t,e=qt){return gd(()=>fr(t,e))}function Zs(t){return x((e,n)=>{let r=null,o=!1,i;r=e.subscribe(N(n,void 0,void 0,s=>{i=j(t(s,Zs(t)(e))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Py(t,e){return C(e)?yt(t,e,1):yt(t,1)}function yd(t,e=qt){return x((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let l=i;i=null,r.next(l)}};function c(){let l=s+t,u=e.now();if(u<l){o=this.schedule(void 0,l-u),r.add(o);return}a()}n.subscribe(N(r,l=>{i=l,s=e.now(),o||(o=e.schedule(c,t),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function $o(t){return t<=0?()=>dr:x((e,n)=>{let r=0;e.subscribe(N(n,o=>{++r<=t&&(n.next(o),t<=r&&n.complete())}))})}function vd(){return x((t,e)=>{t.subscribe(N(e,Bt))})}function Ed(t){return tt(()=>t)}function Ys(t,e){return e?n=>Mn(e.pipe($o(1),vd()),n.pipe(Ys(t))):yt((n,r)=>j(t(n,r)).pipe($o(1),Ed(n)))}function Ly(t,e=qt){let n=fr(t,e);return Ys(()=>n)}function Id(t,e=xe){return t=t??Fy,x((n,r)=>{let o,i=!0;n.subscribe(N(r,s=>{let a=e(s);(i||!t(o,a))&&(i=!1,o=a,r.next(s))}))})}function Fy(t,e){return t===e}function jy(t){return x((e,n)=>{try{e.subscribe(n)}finally{n.add(t)}})}function Vy(){return x((t,e)=>{let n,r=!1;t.subscribe(N(e,o=>{let i=n;n=o,r&&e.next([i,o]),r=!0}))})}function Xs(t={}){let{connector:e=()=>new ye,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=t;return i=>{let s,a,c,l=0,u=!1,d=!1,p=()=>{a?.unsubscribe(),a=void 0},f=()=>{p(),s=c=void 0,u=d=!1},h=()=>{let m=s;f(),m?.unsubscribe()};return x((m,v)=>{l++,!d&&!u&&p();let _=c=c??e();v.add(()=>{l--,l===0&&!d&&!u&&(a=Js(h,o))}),_.subscribe(v),!s&&l>0&&(s=new Ne({next:L=>_.next(L),error:L=>{d=!0,p(),a=Js(f,n,L),_.error(L)},complete:()=>{u=!0,p(),a=Js(f,r),_.complete()}}),j(m).subscribe(s))})(i)}}function Js(t,e,...n){if(e===!0){t();return}if(e===!1)return;let r=new Ne({next:()=>{r.unsubscribe(),t()}});return j(e(...n)).subscribe(r)}function Hy(t,e,n){let r,o=!1;return t&&typeof t=="object"?{bufferSize:r=1/0,windowTime:e=1/0,refCount:o=!1,scheduler:n}=t:r=t??1/0,Xs({connector:()=>new cr(r,e,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function By(t){return Ks((e,n)=>t<=n)}function Dd(...t){let e=qe(t);return x((n,r)=>{(e?Mn(t,n,e):Mn(t,n)).subscribe(r)})}function _d(t,e){return x((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(N(r,c=>{o?.unsubscribe();let l=0,u=i++;j(t(c,u)).subscribe(o=N(r,d=>r.next(e?e(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function $y(t){return x((e,n)=>{j(t).subscribe(N(n,()=>n.complete(),Bt)),!n.closed&&e.subscribe(n)})}function Uy(t,e=!1){return x((n,r)=>{let o=0;n.subscribe(N(r,i=>{let s=t(i,o++);(s||e)&&r.next(i),!s&&r.complete()}))})}function qy(t,e,n){let r=C(t)||e||n?{next:t,error:e,complete:n}:t;return r?x((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(N(i,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),i.error(c)},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):xe}var Ko="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",g=class extends Error{code;constructor(e,n){super(fa(e,n)),this.code=e}};function zy(t){return`NG0${Math.abs(t)}`}function fa(t,e){return`${zy(t)}${e?": "+e:""}`}function V(t){for(let e in t)if(t[e]===V)return e;throw Error("")}function Cd(t,e){for(let n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function Zo(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Zo).join(", ")}]`;if(t==null)return""+t;let e=t.overriddenName||t.name;if(e)return`${e}`;let n=t.toString();if(n==null)return""+n;let r=n.indexOf(`
4
+ `);return r>=0?n.slice(0,r):n}function Yo(t,e){return t?e?`${t} ${e}`:t:e||""}var Gy=V({__forward_ref__:V});function Jo(t){return t.__forward_ref__=Jo,t}function Y(t){return pa(t)?t():t}function pa(t){return typeof t=="function"&&t.hasOwnProperty(Gy)&&t.__forward_ref__===Jo}function pe(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Md(t){return{providers:t.providers||[],imports:t.imports||[]}}function Xo(t){return Wy(t,ei)}function Wy(t,e){return t.hasOwnProperty(e)&&t[e]||null}function Qy(t){let e=t?.[ei]??null;return e||null}function ta(t){return t&&t.hasOwnProperty(qo)?t[qo]:null}var ei=V({\u0275prov:V}),qo=V({\u0275inj:V}),P=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(e,n){this._desc=e,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=pe({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function ha(t){return t&&!!t.\u0275providers}var ma=V({\u0275cmp:V}),ga=V({\u0275dir:V}),ya=V({\u0275pipe:V});var hr=V({\u0275fac:V}),Yt=V({__NG_ELEMENT_ID__:V}),Td=V({__NG_ENV_ID__:V});function It(t){return va(t,"@Component"),t[ma]||null}function ti(t){return va(t,"@Directive"),t[ga]||null}function Nd(t){return va(t,"@Pipe"),t[ya]||null}function va(t,e){if(t==null)throw new g(-919,!1)}function Dt(t){return typeof t=="string"?t:t==null?"":String(t)}var xd=V({ngErrorCode:V}),Ky=V({ngErrorMessage:V}),Zy=V({ngTokenPath:V});function Ea(t,e){return Ad("",-200,e)}function ni(t,e){throw new g(-201,!1)}function Ad(t,e,n){let r=new g(e,t);return r[xd]=e,r[Ky]=t,n&&(r[Zy]=n),r}function Yy(t){return t[xd]}var na;function kd(){return na}function le(t){let e=na;return na=t,e}function Ia(t,e,n){let r=Xo(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(e!==void 0)return e;ni(t,"")}var _t=globalThis;var Jy={},Gt=Jy,Xy="__NG_DI_FLAG__",ra=class{injector;constructor(e){this.injector=e}retrieve(e,n){let r=Wt(n)||0;try{return this.injector.get(e,r&8?null:Gt,r)}catch(o){if(Dn(o))return o;throw o}}};function ev(t,e=0){let n=po();if(n===void 0)throw new g(-203,!1);if(n===null)return Ia(t,void 0,e);{let r=tv(e),o=n.retrieve(t,r);if(Dn(o)){if(r.optional)return null;throw o}return o}}function Ge(t,e=0){return(kd()||ev)(Y(t),e)}function S(t,e){return Ge(t,Wt(e))}function Wt(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function tv(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function oa(t){let e=[];for(let n=0;n<t.length;n++){let r=Y(t[n]);if(Array.isArray(r)){if(r.length===0)throw new g(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=nv(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}e.push(Ge(o,i))}else e.push(Ge(r))}return e}function nv(t){return t[Xy]}function vt(t,e){let n=t.hasOwnProperty(hr);return n?t[hr]:null}function Rd(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){let o=t[r],i=e[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function Od(t){return t.flat(Number.POSITIVE_INFINITY)}function ri(t,e){t.forEach(n=>Array.isArray(n)?ri(n,e):e(n))}function Da(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function vr(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Pd(t,e){let n=[];for(let r=0;r<t;r++)n.push(e);return n}function Ld(t,e,n,r){let o=t.length;if(o==e)t.push(n,r);else if(o===1)t.push(r,t[0]),t[0]=n;else{for(o--,t.push(t[o-1],t[o]);o>e;){let i=o-2;t[o]=t[i],o--}t[e]=n,t[e+1]=r}}function oi(t,e,n){let r=An(t,e);return r>=0?t[r|1]=n:(r=~r,Ld(t,r,e,n)),r}function ii(t,e){let n=An(t,e);if(n>=0)return t[n|1]}function An(t,e){return rv(t,e,1)}function rv(t,e,n){let r=0,o=t.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=t[i<<n];if(e===s)return i<<n;s>e?o=i:r=i+1}return~(o<<n)}var Tt={},oe=[],Jt=new P(""),Er=new P("",-1),_a=new P(""),xn=class{get(e,n=Gt){if(n===Gt){let o=Ad("",-201);throw o.name="\u0275NotFound",o}return n}};function Ta(t){return{\u0275providers:t}}function Fd(...t){return{\u0275providers:wa(!0,t),\u0275fromNgModule:!0}}function wa(t,...e){let n=[],r=new Set,o,i=s=>{n.push(s)};return ri(e,s=>{let a=s;zo(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&jd(o,i),n}function jd(t,e){for(let n=0;n<t.length;n++){let{ngModule:r,providers:o}=t[n];ba(o,i=>{e(i,r)})}}function zo(t,e,n,r){if(t=Y(t),!t)return!1;let o=null,i=ta(t),s=!i&&It(t);if(!i&&!s){let c=t.ngModule;if(i=ta(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=t}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)zo(l,e,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;ri(i.imports,u=>{zo(u,e,n,r)&&(l||=[],l.push(u))}),l!==void 0&&jd(l,e)}if(!a){let l=vt(o)||(()=>new o);e({provide:o,useFactory:l,deps:oe},o),e({provide:_a,useValue:o,multi:!0},o),e({provide:Jt,useValue:()=>Ge(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=t;ba(c,u=>{e(u,l)})}}else return!1;return o!==t&&t.providers!==void 0}function ba(t,e){for(let n of t)ha(n)&&(n=n.\u0275providers),Array.isArray(n)?ba(n,e):e(n)}var ov=V({provide:String,useValue:V});function Vd(t){return t!==null&&typeof t=="object"&&ov in t}function iv(t){return!!(t&&t.useExisting)}function sv(t){return!!(t&&t.useFactory)}function Qt(t){return typeof t=="function"}function Hd(t){return!!t.useClass}var Sa=new P(""),Uo={},wd={},ea;function kn(){return ea===void 0&&(ea=new xn),ea}var De=class{},Kt=class extends De{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,sa(e,s=>this.processProvider(s)),this.records.set(Er,Nn(void 0,this)),o.has("environment")&&this.records.set(De,Nn(void 0,this));let i=this.records.get(Sa);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(_a,oe,{self:!0}))}retrieve(e,n){let r=Wt(n)||0;try{return this.get(e,Gt,r)}catch(o){if(Dn(o))return o;throw o}}destroy(){pr(this),this._destroyed=!0;let e=D(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),D(e)}}onDestroy(e){return pr(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){pr(this);let n=Ue(this),r=le(void 0),o;try{return e()}finally{Ue(n),le(r)}}get(e,n=Gt,r){if(pr(this),e.hasOwnProperty(Td))return e[Td](this);let o=Wt(r),i,s=Ue(this),a=le(void 0);try{if(!(o&4)){let l=this.records.get(e);if(l===void 0){let u=dv(e)&&Xo(e);u&&this.injectableDefInScope(u)?l=Nn(ia(e),Uo):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l,o)}let c=o&2?kn():this.parent;return n=o&8&&n===Gt?null:n,c.get(e,n)}catch(c){let l=Yy(c);throw l===-200||l===-201?new g(l,null):c}finally{le(a),Ue(s)}}resolveInjectorInitializers(){let e=D(null),n=Ue(this),r=le(void 0),o;try{let i=this.get(Jt,oe,{self:!0});for(let s of i)s()}finally{Ue(n),le(r),D(e)}}toString(){return"R3Injector[...]"}processProvider(e){e=Y(e);let n=Qt(e)?e:Y(e&&e.provide),r=cv(e);if(!Qt(e)&&e.multi===!0){let o=this.records.get(n);o||(o=Nn(void 0,Uo,!0),o.factory=()=>oa(o.multi),this.records.set(n,o)),n=e,o.multi.push(e)}this.records.set(n,r)}hydrate(e,n,r){let o=D(null);try{if(n.value===wd)throw Ea("");return n.value===Uo&&(n.value=wd,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&uv(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{D(o)}}injectableDefInScope(e){if(!e.providedIn)return!1;let n=Y(e.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(e){let n=this._onDestroyHooks.indexOf(e);n!==-1&&this._onDestroyHooks.splice(n,1)}};function ia(t){let e=Xo(t),n=e!==null?e.factory:vt(t);if(n!==null)return n;if(t instanceof P)throw new g(-204,!1);if(t instanceof Function)return av(t);throw new g(-204,!1)}function av(t){if(t.length>0)throw new g(-204,!1);let n=Qy(t);return n!==null?()=>n.factory(t):()=>new t}function cv(t){if(Vd(t))return Nn(void 0,t.useValue);{let e=Ca(t);return Nn(e,Uo)}}function Ca(t,e,n){let r;if(Qt(t)){let o=Y(t);return vt(o)||ia(o)}else if(Vd(t))r=()=>Y(t.useValue);else if(sv(t))r=()=>t.useFactory(...oa(t.deps||[]));else if(iv(t))r=(o,i)=>Ge(Y(t.useExisting),i!==void 0&&i&8?8:void 0);else{let o=Y(t&&(t.useClass||t.provide));if(lv(t))r=()=>new o(...oa(t.deps));else return vt(o)||ia(o)}return r}function pr(t){if(t.destroyed)throw new g(-205,!1)}function Nn(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function lv(t){return!!t.deps}function uv(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function dv(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function sa(t,e){for(let n of t)Array.isArray(n)?sa(n,e):n&&ha(n)?sa(n.\u0275providers,e):e(n)}function si(t,e){let n;t instanceof Kt?(pr(t),n=t):n=new ra(t);let r,o=Ue(n),i=le(void 0);try{return e()}finally{Ue(o),le(i)}}function Bd(){return kd()!==void 0||po()!=null}var ke=0,E=1,b=2,J=3,_e=4,ie=5,Xt=6,Rn=7,W=8,Qe=9,Ke=10,H=11,On=12,Ma=13,wt=14,ue=15,bt=16,en=17,Ze=18,Ye=19,Na=20,rt=21,ai=22,Et=23,ve=24,tn=25,Je=26,U=27,$d=1,xa=6,St=7,Ir=8,nn=9,z=10;function it(t){return Array.isArray(t)&&typeof t[$d]=="object"}function Te(t){return Array.isArray(t)&&t[$d]===!0}function Aa(t){return(t.flags&4)!==0}function st(t){return t.componentOffset>-1}function Pn(t){return(t.flags&1)===1}function Re(t){return!!t.template}function Ln(t){return(t[b]&512)!==0}function rn(t){return(t[b]&256)===256}var ka="svg",Ud="math";function we(t){for(;Array.isArray(t);)t=t[ke];return t}function Ra(t,e){return we(e[t])}function be(t,e){return we(e[t.index])}function ci(t,e){return t.data[e]}function Oa(t,e){return t[e]}function Pa(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}function Se(t,e){let n=e[t];return it(n)?n:n[ke]}function qd(t){return(t[b]&4)===4}function li(t){return(t[b]&128)===128}function zd(t){return Te(t[J])}function Ee(t,e){return e==null?null:t[e]}function La(t){t[en]=0}function Fa(t){t[b]&1024||(t[b]|=1024,li(t)&&on(t))}function Gd(t,e){for(;t>0;)e=e[wt],t--;return e}function Dr(t){return!!(t[b]&9216||t[ve]?.dirty)}function ui(t){t[Ke].changeDetectionScheduler?.notify(8),t[b]&64&&(t[b]|=1024),Dr(t)&&on(t)}function on(t){t[Ke].changeDetectionScheduler?.notify(0);let e=ot(t);for(;e!==null&&!(e[b]&8192||(e[b]|=8192,!li(e)));)e=ot(e)}function di(t,e){if(rn(t))throw new g(911,!1);t[rt]===null&&(t[rt]=[]),t[rt].push(e)}function Wd(t,e){if(t[rt]===null)return;let n=t[rt].indexOf(e);n!==-1&&t[rt].splice(n,1)}function ot(t){let e=t[J];return Te(e)?e[J]:e}function ja(t){return t[Rn]??=[]}function Va(t){return t.cleanup??=[]}function Qd(t,e,n,r){let o=ja(e);o.push(n),t.firstCreatePass&&Va(t).push(r,o.length-1)}var M={lFrame:lf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var aa=!1;function Kd(){return M.lFrame.elementDepthCount}function Zd(){M.lFrame.elementDepthCount++}function Ha(){M.lFrame.elementDepthCount--}function fi(){return M.bindingsEnabled}function Ba(){return M.skipHydrationRootTNode!==null}function $a(t){return M.skipHydrationRootTNode===t}function Ua(){M.skipHydrationRootTNode=null}function w(){return M.lFrame.lView}function B(){return M.lFrame.tView}function Yd(t){return M.lFrame.contextLView=t,t[W]}function Jd(t){return M.lFrame.contextLView=null,t}function Q(){let t=qa();for(;t!==null&&t.type===64;)t=t.parent;return t}function qa(){return M.lFrame.currentTNode}function Xd(){let t=M.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Fn(t,e){let n=M.lFrame;n.currentTNode=t,n.isParent=e}function za(){return M.lFrame.isParent}function Ga(){M.lFrame.isParent=!1}function ef(){return M.lFrame.contextLView}function Wa(){return aa}function mr(t){let e=aa;return aa=t,e}function tf(){let t=M.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Qa(){return M.lFrame.bindingIndex}function nf(t){return M.lFrame.bindingIndex=t}function sn(){return M.lFrame.bindingIndex++}function _r(t){let e=M.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function rf(){return M.lFrame.inI18n}function of(t,e){let n=M.lFrame;n.bindingIndex=n.bindingRootIndex=t,pi(e)}function sf(){return M.lFrame.currentDirectiveIndex}function pi(t){M.lFrame.currentDirectiveIndex=t}function af(t){let e=M.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function hi(){return M.lFrame.currentQueryIndex}function Tr(t){M.lFrame.currentQueryIndex=t}function fv(t){let e=t[E];return e.type===2?e.declTNode:e.type===1?t[ie]:null}function Ka(t,e,n){if(n&4){let o=e,i=t;for(;o=o.parent,o===null&&!(n&1);)if(o=fv(i),o===null||(i=i[wt],o.type&10))break;if(o===null)return!1;e=o,t=i}let r=M.lFrame=cf();return r.currentTNode=e,r.lView=t,!0}function mi(t){let e=cf(),n=t[E];M.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function cf(){let t=M.lFrame,e=t===null?null:t.child;return e===null?lf(t):e}function lf(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 uf(){let t=M.lFrame;return M.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Za=uf;function gi(){let t=uf();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 df(t){return(M.lFrame.contextLView=Gd(t,M.lFrame.contextLView))[W]}function Oe(){return M.lFrame.selectedIndex}function Ct(t){M.lFrame.selectedIndex=t}function wr(){let t=M.lFrame;return ci(t.tView,t.selectedIndex)}function ff(){M.lFrame.currentNamespace=ka}function pf(){pv()}function pv(){M.lFrame.currentNamespace=null}function Ya(){return M.lFrame.currentNamespace}var hf=!0;function yi(){return hf}function br(t){hf=t}function ca(t,e=null,n=null,r){let o=mf(t,e,n,r);return o.resolveInjectorInitializers(),o}function mf(t,e=null,n=null,r,o=new Set){let i=[n||oe,Fd(t)],s;return new Kt(i,e||kn(),s||null,o)}var We=class t{static THROW_IF_NOT_FOUND=Gt;static NULL=new xn;static create(e,n){if(Array.isArray(e))return ca({name:""},n,e,"");{let r=e.name??"";return ca({name:r},e.parent,e.providers,r)}}static \u0275prov=pe({token:t,providedIn:"any",factory:()=>Ge(Er)});static __NG_ELEMENT_ID__=-1},vi=new P(""),an=(()=>{class t{static __NG_ELEMENT_ID__=hv;static __NG_ENV_ID__=n=>n}return t})(),Go=class extends an{_lView;constructor(e){super(),this._lView=e}get destroyed(){return rn(this._lView)}onDestroy(e){let n=this._lView;return di(n,e),()=>Wd(n,e)}};function hv(){return new Go(w())}var Ja=!1,gf=new P(""),Mt=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new sr(!1);debugTaskTracker=S(gf,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new k(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=pe({token:t,providedIn:"root",factory:()=>new t})}return t})(),la=class extends ye{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,Bd()&&(this.destroyRef=S(an,{optional:!0})??void 0,this.pendingTasks=S(Mt,{optional:!0})??void 0)}emit(e){let n=D(null);try{super.next(e)}finally{D(n)}}subscribe(e,n,r){let o=e,i=n||(()=>null),s=r;if(e&&typeof e=="object"){let c=e;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return e instanceof $&&e.add(a),a}wrapInTimeout(e){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{e(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},nt=la;function Wo(...t){}function Xa(t){let e,n;function r(){t=Wo;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),e!==void 0&&clearTimeout(e)}catch(o){}}return e=setTimeout(()=>{t(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{t(),r()})),()=>r()}function yf(t){return queueMicrotask(()=>t()),()=>{t=Wo}}var ec="isAngularZone",gr=ec+"_ID",mv=0,ne=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new nt(!1);onMicrotaskEmpty=new nt(!1);onStable=new nt(!1);onError=new nt(!1);constructor(e){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Ja}=e;if(typeof Zone>"u")throw new g(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,vv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(ec)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new g(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new g(909,!1)}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,e,gv,Wo,Wo);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}},gv={};function tc(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 yv(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function e(){Xa(()=>{t.callbackScheduled=!1,ua(t),t.isCheckStableRunning=!0,tc(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{e()}):t._outer.run(()=>{e()}),ua(t)}function vv(t){let e=()=>{yv(t)},n=mv++;t._inner=t._inner.fork({name:"angular",properties:{[ec]:!0,[gr]:n,[gr+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Ev(c))return r.invokeTask(i,s,a,c);try{return bd(t),r.invokeTask(i,s,a,c)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),Sd(t)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return bd(t),r.invoke(i,s,a,c,l)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!Iv(c)&&e(),Sd(t)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,ua(t),tc(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function ua(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function bd(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Sd(t){t._nesting--,tc(t)}var yr=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new nt;onMicrotaskEmpty=new nt;onStable=new nt;onError=new nt;run(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,o){return e.apply(n,r)}};function Ev(t){return vf(t,"__ignore_ng_zone__")}function Iv(t){return vf(t,"__scheduler_tick__")}function vf(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var Zt=class{_console=console;handleError(e){this._console.error("ERROR",e)}},Nt=new P("",{factory:()=>{let t=S(ne),e=S(De),n;return r=>{t.runOutsideAngular(()=>{e.destroyed&&!n?setTimeout(()=>{throw r}):(n??=e.get(Zt),n.handleError(r))})}}}),Ef={provide:Jt,useValue:()=>{let t=S(Zt,{optional:!0})},multi:!0};function nc(t,e){let[n,r,o]=Rs(t,e?.equal),i=n,s=i[Z];return i.set=r,i.update=o,i.asReadonly=If.bind(i),i}function If(){let t=this[Z];if(t.readonlyFn===void 0){let e=()=>this();e[Z]=t,t.readonlyFn=e}return t.readonlyFn}var Df=new P("",{factory:()=>Dv}),Dv="ng";var _f=new P(""),_v=new P("",{providedIn:"platform",factory:()=>"unknown"}),Tv=new P(""),wv=new P("",{factory:()=>S(vi).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var jn=(()=>{class t{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=bv}return t})();function bv(){return new jn(w(),Q())}var Ae=class{},Vn=new P("",{factory:()=>!0});var Ei=new P(""),Ii=(()=>{class t{static \u0275prov=pe({token:t,providedIn:"root",factory:()=>new da})}return t})(),da=class{dirtyEffectCount=0;queues=new Map;add(e){this.enqueue(e),this.schedule(e)}schedule(e){e.dirty&&this.dirtyEffectCount++}remove(e){let n=e.zone,r=this.queues.get(n);r.has(e)&&(r.delete(e),e.dirty&&this.dirtyEffectCount--)}enqueue(e){let n=e.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(e)||r.add(e)}flush(){for(;this.dirtyEffectCount>0;){let e=!1;for(let[n,r]of this.queues)n===null?e||=this.flushQueue(r):e||=n.run(()=>this.flushQueue(r));e||(this.dirtyEffectCount=0)}}flushQueue(e){let n=!1;for(let r of e)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}},Qo=class{[Z];constructor(e){this[Z]=e}destroy(){this[Z].destroy()}};function Sv(t,e){let n=e?.injector??S(We),r=e?.manualCleanup!==!0?n.get(an):null,o,i=n.get(jn,null,{optional:!0}),s=n.get(Ae);return i!==null?(o=Nv(i.view,s,t),r instanceof Go&&r._lView===i.view&&(r=null)):o=xv(t,n.get(Ii),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new Qo(o)}var Tf=ee(G({},Ps),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let t=mr(!1);try{Ls(this)}finally{mr(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=D(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],D(t)}}}),Cv=ee(G({},Tf),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(ht(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.scheduler.remove(this)}}),Mv=ee(G({},Tf),{consumerMarkedDirty(){this.view[b]|=8192,on(this.view),this.notifier.notify(13)},destroy(){if(ht(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.view[Et]?.delete(this)}});function Nv(t,e,n){let r=Object.create(Mv);return r.view=t,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=e,r.fn=wf(r,n),t[Et]??=new Set,t[Et].add(r),r.consumerMarkedDirty(r),r}function xv(t,e,n){let r=Object.create(Cv);return r.fn=wf(r,t),r.scheduler=e,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function wf(t,e){return()=>{e(n=>(t.cleanupFns??=[]).push(n))}}function bf(t){return typeof t=="function"&&t[Z]!==void 0}var Sf=(()=>{class t{internalPendingTasks=S(Mt);scheduler=S(Ae);errorHandler=S(Nt);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n))}}run(n){let r=this.add();try{n().catch(this.errorHandler).finally(r)}catch(o){this.errorHandler(o),r()}}static \u0275prov=pe({token:t,providedIn:"root",factory:()=>new t})}return t})();function jr(t){return{toString:t}.toString()}var O=(function(t){return t[t.TemplateCreateStart=0]="TemplateCreateStart",t[t.TemplateCreateEnd=1]="TemplateCreateEnd",t[t.TemplateUpdateStart=2]="TemplateUpdateStart",t[t.TemplateUpdateEnd=3]="TemplateUpdateEnd",t[t.LifecycleHookStart=4]="LifecycleHookStart",t[t.LifecycleHookEnd=5]="LifecycleHookEnd",t[t.OutputStart=6]="OutputStart",t[t.OutputEnd=7]="OutputEnd",t[t.BootstrapApplicationStart=8]="BootstrapApplicationStart",t[t.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",t[t.BootstrapComponentStart=10]="BootstrapComponentStart",t[t.BootstrapComponentEnd=11]="BootstrapComponentEnd",t[t.ChangeDetectionStart=12]="ChangeDetectionStart",t[t.ChangeDetectionEnd=13]="ChangeDetectionEnd",t[t.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",t[t.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",t[t.AfterRenderHooksStart=16]="AfterRenderHooksStart",t[t.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",t[t.ComponentStart=18]="ComponentStart",t[t.ComponentEnd=19]="ComponentEnd",t[t.DeferBlockStateStart=20]="DeferBlockStateStart",t[t.DeferBlockStateEnd=21]="DeferBlockStateEnd",t[t.DynamicComponentStart=22]="DynamicComponentStart",t[t.DynamicComponentEnd=23]="DynamicComponentEnd",t[t.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",t[t.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",t})(O||{}),Mi=class{previousValue;currentValue;firstChange;constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function dp(t,e,n,r){e!==null?e.applyValueToInputSignal(e,r):t[n]=r}var fp=null,qv=(()=>{fp=Cf;let t=()=>Cf;return t.ngInherit=!0,t})();function zv(){return fp}function Cf(t){return t.type.prototype.ngOnChanges&&(t.setInput=Wv),Gv}function Gv(){let t=pp(this),e=t?.current;if(e){let n=t.previous;if(n===Tt)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function Wv(t,e,n,r,o){let i=this.declaredInputs[r],s=pp(t)||Qv(t,{previous:Tt,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new Mi(l&&l.currentValue,n,c===Tt),dp(t,e,o,n)}var hc="__ngSimpleChanges__";function pp(t){return Object.hasOwn(t,hc)&&t[hc]||null}function Qv(t,e){return t[hc]=e}var Mf=[];var F=function(t,e=null,n){for(let r=0;r<Mf.length;r++){let o=Mf[r];o(t,e,n)}};function Kv(t,e,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(r){let s=zv()(e);(n.preOrderHooks??=[]).push(t,s),(n.preOrderCheckHooks??=[]).push(t,s)}o&&(n.preOrderHooks??=[]).push(0-t,o),i&&((n.preOrderHooks??=[]).push(t,i),(n.preOrderCheckHooks??=[]).push(t,i))}function hp(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){let i=t.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=i;s&&(t.contentHooks??=[]).push(-n,s),a&&((t.contentHooks??=[]).push(n,a),(t.contentCheckHooks??=[]).push(n,a)),c&&(t.viewHooks??=[]).push(-n,c),l&&((t.viewHooks??=[]).push(n,l),(t.viewCheckHooks??=[]).push(n,l)),u!=null&&(t.destroyHooks??=[]).push(n,u)}}function wi(t,e,n){mp(t,e,3,n)}function bi(t,e,n,r){(t[b]&3)===n&&mp(t,e,n,r)}function rc(t,e){let n=t[b];(n&3)===e&&(n&=16383,n+=1,t[b]=n)}function mp(t,e,n,r){let o=r!==void 0?t[en]&65535:0,i=r??-1,s=e.length-1,a=0;for(let c=o;c<s;c++)if(typeof e[c+1]=="number"){if(a=e[c],r!=null&&a>=r)break}else e[c]<0&&(t[en]+=65536),(a<i||i==-1)&&(Zv(t,n,e,c),t[en]=(t[en]&4294901760)+c+2),c++}function Nf(t,e){F(O.LifecycleHookStart,t,e);let n=D(null);try{e.call(t)}finally{D(n),F(O.LifecycleHookEnd,t,e)}}function Zv(t,e,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=t[s];o?t[b]>>14<t[en]>>16&&(t[b]&3)===e&&(t[b]+=16384,Nf(a,i)):Nf(a,i)}var Bn=-1,ln=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,n,r,o){this.factory=e,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r}};function Yv(t){return(t.flags&8)!==0}function Jv(t){return(t.flags&16)!==0}function Xv(t,e,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];t.setAttribute(e,s,a,i)}else{let i=o,s=n[++r];eE(i)?t.setProperty(e,i,s):t.setAttribute(e,i,s),r++}}return r}function gp(t){return t===3||t===4||t===6}function eE(t){return t.charCodeAt(0)===64}function $n(t,e){if(!(e===null||e.length===0))if(t===null||t.length===0)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){let o=e[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?xf(t,n,o,null,e[++r]):xf(t,n,o,null,null))}}return t}function xf(t,e,n,r,o){let i=0,s=t.length;if(e===-1)s=-1;else for(;i<t.length;){let a=t[i++];if(typeof a=="number"){if(a===e){s=-1;break}else if(a>e){s=i-1;break}}}for(;i<t.length;){let a=t[i];if(typeof a=="number")break;if(a===n){o!==null&&(t[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(t.splice(s,0,e),i=s+1),t.splice(i++,0,n),o!==null&&t.splice(i++,0,o)}function yp(t){return t!==Bn}function Ni(t){return t&32767}function tE(t){return t>>16}function xi(t,e){let n=tE(t),r=e;for(;n>0;)r=r[wt],n--;return r}var mc=!0;function Ai(t){let e=mc;return mc=t,e}var nE=256,vp=nE-1,Ep=5,rE=0,Xe={};function oE(t,e,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Yt)&&(r=n[Yt]),r==null&&(r=n[Yt]=rE++);let o=r&vp,i=1<<o;e.data[t+(o>>Ep)]|=i}function ki(t,e){let n=Ip(t,e);if(n!==-1)return n;let r=e[E];r.firstCreatePass&&(t.injectorIndex=e.length,oc(r.data,t),oc(e,null),oc(r.blueprint,null));let o=Zc(t,e),i=t.injectorIndex;if(yp(o)){let s=Ni(o),a=xi(o,e),c=a[E].data;for(let l=0;l<8;l++)e[i+l]=a[s+l]|c[s+l]}return e[i+8]=o,i}function oc(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ip(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function Zc(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let n=0,r=null,o=e;for(;o!==null;){if(r=bp(o),r===null)return Bn;if(n++,o=o[wt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Bn}function gc(t,e,n){oE(t,e,n)}function iE(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let n=t.attrs;if(n){let r=n.length,o=0;for(;o<r;){let i=n[o];if(gp(i))break;if(i===0)o=o+2;else if(typeof i=="number")for(o++;o<r&&typeof n[o]=="string";)o++;else{if(i===e)return n[o+1];o=o+2}}}return null}function Dp(t,e,n){if(n&8||t!==void 0)return t;ni(e,"NodeInjector")}function _p(t,e,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=t[Qe],i=le(void 0);try{return o?o.get(e,r,n&8):Ia(e,r,n&8)}finally{le(i)}}return Dp(r,e,n)}function Tp(t,e,n,r=0,o){if(t!==null){if(e[b]&2048&&!(r&2)){let s=uE(t,e,n,r,Xe);if(s!==Xe)return s}let i=wp(t,e,n,r,Xe);if(i!==Xe)return i}return _p(e,n,r,o)}function wp(t,e,n,r,o){let i=aE(n);if(typeof i=="function"){if(!Ka(e,t,r))return r&1?Dp(o,n,r):_p(e,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))ni(n);else return s}finally{Za()}}else if(typeof i=="number"){let s=null,a=Ip(t,e),c=Bn,l=r&1?e[ue][ie]:null;for((a===-1||r&4)&&(c=a===-1?Zc(t,e):e[a+8],c===Bn||!kf(r,!1)?a=-1:(s=e[E],a=Ni(c),e=xi(c,e)));a!==-1;){let u=e[E];if(Af(i,a,u.data)){let d=sE(a,e,n,s,r,l);if(d!==Xe)return d}c=e[a+8],c!==Bn&&kf(r,e[E].data[a+8]===l)&&Af(i,a,e)?(s=u,a=Ni(c),e=xi(c,e)):a=-1}}return o}function sE(t,e,n,r,o,i){let s=e[E],a=s.data[t+8],c=r==null?st(a)&&mc:r!=s&&(a.type&3)!==0,l=o&1&&i===a,u=Si(a,s,n,c,l);return u!==null?xr(e,s,u,a,o):Xe}function Si(t,e,n,r,o){let i=t.providerIndexes,s=e.data,a=i&1048575,c=t.directiveStart,l=t.directiveEnd,u=i>>20,d=r?a:a+u,p=o?a+u:l;for(let f=d;f<p;f++){let h=s[f];if(f<c&&n===h||f>=c&&h.type===n)return f}if(o){let f=s[c];if(f&&Re(f)&&f.type===n)return c}return null}function xr(t,e,n,r,o){let i=t[n],s=e.data;if(i instanceof ln){let a=i;if(a.resolving)throw Ea("");let c=Ai(a.canSeeViewProviders);a.resolving=!0;let l=s[n].type||s[n],u,d=a.injectImpl?le(a.injectImpl):null,p=Ka(t,r,0);try{i=t[n]=a.factory(void 0,o,s,t,r),e.firstCreatePass&&n>=r.directiveStart&&Kv(n,s[n],e)}finally{d!==null&&le(d),Ai(c),a.resolving=!1,Za()}}return i}function aE(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Yt)?t[Yt]:void 0;return typeof e=="number"?e>=0?e&vp:cE:e}function Af(t,e,n){let r=1<<t;return!!(n[e+(t>>Ep)]&r)}function kf(t,e){return!(t&2)&&!(t&1&&e)}var xt=class{_tNode;_lView;constructor(e,n){this._tNode=e,this._lView=n}get(e,n,r){return Tp(this._tNode,this._lView,e,Wt(r),n)}};function cE(){return new xt(Q(),w())}function lE(t){return jr(()=>{let e=t.prototype.constructor,n=e[hr]||yc(e),r=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==r;){let i=o[hr]||yc(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function yc(t){return pa(t)?()=>{let e=yc(Y(t));return e&&e()}:vt(t)}function uE(t,e,n,r,o){let i=t,s=e;for(;i!==null&&s!==null&&s[b]&2048&&!Ln(s);){let a=wp(i,s,n,r|2,Xe);if(a!==Xe)return a;let c=i.parent;if(!c){let l=s[Na];if(l){let u=l.get(n,Xe,r&-5);if(u!==Xe)return u}c=bp(s),s=s[wt]}i=c}return o}function bp(t){let e=t[E],n=e.type;return n===2?e.declTNode:n===1?t[ie]:null}function Sp(t){return iE(Q(),t)}function Kn(t){return{token:t.token,providedIn:t.autoProvided===!1?null:"root",factory:t.factory,value:void 0}}function dE(){return Zn(Q(),w())}function Zn(t,e){return new Vr(be(t,e))}var Vr=(()=>{class t{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=dE}return t})();function Cp(t){return t instanceof Vr?t.nativeElement:t}function fE(){return this._results[Symbol.iterator]()}var Ri=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new ye}constructor(e=!1){this._emitDistinctChangesOnly=e}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,n){return this._results.reduce(e,n)}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,n){this.dirty=!1;let r=Od(e);(this._changesDetected=!Rd(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=fE};function Mp(t){return(t.flags&128)===128}var Yc=(function(t){return t[t.OnPush=0]="OnPush",t[t.Eager=1]="Eager",t[t.Default=1]="Default",t})(Yc||{}),Np=new Map,pE=0;function hE(){return pE++}function mE(t){Np.set(t[Ye],t)}function vc(t){Np.delete(t[Ye])}var Rf="__ngContext__";function Un(t,e){it(e)?(t[Rf]=e[Ye],mE(e)):t[Rf]=e}function xp(t){return kp(t[On])}function Ap(t){return kp(t[_e])}function kp(t){for(;t!==null&&!Te(t);)t=t[_e];return t}var Ec;function gE(t){Ec=t}function Rp(){if(Ec!==void 0)return Ec;if(typeof document<"u")return document;throw new g(210,!1)}var Op="r";var Pp="di";var Lp=!1,Fp=new P("",{factory:()=>Lp});var Of=new WeakMap;function yE(t,e){if(t==null||typeof t!="object")return;let n=Of.get(t);n||(n=new WeakSet,Of.set(t,n)),n.add(e)}var vE=(t,e,n,r)=>{};function EE(t,e,n,r){vE(t,e,n,r)}function Qi(t){return(t.flags&32)===32}var IE=()=>null;function jp(t,e,n=!1){return IE(t,e,n)}function Vp(t,e){let n=t.contentQueries;if(n!==null){let r=D(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=t.data[s];Tr(i),a.contentQueries(2,e[s],s)}}}finally{D(r)}}}function Ic(t,e,n){Tr(0);let r=D(null);try{e(t,n)}finally{D(r)}}function Jc(t,e,n){if(Aa(e)){let r=D(null);try{let o=e.directiveStart,i=e.directiveEnd;for(let s=o;s<i;s++){let a=t.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{D(r)}}}var un=(function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t[t.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",t})(un||{});var Di;function DE(){if(Di===void 0&&(Di=null,_t.trustedTypes))try{Di=_t.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Di}function Ki(t){return DE()?.createHTML(t)||t}var at=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ko})`}},Dc=class extends at{getTypeName(){return"HTML"}},_c=class extends at{getTypeName(){return"Style"}},Tc=class extends at{getTypeName(){return"Script"}},wc=class extends at{getTypeName(){return"URL"}},bc=class extends at{getTypeName(){return"ResourceURL"}};function Xc(t){return t instanceof at?t.changingThisBreaksApplicationSecurity:t}function _E(t,e){let n=Hp(t);if(n!=null&&n!==e){if(n==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${n} (see ${Ko})`)}return n===e}function Hp(t){return t instanceof at&&t.getTypeName()||null}function TE(t){return new Dc(t)}function wE(t){return new _c(t)}function bE(t){return new Tc(t)}function SE(t){return new wc(t)}function CE(t){return new bc(t)}function ME(t){let e=new Cc(t);return NE()?new Sc(e):e}var Sc=class{inertDocumentHelper;constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let n=new window.DOMParser().parseFromString(Ki(e),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(e):(n.firstChild?.remove(),n)}catch(n){return null}}},Cc=class{defaultDoc;inertDocument;constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let n=this.inertDocument.createElement("template");return n.innerHTML=Ki(e),n}};function NE(){try{return!!new window.DOMParser().parseFromString(Ki(""),"text/html")}catch(t){return!1}}var xE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Bp(t){return t=String(t),t.match(xE)?t:"unsafe:"+t}function ct(t){let e={};for(let n of t.split(","))e[n]=!0;return e}function Hr(...t){let e={};for(let n of t)for(let r in n)n.hasOwnProperty(r)&&(e[r]=!0);return e}var $p=ct("area,br,col,hr,img,wbr"),Up=ct("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),qp=ct("rp,rt"),AE=Hr(qp,Up),kE=Hr(Up,ct("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),RE=Hr(qp,ct("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Pf=Hr($p,kE,RE,AE),zp=ct("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),OE=ct("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),PE=ct("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),LE=Hr(zp,OE,PE),FE=ct("script,style,template"),Mc=class{sanitizedSomething=!1;buf=[];sanitizeChildren(e){let n=e.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=HE(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=VE(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(e){let n=Lf(e).toLowerCase();if(!Pf.hasOwnProperty(n))return this.sanitizedSomething=!0,!FE.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=e.attributes;for(let o=0;o<r.length;o++){let i=r.item(o),s=i.name,a=s.toLowerCase();if(!LE.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let c=i.value;zp[a]&&(c=Bp(c)),this.buf.push(" ",s,'="',Ff(c),'"')}return this.buf.push(">"),!0}endElement(e){let n=Lf(e).toLowerCase();Pf.hasOwnProperty(n)&&!$p.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(e){this.buf.push(Ff(e))}};function jE(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function VE(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw Gp(e);return e}function HE(t){let e=t.firstChild;if(e&&jE(t,e))throw Gp(e);return e}function Lf(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function Gp(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var BE=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$E=/([^\#-~ |!])/g;function Ff(t){return t.replace(/&/g,"&amp;").replace(BE,function(e){let n=e.charCodeAt(0),r=e.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace($E,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var _i;function UE(t,e){let n=null;try{_i=_i||ME(t);let r=e?String(e):"";n=_i.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=_i.getInertBodyElement(r)}while(r!==i);let a=new Mc().sanitizeChildren(jf(n)||n);return Ki(a)}finally{if(n){let r=jf(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function jf(t){return"content"in t&&qE(t)?t.content:null}function qE(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var zE=/^>|^->|<!--|-->|--!>|<!-$/g,GE=/(<|>)/g,WE="\u200B$1\u200B";function QE(t){return t.replace(zE,e=>e.replace(GE,WE))}function KE(t,e){return t.createText(e)}function ZE(t,e,n){t.setValue(e,n)}function YE(t,e){return t.createComment(QE(e))}function Wp(t,e,n){return t.createElement(e,n)}function Oi(t,e,n,r,o){t.insertBefore(e,n,r,o)}function Qp(t,e,n){t.appendChild(e,n)}function Vf(t,e,n,r,o){r!==null?Oi(t,e,n,r,o):Qp(t,e,n)}function Kp(t,e,n,r){t.removeChild(null,e,n,r)}function JE(t,e,n){t.setAttribute(e,"style",n)}function XE(t,e,n){n===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n)}function Zp(t,e,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&Xv(t,e,r),o!==null&&XE(t,e,o),i!==null&&JE(t,e,i)}var Yp=(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[t.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",t})(Yp||{});function eI(t){return t.ownerDocument}function tI(t,e,n){let r=t.length;for(;;){let o=t.indexOf(e,n);if(o===-1)return o;if(o===0||t.charCodeAt(o-1)<=32){let i=e.length;if(o+i===r||t.charCodeAt(o+i)<=32)return o}n=o+1}}var Jp="ng-template";function nI(t,e,n,r){let o=0;if(r){for(;o<e.length&&typeof e[o]=="string";o+=2)if(e[o]==="class"&&tI(e[o+1].toLowerCase(),n,0)!==-1)return!0}else if(el(t))return!1;if(o=e.indexOf(1,o),o>-1){let i;for(;++o<e.length&&typeof(i=e[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function el(t){return t.type===4&&t.value!==Jp}function rI(t,e,n){let r=t.type===4&&!n?Jp:t.value;return e===r}function oI(t,e,n){let r=4,o=t.attrs,i=o!==null?aI(o):0,s=!1;for(let a=0;a<e.length;a++){let c=e[a];if(typeof c=="number"){if(!s&&!Pe(r)&&!Pe(c))return!1;if(s&&Pe(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!rI(t,c,n)||c===""&&e.length===1){if(Pe(r))return!1;s=!0}}else if(r&8){if(o===null||!nI(t,o,c,n)){if(Pe(r))return!1;s=!0}}else{let l=e[++a],u=iI(c,o,el(t),n);if(u===-1){if(Pe(r))return!1;s=!0;continue}if(l!==""){let d;if(u>i?d="":d=o[u+1].toLowerCase(),r&2&&l!==d){if(Pe(r))return!1;s=!0}}}}return Pe(r)||s}function Pe(t){return(t&1)===0}function iI(t,e,n,r){if(e===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<e.length;){let s=e[o];if(s===t)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=e[++o];for(;typeof a=="string";)a=e[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return cI(e,t)}function Xp(t,e,n=!1){for(let r=0;r<e.length;r++)if(oI(t,e[r],n))return!0;return!1}function sI(t){let e=t.attrs;if(e!=null){let n=e.indexOf(5);if((n&1)===0)return e[n+1]}return null}function aI(t){for(let e=0;e<t.length;e++){let n=t[e];if(gp(n))return e}return t.length}function cI(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){let r=t[n];if(typeof r=="number")return-1;if(r===e)return n;n++}return-1}function lI(t,e){e:for(let n=0;n<e.length;n++){let r=e[n];if(t.length===r.length){for(let o=0;o<t.length;o++)if(t[o]!==r[o])continue e;return!0}}return!1}function Hf(t,e){return t?":not("+e.trim()+")":e}function uI(t){let e=t[0],n=1,r=2,o="",i=!1;for(;n<t.length;){let s=t[n];if(typeof s=="string")if(r&2){let a=t[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Pe(s)&&(e+=Hf(i,o),o=""),r=s,i=i||!Pe(r);n++}return o!==""&&(e+=Hf(i,o)),e}function dI(t){return t.map(uI).join(",")}function fI(t){let e=[],n=[],r=1,o=2;for(;r<t.length;){let i=t[r];if(typeof i=="string")o===2?i!==""&&e.push(i,t[++r]):o===8&&n.push(i);else{if(!Pe(o))break;o=i}r++}return n.length&&e.push(1,...n),e}var se={},Pi=(function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t})(Pi||{}),pI;function tl(t,e){return pI(t,e)}var wO=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var Nc=new WeakMap;function eh(t){return t?t[wt]??t:null}var Cr=new WeakSet;function hI(t,e,n){let r=Nc.get(t);if(!r||r.length===0)return;let o=e.parentNode,i=e.previousSibling,s=eh(n);for(let a=r.length-1;a>=0;a--){let{el:c,declarationView:l}=r[a],u=c.parentNode;c===e?(r.splice(a,1),Cr.add(c),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):i&&c===i?(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),c.parentNode?.removeChild(c)):u&&o&&u!==o&&(s===null||l===null||s===l)&&(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),c.parentNode?.removeChild(c))}}function mI(t,e,n){let r=eh(n),o=Nc.get(t);o?o.some(i=>i.el===e)||o.push({el:e,declarationView:r}):Nc.set(t,[{el:e,declarationView:r}])}var qn=new Set,Zi=(function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t})(Zi||{}),pn=new P(""),Bf=new Set;function lt(t){Bf.has(t)||(Bf.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var Yi=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=pe({token:t,providedIn:"root",factory:()=>new t})}return t})(),nl=[0,1,2,3],rl=(()=>{class t{ngZone=S(ne);scheduler=S(Ae);errorHandler=S(Zt,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){S(pn,{optional:!0})}execute(){let n=this.sequences.size>0;n&&F(O.AfterRenderHooksStart),this.executing=!0;for(let r of nl)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot))}catch(i){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&F(O.AfterRenderHooksEnd)}register(n){let{view:r}=n;r!==void 0?((r[tn]??=[]).push(n),on(r),r[b]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n)}addSequence(n){this.sequences.add(n),this.scheduler.notify(7)}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?r.run(Zi.AFTER_NEXT_RENDER,n):n()}static \u0275prov=pe({token:t,providedIn:"root",factory:()=>new t})}return t})(),Ar=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(e,n,r,o,i,s=null){this.impl=e,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let e=this.view?.[tn];e&&(this.view[tn]=e.filter(n=>n!==this))}};function gI(t,e){let n=e?.injector??S(We);return lt("NgAfterNextRender"),vI(t,n,e,!0)}function yI(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function vI(t,e,n,r){let o=e.get(Yi);o.impl??=e.get(rl);let i=e.get(pn,null,{optional:!0}),s=n?.manualCleanup!==!0?e.get(an):null,a=e.get(jn,null,{optional:!0}),c=new Ar(o.impl,yI(t),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var ol=new P("",{factory:()=>{let t=S(De),e=new Set;return t.onDestroy(()=>e.clear()),{queue:e,isScheduled:!1,scheduler:null,injector:t}}});function th(t,e,n){let r=t.get(ol);if(Array.isArray(e))for(let o of e)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(e),n?.detachedLeaveAnimationFns?.push(e);r.scheduler&&r.scheduler(t)}function EI(t,e){let n=t.get(ol);if(Array.isArray(e))for(let r of e)n.queue.delete(r);else n.queue.delete(e)}function II(t,e){let n=t.get(ol);if(e.detachedLeaveAnimationFns){for(let r of e.detachedLeaveAnimationFns)n.queue.delete(r);e.detachedLeaveAnimationFns=void 0}}function DI(t,e){for(let[n,r]of e)th(t,r.animateFns)}function $f(t,e,n,r){let o=t?.[Je]?.enter;e!==null&&o&&o.has(n.index)&&DI(r,o)}function Uf(t,e,n,r){try{n.get(Er)}catch(s){return r(!1)}let o=t?.[Je];o?.enter?.has(e.index)&&EI(n,o.enter.get(e.index).animateFns);let i=_I(t,e,o);if(i.size===0){let s=!1;if(t){let a=[];Ji(t,e,a),s=a.length>0}if(!s)return r(!1)}t&&qn.add(t[Ye]),th(n,()=>TI(t,e,o||void 0,i,r),o||void 0)}function _I(t,e,n){let r=new Map,o=n?.leave;if(o&&o.has(e.index)&&r.set(e.index,o.get(e.index)),t&&o)for(let[i,s]of o){if(r.has(i))continue;let c=t[E].data[i].parent;for(;c;){if(c===e){r.set(i,s);break}c=c.parent}}return r}function TI(t,e,n,r,o){let i=[];if(n&&n.leave)for(let[s]of r){if(!n.leave.has(s))continue;let a=n.leave.get(s);for(let c of a.animateFns){let{promise:l}=c();i.push(l)}n.detachedLeaveAnimationFns=void 0}if(t&&Ji(t,e,i),i.length>0){let s=n||t?.[Je];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),bI(t,s.running,o)}else Promise.allSettled(i).then(()=>{t&&qn.delete(t[Ye]),o(!0)})}else t&&qn.delete(t[Ye]),o(!1)}function Ji(t,e,n){if(e.type&12){let o=t[e.index];if(Te(o))for(let i=z;i<o.length;i++){let s=o[i];s[E].type===2&&wI(s,n)}}let r=e.child;for(;r;)Ji(t,r,n),r=r.next}function wI(t,e){let n=t[Je];if(n&&n.leave)for(let o of n.leave.values())for(let i of o.animateFns){let{promise:s}=i();e.push(s)}let r=t[E].firstChild;for(;r;)Ji(t,r,e),r=r.next}function bI(t,e,n){e.then(()=>{t[Je]?.running===e&&(t[Je].running=void 0,qn.delete(t[Ye])),n(!0)})}function Hn(t,e,n,r,o,i,s,a){if(o!=null){let c,l=!1;Te(o)?c=o:it(o)&&(l=!0,o=o[ke]);let u=we(o);t===0&&r!==null?($f(a,r,i,n),s==null?Qp(e,r,u):Oi(e,r,u,s||null,!0)):t===1&&r!==null?($f(a,r,i,n),Oi(e,r,u,s||null,!0),hI(i,u,a)):t===2?(a?.[Je]?.leave?.has(i.index)&&mI(i,u,a),Cr.delete(u),Uf(a,i,n,d=>{if(Cr.has(u)){Cr.delete(u);return}Kp(e,u,l,d)})):t===3&&(Cr.delete(u),Uf(a,i,n,()=>{e.destroyNode(u)})),c!=null&&PI(e,t,n,c,i,r,s)}}function SI(t,e){nh(t,e),e[ke]=null,e[ie]=null}function CI(t,e,n,r,o,i){r[ke]=o,r[ie]=e,es(t,r,n,1,o,i)}function nh(t,e){e[Ke].changeDetectionScheduler?.notify(9),es(t,e,e[H],2,null,null)}function MI(t){let e=t[On];if(!e)return ic(t[E],t);for(;e;){let n=null;if(it(e))n=e[On];else{let r=e[z];r&&(n=r)}if(!n){for(;e&&!e[_e]&&e!==t;)it(e)&&ic(e[E],e),e=e[J];e===null&&(e=t),it(e)&&ic(e[E],e),n=e&&e[_e]}e=n}}function il(t,e){let n=t[nn],r=n.indexOf(e);n.splice(r,1)}function Xi(t,e){if(rn(e))return;let n=e[H];n.destroyNode&&es(t,e,n,3,null,null),MI(e)}function ic(t,e){if(rn(e))return;let n=D(null);try{e[b]&=-129,e[b]|=256,e[ve]&&ht(e[ve]),xI(t,e),NI(t,e),e[E].type===1&&e[H].destroy();let r=e[bt];if(r!==null&&Te(e[J])){r!==e[J]&&il(r,e);let o=e[Ze];o!==null&&o.detachView(t)}vc(e)}finally{D(n)}}function NI(t,e){let n=t.cleanup,r=e[Rn];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(e[Rn]=null);let o=e[rt];if(o!==null){e[rt]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=e[Et];if(i!==null){e[Et]=null;for(let s of i)s.destroy()}}function xI(t,e){let n;if(t!=null&&(n=t.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=e[n[r]];if(!(o instanceof ln)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];F(O.LifecycleHookStart,a,c);try{c.call(a)}finally{F(O.LifecycleHookEnd,a,c)}}else{F(O.LifecycleHookStart,o,i);try{i.call(o)}finally{F(O.LifecycleHookEnd,o,i)}}}}}function rh(t,e,n){return AI(t,e.parent,n)}function AI(t,e,n){let r=e;for(;r!==null&&r.type&168;)e=r,r=e.parent;if(r===null)return n[ke];if(st(r)){let{encapsulation:o}=t.data[r.directiveStart+r.componentOffset];if(o===un.None||o===un.Emulated)return null}return be(r,n)}function oh(t,e,n){return RI(t,e,n)}function kI(t,e,n){return t.type&40?be(t,n):null}var RI=kI,qf;function sl(t,e,n,r){let o=rh(t,r,e),i=e[H],s=r.parent||e[ie],a=oh(s,r,e);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Vf(i,o,n[c],a,!1);else Vf(i,o,n,a,!1);qf!==void 0&&qf(i,r,e,n,o)}function Mr(t,e){if(e!==null){let n=e.type;if(n&3)return be(e,t);if(n&4)return xc(-1,t[e.index]);if(n&8){let r=e.child;if(r!==null)return Mr(t,r);{let o=t[e.index];return Te(o)?xc(-1,o):we(o)}}else{if(n&128)return Mr(t,e.next);if(n&32)return tl(e,t)()||we(t[e.index]);{let r=ih(t,e);if(r!==null){if(Array.isArray(r))return r[0];let o=ot(t[ue]);return Mr(o,r)}else return Mr(t,e.next)}}}return null}function ih(t,e){if(e!==null){let r=t[ue][ie],o=e.projection;return r.projection[o]}return null}function xc(t,e){let n=z+t+1;if(n<e.length){let r=e[n],o=r[E].firstChild;if(o!==null)return Mr(r,o)}return e[St]}function al(t,e,n,r,o,i,s){for(;n!=null;){let a=r[Qe];if(n.type===128){n=n.next;continue}let c=r[n.index],l=n.type;if(s&&e===0&&(c&&Un(we(c),r),n.flags|=2),!Qi(n))if(l&8)al(t,e,n.child,r,o,i,!1),Hn(e,t,a,o,c,n,i,r);else if(l&32){let u=tl(n,r),d;for(;d=u();)Hn(e,t,a,o,d,n,i,r);Hn(e,t,a,o,c,n,i,r)}else l&16?sh(t,e,r,n,o,i):Hn(e,t,a,o,c,n,i,r);n=s?n.projectionNext:n.next}}function es(t,e,n,r,o,i){al(n,r,t.firstChild,e,o,i,!1)}function OI(t,e,n){let r=e[H],o=rh(t,n,e),i=n.parent||e[ie],s=oh(i,n,e);sh(r,0,e,n,o,s)}function sh(t,e,n,r,o,i){let s=n[ue],c=s[ie].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let u=c[l];Hn(e,t,n[Qe],o,u,r,i,n)}else{let l=c,u=s[J];Mp(r)&&(l.flags|=128),al(t,e,l,u,o,i,!0)}}function PI(t,e,n,r,o,i,s){let a=r[St],c=we(r);a!==c&&Hn(e,t,n,i,a,o,s);for(let l=z;l<r.length;l++){let u=r[l];es(u[E],u,t,e,i,a)}}function LI(t,e,n,r,o){if(e)o?t.addClass(n,r):t.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:Pi.DashCase;o==null?t.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Pi.Important),t.setStyle(n,r,o,i))}}function cl(t,e,n,r,o,i,s,a,c,l,u){let d=U+r,p=d+o,f=FI(d,p),h=typeof l=="function"?l():l;return f[E]={type:t,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:e,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:h,incompleteFirstPass:!1,ssrId:u}}function FI(t,e){let n=[];for(let r=0;r<e;r++)n.push(r<t?null:se);return n}function jI(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=cl(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function ll(t,e,n,r,o,i,s,a,c,l,u){let d=e.blueprint.slice();return d[ke]=o,d[b]=r|4|128|8|64|1024,(l!==null||t&&t[b]&2048)&&(d[b]|=2048),La(d),d[J]=d[wt]=t,d[W]=n,d[Ke]=s||t&&t[Ke],d[H]=a||t&&t[H],d[Qe]=c||t&&t[Qe]||null,d[ie]=i,d[Ye]=hE(),d[Xt]=u,d[Na]=l,d[ue]=e.type==2?t[ue]:d,d}function VI(t,e,n){let r=be(e,t),o=jI(n),i=t[Ke].rendererFactory,s=ul(t,ll(t,o,null,ah(n),r,e,null,i.createRenderer(r,n),null,null,null));return t[e.index]=s}function ah(t){let e=16;return t.signals?e=4096:t.onPush&&(e=64),e}function ch(t,e,n,r){if(n===0)return-1;let o=e.length;for(let i=0;i<n;i++)e.push(r),t.blueprint.push(r),t.data.push(null);return o}function ul(t,e){return t[On]?t[Ma][_e]=e:t[On]=e,t[Ma]=e,e}function HI(t=1){lh(B(),w(),Oe()+t,!1)}function lh(t,e,n,r){if(!r)if((e[b]&3)===3){let i=t.preOrderCheckHooks;i!==null&&wi(e,i,n)}else{let i=t.preOrderHooks;i!==null&&bi(e,i,0,n)}Ct(n)}var ts=(function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t})(ts||{});function dn(t,e,n,r){let o=D(null);try{let[i,s,a]=t.inputs[n],c=null;(s&ts.SignalBased)!==0&&(c=e[i][Z]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(e,r)),t.setInput!==null?t.setInput(e,c,r,n,i):dp(e,c,i,r)}finally{D(o)}}function uh(t,e,n,r,o){let i=Oe(),s=r&2;try{Ct(-1),s&&e.length>U&&lh(t,e,U,!1);let a=s?O.TemplateUpdateStart:O.TemplateCreateStart;F(a,o,n),n(r,o)}finally{Ct(i);let a=s?O.TemplateUpdateEnd:O.TemplateCreateEnd;F(a,o,n)}}function ns(t,e,n){WI(t,e,n),(n.flags&64)===64&&QI(t,e,n)}function Br(t,e,n=be){let r=e.localNames;if(r!==null){let o=e.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(e,t):t[s];t[o++]=a}}}function BI(t,e,n,r){let i=r.get(Fp,Lp)||n===un.ShadowDom||n===un.ExperimentalIsolatedShadowDom,s=t.selectRootElement(e,i);return $I(s),s}function $I(t){UI(t)}var UI=()=>null;function qI(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function zI(t,e,n,r,o,i){let s=e[E];if(hl(t,s,e,n,r)){st(t)&&GI(e,t.index);return}t.type&3&&(n=qI(n)),dh(t,e,n,r,o,i)}function dh(t,e,n,r,o,i){if(t.type&3){let s=be(t,e);r=i!=null?i(r,t.value||"",n):r,o.setProperty(s,n,r)}else t.type&12}function GI(t,e){let n=Se(e,t);n[b]&16||(n[b]|=64)}function WI(t,e,n){let r=n.directiveStart,o=n.directiveEnd;st(n)&&VI(e,n,t.data[r+n.componentOffset]),t.firstCreatePass||ki(n,e);let i=n.initialInputs;for(let s=r;s<o;s++){let a=t.data[s],c=xr(e,t,s,n);if(Un(c,e),i!==null&&JI(e,s-r,c,a,n,i),Re(a)){let l=Se(n.index,e);l[W]=xr(e,t,s,n)}}}function QI(t,e,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=sf();try{Ct(i);for(let a=r;a<o;a++){let c=t.data[a],l=e[a];pi(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&KI(c,l)}}finally{Ct(-1),pi(s)}}function KI(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function dl(t,e){let n=t.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];Xp(e,i.selectors,!1)&&(r??=[],Re(i)?r.unshift(i):r.push(i))}return r}function ZI(t,e,n,r,o,i){let s=be(t,e);YI(e[H],s,i,t.value,n,r,o)}function YI(t,e,n,r,o,i,s){if(i==null)s?.(i,r||"",o),t.removeAttribute(e,o,n);else{let a=s==null?Dt(i):s(i,r||"",o);t.setAttribute(e,o,a,n)}}function JI(t,e,n,r,o,i){let s=i[e];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],l=s[a+1];dn(r,n,c,l)}}function fl(t,e,n,r,o){let i=U+n,s=e[E],a=o(s,e,t,r,n);e[i]=a,Fn(t,!0);let c=t.type===2;return c?(Zp(e[H],a,t),(Kd()===0||Pn(t))&&Un(a,e),Zd()):Un(a,e),yi()&&(!c||!Qi(t))&&sl(s,e,a,t),t}function pl(t){let e=t;return za()?Ga():(e=e.parent,Fn(e,!1)),e}function XI(t,e){let n=t[Qe];if(!n)return;let r;try{r=n.get(Nt,null)}catch(o){r=null}r?.(e)}function hl(t,e,n,r,o){let i=t.inputs?.[r],s=t.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let l=s[c],u=s[c+1],d=e.data[l];dn(d,n[l],u,o),a=!0}if(i)for(let c of i){let l=n[c],u=e.data[c];dn(u,l,r,o),a=!0}return a}function eD(t,e,n,r,o,i){let s=null,a=null,c=null,l=!1,u=t.directiveToIndex.get(r.type);if(typeof u=="number"?s=u:[s,a,c]=u,a!==null&&c!==null&&t.hostDirectiveInputs?.hasOwnProperty(o)){let d=t.hostDirectiveInputs[o];for(let p=0;p<d.length;p+=2){let f=d[p];if(f>=a&&f<=c){let h=e.data[f],m=d[p+1];dn(h,n[f],m,i),l=!0}else if(f>c)break}}return s!==null&&r.inputs.hasOwnProperty(o)&&(dn(r,n[s],o,i),l=!0),l}function tD(t,e){let n=Se(e,t),r=n[E];nD(r,n);let o=n[ke];o!==null&&n[Xt]===null&&(n[Xt]=jp(o,n[Qe])),F(O.ComponentStart);try{ml(r,n,n[W])}finally{F(O.ComponentEnd,n[W])}}function nD(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}function ml(t,e,n){mi(e);try{let r=t.viewQuery;r!==null&&Ic(1,r,n);let o=t.template;o!==null&&uh(t,e,o,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),e[Ze]?.finishViewCreation(t),t.staticContentQueries&&Vp(t,e),t.staticViewQueries&&Ic(2,t.viewQuery,n);let i=t.components;i!==null&&rD(e,i)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),r}finally{e[b]&=-5,gi()}}function rD(t,e){for(let n=0;n<e.length;n++)tD(t,e[n])}function $r(t,e,n,r){let o=D(null);try{let i=e.tView,a=t[b]&4096?4096:16,c=ll(t,i,n,a,null,e,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=t[e.index];c[bt]=l;let u=t[Ze];return u!==null&&(c[Ze]=u.createEmbeddedView(i)),ml(i,c,n),c}finally{D(o)}}function zn(t,e){return!e||e.firstChild===null||Mp(t)}function kr(t,e,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=e[n.index];i!==null&&r.push(we(i)),Te(i)&&fh(i,r);let s=n.type;if(s&8)kr(t,e,n.child,r);else if(s&32){let a=tl(n,e),c;for(;c=a();)r.push(c)}else if(s&16){let a=ih(e,n);if(Array.isArray(a))r.push(...a);else{let c=ot(e[ue]);kr(c[E],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function fh(t,e){for(let n=z;n<t.length;n++){let r=t[n],o=r[E].firstChild;o!==null&&kr(r[E],r,o,e)}t[St]!==t[ke]&&e.push(t[St])}function ph(t){if(t[tn]!==null){for(let e of t[tn])e.impl.addSequence(e);t[tn].length=0}}var hh=[];function oD(t){return t[ve]??iD(t)}function iD(t){let e=hh.pop()??Object.create(aD);return e.lView=t,e}function sD(t){t.lView[ve]!==t&&(t.lView=null,hh.push(t))}var aD=ee(G({},Ft),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{on(t.lView)},consumerOnSignalRead(){this.lView[ve]=this}});function cD(t){let e=t[ve]??Object.create(lD);return e.lView=t,e}var lD=ee(G({},Ft),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let e=ot(t.lView);for(;e&&!mh(e[E]);)e=ot(e);e&&Fa(e)},consumerOnSignalRead(){this.lView[ve]=this}});function mh(t){return t.type!==2}function gh(t){if(t[Et]===null)return;let e=!0;for(;e;){let n=!1;for(let r of t[Et])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));e=n&&!!(t[b]&8192)}}var uD=100;function yh(t,e=0){let r=t[Ke].rendererFactory,o=!1;o||r.begin?.();try{dD(t,e)}finally{o||r.end?.()}}function dD(t,e){let n=Wa();try{mr(!0),Ac(t,e);let r=0;for(;Dr(t);){if(r===uD)throw new g(103,!1);r++,Ac(t,1)}}finally{mr(n)}}function fD(t,e,n,r){if(rn(e))return;let o=e[b],i=!1,s=!1;mi(e);let a=!0,c=null,l=null;i||(mh(t)?(l=oD(e),c=pt(l)):co()===null?(a=!1,l=cD(e),c=pt(l)):e[ve]&&(ht(e[ve]),e[ve]=null));try{La(e),nf(t.bindingStartIndex),n!==null&&uh(t,e,n,2,r);let u=(o&3)===3;if(!i)if(u){let f=t.preOrderCheckHooks;f!==null&&wi(e,f,null)}else{let f=t.preOrderHooks;f!==null&&bi(e,f,0,null),rc(e,0)}if(s||pD(e),gh(e),vh(e,0),t.contentQueries!==null&&Vp(t,e),!i)if(u){let f=t.contentCheckHooks;f!==null&&wi(e,f)}else{let f=t.contentHooks;f!==null&&bi(e,f,1),rc(e,1)}mD(t,e);let d=t.components;d!==null&&Ih(e,d,0);let p=t.viewQuery;if(p!==null&&Ic(2,p,r),!i)if(u){let f=t.viewCheckHooks;f!==null&&wi(e,f)}else{let f=t.viewHooks;f!==null&&bi(e,f,2),rc(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[ai]){for(let f of e[ai])f();e[ai]=null}i||(ph(e),e[b]&=-73)}catch(u){throw i||on(e),u}finally{l!==null&&(Vt(l,c),a&&sD(l)),gi()}}function vh(t,e){for(let n=xp(t);n!==null;n=Ap(n))for(let r=z;r<n.length;r++){let o=n[r];Eh(o,e)}}function pD(t){for(let e=xp(t);e!==null;e=Ap(e)){if(!(e[b]&2))continue;let n=e[nn];for(let r=0;r<n.length;r++){let o=n[r];Fa(o)}}}function hD(t,e,n){F(O.ComponentStart);let r=Se(e,t);try{Eh(r,n)}finally{F(O.ComponentEnd,r[W])}}function Eh(t,e){li(t)&&Ac(t,e)}function Ac(t,e){let r=t[E],o=t[b],i=t[ve],s=!!(e===0&&o&16);if(s||=!!(o&64&&e===0),s||=!!(o&1024),s||=!!(i?.dirty&&vn(i)),s||=!1,i&&(i.dirty=!1),t[b]&=-9217,s)fD(r,t,r.template,t[W]);else if(o&8192){let a=D(null);try{gh(t),vh(t,1);let c=r.components;c!==null&&Ih(t,c,1),ph(t)}finally{D(a)}}}function Ih(t,e,n){for(let r=0;r<e.length;r++)hD(t,e[r],n)}function mD(t,e){let n=t.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)Ct(~o);else{let i=o,s=n[++r],a=n[++r];of(s,i);let c=e[i];F(O.HostBindingsUpdateStart,c);try{a(2,c)}finally{F(O.HostBindingsUpdateEnd,c)}}}}finally{Ct(-1)}}function gl(t,e){let n=Wa()?64:1088;for(t[Ke].changeDetectionScheduler?.notify(e);t;){t[b]|=n;let r=ot(t);if(Ln(t)&&!r)return t;t=r}return null}function Dh(t,e,n,r){return[t,!0,0,e,null,r,null,n,null,null]}function _h(t,e){let n=z+e;if(n<t.length)return t[n]}function Ur(t,e,n,r=!0){let o=e[E];if(gD(o,e,t,n),r){let s=xc(n,t),a=e[H],c=a.parentNode(t[St]);c!==null&&CI(o,t[ie],a,e,c,s)}let i=e[Xt];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function Th(t,e){let n=Rr(t,e);return n!==void 0&&Xi(n[E],n),n}function Rr(t,e){if(t.length<=z)return;let n=z+e,r=t[n];if(r){let o=r[bt];o!==null&&o!==t&&il(o,r),e>0&&(t[n-1][_e]=r[_e]);let i=vr(t,z+e);SI(r[E],r);let s=i[Ze];s!==null&&s.detachView(i[E]),r[J]=null,r[_e]=null,r[b]&=-129}return r}function gD(t,e,n,r){let o=z+r,i=n.length;r>0&&(n[o-1][_e]=e),r<i-z?(e[_e]=n[o],Da(n,z+r,e)):(n.push(e),e[_e]=null),e[J]=n;let s=e[bt];s!==null&&n!==s&&wh(s,e);let a=e[Ze];a!==null&&a.insertView(t),ui(e),e[b]|=128}function wh(t,e){let n=t[nn],r=e[J];if(it(r))t[b]|=2;else{let o=r[J][ue];e[ue]!==o&&(t[b]|=2)}n===null?t[nn]=[e]:n.push(e)}var At=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let e=this._lView,n=e[E];return kr(n,e,n.firstChild,[])}constructor(e,n){this._lView=e,this._cdRefInjectingView=n}get context(){return this._lView[W]}set context(e){this._lView[W]=e}get destroyed(){return rn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[J];if(Te(e)){let n=e[Ir],r=n?n.indexOf(this):-1;r>-1&&(Rr(e,r),vr(n,r))}this._attachedToViewContainer=!1}Xi(this._lView[E],this._lView)}onDestroy(e){di(this._lView,e)}markForCheck(){gl(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[b]&=-129}reattach(){ui(this._lView),this._lView[b]|=128}detectChanges(){this._lView[b]|=1024,yh(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new g(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Ln(this._lView),n=this._lView[bt];n!==null&&!e&&il(n,this._lView),nh(this._lView[E],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new g(902,!1);this._appRef=e;let n=Ln(this._lView),r=this._lView[bt];r!==null&&!n&&wh(r,this._lView),ui(this._lView)}};var Or=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=yD;constructor(n,r,o){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,o){let i=$r(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new At(i)}}return t})();function yD(){return rs(Q(),w())}function rs(t,e){return t.type&4?new Or(e,t,Zn(t,e)):null}function Yn(t,e,n,r,o){let i=t.data[e];if(i===null)i=vD(t,e,n,r,o),rf()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Xd();i.injectorIndex=s===null?-1:s.injectorIndex}return Fn(i,!0),i}function vD(t,e,n,r,o){let i=qa(),s=za(),a=s?i:i&&i.parent,c=t.data[e]=ID(t,a,n,e,r,o);return ED(t,c,i,s),c}function ED(t,e,n,r){t.firstChild===null&&(t.firstChild=e),n!==null&&(r?n.child==null&&e.parent!==null&&(n.child=e):n.next===null&&(n.next=e,e.prev=n))}function ID(t,e,n,r,o,i){let s=e?e.injectorIndex:-1,a=0;return Ba()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,namespace:Ya(),attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function DD(t){let e=t[xa]??[],r=t[J][H],o=[];for(let i of e)i.data[Pp]!==void 0?o.push(i):_D(i,r);t[xa]=o}function _D(t,e){let n=0,r=t.firstChild;if(r){let o=t.data[Op];for(;n<o;){let i=r.nextSibling;Kp(e,r,!1),r=i,n++}}}var TD=()=>null,wD=()=>null;function Li(t,e){return TD(t,e)}function bh(t,e,n){return wD(t,e,n)}var Sh=class{},Pr=class{},bD=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>SD()}return t})();function SD(){let t=w(),e=Q(),n=Se(e.index,t);return(it(n)?n:t)[H]}var Ch=(()=>{class t{static \u0275prov=pe({token:t,providedIn:"root",factory:()=>null})}return t})();function Mh(t){return t.debugInfo?.className||t.type.name||null}var Ci={},Fi=class{injector;parentInjector;constructor(e,n){this.injector=e,this.parentInjector=n}get(e,n,r){let o=this.injector.get(e,Ci,r);return o!==Ci||n===Ci?o:this.parentInjector.get(e,n,r)}};function yl(t){return xh(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function Nh(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{let n=t[Symbol.iterator](),r;for(;!(r=n.next()).done;)e(r.value)}}function xh(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function CD(t,e,n){return t[e]=n}function Fe(t,e,n){if(n===se)return!1;let r=t[e];return Object.is(r,n)?!1:(t[e]=n,!0)}function vl(t,e,n,r){let o=Fe(t,e,n);return Fe(t,e+1,r)||o}function MD(t,e,n,r,o){let i=vl(t,e,n,r);return Fe(t,e+2,o)||i}function cn(t,e,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&yE(o,i);let s=st(t)?Se(t.index,e):e;gl(s,5);let a=e[W],c=zf(e,a,n,o),l=r.__ngNextListenerFn__;for(;l;)c=zf(e,a,l,o)&&c,l=l.__ngNextListenerFn__;return c}}function zf(t,e,n,r){let o=D(null);try{return F(O.OutputStart,e,n),n(r)!==!1}catch(i){return XI(t,i),!1}finally{F(O.OutputEnd,e,n),D(o)}}function El(t,e,n,r,o,i,s,a){let c=Pn(t),l=!1,u=null;if(!r&&c&&(u=xD(e,n,i,t.index)),u!==null){let d=u.__ngLastListenerFn__||u;d.__ngNextListenerFn__=s,u.__ngLastListenerFn__=s,l=!0}else{let d=be(t,n),p=r?r(d):d;EE(n,p,i,a),r||(a.__ngNativeEl__=d);let f=o.listen(p,i,a);if(!ND(i)){let h=r?m=>r(we(m[t.index])):t.index;Ah(h,e,n,i,a,f,!1)}}return l}function ND(t){return t.startsWith("animation")||t.startsWith("transition")}function xD(t,e,n,r){let o=t.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=e[Rn],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Ah(t,e,n,r,o,i,s){let a=e.firstCreatePass?Va(e):null,c=ja(n),l=c.length;c.push(o,i),a&&a.push(r,t,l,(l+1)*(s?-1:1))}function Gf(t,e,n,r,o){let i=null,s=null,a=null,c=!1,l=t.directiveToIndex.get(n.type);if(typeof l=="number"?i=l:[i,s,a]=l,s!==null&&a!==null&&t.hostDirectiveOutputs?.hasOwnProperty(r)){let u=t.hostDirectiveOutputs[r];for(let d=0;d<u.length;d+=2){let p=u[d];if(p>=s&&p<=a)c=!0,ji(t,e,p,u[d+1],r,o);else if(p>a)break}}return n.outputs.hasOwnProperty(r)&&(c=!0,ji(t,e,i,r,r,o)),c}function ji(t,e,n,r,o,i){let s=e[n],a=e[E],l=a.data[n].outputs[r],d=s[l].subscribe(i);Ah(t.index,a,e,o,i,d,!0)}function AD(){kD()}function kD(){let t=w(),e=B(),n=Q();if(e.firstCreatePass&&PD(e,n),n.controlDirectiveIndex===-1)return;lt("NgSignalForms");let r=t[n.controlDirectiveIndex];e.data[n.controlDirectiveIndex].controlDef.create(r,new Vi(t,e,n))}function RD(){OD()}function OD(){let t=w(),e=B(),n=wr();if(n.controlDirectiveIndex===-1)return;let r=e.data[n.controlDirectiveIndex].controlDef,o=t[n.controlDirectiveIndex];r.update(o,new Vi(t,e,n))}var Vi=class{lView;tView;tNode;hasPassThrough;constructor(e,n,r){this.lView=e,this.tView=n,this.tNode=r,this.hasPassThrough=!!(r.flags&4096)}get customControl(){return this.tNode.customControlIndex!==-1?this.lView[this.tNode.customControlIndex]:void 0}get nativeElement(){return be(this.tNode,this.lView)}get descriptor(){return`<${this.tNode.value}>`}listenToCustomControlOutput(e,n){let r=this.tView.data[this.tNode.customControlIndex];Gf(this.tNode,this.lView,r,e,cn(this.tNode,this.lView,n))}listenToCustomControlModel(e){let n=this.tNode.flags&1024?"valueChange":"checkedChange",r=this.tView.data[this.tNode.customControlIndex];Gf(this.tNode,this.lView,r,n,cn(this.tNode,this.lView,e))}listenToDom(e,n){El(this.tNode,this.tView,this.lView,void 0,this.lView[H],e,n,cn(this.tNode,this.lView,n))}setInputOnDirectives(e,n){let r=this.tNode.inputs?.[e],o=this.tNode.hostDirectiveInputs?.[e];if(!r&&!o)return!1;let i=!1;if(r)for(let s of r){if(s===this.tNode.controlDirectiveIndex)continue;let a=this.tView.data[s],c=this.lView[s];dn(a,c,e,n),i=!0}if(o)for(let s=0;s<o.length;s+=2){let a=o[s];if(a===this.tNode.controlDirectiveIndex)continue;let c=o[s+1],l=this.tView.data[a],u=this.lView[a];dn(l,u,c,n),i=!0}return i}setCustomControlModelInput(e){let n=this.tView.data[this.tNode.customControlIndex],r=this.tNode.flags&1024?"value":"checked";eD(this.tNode,this.tView,this.lView,n,r,e)}customControlHasInput(e){if(this.tNode.customControlIndex===-1)return!1;let n=this.tView.data[this.tNode.customControlIndex];return(n.signalFormsInputPresence??=this._buildCustomControlInputCache(n))[e]===!0}_buildCustomControlInputCache(e){let n={};for(let r in e.inputs)n[r]=!0;if(e.hostDirectives!==null){let r=[...e.hostDirectives];for(;r.length>0;){let o=r.shift();if(typeof o!="function"){for(let s in o.inputs)n[o.inputs[s]]=!0;let i=Wf(o.directive);i!==null&&r.push(...i);continue}for(let i of o()){if(typeof i=="function")continue;if(i.inputs)for(let a=0;a<i.inputs.length;a+=2){let c=i.inputs[a+1]||i.inputs[a];n[c]=!0}let s=Wf(i.directive);s!==null&&r.push(...s)}}}return n}};function Wf(t){return typeof t=="function"&&"\u0275dir"in t?t.\u0275dir.hostDirectives??null:null}function PD(t,e,n){for(let o=e.directiveStart;o<e.directiveEnd;o++)if(t.data[o].controlDef){e.controlDirectiveIndex=o;break}if(e.controlDirectiveIndex===-1)return;let r=t.data[e.controlDirectiveIndex].controlDef;if(r.passThroughInput&&(e.inputs?.[r.passThroughInput]?.length??0)>1){e.flags|=4096;return}LD(t,e)}function LD(t,e){for(let n=e.directiveStart;n<e.directiveEnd;n++){let r=t.data[n];if(!(e.directiveToIndex&&!e.directiveToIndex.has(r.type))){if(Qf(r,"value")){e.flags|=1024,e.customControlIndex=n;return}if(Qf(r,"checked")){e.flags|=2048,e.customControlIndex=n;return}}}if(e.hostDirectiveInputs!==null&&e.hostDirectiveOutputs!==null&&e.directiveToIndex!==null){let n=(r,o)=>{let i=e.hostDirectiveInputs[r],s=e.hostDirectiveOutputs[r+"Change"];if(!i||!s)return!1;for(let a=0;a<i.length;a+=2){let c=i[a];for(let l=0;l<s.length;l+=2){let u=s[l];if(c===u)for(let d of e.directiveToIndex.values()){if(!Array.isArray(d))continue;let[p,f,h]=d;if(c>=f&&c<=h)return e.flags|=o,e.customControlIndex=p,!0}}}return!1};if(n("value",1024)||n("checked",2048))return}}function Qf(t,e){return FD(t,e)&&jD(t,e+"Change")}function FD(t,e){return e in t.inputs}function jD(t,e){return e in t.outputs}var kc=Symbol("BINDING");var kh=new P("");function Hi(t,e,n){let r=n?t.styles:null,o=n?t.classes:null,i=0;if(e!==null)for(let s=0;s<e.length;s++){let a=e[s];if(typeof a=="number")i=a;else if(i==1)o=Yo(o,a);else if(i==2){let c=a,l=e[++s];r=Yo(r,c+": "+l+";")}}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=o:t.classesWithoutHost=o}function qr(t,e=0){let n=w();if(n===null)return Ge(t,e);let r=Q();return Tp(r,n,Y(t),e)}function VD(){let t="invalid";throw new Error(t)}function Rh(t,e,n,r,o){let i=r===null?null:{"":-1},s=o(t,n);if(s!==null){let a=s,c=null,l=null;for(let u of s)if(u.resolveHostDirectives!==null){[a,c,l]=u.resolveHostDirectives(s);break}$D(t,e,n,a,i,c,l)}i!==null&&r!==null&&HD(n,r,i)}function HD(t,e,n){let r=t.localNames=[];for(let o=0;o<e.length;o+=2){let i=n[e[o+1]];if(i==null)throw new g(-301,!1);r.push(e[o],i)}}function BD(t,e,n){e.componentOffset=n,(t.components??=[]).push(e.index)}function $D(t,e,n,r,o,i,s){let a=r.length,c=null;for(let p=0;p<a;p++){let f=r[p];c===null&&Re(f)&&(c=f,BD(t,n,p)),gc(ki(n,e),t,f.type)}QD(n,t.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let p=0;p<a;p++){let f=r[p];f.providersResolver&&f.providersResolver(f)}let l=!1,u=!1,d=ch(t,e,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=$n(n.mergedAttrs,f.hostAttrs),qD(t,n,e,d,f),WD(d,f,o),s!==null&&s.has(f)){let[m,v]=s.get(f);n.directiveToIndex.set(f.type,[d,m+n.directiveStart,v+n.directiveStart])}else(i===null||!i.has(f))&&n.directiveToIndex.set(f.type,d);f.contentQueries!==null&&(n.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(n.flags|=64);let h=f.type.prototype;!l&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((t.preOrderHooks??=[]).push(n.index),l=!0),!u&&(h.ngOnChanges||h.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(n.index),u=!0),d++}UD(t,n,i)}function UD(t,e,n){for(let r=e.directiveStart;r<e.directiveEnd;r++){let o=t.data[r];if(n===null||!n.has(o))Kf(0,e,o,r),Kf(1,e,o,r),Yf(e,r,!1);else{let i=n.get(o);Zf(0,e,i,r),Zf(1,e,i,r),Yf(e,r,!0)}}}function Kf(t,e,n,r){let o=t===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;t===0?s=e.inputs??={}:s=e.outputs??={},s[i]??=[],s[i].push(r),Oh(e,i)}}function Zf(t,e,n,r){let o=t===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;t===0?a=e.hostDirectiveInputs??={}:a=e.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Oh(e,s)}}function Oh(t,e){e==="class"?t.flags|=8:e==="style"&&(t.flags|=16)}function Yf(t,e,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=t;if(r===null||!n&&o===null||n&&i===null||el(t)){t.initialInputs??=[],t.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let l=o[c];for(let u of l)if(u===e){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let l=i[c];for(let u=0;u<l.length;u+=2)if(l[u]===e){s??=[],s.push(l[u+1],r[a+1]);break}}a+=2}t.initialInputs??=[],t.initialInputs.push(s)}function qD(t,e,n,r,o){t.data[r]=o;let i=o.factory||(o.factory=vt(o.type,!0)),s=new ln(i,Re(o),qr,null);t.blueprint[r]=s,n[r]=s,zD(t,e,r,ch(t,n,o.hostVars,se),o)}function zD(t,e,n,r,o){let i=o.hostBindings;if(i){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~e.index;GD(s)!=a&&s.push(a),s.push(n,r,i)}}function GD(t){let e=t.length;for(;e>0;){let n=t[--e];if(typeof n=="number"&&n<0)return n}return 0}function WD(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;Re(e)&&(n[""]=t)}}function QD(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Il(t,e,n,r,o,i,s,a){let c=e[E],l=c.consts,u=Ee(l,s),d=Yn(c,t,n,r,u);return i&&Rh(c,e,d,Ee(l,a),o),d.mergedAttrs=$n(d.mergedAttrs,d.attrs),d.attrs!==null&&Hi(d,d.attrs,!1),d.mergedAttrs!==null&&Hi(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function Dl(t,e){hp(t,e),Aa(e)&&t.queries.elementEnd(e)}function KD(t,e,n,r,o,i){let s=e.consts,a=Ee(s,o),c=Yn(e,t,n,r,a);if(c.mergedAttrs=$n(c.mergedAttrs,c.attrs),i!=null){let l=Ee(s,i);c.localNames=[];for(let u=0;u<l.length;u+=2)c.localNames.push(l[u],-1)}return c.attrs!==null&&Hi(c,c.attrs,!1),c.mergedAttrs!==null&&Hi(c,c.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,c),c}var Ph=typeof ShadowRoot<"u",ZD=typeof Document<"u";function YD(t){return Object.keys(t).map(e=>{let[n,r,o]=t[e],i={propName:n,templateName:e,isSignal:(r&ts.SignalBased)!==0};return o&&(i.transform=o),i})}function JD(t){return Object.keys(t).map(e=>({propName:t[e],templateName:e}))}function XD(t,e,n){let r=e instanceof De?e:e?.injector;return r&&t.getStandaloneInjector!==null&&(r=t.getStandaloneInjector(r)||r),r?new Fi(n,r):n}function e_(t){let e=t.get(Pr,null);if(e===null)throw new g(407,!1);let n=t.get(Ch,null),r=t.get(Ae,null),o=t.get(pn,null,{optional:!0});return{rendererFactory:e,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1,tracingService:o}}function t_(t,e){let n=Lh(t);return Wp(e,n,n==="svg"?ka:n==="math"?Ud:null)}function n_(t){if(t?.toLowerCase()==="script")throw new g(905,!1)}function Lh(t){return(t.selectors[0][0]||"div").toLowerCase()}var Gn=class{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=YD(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=JD(this.componentDef.outputs),this.cachedOutputs}constructor(e,n){this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=dI(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!n}create(e,n,r,o,i,s){F(O.DynamicComponentStart);let a=D(null);try{let c=this.componentDef,l=XD(c,o||this.ngModule,e),u=e_(l),d=u.tracingService;return d&&d.componentCreate?d.componentCreate(Mh(c),()=>this.createComponentRef(u,l,n,r,i,s)):this.createComponentRef(u,l,n,r,i,s)}finally{D(a)}}createComponentRef(e,n,r,o,i,s){let a=this.componentDef,c=r_(o,a,s,i),l=e.rendererFactory.createRenderer(null,a),u=o?BI(l,o,a.encapsulation,n):t_(a,l);n_(u?.tagName);let d=n.get(kh,null),p=o_(u,()=>n.get(vi,null)??Rp());d&&d.addHost(p);let f=s?.some(Jf)||i?.some(v=>typeof v!="function"&&v.bindings.some(Jf)),h=ll(null,c,null,512|ah(a),null,null,e,l,n,null,jp(u,n,!0));d&&Ph&&p instanceof ShadowRoot&&di(h,()=>{d.removeHost(p)}),h[U]=u,mi(h);let m=null;try{let v=Il(U,h,2,"#host",()=>c.directiveRegistry,!0,0);Zp(l,u,v),Un(u,h),ns(c,h,v),Jc(c,v,h),Dl(c,v),r!==void 0&&s_(v,this.ngContentSelectors,r),m=Se(v.index,h),h[W]=m[W],ml(c,h,null)}catch(v){throw m!==null&&vc(m),vc(h),v}finally{F(O.DynamicComponentEnd),gi()}return new Bi(this.componentType,h,!!f)}};function r_(t,e,n,r){let o=t?["ng-version","22.0.5"]:fI(e.selectors[0]),i=null,s=null,a=0;if(n)for(let u of n)a+=u[kc].requiredVars,u.create&&(u.targetIdx=0,(i??=[]).push(u)),u.update&&(u.targetIdx=0,(s??=[]).push(u));if(r)for(let u=0;u<r.length;u++){let d=r[u];if(typeof d!="function")for(let p of d.bindings){a+=p[kc].requiredVars;let f=u+1;p.create&&(p.targetIdx=f,(i??=[]).push(p)),p.update&&(p.targetIdx=f,(s??=[]).push(p))}}let c=[e];if(r)for(let u of r){let d=typeof u=="function"?u:u.type,p=ti(d);c.push(p)}return cl(0,null,i_(i,s),1,a,c,null,null,null,[o],null)}function o_(t,e){let n=t.getRootNode?.();return ZD&&n instanceof Document?n.head:n&&Ph&&n instanceof ShadowRoot?n:e().head}function i_(t,e){return!t&&!e?null:n=>{if(n&1&&t)for(let r of t)r.create();if(n&2&&e)for(let r of e)r.update()}}function Jf(t){let e=t[kc].kind;return e==="input"||e==="twoWay"}var Bi=class extends Sh{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=ci(n[E],U),this.location=Zn(this._tNode,n),this.instance=Se(this._tNode.index,n)[W],this.hostView=this.changeDetectorRef=new At(n,void 0),this.componentType=e}setInput(e,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),n))return;let o=this._rootLView,i=hl(r,o[E],o,e,n);this.previousInputValues.set(e,n);let s=Se(r.index,o);gl(s,1)}get injector(){return new xt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function s_(t,e,n){let r=t.projection=[];for(let o=0;o<e.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var os=(()=>{class t{static __NG_ELEMENT_ID__=a_}return t})();function a_(){let t=Q();return Fh(t,w())}var Rc=class t extends os{_lContainer;_hostTNode;_hostLView;constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return Zn(this._hostTNode,this._hostLView)}get injector(){return new xt(this._hostTNode,this._hostLView)}get parentInjector(){let e=Zc(this._hostTNode,this._hostLView);if(yp(e)){let n=xi(e,this._hostLView),r=Ni(e),o=n[E].data[r+8];return new xt(o,n)}else return new xt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let n=Xf(this._lContainer);return n!==null&&n[e]||null}get length(){return this._lContainer.length-z}createEmbeddedView(e,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Li(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,zn(this._hostTNode,s)),a}createComponent(e,n,r,o,i,s,a){let c,l=n||{};c=l.index,r=l.injector,o=l.projectableNodes,i=l.environmentInjector||l.ngModuleRef,s=l.directives,a=l.bindings;let u=new Gn(It(e)),d=r||this.parentInjector;if(!i&&u.ngModule==null){let _=this.parentInjector.get(De,null);_&&(i=_)}let p=It(u.componentType??{}),f=Li(this._lContainer,p?.id??null),h=f?.firstChild??null,m=u.create(d,o,h,i,s,a);return this.insertImpl(m.hostView,c,zn(this._hostTNode,f)),m}insert(e,n){return this.insertImpl(e,n,!0)}insertImpl(e,n,r){let o=e._lView;if(zd(o)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=o[J],l=new t(c,c[ie],c[J]);l.detach(l.indexOf(e))}}let i=this._adjustIndex(n),s=this._lContainer;return Ur(s,o,i,r),e.attachToViewContainerRef(),Da(sc(s),i,e),e}move(e,n){return this.insert(e,n)}indexOf(e){let n=Xf(this._lContainer);return n!==null?n.indexOf(e):-1}remove(e){let n=this._adjustIndex(e,-1),r=Rr(this._lContainer,n);r&&(vr(sc(this._lContainer),n),Xi(r[E],r))}detach(e){let n=this._adjustIndex(e,-1),r=Rr(this._lContainer,n);return r&&vr(sc(this._lContainer),n)!=null?new At(r):null}_adjustIndex(e,n=0){return e??this.length+n}};function Xf(t){return t[Ir]}function sc(t){return t[Ir]||(t[Ir]=[])}function Fh(t,e){let n,r=e[t.index];return Te(r)?n=r:(n=Dh(r,e,null,t),e[t.index]=n,ul(e,n)),l_(n,e,t,r),new Rc(n,t,e)}function c_(t,e){let n=t[H],r=n.createComment(""),o=be(e,t),i=n.parentNode(o);return Oi(n,i,r,n.nextSibling(o),!1),r}var l_=f_,u_=()=>!1;function d_(t,e,n){return u_(t,e,n)}function f_(t,e,n,r){if(t[St])return;let o;n.type&8?o=we(r):o=c_(e,n),t[St]=o}var Oc=class t{queryList;matches=null;constructor(e){this.queryList=e}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Pc=class t{queries;constructor(e=[]){this.queries=e}createEmbeddedView(e){let n=e.queries;if(n!==null){let r=e.contentQueries!==null?e.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new t(o)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}finishViewCreation(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let n=0;n<this.queries.length;n++)Tl(e,n).matches!==null&&this.queries[n].setDirty()}},$i=class{flags;read;predicate;constructor(e,n,r=null){this.flags=n,this.read=r,typeof e=="string"?this.predicate=y_(e):this.predicate=e}},Lc=class t{queries;constructor(e=[]){this.queries=e}elementStart(e,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(e,n)}elementEnd(e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(e)}embeddedTView(e){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(e,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i])}return n!==null?new t(n):null}template(e,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(e,n)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}},Fc=class t{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(e,n=-1){this.metadata=e,this._declarationNodeIndex=n}elementStart(e,n){this.isApplyingToNode(n)&&this.matchTNode(e,n)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,n){this.elementStart(e,n)}embeddedTView(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new t(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=e.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(e,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(e,n,p_(n,i)),this.matchTNodeWithReadOption(e,n,Si(n,e,i,!1,!1))}else r===Or?n.type&4&&this.matchTNodeWithReadOption(e,n,-1):this.matchTNodeWithReadOption(e,n,Si(n,e,r,!1,!1))}matchTNodeWithReadOption(e,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===Vr||o===os||o===Or&&n.type&4)this.addMatch(n.index,-2);else{let i=Si(n,e,o,!1,!1);i!==null&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(e,n){this.matches===null?this.matches=[e,n]:this.matches.push(e,n)}};function p_(t,e){let n=t.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1]}return null}function h_(t,e){return t.type&11?Zn(t,e):t.type&4?rs(t,e):null}function m_(t,e,n,r){return n===-1?h_(e,t):n===-2?g_(t,e,r):xr(t,t[E],n,e)}function g_(t,e,n){if(n===Vr)return Zn(e,t);if(n===Or)return rs(e,t);if(n===os)return Fh(e,t)}function jh(t,e,n,r){let o=e[Ze].queries[r];if(o.matches===null){let i=t.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let l=s[c];if(l<0)a.push(null);else{let u=i[l];a.push(m_(e,u,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function jc(t,e,n,r){let o=t.queries.getByIndex(n),i=o.matches;if(i!==null){let s=jh(t,e,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else{let l=i[a+1],u=e[-c];for(let d=z;d<u.length;d++){let p=u[d];p[bt]===p[J]&&jc(p[E],p,l,r)}if(u[nn]!==null){let d=u[nn];for(let p=0;p<d.length;p++){let f=d[p];jc(f[E],f,l,r)}}}}}return r}function _l(t,e){return t[Ze].queries[e].queryList}function Vh(t,e,n){let r=new Ri((n&4)===4);return Qd(t,e,r,r.destroy),(e[Ze]??=new Pc).queries.push(new Oc(r))-1}function Hh(t,e,n){let r=B();return r.firstCreatePass&&($h(r,new $i(t,e,n),-1),(e&2)===2&&(r.staticViewQueries=!0)),Vh(r,w(),e)}function Bh(t,e,n,r){let o=B();if(o.firstCreatePass){let i=Q();$h(o,new $i(e,n,r),i.index),v_(o,t),(n&2)===2&&(o.staticContentQueries=!0)}return Vh(o,w(),n)}function y_(t){return t.split(",").map(e=>e.trim())}function $h(t,e,n){t.queries===null&&(t.queries=new Lc),t.queries.track(new Fc(e,n))}function v_(t,e){let n=t.contentQueries||(t.contentQueries=[]),r=n.length?n[n.length-1]:-1;e!==r&&n.push(t.queries.length-1,e)}function Tl(t,e){return t.queries.getByIndex(e)}function Uh(t,e){let n=t[E],r=Tl(n,e);return r.crossesNgTemplate?jc(n,t,e,[]):jh(n,t,r,e)}function qh(t,e,n){let r,o=or(()=>{r._dirtyCounter();let i=E_(r,t);if(e&&i===void 0)throw new g(-951,!1);return i});return r=o[Z],r._dirtyCounter=nc(0),r._flatValue=void 0,o}function wl(t){return qh(!0,!1,t)}function bl(t){return qh(!0,!0,t)}function zh(t,e){let n=t[Z];n._lView=w(),n._queryIndex=e,n._queryList=_l(n._lView,e),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1))}function E_(t,e){let n=t._lView,r=t._queryIndex;if(n===void 0||r===void 0||n[b]&4)return e?void 0:oe;let o=_l(n,r),i=Uh(n,r);return o.reset(i,Cp),e?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}function Sl(t){return!!t&&typeof t.then=="function"}function Gh(t){return!!t&&typeof t.subscribe=="function"}var Ui=class{};var Lr=class extends Ui{injector;instance=null;constructor(e){super();let n=new Kt([...e.providers,{provide:Ui,useValue:this}],e.parent||kn(),e.debugName,new Set(["environment"]));this.injector=n,e.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Wh(t,e,n=null){return new Lr({providers:t,parent:e,debugName:n,runEnvironmentInitializers:!0}).injector}var I_=(()=>{class t{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=wa(!1,n.type),o=r.length>0?Wh([r],this._injector,""):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=pe({token:t,providedIn:"environment",factory:()=>new t(Ge(De))})}return t})();function D_(t){return jr(()=>{let e=Qh(t),n=ee(G({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection!==Yc.Eager,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:e.standalone?o=>o.get(I_).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||un.Emulated,styles:t.styles||oe,_:null,schemas:t.schemas||null,tView:null,id:""});e.standalone&&lt("NgStandalone"),Kh(n);let r=t.dependencies;return n.directiveDefs=ep(r,__),n.pipeDefs=ep(r,Nd),n.id=M_(n),n})}function __(t){return It(t)||ti(t)}function T_(t){return jr(()=>({type:t.type,bootstrap:t.bootstrap||oe,declarations:t.declarations||oe,imports:t.imports||oe,exports:t.exports||oe,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function w_(t,e){if(t==null)return Tt;let n={};for(let r in t)if(t.hasOwnProperty(r)){let o=t[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=ts.None,c=null),n[i]=[r,a,c],e[i]=s}return n}function b_(t){if(t==null)return Tt;let e={};for(let n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function S_(t){return jr(()=>{let e=Qh(t);return Kh(e),e})}function C_(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 Qh(t){let e={};return{type:t.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputConfig:t.inputs||Tt,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||oe,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:w_(t.inputs,e),outputs:b_(t.outputs),debugInfo:null}}function Kh(t){t.features?.forEach(e=>e(t))}function ep(t,e){return t?()=>{let n=typeof t=="function"?t():t,r=[];for(let o of n){let i=e(o);i!==null&&r.push(i)}return r}:null}function M_(t){let e=0,n=typeof t.consts=="function"?"":t.consts,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,n,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];for(let i of r.join("|"))e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}var Zh=new P("");var Cl=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=S(Zh,{optional:!0})??[];injector=S(We);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=si(this.injector,o);if(Sl(i))n.push(i);else if(Gh(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Kn({token:t,factory:t.\u0275fac})}return t})();function N_(t){return e=>{e.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r)},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r)},passThroughInput:t}}}function x_(t){let e=n=>{let r=Array.isArray(t);n.hostDirectives===null?(n.resolveHostDirectives=A_,n.hostDirectives=r?t.map(Vc):[t]):r?n.hostDirectives.unshift(...t.map(Vc)):n.hostDirectives.unshift(t)};return e.ngInherit=!0,e}function A_(t){let e=[],n=!1,r=null,o=null;for(let i=0;i<t.length;i++){let s=t[i];if(s.hostDirectives!==null){let a=e.length;r??=new Map,o??=new Map,Yh(s,e,r,t),o.set(s,[a,e.length-1])}i===0&&Re(s)&&(n=!0,e.push(s))}for(let i=n?1:0;i<t.length;i++)e.push(t[i]);return r!==null&&r.forEach((i,s)=>{k_(s.declaredInputs,i.inputs)}),[e,r,o]}function Yh(t,e,n,r){if(t.hostDirectives!==null)for(let o of t.hostDirectives)if(typeof o=="function"){let i=o();for(let s of i)tp(Vc(s),e,n,r)}else tp(o,e,n,r)}function tp(t,e,n,r){let o=ti(t.directive);if(Yh(o,e,n,r),n.has(o)){let i=n.get(o);np(i,t.inputs,"input"),np(i,t.outputs,"output")}else r.includes(o)||(n.set(o,t),e.push(o))}function np(t,e,n){let r=n==="input"?t.inputs:t.outputs;Object.keys(e).forEach(o=>{let i=e[o];(!r.hasOwnProperty(o)||r[o]===i)&&(r[o]=i)})}function Vc(t){return typeof t=="function"?{directive:Y(t),inputs:{},outputs:{}}:{directive:Y(t.directive),inputs:rp(t.inputs),outputs:rp(t.outputs)}}function rp(t){let e={};if(t!==void 0&&t.length>0)for(let n=0;n<t.length;n+=2)e[t[n]]=t[n+1];return e}function k_(t,e){for(let n in e)if(e.hasOwnProperty(n)){let r=e[n],o=t[n];t[r]=o}}function R_(t){return Object.getPrototypeOf(t.prototype).constructor}function Jh(t){let e=R_(t.type),n=!0,r=[t];for(;e;){let o;if(Re(t))o=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new g(903,!1);o=e.\u0275dir}if(o){if(n){r.push(o);let s=t;s.inputs=ac(t.inputs),s.declaredInputs=ac(t.declaredInputs),s.outputs=ac(t.outputs);let a=o.hostBindings;a&&j_(t,a);let c=o.viewQuery,l=o.contentQueries;if(c&&L_(t,c),l&&F_(t,l),O_(t,o),Cd(t.outputs,o.outputs),Re(o)&&o.data.animation){let u=t.data;u.animation=(u.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(t),a===Jh&&(n=!1)}}e=Object.getPrototypeOf(e)}P_(r)}function O_(t,e){for(let n in e.inputs){if(!e.inputs.hasOwnProperty(n)||t.inputs.hasOwnProperty(n))continue;let r=e.inputs[n];r!==void 0&&(t.inputs[n]=r,t.declaredInputs[n]=e.declaredInputs[n])}}function P_(t){let e=0,n=null;for(let r=t.length-1;r>=0;r--){let o=t[r];o.hostVars=e+=o.hostVars,o.hostAttrs=$n(o.hostAttrs,n=$n(n,o.hostAttrs))}}function ac(t){return t===Tt?{}:t===oe?[]:t}function L_(t,e){let n=t.viewQuery;n?t.viewQuery=(r,o)=>{e(r,o),n(r,o)}:t.viewQuery=e}function F_(t,e){let n=t.contentQueries;n?t.contentQueries=(r,o,i)=>{e(r,o,i),n(r,o,i)}:t.contentQueries=e}function j_(t,e){let n=t.hostBindings;n?t.hostBindings=(r,o)=>{e(r,o),n(r,o)}:t.hostBindings=e}function Xh(t,e,n,r,o,i,s,a){if(n.firstCreatePass){t.mergedAttrs=$n(t.mergedAttrs,t.attrs);let u=t.tView=cl(2,t,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,t),u.queries=n.queries.embeddedTView(t))}a&&(t.flags|=a),Fn(t,!1);let c=H_(n,e,t,r);yi()&&sl(n,e,c,t),Un(c,e);let l=Dh(c,e,c,t);e[r+U]=l,ul(e,l),d_(l,t,e)}function V_(t,e,n,r,o,i,s,a,c,l,u){let d=n+U,p;return e.firstCreatePass?(p=Yn(e,d,4,s||null,a||null),fi()&&Rh(e,t,p,Ee(e.consts,l),dl),hp(e,p)):p=e.data[d],Xh(p,t,e,n,r,o,i,c),Pn(p)&&ns(e,t,p),l!=null&&Br(t,p,u),p}function Wn(t,e,n,r,o,i,s,a,c,l,u){let d=n+U,p;if(e.firstCreatePass){if(p=Yn(e,d,4,s||null,a||null),l!=null){let f=Ee(e.consts,l);p.localNames=[];for(let h=0;h<f.length;h+=2)p.localNames.push(f[h],-1)}}else p=e.data[d];return Xh(p,t,e,n,r,o,i,c),l!=null&&Br(t,p,u),p}function em(t,e,n,r,o,i,s,a){let c=w(),l=B(),u=Ee(l.consts,i);return V_(c,l,t,e,n,r,o,u,void 0,s,a),em}function tm(t,e,n,r,o,i,s,a){let c=w(),l=B(),u=Ee(l.consts,i);return Wn(c,l,t,e,n,r,o,u,void 0,s,a),tm}var H_=B_;function B_(t,e,n,r){return br(!0),e[H].createComment("")}var nm=new P("");var rm=new P("");function om(){ks(()=>{let t="";throw new g(600,t)})}var $_=10;var zr=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=S(Nt);afterRenderManager=S(Yi);zonelessEnabled=S(Vn);rootEffectScheduler=S(Ii);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new ye;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=S(Mt);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(tt(n=>!n))}constructor(){S(pn,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=S(De);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=We.NULL){return this._injector.get(ne).run(()=>{if(F(O.BootstrapComponentStart),!this._injector.get(Cl).done){let _="";throw new g(405,_)}let a=It(n),c=this._injector.get(Ui),l=new Gn(a,c);this.componentTypes.push(n);let{hostElement:u,directives:d,bindings:p}=U_(r),f=u||l.selector,h=l.create(o,[],f,c.injector,d,p),m=h.location.nativeElement,v=h.injector.get(nm,null);return v?.registerApplication(m),h.onDestroy(()=>{this.detachView(h.hostView),Nr(this.components,h),v?.unregisterApplication(m)}),this._loadComponent(h),F(O.BootstrapComponentEnd,h),h})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){F(O.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(Zi.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw F(O.ChangeDetectionEnd),new g(101,!1);let n=D(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,D(n),this.afterTick.next(),F(O.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Pr,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<$_;){F(O.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{F(O.ChangeDetectionSyncEnd)}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!Dr(o))continue;let i=r&&!this.zonelessEnabled?0:1;yh(o,i),n=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Dr(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Nr(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(n),this._injector.get(rm,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Nr(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new g(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Kn({token:t,factory:t.\u0275fac})}return t})();function U_(t){return t===void 0||typeof t=="string"||t instanceof Element?{hostElement:t}:t}function Nr(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function im(t,e,n,r){let o=w(),i=sn();if(Fe(o,i,e)){let s=B(),a=wr();ZI(a,o,t,e,n,r)}return im}var Hc=class{destroy(e){}updateValue(e,n){}swap(e,n){let r=Math.min(e,n),o=Math.max(e,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(e,n){this.attach(n,this.detach(e))}};function cc(t,e,n,r,o){return t===n&&Object.is(e,r)?1:Object.is(o(t,e),o(n,r))?-1:0}function q_(t,e,n,r){let o,i,s=0,a=t.length-1,c=void 0;if(Array.isArray(e)){D(r);let l=e.length-1;for(D(null);s<=a&&s<=l;){let u=t.at(s),d=e[s],p=cc(s,u,s,d,n);if(p!==0){p<0&&t.updateValue(s,d),s++;continue}let f=t.at(a),h=e[l],m=cc(a,f,l,h,n);if(m!==0){m<0&&t.updateValue(a,h),a--,l--;continue}let v=n(s,u),_=n(a,f),L=n(s,d);if(Object.is(L,_)){let K=n(l,h);Object.is(K,v)?(t.swap(s,a),t.updateValue(a,h),l--,a--):t.move(a,s),t.updateValue(s,d),s++;continue}if(o??=new qi,i??=ip(t,s,a,n),Bc(t,o,s,L))t.updateValue(s,d),s++,a++;else if(i.has(L))o.set(v,t.detach(s)),a--;else{let K=t.create(s,e[s]);t.attach(s,K),s++,a++}}for(;s<=l;)op(t,o,n,s,e[s]),s++}else if(e!=null){D(r);let l=e[Symbol.iterator]();D(null);let u=l.next();for(;!u.done&&s<=a;){let d=t.at(s),p=u.value,f=cc(s,d,s,p,n);if(f!==0)f<0&&t.updateValue(s,p),s++,u=l.next();else{o??=new qi,i??=ip(t,s,a,n);let h=n(s,p);if(Bc(t,o,s,h))t.updateValue(s,p),s++,a++,u=l.next();else if(!i.has(h))t.attach(s,t.create(s,p)),s++,a++,u=l.next();else{let m=n(s,d);o.set(m,t.detach(s)),a--}}}for(;!u.done;)op(t,o,n,t.length,u.value),u=l.next()}for(;s<=a;)t.destroy(t.detach(a--));o?.forEach(l=>{t.destroy(l)})}function Bc(t,e,n,r){return e!==void 0&&e.has(r)?(t.attach(n,e.get(r)),e.delete(r),!0):!1}function op(t,e,n,r,o){if(Bc(t,e,r,n(r,o)))t.updateValue(r,o);else{let i=t.create(r,o);t.attach(r,i)}}function ip(t,e,n,r){let o=new Set;for(let i=e;i<=n;i++)o.add(r(i,t.at(i)));return o}var qi=class{kvMap=new Map;_vMap=void 0;has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let n=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(e,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,n){if(this.kvMap.has(e)){let r=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(e,n)}forEach(e){for(let[n,r]of this.kvMap)if(e(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),e(r,n)}}};function z_(t,e,n,r,o,i,s,a){lt("NgControlFlow");let c=w(),l=B(),u=Ee(l.consts,i);return Wn(c,l,t,e,n,r,o,u,256,s,a),Ml}function Ml(t,e,n,r,o,i,s,a){lt("NgControlFlow");let c=w(),l=B(),u=Ee(l.consts,i);return Wn(c,l,t,e,n,r,o,u,512,s,a),Ml}function G_(t,e){lt("NgControlFlow");let n=w(),r=sn(),o=n[r]!==se?n[r]:-1,i=o!==-1?zi(n,U+o):void 0,s=0;if(Fe(n,r,t)){let a=D(null);try{if(i!==void 0&&Th(i,s),t!==-1){let c=U+t,l=zi(n,c),u=zc(n[E],c),d=bh(l,u,n),p=$r(n,u,e,{dehydratedView:d});Ur(l,p,s,zn(u,d))}}finally{D(a)}}else if(i!==void 0){let a=_h(i,s);a!==void 0&&(a[W]=e)}}var $c=class{lContainer;$implicit;$index;constructor(e,n,r){this.lContainer=e,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-z}};function W_(t,e){return e}var Uc=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,n,r){this.hasEmptyBlock=e,this.trackByFn=n,this.liveCollection=r}};function Q_(t,e,n,r,o,i,s,a,c,l,u,d,p){lt("NgControlFlow");let f=w(),h=B(),m=c!==void 0,v=w(),_=a?s.bind(v[ue][W]):s,L=new Uc(m,_);v[U+t]=L,Wn(f,h,t+1,e,n,r,o,Ee(h.consts,i),256),m&&Wn(f,h,t+2,c,l,u,d,Ee(h.consts,p),512)}var qc=class extends Hc{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(e,n,r){super(),this.lContainer=e,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-z}at(e){return this.getLView(e)[W].$implicit}attach(e,n){let r=n[Xt];this.needsIndexUpdate||=e!==this.length,Ur(this.lContainer,n,e,zn(this.templateTNode,r)),Z_(this.lContainer,e)}detach(e){return this.needsIndexUpdate||=e!==this.length-1,Y_(this.lContainer,e),J_(this.lContainer,e)}create(e,n){let r=Li(this.lContainer,this.templateTNode.tView.ssrId);return $r(this.hostLView,this.templateTNode,new $c(this.lContainer,n,e),{dehydratedView:r})}destroy(e){Xi(e[E],e)}updateValue(e,n){this.getLView(e)[W].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[W].$index=e}getLView(e){return X_(this.lContainer,e)}};function K_(t){let e=D(null),n=Oe();try{let r=w(),o=r[E],i=r[n],s=n+1,a=zi(r,s);if(i.liveCollection===void 0){let l=zc(o,s);i.liveCollection=new qc(a,r,l)}else i.liveCollection.reset();let c=i.liveCollection;if(q_(c,t,i.trackByFn,e),c.updateIndexes(),i.hasEmptyBlock){let l=sn(),u=c.length===0;if(Fe(r,l,u)){let d=n+2,p=zi(r,d);if(u){let f=zc(o,d),h=bh(p,f,r),m=$r(r,f,void 0,{dehydratedView:h});Ur(p,m,0,zn(f,h))}else o.firstUpdatePass&&DD(p),Th(p,0)}}}finally{D(e)}}function zi(t,e){return t[e]}function Z_(t,e){if(t.length<=z)return;let n=z+e,r=t[n],o=r?r[Je]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Qe];II(i,o),qn.delete(r[Ye]),o.detachedLeaveAnimationFns=void 0}}function Y_(t,e){if(t.length<=z)return;let n=z+e,r=t[n],o=r?r[Je]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function J_(t,e){return Rr(t,e)}function X_(t,e){return _h(t,e)}function zc(t,e){return ci(t,e)}function sm(t,e,n){let r=w(),o=sn();if(Fe(r,o,e)){let i=B(),s=wr();zI(s,r,t,e,r[H],n)}return sm}function Gc(t,e,n,r,o){hl(e,t,n,o?"class":"style",r)}function Gi(t,e,n,r){let o=w(),i=o[E],s=t+U,a=i.firstCreatePass?Il(s,o,2,e,dl,fi(),n,r):i.data[s];if(st(a)){let c=o[Ke].tracingService;if(c&&c.componentCreate){let l=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(Mh(l),()=>(sp(t,e,o,a,r),Gi))}}return sp(t,e,o,a,r),Gi}function sp(t,e,n,r,o){if(fl(r,n,t,e,lm),Pn(r)){let i=n[E];ns(i,n,r),Jc(i,r,n)}o!=null&&Br(n,r)}function Nl(){let t=B(),e=Q(),n=pl(e);return t.firstCreatePass&&Dl(t,n),$a(n)&&Ua(),Ha(),n.classesWithoutHost!=null&&Yv(n)&&Gc(t,n,w(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&Jv(n)&&Gc(t,n,w(),n.stylesWithoutHost,!1),Nl}function am(t,e,n,r){return Gi(t,e,n,r),Nl(),am}function xl(t,e,n,r){let o=w(),i=o[E],s=t+U,a=i.firstCreatePass?KD(s,i,2,e,n,r):i.data[s];return fl(a,o,t,e,lm),r!=null&&Br(o,a),xl}function Al(){let t=Q(),e=pl(t);return $a(e)&&Ua(),Ha(),Al}function cm(t,e,n,r){return xl(t,e,n,r),Al(),cm}var lm=(t,e,n,r,o)=>(br(!0),Wp(e[H],r,Ya()));function kl(t,e,n){let r=w(),o=r[E],i=t+U,s=o.firstCreatePass?Il(i,r,8,"ng-container",dl,fi(),e,n):o.data[i];if(fl(s,r,t,"ng-container",eT),Pn(s)){let a=r[E];ns(a,r,s),Jc(a,s,r)}return n!=null&&Br(r,s),kl}function Rl(){let t=B(),e=Q(),n=pl(e);return t.firstCreatePass&&Dl(t,n),Rl}function um(t,e,n){return kl(t,e,n),Rl(),um}var eT=(t,e,n,r,o)=>(br(!0),YE(e[H],""));function tT(){return w()}function dm(t,e,n){let r=w(),o=sn();if(Fe(r,o,e)){let i=B(),s=wr();dh(s,r,t,e,r[H],n)}return dm}var Sr=void 0;function nT(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return e===1&&n===0?1:5}var rT=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["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"]],Sr,[["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"]],Sr,[["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\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",Sr,Sr,Sr],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",nT],lc=Object.create(null);function oT(t){let e=sT(t),n=ap(e);if(n)return n;let r=e.split("-")[0];if(n=ap(r),n)return n;if(r==="en")return rT;throw new g(701,!1)}function ap(t){if(!(t in lc)){let e=_t.ng&&_t.ng.common&&_t.ng.common.locales&&_t.ng.common.locales[t];return e!==void 0&&(lc[t]=e),e}return lc[t]}var iT={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};function sT(t){return t.toLowerCase().replace(/_/g,"-")}var Gr="en-US";var aT=Gr;function fm(t){typeof t=="string"&&(aT=t.toLowerCase().replace(/_/g,"-"))}function pm(t,e,n){let r=w(),o=B(),i=Q();return cT(o,r,r[H],i,t,e,n),pm}function hm(t,e,n){let r=w(),o=B(),i=Q();return(i.type&3||n)&&El(i,o,r,n,r[H],t,e,cn(i,r,e)),hm}function cT(t,e,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=cn(r,e,i),El(r,t,e,s,n,o,i,c)&&(a=!1)),a){let l=r.outputs?.[o],u=r.hostDirectiveOutputs?.[o];if(u&&u.length)for(let d=0;d<u.length;d+=2){let p=u[d],f=u[d+1];c??=cn(r,e,i),ji(r,e,p,f,o,c)}if(l&&l.length)for(let d of l)c??=cn(r,e,i),ji(r,e,d,o,o,c)}}function lT(t=1){return df(t)}function uT(t,e){let n=null,r=sI(t);for(let o=0;o<e.length;o++){let i=e[o];if(i==="*"){n=o;continue}if(r===null?Xp(t,i,!0):lI(r,i))return o}return n}function dT(t){let e=w()[ue][ie];if(!e.projection){let n=t?t.length:1,r=e.projection=Pd(n,null),o=r.slice(),i=e.child;for(;i!==null;){if(i.type!==128){let s=t?uT(i,t):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i)}i=i.next}}}function fT(t,e=0,n,r,o,i){let s=w(),a=B(),c=r?t+1:null;c!==null&&Wn(s,a,c,r,o,i,null,n);let l=Yn(a,U+t,16,null,n||null);l.projection===null&&(l.projection=e),Ga();let d=!s[Xt]||Ba();s[ue][ie].projection[l.projection]===null&&c!==null?pT(s,a,c):d&&!Qi(l)&&OI(a,s,l)}function pT(t,e,n){let r=U+n,o=e.data[r],i=t[r],s=Li(i,o.tView.ssrId),a=$r(t,o,void 0,{dehydratedView:s});Ur(i,a,0,zn(o,s))}function mm(t,e,n,r){return Bh(t,e,n,r),mm}function gm(t,e,n){return Hh(t,e,n),gm}function hT(t){let e=w(),n=B(),r=hi();Tr(r+1);let o=Tl(n,r);if(t.dirty&&qd(e)===((o.metadata.flags&2)===2)){if(o.matches===null)t.reset([]);else{let i=Uh(e,r);t.reset(i,Cp),t.notifyOnChanges()}return!0}return!1}function mT(){return _l(w(),hi())}function ym(t,e,n,r,o){return zh(e,Bh(t,n,r,o)),ym}function vm(t,e,n,r){return zh(t,Hh(e,n,r)),vm}function gT(t=1){Tr(hi()+t)}function yT(t){let e=ef();return Oa(e,U+t)}function Ti(t,e){return t<<17|e<<2}function fn(t){return t>>17&32767}function vT(t){return(t&2)==2}function ET(t,e){return t&131071|e<<17}function Wc(t){return t|2}function Qn(t){return(t&131068)>>2}function uc(t,e){return t&-131069|e<<2}function IT(t){return(t&1)===1}function Qc(t){return t|1}function DT(t,e,n,r,o,i){let s=i?e.classBindings:e.styleBindings,a=fn(s),c=Qn(s);t[r]=n;let l=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||An(d,u)>0)&&(l=!0)}else u=n;if(o)if(c!==0){let p=fn(t[a+1]);t[r+1]=Ti(p,a),p!==0&&(t[p+1]=uc(t[p+1],r)),t[a+1]=ET(t[a+1],r)}else t[r+1]=Ti(a,0),a!==0&&(t[a+1]=uc(t[a+1],r)),a=r;else t[r+1]=Ti(c,0),a===0?a=r:t[c+1]=uc(t[c+1],r),c=r;l&&(t[r+1]=Wc(t[r+1])),cp(t,u,r,!0),cp(t,u,r,!1),_T(e,u,t,r,i),s=Ti(a,c),i?e.classBindings=s:e.styleBindings=s}function _T(t,e,n,r,o){let i=o?t.residualClasses:t.residualStyles;i!=null&&typeof e=="string"&&An(i,e)>=0&&(n[r+1]=Qc(n[r+1]))}function cp(t,e,n,r){let o=t[n+1],i=e===null,s=r?fn(o):Qn(o),a=!1;for(;s!==0&&(a===!1||i);){let c=t[s],l=t[s+1];TT(c,e)&&(a=!0,t[s+1]=r?Qc(l):Wc(l)),s=r?fn(l):Qn(l)}a&&(t[n+1]=r?Wc(o):Qc(o))}function TT(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?An(t,e)>=0:!1}var Le={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function wT(t){return t.substring(Le.key,Le.keyEnd)}function bT(t){return ST(t),Em(t,Im(t,0,Le.textEnd))}function Em(t,e){let n=Le.textEnd;return n===e?-1:(e=Le.keyEnd=CT(t,Le.key=e,n),Im(t,e,n))}function ST(t){Le.key=0,Le.keyEnd=0,Le.value=0,Le.valueEnd=0,Le.textEnd=t.length}function Im(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function CT(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}function Dm(t,e,n){return Tm(t,e,n,!1),Dm}function _m(t,e){return Tm(t,e,null,!0),_m}function MT(t){xT(LT,NT,t,!0)}function NT(t,e){for(let n=bT(e);n>=0;n=Em(e,n))oi(t,wT(e),!0)}function Tm(t,e,n,r){let o=w(),i=B(),s=_r(2);if(i.firstUpdatePass&&bm(i,t,s,r),e!==se&&Fe(o,s,e)){let a=i.data[Oe()];Sm(i,a,o,o[H],t,o[s+1]=jT(e,n),r,s)}}function xT(t,e,n,r){let o=B(),i=_r(2);o.firstUpdatePass&&bm(o,null,i,r);let s=w();if(n!==se&&Fe(s,i,n)){let a=o.data[Oe()];if(Cm(a,r)&&!wm(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=Yo(c,n||"")),Gc(o,a,s,n,r)}else FT(o,a,s,s[H],s[i+1],s[i+1]=PT(t,e,n),r,i)}}function wm(t,e){return e>=t.expandoStartIndex}function bm(t,e,n,r){let o=t.data;if(o[n+1]===null){let i=o[Oe()],s=wm(t,n);Cm(i,r)&&e===null&&!s&&(e=!1),e=AT(o,i,e,r),DT(o,i,e,n,s,r)}}function AT(t,e,n,r){let o=af(t),i=r?e.residualClasses:e.residualStyles;if(o===null)(r?e.classBindings:e.styleBindings)===0&&(n=dc(null,t,e,n,r),n=Fr(n,e.attrs,r),i=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==o)if(n=dc(o,t,e,n,r),i===null){let c=kT(t,e,r);c!==void 0&&Array.isArray(c)&&(c=dc(null,t,e,c[1],r),c=Fr(c,e.attrs,r),RT(t,e,r,c))}else i=OT(t,e,r)}return i!==void 0&&(r?e.residualClasses=i:e.residualStyles=i),n}function kT(t,e,n){let r=n?e.classBindings:e.styleBindings;if(Qn(r)!==0)return t[fn(r)]}function RT(t,e,n,r){let o=n?e.classBindings:e.styleBindings;t[fn(o)]=r}function OT(t,e,n){let r,o=e.directiveEnd;for(let i=1+e.directiveStylingLast;i<o;i++){let s=t[i].hostAttrs;r=Fr(r,s,n)}return Fr(r,e.attrs,n)}function dc(t,e,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=e[a],r=Fr(r,i.hostAttrs,o),i!==t);)a++;return t!==null&&(n.directiveStylingLast=a),r}function Fr(t,e,n){let r=n?1:2,o=-1;if(e!==null)for(let i=0;i<e.length;i++){let s=e[i];typeof s=="number"?o=s:o===r&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),oi(t,s,n?!0:e[++i]))}return t===void 0?null:t}function PT(t,e,n){if(n==null||n==="")return oe;let r=[],o=Xc(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)t(r,o[i],!0);else if(o instanceof Set)for(let i of o)t(r,i,!0);else if(typeof o=="object")for(let i in o)Object.hasOwn(o,i)&&t(r,i,o[i]);else typeof o=="string"&&e(r,o);return r}function LT(t,e,n){let r=String(e);r!==""&&!r.includes(" ")&&oi(t,r,n)}function FT(t,e,n,r,o,i,s,a){o===se&&(o=oe);let c=0,l=0,u=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;u!==null||d!==null;){let p=c<o.length?o[c+1]:void 0,f=l<i.length?i[l+1]:void 0,h=null,m;u===d?(c+=2,l+=2,p!==f&&(h=d,m=f)):d===null||u!==null&&u<d?(c+=2,h=u):(l+=2,h=d,m=f),h!==null&&Sm(t,e,n,r,h,m,s,a),u=c<o.length?o[c]:null,d=l<i.length?i[l]:null}}function Sm(t,e,n,r,o,i,s,a){if(!(e.type&3))return;let c=t.data,l=c[a+1],u=IT(l)?lp(c,e,n,o,Qn(l),s):void 0;if(!Wi(u)){Wi(i)||vT(l)&&(i=lp(c,null,n,o,a,s));let d=Ra(Oe(),n);LI(r,s,d,o,i)}}function lp(t,e,n,r,o,i){let s=e===null,a;for(;o>0;){let c=t[o],l=Array.isArray(c),u=l?c[1]:c,d=u===null,p=n[o+1];p===se&&(p=d?oe:void 0);let f=d?ii(p,r):u===r?p:void 0;if(l&&!Wi(f)&&(f=ii(c,r)),Wi(f)&&(a=f,s))return a;let h=t[o+1];o=s?fn(h):Qn(h)}if(e!==null){let c=i?e.residualClasses:e.residualStyles;c!=null&&(a=ii(c,r))}return a}function Wi(t){return t!==void 0}function jT(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=Zo(Xc(t)))),t}function Cm(t,e){return(t.flags&(e?8:16))!==0}function VT(t,e=""){let n=w(),r=B(),o=t+U,i=r.firstCreatePass?Yn(r,o,1,e,null):r.data[o],s=HT(r,n,i,e);n[o]=s,yi()&&sl(r,n,s,i),Fn(i,!1)}var HT=(t,e,n,r)=>(br(!0),KE(e[H],r));function BT(t,e,n,r=""){return Fe(t,sn(),n)?e+Dt(n)+r:se}function $T(t,e,n,r,o,i=""){let s=Qa(),a=vl(t,s,n,o);return _r(2),a?e+Dt(n)+r+Dt(o)+i:se}function UT(t,e,n,r,o,i,s,a=""){let c=Qa(),l=MD(t,c,n,o,s);return _r(3),l?e+Dt(n)+r+Dt(o)+i+Dt(s)+a:se}function Mm(t){return Ol("",t),Mm}function Ol(t,e,n){let r=w(),o=BT(r,t,e,n);return o!==se&&Pl(r,Oe(),o),Ol}function Nm(t,e,n,r,o){let i=w(),s=$T(i,t,e,n,r,o);return s!==se&&Pl(i,Oe(),s),Nm}function xm(t,e,n,r,o,i,s){let a=w(),c=UT(a,t,e,n,r,o,i,s);return c!==se&&Pl(a,Oe(),c),xm}function Pl(t,e,n){let r=Ra(e,t);ZE(t[H],r,n)}function up(t,e,n){let r=B();r.firstCreatePass&&Am(e,r.data,r.blueprint,Re(t),n)}function Am(t,e,n,r,o){if(t=Y(t),Array.isArray(t))for(let i=0;i<t.length;i++)Am(t[i],e,n,r,o);else{let i=B(),s=w(),a=Q(),c=Qt(t)?t:Y(t.provide),l=Ca(t),u=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(Qt(t)||!t.multi){let f=new ln(l,o,qr,null),h=pc(c,e,o?u:u+p,d);h===-1?(gc(ki(a,s),i,c),fc(i,t,e.length),e.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[h]=f,s[h]=f)}else{let f=pc(c,e,u+p,d),h=pc(c,e,u,u+p),m=f>=0&&n[f],v=h>=0&&n[h];if(o&&!v||!o&&!m){gc(ki(a,s),i,c);let _=GT(o?zT:qT,n.length,o,r,l,t);!o&&v&&(n[h].providerFactory=_),fc(i,t,e.length,0),e.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(_),s.push(_)}else{let _=km(n[o?h:f],l,!o&&r);fc(i,t,f>-1?f:h,_)}!o&&r&&v&&n[h].componentProviders++}}}function fc(t,e,n,r){let o=Qt(e),i=Hd(e);if(o||i){let c=(i?Y(e.useClass):e).prototype.ngOnDestroy;if(c){let l=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){let u=l.indexOf(n);u===-1?l.push(n,[r,c]):l[u+1].push(r,c)}else l.push(n,c)}}}function km(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function pc(t,e,n,r){for(let o=n;o<r;o++)if(e[o]===t)return o;return-1}function qT(t,e,n,r,o){return Kc(this.multi,[])}function zT(t,e,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=xr(r,r[E],this.providerFactory.index,o);s=c.slice(0,a),Kc(i,s);for(let l=a;l<c.length;l++)s.push(c[l])}else s=[],Kc(i,s);return s}function Kc(t,e){for(let n=0;n<t.length;n++){let r=t[n];e.push(r())}return e}function GT(t,e,n,r,o,i){let s=new ln(t,n,qr,null);return s.multi=[],s.index=e,s.componentProviders=0,km(s,o,r&&!n),s}function WT(t,e){return n=>{n.providersResolver=(r,o)=>up(r,o?o(t):t,!1),e&&(n.viewProvidersResolver=(r,o)=>up(r,o?o(e):e,!0))}}function QT(t,e){let n=t[e];return n===se?void 0:n}function KT(t,e,n,r,o,i,s){let a=e+n;return vl(t,a,o,i)?CD(t,a+2,s?r.call(s,o,i):r(o,i)):QT(t,a+2)}function ZT(t,e){let n=B(),r,o=t+U;n.firstCreatePass?(r=YT(e,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=vt(r.type,!0)),s,a=le(qr);try{let c=Ai(!1),l=i();return Ai(c),Pa(n,w(),o,l),l}finally{le(a)}}function YT(t,e){if(e)for(let n=e.length-1;n>=0;n--){let r=e[n];if(t===r.name)return r}}function JT(t,e,n,r){let o=t+U,i=w(),s=Oa(i,o);return XT(i,o)?KT(i,tf(),e,s.transform,n,r,s):s.transform(n,r)}function XT(t,e){return t[E].data[e].pure}function ew(t,e){return rs(t,e)}var Rm=(()=>{class t{applicationErrorHandler=S(Nt);appRef=S(zr);taskService=S(Mt);ngZone=S(ne);zonelessEnabled=S(Vn);tracing=S(pn,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new $;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(gr):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(S(Ei,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let n=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(n);return}this.switchToMicrotaskScheduler(),this.taskService.remove(n)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let n=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})})}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:case 2:{this.appRef.dirtyFlags|=2;break}case 3:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?yf:Xa;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(gr+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.applicationErrorHandler(r)}finally{this.taskService.remove(n),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Kn({token:t,factory:t.\u0275fac})}return t})();function Om(){return[{provide:Ae,useExisting:Rm},{provide:ne,useClass:yr},{provide:Vn,useValue:!0}]}function tw(){return typeof $localize<"u"&&$localize.locale||Gr}var Ll=new P("",{factory:()=>S(Ll,{optional:!0,skipSelf:!0})||tw()});function nw(t,e){return or(t,e?.equal)}function rw(t){return Hu(t)}var Bm=Symbol("InputSignalNode#UNSET"),ow=ee(G({},ir),{transformFn:void 0,applyValueToInputSignal(t,e){In(t,e)}});function $m(t,e){let n=Object.create(ow);n.value=t,n.transformFn=e?.transform;function r(){if(jt(n),n.value===Bm){let o=null;throw new g(-950,o)}return n.value}return r[Z]=n,r}var Pm=class{attributeName;constructor(e){this.attributeName=e}__NG_ELEMENT_ID__=()=>Sp(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},Gj=(()=>{let t=new P("");return t.__NG_ELEMENT_ID__=e=>{let n=Q();if(n===null)throw new g(-204,!1);if(n.type&2)return n.value;if(e&8)return null;throw new g(-204,!1)},t})();function Lm(t,e){return $m(t,e)}function iw(t){return $m(Bm,t)}var Wj=(Lm.required=iw,Lm);function Fm(t,e){return wl(e)}function sw(t,e){return bl(e)}var Qj=(Fm.required=sw,Fm);function jm(t,e){return wl(e)}function aw(t,e){return bl(e)}var Kj=(jm.required=aw,jm);var cw=1e4;var Zj=cw-1e3;var jl=class{supports(e){return yl(e)}create(e){return new Vl(e)}},lw=(t,e)=>e,Vl=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(e){this._trackByFn=e||lw}forEachItem(e){let n;for(n=this._itHead;n!==null;n=n._next)e(n)}forEachOperation(e){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<Vm(r,o,i)?n:r,a=Vm(s,o,i),c=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else{i||(i=[]);let l=a-o,u=c-o;if(l!=u){for(let p=0;p<l;p++){let f=p<i.length?i[p]:i[p]=0,h=f+p;u<=h&&h<l&&(i[p]=f+1)}let d=s.previousIndex;i[d]=u-l}}a!==c&&e(s,a,c)}}forEachPreviousItem(e){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)e(n)}forEachAddedItem(e){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)e(n)}forEachMovedItem(e){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)e(n)}forEachRemovedItem(e){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)e(n)}forEachIdentityChange(e){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)e(n)}diff(e){if(e==null&&(e=[]),!yl(e))throw new g(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let n=this._itHead,r=!1,o,i,s;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)i=e[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next}else o=0,Nh(e,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=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,n,r,o){let i;return e===null?i=this._itTail:(i=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,i,o)):(e=this._linkedRecords===null?null:this._linkedRecords.get(r,o),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,i,o)):e=this._addAfter(new Hl(n,r),i,o)),e}_verifyReinsertion(e,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?e=this._reinsertAfter(i,e._prev,o):e.currentIndex!=o&&(e.currentIndex=o,this._addToMoves(e,o)),e}_truncate(e){for(;e!==null;){let n=e._next;this._addToRemovals(this._unlink(e)),e=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let o=e._prevRemoved,i=e._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(e,n,r),this._addToMoves(e,r),e}_moveAfter(e,n,r){return this._unlink(e),this._insertAfter(e,n,r),this._addToMoves(e,r),e}_addAfter(e,n,r){return this._insertAfter(e,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,n,r){let o=n===null?this._itHead:n._next;return e._next=o,e._prev=n,o===null?this._itTail=e:o._prev=e,n===null?this._itHead=e:n._next=e,this._linkedRecords===null&&(this._linkedRecords=new ss),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let n=e._prev,r=e._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,e}_addToMoves(e,n){return e.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new ss),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,n){return e.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Hl=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(e,n){this.item=e,this.trackById=n}},Bl=class{_head=null;_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,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){let n=e._prevDup,r=e._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},ss=class{map=new Map;put(e){let n=e.trackById,r=this.map.get(n);r||(r=new Bl,this.map.set(n,r)),r.add(e)}get(e,n){let r=e,o=this.map.get(r);return o?o.get(e,n):null}remove(e){let n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Vm(t,e,n){let r=t.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+e+o}function Hm(){return new uw([new jl])}var uw=(()=>{class t{factories;static \u0275prov=pe({token:t,providedIn:"root",factory:Hm});constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new t(n)}static extend(n){return{provide:t,useFactory:()=>{let r=S(t,{optional:!0,skipSelf:!0});return t.create(n,r||Hm())}}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new g(901,!1)}}return t})();var Yj=(()=>{class t{static __NG_ELEMENT_ID__=dw}return t})();function dw(t){return fw(Q(),w(),(t&16)===16)}function fw(t,e,n){if(st(t)&&!n){let r=Se(t.index,e);return new At(r,r)}else if(t.type&175){let r=e[ue];return new At(r,e)}return null}var pw=(()=>{class t{zone=S(ne);changeDetectionScheduler=S(Ae);applicationRef=S(zr);applicationErrorHandler=S(Nt);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(n){this.applicationErrorHandler(n)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Kn({token:t,factory:t.\u0275fac})}return t})(),hw=new P("",{factory:()=>!1});function mw({ngZoneFactory:t,scheduleInRootZone:e}){return t??=()=>new ne(ee(G({},Um()),{scheduleInRootZone:e})),[{provide:Vn,useValue:!1},{provide:ne,useFactory:t},{provide:Jt,multi:!0,useFactory:()=>{let n=S(pw,{optional:!0});return()=>n.initialize()}},{provide:Jt,multi:!0,useFactory:()=>{let n=S(gw);return()=>{n.initialize()}}},{provide:Ei,useValue:e??Ja}]}function Jj(t){let e=t?.scheduleInRootZone,n=mw({ngZoneFactory:()=>{let r=Um(t);return r.scheduleInRootZone=e,r.shouldCoalesceEventChangeDetection&&lt("NgZone_CoalesceEvent"),new ne(r)},scheduleInRootZone:e});return Ta([{provide:hw,useValue:!0},n])}function Um(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var gw=(()=>{class t{subscription=new $;initialized=!1;zone=S(ne);pendingTasks=S(Mt);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(()=>{ne.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ne.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Kn({token:t,factory:t.\u0275fac})}return t})();var $l=new P(""),yw=new P("");function Wr(t){return!t.moduleRef}function vw(t){let e=Wr(t)?t.r3Injector:t.moduleRef.injector,n=e.get(ne);return n.run(()=>{Wr(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let r=e.get(Nt),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),Wr(t)){let i=()=>e.destroy(),s=t.platformInjector.get($l);s.add(i),e.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>t.moduleRef.destroy(),s=t.platformInjector.get($l);s.add(i),t.moduleRef.onDestroy(()=>{Nr(t.allPlatformModules,t.moduleRef),o.unsubscribe(),s.delete(i)})}return Iw(r,n,()=>{let i=e.get(Mt),s=i.add(),a=e.get(Cl);return a.runInitializers(),a.donePromise.then(()=>{let c=e.get(Ll,Gr);if(fm(c||Gr),!e.get(yw,!0))return Wr(t)?e.get(zr):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Wr(t)){let u=e.get(zr);return t.rootComponent!==void 0&&u.bootstrap(t.rootComponent),u}else return Ew?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>{i.remove(s)})})})}var Ew;function Iw(t,e,n){try{let r=n();return Sl(r)?r.catch(o=>{throw e.runOutsideAngular(()=>t(o)),o}):r}catch(r){throw e.runOutsideAngular(()=>t(r)),r}}var is=null;function Dw(t=[],e){return We.create({name:e,providers:[{provide:Sa,useValue:"platform"},{provide:$l,useValue:new Set([()=>is=null])},...t]})}function _w(t=[]){if(is)return is;let e=Dw(t);return is=e,om(),Tw(e),e}function Tw(t){let e=t.get(_f,null);si(t,()=>{e?.forEach(n=>n())})}function Xj(t){let{rootComponent:e,appProviders:n,platformProviders:r,platformRef:o}=t;F(O.BootstrapApplicationStart);try{let i=o?.injector??_w(r),s=[Om(),Ef,...n||[]],a=new Lr({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return vw({r3Injector:a.injector,platformInjector:i,rootComponent:e})}catch(i){return Promise.reject(i)}finally{F(O.BootstrapApplicationEnd)}}function eV(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function tV(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}var Fl=Symbol("NOT_SET"),qm=new Set,ww=ee(G({},ir),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:Fl,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase<this.phase)return;this.sequence.erroredOrDestroyed=!0}this.sequence.scheduler.notify(7)},phaseFn(t){if(this.sequence.lastPhase=this.phase,!this.dirty)return this.signal;if(this.dirty=!1,this.value!==Fl&&!vn(this))return this.signal;try{for(let o of this.cleanup??qm)o()}finally{this.cleanup?.clear()}let e=[];t!==void 0&&e.push(t),e.push(this.registerCleanupFn);let n=pt(this),r;try{r=this.userFn.apply(null,e)}finally{Vt(this,n)}return(this.value===Fl||!this.equal(this.value,r))&&(this.value=r,this.version++),this.signal}}),Ul=class extends Ar{scheduler;lastPhase=null;nodes=[void 0,void 0,void 0,void 0];onDestroyFns=null;constructor(e,n,r,o,i,s=null){super(e,[void 0,void 0,void 0,void 0],r,!1,i.get(an),s),this.scheduler=o;for(let a of nl){let c=n[a];if(c===void 0)continue;let l=Object.create(ww);l.sequence=this,l.phase=a,l.userFn=c,l.dirty=!0,l.signal=()=>(jt(l),l.value),l.signal[Z]=l,l.registerCleanupFn=u=>(l.cleanup??=new Set).add(u),this.nodes[a]=l,this.hooks[a]=u=>l.phaseFn(u)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){if(this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();super.destroy();for(let e of this.nodes)if(e)try{for(let n of e.cleanup??qm)n()}finally{ht(e)}}};function nV(t,e){let n=e?.injector??S(We),r=n.get(Ae),o=n.get(Yi),i=n.get(pn,null,{optional:!0});o.impl??=n.get(rl);let s=t;typeof s=="function"&&(s={mixedReadWrite:t});let a=n.get(jn,null,{optional:!0}),c=new Ul(o.impl,[s.earlyRead,s.write,s.mixedReadWrite,s.read],a?.view,r,n,i?.snapshot(null));return o.impl.register(c),c}function rV(t,e){let n=It(t),r=e.elementInjector||kn();return new Gn(n).create(r,e.projectableNodes,e.hostElement,e.environmentInjector,e.directives,e.bindings)}var A=(function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t})(A||{}),je="*";function zm(t,e=null){return{type:A.Sequence,steps:t,options:e}}function ql(t){return{type:A.Style,styles:t,offset:null}}var ut=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(e=0,n=0){this.totalTime=e+n}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let n=e=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},Jn=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let n=0,r=0,o=0,i=this.players.length;i==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++n==i&&this._onFinish()}),s.onDestroy(()=>{++r==i&&this._onDestroy()}),s.onStart(()=>{++o==i&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let n=e*this.totalTime;this.players.forEach(r=>{let o=r.totalTime?Math.min(1,n/r.totalTime):1;r.setPosition(o)})}getPosition(){let e=this.players.reduce((n,r)=>n===null||r.totalTime>n.totalTime?r:n,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let n=e=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},Qr="!";function Gm(t){return new g(3e3,!1)}function Sw(){return new g(3100,!1)}function Cw(){return new g(3101,!1)}function Mw(t){return new g(3001,!1)}function Nw(t){return new g(3003,!1)}function xw(t){return new g(3004,!1)}function Qm(t,e){return new g(3005,!1)}function Km(){return new g(3006,!1)}function Zm(){return new g(3007,!1)}function Ym(t,e){return new g(3008,!1)}function Jm(t){return new g(3002,!1)}function Xm(t,e,n,r,o){return new g(3010,!1)}function eg(){return new g(3011,!1)}function tg(){return new g(3012,!1)}function ng(){return new g(3200,!1)}function rg(){return new g(3202,!1)}function og(){return new g(3013,!1)}function ig(t){return new g(3014,!1)}function sg(t){return new g(3015,!1)}function ag(t){return new g(3016,!1)}function cg(t){return new g(3500,!1)}function lg(t){return new g(3501,!1)}function ug(t,e){return new g(3404,!1)}function Aw(t){return new g(3502,!1)}function dg(t){return new g(3503,!1)}function fg(){return new g(3300,!1)}function pg(t){return new g(3504,!1)}function hg(t){return new g(3301,!1)}function mg(t,e){return new g(3302,!1)}function gg(t){return new g(3303,!1)}function yg(t,e){return new g(3400,!1)}function vg(t){return new g(3401,!1)}function Eg(t){return new g(3402,!1)}function Ig(t,e){return new g(3505,!1)}var kw=new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function dt(t){switch(t.length){case 0:return new ut;case 1:return t[0];default:return new Jn(t)}}function Ql(t,e,n=new Map,r=new Map){let o=[],i=[],s=-1,a=null;if(e.forEach(c=>{let l=c.get("offset"),u=l==s,d=u&&a||new Map;c.forEach((p,f)=>{let h=f,m=p;if(f!=="offset")switch(h=t.normalizePropertyName(h,o),m){case Qr:m=n.get(f);break;case je:m=r.get(f);break;default:m=t.normalizeStyleValue(f,h,m,o);break}d.set(h,m)}),u||i.push(d),a=d,s=l}),o.length)throw Aw(o);return i}function as(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&zl(n,"start",t)));break;case"done":t.onDone(()=>r(n&&zl(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&zl(n,"destroy",t)));break}}function zl(t,e,n){let r=n.totalTime,o=!!n.disabled,i=cs(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,r??t.totalTime,o),s=t._data;return s!=null&&(i._data=s),i}function cs(t,e,n,r,o="",i=0,s){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:o,totalTime:i,disabled:!!s}}function he(t,e,n){let r=t.get(e);return r||t.set(e,r=n),r}function Kl(t){let e=t.indexOf(":"),n=t.substring(1,e),r=t.slice(e+1);return[n,r]}var Rw=typeof document>"u"?null:document.documentElement;function ls(t){let e=t.parentNode||t.host||null;return e===Rw?null:e}function Ow(t){return t.substring(1,6)=="ebkit"}var hn=null,Wm=!1;function Dg(t){hn||(hn=Lw()||{},Wm=hn.style?"WebkitAppearance"in hn.style:!1);let e=!0;return hn.style&&!Ow(t)&&(e=t in hn.style,!e&&Wm&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in hn.style)),e}function Pw(t){return kw.has(t)}function Lw(){return typeof document<"u"?document.body:null}function Zl(t,e){for(;e;){if(e===t)return!0;e=ls(e)}return!1}function Yl(t,e,n){if(n)return Array.from(t.querySelectorAll(e));let r=t.querySelector(e);return r?[r]:[]}var Fw=1e3,Jl="{{",jw="}}",us="ng-enter",Kr="ng-leave",Zr="ng-trigger",Yr=".ng-trigger",Xl="ng-animating",ds=".ng-animating";function et(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Gl(parseFloat(e[1]),e[2])}function Gl(t,e){return e==="s"?t*Fw:t}function Jr(t,e,n){return t.hasOwnProperty("duration")?t:Hw(t,e,n)}var Vw=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Hw(t,e,n){let r,o=0,i="";if(typeof t=="string"){let s=t.match(Vw);if(s===null)return e.push(Gm(t)),{duration:0,delay:0,easing:""};r=Gl(parseFloat(s[1]),s[2]);let a=s[3];a!=null&&(o=Gl(parseFloat(a),s[4]));let c=s[5];c&&(i=c)}else r=t;if(!n){let s=!1,a=e.length;r<0&&(e.push(Sw()),s=!0),o<0&&(e.push(Cw()),s=!0),s&&e.splice(a,0,Gm(t))}return{duration:r,delay:o,easing:i}}function _g(t){return t.length?t[0]instanceof Map?t:t.map(e=>new Map(Object.entries(e))):[]}function eu(t){return Array.isArray(t)?new Map(...t):new Map(t)}function Ve(t,e,n){e.forEach((r,o)=>{let i=fs(o);n&&!n.has(o)&&n.set(o,t.style[i]),t.style[i]=r})}function kt(t,e){e.forEach((n,r)=>{let o=fs(r);t.style[o]=""})}function Xn(t){return Array.isArray(t)?t.length==1?t[0]:zm(t):t}function Tg(t,e,n){let r=e.params||{},o=tu(t);o.length&&o.forEach(i=>{r.hasOwnProperty(i)||n.push(Mw(i))})}var Wl=new RegExp(`${Jl}\\s*(.+?)\\s*${jw}`,"g");function tu(t){let e=[];if(typeof t=="string"){let n;for(;n=Wl.exec(t);)e.push(n[1]);Wl.lastIndex=0}return e}function er(t,e,n){let r=`${t}`,o=r.replace(Wl,(i,s)=>{let a=e[s];return a==null&&(n.push(Nw(s)),a=""),a.toString()});return o==r?t:o}var Bw=/-+([a-z0-9])/g;function fs(t){return t.replace(Bw,(...e)=>e[1].toUpperCase())}function $w(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function wg(t,e){return t===0||e===0}function bg(t,e,n){if(n.size&&e.length){let r=e[0],o=[];if(n.forEach((i,s)=>{r.has(s)||o.push(s),r.set(s,i)}),o.length)for(let i=1;i<e.length;i++){let s=e[i];o.forEach(a=>s.set(a,ps(t,a)))}}return e}function me(t,e,n){switch(e.type){case A.Trigger:return t.visitTrigger(e,n);case A.State:return t.visitState(e,n);case A.Transition:return t.visitTransition(e,n);case A.Sequence:return t.visitSequence(e,n);case A.Group:return t.visitGroup(e,n);case A.Animate:return t.visitAnimate(e,n);case A.Keyframes:return t.visitKeyframes(e,n);case A.Style:return t.visitStyle(e,n);case A.Reference:return t.visitReference(e,n);case A.AnimateChild:return t.visitAnimateChild(e,n);case A.AnimateRef:return t.visitAnimateRef(e,n);case A.Query:return t.visitQuery(e,n);case A.Stagger:return t.visitStagger(e,n);default:throw xw(e.type)}}function ps(t,e){return window.getComputedStyle(t)[e]}var Vg=(()=>{class t{validateStyleProperty(n){return Dg(n)}containsElement(n,r){return Zl(n,r)}getParentElement(n){return ls(n)}query(n,r,o){return Yl(n,r,o)}computeStyle(n,r,o){return o||""}animate(n,r,o,i,s,a=[],c){return new ut(o,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=pe({token:t,factory:t.\u0275fac})}return t})(),Sg=class{static NOOP=new Vg},au=class{},cu=class{normalizePropertyName(e,n){return e}normalizeStyleValue(e,n,r,o){return r}},Uw=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),lu=class extends au{normalizePropertyName(e,n){return fs(e)}normalizeStyleValue(e,n,r,o){let i="",s=r.toString().trim();if(Uw.has(n)&&r!==0&&r!=="0")if(typeof r=="number")i="px";else{let a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&o.push(Qm(e,r))}return s+i}};var vs="*";function qw(t,e){let n=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(r=>zw(r,n,e)):n.push(t),n}function zw(t,e,n){if(t[0]==":"){let c=Gw(t,n);if(typeof c=="function"){e.push(c);return}t=c}let r=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(r==null||r.length<4)return n.push(sg(t)),e;let o=r[1],i=r[2],s=r[3];e.push(Cg(o,s));let a=o==vs&&s==vs;i[0]=="<"&&!a&&e.push(Cg(s,o))}function Gw(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,r)=>parseFloat(r)>parseFloat(n);case":decrement":return(n,r)=>parseFloat(r)<parseFloat(n);default:return e.push(ag(t)),"* => *"}}var hs=new Set(["true","1"]),ms=new Set(["false","0"]);function Cg(t,e){let n=hs.has(t)||ms.has(t),r=hs.has(e)||ms.has(e);return(o,i)=>{let s=t==vs||t==o,a=e==vs||e==i;return!s&&n&&typeof o=="boolean"&&(s=o?hs.has(t):ms.has(t)),!a&&r&&typeof i=="boolean"&&(a=i?hs.has(e):ms.has(e)),s&&a}}var Hg=":self",Ww=new RegExp(`s*${Hg}s*,?`,"g");function _u(t,e,n,r){return new uu(t).build(e,n,r)}var Mg="",uu=class{_driver;constructor(e){this._driver=e}build(e,n,r){let o=new du(n);return this._resetContextStyleTimingState(o),me(this,Xn(e),o)}_resetContextStyleTimingState(e){e.currentQuerySelector=Mg,e.collectedStyles=new Map,e.collectedStyles.set(Mg,new Map),e.currentTime=0}visitTrigger(e,n){let r=n.queryCount=0,o=n.depCount=0,i=[],s=[];return e.name.charAt(0)=="@"&&n.errors.push(Km()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),a.type==A.State){let c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(u=>{c.name=u,i.push(this.visitState(c,n))}),c.name=l}else if(a.type==A.Transition){let c=this.visitTransition(a,n);r+=c.queryCount,o+=c.depCount,s.push(c)}else n.errors.push(Zm())}),{type:A.Trigger,name:e.name,states:i,transitions:s,queryCount:r,depCount:o,options:null}}visitState(e,n){let r=this.visitStyle(e.styles,n),o=e.options&&e.options.params||null;if(r.containsDynamicStyles){let i=new Set,s=o||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{tu(c).forEach(l=>{s.hasOwnProperty(l)||i.add(l)})})}),i.size&&n.errors.push(Ym(e.name,[...i.values()]))}return{type:A.State,name:e.name,style:r,options:o?{params:o}:null}}visitTransition(e,n){n.queryCount=0,n.depCount=0;let r=me(this,Xn(e.animation),n),o=qw(e.expr,n.errors);return{type:A.Transition,matchers:o,animation:r,queryCount:n.queryCount,depCount:n.depCount,options:mn(e.options)}}visitSequence(e,n){return{type:A.Sequence,steps:e.steps.map(r=>me(this,r,n)),options:mn(e.options)}}visitGroup(e,n){let r=n.currentTime,o=0,i=e.steps.map(s=>{n.currentTime=r;let a=me(this,s,n);return o=Math.max(o,n.currentTime),a});return n.currentTime=o,{type:A.Group,steps:i,options:mn(e.options)}}visitAnimate(e,n){let r=Yw(e.timings,n.errors);n.currentAnimateTimings=r;let o,i=e.styles?e.styles:ql({});if(i.type==A.Keyframes)o=this.visitKeyframes(i,n);else{let s=e.styles,a=!1;if(!s){a=!0;let l={};r.easing&&(l.easing=r.easing),s=ql(l)}n.currentTime+=r.duration+r.delay;let c=this.visitStyle(s,n);c.isEmptyStep=a,o=c}return n.currentAnimateTimings=null,{type:A.Animate,timings:r,style:o,options:null}}visitStyle(e,n){let r=this._makeStyleAst(e,n);return this._validateStyleAst(r,n),r}_makeStyleAst(e,n){let r=[],o=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of o)typeof a=="string"?a===je?r.push(a):n.errors.push(Jm(a)):r.push(new Map(Object.entries(a)));let i=!1,s=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!i)){for(let c of a.values())if(c.toString().indexOf(Jl)>=0){i=!0;break}}}),{type:A.Style,styles:r,easing:s,offset:e.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(e,n){let r=n.currentAnimateTimings,o=n.currentTime,i=n.currentTime;r&&i>0&&(i-=r.duration+r.delay),e.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,c)=>{let l=n.collectedStyles.get(n.currentQuerySelector),u=l.get(c),d=!0;u&&(i!=o&&i>=u.startTime&&o<=u.endTime&&(n.errors.push(Xm(c,u.startTime,u.endTime,i,o)),d=!1),i=u.startTime),d&&l.set(c,{startTime:i,endTime:o}),n.options&&Tg(a,n.options,n.errors)})})}visitKeyframes(e,n){let r={type:A.Keyframes,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(eg()),r;let o=1,i=0,s=[],a=!1,c=!1,l=0,u=e.steps.map(_=>{let L=this._makeStyleAst(_,n),K=L.offset!=null?L.offset:Zw(L.styles),te=0;return K!=null&&(i++,te=L.offset=K),c=c||te<0||te>1,a=a||te<l,l=te,s.push(te),L});c&&n.errors.push(tg()),a&&n.errors.push(ng());let d=e.steps.length,p=0;i>0&&i<d?n.errors.push(rg()):i==0&&(p=o/(d-1));let f=d-1,h=n.currentTime,m=n.currentAnimateTimings,v=m.duration;return u.forEach((_,L)=>{let K=p>0?L==f?1:p*L:s[L],te=K*v;n.currentTime=h+m.delay+te,m.duration=te,this._validateStyleAst(_,n),_.offset=K,r.styles.push(_)}),r}visitReference(e,n){return{type:A.Reference,animation:me(this,Xn(e.animation),n),options:mn(e.options)}}visitAnimateChild(e,n){return n.depCount++,{type:A.AnimateChild,options:mn(e.options)}}visitAnimateRef(e,n){return{type:A.AnimateRef,animation:this.visitReference(e.animation,n),options:mn(e.options)}}visitQuery(e,n){let r=n.currentQuerySelector,o=e.options||{};n.queryCount++,n.currentQuery=e;let[i,s]=Qw(e.selector);n.currentQuerySelector=r.length?r+" "+i:i,he(n.collectedStyles,n.currentQuerySelector,new Map);let a=me(this,Xn(e.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:A.Query,selector:i,limit:o.limit||0,optional:!!o.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:mn(e.options)}}visitStagger(e,n){n.currentQuery||n.errors.push(og());let r=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Jr(e.timings,n.errors,!0);return{type:A.Stagger,animation:me(this,Xn(e.animation),n),timings:r,options:null}}};function Qw(t){let e=!!t.split(/\s*,\s*/).find(n=>n==Hg);return e&&(t=t.replace(Ww,"")),t=t.replace(/@\*/g,Yr).replace(/@\w+/g,n=>Yr+"-"+n.slice(1)).replace(/:animating/g,ds),[t,e]}function Kw(t){return t?G({},t):null}var du=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e}};function Zw(t){if(typeof t=="string")return null;let e=null;if(Array.isArray(t))t.forEach(n=>{if(n instanceof Map&&n.has("offset")){let r=n;e=parseFloat(r.get("offset")),r.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset")}return e}function Yw(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let i=Jr(t,e).duration;return nu(i,0,"")}let n=t;if(n.split(/\s+/).some(i=>i.charAt(0)=="{"&&i.charAt(1)=="{")){let i=nu(0,0,"");return i.dynamic=!0,i.strValue=n,i}let o=Jr(n,e);return nu(o.duration,o.delay,o.easing)}function mn(t){return t?(t=G({},t),t.params&&(t.params=Kw(t.params))):t={},t}function nu(t,e,n){return{duration:t,delay:e,easing:n}}function Tu(t,e,n,r,o,i,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:o,delay:i,totalTime:o+i,easing:s,subTimeline:a}}var nr=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,n){let r=this._map.get(e);r||this._map.set(e,r=[]),r.push(...n)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Jw=1,Xw=":enter",eb=new RegExp(Xw,"g"),tb=":leave",nb=new RegExp(tb,"g");function wu(t,e,n,r,o,i=new Map,s=new Map,a,c,l=[]){return new fu().buildKeyframes(t,e,n,r,o,i,s,a,c,l)}var fu=class{buildKeyframes(e,n,r,o,i,s,a,c,l,u=[]){l=l||new nr;let d=new pu(e,n,l,o,i,u,[]);d.options=c;let p=c.delay?et(c.delay):0;d.currentTimeline.delayNextStep(p),d.currentTimeline.setStyles([s],null,d.errors,c),me(this,r,d);let f=d.timelines.filter(h=>h.containsAnimation());if(f.length&&a.size){let h;for(let m=f.length-1;m>=0;m--){let v=f[m];if(v.element===n){h=v;break}}h&&!h.allowOnlyTimelineStyles()&&h.setStyles([a],null,d.errors,c)}return f.length?f.map(h=>h.buildKeyframes()):[Tu(n,[],[],[],0,p,"",!1)]}visitTrigger(e,n){}visitState(e,n){}visitTransition(e,n){}visitAnimateChild(e,n){let r=n.subInstructions.get(n.element);if(r){let o=n.createSubContext(e.options),i=n.currentTimeline.currentTime,s=this._visitSubInstructions(r,o,o.options);i!=s&&n.transformIntoNewTimeline(s)}n.previousNode=e}visitAnimateRef(e,n){let r=n.createSubContext(e.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],n,r),this.visitReference(e.animation,r),n.transformIntoNewTimeline(r.currentTimeline.currentTime),n.previousNode=e}_applyAnimationRefDelays(e,n,r){for(let o of e){let i=o?.delay;if(i){let s=typeof i=="number"?i:et(er(i,o?.params??{},n.errors));r.delayNextStep(s)}}}_visitSubInstructions(e,n,r){let i=n.currentTimeline.currentTime,s=r.duration!=null?et(r.duration):null,a=r.delay!=null?et(r.delay):null;return s!==0&&e.forEach(c=>{let l=n.appendInstructionToTimeline(c,s,a);i=Math.max(i,l.duration+l.delay)}),i}visitReference(e,n){n.updateOptions(e.options,!0),me(this,e.animation,n),n.previousNode=e}visitSequence(e,n){let r=n.subContextCount,o=n,i=e.options;if(i&&(i.params||i.delay)&&(o=n.createSubContext(i),o.transformIntoNewTimeline(),i.delay!=null)){o.previousNode.type==A.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Es);let s=et(i.delay);o.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>me(this,s,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>r&&o.transformIntoNewTimeline()),n.previousNode=e}visitGroup(e,n){let r=[],o=n.currentTimeline.currentTime,i=e.options&&e.options.delay?et(e.options.delay):0;e.steps.forEach(s=>{let a=n.createSubContext(e.options);i&&a.delayNextStep(i),me(this,s,a),o=Math.max(o,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(s=>n.currentTimeline.mergeTimelineCollectedStyles(s)),n.transformIntoNewTimeline(o),n.previousNode=e}_visitTiming(e,n){if(e.dynamic){let r=e.strValue,o=n.params?er(r,n.params,n.errors):r;return Jr(o,n.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,n){let r=n.currentAnimateTimings=this._visitTiming(e.timings,n),o=n.currentTimeline;r.delay&&(n.incrementTime(r.delay),o.snapshotCurrentStyles());let i=e.style;i.type==A.Keyframes?this.visitKeyframes(i,n):(n.incrementTime(r.duration),this.visitStyle(i,n),o.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=e}visitStyle(e,n){let r=n.currentTimeline,o=n.currentAnimateTimings;!o&&r.hasCurrentStyleProperties()&&r.forwardFrame();let i=o&&o.easing||e.easing;e.isEmptyStep?r.applyEmptyStep(i):r.setStyles(e.styles,i,n.errors,n.options),n.previousNode=e}visitKeyframes(e,n){let r=n.currentAnimateTimings,o=n.currentTimeline.duration,i=r.duration,a=n.createSubContext().currentTimeline;a.easing=r.easing,e.styles.forEach(c=>{let l=c.offset||0;a.forwardTime(l*i),a.setStyles(c.styles,c.easing,n.errors,n.options),a.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(a),n.transformIntoNewTimeline(o+i),n.previousNode=e}visitQuery(e,n){let r=n.currentTimeline.currentTime,o=e.options||{},i=o.delay?et(o.delay):0;i&&(n.previousNode.type===A.Style||r==0&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Es);let s=r,a=n.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!o.optional,n.errors);n.currentQueryTotal=a.length;let c=null;a.forEach((l,u)=>{n.currentQueryIndex=u;let d=n.createSubContext(e.options,l);i&&d.delayNextStep(i),l===n.element&&(c=d.currentTimeline),me(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe();let p=d.currentTimeline.currentTime;s=Math.max(s,p)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(s),c&&(n.currentTimeline.mergeTimelineCollectedStyles(c),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=e}visitStagger(e,n){let r=n.parentContext,o=n.currentTimeline,i=e.timings,s=Math.abs(i.duration),a=s*(n.currentQueryTotal-1),c=s*n.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":c=a-c;break;case"full":c=r.currentStaggerTime;break}let u=n.currentTimeline;c&&u.delayNextStep(c);let d=u.currentTime;me(this,e.animation,n),n.previousNode=e,r.currentStaggerTime=o.currentTime-d+(o.startTime-r.currentTimeline.startTime)}},Es={},pu=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Es;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,n,r,o,i,s,a,c){this._driver=e,this.element=n,this.subInstructions=r,this._enterClassName=o,this._leaveClassName=i,this.errors=s,this.timelines=a,this.currentTimeline=c||new Is(this._driver,n,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,n){if(!e)return;let r=e,o=this.options;r.duration!=null&&(o.duration=et(r.duration)),r.delay!=null&&(o.delay=et(r.delay));let i=r.params;if(i){let s=o.params;s||(s=this.options.params={}),Object.keys(i).forEach(a=>{(!n||!s.hasOwnProperty(a))&&(s[a]=er(i[a],s,this.errors))})}}_copyOptions(){let e={};if(this.options){let n=this.options.params;if(n){let r=e.params={};Object.keys(n).forEach(o=>{r[o]=n[o]})}}return e}createSubContext(e=null,n,r){let o=n||this.element,i=new t(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,r||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(e){return this.previousNode=Es,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,n,r){let o={duration:n??e.duration,delay:this.currentTimeline.currentTime+(r??0)+e.delay,easing:""},i=new hu(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,o,e.stretchStartingKeyframe);return this.timelines.push(i),o}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,n,r,o,i,s){let a=[];if(o&&a.push(this.element),e.length>0){e=e.replace(eb,"."+this._enterClassName),e=e.replace(nb,"."+this._leaveClassName);let c=r!=1,l=this._driver.query(this.element,e,c);r!==0&&(l=r<0?l.slice(l.length+r,l.length):l.slice(0,r)),a.push(...l)}return!i&&a.length==0&&s.push(ig(n)),a}},Is=class t{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,n,r,o){this._driver=e,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=o,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let n=this._keyframes.size===1&&this._pendingStyles.size;this.duration||n?(this.forwardTime(this.currentTime+e),n&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Jw,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,n){this._localTimelineStyles.set(e,n),this._globalTimelineStyles.set(e,n),this._styleSummary.set(e,{time:this.currentTime,value:n})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[n,r]of this._globalTimelineStyles)this._backFill.set(n,r||je),this._currentKeyframe.set(n,je);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,n,r,o){n&&this._previousKeyframe.set("easing",n);let i=o&&o.params||{},s=rb(e,this._globalTimelineStyles);for(let[a,c]of s){let l=er(c,i,r);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??je),this._updateStyle(a,l)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,n)=>{this._currentKeyframe.set(n,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,n)=>{this._currentKeyframe.has(n)||this._currentKeyframe.set(n,e)}))}snapshotCurrentStyles(){for(let[e,n]of this._localTimelineStyles)this._pendingStyles.set(e,n),this._updateStyle(e,n)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let n in this._currentKeyframe)e.push(n);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((n,r)=>{let o=this._styleSummary.get(r);(!o||n.time>o.time)&&this._updateStyle(r,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,n=new Set,r=this._keyframes.size===1&&this.duration===0,o=[];this._keyframes.forEach((a,c)=>{let l=new Map([...this._backFill,...a]);l.forEach((u,d)=>{u===Qr?e.add(d):u===je&&n.add(d)}),r||l.set("offset",c/this.duration),o.push(l)});let i=[...e.values()],s=[...n.values()];if(r){let a=o[0],c=new Map(a);a.set("offset",0),c.set("offset",1),o=[a,c]}return Tu(this.element,o,i,s,this.duration,this.startTime,this.easing,!1)}},hu=class extends Is{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,n,r,o,i,s,a=!1){super(e,n,s.delay),this.keyframes=r,this.preStyleProps=o,this.postStyleProps=i,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:n,duration:r,easing:o}=this.timings;if(this._stretchStartingKeyframe&&n){let i=[],s=r+n,a=n/s,c=new Map(e[0]);c.set("offset",0),i.push(c);let l=new Map(e[0]);l.set("offset",Ng(a)),i.push(l);let u=e.length-1;for(let d=1;d<=u;d++){let p=new Map(e[d]),f=p.get("offset"),h=n+f*r;p.set("offset",Ng(h/s)),i.push(p)}r=s,n=0,o="",e=i}return Tu(this.element,e,this.preStyleProps,this.postStyleProps,r,n,o,!0)}};function Ng(t,e=3){let n=Math.pow(10,e-1);return Math.round(t*n)/n}function rb(t,e){let n=new Map,r;return t.forEach(o=>{if(o==="*"){r??=e.keys();for(let i of r)n.set(i,je)}else for(let[i,s]of o)n.set(i,s)}),n}function xg(t,e,n,r,o,i,s,a,c,l,u,d,p){return{type:0,element:t,triggerName:e,isRemovalTransition:o,fromState:n,fromStyles:i,toState:r,toStyles:s,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:d,errors:p}}var ru={},Ds=class{_triggerName;ast;_stateStyles;constructor(e,n,r){this._triggerName=e,this.ast=n,this._stateStyles=r}match(e,n,r,o){return ob(this.ast.matchers,e,n,r,o)}buildStyles(e,n,r){let o=this._stateStyles.get("*");return e!==void 0&&(o=this._stateStyles.get(e?.toString())||o),o?o.buildStyles(n,r):new Map}build(e,n,r,o,i,s,a,c,l,u){let d=[],p=this.ast.options&&this.ast.options.params||ru,f=a&&a.params||ru,h=this.buildStyles(r,f,d),m=c&&c.params||ru,v=this.buildStyles(o,m,d),_=new Set,L=new Map,K=new Map,te=o==="void",gn={params:Bg(m,p),delay:this.ast.options?.delay},Be=u?[]:wu(e,n,this.ast.animation,i,s,h,v,gn,l,d),ae=0;return Be.forEach(de=>{ae=Math.max(de.duration+de.delay,ae)}),d.length?xg(n,this._triggerName,r,o,te,h,v,[],[],L,K,ae,d):(Be.forEach(de=>{let Rt=de.element,yn=he(L,Rt,new Set);de.preStyleProps.forEach(Ot=>yn.add(Ot));let bu=he(K,Rt,new Set);de.postStyleProps.forEach(Ot=>bu.add(Ot)),Rt!==n&&_.add(Rt)}),xg(n,this._triggerName,r,o,te,h,v,Be,[..._.values()],L,K,ae))}};function ob(t,e,n,r,o){return t.some(i=>i(e,n,r,o))}function Bg(t,e){let n=G({},e);return Object.entries(t).forEach(([r,o])=>{o!=null&&(n[r]=o)}),n}var mu=class{styles;defaultParams;normalizer;constructor(e,n,r){this.styles=e,this.defaultParams=n,this.normalizer=r}buildStyles(e,n){let r=new Map,o=Bg(e,this.defaultParams);return this.styles.styles.forEach(i=>{typeof i!="string"&&i.forEach((s,a)=>{s&&(s=er(s,o,n));let c=this.normalizer.normalizePropertyName(a,n);s=this.normalizer.normalizeStyleValue(a,c,s,n),r.set(a,s)})}),r}};function ib(t,e,n){return new gu(t,e,n)}var gu=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,n,r){this.name=e,this.ast=n,this._normalizer=r,n.states.forEach(o=>{let i=o.options&&o.options.params||{};this.states.set(o.name,new mu(o.style,i,r))}),Ag(this.states,"true","1"),Ag(this.states,"false","0"),n.transitions.forEach(o=>{this.transitionFactories.push(new Ds(e,o,this.states))}),this.fallbackTransition=sb(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,n,r,o){return this.transitionFactories.find(s=>s.match(e,n,r,o))||null}matchStyles(e,n,r){return this.fallbackTransition.buildStyles(e,n,r)}};function sb(t,e,n){let r=[(s,a)=>!0],o={type:A.Sequence,steps:[],options:null},i={type:A.Transition,animation:o,matchers:r,options:null,queryCount:0,depCount:0};return new Ds(t,i,e)}function Ag(t,e,n){t.has(e)?t.has(n)||t.set(n,t.get(e)):t.has(n)&&t.set(e,t.get(n))}var ab=new nr,yu=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,n,r){this.bodyNode=e,this._driver=n,this._normalizer=r}register(e,n){let r=[],o=[],i=_u(this._driver,n,r,o);if(r.length)throw dg(r);this._animations.set(e,i)}_buildPlayer(e,n,r){let o=e.element,i=Ql(this._normalizer,e.keyframes,n,r);return this._driver.animate(o,i,e.duration,e.delay,e.easing,[],!0)}create(e,n,r={}){let o=[],i=this._animations.get(e),s,a=new Map;if(i?(s=wu(this._driver,n,i,us,Kr,new Map,new Map,r,ab,o),s.forEach(u=>{let d=he(a,u.element,new Map);u.postStyleProps.forEach(p=>d.set(p,null))})):(o.push(fg()),s=[]),o.length)throw pg(o);a.forEach((u,d)=>{u.forEach((p,f)=>{u.set(f,this._driver.computeStyle(d,f,je))})});let c=s.map(u=>{let d=a.get(u.element);return this._buildPlayer(u,new Map,d)}),l=dt(c);return this._playersById.set(e,l),l.onDestroy(()=>this.destroy(e)),this.players.push(l),l}destroy(e){let n=this._getPlayer(e);n.destroy(),this._playersById.delete(e);let r=this.players.indexOf(n);r>=0&&this.players.splice(r,1)}_getPlayer(e){let n=this._playersById.get(e);if(!n)throw hg(e);return n}listen(e,n,r,o){let i=cs(n,"","","");return as(this._getPlayer(e),r,i,o),()=>{}}command(e,n,r,o){if(r=="register"){this.register(e,o[0]);return}if(r=="create"){let s=o[0]||{};this.create(e,n,s);return}let i=this._getPlayer(e);switch(r){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(e);break}}},kg="ng-animate-queued",cb=".ng-animate-queued",ou="ng-animate-disabled",lb=".ng-animate-disabled",ub="ng-star-inserted",db=".ng-star-inserted",fb=[],$g={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},pb={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},He="__ng_removed",eo=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,n=""){this.namespaceId=n;let r=e&&e.hasOwnProperty("value"),o=r?e.value:e;if(this.value=mb(o),r){let i=e,{value:s}=i,a=Cs(i,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let n=e.params;if(n){let r=this.options.params;Object.keys(n).forEach(o=>{r[o]==null&&(r[o]=n[o])})}}},Xr="void",iu=new eo(Xr),vu=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,n,r){this.id=e,this.hostElement=n,this._engine=r,this._hostClassName="ng-tns-"+e,Ce(n,this._hostClassName)}listen(e,n,r,o){if(!this._triggers.has(n))throw mg(r,n);if(r==null||r.length==0)throw gg(n);if(!gb(r))throw yg(r,n);let i=he(this._elementListeners,e,[]),s={name:n,phase:r,callback:o};i.push(s);let a=he(this._engine.statesByElement,e,new Map);return a.has(n)||(Ce(e,Zr),Ce(e,Zr+"-"+n),a.set(n,iu)),()=>{this._engine.afterFlush(()=>{let c=i.indexOf(s);c>=0&&i.splice(c,1),this._triggers.has(n)||a.delete(n)})}}register(e,n){return this._triggers.has(e)?!1:(this._triggers.set(e,n),!0)}_getTrigger(e){let n=this._triggers.get(e);if(!n)throw vg(e);return n}trigger(e,n,r,o=!0){let i=this._getTrigger(n),s=new to(this.id,n,e),a=this._engine.statesByElement.get(e);a||(Ce(e,Zr),Ce(e,Zr+"-"+n),this._engine.statesByElement.set(e,a=new Map));let c=a.get(n),l=new eo(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(n,l),c||(c=iu),!(l.value===Xr)&&c.value===l.value){if(!Eb(c.params,l.params)){let m=[],v=i.matchStyles(c.value,c.params,m),_=i.matchStyles(l.value,l.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{kt(e,v),Ve(e,_)})}return}let p=he(this._engine.playersByElement,e,[]);p.forEach(m=>{m.namespaceId==this.id&&m.triggerName==n&&m.queued&&m.destroy()});let f=i.matchTransition(c.value,l.value,e,l.params),h=!1;if(!f){if(!o)return;f=i.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:n,transition:f,fromState:c,toState:l,player:s,isFallbackTransition:h}),h||(Ce(e,kg),s.onStart(()=>{tr(e,kg)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);let v=this._engine.playersByElement.get(e);if(v){let _=v.indexOf(s);_>=0&&v.splice(_,1)}}),this.players.push(s),p.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(n=>n.delete(e)),this._elementListeners.forEach((n,r)=>{this._elementListeners.set(r,n.filter(o=>o.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let n=this._engine.playersByElement.get(e);n&&(n.forEach(r=>r.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,n){let r=this._engine.driver.query(e,Yr,!0);r.forEach(o=>{if(o[He])return;let i=this._engine.fetchNamespacesByElement(o);i.size?i.forEach(s=>s.triggerLeaveAnimation(o,n,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(e,n,r,o){let i=this._engine.statesByElement.get(e),s=new Map;if(i){let a=[];if(i.forEach((c,l)=>{if(s.set(l,c.value),this._triggers.has(l)){let u=this.trigger(e,l,Xr,o);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,n,s),r&&dt(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let n=this._elementListeners.get(e),r=this._engine.statesByElement.get(e);if(n&&r){let o=new Set;n.forEach(i=>{let s=i.name;if(o.has(s))return;o.add(s);let c=this._triggers.get(s).fallbackTransition,l=r.get(s)||iu,u=new eo(Xr),d=new to(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:c,fromState:l,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,n){let r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,n),this.triggerLeaveAnimation(e,n,!0))return;let o=!1;if(r.totalAnimations){let i=r.players.length?r.playersByQueriedElement.get(e):[];if(i&&i.length)o=!0;else{let s=e;for(;s=s.parentNode;)if(r.statesByElement.get(s)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(e),o)r.markElementAsRemoved(this.id,e,!1,n);else{let i=e[He];(!i||i===$g)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,n))}}insertNode(e,n){Ce(e,this._hostClassName)}drainQueuedTransitions(e){let n=[];return this._queue.forEach(r=>{let o=r.player;if(o.destroyed)return;let i=r.element,s=this._elementListeners.get(i);s&&s.forEach(a=>{if(a.name==r.triggerName){let c=cs(i,r.triggerName,r.fromState.value,r.toState.value);c._data=e,as(r.player,a.phase,c,a.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):n.push(r)}),this._queue=[],n.sort((r,o)=>{let i=r.transition.ast.depCount,s=o.transition.ast.depCount;return i==0||s==0?i-s:this._engine.driver.containsElement(r.element,o.element)?1:-1})}destroy(e){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Eu=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,n)=>{};_onRemovalComplete(e,n){this.onRemovalComplete(e,n)}constructor(e,n,r){this.bodyNode=e,this.driver=n,this._normalizer=r}get queuedPlayers(){let e=[];return this._namespaceList.forEach(n=>{n.players.forEach(r=>{r.queued&&e.push(r)})}),e}createNamespace(e,n){let r=new vu(e,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(r,n):(this.newHostElements.set(n,r),this.collectEnterElement(n)),this._namespaceLookup[e]=r}_balanceNamespaceList(e,n){let r=this._namespaceList,o=this.namespacesByHostElement;if(r.length-1>=0){let s=!1,a=this.driver.getParentElement(n);for(;a;){let c=o.get(a);if(c){let l=r.indexOf(c);r.splice(l+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||r.unshift(e)}else r.push(e);return o.set(n,e),e}register(e,n){let r=this._namespaceLookup[e];return r||(r=this.createNamespace(e,n)),r}registerTrigger(e,n,r){let o=this._namespaceLookup[e];o&&o.register(n,r)&&this.totalAnimations++}destroy(e,n){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let r=this._fetchNamespace(e);this.namespacesByHostElement.delete(r.hostElement);let o=this._namespaceList.indexOf(r);o>=0&&this._namespaceList.splice(o,1),r.destroy(n),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let n=new Set,r=this.statesByElement.get(e);if(r){for(let o of r.values())if(o.namespaceId){let i=this._fetchNamespace(o.namespaceId);i&&n.add(i)}}return n}trigger(e,n,r,o){if(gs(n)){let i=this._fetchNamespace(e);if(i)return i.trigger(n,r,o),!0}return!1}insertNode(e,n,r,o){if(!gs(n))return;let i=n[He];if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;let s=this.collectedLeaveElements.indexOf(n);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){let s=this._fetchNamespace(e);s&&s.insertNode(n,r)}o&&this.collectEnterElement(n)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,n){n?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Ce(e,ou)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),tr(e,ou))}removeNode(e,n,r){if(gs(n)){let o=e?this._fetchNamespace(e):null;o?o.removeNode(n,r):this.markElementAsRemoved(e,n,!1,r);let i=this.namespacesByHostElement.get(n);i&&i.id!==e&&i.removeNode(n,r)}else this._onRemovalComplete(n,r)}markElementAsRemoved(e,n,r,o,i){this.collectedLeaveElements.push(n),n[He]={namespaceId:e,setForRemoval:o,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:i}}listen(e,n,r,o,i){return gs(n)?this._fetchNamespace(e).listen(n,r,o,i):()=>{}}_buildInstruction(e,n,r,o,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,r,o,e.fromState.options,e.toState.options,n,i)}destroyInnerAnimations(e){let n=this.driver.query(e,Yr,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),this.playersByQueriedElement.size!=0&&(n=this.driver.query(e,ds,!0),n.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(e){let n=this.playersByElement.get(e);n&&n.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(e){let n=this.playersByQueriedElement.get(e);n&&n.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return dt(this.players).onDone(()=>e());e()})}processLeaveNode(e){let n=e[He];if(n&&n.setForRemoval){if(e[He]=$g,n.namespaceId){this.destroyInnerAnimations(e);let r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}e.classList?.contains(ou)&&this.markElementAsDisabled(e,!1),this.driver.query(e,lb,!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,o)=>this._balanceNamespaceList(r,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++){let o=this.collectedEnterElements[r];Ce(o,ub)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let r=[];try{n=this._flushAnimations(r,e)}finally{for(let o=0;o<r.length;o++)r[o]()}}else for(let r=0;r<this.collectedLeaveElements.length;r++){let o=this.collectedLeaveElements[r];this.processLeaveNode(o)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(r=>r()),this._flushFns=[],this._whenQuietFns.length){let r=this._whenQuietFns;this._whenQuietFns=[],n.length?dt(n).onDone(()=>{r.forEach(o=>o())}):r.forEach(o=>o())}}reportError(e){throw Eg(e)}_flushAnimations(e,n){let r=new nr,o=[],i=new Map,s=[],a=new Map,c=new Map,l=new Map,u=new Set;this.disabledNodes.forEach(y=>{u.add(y);let I=this.driver.query(y,cb,!0);for(let T=0;T<I.length;T++)u.add(I[T])});let d=this.bodyNode,p=Array.from(this.statesByElement.keys()),f=Pg(p,this.collectedEnterElements),h=new Map,m=0;f.forEach((y,I)=>{let T=us+m++;h.set(I,T),y.forEach(R=>Ce(R,T))});let v=[],_=new Set,L=new Set;for(let y=0;y<this.collectedLeaveElements.length;y++){let I=this.collectedLeaveElements[y],T=I[He];T&&T.setForRemoval&&(v.push(I),_.add(I),T.hasAnimation?this.driver.query(I,db,!0).forEach(R=>_.add(R)):L.add(I))}let K=new Map,te=Pg(p,Array.from(_));te.forEach((y,I)=>{let T=Kr+m++;K.set(I,T),y.forEach(R=>Ce(R,T))}),e.push(()=>{f.forEach((y,I)=>{let T=h.get(I);y.forEach(R=>tr(R,T))}),te.forEach((y,I)=>{let T=K.get(I);y.forEach(R=>tr(R,T))}),v.forEach(y=>{this.processLeaveNode(y)})});let gn=[],Be=[];for(let y=this._namespaceList.length-1;y>=0;y--)this._namespaceList[y].drainQueuedTransitions(n).forEach(T=>{let R=T.player,X=T.element;if(gn.push(R),this.collectedEnterElements.length){let re=X[He];if(re&&re.setForMove){if(re.previousTriggersValues&&re.previousTriggersValues.has(T.triggerName)){let Pt=re.previousTriggersValues.get(T.triggerName),Ie=this.statesByElement.get(T.element);if(Ie&&Ie.has(T.triggerName)){let no=Ie.get(T.triggerName);no.value=Pt,Ie.set(T.triggerName,no)}}R.destroy();return}}let $e=!d||!this.driver.containsElement(d,X),ge=K.get(X),ft=h.get(X),q=this._buildInstruction(T,r,ft,ge,$e);if(q.errors&&q.errors.length){Be.push(q);return}if($e){R.onStart(()=>kt(X,q.fromStyles)),R.onDestroy(()=>Ve(X,q.toStyles)),o.push(R);return}if(T.isFallbackTransition){R.onStart(()=>kt(X,q.fromStyles)),R.onDestroy(()=>Ve(X,q.toStyles)),o.push(R);return}let Mu=[];q.timelines.forEach(re=>{re.stretchStartingKeyframe=!0,this.disabledNodes.has(re.element)||Mu.push(re)}),q.timelines=Mu,r.append(X,q.timelines);let zg={instruction:q,player:R,element:X};s.push(zg),q.queriedElements.forEach(re=>he(a,re,[]).push(R)),q.preStyleProps.forEach((re,Pt)=>{if(re.size){let Ie=c.get(Pt);Ie||c.set(Pt,Ie=new Set),re.forEach((no,Ss)=>Ie.add(Ss))}}),q.postStyleProps.forEach((re,Pt)=>{let Ie=l.get(Pt);Ie||l.set(Pt,Ie=new Set),re.forEach((no,Ss)=>Ie.add(Ss))})});if(Be.length){let y=[];Be.forEach(I=>{y.push(Ig(I.triggerName,I.errors))}),gn.forEach(I=>I.destroy()),this.reportError(y)}let ae=new Map,de=new Map;s.forEach(y=>{let I=y.element;r.has(I)&&(de.set(I,I),this._beforeAnimationBuild(y.player.namespaceId,y.instruction,ae))}),o.forEach(y=>{let I=y.element;this._getPreviousPlayers(I,!1,y.namespaceId,y.triggerName,null).forEach(R=>{he(ae,I,[]).push(R),R.destroy()})});let Rt=v.filter(y=>Lg(y,c,l)),yn=new Map;Og(yn,this.driver,L,l,je).forEach(y=>{Lg(y,c,l)&&Rt.push(y)});let Ot=new Map;f.forEach((y,I)=>{Og(Ot,this.driver,new Set(y),c,Qr)}),Rt.forEach(y=>{let I=yn.get(y),T=Ot.get(y);yn.set(y,new Map([...I?.entries()??[],...T?.entries()??[]]))});let bs=[],Su=[],Cu={};s.forEach(y=>{let{element:I,player:T,instruction:R}=y;if(r.has(I)){if(u.has(I)){T.onDestroy(()=>Ve(I,R.toStyles)),T.disabled=!0,T.overrideTotalTime(R.totalTime),o.push(T);return}let X=Cu;if(de.size>1){let ge=I,ft=[];for(;ge=ge.parentNode;){let q=de.get(ge);if(q){X=q;break}ft.push(ge)}ft.forEach(q=>de.set(q,X))}let $e=this._buildAnimation(T.namespaceId,R,ae,i,Ot,yn);if(T.setRealPlayer($e),X===Cu)bs.push(T);else{let ge=this.playersByElement.get(X);ge&&ge.length&&(T.parentPlayer=dt(ge)),o.push(T)}}else kt(I,R.fromStyles),T.onDestroy(()=>Ve(I,R.toStyles)),Su.push(T),u.has(I)&&o.push(T)}),Su.forEach(y=>{let I=i.get(y.element);if(I&&I.length){let T=dt(I);y.setRealPlayer(T)}}),o.forEach(y=>{y.parentPlayer?y.syncPlayerEvents(y.parentPlayer):y.destroy()});for(let y=0;y<v.length;y++){let I=v[y],T=I[He];if(tr(I,Kr),T&&T.hasAnimation)continue;let R=[];if(a.size){let $e=a.get(I);$e&&$e.length&&R.push(...$e);let ge=this.driver.query(I,ds,!0);for(let ft=0;ft<ge.length;ft++){let q=a.get(ge[ft]);q&&q.length&&R.push(...q)}}let X=R.filter($e=>!$e.destroyed);X.length?yb(this,I,X):this.processLeaveNode(I)}return v.length=0,bs.forEach(y=>{this.players.push(y),y.onDone(()=>{y.destroy();let I=this.players.indexOf(y);this.players.splice(I,1)}),y.play()}),bs}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,n,r,o,i){let s=[];if(n){let a=this.playersByQueriedElement.get(e);a&&(s=a)}else{let a=this.playersByElement.get(e);if(a){let c=!i||i==Xr;a.forEach(l=>{l.queued||!c&&l.triggerName!=o||s.push(l)})}}return(r||o)&&(s=s.filter(a=>!(r&&r!=a.namespaceId||o&&o!=a.triggerName))),s}_beforeAnimationBuild(e,n,r){let o=n.triggerName,i=n.element,s=n.isRemovalTransition?void 0:e,a=n.isRemovalTransition?void 0:o;for(let c of n.timelines){let l=c.element,u=l!==i,d=he(r,l,[]);this._getPreviousPlayers(l,u,s,a,n.toState).forEach(f=>{let h=f.getRealPlayer();h.beforeDestroy&&h.beforeDestroy(),f.destroy(),d.push(f)})}kt(i,n.fromStyles)}_buildAnimation(e,n,r,o,i,s){let a=n.triggerName,c=n.element,l=[],u=new Set,d=new Set,p=n.timelines.map(h=>{let m=h.element;u.add(m);let v=m[He];if(v&&v.removedBeforeQueried)return new ut(h.duration,h.delay);let _=m!==c,L=vb((r.get(m)||fb).map(ae=>ae.getRealPlayer())).filter(ae=>{let de=ae;return de.element?de.element===m:!1}),K=i.get(m),te=s.get(m),gn=Ql(this._normalizer,h.keyframes,K,te),Be=this._buildPlayer(h,gn,L);if(h.subTimeline&&o&&d.add(m),_){let ae=new to(e,a,m);ae.setRealPlayer(Be),l.push(ae)}return Be});l.forEach(h=>{he(this.playersByQueriedElement,h.element,[]).push(h),h.onDone(()=>hb(this.playersByQueriedElement,h.element,h))}),u.forEach(h=>Ce(h,Xl));let f=dt(p);return f.onDestroy(()=>{u.forEach(h=>tr(h,Xl)),Ve(c,n.toStyles)}),d.forEach(h=>{he(o,h,[]).push(f)}),f}_buildPlayer(e,n,r){return n.length>0?this.driver.animate(e.element,n,e.duration,e.delay,e.easing,r):new ut(e.duration,e.delay)}},to=class{namespaceId;triggerName;element;_player=new ut;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,n,r){this.namespaceId=e,this.triggerName=n,this.element=r}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((n,r)=>{n.forEach(o=>as(e,r,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let n=this._player;n.triggerCallback&&e.onStart(()=>n.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,n){he(this._queuedCallbacks,e,[]).push(n)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let n=this._player;n.triggerCallback&&n.triggerCallback(e)}};function hb(t,e,n){let r=t.get(e);if(r){if(r.length){let o=r.indexOf(n);r.splice(o,1)}r.length==0&&t.delete(e)}return r}function mb(t){return t??null}function gs(t){return t&&t.nodeType===1}function gb(t){return t=="start"||t=="done"}function Rg(t,e){let n=t.style.display;return t.style.display=e??"none",n}function Og(t,e,n,r,o){let i=[];n.forEach(c=>i.push(Rg(c)));let s=[];r.forEach((c,l)=>{let u=new Map;c.forEach(d=>{let p=e.computeStyle(l,d,o);u.set(d,p),(!p||p.length==0)&&(l[He]=pb,s.push(l))}),t.set(l,u)});let a=0;return n.forEach(c=>Rg(c,i[a++])),s}function Pg(t,e){let n=new Map;if(t.forEach(a=>n.set(a,[])),e.length==0)return n;let r=1,o=new Set(e),i=new Map;function s(a){if(!a)return r;let c=i.get(a);if(c)return c;let l=a.parentNode;return n.has(l)?c=l:o.has(l)?c=r:c=s(l),i.set(a,c),c}return e.forEach(a=>{let c=s(a);c!==r&&n.get(c).push(a)}),n}function Ce(t,e){t.classList?.add(e)}function tr(t,e){t.classList?.remove(e)}function yb(t,e,n){dt(n).onDone(()=>t.processLeaveNode(e))}function vb(t){let e=[];return Ug(t,e),e}function Ug(t,e){for(let n=0;n<t.length;n++){let r=t[n];r instanceof Jn?Ug(r.players,e):e.push(r)}}function Eb(t,e){let n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(let o=0;o<n.length;o++){let i=n[o];if(!e.hasOwnProperty(i)||t[i]!==e[i])return!1}return!0}function Lg(t,e,n){let r=n.get(t);if(!r)return!1;let o=e.get(t);return o?r.forEach(i=>o.add(i)):e.set(t,r),n.delete(t),!0}var _s=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,n)=>{};constructor(e,n,r){this._driver=n,this._normalizer=r,this._transitionEngine=new Eu(e.body,n,r),this._timelineEngine=new yu(e.body,n,r),this._transitionEngine.onRemovalComplete=(o,i)=>this.onRemovalComplete(o,i)}registerTrigger(e,n,r,o,i){let s=e+"-"+o,a=this._triggerCache[s];if(!a){let c=[],l=[],u=_u(this._driver,i,c,l);if(c.length)throw ug(o,c);a=ib(o,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(n,o,a)}register(e,n){this._transitionEngine.register(e,n)}destroy(e,n){this._transitionEngine.destroy(e,n)}onInsert(e,n,r,o){this._transitionEngine.insertNode(e,n,r,o)}onRemove(e,n,r){this._transitionEngine.removeNode(e,n,r)}disableAnimations(e,n){this._transitionEngine.markElementAsDisabled(e,n)}process(e,n,r,o){if(r.charAt(0)=="@"){let[i,s]=Kl(r),a=o;this._timelineEngine.command(i,n,s,a)}else this._transitionEngine.trigger(e,n,r,o)}listen(e,n,r,o,i){if(r.charAt(0)=="@"){let[s,a]=Kl(r);return this._timelineEngine.listen(s,n,a,i)}return this._transitionEngine.listen(e,n,r,o,i)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function Ib(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=su(e[0]),e.length>1&&(r=su(e[e.length-1]))):e instanceof Map&&(n=su(e)),n||r?new Db(t,n,r):null}var Db=(()=>{class t{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(n,r,o){this._element=n,this._startStyles=r,this._endStyles=o;let i=t.initialStylesByElement.get(n);i||t.initialStylesByElement.set(n,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Ve(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ve(this._element,this._initialStyles),this._endStyles&&(Ve(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(kt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(kt(this._element,this._endStyles),this._endStyles=null),Ve(this._element,this._initialStyles),this._state=3)}}return t})();function su(t){let e=null;return t.forEach((n,r)=>{_b(r)&&(e=e||new Map,e.set(r,n))}),e}function _b(t){return t==="display"||t==="position"}var Ts=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,n,r,o){this.element=e,this.keyframes=n,this.options=r,this._specialStyles=o,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let e=this.keyframes,n=this._triggerWebAnimation(this.element,e,this.options);if(!n)return this._onFinish(),null;this.domPlayer=n,this._finalKeyframe=e.length?e[e.length-1]:new Map;let r=()=>this._onFinish();return n.addEventListener("finish",r),this.onDestroy(()=>{n.removeEventListener("finish",r)}),n}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(e){let n=[];return e.forEach(r=>{n.push(Object.fromEntries(r))}),n}_triggerWebAnimation(e,n,r){let o=this._convertKeyframesToObject(n);try{return e.animate(o,r)}catch(i){return null}}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){let e=this._buildPlayer();e&&(this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),e.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish())}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer?.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=e*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,o)=>{o!=="offset"&&e.set(o,this._finished?r:ps(this.element,o))}),this.currentSnapshot=e}triggerCallback(e){let n=e==="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},Iu=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,n){return Zl(e,n)}getParentElement(e){return ls(e)}query(e,n,r){return Yl(e,n,r)}computeStyle(e,n,r){return ps(e,n)}animate(e,n,r,o,i,s=[]){let a=o==0?"both":"forwards",c={duration:r,delay:o,fill:a};i&&(c.easing=i);let l=new Map,u=s.filter(f=>f instanceof Ts);wg(r,o)&&u.forEach(f=>{f.currentSnapshot.forEach((h,m)=>l.set(m,h))});let d=_g(n).map(f=>new Map(f));d=bg(e,d,l);let p=Ib(e,d);return new Ts(e,d,c,p)}};function pV(t,e){return t==="noop"?new _s(e,new Vg,new cu):new _s(e,new Iu,new lu)}var Fg=class{_driver;_animationAst;constructor(e,n){this._driver=e;let r=[],i=_u(e,n,r,[]);if(r.length)throw cg(r);this._animationAst=i}buildTimelines(e,n,r,o,i){let s=Array.isArray(n)?eu(n):n,a=Array.isArray(r)?eu(r):r,c=[];i=i||new nr;let l=wu(this._driver,e,this._animationAst,us,Kr,s,a,o,i,c);if(c.length)throw lg(c);return l}},ys="@",qg="@.disabled",ws=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,n,r,o){this.namespaceId=e,this.delegate=n,this.engine=r,this._onDestroy=o}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,n){return this.delegate.createElement(e,n)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,n){this.delegate.appendChild(e,n),this.engine.onInsert(this.namespaceId,n,e,!1)}insertBefore(e,n,r,o=!0){this.delegate.insertBefore(e,n,r),this.engine.onInsert(this.namespaceId,n,e,o)}removeChild(e,n,r,o){if(o){this.delegate.removeChild(e,n,r,o);return}this.parentNode(n)&&this.engine.onRemove(this.namespaceId,n,this.delegate)}selectRootElement(e,n){return this.delegate.selectRootElement(e,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,n,r,o){this.delegate.setAttribute(e,n,r,o)}removeAttribute(e,n,r){this.delegate.removeAttribute(e,n,r)}addClass(e,n){this.delegate.addClass(e,n)}removeClass(e,n){this.delegate.removeClass(e,n)}setStyle(e,n,r,o){this.delegate.setStyle(e,n,r,o)}removeStyle(e,n,r){this.delegate.removeStyle(e,n,r)}setProperty(e,n,r){n.charAt(0)==ys&&n==qg?this.disableAnimations(e,!!r):this.delegate.setProperty(e,n,r)}setValue(e,n){this.delegate.setValue(e,n)}listen(e,n,r,o){return this.delegate.listen(e,n,r,o)}disableAnimations(e,n){this.engine.disableAnimations(e,n)}},Du=class extends ws{factory;constructor(e,n,r,o,i){super(n,r,o,i),this.factory=e,this.namespaceId=n}setProperty(e,n,r){n.charAt(0)==ys?n.charAt(1)=="."&&n==qg?(r=r===void 0?!0:!!r,this.disableAnimations(e,r)):this.engine.process(this.namespaceId,e,n.slice(1),r):this.delegate.setProperty(e,n,r)}listen(e,n,r,o){if(n.charAt(0)==ys){let i=Tb(e),s=n.slice(1),a="";return s.charAt(0)!=ys&&([s,a]=wb(s)),this.engine.listen(this.namespaceId,i,s,a,c=>{let l=c._data||-1;this.factory.scheduleListenerCallback(l,r,c)})}return this.delegate.listen(e,n,r,o)}};function Tb(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function wb(t){let e=t.indexOf("."),n=t.substring(0,e),r=t.slice(e+1);return[n,r]}var jg=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,n,r){this.delegate=e,this.engine=n,this._zone=r,n.onRemovalComplete=(o,i)=>{i?.removeChild(null,o)}}createRenderer(e,n){let o=this.delegate.createRenderer(e,n);if(!e||!n?.data?.animation){let l=this._rendererCache,u=l.get(o);if(!u){let d=()=>l.delete(o);u=new ws("",o,this.engine,d),l.set(o,u)}return u}let i=n.id,s=n.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);let a=l=>{Array.isArray(l)?l.forEach(a):this.engine.registerTrigger(i,s,e,l.name,l)};return n.data.animation.forEach(a),new Du(this,s,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,r){if(e>=0&&e<this._microtaskId){this._zone.run(()=>n(r));return}let o=this._animationCallbacksBuffer;o.length==0&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(i=>{let[s,a]=i;s(a)}),this._animationCallbacksBuffer=[]})}),o.push([n,r])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e)}};export{G as a,ee as b,Ms as c,$ as d,k as e,zs as f,ye as g,sr as h,cr as i,ly as j,uy as k,dr as l,ze as m,vy as n,Ey as o,Iy as p,Dy as q,tt as r,Ny as s,Mn as t,Ay as u,ky as v,fr as w,Ry as x,Ks as y,Oy as z,Zs as A,Py as B,yd as C,$o as D,Ly as E,Id as F,jy as G,Vy as H,Xs as I,Hy as J,By as K,Dd as L,_d as M,$y as N,Uy as O,qy as P,g as Q,Jo as R,pe as S,Md as T,P as U,Ge as V,S as W,Ta as X,Sa as Y,De as Z,si as _,Yd as $,Jd as aa,ff as ba,pf as ca,We as da,vi as ea,an as fa,nt as ga,ne as ha,Zt as ia,nc as ja,Df as ka,_f as la,_v as ma,Tv as na,wv as oa,Ae as pa,Sv as qa,bf as ra,Sf as sa,qv as ta,lE as ua,Kn as va,Vr as wa,Ri as xa,gE as ya,un as za,Xc as Aa,_E as Ba,TE as Ca,wE as Da,bE as Ea,SE as Fa,CE as Ga,Bp as Ha,UE as Ia,Yp as Ja,eI as Ka,Pi as La,qn as Ma,pn as Na,lt as Oa,gI as Pa,HI as Qa,Or as Ra,Pr as Sa,bD as Ta,AD as Ua,RD as Va,kh as Wa,qr as Xa,VD as Ya,os as Za,Sl as _a,Ui as $a,D_ as ab,T_ as bb,S_ as cb,C_ as db,N_ as eb,x_ as fb,Jh as gb,em as hb,tm as ib,zr as jb,im as kb,z_ as lb,G_ as mb,W_ as nb,Q_ as ob,K_ as pb,sm as qb,Gi as rb,Nl as sb,am as tb,xl as ub,Al as vb,cm as wb,kl as xb,Rl as yb,um as zb,tT as Ab,dm as Bb,oT as Cb,iT as Db,pm as Eb,hm as Fb,lT as Gb,dT as Hb,fT as Ib,mm as Jb,gm as Kb,hT as Lb,mT as Mb,ym as Nb,vm as Ob,gT as Pb,yT as Qb,Dm as Rb,_m as Sb,MT as Tb,VT as Ub,Mm as Vb,Ol as Wb,Nm as Xb,xm as Yb,WT as Zb,ZT as _b,JT as $b,ew as ac,Ll as bc,nw as cc,rw as dc,Pm as ec,Gj as fc,Wj as gc,Qj as hc,Kj as ic,uw as jc,Yj as kc,Jj as lc,Xj as mc,eV as nc,tV as oc,nV as pc,rV as qc,ls as rc,Dg as sc,Pw as tc,Zl as uc,Yl as vc,us as wc,Kr as xc,_g as yc,$w as zc,wg as Ac,Vg as Bc,Sg as Cc,au as Dc,cu as Ec,lu as Fc,to as Gc,_s as Hc,Ts as Ic,Iu as Jc,pV as Kc,Fg as Lc,ws as Mc,Du as Nc,jg as Oc};