aiservermanager 0.2.0 → 0.3.0

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.
Files changed (30) hide show
  1. package/backend/dist/di/container.js +3 -2
  2. package/backend/dist/di/container.js.map +1 -1
  3. package/backend/dist/di/types.js +2 -1
  4. package/backend/dist/di/types.js.map +1 -1
  5. package/backend/dist/routes/gpuRoutes.js +13 -0
  6. package/backend/dist/routes/gpuRoutes.js.map +1 -1
  7. package/backend/dist/services/detectors/amdLinuxDetector.js +1 -3
  8. package/backend/dist/services/detectors/amdLinuxDetector.js.map +1 -1
  9. package/backend/dist/services/detectors/nvidiaSmiDetector.js +1 -3
  10. package/backend/dist/services/detectors/nvidiaSmiDetector.js.map +1 -1
  11. package/backend/dist/services/detectors/wmiDetector.js +1 -3
  12. package/backend/dist/services/detectors/wmiDetector.js.map +1 -1
  13. package/backend/dist/services/gpuLabelManager.js +112 -0
  14. package/backend/dist/services/gpuLabelManager.js.map +1 -0
  15. package/backend/dist/services/gpuService.js +29 -6
  16. package/backend/dist/services/gpuService.js.map +1 -1
  17. package/backend/dist/services/helpers/gpuDedup.js +0 -2
  18. package/backend/dist/services/helpers/gpuDedup.js.map +1 -1
  19. package/backend/dist/services/llamaAutocompleteService.js +7 -8
  20. package/backend/dist/services/llamaAutocompleteService.js.map +1 -1
  21. package/backend/public/browser/chunk-M2HJXJRB.js +4 -0
  22. package/backend/public/browser/{chunk-34LU6STA.js → chunk-URN45YIO.js} +1 -1
  23. package/backend/public/browser/index.html +1 -1
  24. package/backend/public/browser/{main-OTFURQ4F.js → main-AHJOEU5J.js} +36 -36
  25. package/package.json +1 -1
  26. package/backend/dist/services/enrichers/vulkanEnricher.js +0 -57
  27. package/backend/dist/services/enrichers/vulkanEnricher.js.map +0 -1
  28. package/backend/dist/services/helpers/gpuEngineNames.js +0 -22
  29. package/backend/dist/services/helpers/gpuEngineNames.js.map +0 -1
  30. package/backend/public/browser/chunk-JGNPKRLU.js +0 -4
