File: /var/dev/nowruzgan/vazhgar/dist/vazhgar/server/chunk-RREL5HXO.mjs
import './polyfills.server.mjs';
import{a as Ie,b as An,d as cl}from"./chunk-VVCT4QZE.mjs";var dl=null;var wi=1,_i=Symbol("SIGNAL");function ae(t){let e=dl;return dl=t,e}var fl={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Vp(t){if(!(Ci(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===wi)){if(!t.producerMustRecompute(t)&&!Ii(t)){t.dirty=!1,t.lastCleanEpoch=wi;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=wi}}function hl(t){return t&&(t.nextProducerIndex=0),ae(t)}function pl(t,e){if(ae(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Ci(t))for(let n=t.nextProducerIndex;n<t.producerNode.length;n++)bi(t.producerNode[n],t.producerIndexOfThis[n]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Ii(t){pr(t);for(let e=0;e<t.producerNode.length;e++){let n=t.producerNode[e],r=t.producerLastReadVersion[e];if(r!==n.version||(Vp(n),r!==n.version))return!0}return!1}function ml(t){if(pr(t),Ci(t))for(let e=0;e<t.producerNode.length;e++)bi(t.producerNode[e],t.producerIndexOfThis[e]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function bi(t,e){if(Bp(t),pr(t),t.liveConsumerNode.length===1)for(let r=0;r<t.producerNode.length;r++)bi(t.producerNode[r],t.producerIndexOfThis[r]);let n=t.liveConsumerNode.length-1;if(t.liveConsumerNode[e]=t.liveConsumerNode[n],t.liveConsumerIndexOfThis[e]=t.liveConsumerIndexOfThis[n],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,e<t.liveConsumerNode.length){let r=t.liveConsumerIndexOfThis[e],o=t.liveConsumerNode[e];pr(o),o.producerIndexOfThis[r]=e}}function Ci(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function pr(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Bp(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function $p(){throw new Error}var Hp=$p;function gl(t){Hp=t}function D(t){return typeof t=="function"}function Gt(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 mr=Gt(t=>function(n){t(this),this.message=n?`${n.length} errors occurred during unsubscription:
${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
`)}`:"",this.name="UnsubscriptionError",this.errors=n});function wt(t,e){if(t){let n=t.indexOf(e);0<=n&&t.splice(n,1)}}var K=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(D(r))try{r()}catch(i){e=i instanceof mr?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{yl(i)}catch(s){e=e??[],s instanceof mr?e=[...e,...s.errors]:e.push(s)}}if(e)throw new mr(e)}}add(e){var n;if(e&&e!==this)if(this.closed)yl(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)&&wt(n,e)}remove(e){let{_finalizers:n}=this;n&&wt(n,e),e instanceof t&&e._removeParent(this)}};K.EMPTY=(()=>{let t=new K;return t.closed=!0,t})();var Si=K.EMPTY;function gr(t){return t instanceof K||t&&"closed"in t&&D(t.remove)&&D(t.add)&&D(t.unsubscribe)}function yl(t){D(t)?t():t.unsubscribe()}var Te={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Wt={setTimeout(t,e,...n){let{delegate:r}=Wt;return r?.setTimeout?r.setTimeout(t,e,...n):setTimeout(t,e,...n)},clearTimeout(t){let{delegate:e}=Wt;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function yr(t){Wt.setTimeout(()=>{let{onUnhandledError:e}=Te;if(e)e(t);else throw t})}function _t(){}var vl=Ti("C",void 0,void 0);function Dl(t){return Ti("E",void 0,t)}function El(t){return Ti("N",t,void 0)}function Ti(t,e,n){return{kind:t,value:e,error:n}}var It=null;function Qt(t){if(Te.useDeprecatedSynchronousErrorHandling){let e=!It;if(e&&(It={errorThrown:!1,error:null}),t(),e){let{errorThrown:n,error:r}=It;if(It=null,n)throw r}}else t()}function wl(t){Te.useDeprecatedSynchronousErrorHandling&&It&&(It.errorThrown=!0,It.error=t)}var bt=class extends K{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,gr(e)&&e.add(this)):this.destination=qp}static create(e,n,r){return new Ue(e,n,r)}next(e){this.isStopped?xi(El(e),this):this._next(e)}error(e){this.isStopped?xi(Dl(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?xi(vl,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()}}},Up=Function.prototype.bind;function Mi(t,e){return Up.call(t,e)}var Ai=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:n}=this;if(n.next)try{n.next(e)}catch(r){vr(r)}}error(e){let{partialObserver:n}=this;if(n.error)try{n.error(e)}catch(r){vr(r)}else vr(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(n){vr(n)}}},Ue=class extends bt{constructor(e,n,r){super();let o;if(D(e)||!e)o={next:e??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Te.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),o={next:e.next&&Mi(e.next,i),error:e.error&&Mi(e.error,i),complete:e.complete&&Mi(e.complete,i)}):o=e}this.destination=new Ai(o)}};function vr(t){Te.useDeprecatedSynchronousErrorHandling?wl(t):yr(t)}function zp(t){throw t}function xi(t,e){let{onStoppedNotification:n}=Te;n&&Wt.setTimeout(()=>n(t,e))}var qp={closed:!0,next:_t,error:zp,complete:_t};var Kt=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ue(t){return t}function Gp(...t){return Ni(t)}function Ni(t){return t.length===0?ue:t.length===1?t[0]:function(n){return t.reduce((r,o)=>o(r),n)}}var N=(()=>{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=Qp(n)?n:new Ue(n,r,o);return Qt(()=>{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=_l(r),new r((o,i)=>{let s=new Ue({next:a=>{try{n(a)}catch(u){i(u),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)}[Kt](){return this}pipe(...n){return Ni(n)(this)}toPromise(n){return n=_l(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 _l(t){var e;return(e=t??Te.Promise)!==null&&e!==void 0?e:Promise}function Wp(t){return t&&D(t.next)&&D(t.error)&&D(t.complete)}function Qp(t){return t&&t instanceof bt||Wp(t)&&gr(t)}function Oi(t){return D(t?.lift)}function S(t){return e=>{if(Oi(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 C(t,e,n,r,o){return new Fi(t,e,n,r,o)}var Fi=class extends bt{constructor(e,n,r,o,i,s){super(e),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){e.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){e.error(u)}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 Pi(){return S((t,e)=>{let n=null;t._refCount++;let r=C(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 Ri=class extends N{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Oi(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 K;let n=this.getSubject();e.add(this.source.subscribe(C(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),e.closed&&(this._connection=null,e=K.EMPTY)}return e}refCount(){return Pi()(this)}};var Il=Gt(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Pe=(()=>{class t extends N{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Dr(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Il}next(n){Qt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Qt(()=>{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(){Qt(()=>{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?Si:(this.currentObservers=null,i.push(n),new K(()=>{this.currentObservers=null,wt(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new N;return n.source=this,n}}return t.create=(e,n)=>new Dr(e,n),t})(),Dr=class extends Pe{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:Si}};var Nn=class extends Pe{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 On={now(){return(On.delegate||Date).now()},delegate:void 0};var Er=class extends Pe{constructor(e=1/0,n=1/0,r=On){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 u=1;u<r.length&&r[u]<=s;u+=2)a=u;a&&r.splice(0,a+1)}}};var wr=class extends K{constructor(e,n){super()}schedule(e,n=0){return this}};var Fn={setInterval(t,e,...n){let{delegate:r}=Fn;return r?.setInterval?r.setInterval(t,e,...n):setInterval(t,e,...n)},clearInterval(t){let{delegate:e}=Fn;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var _r=class extends wr{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 Fn.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&&Fn.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,wt(r,this),e!=null&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null,super.unsubscribe()}}};var Yt=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)}};Yt.now=On.now;var Ir=class extends Yt{constructor(e,n=Yt.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 Ct=new Ir(_r),bl=Ct;var St=new N(t=>t.complete());function br(t){return t&&D(t.schedule)}function ki(t){return t[t.length-1]}function Cr(t){return D(ki(t))?t.pop():void 0}function Re(t){return br(ki(t))?t.pop():void 0}function Cl(t,e){return typeof ki(t)=="number"?t.pop():e}function Tl(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(c){try{l(r.next(c))}catch(d){s(d)}}function u(c){try{l(r.throw(c))}catch(d){s(d)}}function l(c){c.done?i(c.value):o(c.value).then(a,u)}l((r=r.apply(t,e||[])).next())})}function Sl(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 Tt(t){return this instanceof Tt?(this.v=t,this):new Tt(t)}function Ml(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(h){return new Promise(function(p,m){i.push([f,h,p,m])>1||a(f,h)})})}function a(f,h){try{u(r[f](h))}catch(p){d(i[0][3],p)}}function u(f){f.value instanceof Tt?Promise.resolve(f.value.v).then(l,c):d(i[0][2],f)}function l(f){a("next",f)}function c(f){a("throw",f)}function d(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}function xl(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 Sl=="function"?Sl(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,u){s=t[i](s),o(a,u,s.done,s.value)})}}function o(i,s,a,u){Promise.resolve(u).then(function(l){i({value:l,done:a})},s)}}var Zt=t=>t&&typeof t.length=="number"&&typeof t!="function";function Sr(t){return D(t?.then)}function Tr(t){return D(t[Kt])}function Mr(t){return Symbol.asyncIterator&&D(t?.[Symbol.asyncIterator])}function xr(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 Kp(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ar=Kp();function Nr(t){return D(t?.[Ar])}function Or(t){return Ml(this,arguments,function*(){let n=t.getReader();try{for(;;){let{value:r,done:o}=yield Tt(n.read());if(o)return yield Tt(void 0);yield yield Tt(r)}}finally{n.releaseLock()}})}function Fr(t){return D(t?.getReader)}function R(t){if(t instanceof N)return t;if(t!=null){if(Tr(t))return Yp(t);if(Zt(t))return Zp(t);if(Sr(t))return Jp(t);if(Mr(t))return Al(t);if(Nr(t))return Xp(t);if(Fr(t))return em(t)}throw xr(t)}function Yp(t){return new N(e=>{let n=t[Kt]();if(D(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Zp(t){return new N(e=>{for(let n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}function Jp(t){return new N(e=>{t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,yr)})}function Xp(t){return new N(e=>{for(let n of t)if(e.next(n),e.closed)return;e.complete()})}function Al(t){return new N(e=>{tm(t,e).catch(n=>e.error(n))})}function em(t){return Al(Or(t))}function tm(t,e){var n,r,o,i;return Tl(this,void 0,void 0,function*(){try{for(n=xl(t);r=yield n.next(),!r.done;){let s=r.value;if(e.next(s),e.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}e.complete()})}function fe(t,e,n,r=0,o=!1){let i=e.schedule(function(){n(),o?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(i),!o)return i}function Pr(t,e=0){return S((n,r)=>{n.subscribe(C(r,o=>fe(r,t,()=>r.next(o),e),()=>fe(r,t,()=>r.complete(),e),o=>fe(r,t,()=>r.error(o),e)))})}function Rr(t,e=0){return S((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e))})}function Nl(t,e){return R(t).pipe(Rr(e),Pr(e))}function Ol(t,e){return R(t).pipe(Rr(e),Pr(e))}function Fl(t,e){return new N(n=>{let r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}function Pl(t,e){return new N(n=>{let r;return fe(n,e,()=>{r=t[Ar](),fe(n,e,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>D(r?.return)&&r.return()})}function kr(t,e){if(!t)throw new Error("Iterable cannot be null");return new N(n=>{fe(n,e,()=>{let r=t[Symbol.asyncIterator]();fe(n,e,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Rl(t,e){return kr(Or(t),e)}function kl(t,e){if(t!=null){if(Tr(t))return Nl(t,e);if(Zt(t))return Fl(t,e);if(Sr(t))return Ol(t,e);if(Mr(t))return kr(t,e);if(Nr(t))return Pl(t,e);if(Fr(t))return Rl(t,e)}throw xr(t)}function ke(t,e){return e?kl(t,e):R(t)}function nm(...t){let e=Re(t);return ke(t,e)}function rm(t,e){let n=D(t)?t:()=>t,r=o=>o.error(n());return new N(e?o=>e.schedule(r,0,o):r)}function om(t){return!!t&&(t instanceof N||D(t.lift)&&D(t.subscribe))}var Mt=Gt(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Ll(t){return t instanceof Date&&!isNaN(t)}function ze(t,e){return S((n,r)=>{let o=0;n.subscribe(C(r,i=>{r.next(t.call(e,i,o++))}))})}var{isArray:im}=Array;function sm(t,e){return im(e)?t(...e):t(e)}function Jt(t){return ze(e=>sm(t,e))}var{isArray:am}=Array,{getPrototypeOf:um,prototype:lm,keys:cm}=Object;function Lr(t){if(t.length===1){let e=t[0];if(am(e))return{args:e,keys:null};if(dm(e)){let n=cm(e);return{args:n.map(r=>e[r]),keys:n}}}return{args:t,keys:null}}function dm(t){return t&&typeof t=="object"&&um(t)===lm}function jr(t,e){return t.reduce((n,r,o)=>(n[r]=e[o],n),{})}function fm(...t){let e=Re(t),n=Cr(t),{args:r,keys:o}=Lr(t);if(r.length===0)return ke([],e);let i=new N(hm(r,e,o?s=>jr(o,s):ue));return n?i.pipe(Jt(n)):i}function hm(t,e,n=ue){return r=>{jl(e,()=>{let{length:o}=t,i=new Array(o),s=o,a=o;for(let u=0;u<o;u++)jl(e,()=>{let l=ke(t[u],e),c=!1;l.subscribe(C(r,d=>{i[u]=d,c||(c=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function jl(t,e,n){t?fe(n,t,e):e()}function Vl(t,e,n,r,o,i,s,a){let u=[],l=0,c=0,d=!1,f=()=>{d&&!u.length&&!l&&e.complete()},h=m=>l<r?p(m):u.push(m),p=m=>{i&&e.next(m),l++;let b=!1;R(n(m,c++)).subscribe(C(e,w=>{o?.(w),i?h(w):e.next(w)},()=>{b=!0},void 0,()=>{if(b)try{for(l--;u.length&&l<r;){let w=u.shift();s?fe(e,s,()=>p(w)):p(w)}f()}catch(w){e.error(w)}}))};return t.subscribe(C(e,h,()=>{d=!0,f()})),()=>{a?.()}}function Me(t,e,n=1/0){return D(e)?Me((r,o)=>ze((i,s)=>e(r,i,o,s))(R(t(r,o))),n):(typeof e=="number"&&(n=e),S((r,o)=>Vl(r,o,t,n)))}function Pn(t=1/0){return Me(ue,t)}function Bl(){return Pn(1)}function Xt(...t){return Bl()(ke(t,Re(t)))}function pm(t){return new N(e=>{R(t()).subscribe(e)})}function mm(...t){let e=Cr(t),{args:n,keys:r}=Lr(t),o=new N(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),u=s,l=s;for(let c=0;c<s;c++){let d=!1;R(n[c]).subscribe(C(i,f=>{d||(d=!0,l--),a[c]=f},()=>u--,void 0,()=>{(!u||!d)&&(l||i.next(r?jr(r,a):a),i.complete())}))}});return e?o.pipe(Jt(e)):o}var gm=["addListener","removeListener"],ym=["addEventListener","removeEventListener"],vm=["on","off"];function Li(t,e,n,r){if(D(n)&&(r=n,n=void 0),r)return Li(t,e,n).pipe(Jt(r));let[o,i]=wm(t)?ym.map(s=>a=>t[s](e,a,n)):Dm(t)?gm.map($l(t,e)):Em(t)?vm.map($l(t,e)):[];if(!o&&Zt(t))return Me(s=>Li(s,e,n))(R(t));if(!o)throw new TypeError("Invalid event target");return new N(s=>{let a=(...u)=>s.next(1<u.length?u:u[0]);return o(a),()=>i(a)})}function $l(t,e){return n=>r=>t[n](e,r)}function Dm(t){return D(t.addListener)&&D(t.removeListener)}function Em(t){return D(t.on)&&D(t.off)}function wm(t){return D(t.addEventListener)&&D(t.removeEventListener)}function Vr(t=0,e,n=bl){let r=-1;return e!=null&&(br(e)?n=e:r=e),new N(o=>{let i=Ll(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 _m(...t){let e=Re(t),n=Cl(t,1/0),r=t;return r.length?r.length===1?R(r[0]):Pn(n)(ke(r,e)):St}function xt(t,e){return S((n,r)=>{let o=0;n.subscribe(C(r,i=>t.call(e,i,o++)&&r.next(i)))})}function Hl(t){return S((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()},u=()=>{i=null,s&&n.complete()};e.subscribe(C(n,l=>{r=!0,o=l,i||R(t(l)).subscribe(i=C(n,a,u))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function Im(t,e=Ct){return Hl(()=>Vr(t,e))}function Ul(t){return S((e,n)=>{let r=null,o=!1,i;r=e.subscribe(C(n,void 0,void 0,s=>{i=R(t(s,Ul(t)(e))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function zl(t,e,n,r,o){return(i,s)=>{let a=n,u=e,l=0;i.subscribe(C(s,c=>{let d=l++;u=a?t(u,c,d):(a=!0,c),r&&s.next(u)},o&&(()=>{a&&s.next(u),s.complete()})))}}function bm(t,e){return D(e)?Me(t,e,1):Me(t,1)}function Cm(t,e=Ct){return S((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 u(){let l=s+t,c=e.now();if(c<l){o=this.schedule(void 0,l-c),r.add(o);return}a()}n.subscribe(C(r,l=>{i=l,s=e.now(),o||(o=e.schedule(u,t),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function Rn(t){return S((e,n)=>{let r=!1;e.subscribe(C(n,o=>{r=!0,n.next(o)},()=>{r||n.next(t),n.complete()}))})}function en(t){return t<=0?()=>St:S((e,n)=>{let r=0;e.subscribe(C(n,o=>{++r<=t&&(n.next(o),t<=r&&n.complete())}))})}function ql(){return S((t,e)=>{t.subscribe(C(e,_t))})}function ji(t){return ze(()=>t)}function Vi(t,e){return e?n=>Xt(e.pipe(en(1),ql()),n.pipe(Vi(t))):Me((n,r)=>R(t(n,r)).pipe(en(1),ji(n)))}function Sm(t,e=Ct){let n=Vr(t,e);return Vi(()=>n)}function Tm(t,e=ue){return t=t??Mm,S((n,r)=>{let o,i=!0;n.subscribe(C(r,s=>{let a=e(s);(i||!t(o,a))&&(i=!1,o=a,r.next(s))}))})}function Mm(t,e){return t===e}function Br(t=xm){return S((e,n)=>{let r=!1;e.subscribe(C(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(t())))})}function xm(){return new Mt}function Am(t){return S((e,n)=>{try{e.subscribe(n)}finally{n.add(t)}})}function Bi(t,e){let n=arguments.length>=2;return r=>r.pipe(t?xt((o,i)=>t(o,i,r)):ue,en(1),n?Rn(e):Br(()=>new Mt))}function $i(t){return t<=0?()=>St:S((e,n)=>{let r=[];e.subscribe(C(n,o=>{r.push(o),t<r.length&&r.shift()},()=>{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Nm(t,e){let n=arguments.length>=2;return r=>r.pipe(t?xt((o,i)=>t(o,i,r)):ue,$i(1),n?Rn(e):Br(()=>new Mt))}function Om(t,e){return S(zl(t,e,arguments.length>=2,!0))}function Ui(t={}){let{connector:e=()=>new Pe,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=t;return i=>{let s,a,u,l=0,c=!1,d=!1,f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=u=void 0,c=d=!1},p=()=>{let m=s;h(),m?.unsubscribe()};return S((m,b)=>{l++,!d&&!c&&f();let w=u=u??e();b.add(()=>{l--,l===0&&!d&&!c&&(a=Hi(p,o))}),w.subscribe(b),!s&&l>0&&(s=new Ue({next:A=>w.next(A),error:A=>{d=!0,f(),a=Hi(h,n,A),w.error(A)},complete:()=>{c=!0,f(),a=Hi(h,r),w.complete()}}),R(m).subscribe(s))})(i)}}function Hi(t,e,...n){if(e===!0){t();return}if(e===!1)return;let r=new Ue({next:()=>{r.unsubscribe(),t()}});return R(e(...n)).subscribe(r)}function Fm(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,Ui({connector:()=>new Er(r,e,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Pm(t){return xt((e,n)=>t<=n)}function Rm(...t){let e=Re(t);return S((n,r)=>{(e?Xt(t,n,e):Xt(t,n)).subscribe(r)})}function km(t,e){return S((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(C(r,u=>{o?.unsubscribe();let l=0,c=i++;R(t(u,c)).subscribe(o=C(r,d=>r.next(e?e(u,d,c,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Lm(t){return S((e,n)=>{R(t).subscribe(C(n,()=>n.complete(),_t)),!n.closed&&e.subscribe(n)})}function jm(t,e,n){let r=D(t)||e||n?{next:t,error:e,complete:n}:t;return r?S((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(C(i,u=>{var l;(l=r.next)===null||l===void 0||l.call(r,u),i.next(u)},()=>{var u;a=!1,(u=r.complete)===null||u===void 0||u.call(r),i.complete()},u=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,u),i.error(u)},()=>{var u,l;a&&((u=r.unsubscribe)===null||u===void 0||u.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):ue}var Rc="https://g.co/ng/security#xss",g=class extends Error{constructor(e,n){super(kc(e,n)),this.code=e}};function kc(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}var ss=class extends Pe{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,n,r){let o=e,i=n||(()=>null),s=r;if(e&&typeof e=="object"){let u=e;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=zi(i),o&&(o=zi(o)),s&&(s=zi(s)));let a=super.subscribe({next:o,error:i,complete:s});return e instanceof K&&e.add(a),a}};function zi(t){return e=>{setTimeout(t,void 0,e)}}var Ae=ss;var O=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(O||{});function de(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(de).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let n=e.indexOf(`
`);return n===-1?e:e.substring(0,n)}function as(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var Lc=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(Lc||{}),un=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(un||{});function tr(t){return{toString:t}.toString()}var qe=globalThis;var ln={},le=[];function B(t){for(let e in t)if(t[e]===B)return e;throw Error("Could not find renamed property on target object.")}function Vm(t,e){for(let n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}var Bm=B({\u0275cmp:B}),$m=B({\u0275dir:B}),Hm=B({\u0275pipe:B}),Um=B({\u0275mod:B}),ro=B({\u0275fac:B}),Ln=B({__NG_ELEMENT_ID__:B}),Gl=B({__NG_ENV_ID__:B}),st=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(st||{});function jc(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}}function us(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];zm(i)?t.setProperty(e,i,s):t.setAttribute(e,i,s),r++}}return r}function Vc(t){return t===3||t===4||t===6}function zm(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?Wl(t,n,o,null,e[++r]):Wl(t,n,o,null,null))}}return t}function Wl(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){if(r===null){o!==null&&(t[i+1]=o);return}else if(r===t[i+1]){t[i+2]=o;return}}i++,r!==null&&i++,o!==null&&i++}s!==-1&&(t.splice(s,0,e),i=s+1),t.splice(i++,0,n),r!==null&&t.splice(i++,0,r),o!==null&&t.splice(i++,0,o)}var Bc="ng-template";function qm(t,e,n){let r=0,o=!0;for(;r<t.length;){let i=t[r++];if(typeof i=="string"&&o){let s=t[r++];if(n&&i==="class"&&jc(s.toLowerCase(),e,0)!==-1)return!0}else if(i===1){for(;r<t.length&&typeof(i=t[r++])=="string";)if(i.toLowerCase()===e)return!0;return!1}else typeof i=="number"&&(o=!1)}return!1}function $c(t){return t.type===4&&t.value!==Bc}function Gm(t,e,n){let r=t.type===4&&!n?Bc:t.value;return e===r}function Wm(t,e,n){let r=4,o=t.attrs||[],i=Ym(o),s=!1;for(let a=0;a<e.length;a++){let u=e[a];if(typeof u=="number"){if(!s&&!xe(r)&&!xe(u))return!1;if(s&&xe(u))continue;s=!1,r=u|r&1;continue}if(!s)if(r&4){if(r=2|r&1,u!==""&&!Gm(t,u,n)||u===""&&e.length===1){if(xe(r))return!1;s=!0}}else{let l=r&8?u:e[++a];if(r&8&&t.attrs!==null){if(!qm(t.attrs,l,n)){if(xe(r))return!1;s=!0}continue}let c=r&8?"class":u,d=Qm(c,o,$c(t),n);if(d===-1){if(xe(r))return!1;s=!0;continue}if(l!==""){let f;d>i?f="":f=o[d+1].toLowerCase();let h=r&8?f:null;if(h&&jc(h,l,0)!==-1||r&2&&l!==f){if(xe(r))return!1;s=!0}}}}return xe(r)||s}function xe(t){return(t&1)===0}function Qm(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 Zm(e,t)}function Hc(t,e,n=!1){for(let r=0;r<e.length;r++)if(Wm(t,e[r],n))return!0;return!1}function Km(t){let e=t.attrs;if(e!=null){let n=e.indexOf(5);if(!(n&1))return e[n+1]}return null}function Ym(t){for(let e=0;e<t.length;e++){let n=t[e];if(Vc(n))return e}return t.length}function Zm(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 Jm(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 Ql(t,e){return t?":not("+e.trim()+")":e}function Xm(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!==""&&!xe(s)&&(e+=Ql(i,o),o=""),r=s,i=i||!xe(r);n++}return o!==""&&(e+=Ql(i,o)),e}function eg(t){return t.map(Xm).join(",")}function tg(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(!xe(o))break;o=i}r++}return{attrs:e,classes:n}}function fN(t){return tr(()=>{let e=Wc(t),n=An(Ie({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Lc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||un.Emulated,styles:t.styles||le,_:null,schemas:t.schemas||null,tView:null,id:""});Qc(n);let r=t.dependencies;return n.directiveDefs=Yl(r,!1),n.pipeDefs=Yl(r,!0),n.id=sg(n),n})}function ng(t){return We(t)||zc(t)}function rg(t){return t!==null}function Uc(t){return tr(()=>({type:t.type,bootstrap:t.bootstrap||le,declarations:t.declarations||le,imports:t.imports||le,exports:t.exports||le,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Kl(t,e){if(t==null)return ln;let n={};for(let r in t)if(t.hasOwnProperty(r)){let o=t[r],i,s,a=st.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),e?(n[i]=a!==st.None?[r,a]:r,e[i]=s):n[i]=r}return n}function jt(t){return tr(()=>{let e=Wc(t);return Qc(e),e})}function og(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 We(t){return t[Bm]||null}function zc(t){return t[$m]||null}function qc(t){return t[Hm]||null}function ig(t){let e=We(t)||zc(t)||qc(t);return e!==null?e.standalone:!1}function Gc(t,e){let n=t[Um]||null;if(!n&&e===!0)throw new Error(`Type ${de(t)} does not have '\u0275mod' property.`);return n}function Wc(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||ln,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||le,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Kl(t.inputs,e),outputs:Kl(t.outputs),debugInfo:null}}function Qc(t){t.features?.forEach(e=>e(t))}function Yl(t,e){if(!t)return null;let n=e?qc:ng;return()=>(typeof t=="function"?t():t).map(r=>n(r)).filter(rg)}function sg(t){let e=0,n=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let o of n)e=Math.imul(31,e)+o.charCodeAt(0)<<0;return e+=2147483648,"c"+e}var W=0,I=1,_=2,J=3,Ne=4,ye=5,Ve=6,$n=7,ge=8,cn=9,Qe=10,k=11,Hn=12,Zl=13,Dn=14,pe=15,nr=16,tn=17,Ke=18,Fo=19,Kc=20,rt=21,qi=22,Nt=23,$=25,va=1,Un=6,Ye=7,oo=8,dn=9,re=10,Da=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Da||{});function Ge(t){return Array.isArray(t)&&typeof t[va]=="object"}function ve(t){return Array.isArray(t)&&t[va]===!0}function Ea(t){return(t.flags&4)!==0}function En(t){return t.componentOffset>-1}function Po(t){return(t.flags&1)===1}function at(t){return!!t.template}function wa(t){return(t[_]&512)!==0}function ag(t){return(t.type&16)===16}function ug(t){return(t[_]&32)===32}var lg="svg",cg="math",dg=!1;function fg(){return dg}function Z(t){for(;Array.isArray(t);)t=t[W];return t}function Yc(t){for(;Array.isArray(t);){if(typeof t[va]=="object")return t;t=t[W]}return null}function Zc(t,e){return Z(e[t])}function De(t,e){return Z(e[t.index])}function _a(t,e){return t.data[e]}function Jc(t,e){return t[e]}function ht(t,e){let n=e[t];return Ge(n)?n:n[W]}function hg(t){return(t[_]&4)===4}function Ia(t){return(t[_]&128)===128}function pg(t){return ve(t[J])}function fn(t,e){return e==null?null:t[e]}function Xc(t){t[tn]=0}function mg(t){t[_]&1024||(t[_]|=1024,Ia(t)&&zn(t))}function gg(t,e){for(;t>0;)e=e[Dn],t--;return e}function ba(t){return!!(t[_]&9216||t[Nt]?.dirty)}function ls(t){ba(t)?zn(t):t[_]&64&&(fg()?(t[_]|=1024,zn(t)):t[Qe].changeDetectionScheduler?.notify())}function zn(t){t[Qe].changeDetectionScheduler?.notify();let e=qn(t);for(;e!==null&&!(e[_]&8192||(e[_]|=8192,!Ia(e)));)e=qn(e)}function ed(t,e){if((t[_]&256)===256)throw new g(911,!1);t[rt]===null&&(t[rt]=[]),t[rt].push(e)}function yg(t,e){if(t[rt]===null)return;let n=t[rt].indexOf(e);n!==-1&&t[rt].splice(n,1)}function qn(t){let e=t[J];return ve(e)?e[J]:e}var M={lFrame:ad(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function vg(){return M.lFrame.elementDepthCount}function Dg(){M.lFrame.elementDepthCount++}function Eg(){M.lFrame.elementDepthCount--}function td(){return M.bindingsEnabled}function wn(){return M.skipHydrationRootTNode!==null}function wg(t){return M.skipHydrationRootTNode===t}function _g(t){M.skipHydrationRootTNode=t}function Ig(){M.skipHydrationRootTNode=null}function x(){return M.lFrame.lView}function U(){return M.lFrame.tView}function hN(t){return M.lFrame.contextLView=t,t[ge]}function pN(t){return M.lFrame.contextLView=null,t}function ie(){let t=nd();for(;t!==null&&t.type===64;)t=t.parent;return t}function nd(){return M.lFrame.currentTNode}function bg(){let t=M.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Vt(t,e){let n=M.lFrame;n.currentTNode=t,n.isParent=e}function Ca(){return M.lFrame.isParent}function Sa(){M.lFrame.isParent=!1}function Cg(){return M.lFrame.contextLView}function rd(){let t=M.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Sg(){return M.lFrame.bindingIndex}function Tg(t){return M.lFrame.bindingIndex=t}function _n(){return M.lFrame.bindingIndex++}function Ta(t){let e=M.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Mg(){return M.lFrame.inI18n}function xg(t,e){let n=M.lFrame;n.bindingIndex=n.bindingRootIndex=t,cs(e)}function Ag(){return M.lFrame.currentDirectiveIndex}function cs(t){M.lFrame.currentDirectiveIndex=t}function Ng(t){let e=M.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function od(){return M.lFrame.currentQueryIndex}function Ma(t){M.lFrame.currentQueryIndex=t}function Og(t){let e=t[I];return e.type===2?e.declTNode:e.type===1?t[ye]:null}function id(t,e,n){if(n&O.SkipSelf){let o=e,i=t;for(;o=o.parent,o===null&&!(n&O.Host);)if(o=Og(i),o===null||(i=i[Dn],o.type&10))break;if(o===null)return!1;e=o,t=i}let r=M.lFrame=sd();return r.currentTNode=e,r.lView=t,!0}function xa(t){let e=sd(),n=t[I];M.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function sd(){let t=M.lFrame,e=t===null?null:t.child;return e===null?ad(t):e}function ad(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 ud(){let t=M.lFrame;return M.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var ld=ud;function Aa(){let t=ud();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 Fg(t){return(M.lFrame.contextLView=gg(t,M.lFrame.contextLView))[ge]}function Bt(){return M.lFrame.selectedIndex}function Ot(t){M.lFrame.selectedIndex=t}function In(){let t=M.lFrame;return _a(t.tView,t.selectedIndex)}function cd(){return M.lFrame.currentNamespace}var dd=!0;function Ro(){return dd}function pt(t){dd=t}function Pg(){return bn(ie(),x())}function bn(t,e){return new $t(De(t,e))}var $t=(()=>{let e=class e{constructor(r){this.nativeElement=r}};e.__NG_ELEMENT_ID__=Pg;let t=e;return t})();function Rg(t){return t instanceof $t?t.nativeElement:t}function kg(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 Lg(t){return t.flat(Number.POSITIVE_INFINITY)}function Na(t,e){t.forEach(n=>Array.isArray(n)?Na(n,e):e(n))}function fd(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function io(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function jg(t,e){let n=[];for(let r=0;r<t;r++)n.push(e);return n}function Vg(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 ko(t,e,n){let r=rr(t,e);return r>=0?t[r|1]=n:(r=~r,Vg(t,r,e,n)),r}function Gi(t,e){let n=rr(t,e);if(n>=0)return t[n|1]}function rr(t,e){return Bg(t,e,1)}function Bg(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)}function $g(){return this._results[Symbol.iterator]()}var ds=class t{get changes(){return this._changes??=new Ae}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let n=t.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=$g)}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=Lg(e);(this._changesDetected=!kg(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.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}},Gn="ngSkipHydration",Hg="ngskiphydration";function hd(t){let e=t.mergedAttrs;if(e===null)return!1;for(let n=0;n<e.length;n+=2){let r=e[n];if(typeof r=="number")return!1;if(typeof r=="string"&&r.toLowerCase()===Hg)return!0}return!1}function pd(t){return t.hasAttribute(Gn)}function so(t){return(t.flags&128)===128}function ao(t){if(so(t))return!0;let e=t.parent;for(;e;){if(so(t)||hd(e))return!0;e=e.parent}return!1}var fs;function mN(t){fs=t}function Lo(){if(fs!==void 0)return fs;if(typeof document<"u")return document;throw new g(210,!1)}function V(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function md(t){return{providers:t.providers||[],imports:t.imports||[]}}function jo(t){return Jl(t,gd)||Jl(t,yd)}function gN(t){return jo(t)!==null}function Jl(t,e){return t.hasOwnProperty(e)?t[e]:null}function Ug(t){let e=t&&(t[gd]||t[yd]);return e||null}function Xl(t){return t&&(t.hasOwnProperty(ec)||t.hasOwnProperty(zg))?t[ec]:null}var gd=B({\u0275prov:B}),ec=B({\u0275inj:B}),yd=B({ngInjectableDef:B}),zg=B({ngInjectorDef:B}),j=class{constructor(e,n){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=V({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}},qg=new j("",{providedIn:"root",factory:()=>Gg}),Gg="ng",Wg=new j(""),Vo=new j("",{providedIn:"platform",factory:()=>"unknown"});var yN=new j(""),vN=new j("",{providedIn:"root",factory:()=>Lo().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Qg=B({__forward_ref__:B});function vd(t){return t.__forward_ref__=vd,t.toString=function(){return de(this())},t}function ce(t){return Dd(t)?t():t}function Dd(t){return typeof t=="function"&&t.hasOwnProperty(Qg)&&t.__forward_ref__===vd}function Ed(t){return t&&!!t.\u0275providers}function ot(t){return typeof t=="string"?t:t==null?"":String(t)}function Kg(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():ot(t)}function Yg(t,e){let n=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new g(-200,t)}function Oa(t,e){throw new g(-201,!1)}var hs;function wd(){return hs}function he(t){let e=hs;return hs=t,e}function _d(t,e,n){let r=jo(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&O.Optional)return null;if(e!==void 0)return e;Oa(t,"Injector")}var Zg={},Wn=Zg,ps="__NG_DI_FLAG__",uo="ngTempTokenPath",Jg="ngTokenPath",Xg=/\n/gm,ey="\u0275",tc="__source",sn;function ty(){return sn}function nt(t){let e=sn;return sn=t,e}function ny(t,e=O.Default){if(sn===void 0)throw new g(-203,!1);return sn===null?_d(t,void 0,e):sn.get(t,e&O.Optional?null:void 0,e)}function Q(t,e=O.Default){return(wd()||ny)(ce(t),e)}function P(t,e=O.Default){return Q(t,Bo(e))}function Bo(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function ms(t){let e=[];for(let n=0;n<t.length;n++){let r=ce(t[n]);if(Array.isArray(r)){if(r.length===0)throw new g(900,!1);let o,i=O.Default;for(let s=0;s<r.length;s++){let a=r[s],u=ry(a);typeof u=="number"?u===-1?o=a.token:i|=u:o=a}e.push(Q(o,i))}else e.push(Q(r))}return e}function Id(t,e){return t[ps]=e,t.prototype[ps]=e,t}function ry(t){return t[ps]}function oy(t,e,n,r){let o=t[uo];throw e[tc]&&o.unshift(e[tc]),t.message=iy(`
`+t.message,o,n,r),t[Jg]=o,t[uo]=null,t}function iy(t,e,n,r=null){t=t&&t.charAt(0)===`
`&&t.charAt(1)==ey?t.slice(2):t;let o=de(e);if(Array.isArray(e))o=e.map(de).join(" -> ");else if(typeof e=="object"){let i=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):de(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${t.replace(Xg,`
`)}`}function sy(){let t=new $o;return P(Vo)==="browser"&&(t.store=ay(Lo(),P(qg))),t}var $o=(()=>{let e=class e{constructor(){this.store={},this.onSerializeCallbacks={}}get(r,o){return this.store[r]!==void 0?this.store[r]:o}set(r,o){this.store[r]=o}remove(r){delete this.store[r]}hasKey(r){return this.store.hasOwnProperty(r)}get isEmpty(){return Object.keys(this.store).length===0}onSerialize(r,o){this.onSerializeCallbacks[r]=o}toJson(){for(let r in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(r))try{this.store[r]=this.onSerializeCallbacks[r]()}catch(o){console.warn("Exception in onSerialize callback: ",o)}return JSON.stringify(this.store).replace(/</g,"\\u003C")}};e.\u0275prov=V({token:e,providedIn:"root",factory:sy});let t=e;return t})();function ay(t,e){let n=t.getElementById(e+"-state");if(n?.textContent)try{return JSON.parse(n.textContent)}catch(r){console.warn("Exception while restoring TransferState for app "+e,r)}return{}}var Fa="h",Pa="b",Qn=function(t){return t.FirstChild="f",t.NextSibling="n",t}(Qn||{}),gs="e",ys="t",Kn="c",lo="x",hn="r",vs="i",Ds="n",Yr="d",uy="__nghData__",Ra=uy,jn="ngh",ly="nghm",bd=()=>null;function cy(t,e,n=!1){let r=t.getAttribute(jn);if(r==null)return null;let[o,i]=r.split("|");if(r=n?i:o,!r)return null;let s=i?`|${i}`:"",a=n?o:s,u={};if(r!==""){let c=e.get($o,null,{optional:!0});c!==null&&(u=c.get(Ra,[])[Number(r)])}let l={data:u,firstChild:t.firstChild??null};return n&&(l.firstChild=t,Ho(l,0,t.nextSibling)),a?t.setAttribute(jn,a):t.removeAttribute(jn),l}function dy(){bd=cy}function ka(t,e,n=!1){return bd(t,e,n)}function Cd(t){let e=t._lView;return e[I].type===2?null:(wa(e)&&(e=e[$]),e)}function fy(t){return t.textContent?.replace(/\s/gm,"")}function hy(t){let e=Lo(),n=e.createNodeIterator(t,NodeFilter.SHOW_COMMENT,{acceptNode(i){let s=fy(i);return s==="ngetn"||s==="ngtns"?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),r,o=[];for(;r=n.nextNode();)o.push(r);for(let i of o)i.textContent==="ngetn"?i.replaceWith(e.createTextNode("")):i.remove()}function Ho(t,e,n){t.segmentHeads??={},t.segmentHeads[e]=n}function Es(t,e){return t.segmentHeads?.[e]??null}function py(t,e){let n=t.data,r=n[gs]?.[e]??null;return r===null&&n[Kn]?.[e]&&(r=La(t,e)),r}function Sd(t,e){return t.data[Kn]?.[e]??null}function La(t,e){let n=Sd(t,e)??[],r=0;for(let o of n)r+=o[hn]*(o[lo]??1);return r}function Uo(t,e){if(typeof t.disconnectedNodes>"u"){let n=t.data[Yr];t.disconnectedNodes=n?new Set(n):null}return!!t.disconnectedNodes?.has(e)}var $r="__parameters__";function my(t){return function(...n){if(t){let r=t(...n);for(let o in r)this[o]=r[o]}}}function Td(t,e,n){return tr(()=>{let r=my(e);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(u,l,c){let d=u.hasOwnProperty($r)?u[$r]:Object.defineProperty(u,$r,{value:[]})[$r];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),u}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}var gy=Id(Td("Optional"),8);var yy=Id(Td("SkipSelf"),4);function Ft(t,e){let n=t.hasOwnProperty(ro);return n?t[ro]:null}var Yn=new j(""),Md=new j("",-1),xd=new j(""),co=class{get(e,n=Wn){if(n===Wn){let r=new Error(`NullInjectorError: No provider for ${de(e)}!`);throw r.name="NullInjectorError",r}return n}};function Ad(t){return{\u0275providers:t}}function vy(...t){return{\u0275providers:Nd(!0,t),\u0275fromNgModule:!0}}function Nd(t,...e){let n=[],r=new Set,o,i=s=>{n.push(s)};return Na(e,s=>{let a=s;ws(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Od(o,i),n}function Od(t,e){for(let n=0;n<t.length;n++){let{ngModule:r,providers:o}=t[n];ja(o,i=>{e(i,r)})}}function ws(t,e,n,r){if(t=ce(t),!t)return!1;let o=null,i=Xl(t),s=!i&&We(t);if(!i&&!s){let u=t.ngModule;if(i=Xl(u),i)o=u;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 u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of u)ws(l,e,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;try{Na(i.imports,c=>{ws(c,e,n,r)&&(l||=[],l.push(c))})}finally{}l!==void 0&&Od(l,e)}if(!a){let l=Ft(o)||(()=>new o);e({provide:o,useFactory:l,deps:le},o),e({provide:xd,useValue:o,multi:!0},o),e({provide:Yn,useValue:()=>Q(o),multi:!0},o)}let u=i.providers;if(u!=null&&!a){let l=t;ja(u,c=>{e(c,l)})}}else return!1;return o!==t&&t.providers!==void 0}function ja(t,e){for(let n of t)Ed(n)&&(n=n.\u0275providers),Array.isArray(n)?ja(n,e):e(n)}var Dy=B({provide:String,useValue:B});function Fd(t){return t!==null&&typeof t=="object"&&Dy in t}function Ey(t){return!!(t&&t.useExisting)}function wy(t){return!!(t&&t.useFactory)}function pn(t){return typeof t=="function"}function _y(t){return!!t.useClass}var Pd=new j(""),Zr={},Iy={},Wi;function Va(){return Wi===void 0&&(Wi=new co),Wi}var ut=class{},Zn=class extends ut{get destroyed(){return this._destroyed}constructor(e,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Is(e,s=>this.processProvider(s)),this.records.set(Md,nn(void 0,this)),o.has("environment")&&this.records.set(ut,nn(void 0,this));let i=this.records.get(Pd);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(xd,le,O.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of e)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let n=nt(this),r=he(void 0),o;try{return e()}finally{nt(n),he(r)}}get(e,n=Wn,r=O.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Gl))return e[Gl](this);r=Bo(r);let o,i=nt(this),s=he(void 0);try{if(!(r&O.SkipSelf)){let u=this.records.get(e);if(u===void 0){let l=My(e)&&jo(e);l&&this.injectableDefInScope(l)?u=nn(_s(e),Zr):u=null,this.records.set(e,u)}if(u!=null)return this.hydrate(e,u)}let a=r&O.Self?Va():this.parent;return n=r&O.Optional&&n===Wn?null:n,a.get(e,n)}catch(a){if(a.name==="NullInjectorError"){if((a[uo]=a[uo]||[]).unshift(de(e)),i)throw a;return oy(a,e,"R3InjectorError",this.source)}else throw a}finally{he(s),nt(i)}}resolveInjectorInitializers(){let e=nt(this),n=he(void 0),r;try{let o=this.get(Yn,le,O.Self);for(let i of o)i()}finally{nt(e),he(n)}}toString(){let e=[],n=this.records;for(let r of n.keys())e.push(de(r));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new g(205,!1)}processProvider(e){e=ce(e);let n=pn(e)?e:ce(e&&e.provide),r=Cy(e);if(!pn(e)&&e.multi===!0){let o=this.records.get(n);o||(o=nn(void 0,Zr,!0),o.factory=()=>ms(o.multi),this.records.set(n,o)),n=e,o.multi.push(e)}this.records.set(n,r)}hydrate(e,n){return n.value===Zr&&(n.value=Iy,n.value=n.factory()),typeof n.value=="object"&&n.value&&Ty(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(e){if(!e.providedIn)return!1;let n=ce(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 _s(t){let e=jo(t),n=e!==null?e.factory:Ft(t);if(n!==null)return n;if(t instanceof j)throw new g(204,!1);if(t instanceof Function)return by(t);throw new g(204,!1)}function by(t){if(t.length>0)throw new g(204,!1);let n=Ug(t);return n!==null?()=>n.factory(t):()=>new t}function Cy(t){if(Fd(t))return nn(void 0,t.useValue);{let e=Rd(t);return nn(e,Zr)}}function Rd(t,e,n){let r;if(pn(t)){let o=ce(t);return Ft(o)||_s(o)}else if(Fd(t))r=()=>ce(t.useValue);else if(wy(t))r=()=>t.useFactory(...ms(t.deps||[]));else if(Ey(t))r=()=>Q(ce(t.useExisting));else{let o=ce(t&&(t.useClass||t.provide));if(Sy(t))r=()=>new o(...ms(t.deps));else return Ft(o)||_s(o)}return r}function nn(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Sy(t){return!!t.deps}function Ty(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function My(t){return typeof t=="function"||typeof t=="object"&&t instanceof j}function Is(t,e){for(let n of t)Array.isArray(n)?Is(n,e):n&&Ed(n)?Is(n.\u0275providers,e):e(n)}function DN(t,e){t instanceof Zn&&t.assertNotDestroyed();let n,r=nt(t),o=he(void 0);try{return e()}finally{nt(r),he(o)}}function xy(t){if(!wd()&&!ty())throw new g(-203,!1)}function Ay(t){let e=qe.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function Ny(t){return typeof t=="function"}var bs=class{constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function kd(t,e,n,r){e!==null?e.applyValueToInputSignal(e,r):t[n]=r}function Ba(){return Ld}function Ld(t){return t.type.prototype.ngOnChanges&&(t.setInput=Fy),Oy}Ba.ngInherit=!0;function Oy(){let t=Vd(this),e=t?.current;if(e){let n=t.previous;if(n===ln)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function Fy(t,e,n,r,o){let i=this.declaredInputs[r],s=Vd(t)||Py(t,{previous:ln,current:null}),a=s.current||(s.current={}),u=s.previous,l=u[i];a[i]=new bs(l&&l.currentValue,n,u===ln),kd(t,e,o,n)}var jd="__ngSimpleChanges__";function Vd(t){return t[jd]||null}function Py(t,e){return t[jd]=e}var nc=null;var Le=function(t,e,n){nc?.(t,e,n)};function Ry(t,e,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(r){let s=Ld(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 zo(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:u,ngAfterViewChecked:l,ngOnDestroy:c}=i;s&&(t.contentHooks??=[]).push(-n,s),a&&((t.contentHooks??=[]).push(n,a),(t.contentCheckHooks??=[]).push(n,a)),u&&(t.viewHooks??=[]).push(-n,u),l&&((t.viewHooks??=[]).push(n,l),(t.viewCheckHooks??=[]).push(n,l)),c!=null&&(t.destroyHooks??=[]).push(n,c)}}function Jr(t,e,n){Bd(t,e,3,n)}function Xr(t,e,n,r){(t[_]&3)===n&&Bd(t,e,n,r)}function Qi(t,e){let n=t[_];(n&3)===e&&(n&=16383,n+=1,t[_]=n)}function Bd(t,e,n,r){let o=r!==void 0?t[tn]&65535:0,i=r??-1,s=e.length-1,a=0;for(let u=o;u<s;u++)if(typeof e[u+1]=="number"){if(a=e[u],r!=null&&a>=r)break}else e[u]<0&&(t[tn]+=65536),(a<i||i==-1)&&(ky(t,n,e,u),t[tn]=(t[tn]&4294901760)+u+2),u++}function rc(t,e){Le(4,t,e);let n=ae(null);try{e.call(t)}finally{ae(n),Le(5,t,e)}}function ky(t,e,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=t[s];o?t[_]>>14<t[tn]>>16&&(t[_]&3)===e&&(t[_]+=16384,rc(a,i)):rc(a,i)}var an=-1,Pt=class{constructor(e,n,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function Ly(t){return t instanceof Pt}function jy(t){return t!=null&&typeof t=="object"&&(t.insertBeforeIndex===null||typeof t.insertBeforeIndex=="number"||Array.isArray(t.insertBeforeIndex))}function Vy(t){return(t.flags&8)!==0}function By(t){return(t.flags&16)!==0}function $d(t){return t!==an}function fo(t){return t&32767}function $y(t){return t>>16}function ho(t,e){let n=$y(t),r=e;for(;n>0;)r=r[Dn],n--;return r}var Cs=!0;function po(t){let e=Cs;return Cs=t,e}var Hy=256,Hd=Hy-1,Ud=5,Uy=0,je={};function zy(t,e,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ln)&&(r=n[Ln]),r==null&&(r=n[Ln]=Uy++);let o=r&Hd,i=1<<o;e.data[t+(o>>Ud)]|=i}function mo(t,e){let n=zd(t,e);if(n!==-1)return n;let r=e[I];r.firstCreatePass&&(t.injectorIndex=e.length,Ki(r.data,t),Ki(e,null),Ki(r.blueprint,null));let o=$a(t,e),i=t.injectorIndex;if($d(o)){let s=fo(o),a=ho(o,e),u=a[I].data;for(let l=0;l<8;l++)e[i+l]=a[s+l]|u[s+l]}return e[i+8]=o,i}function Ki(t,e){t.push(0,0,0,0,0,0,0,0,e)}function zd(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function $a(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=Kd(o),r===null)return an;if(n++,o=o[Dn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return an}function Ss(t,e,n){zy(t,e,n)}function qy(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(Vc(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 qd(t,e,n){if(n&O.Optional||t!==void 0)return t;Oa(e,"NodeInjector")}function Gd(t,e,n,r){if(n&O.Optional&&r===void 0&&(r=null),!(n&(O.Self|O.Host))){let o=t[cn],i=he(void 0);try{return o?o.get(e,r,n&O.Optional):_d(e,r,n&O.Optional)}finally{he(i)}}return qd(r,e,n)}function Wd(t,e,n,r=O.Default,o){if(t!==null){if(e[_]&2048&&!(r&O.Self)){let s=Ky(t,e,n,r,je);if(s!==je)return s}let i=Qd(t,e,n,r,je);if(i!==je)return i}return Gd(e,n,r,o)}function Qd(t,e,n,r,o){let i=Wy(n);if(typeof i=="function"){if(!id(e,t,r))return r&O.Host?qd(o,n,r):Gd(e,n,r,o);try{let s;if(s=i(r),s==null&&!(r&O.Optional))Oa(n);else return s}finally{ld()}}else if(typeof i=="number"){let s=null,a=zd(t,e),u=an,l=r&O.Host?e[pe][ye]:null;for((a===-1||r&O.SkipSelf)&&(u=a===-1?$a(t,e):e[a+8],u===an||!ic(r,!1)?a=-1:(s=e[I],a=fo(u),e=ho(u,e)));a!==-1;){let c=e[I];if(oc(i,a,c.data)){let d=Gy(a,e,n,s,r,l);if(d!==je)return d}u=e[a+8],u!==an&&ic(r,e[I].data[a+8]===l)&&oc(i,a,e)?(s=c,a=fo(u),e=ho(u,e)):a=-1}}return o}function Gy(t,e,n,r,o,i){let s=e[I],a=s.data[t+8],u=r==null?En(a)&&Cs:r!=s&&(a.type&3)!==0,l=o&O.Host&&i===a,c=eo(a,s,n,u,l);return c!==null?Rt(e,s,c,a):je}function eo(t,e,n,r,o){let i=t.providerIndexes,s=e.data,a=i&1048575,u=t.directiveStart,l=t.directiveEnd,c=i>>20,d=r?a:a+c,f=o?a+c:l;for(let h=d;h<f;h++){let p=s[h];if(h<u&&n===p||h>=u&&p.type===n)return h}if(o){let h=s[u];if(h&&at(h)&&h.type===n)return u}return null}function Rt(t,e,n,r){let o=t[n],i=e.data;if(Ly(o)){let s=o;s.resolving&&Yg(Kg(i[n]));let a=po(s.canSeeViewProviders);s.resolving=!0;let u,l=s.injectImpl?he(s.injectImpl):null,c=id(t,r,O.Default);try{o=t[n]=s.factory(void 0,i,t,r),e.firstCreatePass&&n>=r.directiveStart&&Ry(n,i[n],e)}finally{l!==null&&he(l),po(a),s.resolving=!1,ld()}}return o}function Wy(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Ln)?t[Ln]:void 0;return typeof e=="number"?e>=0?e&Hd:Qy:e}function oc(t,e,n){let r=1<<t;return!!(n[e+(t>>Ud)]&r)}function ic(t,e){return!(t&O.Self)&&!(t&O.Host&&e)}var At=class{constructor(e,n){this._tNode=e,this._lView=n}get(e,n,r){return Wd(this._tNode,this._lView,e,Bo(r),n)}};function Qy(){return new At(ie(),x())}function EN(t){return tr(()=>{let e=t.prototype.constructor,n=e[ro]||Ts(e),r=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==r;){let i=o[ro]||Ts(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Ts(t){return Dd(t)?()=>{let e=Ts(ce(t));return e&&e()}:Ft(t)}function Ky(t,e,n,r,o){let i=t,s=e;for(;i!==null&&s!==null&&s[_]&2048&&!(s[_]&512);){let a=Qd(i,s,n,r|O.Self,je);if(a!==je)return a;let u=i.parent;if(!u){let l=s[Kc];if(l){let c=l.get(n,je,r);if(c!==je)return c}u=Kd(s),s=s[Dn]}i=u}return o}function Kd(t){let e=t[I],n=e.type;return n===2?e.declTNode:n===1?t[ye]:null}function Yy(t){return qy(ie(),t)}function sc(t,e=null,n=null,r){let o=Yd(t,e,n,r);return o.resolveInjectorInitializers(),o}function Yd(t,e=null,n=null,r,o=new Set){let i=[n||le,vy(t)];return r=r||(typeof t=="object"?void 0:de(t)),new Zn(i,e||Va(),r||null,o)}var mt=(()=>{let e=class e{static create(r,o){if(Array.isArray(r))return sc({name:""},o,r,"");{let i=r.name??"";return sc({name:i},r.parent,r.providers,i)}}};e.THROW_IF_NOT_FOUND=Wn,e.NULL=new co,e.\u0275prov=V({token:e,providedIn:"any",factory:()=>Q(Md)}),e.__NG_ELEMENT_ID__=-1;let t=e;return t})(),Zy="ngOriginalError";function Yi(t){return t[Zy]}var lt=class{constructor(){this._console=console}handleError(e){let n=this._findOriginalError(e);this._console.error("ERROR",e),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(e){let n=e&&Yi(e);for(;n&&Yi(n);)n=Yi(n);return n||null}},Zd=new j("",{providedIn:"root",factory:()=>P(lt).handleError.bind(void 0)}),Hr=new j(""),Jd=!1,Xd=new j("",{providedIn:"root",factory:()=>Jd}),Ur;function Jy(){if(Ur===void 0&&(Ur=null,qe.trustedTypes))try{Ur=qe.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Ur}function qo(t){return Jy()?.createHTML(t)||t}var zr;function Xy(){if(zr===void 0&&(zr=null,qe.trustedTypes))try{zr=qe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return zr}function ac(t){return Xy()?.createScriptURL(t)||t}var Ze=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Rc})`}},Ms=class extends Ze{getTypeName(){return"HTML"}},xs=class extends Ze{getTypeName(){return"Style"}},As=class extends Ze{getTypeName(){return"Script"}},Ns=class extends Ze{getTypeName(){return"URL"}},Os=class extends Ze{getTypeName(){return"ResourceURL"}};function Cn(t){return t instanceof Ze?t.changingThisBreaksApplicationSecurity:t}function ef(t,e){let n=ev(t);if(n!=null&&n!==e){if(n==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${n} (see ${Rc})`)}return n===e}function ev(t){return t instanceof Ze&&t.getTypeName()||null}function wN(t){return new Ms(t)}function _N(t){return new xs(t)}function IN(t){return new As(t)}function bN(t){return new Ns(t)}function CN(t){return new Os(t)}function tv(t){let e=new Ps(t);return nv()?new Fs(e):e}var Fs=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let n=new window.DOMParser().parseFromString(qo(e),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(e):(n.removeChild(n.firstChild),n)}catch{return null}}},Ps=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let n=this.inertDocument.createElement("template");return n.innerHTML=qo(e),n}};function nv(){try{return!!new window.DOMParser().parseFromString(qo(""),"text/html")}catch{return!1}}var rv=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function tf(t){return t=String(t),t.match(rv)?t:"unsafe:"+t}function Je(t){let e={};for(let n of t.split(","))e[n]=!0;return e}function or(...t){let e={};for(let n of t)for(let r in n)n.hasOwnProperty(r)&&(e[r]=!0);return e}var nf=Je("area,br,col,hr,img,wbr"),rf=Je("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),of=Je("rp,rt"),ov=or(of,rf),iv=or(rf,Je("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")),sv=or(of,Je("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")),uc=or(nf,iv,sv,ov),sf=Je("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),av=Je("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"),uv=Je("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"),lv=or(sf,av,uv),cv=Je("script,style,template"),Rs=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let n=e.firstChild,r=!0;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){n=n.firstChild;continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=this.checkClobberedElement(n,n.nextSibling);if(o){n=o;break}n=this.checkClobberedElement(n,n.parentNode)}}return this.buf.join("")}startElement(e){let n=e.nodeName.toLowerCase();if(!uc.hasOwnProperty(n))return this.sanitizedSomething=!0,!cv.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(!lv.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let u=i.value;sf[a]&&(u=tf(u)),this.buf.push(" ",s,'="',lc(u),'"')}return this.buf.push(">"),!0}endElement(e){let n=e.nodeName.toLowerCase();uc.hasOwnProperty(n)&&!nf.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(e){this.buf.push(lc(e))}checkClobberedElement(e,n){if(n&&(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return n}},dv=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,fv=/([^\#-~ |!])/g;function lc(t){return t.replace(/&/g,"&").replace(dv,function(e){let n=e.charCodeAt(0),r=e.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(fv,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var qr;function SN(t,e){let n=null;try{qr=qr||tv(t);let r=e?String(e):"";n=qr.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=qr.getInertBodyElement(r)}while(r!==i);let a=new Rs().sanitizeChildren(cc(n)||n);return qo(a)}finally{if(n){let r=cc(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function cc(t){return"content"in t&&hv(t)?t.content:null}function hv(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Ha=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}(Ha||{});function pv(t){let e=af();return e?e.sanitize(Ha.URL,t)||"":ef(t,"URL")?Cn(t):tf(ot(t))}function mv(t){let e=af();if(e)return ac(e.sanitize(Ha.RESOURCE_URL,t)||"");if(ef(t,"ResourceURL"))return ac(Cn(t));throw new g(904,!1)}function gv(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?mv:pv}function TN(t,e,n){return gv(e,n)(t)}function af(){let t=x();return t&&t[Qe].sanitizer}var yv=/^>|^->|<!--|-->|--!>|<!-$/g,vv=/(<|>)/g,Dv="\u200B$1\u200B";function Ev(t){return t.replace(yv,e=>e.replace(vv,Dv))}var uf=new Map,wv=0;function _v(){return wv++}function Iv(t){uf.set(t[Fo],t)}function bv(t){uf.delete(t[Fo])}var dc="__ngContext__";function ct(t,e){Ge(e)?(t[dc]=e[Fo],Iv(e)):t[dc]=e}function MN(t){return t.ownerDocument.defaultView}function Cv(t){return t.ownerDocument.body}function lf(t){return t instanceof Function?t():t}function kn(t){return(t??P(mt)).get(Vo)==="browser"}var go=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(go||{}),Sv;function Ua(t,e){return Sv(t,e)}function rn(t,e,n,r,o){if(r!=null){let i,s=!1;ve(r)?i=r:Ge(r)&&(s=!0,r=r[W]);let a=Z(r);t===0&&n!==null?o==null?pf(e,n,a):vo(e,n,a,o||null,!0):t===1&&n!==null?vo(e,n,a,o||null,!0):t===2?yf(e,a,s):t===3&&e.destroyNode(a),i!=null&&$v(e,t,i,n,o)}}function cf(t,e){return t.createText(e)}function Tv(t,e,n){t.setValue(e,n)}function df(t,e){return t.createComment(Ev(e))}function za(t,e,n){return t.createElement(e,n)}function Mv(t,e){ff(t,e),e[W]=null,e[ye]=null}function xv(t,e,n,r,o,i){r[W]=o,r[ye]=e,Wo(t,r,n,1,o,i)}function ff(t,e){Wo(t,e,e[k],2,null,null)}function Av(t){let e=t[Hn];if(!e)return Zi(t[I],t);for(;e;){let n=null;if(Ge(e))n=e[Hn];else{let r=e[re];r&&(n=r)}if(!n){for(;e&&!e[Ne]&&e!==t;)Ge(e)&&Zi(e[I],e),e=e[J];e===null&&(e=t),Ge(e)&&Zi(e[I],e),n=e&&e[Ne]}e=n}}function Nv(t,e,n,r){let o=re+r,i=n.length;r>0&&(n[o-1][Ne]=e),r<i-re?(e[Ne]=n[o],fd(n,re+r,e)):(n.push(e),e[Ne]=null),e[J]=n;let s=e[nr];s!==null&&n!==s&&Ov(s,e);let a=e[Ke];a!==null&&a.insertView(t),ls(e),e[_]|=128}function Ov(t,e){let n=t[dn],o=e[J][J][pe];e[pe]!==o&&(t[_]|=Da.HasTransplantedViews),n===null?t[dn]=[e]:n.push(e)}function hf(t,e){let n=t[dn],r=n.indexOf(e);n.splice(r,1)}function yo(t,e){if(t.length<=re)return;let n=re+e,r=t[n];if(r){let o=r[nr];o!==null&&o!==t&&hf(o,r),e>0&&(t[n-1][Ne]=r[Ne]);let i=io(t,re+e);Mv(r[I],r);let s=i[Ke];s!==null&&s.detachView(i[I]),r[J]=null,r[Ne]=null,r[_]&=-129}return r}function qa(t,e){if(!(e[_]&256)){let n=e[k];n.destroyNode&&Wo(t,e,n,3,null,null),Av(e)}}function Zi(t,e){if(!(e[_]&256)){e[_]&=-129,e[_]|=256,e[Nt]&&ml(e[Nt]),Pv(t,e),Fv(t,e),e[I].type===1&&e[k].destroy();let n=e[nr];if(n!==null&&ve(e[J])){n!==e[J]&&hf(n,e);let r=e[Ke];r!==null&&r.detachView(t)}bv(e)}}function Fv(t,e){let n=t.cleanup,r=e[$n];if(n!==null)for(let i=0;i<n.length-1;i+=2)if(typeof n[i]=="string"){let s=n[i+3];s>=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(e[$n]=null);let o=e[rt];if(o!==null){e[rt]=null;for(let i=0;i<o.length;i++){let s=o[i];s()}}}function Pv(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 Pt)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],u=i[s+1];Le(4,a,u);try{u.call(a)}finally{Le(5,a,u)}}else{Le(4,o,i);try{i.call(o)}finally{Le(5,o,i)}}}}}function Ga(t,e,n){return Rv(t,e.parent,n)}function Rv(t,e,n){let r=e;for(;r!==null&&r.type&40;)e=r,r=e.parent;if(r===null)return n[W];{let{componentOffset:o}=r;if(o>-1){let{encapsulation:i}=t.data[r.directiveStart+o];if(i===un.None||i===un.Emulated)return null}return De(r,n)}}function vo(t,e,n,r,o){t.insertBefore(e,n,r,o)}function pf(t,e,n){t.appendChild(e,n)}function fc(t,e,n,r,o){r!==null?vo(t,e,n,r,o):pf(t,e,n)}function kv(t,e,n,r){t.removeChild(e,n,r)}function Wa(t,e){return t.parentNode(e)}function Lv(t,e){return t.nextSibling(e)}function mf(t,e,n){return Vv(t,e,n)}function jv(t,e,n){return t.type&40?De(t,n):null}var Vv=jv,hc;function Go(t,e,n,r){let o=Ga(t,r,e),i=e[k],s=r.parent||e[ye],a=mf(s,r,e);if(o!=null)if(Array.isArray(n))for(let u=0;u<n.length;u++)fc(i,o,n[u],a,!1);else fc(i,o,n,a,!1);hc!==void 0&&hc(i,r,e,n,o)}function Vn(t,e){if(e!==null){let n=e.type;if(n&3)return De(e,t);if(n&4)return ks(-1,t[e.index]);if(n&8){let r=e.child;if(r!==null)return Vn(t,r);{let o=t[e.index];return ve(o)?ks(-1,o):Z(o)}}else{if(n&32)return Ua(e,t)()||Z(t[e.index]);{let r=gf(t,e);if(r!==null){if(Array.isArray(r))return r[0];let o=qn(t[pe]);return Vn(o,r)}else return Vn(t,e.next)}}}return null}function gf(t,e){if(e!==null){let r=t[pe][ye],o=e.projection;return r.projection[o]}return null}function ks(t,e){let n=re+t+1;if(n<e.length){let r=e[n],o=r[I].firstChild;if(o!==null)return Vn(r,o)}return e[Ye]}function yf(t,e,n){let r=Wa(t,e);r&&kv(t,r,e,n)}function vf(t){t.textContent=""}function Qa(t,e,n,r,o,i,s){for(;n!=null;){let a=r[n.index],u=n.type;if(s&&e===0&&(a&&ct(Z(a),r),n.flags|=2),(n.flags&32)!==32)if(u&8)Qa(t,e,n.child,r,o,i,!1),rn(e,t,o,a,i);else if(u&32){let l=Ua(n,r),c;for(;c=l();)rn(e,t,o,c,i);rn(e,t,o,a,i)}else u&16?Df(t,e,r,n,o,i):rn(e,t,o,a,i);n=s?n.projectionNext:n.next}}function Wo(t,e,n,r,o,i){Qa(n,r,t.firstChild,e,o,i,!1)}function Bv(t,e,n){let r=e[k],o=Ga(t,n,e),i=n.parent||e[ye],s=mf(i,n,e);Df(r,0,e,n,o,s)}function Df(t,e,n,r,o,i){let s=n[pe],u=s[ye].projection[r.projection];if(Array.isArray(u))for(let l=0;l<u.length;l++){let c=u[l];rn(e,t,o,c,i)}else{let l=u,c=s[J];so(r)&&(l.flags|=128),Qa(t,e,l,c,o,i,!0)}}function $v(t,e,n,r,o){let i=n[Ye],s=Z(n);i!==s&&rn(e,t,r,i,o);for(let a=re;a<n.length;a++){let u=n[a];Wo(u[I],u,t,e,r,i)}}function Hv(t,e,n,r,o){if(e)o?t.addClass(n,r):t.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:go.DashCase;o==null?t.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=go.Important),t.setStyle(n,r,o,i))}}function Uv(t,e,n){t.setAttribute(e,"style",n)}function Ef(t,e,n){n===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n)}function wf(t,e,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&us(t,e,r),o!==null&&Ef(t,e,o),i!==null&&Uv(t,e,i)}var Ce={};function xN(t=1){_f(U(),x(),Bt()+t,!1)}function _f(t,e,n,r){if(!r)if((e[_]&3)===3){let i=t.preOrderCheckHooks;i!==null&&Jr(e,i,n)}else{let i=t.preOrderHooks;i!==null&&Xr(e,i,0,n)}Ot(n)}function se(t,e=O.Default){let n=x();if(n===null)return Q(t,e);let r=ie();return Wd(r,n,ce(t),e)}function AN(){let t="invalid";throw new Error(t)}function If(t,e,n,r,o,i){let s=ae(null);try{let a=null;o&st.SignalBased&&(a=e[r][_i]),a!==null&&a.transformFn!==void 0&&(i=a.transformFn(i)),o&st.HasDecoratorInputTransform&&(i=t.inputTransforms[r].call(e,i)),t.setInput!==null?t.setInput(e,a,i,n,r):kd(e,a,r,i)}finally{ae(s)}}function zv(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)Ot(~o);else{let i=o,s=n[++r],a=n[++r];xg(s,i);let u=e[i];a(2,u)}}}finally{Ot(-1)}}function Qo(t,e,n,r,o,i,s,a,u,l,c){let d=e.blueprint.slice();return d[W]=o,d[_]=r|4|128|8|64,(l!==null||t&&t[_]&2048)&&(d[_]|=2048),Xc(d),d[J]=d[Dn]=t,d[ge]=n,d[Qe]=s||t&&t[Qe],d[k]=a||t&&t[k],d[cn]=u||t&&t[cn]||null,d[ye]=i,d[Fo]=_v(),d[Ve]=c,d[Kc]=l,d[pe]=e.type==2?t[pe]:d,d}function Sn(t,e,n,r,o){let i=t.data[e];if(i===null)i=qv(t,e,n,r,o),Mg()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=bg();i.injectorIndex=s===null?-1:s.injectorIndex}return Vt(i,!0),i}function qv(t,e,n,r,o){let i=nd(),s=Ca(),a=s?i:i&&i.parent,u=t.data[e]=Jv(t,a,n,e,r,o);return t.firstChild===null&&(t.firstChild=u),i!==null&&(s?i.child==null&&u.parent!==null&&(i.child=u):i.next===null&&(i.next=u,u.prev=i)),u}function bf(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 Cf(t,e,n,r,o){let i=Bt(),s=r&2;try{Ot(-1),s&&e.length>$&&_f(t,e,$,!1),Le(s?2:0,o),n(r,o)}finally{Ot(i),Le(s?3:1,o)}}function Ka(t,e,n){if(Ea(e)){let r=ae(null);try{let o=e.directiveStart,i=e.directiveEnd;for(let s=o;s<i;s++){let a=t.data[s];a.contentQueries&&a.contentQueries(1,n[s],s)}}finally{ae(r)}}}function Ya(t,e,n){td()&&(oD(t,e,n,De(n,e)),(n.flags&64)===64&&xf(t,e,n))}function Za(t,e,n=De){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 Sf(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=Ja(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function Ja(t,e,n,r,o,i,s,a,u,l,c){let d=$+r,f=d+o,h=Gv(d,f),p=typeof l=="function"?l():l;return h[I]={type:t,blueprint:h,template:n,queries:null,viewQuery:a,declTNode:e,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:f,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:u,consts:p,incompleteFirstPass:!1,ssrId:c}}function Gv(t,e){let n=[];for(let r=0;r<e;r++)n.push(r<t?null:Ce);return n}function Wv(t,e,n,r){let i=r.get(Xd,Jd)||n===un.ShadowDom,s=t.selectRootElement(e,i);return Qv(s),s}function Qv(t){Tf(t)}var Tf=()=>null;function Kv(t){pd(t)?vf(t):hy(t)}function Yv(){Tf=Kv}function Zv(t,e,n,r){let o=Of(e);o.push(n),t.firstCreatePass&&Ff(t).push(r,o.length-1)}function Jv(t,e,n,r,o,i){let s=e?e.injectorIndex:-1,a=0;return wn()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function pc(t,e,n,r,o){for(let i in e){if(!e.hasOwnProperty(i))continue;let s=e[i];if(s===void 0)continue;r??={};let a,u=st.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let l=i;if(o!==null){if(!o.hasOwnProperty(i))continue;l=o[i]}t===0?mc(r,n,l,a,u):mc(r,n,l,a)}return r}function mc(t,e,n,r,o){let i;t.hasOwnProperty(n)?(i=t[n]).push(e,r):i=t[n]=[e,r],o!==void 0&&i.push(o)}function Xv(t,e,n){let r=e.directiveStart,o=e.directiveEnd,i=t.data,s=e.attrs,a=[],u=null,l=null;for(let c=r;c<o;c++){let d=i[c],f=n?n.get(d):null,h=f?f.inputs:null,p=f?f.outputs:null;u=pc(0,d.inputs,c,u,h),l=pc(1,d.outputs,c,l,p);let m=u!==null&&s!==null&&!$c(e)?mD(u,c,s):null;a.push(m)}u!==null&&(u.hasOwnProperty("class")&&(e.flags|=8),u.hasOwnProperty("style")&&(e.flags|=16)),e.initialInputs=a,e.inputs=u,e.outputs=l}function eD(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function ir(t,e,n,r,o,i,s,a){let u=De(e,n),l=e.inputs,c;!a&&l!=null&&(c=l[r])?(eu(t,n,c,r,o),En(e)&&tD(n,e.index)):e.type&3?(r=eD(r),o=s!=null?s(o,e.value||"",r):o,i.setProperty(u,r,o)):e.type&12}function tD(t,e){let n=ht(e,t);n[_]&16||(n[_]|=64)}function Xa(t,e,n,r){if(td()){let o=r===null?null:{"":-1},i=sD(t,n),s,a;i===null?s=a=null:[s,a]=i,s!==null&&Mf(t,e,n,s,o,a),o&&aD(n,r,o)}n.mergedAttrs=Bn(n.mergedAttrs,n.attrs)}function Mf(t,e,n,r,o,i){for(let l=0;l<r.length;l++)Ss(mo(n,e),t,r[l].type);lD(n,t.data.length,r.length);for(let l=0;l<r.length;l++){let c=r[l];c.providersResolver&&c.providersResolver(c)}let s=!1,a=!1,u=bf(t,e,r.length,null);for(let l=0;l<r.length;l++){let c=r[l];n.mergedAttrs=Bn(n.mergedAttrs,c.hostAttrs),cD(t,n,e,u,c),uD(u,c,o),c.contentQueries!==null&&(n.flags|=4),(c.hostBindings!==null||c.hostAttrs!==null||c.hostVars!==0)&&(n.flags|=64);let d=c.type.prototype;!s&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((t.preOrderHooks??=[]).push(n.index),s=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(n.index),a=!0),u++}Xv(t,n,i)}function nD(t,e,n,r,o){let i=o.hostBindings;if(i){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~e.index;rD(s)!=a&&s.push(a),s.push(n,r,i)}}function rD(t){let e=t.length;for(;e>0;){let n=t[--e];if(typeof n=="number"&&n<0)return n}return 0}function oD(t,e,n,r){let o=n.directiveStart,i=n.directiveEnd;En(n)&&dD(e,n,t.data[o+n.componentOffset]),t.firstCreatePass||mo(n,e),ct(r,e);let s=n.initialInputs;for(let a=o;a<i;a++){let u=t.data[a],l=Rt(e,t,a,n);if(ct(l,e),s!==null&&pD(e,a-o,l,u,n,s),at(u)){let c=ht(n.index,e);c[ge]=Rt(e,t,a,n)}}}function xf(t,e,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Ag();try{Ot(i);for(let a=r;a<o;a++){let u=t.data[a],l=e[a];cs(a),(u.hostBindings!==null||u.hostVars!==0||u.hostAttrs!==null)&&iD(u,l)}}finally{Ot(-1),cs(s)}}function iD(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function sD(t,e){let n=t.directiveRegistry,r=null,o=null;if(n)for(let i=0;i<n.length;i++){let s=n[i];if(Hc(e,s.selectors,!1))if(r||(r=[]),at(s))if(s.findHostDirectiveDefs!==null){let a=[];o=o||new Map,s.findHostDirectiveDefs(s,a,o),r.unshift(...a,s);let u=a.length;Ls(t,e,u)}else r.unshift(s),Ls(t,e,0);else o=o||new Map,s.findHostDirectiveDefs?.(s,r,o),r.push(s)}return r===null?null:[r,o]}function Ls(t,e,n){e.componentOffset=n,(t.components??=[]).push(e.index)}function aD(t,e,n){if(e){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 uD(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;at(e)&&(n[""]=t)}}function lD(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function cD(t,e,n,r,o){t.data[r]=o;let i=o.factory||(o.factory=Ft(o.type,!0)),s=new Pt(i,at(o),se);t.blueprint[r]=s,n[r]=s,nD(t,e,r,bf(t,n,o.hostVars,Ce),o)}function dD(t,e,n){let r=De(e,t),o=Sf(n),i=t[Qe].rendererFactory,s=16;n.signals?s=4096:n.onPush&&(s=64);let a=Ko(t,Qo(t,o,null,s,r,e,null,i.createRenderer(r,n),null,null,null));t[e.index]=a}function fD(t,e,n,r,o,i){let s=De(t,e);hD(e[k],s,i,t.value,n,r,o)}function hD(t,e,n,r,o,i,s){if(i==null)t.removeAttribute(e,o,n);else{let a=s==null?ot(i):s(i,r||"",o);t.setAttribute(e,o,a,n)}}function pD(t,e,n,r,o,i){let s=i[e];if(s!==null)for(let a=0;a<s.length;){let u=s[a++],l=s[a++],c=s[a++],d=s[a++];If(r,n,u,l,c,d)}}function mD(t,e,n){let r=null,o=0;for(;o<n.length;){let i=n[o];if(i===0){o+=4;continue}else if(i===5){o+=2;continue}if(typeof i=="number")break;if(t.hasOwnProperty(i)){r===null&&(r=[]);let s=t[i];for(let a=0;a<s.length;a+=3)if(s[a]===e){r.push(i,s[a+1],s[a+2],n[o+1]);break}}o+=2}return r}function Af(t,e,n,r){return[t,!0,0,e,null,r,null,n,null,null]}function Nf(t,e){let n=t.contentQueries;if(n!==null){let r=ae(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];Ma(i),a.contentQueries(2,e[s],s)}}}finally{ae(r)}}}function Ko(t,e){return t[Hn]?t[Zl][Ne]=e:t[Hn]=e,t[Zl]=e,e}function js(t,e,n){Ma(0);let r=ae(null);try{e(t,n)}finally{ae(r)}}function Of(t){return t[$n]||(t[$n]=[])}function Ff(t){return t.cleanup||(t.cleanup=[])}function Pf(t,e){let n=t[cn],r=n?n.get(lt,null):null;r&&r.handleError(e)}function eu(t,e,n,r,o){for(let i=0;i<n.length;){let s=n[i++],a=n[i++],u=n[i++],l=e[s],c=t.data[s];If(c,l,r,a,u,o)}}function gD(t,e,n){let r=Zc(e,t);Tv(t[k],r,n)}function yD(t,e){let n=ht(e,t),r=n[I];vD(r,n);let o=n[W];o!==null&&n[Ve]===null&&(n[Ve]=ka(o,n[cn])),tu(r,n,n[ge])}function vD(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}function tu(t,e,n){xa(e);try{let r=t.viewQuery;r!==null&&js(1,r,n);let o=t.template;o!==null&&Cf(t,e,o,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),e[Ke]?.finishViewCreation(t),t.staticContentQueries&&Nf(t,e),t.staticViewQueries&&js(2,t.viewQuery,n);let i=t.components;i!==null&&DD(e,i)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),r}finally{e[_]&=-5,Aa()}}function DD(t,e){for(let n=0;n<e.length;n++)yD(t,e[n])}function Rf(t,e,n,r){let o=e.tView,s=t[_]&4096?4096:16,a=Qo(t,o,n,s,null,e,null,null,null,r?.injector??null,r?.dehydratedView??null),u=t[e.index];a[nr]=u;let l=t[Ke];return l!==null&&(a[Ke]=l.createEmbeddedView(o)),tu(o,a,n),a}function ED(t,e){let n=re+e;if(n<t.length)return t[n]}function Vs(t,e){return!e||e.firstChild===null||so(t)}function kf(t,e,n,r=!0){let o=e[I];if(Nv(o,e,t,n),r){let s=ks(n,t),a=e[k],u=Wa(a,t[Ye]);u!==null&&xv(o,t[ye],a,e,u,s)}let i=e[Ve];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function wD(t,e){let n=yo(t,e);return n!==void 0&&qa(n[I],n),n}function Jn(t,e,n,r,o=!1){for(;n!==null;){let i=e[n.index];i!==null&&r.push(Z(i)),ve(i)&&Lf(i,r);let s=n.type;if(s&8)Jn(t,e,n.child,r);else if(s&32){let a=Ua(n,e),u;for(;u=a();)r.push(u)}else if(s&16){let a=gf(e,n);if(Array.isArray(a))r.push(...a);else{let u=qn(e[pe]);Jn(u[I],u,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function Lf(t,e){for(let n=re;n<t.length;n++){let r=t[n],o=r[I].firstChild;o!==null&&Jn(r[I],r,o,e)}t[Ye]!==t[W]&&e.push(t[Ye])}var jf=[];function _D(t){return t[Nt]??ID(t)}function ID(t){let e=jf.pop()??Object.create(CD);return e.lView=t,e}function bD(t){t.lView[Nt]!==t&&(t.lView=null,jf.push(t))}var CD=An(Ie({},fl),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{zn(t.lView)},consumerOnSignalRead(){this.lView[Nt]=this}});function Vf(t){return $f(t[Hn])}function Bf(t){return $f(t[Ne])}function $f(t){for(;t!==null&&!ve(t);)t=t[Ne];return t}var Hf=100;function Uf(t,e=!0,n=0){let r=t[Qe],o=r.rendererFactory,i=!1;i||o.begin?.();try{SD(t,n)}catch(s){throw e&&Pf(t,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function SD(t,e){Bs(t,e);let n=0;for(;ba(t);){if(n===Hf)throw new g(103,!1);n++,Bs(t,1)}}function TD(t,e,n,r){let o=e[_];if((o&256)===256)return;let i=!1;!i&&e[Qe].inlineEffectRunner?.flush(),xa(e);let s=null,a=null;!i&&MD(t)&&(a=_D(e),s=hl(a));try{Xc(e),Tg(t.bindingStartIndex),n!==null&&Cf(t,e,n,2,r);let u=(o&3)===3;if(!i)if(u){let d=t.preOrderCheckHooks;d!==null&&Jr(e,d,null)}else{let d=t.preOrderHooks;d!==null&&Xr(e,d,0,null),Qi(e,0)}if(xD(e),zf(e,0),t.contentQueries!==null&&Nf(t,e),!i)if(u){let d=t.contentCheckHooks;d!==null&&Jr(e,d)}else{let d=t.contentHooks;d!==null&&Xr(e,d,1),Qi(e,1)}zv(t,e);let l=t.components;l!==null&&Gf(e,l,0);let c=t.viewQuery;if(c!==null&&js(2,c,r),!i)if(u){let d=t.viewCheckHooks;d!==null&&Jr(e,d)}else{let d=t.viewHooks;d!==null&&Xr(e,d,2),Qi(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[qi]){for(let d of e[qi])d();e[qi]=null}i||(e[_]&=-73)}catch(u){throw zn(e),u}finally{a!==null&&(pl(a,s),bD(a)),Aa()}}function MD(t){return t.type!==2}function zf(t,e){for(let n=Vf(t);n!==null;n=Bf(n))for(let r=re;r<n.length;r++){let o=n[r];qf(o,e)}}function xD(t){for(let e=Vf(t);e!==null;e=Bf(e)){if(!(e[_]&Da.HasTransplantedViews))continue;let n=e[dn];for(let r=0;r<n.length;r++){let o=n[r],i=o[J];mg(o)}}}function AD(t,e,n){let r=ht(e,t);qf(r,n)}function qf(t,e){Ia(t)&&Bs(t,e)}function Bs(t,e){let r=t[I],o=t[_],i=t[Nt],s=!!(e===0&&o&16);if(s||=!!(o&64&&e===0),s||=!!(o&1024),s||=!!(i?.dirty&&Ii(i)),i&&(i.dirty=!1),t[_]&=-9217,s)TD(r,t,r.template,t[ge]);else if(o&8192){zf(t,1);let a=r.components;a!==null&&Gf(t,a,1)}}function Gf(t,e,n){for(let r=0;r<e.length;r++)AD(t,e[r],n)}function nu(t){for(t[Qe].changeDetectionScheduler?.notify();t;){t[_]|=64;let e=qn(t);if(wa(t)&&!e)return t;t=e}return null}var kt=class{get rootNodes(){let e=this._lView,n=e[I];return Jn(n,e,n.firstChild,[])}constructor(e,n,r=!0){this._lView=e,this._cdRefInjectingView=n,this.notifyErrorHandler=r,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[ge]}set context(e){this._lView[ge]=e}get destroyed(){return(this._lView[_]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[J];if(ve(e)){let n=e[oo],r=n?n.indexOf(this):-1;r>-1&&(yo(e,r),io(n,r))}this._attachedToViewContainer=!1}qa(this._lView[I],this._lView)}onDestroy(e){ed(this._lView,e)}markForCheck(){nu(this._cdRefInjectingView||this._lView)}detach(){this._lView[_]&=-129}reattach(){ls(this._lView),this._lView[_]|=128}detectChanges(){this._lView[_]|=1024,Uf(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new g(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,ff(this._lView[I],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new g(902,!1);this._appRef=e,ls(this._lView)}},dt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=FD;let t=e;return t})(),ND=dt,OD=class extends ND{constructor(e,n,r){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,n){return this.createEmbeddedViewImpl(e,n)}createEmbeddedViewImpl(e,n,r){let o=Rf(this._declarationLView,this._declarationTContainer,e,{injector:n,dehydratedView:r});return new kt(o)}};function FD(){return Yo(ie(),x())}function Yo(t,e){return t.type&4?new OD(e,t,bn(t,e)):null}var $s="<-- AT THIS LOCATION";function PD(t){switch(t){case 4:return"view container";case 2:return"element";case 8:return"ng-container";case 32:return"icu";case 64:return"i18n";case 16:return"projection";case 1:return"text";default:return"<unknown>"}}function RD(t,e){let n=`During serialization, Angular was unable to find an element in the DOM:
`,r=`${BD(t,e,!1)}
`,o=HD();throw new g(-502,n+r+o)}function kD(t){let e="During serialization, Angular detected DOM nodes that were created outside of Angular context and provided as projectable nodes (likely via `ViewContainerRef.createComponent` or `createComponent` APIs). Hydration is not supported for such cases, consider refactoring the code to avoid this pattern or using `ngSkipHydration` on the host element of the component.\n\n",n=`${$D(t)}
`,r=e+n+UD();return new g(-503,r)}function LD(t){let e=[];if(t.attrs)for(let n=0;n<t.attrs.length;){let r=t.attrs[n++];if(typeof r=="number")break;let o=t.attrs[n++];e.push(`${r}="${Do(o)}"`)}return e.join(" ")}var jD=new Set(["ngh","ng-version","ng-server-context"]);function VD(t){let e=[];for(let n=0;n<t.attributes.length;n++){let r=t.attributes[n];jD.has(r.name)||e.push(`${r.name}="${Do(r.value)}"`)}return e.join(" ")}function Ji(t,e="\u2026"){switch(t.type){case 1:return`#text${t.value?`(${t.value})`:""}`;case 2:let r=LD(t),o=t.value.toLowerCase();return`<${o}${r?" "+r:""}>${e}</${o}>`;case 8:return"<!-- ng-container -->";case 4:return"<!-- container -->";default:return`#node(${PD(t.type)})`}}function to(t,e="\u2026"){let n=t;switch(n.nodeType){case Node.ELEMENT_NODE:let r=n.tagName.toLowerCase(),o=VD(n);return`<${r}${o?" "+o:""}>${e}</${r}>`;case Node.TEXT_NODE:let i=n.textContent?Do(n.textContent):"";return`#text${i?`(${i})`:""}`;case Node.COMMENT_NODE:return`<!-- ${Do(n.textContent??"")} -->`;default:return`#node(${n.nodeType})`}}function BD(t,e,n){let r=" ",o="";e.prev?(o+=r+`\u2026
`,o+=r+Ji(e.prev)+`
`):e.type&&e.type&12&&(o+=r+`\u2026
`),n?(o+=r+Ji(e)+`
`,o+=r+`<!-- container --> ${$s}
`):o+=r+Ji(e)+` ${$s}
`,o+=r+`\u2026
`;let i=e.type?Ga(t[I],e,t):null;return i&&(o=to(i,`
`+o)),o}function $D(t){let e=" ",n="",r=t;return r.previousSibling&&(n+=e+`\u2026
`,n+=e+to(r.previousSibling)+`
`),n+=e+to(r)+` ${$s}
`,t.nextSibling&&(n+=e+`\u2026
`),t.parentNode&&(n=to(r.parentNode,`
`+n)),n}function HD(t){return`To fix this problem:
* check ${t?`the "${t}"`:"corresponding"} component for hydration-related issues
* check to see if your template has valid HTML structure
* or skip hydration by adding the \`ngSkipHydration\` attribute to its host node in a template
`}function UD(){return`Note: attributes are only displayed to better represent the DOM but have no effect on hydration mismatches.
`}function zD(t){return t.replace(/\s+/gm,"")}function Do(t,e=50){return t?(t=zD(t),t.length>e?`${t.substring(0,e-1)}\u2026`:t):""}function Wf(t){let e=t[Un]??[],r=t[J][k];for(let o of e)qD(o,r);t[Un]=le}function qD(t,e){let n=0,r=t.firstChild;if(r){let o=t.data[hn];for(;n<o;){let i=r.nextSibling;yf(e,r,!1),r=i,n++}}}function Qf(t){Wf(t);for(let e=re;e<t.length;e++)Eo(t[e])}function Eo(t){let e=t[I];for(let n=$;n<e.bindingStartIndex;n++)if(ve(t[n])){let r=t[n];Qf(r)}else Ge(t[n])&&Eo(t[n])}function GD(t){let e=t._views;for(let n of e){let r=Cd(n);if(r!==null&&r[W]!==null)if(Ge(r))Eo(r);else{let o=r[W];Eo(o),Qf(r)}}}var WD=new RegExp(`^(\\d+)*(${Pa}|${Fa})*(.*)`);function QD(t,e){let n=[t];for(let r of e){let o=n.length-1;if(o>0&&n[o-1]===r){let i=n[o]||1;n[o]=i+1}else n.push(r,"")}return n.join("")}function KD(t){let e=t.match(WD),[n,r,o,i]=e,s=r?parseInt(r,10):o,a=[];for(let[u,l,c]of i.matchAll(/(f|n)(\d*)/g)){let d=parseInt(c,10)||1;a.push(l,d)}return[s,...a]}function YD(t){return!t.prev&&t.parent?.type===8}function Xi(t){return t.index-$}function Xn(t,e){return!(t.type&16)&&!!e[t.index]&&!Z(e[t.index])?.isConnected}function Zo(t,e,n,r){let o=null,i=Xi(r),s=t.data[Ds];if(s?.[i])o=JD(s[i],n);else if(e.firstChild===r)o=t.firstChild;else{let a=r.prev===null,u=r.prev??r.parent;if(YD(r)){let l=Xi(r.parent);o=Es(t,l)}else{let l=De(u,n);if(a)o=l.firstChild;else{let c=Xi(u),d=Es(t,c);if(u.type===2&&d){let h=La(t,c)+1;o=Jo(h,d)}else o=l.nextSibling}}}return o}function Jo(t,e){let n=e;for(let r=0;r<t;r++)n=n.nextSibling;return n}function ZD(t,e){let n=t;for(let r=0;r<e.length;r+=2){let o=e[r],i=e[r+1];for(let s=0;s<i;s++)switch(o){case Qn.FirstChild:n=n.firstChild;break;case Qn.NextSibling:n=n.nextSibling;break}}return n}function JD(t,e){let[n,...r]=KD(t),o;if(n===Fa)o=e[pe][W];else if(n===Pa)o=Cv(e[pe][W]);else{let i=Number(n);o=Z(e[i+$])}return ZD(o,r)}function Hs(t,e){if(t===e)return[];if(t.parentElement==null||e.parentElement==null)return null;if(t.parentElement===e.parentElement)return XD(t,e);{let n=e.parentElement,r=Hs(t,n),o=Hs(n.firstChild,e);return!r||!o?null:[...r,Qn.FirstChild,...o]}}function XD(t,e){let n=[],r=null;for(r=t;r!=null&&r!==e;r=r.nextSibling)n.push(Qn.NextSibling);return r==null?null:n}function gc(t,e,n){let r=Hs(t,e);return r===null?null:QD(n,r)}function eE(t,e){let n=t.parent,r,o,i;for(;n!==null&&Xn(n,e);)n=n.parent;n===null||!(n.type&3)?(r=i=Fa,o=e[pe][W]):(r=n.index,o=Z(e[r]),i=ot(r-$));let s=Z(e[t.index]);if(t.type&12){let u=Vn(e,t);u&&(s=u)}let a=gc(o,s,i);if(a===null&&o!==s){let u=o.ownerDocument.body;if(a=gc(u,s,Pa),a===null)throw RD(e,t)}return a}function tE(t,e){let n=[];for(let r of e)for(let o=0;o<(r[lo]??1);o++){let i={data:r,firstChild:null};r[hn]>0&&(i.firstChild=t,t=Jo(r[hn],t)),n.push(i)}return[t,n]}var Kf=()=>null;function nE(t,e){let n=t[Un];return!e||n===null||n.length===0?null:n[0].data[vs]===e?n.shift():(Wf(t),null)}function rE(){Kf=nE}function Us(t,e){return Kf(t,e)}var zs=class{},qs=class{},wo=class{};function oE(t){let e=Error(`No component factory found for ${de(t)}.`);return e[iE]=t,e}var iE="ngComponent";var Gs=class{resolveComponentFactory(e){throw oE(e)}},Xo=(()=>{let e=class e{};e.NULL=new Gs;let t=e;return t})(),Ws=class{},ru=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>sE();let t=e;return t})();function sE(){let t=x(),e=ie(),n=ht(e.index,t);return(Ge(n)?n:t)[k]}var aE=(()=>{let e=class e{};e.\u0275prov=V({token:e,providedIn:"root",factory:()=>null});let t=e;return t})(),es={};function uE(t){return typeof t=="function"&&t[_i]!==void 0}function Yf(t){return uE(t)&&typeof t.set=="function"}function Zf(t){return cE(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function lE(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 cE(t){return t!==null&&(typeof t=="function"||typeof t=="object")}var Qs=class{constructor(){}supports(e){return Zf(e)}create(e){return new Ks(e)}},dE=(t,e)=>e,Ks=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||dE}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<yc(r,o,i)?n:r,a=yc(s,o,i),u=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,c=u-o;if(l!=c){for(let f=0;f<l;f++){let h=f<i.length?i[f]:i[f]=0,p=h+f;c<=p&&p<l&&(i[f]=h+1)}let d=s.previousIndex;i[d]=c-l}}a!==u&&e(s,a,u)}}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=[]),!Zf(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,lE(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 Ys(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 _o),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 _o),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}},Ys=class{constructor(e,n){this.item=e,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},Zs=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,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}},_o=class{constructor(){this.map=new Map}put(e){let n=e.trackById,r=this.map.get(n);r||(r=new Zs,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 yc(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 vc(){return new ou([new Qs])}var ou=(()=>{let e=class e{constructor(r){this.factories=r}static create(r,o){if(o!=null){let i=o.factories.slice();r=r.concat(i)}return new e(r)}static extend(r){return{provide:e,useFactory:o=>e.create(r,o||vc()),deps:[[e,new yy,new gy]]}}find(r){let o=this.factories.find(i=>i.supports(r));if(o!=null)return o;throw new g(901,!1)}};e.\u0275prov=V({token:e,providedIn:"root",factory:vc});let t=e;return t})();var fE=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=hE;let t=e;return t})();function hE(t){return pE(ie(),x(),(t&16)===16)}function pE(t,e,n){if(En(t)&&!n){let r=ht(t.index,e);return new kt(r,r)}else if(t.type&47){let r=e[pe];return new kt(r,e)}return null}var Jf=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=mE,e.__NG_ENV_ID__=r=>r;let t=e;return t})(),Js=class extends Jf{constructor(e){super(),this._lView=e}onDestroy(e){return ed(this._lView,e),()=>yg(this._lView,e)}};function mE(){return new Js(x())}var Dc=new Set;function sr(t){Dc.has(t)||(Dc.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function Ec(...t){}function gE(){let t=typeof qe.requestAnimationFrame=="function",e=qe[t?"requestAnimationFrame":"setTimeout"],n=qe[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&e&&n){let r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r);let o=n[Zone.__symbol__("OriginalDelegate")];o&&(n=o)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:n}}var oe=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ae(!1),this.onMicrotaskEmpty=new Ae(!1),this.onStable=new Ae(!1),this.onError=new Ae(!1),typeof Zone>"u")throw new g(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=gE().nativeRequestAnimationFrame,DE(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!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,yE,Ec,Ec);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)}},yE={};function iu(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 vE(t){t.isCheckStableRunning||t.lastRequestAnimationFrameId!==-1||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(qe,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Xs(t),t.isCheckStableRunning=!0,iu(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Xs(t))}function DE(t){let e=()=>{vE(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{if(EE(a))return n.invokeTask(o,i,s,a);try{return wc(t),n.invokeTask(o,i,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&i.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),_c(t)}},onInvoke:(n,r,o,i,s,a,u)=>{try{return wc(t),n.invoke(o,i,s,a,u)}finally{t.shouldCoalesceRunChangeDetection&&e(),_c(t)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&(i.change=="microTask"?(t._hasPendingMicrotasks=i.microTask,Xs(t),iu(t)):i.change=="macroTask"&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}function Xs(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.lastRequestAnimationFrameId!==-1?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function wc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function _c(t){t._nesting--,iu(t)}var ea=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ae,this.onMicrotaskEmpty=new Ae,this.onStable=new Ae,this.onError=new Ae}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 EE(t){return!Array.isArray(t)||t.length!==1?!1:t[0].data?.__ignore_ng_zone__===!0}function wE(t="zone.js",e){return t==="noop"?new ea:t==="zone.js"?new oe(e):t}var on=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(on||{}),_E={destroy(){}};function IE(t,e){!e&&xy(IE);let n=e?.injector??P(mt);if(!kn(n))return _E;sr("NgAfterNextRender");let r=n.get(su),o=r.handler??=new na,i=e?.phase??on.MixedReadWrite,s=()=>{o.unregister(u),a()},a=n.get(Jf).onDestroy(s),u=new ta(n,i,()=>{s(),t()});return o.register(u),{destroy:s}}var ta=class{constructor(e,n,r){this.phase=n,this.callbackFn=r,this.zone=e.get(oe),this.errorHandler=e.get(lt,null,{optional:!0})}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(e){this.errorHandler?.handleError(e)}}},na=class{constructor(){this.executingCallbacks=!1,this.buckets={[on.EarlyRead]:new Set,[on.Write]:new Set,[on.MixedReadWrite]:new Set,[on.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let n of e)n.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},su=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){let r=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let o of r)o();this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=V({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function Io(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=as(o,a);else if(i==2){let u=a,l=e[++s];r=as(r,u+": "+l+";")}}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=o:t.classesWithoutHost=o}var bo=class extends Xo{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let n=We(e);return new mn(n,this.ngModule)}};function Ic(t){let e=[];for(let n in t){if(!t.hasOwnProperty(n))continue;let r=t[n];r!==void 0&&e.push({propName:Array.isArray(r)?r[0]:r,templateName:n})}return e}function bE(t){let e=t.toLowerCase();return e==="svg"?lg:e==="math"?cg:null}var ra=class{constructor(e,n){this.injector=e,this.parentInjector=n}get(e,n,r){r=Bo(r);let o=this.injector.get(e,es,r);return o!==es||n===es?o:this.parentInjector.get(e,n,r)}},mn=class extends wo{get inputs(){let e=this.componentDef,n=e.inputTransforms,r=Ic(e.inputs);if(n!==null)for(let o of r)n.hasOwnProperty(o.propName)&&(o.transform=n[o.propName]);return r}get outputs(){return Ic(this.componentDef.outputs)}constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=eg(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!n}create(e,n,r,o){o=o||this.ngModule;let i=o instanceof ut?o:o?.injector;i&&this.componentDef.getStandaloneInjector!==null&&(i=this.componentDef.getStandaloneInjector(i)||i);let s=i?new ra(e,i):e,a=s.get(Ws,null);if(a===null)throw new g(407,!1);let u=s.get(aE,null),l=s.get(su,null),c=s.get(zs,null),d={rendererFactory:a,sanitizer:u,inlineEffectRunner:null,afterRenderEventManager:l,changeDetectionScheduler:c},f=a.createRenderer(null,this.componentDef),h=this.componentDef.selectors[0][0]||"div",p=r?Wv(f,r,this.componentDef.encapsulation,s):za(f,h,bE(h)),m=512;this.componentDef.signals?m|=4096:this.componentDef.onPush||(m|=16);let b=null;p!==null&&(b=ka(p,s,!0));let w=Ja(0,null,null,1,0,null,null,null,null,null,null),A=Qo(null,w,null,m,null,null,d,f,s,null,b);xa(A);let H,L;try{let X=this.componentDef,q,G=null;X.findHostDirectiveDefs?(q=[],G=new Map,X.findHostDirectiveDefs(X,q,G),q.push(X)):q=[X];let te=CE(A,p),He=SE(te,p,X,q,A,d,f);L=_a(w,$),p&&xE(f,X,p,r),n!==void 0&&AE(L,this.ngContentSelectors,n),H=ME(He,X,q,G,A,[NE]),tu(w,A,null)}finally{Aa()}return new oa(this.componentType,H,bn(L,A),A,L)}},oa=class extends qs{constructor(e,n,r,o,i){super(),this.location=r,this._rootLView=o,this._tNode=i,this.previousInputValues=null,this.instance=n,this.hostView=this.changeDetectorRef=new kt(o,void 0,!1),this.componentType=e}setInput(e,n){let r=this._tNode.inputs,o;if(r!==null&&(o=r[e])){if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),n))return;let i=this._rootLView;eu(i[I],i,o,e,n),this.previousInputValues.set(e,n);let s=ht(this._tNode.index,i);nu(s)}}get injector(){return new At(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function CE(t,e){let n=t[I],r=$;return t[r]=e,Sn(n,r,2,"#host",null)}function SE(t,e,n,r,o,i,s){let a=o[I];TE(r,t,e,s);let u=null;e!==null&&(u=ka(e,o[cn]));let l=i.rendererFactory.createRenderer(e,n),c=16;n.signals?c=4096:n.onPush&&(c=64);let d=Qo(o,Sf(n),null,c,o[t.index],t,i,l,null,null,u);return a.firstCreatePass&&Ls(a,t,r.length-1),Ko(o,d),o[t.index]=d}function TE(t,e,n,r){for(let o of t)e.mergedAttrs=Bn(e.mergedAttrs,o.hostAttrs);e.mergedAttrs!==null&&(Io(e,e.mergedAttrs,!0),n!==null&&wf(r,n,e))}function ME(t,e,n,r,o,i){let s=ie(),a=o[I],u=De(s,o);Mf(a,o,s,n,null,r);for(let c=0;c<n.length;c++){let d=s.directiveStart+c,f=Rt(o,a,d,s);ct(f,o)}xf(a,o,s),u&&ct(u,o);let l=Rt(o,a,s.directiveStart+s.componentOffset,s);if(t[ge]=o[ge]=l,i!==null)for(let c of i)c(l,e);return Ka(a,s,t),l}function xE(t,e,n,r){if(r)us(t,n,["ng-version","17.2.1"]);else{let{attrs:o,classes:i}=tg(e.selectors[0]);o&&us(t,n,o),i&&i.length>0&&Ef(t,n,i.join(" "))}}function AE(t,e,n){let r=t.projection=[];for(let o=0;o<e.length;o++){let i=n[o];r.push(i!=null?Array.from(i):null)}}function NE(){let t=ie();zo(x()[I],t)}var gt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=OE;let t=e;return t})();function OE(){let t=ie();return eh(t,x())}var FE=gt,Xf=class extends FE{constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return bn(this._hostTNode,this._hostLView)}get injector(){return new At(this._hostTNode,this._hostLView)}get parentInjector(){let e=$a(this._hostTNode,this._hostLView);if($d(e)){let n=ho(e,this._hostLView),r=fo(e),o=n[I].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=bc(this._lContainer);return n!==null&&n[e]||null}get length(){return this._lContainer.length-re}createEmbeddedView(e,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Us(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Vs(this._hostTNode,s)),a}createComponent(e,n,r,o,i){let s=e&&!Ny(e),a;if(s)a=n;else{let p=n||{};a=p.index,r=p.injector,o=p.projectableNodes,i=p.environmentInjector||p.ngModuleRef}let u=s?e:new mn(We(e)),l=r||this.parentInjector;if(!i&&u.ngModule==null){let m=(s?l:this.parentInjector).get(ut,null);m&&(i=m)}let c=We(u.componentType??{}),d=Us(this._lContainer,c?.id??null),f=d?.firstChild??null,h=u.create(l,o,f,i);return this.insertImpl(h.hostView,a,Vs(this._hostTNode,d)),h}insert(e,n){return this.insertImpl(e,n,!0)}insertImpl(e,n,r){let o=e._lView;if(pg(o)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let u=o[J],l=new Xf(u,u[ye],u[J]);l.detach(l.indexOf(e))}}let i=this._adjustIndex(n),s=this._lContainer;return kf(s,o,i,r),e.attachToViewContainerRef(),fd(ts(s),i,e),e}move(e,n){return this.insert(e,n)}indexOf(e){let n=bc(this._lContainer);return n!==null?n.indexOf(e):-1}remove(e){let n=this._adjustIndex(e,-1),r=yo(this._lContainer,n);r&&(io(ts(this._lContainer),n),qa(r[I],r))}detach(e){let n=this._adjustIndex(e,-1),r=yo(this._lContainer,n);return r&&io(ts(this._lContainer),n)!=null?new kt(r):null}_adjustIndex(e,n=0){return e??this.length+n}};function bc(t){return t[oo]}function ts(t){return t[oo]||(t[oo]=[])}function eh(t,e){let n,r=e[t.index];return ve(r)?n=r:(n=Af(r,e,null,t),e[t.index]=n,Ko(e,n)),th(n,e,t,r),new Xf(n,t,e)}function PE(t,e){let n=t[k],r=n.createComment(""),o=De(e,t),i=Wa(n,o);return vo(n,i,r,Lv(n,o),!1),r}var th=nh,au=()=>!1;function RE(t,e,n){return au(t,e,n)}function nh(t,e,n,r){if(t[Ye])return;let o;n.type&8?o=Z(r):o=PE(e,n),t[Ye]=o}function kE(t,e,n){if(t[Ye]&&t[Un])return!0;let r=n[Ve],o=e.index-$;if(!r||ao(e)||Uo(r,o))return!1;let s=Es(r,o),a=r.data[Kn]?.[o],[u,l]=tE(s,a);return t[Ye]=u,t[Un]=l,!0}function LE(t,e,n,r){au(t,n,e)||nh(t,e,n,r)}function jE(){th=LE,au=kE}var ia=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},sa=class t{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++)uu(e,n).matches!==null&&this.queries[n].setDirty()}},Co=class{constructor(e,n,r=null){this.flags=n,this.read=r,typeof e=="string"?this.predicate=GE(e):this.predicate=e}},aa=class t{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)}},ua=class t{constructor(e,n=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,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,VE(n,i)),this.matchTNodeWithReadOption(e,n,eo(n,e,i,!1,!1))}else r===dt?n.type&4&&this.matchTNodeWithReadOption(e,n,-1):this.matchTNodeWithReadOption(e,n,eo(n,e,r,!1,!1))}matchTNodeWithReadOption(e,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===$t||o===gt||o===dt&&n.type&4)this.addMatch(n.index,-2);else{let i=eo(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 VE(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 BE(t,e){return t.type&11?bn(t,e):t.type&4?Yo(t,e):null}function $E(t,e,n,r){return n===-1?BE(e,t):n===-2?HE(t,e,r):Rt(t,t[I],n,e)}function HE(t,e,n){if(n===$t)return bn(e,t);if(n===dt)return Yo(e,t);if(n===gt)return eh(e,t)}function rh(t,e,n,r){let o=e[Ke].queries[r];if(o.matches===null){let i=t.data,s=n.matches,a=[];for(let u=0;s!==null&&u<s.length;u+=2){let l=s[u];if(l<0)a.push(null);else{let c=i[l];a.push($E(e,c,s[u+1],n.metadata.read))}}o.matches=a}return o.matches}function la(t,e,n,r){let o=t.queries.getByIndex(n),i=o.matches;if(i!==null){let s=rh(t,e,o,n);for(let a=0;a<i.length;a+=2){let u=i[a];if(u>0)r.push(s[a/2]);else{let l=i[a+1],c=e[-u];for(let d=re;d<c.length;d++){let f=c[d];f[nr]===f[J]&&la(f[I],f,l,r)}if(c[dn]!==null){let d=c[dn];for(let f=0;f<d.length;f++){let h=d[f];la(h[I],h,l,r)}}}}}return r}function UE(t,e){return t[Ke].queries[e].queryList}function oh(t,e,n){let r=new ds((n&4)===4);return Zv(t,e,r,r.destroy),(e[Ke]??=new sa).queries.push(new ia(r))-1}function zE(t,e,n){let r=U();return r.firstCreatePass&&(ih(r,new Co(t,e,n),-1),(e&2)===2&&(r.staticViewQueries=!0)),oh(r,x(),e)}function qE(t,e,n,r){let o=U();if(o.firstCreatePass){let i=ie();ih(o,new Co(e,n,r),i.index),WE(o,t),(n&2)===2&&(o.staticContentQueries=!0)}return oh(o,x(),n)}function GE(t){return t.split(",").map(e=>e.trim())}function ih(t,e,n){t.queries===null&&(t.queries=new aa),t.queries.track(new ua(e,n))}function WE(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 uu(t,e){return t.queries.getByIndex(e)}function QE(t,e){let n=t[I],r=uu(n,e);return r.crossesNgTemplate?la(n,t,e,[]):rh(n,t,r,e)}function KE(t){let e=[],n=new Map;function r(o){let i=n.get(o);if(!i){let s=t(o);n.set(o,i=s.then(XE))}return i}return So.forEach((o,i)=>{let s=[];o.templateUrl&&s.push(r(o.templateUrl).then(l=>{o.template=l}));let a=typeof o.styles=="string"?[o.styles]:o.styles||[];if(o.styles=a,o.styleUrl&&o.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(o.styleUrls?.length){let l=o.styles.length,c=o.styleUrls;o.styleUrls.forEach((d,f)=>{a.push(""),s.push(r(d).then(h=>{a[l+f]=h,c.splice(c.indexOf(d),1),c.length==0&&(o.styleUrls=void 0)}))})}else o.styleUrl&&s.push(r(o.styleUrl).then(l=>{a.push(l),o.styleUrl=void 0}));let u=Promise.all(s).then(()=>ew(i));e.push(u)}),ZE(),Promise.all(e).then(()=>{})}var So=new Map,YE=new Set;function ZE(){let t=So;return So=new Map,t}function JE(){return So.size===0}function XE(t){return typeof t=="string"?t:t.text()}function ew(t){YE.delete(t)}function tw(t){return Object.getPrototypeOf(t.prototype).constructor}function nw(t){let e=tw(t.type),n=!0,r=[t];for(;e;){let o;if(at(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=Gr(t.inputs),s.inputTransforms=Gr(t.inputTransforms),s.declaredInputs=Gr(t.declaredInputs),s.outputs=Gr(t.outputs);let a=o.hostBindings;a&&aw(t,a);let u=o.viewQuery,l=o.contentQueries;if(u&&iw(t,u),l&&sw(t,l),rw(t,o),Vm(t.outputs,o.outputs),at(o)&&o.data.animation){let c=t.data;c.animation=(c.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===nw&&(n=!1)}}e=Object.getPrototypeOf(e)}ow(r)}function rw(t,e){for(let n in e.inputs){if(!e.inputs.hasOwnProperty(n)||t.inputs.hasOwnProperty(n))continue;let r=e.inputs[n];if(r!==void 0&&(t.inputs[n]=r,t.declaredInputs[n]=e.declaredInputs[n],e.inputTransforms!==null)){let o=Array.isArray(r)?r[0]:r;if(!e.inputTransforms.hasOwnProperty(o))continue;t.inputTransforms??={},t.inputTransforms[o]=e.inputTransforms[o]}}}function ow(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 Gr(t){return t===ln?{}:t===le?[]:t}function iw(t,e){let n=t.viewQuery;n?t.viewQuery=(r,o)=>{e(r,o),n(r,o)}:t.viewQuery=e}function sw(t,e){let n=t.contentQueries;n?t.contentQueries=(r,o,i)=>{e(r,o,i),n(r,o,i)}:t.contentQueries=e}function aw(t,e){let n=t.hostBindings;n?t.hostBindings=(r,o)=>{e(r,o),n(r,o)}:t.hostBindings=e}function uw(t){let e=t.inputConfig,n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r];Array.isArray(o)&&o[3]&&(n[r]=o[3])}t.inputTransforms=n}var ft=class{},ca=class{};var To=class extends ft{constructor(e,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new bo(this);let o=Gc(e);this._bootstrapComponents=lf(o.bootstrap),this._r3Injector=Yd(e,n,[{provide:ft,useValue:this},{provide:Xo,useValue:this.componentFactoryResolver},...r],de(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},Mo=class extends ca{constructor(e){super(),this.moduleType=e}create(e){return new To(this.moduleType,e,[])}};function lw(t,e,n){return new To(t,e,n)}var xo=class extends ft{constructor(e){super(),this.componentFactoryResolver=new bo(this),this.instance=null;let n=new Zn([...e.providers,{provide:ft,useValue:this},{provide:Xo,useValue:this.componentFactoryResolver}],e.parent||Va(),e.debugName,new Set(["environment"]));this.injector=n,e.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function cw(t,e,n=null){return new xo({providers:t,parent:e,debugName:n,runEnvironmentInitializers:!0}).injector}var sh=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Nn(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function ah(t,e,n){return t[e]=n}function be(t,e,n){let r=t[e];return Object.is(r,n)?!1:(t[e]=n,!0)}function uh(t,e,n,r){let o=be(t,e,n);return be(t,e+1,r)||o}function dw(t,e,n,r,o){let i=uh(t,e,n,r);return be(t,e+2,o)||i}function fw(t,e,n,r,o,i,s,a,u){let l=e.consts,c=Sn(e,t,4,s||null,fn(l,a));Xa(e,n,c,fn(l,u)),zo(e,c);let d=c.tView=Ja(2,c,r,o,i,e.directiveRegistry,e.pipeRegistry,null,e.schemas,l,null);return e.queries!==null&&(e.queries.template(e,c),d.queries=e.queries.embeddedTView(c)),c}function hw(t,e,n,r,o,i,s,a){let u=x(),l=U(),c=t+$,d=l.firstCreatePass?fw(c,l,u,e,n,r,o,i,s):l.data[c];Vt(d,!1);let f=lh(l,u,d,t);Ro()&&Go(l,u,f,d),ct(f,u);let h=Af(f,u,f,d);return u[c]=h,Ko(u,h),RE(h,d,u),Po(d)&&Ya(l,u,d),s!=null&&Za(u,d,a),hw}var lh=ch;function ch(t,e,n,r){return pt(!0),e[k].createComment("")}function pw(t,e,n,r){let o=e[Ve],i=!o||wn()||Uo(o,r);if(pt(i),i)return ch(t,e,n,r);let s=o.data[ys]?.[r]??null;s!==null&&n.tView!==null&&n.tView.ssrId===null&&(n.tView.ssrId=s);let a=Zo(o,t,e,n);Ho(o,r,a);let u=La(o,r);return Jo(u,a)}function mw(){lh=pw}function gw(t,e,n,r){let o=x(),i=_n();if(be(o,i,e)){let s=U(),a=In();fD(a,o,t,e,n,r)}return gw}function lu(t,e,n,r){return be(t,_n(),n)?e+ot(n)+r:Ce}function yw(t,e,n,r,o,i,s,a){let u=Sg(),l=dw(t,u,n,o,s);return Ta(3),l?e+ot(n)+r+ot(o)+i+ot(s)+a:Ce}function Wr(t,e){return t<<17|e<<2}function Lt(t){return t>>17&32767}function vw(t){return(t&2)==2}function Dw(t,e){return t&131071|e<<17}function da(t){return t|2}function gn(t){return(t&131068)>>2}function ns(t,e){return t&-131069|e<<2}function Ew(t){return(t&1)===1}function fa(t){return t|1}function ww(t,e,n,r,o,i){let s=i?e.classBindings:e.styleBindings,a=Lt(s),u=gn(s);t[r]=n;let l=!1,c;if(Array.isArray(n)){let d=n;c=d[1],(c===null||rr(d,c)>0)&&(l=!0)}else c=n;if(o)if(u!==0){let f=Lt(t[a+1]);t[r+1]=Wr(f,a),f!==0&&(t[f+1]=ns(t[f+1],r)),t[a+1]=Dw(t[a+1],r)}else t[r+1]=Wr(a,0),a!==0&&(t[a+1]=ns(t[a+1],r)),a=r;else t[r+1]=Wr(u,0),a===0?a=r:t[u+1]=ns(t[u+1],r),u=r;l&&(t[r+1]=da(t[r+1])),Cc(t,c,r,!0),Cc(t,c,r,!1),_w(e,c,t,r,i),s=Wr(a,u),i?e.classBindings=s:e.styleBindings=s}function _w(t,e,n,r,o){let i=o?t.residualClasses:t.residualStyles;i!=null&&typeof e=="string"&&rr(i,e)>=0&&(n[r+1]=fa(n[r+1]))}function Cc(t,e,n,r){let o=t[n+1],i=e===null,s=r?Lt(o):gn(o),a=!1;for(;s!==0&&(a===!1||i);){let u=t[s],l=t[s+1];Iw(u,e)&&(a=!0,t[s+1]=r?fa(l):da(l)),s=r?Lt(l):gn(l)}a&&(t[n+1]=r?da(o):fa(o))}function Iw(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?rr(t,e)>=0:!1}var Y={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function dh(t){return t.substring(Y.key,Y.keyEnd)}function bw(t){return t.substring(Y.value,Y.valueEnd)}function Cw(t){return ph(t),fh(t,yn(t,0,Y.textEnd))}function fh(t,e){let n=Y.textEnd;return n===e?-1:(e=Y.keyEnd=Tw(t,Y.key=e,n),yn(t,e,n))}function Sw(t){return ph(t),hh(t,yn(t,0,Y.textEnd))}function hh(t,e){let n=Y.textEnd,r=Y.key=yn(t,e,n);return n===r?-1:(r=Y.keyEnd=Mw(t,r,n),r=Sc(t,r,n,58),r=Y.value=yn(t,r,n),r=Y.valueEnd=xw(t,r,n),Sc(t,r,n,59))}function ph(t){Y.key=0,Y.keyEnd=0,Y.value=0,Y.valueEnd=0,Y.textEnd=t.length}function yn(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function Tw(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}function Mw(t,e,n){let r;for(;e<n&&((r=t.charCodeAt(e))===45||r===95||(r&-33)>=65&&(r&-33)<=90||r>=48&&r<=57);)e++;return e}function Sc(t,e,n,r){return e=yn(t,e,n),e<n&&e++,e}function xw(t,e,n){let r=-1,o=-1,i=-1,s=e,a=s;for(;s<n;){let u=t.charCodeAt(s++);if(u===59)return a;u===34||u===39?a=s=Tc(t,u,s,n):e===s-4&&i===85&&o===82&&r===76&&u===40?a=s=Tc(t,41,s,n):u>32&&(a=s),i=o,o=r,r=u&-33}return a}function Tc(t,e,n,r){let o=-1,i=n;for(;i<r;){let s=t.charCodeAt(i++);if(s==e&&o!==92)return i;s==92&&o===92?o=0:o=s}throw new Error}function Aw(t,e,n){let r=x(),o=_n();if(be(r,o,e)){let i=U(),s=In();ir(i,s,r,t,e,r[k],n,!1)}return Aw}function ha(t,e,n,r,o){let i=e.inputs,s=o?"class":"style";eu(t,n,i[s],s,r)}function mh(t,e,n){return gh(t,e,n,!1),mh}function Nw(t,e){return gh(t,e,null,!0),Nw}function Ow(t){yh(Eh,Fw,t,!1)}function Fw(t,e){for(let n=Sw(e);n>=0;n=hh(e,n))Eh(t,dh(e),bw(e))}function FN(t){yh(Bw,Pw,t,!0)}function Pw(t,e){for(let n=Cw(e);n>=0;n=fh(e,n))ko(t,dh(e),!0)}function gh(t,e,n,r){let o=x(),i=U(),s=Ta(2);if(i.firstUpdatePass&&Dh(i,t,s,r),e!==Ce&&be(o,s,e)){let a=i.data[Bt()];wh(i,a,o,o[k],t,o[s+1]=Hw(e,n),r,s)}}function yh(t,e,n,r){let o=U(),i=Ta(2);o.firstUpdatePass&&Dh(o,null,i,r);let s=x();if(n!==Ce&&be(s,i,n)){let a=o.data[Bt()];if(_h(a,r)&&!vh(o,i)){let u=r?a.classesWithoutHost:a.stylesWithoutHost;u!==null&&(n=as(u,n||"")),ha(o,a,s,n,r)}else $w(o,a,s,s[k],s[i+1],s[i+1]=Vw(t,e,n),r,i)}}function vh(t,e){return e>=t.expandoStartIndex}function Dh(t,e,n,r){let o=t.data;if(o[n+1]===null){let i=o[Bt()],s=vh(t,n);_h(i,r)&&e===null&&!s&&(e=!1),e=Rw(o,i,e,r),ww(o,i,e,n,s,r)}}function Rw(t,e,n,r){let o=Ng(t),i=r?e.residualClasses:e.residualStyles;if(o===null)(r?e.classBindings:e.styleBindings)===0&&(n=rs(null,t,e,n,r),n=er(n,e.attrs,r),i=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==o)if(n=rs(o,t,e,n,r),i===null){let u=kw(t,e,r);u!==void 0&&Array.isArray(u)&&(u=rs(null,t,e,u[1],r),u=er(u,e.attrs,r),Lw(t,e,r,u))}else i=jw(t,e,r)}return i!==void 0&&(r?e.residualClasses=i:e.residualStyles=i),n}function kw(t,e,n){let r=n?e.classBindings:e.styleBindings;if(gn(r)!==0)return t[Lt(r)]}function Lw(t,e,n,r){let o=n?e.classBindings:e.styleBindings;t[Lt(o)]=r}function jw(t,e,n){let r,o=e.directiveEnd;for(let i=1+e.directiveStylingLast;i<o;i++){let s=t[i].hostAttrs;r=er(r,s,n)}return er(r,e.attrs,n)}function rs(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=er(r,i.hostAttrs,o),i!==t);)a++;return t!==null&&(n.directiveStylingLast=a),r}function er(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]),ko(t,s,n?!0:e[++i]))}return t===void 0?null:t}function Vw(t,e,n){if(n==null||n==="")return le;let r=[],o=Cn(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)t(r,o[i],!0);else if(typeof o=="object")for(let i in o)o.hasOwnProperty(i)&&t(r,i,o[i]);else typeof o=="string"&&e(r,o);return r}function Eh(t,e,n){ko(t,e,Cn(n))}function Bw(t,e,n){let r=String(e);r!==""&&!r.includes(" ")&&ko(t,r,n)}function $w(t,e,n,r,o,i,s,a){o===Ce&&(o=le);let u=0,l=0,c=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;c!==null||d!==null;){let f=u<o.length?o[u+1]:void 0,h=l<i.length?i[l+1]:void 0,p=null,m;c===d?(u+=2,l+=2,f!==h&&(p=d,m=h)):d===null||c!==null&&c<d?(u+=2,p=c):(l+=2,p=d,m=h),p!==null&&wh(t,e,n,r,p,m,s,a),c=u<o.length?o[u]:null,d=l<i.length?i[l]:null}}function wh(t,e,n,r,o,i,s,a){if(!(e.type&3))return;let u=t.data,l=u[a+1],c=Ew(l)?Mc(u,e,n,o,gn(l),s):void 0;if(!Ao(c)){Ao(i)||vw(l)&&(i=Mc(u,null,n,o,a,s));let d=Zc(Bt(),n);Hv(r,s,d,o,i)}}function Mc(t,e,n,r,o,i){let s=e===null,a;for(;o>0;){let u=t[o],l=Array.isArray(u),c=l?u[1]:u,d=c===null,f=n[o+1];f===Ce&&(f=d?le:void 0);let h=d?Gi(f,r):c===r?f:void 0;if(l&&!Ao(h)&&(h=Gi(u,r)),Ao(h)&&(a=h,s))return a;let p=t[o+1];o=s?Lt(p):gn(p)}if(e!==null){let u=i?e.residualClasses:e.residualStyles;u!=null&&(a=Gi(u,r))}return a}function Ao(t){return t!==void 0}function Hw(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=de(Cn(t)))),t}function _h(t,e){return(t.flags&(e?8:16))!==0}function PN(t,e,n){sr("NgControlFlow");let r=x(),o=_n(),i=Uw(r,$+t),s=0;if(be(r,o,e)){let a=ae(null);try{if(wD(i,s),e!==-1){let u=zw(r[I],$+e),l=Us(i,u.tView.ssrId),c=Rf(r,u,n,{dehydratedView:l});kf(i,c,s,Vs(u,l))}}finally{ae(a)}}else{let a=ED(i,s);a!==void 0&&(a[ge]=n)}}function Uw(t,e){return t[e]}function zw(t,e){return _a(t,e)}function qw(t,e,n,r,o,i){let s=e.consts,a=fn(s,o),u=Sn(e,t,2,r,a);return Xa(e,n,u,fn(s,i)),u.attrs!==null&&Io(u,u.attrs,!1),u.mergedAttrs!==null&&Io(u,u.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,u),u}function Ih(t,e,n,r){let o=x(),i=U(),s=$+t,a=o[k],u=i.firstCreatePass?qw(s,i,o,e,n,r):i.data[s],l=Ch(i,o,u,a,e,t);o[s]=l;let c=Po(u);return Vt(u,!0),wf(a,l,u),(u.flags&32)!==32&&Ro()&&Go(i,o,l,u),vg()===0&&ct(l,o),Dg(),c&&(Ya(i,o,u),Ka(i,u,o)),r!==null&&Za(o,u),Ih}function bh(){let t=ie();Ca()?Sa():(t=t.parent,Vt(t,!1));let e=t;wg(e)&&Ig(),Eg();let n=U();return n.firstCreatePass&&(zo(n,t),Ea(t)&&n.queries.elementEnd(t)),e.classesWithoutHost!=null&&Vy(e)&&ha(n,e,x(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&By(e)&&ha(n,e,x(),e.stylesWithoutHost,!1),bh}function Gw(t,e,n,r){return Ih(t,e,n,r),bh(),Gw}var Ch=(t,e,n,r,o,i)=>(pt(!0),za(r,o,cd()));function Ww(t,e,n,r,o,i){let s=e[Ve],a=!s||wn()||Uo(s,i);if(pt(a),a)return za(r,o,cd());let u=Zo(s,t,e,n);return Sd(s,i)&&Ho(s,i,u.nextSibling),s&&(hd(n)||pd(u))&&En(n)&&(_g(n),vf(u)),u}function Qw(){Ch=Ww}function Kw(t,e,n,r,o){let i=e.consts,s=fn(i,r),a=Sn(e,t,8,"ng-container",s);s!==null&&Io(a,s,!0);let u=fn(i,o);return Xa(e,n,a,u),e.queries!==null&&e.queries.elementStart(e,a),a}function Sh(t,e,n){let r=x(),o=U(),i=t+$,s=o.firstCreatePass?Kw(i,o,r,e,n):o.data[i];Vt(s,!0);let a=Mh(o,r,s,t);return r[i]=a,Ro()&&Go(o,r,a,s),ct(a,r),Po(s)&&(Ya(o,r,s),Ka(o,s,r)),n!=null&&Za(r,s),Sh}function Th(){let t=ie(),e=U();return Ca()?Sa():(t=t.parent,Vt(t,!1)),e.firstCreatePass&&(zo(e,t),Ea(t)&&e.queries.elementEnd(t)),Th}function Yw(t,e,n){return Sh(t,e,n),Th(),Yw}var Mh=(t,e,n,r)=>(pt(!0),df(e[k],""));function Zw(t,e,n,r){let o,i=e[Ve],s=!i||wn();if(pt(s),s)return df(e[k],"");let a=Zo(i,t,e,n),u=py(i,r);return Ho(i,r,a),o=Jo(u,a),o}function Jw(){Mh=Zw}function RN(){return x()}function Xw(t,e,n){let r=x(),o=_n();if(be(r,o,e)){let i=U(),s=In();ir(i,s,r,t,e,r[k],n,!0)}return Xw}var vn="en-US";var e_=vn;function xh(t){typeof t=="string"&&(e_=t.toLowerCase().replace(/_/g,"-"))}function t_(t,e,n,r){let o=x(),i=U(),s=ie();return Ah(i,o,o[k],s,t,e,r),t_}function n_(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[$n],u=o[i+2];return a.length>u?a[u]:null}typeof s=="string"&&(i+=2)}return null}function Ah(t,e,n,r,o,i,s){let a=Po(r),l=t.firstCreatePass&&Ff(t),c=e[ge],d=Of(e),f=!0;if(r.type&3||s){let m=De(r,e),b=s?s(m):m,w=d.length,A=s?L=>s(Z(L[r.index])):r.index,H=null;if(!s&&a&&(H=n_(t,e,o,r.index)),H!==null){let L=H.__ngLastListenerFn__||H;L.__ngNextListenerFn__=i,H.__ngLastListenerFn__=i,f=!1}else{i=Ac(r,e,c,i,!1);let L=n.listen(b,o,i);d.push(i,L),l&&l.push(o,A,w,w+1)}}else i=Ac(r,e,c,i,!1);let h=r.outputs,p;if(f&&h!==null&&(p=h[o])){let m=p.length;if(m)for(let b=0;b<m;b+=2){let w=p[b],A=p[b+1],X=e[w][A].subscribe(i),q=d.length;if(d.push(i,X),l){let G=typeof X=="function"?q+1:-(q+1);l.push(o,r.index,q,G)}}}}function xc(t,e,n,r){try{return Le(6,e,n),n(r)!==!1}catch(o){return Pf(t,o),!1}finally{Le(7,e,n)}}function Ac(t,e,n,r,o){return function i(s){if(s===Function)return r;let a=t.componentOffset>-1?ht(t.index,e):e;nu(a);let u=xc(e,n,r,s),l=i.__ngNextListenerFn__;for(;l;)u=xc(e,n,l,s)&&u,l=l.__ngNextListenerFn__;return o&&u===!1&&s.preventDefault(),u}}function kN(t=1){return Fg(t)}function r_(t,e){let n=null,r=Km(t);for(let o=0;o<e.length;o++){let i=e[o];if(i==="*"){n=o;continue}if(r===null?Hc(t,i,!0):Jm(r,i))return o}return n}function LN(t){let e=x()[pe][ye];if(!e.projection){let n=t?t.length:1,r=e.projection=jg(n,null),o=r.slice(),i=e.child;for(;i!==null;){let s=t?r_(i,t):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i),i=i.next}}}function jN(t,e=0,n){let r=x(),o=U(),i=Sn(o,$+t,16,null,n||null);i.projection===null&&(i.projection=e),Sa(),(!r[Ve]||wn())&&(i.flags&32)!==32&&Bv(o,r,i)}function o_(t,e,n,r,o){let i=x(),s=lu(i,e,n,r);if(s!==Ce){let a=U(),u=In();ir(a,u,i,t,s,i[k],o,!1)}return o_}function i_(t,e,n,r,o,i,s,a,u){let l=x(),c=yw(l,e,n,r,o,i,s,a);if(c!==Ce){let d=U(),f=In();ir(d,f,l,t,c,l[k],u,!1)}return i_}function VN(t,e,n,r){qE(t,e,n,r)}function BN(t,e,n){zE(t,e,n)}function $N(t){let e=x(),n=U(),r=od();Ma(r+1);let o=uu(n,r);if(t.dirty&&hg(e)===((o.metadata.flags&2)===2)){if(o.matches===null)t.reset([]);else{let i=QE(e,r);t.reset(i,Rg),t.notifyOnChanges()}return!0}return!1}function HN(){return UE(x(),od())}function s_(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}function UN(t){let e=Cg();return Jc(e,$+t)}function zN(t,e,n){let r=x(),o=lu(r,t,e,n);Ow(o)}function qN(t,e=""){let n=x(),r=U(),o=t+$,i=r.firstCreatePass?Sn(r,o,1,e,null):r.data[o],s=Nh(r,n,i,e,t);n[o]=s,Ro()&&Go(r,n,s,i),Vt(i,!1)}var Nh=(t,e,n,r,o)=>(pt(!0),cf(e[k],r));function a_(t,e,n,r,o){let i=e[Ve],s=!i||wn()||Uo(i,o);return pt(s),s?cf(e[k],r):Zo(i,t,e,n)}function u_(){Nh=a_}function l_(t){return Oh("",t,""),l_}function Oh(t,e,n){let r=x(),o=lu(r,t,e,n);return o!==Ce&&gD(r,Bt(),o),Oh}function c_(t,e,n){Yf(e)&&(e=e());let r=x(),o=_n();if(be(r,o,e)){let i=U(),s=In();ir(i,s,r,t,e,r[k],n,!1)}return c_}function GN(t,e){let n=Yf(t);return n&&t.set(e),n}function d_(t,e){let n=x(),r=U(),o=ie();return Ah(r,n,n[k],o,t,e),d_}function f_(t,e,n){let r=U();if(r.firstCreatePass){let o=at(t);pa(n,r.data,r.blueprint,o,!0),pa(e,r.data,r.blueprint,o,!1)}}function pa(t,e,n,r,o){if(t=ce(t),Array.isArray(t))for(let i=0;i<t.length;i++)pa(t[i],e,n,r,o);else{let i=U(),s=x(),a=ie(),u=pn(t)?t:ce(t.provide),l=Rd(t),c=a.providerIndexes&1048575,d=a.directiveStart,f=a.providerIndexes>>20;if(pn(t)||!t.multi){let h=new Pt(l,o,se),p=is(u,e,o?c:c+f,d);p===-1?(Ss(mo(a,s),i,u),os(i,t,e.length),e.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{let h=is(u,e,c+f,d),p=is(u,e,c,c+f),m=h>=0&&n[h],b=p>=0&&n[p];if(o&&!b||!o&&!m){Ss(mo(a,s),i,u);let w=m_(o?p_:h_,n.length,o,r,l);!o&&b&&(n[p].providerFactory=w),os(i,t,e.length,0),e.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(w),s.push(w)}else{let w=Fh(n[o?p:h],l,!o&&r);os(i,t,h>-1?h:p,w)}!o&&r&&b&&n[p].componentProviders++}}}function os(t,e,n,r){let o=pn(e),i=_y(e);if(o||i){let u=(i?ce(e.useClass):e).prototype.ngOnDestroy;if(u){let l=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){let c=l.indexOf(n);c===-1?l.push(n,[r,u]):l[c+1].push(r,u)}else l.push(n,u)}}}function Fh(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function is(t,e,n,r){for(let o=n;o<r;o++)if(e[o]===t)return o;return-1}function h_(t,e,n,r){return ma(this.multi,[])}function p_(t,e,n,r){let o=this.multi,i;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=Rt(n,n[I],this.providerFactory.index,r);i=a.slice(0,s),ma(o,i);for(let u=s;u<a.length;u++)i.push(a[u])}else i=[],ma(o,i);return i}function ma(t,e){for(let n=0;n<t.length;n++){let r=t[n];e.push(r())}return e}function m_(t,e,n,r,o){let i=new Pt(t,n,se);return i.multi=[],i.index=e,i.componentProviders=0,Fh(i,o,r&&!n),i}function WN(t,e=[]){return n=>{n.providersResolver=(r,o)=>f_(r,o?o(t):t,e)}}var g_=(()=>{let e=class e{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){let o=Nd(!1,r.type),i=o.length>0?cw([o],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,i)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(let r of this.cachedInjectors.values())r!==null&&r.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=V({token:e,providedIn:"environment",factory:()=>new e(Q(ut))});let t=e;return t})();function QN(t){sr("NgStandalone"),t.getStandaloneInjector=e=>e.get(g_).getOrCreateStandaloneInjector(t)}function KN(t,e,n,r){return y_(x(),rd(),t,e,n,r)}function Ph(t,e){let n=t[e];return n===Ce?void 0:n}function y_(t,e,n,r,o,i){let s=e+n;return be(t,s,o)?ah(t,s+1,i?r.call(i,o):r(o)):Ph(t,s+1)}function v_(t,e,n,r,o,i,s){let a=e+n;return uh(t,a,o,i)?ah(t,a+2,s?r.call(s,o,i):r(o,i)):Ph(t,a+2)}function YN(t,e){let n=U(),r,o=t+$;n.firstCreatePass?(r=D_(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=Ft(r.type,!0)),s,a=he(se);try{let u=po(!1),l=i();return po(u),s_(n,x(),o,l),l}finally{he(a)}}function D_(t,e){if(e)for(let n=e.length-1;n>=0;n--){let r=e[n];if(t===r.name)return r}}function ZN(t,e,n,r){let o=t+$,i=x(),s=Jc(i,o);return E_(i,o)?v_(i,rd(),e,s.transform,n,r,s):s.transform(n,r)}function E_(t,e){return t[I].data[e].pure}function JN(t,e){return Yo(t,e)}var Qr=null;function w_(t){Qr!==null&&(t.defaultEncapsulation!==Qr.defaultEncapsulation||t.preserveWhitespaces!==Qr.preserveWhitespaces)||(Qr=t)}var XN=(()=>{let e=class e{log(r){console.log(r)}warn(r){console.warn(r)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var __=new j(""),I_=new j(""),eO=(()=>{let e=class e{constructor(r,o,i){this._ngZone=r,this.registry=o,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,cu||(C_(i),i.addToWindow(o)),this._watchAngularEvents(),r.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{oe.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&this._pendingCount===0&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let r=this._callbacks.pop();clearTimeout(r.timeoutId),r.doneCb()}});else{let r=this.getPendingTasks();this._callbacks=this._callbacks.filter(o=>o.updateCb&&o.updateCb(r)?(clearTimeout(o.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(r=>({source:r.source,creationLocation:r.creationLocation,data:r.data})):[]}addCallback(r,o,i){let s=-1;o&&o>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),r()},o)),this._callbacks.push({doneCb:r,timeoutId:s,updateCb:i})}whenStable(r,o,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(r,o,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(r){this.registry.registerApplication(r,this)}unregisterApplication(r){this.registry.unregisterApplication(r)}findProviders(r,o,i){return[]}};e.\u0275fac=function(o){return new(o||e)(Q(oe),Q(b_),Q(I_))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let t=e;return t})(),b_=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(r,o){this._applications.set(r,o)}unregisterApplication(r){this._applications.delete(r)}unregisterAllApplications(){this._applications.clear()}getTestability(r){return this._applications.get(r)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(r,o=!0){return cu?.findTestabilityInTree(this,r,o)??null}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function C_(t){cu=t}var cu;function du(t){return!!t&&typeof t.then=="function"}function Rh(t){return!!t&&typeof t.subscribe=="function"}var S_=new j(""),fu=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o}),this.appInits=P(S_,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let r=[];for(let i of this.appInits){let s=i();if(du(s))r.push(s);else if(Rh(s)){let a=new Promise((u,l)=>{s.subscribe({complete:u,error:l})});r.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{o()}).catch(i=>{this.reject(i)}),r.length===0&&o(),this.initialized=!0}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),kh=new j("");function Lh(){gl(()=>{throw new g(600,!1)})}function T_(t){return t.isBoundToModule}function jh(t,e,n){try{let r=n();return du(r)?r.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}function Vh(t,e){return Array.isArray(e)?e.reduce(Vh,t):Ie(Ie({},t),e)}var ei=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=P(Zd),this.afterRenderEffectManager=P(su),this.componentTypes=[],this.components=[],this.isStable=P(sh).hasPendingTasks.pipe(ze(r=>!r)),this._injector=P(ut)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,o){let i=r instanceof wo;if(!this._injector.get(fu).done){let h=!i&&ig(r),p=!1;throw new g(405,p)}let a;i?a=r:a=this._injector.get(Xo).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let u=T_(a)?void 0:this._injector.get(ft),l=o||a.selector,c=a.create(mt.NULL,[],l,u),d=c.location.nativeElement,f=c.injector.get(__,null);return f?.registerApplication(d),c.onDestroy(()=>{this.detachView(c.hostView),no(this.components,c),f?.unregisterApplication(d)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new g(101,!1);try{this._runningTick=!0,this.detectChangesInAttachedViews()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1}}detectChangesInAttachedViews(){let r=0;do{if(r===Hf)throw new g(103,!1);let o=r===0;for(let{_lView:i,notifyErrorHandler:s}of this._views)!o&&!Nc(i)||this.detectChangesInView(i,s,o);this.afterRenderEffectManager.execute(),r++}while(this._views.some(({_lView:o})=>Nc(o)))}detectChangesInView(r,o,i){let s;i?(s=0,r[_]|=1024):r[_]&64?s=0:s=1,Uf(r,o,s)}attachView(r){let o=r;this._views.push(o),o.attachToAppRef(this)}detachView(r){let o=r;no(this._views,o),o.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let o=this._injector.get(kh,[]);[...this._bootstrapListeners,...o].forEach(i=>i(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>no(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new g(406,!1);let r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function no(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}var Kr;function M_(t){Kr??=new WeakMap;let e=Kr.get(t);if(e)return e;let n=t.isStable.pipe(Bi(r=>r)).toPromise().then(()=>{});return Kr.set(t,n),t.onDestroy(()=>Kr?.delete(t)),n}function Nc(t){return ba(t)}var ga=class{constructor(e,n){this.ngModuleFactory=e,this.componentFactories=n}},tO=(()=>{let e=class e{compileModuleSync(r){return new Mo(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){let o=this.compileModuleSync(r),i=Gc(r),s=lf(i.declarations).reduce((a,u)=>{let l=We(u);return l&&a.push(new mn(l)),a},[]);return new ga(o,s)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),x_=new j("");function A_(t,e,n){let r=new Mo(n);return Promise.resolve(r)}function Oc(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var N_=(()=>{let e=class e{constructor(){this.zone=P(oe),this.applicationRef=P(ei)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Bh(t){return[{provide:oe,useFactory:t},{provide:Yn,multi:!0,useFactory:()=>{let e=P(N_,{optional:!0});return()=>e.initialize()}},{provide:Yn,multi:!0,useFactory:()=>{let e=P(P_);return()=>{e.initialize()}}},{provide:Zd,useFactory:O_}]}function O_(){let t=P(oe),e=P(lt);return n=>t.runOutsideAngular(()=>e.handleError(n))}function F_(t){let e=Bh(()=>new oe($h(t)));return Ad([[],e])}function $h(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var P_=(()=>{let e=class e{constructor(){this.subscription=new K,this.initialized=!1,this.zone=P(oe),this.pendingTasks=P(sh)}initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{oe.assertNotInAngularZone(),queueMicrotask(()=>{r!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{oe.assertInAngularZone(),r??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function R_(){return typeof $localize<"u"&&$localize.locale||vn}var ti=new j("",{providedIn:"root",factory:()=>P(ti,O.Optional|O.SkipSelf)||R_()});var hu=new j(""),Hh=(()=>{let e=class e{constructor(r){this._injector=r,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(r,o){let i=wE(o?.ngZone,$h({eventCoalescing:o?.ngZoneEventCoalescing,runCoalescing:o?.ngZoneRunCoalescing}));return i.run(()=>{let s=lw(r.moduleType,this.injector,Bh(()=>i)),a=s.injector.get(lt,null);return i.runOutsideAngular(()=>{let u=i.onError.subscribe({next:l=>{a.handleError(l)}});s.onDestroy(()=>{no(this._modules,s),u.unsubscribe()})}),jh(a,i,()=>{let u=s.injector.get(fu);return u.runInitializers(),u.donePromise.then(()=>{let l=s.injector.get(ti,vn);return xh(l||vn),this._moduleDoBootstrap(s),s})})})}bootstrapModule(r,o=[]){let i=Vh({},o);return A_(this.injector,i,r).then(s=>this.bootstrapModuleFactory(s,i))}_moduleDoBootstrap(r){let o=r.injector.get(ei);if(r._bootstrapComponents.length>0)r._bootstrapComponents.forEach(i=>o.bootstrap(i));else if(r.instance.ngDoBootstrap)r.instance.ngDoBootstrap(o);else throw new g(-403,!1);this._modules.push(r)}onDestroy(r){this._destroyListeners.push(r)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new g(404,!1);this._modules.slice().forEach(o=>o.destroy()),this._destroyListeners.forEach(o=>o());let r=this._injector.get(hu,null);r&&(r.forEach(o=>o()),r.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(o){return new(o||e)(Q(mt))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})(),it=null,Uh=new j("");function k_(t){if(it&&!it.get(Uh,!1))throw new g(400,!1);Lh(),it=t;let e=t.get(Hh);return Gh(t),e}function L_(t,e,n=[]){let r=`Platform: ${e}`,o=new j(r);return(i=[])=>{let s=qh();if(!s||s.injector.get(Uh,!1)){let a=[...n,...i,{provide:o,useValue:!0}];t?t(a):k_(zh(a,r))}return j_(o)}}function zh(t=[],e){return mt.create({name:e,providers:[{provide:Pd,useValue:"platform"},{provide:hu,useValue:new Set([()=>it=null])},...t]})}function j_(t){let e=qh();if(!e)throw new g(401,!1);return e}function qh(){return it?.get(Hh)??null}function V_(t=[]){if(it)return it;let e=zh(t);return it=e,Lh(),Gh(e),e}function Gh(t){t.get(Wg,null)?.forEach(n=>n())}var nO=L_(null,"core",[]);function rO(t){try{let{rootComponent:e,appProviders:n,platformProviders:r}=t,o=V_(r),i=[F_(),...n||[]],a=new xo({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1}).injector,u=a.get(oe);return u.run(()=>{a.resolveInjectorInitializers();let l=a.get(lt,null),c;u.runOutsideAngular(()=>{c=u.onError.subscribe({next:h=>{l.handleError(h)}})});let d=()=>a.destroy(),f=o.get(hu);return f.add(d),a.onDestroy(()=>{c.unsubscribe(),f.delete(d)}),jh(l,u,()=>{let h=a.get(fu);return h.runInitializers(),h.donePromise.then(()=>{let p=a.get(ti,vn);xh(p||vn);let m=a.get(ei);return e!==void 0&&m.bootstrap(e),m})})})}catch(e){return Promise.reject(e)}}var ya=class{constructor(){this.views=[],this.indexByContent=new Map}add(e){let n=JSON.stringify(e);if(!this.indexByContent.has(n)){let r=this.views.length;return this.views.push(e),this.indexByContent.set(n,r),r}return this.indexByContent.get(n)}getAll(){return this.views}},B_=0;function Wh(t){return t.ssrId||(t.ssrId=`t${B_++}`),t.ssrId}function Qh(t,e,n){let r=[];return Jn(t,e,n,r),r.length}function $_(t){let e=[];return Lf(t,e),e.length}function Kh(t,e){let n=t[W];return n&&!n.hasAttribute(Gn)?Oo(n,t,e):null}function Yh(t,e){let n=Yc(t[W]),r=Kh(n,e),o=Z(n[W]),i=t[J],s=Oo(o,i,e),a=n[k],u=`${r}|${s}`;a.setAttribute(o,jn,u)}function oO(t,e){let n=new ya,r=new Map,o=t._views;for(let a of o){let u=Cd(a);if(u!==null){let l={serializedViewCollection:n,corruptedTextNodes:r};ve(u)?Yh(u,l):Kh(u,l),q_(r,e)}}let i=n.getAll();t.injector.get($o).set(Ra,i)}function H_(t,e){let n=[],r="";for(let o=re;o<t.length;o++){let i=t[o],s,a,u;if(wa(i)&&(i=i[$],ve(i))){a=$_(i)+1,Yh(i,e);let c=Yc(i[W]);u={[vs]:c[I].ssrId,[hn]:a}}if(!u){let c=i[I];c.type===1?(s=c.ssrId,a=1):(s=Wh(c),a=Qh(c,i,c.firstChild)),u=Ie({[vs]:s,[hn]:a},Zh(t[o],e))}let l=JSON.stringify(u);if(n.length>0&&l===r){let c=n[n.length-1];c[lo]??=1,c[lo]++}else r=l,n.push(u)}return n}function No(t,e,n){let r=e.index-$;t[Ds]??={},t[Ds][r]=eE(e,n)}function Fc(t,e){let n=e.index-$;t[Yr]??=[],t[Yr].includes(n)||t[Yr].push(n)}function Zh(t,e){let n={},r=t[I];for(let o=$;o<r.bindingStartIndex;o++){let i=r.data[o],s=o-$;if(jy(i)){if(Xn(i,t)&&G_(i)){Fc(n,i);continue}if(Array.isArray(i.projection)){for(let a of i.projection)if(a)if(!Array.isArray(a))!ag(a)&&!ao(a)&&(Xn(a,t)?Fc(n,a):No(n,a,t));else throw kD(Z(t[o]))}if(U_(n,i,t),ve(t[o])){let a=i.tView;a!==null&&(n[ys]??={},n[ys][s]=Wh(a));let u=t[o][W];if(Array.isArray(u)){let l=Z(u);l.hasAttribute(Gn)||Oo(l,u,e)}n[Kn]??={},n[Kn][s]=H_(t[o],e)}else if(Array.isArray(t[o])){let a=Z(t[o][W]);a.hasAttribute(Gn)||Oo(a,t[o],e)}else if(i.type&8)n[gs]??={},n[gs][s]=Qh(r,t,i.child);else if(i.type&16){let a=i.next;for(;a!==null&&a.type&16;)a=a.next;a&&!ao(a)&&No(n,a,t)}else if(i.type&1){let a=Z(t[o]);a.textContent===""?e.corruptedTextNodes.set(a,"ngetn"):a.nextSibling?.nodeType===Node.TEXT_NODE&&e.corruptedTextNodes.set(a,"ngtns")}}}return n}function U_(t,e,n){e.projectionNext&&e.projectionNext!==e.next&&!ao(e.projectionNext)&&No(t,e.projectionNext,n),e.prev===null&&e.parent!==null&&Xn(e.parent,n)&&!Xn(e,n)&&No(t,e,n)}function z_(t){let e=t[ge];return e?.constructor?We(e.constructor)?.encapsulation===un.ShadowDom:!1}function Oo(t,e,n){let r=e[k];if(ug(e)||z_(e))return r.setAttribute(t,Gn,""),null;{let o=Zh(e,n),i=n.serializedViewCollection.add(o);return r.setAttribute(t,jn,i.toString()),i}}function q_(t,e){for(let[n,r]of t)n.after(e.createComment(r))}function G_(t){let e=t;for(;e!=null;){if(En(e))return!0;e=e.parent}return!1}var Pc=!1;function W_(){Pc||(Pc=!0,dy(),Qw(),u_(),Jw(),mw(),jE(),rE(),Yv())}function Q_(t,e){return M_(t)}function iO(){return Ad([{provide:Hr,useFactory:()=>{let t=!0;return kn()&&(t=!!P($o,{optional:!0})?.get(Ra,null)),t&&sr("NgHydration"),t}},{provide:Yn,useValue:()=>{kn()&&P(Hr)&&(K_(),W_())},multi:!0},{provide:Xd,useFactory:()=>kn()&&P(Hr)},{provide:kh,useFactory:()=>{if(kn()&&P(Hr)){let t=P(ei),e=P(mt);return()=>{Q_(t,e).then(()=>{oe.assertInAngularZone(),GD(t)})}}return()=>{}},multi:!0}])}function K_(){let t=Lo(),e;for(let n of t.body.childNodes)if(n.nodeType===Node.COMMENT_NODE&&n.textContent?.trim()===ly){e=n;break}if(!e)throw new g(-507,!1)}function Y_(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Z_(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}function sO(t){let e=We(t);if(!e)return null;let n=new mn(e);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}function aO(...t){return t.reduce((e,n)=>Object.assign(e,n,{providers:[...e.providers,...n.providers]}),{providers:[]})}var sp=null;function pu(){return sp}function NO(t){sp??=t}var Xh=class{};var wu=new j(""),_u=(()=>{let e=class e{historyGo(r){throw new Error("")}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=V({token:e,factory:()=>P(J_),providedIn:"platform"});let t=e;return t})(),OO=new j(""),J_=(()=>{let e=class e extends _u{constructor(){super(),this._doc=P(wu),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return pu().getBaseHref(this._doc)}onPopState(r){let o=pu().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",r,!1),()=>o.removeEventListener("popstate",r)}onHashChange(r){let o=pu().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",r,!1),()=>o.removeEventListener("hashchange",r)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(r){this._location.pathname=r}pushState(r,o,i){this._history.pushState(r,o,i)}replaceState(r,o,i){this._history.replaceState(r,o,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(r=0){this._history.go(r)}getState(){return this._history.state}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=V({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function Iu(t,e){if(t.length==0)return e;if(e.length==0)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,n==2?t+e.substring(1):n==1?t+e:t+"/"+e}function ep(t){let e=t.match(/#|\?|$/),n=e&&e.index||t.length,r=n-(t[n-1]==="/"?1:0);return t.slice(0,r)+t.slice(n)}function Xe(t){return t&&t[0]!=="?"?"?"+t:t}var ni=(()=>{let e=class e{historyGo(r){throw new Error("")}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=V({token:e,factory:()=>P(X_),providedIn:"root"});let t=e;return t})(),ap=new j(""),X_=(()=>{let e=class e extends ni{constructor(r,o){super(),this._platformLocation=r,this._removeListenerFns=[],this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??P(wu).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(r){this._removeListenerFns.push(this._platformLocation.onPopState(r),this._platformLocation.onHashChange(r))}getBaseHref(){return this._baseHref}prepareExternalUrl(r){return Iu(this._baseHref,r)}path(r=!1){let o=this._platformLocation.pathname+Xe(this._platformLocation.search),i=this._platformLocation.hash;return i&&r?`${o}${i}`:o}pushState(r,o,i,s){let a=this.prepareExternalUrl(i+Xe(s));this._platformLocation.pushState(r,o,a)}replaceState(r,o,i,s){let a=this.prepareExternalUrl(i+Xe(s));this._platformLocation.replaceState(r,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(r=0){this._platformLocation.historyGo?.(r)}};e.\u0275fac=function(o){return new(o||e)(Q(_u),Q(ap,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),FO=(()=>{let e=class e extends ni{constructor(r,o){super(),this._platformLocation=r,this._baseHref="",this._removeListenerFns=[],o!=null&&(this._baseHref=o)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(r){this._removeListenerFns.push(this._platformLocation.onPopState(r),this._platformLocation.onHashChange(r))}getBaseHref(){return this._baseHref}path(r=!1){let o=this._platformLocation.hash??"#";return o.length>0?o.substring(1):o}prepareExternalUrl(r){let o=Iu(this._baseHref,r);return o.length>0?"#"+o:o}pushState(r,o,i,s){let a=this.prepareExternalUrl(i+Xe(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(r,o,a)}replaceState(r,o,i,s){let a=this.prepareExternalUrl(i+Xe(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(r,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(r=0){this._platformLocation.historyGo?.(r)}};e.\u0275fac=function(o){return new(o||e)(Q(_u),Q(ap,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let t=e;return t})(),eI=(()=>{let e=class e{constructor(r){this._subject=new Ae,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=r;let o=this._locationStrategy.getBaseHref();this._basePath=rI(ep(tp(o))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(r=!1){return this.normalize(this._locationStrategy.path(r))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(r,o=""){return this.path()==this.normalize(r+Xe(o))}normalize(r){return e.stripTrailingSlash(nI(this._basePath,tp(r)))}prepareExternalUrl(r){return r&&r[0]!=="/"&&(r="/"+r),this._locationStrategy.prepareExternalUrl(r)}go(r,o="",i=null){this._locationStrategy.pushState(i,"",r,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Xe(o)),i)}replaceState(r,o="",i=null){this._locationStrategy.replaceState(i,"",r,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Xe(o)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(r=0){this._locationStrategy.historyGo?.(r)}onUrlChange(r){return this._urlChangeListeners.push(r),this._urlChangeSubscription??=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state)}),()=>{let o=this._urlChangeListeners.indexOf(r);this._urlChangeListeners.splice(o,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(r="",o){this._urlChangeListeners.forEach(i=>i(r,o))}subscribe(r,o,i){return this._subject.subscribe({next:r,error:o,complete:i})}};e.normalizeQueryParams=Xe,e.joinWithSlash=Iu,e.stripTrailingSlash=ep,e.\u0275fac=function(o){return new(o||e)(Q(ni))},e.\u0275prov=V({token:e,factory:()=>tI(),providedIn:"root"});let t=e;return t})();function tI(){return new eI(Q(ni))}function nI(t,e){if(!t||!e.startsWith(t))return e;let n=e.substring(t.length);return n===""||["/",";","?","#"].includes(n[0])?n:e}function tp(t){return t.replace(/\/index.html$/,"")}function rI(t){if(new RegExp("^(https?:)?//").test(t)){let[,n]=t.split(/\/\/[^\/]+/);return n}return t}function PO(t,e){e=encodeURIComponent(e);for(let n of t.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===e)return decodeURIComponent(i)}return null}var mu=/\s+/,np=[],RO=(()=>{let e=class e{constructor(r,o){this._ngEl=r,this._renderer=o,this.initialClasses=np,this.stateMap=new Map}set klass(r){this.initialClasses=r!=null?r.trim().split(mu):np}set ngClass(r){this.rawClass=typeof r=="string"?r.trim().split(mu):r}ngDoCheck(){for(let o of this.initialClasses)this._updateState(o,!0);let r=this.rawClass;if(Array.isArray(r)||r instanceof Set)for(let o of r)this._updateState(o,!0);else if(r!=null)for(let o of Object.keys(r))this._updateState(o,!!r[o]);this._applyStateDiff()}_updateState(r,o){let i=this.stateMap.get(r);i!==void 0?(i.enabled!==o&&(i.changed=!0,i.enabled=o),i.touched=!0):this.stateMap.set(r,{enabled:o,changed:!0,touched:!0})}_applyStateDiff(){for(let r of this.stateMap){let o=r[0],i=r[1];i.changed?(this._toggleClass(o,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(o,!1),this.stateMap.delete(o)),i.touched=!1}}_toggleClass(r,o){r=r.trim(),r.length>0&&r.split(mu).forEach(i=>{o?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}};e.\u0275fac=function(o){return new(o||e)(se($t),se(ru))},e.\u0275dir=jt({type:e,selectors:[["","ngClass",""]],inputs:{klass:[st.None,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var gu=class{constructor(e,n,r,o){this.$implicit=e,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},kO=(()=>{let e=class e{set ngForOf(r){this._ngForOf=r,this._ngForOfDirty=!0}set ngForTrackBy(r){this._trackByFn=r}get ngForTrackBy(){return this._trackByFn}constructor(r,o,i){this._viewContainer=r,this._template=o,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(r){r&&(this._template=r)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let r=this._ngForOf;if(!this._differ&&r)if(0)try{}catch{}else this._differ=this._differs.find(r).create(this.ngForTrackBy)}if(this._differ){let r=this._differ.diff(this._ngForOf);r&&this._applyChanges(r)}}_applyChanges(r){let o=this._viewContainer;r.forEachOperation((i,s,a)=>{if(i.previousIndex==null)o.createEmbeddedView(this._template,new gu(i.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)o.remove(s===null?void 0:s);else if(s!==null){let u=o.get(s);o.move(u,a),rp(u,i)}});for(let i=0,s=o.length;i<s;i++){let u=o.get(i).context;u.index=i,u.count=s,u.ngForOf=this._ngForOf}r.forEachIdentityChange(i=>{let s=o.get(i.currentIndex);rp(s,i)})}static ngTemplateContextGuard(r,o){return!0}};e.\u0275fac=function(o){return new(o||e)(se(gt),se(dt),se(ou))},e.\u0275dir=jt({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function rp(t,e){t.context.$implicit=e.item}var LO=(()=>{let e=class e{constructor(r,o){this._viewContainer=r,this._context=new yu,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=o}set ngIf(r){this._context.$implicit=this._context.ngIf=r,this._updateView()}set ngIfThen(r){op("ngIfThen",r),this._thenTemplateRef=r,this._thenViewRef=null,this._updateView()}set ngIfElse(r){op("ngIfElse",r),this._elseTemplateRef=r,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(r,o){return!0}};e.\u0275fac=function(o){return new(o||e)(se(gt),se(dt))},e.\u0275dir=jt({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),yu=class{constructor(){this.$implicit=null,this.ngIf=null}};function op(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${de(e)}'.`)}var oI=!0,vu=class{constructor(e,n){this._viewContainerRef=e,this._templateRef=n,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}},iI=(()=>{let e=class e{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(r){this._ngSwitch=r,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(r){this._defaultViews.push(r)}_matchCase(r){let o=oI?r===this._ngSwitch:r==this._ngSwitch;return this._lastCasesMatched||=o,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),o}_updateDefaultCases(r){if(this._defaultViews.length>0&&r!==this._defaultUsed){this._defaultUsed=r;for(let o of this._defaultViews)o.enforceState(r)}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=jt({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0});let t=e;return t})(),jO=(()=>{let e=class e{constructor(r,o,i){this.ngSwitch=i,i._addCase(),this._view=new vu(r,o)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}};e.\u0275fac=function(o){return new(o||e)(se(gt),se(dt),se(iI,9))},e.\u0275dir=jt({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0});let t=e;return t})();var VO=(()=>{let e=class e{constructor(r){this._viewContainerRef=r,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(r){if(this._shouldRecreateView(r)){let o=this._viewContainerRef;if(this._viewRef&&o.remove(o.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=o.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(r){return!!r.ngTemplateOutlet||!!r.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(r,o,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,o,i):!1,get:(r,o,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,o,i)}})}};e.\u0275fac=function(o){return new(o||e)(se(gt))},e.\u0275dir=jt({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Ba]});let t=e;return t})();var BO=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=Uc({type:e}),e.\u0275inj=md({});let t=e;return t})(),sI="browser",aI="server";function uI(t){return t===sI}function $O(t){return t===aI}var HO=(()=>{let e=class e{};e.\u0275prov=V({token:e,providedIn:"root",factory:()=>uI(P(Vo))?new Du(P(wu),window):new Eu});let t=e;return t})(),Du=class{constructor(e,n){this.document=e,this.window=n,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let n=lI(this.document,e);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let n=e.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}};function lI(t,e){let n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),o=r.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(e)||i.querySelector(`[name="${e}"]`);if(s)return s}o=r.nextNode()}}return null}var Eu=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},ip=class{};var T=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}(T||{}),Be="*";function qO(t,e){return{type:T.Trigger,name:t,definitions:e,options:{}}}function GO(t,e=null){return{type:T.Animate,styles:e,timings:t}}function WO(t,e=null){return{type:T.Group,steps:t,options:e}}function up(t,e=null){return{type:T.Sequence,steps:t,options:e}}function bu(t){return{type:T.Style,styles:t,offset:null}}function QO(t,e,n){return{type:T.State,name:t,styles:e,options:n}}function KO(t,e,n=null){return{type:T.Transition,expr:t,animation:e,options:n}}var yt=class{constructor(e=0,n=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,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}},ar=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,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}},ri="!";function lp(t){return new g(3e3,!1)}function cI(){return new g(3100,!1)}function dI(){return new g(3101,!1)}function fI(t){return new g(3001,!1)}function hI(t){return new g(3003,!1)}function pI(t){return new g(3004,!1)}function mI(t,e){return new g(3005,!1)}function gI(){return new g(3006,!1)}function yI(){return new g(3007,!1)}function vI(t,e){return new g(3008,!1)}function DI(t){return new g(3002,!1)}function EI(t,e,n,r,o){return new g(3010,!1)}function wI(){return new g(3011,!1)}function _I(){return new g(3012,!1)}function II(){return new g(3200,!1)}function bI(){return new g(3202,!1)}function CI(){return new g(3013,!1)}function SI(t){return new g(3014,!1)}function TI(t){return new g(3015,!1)}function MI(t){return new g(3016,!1)}function xI(t){return new g(3500,!1)}function AI(t){return new g(3501,!1)}function NI(t,e){return new g(3404,!1)}function OI(t){return new g(3502,!1)}function FI(t){return new g(3503,!1)}function PI(){return new g(3300,!1)}function RI(t){return new g(3504,!1)}function kI(t){return new g(3301,!1)}function LI(t,e){return new g(3302,!1)}function jI(t){return new g(3303,!1)}function VI(t,e){return new g(3400,!1)}function BI(t){return new g(3401,!1)}function $I(t){return new g(3402,!1)}function HI(t,e){return new g(3505,!1)}var UI=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 vt(t){switch(t.length){case 0:return new yt;case 1:return t[0];default:return new ar(t)}}function Tp(t,e,n=new Map,r=new Map){let o=[],i=[],s=-1,a=null;if(e.forEach(u=>{let l=u.get("offset"),c=l==s,d=c&&a||new Map;u.forEach((f,h)=>{let p=h,m=f;if(h!=="offset")switch(p=t.normalizePropertyName(p,o),m){case ri:m=n.get(h);break;case Be:m=r.get(h);break;default:m=t.normalizeStyleValue(h,p,m,o);break}d.set(p,m)}),c||i.push(d),a=d,s=l}),o.length)throw OI(o);return i}function Yu(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&Cu(n,"start",t)));break;case"done":t.onDone(()=>r(n&&Cu(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&Cu(n,"destroy",t)));break}}function Cu(t,e,n){let r=n.totalTime,o=!!n.disabled,i=Zu(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 Zu(t,e,n,r,o="",i=0,s){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:o,totalTime:i,disabled:!!s}}function we(t,e,n){let r=t.get(e);return r||t.set(e,r=n),r}function cp(t){let e=t.indexOf(":"),n=t.substring(1,e),r=t.slice(e+1);return[n,r]}var zI=typeof document>"u"?null:document.documentElement;function Ju(t){let e=t.parentNode||t.host||null;return e===zI?null:e}function qI(t){return t.substring(1,6)=="ebkit"}var Ht=null,dp=!1;function GI(t){Ht||(Ht=WI()||{},dp=Ht.style?"WebkitAppearance"in Ht.style:!1);let e=!0;return Ht.style&&!qI(t)&&(e=t in Ht.style,!e&&dp&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Ht.style)),e}function eF(t){return UI.has(t)}function WI(){return typeof document<"u"?document.body:null}function Mp(t,e){for(;e;){if(e===t)return!0;e=Ju(e)}return!1}function xp(t,e,n){if(n)return Array.from(t.querySelectorAll(e));let r=t.querySelector(e);return r?[r]:[]}var Ap=(()=>{let e=class e{validateStyleProperty(r){return GI(r)}matchesElement(r,o){return!1}containsElement(r,o){return Mp(r,o)}getParentElement(r){return Ju(r)}query(r,o,i){return xp(r,o,i)}computeStyle(r,o,i){return i||""}animate(r,o,i,s,a,u=[],l){return new yt(i,s)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let t=e;return t})(),il=class il{};il.NOOP=new Ap;var fp=il,Nu=class{},Ou=class{normalizePropertyName(e,n){return e}normalizeStyleValue(e,n,r,o){return r}},QI=1e3,Np="{{",KI="}}",Xu="ng-enter",li="ng-leave",oi="ng-trigger",ci=".ng-trigger",hp="ng-animating",Fu=".ng-animating";function et(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Pu(parseFloat(e[1]),e[2])}function Pu(t,e){switch(e){case"s":return t*QI;default:return t}}function di(t,e,n){return t.hasOwnProperty("duration")?t:YI(t,e,n)}function YI(t,e,n){let r=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,o,i=0,s="";if(typeof t=="string"){let a=t.match(r);if(a===null)return e.push(lp(t)),{duration:0,delay:0,easing:""};o=Pu(parseFloat(a[1]),a[2]);let u=a[3];u!=null&&(i=Pu(parseFloat(u),a[4]));let l=a[5];l&&(s=l)}else o=t;if(!n){let a=!1,u=e.length;o<0&&(e.push(cI()),a=!0),i<0&&(e.push(dI()),a=!0),a&&e.splice(u,0,lp(t))}return{duration:o,delay:i,easing:s}}function ZI(t){return t.length?t[0]instanceof Map?t:t.map(e=>new Map(Object.entries(e))):[]}function pp(t){return Array.isArray(t)?new Map(...t):new Map(t)}function $e(t,e,n){e.forEach((r,o)=>{let i=el(o);n&&!n.has(o)&&n.set(o,t.style[i]),t.style[i]=r})}function zt(t,e){e.forEach((n,r)=>{let o=el(r);t.style[o]=""})}function ur(t){return Array.isArray(t)?t.length==1?t[0]:up(t):t}function JI(t,e,n){let r=e.params||{},o=Op(t);o.length&&o.forEach(i=>{r.hasOwnProperty(i)||n.push(fI(i))})}var Ru=new RegExp(`${Np}\\s*(.+?)\\s*${KI}`,"g");function Op(t){let e=[];if(typeof t=="string"){let n;for(;n=Ru.exec(t);)e.push(n[1]);Ru.lastIndex=0}return e}function cr(t,e,n){let r=`${t}`,o=r.replace(Ru,(i,s)=>{let a=e[s];return a==null&&(n.push(hI(s)),a=""),a.toString()});return o==r?t:o}var XI=/-+([a-z0-9])/g;function el(t){return t.replace(XI,(...e)=>e[1].toUpperCase())}function tF(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function eb(t,e){return t===0||e===0}function tb(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,tl(t,a)))}}return e}function Ee(t,e,n){switch(e.type){case T.Trigger:return t.visitTrigger(e,n);case T.State:return t.visitState(e,n);case T.Transition:return t.visitTransition(e,n);case T.Sequence:return t.visitSequence(e,n);case T.Group:return t.visitGroup(e,n);case T.Animate:return t.visitAnimate(e,n);case T.Keyframes:return t.visitKeyframes(e,n);case T.Style:return t.visitStyle(e,n);case T.Reference:return t.visitReference(e,n);case T.AnimateChild:return t.visitAnimateChild(e,n);case T.AnimateRef:return t.visitAnimateRef(e,n);case T.Query:return t.visitQuery(e,n);case T.Stagger:return t.visitStagger(e,n);default:throw pI(e.type)}}function tl(t,e){return window.getComputedStyle(t)[e]}var nb=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"]),ku=class extends Nu{normalizePropertyName(e,n){return el(e)}normalizeStyleValue(e,n,r,o){let i="",s=r.toString().trim();if(nb.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(mI(e,r))}return s+i}};var fi="*";function rb(t,e){let n=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(r=>ob(r,n,e)):n.push(t),n}function ob(t,e,n){if(t[0]==":"){let u=ib(t,n);if(typeof u=="function"){e.push(u);return}t=u}let r=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(r==null||r.length<4)return n.push(TI(t)),e;let o=r[1],i=r[2],s=r[3];e.push(mp(o,s));let a=o==fi&&s==fi;i[0]=="<"&&!a&&e.push(mp(s,o))}function ib(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(MI(t)),"* => *"}}var ii=new Set(["true","1"]),si=new Set(["false","0"]);function mp(t,e){let n=ii.has(t)||si.has(t),r=ii.has(e)||si.has(e);return(o,i)=>{let s=t==fi||t==o,a=e==fi||e==i;return!s&&n&&typeof o=="boolean"&&(s=o?ii.has(t):si.has(t)),!a&&r&&typeof i=="boolean"&&(a=i?ii.has(e):si.has(e)),s&&a}}var Fp=":self",sb=new RegExp(`s*${Fp}s*,?`,"g");function nl(t,e,n,r){return new Lu(t).build(e,n,r)}var gp="",Lu=class{constructor(e){this._driver=e}build(e,n,r){let o=new ju(n);return this._resetContextStyleTimingState(o),Ee(this,ur(e),o)}_resetContextStyleTimingState(e){e.currentQuerySelector=gp,e.collectedStyles=new Map,e.collectedStyles.set(gp,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(gI()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),a.type==T.State){let u=a,l=u.name;l.toString().split(/\s*,\s*/).forEach(c=>{u.name=c,i.push(this.visitState(u,n))}),u.name=l}else if(a.type==T.Transition){let u=this.visitTransition(a,n);r+=u.queryCount,o+=u.depCount,s.push(u)}else n.errors.push(yI())}),{type:T.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(u=>{Op(u).forEach(l=>{s.hasOwnProperty(l)||i.add(l)})})}),i.size&&n.errors.push(vI(e.name,[...i.values()]))}return{type:T.State,name:e.name,style:r,options:o?{params:o}:null}}visitTransition(e,n){n.queryCount=0,n.depCount=0;let r=Ee(this,ur(e.animation),n),o=rb(e.expr,n.errors);return{type:T.Transition,matchers:o,animation:r,queryCount:n.queryCount,depCount:n.depCount,options:Ut(e.options)}}visitSequence(e,n){return{type:T.Sequence,steps:e.steps.map(r=>Ee(this,r,n)),options:Ut(e.options)}}visitGroup(e,n){let r=n.currentTime,o=0,i=e.steps.map(s=>{n.currentTime=r;let a=Ee(this,s,n);return o=Math.max(o,n.currentTime),a});return n.currentTime=o,{type:T.Group,steps:i,options:Ut(e.options)}}visitAnimate(e,n){let r=cb(e.timings,n.errors);n.currentAnimateTimings=r;let o,i=e.styles?e.styles:bu({});if(i.type==T.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=bu(l)}n.currentTime+=r.duration+r.delay;let u=this.visitStyle(s,n);u.isEmptyStep=a,o=u}return n.currentAnimateTimings=null,{type:T.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===Be?r.push(a):n.errors.push(DI(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 u of a.values())if(u.toString().indexOf(Np)>=0){i=!0;break}}}),{type:T.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,u)=>{let l=n.collectedStyles.get(n.currentQuerySelector),c=l.get(u),d=!0;c&&(i!=o&&i>=c.startTime&&o<=c.endTime&&(n.errors.push(EI(u,c.startTime,c.endTime,i,o)),d=!1),i=c.startTime),d&&l.set(u,{startTime:i,endTime:o}),n.options&&JI(a,n.options,n.errors)})})}visitKeyframes(e,n){let r={type:T.Keyframes,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(wI()),r;let o=1,i=0,s=[],a=!1,u=!1,l=0,c=e.steps.map(w=>{let A=this._makeStyleAst(w,n),H=A.offset!=null?A.offset:lb(A.styles),L=0;return H!=null&&(i++,L=A.offset=H),u=u||L<0||L>1,a=a||L<l,l=L,s.push(L),A});u&&n.errors.push(_I()),a&&n.errors.push(II());let d=e.steps.length,f=0;i>0&&i<d?n.errors.push(bI()):i==0&&(f=o/(d-1));let h=d-1,p=n.currentTime,m=n.currentAnimateTimings,b=m.duration;return c.forEach((w,A)=>{let H=f>0?A==h?1:f*A:s[A],L=H*b;n.currentTime=p+m.delay+L,m.duration=L,this._validateStyleAst(w,n),w.offset=H,r.styles.push(w)}),r}visitReference(e,n){return{type:T.Reference,animation:Ee(this,ur(e.animation),n),options:Ut(e.options)}}visitAnimateChild(e,n){return n.depCount++,{type:T.AnimateChild,options:Ut(e.options)}}visitAnimateRef(e,n){return{type:T.AnimateRef,animation:this.visitReference(e.animation,n),options:Ut(e.options)}}visitQuery(e,n){let r=n.currentQuerySelector,o=e.options||{};n.queryCount++,n.currentQuery=e;let[i,s]=ab(e.selector);n.currentQuerySelector=r.length?r+" "+i:i,we(n.collectedStyles,n.currentQuerySelector,new Map);let a=Ee(this,ur(e.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:T.Query,selector:i,limit:o.limit||0,optional:!!o.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:Ut(e.options)}}visitStagger(e,n){n.currentQuery||n.errors.push(CI());let r=e.timings==="full"?{duration:0,delay:0,easing:"full"}:di(e.timings,n.errors,!0);return{type:T.Stagger,animation:Ee(this,ur(e.animation),n),timings:r,options:null}}};function ab(t){let e=!!t.split(/\s*,\s*/).find(n=>n==Fp);return e&&(t=t.replace(sb,"")),t=t.replace(/@\*/g,ci).replace(/@\w+/g,n=>ci+"-"+n.slice(1)).replace(/:animating/g,Fu),[t,e]}function ub(t){return t?Ie({},t):null}var ju=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function lb(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 cb(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let i=di(t,e).duration;return Su(i,0,"")}let n=t;if(n.split(/\s+/).some(i=>i.charAt(0)=="{"&&i.charAt(1)=="{")){let i=Su(0,0,"");return i.dynamic=!0,i.strValue=n,i}let o=di(n,e);return Su(o.duration,o.delay,o.easing)}function Ut(t){return t?(t=Ie({},t),t.params&&(t.params=ub(t.params))):t={},t}function Su(t,e,n){return{duration:t,delay:e,easing:n}}function rl(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 xn=class{constructor(){this._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()}},db=1,fb=":enter",hb=new RegExp(fb,"g"),pb=":leave",mb=new RegExp(pb,"g");function ol(t,e,n,r,o,i=new Map,s=new Map,a,u,l=[]){return new Vu().buildKeyframes(t,e,n,r,o,i,s,a,u,l)}var Vu=class{buildKeyframes(e,n,r,o,i,s,a,u,l,c=[]){l=l||new xn;let d=new Bu(e,n,l,o,i,c,[]);d.options=u;let f=u.delay?et(u.delay):0;d.currentTimeline.delayNextStep(f),d.currentTimeline.setStyles([s],null,d.errors,u),Ee(this,r,d);let h=d.timelines.filter(p=>p.containsAnimation());if(h.length&&a.size){let p;for(let m=h.length-1;m>=0;m--){let b=h[m];if(b.element===n){p=b;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,u)}return h.length?h.map(p=>p.buildKeyframes()):[rl(n,[],[],[],0,f,"",!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(cr(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(u=>{let l=n.appendInstructionToTimeline(u,s,a);i=Math.max(i,l.duration+l.delay)}),i}visitReference(e,n){n.updateOptions(e.options,!0),Ee(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==T.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=hi);let s=et(i.delay);o.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>Ee(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),Ee(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?cr(r,n.params,n.errors):r;return di(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==T.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(u=>{let l=u.offset||0;a.forwardTime(l*i),a.setStyles(u.styles,u.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===T.Style||r==0&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=hi);let s=r,a=n.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!o.optional,n.errors);n.currentQueryTotal=a.length;let u=null;a.forEach((l,c)=>{n.currentQueryIndex=c;let d=n.createSubContext(e.options,l);i&&d.delayNextStep(i),l===n.element&&(u=d.currentTimeline),Ee(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe();let f=d.currentTimeline.currentTime;s=Math.max(s,f)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(s),u&&(n.currentTimeline.mergeTimelineCollectedStyles(u),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),u=s*n.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":u=a-u;break;case"full":u=r.currentStaggerTime;break}let c=n.currentTimeline;u&&c.delayNextStep(u);let d=c.currentTime;Ee(this,e.animation,n),n.previousNode=e,r.currentStaggerTime=o.currentTime-d+(o.startTime-r.currentTimeline.startTime)}},hi={},Bu=class t{constructor(e,n,r,o,i,s,a,u){this._driver=e,this.element=n,this.subInstructions=r,this._enterClassName=o,this._leaveClassName=i,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=hi,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new pi(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]=cr(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=hi,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 $u(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(hb,"."+this._enterClassName),e=e.replace(mb,"."+this._leaveClassName);let u=r!=1,l=this._driver.query(this.element,e,u);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(SI(n)),a}},pi=class t{constructor(e,n,r,o){this._driver=e,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=o,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,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+=db,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||Be),this._currentKeyframe.set(n,Be);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,n,r,o){n&&this._previousKeyframe.set("easing",n);let i=o&&o.params||{},s=gb(e,this._globalTimelineStyles);for(let[a,u]of s){let l=cr(u,i,r);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Be),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,u)=>{let l=new Map([...this._backFill,...a]);l.forEach((c,d)=>{c===ri?e.add(d):c===Be&&n.add(d)}),r||l.set("offset",u/this.duration),o.push(l)});let i=[...e.values()],s=[...n.values()];if(r){let a=o[0],u=new Map(a);a.set("offset",0),u.set("offset",1),o=[a,u]}return rl(this.element,o,i,s,this.duration,this.startTime,this.easing,!1)}},$u=class extends pi{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,u=new Map(e[0]);u.set("offset",0),i.push(u);let l=new Map(e[0]);l.set("offset",yp(a)),i.push(l);let c=e.length-1;for(let d=1;d<=c;d++){let f=new Map(e[d]),h=f.get("offset"),p=n+h*r;f.set("offset",yp(p/s)),i.push(f)}r=s,n=0,o="",e=i}return rl(this.element,e,this.preStyleProps,this.postStyleProps,r,n,o,!0)}};function yp(t,e=3){let n=Math.pow(10,e-1);return Math.round(t*n)/n}function gb(t,e){let n=new Map,r;return t.forEach(o=>{if(o==="*"){r??=e.keys();for(let i of r)n.set(i,Be)}else for(let[i,s]of o)n.set(i,s)}),n}function vp(t,e,n,r,o,i,s,a,u,l,c,d,f){return{type:0,element:t,triggerName:e,isRemovalTransition:o,fromState:n,fromStyles:i,toState:r,toStyles:s,timelines:a,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:d,errors:f}}var Tu={},mi=class{constructor(e,n,r){this._triggerName=e,this.ast=n,this._stateStyles=r}match(e,n,r,o){return yb(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,u,l,c){let d=[],f=this.ast.options&&this.ast.options.params||Tu,h=a&&a.params||Tu,p=this.buildStyles(r,h,d),m=u&&u.params||Tu,b=this.buildStyles(o,m,d),w=new Set,A=new Map,H=new Map,L=o==="void",X={params:Pp(m,f),delay:this.ast.options?.delay},q=c?[]:ol(e,n,this.ast.animation,i,s,p,b,X,l,d),G=0;return q.forEach(te=>{G=Math.max(te.duration+te.delay,G)}),d.length?vp(n,this._triggerName,r,o,L,p,b,[],[],A,H,G,d):(q.forEach(te=>{let He=te.element,qt=we(A,He,new Set);te.preStyleProps.forEach(Dt=>qt.add(Dt));let sl=we(H,He,new Set);te.postStyleProps.forEach(Dt=>sl.add(Dt)),He!==n&&w.add(He)}),vp(n,this._triggerName,r,o,L,p,b,q,[...w.values()],A,H,G))}};function yb(t,e,n,r,o){return t.some(i=>i(e,n,r,o))}function Pp(t,e){let n=Ie({},e);return Object.entries(t).forEach(([r,o])=>{o!=null&&(n[r]=o)}),n}var Hu=class{constructor(e,n,r){this.styles=e,this.defaultParams=n,this.normalizer=r}buildStyles(e,n){let r=new Map,o=Pp(e,this.defaultParams);return this.styles.styles.forEach(i=>{typeof i!="string"&&i.forEach((s,a)=>{s&&(s=cr(s,o,n));let u=this.normalizer.normalizePropertyName(a,n);s=this.normalizer.normalizeStyleValue(a,u,s,n),r.set(a,s)})}),r}};function vb(t,e,n){return new Uu(t,e,n)}var Uu=class{constructor(e,n,r){this.name=e,this.ast=n,this._normalizer=r,this.transitionFactories=[],this.states=new Map,n.states.forEach(o=>{let i=o.options&&o.options.params||{};this.states.set(o.name,new Hu(o.style,i,r))}),Dp(this.states,"true","1"),Dp(this.states,"false","0"),n.transitions.forEach(o=>{this.transitionFactories.push(new mi(e,o,this.states))}),this.fallbackTransition=Db(e,this.states,this._normalizer)}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 Db(t,e,n){let r=[(s,a)=>!0],o={type:T.Sequence,steps:[],options:null},i={type:T.Transition,animation:o,matchers:r,options:null,queryCount:0,depCount:0};return new mi(t,i,e)}function Dp(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 Eb=new xn,zu=class{constructor(e,n,r){this.bodyNode=e,this._driver=n,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,n){let r=[],o=[],i=nl(this._driver,n,r,o);if(r.length)throw FI(r);o.length&&void 0,this._animations.set(e,i)}_buildPlayer(e,n,r){let o=e.element,i=Tp(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=ol(this._driver,n,i,Xu,li,new Map,new Map,r,Eb,o),s.forEach(c=>{let d=we(a,c.element,new Map);c.postStyleProps.forEach(f=>d.set(f,null))})):(o.push(PI()),s=[]),o.length)throw RI(o);a.forEach((c,d)=>{c.forEach((f,h)=>{c.set(h,this._driver.computeStyle(d,h,Be))})});let u=s.map(c=>{let d=a.get(c.element);return this._buildPlayer(c,new Map,d)}),l=vt(u);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 kI(e);return n}listen(e,n,r,o){let i=Zu(n,"","","");return Yu(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}}},Ep="ng-animate-queued",wb=".ng-animate-queued",Mu="ng-animate-disabled",_b=".ng-animate-disabled",Ib="ng-star-inserted",bb=".ng-star-inserted",Cb=[],Rp={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Sb={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Oe="__ng_removed",dr=class{get params(){return this.options.params}constructor(e,n=""){this.namespaceId=n;let r=e&&e.hasOwnProperty("value"),o=r?e.value:e;if(this.value=Mb(o),r){let i=e,{value:s}=i,a=cl(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])})}}},lr="void",xu=new dr(lr),qu=class{constructor(e,n,r){this.id=e,this.hostElement=n,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Se(n,this._hostClassName)}listen(e,n,r,o){if(!this._triggers.has(n))throw LI(r,n);if(r==null||r.length==0)throw jI(n);if(!xb(r))throw VI(r,n);let i=we(this._elementListeners,e,[]),s={name:n,phase:r,callback:o};i.push(s);let a=we(this._engine.statesByElement,e,new Map);return a.has(n)||(Se(e,oi),Se(e,oi+"-"+n),a.set(n,xu)),()=>{this._engine.afterFlush(()=>{let u=i.indexOf(s);u>=0&&i.splice(u,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 BI(e);return n}trigger(e,n,r,o=!0){let i=this._getTrigger(n),s=new fr(this.id,n,e),a=this._engine.statesByElement.get(e);a||(Se(e,oi),Se(e,oi+"-"+n),this._engine.statesByElement.set(e,a=new Map));let u=a.get(n),l=new dr(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),a.set(n,l),u||(u=xu),!(l.value===lr)&&u.value===l.value){if(!Ob(u.params,l.params)){let m=[],b=i.matchStyles(u.value,u.params,m),w=i.matchStyles(l.value,l.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{zt(e,b),$e(e,w)})}return}let f=we(this._engine.playersByElement,e,[]);f.forEach(m=>{m.namespaceId==this.id&&m.triggerName==n&&m.queued&&m.destroy()});let h=i.matchTransition(u.value,l.value,e,l.params),p=!1;if(!h){if(!o)return;h=i.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:n,transition:h,fromState:u,toState:l,player:s,isFallbackTransition:p}),p||(Se(e,Ep),s.onStart(()=>{Tn(e,Ep)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);let b=this._engine.playersByElement.get(e);if(b){let w=b.indexOf(s);w>=0&&b.splice(w,1)}}),this.players.push(s),f.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,ci,!0);r.forEach(o=>{if(o[Oe])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((u,l)=>{if(s.set(l,u.value),this._triggers.has(l)){let c=this.trigger(e,l,lr,o);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,n,s),r&&vt(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 u=this._triggers.get(s).fallbackTransition,l=r.get(s)||xu,c=new dr(lr),d=new fr(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:u,fromState:l,toState:c,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[Oe];(!i||i===Rp)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,n))}}insertNode(e,n){Se(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 u=Zu(i,r.triggerName,r.fromState.value,r.toState.value);u._data=e,Yu(r.player,a.phase,u,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)}},Gu=class{_onRemovalComplete(e,n){this.onRemovalComplete(e,n)}constructor(e,n,r,o){this.bodyNode=e,this.driver=n,this._normalizer=r,this.scheduler=o,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(i,s)=>{}}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 qu(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 u=o.get(a);if(u){let l=r.indexOf(u);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(ai(n)){let i=this._fetchNamespace(e);if(i)return i.trigger(n,r,o),!0}return!1}insertNode(e,n,r,o){if(!ai(n))return;let i=n[Oe];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),Se(e,Mu)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Tn(e,Mu))}removeNode(e,n,r){if(ai(n)){this.scheduler?.notify();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[Oe]={namespaceId:e,setForRemoval:o,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:i}}listen(e,n,r,o,i){return ai(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,ci,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),this.playersByQueriedElement.size!=0&&(n=this.driver.query(e,Fu,!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 vt(this.players).onDone(()=>e());e()})}processLeaveNode(e){let n=e[Oe];if(n&&n.setForRemoval){if(e[Oe]=Rp,n.namespaceId){this.destroyInnerAnimations(e);let r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}e.classList?.contains(Mu)&&this.markElementAsDisabled(e,!1),this.driver.query(e,_b,!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];Se(o,Ib)}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?vt(n).onDone(()=>{r.forEach(o=>o())}):r.forEach(o=>o())}}reportError(e){throw $I(e)}_flushAnimations(e,n){let r=new xn,o=[],i=new Map,s=[],a=new Map,u=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(y=>{c.add(y);let v=this.driver.query(y,wb,!0);for(let E=0;E<v.length;E++)c.add(v[E])});let d=this.bodyNode,f=Array.from(this.statesByElement.keys()),h=Ip(f,this.collectedEnterElements),p=new Map,m=0;h.forEach((y,v)=>{let E=Xu+m++;p.set(v,E),y.forEach(F=>Se(F,E))});let b=[],w=new Set,A=new Set;for(let y=0;y<this.collectedLeaveElements.length;y++){let v=this.collectedLeaveElements[y],E=v[Oe];E&&E.setForRemoval&&(b.push(v),w.add(v),E.hasAnimation?this.driver.query(v,bb,!0).forEach(F=>w.add(F)):A.add(v))}let H=new Map,L=Ip(f,Array.from(w));L.forEach((y,v)=>{let E=li+m++;H.set(v,E),y.forEach(F=>Se(F,E))}),e.push(()=>{h.forEach((y,v)=>{let E=p.get(v);y.forEach(F=>Tn(F,E))}),L.forEach((y,v)=>{let E=H.get(v);y.forEach(F=>Tn(F,E))}),b.forEach(y=>{this.processLeaveNode(y)})});let X=[],q=[];for(let y=this._namespaceList.length-1;y>=0;y--)this._namespaceList[y].drainQueuedTransitions(n).forEach(E=>{let F=E.player,ee=E.element;if(X.push(F),this.collectedEnterElements.length){let ne=ee[Oe];if(ne&&ne.setForMove){if(ne.previousTriggersValues&&ne.previousTriggersValues.has(E.triggerName)){let Et=ne.previousTriggersValues.get(E.triggerName),_e=this.statesByElement.get(E.element);if(_e&&_e.has(E.triggerName)){let hr=_e.get(E.triggerName);hr.value=Et,_e.set(E.triggerName,hr)}}F.destroy();return}}let Fe=!d||!this.driver.containsElement(d,ee),me=H.get(ee),tt=p.get(ee),z=this._buildInstruction(E,r,tt,me,Fe);if(z.errors&&z.errors.length){q.push(z);return}if(Fe){F.onStart(()=>zt(ee,z.fromStyles)),F.onDestroy(()=>$e(ee,z.toStyles)),o.push(F);return}if(E.isFallbackTransition){F.onStart(()=>zt(ee,z.fromStyles)),F.onDestroy(()=>$e(ee,z.toStyles)),o.push(F);return}let ll=[];z.timelines.forEach(ne=>{ne.stretchStartingKeyframe=!0,this.disabledNodes.has(ne.element)||ll.push(ne)}),z.timelines=ll,r.append(ee,z.timelines);let jp={instruction:z,player:F,element:ee};s.push(jp),z.queriedElements.forEach(ne=>we(a,ne,[]).push(F)),z.preStyleProps.forEach((ne,Et)=>{if(ne.size){let _e=u.get(Et);_e||u.set(Et,_e=new Set),ne.forEach((hr,Ei)=>_e.add(Ei))}}),z.postStyleProps.forEach((ne,Et)=>{let _e=l.get(Et);_e||l.set(Et,_e=new Set),ne.forEach((hr,Ei)=>_e.add(Ei))})});if(q.length){let y=[];q.forEach(v=>{y.push(HI(v.triggerName,v.errors))}),X.forEach(v=>v.destroy()),this.reportError(y)}let G=new Map,te=new Map;s.forEach(y=>{let v=y.element;r.has(v)&&(te.set(v,v),this._beforeAnimationBuild(y.player.namespaceId,y.instruction,G))}),o.forEach(y=>{let v=y.element;this._getPreviousPlayers(v,!1,y.namespaceId,y.triggerName,null).forEach(F=>{we(G,v,[]).push(F),F.destroy()})});let He=b.filter(y=>bp(y,u,l)),qt=new Map;_p(qt,this.driver,A,l,Be).forEach(y=>{bp(y,u,l)&&He.push(y)});let Dt=new Map;h.forEach((y,v)=>{_p(Dt,this.driver,new Set(y),u,ri)}),He.forEach(y=>{let v=qt.get(y),E=Dt.get(y);qt.set(y,new Map([...v?.entries()??[],...E?.entries()??[]]))});let Di=[],al=[],ul={};s.forEach(y=>{let{element:v,player:E,instruction:F}=y;if(r.has(v)){if(c.has(v)){E.onDestroy(()=>$e(v,F.toStyles)),E.disabled=!0,E.overrideTotalTime(F.totalTime),o.push(E);return}let ee=ul;if(te.size>1){let me=v,tt=[];for(;me=me.parentNode;){let z=te.get(me);if(z){ee=z;break}tt.push(me)}tt.forEach(z=>te.set(z,ee))}let Fe=this._buildAnimation(E.namespaceId,F,G,i,Dt,qt);if(E.setRealPlayer(Fe),ee===ul)Di.push(E);else{let me=this.playersByElement.get(ee);me&&me.length&&(E.parentPlayer=vt(me)),o.push(E)}}else zt(v,F.fromStyles),E.onDestroy(()=>$e(v,F.toStyles)),al.push(E),c.has(v)&&o.push(E)}),al.forEach(y=>{let v=i.get(y.element);if(v&&v.length){let E=vt(v);y.setRealPlayer(E)}}),o.forEach(y=>{y.parentPlayer?y.syncPlayerEvents(y.parentPlayer):y.destroy()});for(let y=0;y<b.length;y++){let v=b[y],E=v[Oe];if(Tn(v,li),E&&E.hasAnimation)continue;let F=[];if(a.size){let Fe=a.get(v);Fe&&Fe.length&&F.push(...Fe);let me=this.driver.query(v,Fu,!0);for(let tt=0;tt<me.length;tt++){let z=a.get(me[tt]);z&&z.length&&F.push(...z)}}let ee=F.filter(Fe=>!Fe.destroyed);ee.length?Ab(this,v,ee):this.processLeaveNode(v)}return b.length=0,Di.forEach(y=>{this.players.push(y),y.onDone(()=>{y.destroy();let v=this.players.indexOf(y);this.players.splice(v,1)}),y.play()}),Di}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 u=!i||i==lr;a.forEach(l=>{l.queued||!u&&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 u of n.timelines){let l=u.element,c=l!==i,d=we(r,l,[]);this._getPreviousPlayers(l,c,s,a,n.toState).forEach(h=>{let p=h.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),h.destroy(),d.push(h)})}zt(i,n.fromStyles)}_buildAnimation(e,n,r,o,i,s){let a=n.triggerName,u=n.element,l=[],c=new Set,d=new Set,f=n.timelines.map(p=>{let m=p.element;c.add(m);let b=m[Oe];if(b&&b.removedBeforeQueried)return new yt(p.duration,p.delay);let w=m!==u,A=Nb((r.get(m)||Cb).map(G=>G.getRealPlayer())).filter(G=>{let te=G;return te.element?te.element===m:!1}),H=i.get(m),L=s.get(m),X=Tp(this._normalizer,p.keyframes,H,L),q=this._buildPlayer(p,X,A);if(p.subTimeline&&o&&d.add(m),w){let G=new fr(e,a,m);G.setRealPlayer(q),l.push(G)}return q});l.forEach(p=>{we(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>Tb(this.playersByQueriedElement,p.element,p))}),c.forEach(p=>Se(p,hp));let h=vt(f);return h.onDestroy(()=>{c.forEach(p=>Tn(p,hp)),$e(u,n.toStyles)}),d.forEach(p=>{we(o,p,[]).push(h)}),h}_buildPlayer(e,n,r){return n.length>0?this.driver.animate(e.element,n,e.duration,e.delay,e.easing,r):new yt(e.duration,e.delay)}},fr=class{constructor(e,n,r){this.namespaceId=e,this.triggerName=n,this.element=r,this._player=new yt,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((n,r)=>{n.forEach(o=>Yu(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){we(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 Tb(t,e,n){let r=t.get(e);if(r){if(r.length){let o=r.indexOf(n);r.splice(o,1)}r.length==0&&t.delete(e)}return r}function Mb(t){return t??null}function ai(t){return t&&t.nodeType===1}function xb(t){return t=="start"||t=="done"}function wp(t,e){let n=t.style.display;return t.style.display=e??"none",n}function _p(t,e,n,r,o){let i=[];n.forEach(u=>i.push(wp(u)));let s=[];r.forEach((u,l)=>{let c=new Map;u.forEach(d=>{let f=e.computeStyle(l,d,o);c.set(d,f),(!f||f.length==0)&&(l[Oe]=Sb,s.push(l))}),t.set(l,c)});let a=0;return n.forEach(u=>wp(u,i[a++])),s}function Ip(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 u=i.get(a);if(u)return u;let l=a.parentNode;return n.has(l)?u=l:o.has(l)?u=r:u=s(l),i.set(a,u),u}return e.forEach(a=>{let u=s(a);u!==r&&n.get(u).push(a)}),n}function Se(t,e){t.classList?.add(e)}function Tn(t,e){t.classList?.remove(e)}function Ab(t,e,n){vt(n).onDone(()=>t.processLeaveNode(e))}function Nb(t){let e=[];return kp(t,e),e}function kp(t,e){for(let n=0;n<t.length;n++){let r=t[n];r instanceof ar?kp(r.players,e):e.push(r)}}function Ob(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 bp(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 gi=class{constructor(e,n,r,o){this._driver=n,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,s)=>{},this._transitionEngine=new Gu(e.body,n,r,o),this._timelineEngine=new zu(e.body,n,r),this._transitionEngine.onRemovalComplete=(i,s)=>this.onRemovalComplete(i,s)}registerTrigger(e,n,r,o,i){let s=e+"-"+o,a=this._triggerCache[s];if(!a){let u=[],l=[],c=nl(this._driver,i,u,l);if(u.length)throw NI(o,u);l.length&&void 0,a=vb(o,c,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]=cp(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]=cp(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 Fb(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 Wu(t,n,r):null}var Mn=class Mn{constructor(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;let o=Mn.initialStylesByElement.get(e);o||Mn.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&$e(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&($e(this._element,this._initialStyles),this._endStyles&&($e(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Mn.initialStylesByElement.delete(this._element),this._startStyles&&(zt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(zt(this._element,this._endStyles),this._endStyles=null),$e(this._element,this._initialStyles),this._state=3)}};Mn.initialStylesByElement=new WeakMap;var Wu=Mn;function Au(t){let e=null;return t.forEach((n,r)=>{Pb(r)&&(e=e||new Map,e.set(r,n))}),e}function Pb(t){return t==="display"||t==="position"}var yi=class{constructor(e,n,r,o){this.element=e,this.keyframes=n,this.options=r,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,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._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let n=()=>this._onFinish();this.domPlayer.addEventListener("finish",n),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",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){return e.animate(this._convertKeyframesToObject(n),r)}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(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),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&&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===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}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:tl(this.element,o))}),this.currentSnapshot=e}triggerCallback(e){let n=e==="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},Qu=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,n){return!1}containsElement(e,n){return Mp(e,n)}getParentElement(e){return Ju(e)}query(e,n,r){return xp(e,n,r)}computeStyle(e,n,r){return tl(e,n)}animate(e,n,r,o,i,s=[]){let a=o==0?"both":"forwards",u={duration:r,delay:o,fill:a};i&&(u.easing=i);let l=new Map,c=s.filter(h=>h instanceof yi);eb(r,o)&&c.forEach(h=>{h.currentSnapshot.forEach((p,m)=>l.set(m,p))});let d=ZI(n).map(h=>new Map(h));d=tb(e,d,l);let f=Fb(e,d);return new yi(e,d,u,f)}};function nF(t,e,n){return t==="noop"?new gi(e,new Ap,new Ou,n):new gi(e,new Qu,new ku,n)}var Cp=class{constructor(e,n){this._driver=e;let r=[],o=[],i=nl(e,n,r,o);if(r.length)throw xI(r);o.length&&void 0,this._animationAst=i}buildTimelines(e,n,r,o,i){let s=Array.isArray(n)?pp(n):n,a=Array.isArray(r)?pp(r):r,u=[];i=i||new xn;let l=ol(this._driver,e,this._animationAst,Xu,li,s,a,o,i,u);if(u.length)throw AI(u);return l}},ui="@",Lp="@.disabled",vi=class{constructor(e,n,r,o){this.namespaceId=e,this.delegate=n,this.engine=r,this._onDestroy=o,this.\u0275type=0}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){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)==ui&&n==Lp?this.disableAnimations(e,!!r):this.delegate.setProperty(e,n,r)}setValue(e,n){this.delegate.setValue(e,n)}listen(e,n,r){return this.delegate.listen(e,n,r)}disableAnimations(e,n){this.engine.disableAnimations(e,n)}},Ku=class extends vi{constructor(e,n,r,o,i){super(n,r,o,i),this.factory=e,this.namespaceId=n}setProperty(e,n,r){n.charAt(0)==ui?n.charAt(1)=="."&&n==Lp?(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){if(n.charAt(0)==ui){let o=Rb(e),i=n.slice(1),s="";return i.charAt(0)!=ui&&([i,s]=kb(i)),this.engine.listen(this.namespaceId,o,i,s,a=>{let u=a._data||-1;this.factory.scheduleListenerCallback(u,r,a)})}return this.delegate.listen(e,n,r)}};function Rb(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function kb(t){let e=t.indexOf("."),n=t.substring(0,e),r=t.slice(e+1);return[n,r]}var Sp=class{constructor(e,n,r){this.delegate=e,this.engine=n,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,n.onRemovalComplete=(o,i)=>{let s=i?.parentNode(o);s&&i.removeChild(s,o)}}createRenderer(e,n){let r="",o=this.delegate.createRenderer(e,n);if(!e||!n?.data?.animation){let l=this._rendererCache,c=l.get(o);if(!c){let d=()=>l.delete(o);c=new vi(r,o,this.engine,d),l.set(o,c)}return c}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 Ku(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()}};export{K as a,Gp as b,N as c,Pi as d,Ri as e,Pe as f,Nn as g,St as h,ke as i,nm as j,rm as k,om as l,Mt as m,ze as n,fm as o,Me as p,Pn as q,Xt as r,pm as s,mm as t,Li as u,_m as v,xt as w,Im as x,Ul as y,bm as z,Cm as A,Rn as B,en as C,ji as D,Sm as E,Tm as F,Am as G,Bi as H,$i as I,Nm as J,Om as K,Ui as L,Fm as M,Pm as N,Rm as O,km as P,Lm as Q,jm as R,g as S,Ae as T,O as U,un as V,st as W,fN as X,Uc as Y,jt as Z,og as _,hN as $,pN as aa,$t as ba,ds as ca,mN as da,V as ea,md as fa,gN as ga,j as ha,qg as ia,Wg as ja,Vo as ka,yN as la,vN as ma,vd as na,Q as oa,P as pa,$o as qa,ly as ra,gy as sa,yy as ta,Ad as ua,Pd as va,ut as wa,DN as xa,Ba as ya,EN as za,Yy as Aa,mt as Ba,lt as Ca,Hr as Da,Cn as Ea,ef as Fa,wN as Ga,_N as Ha,IN as Ia,bN as Ja,CN as Ka,tf as La,SN as Ma,Ha as Na,pv as Oa,TN as Pa,MN as Qa,go as Ra,xN as Sa,se as Ta,AN as Ua,dt as Va,zs as Wa,Xo as Xa,Ws as Ya,ru as Za,fE as _a,sr as $a,oe as ab,IE as bb,gt as cb,nw as db,uw as eb,ca as fb,cw as gb,sh as hb,hw as ib,gw as jb,Aw as kb,mh as lb,Nw as mb,FN as nb,PN as ob,Ih as pb,bh as qb,Gw as rb,Sh as sb,Th as tb,Yw as ub,RN as vb,Xw as wb,t_ as xb,kN as yb,LN as zb,jN as Ab,o_ as Bb,i_ as Cb,VN as Db,BN as Eb,$N as Fb,HN as Gb,UN as Hb,zN as Ib,qN as Jb,l_ as Kb,Oh as Lb,c_ as Mb,GN as Nb,d_ as Ob,WN as Pb,QN as Qb,KN as Rb,YN as Sb,ZN as Tb,JN as Ub,XN as Vb,__ as Wb,eO as Xb,du as Yb,S_ as Zb,kh as _b,ei as $b,M_ as ac,tO as bc,Uh as cc,L_ as dc,nO as ec,rO as fc,oO as gc,iO as hc,Y_ as ic,Z_ as jc,sO as kc,aO as lc,pu as mc,NO as nc,Xh as oc,wu as pc,_u as qc,OO as rc,ni as sc,ap as tc,X_ as uc,FO as vc,eI as wc,PO as xc,RO as yc,kO as zc,LO as Ac,iI as Bc,jO as Cc,VO as Dc,BO as Ec,sI as Fc,aI as Gc,uI as Hc,$O as Ic,HO as Jc,Eu as Kc,ip as Lc,qO as Mc,GO as Nc,WO as Oc,bu as Pc,QO as Qc,KO as Rc,Ju as Sc,GI as Tc,eF as Uc,Mp as Vc,xp as Wc,Ap as Xc,fp as Yc,Nu as Zc,Ou as _c,ZI as $c,tF as ad,eb as bd,ku as cd,gi as dd,yi as ed,Qu as fd,nF as gd,Cp as hd,vi as id,Ku as jd,Sp as kd};