angular-t9n
Version:
A translation tool for Angular i18n
7 lines • 262 kB
JavaScript
import{a as x,b as X}from"./chunk-4CLCTAJ7.js";function I(e){return typeof e=="function"}function vn(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Eo=vn(e=>function(n){e(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 Nt(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var H=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(I(r))try{r()}catch(i){t=i instanceof Eo?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{cd(i)}catch(s){t=t??[],s instanceof Eo?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Eo(t)}}add(t){var n;if(t&&t!==this)if(this.closed)cd(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Nt(n,t)}remove(t){let{_finalizers:n}=this;n&&Nt(n,t),t instanceof e&&t._removeParent(this)}};H.EMPTY=(()=>{let e=new H;return e.closed=!0,e})();var Qs=H.EMPTY;function Io(e){return e instanceof H||e&&"closed"in e&&I(e.remove)&&I(e.add)&&I(e.unsubscribe)}function cd(e){I(e)?e():e.unsubscribe()}var Se={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Dn={setTimeout(e,t,...n){let{delegate:r}=Dn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Dn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function bo(e){Dn.setTimeout(()=>{let{onUnhandledError:t}=Se;if(t)t(e);else throw e})}function At(){}var ud=Js("C",void 0,void 0);function ld(e){return Js("E",void 0,e)}function dd(e){return Js("N",e,void 0)}function Js(e,t,n){return{kind:e,value:t,error:n}}var xt=null;function _n(e){if(Se.useDeprecatedSynchronousErrorHandling){let t=!xt;if(t&&(xt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=xt;if(xt=null,n)throw r}}else e()}function fd(e){Se.useDeprecatedSynchronousErrorHandling&&xt&&(xt.errorThrown=!0,xt.error=e)}var Rt=class extends H{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Io(t)&&t.add(this)):this.destination=Cy}static create(t,n,r){return new Ze(t,n,r)}next(t){this.isStopped?ea(dd(t),this):this._next(t)}error(t){this.isStopped?ea(ld(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?ea(ud,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},by=Function.prototype.bind;function Xs(e,t){return by.call(e,t)}var ta=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){wo(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){wo(r)}else wo(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){wo(n)}}},Ze=class extends Rt{constructor(t,n,r){super();let o;if(I(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Se.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Xs(t.next,i),error:t.error&&Xs(t.error,i),complete:t.complete&&Xs(t.complete,i)}):o=t}this.destination=new ta(o)}};function wo(e){Se.useDeprecatedSynchronousErrorHandling?fd(e):bo(e)}function wy(e){throw e}function ea(e,t){let{onStoppedNotification:n}=Se;n&&Dn.setTimeout(()=>n(e,t))}var Cy={closed:!0,next:At,error:wy,complete:At};var En=typeof Symbol=="function"&&Symbol.observable||"@@observable";function te(e){return e}function Ty(...e){return na(e)}function na(e){return e.length===0?te:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var N=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Sy(n)?n:new Ze(n,r,o);return _n(()=>{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=hd(r),new r((o,i)=>{let s=new Ze({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[En](){return this}pipe(...n){return na(n)(this)}toPromise(n){return n=hd(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function hd(e){var t;return(t=e??Se.Promise)!==null&&t!==void 0?t:Promise}function My(e){return e&&I(e.next)&&I(e.error)&&I(e.complete)}function Sy(e){return e&&e instanceof Rt||My(e)&&Io(e)}var pd=vn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var O=(()=>{class e 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 Co(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new pd}next(n){_n(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){_n(()=>{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(){_n(()=>{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?Qs:(this.currentObservers=null,i.push(n),new H(()=>{this.currentObservers=null,Nt(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 e.create=(t,n)=>new Co(t,n),e})(),Co=class extends O{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Qs}};var Ot=class extends O{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};function To(e){return e&&I(e.schedule)}function ra(e){return e[e.length-1]}function Mo(e){return I(ra(e))?e.pop():void 0}function He(e){return To(ra(e))?e.pop():void 0}function gd(e,t){return typeof ra(e)=="number"?e.pop():t}function yd(e,t,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(l){try{u(r.next(l))}catch(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function md(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ft(e){return this instanceof Ft?(this.v=e,this):new Ft(e)}function vd(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(g){return Promise.resolve(g).then(f,d)}}function a(f,g){r[f]&&(o[f]=function(m){return new Promise(function(y,v){i.push([f,m,y,v])>1||c(f,m)})},g&&(o[f]=g(o[f])))}function c(f,g){try{u(r[f](g))}catch(m){h(i[0][3],m)}}function u(f){f.value instanceof Ft?Promise.resolve(f.value.v).then(l,d):h(i[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function h(f,g){f(g),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Dd(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof md=="function"?md(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var In=e=>e&&typeof e.length=="number"&&typeof e!="function";function So(e){return I(e?.then)}function No(e){return I(e[En])}function Ao(e){return Symbol.asyncIterator&&I(e?.[Symbol.asyncIterator])}function xo(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Ny(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ro=Ny();function Oo(e){return I(e?.[Ro])}function Fo(e){return vd(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Ft(n.read());if(o)return yield Ft(void 0);yield yield Ft(r)}}finally{n.releaseLock()}})}function ko(e){return I(e?.getReader)}function R(e){if(e instanceof N)return e;if(e!=null){if(No(e))return Ay(e);if(In(e))return xy(e);if(So(e))return Ry(e);if(Ao(e))return _d(e);if(Oo(e))return Oy(e);if(ko(e))return Fy(e)}throw xo(e)}function Ay(e){return new N(t=>{let n=e[En]();if(I(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function xy(e){return new N(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Ry(e){return new N(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,bo)})}function Oy(e){return new N(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function _d(e){return new N(t=>{ky(e,t).catch(n=>t.error(n))})}function Fy(e){return _d(Fo(e))}function ky(e,t){var n,r,o,i;return yd(this,void 0,void 0,function*(){try{for(n=Dd(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.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}}t.complete()})}function ge(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function oa(e){return I(e?.lift)}function b(e){return t=>{if(oa(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function E(e,t,n,r,o){return new ia(e,t,n,r,o)}var ia=class extends Rt{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function Po(e,t=0){return b((n,r)=>{n.subscribe(E(r,o=>ge(r,e,()=>r.next(o),t),()=>ge(r,e,()=>r.complete(),t),o=>ge(r,e,()=>r.error(o),t)))})}function Lo(e,t=0){return b((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Ed(e,t){return R(e).pipe(Lo(t),Po(t))}function Id(e,t){return R(e).pipe(Lo(t),Po(t))}function bd(e,t){return new N(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function wd(e,t){return new N(n=>{let r;return ge(n,t,()=>{r=e[Ro](),ge(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>I(r?.return)&&r.return()})}function jo(e,t){if(!e)throw new Error("Iterable cannot be null");return new N(n=>{ge(n,t,()=>{let r=e[Symbol.asyncIterator]();ge(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Cd(e,t){return jo(Fo(e),t)}function Td(e,t){if(e!=null){if(No(e))return Ed(e,t);if(In(e))return bd(e,t);if(So(e))return Id(e,t);if(Ao(e))return jo(e,t);if(Oo(e))return wd(e,t);if(ko(e))return Cd(e,t)}throw xo(e)}function Ee(e,t){return t?Td(e,t):R(e)}function dt(...e){let t=He(e);return Ee(e,t)}function z(e,t){return b((n,r)=>{let o=0;n.subscribe(E(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Py}=Array,{getPrototypeOf:Ly,prototype:jy,keys:Vy}=Object;function Vo(e){if(e.length===1){let t=e[0];if(Py(t))return{args:t,keys:null};if(By(t)){let n=Vy(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function By(e){return e&&typeof e=="object"&&Ly(e)===jy}var{isArray:Hy}=Array;function Uy(e,t){return Hy(t)?e(...t):e(t)}function bn(e){return z(t=>Uy(e,t))}function Bo(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function $y(...e){let t=Mo(e),{args:n,keys:r}=Vo(e),o=new N(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l<s;l++){let d=!1;R(n[l]).subscribe(E(i,h=>{d||(d=!0,u--),a[l]=h},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?Bo(r,a):a),i.complete())}))}});return t?o.pipe(bn(t)):o}function de(e,t){return b((n,r)=>{let o=0;n.subscribe(E(r,i=>e.call(t,i,o++)&&r.next(i)))})}var kt=new N(e=>e.complete());function ft(e){return e<=0?()=>kt:b((t,n)=>{let r=0;t.subscribe(E(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function aa(e={}){let{connector:t=()=>new O,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,c,u=0,l=!1,d=!1,h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=c=void 0,l=d=!1},g=()=>{let m=s;f(),m?.unsubscribe()};return b((m,y)=>{u++,!d&&!l&&h();let v=c=c??t();y.add(()=>{u--,u===0&&!d&&!l&&(a=sa(g,o))}),v.subscribe(y),!s&&u>0&&(s=new Ze({next:j=>v.next(j),error:j=>{d=!0,h(),a=sa(f,n,j),v.error(j)},complete:()=>{l=!0,h(),a=sa(f,r),v.complete()}}),R(m).subscribe(s))})(i)}}function sa(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new Ze({next:()=>{r.unsubscribe(),e()}});return R(t(...n)).subscribe(r)}function Ho(e,t){return b((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(E(r,c=>{o?.unsubscribe();let u=0,l=i++;R(e(c,l)).subscribe(o=E(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function ca(e,t,n){let r=I(e)||t||n?{next:e,error:t,complete:n}:e;return r?b((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(E(i,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c)},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):te}function ua(){return b((e,t)=>{let n=null;e._refCount++;let r=E(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var lr=class extends N{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,oa(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new H;let n=this.getSubject();t.add(this.source.subscribe(E(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=H.EMPTY)}return t}refCount(){return ua()(this)}};var dr={now(){return(dr.delegate||Date).now()},delegate:void 0};var fr=class extends O{constructor(t=1/0,n=1/0,r=dr){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}};var Uo=class extends H{constructor(t,n){super()}schedule(t,n=0){return this}};var hr={setInterval(e,t,...n){let{delegate:r}=hr;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=hr;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var $o=class extends Uo{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let 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(t,n,r=0){return hr.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&hr.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}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:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,Nt(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var wn=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};wn.now=dr.now;var zo=class extends wn{constructor(t,n=wn.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var Pt=new zo($o),Md=Pt;function zy(e,t){let n=I(e)?e:()=>e,r=o=>o.error(n());return new N(t?o=>t.schedule(r,0,o):r)}function Sd(e){return!!e&&(e instanceof N||I(e.lift)&&I(e.subscribe))}var Lt=vn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Nd(e){return e instanceof Date&&!isNaN(e)}function la(...e){let t=He(e),n=Mo(e),{args:r,keys:o}=Vo(e);if(r.length===0)return Ee([],t);let i=new N(Gy(r,t,o?s=>Bo(o,s):te));return n?i.pipe(bn(n)):i}function Gy(e,t,n=te){return r=>{Ad(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)Ad(t,()=>{let u=Ee(e[c],t),l=!1;u.subscribe(E(r,d=>{i[c]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Ad(e,t,n){e?ge(n,e,t):t()}function xd(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,h=()=>{d&&!c.length&&!u&&t.complete()},f=m=>u<r?g(m):c.push(m),g=m=>{i&&t.next(m),u++;let y=!1;R(n(m,l++)).subscribe(E(t,v=>{o?.(v),i?f(v):t.next(v)},()=>{y=!0},void 0,()=>{if(y)try{for(u--;c.length&&u<r;){let v=c.shift();s?ge(t,s,()=>g(v)):g(v)}h()}catch(v){t.error(v)}}))};return e.subscribe(E(t,f,()=>{d=!0,h()})),()=>{a?.()}}function Ne(e,t,n=1/0){return I(t)?Ne((r,o)=>z((i,s)=>t(r,i,o,s))(R(e(r,o))),n):(typeof t=="number"&&(n=t),b((r,o)=>xd(r,o,e,n)))}function pr(e=1/0){return Ne(te,e)}function Rd(){return pr(1)}function ht(...e){return Rd()(Ee(e,He(e)))}function Wy(e){return new N(t=>{R(e()).subscribe(t)})}var qy=["addListener","removeListener"],Zy=["addEventListener","removeEventListener"],Yy=["on","off"];function da(e,t,n,r){if(I(n)&&(r=n,n=void 0),r)return da(e,t,n).pipe(bn(r));let[o,i]=Jy(e)?Zy.map(s=>a=>e[s](t,a,n)):Ky(e)?qy.map(Od(e,t)):Qy(e)?Yy.map(Od(e,t)):[];if(!o&&In(e))return Ne(s=>da(s,t,n))(R(e));if(!o)throw new TypeError("Invalid event target");return new N(s=>{let a=(...c)=>s.next(1<c.length?c:c[0]);return o(a),()=>i(a)})}function Od(e,t){return n=>r=>e[n](t,r)}function Ky(e){return I(e.addListener)&&I(e.removeListener)}function Qy(e){return I(e.on)&&I(e.off)}function Jy(e){return I(e.addEventListener)&&I(e.removeEventListener)}function Cn(e=0,t,n=Md){let r=-1;return t!=null&&(To(t)?n=t:r=t),new N(o=>{let i=Nd(e)?+e-n.now():e;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 Xy(...e){let t=He(e),n=gd(e,1/0),r=e;return r.length?r.length===1?R(r[0]):pr(n)(Ee(r,t)):kt}function Fd(e){return b((t,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let u=o;o=null,n.next(u)}s&&n.complete()},c=()=>{i=null,s&&n.complete()};t.subscribe(E(n,u=>{r=!0,o=u,i||R(e(u)).subscribe(i=E(n,a,c))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function Go(e,t=Pt){return Fd(()=>Cn(e,t))}function kd(e){return b((t,n)=>{let r=null,o=!1,i;r=t.subscribe(E(n,void 0,void 0,s=>{i=R(e(s,kd(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Pd(e,t,n,r,o){return(i,s)=>{let a=n,c=t,u=0;i.subscribe(E(s,l=>{let d=u++;c=a?e(c,l,d):(a=!0,l),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function fa(e,t){return I(t)?Ne(e,t,1):Ne(e,1)}function jt(e,t=Pt){return b((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let u=i;i=null,r.next(u)}};function c(){let u=s+e,l=t.now();if(l<u){o=this.schedule(void 0,u-l),r.add(o);return}a()}n.subscribe(E(r,u=>{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function gr(e){return b((t,n)=>{let r=!1;t.subscribe(E(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function Ld(){return b((e,t)=>{e.subscribe(E(t,At))})}function ha(e){return z(()=>e)}function pa(e,t){return t?n=>ht(t.pipe(ft(1),Ld()),n.pipe(pa(e))):Ne((n,r)=>R(e(n,r)).pipe(ft(1),ha(n)))}function ev(e,t=Pt){let n=Cn(e,t);return pa(()=>n)}function Wo(e,t=te){return e=e??tv,b((n,r)=>{let o,i=!0;n.subscribe(E(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function tv(e,t){return e===t}function qo(e=nv){return b((t,n)=>{let r=!1;t.subscribe(E(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function nv(){return new Lt}function Zo(e){return b((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function rv(e,t){let n=arguments.length>=2;return r=>r.pipe(e?de((o,i)=>e(o,i,r)):te,ft(1),n?gr(t):qo(()=>new Lt))}function ga(e){return e<=0?()=>kt:b((t,n)=>{let r=[];t.subscribe(E(n,o=>{r.push(o),e<r.length&&r.shift()},()=>{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function ov(e,t){let n=arguments.length>=2;return r=>r.pipe(e?de((o,i)=>e(o,i,r)):te,ga(1),n?gr(t):qo(()=>new Lt))}function jd(){return b((e,t)=>{let n,r=!1;e.subscribe(E(t,o=>{let i=n;n=o,r&&t.next([i,o]),r=!0}))})}function iv(e=1/0){let t;e&&typeof e=="object"?t=e:t={count:e};let{count:n=1/0,delay:r,resetOnSuccess:o=!1}=t;return n<=0?te:b((i,s)=>{let a=0,c,u=()=>{let l=!1;c=i.subscribe(E(s,d=>{o&&(a=0),s.next(d)},void 0,d=>{if(a++<n){let h=()=>{c?(c.unsubscribe(),c=null,u()):l=!0};if(r!=null){let f=typeof r=="number"?Cn(r):R(r(d,a)),g=E(s,()=>{g.unsubscribe(),h()},()=>{s.complete()});f.subscribe(g)}else h()}else s.error(d)})),l&&(c.unsubscribe(),c=null,u())};u()})}function sv(e,t){return b(Pd(e,t,arguments.length>=2,!0))}function Vd(e,t,n){let r,o=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:o=!1,scheduler:n}=e:r=e??1/0,aa({connector:()=>new fr(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function mr(e){return de((t,n)=>e<=n)}function Yo(...e){let t=He(e);return b((n,r)=>{(t?ht(e,n,t):ht(e,n)).subscribe(r)})}function Tn(e){return b((t,n)=>{R(e).subscribe(E(n,()=>n.complete(),At)),!n.closed&&t.subscribe(n)})}function av(e,t=!1){return b((n,r)=>{let o=0;n.subscribe(E(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete()}))})}var ma;function ya(){return ma}function Ye(e){let t=ma;return ma=e,t}var cv=Symbol("NotFound"),Ko=class extends Error{name="\u0275NotFound";constructor(t){super(t)}};function Mn(e){return e===cv||e?.name==="\u0275NotFound"}function ti(e,t){return Object.is(e,t)}var q=null,Qo=!1,va=1,uv=null,Z=Symbol("SIGNAL");function T(e){let t=q;return q=e,t}function ni(){return q}var pt={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,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Vt(e){if(Qo)throw new Error("");if(q===null)return;q.consumerOnSignalRead(e);let t=q.nextProducerIndex++;if(ii(q),t<q.producerNode.length&&q.producerNode[t]!==e&&vr(q)){let n=q.producerNode[t];oi(n,q.producerIndexOfThis[t])}q.producerNode[t]!==e&&(q.producerNode[t]=e,q.producerIndexOfThis[t]=vr(q)?Hd(e,q,t):0),q.producerLastReadVersion[t]=e.version}function Bd(){va++}function ri(e){if(!(vr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===va)){if(!e.producerMustRecompute(e)&&!Bt(e)){ei(e);return}e.producerRecomputeValue(e),ei(e)}}function Da(e){if(e.liveConsumerNode===void 0)return;let t=Qo;Qo=!0;try{for(let n of e.liveConsumerNode)n.dirty||lv(n)}finally{Qo=t}}function _a(){return q?.consumerAllowSignalWrites!==!1}function lv(e){e.dirty=!0,Da(e),e.consumerMarkedDirty?.(e)}function ei(e){e.dirty=!1,e.lastCleanEpoch=va}function Ke(e){return e&&(e.nextProducerIndex=0),T(e)}function gt(e,t){if(T(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(vr(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)oi(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Bt(e){ii(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(ri(n),r!==n.version))return!0}return!1}function Sn(e){if(ii(e),vr(e))for(let t=0;t<e.producerNode.length;t++)oi(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function Hd(e,t,n){if(Ud(e),e.liveConsumerNode.length===0&&$d(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=Hd(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function oi(e,t){if(Ud(e),e.liveConsumerNode.length===1&&$d(e))for(let r=0;r<e.producerNode.length;r++)oi(e.producerNode[r],e.producerIndexOfThis[r]);let n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){let r=e.liveConsumerIndexOfThis[t],o=e.liveConsumerNode[t];ii(o),o.producerIndexOfThis[r]=t}}function vr(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function ii(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Ud(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function $d(e){return e.producerNode!==void 0}function si(e){uv?.(e)}function Dr(e,t){let n=Object.create(dv);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(ri(n),Vt(n),n.value===yr)throw n.error;return n.value};return r[Z]=n,si(n),r}var Jo=Symbol("UNSET"),Xo=Symbol("COMPUTING"),yr=Symbol("ERRORED"),dv=X(x({},pt),{value:Jo,dirty:!0,error:null,equal:ti,kind:"computed",producerMustRecompute(e){return e.value===Jo||e.value===Xo},producerRecomputeValue(e){if(e.value===Xo)throw new Error("");let t=e.value;e.value=Xo;let n=Ke(e),r,o=!1;try{r=e.computation(),T(null),o=t!==Jo&&t!==yr&&r!==yr&&e.equal(t,r)}catch(i){r=yr,e.error=i}finally{gt(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function fv(){throw new Error}var zd=fv;function Gd(e){zd(e)}function Ea(e){zd=e}var hv=null;function Ia(e,t){let n=Object.create(_r);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Wd(n);return r[Z]=n,si(n),[r,s=>Nn(n,s),s=>ba(n,s)]}function Wd(e){return Vt(e),e.value}function Nn(e,t){_a()||Gd(e),e.equal(e.value,t)||(e.value=t,pv(e))}function ba(e,t){_a()||Gd(e),Nn(e,t(e.value))}var _r=X(x({},pt),{equal:ti,value:void 0,kind:"signal"});function pv(e){e.version++,Bd(),Da(e),hv?.(e)}function qd(e){let t=T(null);try{return e()}finally{T(t)}}var di="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",M=class extends Error{code;constructor(t,n){super(Cr(t,n)),this.code=t}};function gv(e){return`NG0${Math.abs(e)}`}function Cr(e,t){return`${gv(e)}${t?": "+t:""}`}var xn=globalThis;function V(e){for(let t in e)if(e[t]===V)return t;throw Error("")}function Qd(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function me(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(me).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
`);return r>=0?n.slice(0,r):n}function fi(e,t){return e?t?`${e} ${t}`:e:t||""}var mv=V({__forward_ref__:V});function Tr(e){return e.__forward_ref__=Tr,e.toString=function(){return me(this())},e}function Y(e){return ka(e)?e():e}function ka(e){return typeof e=="function"&&e.hasOwnProperty(mv)&&e.__forward_ref__===Tr}function Jd(e,t,n){e!=t&&Pa(n,e,t,"==")}function Pa(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(r==null?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function _(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function re(e){return{providers:e.providers||[],imports:e.imports||[]}}function Mr(e){return vv(e,hi)}function yv(e){return Mr(e)!==null}function vv(e,t){return e.hasOwnProperty(t)&&e[t]||null}function Dv(e){let t=e?.[hi]??null;return t||null}function Ca(e){return e&&e.hasOwnProperty(ci)?e[ci]:null}var hi=V({\u0275prov:V}),ci=V({\u0275inj:V}),D=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=_({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function La(e){return e&&!!e.\u0275providers}var ja=V({\u0275cmp:V}),Va=V({\u0275dir:V}),Ba=V({\u0275pipe:V}),Ha=V({\u0275mod:V}),Ir=V({\u0275fac:V}),Gt=V({__NG_ELEMENT_ID__:V}),Zd=V({__NG_ENV_ID__:V});function Sr(e){return typeof e=="string"?e:e==null?"":String(e)}function Xd(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Sr(e)}function Ua(e,t){throw new M(-200,e)}function pi(e,t){throw new M(-201,!1)}var Ta;function ef(){return Ta}function fe(e){let t=Ta;return Ta=e,t}function $a(e,t,n){let r=Mr(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;pi(e,"Injector")}var _v={},Ht=_v,Ma="__NG_DI_FLAG__",Sa=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=Ut(n)||0;try{return this.injector.get(t,r&8?null:Ht,r)}catch(o){if(Mn(o))return o;throw o}}},ui="ngTempTokenPath",Ev="ngTokenPath",Iv=/\n/gm,bv="\u0275",Yd="__source";function wv(e,t=0){let n=ya();if(n===void 0)throw new M(-203,!1);if(n===null)return $a(e,void 0,t);{let r=Cv(t),o=n.retrieve(e,r);if(Mn(o)){if(r.optional)return null;throw o}return o}}function B(e,t=0){return(ef()||wv)(Y(e),t)}function p(e,t){return B(e,Ut(t))}function Ut(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Cv(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Na(e){let t=[];for(let n=0;n<e.length;n++){let r=Y(e[n]);if(Array.isArray(r)){if(r.length===0)throw new M(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=Tv(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(B(o,i))}else t.push(B(r))}return t}function za(e,t){return e[Ma]=t,e.prototype[Ma]=t,e}function Tv(e){return e[Ma]}function Mv(e,t,n,r){let o=e[ui];throw t[Yd]&&o.unshift(t[Yd]),e.message=Sv(`
`+e.message,o,n,r),e[Ev]=o,e[ui]=null,e}function Sv(e,t,n,r=null){e=e&&e.charAt(0)===`
`&&e.charAt(1)==bv?e.slice(2):e;let o=me(t);if(Array.isArray(t))o=t.map(me).join(" -> ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):me(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Iv,`
`)}`}function mt(e,t){let n=e.hasOwnProperty(Ir);return n?e[Ir]:null}function tf(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function nf(e){return e.flat(Number.POSITIVE_INFINITY)}function gi(e,t){e.forEach(n=>Array.isArray(n)?gi(n,t):t(n))}function Ga(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Nr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function rf(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function of(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function mi(e,t,n){let r=Rn(e,t);return r>=0?e[r|1]=n:(r=~r,of(e,r,t,n)),r}function yi(e,t){let n=Rn(e,t);if(n>=0)return e[n|1]}function Rn(e,t){return Nv(e,t,1)}function Nv(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var Ae={},ne=[],Wt=new D(""),Wa=new D("",-1),qa=new D(""),br=class{get(t,n=Ht){if(n===Ht)throw new Ko(`NullInjectorError: No provider for ${me(t)}!`);return n}};function Za(e){return e[Ha]||null}function Xe(e){return e[ja]||null}function vi(e){return e[Va]||null}function sf(e){return e[Ba]||null}function Di(e){return{\u0275providers:e}}function af(...e){return{\u0275providers:Ya(!0,e),\u0275fromNgModule:!0}}function Ya(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return gi(t,s=>{let a=s;li(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&cf(o,i),n}function cf(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Ka(o,i=>{t(i,r)})}}function li(e,t,n,r){if(e=Y(e),!e)return!1;let o=null,i=Ca(e),s=!i&&Xe(e);if(!i&&!s){let c=e.ngModule;if(i=Ca(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)li(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{gi(i.imports,l=>{li(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&cf(u,t)}if(!a){let u=mt(o)||(()=>new o);t({provide:o,useFactory:u,deps:ne},o),t({provide:qa,useValue:o,multi:!0},o),t({provide:Wt,useValue:()=>B(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;Ka(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function Ka(e,t){for(let n of e)La(n)&&(n=n.\u0275providers),Array.isArray(n)?Ka(n,t):t(n)}var Av=V({provide:String,useValue:V});function uf(e){return e!==null&&typeof e=="object"&&Av in e}function xv(e){return!!(e&&e.useExisting)}function Rv(e){return!!(e&&e.useFactory)}function $t(e){return typeof e=="function"}function lf(e){return!!e.useClass}var Qa=new D(""),ai={},Kd={},wa;function On(){return wa===void 0&&(wa=new br),wa}var se=class{},zt=class extends se{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,xa(t,s=>this.processProvider(s)),this.records.set(Wa,An(void 0,this)),o.has("environment")&&this.records.set(se,An(void 0,this));let i=this.records.get(Qa);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(qa,ne,{self:!0}))}retrieve(t,n){let r=Ut(n)||0;try{return this.get(t,Ht,r)}catch(o){if(Mn(o))return o;throw o}}destroy(){Er(this),this._destroyed=!0;let t=T(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),T(t)}}onDestroy(t){return Er(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Er(this);let n=Ye(this),r=fe(void 0),o;try{return t()}finally{Ye(n),fe(r)}}get(t,n=Ht,r){if(Er(this),t.hasOwnProperty(Zd))return t[Zd](this);let o=Ut(r),i,s=Ye(this),a=fe(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=Lv(t)&&Mr(t);l&&this.injectableDefInScope(l)?u=An(Aa(t),ai):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let c=o&2?On():this.parent;return n=o&8&&n===Ht?null:n,c.get(t,n)}catch(c){if(Mn(c)){if((c[ui]=c[ui]||[]).unshift(me(t)),s)throw c;return Mv(c,t,"R3InjectorError",this.source)}else throw c}finally{fe(a),Ye(s)}}resolveInjectorInitializers(){let t=T(null),n=Ye(this),r=fe(void 0),o;try{let i=this.get(Wt,ne,{self:!0});for(let s of i)s()}finally{Ye(n),fe(r),T(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(me(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=Y(t);let n=$t(t)?t:Y(t&&t.provide),r=Fv(t);if(!$t(t)&&t.multi===!0){let o=this.records.get(n);o||(o=An(void 0,ai,!0),o.factory=()=>Na(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=T(null);try{return n.value===Kd?Ua(me(t)):n.value===ai&&(n.value=Kd,n.value=n.factory()),typeof n.value=="object"&&n.value&&Pv(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{T(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Y(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Aa(e){let t=Mr(e),n=t!==null?t.factory:mt(e);if(n!==null)return n;if(e instanceof D)throw new M(204,!1);if(e instanceof Function)return Ov(e);throw new M(204,!1)}function Ov(e){if(e.length>0)throw new M(204,!1);let n=Dv(e);return n!==null?()=>n.factory(e):()=>new e}function Fv(e){if(uf(e))return An(void 0,e.useValue);{let t=Ja(e);return An(t,ai)}}function Ja(e,t,n){let r;if($t(e)){let o=Y(e);return mt(o)||Aa(o)}else if(uf(e))r=()=>Y(e.useValue);else if(Rv(e))r=()=>e.useFactory(...Na(e.deps||[]));else if(xv(e))r=()=>B(Y(e.useExisting));else{let o=Y(e&&(e.useClass||e.provide));if(kv(e))r=()=>new o(...Na(e.deps));else return mt(o)||Aa(o)}return r}function Er(e){if(e.destroyed)throw new M(205,!1)}function An(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function kv(e){return!!e.deps}function Pv(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Lv(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function xa(e,t){for(let n of e)Array.isArray(n)?xa(n,t):n&&La(n)?xa(n.\u0275providers,t):t(n)}function Fn(e,t){let n;e instanceof zt?(Er(e),n=e):n=new Sa(e);let r,o=Ye(n),i=fe(void 0);try{return t()}finally{Ye(o),fe(i)}}function Xa(){return ef()!==void 0||ya()!=null}function ec(e){if(!Xa())throw new M(-203,!1)}var xe=0,S=1,w=2,K=3,be=4,ae=5,qt=6,kn=7,G=8,Zt=9,Ue=10,P=11,Pn=12,tc=13,Yt=14,ce=15,vt=16,Kt=17,$e=18,Ar=19,nc=20,Qe=21,_i=22,et=23,ve=24,Qt=25,$=26,df=1,rc=6,Dt=7,xr=8,Jt=9,ee=10;function ze(e){return Array.isArray(e)&&typeof e[df]=="object"}function Re(e){return Array.isArray(e)&&e[df]===!0}function Ei(e){return(e.flags&4)!==0}function _t(e){return e.componentOffset>-1}function Rr(e){return(e.flags&1)===1}function Oe(e){return!!e.template}function Ln(e){return(e[w]&512)!==0}function Xt(e){return(e[w]&256)===256}var oc="svg",ff="math";function De(e){for(;Array.isArray(e);)e=e[xe];return e}function ic(e,t){return De(t[e])}function Fe(e,t){return De(t[e.index])}function Or(e,t){return e.data[t]}function sc(e,t){return e[t]}function ac(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function we(e,t){let n=t[e];return ze(n)?n:n[xe]}function hf(e){return(e[w]&4)===4}function Ii(e){return(e[w]&128)===128}function pf(e){return Re(e[K])}function Ce(e,t){return t==null?null:e[t]}function cc(e){e[Kt]=0}function uc(e){e[w]&1024||(e[w]|=1024,Ii(e)&&Et(e))}function gf(e,t){for(;e>0;)t=t[Yt],e--;return t}function Fr(e){return!!(e[w]&9216||e[ve]?.dirty)}function bi(e){e[Ue].changeDetectionScheduler?.notify(8),e[w]&64&&(e[w]|=1024),Fr(e)&&Et(e)}function Et(e){e[Ue].changeDetectionScheduler?.notify(0);let t=yt(e);for(;t!==null&&!(t[w]&8192||(t[w]|=8192,!Ii(t)));)t=yt(t)}function lc(e,t){if(Xt(e))throw new M(911,!1);e[Qe]===null&&(e[Qe]=[]),e[Qe].push(t)}function mf(e,t){if(e[Qe]===null)return;let n=e[Qe].indexOf(t);n!==-1&&e[Qe].splice(n,1)}function yt(e){let t=e[K];return Re(t)?t[K]:t}function dc(e){return e[kn]??=[]}function fc(e){return e.cleanup??=[]}function yf(e,t,n,r){let o=dc(t);o.push(n),e.firstCreatePass&&fc(e).push(r,o.length-1)}var A={lFrame:Rf(null),bindingsEnabled:!0,skipHydrationRootTNode:null},kr=function(e){return e[e.Off=0]="Off",e[e.Exhaustive=1]="Exhaustive",e[e.OnlyDirtyViews=2]="OnlyDirtyViews",e}(kr||{}),jv=0,Ra=!1;function vf(){return A.lFrame.elementDepthCount}function Df(){A.lFrame.elementDepthCount++}function _f(){A.lFrame.elementDepthCount--}function wi(){return A.bindingsEnabled}function hc(){return A.skipHydrationRootTNode!==null}function Ef(e){return A.skipHydrationRootTNode===e}function If(){A.skipHydrationRootTNode=null}function C(){return A.lFrame.lView}function L(){return A.lFrame.tView}function bf(e){return A.lFrame.contextLView=e,e[G]}function wf(e){return A.lFrame.contextLView=null,e}function oe(){let e=pc();for(;e!==null&&e.type===64;)e=e.parent;return e}function pc(){return A.lFrame.currentTNode}function jn(){let e=A.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function ke(e,t){let n=A.lFrame;n.currentTNode=e,n.isParent=t}function Ci(){return A.lFrame.isParent}function Ti(){A.lFrame.isParent=!1}function Cf(){return A.lFrame.contextLView}function gc(e){Pa("Must never be called in production mode"),jv=e}function mc(){return Ra}function Vn(e){let t=Ra;return Ra=e,t}function Pr(){let e=A.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Tf(e){return A.lFrame.bindingIndex=e}function en(){return A.lFrame.bindingIndex++}function yc(e){let t=A.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Mf(){return A.lFrame.inI18n}function vc(e){A.lFrame.inI18n=e}function Sf(e,t){let n=A.lFrame;n.bindingIndex=n.bindingRootIndex=e,Mi(t)}function Nf(){return A.lFrame.currentDirectiveIndex}function Mi(e){A.lFrame.currentDirectiveIndex=e}function Af(e){let t=A.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Si(){return A.lFrame.currentQueryIndex}function Lr(e){A.lFrame.currentQueryIndex=e}function Vv(e){let t=e[S];return t.type===2?t.declTNode:t.type===1?e[ae]:null}function Dc(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=Vv(i),o===null||(i=i[Yt],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=A.lFrame=xf();return r.currentTNode=t,r.lView=e,!0}function Ni(e){let t=xf(),n=e[S];A.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function xf(){let e=A.lFrame,t=e===null?null:e.child;return t===null?Rf(e):t}function Rf(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Of(){let e=A.lFrame;return A.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var _c=Of;function Ai(){let e=Of();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Ff(e){return(A.lFrame.contextLView=gf(e,A.lFrame.contextLView))[G]}function tt(){return A.lFrame.selectedIndex}function It(e){A.lFrame.selectedIndex=e}function xi(){let e=A.lFrame;return Or(e.tView,e.selectedIndex)}function kf(){A.lFrame.currentNamespace=oc}function Pf(){Bv()}function Bv(){A.lFrame.currentNamespace=null}function Lf(){return A.lFrame.currentNamespace}var jf=!0;function Bn(){return jf}function Hn(e){jf=e}function Oa(e,t=null,n=null,r){let o=Ec(e,t,n,r);return o.resolveInjectorInitializers(),o}function Ec(e,t=null,n=null,r,o=new Set){let i=[n||ne,af(e)];return r=r||(typeof e=="object"?void 0:me(e)),new zt(i,t||On(),r||null,o)}var Q=class e{static THROW_IF_NOT_FOUND=Ht;static NULL=new br;static create(t,n){if(Array.isArray(t))return Oa({name:""},n,t,"");{let r=t.name??"";return Oa({name:r},t.parent,t.providers,r)}}static \u0275prov=_({token:e,providedIn:"any",factory:()=>B(Wa)});static __NG_ELEMENT_ID__=-1},W=new D(""),nt=(()=>{class e{static __NG_ELEMENT_ID__=Hv;static __NG_ENV_ID__=n=>n}return e})(),wr=class extends nt{_lView;constructor(t){super(),this._lView=t}get destroyed(){return Xt(this._lView)}onDestroy(t){let n=this._lView;return lc(n,t),()=>mf(n,t)}};function Hv(){return new wr(C())}var Je=class{_console=console;handleError(t){this._console.error("ERROR",t)}},Pe=new D("",{providedIn:"root",factory:()=>{let e=p(se),t;return n=>{t??=e.get(Je),t.handleError(n)}}}),Vf={provide:Wt,useValue:()=>void p(Je),multi:!0};function jr(e){return typeof e=="function"&&e[Z]!==void 0}function Ge(e,t){let[n,r,o]=Ia(e,t?.equal),i=n,s=i[Z];return i.set=r,i.update=o,i.asReadonly=Ic.bind(i),i}function Ic(){let e=this[Z];if(e.readonlyFn===void 0){let t=()=>this();t[Z]=e,e.readonlyFn=t}return e.readonlyFn}var Ie=class{},Ri=new D("",{providedIn:"root",factory:()=>!1});var bc=new D(""),wc=new D("");var tn=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=Uv}return e})();function Uv(){return new tn(C(),oe())}var nn=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new Ot(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new N(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=_({token:e,providedIn:"root",factory:()=>new e})}return e})(),Un=(()=>{class e{internalPendingTasks=p(nn);scheduler=p(Ie);errorHandler=p(Pe);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n))}}run(n){let r=this.add();n().catch(this.errorHandler).finally(r)}static \u0275prov=_({token:e,providedIn:"root",factory:()=>new e})}return e})();function rn(...e){}var Vr=(()=>{class e{static \u0275prov=_({token:e,providedIn:"root",factory:()=>new Fa})}return e})(),Fa=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=