@@ -0,0 +1,4 @@
1
+ var Qg=Object.defineProperty,Kg=Object.defineProperties;var Zg=Object.getOwnPropertyDescriptors;var ro=Object.getOwnPropertySymbols;var Au=Object.prototype.hasOwnProperty,ku=Object.prototype.propertyIsEnumerable;var xu=(t,e,n)=>e in t?Qg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,G=(t,e)=>{for(var n in e||={})Au.call(e,n)&&xu(t,n,e[n]);if(ro)for(var n of ro(e))ku.call(e,n)&&xu(t,n,e[n]);return t},ee=(t,e)=>Kg(t,Zg(e));var xs=(t,e)=>{var n={};for(var r in t)Au.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&&ku.call(t,r)&&(n[r]=t[r]);return n};var As=(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 ae=null,oo=!1,Ft=1,Yg=null,Z=Symbol("SIGNAL");function I(t){let e=ae;return ae=t,e}function co(){return ae}var jt={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 Vt(t){if(oo)throw new Error("");if(ae===null)return;ae.consumerOnSignalRead(t);let e=ae.producersTail;if(e!==void 0&&e.producer===t)return;let n,r=ae.recomputing;if(r&&(n=e!==void 0?e.nextProducer:ae.producers,n!==void 0&&n.producer===t)){ae.producersTail=n,n.lastReadVersion=t.version,n.knownValidAtEpoch=Ft;return}let o=t.consumersTail;if(o!==void 0&&o.consumer===ae&&(!r||o.knownValidAtEpoch===Ft))return;let i=vn(ae),s={producer:t,consumer:ae,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:Ft,lastReadVersion:t.version,nextConsumer:void 0};ae.producersTail=s,e!==void 0?e.nextProducer=s:ae.producers=s,i&&Lu(t,s)}function Ru(){Ft++}function lo(t){if(!(vn(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Ft)){if(!t.producerMustRecompute(t)&&!yn(t)){ao(t);return}t.producerRecomputeValue(t),ao(t)}}function ks(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||Jg(r)}}finally{oo=e}}function Rs(){return ae?.consumerAllowSignalWrites!==!1}function Jg(t){t.dirty=!0,ks(t),t.consumerMarkedDirty?.(t)}function ao(t){t.dirty=!1,t.lastCleanEpoch=Ft}function mt(t){return t&&Ou(t),I(t)}function Ou(t){if(t.producersTail?.knownValidAtEpoch===Ft){let e=t.producers;for(;e!==void 0;)e.knownValidAtEpoch=null,e=e.nextProducer}t.producersTail=void 0,t.recomputing=!0}function Ht(t,e){I(e),t&&Pu(t)}function Pu(t){t.recomputing=!1;let e=t.producersTail,n=e!==void 0?e.nextProducer:t.producers;if(n!==void 0){if(vn(t))do n=Os(n);while(n!==void 0);e!==void 0?e.nextProducer=void 0:t.producers=void 0}}function yn(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 gt(t){if(vn(t)){let e=t.producers;for(;e!==void 0;)e=Os(e)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function Lu(t,e){let n=t.consumersTail,r=vn(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)Lu(o.producer,o)}function Os(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,!vn(e)){let i=e.producers;for(;i!==void 0;)i=Os(i)}return n}function vn(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function uo(t){Yg?.(t)}function fo(t,e){return Object.is(t,e)}function rr(t,e){let n=Object.create(Xg);n.computation=t,e!==void 0&&(n.equal=e);let r=()=>{if(lo(n),Vt(n),n.value===nr)throw n.error;return n.value};return r[Z]=n,uo(n),r}var io=Symbol("UNSET"),so=Symbol("COMPUTING"),nr=Symbol("ERRORED"),Xg=ee(G({},jt),{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=mt(t),r,o=!1;try{r=t.computation(),I(null),o=e!==io&&e!==nr&&r!==nr&&t.equal(e,r)}catch(i){r=nr,t.error=i}finally{Ht(t,n)}if(o){t.value=e;return}t.value=r,t.version++}});function ey(){throw new Error}var Fu=ey;function ju(t){Fu(t)}function Ps(t){Fu=t}var ty=null;function Ls(t,e){let n=Object.create(or);n.value=t,e!==void 0&&(n.equal=e);let r=()=>Vu(n);return r[Z]=n,uo(n),[r,s=>En(n,s),s=>Fs(n,s)]}function Vu(t){return Vt(t),t.value}function En(t,e){Rs()||ju(t),t.equal(t.value,e)||(t.value=e,ny(t))}function Fs(t,e){Rs()||ju(t),En(t,e(t.value))}var or=ee(G({},jt),{equal:fo,value:void 0,kind:"signal"});function ny(t){t.version++,Ru(),ks(t),ty?.(t)}var js=ee(G({},jt),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function Vs(t){if(t.dirty=!1,t.version>0&&!yn(t))return;t.version++;let e=mt(t);try{t.cleanup(),t.fn()}finally{Ht(t,e)}}var Hs;function po(){return Hs}function $e(t){let e=Hs;return Hs=t,e}var Hu=Symbol("NotFound");function In(t){return t===Hu||t?.name==="\u0275NotFound"}function Bu(t){let e=I(null);try{return t()}finally{I(e)}}function C(t){return typeof t=="function"}function Dn(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=Dn(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 Bt(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{$u(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)$u(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)&&Bt(n,e)}remove(e){let{_finalizers:n}=this;n&&Bt(n,e),e instanceof t&&e._removeParent(this)}};$.EMPTY=(()=>{let t=new $;return t.closed=!0,t})();var Bs=$.EMPTY;function mo(t){return t instanceof $||t&&"closed"in t&&C(t.remove)&&C(t.add)&&C(t.unsubscribe)}function $u(t){C(t)?t():t.unsubscribe()}var Me={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var _n={setTimeout(t,e,...n){let{delegate:r}=_n;return r?.setTimeout?r.setTimeout(t,e,...n):setTimeout(t,e,...n)},clearTimeout(t){let{delegate:e}=_n;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function go(t){_n.setTimeout(()=>{let{onUnhandledError:e}=Me;if(e)e(t);else throw t})}function $t(){}var Uu=$s("C",void 0,void 0);function qu(t){return $s("E",void 0,t)}function zu(t){return $s("N",t,void 0)}function $s(t,e,n){return{kind:t,value:e,error:n}}var Ut=null;function Tn(t){if(Me.useDeprecatedSynchronousErrorHandling){let e=!Ut;if(e&&(Ut={errorThrown:!1,error:null}),t(),e){let{errorThrown:n,error:r}=Ut;if(Ut=null,n)throw r}}else t()}function Gu(t){Me.useDeprecatedSynchronousErrorHandling&&Ut&&(Ut.errorThrown=!0,Ut.error=t)}var qt=class extends ${constructor(e){super(),this.isStopped=!1,e?(this.destination=e,mo(e)&&e.add(this)):this.destination=iy}static create(e,n,r){return new Ne(e,n,r)}next(e){this.isStopped?qs(zu(e),this):this._next(e)}error(e){this.isStopped?qs(qu(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?qs(Uu,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()}}},ry=Function.prototype.bind;function Us(t,e){return ry.call(t,e)}var zs=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 qt{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&&Us(e.next,i),error:e.error&&Us(e.error,i),complete:e.complete&&Us(e.complete,i)}):o=e}this.destination=new zs(o)}};function yo(t){Me.useDeprecatedSynchronousErrorHandling?Gu(t):go(t)}function oy(t){throw t}function qs(t,e){let{onStoppedNotification:n}=Me;n&&_n.setTimeout(()=>n(t,e))}var iy={closed:!0,next:$t,error:oy,complete:$t};var wn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function xe(t){return t}function Wu(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=ay(n)?n:new Ne(n,r,o);return Tn(()=>{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=Qu(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)}[wn](){return this}pipe(...n){return Wu(n)(this)}toPromise(n){return n=Qu(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 Qu(t){var e;return(e=t??Me.Promise)!==null&&e!==void 0?e:Promise}function sy(t){return t&&C(t.next)&&C(t.error)&&C(t.complete)}function ay(t){return t&&t instanceof qt||sy(t)&&mo(t)}function Gs(t){return C(t?.lift)}function x(t){return e=>{if(Gs(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 Ws(t,e,n,r,o)}var Ws=class extends qt{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 Ku(){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 Qs=class extends k{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Gs(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 Ku()(this)}};var bn={schedule(t){let e=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=bn;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}=bn;return(e?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:e}=bn;return(e?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var Zu=Dn(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 Zu}next(n){Tn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Tn(()=>{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(){Tn(()=>{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?Bs:(this.currentObservers=null,i.push(n),new $(()=>{this.currentObservers=null,Bt(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:Bs}};var ir=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 sr={now(){return(sr.delegate||Date).now()},delegate:void 0};var ar=class extends ye{constructor(e=1/0,n=1/0,r=sr){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 cr={setInterval(t,e,...n){let{delegate:r}=cr;return r?.setInterval?r.setInterval(t,e,...n):setInterval(t,e,...n)},clearInterval(t){let{delegate:e}=cr;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var yt=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 cr.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&&cr.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,Bt(r,this),e!=null&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null,super.unsubscribe()}}};var cy=1,Ks,Zs={};function Yu(t){return t in Zs?(delete Zs[t],!0):!1}var Ju={setImmediate(t){let e=cy++;return Zs[e]=!0,Ks||(Ks=Promise.resolve()),Ks.then(()=>Yu(e)&&t()),e},clearImmediate(t){Yu(t)}};var{setImmediate:ly,clearImmediate:uy}=Ju,lr={setImmediate(...t){let{delegate:e}=lr;return(e?.setImmediate||ly)(...t)},clearImmediate(t){let{delegate:e}=lr;return(e?.clearImmediate||uy)(t)},delegate:void 0};var Io=class extends yt{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=lr.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&&(lr.clearImmediate(n),e._scheduled===n&&(e._scheduled=void 0))}};var Sn=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)}};Sn.now=sr.now;var vt=class extends Sn{constructor(e,n=Sn.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 vt{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 dy=new Do(Io);var zt=new vt(yt),Xu=zt;var _o=class extends yt{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=bn.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&&(bn.cancelAnimationFrame(n),e._scheduled=void 0)}};var To=class extends vt{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 fy=new To(_o);var ur=new k(t=>t.complete());function wo(t){return t&&C(t.schedule)}function Ys(t){return t[t.length-1]}function bo(t){return C(Ys(t))?t.pop():void 0}function Ue(t){return wo(Ys(t))?t.pop():void 0}function ed(t,e){return typeof Ys(t)=="number"?t.pop():e}function nd(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 td(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 Gt(t){return this instanceof Gt?(this.v=t,this):new Gt(t)}function rd(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 Gt?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 od(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 td=="function"?td(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[wn])}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 py(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ao=py();function ko(t){return C(t?.[Ao])}function Ro(t){return rd(this,arguments,function*(){let n=t.getReader();try{for(;;){let{value:r,done:o}=yield Gt(n.read());if(o)return yield Gt(void 0);yield yield Gt(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 hy(t);if(So(t))return my(t);if(Co(t))return gy(t);if(No(t))return id(t);if(ko(t))return yy(t);if(Oo(t))return vy(t)}throw xo(t)}function hy(t){return new k(e=>{let n=t[wn]();if(C(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function my(t){return new k(e=>{for(let n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}function gy(t){return new k(e=>{t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,go)})}function yy(t){return new k(e=>{for(let n of t)if(e.next(n),e.closed)return;e.complete()})}function id(t){return new k(e=>{Ey(t,e).catch(n=>e.error(n))})}function vy(t){return id(Ro(t))}function Ey(t,e){var n,r,o,i;return nd(this,void 0,void 0,function*(){try{for(n=od(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 de(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=>de(r,t,()=>r.next(o),e),()=>de(r,t,()=>r.complete(),e),o=>de(r,t,()=>r.error(o),e)))})}function Lo(t,e=0){return x((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e))})}function sd(t,e){return j(t).pipe(Lo(e),Po(e))}function ad(t,e){return j(t).pipe(Lo(e),Po(e))}function cd(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 ld(t,e){return new k(n=>{let r;return de(n,e,()=>{r=t[Ao](),de(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=>{de(n,e,()=>{let r=t[Symbol.asyncIterator]();de(n,e,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function ud(t,e){return Fo(Ro(t),e)}function dd(t,e){if(t!=null){if(Mo(t))return sd(t,e);if(So(t))return cd(t,e);if(Co(t))return ad(t,e);if(No(t))return Fo(t,e);if(ko(t))return ld(t,e);if(Oo(t))return ud(t,e)}throw xo(t)}function qe(t,e){return e?dd(t,e):j(t)}function Iy(...t){let e=Ue(t);return qe(t,e)}function Dy(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 _y(t){return!!t&&(t instanceof k||C(t.lift)&&C(t.subscribe))}var fd=Dn(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Ty(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 fd)}});t.subscribe(i)})}function pd(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:wy}=Array;function by(t,e){return wy(e)?t(...e):t(e)}function jo(t){return tt(e=>by(t,e))}var{isArray:Sy}=Array,{getPrototypeOf:Cy,prototype:My,keys:Ny}=Object;function Vo(t){if(t.length===1){let e=t[0];if(Sy(e))return{args:e,keys:null};if(xy(e)){let n=Ny(e);return{args:n.map(r=>e[r]),keys:n}}}return{args:t,keys:null}}function xy(t){return t&&typeof t=="object"&&Cy(t)===My}function Ho(t,e){return t.reduce((n,r,o)=>(n[r]=e[o],n),{})}function Ay(...t){let e=Ue(t),n=bo(t),{args:r,keys:o}=Vo(t);if(r.length===0)return qe([],e);let i=new k(ky(r,e,o?s=>Ho(o,s):xe));return n?i.pipe(jo(n)):i}function ky(t,e,n=xe){return r=>{hd(e,()=>{let{length:o}=t,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)hd(e,()=>{let l=qe(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 hd(t,e,n){t?de(n,t,e):e()}function md(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?de(e,s,()=>h(_)):h(_)}p()}catch(_){e.error(_)}}))};return t.subscribe(N(e,f,()=>{d=!0,p()})),()=>{a?.()}}function Et(t,e,n=1/0){return C(e)?Et((r,o)=>tt((i,s)=>e(r,i,o,s))(j(t(r,o))),n):(typeof e=="number"&&(n=e),x((r,o)=>md(r,o,t,n)))}function Bo(t=1/0){return Et(xe,t)}function gd(){return Bo(1)}function Cn(...t){return gd()(qe(t,Ue(t)))}function Ry(t){return new k(e=>{j(t()).subscribe(e)})}function Oy(...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 dr(t=0,e,n=Xu){let r=-1;return e!=null&&(wo(e)?n=e:r=e),new k(o=>{let i=pd(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 Py(...t){let e=Ue(t),n=ed(t,1/0),r=t;return r.length?r.length===1?j(r[0]):Bo(n)(qe(r,e)):ur}function Js(t,e){return x((n,r)=>{let o=0;n.subscribe(N(r,i=>t.call(e,i,o++)&&r.next(i)))})}function yd(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 Ly(t,e=zt){return yd(()=>dr(t,e))}function Xs(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,Xs(t)(e))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Fy(t,e){return C(e)?Et(t,e,1):Et(t,1)}function vd(t,e=zt){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?()=>ur:x((e,n)=>{let r=0;e.subscribe(N(n,o=>{++r<=t&&(n.next(o),t<=r&&n.complete())}))})}function Ed(){return x((t,e)=>{t.subscribe(N(e,$t))})}function Id(t){return tt(()=>t)}function ea(t,e){return e?n=>Cn(e.pipe($o(1),Ed()),n.pipe(ea(t))):Et((n,r)=>j(t(n,r)).pipe($o(1),Id(n)))}function jy(t,e=zt){let n=dr(t,e);return ea(()=>n)}function Dd(t,e=xe){return t=t??Vy,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 Vy(t,e){return t===e}function Hy(t){return x((e,n)=>{try{e.subscribe(n)}finally{n.add(t)}})}function By(){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 na(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=ta(h,o))}),_.subscribe(v),!s&&l>0&&(s=new Ne({next:L=>_.next(L),error:L=>{d=!0,p(),a=ta(f,n,L),_.error(L)},complete:()=>{u=!0,p(),a=ta(f,r),_.complete()}}),j(m).subscribe(s))})(i)}}function ta(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 $y(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,na({connector:()=>new ar(r,e,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Uy(t){return Js((e,n)=>t<=n)}function _d(...t){let e=Ue(t);return x((n,r)=>{(e?Cn(t,n,e):Cn(t,n)).subscribe(r)})}function Td(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 qy(t){return x((e,n)=>{j(t).subscribe(N(n,()=>n.complete(),$t)),!n.closed&&e.subscribe(n)})}function zy(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 Gy(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(yr(e,n)),this.code=e}};function Wy(t){return`NG0${Math.abs(t)}`}function yr(t,e){return`${Wy(t)}${e?": "+e:""}`}function V(t){for(let e in t)if(t[e]===V)return e;throw Error("")}function Md(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 Qy=V({__forward_ref__:V});function Jo(t){return t.__forward_ref__=Jo,t}function Y(t){return ma(t)?t():t}function ma(t){return typeof t=="function"&&t.hasOwnProperty(Qy)&&t.__forward_ref__===Jo}function fe(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Nd(t){return{providers:t.providers||[],imports:t.imports||[]}}function Xo(t){return Ky(t,ei)}function Ky(t,e){return t.hasOwnProperty(e)&&t[e]||null}function Zy(t){let e=t?.[ei]??null;return e||null}function oa(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=fe({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function ga(t){return t&&!!t.\u0275providers}var ya=V({\u0275cmp:V}),va=V({\u0275dir:V}),Ea=V({\u0275pipe:V});var pr=V({\u0275fac:V}),Yt=V({__NG_ELEMENT_ID__:V}),wd=V({__NG_ENV_ID__:V});function _t(t){return Ia(t,"@Component"),t[ya]||null}function ti(t){return Ia(t,"@Directive"),t[va]||null}function xd(t){return Ia(t,"@Pipe"),t[Ea]||null}function Ia(t,e){if(t==null)throw new g(-919,!1)}function vr(t){return typeof t=="string"?t:t==null?"":String(t)}var Ad=V({ngErrorCode:V}),Yy=V({ngErrorMessage:V}),Jy=V({ngTokenPath:V});function Da(t,e){return kd("",-200,e)}function ni(t,e){throw new g(-201,!1)}function kd(t,e,n){let r=new g(e,t);return r[Ad]=e,r[Yy]=t,n&&(r[Jy]=n),r}function Xy(t){return t[Ad]}var ia;function Rd(){return ia}function ce(t){let e=ia;return ia=t,e}function _a(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 Tt=globalThis;var ev={},Wt=ev,tv="__NG_DI_FLAG__",sa=class{injector;constructor(e){this.injector=e}retrieve(e,n){let r=Qt(n)||0;try{return this.injector.get(e,r&8?null:Wt,r)}catch(o){if(In(o))return o;throw o}}};function nv(t,e=0){let n=po();if(n===void 0)throw new g(-203,!1);if(n===null)return _a(t,void 0,e);{let r=rv(e),o=n.retrieve(t,r);if(In(o)){if(r.optional)return null;throw o}return o}}function ze(t,e=0){return(Rd()||nv)(Y(t),e)}function w(t,e){return ze(t,Qt(e))}function Qt(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function rv(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function aa(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=ov(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}e.push(ze(o,i))}else e.push(ze(r))}return e}function ov(t){return t[tv]}function It(t,e){let n=t.hasOwnProperty(pr);return n?t[pr]:null}function Od(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 Pd(t){return t.flat(Number.POSITIVE_INFINITY)}function ri(t,e){t.forEach(n=>Array.isArray(n)?ri(n,e):e(n))}function Ta(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Er(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Ld(t,e){let n=[];for(let r=0;r<t;r++)n.push(e);return n}function Fd(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=xn(t,e);return r>=0?t[r|1]=n:(r=~r,Fd(t,r,e,n)),r}function ii(t,e){let n=xn(t,e);if(n>=0)return t[n|1]}function xn(t,e){return iv(t,e,1)}function iv(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 wt={},oe=[],Jt=new P(""),Ir=new P("",-1),wa=new P(""),Nn=class{get(e,n=Wt){if(n===Wt){let o=kd("",-201);throw o.name="\u0275NotFound",o}return n}};function ba(t){return{\u0275providers:t}}function jd(...t){return{\u0275providers:Sa(!0,t),\u0275fromNgModule:!0}}function Sa(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&&Vd(o,i),n}function Vd(t,e){for(let n=0;n<t.length;n++){let{ngModule:r,providers:o}=t[n];Ca(o,i=>{e(i,r)})}}function zo(t,e,n,r){if(t=Y(t),!t)return!1;let o=null,i=oa(t),s=!i&&_t(t);if(!i&&!s){let c=t.ngModule;if(i=oa(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&&Vd(l,e)}if(!a){let l=It(o)||(()=>new o);e({provide:o,useFactory:l,deps:oe},o),e({provide:wa,useValue:o,multi:!0},o),e({provide:Jt,useValue:()=>ze(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=t;Ca(c,u=>{e(u,l)})}}else return!1;return o!==t&&t.providers!==void 0}function Ca(t,e){for(let n of t)ga(n)&&(n=n.\u0275providers),Array.isArray(n)?Ca(n,e):e(n)}var sv=V({provide:String,useValue:V});function Hd(t){return t!==null&&typeof t=="object"&&sv in t}function av(t){return!!(t&&t.useExisting)}function cv(t){return!!(t&&t.useFactory)}function Kt(t){return typeof t=="function"}function Bd(t){return!!t.useClass}var Ma=new P(""),Uo={},bd={},ra;function An(){return ra===void 0&&(ra=new Nn),ra}var De=class{},Zt=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,la(e,s=>this.processProvider(s)),this.records.set(Ir,Mn(void 0,this)),o.has("environment")&&this.records.set(De,Mn(void 0,this));let i=this.records.get(Ma);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(wa,oe,{self:!0}))}retrieve(e,n){let r=Qt(n)||0;try{return this.get(e,Wt,r)}catch(o){if(In(o))return o;throw o}}destroy(){fr(this),this._destroyed=!0;let e=I(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(),I(e)}}onDestroy(e){return fr(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){fr(this);let n=$e(this),r=ce(void 0),o;try{return e()}finally{$e(n),ce(r)}}get(e,n=Wt,r){if(fr(this),e.hasOwnProperty(wd))return e[wd](this);let o=Qt(r),i,s=$e(this),a=ce(void 0);try{if(!(o&4)){let l=this.records.get(e);if(l===void 0){let u=pv(e)&&Xo(e);u&&this.injectableDefInScope(u)?l=Mn(ca(e),Uo):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l,o)}let c=o&2?An():this.parent;return n=o&8&&n===Wt?null:n,c.get(e,n)}catch(c){let l=Xy(c);throw l===-200||l===-201?new g(l,null):c}finally{ce(a),$e(s)}}resolveInjectorInitializers(){let e=I(null),n=$e(this),r=ce(void 0),o;try{let i=this.get(Jt,oe,{self:!0});for(let s of i)s()}finally{$e(n),ce(r),I(e)}}toString(){return"R3Injector[...]"}processProvider(e){e=Y(e);let n=Kt(e)?e:Y(e&&e.provide),r=uv(e);if(!Kt(e)&&e.multi===!0){let o=this.records.get(n);o||(o=Mn(void 0,Uo,!0),o.factory=()=>aa(o.multi),this.records.set(n,o)),n=e,o.multi.push(e)}this.records.set(n,r)}hydrate(e,n,r){let o=I(null);try{if(n.value===bd)throw Da("");return n.value===Uo&&(n.value=bd,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&fv(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{I(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 ca(t){let e=Xo(t),n=e!==null?e.factory:It(t);if(n!==null)return n;if(t instanceof P)throw new g(-204,!1);if(t instanceof Function)return lv(t);throw new g(-204,!1)}function lv(t){if(t.length>0)throw new g(-204,!1);let n=Zy(t);return n!==null?()=>n.factory(t):()=>new t}function uv(t){if(Hd(t))return Mn(void 0,t.useValue);{let e=Na(t);return Mn(e,Uo)}}function Na(t,e,n){let r;if(Kt(t)){let o=Y(t);return It(o)||ca(o)}else if(Hd(t))r=()=>Y(t.useValue);else if(cv(t))r=()=>t.useFactory(...aa(t.deps||[]));else if(av(t))r=(o,i)=>ze(Y(t.useExisting),i!==void 0&&i&8?8:void 0);else{let o=Y(t&&(t.useClass||t.provide));if(dv(t))r=()=>new o(...aa(t.deps));else return It(o)||ca(o)}return r}function fr(t){if(t.destroyed)throw new g(-205,!1)}function Mn(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function dv(t){return!!t.deps}function fv(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function pv(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function la(t,e){for(let n of t)Array.isArray(n)?la(n,e):n&&ga(n)?la(n.\u0275providers,e):e(n)}function si(t,e){let n;t instanceof Zt?(fr(t),n=t):n=new sa(t);let r,o=$e(n),i=ce(void 0);try{return e()}finally{$e(o),ce(i)}}function $d(){return Rd()!==void 0||po()!=null}var Re=0,E=1,S=2,J=3,_e=4,ie=5,Xt=6,kn=7,W=8,Ge=9,We=10,H=11,Rn=12,xa=13,bt=14,le=15,St=16,en=17,Qe=18,Ke=19,Aa=20,rt=21,ai=22,Dt=23,ve=24,tn=25,Ze=26,U=27,Ud=1,ka=6,Ct=7,Dr=8,nn=9,z=10;function st(t){return Array.isArray(t)&&typeof t[Ud]=="object"}function Te(t){return Array.isArray(t)&&t[Ud]===!0}function Ra(t){return(t.flags&4)!==0}function at(t){return t.componentOffset>-1}function On(t){return(t.flags&1)===1}function Oe(t){return!!t.template}function Pn(t){return(t[S]&512)!==0}function rn(t){return(t[S]&256)===256}var Oa="svg",qd="math";function we(t){for(;Array.isArray(t);)t=t[Re];return t}function Pa(t,e){return we(e[t])}function be(t,e){return we(e[t.index])}function ci(t,e){return t.data[e]}function La(t,e){return t[e]}function Fa(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 st(n)?n:n[Re]}function zd(t){return(t[S]&4)===4}function li(t){return(t[S]&128)===128}function Gd(t){return Te(t[J])}function Ee(t,e){return e==null?null:t[e]}function ja(t){t[en]=0}function Va(t){t[S]&1024||(t[S]|=1024,li(t)&&on(t))}function Wd(t,e){for(;t>0;)e=e[bt],t--;return e}function _r(t){return!!(t[S]&9216||t[ve]?.dirty)}function ui(t){t[We].changeDetectionScheduler?.notify(8),t[S]&64&&(t[S]|=1024),_r(t)&&on(t)}function on(t){t[We].changeDetectionScheduler?.notify(0);let e=ot(t);for(;e!==null&&!(e[S]&8192||(e[S]|=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 Qd(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 Ha(t){return t[kn]??=[]}function Ba(t){return t.cleanup??=[]}function Kd(t,e,n,r){let o=Ha(e);o.push(n),t.firstCreatePass&&Ba(t).push(r,o.length-1)}var M={lFrame:df(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var ua=!1;function Zd(){return M.lFrame.elementDepthCount}function Yd(){M.lFrame.elementDepthCount++}function $a(){M.lFrame.elementDepthCount--}function fi(){return M.bindingsEnabled}function Ua(){return M.skipHydrationRootTNode!==null}function qa(t){return M.skipHydrationRootTNode===t}function za(){M.skipHydrationRootTNode=null}function b(){return M.lFrame.lView}function B(){return M.lFrame.tView}function Jd(t){return M.lFrame.contextLView=t,t[W]}function Xd(t){return M.lFrame.contextLView=null,t}function Q(){let t=Ga();for(;t!==null&&t.type===64;)t=t.parent;return t}function Ga(){return M.lFrame.currentTNode}function ef(){let t=M.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Ln(t,e){let n=M.lFrame;n.currentTNode=t,n.isParent=e}function Wa(){return M.lFrame.isParent}function Qa(){M.lFrame.isParent=!1}function tf(){return M.lFrame.contextLView}function Ka(){return ua}function hr(t){let e=ua;return ua=t,e}function nf(){let t=M.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function rf(){return M.lFrame.bindingIndex}function of(t){return M.lFrame.bindingIndex=t}function sn(){return M.lFrame.bindingIndex++}function pi(t){let e=M.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function sf(){return M.lFrame.inI18n}function af(t,e){let n=M.lFrame;n.bindingIndex=n.bindingRootIndex=t,hi(e)}function cf(){return M.lFrame.currentDirectiveIndex}function hi(t){M.lFrame.currentDirectiveIndex=t}function lf(t){let e=M.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function mi(){return M.lFrame.currentQueryIndex}function Tr(t){M.lFrame.currentQueryIndex=t}function hv(t){let e=t[E];return e.type===2?e.declTNode:e.type===1?t[ie]:null}function Za(t,e,n){if(n&4){let o=e,i=t;for(;o=o.parent,o===null&&!(n&1);)if(o=hv(i),o===null||(i=i[bt],o.type&10))break;if(o===null)return!1;e=o,t=i}let r=M.lFrame=uf();return r.currentTNode=e,r.lView=t,!0}function gi(t){let e=uf(),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 uf(){let t=M.lFrame,e=t===null?null:t.child;return e===null?df(t):e}function df(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 ff(){let t=M.lFrame;return M.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Ya=ff;function yi(){let t=ff();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 pf(t){return(M.lFrame.contextLView=Wd(t,M.lFrame.contextLView))[W]}function Ye(){return M.lFrame.selectedIndex}function Mt(t){M.lFrame.selectedIndex=t}function wr(){let t=M.lFrame;return ci(t.tView,t.selectedIndex)}function hf(){M.lFrame.currentNamespace=Oa}function mf(){mv()}function mv(){M.lFrame.currentNamespace=null}function Ja(){return M.lFrame.currentNamespace}var gf=!0;function vi(){return gf}function br(t){gf=t}function da(t,e=null,n=null,r){let o=yf(t,e,n,r);return o.resolveInjectorInitializers(),o}function yf(t,e=null,n=null,r,o=new Set){let i=[n||oe,jd(t)],s;return new Zt(i,e||An(),s||null,o)}var Ae=class t{static THROW_IF_NOT_FOUND=Wt;static NULL=new Nn;static create(e,n){if(Array.isArray(e))return da({name:""},n,e,"");{let r=e.name??"";return da({name:r},e.parent,e.providers,r)}}static \u0275prov=fe({token:t,providedIn:"any",factory:()=>ze(Ir)});static __NG_ELEMENT_ID__=-1},Ei=new P(""),ct=(()=>{class t{static __NG_ELEMENT_ID__=gv;static __NG_ENV_ID__=n=>n}return t})(),Go=class extends ct{_lView;constructor(e){super(),this._lView=e}get destroyed(){return rn(this._lView)}onDestroy(e){let n=this._lView;return di(n,e),()=>Qd(n,e)}};function gv(){return new Go(b())}var Xa=!1,vf=new P(""),Nt=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new ir(!1);debugTaskTracker=w(vf,{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=fe({token:t,providedIn:"root",factory:()=>new t})}return t})(),fa=class extends ye{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,$d()&&(this.destroyRef=w(ct,{optional:!0})??void 0,this.pendingTasks=w(Nt,{optional:!0})??void 0)}emit(e){let n=I(null);try{super.next(e)}finally{I(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=fa;function Wo(...t){}function ec(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 Ef(t){return queueMicrotask(()=>t()),()=>{t=Wo}}var tc="isAngularZone",mr=tc+"_ID",yv=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=Xa}=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,Iv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(tc)===!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,vv,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)}},vv={};function nc(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 Ev(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function e(){ec(()=>{t.callbackScheduled=!1,pa(t),t.isCheckStableRunning=!0,nc(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{e()}):t._outer.run(()=>{e()}),pa(t)}function Iv(t){let e=()=>{Ev(t)},n=yv++;t._inner=t._inner.fork({name:"angular",properties:{[tc]:!0,[mr]:n,[mr+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Dv(c))return r.invokeTask(i,s,a,c);try{return Sd(t),r.invokeTask(i,s,a,c)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),Cd(t)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return Sd(t),r.invoke(i,s,a,c,l)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!_v(c)&&e(),Cd(t)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,pa(t),nc(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 pa(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Sd(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Cd(t){t._nesting--,nc(t)}var gr=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 Dv(t){return If(t,"__ignore_ng_zone__")}function _v(t){return If(t,"__scheduler_tick__")}function If(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var it=class{_console=console;handleError(e){this._console.error("ERROR",e)}},xt=new P("",{factory:()=>{let t=w(ne),e=w(De),n;return r=>{t.runOutsideAngular(()=>{e.destroyed&&!n?setTimeout(()=>{throw r}):(n??=e.get(it),n.handleError(r))})}}}),Df={provide:Jt,useValue:()=>{let t=w(it,{optional:!0})},multi:!0};function Ii(t,e){let[n,r,o]=Ls(t,e?.equal),i=n,s=i[Z];return i.set=r,i.update=o,i.asReadonly=rc.bind(i),i}function rc(){let t=this[Z];if(t.readonlyFn===void 0){let e=()=>this();e[Z]=t,t.readonlyFn=e}return t.readonlyFn}var _f=new P("",{factory:()=>Tv}),Tv="ng";var Tf=new P(""),wv=new P("",{providedIn:"platform",factory:()=>"unknown"}),bv=new P(""),Sv=new P("",{factory:()=>w(Ei).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Fn=(()=>{class t{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=Cv}return t})();function Cv(){return new Fn(b(),Q())}var ke=class{},jn=new P("",{factory:()=>!0});var Di=new P(""),_i=(()=>{class t{static \u0275prov=fe({token:t,providedIn:"root",factory:()=>new ha})}return t})(),ha=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 wf(t,e){let n=e?.injector??w(Ae),r=e?.manualCleanup!==!0?n.get(ct):null,o,i=n.get(Fn,null,{optional:!0}),s=n.get(ke);return i!==null?(o=xv(i.view,s,t),r instanceof Go&&r._lView===i.view&&(r=null)):o=Av(t,n.get(_i),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new Qo(o)}var bf=ee(G({},js),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let t=hr(!1);try{Vs(this)}finally{hr(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=I(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],I(t)}}}),Mv=ee(G({},bf),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(gt(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.scheduler.remove(this)}}),Nv=ee(G({},bf),{consumerMarkedDirty(){this.view[S]|=8192,on(this.view),this.notifier.notify(13)},destroy(){if(gt(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.view[Dt]?.delete(this)}});function xv(t,e,n){let r=Object.create(Nv);return r.view=t,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=e,r.fn=Sf(r,n),t[Dt]??=new Set,t[Dt].add(r),r.consumerMarkedDirty(r),r}function Av(t,e,n){let r=Object.create(Mv);return r.fn=Sf(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 Sf(t,e){return()=>{e(n=>(t.cleanupFns??=[]).push(n))}}function oc(t){return typeof t=="function"&&t[Z]!==void 0}var ic=(()=>{class t{internalPendingTasks=w(Nt);scheduler=w(ke);errorHandler=w(xt);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=fe({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||{}),xi=class{previousValue;currentValue;firstChange;constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function fp(t,e,n,r){e!==null?e.applyValueToInputSignal(e,r):t[n]=r}var pp=null,qv=(()=>{pp=Cf;let t=()=>Cf;return t.ngInherit=!0,t})();function zv(){return pp}function Cf(t){return t.type.prototype.ngOnChanges&&(t.setInput=Wv),Gv}function Gv(){let t=hp(this),e=t?.current;if(e){let n=t.previous;if(n===wt)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=hp(t)||Qv(t,{previous:wt,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new xi(l&&l.currentValue,n,c===wt),fp(t,e,o,n)}var yc="__ngSimpleChanges__";function hp(t){return Object.hasOwn(t,yc)&&t[yc]||null}function Qv(t,e){return t[yc]=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 mp(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 Si(t,e,n){gp(t,e,3,n)}function Ci(t,e,n,r){(t[S]&3)===n&&gp(t,e,n,r)}function sc(t,e){let n=t[S];(n&3)===e&&(n&=16383,n+=1,t[S]=n)}function gp(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=I(null);try{e.call(t)}finally{I(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[S]>>14<t[en]>>16&&(t[S]&3)===e&&(t[S]+=16384,Nf(a,i)):Nf(a,i)}var Hn=-1,cn=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 yp(t){return t===3||t===4||t===6}function eE(t){return t.charCodeAt(0)===64}function Bn(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 vp(t){return t!==Hn}function Ai(t){return t&32767}function tE(t){return t>>16}function ki(t,e){let n=tE(t),r=e;for(;n>0;)r=r[bt],n--;return r}var vc=!0;function Ri(t){let e=vc;return vc=t,e}var nE=256,Ep=nE-1,Ip=5,rE=0,Je={};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&Ep,i=1<<o;e.data[t+(o>>Ip)]|=i}function Oi(t,e){let n=Dp(t,e);if(n!==-1)return n;let r=e[E];r.firstCreatePass&&(t.injectorIndex=e.length,ac(r.data,t),ac(e,null),ac(r.blueprint,null));let o=Xc(t,e),i=t.injectorIndex;if(vp(o)){let s=Ai(o),a=ki(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 ac(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Dp(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function Xc(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=Sp(o),r===null)return Hn;if(n++,o=o[bt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Hn}function Ec(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(yp(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 _p(t,e,n){if(n&8||t!==void 0)return t;ni(e,"NodeInjector")}function Tp(t,e,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=t[Ge],i=ce(void 0);try{return o?o.get(e,r,n&8):_a(e,r,n&8)}finally{ce(i)}}return _p(r,e,n)}function wp(t,e,n,r=0,o){if(t!==null){if(e[S]&2048&&!(r&2)){let s=uE(t,e,n,r,Je);if(s!==Je)return s}let i=bp(t,e,n,r,Je);if(i!==Je)return i}return Tp(e,n,r,o)}function bp(t,e,n,r,o){let i=aE(n);if(typeof i=="function"){if(!Za(e,t,r))return r&1?_p(o,n,r):Tp(e,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))ni(n);else return s}finally{Ya()}}else if(typeof i=="number"){let s=null,a=Dp(t,e),c=Hn,l=r&1?e[le][ie]:null;for((a===-1||r&4)&&(c=a===-1?Xc(t,e):e[a+8],c===Hn||!kf(r,!1)?a=-1:(s=e[E],a=Ai(c),e=ki(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!==Je)return d}c=e[a+8],c!==Hn&&kf(r,e[E].data[a+8]===l)&&Af(i,a,e)?(s=u,a=Ai(c),e=ki(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?at(a)&&vc:r!=s&&(a.type&3)!==0,l=o&1&&i===a,u=Mi(a,s,n,c,l);return u!==null?xr(e,s,u,a,o):Je}function Mi(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&&Oe(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 cn){let a=i;if(a.resolving)throw Da("");let c=Ri(a.canSeeViewProviders);a.resolving=!0;let l=s[n].type||s[n],u,d=a.injectImpl?ce(a.injectImpl):null,p=Za(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&&ce(d),Ri(c),a.resolving=!1,Ya()}}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&Ep:cE:e}function Af(t,e,n){let r=1<<t;return!!(n[e+(t>>Ip)]&r)}function kf(t,e){return!(t&2)&&!(t&1&&e)}var At=class{_tNode;_lView;constructor(e,n){this._tNode=e,this._lView=n}get(e,n,r){return wp(this._tNode,this._lView,e,Qt(r),n)}};function cE(){return new At(Q(),b())}function lE(t){return jr(()=>{let e=t.prototype.constructor,n=e[pr]||Ic(e),r=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==r;){let i=o[pr]||Ic(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Ic(t){return ma(t)?()=>{let e=Ic(Y(t));return e&&e()}:It(t)}function uE(t,e,n,r,o){let i=t,s=e;for(;i!==null&&s!==null&&s[S]&2048&&!Pn(s);){let a=bp(i,s,n,r|2,Je);if(a!==Je)return a;let c=i.parent;if(!c){let l=s[Aa];if(l){let u=l.get(n,Je,r&-5);if(u!==Je)return u}c=Sp(s),s=s[bt]}i=c}return o}function Sp(t){let e=t[E],n=e.type;return n===2?e.declTNode:n===1?t[ie]:null}function Cp(t){return iE(Q(),t)}function Qn(t){return{token:t.token,providedIn:t.autoProvided===!1?null:"root",factory:t.factory,value:void 0}}function dE(){return Kn(Q(),b())}function Kn(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 Mp(t){return t instanceof Vr?t.nativeElement:t}function fE(){return this._results[Symbol.iterator]()}var Pi=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=Pd(e);(this._changesDetected=!Od(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 Np(t){return(t.flags&128)===128}var el=(function(t){return t[t.OnPush=0]="OnPush",t[t.Eager=1]="Eager",t[t.Default=1]="Default",t})(el||{}),xp=new Map,pE=0;function hE(){return pE++}function mE(t){xp.set(t[Ke],t)}function Dc(t){xp.delete(t[Ke])}var Rf="__ngContext__";function $n(t,e){st(e)?(t[Rf]=e[Ke],mE(e)):t[Rf]=e}function Ap(t){return Rp(t[Rn])}function kp(t){return Rp(t[_e])}function Rp(t){for(;t!==null&&!Te(t);)t=t[_e];return t}var _c;function gE(t){_c=t}function Op(){if(_c!==void 0)return _c;if(typeof document<"u")return document;throw new g(210,!1)}var Pp="r";var Lp="di";var Fp=!1,jp=new P("",{factory:()=>Fp});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 Zi(t){return(t.flags&32)===32}var IE=()=>null;function Vp(t,e,n=!1){return IE(t,e,n)}function Hp(t,e){let n=t.contentQueries;if(n!==null){let r=I(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{I(r)}}}function Tc(t,e,n){Tr(0);let r=I(null);try{e(t,n)}finally{I(r)}}function tl(t,e,n){if(Ra(e)){let r=I(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{I(r)}}}var ln=(function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t[t.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",t})(ln||{});var Ti;function DE(){if(Ti===void 0&&(Ti=null,Tt.trustedTypes))try{Ti=Tt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Ti}function Yi(t){return DE()?.createHTML(t)||t}var lt=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ko})`}},wc=class extends lt{getTypeName(){return"HTML"}},bc=class extends lt{getTypeName(){return"Style"}},Sc=class extends lt{getTypeName(){return"Script"}},Cc=class extends lt{getTypeName(){return"URL"}},Mc=class extends lt{getTypeName(){return"ResourceURL"}};function nl(t){return t instanceof lt?t.changingThisBreaksApplicationSecurity:t}function _E(t,e){let n=Bp(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 Bp(t){return t instanceof lt&&t.getTypeName()||null}function TE(t){return new wc(t)}function wE(t){return new bc(t)}function bE(t){return new Sc(t)}function SE(t){return new Cc(t)}function CE(t){return new Mc(t)}function ME(t){let e=new xc(t);return NE()?new Nc(e):e}var Nc=class{inertDocumentHelper;constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let n=new window.DOMParser().parseFromString(Yi(e),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(e):(n.firstChild?.remove(),n)}catch(n){return null}}},xc=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=Yi(e),n}};function NE(){try{return!!new window.DOMParser().parseFromString(Yi(""),"text/html")}catch(t){return!1}}var xE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function $p(t){return t=String(t),t.match(xE)?t:"unsafe:"+t}function ut(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 Up=ut("area,br,col,hr,img,wbr"),qp=ut("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),zp=ut("rp,rt"),AE=Hr(zp,qp),kE=Hr(qp,ut("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(zp,ut("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(Up,kE,RE,AE),Gp=ut("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),OE=ut("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=ut("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(Gp,OE,PE),FE=ut("script,style,template"),Ac=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;Gp[a]&&(c=$p(c)),this.buf.push(" ",s,'="',Ff(c),'"')}return this.buf.push(">"),!0}endElement(e){let n=Lf(e).toLowerCase();Pf.hasOwnProperty(n)&&!Up.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 Wp(e);return e}function HE(t){let e=t.firstChild;if(e&&jE(t,e))throw Wp(e);return e}function Lf(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function Wp(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 wi;function UE(t,e){let n=null;try{wi=wi||ME(t);let r=e?String(e):"";n=wi.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=wi.getInertBodyElement(r)}while(r!==i);let a=new Ac().sanitizeChildren(jf(n)||n);return Yi(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 Qp(t,e,n){return t.createElement(e,n)}function Li(t,e,n,r,o){t.insertBefore(e,n,r,o)}function Kp(t,e,n){t.appendChild(e,n)}function Vf(t,e,n,r,o){r!==null?Li(t,e,n,r,o):Kp(t,e,n)}function Zp(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 Yp(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 Jp=(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})(Jp||{});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 Xp="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(rl(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 rl(t){return t.type===4&&t.value!==Xp}function rI(t,e,n){let r=t.type===4&&!n?Xp: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,rl(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 eh(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(yp(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 pe={},Fi=(function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t})(Fi||{}),pI;function ol(t,e){return pI(t,e)}var TO=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var kc=new WeakMap;function th(t){return t?t[bt]??t:null}var Cr=new WeakSet;function hI(t,e,n){let r=kc.get(t);if(!r||r.length===0)return;let o=e.parentNode,i=e.previousSibling,s=th(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=th(n),o=kc.get(t);o?o.some(i=>i.el===e)||o.push({el:e,declarationView:r}):kc.set(t,[{el:e,declarationView:r}])}var Un=new Set,Ji=(function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t})(Ji||{}),fn=new P(""),Bf=new Set;function dt(t){Bf.has(t)||(Bf.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var Xi=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=fe({token:t,providedIn:"root",factory:()=>new t})}return t})(),il=[0,1,2,3],sl=(()=>{class t{ngZone=w(ne);scheduler=w(ke);errorHandler=w(it,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){w(fn,{optional:!0})}execute(){let n=this.sequences.size>0;n&&F(O.AfterRenderHooksStart),this.executing=!0;for(let r of il)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[S]|=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(Ji.AFTER_NEXT_RENDER,n):n()}static \u0275prov=fe({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??w(Ae);return dt("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(Xi);o.impl??=e.get(sl);let i=e.get(fn,null,{optional:!0}),s=n?.manualCleanup!==!0?e.get(ct):null,a=e.get(Fn,null,{optional:!0}),c=new Ar(o.impl,yI(t),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var al=new P("",{factory:()=>{let t=w(De),e=new Set;return t.onDestroy(()=>e.clear()),{queue:e,isScheduled:!1,scheduler:null,injector:t}}});function nh(t,e,n){let r=t.get(al);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(al);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(al);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)nh(t,r.animateFns)}function $f(t,e,n,r){let o=t?.[Ze]?.enter;e!==null&&o&&o.has(n.index)&&DI(r,o)}function Uf(t,e,n,r){try{n.get(Ir)}catch(s){return r(!1)}let o=t?.[Ze];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=[];es(t,e,a),s=a.length>0}if(!s)return r(!1)}t&&Un.add(t[Ke]),nh(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&&es(t,e,i),i.length>0){let s=n||t?.[Ze];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&&Un.delete(t[Ke]),o(!0)})}else t&&Un.delete(t[Ke]),o(!1)}function es(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;)es(t,r,n),r=r.next}function wI(t,e){let n=t[Ze];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;)es(t,r,e),r=r.next}function bI(t,e,n){e.then(()=>{t[Ze]?.running===e&&(t[Ze].running=void 0,Un.delete(t[Ke])),n(!0)})}function Vn(t,e,n,r,o,i,s,a){if(o!=null){let c,l=!1;Te(o)?c=o:st(o)&&(l=!0,o=o[Re]);let u=we(o);t===0&&r!==null?($f(a,r,i,n),s==null?Kp(e,r,u):Li(e,r,u,s||null,!0)):t===1&&r!==null?($f(a,r,i,n),Li(e,r,u,s||null,!0),hI(i,u,a)):t===2?(a?.[Ze]?.leave?.has(i.index)&&mI(i,u,a),Cr.delete(u),Uf(a,i,n,d=>{if(Cr.has(u)){Cr.delete(u);return}Zp(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){rh(t,e),e[Re]=null,e[ie]=null}function CI(t,e,n,r,o,i){r[Re]=o,r[ie]=e,ns(t,r,n,1,o,i)}function rh(t,e){e[We].changeDetectionScheduler?.notify(9),ns(t,e,e[H],2,null,null)}function MI(t){let e=t[Rn];if(!e)return cc(t[E],t);for(;e;){let n=null;if(st(e))n=e[Rn];else{let r=e[z];r&&(n=r)}if(!n){for(;e&&!e[_e]&&e!==t;)st(e)&&cc(e[E],e),e=e[J];e===null&&(e=t),st(e)&&cc(e[E],e),n=e&&e[_e]}e=n}}function cl(t,e){let n=t[nn],r=n.indexOf(e);n.splice(r,1)}function ts(t,e){if(rn(e))return;let n=e[H];n.destroyNode&&ns(t,e,n,3,null,null),MI(e)}function cc(t,e){if(rn(e))return;let n=I(null);try{e[S]&=-129,e[S]|=256,e[ve]&&gt(e[ve]),xI(t,e),NI(t,e),e[E].type===1&&e[H].destroy();let r=e[St];if(r!==null&&Te(e[J])){r!==e[J]&&cl(r,e);let o=e[Qe];o!==null&&o.detachView(t)}Dc(e)}finally{I(n)}}function NI(t,e){let n=t.cleanup,r=e[kn];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[kn]=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[Dt];if(i!==null){e[Dt]=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 cn)){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 oh(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[Re];if(at(r)){let{encapsulation:o}=t.data[r.directiveStart+r.componentOffset];if(o===ln.None||o===ln.Emulated)return null}return be(r,n)}function ih(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 ll(t,e,n,r){let o=oh(t,r,e),i=e[H],s=r.parent||e[ie],a=ih(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 Rc(-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)?Rc(-1,o):we(o)}}else{if(n&128)return Mr(t,e.next);if(n&32)return ol(e,t)()||we(t[e.index]);{let r=sh(t,e);if(r!==null){if(Array.isArray(r))return r[0];let o=ot(t[le]);return Mr(o,r)}else return Mr(t,e.next)}}}return null}function sh(t,e){if(e!==null){let r=t[le][ie],o=e.projection;return r.projection[o]}return null}function Rc(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[Ct]}function ul(t,e,n,r,o,i,s){for(;n!=null;){let a=r[Ge];if(n.type===128){n=n.next;continue}let c=r[n.index],l=n.type;if(s&&e===0&&(c&&$n(we(c),r),n.flags|=2),!Zi(n))if(l&8)ul(t,e,n.child,r,o,i,!1),Vn(e,t,a,o,c,n,i,r);else if(l&32){let u=ol(n,r),d;for(;d=u();)Vn(e,t,a,o,d,n,i,r);Vn(e,t,a,o,c,n,i,r)}else l&16?ah(t,e,r,n,o,i):Vn(e,t,a,o,c,n,i,r);n=s?n.projectionNext:n.next}}function ns(t,e,n,r,o,i){ul(n,r,t.firstChild,e,o,i,!1)}function OI(t,e,n){let r=e[H],o=oh(t,n,e),i=n.parent||e[ie],s=ih(i,n,e);ah(r,0,e,n,o,s)}function ah(t,e,n,r,o,i){let s=n[le],c=s[ie].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let u=c[l];Vn(e,t,n[Ge],o,u,r,i,n)}else{let l=c,u=s[J];Np(r)&&(l.flags|=128),ul(t,e,l,u,o,i,!0)}}function PI(t,e,n,r,o,i,s){let a=r[Ct],c=we(r);a!==c&&Vn(e,t,n,i,a,o,s);for(let l=z;l<r.length;l++){let u=r[l];ns(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:Fi.DashCase;o==null?t.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Fi.Important),t.setStyle(n,r,o,i))}}function dl(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:pe);return n}function jI(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=dl(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function fl(t,e,n,r,o,i,s,a,c,l,u){let d=e.blueprint.slice();return d[Re]=o,d[S]=r|4|128|8|64|1024,(l!==null||t&&t[S]&2048)&&(d[S]|=2048),ja(d),d[J]=d[bt]=t,d[W]=n,d[We]=s||t&&t[We],d[H]=a||t&&t[H],d[Ge]=c||t&&t[Ge]||null,d[ie]=i,d[Ke]=hE(),d[Xt]=u,d[Aa]=l,d[le]=e.type==2?t[le]:d,d}function VI(t,e,n){let r=be(e,t),o=jI(n),i=t[We].rendererFactory,s=pl(t,fl(t,o,null,ch(n),r,e,null,i.createRenderer(r,n),null,null,null));return t[e.index]=s}function ch(t){let e=16;return t.signals?e=4096:t.onPush&&(e=64),e}function lh(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 pl(t,e){return t[Rn]?t[xa][_e]=e:t[Rn]=e,t[xa]=e,e}function HI(t=1){uh(B(),b(),Ye()+t,!1)}function uh(t,e,n,r){if(!r)if((e[S]&3)===3){let i=t.preOrderCheckHooks;i!==null&&Si(e,i,n)}else{let i=t.preOrderHooks;i!==null&&Ci(e,i,0,n)}Mt(n)}var rs=(function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t})(rs||{});function un(t,e,n,r){let o=I(null);try{let[i,s,a]=t.inputs[n],c=null;(s&rs.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):fp(e,c,i,r)}finally{I(o)}}function dh(t,e,n,r,o){let i=Ye(),s=r&2;try{Mt(-1),s&&e.length>U&&uh(t,e,U,!1);let a=s?O.TemplateUpdateStart:O.TemplateCreateStart;F(a,o,n),n(r,o)}finally{Mt(i);let a=s?O.TemplateUpdateEnd:O.TemplateCreateEnd;F(a,o,n)}}function os(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(jp,Fp)||n===ln.ShadowDom||n===ln.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(yl(t,s,e,n,r)){at(t)&&GI(e,t.index);return}t.type&3&&(n=qI(n)),fh(t,e,n,r,o,i)}function fh(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[S]&16||(n[S]|=64)}function WI(t,e,n){let r=n.directiveStart,o=n.directiveEnd;at(n)&&VI(e,n,t.data[r+n.componentOffset]),t.firstCreatePass||Oi(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($n(c,e),i!==null&&JI(e,s-r,c,a,n,i),Oe(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=cf();try{Mt(i);for(let a=r;a<o;a++){let c=t.data[a],l=e[a];hi(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&KI(c,l)}}finally{Mt(-1),hi(s)}}function KI(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function hl(t,e){let n=t.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];eh(e,i.selectors,!1)&&(r??=[],Oe(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?vr(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];un(r,n,c,l)}}function ml(t,e,n,r,o){let i=U+n,s=e[E],a=o(s,e,t,r,n);e[i]=a,Ln(t,!0);let c=t.type===2;return c?(Yp(e[H],a,t),(Zd()===0||On(t))&&$n(a,e),Yd()):$n(a,e),vi()&&(!c||!Zi(t))&&ll(s,e,a,t),t}function gl(t){let e=t;return Wa()?Qa():(e=e.parent,Ln(e,!1)),e}function XI(t,e){let n=t[Ge];if(!n)return;let r;try{r=n.get(xt,null)}catch(o){r=null}r?.(e)}function yl(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];un(d,n[l],u,o),a=!0}if(i)for(let c of i){let l=n[c],u=e.data[c];un(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];un(h,n[f],m,i),l=!0}else if(f>c)break}}return s!==null&&r.inputs.hasOwnProperty(o)&&(un(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[Re];o!==null&&n[Xt]===null&&(n[Xt]=Vp(o,n[Ge])),F(O.ComponentStart);try{vl(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 vl(t,e,n){gi(e);try{let r=t.viewQuery;r!==null&&Tc(1,r,n);let o=t.template;o!==null&&dh(t,e,o,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),e[Qe]?.finishViewCreation(t),t.staticContentQueries&&Hp(t,e),t.staticViewQueries&&Tc(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[S]&=-5,yi()}}function rD(t,e){for(let n=0;n<e.length;n++)tD(t,e[n])}function $r(t,e,n,r){let o=I(null);try{let i=e.tView,a=t[S]&4096?4096:16,c=fl(t,i,n,a,null,e,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=t[e.index];c[St]=l;let u=t[Qe];return u!==null&&(c[Qe]=u.createEmbeddedView(i)),vl(i,c,n),c}finally{I(o)}}function qn(t,e){return!e||e.firstChild===null||Np(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)&&ph(i,r);let s=n.type;if(s&8)kr(t,e,n.child,r);else if(s&32){let a=ol(n,e),c;for(;c=a();)r.push(c)}else if(s&16){let a=sh(e,n);if(Array.isArray(a))r.push(...a);else{let c=ot(e[le]);kr(c[E],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function ph(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[Ct]!==t[Re]&&e.push(t[Ct])}function hh(t){if(t[tn]!==null){for(let e of t[tn])e.impl.addSequence(e);t[tn].length=0}}var mh=[];function oD(t){return t[ve]??iD(t)}function iD(t){let e=mh.pop()??Object.create(aD);return e.lView=t,e}function sD(t){t.lView[ve]!==t&&(t.lView=null,mh.push(t))}var aD=ee(G({},jt),{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({},jt),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let e=ot(t.lView);for(;e&&!gh(e[E]);)e=ot(e);e&&Va(e)},consumerOnSignalRead(){this.lView[ve]=this}});function gh(t){return t.type!==2}function yh(t){if(t[Dt]===null)return;let e=!0;for(;e;){let n=!1;for(let r of t[Dt])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));e=n&&!!(t[S]&8192)}}var uD=100;function vh(t,e=0){let r=t[We].rendererFactory,o=!1;o||r.begin?.();try{dD(t,e)}finally{o||r.end?.()}}function dD(t,e){let n=Ka();try{hr(!0),Oc(t,e);let r=0;for(;_r(t);){if(r===uD)throw new g(103,!1);r++,Oc(t,1)}}finally{hr(n)}}function fD(t,e,n,r){if(rn(e))return;let o=e[S],i=!1,s=!1;gi(e);let a=!0,c=null,l=null;i||(gh(t)?(l=oD(e),c=mt(l)):co()===null?(a=!1,l=cD(e),c=mt(l)):e[ve]&&(gt(e[ve]),e[ve]=null));try{ja(e),of(t.bindingStartIndex),n!==null&&dh(t,e,n,2,r);let u=(o&3)===3;if(!i)if(u){let f=t.preOrderCheckHooks;f!==null&&Si(e,f,null)}else{let f=t.preOrderHooks;f!==null&&Ci(e,f,0,null),sc(e,0)}if(s||pD(e),yh(e),Eh(e,0),t.contentQueries!==null&&Hp(t,e),!i)if(u){let f=t.contentCheckHooks;f!==null&&Si(e,f)}else{let f=t.contentHooks;f!==null&&Ci(e,f,1),sc(e,1)}mD(t,e);let d=t.components;d!==null&&Dh(e,d,0);let p=t.viewQuery;if(p!==null&&Tc(2,p,r),!i)if(u){let f=t.viewCheckHooks;f!==null&&Si(e,f)}else{let f=t.viewHooks;f!==null&&Ci(e,f,2),sc(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[ai]){for(let f of e[ai])f();e[ai]=null}i||(hh(e),e[S]&=-73)}catch(u){throw i||on(e),u}finally{l!==null&&(Ht(l,c),a&&sD(l)),yi()}}function Eh(t,e){for(let n=Ap(t);n!==null;n=kp(n))for(let r=z;r<n.length;r++){let o=n[r];Ih(o,e)}}function pD(t){for(let e=Ap(t);e!==null;e=kp(e)){if(!(e[S]&2))continue;let n=e[nn];for(let r=0;r<n.length;r++){let o=n[r];Va(o)}}}function hD(t,e,n){F(O.ComponentStart);let r=Se(e,t);try{Ih(r,n)}finally{F(O.ComponentEnd,r[W])}}function Ih(t,e){li(t)&&Oc(t,e)}function Oc(t,e){let r=t[E],o=t[S],i=t[ve],s=!!(e===0&&o&16);if(s||=!!(o&64&&e===0),s||=!!(o&1024),s||=!!(i?.dirty&&yn(i)),s||=!1,i&&(i.dirty=!1),t[S]&=-9217,s)fD(r,t,r.template,t[W]);else if(o&8192){let a=I(null);try{yh(t),Eh(t,1);let c=r.components;c!==null&&Dh(t,c,1),hh(t)}finally{I(a)}}}function Dh(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)Mt(~o);else{let i=o,s=n[++r],a=n[++r];af(s,i);let c=e[i];F(O.HostBindingsUpdateStart,c);try{a(2,c)}finally{F(O.HostBindingsUpdateEnd,c)}}}}finally{Mt(-1)}}function El(t,e){let n=Ka()?64:1088;for(t[We].changeDetectionScheduler?.notify(e);t;){t[S]|=n;let r=ot(t);if(Pn(t)&&!r)return t;t=r}return null}function _h(t,e,n,r){return[t,!0,0,e,null,r,null,n,null,null]}function Th(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=Rc(n,t),a=e[H],c=a.parentNode(t[Ct]);c!==null&&CI(o,t[ie],a,e,c,s)}let i=e[Xt];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function wh(t,e){let n=Rr(t,e);return n!==void 0&&ts(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[St];o!==null&&o!==t&&cl(o,r),e>0&&(t[n-1][_e]=r[_e]);let i=Er(t,z+e);SI(r[E],r);let s=i[Qe];s!==null&&s.detachView(i[E]),r[J]=null,r[_e]=null,r[S]&=-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],Ta(n,z+r,e)):(n.push(e),e[_e]=null),e[J]=n;let s=e[St];s!==null&&n!==s&&bh(s,e);let a=e[Qe];a!==null&&a.insertView(t),ui(e),e[S]|=128}function bh(t,e){let n=t[nn],r=e[J];if(st(r))t[S]|=2;else{let o=r[J][le];e[le]!==o&&(t[S]|=2)}n===null?t[nn]=[e]:n.push(e)}var kt=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[Dr],r=n?n.indexOf(this):-1;r>-1&&(Rr(e,r),Er(n,r))}this._attachedToViewContainer=!1}ts(this._lView[E],this._lView)}onDestroy(e){di(this._lView,e)}markForCheck(){El(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[S]&=-129}reattach(){ui(this._lView),this._lView[S]|=128}detectChanges(){this._lView[S]|=1024,vh(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new g(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Pn(this._lView),n=this._lView[St];n!==null&&!e&&cl(n,this._lView),rh(this._lView[E],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new g(902,!1);this._appRef=e;let n=Pn(this._lView),r=this._lView[St];r!==null&&!n&&bh(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 kt(i)}}return t})();function yD(){return is(Q(),b())}function is(t,e){return t.type&4?new Or(e,t,Kn(t,e)):null}function Zn(t,e,n,r,o){let i=t.data[e];if(i===null)i=vD(t,e,n,r,o),sf()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=ef();i.injectorIndex=s===null?-1:s.injectorIndex}return Ln(i,!0),i}function vD(t,e,n,r,o){let i=Ga(),s=Wa(),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 Ua()&&(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:Ja(),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[ka]??[],r=t[J][H],o=[];for(let i of e)i.data[Lp]!==void 0?o.push(i):_D(i,r);t[ka]=o}function _D(t,e){let n=0,r=t.firstChild;if(r){let o=t.data[Pp];for(;n<o;){let i=r.nextSibling;Zp(e,r,!1),r=i,n++}}}var TD=()=>null,wD=()=>null;function ji(t,e){return TD(t,e)}function Sh(t,e,n){return wD(t,e,n)}var Ch=class{},Pr=class{},bD=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>SD()}return t})();function SD(){let t=b(),e=Q(),n=Se(e.index,t);return(st(n)?n:t)[H]}var Mh=(()=>{class t{static \u0275prov=fe({token:t,providedIn:"root",factory:()=>null})}return t})();function Nh(t){return t.debugInfo?.className||t.type.name||null}var Ni={},Vi=class{injector;parentInjector;constructor(e,n){this.injector=e,this.parentInjector=n}get(e,n,r){let o=this.injector.get(e,Ni,r);return o!==Ni||n===Ni?o:this.parentInjector.get(e,n,r)}};function Il(t){return Ah(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function xh(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 Ah(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function CD(t,e,n){return t[e]=n}function Xe(t,e,n){if(n===pe)return!1;let r=t[e];return Object.is(r,n)?!1:(t[e]=n,!0)}function kh(t,e,n,r){let o=Xe(t,e,n);return Xe(t,e+1,r)||o}function an(t,e,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&yE(o,i);let s=at(t)?Se(t.index,e):e;El(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=I(null);try{return F(O.OutputStart,e,n),n(r)!==!1}catch(i){return XI(t,i),!1}finally{F(O.OutputEnd,e,n),I(o)}}function Dl(t,e,n,r,o,i,s,a){let c=On(t),l=!1,u=null;if(!r&&c&&(u=ND(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(!MD(i)){let h=r?m=>r(we(m[t.index])):t.index;Rh(h,e,n,i,a,f,!1)}}return l}function MD(t){return t.startsWith("animation")||t.startsWith("transition")}function ND(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[kn],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Rh(t,e,n,r,o,i,s){let a=e.firstCreatePass?Ba(e):null,c=Ha(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,Hi(t,e,p,u[d+1],r,o);else if(p>a)break}}return n.outputs.hasOwnProperty(r)&&(c=!0,Hi(t,e,i,r,r,o)),c}function Hi(t,e,n,r,o,i){let s=e[n],a=e[E],l=a.data[n].outputs[r],d=s[l].subscribe(i);Rh(t.index,a,e,o,i,d,!0)}function xD(){AD()}function AD(){let t=b(),e=B(),n=Q();if(e.firstCreatePass&&OD(e,n),n.controlDirectiveIndex===-1)return;dt("NgSignalForms");let r=t[n.controlDirectiveIndex];e.data[n.controlDirectiveIndex].controlDef.create(r,new Bi(t,e,n))}function kD(){RD()}function RD(){let t=b(),e=B(),n=wr();if(n.controlDirectiveIndex===-1)return;let r=e.data[n.controlDirectiveIndex].controlDef,o=t[n.controlDirectiveIndex];r.update(o,new Bi(t,e,n))}var Bi=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,an(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,an(this.tNode,this.lView,e))}listenToDom(e,n){Dl(this.tNode,this.tView,this.lView,void 0,this.lView[H],e,n,an(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];un(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];un(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 OD(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}PD(t,e)}function PD(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 LD(t,e)&&FD(t,e+"Change")}function LD(t,e){return e in t.inputs}function FD(t,e){return e in t.outputs}var Pc=Symbol("BINDING");var Oh=new P("");function $i(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=b();if(n===null)return ze(t,e);let r=Q();return wp(r,n,Y(t),e)}function jD(){let t="invalid";throw new Error(t)}function Ph(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}BD(t,e,n,a,i,c,l)}i!==null&&r!==null&&VD(n,r,i)}function VD(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 HD(t,e,n){e.componentOffset=n,(t.components??=[]).push(e.index)}function BD(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&&Oe(f)&&(c=f,HD(t,n,p)),Ec(Oi(n,e),t,f.type)}WD(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=lh(t,e,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=Bn(n.mergedAttrs,f.hostAttrs),UD(t,n,e,d,f),GD(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++}$D(t,n,i)}function $D(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),Lh(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),Lh(e,s)}}function Lh(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||rl(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 UD(t,e,n,r,o){t.data[r]=o;let i=o.factory||(o.factory=It(o.type,!0)),s=new cn(i,Oe(o),qr,null);t.blueprint[r]=s,n[r]=s,qD(t,e,r,lh(t,n,o.hostVars,pe),o)}function qD(t,e,n,r,o){let i=o.hostBindings;if(i){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~e.index;zD(s)!=a&&s.push(a),s.push(n,r,i)}}function zD(t){let e=t.length;for(;e>0;){let n=t[--e];if(typeof n=="number"&&n<0)return n}return 0}function GD(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;Oe(e)&&(n[""]=t)}}function WD(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function _l(t,e,n,r,o,i,s,a){let c=e[E],l=c.consts,u=Ee(l,s),d=Zn(c,t,n,r,u);return i&&Ph(c,e,d,Ee(l,a),o),d.mergedAttrs=Bn(d.mergedAttrs,d.attrs),d.attrs!==null&&$i(d,d.attrs,!1),d.mergedAttrs!==null&&$i(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function Tl(t,e){mp(t,e),Ra(e)&&t.queries.elementEnd(e)}function QD(t,e,n,r,o,i){let s=e.consts,a=Ee(s,o),c=Zn(e,t,n,r,a);if(c.mergedAttrs=Bn(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&&$i(c,c.attrs,!1),c.mergedAttrs!==null&&$i(c,c.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,c),c}var Fh=typeof ShadowRoot<"u",KD=typeof Document<"u";function ZD(t){return Object.keys(t).map(e=>{let[n,r,o]=t[e],i={propName:n,templateName:e,isSignal:(r&rs.SignalBased)!==0};return o&&(i.transform=o),i})}function YD(t){return Object.keys(t).map(e=>({propName:t[e],templateName:e}))}function JD(t,e,n){let r=e instanceof De?e:e?.injector;return r&&t.getStandaloneInjector!==null&&(r=t.getStandaloneInjector(r)||r),r?new Vi(n,r):n}function XD(t){let e=t.get(Pr,null);if(e===null)throw new g(407,!1);let n=t.get(Mh,null),r=t.get(ke,null),o=t.get(fn,null,{optional:!0});return{rendererFactory:e,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1,tracingService:o}}function e_(t,e){let n=jh(t);return Qp(e,n,n==="svg"?Oa:n==="math"?qd:null)}function t_(t){if(t?.toLowerCase()==="script")throw new g(905,!1)}function jh(t){return(t.selectors[0][0]||"div").toLowerCase()}var zn=class{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=ZD(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=YD(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=I(null);try{let c=this.componentDef,l=JD(c,o||this.ngModule,e),u=XD(l),d=u.tracingService;return d&&d.componentCreate?d.componentCreate(Nh(c),()=>this.createComponentRef(u,l,n,r,i,s)):this.createComponentRef(u,l,n,r,i,s)}finally{I(a)}}createComponentRef(e,n,r,o,i,s){let a=this.componentDef,c=n_(o,a,s,i),l=e.rendererFactory.createRenderer(null,a),u=o?BI(l,o,a.encapsulation,n):e_(a,l);t_(u?.tagName);let d=n.get(Oh,null),p=r_(u,()=>n.get(Ei,null)??Op());d&&d.addHost(p);let f=s?.some(Jf)||i?.some(v=>typeof v!="function"&&v.bindings.some(Jf)),h=fl(null,c,null,512|ch(a),null,null,e,l,n,null,Vp(u,n,!0));d&&Fh&&p instanceof ShadowRoot&&di(h,()=>{d.removeHost(p)}),h[U]=u,gi(h);let m=null;try{let v=_l(U,h,2,"#host",()=>c.directiveRegistry,!0,0);Yp(l,u,v),$n(u,h),os(c,h,v),tl(c,v,h),Tl(c,v),r!==void 0&&i_(v,this.ngContentSelectors,r),m=Se(v.index,h),h[W]=m[W],vl(c,h,null)}catch(v){throw m!==null&&Dc(m),Dc(h),v}finally{F(O.DynamicComponentEnd),yi()}return new Ui(this.componentType,h,!!f)}};function n_(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[Pc].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[Pc].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 dl(0,null,o_(i,s),1,a,c,null,null,null,[o],null)}function r_(t,e){let n=t.getRootNode?.();return KD&&n instanceof Document?n.head:n&&Fh&&n instanceof ShadowRoot?n:e().head}function o_(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[Pc].kind;return e==="input"||e==="twoWay"}var Ui=class extends Ch{_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=Kn(this._tNode,n),this.instance=Se(this._tNode.index,n)[W],this.hostView=this.changeDetectorRef=new kt(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=yl(r,o[E],o,e,n);this.previousInputValues.set(e,n);let s=Se(r.index,o);El(s,1)}get injector(){return new At(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function i_(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 ss=(()=>{class t{static __NG_ELEMENT_ID__=s_}return t})();function s_(){let t=Q();return Vh(t,b())}var Lc=class t extends ss{_lContainer;_hostTNode;_hostLView;constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return Kn(this._hostTNode,this._hostLView)}get injector(){return new At(this._hostTNode,this._hostLView)}get parentInjector(){let e=Xc(this._hostTNode,this._hostLView);if(vp(e)){let n=ki(e,this._hostLView),r=Ai(e),o=n[E].data[r+8];return new At(o,n)}else return new At(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=ji(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,qn(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 zn(_t(e)),d=r||this.parentInjector;if(!i&&u.ngModule==null){let _=this.parentInjector.get(De,null);_&&(i=_)}let p=_t(u.componentType??{}),f=ji(this._lContainer,p?.id??null),h=f?.firstChild??null,m=u.create(d,o,h,i,s,a);return this.insertImpl(m.hostView,c,qn(this._hostTNode,f)),m}insert(e,n){return this.insertImpl(e,n,!0)}insertImpl(e,n,r){let o=e._lView;if(Gd(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(),Ta(lc(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&&(Er(lc(this._lContainer),n),ts(r[E],r))}detach(e){let n=this._adjustIndex(e,-1),r=Rr(this._lContainer,n);return r&&Er(lc(this._lContainer),n)!=null?new kt(r):null}_adjustIndex(e,n=0){return e??this.length+n}};function Xf(t){return t[Dr]}function lc(t){return t[Dr]||(t[Dr]=[])}function Vh(t,e){let n,r=e[t.index];return Te(r)?n=r:(n=_h(r,e,null,t),e[t.index]=n,pl(e,n)),c_(n,e,t,r),new Lc(n,t,e)}function a_(t,e){let n=t[H],r=n.createComment(""),o=be(e,t),i=n.parentNode(o);return Li(n,i,r,n.nextSibling(o),!1),r}var c_=d_,l_=()=>!1;function u_(t,e,n){return l_(t,e,n)}function d_(t,e,n,r){if(t[Ct])return;let o;n.type&8?o=we(r):o=a_(e,n),t[Ct]=o}var Fc=class t{queryList;matches=null;constructor(e){this.queryList=e}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},jc=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++)bl(e,n).matches!==null&&this.queries[n].setDirty()}},qi=class{flags;read;predicate;constructor(e,n,r=null){this.flags=n,this.read=r,typeof e=="string"?this.predicate=g_(e):this.predicate=e}},Vc=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)}},Hc=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,f_(n,i)),this.matchTNodeWithReadOption(e,n,Mi(n,e,i,!1,!1))}else r===Or?n.type&4&&this.matchTNodeWithReadOption(e,n,-1):this.matchTNodeWithReadOption(e,n,Mi(n,e,r,!1,!1))}matchTNodeWithReadOption(e,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===Vr||o===ss||o===Or&&n.type&4)this.addMatch(n.index,-2);else{let i=Mi(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 f_(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 p_(t,e){return t.type&11?Kn(t,e):t.type&4?is(t,e):null}function h_(t,e,n,r){return n===-1?p_(e,t):n===-2?m_(t,e,r):xr(t,t[E],n,e)}function m_(t,e,n){if(n===Vr)return Kn(e,t);if(n===Or)return is(e,t);if(n===ss)return Vh(e,t)}function Hh(t,e,n,r){let o=e[Qe].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(h_(e,u,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function Bc(t,e,n,r){let o=t.queries.getByIndex(n),i=o.matches;if(i!==null){let s=Hh(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[St]===p[J]&&Bc(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];Bc(f[E],f,l,r)}}}}}return r}function wl(t,e){return t[Qe].queries[e].queryList}function Bh(t,e,n){let r=new Pi((n&4)===4);return Kd(t,e,r,r.destroy),(e[Qe]??=new jc).queries.push(new Fc(r))-1}function $h(t,e,n){let r=B();return r.firstCreatePass&&(qh(r,new qi(t,e,n),-1),(e&2)===2&&(r.staticViewQueries=!0)),Bh(r,b(),e)}function Uh(t,e,n,r){let o=B();if(o.firstCreatePass){let i=Q();qh(o,new qi(e,n,r),i.index),y_(o,t),(n&2)===2&&(o.staticContentQueries=!0)}return Bh(o,b(),n)}function g_(t){return t.split(",").map(e=>e.trim())}function qh(t,e,n){t.queries===null&&(t.queries=new Vc),t.queries.track(new Hc(e,n))}function y_(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 bl(t,e){return t.queries.getByIndex(e)}function zh(t,e){let n=t[E],r=bl(n,e);return r.crossesNgTemplate?Bc(n,t,e,[]):Hh(n,t,r,e)}function Gh(t,e,n){let r,o=rr(()=>{r._dirtyCounter();let i=v_(r,t);if(e&&i===void 0)throw new g(-951,!1);return i});return r=o[Z],r._dirtyCounter=Ii(0),r._flatValue=void 0,o}function Sl(t){return Gh(!0,!1,t)}function Cl(t){return Gh(!0,!0,t)}function Wh(t,e){let n=t[Z];n._lView=b(),n._queryIndex=e,n._queryList=wl(n._lView,e),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1))}function v_(t,e){let n=t._lView,r=t._queryIndex;if(n===void 0||r===void 0||n[S]&4)return e?void 0:oe;let o=wl(n,r),i=zh(n,r);return o.reset(i,Mp),e?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}function Ml(t){return!!t&&typeof t.then=="function"}function Qh(t){return!!t&&typeof t.subscribe=="function"}var zi=class{};var Lr=class extends zi{injector;instance=null;constructor(e){super();let n=new Zt([...e.providers,{provide:zi,useValue:this}],e.parent||An(),e.debugName,new Set(["environment"]));this.injector=n,e.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Kh(t,e,n=null){return new Lr({providers:t,parent:e,debugName:n,runEnvironmentInitializers:!0}).injector}var E_=(()=>{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=Sa(!1,n.type),o=r.length>0?Kh([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=fe({token:t,providedIn:"environment",factory:()=>new t(ze(De))})}return t})();function I_(t){return jr(()=>{let e=Zh(t),n=ee(G({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection!==el.Eager,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:e.standalone?o=>o.get(E_).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||ln.Emulated,styles:t.styles||oe,_:null,schemas:t.schemas||null,tView:null,id:""});e.standalone&&dt("NgStandalone"),Yh(n);let r=t.dependencies;return n.directiveDefs=ep(r,D_),n.pipeDefs=ep(r,xd),n.id=C_(n),n})}function D_(t){return _t(t)||ti(t)}function __(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 T_(t,e){if(t==null)return wt;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=rs.None,c=null),n[i]=[r,a,c],e[i]=s}return n}function w_(t){if(t==null)return wt;let e={};for(let n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function b_(t){return jr(()=>{let e=Zh(t);return Yh(e),e})}function S_(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 Zh(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||wt,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:T_(t.inputs,e),outputs:w_(t.outputs),debugInfo:null}}function Yh(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 C_(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 Jh=new P("");var Nl=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=w(Jh,{optional:!0})??[];injector=w(Ae);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=si(this.injector,o);if(Ml(i))n.push(i);else if(Qh(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=Qn({token:t,factory:t.\u0275fac})}return t})();function M_(t){return e=>{e.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r)},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r)},passThroughInput:t}}}function N_(t){let e=n=>{let r=Array.isArray(t);n.hostDirectives===null?(n.resolveHostDirectives=x_,n.hostDirectives=r?t.map($c):[t]):r?n.hostDirectives.unshift(...t.map($c)):n.hostDirectives.unshift(t)};return e.ngInherit=!0,e}function x_(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,Xh(s,e,r,t),o.set(s,[a,e.length-1])}i===0&&Oe(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)=>{A_(s.declaredInputs,i.inputs)}),[e,r,o]}function Xh(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($c(s),e,n,r)}else tp(o,e,n,r)}function tp(t,e,n,r){let o=ti(t.directive);if(Xh(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 $c(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 A_(t,e){for(let n in e)if(e.hasOwnProperty(n)){let r=e[n],o=t[n];t[r]=o}}function k_(t){return Object.getPrototypeOf(t.prototype).constructor}function em(t){let e=k_(t.type),n=!0,r=[t];for(;e;){let o;if(Oe(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=uc(t.inputs),s.declaredInputs=uc(t.declaredInputs),s.outputs=uc(t.outputs);let a=o.hostBindings;a&&F_(t,a);let c=o.viewQuery,l=o.contentQueries;if(c&&P_(t,c),l&&L_(t,l),R_(t,o),Md(t.outputs,o.outputs),Oe(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===em&&(n=!1)}}e=Object.getPrototypeOf(e)}O_(r)}function R_(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 O_(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=Bn(o.hostAttrs,n=Bn(n,o.hostAttrs))}}function uc(t){return t===wt?{}:t===oe?[]:t}function P_(t,e){let n=t.viewQuery;n?t.viewQuery=(r,o)=>{e(r,o),n(r,o)}:t.viewQuery=e}function L_(t,e){let n=t.contentQueries;n?t.contentQueries=(r,o,i)=>{e(r,o,i),n(r,o,i)}:t.contentQueries=e}function F_(t,e){let n=t.hostBindings;n?t.hostBindings=(r,o)=>{e(r,o),n(r,o)}:t.hostBindings=e}function tm(t,e,n,r,o,i,s,a){if(n.firstCreatePass){t.mergedAttrs=Bn(t.mergedAttrs,t.attrs);let u=t.tView=dl(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),Ln(t,!1);let c=V_(n,e,t,r);vi()&&ll(n,e,c,t),$n(c,e);let l=_h(c,e,c,t);e[r+U]=l,pl(e,l),u_(l,t,e)}function j_(t,e,n,r,o,i,s,a,c,l,u){let d=n+U,p;return e.firstCreatePass?(p=Zn(e,d,4,s||null,a||null),fi()&&Ph(e,t,p,Ee(e.consts,l),hl),mp(e,p)):p=e.data[d],tm(p,t,e,n,r,o,i,c),On(p)&&os(e,t,p),l!=null&&Br(t,p,u),p}function Gn(t,e,n,r,o,i,s,a,c,l,u){let d=n+U,p;if(e.firstCreatePass){if(p=Zn(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 tm(p,t,e,n,r,o,i,c),l!=null&&Br(t,p,u),p}function nm(t,e,n,r,o,i,s,a){let c=b(),l=B(),u=Ee(l.consts,i);return j_(c,l,t,e,n,r,o,u,void 0,s,a),nm}function rm(t,e,n,r,o,i,s,a){let c=b(),l=B(),u=Ee(l.consts,i);return Gn(c,l,t,e,n,r,o,u,void 0,s,a),rm}var V_=H_;function H_(t,e,n,r){return br(!0),e[H].createComment("")}var om=new P("");var im=new P("");function sm(){Ps(()=>{let t="";throw new g(600,t)})}var B_=10;var zr=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=w(xt);afterRenderManager=w(Xi);zonelessEnabled=w(jn);rootEffectScheduler=w(_i);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=w(Nt);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(tt(n=>!n))}constructor(){w(fn,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=w(De);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=Ae.NULL){return this._injector.get(ne).run(()=>{if(F(O.BootstrapComponentStart),!this._injector.get(Nl).done){let _="";throw new g(405,_)}let a=_t(n),c=this._injector.get(zi),l=new zn(a,c);this.componentTypes.push(n);let{hostElement:u,directives:d,bindings:p}=$_(r),f=u||l.selector,h=l.create(o,[],f,c.injector,d,p),m=h.location.nativeElement,v=h.injector.get(om,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(Ji.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw F(O.ChangeDetectionEnd),new g(101,!1);let n=I(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,I(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++<B_;){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&&!_r(o))continue;let i=r&&!this.zonelessEnabled?0:1;vh(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})=>_r(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(im,[]).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=Qn({token:t,factory:t.\u0275fac})}return t})();function $_(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 am(t,e,n,r){let o=b(),i=sn();if(Xe(o,i,e)){let s=B(),a=wr();ZI(a,o,t,e,n,r)}return am}var Uc=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 dc(t,e,n,r,o){return t===n&&Object.is(e,r)?1:Object.is(o(t,e),o(n,r))?-1:0}function U_(t,e,n,r){let o,i,s=0,a=t.length-1,c=void 0;if(Array.isArray(e)){I(r);let l=e.length-1;for(I(null);s<=a&&s<=l;){let u=t.at(s),d=e[s],p=dc(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=dc(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 Gi,i??=ip(t,s,a,n),qc(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){I(r);let l=e[Symbol.iterator]();I(null);let u=l.next();for(;!u.done&&s<=a;){let d=t.at(s),p=u.value,f=dc(s,d,s,p,n);if(f!==0)f<0&&t.updateValue(s,p),s++,u=l.next();else{o??=new Gi,i??=ip(t,s,a,n);let h=n(s,p);if(qc(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 qc(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(qc(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 Gi=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 q_(t,e,n,r,o,i,s,a){dt("NgControlFlow");let c=b(),l=B(),u=Ee(l.consts,i);return Gn(c,l,t,e,n,r,o,u,256,s,a),xl}function xl(t,e,n,r,o,i,s,a){dt("NgControlFlow");let c=b(),l=B(),u=Ee(l.consts,i);return Gn(c,l,t,e,n,r,o,u,512,s,a),xl}function z_(t,e){dt("NgControlFlow");let n=b(),r=sn(),o=n[r]!==pe?n[r]:-1,i=o!==-1?Wi(n,U+o):void 0,s=0;if(Xe(n,r,t)){let a=I(null);try{if(i!==void 0&&wh(i,s),t!==-1){let c=U+t,l=Wi(n,c),u=Qc(n[E],c),d=Sh(l,u,n),p=$r(n,u,e,{dehydratedView:d});Ur(l,p,s,qn(u,d))}}finally{I(a)}}else if(i!==void 0){let a=Th(i,s);a!==void 0&&(a[W]=e)}}var zc=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 G_(t,e){return e}var Gc=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,n,r){this.hasEmptyBlock=e,this.trackByFn=n,this.liveCollection=r}};function W_(t,e,n,r,o,i,s,a,c,l,u,d,p){dt("NgControlFlow");let f=b(),h=B(),m=c!==void 0,v=b(),_=a?s.bind(v[le][W]):s,L=new Gc(m,_);v[U+t]=L,Gn(f,h,t+1,e,n,r,o,Ee(h.consts,i),256),m&&Gn(f,h,t+2,c,l,u,d,Ee(h.consts,p),512)}var Wc=class extends Uc{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,qn(this.templateTNode,r)),K_(this.lContainer,e)}detach(e){return this.needsIndexUpdate||=e!==this.length-1,Z_(this.lContainer,e),Y_(this.lContainer,e)}create(e,n){let r=ji(this.lContainer,this.templateTNode.tView.ssrId);return $r(this.hostLView,this.templateTNode,new zc(this.lContainer,n,e),{dehydratedView:r})}destroy(e){ts(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 J_(this.lContainer,e)}};function Q_(t){let e=I(null),n=Ye();try{let r=b(),o=r[E],i=r[n],s=n+1,a=Wi(r,s);if(i.liveCollection===void 0){let l=Qc(o,s);i.liveCollection=new Wc(a,r,l)}else i.liveCollection.reset();let c=i.liveCollection;if(U_(c,t,i.trackByFn,e),c.updateIndexes(),i.hasEmptyBlock){let l=sn(),u=c.length===0;if(Xe(r,l,u)){let d=n+2,p=Wi(r,d);if(u){let f=Qc(o,d),h=Sh(p,f,r),m=$r(r,f,void 0,{dehydratedView:h});Ur(p,m,0,qn(f,h))}else o.firstUpdatePass&&DD(p),wh(p,0)}}}finally{I(e)}}function Wi(t,e){return t[e]}function K_(t,e){if(t.length<=z)return;let n=z+e,r=t[n],o=r?r[Ze]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Ge];II(i,o),Un.delete(r[Ke]),o.detachedLeaveAnimationFns=void 0}}function Z_(t,e){if(t.length<=z)return;let n=z+e,r=t[n],o=r?r[Ze]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function Y_(t,e){return Rr(t,e)}function J_(t,e){return Th(t,e)}function Qc(t,e){return ci(t,e)}function cm(t,e,n){let r=b(),o=sn();if(Xe(r,o,e)){let i=B(),s=wr();zI(s,r,t,e,r[H],n)}return cm}function Kc(t,e,n,r,o){yl(e,t,n,o?"class":"style",r)}function Qi(t,e,n,r){let o=b(),i=o[E],s=t+U,a=i.firstCreatePass?_l(s,o,2,e,hl,fi(),n,r):i.data[s];if(at(a)){let c=o[We].tracingService;if(c&&c.componentCreate){let l=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(Nh(l),()=>(sp(t,e,o,a,r),Qi))}}return sp(t,e,o,a,r),Qi}function sp(t,e,n,r,o){if(ml(r,n,t,e,dm),On(r)){let i=n[E];os(i,n,r),tl(i,r,n)}o!=null&&Br(n,r)}function Al(){let t=B(),e=Q(),n=gl(e);return t.firstCreatePass&&Tl(t,n),qa(n)&&za(),$a(),n.classesWithoutHost!=null&&Yv(n)&&Kc(t,n,b(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&Jv(n)&&Kc(t,n,b(),n.stylesWithoutHost,!1),Al}function lm(t,e,n,r){return Qi(t,e,n,r),Al(),lm}function kl(t,e,n,r){let o=b(),i=o[E],s=t+U,a=i.firstCreatePass?QD(s,i,2,e,n,r):i.data[s];return ml(a,o,t,e,dm),r!=null&&Br(o,a),kl}function Rl(){let t=Q(),e=gl(t);return qa(e)&&za(),$a(),Rl}function um(t,e,n,r){return kl(t,e,n,r),Rl(),um}var dm=(t,e,n,r,o)=>(br(!0),Qp(e[H],r,Ja()));function Ol(t,e,n){let r=b(),o=r[E],i=t+U,s=o.firstCreatePass?_l(i,r,8,"ng-container",hl,fi(),e,n):o.data[i];if(ml(s,r,t,"ng-container",X_),On(s)){let a=r[E];os(a,r,s),tl(a,s,r)}return n!=null&&Br(r,s),Ol}function Pl(){let t=B(),e=Q(),n=gl(e);return t.firstCreatePass&&Tl(t,n),Pl}function fm(t,e,n){return Ol(t,e,n),Pl(),fm}var X_=(t,e,n,r,o)=>(br(!0),YE(e[H],""));function eT(){return b()}function pm(t,e,n){let r=b(),o=sn();if(Xe(r,o,e)){let i=B(),s=wr();fh(s,r,t,e,r[H],n)}return pm}var Sr=void 0;function tT(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return e===1&&n===0?1:5}var nT=["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",tT],fc=Object.create(null);function rT(t){let e=iT(t),n=ap(e);if(n)return n;let r=e.split("-")[0];if(n=ap(r),n)return n;if(r==="en")return nT;throw new g(701,!1)}function ap(t){if(!(t in fc)){let e=Tt.ng&&Tt.ng.common&&Tt.ng.common.locales&&Tt.ng.common.locales[t];return e!==void 0&&(fc[t]=e),e}return fc[t]}var oT={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 iT(t){return t.toLowerCase().replace(/_/g,"-")}var Gr="en-US";var sT=Gr;function hm(t){typeof t=="string"&&(sT=t.toLowerCase().replace(/_/g,"-"))}function mm(t,e,n){let r=b(),o=B(),i=Q();return aT(o,r,r[H],i,t,e,n),mm}function gm(t,e,n){let r=b(),o=B(),i=Q();return(i.type&3||n)&&Dl(i,o,r,n,r[H],t,e,an(i,r,e)),gm}function aT(t,e,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=an(r,e,i),Dl(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??=an(r,e,i),Hi(r,e,p,f,o,c)}if(l&&l.length)for(let d of l)c??=an(r,e,i),Hi(r,e,d,o,o,c)}}function cT(t=1){return pf(t)}function lT(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?eh(t,i,!0):lI(r,i))return o}return n}function uT(t){let e=b()[le][ie];if(!e.projection){let n=t?t.length:1,r=e.projection=Ld(n,null),o=r.slice(),i=e.child;for(;i!==null;){if(i.type!==128){let s=t?lT(i,t):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i)}i=i.next}}}function dT(t,e=0,n,r,o,i){let s=b(),a=B(),c=r?t+1:null;c!==null&&Gn(s,a,c,r,o,i,null,n);let l=Zn(a,U+t,16,null,n||null);l.projection===null&&(l.projection=e),Qa();let d=!s[Xt]||Ua();s[le][ie].projection[l.projection]===null&&c!==null?fT(s,a,c):d&&!Zi(l)&&OI(a,s,l)}function fT(t,e,n){let r=U+n,o=e.data[r],i=t[r],s=ji(i,o.tView.ssrId),a=$r(t,o,void 0,{dehydratedView:s});Ur(i,a,0,qn(o,s))}function ym(t,e,n,r){return Uh(t,e,n,r),ym}function vm(t,e,n){return $h(t,e,n),vm}function pT(t){let e=b(),n=B(),r=mi();Tr(r+1);let o=bl(n,r);if(t.dirty&&zd(e)===((o.metadata.flags&2)===2)){if(o.matches===null)t.reset([]);else{let i=zh(e,r);t.reset(i,Mp),t.notifyOnChanges()}return!0}return!1}function hT(){return wl(b(),mi())}function Em(t,e,n,r,o){return Wh(e,Uh(t,n,r,o)),Em}function Im(t,e,n,r){return Wh(t,$h(e,n,r)),Im}function mT(t=1){Tr(mi()+t)}function gT(t){let e=tf();return La(e,U+t)}function bi(t,e){return t<<17|e<<2}function dn(t){return t>>17&32767}function yT(t){return(t&2)==2}function vT(t,e){return t&131071|e<<17}function Zc(t){return t|2}function Wn(t){return(t&131068)>>2}function pc(t,e){return t&-131069|e<<2}function ET(t){return(t&1)===1}function Yc(t){return t|1}function IT(t,e,n,r,o,i){let s=i?e.classBindings:e.styleBindings,a=dn(s),c=Wn(s);t[r]=n;let l=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||xn(d,u)>0)&&(l=!0)}else u=n;if(o)if(c!==0){let p=dn(t[a+1]);t[r+1]=bi(p,a),p!==0&&(t[p+1]=pc(t[p+1],r)),t[a+1]=vT(t[a+1],r)}else t[r+1]=bi(a,0),a!==0&&(t[a+1]=pc(t[a+1],r)),a=r;else t[r+1]=bi(c,0),a===0?a=r:t[c+1]=pc(t[c+1],r),c=r;l&&(t[r+1]=Zc(t[r+1])),cp(t,u,r,!0),cp(t,u,r,!1),DT(e,u,t,r,i),s=bi(a,c),i?e.classBindings=s:e.styleBindings=s}function DT(t,e,n,r,o){let i=o?t.residualClasses:t.residualStyles;i!=null&&typeof e=="string"&&xn(i,e)>=0&&(n[r+1]=Yc(n[r+1]))}function cp(t,e,n,r){let o=t[n+1],i=e===null,s=r?dn(o):Wn(o),a=!1;for(;s!==0&&(a===!1||i);){let c=t[s],l=t[s+1];_T(c,e)&&(a=!0,t[s+1]=r?Yc(l):Zc(l)),s=r?dn(l):Wn(l)}a&&(t[n+1]=r?Zc(o):Yc(o))}function _T(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?xn(t,e)>=0:!1}var Le={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function TT(t){return t.substring(Le.key,Le.keyEnd)}function wT(t){return bT(t),Dm(t,_m(t,0,Le.textEnd))}function Dm(t,e){let n=Le.textEnd;return n===e?-1:(e=Le.keyEnd=ST(t,Le.key=e,n),_m(t,e,n))}function bT(t){Le.key=0,Le.keyEnd=0,Le.value=0,Le.valueEnd=0,Le.textEnd=t.length}function _m(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function ST(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}function Tm(t,e,n){return bm(t,e,n,!1),Tm}function wm(t,e){return bm(t,e,null,!0),wm}function CT(t){NT(PT,MT,t,!0)}function MT(t,e){for(let n=wT(e);n>=0;n=Dm(e,n))oi(t,TT(e),!0)}function bm(t,e,n,r){let o=b(),i=B(),s=pi(2);if(i.firstUpdatePass&&Cm(i,t,s,r),e!==pe&&Xe(o,s,e)){let a=i.data[Ye()];Mm(i,a,o,o[H],t,o[s+1]=FT(e,n),r,s)}}function NT(t,e,n,r){let o=B(),i=pi(2);o.firstUpdatePass&&Cm(o,null,i,r);let s=b();if(n!==pe&&Xe(s,i,n)){let a=o.data[Ye()];if(Nm(a,r)&&!Sm(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=Yo(c,n||"")),Kc(o,a,s,n,r)}else LT(o,a,s,s[H],s[i+1],s[i+1]=OT(t,e,n),r,i)}}function Sm(t,e){return e>=t.expandoStartIndex}function Cm(t,e,n,r){let o=t.data;if(o[n+1]===null){let i=o[Ye()],s=Sm(t,n);Nm(i,r)&&e===null&&!s&&(e=!1),e=xT(o,i,e,r),IT(o,i,e,n,s,r)}}function xT(t,e,n,r){let o=lf(t),i=r?e.residualClasses:e.residualStyles;if(o===null)(r?e.classBindings:e.styleBindings)===0&&(n=hc(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=hc(o,t,e,n,r),i===null){let c=AT(t,e,r);c!==void 0&&Array.isArray(c)&&(c=hc(null,t,e,c[1],r),c=Fr(c,e.attrs,r),kT(t,e,r,c))}else i=RT(t,e,r)}return i!==void 0&&(r?e.residualClasses=i:e.residualStyles=i),n}function AT(t,e,n){let r=n?e.classBindings:e.styleBindings;if(Wn(r)!==0)return t[dn(r)]}function kT(t,e,n,r){let o=n?e.classBindings:e.styleBindings;t[dn(o)]=r}function RT(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 hc(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 OT(t,e,n){if(n==null||n==="")return oe;let r=[],o=nl(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 PT(t,e,n){let r=String(e);r!==""&&!r.includes(" ")&&oi(t,r,n)}function LT(t,e,n,r,o,i,s,a){o===pe&&(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&&Mm(t,e,n,r,h,m,s,a),u=c<o.length?o[c]:null,d=l<i.length?i[l]:null}}function Mm(t,e,n,r,o,i,s,a){if(!(e.type&3))return;let c=t.data,l=c[a+1],u=ET(l)?lp(c,e,n,o,Wn(l),s):void 0;if(!Ki(u)){Ki(i)||yT(l)&&(i=lp(c,null,n,o,a,s));let d=Pa(Ye(),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===pe&&(p=d?oe:void 0);let f=d?ii(p,r):u===r?p:void 0;if(l&&!Ki(f)&&(f=ii(c,r)),Ki(f)&&(a=f,s))return a;let h=t[o+1];o=s?dn(h):Wn(h)}if(e!==null){let c=i?e.residualClasses:e.residualStyles;c!=null&&(a=ii(c,r))}return a}function Ki(t){return t!==void 0}function FT(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=Zo(nl(t)))),t}function Nm(t,e){return(t.flags&(e?8:16))!==0}function jT(t,e=""){let n=b(),r=B(),o=t+U,i=r.firstCreatePass?Zn(r,o,1,e,null):r.data[o],s=VT(r,n,i,e);n[o]=s,vi()&&ll(r,n,s,i),Ln(i,!1)}var VT=(t,e,n,r)=>(br(!0),KE(e[H],r));function HT(t,e,n,r=""){return Xe(t,sn(),n)?e+vr(n)+r:pe}function BT(t,e,n,r,o,i=""){let s=rf(),a=kh(t,s,n,o);return pi(2),a?e+vr(n)+r+vr(o)+i:pe}function xm(t){return Ll("",t),xm}function Ll(t,e,n){let r=b(),o=HT(r,t,e,n);return o!==pe&&km(r,Ye(),o),Ll}function Am(t,e,n,r,o){let i=b(),s=BT(i,t,e,n,r,o);return s!==pe&&km(i,Ye(),s),Am}function km(t,e,n){let r=Pa(e,t);ZE(t[H],r,n)}function up(t,e,n){let r=B();r.firstCreatePass&&Rm(e,r.data,r.blueprint,Oe(t),n)}function Rm(t,e,n,r,o){if(t=Y(t),Array.isArray(t))for(let i=0;i<t.length;i++)Rm(t[i],e,n,r,o);else{let i=B(),s=b(),a=Q(),c=Kt(t)?t:Y(t.provide),l=Na(t),u=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(Kt(t)||!t.multi){let f=new cn(l,o,qr,null),h=gc(c,e,o?u:u+p,d);h===-1?(Ec(Oi(a,s),i,c),mc(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=gc(c,e,u+p,d),h=gc(c,e,u,u+p),m=f>=0&&n[f],v=h>=0&&n[h];if(o&&!v||!o&&!m){Ec(Oi(a,s),i,c);let _=qT(o?UT:$T,n.length,o,r,l,t);!o&&v&&(n[h].providerFactory=_),mc(i,t,e.length,0),e.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(_),s.push(_)}else{let _=Om(n[o?h:f],l,!o&&r);mc(i,t,f>-1?f:h,_)}!o&&r&&v&&n[h].componentProviders++}}}function mc(t,e,n,r){let o=Kt(e),i=Bd(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 Om(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function gc(t,e,n,r){for(let o=n;o<r;o++)if(e[o]===t)return o;return-1}function $T(t,e,n,r,o){return Jc(this.multi,[])}function UT(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),Jc(i,s);for(let l=a;l<c.length;l++)s.push(c[l])}else s=[],Jc(i,s);return s}function Jc(t,e){for(let n=0;n<t.length;n++){let r=t[n];e.push(r())}return e}function qT(t,e,n,r,o,i){let s=new cn(t,n,qr,null);return s.multi=[],s.index=e,s.componentProviders=0,Om(s,o,r&&!n),s}function zT(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 GT(t,e){let n=t[e];return n===pe?void 0:n}function WT(t,e,n,r,o,i,s){let a=e+n;return kh(t,a,o,i)?CD(t,a+2,s?r.call(s,o,i):r(o,i)):GT(t,a+2)}function QT(t,e){let n=B(),r,o=t+U;n.firstCreatePass?(r=KT(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=It(r.type,!0)),s,a=ce(qr);try{let c=Ri(!1),l=i();return Ri(c),Fa(n,b(),o,l),l}finally{ce(a)}}function KT(t,e){if(e)for(let n=e.length-1;n>=0;n--){let r=e[n];if(t===r.name)return r}}function ZT(t,e,n,r){let o=t+U,i=b(),s=La(i,o);return YT(i,o)?WT(i,nf(),e,s.transform,n,r,s):s.transform(n,r)}function YT(t,e){return t[E].data[e].pure}function JT(t,e){return is(t,e)}var Pm=(()=>{class t{applicationErrorHandler=w(xt);appRef=w(zr);taskService=w(Nt);ngZone=w(ne);zonelessEnabled=w(jn);tracing=w(fn,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new $;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(mr):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(w(Di,{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?Ef:ec;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(mr+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=Qn({token:t,factory:t.\u0275fac})}return t})();function Lm(){return[{provide:ke,useExisting:Pm},{provide:ne,useClass:gr},{provide:jn,useValue:!0}]}function XT(){return typeof $localize<"u"&&$localize.locale||Gr}var Fl=new P("",{factory:()=>w(Fl,{optional:!0,skipSelf:!0})||XT()});var as=class{destroyed=!1;listeners=null;errorHandler=w(it,{optional:!0});isEmitting=!1;hasNullListeners=!1;destroyRef=w(ct);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(e){if(this.destroyed)throw new g(953,!1);return(this.listeners??=[]).push(e),{unsubscribe:()=>{let n=this.listeners?this.listeners.indexOf(e):-1;n>-1&&(this.isEmitting?(this.hasNullListeners=!0,this.listeners[n]=null):this.listeners.splice(n,1))}}}emit(e){if(this.destroyed){console.warn(yr(953,!1));return}if(this.listeners===null)return;this.isEmitting=!0;let n=I(null);try{for(let r of this.listeners)try{r!==null&&r(e)}catch(o){this.errorHandler?.handleError(o)}}finally{this.hasNullListeners&&(this.hasNullListeners=!1,this.listeners&&ew(this.listeners)),I(n),this.isEmitting=!1}}};function ew(t){let e=t.length-1;for(;e>-1;)t[e]===null&&t.splice(e,1),e--}function tw(t,e){return rr(t,e?.equal)}function nw(t){return Bu(t)}var Um=Symbol("InputSignalNode#UNSET"),rw=ee(G({},or),{transformFn:void 0,applyValueToInputSignal(t,e){En(t,e)}});function qm(t,e){let n=Object.create(rw);n.value=t,n.transformFn=e?.transform;function r(){if(Vt(n),n.value===Um){let o=null;throw new g(-950,o)}return n.value}return r[Z]=n,r}var Fm=class{attributeName;constructor(e){this.attributeName=e}__NG_ELEMENT_ID__=()=>Cp(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},Wj=(()=>{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 Qj(t){return new as}function jm(t,e){return qm(t,e)}function ow(t){return qm(Um,t)}var Kj=(jm.required=ow,jm);function Vm(t,e){return Sl(e)}function iw(t,e){return Cl(e)}var Zj=(Vm.required=iw,Vm);function Hm(t,e){return Sl(e)}function sw(t,e){return Cl(e)}var Yj=(Hm.required=sw,Hm);var aw=1e4;var Jj=aw-1e3;var Vl=class{supports(e){return Il(e)}create(e){return new Hl(e)}},cw=(t,e)=>e,Hl=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||cw}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<Bm(r,o,i)?n:r,a=Bm(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=[]),!Il(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,xh(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 Bl(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 ls),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 ls),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}},Bl=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}},$l=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}},ls=class{map=new Map;put(e){let n=e.trackById,r=this.map.get(n);r||(r=new $l,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 Bm(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 $m(){return new lw([new Vl])}var lw=(()=>{class t{factories;static \u0275prov=fe({token:t,providedIn:"root",factory:$m});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=w(t,{optional:!0,skipSelf:!0});return t.create(n,r||$m())}}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new g(901,!1)}}return t})();var Xj=(()=>{class t{static __NG_ELEMENT_ID__=uw}return t})();function uw(t){return dw(Q(),b(),(t&16)===16)}function dw(t,e,n){if(at(t)&&!n){let r=Se(t.index,e);return new kt(r,r)}else if(t.type&175){let r=e[le];return new kt(r,e)}return null}var fw=(()=>{class t{zone=w(ne);changeDetectionScheduler=w(ke);applicationRef=w(zr);applicationErrorHandler=w(xt);_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=Qn({token:t,factory:t.\u0275fac})}return t})(),pw=new P("",{factory:()=>!1});function hw({ngZoneFactory:t,scheduleInRootZone:e}){return t??=()=>new ne(ee(G({},zm()),{scheduleInRootZone:e})),[{provide:jn,useValue:!1},{provide:ne,useFactory:t},{provide:Jt,multi:!0,useFactory:()=>{let n=w(fw,{optional:!0});return()=>n.initialize()}},{provide:Jt,multi:!0,useFactory:()=>{let n=w(mw);return()=>{n.initialize()}}},{provide:Di,useValue:e??Xa}]}function eV(t){let e=t?.scheduleInRootZone,n=hw({ngZoneFactory:()=>{let r=zm(t);return r.scheduleInRootZone=e,r.shouldCoalesceEventChangeDetection&&dt("NgZone_CoalesceEvent"),new ne(r)},scheduleInRootZone:e});return ba([{provide:pw,useValue:!0},n])}function zm(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var mw=(()=>{class t{subscription=new $;initialized=!1;zone=w(ne);pendingTasks=w(Nt);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=Qn({token:t,factory:t.\u0275fac})}return t})();var Ul=new P(""),gw=new P("");function Wr(t){return!t.moduleRef}function yw(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(xt),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),Wr(t)){let i=()=>e.destroy(),s=t.platformInjector.get(Ul);s.add(i),e.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>t.moduleRef.destroy(),s=t.platformInjector.get(Ul);s.add(i),t.moduleRef.onDestroy(()=>{Nr(t.allPlatformModules,t.moduleRef),o.unsubscribe(),s.delete(i)})}return Ew(r,n,()=>{let i=e.get(Nt),s=i.add(),a=e.get(Nl);return a.runInitializers(),a.donePromise.then(()=>{let c=e.get(Fl,Gr);if(hm(c||Gr),!e.get(gw,!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 vw?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>{i.remove(s)})})})}var vw;function Ew(t,e,n){try{let r=n();return Ml(r)?r.catch(o=>{throw e.runOutsideAngular(()=>t(o)),o}):r}catch(r){throw e.runOutsideAngular(()=>t(r)),r}}var cs=null;function Iw(t=[],e){return Ae.create({name:e,providers:[{provide:Ma,useValue:"platform"},{provide:Ul,useValue:new Set([()=>cs=null])},...t]})}function Dw(t=[]){if(cs)return cs;let e=Iw(t);return cs=e,sm(),_w(e),e}function _w(t){let e=t.get(Tf,null);si(t,()=>{e?.forEach(n=>n())})}function tV(t){let{rootComponent:e,appProviders:n,platformProviders:r,platformRef:o}=t;F(O.BootstrapApplicationStart);try{let i=o?.injector??Dw(r),s=[Lm(),Df,...n||[]],a=new Lr({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return yw({r3Injector:a.injector,platformInjector:i,rootComponent:e})}catch(i){return Promise.reject(i)}finally{F(O.BootstrapApplicationEnd)}}function nV(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function rV(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}var jl=Symbol("NOT_SET"),Gm=new Set,Tw=ee(G({},or),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:jl,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!==jl&&!yn(this))return this.signal;try{for(let o of this.cleanup??Gm)o()}finally{this.cleanup?.clear()}let e=[];t!==void 0&&e.push(t),e.push(this.registerCleanupFn);let n=mt(this),r;try{r=this.userFn.apply(null,e)}finally{Ht(this,n)}return(this.value===jl||!this.equal(this.value,r))&&(this.value=r,this.version++),this.signal}}),ql=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(ct),s),this.scheduler=o;for(let a of il){let c=n[a];if(c===void 0)continue;let l=Object.create(Tw);l.sequence=this,l.phase=a,l.userFn=c,l.dirty=!0,l.signal=()=>(Vt(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??Gm)n()}finally{gt(e)}}};function oV(t,e){let n=e?.injector??w(Ae),r=n.get(ke),o=n.get(Xi),i=n.get(fn,null,{optional:!0});o.impl??=n.get(sl);let s=t;typeof s=="function"&&(s={mixedReadWrite:t});let a=n.get(Fn,null,{optional:!0}),c=new ql(o.impl,[s.earlyRead,s.write,s.mixedReadWrite,s.read],a?.view,r,n,i?.snapshot(null));return o.impl.register(c),c}function iV(t,e){let n=_t(t),r=e.elementInjector||An();return new zn(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||{}),Fe="*";function Wm(t,e=null){return{type:A.Sequence,steps:t,options:e}}function zl(t){return{type:A.Style,styles:t,offset:null}}var ft=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}},Yn=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 Qm(t){return new g(3e3,!1)}function bw(){return new g(3100,!1)}function Sw(){return new g(3101,!1)}function Cw(t){return new g(3001,!1)}function Mw(t){return new g(3003,!1)}function Nw(t){return new g(3004,!1)}function Zm(t,e){return new g(3005,!1)}function Ym(){return new g(3006,!1)}function Jm(){return new g(3007,!1)}function Xm(t,e){return new g(3008,!1)}function eg(t){return new g(3002,!1)}function tg(t,e,n,r,o){return new g(3010,!1)}function ng(){return new g(3011,!1)}function rg(){return new g(3012,!1)}function og(){return new g(3200,!1)}function ig(){return new g(3202,!1)}function sg(){return new g(3013,!1)}function ag(t){return new g(3014,!1)}function cg(t){return new g(3015,!1)}function lg(t){return new g(3016,!1)}function ug(t){return new g(3500,!1)}function dg(t){return new g(3501,!1)}function fg(t,e){return new g(3404,!1)}function xw(t){return new g(3502,!1)}function pg(t){return new g(3503,!1)}function hg(){return new g(3300,!1)}function mg(t){return new g(3504,!1)}function gg(t){return new g(3301,!1)}function yg(t,e){return new g(3302,!1)}function vg(t){return new g(3303,!1)}function Eg(t,e){return new g(3400,!1)}function Ig(t){return new g(3401,!1)}function Dg(t){return new g(3402,!1)}function _g(t,e){return new g(3505,!1)}var Aw=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 pt(t){switch(t.length){case 0:return new ft;case 1:return t[0];default:return new Yn(t)}}function Kl(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 Fe: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 xw(o);return i}function us(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&Gl(n,"start",t)));break;case"done":t.onDone(()=>r(n&&Gl(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&Gl(n,"destroy",t)));break}}function Gl(t,e,n){let r=n.totalTime,o=!!n.disabled,i=ds(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 ds(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 Zl(t){let e=t.indexOf(":"),n=t.substring(1,e),r=t.slice(e+1);return[n,r]}var kw=typeof document>"u"?null:document.documentElement;function fs(t){let e=t.parentNode||t.host||null;return e===kw?null:e}function Rw(t){return t.substring(1,6)=="ebkit"}var pn=null,Km=!1;function Tg(t){pn||(pn=Pw()||{},Km=pn.style?"WebkitAppearance"in pn.style:!1);let e=!0;return pn.style&&!Rw(t)&&(e=t in pn.style,!e&&Km&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in pn.style)),e}function Ow(t){return Aw.has(t)}function Pw(){return typeof document<"u"?document.body:null}function Yl(t,e){for(;e;){if(e===t)return!0;e=fs(e)}return!1}function Jl(t,e,n){if(n)return Array.from(t.querySelectorAll(e));let r=t.querySelector(e);return r?[r]:[]}var Lw=1e3,Xl="{{",Fw="}}",ps="ng-enter",Kr="ng-leave",Zr="ng-trigger",Yr=".ng-trigger",eu="ng-animating",hs=".ng-animating";function et(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Wl(parseFloat(e[1]),e[2])}function Wl(t,e){return e==="s"?t*Lw:t}function Jr(t,e,n){return t.hasOwnProperty("duration")?t:Vw(t,e,n)}var jw=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Vw(t,e,n){let r,o=0,i="";if(typeof t=="string"){let s=t.match(jw);if(s===null)return e.push(Qm(t)),{duration:0,delay:0,easing:""};r=Wl(parseFloat(s[1]),s[2]);let a=s[3];a!=null&&(o=Wl(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(bw()),s=!0),o<0&&(e.push(Sw()),s=!0),s&&e.splice(a,0,Qm(t))}return{duration:r,delay:o,easing:i}}function wg(t){return t.length?t[0]instanceof Map?t:t.map(e=>new Map(Object.entries(e))):[]}function tu(t){return Array.isArray(t)?new Map(...t):new Map(t)}function je(t,e,n){e.forEach((r,o)=>{let i=ms(o);n&&!n.has(o)&&n.set(o,t.style[i]),t.style[i]=r})}function Rt(t,e){e.forEach((n,r)=>{let o=ms(r);t.style[o]=""})}function Jn(t){return Array.isArray(t)?t.length==1?t[0]:Wm(t):t}function bg(t,e,n){let r=e.params||{},o=nu(t);o.length&&o.forEach(i=>{r.hasOwnProperty(i)||n.push(Cw(i))})}var Ql=new RegExp(`${Xl}\\s*(.+?)\\s*${Fw}`,"g");function nu(t){let e=[];if(typeof t=="string"){let n;for(;n=Ql.exec(t);)e.push(n[1]);Ql.lastIndex=0}return e}function Xn(t,e,n){let r=`${t}`,o=r.replace(Ql,(i,s)=>{let a=e[s];return a==null&&(n.push(Mw(s)),a=""),a.toString()});return o==r?t:o}var Hw=/-+([a-z0-9])/g;function ms(t){return t.replace(Hw,(...e)=>e[1].toUpperCase())}function Bw(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Sg(t,e){return t===0||e===0}function Cg(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,gs(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 Nw(e.type)}}function gs(t,e){return window.getComputedStyle(t)[e]}var Bg=(()=>{class t{validateStyleProperty(n){return Tg(n)}containsElement(n,r){return Yl(n,r)}getParentElement(n){return fs(n)}query(n,r,o){return Jl(n,r,o)}computeStyle(n,r,o){return o||""}animate(n,r,o,i,s,a=[],c){return new ft(o,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=fe({token:t,factory:t.\u0275fac})}return t})(),Mg=class{static NOOP=new Bg},cu=class{},lu=class{normalizePropertyName(e,n){return e}normalizeStyleValue(e,n,r,o){return r}},$w=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"]),uu=class extends cu{normalizePropertyName(e,n){return ms(e)}normalizeStyleValue(e,n,r,o){let i="",s=r.toString().trim();if($w.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(Zm(e,r))}return s+i}};var Ds="*";function Uw(t,e){let n=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(r=>qw(r,n,e)):n.push(t),n}function qw(t,e,n){if(t[0]==":"){let c=zw(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(cg(t)),e;let o=r[1],i=r[2],s=r[3];e.push(Ng(o,s));let a=o==Ds&&s==Ds;i[0]=="<"&&!a&&e.push(Ng(s,o))}function zw(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(lg(t)),"* => *"}}var ys=new Set(["true","1"]),vs=new Set(["false","0"]);function Ng(t,e){let n=ys.has(t)||vs.has(t),r=ys.has(e)||vs.has(e);return(o,i)=>{let s=t==Ds||t==o,a=e==Ds||e==i;return!s&&n&&typeof o=="boolean"&&(s=o?ys.has(t):vs.has(t)),!a&&r&&typeof i=="boolean"&&(a=i?ys.has(e):vs.has(e)),s&&a}}var $g=":self",Gw=new RegExp(`s*${$g}s*,?`,"g");function Tu(t,e,n,r){return new du(t).build(e,n,r)}var xg="",du=class{_driver;constructor(e){this._driver=e}build(e,n,r){let o=new fu(n);return this._resetContextStyleTimingState(o),me(this,Jn(e),o)}_resetContextStyleTimingState(e){e.currentQuerySelector=xg,e.collectedStyles=new Map,e.collectedStyles.set(xg,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(Ym()),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(Jm())}),{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=>{nu(c).forEach(l=>{s.hasOwnProperty(l)||i.add(l)})})}),i.size&&n.errors.push(Xm(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,Jn(e.animation),n),o=Uw(e.expr,n.errors);return{type:A.Transition,matchers:o,animation:r,queryCount:n.queryCount,depCount:n.depCount,options:hn(e.options)}}visitSequence(e,n){return{type:A.Sequence,steps:e.steps.map(r=>me(this,r,n)),options:hn(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:hn(e.options)}}visitAnimate(e,n){let r=Zw(e.timings,n.errors);n.currentAnimateTimings=r;let o,i=e.styles?e.styles:zl({});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=zl(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===Fe?r.push(a):n.errors.push(eg(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(Xl)>=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(tg(c,u.startTime,u.endTime,i,o)),d=!1),i=u.startTime),d&&l.set(c,{startTime:i,endTime:o}),n.options&&bg(a,n.options,n.errors)})})}visitKeyframes(e,n){let r={type:A.Keyframes,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(ng()),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:Kw(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(rg()),a&&n.errors.push(og());let d=e.steps.length,p=0;i>0&&i<d?n.errors.push(ig()):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,Jn(e.animation),n),options:hn(e.options)}}visitAnimateChild(e,n){return n.depCount++,{type:A.AnimateChild,options:hn(e.options)}}visitAnimateRef(e,n){return{type:A.AnimateRef,animation:this.visitReference(e.animation,n),options:hn(e.options)}}visitQuery(e,n){let r=n.currentQuerySelector,o=e.options||{};n.queryCount++,n.currentQuery=e;let[i,s]=Ww(e.selector);n.currentQuerySelector=r.length?r+" "+i:i,he(n.collectedStyles,n.currentQuerySelector,new Map);let a=me(this,Jn(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:hn(e.options)}}visitStagger(e,n){n.currentQuery||n.errors.push(sg());let r=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Jr(e.timings,n.errors,!0);return{type:A.Stagger,animation:me(this,Jn(e.animation),n),timings:r,options:null}}};function Ww(t){let e=!!t.split(/\s*,\s*/).find(n=>n==$g);return e&&(t=t.replace(Gw,"")),t=t.replace(/@\*/g,Yr).replace(/@\w+/g,n=>Yr+"-"+n.slice(1)).replace(/:animating/g,hs),[t,e]}function Qw(t){return t?G({},t):null}var fu=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 Kw(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 Zw(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let i=Jr(t,e).duration;return ru(i,0,"")}let n=t;if(n.split(/\s+/).some(i=>i.charAt(0)=="{"&&i.charAt(1)=="{")){let i=ru(0,0,"");return i.dynamic=!0,i.strValue=n,i}let o=Jr(n,e);return ru(o.duration,o.delay,o.easing)}function hn(t){return t?(t=G({},t),t.params&&(t.params=Qw(t.params))):t={},t}function ru(t,e,n){return{duration:t,delay:e,easing:n}}function wu(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 tr=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()}},Yw=1,Jw=":enter",Xw=new RegExp(Jw,"g"),eb=":leave",tb=new RegExp(eb,"g");function bu(t,e,n,r,o,i=new Map,s=new Map,a,c,l=[]){return new pu().buildKeyframes(t,e,n,r,o,i,s,a,c,l)}var pu=class{buildKeyframes(e,n,r,o,i,s,a,c,l,u=[]){l=l||new tr;let d=new hu(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()):[wu(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(Xn(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=_s);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?Xn(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=_s);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)}},_s={},hu=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=_s;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 Ts(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]=Xn(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=_s,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 mu(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(Xw,"."+this._enterClassName),e=e.replace(tb,"."+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(ag(n)),a}},Ts=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+=Yw,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||Fe),this._currentKeyframe.set(n,Fe);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,n,r,o){n&&this._previousKeyframe.set("easing",n);let i=o&&o.params||{},s=nb(e,this._globalTimelineStyles);for(let[a,c]of s){let l=Xn(c,i,r);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Fe),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===Fe&&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 wu(this.element,o,i,s,this.duration,this.startTime,this.easing,!1)}},mu=class extends Ts{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",Ag(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",Ag(h/s)),i.push(p)}r=s,n=0,o="",e=i}return wu(this.element,e,this.preStyleProps,this.postStyleProps,r,n,o,!0)}};function Ag(t,e=3){let n=Math.pow(10,e-1);return Math.round(t*n)/n}function nb(t,e){let n=new Map,r;return t.forEach(o=>{if(o==="*"){r??=e.keys();for(let i of r)n.set(i,Fe)}else for(let[i,s]of o)n.set(i,s)}),n}function kg(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 ou={},ws=class{_triggerName;ast;_stateStyles;constructor(e,n,r){this._triggerName=e,this.ast=n,this._stateStyles=r}match(e,n,r,o){return rb(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||ou,f=a&&a.params||ou,h=this.buildStyles(r,f,d),m=c&&c.params||ou,v=this.buildStyles(o,m,d),_=new Set,L=new Map,K=new Map,te=o==="void",mn={params:Ug(m,p),delay:this.ast.options?.delay},He=u?[]:bu(e,n,this.ast.animation,i,s,h,v,mn,l,d),se=0;return He.forEach(ue=>{se=Math.max(ue.duration+ue.delay,se)}),d.length?kg(n,this._triggerName,r,o,te,h,v,[],[],L,K,se,d):(He.forEach(ue=>{let Ot=ue.element,gn=he(L,Ot,new Set);ue.preStyleProps.forEach(Pt=>gn.add(Pt));let Su=he(K,Ot,new Set);ue.postStyleProps.forEach(Pt=>Su.add(Pt)),Ot!==n&&_.add(Ot)}),kg(n,this._triggerName,r,o,te,h,v,He,[..._.values()],L,K,se))}};function rb(t,e,n,r,o){return t.some(i=>i(e,n,r,o))}function Ug(t,e){let n=G({},e);return Object.entries(t).forEach(([r,o])=>{o!=null&&(n[r]=o)}),n}var gu=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=Ug(e,this.defaultParams);return this.styles.styles.forEach(i=>{typeof i!="string"&&i.forEach((s,a)=>{s&&(s=Xn(s,o,n));let c=this.normalizer.normalizePropertyName(a,n);s=this.normalizer.normalizeStyleValue(a,c,s,n),r.set(a,s)})}),r}};function ob(t,e,n){return new yu(t,e,n)}var yu=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 gu(o.style,i,r))}),Rg(this.states,"true","1"),Rg(this.states,"false","0"),n.transitions.forEach(o=>{this.transitionFactories.push(new ws(e,o,this.states))}),this.fallbackTransition=ib(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 ib(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 ws(t,i,e)}function Rg(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 sb=new tr,vu=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=Tu(this._driver,n,r,o);if(r.length)throw pg(r);this._animations.set(e,i)}_buildPlayer(e,n,r){let o=e.element,i=Kl(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=bu(this._driver,n,i,ps,Kr,new Map,new Map,r,sb,o),s.forEach(u=>{let d=he(a,u.element,new Map);u.postStyleProps.forEach(p=>d.set(p,null))})):(o.push(hg()),s=[]),o.length)throw mg(o);a.forEach((u,d)=>{u.forEach((p,f)=>{u.set(f,this._driver.computeStyle(d,f,Fe))})});let c=s.map(u=>{let d=a.get(u.element);return this._buildPlayer(u,new Map,d)}),l=pt(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 gg(e);return n}listen(e,n,r,o){let i=ds(n,"","","");return us(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}}},Og="ng-animate-queued",ab=".ng-animate-queued",iu="ng-animate-disabled",cb=".ng-animate-disabled",lb="ng-star-inserted",ub=".ng-star-inserted",db=[],qg={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},fb={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ve="__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=hb(o),r){let i=e,{value:s}=i,a=xs(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",su=new eo(Xr),Eu=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 yg(r,n);if(r==null||r.length==0)throw vg(n);if(!mb(r))throw Eg(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,su)),()=>{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 Ig(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=su),!(l.value===Xr)&&c.value===l.value){if(!vb(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(()=>{Rt(e,v),je(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,Og),s.onStart(()=>{er(e,Og)})),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[Ve])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&&pt(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)||su,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[Ve];(!i||i===qg)&&(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=ds(i,r.triggerName,r.fromState.value,r.toState.value);c._data=e,us(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)}},Iu=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 Eu(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(Es(n)){let i=this._fetchNamespace(e);if(i)return i.trigger(n,r,o),!0}return!1}insertNode(e,n,r,o){if(!Es(n))return;let i=n[Ve];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,iu)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),er(e,iu))}removeNode(e,n,r){if(Es(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[Ve]={namespaceId:e,setForRemoval:o,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:i}}listen(e,n,r,o,i){return Es(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,hs,!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 pt(this.players).onDone(()=>e());e()})}processLeaveNode(e){let n=e[Ve];if(n&&n.setForRemoval){if(e[Ve]=qg,n.namespaceId){this.destroyInnerAnimations(e);let r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}e.classList?.contains(iu)&&this.markElementAsDisabled(e,!1),this.driver.query(e,cb,!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,lb)}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?pt(n).onDone(()=>{r.forEach(o=>o())}):r.forEach(o=>o())}}reportError(e){throw Dg(e)}_flushAnimations(e,n){let r=new tr,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 D=this.driver.query(y,ab,!0);for(let T=0;T<D.length;T++)u.add(D[T])});let d=this.bodyNode,p=Array.from(this.statesByElement.keys()),f=Fg(p,this.collectedEnterElements),h=new Map,m=0;f.forEach((y,D)=>{let T=ps+m++;h.set(D,T),y.forEach(R=>Ce(R,T))});let v=[],_=new Set,L=new Set;for(let y=0;y<this.collectedLeaveElements.length;y++){let D=this.collectedLeaveElements[y],T=D[Ve];T&&T.setForRemoval&&(v.push(D),_.add(D),T.hasAnimation?this.driver.query(D,ub,!0).forEach(R=>_.add(R)):L.add(D))}let K=new Map,te=Fg(p,Array.from(_));te.forEach((y,D)=>{let T=Kr+m++;K.set(D,T),y.forEach(R=>Ce(R,T))}),e.push(()=>{f.forEach((y,D)=>{let T=h.get(D);y.forEach(R=>er(R,T))}),te.forEach((y,D)=>{let T=K.get(D);y.forEach(R=>er(R,T))}),v.forEach(y=>{this.processLeaveNode(y)})});let mn=[],He=[];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(mn.push(R),this.collectedEnterElements.length){let re=X[Ve];if(re&&re.setForMove){if(re.previousTriggersValues&&re.previousTriggersValues.has(T.triggerName)){let Lt=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=Lt,Ie.set(T.triggerName,no)}}R.destroy();return}}let Be=!d||!this.driver.containsElement(d,X),ge=K.get(X),ht=h.get(X),q=this._buildInstruction(T,r,ht,ge,Be);if(q.errors&&q.errors.length){He.push(q);return}if(Be){R.onStart(()=>Rt(X,q.fromStyles)),R.onDestroy(()=>je(X,q.toStyles)),o.push(R);return}if(T.isFallbackTransition){R.onStart(()=>Rt(X,q.fromStyles)),R.onDestroy(()=>je(X,q.toStyles)),o.push(R);return}let Nu=[];q.timelines.forEach(re=>{re.stretchStartingKeyframe=!0,this.disabledNodes.has(re.element)||Nu.push(re)}),q.timelines=Nu,r.append(X,q.timelines);let Wg={instruction:q,player:R,element:X};s.push(Wg),q.queriedElements.forEach(re=>he(a,re,[]).push(R)),q.preStyleProps.forEach((re,Lt)=>{if(re.size){let Ie=c.get(Lt);Ie||c.set(Lt,Ie=new Set),re.forEach((no,Ns)=>Ie.add(Ns))}}),q.postStyleProps.forEach((re,Lt)=>{let Ie=l.get(Lt);Ie||l.set(Lt,Ie=new Set),re.forEach((no,Ns)=>Ie.add(Ns))})});if(He.length){let y=[];He.forEach(D=>{y.push(_g(D.triggerName,D.errors))}),mn.forEach(D=>D.destroy()),this.reportError(y)}let se=new Map,ue=new Map;s.forEach(y=>{let D=y.element;r.has(D)&&(ue.set(D,D),this._beforeAnimationBuild(y.player.namespaceId,y.instruction,se))}),o.forEach(y=>{let D=y.element;this._getPreviousPlayers(D,!1,y.namespaceId,y.triggerName,null).forEach(R=>{he(se,D,[]).push(R),R.destroy()})});let Ot=v.filter(y=>jg(y,c,l)),gn=new Map;Lg(gn,this.driver,L,l,Fe).forEach(y=>{jg(y,c,l)&&Ot.push(y)});let Pt=new Map;f.forEach((y,D)=>{Lg(Pt,this.driver,new Set(y),c,Qr)}),Ot.forEach(y=>{let D=gn.get(y),T=Pt.get(y);gn.set(y,new Map([...D?.entries()??[],...T?.entries()??[]]))});let Ms=[],Cu=[],Mu={};s.forEach(y=>{let{element:D,player:T,instruction:R}=y;if(r.has(D)){if(u.has(D)){T.onDestroy(()=>je(D,R.toStyles)),T.disabled=!0,T.overrideTotalTime(R.totalTime),o.push(T);return}let X=Mu;if(ue.size>1){let ge=D,ht=[];for(;ge=ge.parentNode;){let q=ue.get(ge);if(q){X=q;break}ht.push(ge)}ht.forEach(q=>ue.set(q,X))}let Be=this._buildAnimation(T.namespaceId,R,se,i,Pt,gn);if(T.setRealPlayer(Be),X===Mu)Ms.push(T);else{let ge=this.playersByElement.get(X);ge&&ge.length&&(T.parentPlayer=pt(ge)),o.push(T)}}else Rt(D,R.fromStyles),T.onDestroy(()=>je(D,R.toStyles)),Cu.push(T),u.has(D)&&o.push(T)}),Cu.forEach(y=>{let D=i.get(y.element);if(D&&D.length){let T=pt(D);y.setRealPlayer(T)}}),o.forEach(y=>{y.parentPlayer?y.syncPlayerEvents(y.parentPlayer):y.destroy()});for(let y=0;y<v.length;y++){let D=v[y],T=D[Ve];if(er(D,Kr),T&&T.hasAnimation)continue;let R=[];if(a.size){let Be=a.get(D);Be&&Be.length&&R.push(...Be);let ge=this.driver.query(D,hs,!0);for(let ht=0;ht<ge.length;ht++){let q=a.get(ge[ht]);q&&q.length&&R.push(...q)}}let X=R.filter(Be=>!Be.destroyed);X.length?gb(this,D,X):this.processLeaveNode(D)}return v.length=0,Ms.forEach(y=>{this.players.push(y),y.onDone(()=>{y.destroy();let D=this.players.indexOf(y);this.players.splice(D,1)}),y.play()}),Ms}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)})}Rt(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[Ve];if(v&&v.removedBeforeQueried)return new ft(h.duration,h.delay);let _=m!==c,L=yb((r.get(m)||db).map(se=>se.getRealPlayer())).filter(se=>{let ue=se;return ue.element?ue.element===m:!1}),K=i.get(m),te=s.get(m),mn=Kl(this._normalizer,h.keyframes,K,te),He=this._buildPlayer(h,mn,L);if(h.subTimeline&&o&&d.add(m),_){let se=new to(e,a,m);se.setRealPlayer(He),l.push(se)}return He});l.forEach(h=>{he(this.playersByQueriedElement,h.element,[]).push(h),h.onDone(()=>pb(this.playersByQueriedElement,h.element,h))}),u.forEach(h=>Ce(h,eu));let f=pt(p);return f.onDestroy(()=>{u.forEach(h=>er(h,eu)),je(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 ft(e.duration,e.delay)}},to=class{namespaceId;triggerName;element;_player=new ft;_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=>us(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 pb(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 hb(t){return t??null}function Es(t){return t&&t.nodeType===1}function mb(t){return t=="start"||t=="done"}function Pg(t,e){let n=t.style.display;return t.style.display=e??"none",n}function Lg(t,e,n,r,o){let i=[];n.forEach(c=>i.push(Pg(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[Ve]=fb,s.push(l))}),t.set(l,u)});let a=0;return n.forEach(c=>Pg(c,i[a++])),s}function Fg(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 er(t,e){t.classList?.remove(e)}function gb(t,e,n){pt(n).onDone(()=>t.processLeaveNode(e))}function yb(t){let e=[];return zg(t,e),e}function zg(t,e){for(let n=0;n<t.length;n++){let r=t[n];r instanceof Yn?zg(r.players,e):e.push(r)}}function vb(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 jg(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 bs=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,n)=>{};constructor(e,n,r){this._driver=n,this._normalizer=r,this._transitionEngine=new Iu(e.body,n,r),this._timelineEngine=new vu(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=Tu(this._driver,i,c,l);if(c.length)throw fg(o,c);a=ob(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]=Zl(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]=Zl(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 Eb(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=au(e[0]),e.length>1&&(r=au(e[e.length-1]))):e instanceof Map&&(n=au(e)),n||r?new Ib(t,n,r):null}var Ib=(()=>{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&&je(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(je(this._element,this._initialStyles),this._endStyles&&(je(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Rt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Rt(this._element,this._endStyles),this._endStyles=null),je(this._element,this._initialStyles),this._state=3)}}return t})();function au(t){let e=null;return t.forEach((n,r)=>{Db(r)&&(e=e||new Map,e.set(r,n))}),e}function Db(t){return t==="display"||t==="position"}var Ss=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:gs(this.element,o))}),this.currentSnapshot=e}triggerCallback(e){let n=e==="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},Du=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,n){return Yl(e,n)}getParentElement(e){return fs(e)}query(e,n,r){return Jl(e,n,r)}computeStyle(e,n,r){return gs(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 Ss);Sg(r,o)&&u.forEach(f=>{f.currentSnapshot.forEach((h,m)=>l.set(m,h))});let d=wg(n).map(f=>new Map(f));d=Cg(e,d,l);let p=Eb(e,d);return new Ss(e,d,c,p)}};function mV(t,e){return t==="noop"?new bs(e,new Bg,new lu):new bs(e,new Du,new uu)}var Vg=class{_driver;_animationAst;constructor(e,n){this._driver=e;let r=[],i=Tu(e,n,r,[]);if(r.length)throw ug(r);this._animationAst=i}buildTimelines(e,n,r,o,i){let s=Array.isArray(n)?tu(n):n,a=Array.isArray(r)?tu(r):r,c=[];i=i||new tr;let l=bu(this._driver,e,this._animationAst,ps,Kr,s,a,o,i,c);if(c.length)throw dg(c);return l}},Is="@",Gg="@.disabled",Cs=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)==Is&&n==Gg?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)}},_u=class extends Cs{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)==Is?n.charAt(1)=="."&&n==Gg?(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)==Is){let i=_b(e),s=n.slice(1),a="";return s.charAt(0)!=Is&&([s,a]=Tb(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 _b(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function Tb(t){let e=t.indexOf("."),n=t.substring(0,e),r=t.slice(e+1);return[n,r]}var Hg=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 Cs("",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 _u(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,As as c,$ as d,k as e,Qs as f,ye as g,ir as h,ar as i,dy as j,fy as k,ur as l,qe as m,Iy as n,Dy as o,_y as p,Ty as q,tt as r,Ay as s,Cn as t,Ry as u,Oy as v,dr as w,Py as x,Js as y,Ly as z,Xs as A,Fy as B,vd as C,$o as D,jy as E,Dd as F,Hy as G,By as H,na as I,$y as J,Uy as K,_d as L,Td as M,qy as N,zy as O,Gy as P,g as Q,Jo as R,fe as S,Nd as T,P as U,ze as V,w as W,ba as X,Ma as Y,De as Z,si as _,Jd as $,Xd as aa,hf as ba,mf as ca,Ae as da,Ei as ea,ct as fa,nt as ga,ne as ha,it as ia,Ii as ja,_f as ka,Tf as la,wv as ma,bv as na,Sv as oa,ke as pa,wf as qa,oc as ra,ic as sa,qv as ta,lE as ua,Qn as va,Vr as wa,Pi as xa,gE as ya,ln as za,nl as Aa,_E as Ba,TE as Ca,wE as Da,bE as Ea,SE as Fa,CE as Ga,$p as Ha,UE as Ia,Jp as Ja,eI as Ka,Fi as La,Un as Ma,fn as Na,dt as Oa,gI as Pa,HI as Qa,Or as Ra,Pr as Sa,bD as Ta,xD as Ua,kD as Va,Oh as Wa,qr as Xa,jD as Ya,ss as Za,Ml as _a,zi as $a,I_ as ab,__ as bb,b_ as cb,S_ as db,M_ as eb,N_ as fb,em as gb,nm as hb,rm as ib,zr as jb,am as kb,q_ as lb,z_ as mb,G_ as nb,W_ as ob,Q_ as pb,cm as qb,Qi as rb,Al as sb,lm as tb,kl as ub,Rl as vb,um as wb,Ol as xb,Pl as yb,fm as zb,eT as Ab,pm as Bb,rT as Cb,oT as Db,mm as Eb,gm as Fb,cT as Gb,uT as Hb,dT as Ib,ym as Jb,vm as Kb,pT as Lb,hT as Mb,Em as Nb,Im as Ob,mT as Pb,gT as Qb,Tm as Rb,wm as Sb,CT as Tb,jT as Ub,xm as Vb,Ll as Wb,Am as Xb,zT as Yb,QT as Zb,ZT as _b,JT as $b,Fl as ac,tw as bc,nw as cc,Fm as dc,Wj as ec,Qj as fc,Kj as gc,Zj as hc,Yj as ic,lw as jc,Xj as kc,eV as lc,tV as mc,nV as nc,rV as oc,oV as pc,iV as qc,fs as rc,Tg as sc,Ow as tc,Yl as uc,Jl as vc,ps as wc,Kr as xc,wg as yc,Bw as zc,Sg as Ac,Bg as Bc,Mg as Cc,cu as Dc,lu as Ec,uu as Fc,to as Gc,bs as Hc,Ss as Ic,Du as Jc,mV as Kc,Vg as Lc,Cs as Mc,_u as Nc,Hg as Oc};