diff --git a/404.html b/404.html index 1e52dce..8829f11 100644 --- a/404.html +++ b/404.html @@ -10,5 +10,5 @@ - + diff --git a/index.html b/index.html index 1e52dce..8829f11 100644 --- a/index.html +++ b/index.html @@ -10,5 +10,5 @@ - + diff --git a/main-O5RCYCRO.js b/main-DR4NY4KZ.js similarity index 56% rename from main-O5RCYCRO.js rename to main-DR4NY4KZ.js index 742d2b5..25baec5 100644 --- a/main-O5RCYCRO.js +++ b/main-DR4NY4KZ.js @@ -1,8 +1,8 @@ -var bE=Object.defineProperty,_E=Object.defineProperties;var IE=Object.getOwnPropertyDescriptors;var Mo=Object.getOwnPropertySymbols;var dh=Object.prototype.hasOwnProperty,fh=Object.prototype.propertyIsEnumerable;var uh=(t,e,r)=>e in t?bE(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,E=(t,e)=>{for(var r in e||={})dh.call(e,r)&&uh(t,r,e[r]);if(Mo)for(var r of Mo(e))fh.call(e,r)&&uh(t,r,e[r]);return t},K=(t,e)=>_E(t,IE(e));var _l=(t,e)=>{var r={};for(var n in t)dh.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&Mo)for(var n of Mo(t))e.indexOf(n)<0&&fh.call(t,n)&&(r[n]=t[n]);return r};var To=(t,e,r)=>new Promise((n,i)=>{var o=l=>{try{a(r.next(l))}catch(c){i(c)}},s=l=>{try{a(r.throw(l))}catch(c){i(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,s);a((r=r.apply(t,e)).next())});function hh(t,e){return Object.is(t,e)}var fe=null,Ao=!1,No=1,tn=Symbol("SIGNAL");function G(t){let e=fe;return fe=t,e}function ph(){return fe}var si={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 Ml(t){if(Ao)throw new Error("");if(fe===null)return;fe.consumerOnSignalRead(t);let e=fe.nextProducerIndex++;if(Po(fe),et.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Al(t){Po(t);for(let e=0;e0}function Po(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Dh(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Eh(t){return t.producerNode!==void 0}function wh(t){let e=Object.create(TE);e.computation=t;let r=()=>{if(gh(e),Ml(e),e.value===xo)throw e.error;return e.value};return r[tn]=e,r}var Il=Symbol("UNSET"),Sl=Symbol("COMPUTING"),xo=Symbol("ERRORED"),TE=K(E({},si),{value:Il,dirty:!0,error:null,equal:hh,producerMustRecompute(t){return t.value===Il||t.value===Sl},producerRecomputeValue(t){if(t.value===Sl)throw new Error("Detected cycle in computations.");let e=t.value;t.value=Sl;let r=Ro(t),n;try{n=t.computation()}catch(i){n=xo,t.error=i}finally{Tl(t,r)}if(e!==Il&&e!==xo&&n!==xo&&t.equal(e,n)){t.value=e;return}t.value=n,t.version++}});function AE(){throw new Error}var Ch=AE;function bh(){Ch()}function _h(t){Ch=t}var NE=null;function Ih(t){let e=Object.create(Mh);e.value=t;let r=()=>(Ml(e),e.value);return r[tn]=e,r}function xl(t,e){yh()||bh(),t.equal(t.value,e)||(t.value=e,xE(t))}function Sh(t,e){yh()||bh(),xl(t,e(t.value))}var Mh=K(E({},si),{equal:hh,value:void 0});function xE(t){t.version++,SE(),mh(t),NE?.()}function L(t){return typeof t=="function"}function dr(t){let r=t(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Fo=dr(t=>function(r){t(this),this.message=r?`${r.length} errors occurred during unsubscription: +var SE=Object.defineProperty,ME=Object.defineProperties;var TE=Object.getOwnPropertyDescriptors;var Mo=Object.getOwnPropertySymbols;var dh=Object.prototype.hasOwnProperty,fh=Object.prototype.propertyIsEnumerable;var uh=(t,e,r)=>e in t?SE(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,E=(t,e)=>{for(var r in e||={})dh.call(e,r)&&uh(t,r,e[r]);if(Mo)for(var r of Mo(e))fh.call(e,r)&&uh(t,r,e[r]);return t},K=(t,e)=>ME(t,TE(e));var _l=(t,e)=>{var r={};for(var n in t)dh.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&Mo)for(var n of Mo(t))e.indexOf(n)<0&&fh.call(t,n)&&(r[n]=t[n]);return r};var To=(t,e,r)=>new Promise((n,i)=>{var o=l=>{try{a(r.next(l))}catch(c){i(c)}},s=l=>{try{a(r.throw(l))}catch(c){i(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,s);a((r=r.apply(t,e)).next())});function hh(t,e){return Object.is(t,e)}var he=null,Ao=!1,No=1,tn=Symbol("SIGNAL");function G(t){let e=he;return he=t,e}function ph(){return he}var si={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 Ml(t){if(Ao)throw new Error("");if(he===null)return;he.consumerOnSignalRead(t);let e=he.nextProducerIndex++;if(Po(he),et.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Al(t){Po(t);for(let e=0;e0}function Po(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Dh(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Eh(t){return t.producerNode!==void 0}function wh(t){let e=Object.create(xE);e.computation=t;let r=()=>{if(gh(e),Ml(e),e.value===xo)throw e.error;return e.value};return r[tn]=e,r}var Il=Symbol("UNSET"),Sl=Symbol("COMPUTING"),xo=Symbol("ERRORED"),xE=K(E({},si),{value:Il,dirty:!0,error:null,equal:hh,producerMustRecompute(t){return t.value===Il||t.value===Sl},producerRecomputeValue(t){if(t.value===Sl)throw new Error("Detected cycle in computations.");let e=t.value;t.value=Sl;let r=Ro(t),n;try{n=t.computation()}catch(i){n=xo,t.error=i}finally{Tl(t,r)}if(e!==Il&&e!==xo&&n!==xo&&t.equal(e,n)){t.value=e;return}t.value=n,t.version++}});function RE(){throw new Error}var Ch=RE;function bh(){Ch()}function _h(t){Ch=t}var OE=null;function Ih(t){let e=Object.create(Mh);e.value=t;let r=()=>(Ml(e),e.value);return r[tn]=e,r}function xl(t,e){yh()||bh(),t.equal(t.value,e)||(t.value=e,PE(t))}function Sh(t,e){yh()||bh(),xl(t,e(t.value))}var Mh=K(E({},si),{equal:hh,value:void 0});function PE(t){t.version++,AE(),mh(t),OE?.()}function L(t){return typeof t=="function"}function dr(t){let r=t(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Fo=dr(t=>function(r){t(this),this.message=r?`${r.length} errors occurred during unsubscription: ${r.map((n,i)=>`${i+1}) ${n.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=r});function On(t,e){if(t){let r=t.indexOf(e);0<=r&&t.splice(r,1)}}var se=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let o of r)o.remove(this);else r.remove(this);let{initialTeardown:n}=this;if(L(n))try{n()}catch(o){e=o instanceof Fo?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{Th(o)}catch(s){e=e??[],s instanceof Fo?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Fo(e)}}add(e){var r;if(e&&e!==this)if(this.closed)Th(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}}_hasParent(e){let{_parentage:r}=this;return r===e||Array.isArray(r)&&r.includes(e)}_addParent(e){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e}_removeParent(e){let{_parentage:r}=this;r===e?this._parentage=null:Array.isArray(r)&&On(r,e)}remove(e){let{_finalizers:r}=this;r&&On(r,e),e instanceof t&&e._removeParent(this)}};se.EMPTY=(()=>{let t=new se;return t.closed=!0,t})();var Rl=se.EMPTY;function ko(t){return t instanceof se||t&&"closed"in t&&L(t.remove)&&L(t.add)&&L(t.unsubscribe)}function Th(t){L(t)?t():t.unsubscribe()}var ot={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var fr={setTimeout(t,e,...r){let{delegate:n}=fr;return n?.setTimeout?n.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=fr;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Lo(t){fr.setTimeout(()=>{let{onUnhandledError:e}=ot;if(e)e(t);else throw t})}function ai(){}var Ah=Ol("C",void 0,void 0);function Nh(t){return Ol("E",void 0,t)}function xh(t){return Ol("N",t,void 0)}function Ol(t,e,r){return{kind:t,value:e,error:r}}var Pn=null;function hr(t){if(ot.useDeprecatedSynchronousErrorHandling){let e=!Pn;if(e&&(Pn={errorThrown:!1,error:null}),t(),e){let{errorThrown:r,error:n}=Pn;if(Pn=null,r)throw n}}else t()}function Rh(t){ot.useDeprecatedSynchronousErrorHandling&&Pn&&(Pn.errorThrown=!0,Pn.error=t)}var Fn=class extends se{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,ko(e)&&e.add(this)):this.destination=PE}static create(e,r,n){return new pr(e,r,n)}next(e){this.isStopped?Fl(xh(e),this):this._next(e)}error(e){this.isStopped?Fl(Nh(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Fl(Ah,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()}}},RE=Function.prototype.bind;function Pl(t,e){return RE.call(t,e)}var kl=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(n){jo(n)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(n){jo(n)}else jo(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){jo(r)}}},pr=class extends Fn{constructor(e,r,n){super();let i;if(L(e)||!e)i={next:e??void 0,error:r??void 0,complete:n??void 0};else{let o;this&&ot.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&Pl(e.next,o),error:e.error&&Pl(e.error,o),complete:e.complete&&Pl(e.complete,o)}):i=e}this.destination=new kl(i)}};function jo(t){ot.useDeprecatedSynchronousErrorHandling?Rh(t):Lo(t)}function OE(t){throw t}function Fl(t,e){let{onStoppedNotification:r}=ot;r&&fr.setTimeout(()=>r(t,e))}var PE={closed:!0,next:ai,error:OE,complete:ai};var gr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ae(t){return t}function Ll(...t){return jl(t)}function jl(t){return t.length===0?Ae:t.length===1?t[0]:function(r){return t.reduce((n,i)=>i(n),r)}}var q=(()=>{class t{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new t;return n.source=this,n.operator=r,n}subscribe(r,n,i){let o=kE(r)?r:new pr(r,n,i);return hr(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return n=Oh(n),new n((i,o)=>{let s=new pr({next:a=>{try{r(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[gr](){return this}pipe(...r){return jl(r)(this)}toPromise(r){return r=Oh(r),new r((n,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>n(o))})}}return t.create=e=>new t(e),t})();function Oh(t){var e;return(e=t??ot.Promise)!==null&&e!==void 0?e:Promise}function FE(t){return t&&L(t.next)&&L(t.error)&&L(t.complete)}function kE(t){return t&&t instanceof Fn||FE(t)&&ko(t)}function Vl(t){return L(t?.lift)}function V(t){return e=>{if(Vl(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function U(t,e,r,n,i){return new Ul(t,e,r,n,i)}var Ul=class extends Fn{constructor(e,r,n,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(l){e.error(l)}}:super._next,this._error=i?function(a){try{i(a)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function mr(){return V((t,e)=>{let r=null;t._refCount++;let n=U(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){r=null;return}let i=t._connection,o=r;r=null,i&&(!o||i===o)&&i.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(r=t.connect())})}var yr=class extends q{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,Vl(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 se;let r=this.getSubject();e.add(this.source.subscribe(U(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=se.EMPTY)}return e}refCount(){return mr()(this)}};var Ph=dr(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var le=(()=>{class t extends q{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new Vo(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new Ph}next(r){hr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){hr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){hr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:n,isStopped:i,observers:o}=this;return n||i?Rl:(this.currentObservers=null,o.push(r),new se(()=>{this.currentObservers=null,On(o,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:i,isStopped:o}=this;n?r.error(i):o&&r.complete()}asObservable(){let r=new q;return r.source=this,r}}return t.create=(e,r)=>new Vo(e,r),t})(),Vo=class extends le{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)}error(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)}complete(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)}_subscribe(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:Rl}};var ve=class extends le{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let r=super._subscribe(e);return!r.closed&&e.next(this._value),r}getValue(){let{hasError:e,thrownError:r,_value:n}=this;if(e)throw r;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var Bl={now(){return(Bl.delegate||Date).now()},delegate:void 0};var Uo=class extends se{constructor(e,r){super()}schedule(e,r=0){return this}};var li={setInterval(t,e,...r){let{delegate:n}=li;return n?.setInterval?n.setInterval(t,e,...r):setInterval(t,e,...r)},clearInterval(t){let{delegate:e}=li;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var Bo=class extends Uo{constructor(e,r){super(e,r),this.scheduler=e,this.work=r,this.pending=!1}schedule(e,r=0){var n;if(this.closed)return this;this.state=e;let i=this.id,o=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(o,i,r)),this.pending=!0,this.delay=r,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(o,this.id,r),this}requestAsyncId(e,r,n=0){return li.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,r,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return r;r!=null&&li.clearInterval(r)}execute(e,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,r);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,r){let n=!1,i;try{this.work(e)}catch(o){n=!0,i=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){let{id:e,scheduler:r}=this,{actions:n}=r;this.work=this.state=this.scheduler=null,this.pending=!1,On(n,this),e!=null&&(this.id=this.recycleAsyncId(r,e,null)),this.delay=null,super.unsubscribe()}}};var vr=class t{constructor(e,r=t.now){this.schedulerActionCtor=e,this.now=r}schedule(e,r=0,n){return new this.schedulerActionCtor(this,e).schedule(n,r)}};vr.now=Bl.now;var $o=class extends vr{constructor(e,r=vr.now){super(e,r),this.actions=[],this._active=!1}flush(e){let{actions:r}=this;if(this._active){r.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,n){for(;e=r.shift();)e.unsubscribe();throw n}}};var Fh=new $o(Bo);var Ue=new q(t=>t.complete());function kh(t){return t&&L(t.schedule)}function Lh(t){return t[t.length-1]}function Ho(t){return L(Lh(t))?t.pop():void 0}function Et(t){return kh(Lh(t))?t.pop():void 0}function Vh(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(u){try{c(n.next(u))}catch(d){s(d)}}function l(u){try{c(n.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):i(u.value).then(a,l)}c((n=n.apply(t,e||[])).next())})}function jh(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function kn(t){return this instanceof kn?(this.v=t,this):new kn(t)}function Uh(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,o=[];return i={},a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(f){return function(p){return Promise.resolve(p).then(f,d)}}function a(f,p){n[f]&&(i[f]=function(g){return new Promise(function(y,D){o.push([f,g,y,D])>1||l(f,g)})},p&&(i[f]=p(i[f])))}function l(f,p){try{c(n[f](p))}catch(g){h(o[0][3],g)}}function c(f){f.value instanceof kn?Promise.resolve(f.value.v).then(u,d):h(o[0][2],f)}function u(f){l("next",f)}function d(f){l("throw",f)}function h(f,p){f(p),o.shift(),o.length&&l(o[0][0],o[0][1])}}function Bh(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof jh=="function"?jh(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(s){return new Promise(function(a,l){s=t[o](s),i(a,l,s.done,s.value)})}}function i(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}}var zo=t=>t&&typeof t.length=="number"&&typeof t!="function";function Go(t){return L(t?.then)}function qo(t){return L(t[gr])}function Wo(t){return Symbol.asyncIterator&&L(t?.[Symbol.asyncIterator])}function Ko(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 LE(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Qo=LE();function Zo(t){return L(t?.[Qo])}function Yo(t){return Uh(this,arguments,function*(){let r=t.getReader();try{for(;;){let{value:n,done:i}=yield kn(r.read());if(i)return yield kn(void 0);yield yield kn(n)}}finally{r.releaseLock()}})}function Jo(t){return L(t?.getReader)}function ce(t){if(t instanceof q)return t;if(t!=null){if(qo(t))return jE(t);if(zo(t))return VE(t);if(Go(t))return UE(t);if(Wo(t))return $h(t);if(Zo(t))return BE(t);if(Jo(t))return $E(t)}throw Ko(t)}function jE(t){return new q(e=>{let r=t[gr]();if(L(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function VE(t){return new q(e=>{for(let r=0;r{t.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,Lo)})}function BE(t){return new q(e=>{for(let r of t)if(e.next(r),e.closed)return;e.complete()})}function $h(t){return new q(e=>{HE(t,e).catch(r=>e.error(r))})}function $E(t){return $h(Yo(t))}function HE(t,e){var r,n,i,o;return Vh(this,void 0,void 0,function*(){try{for(r=Bh(t);n=yield r.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){i={error:s}}finally{try{n&&!n.done&&(o=r.return)&&(yield o.call(r))}finally{if(i)throw i.error}}e.complete()})}function ke(t,e,r,n=0,i=!1){let o=e.schedule(function(){r(),i?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!i)return o}function Xo(t,e=0){return V((r,n)=>{r.subscribe(U(n,i=>ke(n,t,()=>n.next(i),e),()=>ke(n,t,()=>n.complete(),e),i=>ke(n,t,()=>n.error(i),e)))})}function es(t,e=0){return V((r,n)=>{n.add(t.schedule(()=>r.subscribe(n),e))})}function Hh(t,e){return ce(t).pipe(es(e),Xo(e))}function zh(t,e){return ce(t).pipe(es(e),Xo(e))}function Gh(t,e){return new q(r=>{let n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function qh(t,e){return new q(r=>{let n;return ke(r,e,()=>{n=t[Qo](),ke(r,e,()=>{let i,o;try{({value:i,done:o}=n.next())}catch(s){r.error(s);return}o?r.complete():r.next(i)},0,!0)}),()=>L(n?.return)&&n.return()})}function ts(t,e){if(!t)throw new Error("Iterable cannot be null");return new q(r=>{ke(r,e,()=>{let n=t[Symbol.asyncIterator]();ke(r,e,()=>{n.next().then(i=>{i.done?r.complete():r.next(i.value)})},0,!0)})})}function Wh(t,e){return ts(Yo(t),e)}function Kh(t,e){if(t!=null){if(qo(t))return Hh(t,e);if(zo(t))return Gh(t,e);if(Go(t))return zh(t,e);if(Wo(t))return ts(t,e);if(Zo(t))return qh(t,e);if(Jo(t))return Wh(t,e)}throw Ko(t)}function re(t,e){return e?Kh(t,e):ce(t)}function x(...t){let e=Et(t);return re(t,e)}function Dr(t,e){let r=L(t)?t:()=>t,n=i=>i.error(r());return new q(e?i=>e.schedule(n,0,i):n)}function $l(t){return!!t&&(t instanceof q||L(t.lift)&&L(t.subscribe))}var Ft=dr(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function R(t,e){return V((r,n)=>{let i=0;r.subscribe(U(n,o=>{n.next(t.call(e,o,i++))}))})}var{isArray:zE}=Array;function GE(t,e){return zE(e)?t(...e):t(e)}function ns(t){return R(e=>GE(t,e))}var{isArray:qE}=Array,{getPrototypeOf:WE,prototype:KE,keys:QE}=Object;function rs(t){if(t.length===1){let e=t[0];if(qE(e))return{args:e,keys:null};if(ZE(e)){let r=QE(e);return{args:r.map(n=>e[n]),keys:r}}}return{args:t,keys:null}}function ZE(t){return t&&typeof t=="object"&&WE(t)===KE}function is(t,e){return t.reduce((r,n,i)=>(r[n]=e[i],r),{})}function os(...t){let e=Et(t),r=Ho(t),{args:n,keys:i}=rs(t);if(n.length===0)return re([],e);let o=new q(YE(n,e,i?s=>is(i,s):Ae));return r?o.pipe(ns(r)):o}function YE(t,e,r=Ae){return n=>{Qh(e,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let l=0;l{let c=re(t[l],e),u=!1;c.subscribe(U(n,d=>{o[l]=d,u||(u=!0,a--),a||n.next(r(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}function Qh(t,e,r){t?ke(r,t,e):e()}function Zh(t,e,r,n,i,o,s,a){let l=[],c=0,u=0,d=!1,h=()=>{d&&!l.length&&!c&&e.complete()},f=g=>c{o&&e.next(g),c++;let y=!1;ce(r(g,u++)).subscribe(U(e,D=>{i?.(D),o?f(D):e.next(D)},()=>{y=!0},void 0,()=>{if(y)try{for(c--;l.length&&cp(D)):p(D)}h()}catch(D){e.error(D)}}))};return t.subscribe(U(e,f,()=>{d=!0,h()})),()=>{a?.()}}function he(t,e,r=1/0){return L(e)?he((n,i)=>R((o,s)=>e(n,o,i,s))(ce(t(n,i))),r):(typeof e=="number"&&(r=e),V((n,i)=>Zh(n,i,t,r)))}function Hl(t=1/0){return he(Ae,t)}function ss(){return Hl(1)}function Er(...t){return ss()(re(t,Et(t)))}function as(t){return new q(e=>{ce(t()).subscribe(e)})}function zl(...t){let e=Ho(t),{args:r,keys:n}=rs(t),i=new q(o=>{let{length:s}=r;if(!s){o.complete();return}let a=new Array(s),l=s,c=s;for(let u=0;u{d||(d=!0,c--),a[u]=h},()=>l--,void 0,()=>{(!l||!d)&&(c||o.next(n?is(n,a):a),o.complete())}))}});return e?i.pipe(ns(e)):i}function me(t,e){return V((r,n)=>{let i=0;r.subscribe(U(n,o=>t.call(e,o,i++)&&n.next(o)))})}function nn(t){return V((e,r)=>{let n=null,i=!1,o;n=e.subscribe(U(r,void 0,void 0,s=>{o=ce(t(s,nn(t)(e))),n?(n.unsubscribe(),n=null,o.subscribe(r)):i=!0})),i&&(n.unsubscribe(),n=null,o.subscribe(r))})}function Yh(t,e,r,n,i){return(o,s)=>{let a=r,l=e,c=0;o.subscribe(U(s,u=>{let d=c++;l=a?t(l,u,d):(a=!0,u),n&&s.next(l)},i&&(()=>{a&&s.next(l),s.complete()})))}}function rn(t,e){return L(e)?he(t,e,1):he(t,1)}function Gl(...t){let e=Et(t);return V((r,n)=>{ss()(re([r,...t],e)).subscribe(n)})}function ql(t,e=Fh){return V((r,n)=>{let i=null,o=null,s=null,a=()=>{if(i){i.unsubscribe(),i=null;let c=o;o=null,n.next(c)}};function l(){let c=s+t,u=e.now();if(u{o=c,s=e.now(),i||(i=e.schedule(l,t),n.add(i))},()=>{a(),n.complete()},void 0,()=>{o=i=null}))})}function on(t){return V((e,r)=>{let n=!1;e.subscribe(U(r,i=>{n=!0,r.next(i)},()=>{n||r.next(t),r.complete()}))})}function kt(t){return t<=0?()=>Ue:V((e,r)=>{let n=0;e.subscribe(U(r,i=>{++n<=t&&(r.next(i),t<=n&&r.complete())}))})}function Wl(t){return R(()=>t)}function Kl(t,e=Ae){return t=t??JE,V((r,n)=>{let i,o=!0;r.subscribe(U(n,s=>{let a=e(s);(o||!t(i,a))&&(o=!1,i=a,n.next(s))}))})}function JE(t,e){return t===e}function ls(t=XE){return V((e,r)=>{let n=!1;e.subscribe(U(r,i=>{n=!0,r.next(i)},()=>n?r.complete():r.error(t())))})}function XE(){return new Ft}function Ln(t){return V((e,r)=>{try{e.subscribe(r)}finally{r.add(t)}})}function wt(t,e){let r=arguments.length>=2;return n=>n.pipe(t?me((i,o)=>t(i,o,n)):Ae,kt(1),r?on(e):ls(()=>new Ft))}function wr(t){return t<=0?()=>Ue:V((e,r)=>{let n=[];e.subscribe(U(r,i=>{n.push(i),t{for(let i of n)r.next(i);r.complete()},void 0,()=>{n=null}))})}function Ql(t,e){let r=arguments.length>=2;return n=>n.pipe(t?me((i,o)=>t(i,o,n)):Ae,wr(1),r?on(e):ls(()=>new Ft))}function Zl(){return V((t,e)=>{let r,n=!1;t.subscribe(U(e,i=>{let o=r;r=i,n&&e.next([o,i]),n=!0}))})}function Yl(t,e){return V(Yh(t,e,arguments.length>=2,!0))}function Cr(...t){let e=Et(t);return V((r,n)=>{(e?Er(t,r,e):Er(t,r)).subscribe(n)})}function Ne(t,e){return V((r,n)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&n.complete();r.subscribe(U(n,l=>{i?.unsubscribe();let c=0,u=o++;ce(t(l,u)).subscribe(i=U(n,d=>n.next(e?e(l,d,u,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function Jl(t){return V((e,r)=>{ce(t).subscribe(U(r,()=>r.complete(),ai)),!r.closed&&e.subscribe(r)})}function ue(t,e,r){let n=L(t)||e||r?{next:t,error:e,complete:r}:t;return n?V((i,o)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;i.subscribe(U(o,l=>{var c;(c=n.next)===null||c===void 0||c.call(n,l),o.next(l)},()=>{var l;a=!1,(l=n.complete)===null||l===void 0||l.call(n),o.complete()},l=>{var c;a=!1,(c=n.error)===null||c===void 0||c.call(n,l),o.error(l)},()=>{var l,c;a&&((l=n.unsubscribe)===null||l===void 0||l.call(n)),(c=n.finalize)===null||c===void 0||c.call(n)}))}):Ae}var ew="https://g.co/ng/security#xss",m=class extends Error{constructor(e,r){super(Bs(e,r)),this.code=e}};function Bs(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function Ii(t){return{toString:t}.toString()}var cs="__parameters__";function tw(t){return function(...r){if(t){let n=t(...r);for(let i in n)this[i]=n[i]}}}function kp(t,e,r){return Ii(()=>{let n=tw(e);function i(...o){if(this instanceof i)return n.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(l,c,u){let d=l.hasOwnProperty(cs)?l[cs]:Object.defineProperty(l,cs,{value:[]})[cs];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return r&&(i.prototype=Object.create(r.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}var pn=globalThis;function ne(t){for(let e in t)if(t[e]===ne)return e;throw Error("Could not find renamed property on target object.")}function nw(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Re(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(Re).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(` -`);return r===-1?e:e.substring(0,r)}function Jh(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var rw=ne({__forward_ref__:ne});function Oe(t){return t.__forward_ref__=Oe,t.toString=function(){return Re(this())},t}function xe(t){return Lp(t)?t():t}function Lp(t){return typeof t=="function"&&t.hasOwnProperty(rw)&&t.__forward_ref__===Oe}function I(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Je(t){return{providers:t.providers||[],imports:t.imports||[]}}function $s(t){return Xh(t,Vp)||Xh(t,Up)}function jp(t){return $s(t)!==null}function Xh(t,e){return t.hasOwnProperty(e)?t[e]:null}function iw(t){let e=t&&(t[Vp]||t[Up]);return e||null}function ep(t){return t&&(t.hasOwnProperty(tp)||t.hasOwnProperty(ow))?t[tp]:null}var Vp=ne({\u0275prov:ne}),tp=ne({\u0275inj:ne}),Up=ne({ngInjectableDef:ne}),ow=ne({ngInjectorDef:ne}),S=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=I({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Bp(t){return t&&!!t.\u0275providers}var sw=ne({\u0275cmp:ne}),aw=ne({\u0275dir:ne}),lw=ne({\u0275pipe:ne}),cw=ne({\u0275mod:ne}),Ds=ne({\u0275fac:ne}),ui=ne({__NG_ELEMENT_ID__:ne}),np=ne({__NG_ENV_ID__:ne});function di(t){return typeof t=="string"?t:t==null?"":String(t)}function uw(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():di(t)}function dw(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new m(-200,t)}function hu(t,e){throw new m(-201,!1)}var $=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}($||{}),hc;function $p(){return hc}function Qe(t){let e=hc;return hc=t,e}function Hp(t,e,r){let n=$s(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&$.Optional)return null;if(e!==void 0)return e;hu(t,"Injector")}var fw={},fi=fw,pc="__NG_DI_FLAG__",Es="ngTempTokenPath",hw="ngTokenPath",pw=/\n/gm,gw="\u0275",rp="__source",Sr;function mw(){return Sr}function sn(t){let e=Sr;return Sr=t,e}function yw(t,e=$.Default){if(Sr===void 0)throw new m(-203,!1);return Sr===null?Hp(t,void 0,e):Sr.get(t,e&$.Optional?null:void 0,e)}function T(t,e=$.Default){return($p()||yw)(xe(t),e)}function v(t,e=$.Default){return T(t,Hs(e))}function Hs(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function gc(t){let e=[];for(let r=0;r ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):Re(a)))}i=`{${o.join(", ")}}`}return`${r}${n?"("+n+")":""}[${i}]: ${t.replace(pw,` - `)}`}var pu=zp(kp("Optional"),8);var Gp=zp(kp("SkipSelf"),4);function Tr(t,e){let r=t.hasOwnProperty(Ds);return r?t[Ds]:null}function ww(t,e,r){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(r)?gu(r,e):e(r))}function qp(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function ws(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function bw(t,e,r,n){let i=t.length;if(i==e)t.push(r,n);else if(i===1)t.push(n,t[0]),t[0]=r;else{for(i--,t.push(t[i-1],t[i]);i>e;){let o=i-2;t[i]=t[o],i--}t[e]=r,t[e+1]=n}}function _w(t,e,r){let n=Si(t,e);return n>=0?t[n|1]=r:(n=~n,bw(t,n,e,r)),n}function Xl(t,e){let r=Si(t,e);if(r>=0)return t[r|1]}function Si(t,e){return Iw(t,e,1)}function Iw(t,e,r){let n=0,i=t.length>>r;for(;i!==n;){let o=n+(i-n>>1),s=t[o<e?i=o:n=o+1}return~(i<e){s=o-1;break}}}for(;o-1){let o;for(;++io?d="":d=i[u+1].toLowerCase(),n&2&&c!==d){if(st(n))return!1;s=!0}}}}return st(n)||s}function st(t){return(t&1)===0}function Rw(t,e,r,n){if(e===null)return-1;let i=0;if(n||!r){let o=!1;for(;i-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?i+="."+s:n&4&&(i+=" "+s);else i!==""&&!st(s)&&(e+=op(o,i),i=""),n=s,o=o||!st(n);r++}return i!==""&&(e+=op(o,i)),e}function Lw(t){return t.map(kw).join(",")}function jw(t){let e=[],r=[],n=1,i=2;for(;n{let e=tg(t),r=K(E({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Qp.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||_t.Emulated,styles:t.styles||Ze,_:null,schemas:t.schemas||null,tView:null,id:""});ng(r);let n=t.dependencies;return r.directiveDefs=ap(n,!1),r.pipeDefs=ap(n,!0),r.id=Bw(r),r})}function Vw(t){return Un(t)||Yp(t)}function Uw(t){return t!==null}function Xe(t){return Ii(()=>({type:t.type,bootstrap:t.bootstrap||Ze,declarations:t.declarations||Ze,imports:t.imports||Ze,exports:t.exports||Ze,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function sp(t,e){if(t==null)return Ar;let r={};for(let n in t)if(t.hasOwnProperty(n)){let i=t[n],o,s,a=cn.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),e?(r[o]=a!==cn.None?[n,a]:n,e[o]=s):r[o]=n}return r}function J(t){return Ii(()=>{let e=tg(t);return ng(e),e})}function Un(t){return t[sw]||null}function Yp(t){return t[aw]||null}function Jp(t){return t[lw]||null}function Xp(t){let e=Un(t)||Yp(t)||Jp(t);return e!==null?e.standalone:!1}function eg(t,e){let r=t[cw]||null;if(!r&&e===!0)throw new Error(`Type ${Re(t)} does not have '\u0275mod' property.`);return r}function tg(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||Ar,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Ze,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:sp(t.inputs,e),outputs:sp(t.outputs),debugInfo:null}}function ng(t){t.features?.forEach(e=>e(t))}function ap(t,e){if(!t)return null;let r=e?Jp:Vw;return()=>(typeof t=="function"?t():t).map(n=>r(n)).filter(Uw)}function Bw(t){let e=0,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let i of r)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function Lr(t){return{\u0275providers:t}}function yu(...t){return{\u0275providers:rg(!0,t),\u0275fromNgModule:!0}}function rg(t,...e){let r=[],n=new Set,i,o=s=>{r.push(s)};return gu(e,s=>{let a=s;yc(a,o,[],n)&&(i||=[],i.push(a))}),i!==void 0&&ig(i,o),r}function ig(t,e){for(let r=0;r{e(o,n)})}}function yc(t,e,r,n){if(t=xe(t),!t)return!1;let i=null,o=ep(t),s=!o&&Un(t);if(!o&&!s){let l=t.ngModule;if(o=ep(l),o)i=l;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=n.has(i);if(s){if(a)return!1;if(n.add(i),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)yc(c,e,r,n)}}else if(o){if(o.imports!=null&&!a){n.add(i);let c;try{gu(o.imports,u=>{yc(u,e,r,n)&&(c||=[],c.push(u))})}finally{}c!==void 0&&ig(c,e)}if(!a){let c=Tr(i)||(()=>new i);e({provide:i,useFactory:c,deps:Ze},i),e({provide:Kp,useValue:i,multi:!0},i),e({provide:Nr,useValue:()=>T(i),multi:!0},i)}let l=o.providers;if(l!=null&&!a){let c=t;vu(l,u=>{e(u,c)})}}else return!1;return i!==t&&t.providers!==void 0}function vu(t,e){for(let r of t)Bp(r)&&(r=r.\u0275providers),Array.isArray(r)?vu(r,e):e(r)}var $w=ne({provide:String,useValue:ne});function og(t){return t!==null&&typeof t=="object"&&$w in t}function Hw(t){return!!(t&&t.useExisting)}function zw(t){return!!(t&&t.useFactory)}function xr(t){return typeof t=="function"}function Gw(t){return!!t.useClass}var zs=new S(""),hs={},qw={},ec;function Du(){return ec===void 0&&(ec=new Cs),ec}var Le=class{},pi=class extends Le{get destroyed(){return this._destroyed}constructor(e,r,n,i){super(),this.parent=r,this.source=n,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Dc(e,s=>this.processProvider(s)),this.records.set(Wp,br(void 0,this)),i.has("environment")&&this.records.set(Le,br(void 0,this));let o=this.records.get(zs);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Kp,Ze,$.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=G(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of r)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),G(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=sn(this),n=Qe(void 0),i;try{return e()}finally{sn(r),Qe(n)}}get(e,r=fi,n=$.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(np))return e[np](this);n=Hs(n);let i,o=sn(this),s=Qe(void 0);try{if(!(n&$.SkipSelf)){let l=this.records.get(e);if(l===void 0){let c=Yw(e)&&$s(e);c&&this.injectableDefInScope(c)?l=br(vc(e),hs):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l)}let a=n&$.Self?Du():this.parent;return r=n&$.Optional&&r===fi?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[Es]=a[Es]||[]).unshift(Re(e)),o)throw a;return Dw(a,e,"R3InjectorError",this.source)}else throw a}finally{Qe(s),sn(o)}}resolveInjectorInitializers(){let e=G(null),r=sn(this),n=Qe(void 0),i;try{let o=this.get(Nr,Ze,$.Self);for(let s of o)s()}finally{sn(r),Qe(n),G(e)}}toString(){let e=[],r=this.records;for(let n of r.keys())e.push(Re(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new m(205,!1)}processProvider(e){e=xe(e);let r=xr(e)?e:xe(e&&e.provide),n=Kw(e);if(!xr(e)&&e.multi===!0){let i=this.records.get(r);i||(i=br(void 0,hs,!0),i.factory=()=>gc(i.multi),this.records.set(r,i)),r=e,i.multi.push(e)}this.records.set(r,n)}hydrate(e,r){let n=G(null);try{return r.value===hs&&(r.value=qw,r.value=r.factory()),typeof r.value=="object"&&r.value&&Zw(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{G(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let r=xe(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function vc(t){let e=$s(t),r=e!==null?e.factory:Tr(t);if(r!==null)return r;if(t instanceof S)throw new m(204,!1);if(t instanceof Function)return Ww(t);throw new m(204,!1)}function Ww(t){if(t.length>0)throw new m(204,!1);let r=iw(t);return r!==null?()=>r.factory(t):()=>new t}function Kw(t){if(og(t))return br(void 0,t.useValue);{let e=sg(t);return br(e,hs)}}function sg(t,e,r){let n;if(xr(t)){let i=xe(t);return Tr(i)||vc(i)}else if(og(t))n=()=>xe(t.useValue);else if(zw(t))n=()=>t.useFactory(...gc(t.deps||[]));else if(Hw(t))n=()=>T(xe(t.useExisting));else{let i=xe(t&&(t.useClass||t.provide));if(Qw(t))n=()=>new i(...gc(t.deps));else return Tr(i)||vc(i)}return n}function br(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function Qw(t){return!!t.deps}function Zw(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function Yw(t){return typeof t=="function"||typeof t=="object"&&t instanceof S}function Dc(t,e){for(let r of t)Array.isArray(r)?Dc(r,e):r&&Bp(r)?Dc(r.\u0275providers,e):e(r)}function ut(t,e){t instanceof pi&&t.assertNotDestroyed();let r,n=sn(t),i=Qe(void 0);try{return e()}finally{sn(n),Qe(i)}}function Jw(){return $p()!==void 0||mw()!=null}function Xw(t){return typeof t=="function"}var Ht=0,k=1,O=2,Se=3,at=4,dt=5,gi=6,bs=7,_e=8,Rr=9,Lt=10,De=11,mi=12,lp=13,jr=14,lt=15,Bn=16,_r=17,jt=18,Gs=19,ag=20,an=21,tc=22,Ye=23,ct=25,lg=1;var $n=7,_s=8,Or=9,Ie=10,Is=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Is||{});function ln(t){return Array.isArray(t)&&typeof t[lg]=="object"}function zt(t){return Array.isArray(t)&&t[lg]===!0}function cg(t){return(t.flags&4)!==0}function qs(t){return t.componentOffset>-1}function Eu(t){return(t.flags&1)===1}function un(t){return!!t.template}function Ec(t){return(t[O]&512)!==0}var wc=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function ug(t,e,r,n){e!==null?e.applyValueToInputSignal(e,n):t[r]=n}function St(){return dg}function dg(t){return t.type.prototype.ngOnChanges&&(t.setInput=tC),eC}St.ngInherit=!0;function eC(){let t=hg(this),e=t?.current;if(e){let r=t.previous;if(r===Ar)t.previous=e;else for(let n in e)r[n]=e[n];t.current=null,this.ngOnChanges(e)}}function tC(t,e,r,n,i){let o=this.declaredInputs[n],s=hg(t)||nC(t,{previous:Ar,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[o];a[o]=new wc(c&&c.currentValue,r,l===Ar),ug(t,e,i,r)}var fg="__ngSimpleChanges__";function hg(t){return t[fg]||null}function nC(t,e){return t[fg]=e}var cp=null;var Ct=function(t,e,r){cp?.(t,e,r)},rC="svg",iC="math";function It(t){for(;Array.isArray(t);)t=t[Ht];return t}function pg(t,e){return It(e[t])}function et(t,e){return It(e[t.index])}function wu(t,e){return t.data[e]}function mn(t,e){let r=e[t];return ln(r)?r:r[Ht]}function oC(t){return(t[O]&4)===4}function Cu(t){return(t[O]&128)===128}function sC(t){return zt(t[Se])}function Pr(t,e){return e==null?null:t[e]}function gg(t){t[_r]=0}function mg(t){t[O]&1024||(t[O]|=1024,Cu(t)&&Ws(t))}function aC(t,e){for(;t>0;)e=e[jr],t--;return e}function yi(t){return!!(t[O]&9216||t[Ye]?.dirty)}function Cc(t){t[Lt].changeDetectionScheduler?.notify(7),t[O]&64&&(t[O]|=1024),yi(t)&&Ws(t)}function Ws(t){t[Lt].changeDetectionScheduler?.notify(0);let e=Hn(t);for(;e!==null&&!(e[O]&8192||(e[O]|=8192,!Cu(e)));)e=Hn(e)}function yg(t,e){if((t[O]&256)===256)throw new m(911,!1);t[an]===null&&(t[an]=[]),t[an].push(e)}function lC(t,e){if(t[an]===null)return;let r=t[an].indexOf(e);r!==-1&&t[an].splice(r,1)}function Hn(t){let e=t[Se];return zt(e)?e[Se]:e}var H={lFrame:Mg(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var vg=!1;function cC(){return H.lFrame.elementDepthCount}function uC(){H.lFrame.elementDepthCount++}function dC(){H.lFrame.elementDepthCount--}function Dg(){return H.bindingsEnabled}function fC(){return H.skipHydrationRootTNode!==null}function hC(t){return H.skipHydrationRootTNode===t}function pC(){H.skipHydrationRootTNode=null}function Q(){return H.lFrame.lView}function je(){return H.lFrame.tView}function Mi(t){return H.lFrame.contextLView=t,t[_e]}function Ti(t){return H.lFrame.contextLView=null,t}function Be(){let t=Eg();for(;t!==null&&t.type===64;)t=t.parent;return t}function Eg(){return H.lFrame.currentTNode}function gC(){let t=H.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Ai(t,e){let r=H.lFrame;r.currentTNode=t,r.isParent=e}function wg(){return H.lFrame.isParent}function mC(){H.lFrame.isParent=!1}function Cg(){return vg}function up(t){vg=t}function bu(){let t=H.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function yC(){return H.lFrame.bindingIndex}function vC(t){return H.lFrame.bindingIndex=t}function Ni(){return H.lFrame.bindingIndex++}function bg(t){let e=H.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function DC(){return H.lFrame.inI18n}function EC(t,e){let r=H.lFrame;r.bindingIndex=r.bindingRootIndex=t,bc(e)}function wC(){return H.lFrame.currentDirectiveIndex}function bc(t){H.lFrame.currentDirectiveIndex=t}function CC(t){let e=H.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function _g(){return H.lFrame.currentQueryIndex}function _u(t){H.lFrame.currentQueryIndex=t}function bC(t){let e=t[k];return e.type===2?e.declTNode:e.type===1?t[dt]:null}function Ig(t,e,r){if(r&$.SkipSelf){let i=e,o=t;for(;i=i.parent,i===null&&!(r&$.Host);)if(i=bC(o),i===null||(o=o[jr],i.type&10))break;if(i===null)return!1;e=i,t=o}let n=H.lFrame=Sg();return n.currentTNode=e,n.lView=t,!0}function Iu(t){let e=Sg(),r=t[k];H.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function Sg(){let t=H.lFrame,e=t===null?null:t.child;return e===null?Mg(t):e}function Mg(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 Tg(){let t=H.lFrame;return H.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Ag=Tg;function Su(){let t=Tg();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 _C(t){return(H.lFrame.contextLView=aC(t,H.lFrame.contextLView))[_e]}function yn(){return H.lFrame.selectedIndex}function zn(t){H.lFrame.selectedIndex=t}function Ng(){let t=H.lFrame;return wu(t.tView,t.selectedIndex)}function IC(){return H.lFrame.currentNamespace}var xg=!0;function Mu(){return xg}function Tu(t){xg=t}function SC(t,e,r){let{ngOnChanges:n,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(n){let s=dg(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}i&&(r.preOrderHooks??=[]).push(0-t,i),o&&((r.preOrderHooks??=[]).push(t,o),(r.preOrderCheckHooks??=[]).push(t,o))}function Au(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r=n)break}else e[l]<0&&(t[_r]+=65536),(a>14>16&&(t[O]&3)===e&&(t[O]+=16384,dp(a,o)):dp(a,o)}var Mr=-1,Gn=class{constructor(e,r,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function TC(t){return t instanceof Gn}function AC(t){return(t.flags&8)!==0}function NC(t){return(t.flags&16)!==0}var rc={},_c=class{constructor(e,r){this.injector=e,this.parentInjector=r}get(e,r,n){n=Hs(n);let i=this.injector.get(e,rc,n);return i!==rc||r===rc?i:this.parentInjector.get(e,r,n)}};function Og(t){return t!==Mr}function Ss(t){return t&32767}function xC(t){return t>>16}function Ms(t,e){let r=xC(t),n=e;for(;r>0;)n=n[jr],r--;return n}var Ic=!0;function fp(t){let e=Ic;return Ic=t,e}var RC=256,Pg=RC-1,Fg=5,OC=0,bt={};function PC(t,e,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(ui)&&(n=r[ui]),n==null&&(n=r[ui]=OC++);let i=n&Pg,o=1<>Fg)]|=o}function Ts(t,e){let r=kg(t,e);if(r!==-1)return r;let n=e[k];n.firstCreatePass&&(t.injectorIndex=e.length,ic(n.data,t),ic(e,null),ic(n.blueprint,null));let i=Nu(t,e),o=t.injectorIndex;if(Og(i)){let s=Ss(i),a=Ms(i,e),l=a[k].data;for(let c=0;c<8;c++)e[o+c]=a[s+c]|l[s+c]}return e[o+8]=i,o}function ic(t,e){t.push(0,0,0,0,0,0,0,0,e)}function kg(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function Nu(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,n=null,i=e;for(;i!==null;){if(n=Bg(i),n===null)return Mr;if(r++,i=i[jr],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return Mr}function Sc(t,e,r){PC(t,e,r)}function Lg(t,e,r){if(r&$.Optional||t!==void 0)return t;hu(e,"NodeInjector")}function jg(t,e,r,n){if(r&$.Optional&&n===void 0&&(n=null),!(r&($.Self|$.Host))){let i=t[Rr],o=Qe(void 0);try{return i?i.get(e,n,r&$.Optional):Hp(e,n,r&$.Optional)}finally{Qe(o)}}return Lg(n,e,r)}function Vg(t,e,r,n=$.Default,i){if(t!==null){if(e[O]&2048&&!(n&$.Self)){let s=jC(t,e,r,n,bt);if(s!==bt)return s}let o=Ug(t,e,r,n,bt);if(o!==bt)return o}return jg(e,r,n,i)}function Ug(t,e,r,n,i){let o=kC(r);if(typeof o=="function"){if(!Ig(e,t,n))return n&$.Host?Lg(i,r,n):jg(e,r,n,i);try{let s;if(s=o(n),s==null&&!(n&$.Optional))hu(r);else return s}finally{Ag()}}else if(typeof o=="number"){let s=null,a=kg(t,e),l=Mr,c=n&$.Host?e[lt][dt]:null;for((a===-1||n&$.SkipSelf)&&(l=a===-1?Nu(t,e):e[a+8],l===Mr||!pp(n,!1)?a=-1:(s=e[k],a=Ss(l),e=Ms(l,e)));a!==-1;){let u=e[k];if(hp(o,a,u.data)){let d=FC(a,e,r,s,n,c);if(d!==bt)return d}l=e[a+8],l!==Mr&&pp(n,e[k].data[a+8]===c)&&hp(o,a,e)?(s=u,a=Ss(l),e=Ms(l,e)):a=-1}}return i}function FC(t,e,r,n,i,o){let s=e[k],a=s.data[t+8],l=n==null?qs(a)&&Ic:n!=s&&(a.type&3)!==0,c=i&$.Host&&o===a,u=ms(a,s,r,l,c);return u!==null?qn(e,s,u,a):bt}function ms(t,e,r,n,i){let o=t.providerIndexes,s=e.data,a=o&1048575,l=t.directiveStart,c=t.directiveEnd,u=o>>20,d=n?a:a+u,h=i?a+u:c;for(let f=d;f=l&&p.type===r)return f}if(i){let f=s[l];if(f&&un(f)&&f.type===r)return l}return null}function qn(t,e,r,n){let i=t[r],o=e.data;if(TC(i)){let s=i;s.resolving&&dw(uw(o[r]));let a=fp(s.canSeeViewProviders);s.resolving=!0;let l,c=s.injectImpl?Qe(s.injectImpl):null,u=Ig(t,n,$.Default);try{i=t[r]=s.factory(void 0,o,t,n),e.firstCreatePass&&r>=n.directiveStart&&SC(r,o[r],e)}finally{c!==null&&Qe(c),fp(a),s.resolving=!1,Ag()}}return i}function kC(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(ui)?t[ui]:void 0;return typeof e=="number"?e>=0?e&Pg:LC:e}function hp(t,e,r){let n=1<>Fg)]&n)}function pp(t,e){return!(t&$.Self)&&!(t&$.Host&&e)}var Vn=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,n){return Vg(this._tNode,this._lView,e,Hs(n),r)}};function LC(){return new Vn(Be(),Q())}function ft(t){return Ii(()=>{let e=t.prototype.constructor,r=e[Ds]||Mc(e),n=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==n;){let o=i[Ds]||Mc(i);if(o&&o!==r)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Mc(t){return Lp(t)?()=>{let e=Mc(xe(t));return e&&e()}:Tr(t)}function jC(t,e,r,n,i){let o=t,s=e;for(;o!==null&&s!==null&&s[O]&2048&&!(s[O]&512);){let a=Ug(o,s,r,n|$.Self,bt);if(a!==bt)return a;let l=o.parent;if(!l){let c=s[ag];if(c){let u=c.get(r,bt,n);if(u!==bt)return u}l=Bg(s),s=s[jr]}o=l}return i}function Bg(t){let e=t[k],r=e.type;return r===2?e.declTNode:r===1?t[dt]:null}function gp(t,e=null,r=null,n){let i=$g(t,e,r,n);return i.resolveInjectorInitializers(),i}function $g(t,e=null,r=null,n,i=new Set){let o=[r||Ze,yu(t)];return n=n||(typeof t=="object"?void 0:Re(t)),new pi(o,e||Du(),n||null,i)}var jn=class jn{static create(e,r){if(Array.isArray(e))return gp({name:""},r,e,"");{let n=e.name??"";return gp({name:n},e.parent,e.providers,n)}}};jn.THROW_IF_NOT_FOUND=fi,jn.NULL=new Cs,jn.\u0275prov=I({token:jn,providedIn:"any",factory:()=>T(Wp)}),jn.__NG_ELEMENT_ID__=-1;var Vt=jn;var VC=new S("");VC.__NG_ELEMENT_ID__=t=>{let e=Be();if(e===null)throw new m(204,!1);if(e.type&2)return e.value;if(t&$.Optional)return null;throw new m(204,!1)};var UC="ngOriginalError";function oc(t){return t[UC]}var Hg=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=BC,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),Tc=class extends Hg{constructor(e){super(),this._lView=e}onDestroy(e){return yg(this._lView,e),()=>lC(this._lView,e)}};function BC(){return new Tc(Q())}var vn=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ve(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=I({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var Ac=class extends le{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,Jw()&&(this.destroyRef=v(Hg,{optional:!0})??void 0,this.pendingTasks=v(vn,{optional:!0})??void 0)}emit(e){let r=G(null);try{super.next(e)}finally{G(r)}}subscribe(e,r,n){let i=e,o=r||(()=>null),s=n;if(e&&typeof e=="object"){let l=e;i=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return e instanceof se&&e.add(a),a}wrapInTimeout(e){return r=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(r),n!==void 0&&this.pendingTasks?.remove(n)})}}},ie=Ac;function As(...t){}function zg(t){let e,r;function n(){t=As;try{r!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(r),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{t(),n()}),typeof requestAnimationFrame=="function"&&(r=requestAnimationFrame(()=>{t(),n()})),()=>n()}function mp(t){return queueMicrotask(()=>t()),()=>{t=As}}var xu="isAngularZone",Ns=xu+"_ID",$C=0,te=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ie(!1),this.onMicrotaskEmpty=new ie(!1),this.onStable=new ie(!1),this.onError=new ie(!1),typeof Zone>"u")throw new m(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&r,i.shouldCoalesceRunChangeDetection=n,i.callbackScheduled=!1,GC(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(xu)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new m(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new m(909,!1)}run(e,r,n){return this._inner.run(e,r,n)}runTask(e,r,n,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,HC,As,As);try{return o.runTask(s,r,n)}finally{o.cancelTask(s)}}runGuarded(e,r,n){return this._inner.runGuarded(e,r,n)}runOutsideAngular(e){return this._outer.run(e)}},HC={};function Ru(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 zC(t){t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,Zone.root.run(()=>{zg(()=>{t.callbackScheduled=!1,Nc(t),t.isCheckStableRunning=!0,Ru(t),t.isCheckStableRunning=!1})}),Nc(t))}function GC(t){let e=()=>{zC(t)},r=$C++;t._inner=t._inner.fork({name:"angular",properties:{[xu]:!0,[Ns]:r,[Ns+r]:!0},onInvokeTask:(n,i,o,s,a,l)=>{if(qC(l))return n.invokeTask(o,s,a,l);try{return yp(t),n.invokeTask(o,s,a,l)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),vp(t)}},onInvoke:(n,i,o,s,a,l,c)=>{try{return yp(t),n.invoke(o,s,a,l,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!WC(l)&&e(),vp(t)}},onHasTask:(n,i,o,s)=>{n.hasTask(o,s),i===o&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,Nc(t),Ru(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,i,o,s)=>(n.handleError(o,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function Nc(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function yp(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function vp(t){t._nesting--,Ru(t)}var xc=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ie,this.onMicrotaskEmpty=new ie,this.onStable=new ie,this.onError=new ie}run(e,r,n){return e.apply(r,n)}runGuarded(e,r,n){return e.apply(r,n)}runOutsideAngular(e){return e()}runTask(e,r,n,i){return e.apply(r,n)}};function qC(t){return Gg(t,"__ignore_ng_zone__")}function WC(t){return Gg(t,"__scheduler_tick__")}function Gg(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var dn=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&oc(e);for(;r&&oc(r);)r=oc(r);return r||null}},KC=new S("",{providedIn:"root",factory:()=>{let t=v(te),e=v(dn);return r=>t.runOutsideAngular(()=>e.handleError(r))}});function QC(){return Vr(Be(),Q())}function Vr(t,e){return new Me(et(t,e))}var Me=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=QC;let t=e;return t})();function ZC(t){return t instanceof Me?t.nativeElement:t}function YC(){return this._results[Symbol.iterator]()}var Rc=class t{get changes(){return this._changes??=new ie}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 r=t.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=YC)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,r){return this._results.reduce(e,r)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,r){this.dirty=!1;let n=Cw(e);(this._changesDetected=!ww(this._results,n,r))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function qg(t){return(t.flags&128)===128}var Wg=new Map,JC=0;function XC(){return JC++}function eb(t){Wg.set(t[Gs],t)}function tb(t){Wg.delete(t[Gs])}var Dp="__ngContext__";function Wn(t,e){ln(e)?(t[Dp]=e[Gs],eb(e)):t[Dp]=e}function Kg(t){return Zg(t[mi])}function Qg(t){return Zg(t[at])}function Zg(t){for(;t!==null&&!zt(t);)t=t[at];return t}var Oc;function Yg(t){Oc=t}function nb(){if(Oc!==void 0)return Oc;if(typeof document<"u")return document;throw new m(210,!1)}var Ks=new S("",{providedIn:"root",factory:()=>rb}),rb="ng",Ou=new S(""),Dn=new S("",{providedIn:"platform",factory:()=>"unknown"});var Pu=new S(""),Fu=new S("",{providedIn:"root",factory:()=>nb().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var ib="h",ob="b";var sb=()=>null;function ku(t,e,r=!1){return sb(t,e,r)}var Jg=!1,ab=new S("",{providedIn:"root",factory:()=>Jg});var Pc=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ew})`}};function Lu(t){return t instanceof Pc?t.changingThisBreaksApplicationSecurity:t}function Xg(t){return t instanceof Function?t():t}var Ut=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Ut||{}),lb;function ju(t,e){return lb(t,e)}function Ir(t,e,r,n,i){if(n!=null){let o,s=!1;zt(n)?o=n:ln(n)&&(s=!0,n=n[Ht]);let a=It(n);t===0&&r!==null?i==null?rm(e,r,a):xs(e,r,a,i||null,!0):t===1&&r!==null?xs(e,r,a,i||null,!0):t===2?bb(e,a,s):t===3&&e.destroyNode(a),o!=null&&Ib(e,t,o,r,i)}}function cb(t,e){return t.createText(e)}function ub(t,e,r){t.setValue(e,r)}function em(t,e,r){return t.createElement(e,r)}function db(t,e){tm(t,e),e[Ht]=null,e[dt]=null}function fb(t,e,r,n,i,o){n[Ht]=i,n[dt]=e,Zs(t,n,r,1,i,o)}function tm(t,e){e[Lt].changeDetectionScheduler?.notify(8),Zs(t,e,e[De],2,null,null)}function hb(t){let e=t[mi];if(!e)return sc(t[k],t);for(;e;){let r=null;if(ln(e))r=e[mi];else{let n=e[Ie];n&&(r=n)}if(!r){for(;e&&!e[at]&&e!==t;)ln(e)&&sc(e[k],e),e=e[Se];e===null&&(e=t),ln(e)&&sc(e[k],e),r=e&&e[at]}e=r}}function pb(t,e,r,n){let i=Ie+n,o=r.length;n>0&&(r[i-1][at]=e),n0&&(t[r-1][at]=n[at]);let o=ws(t,Ie+e);db(n[k],n);let s=o[jt];s!==null&&s.detachView(o[k]),n[Se]=null,n[at]=null,n[O]&=-129}return n}function Qs(t,e){if(!(e[O]&256)){let r=e[De];r.destroyNode&&Zs(t,e,r,3,null,null),hb(e)}}function sc(t,e){if(e[O]&256)return;let r=G(null);try{e[O]&=-129,e[O]|=256,e[Ye]&&Nl(e[Ye]),mb(t,e),gb(t,e),e[k].type===1&&e[De].destroy();let n=e[Bn];if(n!==null&&zt(e[Se])){n!==e[Se]&&Vu(n,e);let i=e[jt];i!==null&&i.detachView(t)}tb(e)}finally{G(r)}}function gb(t,e){let r=t.cleanup,n=e[bs];if(r!==null)for(let o=0;o=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[r[o+1]];r[o].call(s)}n!==null&&(e[bs]=null);let i=e[an];if(i!==null){e[an]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[n.directiveStart+i];if(o===_t.None||o===_t.Emulated)return null}return et(n,r)}}function xs(t,e,r,n,i){t.insertBefore(e,r,n,i)}function rm(t,e,r){t.appendChild(e,r)}function Ep(t,e,r,n,i){n!==null?xs(t,e,r,n,i):rm(t,e,r)}function im(t,e){return t.parentNode(e)}function Db(t,e){return t.nextSibling(e)}function Eb(t,e,r){return Cb(t,e,r)}function wb(t,e,r){return t.type&40?et(t,r):null}var Cb=wb,wp;function Uu(t,e,r,n){let i=yb(t,n,e),o=e[De],s=n.parent||e[dt],a=Eb(s,n,e);if(i!=null)if(Array.isArray(r))for(let l=0;lct&&lm(t,e,ct,!1),Ct(s?2:0,i),r(n,i)}finally{zn(o),Ct(s?3:1,i)}}function fm(t,e,r){if(cg(e)){let n=G(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;snull;function Pb(t,e,r,n){let i=wm(e);i.push(r),t.firstCreatePass&&Cm(t).push(n,i.length-1)}function Fb(t,e,r,n,i,o){let s=e?e.injectorIndex:-1,a=0;return fC()&&(a|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Cp(t,e,r,n,i){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;n??={};let a,l=cn.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let c=o;if(i!==null){if(!i.hasOwnProperty(o))continue;c=i[o]}t===0?bp(n,r,c,a,l):bp(n,r,c,a)}return n}function bp(t,e,r,n,i){let o;t.hasOwnProperty(r)?(o=t[r]).push(e,n):o=t[r]=[e,n],i!==void 0&&o.push(i)}function kb(t,e,r){let n=e.directiveStart,i=e.directiveEnd,o=t.data,s=e.attrs,a=[],l=null,c=null;for(let u=n;u0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function $b(t,e,r,n){let i=r.directiveStart,o=r.directiveEnd;qs(r)&&Qb(e,r,t.data[i+r.componentOffset]),t.firstCreatePass||Ts(r,e),Wn(n,e);let s=r.initialInputs;for(let a=i;a{Ws(t.lView)},consumerOnSignalRead(){this.lView[Ye]=this}});function l0(t){let e=t[Ye]??Object.create(c0);return e.lView=t,e}var c0=K(E({},si),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=Hn(t.lView);for(;e&&!Tm(e[k]);)e=Hn(e);e&&mg(e)},consumerOnSignalRead(){this.lView[Ye]=this}});function Tm(t){return t.type!==2}var u0=100;function Am(t,e=!0,r=0){let n=t[Lt],i=n.rendererFactory,o=!1;o||i.begin?.();try{d0(t,r)}catch(s){throw e&&bm(t,s),s}finally{o||(i.end?.(),n.inlineEffectRunner?.flush())}}function d0(t,e){let r=Cg();try{up(!0),jc(t,e);let n=0;for(;yi(t);){if(n===u0)throw new m(103,!1);n++,jc(t,1)}}finally{up(r)}}function f0(t,e,r,n){let i=e[O];if((i&256)===256)return;let o=!1,s=!1;!o&&e[Lt].inlineEffectRunner?.flush(),Iu(e);let a=!0,l=null,c=null;o||(Tm(t)?(c=i0(e),l=Ro(c)):ph()===null?(a=!1,c=l0(e),l=Ro(c)):e[Ye]&&(Nl(e[Ye]),e[Ye]=null));try{gg(e),vC(t.bindingStartIndex),r!==null&&dm(t,e,r,2,n);let u=(i&3)===3;if(!o)if(u){let f=t.preOrderCheckHooks;f!==null&&ps(e,f,null)}else{let f=t.preOrderHooks;f!==null&&gs(e,f,0,null),nc(e,0)}if(s||h0(e),Nm(e,0),t.contentQueries!==null&&Em(t,e),!o)if(u){let f=t.contentCheckHooks;f!==null&&ps(e,f)}else{let f=t.contentHooks;f!==null&&gs(e,f,1),nc(e,1)}Tb(t,e);let d=t.components;d!==null&&Rm(e,d,0);let h=t.viewQuery;if(h!==null&&Lc(2,h,n),!o)if(u){let f=t.viewCheckHooks;f!==null&&ps(e,f)}else{let f=t.viewHooks;f!==null&&gs(e,f,2),nc(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[tc]){for(let f of e[tc])f();e[tc]=null}o||(e[O]&=-73)}catch(u){throw o||Ws(e),u}finally{c!==null&&(Tl(c,l),a&&s0(c)),Su()}}function Nm(t,e){for(let r=Kg(t);r!==null;r=Qg(r))for(let n=Ie;n-1&&(vi(e,n),ws(r,n))}this._attachedToViewContainer=!1}Qs(this._lView[k],this._lView)}onDestroy(e){yg(this._lView,e)}markForCheck(){Gu(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[O]&=-129}reattach(){Cc(this._lView),this._lView[O]|=128}detectChanges(){this._lView[O]|=1024,Am(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new m(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Ec(this._lView),r=this._lView[Bn];r!==null&&!e&&Vu(r,this._lView),tm(this._lView[k],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new m(902,!1);this._appRef=e;let r=Ec(this._lView),n=this._lView[Bn];n!==null&&!r&&nm(n,this._lView),Cc(this._lView)}},Bt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=y0;let t=e;return t})(),g0=Bt,m0=class extends g0{constructor(e,r,n){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,n){let i=ea(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:n});return new Kn(i)}};function y0(){return na(Be(),Q())}function na(t,e){return t.type&4?new m0(e,t,Vr(t,e)):null}var RL=new RegExp(`^(\\d+)*(${ob}|${ib})*(.*)`);var v0=()=>null;function Ei(t,e){return v0(t,e)}var wi=class{},qu=new S("",{providedIn:"root",factory:()=>!1});var Om=new S(""),Vc=class{},Os=class{};function D0(t){let e=Error(`No component factory found for ${Re(t)}.`);return e[E0]=t,e}var E0="ngComponent";var Uc=class{resolveComponentFactory(e){throw D0(e)}},od=class od{};od.NULL=new Uc;var Fr=od,fn=class{},Mt=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>w0();let t=e;return t})();function w0(){let t=Q(),e=Be(),r=mn(e.index,t);return(ln(r)?r:t)[De]}var C0=(()=>{let e=class e{};e.\u0275prov=I({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();var _p=new Set;function Gt(t){_p.has(t)||(_p.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var Pm=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let i of n)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=I({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function Bc(t,e,r){let n=r?t.styles:null,i=r?t.classes:null,o=0;if(e!==null)for(let s=0;s0&&sm(t,r,o.join(" "))}}function A0(t,e,r){let n=t.projection=[];for(let i=0;i{let e=class e{};e.__NG_ELEMENT_ID__=x0;let t=e;return t})();function x0(){let t=Be();return km(t,Q())}var R0=pt,Fm=class extends R0{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return Vr(this._hostTNode,this._hostLView)}get injector(){return new Vn(this._hostTNode,this._hostLView)}get parentInjector(){let e=Nu(this._hostTNode,this._hostLView);if(Og(e)){let r=Ms(e,this._hostLView),n=Ss(e),i=r[k].data[n+8];return new Vn(i,r)}else return new Vn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=Sp(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-Ie}createEmbeddedView(e,r,n){let i,o;typeof n=="number"?i=n:n!=null&&(i=n.index,o=n.injector);let s=Ei(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},o,s);return this.insertImpl(a,i,Di(this._hostTNode,s)),a}createComponent(e,r,n,i,o){let s=e&&!Xw(e),a;if(s)a=r;else{let p=r||{};a=p.index,n=p.injector,i=p.projectableNodes,o=p.environmentInjector||p.ngModuleRef}let l=s?e:new Ci(Un(e)),c=n||this.parentInjector;if(!o&&l.ngModule==null){let g=(s?c:this.parentInjector).get(Le,null);g&&(o=g)}let u=Un(l.componentType??{}),d=Ei(this._lContainer,u?.id??null),h=d?.firstChild??null,f=l.create(c,i,h,o);return this.insertImpl(f.hostView,a,Di(this._hostTNode,d)),f}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,n){let i=e._lView;if(sC(i)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let l=i[Se],c=new Fm(l,l[dt],l[Se]);c.detach(c.indexOf(e))}}let o=this._adjustIndex(r),s=this._lContainer;return ta(s,i,o,n),e.attachToViewContainerRef(),qp(ac(s),o,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=Sp(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=vi(this._lContainer,r);n&&(ws(ac(this._lContainer),r),Qs(n[k],n))}detach(e){let r=this._adjustIndex(e,-1),n=vi(this._lContainer,r);return n&&ws(ac(this._lContainer),r)!=null?new Kn(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function Sp(t){return t[_s]}function ac(t){return t[_s]||(t[_s]=[])}function km(t,e){let r,n=e[t.index];return zt(n)?r=n:(r=Dm(n,e,null,t),e[t.index]=r,Xs(e,r)),P0(r,e,t,n),new Fm(r,t,e)}function O0(t,e){let r=t[De],n=r.createComment(""),i=et(e,t),o=im(r,i);return xs(r,o,n,Db(r,i),!1),n}var P0=L0,F0=()=>!1;function k0(t,e,r){return F0(t,e,r)}function L0(t,e,r,n){if(t[$n])return;let i;r.type&8?i=It(n):i=O0(e,r),t[$n]=i}var Hc=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},zc=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let n=e.contentQueries!==null?e.contentQueries[0]:r.length,i=[];for(let o=0;o0)n.push(s[a/2]);else{let c=o[a+1],u=e[-l];for(let d=Ie;de.trim())}function q0(t,e,r){t.queries===null&&(t.queries=new qc),t.queries.track(new Wc(e,r))}function Wu(t,e){return t.queries.getByIndex(e)}function W0(t,e){let r=t[k],n=Wu(r,e);return n.crossesNgTemplate?Kc(r,t,e,[]):Lm(r,t,n,e)}function xi(t,e){Gt("NgSignals");let r=Ih(t),n=r[tn];return e?.equal&&(n.equal=e.equal),r.set=i=>xl(n,i),r.update=i=>Sh(n,i),r.asReadonly=K0.bind(r),r}function K0(){let t=this[tn];if(t.readonlyFn===void 0){let e=()=>this();e[tn]=t,t.readonlyFn=e}return t.readonlyFn}function Q0(t){return Object.getPrototypeOf(t.prototype).constructor}function ye(t){let e=Q0(t.type),r=!0,n=[t];for(;e;){let i;if(un(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new m(903,!1);i=e.\u0275dir}if(i){if(r){n.push(i);let s=t;s.inputs=us(t.inputs),s.inputTransforms=us(t.inputTransforms),s.declaredInputs=us(t.declaredInputs),s.outputs=us(t.outputs);let a=i.hostBindings;a&&e_(t,a);let l=i.viewQuery,c=i.contentQueries;if(l&&J0(t,l),c&&X0(t,c),Z0(t,i),nw(t.outputs,i.outputs),un(i)&&i.data.animation){let u=t.data;u.animation=(u.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;n--){let i=t[n];i.hostVars=e+=i.hostVars,i.hostAttrs=hi(i.hostAttrs,r=hi(r,i.hostAttrs))}}function us(t){return t===Ar?{}:t===Ze?[]:t}function J0(t,e){let r=t.viewQuery;r?t.viewQuery=(n,i)=>{e(n,i),r(n,i)}:t.viewQuery=e}function X0(t,e){let r=t.contentQueries;r?t.contentQueries=(n,i,o)=>{e(n,i,o),r(n,i,o)}:t.contentQueries=e}function e_(t,e){let r=t.hostBindings;r?t.hostBindings=(n,i)=>{e(n,i),r(n,i)}:t.hostBindings=e}var hn=class{},bi=class{};var Qc=class extends hn{constructor(e,r,n,i=!0){super(),this.ngModuleType=e,this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Ps(this);let o=eg(e);this._bootstrapComponents=Xg(o.bootstrap),this._r3Injector=$g(e,r,[{provide:hn,useValue:this},{provide:Fr,useValue:this.componentFactoryResolver},...n],Re(e),new Set(["environment"])),i&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},Zc=class extends bi{constructor(e){super(),this.moduleType=e}create(e){return new Qc(this.moduleType,e,[])}};var Fs=class extends hn{constructor(e){super(),this.componentFactoryResolver=new Ps(this),this.instance=null;let r=new pi([...e.providers,{provide:hn,useValue:this},{provide:Fr,useValue:this.componentFactoryResolver}],e.parent||Du(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Ku(t,e,r=null){return new Fs({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}function jm(t){return n_(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function t_(t,e){if(Array.isArray(t))for(let r=0;r>17&32767}function u_(t){return(t&2)==2}function d_(t,e){return t&131071|e<<17}function Jc(t){return t|2}function kr(t){return(t&131068)>>2}function lc(t,e){return t&-131069|e<<2}function f_(t){return(t&1)===1}function Xc(t){return t|1}function h_(t,e,r,n,i,o){let s=o?e.classBindings:e.styleBindings,a=Qn(s),l=kr(s);t[n]=r;let c=!1,u;if(Array.isArray(r)){let d=r;u=d[1],(u===null||Si(d,u)>0)&&(c=!0)}else u=r;if(i)if(l!==0){let h=Qn(t[a+1]);t[n+1]=ds(h,a),h!==0&&(t[h+1]=lc(t[h+1],n)),t[a+1]=d_(t[a+1],n)}else t[n+1]=ds(a,0),a!==0&&(t[a+1]=lc(t[a+1],n)),a=n;else t[n+1]=ds(l,0),a===0?a=n:t[l+1]=lc(t[l+1],n),l=n;c&&(t[n+1]=Jc(t[n+1])),Mp(t,u,n,!0),Mp(t,u,n,!1),p_(e,u,t,n,o),s=ds(a,l),o?e.classBindings=s:e.styleBindings=s}function p_(t,e,r,n,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&Si(o,e)>=0&&(r[n+1]=Xc(r[n+1]))}function Mp(t,e,r,n){let i=t[r+1],o=e===null,s=n?Qn(i):kr(i),a=!1;for(;s!==0&&(a===!1||o);){let l=t[s],c=t[s+1];g_(l,e)&&(a=!0,t[s+1]=n?Xc(c):Jc(c)),s=n?Qn(c):kr(c)}a&&(t[r+1]=n?Jc(i):Xc(i))}function g_(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Si(t,e)>=0:!1}function Pe(t,e,r){let n=Q(),i=Ni();if($t(n,i,e)){let o=je(),s=Ng();jb(o,s,n,t,e,n[De],r,!1)}return Pe}function Tp(t,e,r,n,i){let o=e.inputs,s=i?"class":"style";Hu(t,r,o[s],s,n)}function Ur(t,e){return m_(t,e,null,!0),Ur}function m_(t,e,r,n){let i=Q(),o=je(),s=bg(2);if(o.firstUpdatePass&&v_(o,t,s,n),e!==ht&&$t(i,s,e)){let a=o.data[yn()];b_(o,a,i,i[De],t,i[s+1]=__(e,r),n,s)}}function y_(t,e){return e>=t.expandoStartIndex}function v_(t,e,r,n){let i=t.data;if(i[r+1]===null){let o=i[yn()],s=y_(t,r);I_(o,n)&&e===null&&!s&&(e=!1),e=D_(i,o,e,n),h_(i,o,e,r,s,n)}}function D_(t,e,r,n){let i=CC(t),o=n?e.residualClasses:e.residualStyles;if(i===null)(n?e.classBindings:e.styleBindings)===0&&(r=cc(null,t,e,r,n),r=_i(r,e.attrs,n),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(r=cc(i,t,e,r,n),o===null){let l=E_(t,e,n);l!==void 0&&Array.isArray(l)&&(l=cc(null,t,e,l[1],n),l=_i(l,e.attrs,n),w_(t,e,n,l))}else o=C_(t,e,n)}return o!==void 0&&(n?e.residualClasses=o:e.residualStyles=o),r}function E_(t,e,r){let n=r?e.classBindings:e.styleBindings;if(kr(n)!==0)return t[Qn(n)]}function w_(t,e,r,n){let i=r?e.classBindings:e.styleBindings;t[Qn(i)]=n}function C_(t,e,r){let n,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let l=t[i],c=Array.isArray(l),u=c?l[1]:l,d=u===null,h=r[i+1];h===ht&&(h=d?Ze:void 0);let f=d?Xl(h,n):u===n?h:void 0;if(c&&!ks(f)&&(f=Xl(l,n)),ks(f)&&(a=f,s))return a;let p=t[i+1];i=s?Qn(p):kr(p)}if(e!==null){let l=o?e.residualClasses:e.residualStyles;l!=null&&(a=Xl(l,n))}return a}function ks(t){return t!==void 0}function __(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=Re(Lu(t)))),t}function I_(t,e){return(t.flags&(e?8:16))!==0}var eu=class{destroy(e){}updateValue(e,r){}swap(e,r){let n=Math.min(e,r),i=Math.max(e,r),o=this.detach(i);if(i-n>1){let s=this.detach(n);this.attach(n,o),this.attach(i,s)}else this.attach(n,o)}move(e,r){this.attach(r,this.detach(e))}};function uc(t,e,r,n,i){return t===r&&Object.is(e,n)?1:Object.is(i(t,e),i(r,n))?-1:0}function S_(t,e,r){let n,i,o=0,s=t.length-1,a=void 0;if(Array.isArray(e)){let l=e.length-1;for(;o<=s&&o<=l;){let c=t.at(o),u=e[o],d=uc(o,c,o,u,r);if(d!==0){d<0&&t.updateValue(o,u),o++;continue}let h=t.at(s),f=e[l],p=uc(s,h,l,f,r);if(p!==0){p<0&&t.updateValue(s,f),s--,l--;continue}let g=r(o,c),y=r(s,h),D=r(o,u);if(Object.is(D,y)){let P=r(l,f);Object.is(P,g)?(t.swap(o,s),t.updateValue(s,f),l--,s--):t.move(s,o),t.updateValue(o,u),o++;continue}if(n??=new Ls,i??=xp(t,o,s,r),tu(t,n,o,D))t.updateValue(o,u),o++,s++;else if(i.has(D))n.set(g,t.detach(o)),s--;else{let P=t.create(o,e[o]);t.attach(o,P),o++,s++}}for(;o<=l;)Np(t,n,r,o,e[o]),o++}else if(e!=null){let l=e[Symbol.iterator](),c=l.next();for(;!c.done&&o<=s;){let u=t.at(o),d=c.value,h=uc(o,u,o,d,r);if(h!==0)h<0&&t.updateValue(o,d),o++,c=l.next();else{n??=new Ls,i??=xp(t,o,s,r);let f=r(o,d);if(tu(t,n,o,f))t.updateValue(o,d),o++,s++,c=l.next();else if(!i.has(f))t.attach(o,t.create(o,d)),o++,s++,c=l.next();else{let p=r(o,u);n.set(p,t.detach(o)),s--}}}for(;!c.done;)Np(t,n,r,t.length,c.value),c=l.next()}for(;o<=s;)t.destroy(t.detach(s--));n?.forEach(l=>{t.destroy(l)})}function tu(t,e,r,n){return e!==void 0&&e.has(n)?(t.attach(r,e.get(n)),e.delete(n),!0):!1}function Np(t,e,r,n,i){if(tu(t,e,n,r(n,i)))t.updateValue(n,i);else{let o=t.create(n,i);t.attach(n,o)}}function xp(t,e,r,n){let i=new Set;for(let o=e;o<=r;o++)i.add(n(o,t.at(o)));return i}var Ls=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let r=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(r)?(this.kvMap.set(e,this._vMap.get(r)),this._vMap.delete(r)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,r){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let i=this._vMap;for(;i.has(n);)n=i.get(n);i.set(n,r)}else this.kvMap.set(e,r)}forEach(e){for(let[r,n]of this.kvMap)if(e(n,r),this._vMap!==void 0){let i=this._vMap;for(;i.has(n);)n=i.get(n),e(n,r)}}};function ra(t,e){Gt("NgControlFlow");let r=Q(),n=Ni(),i=r[n]!==ht?r[n]:-1,o=i!==-1?js(r,ct+i):void 0,s=0;if($t(r,n,t)){let a=G(null);try{if(o!==void 0&&Sm(o,s),t!==-1){let l=ct+t,c=js(r,l),u=ou(r[k],l),d=Ei(c,u.tView.ssrId),h=ea(r,u,e,{dehydratedView:d});ta(c,h,s,Di(u,d))}}finally{G(a)}}else if(o!==void 0){let a=Im(o,s);a!==void 0&&(a[_e]=e)}}var nu=class{constructor(e,r,n){this.lContainer=e,this.$implicit=r,this.$index=n}get $count(){return this.lContainer.length-Ie}};function Um(t){return t}var ru=class{constructor(e,r,n){this.hasEmptyBlock=e,this.trackByFn=r,this.liveCollection=n}};function Zu(t,e,r,n,i,o,s,a,l,c,u,d,h){Gt("NgControlFlow");let f=Q(),p=je(),g=l!==void 0,y=Q(),D=a?s.bind(y[lt][_e]):s,P=new ru(g,D);y[ct+t]=P,Yc(f,p,t+1,e,r,n,i,Pr(p.consts,o)),g&&Yc(f,p,t+2,l,c,u,d,Pr(p.consts,h))}var iu=class extends eu{constructor(e,r,n){super(),this.lContainer=e,this.hostLView=r,this.templateTNode=n,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Ie}at(e){return this.getLView(e)[_e].$implicit}attach(e,r){let n=r[gi];this.needsIndexUpdate||=e!==this.length,ta(this.lContainer,r,e,Di(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,M_(this.lContainer,e)}create(e,r){let n=Ei(this.lContainer,this.templateTNode.tView.ssrId),i=ea(this.hostLView,this.templateTNode,new nu(this.lContainer,r,e),{dehydratedView:n});return this.operationsCounter?.recordCreate(),i}destroy(e){Qs(e[k],e),this.operationsCounter?.recordDestroy()}updateValue(e,r){this.getLView(e)[_e].$implicit=r}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(Tu(!0),em(n,i,IC()));function Oi(){return Q()}var Vs="en-US";var x_=Vs;function R_(t){typeof t=="string"&&(x_=t.toLowerCase().replace(/_/g,"-"))}var O_=(t,e,r)=>{};function Ee(t,e,r,n){let i=Q(),o=je(),s=Be();return F_(o,i,i[De],s,t,e,n),Ee}function P_(t,e,r,n){let i=t.cleanup;if(i!=null)for(let o=0;ol?a[l]:null}typeof s=="string"&&(o+=2)}return null}function F_(t,e,r,n,i,o,s){let a=Eu(n),c=t.firstCreatePass&&Cm(t),u=e[_e],d=wm(e),h=!0;if(n.type&3||s){let g=et(n,e),y=s?s(g):g,D=d.length,P=s?F=>s(It(F[n.index])):n.index,j=null;if(!s&&a&&(j=P_(t,e,i,n.index)),j!==null){let F=j.__ngLastListenerFn__||j;F.__ngNextListenerFn__=o,j.__ngLastListenerFn__=o,h=!1}else{o=Op(n,e,u,o),O_(g,i,o);let F=r.listen(y,i,o);d.push(o,F),c&&c.push(i,P,D,D+1)}}else o=Op(n,e,u,o);let f=n.outputs,p;if(h&&f!==null&&(p=f[i])){let g=p.length;if(g)for(let y=0;y-1?mn(t.index,e):e;Gu(s,5);let a=Rp(e,r,n,o),l=i.__ngNextListenerFn__;for(;l;)a=Rp(e,r,l,o)&&a,l=l.__ngNextListenerFn__;return a}}function $e(t=1){return _C(t)}function Bm(t,e,r){z0(t,e,r)}function Ju(t){let e=Q(),r=je(),n=_g();_u(n+1);let i=Wu(r,n);if(t.dirty&&oC(e)===((i.metadata.flags&2)===2)){if(i.matches===null)t.reset([]);else{let o=W0(e,n);t.reset(o,ZC),t.notifyOnChanges()}return!0}return!1}function Xu(){return $0(Q(),_g())}function b(t,e=""){let r=Q(),n=je(),i=t+ct,o=n.firstCreatePass?Js(n,i,1,e,null):n.data[i],s=k_(n,r,o,e,t);r[i]=s,Mu()&&Uu(n,r,s,o),Ai(o,!1)}var k_=(t,e,r,n,i)=>(Tu(!0),cb(e[De],n));function tt(t){return ia("",t,""),tt}function ia(t,e,r){let n=Q(),i=l_(n,t,e,r);return i!==ht&&_m(n,yn(),i),ia}function oa(t,e,r,n,i){let o=Q(),s=c_(o,t,e,r,n,i);return s!==ht&&_m(o,yn(),s),oa}function L_(t,e,r){let n=je();if(n.firstCreatePass){let i=un(t);su(r,n.data,n.blueprint,i,!0),su(e,n.data,n.blueprint,i,!1)}}function su(t,e,r,n,i){if(t=xe(t),Array.isArray(t))for(let o=0;o>20;if(xr(t)||!t.multi){let f=new Gn(c,i,M),p=fc(l,e,i?u:u+h,d);p===-1?(Sc(Ts(a,s),o,l),dc(o,t,e.length),e.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(f),s.push(f)):(r[p]=f,s[p]=f)}else{let f=fc(l,e,u+h,d),p=fc(l,e,u,u+h),g=f>=0&&r[f],y=p>=0&&r[p];if(i&&!y||!i&&!g){Sc(Ts(a,s),o,l);let D=U_(i?V_:j_,r.length,i,n,c);!i&&y&&(r[p].providerFactory=D),dc(o,t,e.length,0),e.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(D),s.push(D)}else{let D=$m(r[i?p:f],c,!i&&n);dc(o,t,f>-1?f:p,D)}!i&&n&&y&&r[p].componentProviders++}}}function dc(t,e,r,n){let i=xr(e),o=Gw(e);if(i||o){let l=(o?xe(e.useClass):e).prototype.ngOnDestroy;if(l){let c=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){let u=c.indexOf(r);u===-1?c.push(r,[n,l]):c[u+1].push(n,l)}else c.push(r,l)}}}function $m(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function fc(t,e,r,n){for(let i=r;i{r.providersResolver=(n,i)=>L_(n,i?i(t):t,e)}}var B_=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let i=rg(!1,n.type),o=i.length>0?Ku([i],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=I({token:e,providedIn:"environment",factory:()=>new e(T(Le))});let t=e;return t})();function En(t){Gt("NgStandalone"),t.getStandaloneInjector=e=>e.get(B_).getOrCreateStandaloneInjector(t)}function Hm(t,e,r){let n=bu()+t,i=Q();return i[n]===ht?Qu(i,n,r?e.call(r):e()):r_(i,n)}function zm(t,e,r,n){return $_(Q(),bu(),t,e,r,n)}function Pi(t,e,r,n,i){return H_(Q(),bu(),t,e,r,n,i)}function Gm(t,e){let r=t[e];return r===ht?void 0:r}function $_(t,e,r,n,i,o){let s=e+r;return $t(t,s,i)?Qu(t,s+1,o?n.call(o,i):n(i)):Gm(t,s+1)}function H_(t,e,r,n,i,o,s){let a=e+r;return Vm(t,a,i,o)?Qu(t,a+2,s?n.call(s,i,o):n(i,o)):Gm(t,a+2)}function qm(t,e){return na(t,e)}var sa=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var ed=new S(""),Fi=new S(""),aa=(()=>{let e=class e{constructor(n,i,o){this._ngZone=n,this.registry=i,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,td||(z_(o),o.addToWindow(i)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{te.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>i.updateCb&&i.updateCb(n)?(clearTimeout(i.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n()},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:o})}whenStable(n,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,o),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,i,o){return[]}};e.\u0275fac=function(i){return new(i||e)(T(te),T(la),T(Fi))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),la=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return td?.findTestabilityInTree(this,n,i)??null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function z_(t){td=t}var td;function Zn(t){return!!t&&typeof t.then=="function"}function Wm(t){return!!t&&typeof t.subscribe=="function"}var Km=new S(""),Qm=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i}),this.appInits=v(Km,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(Zn(s))n.push(s);else if(Wm(s)){let a=new Promise((l,c)=>{s.subscribe({complete:l,error:c})});n.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),n.length===0&&i(),this.initialized=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ca=new S("");function G_(){_h(()=>{throw new m(600,!1)})}function q_(t){return t.isBoundToModule}var W_=10;function K_(t,e,r){try{let n=r();return Zn(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}var qt=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=v(KC),this.afterRenderEffectManager=v(Pm),this.zonelessEnabled=v(qu),this.externalTestViews=new Set,this.beforeRender=new le,this.afterTick=new le,this.componentTypes=[],this.components=[],this.isStable=v(vn).hasPendingTasks.pipe(R(n=>!n)),this._injector=v(Le)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(i=>{n=this.isStable.subscribe({next:o=>{o&&i()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,i){let o=n instanceof Os;if(!this._injector.get(Qm).done){let f=!o&&Xp(n),p=!1;throw new m(405,p)}let a;o?a=n:a=this._injector.get(Fr).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let l=q_(a)?void 0:this._injector.get(hn),c=i||a.selector,u=a.create(Vt.NULL,[],c,l),d=u.location.nativeElement,h=u.injector.get(ed,null);return h?.registerApplication(d),u.onDestroy(()=>{this.detachView(u.hostView),ys(this.components,u),h?.unregisterApplication(d)}),this._loadComponent(u),u}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new m(101,!1);let i=G(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(o){this.internalErrorHandler(o)}finally{this._runningTick=!1,G(i),this.afterTick.next()}}detectChangesInAttachedViews(n){let i=null;this._injector.destroyed||(i=this._injector.get(fn,null,{optional:!0}));let o=0,s=this.afterRenderEffectManager;for(;oyi(l))&&(s.execute(),!this.allViews.some(({_lView:l})=>yi(l))))break}}attachView(n){let i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){let i=n;ys(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let i=this._injector.get(ca,[]);[...this._bootstrapListeners,...i].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>ys(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new m(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function ys(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function Q_(t,e,r,n){if(!r&&!yi(t))return;Am(t,e,r&&!n?0:1)}var lu=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},nd=(()=>{let e=class e{compileModuleSync(n){return new Zc(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let i=this.compileModuleSync(n),o=eg(n),s=Xg(o.declarations).reduce((a,l)=>{let c=Un(l);return c&&a.push(new Ci(c)),a},[]);return new lu(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Z_=(()=>{let e=class e{constructor(){this.zone=v(te),this.changeDetectionScheduler=v(wi),this.applicationRef=v(qt)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Y_=new S("",{factory:()=>!1});function Zm({ngZoneFactory:t,ignoreChangesOutsideZone:e}){return t??=()=>new te(Jm()),[{provide:te,useFactory:t},{provide:Nr,multi:!0,useFactory:()=>{let r=v(Z_,{optional:!0});return()=>r.initialize()}},{provide:Nr,multi:!0,useFactory:()=>{let r=v(J_);return()=>{r.initialize()}}},e===!0?{provide:Om,useValue:!0}:[]]}function Ym(t){let e=t?.ignoreChangesOutsideZone,r=Zm({ngZoneFactory:()=>{let n=Jm(t);return n.shouldCoalesceEventChangeDetection&&Gt("NgZone_CoalesceEvent"),new te(n)},ignoreChangesOutsideZone:e});return Lr([{provide:Y_,useValue:!0},{provide:qu,useValue:!1},r])}function Jm(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var J_=(()=>{let e=class e{constructor(){this.subscription=new se,this.initialized=!1,this.zone=v(te),this.pendingTasks=v(vn)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{te.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{te.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var X_=(()=>{let e=class e{constructor(){this.appRef=v(qt),this.taskService=v(vn),this.ngZone=v(te),this.zonelessEnabled=v(qu),this.disableScheduling=v(Om,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new se,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Ns):null,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof xc||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let i=this.useMicrotaskScheduler?mp:zg;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=i(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=i(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Ns+this.angularZoneId))}tick(n){if(this.runningTick||this.appRef.destroyed)return;let i=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(n)},void 0,this.schedulerTickApplyArgs)}catch(o){throw this.taskService.remove(i),o}finally{this.cleanup()}this.useMicrotaskScheduler=!0,mp(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(i)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function eI(){return typeof $localize<"u"&&$localize.locale||Vs}var rd=new S("",{providedIn:"root",factory:()=>v(rd,$.Optional|$.SkipSelf)||eI()});var Xm=new S("");function fs(t){return!!t.platformInjector}function tI(t){let e=fs(t)?t.r3Injector:t.moduleRef.injector,r=e.get(te);return r.run(()=>{fs(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=e.get(dn,null),i;if(r.runOutsideAngular(()=>{i=r.onError.subscribe({next:o=>{n.handleError(o)}})}),fs(t)){let o=()=>e.destroy(),s=t.platformInjector.get(Xm);s.add(o),e.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else t.moduleRef.onDestroy(()=>{ys(t.allPlatformModules,t.moduleRef),i.unsubscribe()});return K_(n,r,()=>{let o=e.get(Qm);return o.runInitializers(),o.donePromise.then(()=>{let s=e.get(rd,Vs);if(R_(s||Vs),fs(t)){let a=e.get(qt);return t.rootComponent!==void 0&&a.bootstrap(t.rootComponent),a}else return nI(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function nI(t,e){let r=t.injector.get(qt);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(n=>r.bootstrap(n));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(r);else throw new m(-403,!1);e.push(t)}var vs=null;function rI(t=[],e){return Vt.create({name:e,providers:[{provide:zs,useValue:"platform"},{provide:Xm,useValue:new Set([()=>vs=null])},...t]})}function iI(t=[]){if(vs)return vs;let e=rI(t);return vs=e,G_(),oI(e),e}function oI(t){t.get(Ou,null)?.forEach(r=>r())}var wn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=sI;let t=e;return t})();function sI(t){return aI(Be(),Q(),(t&16)===16)}function aI(t,e,r){if(qs(t)&&!r){let n=mn(t.index,e);return new Kn(n,n)}else if(t.type&175){let n=e[lt];return new Kn(n,e)}return null}var cu=class{constructor(){}supports(e){return jm(e)}create(e){return new uu(e)}},lI=(t,e)=>e,uu=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||lI}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,n=this._removalsHead,i=0,o=null;for(;r||n;){let s=!n||r&&r.currentIndex{s=this._trackByFn(i,a),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,a,s,i),n=!0):(n&&(r=this._verifyReinsertion(r,a,s,i)),Object.is(r.item,a)||this._addIdentityChange(r,a)),r=r._next,i++}),this.length=i;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,r,n,i){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,o,i)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,i),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,o,i)):e=this._addAfter(new du(r,n),o,i)),e}_verifyReinsertion(e,r,n,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;e!==null;){let r=e._next;this._addToRemovals(this._unlink(e)),e=r}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,r,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let i=e._prevRemoved,o=e._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(e,r,n),this._addToMoves(e,n),e}_moveAfter(e,r,n){return this._unlink(e),this._insertAfter(e,r,n),this._addToMoves(e,n),e}_addAfter(e,r,n){return this._insertAfter(e,r,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,n){let i=r===null?this._itHead:r._next;return e._next=i,e._prev=r,i===null?this._itTail=e:i._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new Us),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,n=e._next;return r===null?this._itHead=n:r._next=n,n===null?this._itTail=r:n._prev=r,e}_addToMoves(e,r){return e.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Us),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,r){return e.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},du=class{constructor(e,r){this.item=e,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},fu=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,r){let n;for(n=this._head;n!==null;n=n._nextDup)if((r===null||r<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let r=e._prevDup,n=e._nextDup;return r===null?this._head=n:r._nextDup=n,n===null?this._tail=r:n._prevDup=r,this._head===null}},Us=class{constructor(){this.map=new Map}put(e){let r=e.trackById,n=this.map.get(r);n||(n=new fu,this.map.set(r,n)),n.add(e)}get(e,r){let n=e,i=this.map.get(n);return i?i.get(e,r):null}remove(e){let r=e.trackById;return this.map.get(r).remove(e)&&this.map.delete(r),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Pp(t,e,r){let n=t.previousIndex;if(n===null)return n;let i=0;return r&&n{let e=class e{constructor(n){this.factories=n}static create(n,i){if(i!=null){let o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Fp()),deps:[[e,new Gp,new pu]]}}find(n){let i=this.factories.find(o=>o.supports(n));if(i!=null)return i;throw new m(901,!1)}};e.\u0275prov=I({token:e,providedIn:"root",factory:Fp});let t=e;return t})();var ey=(()=>{let e=class e{constructor(n){}};e.\u0275fac=function(i){return new(i||e)(T(qt))},e.\u0275mod=Xe({type:e}),e.\u0275inj=Je({});let t=e;return t})();function ty(t){try{let{rootComponent:e,appProviders:r,platformProviders:n}=t,i=iI(n),o=[Zm({}),{provide:wi,useExisting:X_},...r||[]],s=new Fs({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1});return tI({r3Injector:s.injector,platformInjector:i,rootComponent:e})}catch(e){return Promise.reject(e)}}var ny=new S("");function ki(t,e){Gt("NgSignals");let r=wh(t);return e?.equal&&(r[tn].equal=e.equal),r}function Wt(t){let e=G(null);try{return t()}finally{G(e)}}var cy=null;function At(){return cy}function uy(t){cy??=t}var ua=class{};var we=new S(""),dy=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>v(fI),providedIn:"platform"});let t=e;return t})();var fI=(()=>{let e=class e extends dy{constructor(){super(),this._doc=v(we),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return At().getBaseHref(this._doc)}onPopState(n){let i=At().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",n,!1),()=>i.removeEventListener("popstate",n)}onHashChange(n){let i=At().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",n,!1),()=>i.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,i,o){this._history.pushState(n,i,o)}replaceState(n,i,o){this._history.replaceState(n,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function fy(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function ry(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,n=r-(t[r-1]==="/"?1:0);return t.slice(0,n)+t.slice(r)}function Yn(t){return t&&t[0]!=="?"?"?"+t:t}var da=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>v(hy),providedIn:"root"});let t=e;return t})(),hI=new S(""),hy=(()=>{let e=class e extends da{constructor(n,i){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??v(we).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return fy(this._baseHref,n)}path(n=!1){let i=this._platformLocation.pathname+Yn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${i}${o}`:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+Yn(s));this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+Yn(s));this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(T(dy),T(hI,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Li=(()=>{let e=class e{constructor(n){this._subject=new ie,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let i=this._locationStrategy.getBaseHref();this._basePath=mI(ry(iy(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,i=""){return this.path()==this.normalize(n+Yn(i))}normalize(n){return e.stripTrailingSlash(gI(this._basePath,iy(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,i="",o=null){this._locationStrategy.pushState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Yn(i)),o)}replaceState(n,i="",o=null){this._locationStrategy.replaceState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Yn(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",i){this._urlChangeListeners.forEach(o=>o(n,i))}subscribe(n,i,o){return this._subject.subscribe({next:n,error:i,complete:o})}};e.normalizeQueryParams=Yn,e.joinWithSlash=fy,e.stripTrailingSlash=ry,e.\u0275fac=function(i){return new(i||e)(T(da))},e.\u0275prov=I({token:e,factory:()=>pI(),providedIn:"root"});let t=e;return t})();function pI(){return new Li(T(da))}function gI(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function iy(t){return t.replace(/\/index.html$/,"")}function mI(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}function fa(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let n=r.indexOf("="),[i,o]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var sd=/\s+/,oy=[],py=(()=>{let e=class e{constructor(n,i){this._ngEl=n,this._renderer=i,this.initialClasses=oy,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(sd):oy}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(sd):n}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let i of n)this._updateState(i,!0);else if(n!=null)for(let i of Object.keys(n))this._updateState(i,!!n[i]);this._applyStateDiff()}_updateState(n,i){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(n,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let i=n[0],o=n[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(n,i){n=n.trim(),n.length>0&&n.split(sd).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};e.\u0275fac=function(i){return new(i||e)(M(Me),M(Mt))},e.\u0275dir=J({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var ad=class{constructor(e,r,n,i){this.$implicit=e,this.ngForOf=r,this.index=n,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},gy=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,i,o){this._viewContainer=n,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let i=this._viewContainer;n.forEachOperation((o,s,a)=>{if(o.previousIndex==null)i.createEmbeddedView(this._template,new ad(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(s===null?void 0:s);else if(s!==null){let l=i.get(s);i.move(l,a),sy(l,o)}});for(let o=0,s=i.length;o{let s=i.get(o.currentIndex);sy(s,o)})}static ngTemplateContextGuard(n,i){return!0}};e.\u0275fac=function(i){return new(i||e)(M(pt),M(Bt),M(id))},e.\u0275dir=J({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function sy(t,e){t.context.$implicit=e.item}var my=(()=>{let e=class e{constructor(n,i){this._viewContainer=n,this._context=new ld,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){ay("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){ay("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,i){return!0}};e.\u0275fac=function(i){return new(i||e)(M(pt),M(Bt))},e.\u0275dir=J({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),ld=class{constructor(){this.$implicit=null,this.ngIf=null}};function ay(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${Re(e)}'.`)}var yy=(()=>{let e=class e{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(this._shouldRecreateView(n)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,i,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,o):!1,get:(n,i,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,o)}})}};e.\u0275fac=function(i){return new(i||e)(M(pt))},e.\u0275dir=J({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[St]});let t=e;return t})();var ha=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Xe({type:e}),e.\u0275inj=Je({});let t=e;return t})(),vy="browser",yI="server";function pa(t){return t===yI}var Br=class{};var Vi=class{},ma=class{},Kt=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` -`).forEach(r=>{let n=r.indexOf(":");if(n>0){let i=r.slice(0,n),o=i.toLowerCase(),s=r.slice(n+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new t;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,r);let i=(e.op==="a"?this.headers.get(r):void 0)||[];i.push(...n),this.headers.set(r,i);break;case"d":let o=e.value;if(!o)this.headers.delete(r),this.normalizedNames.delete(r);else{let s=this.headers.get(r);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,s)}break}}setHeaderEntries(e,r){let n=(Array.isArray(r)?r:[r]).map(o=>o.toString()),i=e.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var dd=class{encodeKey(e){return Ey(e)}encodeValue(e){return Ey(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function vI(t,e){let r=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],l=r.get(s)||[];l.push(a),r.set(s,l)}),r}var DI=/%(\d[a-f0-9])/gi,EI={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Ey(t){return encodeURIComponent(t).replace(DI,(e,r)=>EI[r]??e)}function ga(t){return`${t}`}var Nt=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new dd,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=vI(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let n=e.fromObject[r],i=Array.isArray(n)?n.map(ga):[ga(n)];this.map.set(r,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(n=>{let i=e[n];Array.isArray(i)?i.forEach(o=>{r.push({param:n,value:o,op:"a"})}):r.push({param:n,value:i,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(n=>r+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new t({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(ga(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],i=n.indexOf(ga(e.value));i!==-1&&n.splice(i,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var fd=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function wI(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function wy(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Cy(t){return typeof Blob<"u"&&t instanceof Blob}function by(t){return typeof FormData<"u"&&t instanceof FormData}function CI(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var ji=class t{constructor(e,r,n,i){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(wI(this.method)||i?(this.body=n!==void 0?n:null,o=i):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new Kt,this.context??=new fd,!this.params)this.params=new Nt,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),l=a===-1?"?":ah.set(f,e.setHeaders[f]),c)),e.setParams&&(u=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),u)),new t(r,n,s,{params:u,headers:c,context:d,reportProgress:l,responseType:i,withCredentials:a,transferCache:o})}},bn=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(bn||{}),Ui=class{constructor(e,r=200,n="OK"){this.headers=e.headers||new Kt,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},ya=class t extends Ui{constructor(e={}){super(e),this.type=bn.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Bi=class t extends Ui{constructor(e={}){super(e),this.type=bn.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Cn=class extends Ui{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},My=200,bI=204;function ud(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var $i=(()=>{let e=class e{constructor(n){this.handler=n}request(n,i,o={}){let s;if(n instanceof ji)s=n;else{let c;o.headers instanceof Kt?c=o.headers:c=new Kt(o.headers);let u;o.params&&(o.params instanceof Nt?u=o.params:u=new Nt({fromObject:o.params})),s=new ji(n,i,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=x(s).pipe(rn(c=>this.handler.handle(c)));if(n instanceof ji||o.observe==="events")return a;let l=a.pipe(me(c=>c instanceof Bi));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return l.pipe(R(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return l.pipe(R(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return l.pipe(R(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return l.pipe(R(c=>c.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,i={}){return this.request("DELETE",n,i)}get(n,i={}){return this.request("GET",n,i)}head(n,i={}){return this.request("HEAD",n,i)}jsonp(n,i){return this.request("JSONP",n,{params:new Nt().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,i={}){return this.request("OPTIONS",n,i)}patch(n,i,o={}){return this.request("PATCH",n,ud(o,i))}post(n,i,o={}){return this.request("POST",n,ud(o,i))}put(n,i,o={}){return this.request("PUT",n,ud(o,i))}};e.\u0275fac=function(i){return new(i||e)(T(Vi))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),_I=/^\)\]\}',?\n/,II="X-Request-URL";function _y(t){if(t.url)return t.url;let e=II.toLocaleLowerCase();return t.headers.get(e)}var SI=(()=>{let e=class e{constructor(){this.fetchImpl=v(hd,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=v(te)}handle(n){return new q(i=>{let o=new AbortController;return this.doRequest(n,o.signal,i).then(pd,s=>i.error(new Cn({error:s}))),()=>o.abort()})}doRequest(n,i,o){return To(this,null,function*(){let s=this.createRequestInit(n),a;try{let p=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,E({signal:i},s)));MI(p),o.next({type:bn.Sent}),a=yield p}catch(p){o.error(new Cn({error:p,status:p.status??0,statusText:p.statusText,url:n.urlWithParams,headers:p.headers}));return}let l=new Kt(a.headers),c=a.statusText,u=_y(a)??n.urlWithParams,d=a.status,h=null;if(n.reportProgress&&o.next(new ya({headers:l,status:d,statusText:c,url:u})),a.body){let p=a.headers.get("content-length"),g=[],y=a.body.getReader(),D=0,P,j,F=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>To(this,null,function*(){for(;;){let{done:Z,value:ee}=yield y.read();if(Z)break;if(g.push(ee),D+=ee.length,n.reportProgress){j=n.responseType==="text"?(j??"")+(P??=new TextDecoder).decode(ee,{stream:!0}):void 0;let ae=()=>o.next({type:bn.DownloadProgress,total:p?+p:void 0,loaded:D,partialText:j});F?F.run(ae):ae()}}}));let de=this.concatChunks(g,D);try{let Z=a.headers.get("Content-Type")??"";h=this.parseBody(n,de,Z)}catch(Z){o.error(new Cn({error:Z,headers:new Kt(a.headers),status:a.status,statusText:a.statusText,url:_y(a)??n.urlWithParams}));return}}d===0&&(d=h?My:0),d>=200&&d<300?(o.next(new Bi({body:h,headers:l,status:d,statusText:c,url:u})),o.complete()):o.error(new Cn({error:h,headers:l,status:d,statusText:c,url:u}))})}parseBody(n,i,o){switch(n.responseType){case"json":let s=new TextDecoder().decode(i).replace(_I,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(i);case"blob":return new Blob([i],{type:o});case"arraybuffer":return i.buffer}}createRequestInit(n){let i={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((s,a)=>i[s]=a.join(",")),n.headers.has("Accept")||(i.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let s=n.detectContentTypeHeader();s!==null&&(i["Content-Type"]=s)}return{body:n.serializeBody(),method:n.method,headers:i,credentials:o}}concatChunks(n,i){let o=new Uint8Array(i),s=0;for(let a of n)o.set(a,s),s+=a.length;return o}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),hd=class{};function pd(){}function MI(t){t.then(pd,pd)}function TI(t,e){return e(t)}function AI(t,e,r){return(n,i)=>ut(r,()=>e(n,o=>t(o,i)))}var Ty=new S(""),NI=new S(""),xI=new S("",{providedIn:"root",factory:()=>!0});var Iy=(()=>{let e=class e extends Vi{constructor(n,i){super(),this.backend=n,this.injector=i,this.chain=null,this.pendingTasks=v(vn),this.contributeToStability=v(xI)}handle(n){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(Ty),...this.injector.get(NI,[])]));this.chain=i.reduceRight((o,s)=>AI(o,s,this.injector),TI)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Ln(()=>this.pendingTasks.remove(i)))}else return this.chain(n,i=>this.backend.handle(i))}};e.\u0275fac=function(i){return new(i||e)(T(ma),T(Le))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})();var RI=/^\)\]\}',?\n/;function OI(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var Sy=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new m(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?re(i.\u0275loadImpl()):x(null)).pipe(Ne(()=>new q(s=>{let a=i.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((y,D)=>a.setRequestHeader(y,D.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let y=n.detectContentTypeHeader();y!==null&&a.setRequestHeader("Content-Type",y)}if(n.responseType){let y=n.responseType.toLowerCase();a.responseType=y!=="json"?y:"text"}let l=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let y=a.statusText||"OK",D=new Kt(a.getAllResponseHeaders()),P=OI(a)||n.url;return c=new ya({headers:D,status:a.status,statusText:y,url:P}),c},d=()=>{let{headers:y,status:D,statusText:P,url:j}=u(),F=null;D!==bI&&(F=typeof a.response>"u"?a.responseText:a.response),D===0&&(D=F?My:0);let de=D>=200&&D<300;if(n.responseType==="json"&&typeof F=="string"){let Z=F;F=F.replace(RI,"");try{F=F!==""?JSON.parse(F):null}catch(ee){F=Z,de&&(de=!1,F={error:ee,text:F})}}de?(s.next(new Bi({body:F,headers:y,status:D,statusText:P,url:j||void 0})),s.complete()):s.error(new Cn({error:F,headers:y,status:D,statusText:P,url:j||void 0}))},h=y=>{let{url:D}=u(),P=new Cn({error:y,status:a.status||0,statusText:a.statusText||"Unknown Error",url:D||void 0});s.error(P)},f=!1,p=y=>{f||(s.next(u()),f=!0);let D={type:bn.DownloadProgress,loaded:y.loaded};y.lengthComputable&&(D.total=y.total),n.responseType==="text"&&a.responseText&&(D.partialText=a.responseText),s.next(D)},g=y=>{let D={type:bn.UploadProgress,loaded:y.loaded};y.lengthComputable&&(D.total=y.total),s.next(D)};return a.addEventListener("load",d),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),n.reportProgress&&(a.addEventListener("progress",p),l!==null&&a.upload&&a.upload.addEventListener("progress",g)),a.send(l),s.next({type:bn.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",d),a.removeEventListener("timeout",h),n.reportProgress&&(a.removeEventListener("progress",p),l!==null&&a.upload&&a.upload.removeEventListener("progress",g)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(i){return new(i||e)(T(Br))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),Ay=new S(""),PI="XSRF-TOKEN",FI=new S("",{providedIn:"root",factory:()=>PI}),kI="X-XSRF-TOKEN",LI=new S("",{providedIn:"root",factory:()=>kI}),va=class{},jI=(()=>{let e=class e{constructor(n,i,o){this.doc=n,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=fa(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(i){return new(i||e)(T(we),T(Dn),T(FI))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})();function VI(t,e){let r=t.url.toLowerCase();if(!v(Ay)||t.method==="GET"||t.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(t);let n=v(va).getToken(),i=v(LI);return n!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),e(t)}function Ny(...t){let e=[$i,Sy,Iy,{provide:Vi,useExisting:Iy},{provide:ma,useFactory:()=>v(SI,{optional:!0})??v(Sy)},{provide:Ty,useValue:VI,multi:!0},{provide:Ay,useValue:!0},{provide:va,useClass:jI}];for(let r of t)e.push(...r.\u0275providers);return Lr(e)}var yd=class extends ua{constructor(){super(...arguments),this.supportsDOMEvents=!0}},vd=class t extends yd{static makeCurrent(){uy(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.remove()}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=UI();return r==null?null:BI(r)}resetBaseElement(){Hi=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return fa(document.cookie,e)}},Hi=null;function UI(){return Hi=Hi||document.querySelector("base"),Hi?Hi.getAttribute("href"):null}function BI(t){return new URL(t,document.baseURI).pathname}var Dd=class{addToWindow(e){pn.getAngularTestability=(n,i=!0)=>{let o=e.findTestabilityInTree(n,i);if(o==null)throw new m(5103,!1);return o},pn.getAllAngularTestabilities=()=>e.getAllTestabilities(),pn.getAllAngularRootElements=()=>e.getAllRootElements();let r=n=>{let i=pn.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&n()};i.forEach(a=>{a.whenStable(s)})};pn.frameworkStabilizers||(pn.frameworkStabilizers=[]),pn.frameworkStabilizers.push(r)}findTestabilityInTree(e,r,n){if(r==null)return null;let i=e.getTestability(r);return i??(n?At().isShadowRoot(r)?this.findTestabilityInTree(e,r.host,!0):this.findTestabilityInTree(e,r.parentElement,!0):null)}},$I=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),Da=new S(""),Py=(()=>{let e=class e{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,i,o){return this._findPluginFor(i).addEventListener(n,i,o)}getZone(){return this._zone}_findPluginFor(n){let i=this._eventNameToPlugin.get(n);if(i)return i;if(i=this._plugins.find(s=>s.supports(n)),!i)throw new m(5101,!1);return this._eventNameToPlugin.set(n,i),i}};e.\u0275fac=function(i){return new(i||e)(T(Da),T(te))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),zi=class{constructor(e){this._doc=e}},gd="ng-app-id",Fy=(()=>{let e=class e{constructor(n,i,o,s={}){this.doc=n,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=pa(s),this.resetHostNodes()}addStyles(n){for(let i of n)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(n){for(let i of n)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(i=>i.remove()),n.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let i of this.getAllStyles())this.addStyleToHost(n,i)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let i of this.hostNodes)this.addStyleToHost(i,n)}onStyleRemoved(n){let i=this.styleRef;i.get(n)?.elements?.forEach(o=>o.remove()),i.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${gd}="${this.appId}"]`);if(n?.length){let i=new Map;return n.forEach(o=>{o.textContent!=null&&i.set(o.textContent,o)}),i}return null}changeUsageCount(n,i){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=i,s.usage}return o.set(n,{usage:i,elements:[]}),i}getStyleElement(n,i){let o=this.styleNodesInDOM,s=o?.get(i);if(s?.parentNode===n)return o.delete(i),s.removeAttribute(gd),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(gd,this.appId),n.appendChild(a),a}}addStyleToHost(n,i){let o=this.getStyleElement(n,i),s=this.styleRef,a=s.get(i)?.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(T(we),T(Ks),T(Fu,8),T(Dn))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),md={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},wd=/%COMP%/g,ky="%COMP%",HI=`_nghost-${ky}`,zI=`_ngcontent-${ky}`,GI=!0,qI=new S("",{providedIn:"root",factory:()=>GI});function WI(t){return zI.replace(wd,t)}function KI(t){return HI.replace(wd,t)}function Ly(t,e){return e.map(r=>r.replace(wd,t))}var Ea=(()=>{let e=class e{constructor(n,i,o,s,a,l,c,u=null){this.eventManager=n,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=l,this.ngZone=c,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=pa(l),this.defaultRenderer=new Gi(n,a,c,this.platformIsServer)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===_t.ShadowDom&&(i=K(E({},i),{encapsulation:_t.Emulated}));let o=this.getOrCreateRenderer(n,i);return o instanceof wa?o.applyToHost(n):o instanceof qi&&o.applyStyles(),o}getOrCreateRenderer(n,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,l=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(i.encapsulation){case _t.Emulated:s=new wa(c,u,i,this.appId,d,a,l,h);break;case _t.ShadowDom:return new Ed(c,u,n,i,a,l,this.nonce,h);default:s=new qi(c,u,i,d,a,l,h);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(T(Py),T(Fy),T(Ks),T(qI),T(we),T(Dn),T(te),T(Fu))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),Gi=class{constructor(e,r,n,i){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(md[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(Ry(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(Ry(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){r.remove()}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new m(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,i){if(i){r=i+":"+r;let o=md[i];o?e.setAttributeNS(o,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let i=md[n];i?e.removeAttributeNS(i,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,i){i&(Ut.DashCase|Ut.Important)?e.style.setProperty(r,n,i&Ut.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&Ut.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=At().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function Ry(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Ed=class extends Gi{constructor(e,r,n,i,o,s,a,l){super(e,o,s,l),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=Ly(i.id,i.styles);for(let u of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}removeChild(e,r){return super.removeChild(null,r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},qi=class extends Gi{constructor(e,r,n,i,o,s,a,l){super(e,o,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=l?Ly(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},wa=class extends qi{constructor(e,r,n,i,o,s,a,l){let c=i+"-"+n.id;super(e,r,n,o,s,a,l,c),this.contentAttr=WI(c),this.hostAttr=KI(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},QI=(()=>{let e=class e extends zi{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,o){return n.addEventListener(i,o,!1),()=>this.removeEventListener(n,i,o)}removeEventListener(n,i,o){return n.removeEventListener(i,o)}};e.\u0275fac=function(i){return new(i||e)(T(we))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),ZI=(()=>{let e=class e extends zi{constructor(n){super(n),this.delegate=v(ny,{optional:!0})}supports(n){return this.delegate?this.delegate.supports(n):!1}addEventListener(n,i,o){return this.delegate.addEventListener(n,i,o)}removeEventListener(n,i,o){return this.delegate.removeEventListener(n,i,o)}};e.\u0275fac=function(i){return new(i||e)(T(we))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),Oy=["alt","control","meta","shift"],YI={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},JI={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},XI=(()=>{let e=class e extends zi{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,i,o){let s=e.parseEventName(i),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>At().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let i=n.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(i.pop()),a="",l=i.indexOf("code");if(l>-1&&(i.splice(l,1),a="code."),Oy.forEach(u=>{let d=i.indexOf(u);d>-1&&(i.splice(d,1),a+=u+".")}),a+=s,i.length!=0||s.length===0)return null;let c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(n,i){let o=YI[n.key]||n.key,s="";return i.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Oy.forEach(a=>{if(a!==o){let l=JI[a];l(n)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(n,i,o){return s=>{e.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>i(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(i){return new(i||e)(T(we))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})();function jy(t,e){return ty(E({rootComponent:t},eS(e)))}function eS(t){return{appProviders:[...Vy,...t?.providers??[]],platformProviders:iS}}function tS(){vd.makeCurrent()}function nS(){return new dn}function rS(){return Yg(document),document}var iS=[{provide:Dn,useValue:vy},{provide:Ou,useValue:tS,multi:!0},{provide:we,useFactory:rS,deps:[]}];var oS=new S(""),sS=[{provide:Fi,useClass:Dd,deps:[]},{provide:ed,useClass:aa,deps:[te,la,Fi]},{provide:aa,useClass:aa,deps:[te,la,Fi]}],Vy=[{provide:zs,useValue:"root"},{provide:dn,useFactory:nS,deps:[]},{provide:Da,useClass:QI,multi:!0,deps:[we,te,Dn]},{provide:Da,useClass:XI,multi:!0,deps:[we]},{provide:Da,useClass:ZI,multi:!0},Ea,Fy,Py,{provide:fn,useExisting:Ea},{provide:Br,useClass:$I,deps:[]},[]],Uy=(()=>{let e=class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Ks,useValue:n.appId}]}}};e.\u0275fac=function(i){return new(i||e)(T(oS,12))},e.\u0275mod=Xe({type:e}),e.\u0275inj=Je({providers:[...Vy,...sS],imports:[ha,ey]});let t=e;return t})();var By=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(i){return new(i||e)(T(we))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var B="primary",co=Symbol("RouteTitle"),Sd=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function Wr(t){return new Sd(t)}function lS(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.lengthn[o]===i)}else return t===e}function Zy(t){return t.length>0?t[t.length-1]:null}function In(t){return $l(t)?t:Zn(t)?re(Promise.resolve(t)):x(t)}var uS={exact:Jy,subset:Xy},Yy={exact:dS,subset:fS,ignored:()=>!0};function $y(t,e,r){return uS[r.paths](t.root,e.root,r.matrixParams)&&Yy[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function dS(t,e){return xt(t,e)}function Jy(t,e,r){if(!Xn(t.segments,e.segments)||!_a(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!Jy(t.children[n],e.children[n],r))return!1;return!0}function fS(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>Qy(t[r],e[r]))}function Xy(t,e,r){return ev(t,e,e.segments,r)}function ev(t,e,r,n){if(t.segments.length>r.length){let i=t.segments.slice(0,r.length);return!(!Xn(i,r)||e.hasChildren()||!_a(i,r,n))}else if(t.segments.length===r.length){if(!Xn(t.segments,r)||!_a(t.segments,r,n))return!1;for(let i in e.children)if(!t.children[i]||!Xy(t.children[i],e.children[i],n))return!1;return!0}else{let i=r.slice(0,t.segments.length),o=r.slice(t.segments.length);return!Xn(t.segments,i)||!_a(t.segments,i,n)||!t.children[B]?!1:ev(t.children[B],e,o,n)}}function _a(t,e,r){return e.every((n,i)=>Yy[r](t[i].parameters,n.parameters))}var Zt=class{constructor(e=new Y([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Wr(this.queryParams),this._queryParamMap}toString(){return gS.serialize(this)}},Y=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ia(this)}},Jn=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=Wr(this.parameters),this._parameterMap}toString(){return nv(this)}};function hS(t,e){return Xn(t,e)&&t.every((r,n)=>xt(r.parameters,e[n].parameters))}function Xn(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function pS(t,e){let r=[];return Object.entries(t.children).forEach(([n,i])=>{n===B&&(r=r.concat(e(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==B&&(r=r.concat(e(i,n)))}),r}var Xd=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>new Xi,providedIn:"root"});let t=e;return t})(),Xi=class{parse(e){let r=new Ad(e);return new Zt(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${Wi(e.root,!0)}`,n=vS(e.queryParams),i=typeof e.fragment=="string"?`#${mS(e.fragment)}`:"";return`${r}${n}${i}`}},gS=new Xi;function Ia(t){return t.segments.map(e=>nv(e)).join("/")}function Wi(t,e){if(!t.hasChildren())return Ia(t);if(e){let r=t.children[B]?Wi(t.children[B],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==B&&n.push(`${i}:${Wi(o,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=pS(t,(n,i)=>i===B?[Wi(t.children[B],!1)]:[`${i}:${Wi(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[B]!=null?`${Ia(t)}/${r[0]}`:`${Ia(t)}/(${r.join("//")})`}}function tv(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ca(t){return tv(t).replace(/%3B/gi,";")}function mS(t){return encodeURI(t)}function Td(t){return tv(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Sa(t){return decodeURIComponent(t)}function Hy(t){return Sa(t.replace(/\+/g,"%20"))}function nv(t){return`${Td(t.path)}${yS(t.parameters)}`}function yS(t){return Object.entries(t).map(([e,r])=>`;${Td(e)}=${Td(r)}`).join("")}function vS(t){let e=Object.entries(t).map(([r,n])=>Array.isArray(n)?n.map(i=>`${Ca(r)}=${Ca(i)}`).join("&"):`${Ca(r)}=${Ca(n)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var DS=/^[^\/()?;#]+/;function Cd(t){let e=t.match(DS);return e?e[0]:""}var ES=/^[^\/()?;=#]+/;function wS(t){let e=t.match(ES);return e?e[0]:""}var CS=/^[^=?&#]+/;function bS(t){let e=t.match(CS);return e?e[0]:""}var _S=/^[^&#]+/;function IS(t){let e=t.match(_S);return e?e[0]:""}var Ad=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Y([],{}):new Y([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[B]=new Y(e,r)),n}parseSegment(){let e=Cd(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new m(4009,!1);return this.capture(e),new Jn(Sa(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=wS(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let i=Cd(this.remaining);i&&(n=i,this.capture(n))}e[Sa(r)]=Sa(n)}parseQueryParam(e){let r=bS(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=IS(this.remaining);s&&(n=s,this.capture(n))}let i=Hy(r),o=Hy(n);if(e.hasOwnProperty(i)){let s=e[i];Array.isArray(s)||(s=[s],e[i]=s),s.push(o)}else e[i]=o}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Cd(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new m(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=B);let s=this.parseChildren();r[o]=Object.keys(s).length===1?s[B]:new Y([],s),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new m(4011,!1)}};function rv(t){return t.segments.length>0?new Y([],{[B]:t}):t}function iv(t){let e={};for(let[n,i]of Object.entries(t.children)){let o=iv(i);if(n===B&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[n]=o)}let r=new Y(t.segments,e);return SS(r)}function SS(t){if(t.numberOfChildren===1&&t.children[B]){let e=t.children[B];return new Y(t.segments.concat(e.segments),e.children)}return t}function eo(t){return t instanceof Zt}function MS(t,e,r=null,n=null){let i=ov(t);return sv(i,e,r,n)}function ov(t){let e;function r(o){let s={};for(let l of o.children){let c=r(l);s[l.outlet]=c}let a=new Y(o.url,s);return o===t&&(e=a),a}let n=r(t.root),i=rv(n);return e??i}function sv(t,e,r,n){let i=t;for(;i.parent;)i=i.parent;if(e.length===0)return bd(i,i,i,r,n);let o=TS(e);if(o.toRoot())return bd(i,i,new Y([],{}),r,n);let s=AS(o,i,t),a=s.processChildren?Zi(s.segmentGroup,s.index,o.commands):lv(s.segmentGroup,s.index,o.commands);return bd(i,s.segmentGroup,a,r,n)}function Ma(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function to(t){return typeof t=="object"&&t!=null&&t.outlets}function bd(t,e,r,n,i){let o={};n&&Object.entries(n).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`});let s;t===e?s=r:s=av(t,e,r);let a=rv(iv(s));return new Zt(a,o,i)}function av(t,e,r){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===e?n[i]=r:n[i]=av(o,e,r)}),new Y(t.segments,n)}var Ta=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&Ma(n[0]))throw new m(4003,!1);let i=n.find(to);if(i&&i!==Zy(n))throw new m(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function TS(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Ta(!0,0,t);let e=0,r=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?r=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new Ta(r,e,n)}var zr=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function AS(t,e,r){if(t.isAbsolute)return new zr(e,!0,0);if(!r)return new zr(e,!1,NaN);if(r.parent===null)return new zr(r,!0,0);let n=Ma(t.commands[0])?0:1,i=r.segments.length-1+n;return NS(r,i,t.numberOfDoubleDots)}function NS(t,e,r){let n=t,i=e,o=r;for(;o>i;){if(o-=i,n=n.parent,!n)throw new m(4005,!1);i=n.segments.length}return new zr(n,!1,i-o)}function xS(t){return to(t[0])?t[0].outlets:{[B]:t}}function lv(t,e,r){if(t??=new Y([],{}),t.segments.length===0&&t.hasChildren())return Zi(t,e,r);let n=RS(t,e,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndexo!==B)&&t.children[B]&&t.numberOfChildren===1&&t.children[B].segments.length===0){let o=Zi(t.children[B],e,r);return new Y(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=lv(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new Y(t.segments,i)}}function RS(t,e,r){let n=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};for(;i=r.length)return o;let s=t.segments[i],a=r[n];if(to(a))break;let l=`${a}`,c=n0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!Gy(l,c,s))return o;n+=2}else{if(!Gy(l,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function Nd(t,e,r){let n=t.segments.slice(0,e),i=0;for(;i{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=Nd(new Y([],{}),0,n))}),e}function zy(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function Gy(t,e,r){return t==r.path&&xt(e,r.parameters)}var Yi="imperative",Ce=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Ce||{}),nt=class{constructor(e,r){this.id=e,this.url=r}},no=class extends nt{constructor(e,r,n="imperative",i=null){super(e,r),this.type=Ce.NavigationStart,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},er=class extends nt{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=Ce.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Ge=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(Ge||{}),xd=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(xd||{}),Qt=class extends nt{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=Ce.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},tr=class extends nt{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=Ce.NavigationSkipped}},ro=class extends nt{constructor(e,r,n,i){super(e,r),this.error=n,this.target=i,this.type=Ce.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Aa=class extends nt{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Ce.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Rd=class extends nt{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Ce.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Od=class extends nt{constructor(e,r,n,i,o){super(e,r),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o,this.type=Ce.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Pd=class extends nt{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Ce.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Fd=class extends nt{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Ce.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},kd=class{constructor(e){this.route=e,this.type=Ce.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ld=class{constructor(e){this.route=e,this.type=Ce.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},jd=class{constructor(e){this.snapshot=e,this.type=Ce.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Vd=class{constructor(e){this.snapshot=e,this.type=Ce.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ud=class{constructor(e){this.snapshot=e,this.type=Ce.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Bd=class{constructor(e){this.snapshot=e,this.type=Ce.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var io=class{},Kr=class{constructor(e,r){this.url=e,this.navigationBehaviorOptions=r}};function PS(t,e){return t.providers&&!t._injector&&(t._injector=Ku(t.providers,e,`Route: ${t.path}`)),t._injector??e}function mt(t){return t.outlet||B}function FS(t,e){let r=t.filter(n=>mt(n)===e);return r.push(...t.filter(n=>mt(n)!==e)),r}function uo(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var $d=class{get injector(){return uo(this.route?.snapshot)??this.rootInjector}set injector(e){}constructor(e){this.rootInjector=e,this.outlet=null,this.route=null,this.children=new ka(this.rootInjector),this.attachRef=null}},ka=(()=>{let e=class e{constructor(n){this.rootInjector=n,this.contexts=new Map}onChildOutletCreated(n,i){let o=this.getOrCreateContext(n);o.outlet=i,this.contexts.set(n,o)}onChildOutletDestroyed(n){let i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new $d(this.rootInjector),this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(i){return new(i||e)(T(Le))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Na=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=Hd(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=Hd(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=zd(e,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return zd(e,this._root).map(r=>r.value)}};function Hd(t,e){if(t===e.value)return e;for(let r of e.children){let n=Hd(t,r);if(n)return n}return null}function zd(t,e){if(t===e.value)return[e];for(let r of e.children){let n=zd(t,r);if(n.length)return n.unshift(e),n}return[]}var ze=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function Hr(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var xa=class extends Na{constructor(e,r){super(e),this.snapshot=r,ef(this,e)}toString(){return this.snapshot.toString()}};function cv(t){let e=kS(t),r=new ve([new Jn("",{})]),n=new ve({}),i=new ve({}),o=new ve({}),s=new ve(""),a=new _n(r,n,o,s,i,B,t,e.root);return a.snapshot=e.root,new xa(new ze(a,[]),e)}function kS(t){let e={},r={},n={},i="",o=new Gr([],e,n,i,r,B,t,null,{});return new Oa("",new ze(o,[]))}var _n=class{constructor(e,r,n,i,o,s,a,l){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(R(c=>c[co]))??x(void 0),this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(R(e=>Wr(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(R(e=>Wr(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Ra(t,e,r="emptyOnly"){let n,{routeConfig:i}=t;return e!==null&&(r==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:E(E({},e.params),t.params),data:E(E({},e.data),t.data),resolve:E(E(E(E({},t.data),e.data),i?.data),t._resolvedData)}:n={params:E({},t.params),data:E({},t.data),resolve:E(E({},t.data),t._resolvedData??{})},i&&dv(i)&&(n.resolve[co]=i.title),n}var Gr=class{get title(){return this.data?.[co]}constructor(e,r,n,i,o,s,a,l,c){this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Wr(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Wr(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},Oa=class extends Na{constructor(e,r){super(r),this.url=e,ef(this,r)}toString(){return uv(this._root)}};function ef(t,e){e.value._routerState=t,e.children.forEach(r=>ef(t,r))}function uv(t){let e=t.children.length>0?` { ${t.children.map(uv).join(", ")} } `:"";return`${t.value}${e}`}function _d(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,xt(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),xt(e.params,r.params)||t.paramsSubject.next(r.params),cS(e.url,r.url)||t.urlSubject.next(r.url),xt(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Gd(t,e){let r=xt(t.params,e.params)&&hS(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||Gd(t.parent,e.parent))}function dv(t){return typeof t.title=="string"||t.title===null}var tf=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=B,this.activateEvents=new ie,this.deactivateEvents=new ie,this.attachEvents=new ie,this.detachEvents=new ie,this.parentContexts=v(ka),this.location=v(pt),this.changeDetector=v(wn),this.inputBinder=v(nf,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:i,previousValue:o}=n.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new m(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new m(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new m(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,i){if(this.isActivated)throw new m(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,c=new qd(n,l,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:c,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=J({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[St]});let t=e;return t})(),qd=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n}get(e,r){return e===_n?this.route:e===ka?this.childContexts:this.parent.get(e,r)}},nf=new S("");function LS(t,e,r){let n=oo(t,e._root,r?r._root:void 0);return new xa(n,e)}function oo(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let i=jS(t,e,r);return new ze(n,i)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>oo(t,a)),s}}let n=VS(e.value),i=e.children.map(o=>oo(t,o));return new ze(n,i)}}function jS(t,e,r){return e.children.map(n=>{for(let i of r.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return oo(t,n,i);return oo(t,n)})}function VS(t){return new _n(new ve(t.url),new ve(t.params),new ve(t.queryParams),new ve(t.fragment),new ve(t.data),t.outlet,t.component,t)}var so=class{constructor(e,r){this.redirectTo=e,this.navigationBehaviorOptions=r}},fv="ngNavigationCancelingError";function Pa(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=eo(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=hv(!1,Ge.Redirect);return i.url=r,i.navigationBehaviorOptions=n,i}function hv(t,e){let r=new Error(`NavigationCancelingError: ${t||""}`);return r[fv]=!0,r.cancellationCode=e,r}function US(t){return pv(t)&&eo(t.url)}function pv(t){return!!t&&t[fv]}var BS=(t,e,r,n)=>R(i=>(new Wd(e,i.targetRouterState,i.currentRouterState,r,n).activate(t),i)),Wd=class{constructor(e,r,n,i,o){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),_d(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let i=Hr(r);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,n);else o&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=Hr(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=Hr(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let i=Hr(r);e.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new Bd(o.value.snapshot))}),e.children.length&&this.forwardEvent(new Vd(e.value.snapshot))}activateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(_d(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),_d(a.route.value),this.activateChildRoutes(e,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(e,null,s.children)}else this.activateChildRoutes(e,null,n)}},Fa=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},qr=class{constructor(e,r){this.component=e,this.route=r}};function $S(t,e,r){let n=t._root,i=e?e._root:null;return Ki(n,i,r,[n.value])}function HS(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Zr(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!jp(t)?t:e.get(t):n}function Ki(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Hr(e);return t.children.forEach(s=>{zS(s,o[s.value.outlet],r,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Ji(a,r.getContext(s),i)),i}function zS(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=GS(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new Fa(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Ki(t,e,a?a.children:null,n,i):Ki(t,e,r,n,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new qr(a.outlet.component,s))}else s&&Ji(e,a,i),i.canActivateChecks.push(new Fa(n)),o.component?Ki(t,null,a?a.children:null,n,i):Ki(t,null,r,n,i);return i}function GS(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!Xn(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Xn(t.url,e.url)||!xt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Gd(t,e)||!xt(t.queryParams,e.queryParams);case"paramsChange":default:return!Gd(t,e)}}function Ji(t,e,r){let n=Hr(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?e?Ji(s,e.children.getContext(o),r):Ji(s,null,r):Ji(s,e,r)}),i.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new qr(e.outlet.component,i)):r.canDeactivateChecks.push(new qr(null,i)):r.canDeactivateChecks.push(new qr(null,i))}function fo(t){return typeof t=="function"}function qS(t){return typeof t=="boolean"}function WS(t){return t&&fo(t.canLoad)}function KS(t){return t&&fo(t.canActivate)}function QS(t){return t&&fo(t.canActivateChild)}function ZS(t){return t&&fo(t.canDeactivate)}function YS(t){return t&&fo(t.canMatch)}function gv(t){return t instanceof Ft||t?.name==="EmptyError"}var ba=Symbol("INITIAL_VALUE");function Qr(){return Ne(t=>os(t.map(e=>e.pipe(kt(1),Cr(ba)))).pipe(R(e=>{for(let r of e)if(r!==!0){if(r===ba)return ba;if(r===!1||JS(r))return r}return!0}),me(e=>e!==ba),kt(1)))}function JS(t){return eo(t)||t instanceof so}function XS(t,e){return he(r=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=r;return s.length===0&&o.length===0?x(K(E({},r),{guardsResult:!0})):eM(s,n,i,t).pipe(he(a=>a&&qS(a)?tM(n,o,t,e):x(a)),R(a=>K(E({},r),{guardsResult:a})))})}function eM(t,e,r,n){return re(t).pipe(he(i=>sM(i.component,i.route,r,e,n)),wt(i=>i!==!0,!0))}function tM(t,e,r,n){return re(e).pipe(rn(i=>Er(rM(i.route.parent,n),nM(i.route,n),oM(t,i.path,r),iM(t,i.route,r))),wt(i=>i!==!0,!0))}function nM(t,e){return t!==null&&e&&e(new Ud(t)),x(!0)}function rM(t,e){return t!==null&&e&&e(new jd(t)),x(!0)}function iM(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return x(!0);let i=n.map(o=>as(()=>{let s=uo(e)??r,a=Zr(o,s),l=KS(a)?a.canActivate(e,t):ut(s,()=>a(e,t));return In(l).pipe(wt())}));return x(i).pipe(Qr())}function oM(t,e,r){let n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>HS(s)).filter(s=>s!==null).map(s=>as(()=>{let a=s.guards.map(l=>{let c=uo(s.node)??r,u=Zr(l,c),d=QS(u)?u.canActivateChild(n,t):ut(c,()=>u(n,t));return In(d).pipe(wt())});return x(a).pipe(Qr())}));return x(o).pipe(Qr())}function sM(t,e,r,n,i){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return x(!0);let s=o.map(a=>{let l=uo(e)??i,c=Zr(a,l),u=ZS(c)?c.canDeactivate(t,e,r,n):ut(l,()=>c(t,e,r,n));return In(u).pipe(wt())});return x(s).pipe(Qr())}function aM(t,e,r,n){let i=e.canLoad;if(i===void 0||i.length===0)return x(!0);let o=i.map(s=>{let a=Zr(s,t),l=WS(a)?a.canLoad(e,r):ut(t,()=>a(e,r));return In(l)});return x(o).pipe(Qr(),mv(n))}function mv(t){return Ll(ue(e=>{if(typeof e!="boolean")throw Pa(t,e)}),R(e=>e===!0))}function lM(t,e,r,n){let i=e.canMatch;if(!i||i.length===0)return x(!0);let o=i.map(s=>{let a=Zr(s,t),l=YS(a)?a.canMatch(e,r):ut(t,()=>a(e,r));return In(l)});return x(o).pipe(Qr(),mv(n))}var ao=class{constructor(e){this.segmentGroup=e||null}},lo=class extends Error{constructor(e){super(),this.urlTree=e}};function $r(t){return Dr(new ao(t))}function cM(t){return Dr(new m(4e3,!1))}function uM(t){return Dr(hv(!1,Ge.GuardRejected))}var Kd=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let n=[],i=r.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return x(n);if(i.numberOfChildren>1||!i.children[B])return cM(`${e.redirectTo}`);i=i.children[B]}}applyRedirectCommands(e,r,n,i,o){if(typeof r!="string"){let a=r,{queryParams:l,fragment:c,routeConfig:u,url:d,outlet:h,params:f,data:p,title:g}=i,y=ut(o,()=>a({params:f,data:p,queryParams:l,fragment:c,routeConfig:u,url:d,outlet:h,title:g}));if(y instanceof Zt)throw new lo(y);r=y}let s=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r[0]==="/")throw new lo(s);return s}applyRedirectCreateUrlTree(e,r,n,i){let o=this.createSegmentGroup(e,r.root,n,i);return new Zt(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);n[i]=r[a]}else n[i]=o}),n}createSegmentGroup(e,r,n,i){let o=this.createSegments(e,r.segments,n,i),s={};return Object.entries(r.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(e,l,n,i)}),new Y(o,s)}createSegments(e,r,n,i){return r.map(o=>o.path[0]===":"?this.findPosParam(e,o,i):this.findOrReturn(o,n))}findPosParam(e,r,n){let i=n[r.path.substring(1)];if(!i)throw new m(4001,!1);return i}findOrReturn(e,r){let n=0;for(let i of r){if(i.path===e.path)return r.splice(n),i;n++}return e}},Qd={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function dM(t,e,r,n,i){let o=rf(t,e,r);return o.matched?(n=PS(e,n),lM(n,e,r,i).pipe(R(s=>s===!0?o:E({},Qd)))):x(o)}function rf(t,e,r){if(e.path==="**")return fM(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?E({},Qd):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let i=(e.matcher||lS)(r,t,e);if(!i)return E({},Qd);let o={};Object.entries(i.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=i.consumed.length>0?E(E({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:r.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function fM(t){return{matched:!0,parameters:t.length>0?Zy(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function qy(t,e,r,n){return r.length>0&&gM(t,r,n)?{segmentGroup:new Y(e,pM(n,new Y(r,t.children))),slicedSegments:[]}:r.length===0&&mM(t,r,n)?{segmentGroup:new Y(t.segments,hM(t,r,n,t.children)),slicedSegments:r}:{segmentGroup:new Y(t.segments,t.children),slicedSegments:r}}function hM(t,e,r,n){let i={};for(let o of r)if(La(t,e,o)&&!n[mt(o)]){let s=new Y([],{});i[mt(o)]=s}return E(E({},n),i)}function pM(t,e){let r={};r[B]=e;for(let n of t)if(n.path===""&&mt(n)!==B){let i=new Y([],{});r[mt(n)]=i}return r}function gM(t,e,r){return r.some(n=>La(t,e,n)&&mt(n)!==B)}function mM(t,e,r){return r.some(n=>La(t,e,n))}function La(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function yM(t,e,r,n){return mt(t)!==n&&(n===B||!La(e,r,t))?!1:rf(e,t,r).matched}function vM(t,e,r){return e.length===0&&!t.children[r]}var Zd=class{};function DM(t,e,r,n,i,o,s="emptyOnly"){return new Yd(t,e,r,n,i,s,o).recognize()}var EM=31,Yd=class{constructor(e,r,n,i,o,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Kd(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new m(4002,`'${e.segmentGroup}'`)}recognize(){let e=qy(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(R(({children:r,rootSnapshot:n})=>{let i=new ze(n,r),o=new Oa("",i),s=MS(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(e){let r=new Gr([],Object.freeze({}),Object.freeze(E({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),B,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,B,r).pipe(R(n=>({children:n,rootSnapshot:r})),nn(n=>{if(n instanceof lo)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof ao?this.noMatchError(n):n}))}processSegmentGroup(e,r,n,i,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n,o):this.processSegment(e,r,n,n.segments,i,!0,o).pipe(R(s=>s instanceof ze?[s]:[]))}processChildren(e,r,n,i){let o=[];for(let s of Object.keys(n.children))s==="primary"?o.unshift(s):o.push(s);return re(o).pipe(rn(s=>{let a=n.children[s],l=FS(r,s);return this.processSegmentGroup(e,l,a,s,i)}),Yl((s,a)=>(s.push(...a),s)),on(null),Ql(),he(s=>{if(s===null)return $r(n);let a=yv(s);return wM(a),x(a)}))}processSegment(e,r,n,i,o,s,a){return re(r).pipe(rn(l=>this.processSegmentAgainstRoute(l._injector??e,r,l,n,i,o,s,a).pipe(nn(c=>{if(c instanceof ao)return x(null);throw c}))),wt(l=>!!l),nn(l=>{if(gv(l))return vM(n,i,o)?x(new Zd):$r(n);throw l}))}processSegmentAgainstRoute(e,r,n,i,o,s,a,l){return yM(n,i,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,n,o,s,l):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,i,r,n,o,s,l):$r(i):$r(i)}expandSegmentAgainstRouteUsingRedirect(e,r,n,i,o,s,a){let{matched:l,parameters:c,consumedSegments:u,positionalParamSegments:d,remainingSegments:h}=rf(r,i,o);if(!l)return $r(r);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>EM&&(this.allowRedirects=!1));let f=new Gr(o,c,Object.freeze(E({},this.urlTree.queryParams)),this.urlTree.fragment,Wy(i),mt(i),i.component??i._loadedComponent??null,i,Ky(i)),p=Ra(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(p.params),f.data=Object.freeze(p.data);let g=this.applyRedirects.applyRedirectCommands(u,i.redirectTo,d,f,e);return this.applyRedirects.lineralizeSegments(i,g).pipe(he(y=>this.processSegment(e,n,r,y.concat(h),s,!1,a)))}matchSegmentAgainstRoute(e,r,n,i,o,s){let a=dM(r,n,i,e,this.urlSerializer);return n.path==="**"&&(r.children={}),a.pipe(Ne(l=>l.matched?(e=n._injector??e,this.getChildConfig(e,n,i).pipe(Ne(({routes:c})=>{let u=n._loadedInjector??e,{parameters:d,consumedSegments:h,remainingSegments:f}=l,p=new Gr(h,d,Object.freeze(E({},this.urlTree.queryParams)),this.urlTree.fragment,Wy(n),mt(n),n.component??n._loadedComponent??null,n,Ky(n)),g=Ra(p,s,this.paramsInheritanceStrategy);p.params=Object.freeze(g.params),p.data=Object.freeze(g.data);let{segmentGroup:y,slicedSegments:D}=qy(r,h,f,c);if(D.length===0&&y.hasChildren())return this.processChildren(u,c,y,p).pipe(R(j=>new ze(p,j)));if(c.length===0&&D.length===0)return x(new ze(p,[]));let P=mt(n)===o;return this.processSegment(u,c,y,D,P?B:o,!0,p).pipe(R(j=>new ze(p,j instanceof ze?[j]:[])))}))):$r(r)))}getChildConfig(e,r,n){return r.children?x({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?x({routes:r._loadedRoutes,injector:r._loadedInjector}):aM(e,r,n,this.urlSerializer).pipe(he(i=>i?this.configLoader.loadChildren(e,r).pipe(ue(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):uM(r))):x({routes:[],injector:e})}};function wM(t){t.sort((e,r)=>e.value.outlet===B?-1:r.value.outlet===B?1:e.value.outlet.localeCompare(r.value.outlet))}function CM(t){let e=t.value.routeConfig;return e&&e.path===""}function yv(t){let e=[],r=new Set;for(let n of t){if(!CM(n)){e.push(n);continue}let i=e.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),r.add(i)):e.push(n)}for(let n of r){let i=yv(n.children);e.push(new ze(n.value,i))}return e.filter(n=>!r.has(n))}function Wy(t){return t.data||{}}function Ky(t){return t.resolve||{}}function bM(t,e,r,n,i,o){return he(s=>DM(t,e,r,n,s.extractedUrl,i,o).pipe(R(({state:a,tree:l})=>K(E({},s),{targetSnapshot:a,urlAfterRedirects:l}))))}function _M(t,e){return he(r=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=r;if(!i.length)return x(r);let o=new Set(i.map(l=>l.route)),s=new Set;for(let l of o)if(!s.has(l))for(let c of vv(l))s.add(c);let a=0;return re(s).pipe(rn(l=>o.has(l)?IM(l,n,t,e):(l.data=Ra(l,l.parent,t).resolve,x(void 0))),ue(()=>a++),wr(1),he(l=>a===s.size?x(r):Ue))})}function vv(t){let e=t.children.map(r=>vv(r)).flat();return[t,...e]}function IM(t,e,r,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!dv(i)&&(o[co]=i.title),SM(o,t,e,n).pipe(R(s=>(t._resolvedData=s,t.data=Ra(t,t.parent,r).resolve,null)))}function SM(t,e,r,n){let i=Md(t);if(i.length===0)return x({});let o={};return re(i).pipe(he(s=>MM(t[s],e,r,n).pipe(wt(),ue(a=>{if(a instanceof so)throw Pa(new Xi,a);o[s]=a}))),wr(1),Wl(o),nn(s=>gv(s)?Ue:Dr(s)))}function MM(t,e,r,n){let i=uo(e)??n,o=Zr(t,i),s=o.resolve?o.resolve(e,r):ut(i,()=>o(e,r));return In(s)}function Id(t){return Ne(e=>{let r=t(e);return r?re(r).pipe(R(()=>e)):x(e)})}var Dv=(()=>{let e=class e{buildTitle(n){let i,o=n.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===B);return i}getResolvedTitleForRoute(n){return n.data[co]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>v(TM),providedIn:"root"});let t=e;return t})(),TM=(()=>{let e=class e extends Dv{constructor(n){super(),this.title=n}updateTitle(n){let i=this.buildTitle(n);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(T(By))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),of=new S("",{providedIn:"root",factory:()=>({})}),AM=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=gn({type:e,selectors:[["ng-component"]],standalone:!0,features:[En],decls:1,vars:0,template:function(i,o){i&1&&pe(0,"router-outlet")},dependencies:[tf],encapsulation:2});let t=e;return t})();function sf(t){let e=t.children&&t.children.map(sf),r=e?K(E({},t),{children:e}):E({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==B&&(r.component=AM),r}var af=new S(""),NM=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=v(nd)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return x(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=In(n.loadComponent()).pipe(R(Ev),ue(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),Ln(()=>{this.componentLoaders.delete(n)})),o=new yr(i,()=>new le).pipe(mr());return this.componentLoaders.set(n,o),o}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return x({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=xM(i,this.compiler,n,this.onLoadEndListener).pipe(Ln(()=>{this.childrenLoaders.delete(i)})),a=new yr(s,()=>new le).pipe(mr());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function xM(t,e,r,n){return In(t.loadChildren()).pipe(R(Ev),he(i=>i instanceof bi||Array.isArray(i)?x(i):re(e.compileModuleAsync(i))),R(i=>{n&&n(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(r).injector,s=o.get(af,[],{optional:!0,self:!0}).flat()),{routes:s.map(sf),injector:o}}))}function RM(t){return t&&typeof t=="object"&&"default"in t}function Ev(t){return RM(t)?t.default:t}var lf=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>v(OM),providedIn:"root"});let t=e;return t})(),OM=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),PM=new S("");var FM=new S(""),kM=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new le,this.transitionAbortSubject=new le,this.configLoader=v(NM),this.environmentInjector=v(Le),this.urlSerializer=v(Xd),this.rootContexts=v(ka),this.location=v(Li),this.inputBindingEnabled=v(nf,{optional:!0})!==null,this.titleStrategy=v(Dv),this.options=v(of,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=v(lf),this.createViewTransition=v(PM,{optional:!0}),this.navigationErrorHandler=v(FM,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>x(void 0),this.rootComponentType=null;let n=o=>this.events.next(new kd(o)),i=o=>this.events.next(new Ld(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let i=++this.navigationId;this.transitions?.next(K(E(E({},this.transitions.value),n),{id:i}))}setupNavigations(n,i,o){return this.transitions=new ve({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Yi,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(me(s=>s.id!==0),R(s=>K(E({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),Ne(s=>{let a=!1,l=!1;return x(s).pipe(Ne(c=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",Ge.SupersededByNewNavigation),Ue;this.currentTransition=s,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:typeof c.extras.browserUrl=="string"?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?K(E({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&d!=="reload"){let h="";return this.events.next(new tr(c.id,this.urlSerializer.serialize(c.rawUrl),h,xd.IgnoredSameUrlNavigation)),c.resolve(!1),Ue}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return x(c).pipe(Ne(h=>{let f=this.transitions?.getValue();return this.events.next(new no(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions?.getValue()?Ue:Promise.resolve(h)}),bM(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),ue(h=>{s.targetSnapshot=h.targetSnapshot,s.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=K(E({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let f=new Aa(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(f)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:h,extractedUrl:f,source:p,restoredState:g,extras:y}=c,D=new no(h,this.urlSerializer.serialize(f),p,g);this.events.next(D);let P=cv(this.rootComponentType).snapshot;return this.currentTransition=s=K(E({},c),{targetSnapshot:P,urlAfterRedirects:f,extras:K(E({},y),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=f,x(s)}else{let h="";return this.events.next(new tr(c.id,this.urlSerializer.serialize(c.extractedUrl),h,xd.IgnoredByUrlHandlingStrategy)),c.resolve(!1),Ue}}),ue(c=>{let u=new Rd(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),R(c=>(this.currentTransition=s=K(E({},c),{guards:$S(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),s)),XS(this.environmentInjector,c=>this.events.next(c)),ue(c=>{if(s.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw Pa(this.urlSerializer,c.guardsResult);let u=new Od(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(u)}),me(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",Ge.GuardRejected),!1)),Id(c=>{if(c.guards.canActivateChecks.length)return x(c).pipe(ue(u=>{let d=new Pd(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}),Ne(u=>{let d=!1;return x(u).pipe(_M(this.paramsInheritanceStrategy,this.environmentInjector),ue({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(u,"",Ge.NoDataFromResolver)}}))}),ue(u=>{let d=new Fd(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}))}),Id(c=>{let u=d=>{let h=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(d.routeConfig).pipe(ue(f=>{d.component=f}),R(()=>{})));for(let f of d.children)h.push(...u(f));return h};return os(u(c.targetSnapshot.root)).pipe(on(null),kt(1))}),Id(()=>this.afterPreactivation()),Ne(()=>{let{currentSnapshot:c,targetSnapshot:u}=s,d=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return d?re(d).pipe(R(()=>s)):x(s)}),R(c=>{let u=LS(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=s=K(E({},c),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,s}),ue(()=>{this.events.next(new io)}),BS(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),kt(1),ue({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new er(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),Jl(this.transitionAbortSubject.pipe(ue(c=>{throw c}))),Ln(()=>{!a&&!l&&this.cancelNavigationTransition(s,"",Ge.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),nn(c=>{if(l=!0,pv(c))this.events.next(new Qt(s.id,this.urlSerializer.serialize(s.extractedUrl),c.message,c.cancellationCode)),US(c)?this.events.next(new Kr(c.url,c.navigationBehaviorOptions)):s.resolve(!1);else{let u=new ro(s.id,this.urlSerializer.serialize(s.extractedUrl),c,s.targetSnapshot??void 0);try{let d=ut(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(d instanceof so){let{message:h,cancellationCode:f}=Pa(this.urlSerializer,d);this.events.next(new Qt(s.id,this.urlSerializer.serialize(s.extractedUrl),h,f)),this.events.next(new Kr(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(u);let h=n.errorHandler(c);s.resolve(!!h)}}catch(d){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(d)}}return Ue}))}))}cancelNavigationTransition(n,i,o){let s=new Qt(n.id,this.urlSerializer.serialize(n.extractedUrl),i,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==i?.toString()&&!this.currentNavigation?.extras.skipLocationChange}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function LM(t){return t!==Yi}var jM=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>v(VM),providedIn:"root"});let t=e;return t})(),Jd=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},VM=(()=>{let e=class e extends Jd{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=ft(e)))(o||e)}})(),e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),wv=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>v(UM),providedIn:"root"});let t=e;return t})(),UM=(()=>{let e=class e extends wv{constructor(){super(...arguments),this.location=v(Li),this.urlSerializer=v(Xd),this.options=v(of,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=v(lf),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Zt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=cv(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(i=>{i.type==="popstate"&&n(i.url,i.state)})}handleRouterEvent(n,i){if(n instanceof no)this.stateMemento=this.createStateMemento();else if(n instanceof tr)this.rawUrlTree=i.initialUrl;else if(n instanceof Aa){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(i.targetBrowserUrl??o,i)}}else n instanceof io?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(i.targetBrowserUrl??this.rawUrlTree,i)):n instanceof Qt&&(n.code===Ge.GuardRejected||n.code===Ge.NoDataFromResolver)?this.restoreHistory(i):n instanceof ro?this.restoreHistory(i,!0):n instanceof er&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,i){let o=n instanceof Zt?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=E(E({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=E(E({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,i){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=ft(e)))(o||e)}})(),e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Qi=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Qi||{});function BM(t,e){t.events.pipe(me(r=>r instanceof er||r instanceof Qt||r instanceof ro||r instanceof tr),R(r=>r instanceof er||r instanceof tr?Qi.COMPLETE:(r instanceof Qt?r.code===Ge.Redirect||r.code===Ge.SupersededByNewNavigation:!1)?Qi.REDIRECTING:Qi.FAILED),me(r=>r!==Qi.REDIRECTING),kt(1)).subscribe(()=>{e()})}function $M(t){throw t}var HM={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},zM={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Cv=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=v(sa),this.stateManager=v(wv),this.options=v(of,{optional:!0})||{},this.pendingTasks=v(vn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=v(kM),this.urlSerializer=v(Xd),this.location=v(Li),this.urlHandlingStrategy=v(lf),this._events=new le,this.errorHandler=this.options.errorHandler||$M,this.navigated=!1,this.routeReuseStrategy=v(jM),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=v(af,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!v(nf,{optional:!0}),this.eventsSubscription=new se,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof Qt&&i.code!==Ge.Redirect&&i.code!==Ge.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof er)this.navigated=!0;else if(i instanceof Kr){let a=i.navigationBehaviorOptions,l=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),c=E({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||LM(o.source)},a);this.scheduleNavigation(l,Yi,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}qM(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Yi,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",i)},0)})}navigateToSyncWithBrowser(n,i,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let c=E({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(s.state=c)}let l=this.parseUrl(n);this.scheduleNavigation(l,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(sf),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:l,preserveFragment:c}=i,u=c?this.currentUrlTree.fragment:a,d=null;switch(l??this.options.defaultQueryParamsHandling){case"merge":d=E(E({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let h;try{let f=o?o.snapshot:this.routerState.snapshot.root;h=ov(f)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),h=this.currentUrlTree.root}return sv(h,n,d,u??null)}navigateByUrl(n,i={skipLocationChange:!1}){let o=eo(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,Yi,null,i)}navigate(n,i={skipLocationChange:!1}){return GM(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,i){let o;if(i===!0?o=E({},HM):i===!1?o=E({},zM):o=i,eo(n))return $y(this.currentUrlTree,n,o);let s=this.parseUrl(n);return $y(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.entries(n).reduce((i,[o,s])=>(s!=null&&(i[o]=s),i),{})}scheduleNavigation(n,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let l,c,u;a?(l=a.resolve,c=a.reject,u=a.promise):u=new Promise((h,f)=>{l=h,c=f});let d=this.pendingTasks.add();return BM(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(h=>Promise.reject(h))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function GM(t){for(let e=0;er.\u0275providers)])}function KM(t){return t.routerState.root}function QM(){let t=v(Vt);return e=>{let r=t.get(qt);if(e!==r.components[0])return;let n=t.get(Cv),i=t.get(ZM);t.get(YM)===1&&n.initialNavigation(),t.get(JM,null,$.Optional)?.setUpPreloading(),t.get(WM,null,$.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var ZM=new S("",{factory:()=>new le}),YM=new S("",{providedIn:"root",factory:()=>1});var JM=new S("");var Nv=(()=>{let e=class e{constructor(n,i){this._renderer=n,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,i){this._renderer.setProperty(this._elementRef.nativeElement,n,i)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(i){return new(i||e)(M(Mt),M(Me))},e.\u0275dir=J({type:e});let t=e;return t})(),yo=(()=>{let e=class e extends Nv{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=ft(e)))(o||e)}})(),e.\u0275dir=J({type:e,features:[ye]});let t=e;return t})(),rr=new S("");var eT={provide:rr,useExisting:Oe(()=>Ka),multi:!0};function tT(){let t=At()?At().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var nT=new S(""),Ka=(()=>{let e=class e extends Nv{constructor(n,i,o){super(n,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!tT())}writeValue(n){let i=n??"";this.setProperty("value",i)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(i){return new(i||e)(M(Mt),M(Me),M(nT,8))},e.\u0275dir=J({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){i&1&&Ee("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[He([eT]),ye]});let t=e;return t})();function Sn(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function xv(t){return t!=null&&typeof t.length=="number"}var ir=new S(""),vo=new S(""),rT=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Yt=class{static min(e){return Rv(e)}static max(e){return Ov(e)}static required(e){return iT(e)}static requiredTrue(e){return oT(e)}static email(e){return sT(e)}static minLength(e){return aT(e)}static maxLength(e){return lT(e)}static pattern(e){return cT(e)}static nullValidator(e){return Va(e)}static compose(e){return Vv(e)}static composeAsync(e){return Bv(e)}};function Rv(t){return e=>{if(Sn(e.value)||Sn(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r{if(Sn(e.value)||Sn(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r>t?{max:{max:t,actual:e.value}}:null}}function iT(t){return Sn(t.value)?{required:!0}:null}function oT(t){return t.value===!0?null:{required:!0}}function sT(t){return Sn(t.value)||rT.test(t.value)?null:{email:!0}}function aT(t){return e=>Sn(e.value)||!xv(e.value)?null:e.value.lengthxv(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function cT(t){if(!t)return Va;let e,r;return typeof t=="string"?(r="",t.charAt(0)!=="^"&&(r+="^"),r+=t,t.charAt(t.length-1)!=="$"&&(r+="$"),e=new RegExp(r)):(r=t.toString(),e=t),n=>{if(Sn(n.value))return null;let i=n.value;return e.test(i)?null:{pattern:{requiredPattern:r,actualValue:i}}}}function Va(t){return null}function Pv(t){return t!=null}function Fv(t){return Zn(t)?re(t):t}function kv(t){let e={};return t.forEach(r=>{e=r!=null?E(E({},e),r):e}),Object.keys(e).length===0?null:e}function Lv(t,e){return e.map(r=>r(t))}function uT(t){return!t.validate}function jv(t){return t.map(e=>uT(e)?e:r=>e.validate(r))}function Vv(t){if(!t)return null;let e=t.filter(Pv);return e.length==0?null:function(r){return kv(Lv(r,e))}}function Uv(t){return t!=null?Vv(jv(t)):null}function Bv(t){if(!t)return null;let e=t.filter(Pv);return e.length==0?null:function(r){let n=Lv(r,e).map(Fv);return zl(n).pipe(R(kv))}}function $v(t){return t!=null?Bv(jv(t)):null}function _v(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function Hv(t){return t._rawValidators}function zv(t){return t._rawAsyncValidators}function cf(t){return t?Array.isArray(t)?t:[t]:[]}function Ua(t,e){return Array.isArray(t)?t.includes(e):t===e}function Iv(t,e){let r=cf(e);return cf(t).forEach(i=>{Ua(r,i)||r.push(i)}),r}function Sv(t,e){return cf(e).filter(r=>!Ua(t,r))}var Ba=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Uv(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=$v(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,r){return this.control?this.control.hasError(e,r):!1}getError(e,r){return this.control?this.control.getError(e,r):null}},rt=class extends Ba{get formDirective(){return null}get path(){return null}},Mn=class extends Ba{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},$a=class{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},dT={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},MV=K(E({},dT),{"[class.ng-submitted]":"isSubmitted"}),Gv=(()=>{let e=class e extends $a{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(M(Mn,2))},e.\u0275dir=J({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&Ur("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[ye]});let t=e;return t})(),qv=(()=>{let e=class e extends $a{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(M(rt,10))},e.\u0275dir=J({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){i&2&&Ur("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[ye]});let t=e;return t})();var ho="VALID",ja="INVALID",Yr="PENDING",po="DISABLED",Tn=class{},Ha=class extends Tn{constructor(e,r){super(),this.value=e,this.source=r}},go=class extends Tn{constructor(e,r){super(),this.pristine=e,this.source=r}},mo=class extends Tn{constructor(e,r){super(),this.touched=e,this.source=r}},Jr=class extends Tn{constructor(e,r){super(),this.status=e,this.source=r}},uf=class extends Tn{constructor(e){super(),this.source=e}},df=class extends Tn{constructor(e){super(),this.source=e}};function Wv(t){return(Qa(t)?t.validators:t)||null}function fT(t){return Array.isArray(t)?Uv(t):t||null}function Kv(t,e){return(Qa(e)?e.asyncValidators:t)||null}function hT(t){return Array.isArray(t)?$v(t):t||null}function Qa(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function pT(t,e,r){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new m(1e3,"");if(!n[r])throw new m(1001,"")}function gT(t,e,r){t._forEachChild((n,i)=>{if(r[i]===void 0)throw new m(1002,"")})}var za=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=ki(()=>this.statusReactive()),this.statusReactive=xi(void 0),this._pristine=ki(()=>this.pristineReactive()),this.pristineReactive=xi(!0),this._touched=ki(()=>this.touchedReactive()),this.touchedReactive=xi(!1),this._events=new le,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return Wt(this.statusReactive)}set status(e){Wt(()=>this.statusReactive.set(e))}get valid(){return this.status===ho}get invalid(){return this.status===ja}get pending(){return this.status==Yr}get disabled(){return this.status===po}get enabled(){return this.status!==po}get pristine(){return Wt(this.pristineReactive)}set pristine(e){Wt(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return Wt(this.touchedReactive)}set touched(e){Wt(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Iv(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Iv(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Sv(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Sv(e,this._rawAsyncValidators))}hasValidator(e){return Ua(this._rawValidators,e)}hasAsyncValidator(e){return Ua(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let r=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(K(E({},e),{sourceControl:n})),r&&e.emitEvent!==!1&&this._events.next(new mo(!0,n))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(r=>r.markAllAsTouched(e))}markAsUntouched(e={}){let r=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),r&&e.emitEvent!==!1&&this._events.next(new mo(!1,n))}markAsDirty(e={}){let r=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(K(E({},e),{sourceControl:n})),r&&e.emitEvent!==!1&&this._events.next(new go(!1,n))}markAsPristine(e={}){let r=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),r&&e.emitEvent!==!1&&this._events.next(new go(!0,n))}markAsPending(e={}){this.status=Yr;let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Jr(this.status,r)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(K(E({},e),{sourceControl:r}))}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=po,this.errors=null,this._forEachChild(i=>{i.disable(K(E({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Ha(this.value,n)),this._events.next(new Jr(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(K(E({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=ho,this._forEachChild(n=>{n.enable(K(E({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(K(E({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,r){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},r),this._parent._updateTouched({},r))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ho||this.status===Yr)&&this._runAsyncValidator(n,e.emitEvent)}let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Ha(this.value,r)),this._events.next(new Jr(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(K(E({},e),{sourceControl:r}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?po:ho}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,r){if(this.asyncValidator){this.status=Yr,this._hasOwnPendingAsyncValidator={emitEvent:r!==!1};let n=Fv(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:r,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(r.emitEvent!==!1,this,r.shouldHaveEmitted)}get(e){let r=e;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((n,i)=>n&&n._find(i),this)}getError(e,r){let n=r?this.get(r):this;return n&&n.errors?n.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,r,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new Jr(this.status,r)),this._parent&&this._parent._updateControlsErrors(e,r,n)}_initObservables(){this.valueChanges=new ie,this.statusChanges=new ie}_calculateStatus(){return this._allControlsDisabled()?po:this.errors?ja:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Yr)?Yr:this._anyControlsHaveStatus(ja)?ja:ho}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,r){let n=!this._anyControlsDirty(),i=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),i&&this._events.next(new go(this.pristine,r))}_updateTouched(e={},r){this.touched=this._anyControlsTouched(),this._events.next(new mo(this.touched,r)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Qa(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let r=this._parent&&this._parent.dirty;return!e&&!!r&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=fT(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=hT(this._rawAsyncValidators)}},nr=class extends za{constructor(e,r,n){super(Wv(r),Kv(n,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,r){return this.controls[e]?this.controls[e]:(this.controls[e]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(e,r,n={}){this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(e,r,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],r&&this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,r={}){gT(this,!0,e),Object.keys(e).forEach(n=>{pT(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(Object.keys(e).forEach(n=>{let i=this.controls[n];i&&i.patchValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e={},r={}){this._forEachChild((n,i)=>{n.reset(e?e[i]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(e,r,n)=>(e[n]=r.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(r,n)=>n._syncPendingControls()?!0:r);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(r=>{let n=this.controls[r];n&&e(n,r)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[r,n]of Object.entries(this.controls))if(this.contains(r)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(r,n,i)=>((n.enabled||this.disabled)&&(r[i]=n.value),r))}_reduceChildren(e,r){let n=e;return this._forEachChild((i,o)=>{n=r(n,i,o)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Za=new S("CallSetDisabledState",{providedIn:"root",factory:()=>Ya}),Ya="always";function hf(t,e){return[...e.path,t]}function ff(t,e,r=Ya){pf(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),yT(t,e),DT(t,e),vT(t,e),mT(t,e)}function Ga(t,e,r=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),Wa(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function qa(t,e){t.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function mT(t,e){if(e.valueAccessor.setDisabledState){let r=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(r),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(r)})}}function pf(t,e){let r=Hv(t);e.validator!==null?t.setValidators(_v(r,e.validator)):typeof r=="function"&&t.setValidators([r]);let n=zv(t);e.asyncValidator!==null?t.setAsyncValidators(_v(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let i=()=>t.updateValueAndValidity();qa(e._rawValidators,i),qa(e._rawAsyncValidators,i)}function Wa(t,e){let r=!1;if(t!==null){if(e.validator!==null){let i=Hv(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.validator);o.length!==i.length&&(r=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let i=zv(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.asyncValidator);o.length!==i.length&&(r=!0,t.setAsyncValidators(o))}}}let n=()=>{};return qa(e._rawValidators,n),qa(e._rawAsyncValidators,n),r}function yT(t,e){e.valueAccessor.registerOnChange(r=>{t._pendingValue=r,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Qv(t,e)})}function vT(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Qv(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function Qv(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function DT(t,e){let r=(n,i)=>{e.valueAccessor.writeValue(n),i&&e.viewToModelUpdate(n)};t.registerOnChange(r),e._registerOnDestroy(()=>{t._unregisterOnChange(r)})}function ET(t,e){t==null,pf(t,e)}function wT(t,e){return Wa(t,e)}function Zv(t,e){if(!t.hasOwnProperty("model"))return!1;let r=t.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function CT(t){return Object.getPrototypeOf(t.constructor)===yo}function bT(t,e){t._syncPendingControls(),e.forEach(r=>{let n=r.control;n.updateOn==="submit"&&n._pendingChange&&(r.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function Yv(t,e){if(!e)return null;Array.isArray(e);let r,n,i;return e.forEach(o=>{o.constructor===Ka?r=o:CT(o)?n=o:i=o}),i||n||r||null}function _T(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function Mv(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function Tv(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Fe=class extends za{constructor(e=null,r,n){super(Wv(r),Kv(n,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Qa(r)&&(r.nonNullable||r.initialValueIsDefault)&&(Tv(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Mv(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Mv(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){Tv(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var IT=t=>t instanceof Fe,ST=(()=>{let e=class e extends rt{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return hf(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=ft(e)))(o||e)}})(),e.\u0275dir=J({type:e,features:[ye]});let t=e;return t})();var Jv=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=J({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})(),MT={provide:rr,useExisting:Oe(()=>gf),multi:!0},gf=(()=>{let e=class e extends yo{writeValue(n){let i=n??"";this.setProperty("value",i)}registerOnChange(n){this.onChange=i=>{n(i==""?null:parseFloat(i))}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=ft(e)))(o||e)}})(),e.\u0275dir=J({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,o){i&1&&Ee("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[He([MT]),ye]});let t=e;return t})(),TT={provide:rr,useExisting:Oe(()=>mf),multi:!0};var AT=(()=>{let e=class e{constructor(){this._accessors=[]}add(n,i){this._accessors.push([n,i])}remove(n){for(let i=this._accessors.length-1;i>=0;--i)if(this._accessors[i][1]===n){this._accessors.splice(i,1);return}}select(n){this._accessors.forEach(i=>{this._isSameGroup(i,n)&&i[1]!==n&&i[1].fireUncheck(n.value)})}_isSameGroup(n,i){return n[0].control?n[0]._parent===i._control._parent&&n[1].name===i.name:!1}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),mf=(()=>{let e=class e extends yo{constructor(n,i,o,s){super(n,i),this._registry=o,this._injector=s,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=v(Za,{optional:!0})??Ya}ngOnInit(){this._control=this._injector.get(Mn),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(n){this._state=n===this.value,this.setProperty("checked",this._state)}registerOnChange(n){this._fn=n,this.onChange=()=>{n(this.value),this._registry.select(this)}}setDisabledState(n){(this.setDisabledStateFired||n||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",n),this.setDisabledStateFired=!0}fireUncheck(n){this.writeValue(n)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}};e.\u0275fac=function(i){return new(i||e)(M(Mt),M(Me),M(AT),M(Vt))},e.\u0275dir=J({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(i,o){i&1&&Ee("change",function(){return o.onChange()})("blur",function(){return o.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[He([TT]),ye]});let t=e;return t})();var yf=new S(""),NT={provide:Mn,useExisting:Oe(()=>vf)},vf=(()=>{let e=class e extends Mn{set isDisabled(n){}constructor(n,i,o,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new ie,this._ngModelWarningSent=!1,this._setValidators(n),this._setAsyncValidators(i),this.valueAccessor=Yv(this,o)}ngOnChanges(n){if(this._isControlChanged(n)){let i=n.form.previousValue;i&&Ga(i,this,!1),ff(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Zv(n,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ga(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_isControlChanged(n){return n.hasOwnProperty("form")}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(i){return new(i||e)(M(ir,10),M(vo,10),M(rr,10),M(yf,8),M(Za,8))},e.\u0275dir=J({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[He([NT]),ye,St]});let t=e;return t})(),xT={provide:rt,useExisting:Oe(()=>Ja)},Ja=(()=>{let e=class e extends rt{get submitted(){return Wt(this._submittedReactive)}set submitted(n){this._submittedReactive.set(n)}constructor(n,i,o){super(),this.callSetDisabledState=o,this._submitted=ki(()=>this._submittedReactive()),this._submittedReactive=xi(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new ie,this._setValidators(n),this._setAsyncValidators(i)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Wa(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let i=this.form.get(n.path);return ff(i,n,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),i}getControl(n){return this.form.get(n.path)}removeControl(n){Ga(n.control||null,n,!1),_T(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,i){this.form.get(n.path).setValue(i)}onSubmit(n){return this._submittedReactive.set(!0),bT(this.form,this.directives),this.ngSubmit.emit(n),this.form._events.next(new uf(this.control)),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this._submittedReactive.set(!1),this.form._events.next(new df(this.form))}_updateDomValue(){this.directives.forEach(n=>{let i=n.control,o=this.form.get(n.path);i!==o&&(Ga(i||null,n),IT(o)&&(ff(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let i=this.form.get(n.path);ET(i,n),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let i=this.form.get(n.path);i&&wT(i,n)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){pf(this.form,this),this._oldForm&&Wa(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(i){return new(i||e)(M(ir,10),M(vo,10),M(Za,8))},e.\u0275dir=J({type:e,selectors:[["","formGroup",""]],hostBindings:function(i,o){i&1&&Ee("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[He([xT]),ye,St]});let t=e;return t})(),RT={provide:rt,useExisting:Oe(()=>Xa)},Xa=(()=>{let e=class e extends ST{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),this._setAsyncValidators(o)}_checkParentType(){eD(this._parent)}};e.\u0275fac=function(i){return new(i||e)(M(rt,13),M(ir,10),M(vo,10))},e.\u0275dir=J({type:e,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[He([RT]),ye]});let t=e;return t})(),OT={provide:rt,useExisting:Oe(()=>Xv)},Xv=(()=>{let e=class e extends rt{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),this._setAsyncValidators(o)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return hf(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){eD(this._parent)}};e.\u0275fac=function(i){return new(i||e)(M(rt,13),M(ir,10),M(vo,10))},e.\u0275dir=J({type:e,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[He([OT]),ye]});let t=e;return t})();function eD(t){return!(t instanceof Xa)&&!(t instanceof Ja)&&!(t instanceof Xv)}var PT={provide:Mn,useExisting:Oe(()=>Df)},Df=(()=>{let e=class e extends Mn{set isDisabled(n){}constructor(n,i,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new ie,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=Yv(this,s)}ngOnChanges(n){this._added||this._setUpControl(),Zv(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return hf(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(i){return new(i||e)(M(rt,13),M(ir,10),M(vo,10),M(rr,10),M(yf,8))},e.\u0275dir=J({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[He([PT]),ye,St]});let t=e;return t})(),FT={provide:rr,useExisting:Oe(()=>el),multi:!0};function tD(t,e){return t==null?`${e}`:(e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function kT(t){return t.split(":")[0]}var el=(()=>{let e=class e extends yo{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let i=this._getOptionId(n),o=tD(i,n);this.setProperty("value",o)}registerOnChange(n){this.onChange=i=>{this.value=this._getOptionValue(i),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i),n))return i;return null}_getOptionValue(n){let i=kT(n);return this._optionMap.has(i)?this._optionMap.get(i):n}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=ft(e)))(o||e)}})(),e.\u0275dir=J({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(i,o){i&1&&Ee("change",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[He([FT]),ye]});let t=e;return t})(),nD=(()=>{let e=class e{constructor(n,i,o){this._element=n,this._renderer=i,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue(tD(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(i){return new(i||e)(M(Me),M(Mt),M(el,9))},e.\u0275dir=J({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})(),LT={provide:rr,useExisting:Oe(()=>rD),multi:!0};function Av(t,e){return t==null?`${e}`:(typeof e=="string"&&(e=`'${e}'`),e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function jT(t){return t.split(":")[0]}var rD=(()=>{let e=class e extends yo{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let i;if(Array.isArray(n)){let o=n.map(s=>this._getOptionId(s));i=(s,a)=>{s._setSelected(o.indexOf(a.toString())>-1)}}else i=(o,s)=>{o._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(n){this.onChange=i=>{let o=[],s=i.selectedOptions;if(s!==void 0){let a=s;for(let l=0;l{let n;return function(o){return(n||(n=ft(e)))(o||e)}})(),e.\u0275dir=J({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(i,o){i&1&&Ee("change",function(a){return o.onChange(a.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[He([LT]),ye]});let t=e;return t})(),iD=(()=>{let e=class e{constructor(n,i,o){this._element=n,this._renderer=i,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(Av(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(Av(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(i){return new(i||e)(M(Me),M(Mt),M(rD,9))},e.\u0275dir=J({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})();function oD(t){return typeof t=="number"?t:parseFloat(t)}var sD=(()=>{let e=class e{constructor(){this._validator=Va}ngOnChanges(n){if(this.inputName in n){let i=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):Va,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=J({type:e,features:[St]});let t=e;return t})(),VT={provide:ir,useExisting:Oe(()=>Ef),multi:!0},Ef=(()=>{let e=class e extends sD{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=n=>oD(n),this.createValidator=n=>Ov(n)}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=ft(e)))(o||e)}})(),e.\u0275dir=J({type:e,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(i,o){i&2&&Ri("max",o._enabled?o.max:null)},inputs:{max:"max"},features:[He([VT]),ye]});let t=e;return t})(),UT={provide:ir,useExisting:Oe(()=>wf),multi:!0},wf=(()=>{let e=class e extends sD{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=n=>oD(n),this.createValidator=n=>Rv(n)}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=ft(e)))(o||e)}})(),e.\u0275dir=J({type:e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(i,o){i&2&&Ri("min",o._enabled?o.min:null)},inputs:{min:"min"},features:[He([UT]),ye]});let t=e;return t})();var BT=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Xe({type:e}),e.\u0275inj=Je({});let t=e;return t})();var aD=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:yf,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:Za,useValue:n.callSetDisabledState??Ya}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Xe({type:e}),e.\u0275inj=Je({imports:[BT]});let t=e;return t})();function ei(t){return t===null?"null":t!==Object(t)?typeof t:{}.toString.call(t).slice(8,-1).toLowerCase()}function yt(t){return ei(t)!=="string"?!0:!t.length}function or(t="",e,r){if(yt(t))return!1;let n=t.charCodeAt(0);return e<=n&&n<=r}var CD={HEPBURN:"hepburn"},HT={useObsoleteKana:!1,passRomaji:!1,convertLongVowelMark:!0,upcaseKatakana:!1,IMEMode:!1,romanization:CD.HEPBURN};var zT=65345,GT=65370,qT=65313,WT=65338,bD=12353,KT=12438,_D=12449,QT=12540,ZT=19968,YT=40879,JT=12293,XT=12540,eA=12539,tA=[65296,65305],nA=[qT,WT],rA=[zT,GT],iA=[65281,65295],oA=[65306,65311],sA=[65339,65343],aA=[65371,65376],lA=[65504,65518],cA=[12352,12447],uA=[12448,12543],dA=[65382,65439],fA=[12539,12540],ID=[65377,65381],hA=[12288,12351],pA=[19968,40959],gA=[13312,19903],mA=[cA,uA,ID,dA],SD=[hA,ID,fA,iA,oA,sA,aA,lA],yA=[...mA,...SD,nA,rA,tA,pA,gA],vA=[0,127],DA=[[256,257],[274,275],[298,299],[332,333],[362,363]],EA=[[8216,8217],[8220,8221]],wA=[vA,...DA],CA=[[32,47],[58,63],[91,96],[123,126],...EA];function lD(t=""){return yA.some(([e,r])=>or(t,e,r))}var cD=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function bA(t,e){return!!(t===e||cD(t)&&cD(e))}function _A(t,e){if(t.length!==e.length)return!1;for(var r=0;rObject.assign({},HT,t);function SA(t,e,r){let n=e;function i(a,l){if(a[l]!==void 0)return Object.assign({"":a[""]+l},a[l])}function o(a,l){let c=a.charAt(0);return s(Object.assign({"":c},n[c]),a.slice(1),l,l+1)}function s(a,l,c,u){if(!l)return r||Object.keys(a).length===1?a[""]?[[c,u,a[""]]]:[]:[[c,u,null]];if(Object.keys(a).length===1)return[[c,u,a[""]]].concat(o(l,u));let d=i(a,l.charAt(0));return d===void 0?[[c,u,a[""]]].concat(o(l,u)):s(d,l.slice(1),c,u+1)}return o(t,0)}function Sf(t){return Object.entries(t).reduce((e,[r,n])=>{let i=ei(n)==="string";return e[r]=i?{"":n}:Sf(n),e},{})}function TD(t,e){return e.split("").reduce((r,n)=>(r[n]===void 0&&(r[n]={}),r[n]),t)}function AD(t={}){let e={};return ei(t)==="object"&&Object.entries(t).forEach(([r,n])=>{let i=e;r.split("").forEach(o=>{i[o]===void 0&&(i[o]={}),i=i[o]}),i[""]=n}),function(n){let i=JSON.parse(JSON.stringify(n));function o(s,a){return s===void 0||ei(s)==="string"?a:Object.entries(a).reduce((l,[c,u])=>(l[c]=o(s[c],u),l),s)}return o(i,e)}}function ND(t,e){return e?ei(e)==="function"?e(t):AD(e)(t):t}var MA={a:"\u3042",i:"\u3044",u:"\u3046",e:"\u3048",o:"\u304A",k:{a:"\u304B",i:"\u304D",u:"\u304F",e:"\u3051",o:"\u3053"},s:{a:"\u3055",i:"\u3057",u:"\u3059",e:"\u305B",o:"\u305D"},t:{a:"\u305F",i:"\u3061",u:"\u3064",e:"\u3066",o:"\u3068"},n:{a:"\u306A",i:"\u306B",u:"\u306C",e:"\u306D",o:"\u306E"},h:{a:"\u306F",i:"\u3072",u:"\u3075",e:"\u3078",o:"\u307B"},m:{a:"\u307E",i:"\u307F",u:"\u3080",e:"\u3081",o:"\u3082"},y:{a:"\u3084",u:"\u3086",o:"\u3088"},r:{a:"\u3089",i:"\u308A",u:"\u308B",e:"\u308C",o:"\u308D"},w:{a:"\u308F",i:"\u3090",e:"\u3091",o:"\u3092"},g:{a:"\u304C",i:"\u304E",u:"\u3050",e:"\u3052",o:"\u3054"},z:{a:"\u3056",i:"\u3058",u:"\u305A",e:"\u305C",o:"\u305E"},d:{a:"\u3060",i:"\u3062",u:"\u3065",e:"\u3067",o:"\u3069"},b:{a:"\u3070",i:"\u3073",u:"\u3076",e:"\u3079",o:"\u307C"},p:{a:"\u3071",i:"\u3074",u:"\u3077",e:"\u307A",o:"\u307D"},v:{a:"\u3094\u3041",i:"\u3094\u3043",u:"\u3094",e:"\u3094\u3047",o:"\u3094\u3049"}},TA={".":"\u3002",",":"\u3001",":":"\uFF1A","/":"\u30FB","!":"\uFF01","?":"\uFF1F","~":"\u301C","-":"\u30FC","\u2018":"\u300C","\u2019":"\u300D","\u201C":"\u300E","\u201D":"\u300F","[":"\uFF3B","]":"\uFF3D","(":"\uFF08",")":"\uFF09","{":"\uFF5B","}":"\uFF5D"},fD={k:"\u304D",s:"\u3057",t:"\u3061",n:"\u306B",h:"\u3072",m:"\u307F",r:"\u308A",g:"\u304E",z:"\u3058",d:"\u3062",b:"\u3073",p:"\u3074",v:"\u3094",q:"\u304F",f:"\u3075"},xD={ya:"\u3083",yi:"\u3043",yu:"\u3085",ye:"\u3047",yo:"\u3087"},RD={a:"\u3041",i:"\u3043",u:"\u3045",e:"\u3047",o:"\u3049"},hD={sh:"sy",ch:"ty",cy:"ty",chy:"ty",shy:"sy",j:"zy",jy:"zy",shi:"si",chi:"ti",tsu:"tu",ji:"zi",fu:"hu"},AA=Object.assign({tu:"\u3063",wa:"\u308E",ka:"\u30F5",ke:"\u30F6"},RD,xD),NA={yi:"\u3044",wu:"\u3046",ye:"\u3044\u3047",wi:"\u3046\u3043",we:"\u3046\u3047",kwa:"\u304F\u3041",whu:"\u3046",tha:"\u3066\u3083",thu:"\u3066\u3085",tho:"\u3066\u3087",dha:"\u3067\u3083",dhu:"\u3067\u3085",dho:"\u3067\u3087"},xA={wh:"\u3046",kw:"\u304F",qw:"\u304F",q:"\u304F",gw:"\u3050",sw:"\u3059",ts:"\u3064",th:"\u3066",tw:"\u3068",dh:"\u3067",dw:"\u3069",fw:"\u3075",f:"\u3075"};function RA(){let t=Sf(MA),e=i=>TD(t,i);Object.entries(fD).forEach(([i,o])=>{Object.entries(xD).forEach(([s,a])=>{e(i+s)[""]=o+a})}),Object.entries(TA).forEach(([i,o])=>{e(i)[""]=o}),Object.entries(xA).forEach(([i,o])=>{Object.entries(RD).forEach(([s,a])=>{let l=e(i+s);l[""]=o+a})}),["n","n'","xn"].forEach(i=>{e(i)[""]="\u3093"}),t.c=JSON.parse(JSON.stringify(t.k)),Object.entries(hD).forEach(([i,o])=>{let s=i.slice(0,i.length-1),a=i.charAt(i.length-1),l=e(s);l[a]=JSON.parse(JSON.stringify(e(o)))});function r(i){return[...Object.entries(hD),["c","k"]].reduce((o,[s,a])=>i.startsWith(a)?o.concat(i.replace(a,s)):o,[])}Object.entries(AA).forEach(([i,o])=>{let s=d=>d.charAt(d.length-1),a=d=>d.slice(0,d.length-1),l=`x${i}`,c=e(l);c[""]=o;let u=e(`l${a(i)}`);u[s(i)]=c,r(i).forEach(d=>{["l","x"].forEach(h=>{let f=e(h+a(d));f[s(d)]=e(h+i)})})}),Object.entries(NA).forEach(([i,o])=>{e(i)[""]=o});function n(i){return Object.entries(i).reduce((o,[s,a])=>(s?o[s]=n(a):o[s]=`\u3063${a}`,o),{})}return[...Object.keys(fD),"c","y","w","j"].forEach(i=>{let o=t[i];o[i]=n(o)}),delete t.n.n,Object.freeze(JSON.parse(JSON.stringify(t)))}var Cf=null;function OA(){return Cf==null&&(Cf=RA()),Cf}var PA=AD({wi:"\u3090",we:"\u3091"});function FA(t){let e=JSON.parse(JSON.stringify(t));return e.n.n={"":"\u3093"},e.n[" "]={"":"\u3093"},e}function nl(t=""){return yt(t)?!1:t.charCodeAt(0)===XT}function kA(t=""){return yt(t)?!1:t.charCodeAt(0)===eA}function LA(t=""){return yt(t)?!1:nl(t)?!0:or(t,bD,KT)}var NV=MD((t,e,r)=>{let n=OA();return n=t?FA(n):n,n=e?PA(n):n,r&&(n=ND(n,r)),n},Xr);function If(t=""){return yt(t)?!1:wA.some(([e,r])=>or(t,e,r))}function OD(t="",e){let r=ei(e)==="regexp";return yt(t)?!1:[...t].every(n=>{let i=If(n);return r?i||e.test(n):i})}function tl(t=""){return or(t,_D,QT)}function jA(t=""){return yt(t)?!1:[...t].every(tl)}function PD(t=""){return yt(t)?!1:t.charCodeAt(0)===JT}function VA(t=""){return or(t,ZT,YT)||PD(t)}var UA=(t,e)=>nl(t)&&e<1,BA=(t,e)=>nl(t)&&e>0,$A=t=>["\u30F6","\u30F5"].includes(t),HA={a:"\u3042",i:"\u3044",u:"\u3046",e:"\u3048",o:"\u3046"};function zA(t="",e,{isDestinationRomaji:r,convertLongVowelMark:n}={}){let i="";return t.split("").reduce((o,s,a)=>{if(kA(s)||UA(s,a)||$A(s))return o.concat(s);if(n&&i&&BA(s,a)){let l=e(i).slice(-1);return tl(t[a-1])&&l==="o"&&r?o.concat("\u304A"):o.concat(HA[l])}if(!nl(s)&&tl(s)){let l=s.charCodeAt(0)+(bD-_D),c=String.fromCharCode(l);return i=c,o.concat(c)}return i="",o.concat(s)},[]).join("")}var bf=null,GA={\u3042:"a",\u3044:"i",\u3046:"u",\u3048:"e",\u304A:"o",\u304B:"ka",\u304D:"ki",\u304F:"ku",\u3051:"ke",\u3053:"ko",\u3055:"sa",\u3057:"shi",\u3059:"su",\u305B:"se",\u305D:"so",\u305F:"ta",\u3061:"chi",\u3064:"tsu",\u3066:"te",\u3068:"to",\u306A:"na",\u306B:"ni",\u306C:"nu",\u306D:"ne",\u306E:"no",\u306F:"ha",\u3072:"hi",\u3075:"fu",\u3078:"he",\u307B:"ho",\u307E:"ma",\u307F:"mi",\u3080:"mu",\u3081:"me",\u3082:"mo",\u3089:"ra",\u308A:"ri",\u308B:"ru",\u308C:"re",\u308D:"ro",\u3084:"ya",\u3086:"yu",\u3088:"yo",\u308F:"wa",\u3090:"wi",\u3091:"we",\u3092:"wo",\u3093:"n",\u304C:"ga",\u304E:"gi",\u3050:"gu",\u3052:"ge",\u3054:"go",\u3056:"za",\u3058:"ji",\u305A:"zu",\u305C:"ze",\u305E:"zo",\u3060:"da",\u3062:"ji",\u3065:"zu",\u3067:"de",\u3069:"do",\u3070:"ba",\u3073:"bi",\u3076:"bu",\u3079:"be",\u307C:"bo",\u3071:"pa",\u3074:"pi",\u3077:"pu",\u307A:"pe",\u307D:"po",\u3094\u3041:"va",\u3094\u3043:"vi",\u3094:"vu",\u3094\u3047:"ve",\u3094\u3049:"vo"},qA={"\u3002":".","\u3001":",","\uFF1A":":","\u30FB":"/","\uFF01":"!","\uFF1F":"?","\u301C":"~",\u30FC:"-","\u300C":"\u2018","\u300D":"\u2019","\u300E":"\u201C","\u300F":"\u201D","\uFF3B":"[","\uFF3D":"]","\uFF08":"(","\uFF09":")","\uFF5B":"{","\uFF5D":"}","\u3000":" "},WA=["\u3042","\u3044","\u3046","\u3048","\u304A","\u3084","\u3086","\u3088"],_f={\u3083:"ya",\u3085:"yu",\u3087:"yo"},KA={\u3043:"yi",\u3047:"ye"},QA={\u3041:"a",\u3043:"i",\u3045:"u",\u3047:"e",\u3049:"o"},ZA=["\u304D","\u306B","\u3072","\u307F","\u308A","\u304E","\u3073","\u3074","\u3094","\u304F","\u3075"],YA={\u3057:"sh",\u3061:"ch",\u3058:"j",\u3062:"j"},JA={\u3063:"",\u3083:"ya",\u3085:"yu",\u3087:"yo",\u3041:"a",\u3043:"i",\u3045:"u",\u3047:"e",\u3049:"o"},pD={b:"b",c:"t",d:"d",f:"f",g:"g",h:"h",j:"j",k:"k",m:"m",p:"p",q:"q",r:"r",s:"s",t:"t",v:"v",w:"w",x:"x",z:"z"};function XA(){return bf==null&&(bf=tN()),bf}function eN(t){switch(t){case CD.HEPBURN:return XA();default:return{}}}function tN(){let t=Sf(GA),e=n=>TD(t,n),r=(n,i)=>{e(n)[""]=i};return Object.entries(qA).forEach(([n,i])=>{e(n)[""]=i}),[...Object.entries(_f),...Object.entries(QA)].forEach(([n,i])=>{r(n,i)}),ZA.forEach(n=>{let i=e(n)[""][0];Object.entries(_f).forEach(([o,s])=>{r(n+o,i+s)}),Object.entries(KA).forEach(([o,s])=>{r(n+o,i+s)})}),Object.entries(YA).forEach(([n,i])=>{Object.entries(_f).forEach(([o,s])=>{r(n+o,i+s[1])}),r(`${n}\u3043`,`${i}yi`),r(`${n}\u3047`,`${i}e`)}),t.\u3063=FD(t),Object.entries(JA).forEach(([n,i])=>{r(n,i)}),WA.forEach(n=>{r(`\u3093${n}`,`n'${e(n)[""]}`)}),Object.freeze(JSON.parse(JSON.stringify(t)))}function FD(t){return Object.entries(t).reduce((e,[r,n])=>{if(r)e[r]=FD(n);else{let i=n.charAt(0);e[r]=Object.keys(pD).includes(i)?pD[i]+n:n}return e},{})}var kD=MD((t,e)=>{let r=eN(t);return e&&(r=ND(r,e)),r},Xr);function Mf(t="",e={},r){let n=IA(e);return r||(r=kD(n.romanization,n.customRomajiMapping)),nN(t,n,r).map(i=>{let[o,s,a]=i;return n.upcaseKatakana&&jA(t.slice(o,s))?a.toUpperCase():a}).join("")}function nN(t,e,r){r||(r=kD(e.romanization,e.customRomajiMapping));let n=Object.assign({},{isDestinationRomaji:!0},e);return SA(zA(t,Mf,n),r,!e.IMEMode)}function gD(t=""){return yt(t)?!1:CA.some(([e,r])=>or(t,e,r))}function mD(t=""){return yt(t)||PD(t)?!1:SD.some(([e,r])=>or(t,e,r))}var yD=t=>t===" ",vD=t=>t==="\u3000",DD=t=>/[0-9]/.test(t),ED=t=>/[0-9]/.test(t),rN={EN:"en",JA:"ja",EN_NUM:"englishNumeral",JA_NUM:"japaneseNumeral",EN_PUNC:"englishPunctuation",JA_PUNC:"japanesePunctuation",KANJI:"kanji",HIRAGANA:"hiragana",KATAKANA:"katakana",SPACE:"space",OTHER:"other"};function wD(t,e=!1){let{EN:r,JA:n,EN_NUM:i,JA_NUM:o,EN_PUNC:s,JA_PUNC:a,KANJI:l,HIRAGANA:c,KATAKANA:u,SPACE:d,OTHER:h}=rN;if(e)switch(!0){case DD(t):return h;case ED(t):return h;case yD(t):return r;case gD(t):return h;case vD(t):return n;case mD(t):return h;case lD(t):return n;case If(t):return r;default:return h}else switch(!0){case vD(t):return d;case yD(t):return d;case DD(t):return o;case ED(t):return i;case gD(t):return s;case mD(t):return a;case VA(t):return l;case LA(t):return c;case tl(t):return u;case lD(t):return n;case If(t):return r;default:return h}}function LD(t,{compact:e=!1,detailed:r=!1}={}){if(t==null||yt(t))return[];let n=[...t],i=n.shift(),o=wD(i,e);return i=r?{type:o,value:i}:i,n.reduce((a,l)=>{let c=wD(l,e),u=c===o;o=c;let d=l;return u&&(d=(r?a.pop().value:a.pop())+d),r?a.concat({type:c,value:d}):a.concat(d)},[i])}var iN=(t,e)=>({result:t,index:e}),oN=t=>({$implicit:t});function sN(t,e){if(t&1&&(w(0,"span"),pe(1,"i",8),b(2),C()),t&2){let r=$e().$implicit;X(2),ia(" ",r,"")}}function aN(t,e){}function lN(t,e){if(t&1){let r=Oi();w(0,"button",5),Ee("click",function(){let i=Mi(r),o=i.$implicit,s=i.index,a=$e(3);return Ti(a.handleSelectionClick(o,s))}),Tt(1,sN,3,1,"span",6)(2,aN,0,0,"ng-template",7),C()}if(t&2){let r=e.$implicit,n=e.index,i=$e(3);Ur("active",i.markIsActive(n,r)),X(),Pe("ngIf",!i.taItemTpl),X(),Pe("ngTemplateOutlet",i.taItemTpl)("ngTemplateOutletContext",zm(8,oN,Pi(5,iN,r,n)))}}function cN(t,e){if(t&1){let r=Oi();w(0,"section",2)(1,"div",3),Ee("click",function(){Mi(r);let i=$e(2);return Ti(i.hideSuggestions())}),C(),Tt(2,lN,3,10,"button",4),C()}if(t&2){let r=$e(2);X(2),Pe("ngForOf",r.results)}}function uN(t,e){if(t&1&&Tt(0,cN,3,1,"section",1),t&2){let r=$e();Pe("ngIf",r.showSuggestions)}}var Te=function(t){return t.Backspace="Backspace",t.Tab="Tab",t.Enter="Enter",t.ShiftLeft="ShiftLeft",t.ShiftRight="ShiftRight",t.Escape="Escape",t.ArrowLeft="ArrowLeft",t.ArrowRight="ArrowRight",t.ArrowUp="ArrowUp",t.ArrowDown="ArrowDown",t.MetaLeft="MetaLeft",t.MetaRight="MetaRight",t}(Te||{});function dN(t){return[Te.Enter,Te.Tab,Te.ShiftLeft,Te.ShiftRight,Te.ArrowLeft,Te.ArrowUp,Te.ArrowRight,Te.ArrowDown,Te.MetaLeft,Te.MetaRight].every(e=>e!==t)}function fN(t){return t===Te.ArrowDown||t===Te.ArrowUp}function hN(t,e){return t===e}function pN(t){return t.code===Te.Enter}function gN(t){return t.code===Te.Escape}function mN(t,e="q",r={}){let n=E({[e]:t},r),i=(s,a)=>s.set(a,n[a]);return Object.keys(n).reduce(i,new Nt)}function yN(t=""){return["get","post","put","delete","patch","request"].some(n=>t===n)?t:"get"}var Tf=-1;function vN(t,e,r=10){let n=e?1:-1,i=r-1,o=Tf,s=t+n,a=s;return s===i+1&&(a=o),s===o-1&&(a=i),a}function DN(t){return t[1]}function EN(t){return t.map(e=>e[0])}function wN(t){return t.length>0}function CN(t){return t.target.value}function bN(t,e,r=!1){let n=t;return t.hasOwnProperty("length")||(n=(e.length?e:Object.keys(t)).reduce((o,s)=>`${o}${t[s]}`,"")),r?n:n.toLowerCase()}var jD=(()=>{let e=class e{constructor(n,i,o,s){this.element=n,this.viewContainer=i,this.http=o,this.cdr=s,this.showSuggestions=!1,this.results=[],this.taUrl="",this.taParams={},this.taQueryParam="q",this.taApi="jsonp",this.taApiMethod="get",this.taList=[],this.taListItemField=[],this.taListItemLabel="",this.taDebounce=300,this.taAllowEmpty=!1,this.taCaseSensitive=!1,this.taDisplayOnFocus=!1,this.taSelected=new ie,this.suggestionIndex=0,this.subscriptions=[],this.activeResult="",this.searchQuery="",this.selectedItem={},this.resultsAsItems=[],this.keydown$=new le,this.keyup$=new le}handleEsc(n){gN(n)&&(this.hideSuggestions(),n.preventDefault()),this.keydown$.next(n)}onkeyup(n){n.preventDefault(),n.stopPropagation(),this.keyup$.next(n)}onClick(){this.taDisplayOnFocus&&this.displaySuggestions()}ngOnInit(){this.filterEnterEvent(this.keydown$),this.listenAndSuggest(this.keyup$),this.navigateWithArrows(this.keydown$),this.renderTemplate()}ngOnDestroy(){this.keydown$.complete(),this.keyup$.complete()}renderTemplate(){if(!this.suggestionsTplRef){console.error("NO NGXTA Template Found. Requires NG9");return}this.viewContainer.createEmbeddedView(this.suggestionsTplRef),this.cdr.markForCheck()}listenAndSuggest(n){n.pipe(me(i=>dN(i.code)),R(CN),ql(this.taDebounce),Gl(),Kl(),me(i=>this.taAllowEmpty||wN(i)),ue(i=>this.searchQuery=i),Ne(i=>this.suggest(i))).subscribe(i=>{this.assignResults(i),this.displaySuggestions()})}assignResults(n){let i=this.taListItemLabel;this.resultsAsItems=n,this.results=n.map(o=>i?o[i]:o),this.suggestionIndex=Tf,(!n||!n.length)&&(this.activeResult=this.searchQuery)}filterEnterEvent(n){n.pipe(me(pN)).subscribe(i=>{this.handleSelectSuggestion(this.activeResult)})}navigateWithArrows(n){n.pipe(R(i=>i.key),me(i=>fN(i))).subscribe(i=>{this.updateIndex(i),this.displaySuggestions()})}updateIndex(n){this.suggestionIndex=vN(this.suggestionIndex,n===Te.ArrowDown,this.results.length)}displaySuggestions(){this.showSuggestions=!0,this.cdr.markForCheck()}suggest(n){return this.taList.length?this.createListSource(this.taList,n):this.request(n)}request(n){let i=this.taUrl,s={params:mN(n,this.taQueryParam,this.taParams)};return this.taApi==="jsonp"?this.requestJsonp(i,s,this.taCallbackParamValue):this.requestHttp(i,s)}requestHttp(n,i){let o=yN(this.taApiMethod);return this.http[o](n,i)}requestJsonp(n,i,o="callback"){let s=i.params.toString();return this.http.jsonp(`${n}?${s}`,o).pipe(R(DN),R(EN))}markIsActive(n,i){let o=hN(n,this.suggestionIndex);return o&&(this.activeResult=i),o}handleSelectionClick(n,i){this.suggestionIndex=i,this.handleSelectSuggestion(n)}handleSelectSuggestion(n){let i=this.resultsAsItems.length?this.resultsAsItems[this.suggestionIndex]:n;this.hideSuggestions();let o=this.suggestionIndex===Tf?this.searchQuery:i;this.taSelected.emit(o)}hideSuggestions(){this.showSuggestions=!1}hasItemTemplate(){return this.taItemTpl!==void 0}createListSource(n,i){let o=this.taCaseSensitive?i:i.toLowerCase(),s=this.taListItemField;return x(n.filter(a=>bN(a,s,this.taCaseSensitive).includes(o)))}};e.\u0275fac=function(i){return new(i||e)(M(Me),M(pt),M($i),M(wn))},e.\u0275cmp=gn({type:e,selectors:[["ngx-typeahead"],["","ngxTypeahead",""]],viewQuery:function(i,o){if(i&1&&Bm(Bt,7),i&2){let s;Ju(s=Xu())&&(o.suggestionsTplRef=s.first)}},hostBindings:function(i,o){i&1&&Ee("keydown",function(a){return o.handleEsc(a)})("keyup",function(a){return o.onkeyup(a)})("click",function(){return o.onClick()})},inputs:{taItemTpl:"taItemTpl",taUrl:"taUrl",taParams:"taParams",taQueryParam:"taQueryParam",taCallbackParamValue:"taCallbackParamValue",taApi:"taApi",taApiMethod:"taApiMethod",taList:"taList",taListItemField:"taListItemField",taListItemLabel:"taListItemLabel",taDebounce:"taDebounce",taAllowEmpty:"taAllowEmpty",taCaseSensitive:"taCaseSensitive",taDisplayOnFocus:"taDisplayOnFocus"},outputs:{taSelected:"taSelected"},standalone:!0,features:[En],decls:2,vars:0,consts:[["suggestionsTplRef",""],["class","ta-results list-group",4,"ngIf"],[1,"ta-results","list-group"],[1,"ta-backdrop",3,"click"],["type","button","class","ta-item list-group-item",3,"active","click",4,"ngFor","ngForOf"],["type","button",1,"ta-item","list-group-item",3,"click"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"fa","fa-search"]],template:function(i,o){i&1&&Tt(0,uN,1,1,"ng-template",null,0,qm)},dependencies:[ha,gy,my,yy],styles:[".ta-results[_ngcontent-%COMP%]{position:absolute}.ta-backdrop[_ngcontent-%COMP%]{inset:0;position:fixed;z-index:1}.ta-item[_ngcontent-%COMP%]{position:relative;z-index:2;display:block}"]});let t=e;return t})();var VD=t=>{if(t instanceof nr){let e=t,r=Object.keys(e.controls);return r.every(i=>!!e.controls[i].value||e.controls[i].value===0)||r.every(i=>!e.controls[i].value)?null:{allOrNoneRequired:!0}}else throw new TypeError("allOrNoneRequiredValidator should be applied to a FormGroup")};var IN=(t,e)=>e.difficulty,SN=()=>["title","romajiTitle"],UD=(t,e)=>({success:t,danger:e});function MN(t,e){if(t&1&&(w(0,"label"),pe(1,"input",21),b(2),C()),t&2){let r=e.$implicit;X(),Pe("value",r.difficulty),X(),oa(" ",r.difficulty," (",r.level,") ")}}function TN(t,e){if(t&1&&(w(0,"fieldset",6)(1,"legend"),b(2,"Difficulty*"),C(),Zu(3,MN,3,3,"label",null,IN),C(),w(5,"div",7)(6,"label",8),b(7," Score* "),pe(8,"input",9),C(),w(9,"label",8),b(10," Lamp* "),w(11,"select",10)(12,"option"),b(13,"FAILED"),C(),w(14,"option"),b(15,"ASSIST"),C(),w(16,"option"),b(17,"CLEAR"),C(),w(18,"option"),b(19,"FULL COMBO"),C(),w(20,"option"),b(21,"GREAT FULL COMBO"),C(),w(22,"option"),b(23,"PERFECT FULL COMBO"),C(),w(24,"option"),b(25,"MARVELOUS FULL COMBO"),C(),w(26,"option"),b(27,"LIFE4"),C()()(),w(28,"label",8),b(29," Time* "),pe(30,"input",11),C(),w(31,"label",8),b(32," Flare (optional) "),w(33,"select",12)(34,"option"),b(35,"0"),C(),w(36,"option"),b(37,"I"),C(),w(38,"option"),b(39,"II"),C(),w(40,"option"),b(41,"III"),C(),w(42,"option"),b(43,"IV"),C(),w(44,"option"),b(45,"V"),C(),w(46,"option"),b(47,"VI"),C(),w(48,"option"),b(49,"VII"),C(),w(50,"option"),b(51,"VIII"),C(),w(52,"option"),b(53,"IX"),C(),w(54,"option"),b(55,"EX"),C()()()(),w(56,"fieldset",13)(57,"legend"),b(58,"Judgements (optional, all or none)"),C(),w(59,"label"),b(60," MARVELOUS "),pe(61,"input",14),C(),w(62,"label"),b(63," PERFECT "),pe(64,"input",15),C(),w(65,"label"),b(66," GREAT "),pe(67,"input",16),C(),w(68,"label"),b(69," GOOD "),pe(70,"input",17),C(),w(71,"label"),b(72," OK "),pe(73,"input",18),C(),w(74,"label"),b(75," MISS "),pe(76,"input",19),C()(),w(77,"div")(78,"button",20),b(79,"Add score"),C()()),t&2){let r=$e();Pe("ngClass",Pi(3,UD,r.group.controls.difficulty.valid,r.group.controls.difficulty.invalid)),X(3),Yu(r.selectedSongCharts),X(53),Pe("ngClass",Pi(6,UD,r.group.controls.judgements.valid,r.group.controls.judgements.invalid)),X(22),Pe("disabled",r.group.invalid)}}function AN(t,e){if(t&1&&(w(0,"span",23),b(1),C(),b(2," - "),w(3,"span",24),b(4),C(),b(5," - "),w(6,"span",25),b(7),C(),b(8," - "),w(9,"span",26),b(10),C(),b(11," - "),w(12,"span",27),b(13),C(),b(14," - "),w(15,"span",28),b(16),C()),t&2){let r=$e().$implicit;X(),tt(r.judgements.MARVELOUS),X(3),tt(r.judgements.PERFECT),X(3),tt(r.judgements.GREAT),X(3),tt(r.judgements.GOOD),X(3),tt(r.judgements.OK),X(3),tt(r.judgements.MISS)}}function NN(t,e){if(t&1&&(w(0,"tr")(1,"td"),b(2),C(),w(3,"td"),b(4),C(),w(5,"td"),b(6),C(),w(7,"td"),b(8),C(),w(9,"td"),b(10),C(),w(11,"td"),Tt(12,AN,17,6),C()()),t&2){let r=e.$implicit,n=$e(2);X(2),tt(n.getSongTitle(r.identifier)),X(2),oa("",r.difficulty," (",n.getChartLevel(r.identifier,r.difficulty),")"),X(2),tt(r.score),X(2),tt(r.lamp),X(2),tt(r.optional==null?null:r.optional.flare),X(2),ra(r.judgements?12:-1)}}function xN(t,e){if(t&1){let r=Oi();w(0,"h1"),b(1,"Summary"),C(),w(2,"table")(3,"thead")(4,"tr")(5,"th"),b(6,"Title"),C(),w(7,"th"),b(8,"Difficulty"),C(),w(9,"th"),b(10,"Score"),C(),w(11,"th"),b(12,"Lamp"),C(),w(13,"th"),b(14,"Flare"),C(),w(15,"th"),b(16,"Judgements"),C()()(),w(17,"tbody"),Zu(18,NN,13,7,"tr",null,Um),C()(),w(20,"button",22),Ee("click",function(){Mi(r);let i=$e();return Ti(i.generate())}),b(21,"Generate !"),C()}if(t&2){let r=$e();X(18),Yu(r.scores)}}var rl=class t{constructor(e){this.route=e;this.songs=this.route.snapshot.data.songs.map(r=>(r.romajiTitle=LD(r.title).map(n=>Mf(n,{convertLongVowelMark:!0})).join(" "),OD(r.title)?r.label=r.title:r.label=r.title+" ["+r.romajiTitle+"]",r)).sort((r,n)=>{let i=r.romajiTitle.toUpperCase(),o=n.romajiTitle.toUpperCase();return io?1:0}),this.charts=this.route.snapshot.data.charts,this.playstyle.valueChanges.pipe(Cr("SP"),Zl()).subscribe(([r,n])=>{console.log(r,n),this.group.dirty&&(confirm("Warning : changing your playstyle will reset the form")?this.reset():this.playstyle.setValue(r,{emitEvent:!1}))}),this.group.statusChanges.subscribe(r=>{if(r==="VALID"&&(this.group.controls.judgements.controls.marvelous.value||this.group.controls.judgements.controls.marvelous.value===0)){let n="MARVELOUS FULL COMBO";this.group.controls.judgements.controls.perfect.value>0&&(n="PERFECT FULL COMBO"),this.group.controls.judgements.controls.great.value>0&&(n="GREAT FULL COMBO"),this.group.controls.judgements.controls.good.value>0&&(n="FULL COMBO"),this.group.controls.judgements.controls.miss.value>0&&(n="CLEAR"),this.group.controls.lamp.setValue(n)}})}songs;charts=[];selectedSong;selectedSongCharts;scores=[];playstyle=new Fe("SP",Yt.required);group=new nr({title:new Fe("",Yt.required),difficulty:new Fe("",Yt.required),score:new Fe(0,{nonNullable:!0,validators:Yt.required}),lamp:new Fe("CLEAR",Yt.required),flare:new Fe,time:new Fe(new Date().toISOString().slice(0,16),Yt.required),judgements:new nr({marvelous:new Fe,perfect:new Fe,great:new Fe,good:new Fe,ok:new Fe,miss:new Fe},VD)});reset(){this.group.reset({title:"",lamp:"CLEAR",score:0,time:new Date().toISOString().slice(0,16)}),this.selectedSong=void 0,this.selectedSongCharts=void 0}onSelectedSong(e){this.selectedSong=e,this.selectedSong&&(this.selectedSongCharts=this.charts.filter(r=>r.songID===this.selectedSong?.id&&r.playtype===this.playstyle.value).sort((r,n)=>+r.level-+n.level))}getSongTitle(e){return this.songs.filter(r=>""+r.id===e).pop()?.title}getChartLevel(e,r){return this.charts.filter(n=>""+n.songID===e&&n.difficulty===r).pop()?.level}addScore(){let e={lamp:this.group.controls.lamp.value,timeAchieved:new Date(this.group.controls.time.value).getTime(),matchType:"inGameID",identifier:""+this.selectedSong?.id,difficulty:this.group.controls.difficulty.value,score:this.group.controls.score.value};this.group.controls.judgements.dirty&&(e.judgements={GOOD:this.group.controls.judgements.controls.good.value,GREAT:this.group.controls.judgements.controls.great.value,MARVELOUS:this.group.controls.judgements.controls.marvelous.value,MISS:this.group.controls.judgements.controls.miss.value,OK:this.group.controls.judgements.controls.ok.value,PERFECT:this.group.controls.judgements.controls.perfect.value}),this.group.controls.flare.value&&(e.optional={flare:this.group.controls.flare.value}),this.scores.push(e),this.reset()}generate(){let e={meta:{game:"ddr",service:"sukoa",version:"",playtype:this.playstyle.value},scores:this.scores},r=new Blob([JSON.stringify(e)],{type:"application/json"}),n=document.createElement("a"),i=URL.createObjectURL(r);n.href=i,n.download="sukoa.json",document.body.appendChild(n),n.click(),setTimeout(function(){document.body.removeChild(n),window.URL.revokeObjectURL(i)},0)}static \u0275fac=function(r){return new(r||t)(M(_n))};static \u0275cmp=gn({type:t,selectors:[["app-main"]],standalone:!0,features:[En],decls:18,vars:9,consts:[[3,"submit","formGroup"],[1,"flex","space-around"],["name","playstyle","type","radio","value","SP",3,"formControl"],["name","playstyle","type","radio","value","DP",3,"formControl"],[1,"width"],["type","text","autocomplete","off","name","songTitle","formControlName","title","ngxTypeahead","","taListItemLabel","label","placeholder","Start typing to select the song (romaji available for japanese text)",3,"taSelected","taList","taListItemField","value"],[1,"flex","space-around",3,"ngClass"],[1,"flex"],[1,"grow"],["type","number","min","0","max","1000000","formControlName","score"],["formControlName","lamp"],["formControlName","time","type","datetime-local"],["formControlName","flare"],["formGroupName","judgements",1,"flex",3,"ngClass"],["type","number","min","0","formControlName","marvelous"],["type","number","min","0","formControlName","perfect"],["type","number","min","0","formControlName","great"],["type","number","min","0","formControlName","good"],["type","number","min","0","formControlName","ok"],["type","number","min","0","formControlName","miss"],["type","submit",3,"disabled"],["type","radio","formControlName","difficulty","id","difficulty",3,"value"],[3,"click"],[1,"success"],[1,"attention"],[1,"severe"],[1,"accent"],[1,"default"],[1,"danger"]],template:function(r,n){r&1&&(w(0,"form",0),Ee("submit",function(){return n.addScore()}),w(1,"fieldset",1)(2,"legend"),b(3,"Playstyle"),C(),w(4,"label"),pe(5,"input",2),b(6," SP "),C(),w(7,"label"),pe(8,"input",3),b(9," DP "),C()(),w(10,"fieldset")(11,"legend"),b(12,"Song information"),C(),w(13,"label",4),b(14," Title* "),w(15,"input",5),Ee("taSelected",function(o){return n.onSelectedSong(o)}),C()(),Tt(16,TN,80,9),C()(),Tt(17,xN,22,0)),r&2&&(Pe("formGroup",n.group),X(5),Pe("formControl",n.playstyle),X(3),Pe("formControl",n.playstyle),X(7),Pe("taList",n.songs)("taListItemField",Hm(8,SN))("value",n.selectedSong==null?null:n.selectedSong.title),X(),ra(n.selectedSong?16:-1),X(),ra(n.scores.length?17:-1))},dependencies:[aD,Jv,nD,iD,Ka,gf,el,mf,Gv,qv,wf,Ef,vf,Ja,Df,Xa,jD,py],styles:["form[_ngcontent-%COMP%]{overflow:unset} .ta-item{background:var(--contrast)}"]})};var ti=class t{constructor(e){this.http=e}getSongs(){return this.http.get("https://raw.githubusercontent.com/zkldi/Tachi/main/seeds/collections/songs-ddr.json")}getCharts(){return this.http.get("https://raw.githubusercontent.com/zkldi/Tachi/main/seeds/collections/charts-ddr.json")}static \u0275fac=function(r){return new(r||t)(T($i))};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})};var BD=(t,e)=>v(ti).getSongs();var $D=(t,e)=>v(ti).getCharts();var HD=[{path:"",component:rl,resolve:{songs:BD,charts:$D}}];var z=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}(z||{}),Rt="*";function zD(t,e=null){return{type:z.Sequence,steps:t,options:e}}function Af(t){return{type:z.Style,styles:t,offset:null}}var An=class{constructor(e=0,r=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+r}_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 r=e=="start"?this._onStartFns:this._onDoneFns;r.forEach(n=>n()),r.length=0}},Do=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 r=0,n=0,i=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++r==o&&this._onFinish()}),s.onDestroy(()=>{++n==o&&this._onDestroy()}),s.onStart(()=>{++i==o&&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 r=e*this.totalTime;this.players.forEach(n=>{let i=n.totalTime?Math.min(1,r/n.totalTime):1;n.setPosition(i)})}getPosition(){let e=this.players.reduce((r,n)=>r===null||n.totalTime>r.totalTime?n:r,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let r=e=="start"?this._onStartFns:this._onDoneFns;r.forEach(n=>n()),r.length=0}},il="!";function GD(t){return new m(3e3,!1)}function RN(){return new m(3100,!1)}function ON(){return new m(3101,!1)}function PN(t){return new m(3001,!1)}function FN(t){return new m(3003,!1)}function kN(t){return new m(3004,!1)}function LN(t,e){return new m(3005,!1)}function jN(){return new m(3006,!1)}function VN(){return new m(3007,!1)}function UN(t,e){return new m(3008,!1)}function BN(t){return new m(3002,!1)}function $N(t,e,r,n,i){return new m(3010,!1)}function HN(){return new m(3011,!1)}function zN(){return new m(3012,!1)}function GN(){return new m(3200,!1)}function qN(){return new m(3202,!1)}function WN(){return new m(3013,!1)}function KN(t){return new m(3014,!1)}function QN(t){return new m(3015,!1)}function ZN(t){return new m(3016,!1)}function YN(t,e){return new m(3404,!1)}function JN(t){return new m(3502,!1)}function XN(t){return new m(3503,!1)}function ex(){return new m(3300,!1)}function tx(t){return new m(3504,!1)}function nx(t){return new m(3301,!1)}function rx(t,e){return new m(3302,!1)}function ix(t){return new m(3303,!1)}function ox(t,e){return new m(3400,!1)}function sx(t){return new m(3401,!1)}function ax(t){return new m(3402,!1)}function lx(t,e){return new m(3505,!1)}function Nn(t){switch(t.length){case 0:return new An;case 1:return t[0];default:return new Do(t)}}function oE(t,e,r=new Map,n=new Map){let i=[],o=[],s=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),u=c==s,d=u&&a||new Map;l.forEach((h,f)=>{let p=f,g=h;if(f!=="offset")switch(p=t.normalizePropertyName(p,i),g){case il:g=r.get(f);break;case Rt:g=n.get(f);break;default:g=t.normalizeStyleValue(f,p,g,i);break}d.set(p,g)}),u||o.push(d),a=d,s=c}),i.length)throw JN(i);return o}function Jf(t,e,r,n){switch(e){case"start":t.onStart(()=>n(r&&Nf(r,"start",t)));break;case"done":t.onDone(()=>n(r&&Nf(r,"done",t)));break;case"destroy":t.onDestroy(()=>n(r&&Nf(r,"destroy",t)));break}}function Nf(t,e,r){let n=r.totalTime,i=!!r.disabled,o=Xf(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,n??t.totalTime,i),s=t._data;return s!=null&&(o._data=s),o}function Xf(t,e,r,n,i="",o=0,s){return{element:t,triggerName:e,fromState:r,toState:n,phaseName:i,totalTime:o,disabled:!!s}}function We(t,e,r){let n=t.get(e);return n||t.set(e,n=r),n}function qD(t){let e=t.indexOf(":"),r=t.substring(1,e),n=t.slice(e+1);return[r,n]}var cx=typeof document>"u"?null:document.documentElement;function eh(t){let e=t.parentNode||t.host||null;return e===cx?null:e}function ux(t){return t.substring(1,6)=="ebkit"}var sr=null,WD=!1;function dx(t){sr||(sr=fx()||{},WD=sr.style?"WebkitAppearance"in sr.style:!1);let e=!0;return sr.style&&!ux(t)&&(e=t in sr.style,!e&&WD&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in sr.style)),e}function fx(){return typeof document<"u"?document.body:null}function sE(t,e){for(;e;){if(e===t)return!0;e=eh(e)}return!1}function aE(t,e,r){if(r)return Array.from(t.querySelectorAll(e));let n=t.querySelector(e);return n?[n]:[]}var th=(()=>{let e=class e{validateStyleProperty(n){return dx(n)}containsElement(n,i){return sE(n,i)}getParentElement(n){return eh(n)}query(n,i,o){return aE(n,i,o)}computeStyle(n,i,o){return o||""}animate(n,i,o,s,a,l=[],c){return new An(o,s)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),oh=class oh{};oh.NOOP=new th;var cr=oh,ur=class{};var hx=1e3,lE="{{",px="}}",cE="ng-enter",kf="ng-leave",ol="ng-trigger",ul=".ng-trigger",KD="ng-animating",Lf=".ng-animating";function Jt(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:jf(parseFloat(e[1]),e[2])}function jf(t,e){switch(e){case"s":return t*hx;default:return t}}function dl(t,e,r){return t.hasOwnProperty("duration")?t:gx(t,e,r)}function gx(t,e,r){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,o=0,s="";if(typeof t=="string"){let a=t.match(n);if(a===null)return e.push(GD(t)),{duration:0,delay:0,easing:""};i=jf(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(o=jf(parseFloat(l),a[4]));let c=a[5];c&&(s=c)}else i=t;if(!r){let a=!1,l=e.length;i<0&&(e.push(RN()),a=!0),o<0&&(e.push(ON()),a=!0),a&&e.splice(l,0,GD(t))}return{duration:i,delay:o,easing:s}}function mx(t){return t.length?t[0]instanceof Map?t:t.map(e=>new Map(Object.entries(e))):[]}function Ot(t,e,r){e.forEach((n,i)=>{let o=nh(i);r&&!r.has(i)&&r.set(i,t.style[o]),t.style[o]=n})}function lr(t,e){e.forEach((r,n)=>{let i=nh(n);t.style[i]=""})}function Eo(t){return Array.isArray(t)?t.length==1?t[0]:zD(t):t}function yx(t,e,r){let n=e.params||{},i=uE(t);i.length&&i.forEach(o=>{n.hasOwnProperty(o)||r.push(PN(o))})}var Vf=new RegExp(`${lE}\\s*(.+?)\\s*${px}`,"g");function uE(t){let e=[];if(typeof t=="string"){let r;for(;r=Vf.exec(t);)e.push(r[1]);Vf.lastIndex=0}return e}function Co(t,e,r){let n=`${t}`,i=n.replace(Vf,(o,s)=>{let a=e[s];return a==null&&(r.push(FN(s)),a=""),a.toString()});return i==n?t:i}var vx=/-+([a-z0-9])/g;function nh(t){return t.replace(vx,(...e)=>e[1].toUpperCase())}function Dx(t,e){return t===0||e===0}function Ex(t,e,r){if(r.size&&e.length){let n=e[0],i=[];if(r.forEach((o,s)=>{n.has(s)||i.push(s),n.set(s,o)}),i.length)for(let o=1;os.set(a,rh(t,a)))}}return e}function qe(t,e,r){switch(e.type){case z.Trigger:return t.visitTrigger(e,r);case z.State:return t.visitState(e,r);case z.Transition:return t.visitTransition(e,r);case z.Sequence:return t.visitSequence(e,r);case z.Group:return t.visitGroup(e,r);case z.Animate:return t.visitAnimate(e,r);case z.Keyframes:return t.visitKeyframes(e,r);case z.Style:return t.visitStyle(e,r);case z.Reference:return t.visitReference(e,r);case z.AnimateChild:return t.visitAnimateChild(e,r);case z.AnimateRef:return t.visitAnimateRef(e,r);case z.Query:return t.visitQuery(e,r);case z.Stagger:return t.visitStagger(e,r);default:throw kN(e.type)}}function rh(t,e){return window.getComputedStyle(t)[e]}var wx=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"]),fl=class extends ur{normalizePropertyName(e,r){return nh(e)}normalizeStyleValue(e,r,n,i){let o="",s=n.toString().trim();if(wx.has(r)&&n!==0&&n!=="0")if(typeof n=="number")o="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&i.push(LN(e,n))}return s+o}};var hl="*";function Cx(t,e){let r=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(n=>bx(n,r,e)):r.push(t),r}function bx(t,e,r){if(t[0]==":"){let l=_x(t,r);if(typeof l=="function"){e.push(l);return}t=l}let n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return r.push(QN(t)),e;let i=n[1],o=n[2],s=n[3];e.push(QD(i,s));let a=i==hl&&s==hl;o[0]=="<"&&!a&&e.push(QD(s,i))}function _x(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(r,n)=>parseFloat(n)>parseFloat(r);case":decrement":return(r,n)=>parseFloat(n) *"}}var sl=new Set(["true","1"]),al=new Set(["false","0"]);function QD(t,e){let r=sl.has(t)||al.has(t),n=sl.has(e)||al.has(e);return(i,o)=>{let s=t==hl||t==i,a=e==hl||e==o;return!s&&r&&typeof i=="boolean"&&(s=i?sl.has(t):al.has(t)),!a&&n&&typeof o=="boolean"&&(a=o?sl.has(e):al.has(e)),s&&a}}var dE=":self",Ix=new RegExp(`s*${dE}s*,?`,"g");function fE(t,e,r,n){return new Uf(t).build(e,r,n)}var ZD="",Uf=class{constructor(e){this._driver=e}build(e,r,n){let i=new Bf(r);return this._resetContextStyleTimingState(i),qe(this,Eo(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=ZD,e.collectedStyles=new Map,e.collectedStyles.set(ZD,new Map),e.currentTime=0}visitTrigger(e,r){let n=r.queryCount=0,i=r.depCount=0,o=[],s=[];return e.name.charAt(0)=="@"&&r.errors.push(jN()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(r),a.type==z.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,r))}),l.name=c}else if(a.type==z.Transition){let l=this.visitTransition(a,r);n+=l.queryCount,i+=l.depCount,s.push(l)}else r.errors.push(VN())}),{type:z.Trigger,name:e.name,states:o,transitions:s,queryCount:n,depCount:i,options:null}}visitState(e,r){let n=this.visitStyle(e.styles,r),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){let o=new Set,s=i||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{uE(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&r.errors.push(UN(e.name,[...o.values()]))}return{type:z.State,name:e.name,style:n,options:i?{params:i}:null}}visitTransition(e,r){r.queryCount=0,r.depCount=0;let n=qe(this,Eo(e.animation),r),i=Cx(e.expr,r.errors);return{type:z.Transition,matchers:i,animation:n,queryCount:r.queryCount,depCount:r.depCount,options:ar(e.options)}}visitSequence(e,r){return{type:z.Sequence,steps:e.steps.map(n=>qe(this,n,r)),options:ar(e.options)}}visitGroup(e,r){let n=r.currentTime,i=0,o=e.steps.map(s=>{r.currentTime=n;let a=qe(this,s,r);return i=Math.max(i,r.currentTime),a});return r.currentTime=i,{type:z.Group,steps:o,options:ar(e.options)}}visitAnimate(e,r){let n=Ax(e.timings,r.errors);r.currentAnimateTimings=n;let i,o=e.styles?e.styles:Af({});if(o.type==z.Keyframes)i=this.visitKeyframes(o,r);else{let s=e.styles,a=!1;if(!s){a=!0;let c={};n.easing&&(c.easing=n.easing),s=Af(c)}r.currentTime+=n.duration+n.delay;let l=this.visitStyle(s,r);l.isEmptyStep=a,i=l}return r.currentAnimateTimings=null,{type:z.Animate,timings:n,style:i,options:null}}visitStyle(e,r){let n=this._makeStyleAst(e,r);return this._validateStyleAst(n,r),n}_makeStyleAst(e,r){let n=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of i)typeof a=="string"?a===Rt?n.push(a):r.errors.push(BN(a)):n.push(new Map(Object.entries(a)));let o=!1,s=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o)){for(let l of a.values())if(l.toString().indexOf(lE)>=0){o=!0;break}}}),{type:z.Style,styles:n,easing:s,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,r){let n=r.currentAnimateTimings,i=r.currentTime,o=r.currentTime;n&&o>0&&(o-=n.duration+n.delay),e.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,l)=>{let c=r.collectedStyles.get(r.currentQuerySelector),u=c.get(l),d=!0;u&&(o!=i&&o>=u.startTime&&i<=u.endTime&&(r.errors.push($N(l,u.startTime,u.endTime,o,i)),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:i}),r.options&&yx(a,r.options,r.errors)})})}visitKeyframes(e,r){let n={type:z.Keyframes,styles:[],options:null};if(!r.currentAnimateTimings)return r.errors.push(HN()),n;let i=1,o=0,s=[],a=!1,l=!1,c=0,u=e.steps.map(D=>{let P=this._makeStyleAst(D,r),j=P.offset!=null?P.offset:Tx(P.styles),F=0;return j!=null&&(o++,F=P.offset=j),l=l||F<0||F>1,a=a||F0&&o{let j=h>0?P==f?1:h*P:s[P],F=j*y;r.currentTime=p+g.delay+F,g.duration=F,this._validateStyleAst(D,r),D.offset=j,n.styles.push(D)}),n}visitReference(e,r){return{type:z.Reference,animation:qe(this,Eo(e.animation),r),options:ar(e.options)}}visitAnimateChild(e,r){return r.depCount++,{type:z.AnimateChild,options:ar(e.options)}}visitAnimateRef(e,r){return{type:z.AnimateRef,animation:this.visitReference(e.animation,r),options:ar(e.options)}}visitQuery(e,r){let n=r.currentQuerySelector,i=e.options||{};r.queryCount++,r.currentQuery=e;let[o,s]=Sx(e.selector);r.currentQuerySelector=n.length?n+" "+o:o,We(r.collectedStyles,r.currentQuerySelector,new Map);let a=qe(this,Eo(e.animation),r);return r.currentQuery=null,r.currentQuerySelector=n,{type:z.Query,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:ar(e.options)}}visitStagger(e,r){r.currentQuery||r.errors.push(WN());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:dl(e.timings,r.errors,!0);return{type:z.Stagger,animation:qe(this,Eo(e.animation),r),timings:n,options:null}}};function Sx(t){let e=!!t.split(/\s*,\s*/).find(r=>r==dE);return e&&(t=t.replace(Ix,"")),t=t.replace(/@\*/g,ul).replace(/@\w+/g,r=>ul+"-"+r.slice(1)).replace(/:animating/g,Lf),[t,e]}function Mx(t){return t?E({},t):null}var Bf=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 Tx(t){if(typeof t=="string")return null;let e=null;if(Array.isArray(t))t.forEach(r=>{if(r instanceof Map&&r.has("offset")){let n=r;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let r=t;e=parseFloat(r.get("offset")),r.delete("offset")}return e}function Ax(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let o=dl(t,e).duration;return xf(o,0,"")}let r=t;if(r.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=xf(0,0,"");return o.dynamic=!0,o.strValue=r,o}let i=dl(r,e);return xf(i.duration,i.delay,i.easing)}function ar(t){return t?(t=E({},t),t.params&&(t.params=Mx(t.params))):t={},t}function xf(t,e,r){return{duration:t,delay:e,easing:r}}function ih(t,e,r,n,i,o,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:r,postStyleProps:n,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}var bo=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,r){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...r)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Nx=1,xx=":enter",Rx=new RegExp(xx,"g"),Ox=":leave",Px=new RegExp(Ox,"g");function hE(t,e,r,n,i,o=new Map,s=new Map,a,l,c=[]){return new $f().buildKeyframes(t,e,r,n,i,o,s,a,l,c)}var $f=class{buildKeyframes(e,r,n,i,o,s,a,l,c,u=[]){c=c||new bo;let d=new Hf(e,r,c,i,o,u,[]);d.options=l;let h=l.delay?Jt(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),qe(this,n,d);let f=d.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let g=f.length-1;g>=0;g--){let y=f[g];if(y.element===r){p=y;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[ih(r,[],[],[],0,h,"",!1)]}visitTrigger(e,r){}visitState(e,r){}visitTransition(e,r){}visitAnimateChild(e,r){let n=r.subInstructions.get(r.element);if(n){let i=r.createSubContext(e.options),o=r.currentTimeline.currentTime,s=this._visitSubInstructions(n,i,i.options);o!=s&&r.transformIntoNewTimeline(s)}r.previousNode=e}visitAnimateRef(e,r){let n=r.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],r,n),this.visitReference(e.animation,n),r.transformIntoNewTimeline(n.currentTimeline.currentTime),r.previousNode=e}_applyAnimationRefDelays(e,r,n){for(let i of e){let o=i?.delay;if(o){let s=typeof o=="number"?o:Jt(Co(o,i?.params??{},r.errors));n.delayNextStep(s)}}}_visitSubInstructions(e,r,n){let o=r.currentTimeline.currentTime,s=n.duration!=null?Jt(n.duration):null,a=n.delay!=null?Jt(n.delay):null;return s!==0&&e.forEach(l=>{let c=r.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(e,r){r.updateOptions(e.options,!0),qe(this,e.animation,r),r.previousNode=e}visitSequence(e,r){let n=r.subContextCount,i=r,o=e.options;if(o&&(o.params||o.delay)&&(i=r.createSubContext(o),i.transformIntoNewTimeline(),o.delay!=null)){i.previousNode.type==z.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=pl);let s=Jt(o.delay);i.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>qe(this,s,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),r.previousNode=e}visitGroup(e,r){let n=[],i=r.currentTimeline.currentTime,o=e.options&&e.options.delay?Jt(e.options.delay):0;e.steps.forEach(s=>{let a=r.createSubContext(e.options);o&&a.delayNextStep(o),qe(this,s,a),i=Math.max(i,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(s=>r.currentTimeline.mergeTimelineCollectedStyles(s)),r.transformIntoNewTimeline(i),r.previousNode=e}_visitTiming(e,r){if(e.dynamic){let n=e.strValue,i=r.params?Co(n,r.params,r.errors):n;return dl(i,r.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,r){let n=r.currentAnimateTimings=this._visitTiming(e.timings,r),i=r.currentTimeline;n.delay&&(r.incrementTime(n.delay),i.snapshotCurrentStyles());let o=e.style;o.type==z.Keyframes?this.visitKeyframes(o,r):(r.incrementTime(n.duration),this.visitStyle(o,r),i.applyStylesToKeyframe()),r.currentAnimateTimings=null,r.previousNode=e}visitStyle(e,r){let n=r.currentTimeline,i=r.currentAnimateTimings;!i&&n.hasCurrentStyleProperties()&&n.forwardFrame();let o=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(o):n.setStyles(e.styles,o,r.errors,r.options),r.previousNode=e}visitKeyframes(e,r){let n=r.currentAnimateTimings,i=r.currentTimeline.duration,o=n.duration,a=r.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*o),a.setStyles(l.styles,l.easing,r.errors,r.options),a.applyStylesToKeyframe()}),r.currentTimeline.mergeTimelineCollectedStyles(a),r.transformIntoNewTimeline(i+o),r.previousNode=e}visitQuery(e,r){let n=r.currentTimeline.currentTime,i=e.options||{},o=i.delay?Jt(i.delay):0;o&&(r.previousNode.type===z.Style||n==0&&r.currentTimeline.hasCurrentStyleProperties())&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=pl);let s=n,a=r.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,r.errors);r.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{r.currentQueryIndex=u;let d=r.createSubContext(e.options,c);o&&d.delayNextStep(o),c===r.element&&(l=d.currentTimeline),qe(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe();let h=d.currentTimeline.currentTime;s=Math.max(s,h)}),r.currentQueryIndex=0,r.currentQueryTotal=0,r.transformIntoNewTimeline(s),l&&(r.currentTimeline.mergeTimelineCollectedStyles(l),r.currentTimeline.snapshotCurrentStyles()),r.previousNode=e}visitStagger(e,r){let n=r.parentContext,i=r.currentTimeline,o=e.timings,s=Math.abs(o.duration),a=s*(r.currentQueryTotal-1),l=s*r.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime;break}let u=r.currentTimeline;l&&u.delayNextStep(l);let d=u.currentTime;qe(this,e.animation,r),r.previousNode=e,n.currentStaggerTime=i.currentTime-d+(i.startTime-n.currentTimeline.startTime)}},pl={},Hf=class t{constructor(e,r,n,i,o,s,a,l){this._driver=e,this.element=r,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=pl,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new gl(this._driver,r,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,r){if(!e)return;let n=e,i=this.options;n.duration!=null&&(i.duration=Jt(n.duration)),n.delay!=null&&(i.delay=Jt(n.delay));let o=n.params;if(o){let s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!r||!s.hasOwnProperty(a))&&(s[a]=Co(o[a],s,this.errors))})}}_copyOptions(){let e={};if(this.options){let r=this.options.params;if(r){let n=e.params={};Object.keys(r).forEach(i=>{n[i]=r[i]})}}return e}createSubContext(e=null,r,n){let i=r||this.element,o=new t(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=pl,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,r,n){let i={duration:r??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},o=new zf(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,r,n,i,o,s){let a=[];if(i&&a.push(this.element),e.length>0){e=e.replace(Rx,"."+this._enterClassName),e=e.replace(Px,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,e,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!o&&a.length==0&&s.push(KN(r)),a}},gl=class t{constructor(e,r,n,i){this._driver=e,this.element=r,this.startTime=n,this._elementTimelineStylesLookup=i,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(r),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(r,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 r=this._keyframes.size===1&&this._pendingStyles.size;this.duration||r?(this.forwardTime(this.currentTime+e),r&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,r){return this.applyStylesToKeyframe(),new t(this._driver,e,r||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+=Nx,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,r){this._localTimelineStyles.set(e,r),this._globalTimelineStyles.set(e,r),this._styleSummary.set(e,{time:this.currentTime,value:r})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[r,n]of this._globalTimelineStyles)this._backFill.set(r,n||Rt),this._currentKeyframe.set(r,Rt);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,r,n,i){r&&this._previousKeyframe.set("easing",r);let o=i&&i.params||{},s=Fx(e,this._globalTimelineStyles);for(let[a,l]of s){let c=Co(l,o,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Rt),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,r)=>{this._currentKeyframe.set(r,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,r)=>{this._currentKeyframe.has(r)||this._currentKeyframe.set(r,e)}))}snapshotCurrentStyles(){for(let[e,r]of this._localTimelineStyles)this._pendingStyles.set(e,r),this._updateStyle(e,r)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let r in this._currentKeyframe)e.push(r);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((r,n)=>{let i=this._styleSummary.get(n);(!i||r.time>i.time)&&this._updateStyle(n,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,r=new Set,n=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((u,d)=>{u===il?e.add(d):u===Rt&&r.add(d)}),n||c.set("offset",l/this.duration),i.push(c)});let o=[...e.values()],s=[...r.values()];if(n){let a=i[0],l=new Map(a);a.set("offset",0),l.set("offset",1),i=[a,l]}return ih(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}},zf=class extends gl{constructor(e,r,n,i,o,s,a=!1){super(e,r,s.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=o,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:r,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&r){let o=[],s=n+r,a=r/s,l=new Map(e[0]);l.set("offset",0),o.push(l);let c=new Map(e[0]);c.set("offset",YD(a)),o.push(c);let u=e.length-1;for(let d=1;d<=u;d++){let h=new Map(e[d]),f=h.get("offset"),p=r+f*n;h.set("offset",YD(p/s)),o.push(h)}n=s,r=0,i="",e=o}return ih(this.element,e,this.preStyleProps,this.postStyleProps,n,r,i,!0)}};function YD(t,e=3){let r=Math.pow(10,e-1);return Math.round(t*r)/r}function Fx(t,e){let r=new Map,n;return t.forEach(i=>{if(i==="*"){n??=e.keys();for(let o of n)r.set(o,Rt)}else for(let[o,s]of i)r.set(o,s)}),r}function JD(t,e,r,n,i,o,s,a,l,c,u,d,h){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:r,fromStyles:o,toState:n,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}var Rf={},ml=class{constructor(e,r,n){this._triggerName=e,this.ast=r,this._stateStyles=n}match(e,r,n,i){return kx(this.ast.matchers,e,r,n,i)}buildStyles(e,r,n){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(r,n):new Map}build(e,r,n,i,o,s,a,l,c,u){let d=[],h=this.ast.options&&this.ast.options.params||Rf,f=a&&a.params||Rf,p=this.buildStyles(n,f,d),g=l&&l.params||Rf,y=this.buildStyles(i,g,d),D=new Set,P=new Map,j=new Map,F=i==="void",de={params:pE(g,h),delay:this.ast.options?.delay},Z=u?[]:hE(e,r,this.ast.animation,o,s,p,y,de,c,d),ee=0;return Z.forEach(ae=>{ee=Math.max(ae.duration+ae.delay,ee)}),d.length?JD(r,this._triggerName,n,i,F,p,y,[],[],P,j,ee,d):(Z.forEach(ae=>{let Pt=ae.element,Xt=We(P,Pt,new Set);ae.preStyleProps.forEach(xn=>Xt.add(xn));let sh=We(j,Pt,new Set);ae.postStyleProps.forEach(xn=>sh.add(xn)),Pt!==r&&D.add(Pt)}),JD(r,this._triggerName,n,i,F,p,y,Z,[...D.values()],P,j,ee))}};function kx(t,e,r,n,i){return t.some(o=>o(e,r,n,i))}function pE(t,e){let r=E({},e);return Object.entries(t).forEach(([n,i])=>{i!=null&&(r[n]=i)}),r}var Gf=class{constructor(e,r,n){this.styles=e,this.defaultParams=r,this.normalizer=n}buildStyles(e,r){let n=new Map,i=pE(e,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=Co(s,i,r));let l=this.normalizer.normalizePropertyName(a,r);s=this.normalizer.normalizeStyleValue(a,l,s,r),n.set(a,s)})}),n}};function Lx(t,e,r){return new qf(t,e,r)}var qf=class{constructor(e,r,n){this.name=e,this.ast=r,this._normalizer=n,this.transitionFactories=[],this.states=new Map,r.states.forEach(i=>{let o=i.options&&i.options.params||{};this.states.set(i.name,new Gf(i.style,o,n))}),XD(this.states,"true","1"),XD(this.states,"false","0"),r.transitions.forEach(i=>{this.transitionFactories.push(new ml(e,i,this.states))}),this.fallbackTransition=jx(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,r,n,i){return this.transitionFactories.find(s=>s.match(e,r,n,i))||null}matchStyles(e,r,n){return this.fallbackTransition.buildStyles(e,r,n)}};function jx(t,e,r){let n=[(s,a)=>!0],i={type:z.Sequence,steps:[],options:null},o={type:z.Transition,animation:i,matchers:n,options:null,queryCount:0,depCount:0};return new ml(t,o,e)}function XD(t,e,r){t.has(e)?t.has(r)||t.set(r,t.get(e)):t.has(r)&&t.set(e,t.get(r))}var Vx=new bo,Wf=class{constructor(e,r,n){this.bodyNode=e,this._driver=r,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,r){let n=[],i=[],o=fE(this._driver,r,n,i);if(n.length)throw XN(n);i.length&&void 0,this._animations.set(e,o)}_buildPlayer(e,r,n){let i=e.element,o=oE(this._normalizer,e.keyframes,r,n);return this._driver.animate(i,o,e.duration,e.delay,e.easing,[],!0)}create(e,r,n={}){let i=[],o=this._animations.get(e),s,a=new Map;if(o?(s=hE(this._driver,r,o,cE,kf,new Map,new Map,n,Vx,i),s.forEach(u=>{let d=We(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(i.push(ex()),s=[]),i.length)throw tx(i);a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,Rt))})});let l=s.map(u=>{let d=a.get(u.element);return this._buildPlayer(u,new Map,d)}),c=Nn(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let r=this._getPlayer(e);r.destroy(),this._playersById.delete(e);let n=this.players.indexOf(r);n>=0&&this.players.splice(n,1)}_getPlayer(e){let r=this._playersById.get(e);if(!r)throw nx(e);return r}listen(e,r,n,i){let o=Xf(r,"","","");return Jf(this._getPlayer(e),n,o,i),()=>{}}command(e,r,n,i){if(n=="register"){this.register(e,i[0]);return}if(n=="create"){let s=i[0]||{};this.create(e,r,s);return}let o=this._getPlayer(e);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e);break}}},eE="ng-animate-queued",Ux=".ng-animate-queued",Of="ng-animate-disabled",Bx=".ng-animate-disabled",$x="ng-star-inserted",Hx=".ng-star-inserted",zx=[],gE={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Gx={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},vt="__ng_removed",_o=class{get params(){return this.options.params}constructor(e,r=""){this.namespaceId=r;let n=e&&e.hasOwnProperty("value"),i=n?e.value:e;if(this.value=Wx(i),n){let o=e,{value:s}=o,a=_l(o,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let r=e.params;if(r){let n=this.options.params;Object.keys(r).forEach(i=>{n[i]==null&&(n[i]=r[i])})}}},wo="void",Pf=new _o(wo),Kf=class{constructor(e,r,n){this.id=e,this.hostElement=r,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,it(r,this._hostClassName)}listen(e,r,n,i){if(!this._triggers.has(r))throw rx(n,r);if(n==null||n.length==0)throw ix(r);if(!Kx(n))throw ox(n,r);let o=We(this._elementListeners,e,[]),s={name:r,phase:n,callback:i};o.push(s);let a=We(this._engine.statesByElement,e,new Map);return a.has(r)||(it(e,ol),it(e,ol+"-"+r),a.set(r,Pf)),()=>{this._engine.afterFlush(()=>{let l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(r)||a.delete(r)})}}register(e,r){return this._triggers.has(e)?!1:(this._triggers.set(e,r),!0)}_getTrigger(e){let r=this._triggers.get(e);if(!r)throw sx(e);return r}trigger(e,r,n,i=!0){let o=this._getTrigger(r),s=new Io(this.id,r,e),a=this._engine.statesByElement.get(e);a||(it(e,ol),it(e,ol+"-"+r),this._engine.statesByElement.set(e,a=new Map));let l=a.get(r),c=new _o(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(r,c),l||(l=Pf),!(c.value===wo)&&l.value===c.value){if(!Yx(l.params,c.params)){let g=[],y=o.matchStyles(l.value,l.params,g),D=o.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{lr(e,y),Ot(e,D)})}return}let h=We(this._engine.playersByElement,e,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==r&&g.queued&&g.destroy()});let f=o.matchTransition(l.value,c.value,e,c.params),p=!1;if(!f){if(!i)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:r,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(it(e,eE),s.onStart(()=>{ni(e,eE)})),s.onDone(()=>{let g=this.players.indexOf(s);g>=0&&this.players.splice(g,1);let y=this._engine.playersByElement.get(e);if(y){let D=y.indexOf(s);D>=0&&y.splice(D,1)}}),this.players.push(s),h.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(r=>r.delete(e)),this._elementListeners.forEach((r,n)=>{this._elementListeners.set(n,r.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let r=this._engine.playersByElement.get(e);r&&(r.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,r){let n=this._engine.driver.query(e,ul,!0);n.forEach(i=>{if(i[vt])return;let o=this._engine.fetchNamespacesByElement(i);o.size?o.forEach(s=>s.triggerLeaveAnimation(i,r,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,r,n,i){let o=this._engine.statesByElement.get(e),s=new Map;if(o){let a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){let u=this.trigger(e,c,wo,i);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,r,s),n&&Nn(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let r=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(r&&n){let i=new Set;r.forEach(o=>{let s=o.name;if(i.has(s))return;i.add(s);let l=this._triggers.get(s).fallbackTransition,c=n.get(s)||Pf,u=new _o(wo),d=new Io(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,r){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,r),this.triggerLeaveAnimation(e,r,!0))return;let i=!1;if(n.totalAnimations){let o=n.players.length?n.playersByQueriedElement.get(e):[];if(o&&o.length)i=!0;else{let s=e;for(;s=s.parentNode;)if(n.statesByElement.get(s)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)n.markElementAsRemoved(this.id,e,!1,r);else{let o=e[vt];(!o||o===gE)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,r))}}insertNode(e,r){it(e,this._hostClassName)}drainQueuedTransitions(e){let r=[];return this._queue.forEach(n=>{let i=n.player;if(i.destroyed)return;let o=n.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==n.triggerName){let l=Xf(o,n.triggerName,n.fromState.value,n.toState.value);l._data=e,Jf(n.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):r.push(n)}),this._queue=[],r.sort((n,i)=>{let o=n.transition.ast.depCount,s=i.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(n.element,i.element)?1:-1})}destroy(e){this.players.forEach(r=>r.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Qf=class{_onRemovalComplete(e,r){this.onRemovalComplete(e,r)}constructor(e,r,n){this.bodyNode=e,this.driver=r,this._normalizer=n,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,o)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(r=>{r.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,r){let n=new Kf(e,r,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,r)?this._balanceNamespaceList(n,r):(this.newHostElements.set(r,n),this.collectEnterElement(r)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,r){let n=this._namespaceList,i=this.namespacesByHostElement;if(n.length-1>=0){let s=!1,a=this.driver.getParentElement(r);for(;a;){let l=i.get(a);if(l){let c=n.indexOf(l);n.splice(c+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||n.unshift(e)}else n.push(e);return i.set(r,e),e}register(e,r){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,r)),n}registerTrigger(e,r,n){let i=this._namespaceLookup[e];i&&i.register(r,n)&&this.totalAnimations++}destroy(e,r){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let i=this._namespaceList.indexOf(n);i>=0&&this._namespaceList.splice(i,1),n.destroy(r),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let r=new Set,n=this.statesByElement.get(e);if(n){for(let i of n.values())if(i.namespaceId){let o=this._fetchNamespace(i.namespaceId);o&&r.add(o)}}return r}trigger(e,r,n,i){if(ll(r)){let o=this._fetchNamespace(e);if(o)return o.trigger(r,n,i),!0}return!1}insertNode(e,r,n,i){if(!ll(r))return;let o=r[vt];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(r);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){let s=this._fetchNamespace(e);s&&s.insertNode(r,n)}i&&this.collectEnterElement(r)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,r){r?this.disabledNodes.has(e)||(this.disabledNodes.add(e),it(e,Of)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ni(e,Of))}removeNode(e,r,n){if(ll(r)){let i=e?this._fetchNamespace(e):null;i?i.removeNode(r,n):this.markElementAsRemoved(e,r,!1,n);let o=this.namespacesByHostElement.get(r);o&&o.id!==e&&o.removeNode(r,n)}else this._onRemovalComplete(r,n)}markElementAsRemoved(e,r,n,i,o){this.collectedLeaveElements.push(r),r[vt]={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,r,n,i,o){return ll(r)?this._fetchNamespace(e).listen(r,n,i,o):()=>{}}_buildInstruction(e,r,n,i,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,r,o)}destroyInnerAnimations(e){let r=this.driver.query(e,ul,!0);r.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(r=this.driver.query(e,Lf,!0),r.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let r=this.playersByElement.get(e);r&&r.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let r=this.playersByQueriedElement.get(e);r&&r.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Nn(this.players).onDone(()=>e());e()})}processLeaveNode(e){let r=e[vt];if(r&&r.setForRemoval){if(e[vt]=gE,r.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(r.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,r.setForRemoval)}e.classList?.contains(Of)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Bx,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let r=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,i)=>this._balanceNamespaceList(n,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],r.length?Nn(r).onDone(()=>{n.forEach(i=>i())}):n.forEach(i=>i())}}reportError(e){throw ax(e)}_flushAnimations(e,r){let n=new bo,i=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(_=>{u.add(_);let A=this.driver.query(_,Ux,!0);for(let N=0;N{let N=cE+g++;p.set(A,N),_.forEach(W=>it(W,N))});let y=[],D=new Set,P=new Set;for(let _=0;_D.add(W)):P.add(A))}let j=new Map,F=rE(h,Array.from(D));F.forEach((_,A)=>{let N=kf+g++;j.set(A,N),_.forEach(W=>it(W,N))}),e.push(()=>{f.forEach((_,A)=>{let N=p.get(A);_.forEach(W=>ni(W,N))}),F.forEach((_,A)=>{let N=j.get(A);_.forEach(W=>ni(W,N))}),y.forEach(_=>{this.processLeaveNode(_)})});let de=[],Z=[];for(let _=this._namespaceList.length-1;_>=0;_--)this._namespaceList[_].drainQueuedTransitions(r).forEach(N=>{let W=N.player,ge=N.element;if(de.push(W),this.collectedEnterElements.length){let be=ge[vt];if(be&&be.setForMove){if(be.previousTriggersValues&&be.previousTriggersValues.has(N.triggerName)){let Rn=be.previousTriggersValues.get(N.triggerName),Ke=this.statesByElement.get(N.element);if(Ke&&Ke.has(N.triggerName)){let So=Ke.get(N.triggerName);So.value=Rn,Ke.set(N.triggerName,So)}}W.destroy();return}}let Dt=!d||!this.driver.containsElement(d,ge),Ve=j.get(ge),en=p.get(ge),oe=this._buildInstruction(N,n,en,Ve,Dt);if(oe.errors&&oe.errors.length){Z.push(oe);return}if(Dt){W.onStart(()=>lr(ge,oe.fromStyles)),W.onDestroy(()=>Ot(ge,oe.toStyles)),i.push(W);return}if(N.isFallbackTransition){W.onStart(()=>lr(ge,oe.fromStyles)),W.onDestroy(()=>Ot(ge,oe.toStyles)),i.push(W);return}let ch=[];oe.timelines.forEach(be=>{be.stretchStartingKeyframe=!0,this.disabledNodes.has(be.element)||ch.push(be)}),oe.timelines=ch,n.append(ge,oe.timelines);let CE={instruction:oe,player:W,element:ge};s.push(CE),oe.queriedElements.forEach(be=>We(a,be,[]).push(W)),oe.preStyleProps.forEach((be,Rn)=>{if(be.size){let Ke=l.get(Rn);Ke||l.set(Rn,Ke=new Set),be.forEach((So,bl)=>Ke.add(bl))}}),oe.postStyleProps.forEach((be,Rn)=>{let Ke=c.get(Rn);Ke||c.set(Rn,Ke=new Set),be.forEach((So,bl)=>Ke.add(bl))})});if(Z.length){let _=[];Z.forEach(A=>{_.push(lx(A.triggerName,A.errors))}),de.forEach(A=>A.destroy()),this.reportError(_)}let ee=new Map,ae=new Map;s.forEach(_=>{let A=_.element;n.has(A)&&(ae.set(A,A),this._beforeAnimationBuild(_.player.namespaceId,_.instruction,ee))}),i.forEach(_=>{let A=_.element;this._getPreviousPlayers(A,!1,_.namespaceId,_.triggerName,null).forEach(W=>{We(ee,A,[]).push(W),W.destroy()})});let Pt=y.filter(_=>iE(_,l,c)),Xt=new Map;nE(Xt,this.driver,P,c,Rt).forEach(_=>{iE(_,l,c)&&Pt.push(_)});let xn=new Map;f.forEach((_,A)=>{nE(xn,this.driver,new Set(_),l,il)}),Pt.forEach(_=>{let A=Xt.get(_),N=xn.get(_);Xt.set(_,new Map([...A?.entries()??[],...N?.entries()??[]]))});let Cl=[],ah=[],lh={};s.forEach(_=>{let{element:A,player:N,instruction:W}=_;if(n.has(A)){if(u.has(A)){N.onDestroy(()=>Ot(A,W.toStyles)),N.disabled=!0,N.overrideTotalTime(W.totalTime),i.push(N);return}let ge=lh;if(ae.size>1){let Ve=A,en=[];for(;Ve=Ve.parentNode;){let oe=ae.get(Ve);if(oe){ge=oe;break}en.push(Ve)}en.forEach(oe=>ae.set(oe,ge))}let Dt=this._buildAnimation(N.namespaceId,W,ee,o,xn,Xt);if(N.setRealPlayer(Dt),ge===lh)Cl.push(N);else{let Ve=this.playersByElement.get(ge);Ve&&Ve.length&&(N.parentPlayer=Nn(Ve)),i.push(N)}}else lr(A,W.fromStyles),N.onDestroy(()=>Ot(A,W.toStyles)),ah.push(N),u.has(A)&&i.push(N)}),ah.forEach(_=>{let A=o.get(_.element);if(A&&A.length){let N=Nn(A);_.setRealPlayer(N)}}),i.forEach(_=>{_.parentPlayer?_.syncPlayerEvents(_.parentPlayer):_.destroy()});for(let _=0;_!Dt.destroyed);ge.length?Qx(this,A,ge):this.processLeaveNode(A)}return y.length=0,Cl.forEach(_=>{this.players.push(_),_.onDone(()=>{_.destroy();let A=this.players.indexOf(_);this.players.splice(A,1)}),_.play()}),Cl}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,r,n,i,o){let s=[];if(r){let a=this.playersByQueriedElement.get(e);a&&(s=a)}else{let a=this.playersByElement.get(e);if(a){let l=!o||o==wo;a.forEach(c=>{c.queued||!l&&c.triggerName!=i||s.push(c)})}}return(n||i)&&(s=s.filter(a=>!(n&&n!=a.namespaceId||i&&i!=a.triggerName))),s}_beforeAnimationBuild(e,r,n){let i=r.triggerName,o=r.element,s=r.isRemovalTransition?void 0:e,a=r.isRemovalTransition?void 0:i;for(let l of r.timelines){let c=l.element,u=c!==o,d=We(n,c,[]);this._getPreviousPlayers(c,u,s,a,r.toState).forEach(f=>{let p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}lr(o,r.fromStyles)}_buildAnimation(e,r,n,i,o,s){let a=r.triggerName,l=r.element,c=[],u=new Set,d=new Set,h=r.timelines.map(p=>{let g=p.element;u.add(g);let y=g[vt];if(y&&y.removedBeforeQueried)return new An(p.duration,p.delay);let D=g!==l,P=Zx((n.get(g)||zx).map(ee=>ee.getRealPlayer())).filter(ee=>{let ae=ee;return ae.element?ae.element===g:!1}),j=o.get(g),F=s.get(g),de=oE(this._normalizer,p.keyframes,j,F),Z=this._buildPlayer(p,de,P);if(p.subTimeline&&i&&d.add(g),D){let ee=new Io(e,a,g);ee.setRealPlayer(Z),c.push(ee)}return Z});c.forEach(p=>{We(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>qx(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>it(p,KD));let f=Nn(h);return f.onDestroy(()=>{u.forEach(p=>ni(p,KD)),Ot(l,r.toStyles)}),d.forEach(p=>{We(i,p,[]).push(f)}),f}_buildPlayer(e,r,n){return r.length>0?this.driver.animate(e.element,r,e.duration,e.delay,e.easing,n):new An(e.duration,e.delay)}},Io=class{constructor(e,r,n){this.namespaceId=e,this.triggerName=r,this.element=n,this._player=new An,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((r,n)=>{r.forEach(i=>Jf(e,n,void 0,i))}),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 r=this._player;r.triggerCallback&&e.onStart(()=>r.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,r){We(this._queuedCallbacks,e,[]).push(r)}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 r=this._player;r.triggerCallback&&r.triggerCallback(e)}};function qx(t,e,r){let n=t.get(e);if(n){if(n.length){let i=n.indexOf(r);n.splice(i,1)}n.length==0&&t.delete(e)}return n}function Wx(t){return t??null}function ll(t){return t&&t.nodeType===1}function Kx(t){return t=="start"||t=="done"}function tE(t,e){let r=t.style.display;return t.style.display=e??"none",r}function nE(t,e,r,n,i){let o=[];r.forEach(l=>o.push(tE(l)));let s=[];n.forEach((l,c)=>{let u=new Map;l.forEach(d=>{let h=e.computeStyle(c,d,i);u.set(d,h),(!h||h.length==0)&&(c[vt]=Gx,s.push(c))}),t.set(c,u)});let a=0;return r.forEach(l=>tE(l,o[a++])),s}function rE(t,e){let r=new Map;if(t.forEach(a=>r.set(a,[])),e.length==0)return r;let n=1,i=new Set(e),o=new Map;function s(a){if(!a)return n;let l=o.get(a);if(l)return l;let c=a.parentNode;return r.has(c)?l=c:i.has(c)?l=n:l=s(c),o.set(a,l),l}return e.forEach(a=>{let l=s(a);l!==n&&r.get(l).push(a)}),r}function it(t,e){t.classList?.add(e)}function ni(t,e){t.classList?.remove(e)}function Qx(t,e,r){Nn(r).onDone(()=>t.processLeaveNode(e))}function Zx(t){let e=[];return mE(t,e),e}function mE(t,e){for(let r=0;ri.add(o)):e.set(t,n),r.delete(t),!0}var ii=class{constructor(e,r,n){this._driver=r,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(i,o)=>{},this._transitionEngine=new Qf(e.body,r,n),this._timelineEngine=new Wf(e.body,r,n),this._transitionEngine.onRemovalComplete=(i,o)=>this.onRemovalComplete(i,o)}registerTrigger(e,r,n,i,o){let s=e+"-"+i,a=this._triggerCache[s];if(!a){let l=[],c=[],u=fE(this._driver,o,l,c);if(l.length)throw YN(i,l);c.length&&void 0,a=Lx(i,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(r,i,a)}register(e,r){this._transitionEngine.register(e,r)}destroy(e,r){this._transitionEngine.destroy(e,r)}onInsert(e,r,n,i){this._transitionEngine.insertNode(e,r,n,i)}onRemove(e,r,n){this._transitionEngine.removeNode(e,r,n)}disableAnimations(e,r){this._transitionEngine.markElementAsDisabled(e,r)}process(e,r,n,i){if(n.charAt(0)=="@"){let[o,s]=qD(n),a=i;this._timelineEngine.command(o,r,s,a)}else this._transitionEngine.trigger(e,r,n,i)}listen(e,r,n,i,o){if(n.charAt(0)=="@"){let[s,a]=qD(n);return this._timelineEngine.listen(s,r,a,o)}return this._transitionEngine.listen(e,r,n,i,o)}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 Jx(t,e){let r=null,n=null;return Array.isArray(e)&&e.length?(r=Ff(e[0]),e.length>1&&(n=Ff(e[e.length-1]))):e instanceof Map&&(r=Ff(e)),r||n?new Zf(t,r,n):null}var ri=class ri{constructor(e,r,n){this._element=e,this._startStyles=r,this._endStyles=n,this._state=0;let i=ri.initialStylesByElement.get(e);i||ri.initialStylesByElement.set(e,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Ot(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ot(this._element,this._initialStyles),this._endStyles&&(Ot(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(ri.initialStylesByElement.delete(this._element),this._startStyles&&(lr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(lr(this._element,this._endStyles),this._endStyles=null),Ot(this._element,this._initialStyles),this._state=3)}};ri.initialStylesByElement=new WeakMap;var Zf=ri;function Ff(t){let e=null;return t.forEach((r,n)=>{Xx(n)&&(e=e||new Map,e.set(n,r))}),e}function Xx(t){return t==="display"||t==="position"}var yl=class{constructor(e,r,n,i){this.element=e,this.keyframes=r,this.options=n,this._specialStyles=i,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=n.duration,this._delay=n.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 r=()=>this._onFinish();this.domPlayer.addEventListener("finish",r),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",r)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let r=[];return e.forEach(n=>{r.push(Object.fromEntries(n))}),r}_triggerWebAnimation(e,r,n){return e.animate(this._convertKeyframesToObject(r),n)}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((n,i)=>{i!=="offset"&&e.set(i,this._finished?n:rh(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let r=e==="start"?this._onStartFns:this._onDoneFns;r.forEach(n=>n()),r.length=0}},vl=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,r){return sE(e,r)}getParentElement(e){return eh(e)}query(e,r,n){return aE(e,r,n)}computeStyle(e,r,n){return rh(e,r)}animate(e,r,n,i,o,s=[]){let a=i==0?"both":"forwards",l={duration:n,delay:i,fill:a};o&&(l.easing=o);let c=new Map,u=s.filter(f=>f instanceof yl);Dx(n,i)&&u.forEach(f=>{f.currentSnapshot.forEach((p,g)=>c.set(g,p))});let d=mx(r).map(f=>new Map(f));d=Ex(e,d,c);let h=Jx(e,d);return new yl(e,d,l,h)}};var cl="@",yE="@.disabled",Dl=class{constructor(e,r,n,i){this.namespaceId=e,this.delegate=r,this.engine=n,this._onDestroy=i,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,r){return this.delegate.createElement(e,r)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,r){this.delegate.appendChild(e,r),this.engine.onInsert(this.namespaceId,r,e,!1)}insertBefore(e,r,n,i=!0){this.delegate.insertBefore(e,r,n),this.engine.onInsert(this.namespaceId,r,e,i)}removeChild(e,r,n){this.parentNode(r)&&this.engine.onRemove(this.namespaceId,r,this.delegate)}selectRootElement(e,r){return this.delegate.selectRootElement(e,r)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,r,n,i){this.delegate.setAttribute(e,r,n,i)}removeAttribute(e,r,n){this.delegate.removeAttribute(e,r,n)}addClass(e,r){this.delegate.addClass(e,r)}removeClass(e,r){this.delegate.removeClass(e,r)}setStyle(e,r,n,i){this.delegate.setStyle(e,r,n,i)}removeStyle(e,r,n){this.delegate.removeStyle(e,r,n)}setProperty(e,r,n){r.charAt(0)==cl&&r==yE?this.disableAnimations(e,!!n):this.delegate.setProperty(e,r,n)}setValue(e,r){this.delegate.setValue(e,r)}listen(e,r,n){return this.delegate.listen(e,r,n)}disableAnimations(e,r){this.engine.disableAnimations(e,r)}},Yf=class extends Dl{constructor(e,r,n,i,o){super(r,n,i,o),this.factory=e,this.namespaceId=r}setProperty(e,r,n){r.charAt(0)==cl?r.charAt(1)=="."&&r==yE?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,r.slice(1),n):this.delegate.setProperty(e,r,n)}listen(e,r,n){if(r.charAt(0)==cl){let i=eR(e),o=r.slice(1),s="";return o.charAt(0)!=cl&&([o,s]=tR(o)),this.engine.listen(this.namespaceId,i,o,s,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,n,a)})}return this.delegate.listen(e,r,n)}};function eR(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function tR(t){let e=t.indexOf("."),r=t.substring(0,e),n=t.slice(e+1);return[r,n]}var El=class{constructor(e,r,n){this.delegate=e,this.engine=r,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,r.onRemovalComplete=(i,o)=>{o?.removeChild(null,i)}}createRenderer(e,r){let n="",i=this.delegate.createRenderer(e,r);if(!e||!r?.data?.animation){let c=this._rendererCache,u=c.get(i);if(!u){let d=()=>c.delete(i);u=new Dl(n,i,this.engine,d),c.set(i,u)}return u}let o=r.id,s=r.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(o,s,e,c.name,c)};return r.data.animation.forEach(a),new Yf(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,r,n){if(e>=0&&er(n));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(o=>{let[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),i.push([r,n])}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()}};var rR=(()=>{let e=class e extends ii{constructor(n,i,o){super(n,i,o)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(i){return new(i||e)(T(we),T(cr),T(ur))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})();function iR(){return new fl}function oR(t,e,r){return new El(t,e,r)}var DE=[{provide:ur,useFactory:iR},{provide:ii,useClass:rR},{provide:fn,useFactory:oR,deps:[Ea,ii,te]}],vE=[{provide:cr,useFactory:()=>new vl},{provide:Pu,useValue:"BrowserAnimations"},...DE],sR=[{provide:cr,useClass:th},{provide:Pu,useValue:"NoopAnimations"},...DE],EE=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:n.disableAnimations?sR:vE}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Xe({type:e}),e.\u0275inj=Je({providers:vE,imports:[Uy]});let t=e;return t})();var wE={providers:[Ym({eventCoalescing:!0}),bv(HD),Ny(),yu(EE)]};var wl=class t{title="Sukoa";static \u0275fac=function(r){return new(r||t)};static \u0275cmp=gn({type:t,selectors:[["app-root"]],standalone:!0,features:[En],decls:5,vars:0,consts:[[1,"layout-simple"]],template:function(r,n){r&1&&(w(0,"div",0)(1,"header"),b(2," DDR Score generator for Tachi "),C(),w(3,"main"),pe(4,"router-outlet"),C()())},dependencies:[tf]})};jy(wl,wE).catch(t=>console.error(t)); + `)}`:"",this.name="UnsubscriptionError",this.errors=r});function On(t,e){if(t){let r=t.indexOf(e);0<=r&&t.splice(r,1)}}var se=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let o of r)o.remove(this);else r.remove(this);let{initialTeardown:n}=this;if(L(n))try{n()}catch(o){e=o instanceof Fo?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{Th(o)}catch(s){e=e??[],s instanceof Fo?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Fo(e)}}add(e){var r;if(e&&e!==this)if(this.closed)Th(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}}_hasParent(e){let{_parentage:r}=this;return r===e||Array.isArray(r)&&r.includes(e)}_addParent(e){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e}_removeParent(e){let{_parentage:r}=this;r===e?this._parentage=null:Array.isArray(r)&&On(r,e)}remove(e){let{_finalizers:r}=this;r&&On(r,e),e instanceof t&&e._removeParent(this)}};se.EMPTY=(()=>{let t=new se;return t.closed=!0,t})();var Rl=se.EMPTY;function ko(t){return t instanceof se||t&&"closed"in t&&L(t.remove)&&L(t.add)&&L(t.unsubscribe)}function Th(t){L(t)?t():t.unsubscribe()}var ot={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var fr={setTimeout(t,e,...r){let{delegate:n}=fr;return n?.setTimeout?n.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=fr;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Lo(t){fr.setTimeout(()=>{let{onUnhandledError:e}=ot;if(e)e(t);else throw t})}function ai(){}var Ah=Ol("C",void 0,void 0);function Nh(t){return Ol("E",void 0,t)}function xh(t){return Ol("N",t,void 0)}function Ol(t,e,r){return{kind:t,value:e,error:r}}var Pn=null;function hr(t){if(ot.useDeprecatedSynchronousErrorHandling){let e=!Pn;if(e&&(Pn={errorThrown:!1,error:null}),t(),e){let{errorThrown:r,error:n}=Pn;if(Pn=null,r)throw n}}else t()}function Rh(t){ot.useDeprecatedSynchronousErrorHandling&&Pn&&(Pn.errorThrown=!0,Pn.error=t)}var Fn=class extends se{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,ko(e)&&e.add(this)):this.destination=LE}static create(e,r,n){return new pr(e,r,n)}next(e){this.isStopped?Fl(xh(e),this):this._next(e)}error(e){this.isStopped?Fl(Nh(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Fl(Ah,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()}}},FE=Function.prototype.bind;function Pl(t,e){return FE.call(t,e)}var kl=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(n){jo(n)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(n){jo(n)}else jo(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){jo(r)}}},pr=class extends Fn{constructor(e,r,n){super();let i;if(L(e)||!e)i={next:e??void 0,error:r??void 0,complete:n??void 0};else{let o;this&&ot.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&Pl(e.next,o),error:e.error&&Pl(e.error,o),complete:e.complete&&Pl(e.complete,o)}):i=e}this.destination=new kl(i)}};function jo(t){ot.useDeprecatedSynchronousErrorHandling?Rh(t):Lo(t)}function kE(t){throw t}function Fl(t,e){let{onStoppedNotification:r}=ot;r&&fr.setTimeout(()=>r(t,e))}var LE={closed:!0,next:ai,error:kE,complete:ai};var gr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ae(t){return t}function Ll(...t){return jl(t)}function jl(t){return t.length===0?Ae:t.length===1?t[0]:function(r){return t.reduce((n,i)=>i(n),r)}}var q=(()=>{class t{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new t;return n.source=this,n.operator=r,n}subscribe(r,n,i){let o=VE(r)?r:new pr(r,n,i);return hr(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return n=Oh(n),new n((i,o)=>{let s=new pr({next:a=>{try{r(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[gr](){return this}pipe(...r){return jl(r)(this)}toPromise(r){return r=Oh(r),new r((n,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>n(o))})}}return t.create=e=>new t(e),t})();function Oh(t){var e;return(e=t??ot.Promise)!==null&&e!==void 0?e:Promise}function jE(t){return t&&L(t.next)&&L(t.error)&&L(t.complete)}function VE(t){return t&&t instanceof Fn||jE(t)&&ko(t)}function Vl(t){return L(t?.lift)}function V(t){return e=>{if(Vl(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function U(t,e,r,n,i){return new Ul(t,e,r,n,i)}var Ul=class extends Fn{constructor(e,r,n,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(l){e.error(l)}}:super._next,this._error=i?function(a){try{i(a)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function mr(){return V((t,e)=>{let r=null;t._refCount++;let n=U(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){r=null;return}let i=t._connection,o=r;r=null,i&&(!o||i===o)&&i.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(r=t.connect())})}var yr=class extends q{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,Vl(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 se;let r=this.getSubject();e.add(this.source.subscribe(U(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=se.EMPTY)}return e}refCount(){return mr()(this)}};var Ph=dr(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var le=(()=>{class t extends q{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new Vo(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new Ph}next(r){hr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){hr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){hr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:n,isStopped:i,observers:o}=this;return n||i?Rl:(this.currentObservers=null,o.push(r),new se(()=>{this.currentObservers=null,On(o,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:i,isStopped:o}=this;n?r.error(i):o&&r.complete()}asObservable(){let r=new q;return r.source=this,r}}return t.create=(e,r)=>new Vo(e,r),t})(),Vo=class extends le{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)}error(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)}complete(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)}_subscribe(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:Rl}};var ve=class extends le{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let r=super._subscribe(e);return!r.closed&&e.next(this._value),r}getValue(){let{hasError:e,thrownError:r,_value:n}=this;if(e)throw r;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var Bl={now(){return(Bl.delegate||Date).now()},delegate:void 0};var Uo=class extends se{constructor(e,r){super()}schedule(e,r=0){return this}};var li={setInterval(t,e,...r){let{delegate:n}=li;return n?.setInterval?n.setInterval(t,e,...r):setInterval(t,e,...r)},clearInterval(t){let{delegate:e}=li;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var Bo=class extends Uo{constructor(e,r){super(e,r),this.scheduler=e,this.work=r,this.pending=!1}schedule(e,r=0){var n;if(this.closed)return this;this.state=e;let i=this.id,o=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(o,i,r)),this.pending=!0,this.delay=r,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(o,this.id,r),this}requestAsyncId(e,r,n=0){return li.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,r,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return r;r!=null&&li.clearInterval(r)}execute(e,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,r);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,r){let n=!1,i;try{this.work(e)}catch(o){n=!0,i=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){let{id:e,scheduler:r}=this,{actions:n}=r;this.work=this.state=this.scheduler=null,this.pending=!1,On(n,this),e!=null&&(this.id=this.recycleAsyncId(r,e,null)),this.delay=null,super.unsubscribe()}}};var vr=class t{constructor(e,r=t.now){this.schedulerActionCtor=e,this.now=r}schedule(e,r=0,n){return new this.schedulerActionCtor(this,e).schedule(n,r)}};vr.now=Bl.now;var $o=class extends vr{constructor(e,r=vr.now){super(e,r),this.actions=[],this._active=!1}flush(e){let{actions:r}=this;if(this._active){r.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,n){for(;e=r.shift();)e.unsubscribe();throw n}}};var Fh=new $o(Bo);var Ue=new q(t=>t.complete());function kh(t){return t&&L(t.schedule)}function Lh(t){return t[t.length-1]}function Ho(t){return L(Lh(t))?t.pop():void 0}function Et(t){return kh(Lh(t))?t.pop():void 0}function Vh(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(u){try{c(n.next(u))}catch(d){s(d)}}function l(u){try{c(n.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):i(u.value).then(a,l)}c((n=n.apply(t,e||[])).next())})}function jh(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function kn(t){return this instanceof kn?(this.v=t,this):new kn(t)}function Uh(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,o=[];return i={},a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(f){return function(p){return Promise.resolve(p).then(f,d)}}function a(f,p){n[f]&&(i[f]=function(g){return new Promise(function(y,D){o.push([f,g,y,D])>1||l(f,g)})},p&&(i[f]=p(i[f])))}function l(f,p){try{c(n[f](p))}catch(g){h(o[0][3],g)}}function c(f){f.value instanceof kn?Promise.resolve(f.value.v).then(u,d):h(o[0][2],f)}function u(f){l("next",f)}function d(f){l("throw",f)}function h(f,p){f(p),o.shift(),o.length&&l(o[0][0],o[0][1])}}function Bh(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof jh=="function"?jh(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(s){return new Promise(function(a,l){s=t[o](s),i(a,l,s.done,s.value)})}}function i(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}}var zo=t=>t&&typeof t.length=="number"&&typeof t!="function";function Go(t){return L(t?.then)}function qo(t){return L(t[gr])}function Wo(t){return Symbol.asyncIterator&&L(t?.[Symbol.asyncIterator])}function Ko(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 UE(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Qo=UE();function Zo(t){return L(t?.[Qo])}function Yo(t){return Uh(this,arguments,function*(){let r=t.getReader();try{for(;;){let{value:n,done:i}=yield kn(r.read());if(i)return yield kn(void 0);yield yield kn(n)}}finally{r.releaseLock()}})}function Jo(t){return L(t?.getReader)}function ce(t){if(t instanceof q)return t;if(t!=null){if(qo(t))return BE(t);if(zo(t))return $E(t);if(Go(t))return HE(t);if(Wo(t))return $h(t);if(Zo(t))return zE(t);if(Jo(t))return GE(t)}throw Ko(t)}function BE(t){return new q(e=>{let r=t[gr]();if(L(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function $E(t){return new q(e=>{for(let r=0;r{t.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,Lo)})}function zE(t){return new q(e=>{for(let r of t)if(e.next(r),e.closed)return;e.complete()})}function $h(t){return new q(e=>{qE(t,e).catch(r=>e.error(r))})}function GE(t){return $h(Yo(t))}function qE(t,e){var r,n,i,o;return Vh(this,void 0,void 0,function*(){try{for(r=Bh(t);n=yield r.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){i={error:s}}finally{try{n&&!n.done&&(o=r.return)&&(yield o.call(r))}finally{if(i)throw i.error}}e.complete()})}function ke(t,e,r,n=0,i=!1){let o=e.schedule(function(){r(),i?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!i)return o}function Xo(t,e=0){return V((r,n)=>{r.subscribe(U(n,i=>ke(n,t,()=>n.next(i),e),()=>ke(n,t,()=>n.complete(),e),i=>ke(n,t,()=>n.error(i),e)))})}function es(t,e=0){return V((r,n)=>{n.add(t.schedule(()=>r.subscribe(n),e))})}function Hh(t,e){return ce(t).pipe(es(e),Xo(e))}function zh(t,e){return ce(t).pipe(es(e),Xo(e))}function Gh(t,e){return new q(r=>{let n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function qh(t,e){return new q(r=>{let n;return ke(r,e,()=>{n=t[Qo](),ke(r,e,()=>{let i,o;try{({value:i,done:o}=n.next())}catch(s){r.error(s);return}o?r.complete():r.next(i)},0,!0)}),()=>L(n?.return)&&n.return()})}function ts(t,e){if(!t)throw new Error("Iterable cannot be null");return new q(r=>{ke(r,e,()=>{let n=t[Symbol.asyncIterator]();ke(r,e,()=>{n.next().then(i=>{i.done?r.complete():r.next(i.value)})},0,!0)})})}function Wh(t,e){return ts(Yo(t),e)}function Kh(t,e){if(t!=null){if(qo(t))return Hh(t,e);if(zo(t))return Gh(t,e);if(Go(t))return zh(t,e);if(Wo(t))return ts(t,e);if(Zo(t))return qh(t,e);if(Jo(t))return Wh(t,e)}throw Ko(t)}function re(t,e){return e?Kh(t,e):ce(t)}function x(...t){let e=Et(t);return re(t,e)}function Dr(t,e){let r=L(t)?t:()=>t,n=i=>i.error(r());return new q(e?i=>e.schedule(n,0,i):n)}function $l(t){return!!t&&(t instanceof q||L(t.lift)&&L(t.subscribe))}var Ft=dr(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function R(t,e){return V((r,n)=>{let i=0;r.subscribe(U(n,o=>{n.next(t.call(e,o,i++))}))})}var{isArray:WE}=Array;function KE(t,e){return WE(e)?t(...e):t(e)}function ns(t){return R(e=>KE(t,e))}var{isArray:QE}=Array,{getPrototypeOf:ZE,prototype:YE,keys:JE}=Object;function rs(t){if(t.length===1){let e=t[0];if(QE(e))return{args:e,keys:null};if(XE(e)){let r=JE(e);return{args:r.map(n=>e[n]),keys:r}}}return{args:t,keys:null}}function XE(t){return t&&typeof t=="object"&&ZE(t)===YE}function is(t,e){return t.reduce((r,n,i)=>(r[n]=e[i],r),{})}function os(...t){let e=Et(t),r=Ho(t),{args:n,keys:i}=rs(t);if(n.length===0)return re([],e);let o=new q(ew(n,e,i?s=>is(i,s):Ae));return r?o.pipe(ns(r)):o}function ew(t,e,r=Ae){return n=>{Qh(e,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let l=0;l{let c=re(t[l],e),u=!1;c.subscribe(U(n,d=>{o[l]=d,u||(u=!0,a--),a||n.next(r(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}function Qh(t,e,r){t?ke(r,t,e):e()}function Zh(t,e,r,n,i,o,s,a){let l=[],c=0,u=0,d=!1,h=()=>{d&&!l.length&&!c&&e.complete()},f=g=>c{o&&e.next(g),c++;let y=!1;ce(r(g,u++)).subscribe(U(e,D=>{i?.(D),o?f(D):e.next(D)},()=>{y=!0},void 0,()=>{if(y)try{for(c--;l.length&&cp(D)):p(D)}h()}catch(D){e.error(D)}}))};return t.subscribe(U(e,f,()=>{d=!0,h()})),()=>{a?.()}}function pe(t,e,r=1/0){return L(e)?pe((n,i)=>R((o,s)=>e(n,o,i,s))(ce(t(n,i))),r):(typeof e=="number"&&(r=e),V((n,i)=>Zh(n,i,t,r)))}function Hl(t=1/0){return pe(Ae,t)}function ss(){return Hl(1)}function Er(...t){return ss()(re(t,Et(t)))}function as(t){return new q(e=>{ce(t()).subscribe(e)})}function zl(...t){let e=Ho(t),{args:r,keys:n}=rs(t),i=new q(o=>{let{length:s}=r;if(!s){o.complete();return}let a=new Array(s),l=s,c=s;for(let u=0;u{d||(d=!0,c--),a[u]=h},()=>l--,void 0,()=>{(!l||!d)&&(c||o.next(n?is(n,a):a),o.complete())}))}});return e?i.pipe(ns(e)):i}function me(t,e){return V((r,n)=>{let i=0;r.subscribe(U(n,o=>t.call(e,o,i++)&&n.next(o)))})}function nn(t){return V((e,r)=>{let n=null,i=!1,o;n=e.subscribe(U(r,void 0,void 0,s=>{o=ce(t(s,nn(t)(e))),n?(n.unsubscribe(),n=null,o.subscribe(r)):i=!0})),i&&(n.unsubscribe(),n=null,o.subscribe(r))})}function Yh(t,e,r,n,i){return(o,s)=>{let a=r,l=e,c=0;o.subscribe(U(s,u=>{let d=c++;l=a?t(l,u,d):(a=!0,u),n&&s.next(l)},i&&(()=>{a&&s.next(l),s.complete()})))}}function rn(t,e){return L(e)?pe(t,e,1):pe(t,1)}function Gl(...t){let e=Et(t);return V((r,n)=>{ss()(re([r,...t],e)).subscribe(n)})}function ql(t,e=Fh){return V((r,n)=>{let i=null,o=null,s=null,a=()=>{if(i){i.unsubscribe(),i=null;let c=o;o=null,n.next(c)}};function l(){let c=s+t,u=e.now();if(u{o=c,s=e.now(),i||(i=e.schedule(l,t),n.add(i))},()=>{a(),n.complete()},void 0,()=>{o=i=null}))})}function on(t){return V((e,r)=>{let n=!1;e.subscribe(U(r,i=>{n=!0,r.next(i)},()=>{n||r.next(t),r.complete()}))})}function kt(t){return t<=0?()=>Ue:V((e,r)=>{let n=0;e.subscribe(U(r,i=>{++n<=t&&(r.next(i),t<=n&&r.complete())}))})}function Wl(t){return R(()=>t)}function Kl(t,e=Ae){return t=t??tw,V((r,n)=>{let i,o=!0;r.subscribe(U(n,s=>{let a=e(s);(o||!t(i,a))&&(o=!1,i=a,n.next(s))}))})}function tw(t,e){return t===e}function ls(t=nw){return V((e,r)=>{let n=!1;e.subscribe(U(r,i=>{n=!0,r.next(i)},()=>n?r.complete():r.error(t())))})}function nw(){return new Ft}function Ln(t){return V((e,r)=>{try{e.subscribe(r)}finally{r.add(t)}})}function wt(t,e){let r=arguments.length>=2;return n=>n.pipe(t?me((i,o)=>t(i,o,n)):Ae,kt(1),r?on(e):ls(()=>new Ft))}function wr(t){return t<=0?()=>Ue:V((e,r)=>{let n=[];e.subscribe(U(r,i=>{n.push(i),t{for(let i of n)r.next(i);r.complete()},void 0,()=>{n=null}))})}function Ql(t,e){let r=arguments.length>=2;return n=>n.pipe(t?me((i,o)=>t(i,o,n)):Ae,wr(1),r?on(e):ls(()=>new Ft))}function Zl(){return V((t,e)=>{let r,n=!1;t.subscribe(U(e,i=>{let o=r;r=i,n&&e.next([o,i]),n=!0}))})}function Yl(t,e){return V(Yh(t,e,arguments.length>=2,!0))}function Cr(...t){let e=Et(t);return V((r,n)=>{(e?Er(t,r,e):Er(t,r)).subscribe(n)})}function Ne(t,e){return V((r,n)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&n.complete();r.subscribe(U(n,l=>{i?.unsubscribe();let c=0,u=o++;ce(t(l,u)).subscribe(i=U(n,d=>n.next(e?e(l,d,u,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function Jl(t){return V((e,r)=>{ce(t).subscribe(U(r,()=>r.complete(),ai)),!r.closed&&e.subscribe(r)})}function ue(t,e,r){let n=L(t)||e||r?{next:t,error:e,complete:r}:t;return n?V((i,o)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;i.subscribe(U(o,l=>{var c;(c=n.next)===null||c===void 0||c.call(n,l),o.next(l)},()=>{var l;a=!1,(l=n.complete)===null||l===void 0||l.call(n),o.complete()},l=>{var c;a=!1,(c=n.error)===null||c===void 0||c.call(n,l),o.error(l)},()=>{var l,c;a&&((l=n.unsubscribe)===null||l===void 0||l.call(n)),(c=n.finalize)===null||c===void 0||c.call(n)}))}):Ae}var rw="https://g.co/ng/security#xss",m=class extends Error{constructor(e,r){super(Bs(e,r)),this.code=e}};function Bs(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function Ii(t){return{toString:t}.toString()}var cs="__parameters__";function iw(t){return function(...r){if(t){let n=t(...r);for(let i in n)this[i]=n[i]}}}function kp(t,e,r){return Ii(()=>{let n=iw(e);function i(...o){if(this instanceof i)return n.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(l,c,u){let d=l.hasOwnProperty(cs)?l[cs]:Object.defineProperty(l,cs,{value:[]})[cs];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return r&&(i.prototype=Object.create(r.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}var pn=globalThis;function ne(t){for(let e in t)if(t[e]===ne)return e;throw Error("Could not find renamed property on target object.")}function ow(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Re(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(Re).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(` +`);return r===-1?e:e.substring(0,r)}function Jh(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var sw=ne({__forward_ref__:ne});function Oe(t){return t.__forward_ref__=Oe,t.toString=function(){return Re(this())},t}function xe(t){return Lp(t)?t():t}function Lp(t){return typeof t=="function"&&t.hasOwnProperty(sw)&&t.__forward_ref__===Oe}function I(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Je(t){return{providers:t.providers||[],imports:t.imports||[]}}function $s(t){return Xh(t,Vp)||Xh(t,Up)}function jp(t){return $s(t)!==null}function Xh(t,e){return t.hasOwnProperty(e)?t[e]:null}function aw(t){let e=t&&(t[Vp]||t[Up]);return e||null}function ep(t){return t&&(t.hasOwnProperty(tp)||t.hasOwnProperty(lw))?t[tp]:null}var Vp=ne({\u0275prov:ne}),tp=ne({\u0275inj:ne}),Up=ne({ngInjectableDef:ne}),lw=ne({ngInjectorDef:ne}),S=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=I({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Bp(t){return t&&!!t.\u0275providers}var cw=ne({\u0275cmp:ne}),uw=ne({\u0275dir:ne}),dw=ne({\u0275pipe:ne}),fw=ne({\u0275mod:ne}),Ds=ne({\u0275fac:ne}),ui=ne({__NG_ELEMENT_ID__:ne}),np=ne({__NG_ENV_ID__:ne});function di(t){return typeof t=="string"?t:t==null?"":String(t)}function hw(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():di(t)}function pw(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new m(-200,t)}function hu(t,e){throw new m(-201,!1)}var H=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}(H||{}),hc;function $p(){return hc}function Qe(t){let e=hc;return hc=t,e}function Hp(t,e,r){let n=$s(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&H.Optional)return null;if(e!==void 0)return e;hu(t,"Injector")}var gw={},fi=gw,pc="__NG_DI_FLAG__",Es="ngTempTokenPath",mw="ngTokenPath",yw=/\n/gm,vw="\u0275",rp="__source",Sr;function Dw(){return Sr}function sn(t){let e=Sr;return Sr=t,e}function Ew(t,e=H.Default){if(Sr===void 0)throw new m(-203,!1);return Sr===null?Hp(t,void 0,e):Sr.get(t,e&H.Optional?null:void 0,e)}function T(t,e=H.Default){return($p()||Ew)(xe(t),e)}function v(t,e=H.Default){return T(t,Hs(e))}function Hs(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function gc(t){let e=[];for(let r=0;r ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):Re(a)))}i=`{${o.join(", ")}}`}return`${r}${n?"("+n+")":""}[${i}]: ${t.replace(yw,` + `)}`}var pu=zp(kp("Optional"),8);var Gp=zp(kp("SkipSelf"),4);function Tr(t,e){let r=t.hasOwnProperty(Ds);return r?t[Ds]:null}function _w(t,e,r){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(r)?gu(r,e):e(r))}function qp(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function ws(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Sw(t,e,r,n){let i=t.length;if(i==e)t.push(r,n);else if(i===1)t.push(n,t[0]),t[0]=r;else{for(i--,t.push(t[i-1],t[i]);i>e;){let o=i-2;t[i]=t[o],i--}t[e]=r,t[e+1]=n}}function Mw(t,e,r){let n=Si(t,e);return n>=0?t[n|1]=r:(n=~n,Sw(t,n,e,r)),n}function Xl(t,e){let r=Si(t,e);if(r>=0)return t[r|1]}function Si(t,e){return Tw(t,e,1)}function Tw(t,e,r){let n=0,i=t.length>>r;for(;i!==n;){let o=n+(i-n>>1),s=t[o<e?i=o:n=o+1}return~(i<e){s=o-1;break}}}for(;o-1){let o;for(;++io?d="":d=i[u+1].toLowerCase(),n&2&&c!==d){if(st(n))return!1;s=!0}}}}return st(n)||s}function st(t){return(t&1)===0}function Fw(t,e,r,n){if(e===null)return-1;let i=0;if(n||!r){let o=!1;for(;i-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?i+="."+s:n&4&&(i+=" "+s);else i!==""&&!st(s)&&(e+=op(o,i),i=""),n=s,o=o||!st(n);r++}return i!==""&&(e+=op(o,i)),e}function Uw(t){return t.map(Vw).join(",")}function Bw(t){let e=[],r=[],n=1,i=2;for(;n{let e=tg(t),r=K(E({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Qp.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||_t.Emulated,styles:t.styles||Ze,_:null,schemas:t.schemas||null,tView:null,id:""});ng(r);let n=t.dependencies;return r.directiveDefs=ap(n,!1),r.pipeDefs=ap(n,!0),r.id=zw(r),r})}function $w(t){return Un(t)||Yp(t)}function Hw(t){return t!==null}function Xe(t){return Ii(()=>({type:t.type,bootstrap:t.bootstrap||Ze,declarations:t.declarations||Ze,imports:t.imports||Ze,exports:t.exports||Ze,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function sp(t,e){if(t==null)return Ar;let r={};for(let n in t)if(t.hasOwnProperty(n)){let i=t[n],o,s,a=cn.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),e?(r[o]=a!==cn.None?[n,a]:n,e[o]=s):r[o]=n}return r}function J(t){return Ii(()=>{let e=tg(t);return ng(e),e})}function Un(t){return t[cw]||null}function Yp(t){return t[uw]||null}function Jp(t){return t[dw]||null}function Xp(t){let e=Un(t)||Yp(t)||Jp(t);return e!==null?e.standalone:!1}function eg(t,e){let r=t[fw]||null;if(!r&&e===!0)throw new Error(`Type ${Re(t)} does not have '\u0275mod' property.`);return r}function tg(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||Ar,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Ze,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:sp(t.inputs,e),outputs:sp(t.outputs),debugInfo:null}}function ng(t){t.features?.forEach(e=>e(t))}function ap(t,e){if(!t)return null;let r=e?Jp:$w;return()=>(typeof t=="function"?t():t).map(n=>r(n)).filter(Hw)}function zw(t){let e=0,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let i of r)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function Lr(t){return{\u0275providers:t}}function yu(...t){return{\u0275providers:rg(!0,t),\u0275fromNgModule:!0}}function rg(t,...e){let r=[],n=new Set,i,o=s=>{r.push(s)};return gu(e,s=>{let a=s;yc(a,o,[],n)&&(i||=[],i.push(a))}),i!==void 0&&ig(i,o),r}function ig(t,e){for(let r=0;r{e(o,n)})}}function yc(t,e,r,n){if(t=xe(t),!t)return!1;let i=null,o=ep(t),s=!o&&Un(t);if(!o&&!s){let l=t.ngModule;if(o=ep(l),o)i=l;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=n.has(i);if(s){if(a)return!1;if(n.add(i),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)yc(c,e,r,n)}}else if(o){if(o.imports!=null&&!a){n.add(i);let c;try{gu(o.imports,u=>{yc(u,e,r,n)&&(c||=[],c.push(u))})}finally{}c!==void 0&&ig(c,e)}if(!a){let c=Tr(i)||(()=>new i);e({provide:i,useFactory:c,deps:Ze},i),e({provide:Kp,useValue:i,multi:!0},i),e({provide:Nr,useValue:()=>T(i),multi:!0},i)}let l=o.providers;if(l!=null&&!a){let c=t;vu(l,u=>{e(u,c)})}}else return!1;return i!==t&&t.providers!==void 0}function vu(t,e){for(let r of t)Bp(r)&&(r=r.\u0275providers),Array.isArray(r)?vu(r,e):e(r)}var Gw=ne({provide:String,useValue:ne});function og(t){return t!==null&&typeof t=="object"&&Gw in t}function qw(t){return!!(t&&t.useExisting)}function Ww(t){return!!(t&&t.useFactory)}function xr(t){return typeof t=="function"}function Kw(t){return!!t.useClass}var zs=new S(""),hs={},Qw={},ec;function Du(){return ec===void 0&&(ec=new Cs),ec}var Le=class{},pi=class extends Le{get destroyed(){return this._destroyed}constructor(e,r,n,i){super(),this.parent=r,this.source=n,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Dc(e,s=>this.processProvider(s)),this.records.set(Wp,br(void 0,this)),i.has("environment")&&this.records.set(Le,br(void 0,this));let o=this.records.get(zs);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Kp,Ze,H.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=G(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of r)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),G(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=sn(this),n=Qe(void 0),i;try{return e()}finally{sn(r),Qe(n)}}get(e,r=fi,n=H.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(np))return e[np](this);n=Hs(n);let i,o=sn(this),s=Qe(void 0);try{if(!(n&H.SkipSelf)){let l=this.records.get(e);if(l===void 0){let c=eC(e)&&$s(e);c&&this.injectableDefInScope(c)?l=br(vc(e),hs):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l)}let a=n&H.Self?Du():this.parent;return r=n&H.Optional&&r===fi?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[Es]=a[Es]||[]).unshift(Re(e)),o)throw a;return Cw(a,e,"R3InjectorError",this.source)}else throw a}finally{Qe(s),sn(o)}}resolveInjectorInitializers(){let e=G(null),r=sn(this),n=Qe(void 0),i;try{let o=this.get(Nr,Ze,H.Self);for(let s of o)s()}finally{sn(r),Qe(n),G(e)}}toString(){let e=[],r=this.records;for(let n of r.keys())e.push(Re(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new m(205,!1)}processProvider(e){e=xe(e);let r=xr(e)?e:xe(e&&e.provide),n=Yw(e);if(!xr(e)&&e.multi===!0){let i=this.records.get(r);i||(i=br(void 0,hs,!0),i.factory=()=>gc(i.multi),this.records.set(r,i)),r=e,i.multi.push(e)}this.records.set(r,n)}hydrate(e,r){let n=G(null);try{return r.value===hs&&(r.value=Qw,r.value=r.factory()),typeof r.value=="object"&&r.value&&Xw(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{G(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let r=xe(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function vc(t){let e=$s(t),r=e!==null?e.factory:Tr(t);if(r!==null)return r;if(t instanceof S)throw new m(204,!1);if(t instanceof Function)return Zw(t);throw new m(204,!1)}function Zw(t){if(t.length>0)throw new m(204,!1);let r=aw(t);return r!==null?()=>r.factory(t):()=>new t}function Yw(t){if(og(t))return br(void 0,t.useValue);{let e=sg(t);return br(e,hs)}}function sg(t,e,r){let n;if(xr(t)){let i=xe(t);return Tr(i)||vc(i)}else if(og(t))n=()=>xe(t.useValue);else if(Ww(t))n=()=>t.useFactory(...gc(t.deps||[]));else if(qw(t))n=()=>T(xe(t.useExisting));else{let i=xe(t&&(t.useClass||t.provide));if(Jw(t))n=()=>new i(...gc(t.deps));else return Tr(i)||vc(i)}return n}function br(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function Jw(t){return!!t.deps}function Xw(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function eC(t){return typeof t=="function"||typeof t=="object"&&t instanceof S}function Dc(t,e){for(let r of t)Array.isArray(r)?Dc(r,e):r&&Bp(r)?Dc(r.\u0275providers,e):e(r)}function ut(t,e){t instanceof pi&&t.assertNotDestroyed();let r,n=sn(t),i=Qe(void 0);try{return e()}finally{sn(n),Qe(i)}}function tC(){return $p()!==void 0||Dw()!=null}function nC(t){return typeof t=="function"}var Ht=0,k=1,O=2,Se=3,at=4,dt=5,gi=6,bs=7,_e=8,Rr=9,Lt=10,De=11,mi=12,lp=13,jr=14,lt=15,Bn=16,_r=17,jt=18,Gs=19,ag=20,an=21,tc=22,Ye=23,ct=25,lg=1;var $n=7,_s=8,Or=9,Ie=10,Is=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Is||{});function ln(t){return Array.isArray(t)&&typeof t[lg]=="object"}function zt(t){return Array.isArray(t)&&t[lg]===!0}function cg(t){return(t.flags&4)!==0}function qs(t){return t.componentOffset>-1}function Eu(t){return(t.flags&1)===1}function un(t){return!!t.template}function Ec(t){return(t[O]&512)!==0}var wc=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function ug(t,e,r,n){e!==null?e.applyValueToInputSignal(e,n):t[r]=n}function St(){return dg}function dg(t){return t.type.prototype.ngOnChanges&&(t.setInput=iC),rC}St.ngInherit=!0;function rC(){let t=hg(this),e=t?.current;if(e){let r=t.previous;if(r===Ar)t.previous=e;else for(let n in e)r[n]=e[n];t.current=null,this.ngOnChanges(e)}}function iC(t,e,r,n,i){let o=this.declaredInputs[n],s=hg(t)||oC(t,{previous:Ar,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[o];a[o]=new wc(c&&c.currentValue,r,l===Ar),ug(t,e,i,r)}var fg="__ngSimpleChanges__";function hg(t){return t[fg]||null}function oC(t,e){return t[fg]=e}var cp=null;var Ct=function(t,e,r){cp?.(t,e,r)},pg="svg",sC="math";function It(t){for(;Array.isArray(t);)t=t[Ht];return t}function gg(t,e){return It(e[t])}function et(t,e){return It(e[t.index])}function wu(t,e){return t.data[e]}function mn(t,e){let r=e[t];return ln(r)?r:r[Ht]}function aC(t){return(t[O]&4)===4}function Cu(t){return(t[O]&128)===128}function lC(t){return zt(t[Se])}function Pr(t,e){return e==null?null:t[e]}function mg(t){t[_r]=0}function yg(t){t[O]&1024||(t[O]|=1024,Cu(t)&&Ws(t))}function cC(t,e){for(;t>0;)e=e[jr],t--;return e}function yi(t){return!!(t[O]&9216||t[Ye]?.dirty)}function Cc(t){t[Lt].changeDetectionScheduler?.notify(7),t[O]&64&&(t[O]|=1024),yi(t)&&Ws(t)}function Ws(t){t[Lt].changeDetectionScheduler?.notify(0);let e=Hn(t);for(;e!==null&&!(e[O]&8192||(e[O]|=8192,!Cu(e)));)e=Hn(e)}function vg(t,e){if((t[O]&256)===256)throw new m(911,!1);t[an]===null&&(t[an]=[]),t[an].push(e)}function uC(t,e){if(t[an]===null)return;let r=t[an].indexOf(e);r!==-1&&t[an].splice(r,1)}function Hn(t){let e=t[Se];return zt(e)?e[Se]:e}var B={lFrame:Tg(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Dg=!1;function dC(){return B.lFrame.elementDepthCount}function fC(){B.lFrame.elementDepthCount++}function hC(){B.lFrame.elementDepthCount--}function Eg(){return B.bindingsEnabled}function pC(){return B.skipHydrationRootTNode!==null}function gC(t){return B.skipHydrationRootTNode===t}function mC(){B.skipHydrationRootTNode=null}function Q(){return B.lFrame.lView}function je(){return B.lFrame.tView}function Mi(t){return B.lFrame.contextLView=t,t[_e]}function Ti(t){return B.lFrame.contextLView=null,t}function Be(){let t=wg();for(;t!==null&&t.type===64;)t=t.parent;return t}function wg(){return B.lFrame.currentTNode}function yC(){let t=B.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Ai(t,e){let r=B.lFrame;r.currentTNode=t,r.isParent=e}function Cg(){return B.lFrame.isParent}function vC(){B.lFrame.isParent=!1}function bg(){return Dg}function up(t){Dg=t}function bu(){let t=B.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function DC(){return B.lFrame.bindingIndex}function EC(t){return B.lFrame.bindingIndex=t}function Ni(){return B.lFrame.bindingIndex++}function _g(t){let e=B.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function wC(){return B.lFrame.inI18n}function CC(t,e){let r=B.lFrame;r.bindingIndex=r.bindingRootIndex=t,bc(e)}function bC(){return B.lFrame.currentDirectiveIndex}function bc(t){B.lFrame.currentDirectiveIndex=t}function _C(t){let e=B.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function Ig(){return B.lFrame.currentQueryIndex}function _u(t){B.lFrame.currentQueryIndex=t}function IC(t){let e=t[k];return e.type===2?e.declTNode:e.type===1?t[dt]:null}function Sg(t,e,r){if(r&H.SkipSelf){let i=e,o=t;for(;i=i.parent,i===null&&!(r&H.Host);)if(i=IC(o),i===null||(o=o[jr],i.type&10))break;if(i===null)return!1;e=i,t=o}let n=B.lFrame=Mg();return n.currentTNode=e,n.lView=t,!0}function Iu(t){let e=Mg(),r=t[k];B.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function Mg(){let t=B.lFrame,e=t===null?null:t.child;return e===null?Tg(t):e}function Tg(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 Ag(){let t=B.lFrame;return B.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Ng=Ag;function Su(){let t=Ag();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 SC(t){return(B.lFrame.contextLView=cC(t,B.lFrame.contextLView))[_e]}function yn(){return B.lFrame.selectedIndex}function zn(t){B.lFrame.selectedIndex=t}function xg(){let t=B.lFrame;return wu(t.tView,t.selectedIndex)}function Rg(){B.lFrame.currentNamespace=pg}function Og(){MC()}function MC(){B.lFrame.currentNamespace=null}function TC(){return B.lFrame.currentNamespace}var Pg=!0;function Mu(){return Pg}function Tu(t){Pg=t}function AC(t,e,r){let{ngOnChanges:n,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(n){let s=dg(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}i&&(r.preOrderHooks??=[]).push(0-t,i),o&&((r.preOrderHooks??=[]).push(t,o),(r.preOrderCheckHooks??=[]).push(t,o))}function Au(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r=n)break}else e[l]<0&&(t[_r]+=65536),(a>14>16&&(t[O]&3)===e&&(t[O]+=16384,dp(a,o)):dp(a,o)}var Mr=-1,Gn=class{constructor(e,r,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function xC(t){return t instanceof Gn}function RC(t){return(t.flags&8)!==0}function OC(t){return(t.flags&16)!==0}var rc={},_c=class{constructor(e,r){this.injector=e,this.parentInjector=r}get(e,r,n){n=Hs(n);let i=this.injector.get(e,rc,n);return i!==rc||r===rc?i:this.parentInjector.get(e,r,n)}};function kg(t){return t!==Mr}function Ss(t){return t&32767}function PC(t){return t>>16}function Ms(t,e){let r=PC(t),n=e;for(;r>0;)n=n[jr],r--;return n}var Ic=!0;function fp(t){let e=Ic;return Ic=t,e}var FC=256,Lg=FC-1,jg=5,kC=0,bt={};function LC(t,e,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(ui)&&(n=r[ui]),n==null&&(n=r[ui]=kC++);let i=n&Lg,o=1<>jg)]|=o}function Ts(t,e){let r=Vg(t,e);if(r!==-1)return r;let n=e[k];n.firstCreatePass&&(t.injectorIndex=e.length,ic(n.data,t),ic(e,null),ic(n.blueprint,null));let i=Nu(t,e),o=t.injectorIndex;if(kg(i)){let s=Ss(i),a=Ms(i,e),l=a[k].data;for(let c=0;c<8;c++)e[o+c]=a[s+c]|l[s+c]}return e[o+8]=i,o}function ic(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Vg(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function Nu(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,n=null,i=e;for(;i!==null;){if(n=zg(i),n===null)return Mr;if(r++,i=i[jr],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return Mr}function Sc(t,e,r){LC(t,e,r)}function Ug(t,e,r){if(r&H.Optional||t!==void 0)return t;hu(e,"NodeInjector")}function Bg(t,e,r,n){if(r&H.Optional&&n===void 0&&(n=null),!(r&(H.Self|H.Host))){let i=t[Rr],o=Qe(void 0);try{return i?i.get(e,n,r&H.Optional):Hp(e,n,r&H.Optional)}finally{Qe(o)}}return Ug(n,e,r)}function $g(t,e,r,n=H.Default,i){if(t!==null){if(e[O]&2048&&!(n&H.Self)){let s=BC(t,e,r,n,bt);if(s!==bt)return s}let o=Hg(t,e,r,n,bt);if(o!==bt)return o}return Bg(e,r,n,i)}function Hg(t,e,r,n,i){let o=VC(r);if(typeof o=="function"){if(!Sg(e,t,n))return n&H.Host?Ug(i,r,n):Bg(e,r,n,i);try{let s;if(s=o(n),s==null&&!(n&H.Optional))hu(r);else return s}finally{Ng()}}else if(typeof o=="number"){let s=null,a=Vg(t,e),l=Mr,c=n&H.Host?e[lt][dt]:null;for((a===-1||n&H.SkipSelf)&&(l=a===-1?Nu(t,e):e[a+8],l===Mr||!pp(n,!1)?a=-1:(s=e[k],a=Ss(l),e=Ms(l,e)));a!==-1;){let u=e[k];if(hp(o,a,u.data)){let d=jC(a,e,r,s,n,c);if(d!==bt)return d}l=e[a+8],l!==Mr&&pp(n,e[k].data[a+8]===c)&&hp(o,a,e)?(s=u,a=Ss(l),e=Ms(l,e)):a=-1}}return i}function jC(t,e,r,n,i,o){let s=e[k],a=s.data[t+8],l=n==null?qs(a)&&Ic:n!=s&&(a.type&3)!==0,c=i&H.Host&&o===a,u=ms(a,s,r,l,c);return u!==null?qn(e,s,u,a):bt}function ms(t,e,r,n,i){let o=t.providerIndexes,s=e.data,a=o&1048575,l=t.directiveStart,c=t.directiveEnd,u=o>>20,d=n?a:a+u,h=i?a+u:c;for(let f=d;f=l&&p.type===r)return f}if(i){let f=s[l];if(f&&un(f)&&f.type===r)return l}return null}function qn(t,e,r,n){let i=t[r],o=e.data;if(xC(i)){let s=i;s.resolving&&pw(hw(o[r]));let a=fp(s.canSeeViewProviders);s.resolving=!0;let l,c=s.injectImpl?Qe(s.injectImpl):null,u=Sg(t,n,H.Default);try{i=t[r]=s.factory(void 0,o,t,n),e.firstCreatePass&&r>=n.directiveStart&&AC(r,o[r],e)}finally{c!==null&&Qe(c),fp(a),s.resolving=!1,Ng()}}return i}function VC(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(ui)?t[ui]:void 0;return typeof e=="number"?e>=0?e&Lg:UC:e}function hp(t,e,r){let n=1<>jg)]&n)}function pp(t,e){return!(t&H.Self)&&!(t&H.Host&&e)}var Vn=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,n){return $g(this._tNode,this._lView,e,Hs(n),r)}};function UC(){return new Vn(Be(),Q())}function ft(t){return Ii(()=>{let e=t.prototype.constructor,r=e[Ds]||Mc(e),n=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==n;){let o=i[Ds]||Mc(i);if(o&&o!==r)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Mc(t){return Lp(t)?()=>{let e=Mc(xe(t));return e&&e()}:Tr(t)}function BC(t,e,r,n,i){let o=t,s=e;for(;o!==null&&s!==null&&s[O]&2048&&!(s[O]&512);){let a=Hg(o,s,r,n|H.Self,bt);if(a!==bt)return a;let l=o.parent;if(!l){let c=s[ag];if(c){let u=c.get(r,bt,n);if(u!==bt)return u}l=zg(s),s=s[jr]}o=l}return i}function zg(t){let e=t[k],r=e.type;return r===2?e.declTNode:r===1?t[dt]:null}function gp(t,e=null,r=null,n){let i=Gg(t,e,r,n);return i.resolveInjectorInitializers(),i}function Gg(t,e=null,r=null,n,i=new Set){let o=[r||Ze,yu(t)];return n=n||(typeof t=="object"?void 0:Re(t)),new pi(o,e||Du(),n||null,i)}var jn=class jn{static create(e,r){if(Array.isArray(e))return gp({name:""},r,e,"");{let n=e.name??"";return gp({name:n},e.parent,e.providers,n)}}};jn.THROW_IF_NOT_FOUND=fi,jn.NULL=new Cs,jn.\u0275prov=I({token:jn,providedIn:"any",factory:()=>T(Wp)}),jn.__NG_ELEMENT_ID__=-1;var Vt=jn;var $C=new S("");$C.__NG_ELEMENT_ID__=t=>{let e=Be();if(e===null)throw new m(204,!1);if(e.type&2)return e.value;if(t&H.Optional)return null;throw new m(204,!1)};var HC="ngOriginalError";function oc(t){return t[HC]}var qg=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=zC,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),Tc=class extends qg{constructor(e){super(),this._lView=e}onDestroy(e){return vg(this._lView,e),()=>uC(this._lView,e)}};function zC(){return new Tc(Q())}var vn=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ve(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=I({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var Ac=class extends le{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,tC()&&(this.destroyRef=v(qg,{optional:!0})??void 0,this.pendingTasks=v(vn,{optional:!0})??void 0)}emit(e){let r=G(null);try{super.next(e)}finally{G(r)}}subscribe(e,r,n){let i=e,o=r||(()=>null),s=n;if(e&&typeof e=="object"){let l=e;i=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return e instanceof se&&e.add(a),a}wrapInTimeout(e){return r=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(r),n!==void 0&&this.pendingTasks?.remove(n)})}}},ie=Ac;function As(...t){}function Wg(t){let e,r;function n(){t=As;try{r!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(r),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{t(),n()}),typeof requestAnimationFrame=="function"&&(r=requestAnimationFrame(()=>{t(),n()})),()=>n()}function mp(t){return queueMicrotask(()=>t()),()=>{t=As}}var xu="isAngularZone",Ns=xu+"_ID",GC=0,te=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ie(!1),this.onMicrotaskEmpty=new ie(!1),this.onStable=new ie(!1),this.onError=new ie(!1),typeof Zone>"u")throw new m(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&r,i.shouldCoalesceRunChangeDetection=n,i.callbackScheduled=!1,KC(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(xu)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new m(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new m(909,!1)}run(e,r,n){return this._inner.run(e,r,n)}runTask(e,r,n,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,qC,As,As);try{return o.runTask(s,r,n)}finally{o.cancelTask(s)}}runGuarded(e,r,n){return this._inner.runGuarded(e,r,n)}runOutsideAngular(e){return this._outer.run(e)}},qC={};function Ru(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 WC(t){t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,Zone.root.run(()=>{Wg(()=>{t.callbackScheduled=!1,Nc(t),t.isCheckStableRunning=!0,Ru(t),t.isCheckStableRunning=!1})}),Nc(t))}function KC(t){let e=()=>{WC(t)},r=GC++;t._inner=t._inner.fork({name:"angular",properties:{[xu]:!0,[Ns]:r,[Ns+r]:!0},onInvokeTask:(n,i,o,s,a,l)=>{if(QC(l))return n.invokeTask(o,s,a,l);try{return yp(t),n.invokeTask(o,s,a,l)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),vp(t)}},onInvoke:(n,i,o,s,a,l,c)=>{try{return yp(t),n.invoke(o,s,a,l,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!ZC(l)&&e(),vp(t)}},onHasTask:(n,i,o,s)=>{n.hasTask(o,s),i===o&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,Nc(t),Ru(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,i,o,s)=>(n.handleError(o,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function Nc(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function yp(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function vp(t){t._nesting--,Ru(t)}var xc=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ie,this.onMicrotaskEmpty=new ie,this.onStable=new ie,this.onError=new ie}run(e,r,n){return e.apply(r,n)}runGuarded(e,r,n){return e.apply(r,n)}runOutsideAngular(e){return e()}runTask(e,r,n,i){return e.apply(r,n)}};function QC(t){return Kg(t,"__ignore_ng_zone__")}function ZC(t){return Kg(t,"__scheduler_tick__")}function Kg(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var dn=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&oc(e);for(;r&&oc(r);)r=oc(r);return r||null}},YC=new S("",{providedIn:"root",factory:()=>{let t=v(te),e=v(dn);return r=>t.runOutsideAngular(()=>e.handleError(r))}});function JC(){return Vr(Be(),Q())}function Vr(t,e){return new Me(et(t,e))}var Me=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=JC;let t=e;return t})();function XC(t){return t instanceof Me?t.nativeElement:t}function eb(){return this._results[Symbol.iterator]()}var Rc=class t{get changes(){return this._changes??=new ie}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 r=t.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=eb)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,r){return this._results.reduce(e,r)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,r){this.dirty=!1;let n=Iw(e);(this._changesDetected=!_w(this._results,n,r))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function Qg(t){return(t.flags&128)===128}var Zg=new Map,tb=0;function nb(){return tb++}function rb(t){Zg.set(t[Gs],t)}function ib(t){Zg.delete(t[Gs])}var Dp="__ngContext__";function Wn(t,e){ln(e)?(t[Dp]=e[Gs],rb(e)):t[Dp]=e}function Yg(t){return Xg(t[mi])}function Jg(t){return Xg(t[at])}function Xg(t){for(;t!==null&&!zt(t);)t=t[at];return t}var Oc;function em(t){Oc=t}function ob(){if(Oc!==void 0)return Oc;if(typeof document<"u")return document;throw new m(210,!1)}var Ks=new S("",{providedIn:"root",factory:()=>sb}),sb="ng",Ou=new S(""),Dn=new S("",{providedIn:"platform",factory:()=>"unknown"});var Pu=new S(""),Fu=new S("",{providedIn:"root",factory:()=>ob().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var ab="h",lb="b";var cb=()=>null;function ku(t,e,r=!1){return cb(t,e,r)}var tm=!1,ub=new S("",{providedIn:"root",factory:()=>tm});var Pc=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${rw})`}};function Lu(t){return t instanceof Pc?t.changingThisBreaksApplicationSecurity:t}function nm(t){return t instanceof Function?t():t}var Ut=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Ut||{}),db;function ju(t,e){return db(t,e)}function Ir(t,e,r,n,i){if(n!=null){let o,s=!1;zt(n)?o=n:ln(n)&&(s=!0,n=n[Ht]);let a=It(n);t===0&&r!==null?i==null?sm(e,r,a):xs(e,r,a,i||null,!0):t===1&&r!==null?xs(e,r,a,i||null,!0):t===2?Sb(e,a,s):t===3&&e.destroyNode(a),o!=null&&Tb(e,t,o,r,i)}}function fb(t,e){return t.createText(e)}function hb(t,e,r){t.setValue(e,r)}function rm(t,e,r){return t.createElement(e,r)}function pb(t,e){im(t,e),e[Ht]=null,e[dt]=null}function gb(t,e,r,n,i,o){n[Ht]=i,n[dt]=e,Zs(t,n,r,1,i,o)}function im(t,e){e[Lt].changeDetectionScheduler?.notify(8),Zs(t,e,e[De],2,null,null)}function mb(t){let e=t[mi];if(!e)return sc(t[k],t);for(;e;){let r=null;if(ln(e))r=e[mi];else{let n=e[Ie];n&&(r=n)}if(!r){for(;e&&!e[at]&&e!==t;)ln(e)&&sc(e[k],e),e=e[Se];e===null&&(e=t),ln(e)&&sc(e[k],e),r=e&&e[at]}e=r}}function yb(t,e,r,n){let i=Ie+n,o=r.length;n>0&&(r[i-1][at]=e),n0&&(t[r-1][at]=n[at]);let o=ws(t,Ie+e);pb(n[k],n);let s=o[jt];s!==null&&s.detachView(o[k]),n[Se]=null,n[at]=null,n[O]&=-129}return n}function Qs(t,e){if(!(e[O]&256)){let r=e[De];r.destroyNode&&Zs(t,e,r,3,null,null),mb(e)}}function sc(t,e){if(e[O]&256)return;let r=G(null);try{e[O]&=-129,e[O]|=256,e[Ye]&&Nl(e[Ye]),Db(t,e),vb(t,e),e[k].type===1&&e[De].destroy();let n=e[Bn];if(n!==null&&zt(e[Se])){n!==e[Se]&&Vu(n,e);let i=e[jt];i!==null&&i.detachView(t)}ib(e)}finally{G(r)}}function vb(t,e){let r=t.cleanup,n=e[bs];if(r!==null)for(let o=0;o=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[r[o+1]];r[o].call(s)}n!==null&&(e[bs]=null);let i=e[an];if(i!==null){e[an]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[n.directiveStart+i];if(o===_t.None||o===_t.Emulated)return null}return et(n,r)}}function xs(t,e,r,n,i){t.insertBefore(e,r,n,i)}function sm(t,e,r){t.appendChild(e,r)}function Ep(t,e,r,n,i){n!==null?xs(t,e,r,n,i):sm(t,e,r)}function am(t,e){return t.parentNode(e)}function Cb(t,e){return t.nextSibling(e)}function bb(t,e,r){return Ib(t,e,r)}function _b(t,e,r){return t.type&40?et(t,r):null}var Ib=_b,wp;function Uu(t,e,r,n){let i=Eb(t,n,e),o=e[De],s=n.parent||e[dt],a=bb(s,n,e);if(i!=null)if(Array.isArray(r))for(let l=0;lct&&dm(t,e,ct,!1),Ct(s?2:0,i),r(n,i)}finally{zn(o),Ct(s?3:1,i)}}function gm(t,e,r){if(cg(e)){let n=G(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;snull;function Lb(t,e,r,n){let i=_m(e);i.push(r),t.firstCreatePass&&Im(t).push(n,i.length-1)}function jb(t,e,r,n,i,o){let s=e?e.injectorIndex:-1,a=0;return pC()&&(a|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Cp(t,e,r,n,i){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;n??={};let a,l=cn.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let c=o;if(i!==null){if(!i.hasOwnProperty(o))continue;c=i[o]}t===0?bp(n,r,c,a,l):bp(n,r,c,a)}return n}function bp(t,e,r,n,i){let o;t.hasOwnProperty(r)?(o=t[r]).push(e,n):o=t[r]=[e,n],i!==void 0&&o.push(i)}function Vb(t,e,r){let n=e.directiveStart,i=e.directiveEnd,o=t.data,s=e.attrs,a=[],l=null,c=null;for(let u=n;u0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function Gb(t,e,r,n){let i=r.directiveStart,o=r.directiveEnd;qs(r)&&Jb(e,r,t.data[i+r.componentOffset]),t.firstCreatePass||Ts(r,e),Wn(n,e);let s=r.initialInputs;for(let a=i;a{Ws(t.lView)},consumerOnSignalRead(){this.lView[Ye]=this}});function d0(t){let e=t[Ye]??Object.create(f0);return e.lView=t,e}var f0=K(E({},si),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=Hn(t.lView);for(;e&&!xm(e[k]);)e=Hn(e);e&&yg(e)},consumerOnSignalRead(){this.lView[Ye]=this}});function xm(t){return t.type!==2}var h0=100;function Rm(t,e=!0,r=0){let n=t[Lt],i=n.rendererFactory,o=!1;o||i.begin?.();try{p0(t,r)}catch(s){throw e&&Sm(t,s),s}finally{o||(i.end?.(),n.inlineEffectRunner?.flush())}}function p0(t,e){let r=bg();try{up(!0),jc(t,e);let n=0;for(;yi(t);){if(n===h0)throw new m(103,!1);n++,jc(t,1)}}finally{up(r)}}function g0(t,e,r,n){let i=e[O];if((i&256)===256)return;let o=!1,s=!1;!o&&e[Lt].inlineEffectRunner?.flush(),Iu(e);let a=!0,l=null,c=null;o||(xm(t)?(c=a0(e),l=Ro(c)):ph()===null?(a=!1,c=d0(e),l=Ro(c)):e[Ye]&&(Nl(e[Ye]),e[Ye]=null));try{mg(e),EC(t.bindingStartIndex),r!==null&&pm(t,e,r,2,n);let u=(i&3)===3;if(!o)if(u){let f=t.preOrderCheckHooks;f!==null&&ps(e,f,null)}else{let f=t.preOrderHooks;f!==null&&gs(e,f,0,null),nc(e,0)}if(s||m0(e),Om(e,0),t.contentQueries!==null&&bm(t,e),!o)if(u){let f=t.contentCheckHooks;f!==null&&ps(e,f)}else{let f=t.contentHooks;f!==null&&gs(e,f,1),nc(e,1)}xb(t,e);let d=t.components;d!==null&&Fm(e,d,0);let h=t.viewQuery;if(h!==null&&Lc(2,h,n),!o)if(u){let f=t.viewCheckHooks;f!==null&&ps(e,f)}else{let f=t.viewHooks;f!==null&&gs(e,f,2),nc(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[tc]){for(let f of e[tc])f();e[tc]=null}o||(e[O]&=-73)}catch(u){throw o||Ws(e),u}finally{c!==null&&(Tl(c,l),a&&c0(c)),Su()}}function Om(t,e){for(let r=Yg(t);r!==null;r=Jg(r))for(let n=Ie;n-1&&(vi(e,n),ws(r,n))}this._attachedToViewContainer=!1}Qs(this._lView[k],this._lView)}onDestroy(e){vg(this._lView,e)}markForCheck(){Gu(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[O]&=-129}reattach(){Cc(this._lView),this._lView[O]|=128}detectChanges(){this._lView[O]|=1024,Rm(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new m(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Ec(this._lView),r=this._lView[Bn];r!==null&&!e&&Vu(r,this._lView),im(this._lView[k],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new m(902,!1);this._appRef=e;let r=Ec(this._lView),n=this._lView[Bn];n!==null&&!r&&om(n,this._lView),Cc(this._lView)}},Bt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=E0;let t=e;return t})(),v0=Bt,D0=class extends v0{constructor(e,r,n){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,n){let i=ea(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:n});return new Kn(i)}};function E0(){return na(Be(),Q())}function na(t,e){return t.type&4?new D0(e,t,Vr(t,e)):null}var FL=new RegExp(`^(\\d+)*(${lb}|${ab})*(.*)`);var w0=()=>null;function Ei(t,e){return w0(t,e)}var wi=class{},qu=new S("",{providedIn:"root",factory:()=>!1});var km=new S(""),Vc=class{},Os=class{};function C0(t){let e=Error(`No component factory found for ${Re(t)}.`);return e[b0]=t,e}var b0="ngComponent";var Uc=class{resolveComponentFactory(e){throw C0(e)}},od=class od{};od.NULL=new Uc;var Fr=od,fn=class{},Mt=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>_0();let t=e;return t})();function _0(){let t=Q(),e=Be(),r=mn(e.index,t);return(ln(r)?r:t)[De]}var I0=(()=>{let e=class e{};e.\u0275prov=I({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();var _p=new Set;function Gt(t){_p.has(t)||(_p.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var Lm=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let i of n)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=I({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function Bc(t,e,r){let n=r?t.styles:null,i=r?t.classes:null,o=0;if(e!==null)for(let s=0;s0&&cm(t,r,o.join(" "))}}function R0(t,e,r){let n=t.projection=[];for(let i=0;i{let e=class e{};e.__NG_ELEMENT_ID__=P0;let t=e;return t})();function P0(){let t=Be();return Vm(t,Q())}var F0=pt,jm=class extends F0{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return Vr(this._hostTNode,this._hostLView)}get injector(){return new Vn(this._hostTNode,this._hostLView)}get parentInjector(){let e=Nu(this._hostTNode,this._hostLView);if(kg(e)){let r=Ms(e,this._hostLView),n=Ss(e),i=r[k].data[n+8];return new Vn(i,r)}else return new Vn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=Sp(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-Ie}createEmbeddedView(e,r,n){let i,o;typeof n=="number"?i=n:n!=null&&(i=n.index,o=n.injector);let s=Ei(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},o,s);return this.insertImpl(a,i,Di(this._hostTNode,s)),a}createComponent(e,r,n,i,o){let s=e&&!nC(e),a;if(s)a=r;else{let p=r||{};a=p.index,n=p.injector,i=p.projectableNodes,o=p.environmentInjector||p.ngModuleRef}let l=s?e:new Ci(Un(e)),c=n||this.parentInjector;if(!o&&l.ngModule==null){let g=(s?c:this.parentInjector).get(Le,null);g&&(o=g)}let u=Un(l.componentType??{}),d=Ei(this._lContainer,u?.id??null),h=d?.firstChild??null,f=l.create(c,i,h,o);return this.insertImpl(f.hostView,a,Di(this._hostTNode,d)),f}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,n){let i=e._lView;if(lC(i)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let l=i[Se],c=new jm(l,l[dt],l[Se]);c.detach(c.indexOf(e))}}let o=this._adjustIndex(r),s=this._lContainer;return ta(s,i,o,n),e.attachToViewContainerRef(),qp(ac(s),o,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=Sp(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=vi(this._lContainer,r);n&&(ws(ac(this._lContainer),r),Qs(n[k],n))}detach(e){let r=this._adjustIndex(e,-1),n=vi(this._lContainer,r);return n&&ws(ac(this._lContainer),r)!=null?new Kn(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function Sp(t){return t[_s]}function ac(t){return t[_s]||(t[_s]=[])}function Vm(t,e){let r,n=e[t.index];return zt(n)?r=n:(r=Cm(n,e,null,t),e[t.index]=r,Xs(e,r)),L0(r,e,t,n),new jm(r,t,e)}function k0(t,e){let r=t[De],n=r.createComment(""),i=et(e,t),o=am(r,i);return xs(r,o,n,Cb(r,i),!1),n}var L0=U0,j0=()=>!1;function V0(t,e,r){return j0(t,e,r)}function U0(t,e,r,n){if(t[$n])return;let i;r.type&8?i=It(n):i=k0(e,r),t[$n]=i}var Hc=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},zc=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let n=e.contentQueries!==null?e.contentQueries[0]:r.length,i=[];for(let o=0;o0)n.push(s[a/2]);else{let c=o[a+1],u=e[-l];for(let d=Ie;de.trim())}function Q0(t,e,r){t.queries===null&&(t.queries=new qc),t.queries.track(new Wc(e,r))}function Wu(t,e){return t.queries.getByIndex(e)}function Z0(t,e){let r=t[k],n=Wu(r,e);return n.crossesNgTemplate?Kc(r,t,e,[]):Um(r,t,n,e)}function xi(t,e){Gt("NgSignals");let r=Ih(t),n=r[tn];return e?.equal&&(n.equal=e.equal),r.set=i=>xl(n,i),r.update=i=>Sh(n,i),r.asReadonly=Y0.bind(r),r}function Y0(){let t=this[tn];if(t.readonlyFn===void 0){let e=()=>this();e[tn]=t,t.readonlyFn=e}return t.readonlyFn}function J0(t){return Object.getPrototypeOf(t.prototype).constructor}function ye(t){let e=J0(t.type),r=!0,n=[t];for(;e;){let i;if(un(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new m(903,!1);i=e.\u0275dir}if(i){if(r){n.push(i);let s=t;s.inputs=us(t.inputs),s.inputTransforms=us(t.inputTransforms),s.declaredInputs=us(t.declaredInputs),s.outputs=us(t.outputs);let a=i.hostBindings;a&&r_(t,a);let l=i.viewQuery,c=i.contentQueries;if(l&&t_(t,l),c&&n_(t,c),X0(t,i),ow(t.outputs,i.outputs),un(i)&&i.data.animation){let u=t.data;u.animation=(u.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;n--){let i=t[n];i.hostVars=e+=i.hostVars,i.hostAttrs=hi(i.hostAttrs,r=hi(r,i.hostAttrs))}}function us(t){return t===Ar?{}:t===Ze?[]:t}function t_(t,e){let r=t.viewQuery;r?t.viewQuery=(n,i)=>{e(n,i),r(n,i)}:t.viewQuery=e}function n_(t,e){let r=t.contentQueries;r?t.contentQueries=(n,i,o)=>{e(n,i,o),r(n,i,o)}:t.contentQueries=e}function r_(t,e){let r=t.hostBindings;r?t.hostBindings=(n,i)=>{e(n,i),r(n,i)}:t.hostBindings=e}var hn=class{},bi=class{};var Qc=class extends hn{constructor(e,r,n,i=!0){super(),this.ngModuleType=e,this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Ps(this);let o=eg(e);this._bootstrapComponents=nm(o.bootstrap),this._r3Injector=Gg(e,r,[{provide:hn,useValue:this},{provide:Fr,useValue:this.componentFactoryResolver},...n],Re(e),new Set(["environment"])),i&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},Zc=class extends bi{constructor(e){super(),this.moduleType=e}create(e){return new Qc(this.moduleType,e,[])}};var Fs=class extends hn{constructor(e){super(),this.componentFactoryResolver=new Ps(this),this.instance=null;let r=new pi([...e.providers,{provide:hn,useValue:this},{provide:Fr,useValue:this.componentFactoryResolver}],e.parent||Du(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Ku(t,e,r=null){return new Fs({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}function Bm(t){return o_(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function i_(t,e){if(Array.isArray(t))for(let r=0;r>17&32767}function h_(t){return(t&2)==2}function p_(t,e){return t&131071|e<<17}function Jc(t){return t|2}function kr(t){return(t&131068)>>2}function lc(t,e){return t&-131069|e<<2}function g_(t){return(t&1)===1}function Xc(t){return t|1}function m_(t,e,r,n,i,o){let s=o?e.classBindings:e.styleBindings,a=Qn(s),l=kr(s);t[n]=r;let c=!1,u;if(Array.isArray(r)){let d=r;u=d[1],(u===null||Si(d,u)>0)&&(c=!0)}else u=r;if(i)if(l!==0){let h=Qn(t[a+1]);t[n+1]=ds(h,a),h!==0&&(t[h+1]=lc(t[h+1],n)),t[a+1]=p_(t[a+1],n)}else t[n+1]=ds(a,0),a!==0&&(t[a+1]=lc(t[a+1],n)),a=n;else t[n+1]=ds(l,0),a===0?a=n:t[l+1]=lc(t[l+1],n),l=n;c&&(t[n+1]=Jc(t[n+1])),Mp(t,u,n,!0),Mp(t,u,n,!1),y_(e,u,t,n,o),s=ds(a,l),o?e.classBindings=s:e.styleBindings=s}function y_(t,e,r,n,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&Si(o,e)>=0&&(r[n+1]=Xc(r[n+1]))}function Mp(t,e,r,n){let i=t[r+1],o=e===null,s=n?Qn(i):kr(i),a=!1;for(;s!==0&&(a===!1||o);){let l=t[s],c=t[s+1];v_(l,e)&&(a=!0,t[s+1]=n?Xc(c):Jc(c)),s=n?Qn(c):kr(c)}a&&(t[r+1]=n?Jc(i):Xc(i))}function v_(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Si(t,e)>=0:!1}function Pe(t,e,r){let n=Q(),i=Ni();if($t(n,i,e)){let o=je(),s=xg();Bb(o,s,n,t,e,n[De],r,!1)}return Pe}function Tp(t,e,r,n,i){let o=e.inputs,s=i?"class":"style";Hu(t,r,o[s],s,n)}function Ur(t,e){return D_(t,e,null,!0),Ur}function D_(t,e,r,n){let i=Q(),o=je(),s=_g(2);if(o.firstUpdatePass&&w_(o,t,s,n),e!==ht&&$t(i,s,e)){let a=o.data[yn()];S_(o,a,i,i[De],t,i[s+1]=M_(e,r),n,s)}}function E_(t,e){return e>=t.expandoStartIndex}function w_(t,e,r,n){let i=t.data;if(i[r+1]===null){let o=i[yn()],s=E_(t,r);T_(o,n)&&e===null&&!s&&(e=!1),e=C_(i,o,e,n),m_(i,o,e,r,s,n)}}function C_(t,e,r,n){let i=_C(t),o=n?e.residualClasses:e.residualStyles;if(i===null)(n?e.classBindings:e.styleBindings)===0&&(r=cc(null,t,e,r,n),r=_i(r,e.attrs,n),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(r=cc(i,t,e,r,n),o===null){let l=b_(t,e,n);l!==void 0&&Array.isArray(l)&&(l=cc(null,t,e,l[1],n),l=_i(l,e.attrs,n),__(t,e,n,l))}else o=I_(t,e,n)}return o!==void 0&&(n?e.residualClasses=o:e.residualStyles=o),r}function b_(t,e,r){let n=r?e.classBindings:e.styleBindings;if(kr(n)!==0)return t[Qn(n)]}function __(t,e,r,n){let i=r?e.classBindings:e.styleBindings;t[Qn(i)]=n}function I_(t,e,r){let n,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let l=t[i],c=Array.isArray(l),u=c?l[1]:l,d=u===null,h=r[i+1];h===ht&&(h=d?Ze:void 0);let f=d?Xl(h,n):u===n?h:void 0;if(c&&!ks(f)&&(f=Xl(l,n)),ks(f)&&(a=f,s))return a;let p=t[i+1];i=s?Qn(p):kr(p)}if(e!==null){let l=o?e.residualClasses:e.residualStyles;l!=null&&(a=Xl(l,n))}return a}function ks(t){return t!==void 0}function M_(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=Re(Lu(t)))),t}function T_(t,e){return(t.flags&(e?8:16))!==0}var eu=class{destroy(e){}updateValue(e,r){}swap(e,r){let n=Math.min(e,r),i=Math.max(e,r),o=this.detach(i);if(i-n>1){let s=this.detach(n);this.attach(n,o),this.attach(i,s)}else this.attach(n,o)}move(e,r){this.attach(r,this.detach(e))}};function uc(t,e,r,n,i){return t===r&&Object.is(e,n)?1:Object.is(i(t,e),i(r,n))?-1:0}function A_(t,e,r){let n,i,o=0,s=t.length-1,a=void 0;if(Array.isArray(e)){let l=e.length-1;for(;o<=s&&o<=l;){let c=t.at(o),u=e[o],d=uc(o,c,o,u,r);if(d!==0){d<0&&t.updateValue(o,u),o++;continue}let h=t.at(s),f=e[l],p=uc(s,h,l,f,r);if(p!==0){p<0&&t.updateValue(s,f),s--,l--;continue}let g=r(o,c),y=r(s,h),D=r(o,u);if(Object.is(D,y)){let P=r(l,f);Object.is(P,g)?(t.swap(o,s),t.updateValue(s,f),l--,s--):t.move(s,o),t.updateValue(o,u),o++;continue}if(n??=new Ls,i??=xp(t,o,s,r),tu(t,n,o,D))t.updateValue(o,u),o++,s++;else if(i.has(D))n.set(g,t.detach(o)),s--;else{let P=t.create(o,e[o]);t.attach(o,P),o++,s++}}for(;o<=l;)Np(t,n,r,o,e[o]),o++}else if(e!=null){let l=e[Symbol.iterator](),c=l.next();for(;!c.done&&o<=s;){let u=t.at(o),d=c.value,h=uc(o,u,o,d,r);if(h!==0)h<0&&t.updateValue(o,d),o++,c=l.next();else{n??=new Ls,i??=xp(t,o,s,r);let f=r(o,d);if(tu(t,n,o,f))t.updateValue(o,d),o++,s++,c=l.next();else if(!i.has(f))t.attach(o,t.create(o,d)),o++,s++,c=l.next();else{let p=r(o,u);n.set(p,t.detach(o)),s--}}}for(;!c.done;)Np(t,n,r,t.length,c.value),c=l.next()}for(;o<=s;)t.destroy(t.detach(s--));n?.forEach(l=>{t.destroy(l)})}function tu(t,e,r,n){return e!==void 0&&e.has(n)?(t.attach(r,e.get(n)),e.delete(n),!0):!1}function Np(t,e,r,n,i){if(tu(t,e,n,r(n,i)))t.updateValue(n,i);else{let o=t.create(n,i);t.attach(n,o)}}function xp(t,e,r,n){let i=new Set;for(let o=e;o<=r;o++)i.add(n(o,t.at(o)));return i}var Ls=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let r=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(r)?(this.kvMap.set(e,this._vMap.get(r)),this._vMap.delete(r)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,r){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let i=this._vMap;for(;i.has(n);)n=i.get(n);i.set(n,r)}else this.kvMap.set(e,r)}forEach(e){for(let[r,n]of this.kvMap)if(e(n,r),this._vMap!==void 0){let i=this._vMap;for(;i.has(n);)n=i.get(n),e(n,r)}}};function ra(t,e){Gt("NgControlFlow");let r=Q(),n=Ni(),i=r[n]!==ht?r[n]:-1,o=i!==-1?js(r,ct+i):void 0,s=0;if($t(r,n,t)){let a=G(null);try{if(o!==void 0&&Am(o,s),t!==-1){let l=ct+t,c=js(r,l),u=ou(r[k],l),d=Ei(c,u.tView.ssrId),h=ea(r,u,e,{dehydratedView:d});ta(c,h,s,Di(u,d))}}finally{G(a)}}else if(o!==void 0){let a=Tm(o,s);a!==void 0&&(a[_e]=e)}}var nu=class{constructor(e,r,n){this.lContainer=e,this.$implicit=r,this.$index=n}get $count(){return this.lContainer.length-Ie}};function Hm(t){return t}var ru=class{constructor(e,r,n){this.hasEmptyBlock=e,this.trackByFn=r,this.liveCollection=n}};function Zu(t,e,r,n,i,o,s,a,l,c,u,d,h){Gt("NgControlFlow");let f=Q(),p=je(),g=l!==void 0,y=Q(),D=a?s.bind(y[lt][_e]):s,P=new ru(g,D);y[ct+t]=P,Yc(f,p,t+1,e,r,n,i,Pr(p.consts,o)),g&&Yc(f,p,t+2,l,c,u,d,Pr(p.consts,h))}var iu=class extends eu{constructor(e,r,n){super(),this.lContainer=e,this.hostLView=r,this.templateTNode=n,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Ie}at(e){return this.getLView(e)[_e].$implicit}attach(e,r){let n=r[gi];this.needsIndexUpdate||=e!==this.length,ta(this.lContainer,r,e,Di(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,N_(this.lContainer,e)}create(e,r){let n=Ei(this.lContainer,this.templateTNode.tView.ssrId),i=ea(this.hostLView,this.templateTNode,new nu(this.lContainer,r,e),{dehydratedView:n});return this.operationsCounter?.recordCreate(),i}destroy(e){Qs(e[k],e),this.operationsCounter?.recordDestroy()}updateValue(e,r){this.getLView(e)[_e].$implicit=r}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(Tu(!0),rm(n,i,TC()));function Oi(){return Q()}var Vs="en-US";var P_=Vs;function F_(t){typeof t=="string"&&(P_=t.toLowerCase().replace(/_/g,"-"))}var k_=(t,e,r)=>{};function Ee(t,e,r,n){let i=Q(),o=je(),s=Be();return j_(o,i,i[De],s,t,e,n),Ee}function L_(t,e,r,n){let i=t.cleanup;if(i!=null)for(let o=0;ol?a[l]:null}typeof s=="string"&&(o+=2)}return null}function j_(t,e,r,n,i,o,s){let a=Eu(n),c=t.firstCreatePass&&Im(t),u=e[_e],d=_m(e),h=!0;if(n.type&3||s){let g=et(n,e),y=s?s(g):g,D=d.length,P=s?F=>s(It(F[n.index])):n.index,j=null;if(!s&&a&&(j=L_(t,e,i,n.index)),j!==null){let F=j.__ngLastListenerFn__||j;F.__ngNextListenerFn__=o,j.__ngLastListenerFn__=o,h=!1}else{o=Op(n,e,u,o),k_(g,i,o);let F=r.listen(y,i,o);d.push(o,F),c&&c.push(i,P,D,D+1)}}else o=Op(n,e,u,o);let f=n.outputs,p;if(h&&f!==null&&(p=f[i])){let g=p.length;if(g)for(let y=0;y-1?mn(t.index,e):e;Gu(s,5);let a=Rp(e,r,n,o),l=i.__ngNextListenerFn__;for(;l;)a=Rp(e,r,l,o)&&a,l=l.__ngNextListenerFn__;return a}}function $e(t=1){return SC(t)}function zm(t,e,r){W0(t,e,r)}function Ju(t){let e=Q(),r=je(),n=Ig();_u(n+1);let i=Wu(r,n);if(t.dirty&&aC(e)===((i.metadata.flags&2)===2)){if(i.matches===null)t.reset([]);else{let o=Z0(e,n);t.reset(o,XC),t.notifyOnChanges()}return!0}return!1}function Xu(){return G0(Q(),Ig())}function b(t,e=""){let r=Q(),n=je(),i=t+ct,o=n.firstCreatePass?Js(n,i,1,e,null):n.data[i],s=V_(n,r,o,e,t);r[i]=s,Mu()&&Uu(n,r,s,o),Ai(o,!1)}var V_=(t,e,r,n,i)=>(Tu(!0),fb(e[De],n));function tt(t){return ia("",t,""),tt}function ia(t,e,r){let n=Q(),i=d_(n,t,e,r);return i!==ht&&Mm(n,yn(),i),ia}function oa(t,e,r,n,i){let o=Q(),s=f_(o,t,e,r,n,i);return s!==ht&&Mm(o,yn(),s),oa}function U_(t,e,r){let n=je();if(n.firstCreatePass){let i=un(t);su(r,n.data,n.blueprint,i,!0),su(e,n.data,n.blueprint,i,!1)}}function su(t,e,r,n,i){if(t=xe(t),Array.isArray(t))for(let o=0;o>20;if(xr(t)||!t.multi){let f=new Gn(c,i,M),p=fc(l,e,i?u:u+h,d);p===-1?(Sc(Ts(a,s),o,l),dc(o,t,e.length),e.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(f),s.push(f)):(r[p]=f,s[p]=f)}else{let f=fc(l,e,u+h,d),p=fc(l,e,u,u+h),g=f>=0&&r[f],y=p>=0&&r[p];if(i&&!y||!i&&!g){Sc(Ts(a,s),o,l);let D=H_(i?$_:B_,r.length,i,n,c);!i&&y&&(r[p].providerFactory=D),dc(o,t,e.length,0),e.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(D),s.push(D)}else{let D=Gm(r[i?p:f],c,!i&&n);dc(o,t,f>-1?f:p,D)}!i&&n&&y&&r[p].componentProviders++}}}function dc(t,e,r,n){let i=xr(e),o=Kw(e);if(i||o){let l=(o?xe(e.useClass):e).prototype.ngOnDestroy;if(l){let c=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){let u=c.indexOf(r);u===-1?c.push(r,[n,l]):c[u+1].push(n,l)}else c.push(r,l)}}}function Gm(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function fc(t,e,r,n){for(let i=r;i{r.providersResolver=(n,i)=>U_(n,i?i(t):t,e)}}var z_=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let i=rg(!1,n.type),o=i.length>0?Ku([i],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=I({token:e,providedIn:"environment",factory:()=>new e(T(Le))});let t=e;return t})();function En(t){Gt("NgStandalone"),t.getStandaloneInjector=e=>e.get(z_).getOrCreateStandaloneInjector(t)}function qm(t,e,r){let n=bu()+t,i=Q();return i[n]===ht?Qu(i,n,r?e.call(r):e()):s_(i,n)}function Wm(t,e,r,n){return G_(Q(),bu(),t,e,r,n)}function Pi(t,e,r,n,i){return q_(Q(),bu(),t,e,r,n,i)}function Km(t,e){let r=t[e];return r===ht?void 0:r}function G_(t,e,r,n,i,o){let s=e+r;return $t(t,s,i)?Qu(t,s+1,o?n.call(o,i):n(i)):Km(t,s+1)}function q_(t,e,r,n,i,o,s){let a=e+r;return $m(t,a,i,o)?Qu(t,a+2,s?n.call(s,i,o):n(i,o)):Km(t,a+2)}function Qm(t,e){return na(t,e)}var sa=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var ed=new S(""),Fi=new S(""),aa=(()=>{let e=class e{constructor(n,i,o){this._ngZone=n,this.registry=i,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,td||(W_(o),o.addToWindow(i)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{te.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>i.updateCb&&i.updateCb(n)?(clearTimeout(i.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n()},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:o})}whenStable(n,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,o),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,i,o){return[]}};e.\u0275fac=function(i){return new(i||e)(T(te),T(la),T(Fi))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),la=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return td?.findTestabilityInTree(this,n,i)??null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function W_(t){td=t}var td;function Zn(t){return!!t&&typeof t.then=="function"}function Zm(t){return!!t&&typeof t.subscribe=="function"}var Ym=new S(""),Jm=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i}),this.appInits=v(Ym,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(Zn(s))n.push(s);else if(Zm(s)){let a=new Promise((l,c)=>{s.subscribe({complete:l,error:c})});n.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),n.length===0&&i(),this.initialized=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ca=new S("");function K_(){_h(()=>{throw new m(600,!1)})}function Q_(t){return t.isBoundToModule}var Z_=10;function Y_(t,e,r){try{let n=r();return Zn(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}var qt=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=v(YC),this.afterRenderEffectManager=v(Lm),this.zonelessEnabled=v(qu),this.externalTestViews=new Set,this.beforeRender=new le,this.afterTick=new le,this.componentTypes=[],this.components=[],this.isStable=v(vn).hasPendingTasks.pipe(R(n=>!n)),this._injector=v(Le)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(i=>{n=this.isStable.subscribe({next:o=>{o&&i()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,i){let o=n instanceof Os;if(!this._injector.get(Jm).done){let f=!o&&Xp(n),p=!1;throw new m(405,p)}let a;o?a=n:a=this._injector.get(Fr).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let l=Q_(a)?void 0:this._injector.get(hn),c=i||a.selector,u=a.create(Vt.NULL,[],c,l),d=u.location.nativeElement,h=u.injector.get(ed,null);return h?.registerApplication(d),u.onDestroy(()=>{this.detachView(u.hostView),ys(this.components,u),h?.unregisterApplication(d)}),this._loadComponent(u),u}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new m(101,!1);let i=G(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(o){this.internalErrorHandler(o)}finally{this._runningTick=!1,G(i),this.afterTick.next()}}detectChangesInAttachedViews(n){let i=null;this._injector.destroyed||(i=this._injector.get(fn,null,{optional:!0}));let o=0,s=this.afterRenderEffectManager;for(;oyi(l))&&(s.execute(),!this.allViews.some(({_lView:l})=>yi(l))))break}}attachView(n){let i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){let i=n;ys(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let i=this._injector.get(ca,[]);[...this._bootstrapListeners,...i].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>ys(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new m(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function ys(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function J_(t,e,r,n){if(!r&&!yi(t))return;Rm(t,e,r&&!n?0:1)}var lu=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},nd=(()=>{let e=class e{compileModuleSync(n){return new Zc(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let i=this.compileModuleSync(n),o=eg(n),s=nm(o.declarations).reduce((a,l)=>{let c=Un(l);return c&&a.push(new Ci(c)),a},[]);return new lu(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var X_=(()=>{let e=class e{constructor(){this.zone=v(te),this.changeDetectionScheduler=v(wi),this.applicationRef=v(qt)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),eI=new S("",{factory:()=>!1});function Xm({ngZoneFactory:t,ignoreChangesOutsideZone:e}){return t??=()=>new te(ty()),[{provide:te,useFactory:t},{provide:Nr,multi:!0,useFactory:()=>{let r=v(X_,{optional:!0});return()=>r.initialize()}},{provide:Nr,multi:!0,useFactory:()=>{let r=v(tI);return()=>{r.initialize()}}},e===!0?{provide:km,useValue:!0}:[]]}function ey(t){let e=t?.ignoreChangesOutsideZone,r=Xm({ngZoneFactory:()=>{let n=ty(t);return n.shouldCoalesceEventChangeDetection&&Gt("NgZone_CoalesceEvent"),new te(n)},ignoreChangesOutsideZone:e});return Lr([{provide:eI,useValue:!0},{provide:qu,useValue:!1},r])}function ty(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var tI=(()=>{let e=class e{constructor(){this.subscription=new se,this.initialized=!1,this.zone=v(te),this.pendingTasks=v(vn)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{te.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{te.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var nI=(()=>{let e=class e{constructor(){this.appRef=v(qt),this.taskService=v(vn),this.ngZone=v(te),this.zonelessEnabled=v(qu),this.disableScheduling=v(km,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new se,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Ns):null,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof xc||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let i=this.useMicrotaskScheduler?mp:Wg;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=i(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=i(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Ns+this.angularZoneId))}tick(n){if(this.runningTick||this.appRef.destroyed)return;let i=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(n)},void 0,this.schedulerTickApplyArgs)}catch(o){throw this.taskService.remove(i),o}finally{this.cleanup()}this.useMicrotaskScheduler=!0,mp(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(i)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function rI(){return typeof $localize<"u"&&$localize.locale||Vs}var rd=new S("",{providedIn:"root",factory:()=>v(rd,H.Optional|H.SkipSelf)||rI()});var ny=new S("");function fs(t){return!!t.platformInjector}function iI(t){let e=fs(t)?t.r3Injector:t.moduleRef.injector,r=e.get(te);return r.run(()=>{fs(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=e.get(dn,null),i;if(r.runOutsideAngular(()=>{i=r.onError.subscribe({next:o=>{n.handleError(o)}})}),fs(t)){let o=()=>e.destroy(),s=t.platformInjector.get(ny);s.add(o),e.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else t.moduleRef.onDestroy(()=>{ys(t.allPlatformModules,t.moduleRef),i.unsubscribe()});return Y_(n,r,()=>{let o=e.get(Jm);return o.runInitializers(),o.donePromise.then(()=>{let s=e.get(rd,Vs);if(F_(s||Vs),fs(t)){let a=e.get(qt);return t.rootComponent!==void 0&&a.bootstrap(t.rootComponent),a}else return oI(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function oI(t,e){let r=t.injector.get(qt);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(n=>r.bootstrap(n));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(r);else throw new m(-403,!1);e.push(t)}var vs=null;function sI(t=[],e){return Vt.create({name:e,providers:[{provide:zs,useValue:"platform"},{provide:ny,useValue:new Set([()=>vs=null])},...t]})}function aI(t=[]){if(vs)return vs;let e=sI(t);return vs=e,K_(),lI(e),e}function lI(t){t.get(Ou,null)?.forEach(r=>r())}var wn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=cI;let t=e;return t})();function cI(t){return uI(Be(),Q(),(t&16)===16)}function uI(t,e,r){if(qs(t)&&!r){let n=mn(t.index,e);return new Kn(n,n)}else if(t.type&175){let n=e[lt];return new Kn(n,e)}return null}var cu=class{constructor(){}supports(e){return Bm(e)}create(e){return new uu(e)}},dI=(t,e)=>e,uu=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||dI}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,n=this._removalsHead,i=0,o=null;for(;r||n;){let s=!n||r&&r.currentIndex{s=this._trackByFn(i,a),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,a,s,i),n=!0):(n&&(r=this._verifyReinsertion(r,a,s,i)),Object.is(r.item,a)||this._addIdentityChange(r,a)),r=r._next,i++}),this.length=i;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,r,n,i){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,o,i)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,i),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,o,i)):e=this._addAfter(new du(r,n),o,i)),e}_verifyReinsertion(e,r,n,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;e!==null;){let r=e._next;this._addToRemovals(this._unlink(e)),e=r}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,r,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let i=e._prevRemoved,o=e._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(e,r,n),this._addToMoves(e,n),e}_moveAfter(e,r,n){return this._unlink(e),this._insertAfter(e,r,n),this._addToMoves(e,n),e}_addAfter(e,r,n){return this._insertAfter(e,r,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,n){let i=r===null?this._itHead:r._next;return e._next=i,e._prev=r,i===null?this._itTail=e:i._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new Us),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,n=e._next;return r===null?this._itHead=n:r._next=n,n===null?this._itTail=r:n._prev=r,e}_addToMoves(e,r){return e.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Us),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,r){return e.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},du=class{constructor(e,r){this.item=e,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},fu=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,r){let n;for(n=this._head;n!==null;n=n._nextDup)if((r===null||r<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let r=e._prevDup,n=e._nextDup;return r===null?this._head=n:r._nextDup=n,n===null?this._tail=r:n._prevDup=r,this._head===null}},Us=class{constructor(){this.map=new Map}put(e){let r=e.trackById,n=this.map.get(r);n||(n=new fu,this.map.set(r,n)),n.add(e)}get(e,r){let n=e,i=this.map.get(n);return i?i.get(e,r):null}remove(e){let r=e.trackById;return this.map.get(r).remove(e)&&this.map.delete(r),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Pp(t,e,r){let n=t.previousIndex;if(n===null)return n;let i=0;return r&&n{let e=class e{constructor(n){this.factories=n}static create(n,i){if(i!=null){let o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Fp()),deps:[[e,new Gp,new pu]]}}find(n){let i=this.factories.find(o=>o.supports(n));if(i!=null)return i;throw new m(901,!1)}};e.\u0275prov=I({token:e,providedIn:"root",factory:Fp});let t=e;return t})();var ry=(()=>{let e=class e{constructor(n){}};e.\u0275fac=function(i){return new(i||e)(T(qt))},e.\u0275mod=Xe({type:e}),e.\u0275inj=Je({});let t=e;return t})();function iy(t){try{let{rootComponent:e,appProviders:r,platformProviders:n}=t,i=aI(n),o=[Xm({}),{provide:wi,useExisting:nI},...r||[]],s=new Fs({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1});return iI({r3Injector:s.injector,platformInjector:i,rootComponent:e})}catch(e){return Promise.reject(e)}}var oy=new S("");function ki(t,e){Gt("NgSignals");let r=wh(t);return e?.equal&&(r[tn].equal=e.equal),r}function Wt(t){let e=G(null);try{return t()}finally{G(e)}}var fy=null;function At(){return fy}function hy(t){fy??=t}var ua=class{};var we=new S(""),py=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>v(gI),providedIn:"platform"});let t=e;return t})();var gI=(()=>{let e=class e extends py{constructor(){super(),this._doc=v(we),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return At().getBaseHref(this._doc)}onPopState(n){let i=At().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",n,!1),()=>i.removeEventListener("popstate",n)}onHashChange(n){let i=At().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",n,!1),()=>i.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,i,o){this._history.pushState(n,i,o)}replaceState(n,i,o){this._history.replaceState(n,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function gy(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function sy(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,n=r-(t[r-1]==="/"?1:0);return t.slice(0,n)+t.slice(r)}function Yn(t){return t&&t[0]!=="?"?"?"+t:t}var da=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>v(my),providedIn:"root"});let t=e;return t})(),mI=new S(""),my=(()=>{let e=class e extends da{constructor(n,i){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??v(we).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return gy(this._baseHref,n)}path(n=!1){let i=this._platformLocation.pathname+Yn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${i}${o}`:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+Yn(s));this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+Yn(s));this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(T(py),T(mI,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Li=(()=>{let e=class e{constructor(n){this._subject=new ie,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let i=this._locationStrategy.getBaseHref();this._basePath=DI(sy(ay(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,i=""){return this.path()==this.normalize(n+Yn(i))}normalize(n){return e.stripTrailingSlash(vI(this._basePath,ay(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,i="",o=null){this._locationStrategy.pushState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Yn(i)),o)}replaceState(n,i="",o=null){this._locationStrategy.replaceState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Yn(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",i){this._urlChangeListeners.forEach(o=>o(n,i))}subscribe(n,i,o){return this._subject.subscribe({next:n,error:i,complete:o})}};e.normalizeQueryParams=Yn,e.joinWithSlash=gy,e.stripTrailingSlash=sy,e.\u0275fac=function(i){return new(i||e)(T(da))},e.\u0275prov=I({token:e,factory:()=>yI(),providedIn:"root"});let t=e;return t})();function yI(){return new Li(T(da))}function vI(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function ay(t){return t.replace(/\/index.html$/,"")}function DI(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}function fa(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let n=r.indexOf("="),[i,o]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var sd=/\s+/,ly=[],yy=(()=>{let e=class e{constructor(n,i){this._ngEl=n,this._renderer=i,this.initialClasses=ly,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(sd):ly}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(sd):n}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let i of n)this._updateState(i,!0);else if(n!=null)for(let i of Object.keys(n))this._updateState(i,!!n[i]);this._applyStateDiff()}_updateState(n,i){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(n,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let i=n[0],o=n[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(n,i){n=n.trim(),n.length>0&&n.split(sd).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};e.\u0275fac=function(i){return new(i||e)(M(Me),M(Mt))},e.\u0275dir=J({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var ad=class{constructor(e,r,n,i){this.$implicit=e,this.ngForOf=r,this.index=n,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},vy=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,i,o){this._viewContainer=n,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let i=this._viewContainer;n.forEachOperation((o,s,a)=>{if(o.previousIndex==null)i.createEmbeddedView(this._template,new ad(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(s===null?void 0:s);else if(s!==null){let l=i.get(s);i.move(l,a),cy(l,o)}});for(let o=0,s=i.length;o{let s=i.get(o.currentIndex);cy(s,o)})}static ngTemplateContextGuard(n,i){return!0}};e.\u0275fac=function(i){return new(i||e)(M(pt),M(Bt),M(id))},e.\u0275dir=J({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function cy(t,e){t.context.$implicit=e.item}var Dy=(()=>{let e=class e{constructor(n,i){this._viewContainer=n,this._context=new ld,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){uy("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){uy("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,i){return!0}};e.\u0275fac=function(i){return new(i||e)(M(pt),M(Bt))},e.\u0275dir=J({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),ld=class{constructor(){this.$implicit=null,this.ngIf=null}};function uy(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${Re(e)}'.`)}var Ey=(()=>{let e=class e{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(this._shouldRecreateView(n)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,i,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,o):!1,get:(n,i,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,o)}})}};e.\u0275fac=function(i){return new(i||e)(M(pt))},e.\u0275dir=J({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[St]});let t=e;return t})();var ha=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Xe({type:e}),e.\u0275inj=Je({});let t=e;return t})(),wy="browser",EI="server";function pa(t){return t===EI}var Br=class{};var Vi=class{},ma=class{},Kt=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` +`).forEach(r=>{let n=r.indexOf(":");if(n>0){let i=r.slice(0,n),o=i.toLowerCase(),s=r.slice(n+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new t;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,r);let i=(e.op==="a"?this.headers.get(r):void 0)||[];i.push(...n),this.headers.set(r,i);break;case"d":let o=e.value;if(!o)this.headers.delete(r),this.normalizedNames.delete(r);else{let s=this.headers.get(r);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,s)}break}}setHeaderEntries(e,r){let n=(Array.isArray(r)?r:[r]).map(o=>o.toString()),i=e.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var dd=class{encodeKey(e){return by(e)}encodeValue(e){return by(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function wI(t,e){let r=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],l=r.get(s)||[];l.push(a),r.set(s,l)}),r}var CI=/%(\d[a-f0-9])/gi,bI={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function by(t){return encodeURIComponent(t).replace(CI,(e,r)=>bI[r]??e)}function ga(t){return`${t}`}var Nt=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new dd,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=wI(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let n=e.fromObject[r],i=Array.isArray(n)?n.map(ga):[ga(n)];this.map.set(r,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(n=>{let i=e[n];Array.isArray(i)?i.forEach(o=>{r.push({param:n,value:o,op:"a"})}):r.push({param:n,value:i,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(n=>r+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new t({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(ga(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],i=n.indexOf(ga(e.value));i!==-1&&n.splice(i,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var fd=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function _I(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function _y(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Iy(t){return typeof Blob<"u"&&t instanceof Blob}function Sy(t){return typeof FormData<"u"&&t instanceof FormData}function II(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var ji=class t{constructor(e,r,n,i){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(_I(this.method)||i?(this.body=n!==void 0?n:null,o=i):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new Kt,this.context??=new fd,!this.params)this.params=new Nt,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),l=a===-1?"?":ah.set(f,e.setHeaders[f]),c)),e.setParams&&(u=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),u)),new t(r,n,s,{params:u,headers:c,context:d,reportProgress:l,responseType:i,withCredentials:a,transferCache:o})}},bn=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(bn||{}),Ui=class{constructor(e,r=200,n="OK"){this.headers=e.headers||new Kt,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},ya=class t extends Ui{constructor(e={}){super(e),this.type=bn.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Bi=class t extends Ui{constructor(e={}){super(e),this.type=bn.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Cn=class extends Ui{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},Ny=200,SI=204;function ud(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var $i=(()=>{let e=class e{constructor(n){this.handler=n}request(n,i,o={}){let s;if(n instanceof ji)s=n;else{let c;o.headers instanceof Kt?c=o.headers:c=new Kt(o.headers);let u;o.params&&(o.params instanceof Nt?u=o.params:u=new Nt({fromObject:o.params})),s=new ji(n,i,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=x(s).pipe(rn(c=>this.handler.handle(c)));if(n instanceof ji||o.observe==="events")return a;let l=a.pipe(me(c=>c instanceof Bi));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return l.pipe(R(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return l.pipe(R(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return l.pipe(R(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return l.pipe(R(c=>c.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,i={}){return this.request("DELETE",n,i)}get(n,i={}){return this.request("GET",n,i)}head(n,i={}){return this.request("HEAD",n,i)}jsonp(n,i){return this.request("JSONP",n,{params:new Nt().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,i={}){return this.request("OPTIONS",n,i)}patch(n,i,o={}){return this.request("PATCH",n,ud(o,i))}post(n,i,o={}){return this.request("POST",n,ud(o,i))}put(n,i,o={}){return this.request("PUT",n,ud(o,i))}};e.\u0275fac=function(i){return new(i||e)(T(Vi))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),MI=/^\)\]\}',?\n/,TI="X-Request-URL";function My(t){if(t.url)return t.url;let e=TI.toLocaleLowerCase();return t.headers.get(e)}var AI=(()=>{let e=class e{constructor(){this.fetchImpl=v(hd,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=v(te)}handle(n){return new q(i=>{let o=new AbortController;return this.doRequest(n,o.signal,i).then(pd,s=>i.error(new Cn({error:s}))),()=>o.abort()})}doRequest(n,i,o){return To(this,null,function*(){let s=this.createRequestInit(n),a;try{let p=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,E({signal:i},s)));NI(p),o.next({type:bn.Sent}),a=yield p}catch(p){o.error(new Cn({error:p,status:p.status??0,statusText:p.statusText,url:n.urlWithParams,headers:p.headers}));return}let l=new Kt(a.headers),c=a.statusText,u=My(a)??n.urlWithParams,d=a.status,h=null;if(n.reportProgress&&o.next(new ya({headers:l,status:d,statusText:c,url:u})),a.body){let p=a.headers.get("content-length"),g=[],y=a.body.getReader(),D=0,P,j,F=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>To(this,null,function*(){for(;;){let{done:Z,value:ee}=yield y.read();if(Z)break;if(g.push(ee),D+=ee.length,n.reportProgress){j=n.responseType==="text"?(j??"")+(P??=new TextDecoder).decode(ee,{stream:!0}):void 0;let ae=()=>o.next({type:bn.DownloadProgress,total:p?+p:void 0,loaded:D,partialText:j});F?F.run(ae):ae()}}}));let fe=this.concatChunks(g,D);try{let Z=a.headers.get("Content-Type")??"";h=this.parseBody(n,fe,Z)}catch(Z){o.error(new Cn({error:Z,headers:new Kt(a.headers),status:a.status,statusText:a.statusText,url:My(a)??n.urlWithParams}));return}}d===0&&(d=h?Ny:0),d>=200&&d<300?(o.next(new Bi({body:h,headers:l,status:d,statusText:c,url:u})),o.complete()):o.error(new Cn({error:h,headers:l,status:d,statusText:c,url:u}))})}parseBody(n,i,o){switch(n.responseType){case"json":let s=new TextDecoder().decode(i).replace(MI,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(i);case"blob":return new Blob([i],{type:o});case"arraybuffer":return i.buffer}}createRequestInit(n){let i={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((s,a)=>i[s]=a.join(",")),n.headers.has("Accept")||(i.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let s=n.detectContentTypeHeader();s!==null&&(i["Content-Type"]=s)}return{body:n.serializeBody(),method:n.method,headers:i,credentials:o}}concatChunks(n,i){let o=new Uint8Array(i),s=0;for(let a of n)o.set(a,s),s+=a.length;return o}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),hd=class{};function pd(){}function NI(t){t.then(pd,pd)}function xI(t,e){return e(t)}function RI(t,e,r){return(n,i)=>ut(r,()=>e(n,o=>t(o,i)))}var xy=new S(""),OI=new S(""),PI=new S("",{providedIn:"root",factory:()=>!0});var Ty=(()=>{let e=class e extends Vi{constructor(n,i){super(),this.backend=n,this.injector=i,this.chain=null,this.pendingTasks=v(vn),this.contributeToStability=v(PI)}handle(n){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(xy),...this.injector.get(OI,[])]));this.chain=i.reduceRight((o,s)=>RI(o,s,this.injector),xI)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Ln(()=>this.pendingTasks.remove(i)))}else return this.chain(n,i=>this.backend.handle(i))}};e.\u0275fac=function(i){return new(i||e)(T(ma),T(Le))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})();var FI=/^\)\]\}',?\n/;function kI(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var Ay=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new m(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?re(i.\u0275loadImpl()):x(null)).pipe(Ne(()=>new q(s=>{let a=i.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((y,D)=>a.setRequestHeader(y,D.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let y=n.detectContentTypeHeader();y!==null&&a.setRequestHeader("Content-Type",y)}if(n.responseType){let y=n.responseType.toLowerCase();a.responseType=y!=="json"?y:"text"}let l=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let y=a.statusText||"OK",D=new Kt(a.getAllResponseHeaders()),P=kI(a)||n.url;return c=new ya({headers:D,status:a.status,statusText:y,url:P}),c},d=()=>{let{headers:y,status:D,statusText:P,url:j}=u(),F=null;D!==SI&&(F=typeof a.response>"u"?a.responseText:a.response),D===0&&(D=F?Ny:0);let fe=D>=200&&D<300;if(n.responseType==="json"&&typeof F=="string"){let Z=F;F=F.replace(FI,"");try{F=F!==""?JSON.parse(F):null}catch(ee){F=Z,fe&&(fe=!1,F={error:ee,text:F})}}fe?(s.next(new Bi({body:F,headers:y,status:D,statusText:P,url:j||void 0})),s.complete()):s.error(new Cn({error:F,headers:y,status:D,statusText:P,url:j||void 0}))},h=y=>{let{url:D}=u(),P=new Cn({error:y,status:a.status||0,statusText:a.statusText||"Unknown Error",url:D||void 0});s.error(P)},f=!1,p=y=>{f||(s.next(u()),f=!0);let D={type:bn.DownloadProgress,loaded:y.loaded};y.lengthComputable&&(D.total=y.total),n.responseType==="text"&&a.responseText&&(D.partialText=a.responseText),s.next(D)},g=y=>{let D={type:bn.UploadProgress,loaded:y.loaded};y.lengthComputable&&(D.total=y.total),s.next(D)};return a.addEventListener("load",d),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),n.reportProgress&&(a.addEventListener("progress",p),l!==null&&a.upload&&a.upload.addEventListener("progress",g)),a.send(l),s.next({type:bn.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",d),a.removeEventListener("timeout",h),n.reportProgress&&(a.removeEventListener("progress",p),l!==null&&a.upload&&a.upload.removeEventListener("progress",g)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(i){return new(i||e)(T(Br))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),Ry=new S(""),LI="XSRF-TOKEN",jI=new S("",{providedIn:"root",factory:()=>LI}),VI="X-XSRF-TOKEN",UI=new S("",{providedIn:"root",factory:()=>VI}),va=class{},BI=(()=>{let e=class e{constructor(n,i,o){this.doc=n,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=fa(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(i){return new(i||e)(T(we),T(Dn),T(jI))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})();function $I(t,e){let r=t.url.toLowerCase();if(!v(Ry)||t.method==="GET"||t.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(t);let n=v(va).getToken(),i=v(UI);return n!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),e(t)}function Oy(...t){let e=[$i,Ay,Ty,{provide:Vi,useExisting:Ty},{provide:ma,useFactory:()=>v(AI,{optional:!0})??v(Ay)},{provide:xy,useValue:$I,multi:!0},{provide:Ry,useValue:!0},{provide:va,useClass:BI}];for(let r of t)e.push(...r.\u0275providers);return Lr(e)}var yd=class extends ua{constructor(){super(...arguments),this.supportsDOMEvents=!0}},vd=class t extends yd{static makeCurrent(){hy(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.remove()}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=HI();return r==null?null:zI(r)}resetBaseElement(){Hi=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return fa(document.cookie,e)}},Hi=null;function HI(){return Hi=Hi||document.querySelector("base"),Hi?Hi.getAttribute("href"):null}function zI(t){return new URL(t,document.baseURI).pathname}var Dd=class{addToWindow(e){pn.getAngularTestability=(n,i=!0)=>{let o=e.findTestabilityInTree(n,i);if(o==null)throw new m(5103,!1);return o},pn.getAllAngularTestabilities=()=>e.getAllTestabilities(),pn.getAllAngularRootElements=()=>e.getAllRootElements();let r=n=>{let i=pn.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&n()};i.forEach(a=>{a.whenStable(s)})};pn.frameworkStabilizers||(pn.frameworkStabilizers=[]),pn.frameworkStabilizers.push(r)}findTestabilityInTree(e,r,n){if(r==null)return null;let i=e.getTestability(r);return i??(n?At().isShadowRoot(r)?this.findTestabilityInTree(e,r.host,!0):this.findTestabilityInTree(e,r.parentElement,!0):null)}},GI=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),Da=new S(""),Ly=(()=>{let e=class e{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,i,o){return this._findPluginFor(i).addEventListener(n,i,o)}getZone(){return this._zone}_findPluginFor(n){let i=this._eventNameToPlugin.get(n);if(i)return i;if(i=this._plugins.find(s=>s.supports(n)),!i)throw new m(5101,!1);return this._eventNameToPlugin.set(n,i),i}};e.\u0275fac=function(i){return new(i||e)(T(Da),T(te))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),zi=class{constructor(e){this._doc=e}},gd="ng-app-id",jy=(()=>{let e=class e{constructor(n,i,o,s={}){this.doc=n,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=pa(s),this.resetHostNodes()}addStyles(n){for(let i of n)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(n){for(let i of n)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(i=>i.remove()),n.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let i of this.getAllStyles())this.addStyleToHost(n,i)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let i of this.hostNodes)this.addStyleToHost(i,n)}onStyleRemoved(n){let i=this.styleRef;i.get(n)?.elements?.forEach(o=>o.remove()),i.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${gd}="${this.appId}"]`);if(n?.length){let i=new Map;return n.forEach(o=>{o.textContent!=null&&i.set(o.textContent,o)}),i}return null}changeUsageCount(n,i){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=i,s.usage}return o.set(n,{usage:i,elements:[]}),i}getStyleElement(n,i){let o=this.styleNodesInDOM,s=o?.get(i);if(s?.parentNode===n)return o.delete(i),s.removeAttribute(gd),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(gd,this.appId),n.appendChild(a),a}}addStyleToHost(n,i){let o=this.getStyleElement(n,i),s=this.styleRef,a=s.get(i)?.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(T(we),T(Ks),T(Fu,8),T(Dn))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),md={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},wd=/%COMP%/g,Vy="%COMP%",qI=`_nghost-${Vy}`,WI=`_ngcontent-${Vy}`,KI=!0,QI=new S("",{providedIn:"root",factory:()=>KI});function ZI(t){return WI.replace(wd,t)}function YI(t){return qI.replace(wd,t)}function Uy(t,e){return e.map(r=>r.replace(wd,t))}var Ea=(()=>{let e=class e{constructor(n,i,o,s,a,l,c,u=null){this.eventManager=n,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=l,this.ngZone=c,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=pa(l),this.defaultRenderer=new Gi(n,a,c,this.platformIsServer)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===_t.ShadowDom&&(i=K(E({},i),{encapsulation:_t.Emulated}));let o=this.getOrCreateRenderer(n,i);return o instanceof wa?o.applyToHost(n):o instanceof qi&&o.applyStyles(),o}getOrCreateRenderer(n,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,l=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(i.encapsulation){case _t.Emulated:s=new wa(c,u,i,this.appId,d,a,l,h);break;case _t.ShadowDom:return new Ed(c,u,n,i,a,l,this.nonce,h);default:s=new qi(c,u,i,d,a,l,h);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(T(Ly),T(jy),T(Ks),T(QI),T(we),T(Dn),T(te),T(Fu))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),Gi=class{constructor(e,r,n,i){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(md[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(Fy(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(Fy(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){r.remove()}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new m(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,i){if(i){r=i+":"+r;let o=md[i];o?e.setAttributeNS(o,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let i=md[n];i?e.removeAttributeNS(i,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,i){i&(Ut.DashCase|Ut.Important)?e.style.setProperty(r,n,i&Ut.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&Ut.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=At().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function Fy(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Ed=class extends Gi{constructor(e,r,n,i,o,s,a,l){super(e,o,s,l),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=Uy(i.id,i.styles);for(let u of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}removeChild(e,r){return super.removeChild(null,r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},qi=class extends Gi{constructor(e,r,n,i,o,s,a,l){super(e,o,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=l?Uy(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},wa=class extends qi{constructor(e,r,n,i,o,s,a,l){let c=i+"-"+n.id;super(e,r,n,o,s,a,l,c),this.contentAttr=ZI(c),this.hostAttr=YI(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},JI=(()=>{let e=class e extends zi{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,o){return n.addEventListener(i,o,!1),()=>this.removeEventListener(n,i,o)}removeEventListener(n,i,o){return n.removeEventListener(i,o)}};e.\u0275fac=function(i){return new(i||e)(T(we))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),XI=(()=>{let e=class e extends zi{constructor(n){super(n),this.delegate=v(oy,{optional:!0})}supports(n){return this.delegate?this.delegate.supports(n):!1}addEventListener(n,i,o){return this.delegate.addEventListener(n,i,o)}removeEventListener(n,i,o){return this.delegate.removeEventListener(n,i,o)}};e.\u0275fac=function(i){return new(i||e)(T(we))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),ky=["alt","control","meta","shift"],eS={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},tS={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},nS=(()=>{let e=class e extends zi{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,i,o){let s=e.parseEventName(i),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>At().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let i=n.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(i.pop()),a="",l=i.indexOf("code");if(l>-1&&(i.splice(l,1),a="code."),ky.forEach(u=>{let d=i.indexOf(u);d>-1&&(i.splice(d,1),a+=u+".")}),a+=s,i.length!=0||s.length===0)return null;let c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(n,i){let o=eS[n.key]||n.key,s="";return i.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),ky.forEach(a=>{if(a!==o){let l=tS[a];l(n)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(n,i,o){return s=>{e.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>i(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(i){return new(i||e)(T(we))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})();function By(t,e){return iy(E({rootComponent:t},rS(e)))}function rS(t){return{appProviders:[...$y,...t?.providers??[]],platformProviders:aS}}function iS(){vd.makeCurrent()}function oS(){return new dn}function sS(){return em(document),document}var aS=[{provide:Dn,useValue:wy},{provide:Ou,useValue:iS,multi:!0},{provide:we,useFactory:sS,deps:[]}];var lS=new S(""),cS=[{provide:Fi,useClass:Dd,deps:[]},{provide:ed,useClass:aa,deps:[te,la,Fi]},{provide:aa,useClass:aa,deps:[te,la,Fi]}],$y=[{provide:zs,useValue:"root"},{provide:dn,useFactory:oS,deps:[]},{provide:Da,useClass:JI,multi:!0,deps:[we,te,Dn]},{provide:Da,useClass:nS,multi:!0,deps:[we]},{provide:Da,useClass:XI,multi:!0},Ea,jy,Ly,{provide:fn,useExisting:Ea},{provide:Br,useClass:GI,deps:[]},[]],Hy=(()=>{let e=class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Ks,useValue:n.appId}]}}};e.\u0275fac=function(i){return new(i||e)(T(lS,12))},e.\u0275mod=Xe({type:e}),e.\u0275inj=Je({providers:[...$y,...cS],imports:[ha,ry]});let t=e;return t})();var zy=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(i){return new(i||e)(T(we))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var $="primary",co=Symbol("RouteTitle"),Sd=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function Wr(t){return new Sd(t)}function dS(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.lengthn[o]===i)}else return t===e}function Xy(t){return t.length>0?t[t.length-1]:null}function In(t){return $l(t)?t:Zn(t)?re(Promise.resolve(t)):x(t)}var hS={exact:tv,subset:nv},ev={exact:pS,subset:gS,ignored:()=>!0};function Gy(t,e,r){return hS[r.paths](t.root,e.root,r.matrixParams)&&ev[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function pS(t,e){return xt(t,e)}function tv(t,e,r){if(!Xn(t.segments,e.segments)||!_a(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!tv(t.children[n],e.children[n],r))return!1;return!0}function gS(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>Jy(t[r],e[r]))}function nv(t,e,r){return rv(t,e,e.segments,r)}function rv(t,e,r,n){if(t.segments.length>r.length){let i=t.segments.slice(0,r.length);return!(!Xn(i,r)||e.hasChildren()||!_a(i,r,n))}else if(t.segments.length===r.length){if(!Xn(t.segments,r)||!_a(t.segments,r,n))return!1;for(let i in e.children)if(!t.children[i]||!nv(t.children[i],e.children[i],n))return!1;return!0}else{let i=r.slice(0,t.segments.length),o=r.slice(t.segments.length);return!Xn(t.segments,i)||!_a(t.segments,i,n)||!t.children[$]?!1:rv(t.children[$],e,o,n)}}function _a(t,e,r){return e.every((n,i)=>ev[r](t[i].parameters,n.parameters))}var Zt=class{constructor(e=new Y([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Wr(this.queryParams),this._queryParamMap}toString(){return vS.serialize(this)}},Y=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ia(this)}},Jn=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=Wr(this.parameters),this._parameterMap}toString(){return ov(this)}};function mS(t,e){return Xn(t,e)&&t.every((r,n)=>xt(r.parameters,e[n].parameters))}function Xn(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function yS(t,e){let r=[];return Object.entries(t.children).forEach(([n,i])=>{n===$&&(r=r.concat(e(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==$&&(r=r.concat(e(i,n)))}),r}var Xd=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>new Xi,providedIn:"root"});let t=e;return t})(),Xi=class{parse(e){let r=new Ad(e);return new Zt(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${Wi(e.root,!0)}`,n=wS(e.queryParams),i=typeof e.fragment=="string"?`#${DS(e.fragment)}`:"";return`${r}${n}${i}`}},vS=new Xi;function Ia(t){return t.segments.map(e=>ov(e)).join("/")}function Wi(t,e){if(!t.hasChildren())return Ia(t);if(e){let r=t.children[$]?Wi(t.children[$],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==$&&n.push(`${i}:${Wi(o,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=yS(t,(n,i)=>i===$?[Wi(t.children[$],!1)]:[`${i}:${Wi(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[$]!=null?`${Ia(t)}/${r[0]}`:`${Ia(t)}/(${r.join("//")})`}}function iv(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ca(t){return iv(t).replace(/%3B/gi,";")}function DS(t){return encodeURI(t)}function Td(t){return iv(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Sa(t){return decodeURIComponent(t)}function qy(t){return Sa(t.replace(/\+/g,"%20"))}function ov(t){return`${Td(t.path)}${ES(t.parameters)}`}function ES(t){return Object.entries(t).map(([e,r])=>`;${Td(e)}=${Td(r)}`).join("")}function wS(t){let e=Object.entries(t).map(([r,n])=>Array.isArray(n)?n.map(i=>`${Ca(r)}=${Ca(i)}`).join("&"):`${Ca(r)}=${Ca(n)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var CS=/^[^\/()?;#]+/;function Cd(t){let e=t.match(CS);return e?e[0]:""}var bS=/^[^\/()?;=#]+/;function _S(t){let e=t.match(bS);return e?e[0]:""}var IS=/^[^=?&#]+/;function SS(t){let e=t.match(IS);return e?e[0]:""}var MS=/^[^&#]+/;function TS(t){let e=t.match(MS);return e?e[0]:""}var Ad=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Y([],{}):new Y([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[$]=new Y(e,r)),n}parseSegment(){let e=Cd(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new m(4009,!1);return this.capture(e),new Jn(Sa(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=_S(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let i=Cd(this.remaining);i&&(n=i,this.capture(n))}e[Sa(r)]=Sa(n)}parseQueryParam(e){let r=SS(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=TS(this.remaining);s&&(n=s,this.capture(n))}let i=qy(r),o=qy(n);if(e.hasOwnProperty(i)){let s=e[i];Array.isArray(s)||(s=[s],e[i]=s),s.push(o)}else e[i]=o}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Cd(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new m(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=$);let s=this.parseChildren();r[o]=Object.keys(s).length===1?s[$]:new Y([],s),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new m(4011,!1)}};function sv(t){return t.segments.length>0?new Y([],{[$]:t}):t}function av(t){let e={};for(let[n,i]of Object.entries(t.children)){let o=av(i);if(n===$&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[n]=o)}let r=new Y(t.segments,e);return AS(r)}function AS(t){if(t.numberOfChildren===1&&t.children[$]){let e=t.children[$];return new Y(t.segments.concat(e.segments),e.children)}return t}function eo(t){return t instanceof Zt}function NS(t,e,r=null,n=null){let i=lv(t);return cv(i,e,r,n)}function lv(t){let e;function r(o){let s={};for(let l of o.children){let c=r(l);s[l.outlet]=c}let a=new Y(o.url,s);return o===t&&(e=a),a}let n=r(t.root),i=sv(n);return e??i}function cv(t,e,r,n){let i=t;for(;i.parent;)i=i.parent;if(e.length===0)return bd(i,i,i,r,n);let o=xS(e);if(o.toRoot())return bd(i,i,new Y([],{}),r,n);let s=RS(o,i,t),a=s.processChildren?Zi(s.segmentGroup,s.index,o.commands):dv(s.segmentGroup,s.index,o.commands);return bd(i,s.segmentGroup,a,r,n)}function Ma(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function to(t){return typeof t=="object"&&t!=null&&t.outlets}function bd(t,e,r,n,i){let o={};n&&Object.entries(n).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`});let s;t===e?s=r:s=uv(t,e,r);let a=sv(av(s));return new Zt(a,o,i)}function uv(t,e,r){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===e?n[i]=r:n[i]=uv(o,e,r)}),new Y(t.segments,n)}var Ta=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&Ma(n[0]))throw new m(4003,!1);let i=n.find(to);if(i&&i!==Xy(n))throw new m(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function xS(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Ta(!0,0,t);let e=0,r=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?r=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new Ta(r,e,n)}var zr=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function RS(t,e,r){if(t.isAbsolute)return new zr(e,!0,0);if(!r)return new zr(e,!1,NaN);if(r.parent===null)return new zr(r,!0,0);let n=Ma(t.commands[0])?0:1,i=r.segments.length-1+n;return OS(r,i,t.numberOfDoubleDots)}function OS(t,e,r){let n=t,i=e,o=r;for(;o>i;){if(o-=i,n=n.parent,!n)throw new m(4005,!1);i=n.segments.length}return new zr(n,!1,i-o)}function PS(t){return to(t[0])?t[0].outlets:{[$]:t}}function dv(t,e,r){if(t??=new Y([],{}),t.segments.length===0&&t.hasChildren())return Zi(t,e,r);let n=FS(t,e,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndexo!==$)&&t.children[$]&&t.numberOfChildren===1&&t.children[$].segments.length===0){let o=Zi(t.children[$],e,r);return new Y(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=dv(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new Y(t.segments,i)}}function FS(t,e,r){let n=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};for(;i=r.length)return o;let s=t.segments[i],a=r[n];if(to(a))break;let l=`${a}`,c=n0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!Ky(l,c,s))return o;n+=2}else{if(!Ky(l,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function Nd(t,e,r){let n=t.segments.slice(0,e),i=0;for(;i{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=Nd(new Y([],{}),0,n))}),e}function Wy(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function Ky(t,e,r){return t==r.path&&xt(e,r.parameters)}var Yi="imperative",Ce=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Ce||{}),nt=class{constructor(e,r){this.id=e,this.url=r}},no=class extends nt{constructor(e,r,n="imperative",i=null){super(e,r),this.type=Ce.NavigationStart,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},er=class extends nt{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=Ce.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Ge=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(Ge||{}),xd=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(xd||{}),Qt=class extends nt{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=Ce.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},tr=class extends nt{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=Ce.NavigationSkipped}},ro=class extends nt{constructor(e,r,n,i){super(e,r),this.error=n,this.target=i,this.type=Ce.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Aa=class extends nt{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Ce.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Rd=class extends nt{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Ce.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Od=class extends nt{constructor(e,r,n,i,o){super(e,r),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o,this.type=Ce.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Pd=class extends nt{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Ce.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Fd=class extends nt{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=Ce.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},kd=class{constructor(e){this.route=e,this.type=Ce.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ld=class{constructor(e){this.route=e,this.type=Ce.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},jd=class{constructor(e){this.snapshot=e,this.type=Ce.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Vd=class{constructor(e){this.snapshot=e,this.type=Ce.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ud=class{constructor(e){this.snapshot=e,this.type=Ce.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Bd=class{constructor(e){this.snapshot=e,this.type=Ce.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var io=class{},Kr=class{constructor(e,r){this.url=e,this.navigationBehaviorOptions=r}};function LS(t,e){return t.providers&&!t._injector&&(t._injector=Ku(t.providers,e,`Route: ${t.path}`)),t._injector??e}function mt(t){return t.outlet||$}function jS(t,e){let r=t.filter(n=>mt(n)===e);return r.push(...t.filter(n=>mt(n)!==e)),r}function uo(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var $d=class{get injector(){return uo(this.route?.snapshot)??this.rootInjector}set injector(e){}constructor(e){this.rootInjector=e,this.outlet=null,this.route=null,this.children=new ka(this.rootInjector),this.attachRef=null}},ka=(()=>{let e=class e{constructor(n){this.rootInjector=n,this.contexts=new Map}onChildOutletCreated(n,i){let o=this.getOrCreateContext(n);o.outlet=i,this.contexts.set(n,o)}onChildOutletDestroyed(n){let i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new $d(this.rootInjector),this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(i){return new(i||e)(T(Le))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Na=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=Hd(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=Hd(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=zd(e,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return zd(e,this._root).map(r=>r.value)}};function Hd(t,e){if(t===e.value)return e;for(let r of e.children){let n=Hd(t,r);if(n)return n}return null}function zd(t,e){if(t===e.value)return[e];for(let r of e.children){let n=zd(t,r);if(n.length)return n.unshift(e),n}return[]}var ze=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function Hr(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var xa=class extends Na{constructor(e,r){super(e),this.snapshot=r,ef(this,e)}toString(){return this.snapshot.toString()}};function fv(t){let e=VS(t),r=new ve([new Jn("",{})]),n=new ve({}),i=new ve({}),o=new ve({}),s=new ve(""),a=new _n(r,n,o,s,i,$,t,e.root);return a.snapshot=e.root,new xa(new ze(a,[]),e)}function VS(t){let e={},r={},n={},i="",o=new Gr([],e,n,i,r,$,t,null,{});return new Oa("",new ze(o,[]))}var _n=class{constructor(e,r,n,i,o,s,a,l){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(R(c=>c[co]))??x(void 0),this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(R(e=>Wr(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(R(e=>Wr(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Ra(t,e,r="emptyOnly"){let n,{routeConfig:i}=t;return e!==null&&(r==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:E(E({},e.params),t.params),data:E(E({},e.data),t.data),resolve:E(E(E(E({},t.data),e.data),i?.data),t._resolvedData)}:n={params:E({},t.params),data:E({},t.data),resolve:E(E({},t.data),t._resolvedData??{})},i&&pv(i)&&(n.resolve[co]=i.title),n}var Gr=class{get title(){return this.data?.[co]}constructor(e,r,n,i,o,s,a,l,c){this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Wr(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Wr(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},Oa=class extends Na{constructor(e,r){super(r),this.url=e,ef(this,r)}toString(){return hv(this._root)}};function ef(t,e){e.value._routerState=t,e.children.forEach(r=>ef(t,r))}function hv(t){let e=t.children.length>0?` { ${t.children.map(hv).join(", ")} } `:"";return`${t.value}${e}`}function _d(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,xt(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),xt(e.params,r.params)||t.paramsSubject.next(r.params),fS(e.url,r.url)||t.urlSubject.next(r.url),xt(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Gd(t,e){let r=xt(t.params,e.params)&&mS(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||Gd(t.parent,e.parent))}function pv(t){return typeof t.title=="string"||t.title===null}var tf=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=$,this.activateEvents=new ie,this.deactivateEvents=new ie,this.attachEvents=new ie,this.detachEvents=new ie,this.parentContexts=v(ka),this.location=v(pt),this.changeDetector=v(wn),this.inputBinder=v(nf,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:i,previousValue:o}=n.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new m(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new m(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new m(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,i){if(this.isActivated)throw new m(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,c=new qd(n,l,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:c,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=J({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[St]});let t=e;return t})(),qd=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n}get(e,r){return e===_n?this.route:e===ka?this.childContexts:this.parent.get(e,r)}},nf=new S("");function US(t,e,r){let n=oo(t,e._root,r?r._root:void 0);return new xa(n,e)}function oo(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let i=BS(t,e,r);return new ze(n,i)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>oo(t,a)),s}}let n=$S(e.value),i=e.children.map(o=>oo(t,o));return new ze(n,i)}}function BS(t,e,r){return e.children.map(n=>{for(let i of r.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return oo(t,n,i);return oo(t,n)})}function $S(t){return new _n(new ve(t.url),new ve(t.params),new ve(t.queryParams),new ve(t.fragment),new ve(t.data),t.outlet,t.component,t)}var so=class{constructor(e,r){this.redirectTo=e,this.navigationBehaviorOptions=r}},gv="ngNavigationCancelingError";function Pa(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=eo(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=mv(!1,Ge.Redirect);return i.url=r,i.navigationBehaviorOptions=n,i}function mv(t,e){let r=new Error(`NavigationCancelingError: ${t||""}`);return r[gv]=!0,r.cancellationCode=e,r}function HS(t){return yv(t)&&eo(t.url)}function yv(t){return!!t&&t[gv]}var zS=(t,e,r,n)=>R(i=>(new Wd(e,i.targetRouterState,i.currentRouterState,r,n).activate(t),i)),Wd=class{constructor(e,r,n,i,o){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),_d(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let i=Hr(r);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,n);else o&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=Hr(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=Hr(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let i=Hr(r);e.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new Bd(o.value.snapshot))}),e.children.length&&this.forwardEvent(new Vd(e.value.snapshot))}activateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(_d(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),_d(a.route.value),this.activateChildRoutes(e,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(e,null,s.children)}else this.activateChildRoutes(e,null,n)}},Fa=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},qr=class{constructor(e,r){this.component=e,this.route=r}};function GS(t,e,r){let n=t._root,i=e?e._root:null;return Ki(n,i,r,[n.value])}function qS(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Zr(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!jp(t)?t:e.get(t):n}function Ki(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Hr(e);return t.children.forEach(s=>{WS(s,o[s.value.outlet],r,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Ji(a,r.getContext(s),i)),i}function WS(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=KS(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new Fa(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Ki(t,e,a?a.children:null,n,i):Ki(t,e,r,n,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new qr(a.outlet.component,s))}else s&&Ji(e,a,i),i.canActivateChecks.push(new Fa(n)),o.component?Ki(t,null,a?a.children:null,n,i):Ki(t,null,r,n,i);return i}function KS(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!Xn(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Xn(t.url,e.url)||!xt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Gd(t,e)||!xt(t.queryParams,e.queryParams);case"paramsChange":default:return!Gd(t,e)}}function Ji(t,e,r){let n=Hr(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?e?Ji(s,e.children.getContext(o),r):Ji(s,null,r):Ji(s,e,r)}),i.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new qr(e.outlet.component,i)):r.canDeactivateChecks.push(new qr(null,i)):r.canDeactivateChecks.push(new qr(null,i))}function fo(t){return typeof t=="function"}function QS(t){return typeof t=="boolean"}function ZS(t){return t&&fo(t.canLoad)}function YS(t){return t&&fo(t.canActivate)}function JS(t){return t&&fo(t.canActivateChild)}function XS(t){return t&&fo(t.canDeactivate)}function eM(t){return t&&fo(t.canMatch)}function vv(t){return t instanceof Ft||t?.name==="EmptyError"}var ba=Symbol("INITIAL_VALUE");function Qr(){return Ne(t=>os(t.map(e=>e.pipe(kt(1),Cr(ba)))).pipe(R(e=>{for(let r of e)if(r!==!0){if(r===ba)return ba;if(r===!1||tM(r))return r}return!0}),me(e=>e!==ba),kt(1)))}function tM(t){return eo(t)||t instanceof so}function nM(t,e){return pe(r=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=r;return s.length===0&&o.length===0?x(K(E({},r),{guardsResult:!0})):rM(s,n,i,t).pipe(pe(a=>a&&QS(a)?iM(n,o,t,e):x(a)),R(a=>K(E({},r),{guardsResult:a})))})}function rM(t,e,r,n){return re(t).pipe(pe(i=>cM(i.component,i.route,r,e,n)),wt(i=>i!==!0,!0))}function iM(t,e,r,n){return re(e).pipe(rn(i=>Er(sM(i.route.parent,n),oM(i.route,n),lM(t,i.path,r),aM(t,i.route,r))),wt(i=>i!==!0,!0))}function oM(t,e){return t!==null&&e&&e(new Ud(t)),x(!0)}function sM(t,e){return t!==null&&e&&e(new jd(t)),x(!0)}function aM(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return x(!0);let i=n.map(o=>as(()=>{let s=uo(e)??r,a=Zr(o,s),l=YS(a)?a.canActivate(e,t):ut(s,()=>a(e,t));return In(l).pipe(wt())}));return x(i).pipe(Qr())}function lM(t,e,r){let n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>qS(s)).filter(s=>s!==null).map(s=>as(()=>{let a=s.guards.map(l=>{let c=uo(s.node)??r,u=Zr(l,c),d=JS(u)?u.canActivateChild(n,t):ut(c,()=>u(n,t));return In(d).pipe(wt())});return x(a).pipe(Qr())}));return x(o).pipe(Qr())}function cM(t,e,r,n,i){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return x(!0);let s=o.map(a=>{let l=uo(e)??i,c=Zr(a,l),u=XS(c)?c.canDeactivate(t,e,r,n):ut(l,()=>c(t,e,r,n));return In(u).pipe(wt())});return x(s).pipe(Qr())}function uM(t,e,r,n){let i=e.canLoad;if(i===void 0||i.length===0)return x(!0);let o=i.map(s=>{let a=Zr(s,t),l=ZS(a)?a.canLoad(e,r):ut(t,()=>a(e,r));return In(l)});return x(o).pipe(Qr(),Dv(n))}function Dv(t){return Ll(ue(e=>{if(typeof e!="boolean")throw Pa(t,e)}),R(e=>e===!0))}function dM(t,e,r,n){let i=e.canMatch;if(!i||i.length===0)return x(!0);let o=i.map(s=>{let a=Zr(s,t),l=eM(a)?a.canMatch(e,r):ut(t,()=>a(e,r));return In(l)});return x(o).pipe(Qr(),Dv(n))}var ao=class{constructor(e){this.segmentGroup=e||null}},lo=class extends Error{constructor(e){super(),this.urlTree=e}};function $r(t){return Dr(new ao(t))}function fM(t){return Dr(new m(4e3,!1))}function hM(t){return Dr(mv(!1,Ge.GuardRejected))}var Kd=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let n=[],i=r.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return x(n);if(i.numberOfChildren>1||!i.children[$])return fM(`${e.redirectTo}`);i=i.children[$]}}applyRedirectCommands(e,r,n,i,o){if(typeof r!="string"){let a=r,{queryParams:l,fragment:c,routeConfig:u,url:d,outlet:h,params:f,data:p,title:g}=i,y=ut(o,()=>a({params:f,data:p,queryParams:l,fragment:c,routeConfig:u,url:d,outlet:h,title:g}));if(y instanceof Zt)throw new lo(y);r=y}let s=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r[0]==="/")throw new lo(s);return s}applyRedirectCreateUrlTree(e,r,n,i){let o=this.createSegmentGroup(e,r.root,n,i);return new Zt(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);n[i]=r[a]}else n[i]=o}),n}createSegmentGroup(e,r,n,i){let o=this.createSegments(e,r.segments,n,i),s={};return Object.entries(r.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(e,l,n,i)}),new Y(o,s)}createSegments(e,r,n,i){return r.map(o=>o.path[0]===":"?this.findPosParam(e,o,i):this.findOrReturn(o,n))}findPosParam(e,r,n){let i=n[r.path.substring(1)];if(!i)throw new m(4001,!1);return i}findOrReturn(e,r){let n=0;for(let i of r){if(i.path===e.path)return r.splice(n),i;n++}return e}},Qd={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function pM(t,e,r,n,i){let o=rf(t,e,r);return o.matched?(n=LS(e,n),dM(n,e,r,i).pipe(R(s=>s===!0?o:E({},Qd)))):x(o)}function rf(t,e,r){if(e.path==="**")return gM(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?E({},Qd):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let i=(e.matcher||dS)(r,t,e);if(!i)return E({},Qd);let o={};Object.entries(i.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=i.consumed.length>0?E(E({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:r.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function gM(t){return{matched:!0,parameters:t.length>0?Xy(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Qy(t,e,r,n){return r.length>0&&vM(t,r,n)?{segmentGroup:new Y(e,yM(n,new Y(r,t.children))),slicedSegments:[]}:r.length===0&&DM(t,r,n)?{segmentGroup:new Y(t.segments,mM(t,r,n,t.children)),slicedSegments:r}:{segmentGroup:new Y(t.segments,t.children),slicedSegments:r}}function mM(t,e,r,n){let i={};for(let o of r)if(La(t,e,o)&&!n[mt(o)]){let s=new Y([],{});i[mt(o)]=s}return E(E({},n),i)}function yM(t,e){let r={};r[$]=e;for(let n of t)if(n.path===""&&mt(n)!==$){let i=new Y([],{});r[mt(n)]=i}return r}function vM(t,e,r){return r.some(n=>La(t,e,n)&&mt(n)!==$)}function DM(t,e,r){return r.some(n=>La(t,e,n))}function La(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function EM(t,e,r,n){return mt(t)!==n&&(n===$||!La(e,r,t))?!1:rf(e,t,r).matched}function wM(t,e,r){return e.length===0&&!t.children[r]}var Zd=class{};function CM(t,e,r,n,i,o,s="emptyOnly"){return new Yd(t,e,r,n,i,s,o).recognize()}var bM=31,Yd=class{constructor(e,r,n,i,o,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Kd(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new m(4002,`'${e.segmentGroup}'`)}recognize(){let e=Qy(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(R(({children:r,rootSnapshot:n})=>{let i=new ze(n,r),o=new Oa("",i),s=NS(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(e){let r=new Gr([],Object.freeze({}),Object.freeze(E({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),$,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,$,r).pipe(R(n=>({children:n,rootSnapshot:r})),nn(n=>{if(n instanceof lo)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof ao?this.noMatchError(n):n}))}processSegmentGroup(e,r,n,i,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n,o):this.processSegment(e,r,n,n.segments,i,!0,o).pipe(R(s=>s instanceof ze?[s]:[]))}processChildren(e,r,n,i){let o=[];for(let s of Object.keys(n.children))s==="primary"?o.unshift(s):o.push(s);return re(o).pipe(rn(s=>{let a=n.children[s],l=jS(r,s);return this.processSegmentGroup(e,l,a,s,i)}),Yl((s,a)=>(s.push(...a),s)),on(null),Ql(),pe(s=>{if(s===null)return $r(n);let a=Ev(s);return _M(a),x(a)}))}processSegment(e,r,n,i,o,s,a){return re(r).pipe(rn(l=>this.processSegmentAgainstRoute(l._injector??e,r,l,n,i,o,s,a).pipe(nn(c=>{if(c instanceof ao)return x(null);throw c}))),wt(l=>!!l),nn(l=>{if(vv(l))return wM(n,i,o)?x(new Zd):$r(n);throw l}))}processSegmentAgainstRoute(e,r,n,i,o,s,a,l){return EM(n,i,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,n,o,s,l):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,i,r,n,o,s,l):$r(i):$r(i)}expandSegmentAgainstRouteUsingRedirect(e,r,n,i,o,s,a){let{matched:l,parameters:c,consumedSegments:u,positionalParamSegments:d,remainingSegments:h}=rf(r,i,o);if(!l)return $r(r);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>bM&&(this.allowRedirects=!1));let f=new Gr(o,c,Object.freeze(E({},this.urlTree.queryParams)),this.urlTree.fragment,Zy(i),mt(i),i.component??i._loadedComponent??null,i,Yy(i)),p=Ra(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(p.params),f.data=Object.freeze(p.data);let g=this.applyRedirects.applyRedirectCommands(u,i.redirectTo,d,f,e);return this.applyRedirects.lineralizeSegments(i,g).pipe(pe(y=>this.processSegment(e,n,r,y.concat(h),s,!1,a)))}matchSegmentAgainstRoute(e,r,n,i,o,s){let a=pM(r,n,i,e,this.urlSerializer);return n.path==="**"&&(r.children={}),a.pipe(Ne(l=>l.matched?(e=n._injector??e,this.getChildConfig(e,n,i).pipe(Ne(({routes:c})=>{let u=n._loadedInjector??e,{parameters:d,consumedSegments:h,remainingSegments:f}=l,p=new Gr(h,d,Object.freeze(E({},this.urlTree.queryParams)),this.urlTree.fragment,Zy(n),mt(n),n.component??n._loadedComponent??null,n,Yy(n)),g=Ra(p,s,this.paramsInheritanceStrategy);p.params=Object.freeze(g.params),p.data=Object.freeze(g.data);let{segmentGroup:y,slicedSegments:D}=Qy(r,h,f,c);if(D.length===0&&y.hasChildren())return this.processChildren(u,c,y,p).pipe(R(j=>new ze(p,j)));if(c.length===0&&D.length===0)return x(new ze(p,[]));let P=mt(n)===o;return this.processSegment(u,c,y,D,P?$:o,!0,p).pipe(R(j=>new ze(p,j instanceof ze?[j]:[])))}))):$r(r)))}getChildConfig(e,r,n){return r.children?x({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?x({routes:r._loadedRoutes,injector:r._loadedInjector}):uM(e,r,n,this.urlSerializer).pipe(pe(i=>i?this.configLoader.loadChildren(e,r).pipe(ue(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):hM(r))):x({routes:[],injector:e})}};function _M(t){t.sort((e,r)=>e.value.outlet===$?-1:r.value.outlet===$?1:e.value.outlet.localeCompare(r.value.outlet))}function IM(t){let e=t.value.routeConfig;return e&&e.path===""}function Ev(t){let e=[],r=new Set;for(let n of t){if(!IM(n)){e.push(n);continue}let i=e.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),r.add(i)):e.push(n)}for(let n of r){let i=Ev(n.children);e.push(new ze(n.value,i))}return e.filter(n=>!r.has(n))}function Zy(t){return t.data||{}}function Yy(t){return t.resolve||{}}function SM(t,e,r,n,i,o){return pe(s=>CM(t,e,r,n,s.extractedUrl,i,o).pipe(R(({state:a,tree:l})=>K(E({},s),{targetSnapshot:a,urlAfterRedirects:l}))))}function MM(t,e){return pe(r=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=r;if(!i.length)return x(r);let o=new Set(i.map(l=>l.route)),s=new Set;for(let l of o)if(!s.has(l))for(let c of wv(l))s.add(c);let a=0;return re(s).pipe(rn(l=>o.has(l)?TM(l,n,t,e):(l.data=Ra(l,l.parent,t).resolve,x(void 0))),ue(()=>a++),wr(1),pe(l=>a===s.size?x(r):Ue))})}function wv(t){let e=t.children.map(r=>wv(r)).flat();return[t,...e]}function TM(t,e,r,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!pv(i)&&(o[co]=i.title),AM(o,t,e,n).pipe(R(s=>(t._resolvedData=s,t.data=Ra(t,t.parent,r).resolve,null)))}function AM(t,e,r,n){let i=Md(t);if(i.length===0)return x({});let o={};return re(i).pipe(pe(s=>NM(t[s],e,r,n).pipe(wt(),ue(a=>{if(a instanceof so)throw Pa(new Xi,a);o[s]=a}))),wr(1),Wl(o),nn(s=>vv(s)?Ue:Dr(s)))}function NM(t,e,r,n){let i=uo(e)??n,o=Zr(t,i),s=o.resolve?o.resolve(e,r):ut(i,()=>o(e,r));return In(s)}function Id(t){return Ne(e=>{let r=t(e);return r?re(r).pipe(R(()=>e)):x(e)})}var Cv=(()=>{let e=class e{buildTitle(n){let i,o=n.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===$);return i}getResolvedTitleForRoute(n){return n.data[co]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>v(xM),providedIn:"root"});let t=e;return t})(),xM=(()=>{let e=class e extends Cv{constructor(n){super(),this.title=n}updateTitle(n){let i=this.buildTitle(n);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(T(zy))},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),of=new S("",{providedIn:"root",factory:()=>({})}),RM=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=gn({type:e,selectors:[["ng-component"]],standalone:!0,features:[En],decls:1,vars:0,template:function(i,o){i&1&&de(0,"router-outlet")},dependencies:[tf],encapsulation:2});let t=e;return t})();function sf(t){let e=t.children&&t.children.map(sf),r=e?K(E({},t),{children:e}):E({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==$&&(r.component=RM),r}var af=new S(""),OM=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=v(nd)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return x(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=In(n.loadComponent()).pipe(R(bv),ue(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),Ln(()=>{this.componentLoaders.delete(n)})),o=new yr(i,()=>new le).pipe(mr());return this.componentLoaders.set(n,o),o}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return x({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=PM(i,this.compiler,n,this.onLoadEndListener).pipe(Ln(()=>{this.childrenLoaders.delete(i)})),a=new yr(s,()=>new le).pipe(mr());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function PM(t,e,r,n){return In(t.loadChildren()).pipe(R(bv),pe(i=>i instanceof bi||Array.isArray(i)?x(i):re(e.compileModuleAsync(i))),R(i=>{n&&n(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(r).injector,s=o.get(af,[],{optional:!0,self:!0}).flat()),{routes:s.map(sf),injector:o}}))}function FM(t){return t&&typeof t=="object"&&"default"in t}function bv(t){return FM(t)?t.default:t}var lf=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>v(kM),providedIn:"root"});let t=e;return t})(),kM=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),LM=new S("");var jM=new S(""),VM=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new le,this.transitionAbortSubject=new le,this.configLoader=v(OM),this.environmentInjector=v(Le),this.urlSerializer=v(Xd),this.rootContexts=v(ka),this.location=v(Li),this.inputBindingEnabled=v(nf,{optional:!0})!==null,this.titleStrategy=v(Cv),this.options=v(of,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=v(lf),this.createViewTransition=v(LM,{optional:!0}),this.navigationErrorHandler=v(jM,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>x(void 0),this.rootComponentType=null;let n=o=>this.events.next(new kd(o)),i=o=>this.events.next(new Ld(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let i=++this.navigationId;this.transitions?.next(K(E(E({},this.transitions.value),n),{id:i}))}setupNavigations(n,i,o){return this.transitions=new ve({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Yi,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(me(s=>s.id!==0),R(s=>K(E({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),Ne(s=>{let a=!1,l=!1;return x(s).pipe(Ne(c=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",Ge.SupersededByNewNavigation),Ue;this.currentTransition=s,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:typeof c.extras.browserUrl=="string"?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?K(E({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&d!=="reload"){let h="";return this.events.next(new tr(c.id,this.urlSerializer.serialize(c.rawUrl),h,xd.IgnoredSameUrlNavigation)),c.resolve(!1),Ue}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return x(c).pipe(Ne(h=>{let f=this.transitions?.getValue();return this.events.next(new no(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions?.getValue()?Ue:Promise.resolve(h)}),SM(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),ue(h=>{s.targetSnapshot=h.targetSnapshot,s.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=K(E({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let f=new Aa(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(f)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:h,extractedUrl:f,source:p,restoredState:g,extras:y}=c,D=new no(h,this.urlSerializer.serialize(f),p,g);this.events.next(D);let P=fv(this.rootComponentType).snapshot;return this.currentTransition=s=K(E({},c),{targetSnapshot:P,urlAfterRedirects:f,extras:K(E({},y),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=f,x(s)}else{let h="";return this.events.next(new tr(c.id,this.urlSerializer.serialize(c.extractedUrl),h,xd.IgnoredByUrlHandlingStrategy)),c.resolve(!1),Ue}}),ue(c=>{let u=new Rd(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),R(c=>(this.currentTransition=s=K(E({},c),{guards:GS(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),s)),nM(this.environmentInjector,c=>this.events.next(c)),ue(c=>{if(s.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw Pa(this.urlSerializer,c.guardsResult);let u=new Od(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(u)}),me(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",Ge.GuardRejected),!1)),Id(c=>{if(c.guards.canActivateChecks.length)return x(c).pipe(ue(u=>{let d=new Pd(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}),Ne(u=>{let d=!1;return x(u).pipe(MM(this.paramsInheritanceStrategy,this.environmentInjector),ue({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(u,"",Ge.NoDataFromResolver)}}))}),ue(u=>{let d=new Fd(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}))}),Id(c=>{let u=d=>{let h=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(d.routeConfig).pipe(ue(f=>{d.component=f}),R(()=>{})));for(let f of d.children)h.push(...u(f));return h};return os(u(c.targetSnapshot.root)).pipe(on(null),kt(1))}),Id(()=>this.afterPreactivation()),Ne(()=>{let{currentSnapshot:c,targetSnapshot:u}=s,d=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return d?re(d).pipe(R(()=>s)):x(s)}),R(c=>{let u=US(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=s=K(E({},c),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,s}),ue(()=>{this.events.next(new io)}),zS(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),kt(1),ue({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new er(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),Jl(this.transitionAbortSubject.pipe(ue(c=>{throw c}))),Ln(()=>{!a&&!l&&this.cancelNavigationTransition(s,"",Ge.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),nn(c=>{if(l=!0,yv(c))this.events.next(new Qt(s.id,this.urlSerializer.serialize(s.extractedUrl),c.message,c.cancellationCode)),HS(c)?this.events.next(new Kr(c.url,c.navigationBehaviorOptions)):s.resolve(!1);else{let u=new ro(s.id,this.urlSerializer.serialize(s.extractedUrl),c,s.targetSnapshot??void 0);try{let d=ut(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(d instanceof so){let{message:h,cancellationCode:f}=Pa(this.urlSerializer,d);this.events.next(new Qt(s.id,this.urlSerializer.serialize(s.extractedUrl),h,f)),this.events.next(new Kr(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(u);let h=n.errorHandler(c);s.resolve(!!h)}}catch(d){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(d)}}return Ue}))}))}cancelNavigationTransition(n,i,o){let s=new Qt(n.id,this.urlSerializer.serialize(n.extractedUrl),i,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==i?.toString()&&!this.currentNavigation?.extras.skipLocationChange}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function UM(t){return t!==Yi}var BM=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>v($M),providedIn:"root"});let t=e;return t})(),Jd=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},$M=(()=>{let e=class e extends Jd{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=ft(e)))(o||e)}})(),e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),_v=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:()=>v(HM),providedIn:"root"});let t=e;return t})(),HM=(()=>{let e=class e extends _v{constructor(){super(...arguments),this.location=v(Li),this.urlSerializer=v(Xd),this.options=v(of,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=v(lf),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Zt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=fv(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(i=>{i.type==="popstate"&&n(i.url,i.state)})}handleRouterEvent(n,i){if(n instanceof no)this.stateMemento=this.createStateMemento();else if(n instanceof tr)this.rawUrlTree=i.initialUrl;else if(n instanceof Aa){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(i.targetBrowserUrl??o,i)}}else n instanceof io?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(i.targetBrowserUrl??this.rawUrlTree,i)):n instanceof Qt&&(n.code===Ge.GuardRejected||n.code===Ge.NoDataFromResolver)?this.restoreHistory(i):n instanceof ro?this.restoreHistory(i,!0):n instanceof er&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,i){let o=n instanceof Zt?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=E(E({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=E(E({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,i){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=ft(e)))(o||e)}})(),e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Qi=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Qi||{});function zM(t,e){t.events.pipe(me(r=>r instanceof er||r instanceof Qt||r instanceof ro||r instanceof tr),R(r=>r instanceof er||r instanceof tr?Qi.COMPLETE:(r instanceof Qt?r.code===Ge.Redirect||r.code===Ge.SupersededByNewNavigation:!1)?Qi.REDIRECTING:Qi.FAILED),me(r=>r!==Qi.REDIRECTING),kt(1)).subscribe(()=>{e()})}function GM(t){throw t}var qM={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},WM={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Iv=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=v(sa),this.stateManager=v(_v),this.options=v(of,{optional:!0})||{},this.pendingTasks=v(vn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=v(VM),this.urlSerializer=v(Xd),this.location=v(Li),this.urlHandlingStrategy=v(lf),this._events=new le,this.errorHandler=this.options.errorHandler||GM,this.navigated=!1,this.routeReuseStrategy=v(BM),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=v(af,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!v(nf,{optional:!0}),this.eventsSubscription=new se,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof Qt&&i.code!==Ge.Redirect&&i.code!==Ge.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof er)this.navigated=!0;else if(i instanceof Kr){let a=i.navigationBehaviorOptions,l=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),c=E({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||UM(o.source)},a);this.scheduleNavigation(l,Yi,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}QM(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Yi,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",i)},0)})}navigateToSyncWithBrowser(n,i,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let c=E({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(s.state=c)}let l=this.parseUrl(n);this.scheduleNavigation(l,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(sf),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:l,preserveFragment:c}=i,u=c?this.currentUrlTree.fragment:a,d=null;switch(l??this.options.defaultQueryParamsHandling){case"merge":d=E(E({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let h;try{let f=o?o.snapshot:this.routerState.snapshot.root;h=lv(f)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),h=this.currentUrlTree.root}return cv(h,n,d,u??null)}navigateByUrl(n,i={skipLocationChange:!1}){let o=eo(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,Yi,null,i)}navigate(n,i={skipLocationChange:!1}){return KM(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,i){let o;if(i===!0?o=E({},qM):i===!1?o=E({},WM):o=i,eo(n))return Gy(this.currentUrlTree,n,o);let s=this.parseUrl(n);return Gy(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.entries(n).reduce((i,[o,s])=>(s!=null&&(i[o]=s),i),{})}scheduleNavigation(n,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let l,c,u;a?(l=a.resolve,c=a.reject,u=a.promise):u=new Promise((h,f)=>{l=h,c=f});let d=this.pendingTasks.add();return zM(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(h=>Promise.reject(h))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function KM(t){for(let e=0;er.\u0275providers)])}function YM(t){return t.routerState.root}function JM(){let t=v(Vt);return e=>{let r=t.get(qt);if(e!==r.components[0])return;let n=t.get(Iv),i=t.get(XM);t.get(eT)===1&&n.initialNavigation(),t.get(tT,null,H.Optional)?.setUpPreloading(),t.get(ZM,null,H.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var XM=new S("",{factory:()=>new le}),eT=new S("",{providedIn:"root",factory:()=>1});var tT=new S("");var Ov=(()=>{let e=class e{constructor(n,i){this._renderer=n,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,i){this._renderer.setProperty(this._elementRef.nativeElement,n,i)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(i){return new(i||e)(M(Mt),M(Me))},e.\u0275dir=J({type:e});let t=e;return t})(),yo=(()=>{let e=class e extends Ov{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=ft(e)))(o||e)}})(),e.\u0275dir=J({type:e,features:[ye]});let t=e;return t})(),rr=new S("");var rT={provide:rr,useExisting:Oe(()=>Ka),multi:!0};function iT(){let t=At()?At().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var oT=new S(""),Ka=(()=>{let e=class e extends Ov{constructor(n,i,o){super(n,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!iT())}writeValue(n){let i=n??"";this.setProperty("value",i)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(i){return new(i||e)(M(Mt),M(Me),M(oT,8))},e.\u0275dir=J({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){i&1&&Ee("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[He([rT]),ye]});let t=e;return t})();function Sn(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function Pv(t){return t!=null&&typeof t.length=="number"}var ir=new S(""),vo=new S(""),sT=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Yt=class{static min(e){return Fv(e)}static max(e){return kv(e)}static required(e){return aT(e)}static requiredTrue(e){return lT(e)}static email(e){return cT(e)}static minLength(e){return uT(e)}static maxLength(e){return dT(e)}static pattern(e){return fT(e)}static nullValidator(e){return Va(e)}static compose(e){return $v(e)}static composeAsync(e){return zv(e)}};function Fv(t){return e=>{if(Sn(e.value)||Sn(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r{if(Sn(e.value)||Sn(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r>t?{max:{max:t,actual:e.value}}:null}}function aT(t){return Sn(t.value)?{required:!0}:null}function lT(t){return t.value===!0?null:{required:!0}}function cT(t){return Sn(t.value)||sT.test(t.value)?null:{email:!0}}function uT(t){return e=>Sn(e.value)||!Pv(e.value)?null:e.value.lengthPv(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function fT(t){if(!t)return Va;let e,r;return typeof t=="string"?(r="",t.charAt(0)!=="^"&&(r+="^"),r+=t,t.charAt(t.length-1)!=="$"&&(r+="$"),e=new RegExp(r)):(r=t.toString(),e=t),n=>{if(Sn(n.value))return null;let i=n.value;return e.test(i)?null:{pattern:{requiredPattern:r,actualValue:i}}}}function Va(t){return null}function Lv(t){return t!=null}function jv(t){return Zn(t)?re(t):t}function Vv(t){let e={};return t.forEach(r=>{e=r!=null?E(E({},e),r):e}),Object.keys(e).length===0?null:e}function Uv(t,e){return e.map(r=>r(t))}function hT(t){return!t.validate}function Bv(t){return t.map(e=>hT(e)?e:r=>e.validate(r))}function $v(t){if(!t)return null;let e=t.filter(Lv);return e.length==0?null:function(r){return Vv(Uv(r,e))}}function Hv(t){return t!=null?$v(Bv(t)):null}function zv(t){if(!t)return null;let e=t.filter(Lv);return e.length==0?null:function(r){let n=Uv(r,e).map(jv);return zl(n).pipe(R(Vv))}}function Gv(t){return t!=null?zv(Bv(t)):null}function Mv(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function qv(t){return t._rawValidators}function Wv(t){return t._rawAsyncValidators}function cf(t){return t?Array.isArray(t)?t:[t]:[]}function Ua(t,e){return Array.isArray(t)?t.includes(e):t===e}function Tv(t,e){let r=cf(e);return cf(t).forEach(i=>{Ua(r,i)||r.push(i)}),r}function Av(t,e){return cf(e).filter(r=>!Ua(t,r))}var Ba=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Hv(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Gv(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,r){return this.control?this.control.hasError(e,r):!1}getError(e,r){return this.control?this.control.getError(e,r):null}},rt=class extends Ba{get formDirective(){return null}get path(){return null}},Mn=class extends Ba{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},$a=class{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},pT={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},NV=K(E({},pT),{"[class.ng-submitted]":"isSubmitted"}),Kv=(()=>{let e=class e extends $a{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(M(Mn,2))},e.\u0275dir=J({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&Ur("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[ye]});let t=e;return t})(),Qv=(()=>{let e=class e extends $a{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(M(rt,10))},e.\u0275dir=J({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){i&2&&Ur("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[ye]});let t=e;return t})();var ho="VALID",ja="INVALID",Yr="PENDING",po="DISABLED",Tn=class{},Ha=class extends Tn{constructor(e,r){super(),this.value=e,this.source=r}},go=class extends Tn{constructor(e,r){super(),this.pristine=e,this.source=r}},mo=class extends Tn{constructor(e,r){super(),this.touched=e,this.source=r}},Jr=class extends Tn{constructor(e,r){super(),this.status=e,this.source=r}},uf=class extends Tn{constructor(e){super(),this.source=e}},df=class extends Tn{constructor(e){super(),this.source=e}};function Zv(t){return(Qa(t)?t.validators:t)||null}function gT(t){return Array.isArray(t)?Hv(t):t||null}function Yv(t,e){return(Qa(e)?e.asyncValidators:t)||null}function mT(t){return Array.isArray(t)?Gv(t):t||null}function Qa(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function yT(t,e,r){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new m(1e3,"");if(!n[r])throw new m(1001,"")}function vT(t,e,r){t._forEachChild((n,i)=>{if(r[i]===void 0)throw new m(1002,"")})}var za=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=ki(()=>this.statusReactive()),this.statusReactive=xi(void 0),this._pristine=ki(()=>this.pristineReactive()),this.pristineReactive=xi(!0),this._touched=ki(()=>this.touchedReactive()),this.touchedReactive=xi(!1),this._events=new le,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return Wt(this.statusReactive)}set status(e){Wt(()=>this.statusReactive.set(e))}get valid(){return this.status===ho}get invalid(){return this.status===ja}get pending(){return this.status==Yr}get disabled(){return this.status===po}get enabled(){return this.status!==po}get pristine(){return Wt(this.pristineReactive)}set pristine(e){Wt(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return Wt(this.touchedReactive)}set touched(e){Wt(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Tv(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Tv(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Av(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Av(e,this._rawAsyncValidators))}hasValidator(e){return Ua(this._rawValidators,e)}hasAsyncValidator(e){return Ua(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let r=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(K(E({},e),{sourceControl:n})),r&&e.emitEvent!==!1&&this._events.next(new mo(!0,n))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(r=>r.markAllAsTouched(e))}markAsUntouched(e={}){let r=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),r&&e.emitEvent!==!1&&this._events.next(new mo(!1,n))}markAsDirty(e={}){let r=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(K(E({},e),{sourceControl:n})),r&&e.emitEvent!==!1&&this._events.next(new go(!1,n))}markAsPristine(e={}){let r=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),r&&e.emitEvent!==!1&&this._events.next(new go(!0,n))}markAsPending(e={}){this.status=Yr;let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Jr(this.status,r)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(K(E({},e),{sourceControl:r}))}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=po,this.errors=null,this._forEachChild(i=>{i.disable(K(E({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Ha(this.value,n)),this._events.next(new Jr(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(K(E({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=ho,this._forEachChild(n=>{n.enable(K(E({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(K(E({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,r){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},r),this._parent._updateTouched({},r))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ho||this.status===Yr)&&this._runAsyncValidator(n,e.emitEvent)}let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Ha(this.value,r)),this._events.next(new Jr(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(K(E({},e),{sourceControl:r}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?po:ho}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,r){if(this.asyncValidator){this.status=Yr,this._hasOwnPendingAsyncValidator={emitEvent:r!==!1};let n=jv(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:r,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(r.emitEvent!==!1,this,r.shouldHaveEmitted)}get(e){let r=e;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((n,i)=>n&&n._find(i),this)}getError(e,r){let n=r?this.get(r):this;return n&&n.errors?n.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,r,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new Jr(this.status,r)),this._parent&&this._parent._updateControlsErrors(e,r,n)}_initObservables(){this.valueChanges=new ie,this.statusChanges=new ie}_calculateStatus(){return this._allControlsDisabled()?po:this.errors?ja:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Yr)?Yr:this._anyControlsHaveStatus(ja)?ja:ho}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,r){let n=!this._anyControlsDirty(),i=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),i&&this._events.next(new go(this.pristine,r))}_updateTouched(e={},r){this.touched=this._anyControlsTouched(),this._events.next(new mo(this.touched,r)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Qa(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let r=this._parent&&this._parent.dirty;return!e&&!!r&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=gT(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=mT(this._rawAsyncValidators)}},nr=class extends za{constructor(e,r,n){super(Zv(r),Yv(n,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,r){return this.controls[e]?this.controls[e]:(this.controls[e]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(e,r,n={}){this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(e,r,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],r&&this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,r={}){vT(this,!0,e),Object.keys(e).forEach(n=>{yT(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(Object.keys(e).forEach(n=>{let i=this.controls[n];i&&i.patchValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e={},r={}){this._forEachChild((n,i)=>{n.reset(e?e[i]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(e,r,n)=>(e[n]=r.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(r,n)=>n._syncPendingControls()?!0:r);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(r=>{let n=this.controls[r];n&&e(n,r)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[r,n]of Object.entries(this.controls))if(this.contains(r)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(r,n,i)=>((n.enabled||this.disabled)&&(r[i]=n.value),r))}_reduceChildren(e,r){let n=e;return this._forEachChild((i,o)=>{n=r(n,i,o)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Za=new S("CallSetDisabledState",{providedIn:"root",factory:()=>Ya}),Ya="always";function hf(t,e){return[...e.path,t]}function ff(t,e,r=Ya){pf(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),ET(t,e),CT(t,e),wT(t,e),DT(t,e)}function Ga(t,e,r=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),Wa(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function qa(t,e){t.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function DT(t,e){if(e.valueAccessor.setDisabledState){let r=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(r),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(r)})}}function pf(t,e){let r=qv(t);e.validator!==null?t.setValidators(Mv(r,e.validator)):typeof r=="function"&&t.setValidators([r]);let n=Wv(t);e.asyncValidator!==null?t.setAsyncValidators(Mv(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let i=()=>t.updateValueAndValidity();qa(e._rawValidators,i),qa(e._rawAsyncValidators,i)}function Wa(t,e){let r=!1;if(t!==null){if(e.validator!==null){let i=qv(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.validator);o.length!==i.length&&(r=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let i=Wv(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.asyncValidator);o.length!==i.length&&(r=!0,t.setAsyncValidators(o))}}}let n=()=>{};return qa(e._rawValidators,n),qa(e._rawAsyncValidators,n),r}function ET(t,e){e.valueAccessor.registerOnChange(r=>{t._pendingValue=r,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Jv(t,e)})}function wT(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Jv(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function Jv(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function CT(t,e){let r=(n,i)=>{e.valueAccessor.writeValue(n),i&&e.viewToModelUpdate(n)};t.registerOnChange(r),e._registerOnDestroy(()=>{t._unregisterOnChange(r)})}function bT(t,e){t==null,pf(t,e)}function _T(t,e){return Wa(t,e)}function Xv(t,e){if(!t.hasOwnProperty("model"))return!1;let r=t.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function IT(t){return Object.getPrototypeOf(t.constructor)===yo}function ST(t,e){t._syncPendingControls(),e.forEach(r=>{let n=r.control;n.updateOn==="submit"&&n._pendingChange&&(r.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function eD(t,e){if(!e)return null;Array.isArray(e);let r,n,i;return e.forEach(o=>{o.constructor===Ka?r=o:IT(o)?n=o:i=o}),i||n||r||null}function MT(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function Nv(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function xv(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Fe=class extends za{constructor(e=null,r,n){super(Zv(r),Yv(n,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Qa(r)&&(r.nonNullable||r.initialValueIsDefault)&&(xv(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Nv(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Nv(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){xv(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var TT=t=>t instanceof Fe,AT=(()=>{let e=class e extends rt{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return hf(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=ft(e)))(o||e)}})(),e.\u0275dir=J({type:e,features:[ye]});let t=e;return t})();var tD=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=J({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})(),NT={provide:rr,useExisting:Oe(()=>gf),multi:!0},gf=(()=>{let e=class e extends yo{writeValue(n){let i=n??"";this.setProperty("value",i)}registerOnChange(n){this.onChange=i=>{n(i==""?null:parseFloat(i))}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=ft(e)))(o||e)}})(),e.\u0275dir=J({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,o){i&1&&Ee("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[He([NT]),ye]});let t=e;return t})(),xT={provide:rr,useExisting:Oe(()=>mf),multi:!0};var RT=(()=>{let e=class e{constructor(){this._accessors=[]}add(n,i){this._accessors.push([n,i])}remove(n){for(let i=this._accessors.length-1;i>=0;--i)if(this._accessors[i][1]===n){this._accessors.splice(i,1);return}}select(n){this._accessors.forEach(i=>{this._isSameGroup(i,n)&&i[1]!==n&&i[1].fireUncheck(n.value)})}_isSameGroup(n,i){return n[0].control?n[0]._parent===i._control._parent&&n[1].name===i.name:!1}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),mf=(()=>{let e=class e extends yo{constructor(n,i,o,s){super(n,i),this._registry=o,this._injector=s,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=v(Za,{optional:!0})??Ya}ngOnInit(){this._control=this._injector.get(Mn),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(n){this._state=n===this.value,this.setProperty("checked",this._state)}registerOnChange(n){this._fn=n,this.onChange=()=>{n(this.value),this._registry.select(this)}}setDisabledState(n){(this.setDisabledStateFired||n||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",n),this.setDisabledStateFired=!0}fireUncheck(n){this.writeValue(n)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}};e.\u0275fac=function(i){return new(i||e)(M(Mt),M(Me),M(RT),M(Vt))},e.\u0275dir=J({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(i,o){i&1&&Ee("change",function(){return o.onChange()})("blur",function(){return o.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[He([xT]),ye]});let t=e;return t})();var yf=new S(""),OT={provide:Mn,useExisting:Oe(()=>vf)},vf=(()=>{let e=class e extends Mn{set isDisabled(n){}constructor(n,i,o,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new ie,this._ngModelWarningSent=!1,this._setValidators(n),this._setAsyncValidators(i),this.valueAccessor=eD(this,o)}ngOnChanges(n){if(this._isControlChanged(n)){let i=n.form.previousValue;i&&Ga(i,this,!1),ff(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Xv(n,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ga(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_isControlChanged(n){return n.hasOwnProperty("form")}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(i){return new(i||e)(M(ir,10),M(vo,10),M(rr,10),M(yf,8),M(Za,8))},e.\u0275dir=J({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[He([OT]),ye,St]});let t=e;return t})(),PT={provide:rt,useExisting:Oe(()=>Ja)},Ja=(()=>{let e=class e extends rt{get submitted(){return Wt(this._submittedReactive)}set submitted(n){this._submittedReactive.set(n)}constructor(n,i,o){super(),this.callSetDisabledState=o,this._submitted=ki(()=>this._submittedReactive()),this._submittedReactive=xi(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new ie,this._setValidators(n),this._setAsyncValidators(i)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Wa(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let i=this.form.get(n.path);return ff(i,n,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),i}getControl(n){return this.form.get(n.path)}removeControl(n){Ga(n.control||null,n,!1),MT(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,i){this.form.get(n.path).setValue(i)}onSubmit(n){return this._submittedReactive.set(!0),ST(this.form,this.directives),this.ngSubmit.emit(n),this.form._events.next(new uf(this.control)),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this._submittedReactive.set(!1),this.form._events.next(new df(this.form))}_updateDomValue(){this.directives.forEach(n=>{let i=n.control,o=this.form.get(n.path);i!==o&&(Ga(i||null,n),TT(o)&&(ff(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let i=this.form.get(n.path);bT(i,n),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let i=this.form.get(n.path);i&&_T(i,n)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){pf(this.form,this),this._oldForm&&Wa(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(i){return new(i||e)(M(ir,10),M(vo,10),M(Za,8))},e.\u0275dir=J({type:e,selectors:[["","formGroup",""]],hostBindings:function(i,o){i&1&&Ee("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[He([PT]),ye,St]});let t=e;return t})(),FT={provide:rt,useExisting:Oe(()=>Xa)},Xa=(()=>{let e=class e extends AT{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),this._setAsyncValidators(o)}_checkParentType(){rD(this._parent)}};e.\u0275fac=function(i){return new(i||e)(M(rt,13),M(ir,10),M(vo,10))},e.\u0275dir=J({type:e,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[He([FT]),ye]});let t=e;return t})(),kT={provide:rt,useExisting:Oe(()=>nD)},nD=(()=>{let e=class e extends rt{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),this._setAsyncValidators(o)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return hf(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){rD(this._parent)}};e.\u0275fac=function(i){return new(i||e)(M(rt,13),M(ir,10),M(vo,10))},e.\u0275dir=J({type:e,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[He([kT]),ye]});let t=e;return t})();function rD(t){return!(t instanceof Xa)&&!(t instanceof Ja)&&!(t instanceof nD)}var LT={provide:Mn,useExisting:Oe(()=>Df)},Df=(()=>{let e=class e extends Mn{set isDisabled(n){}constructor(n,i,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new ie,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=eD(this,s)}ngOnChanges(n){this._added||this._setUpControl(),Xv(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return hf(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(i){return new(i||e)(M(rt,13),M(ir,10),M(vo,10),M(rr,10),M(yf,8))},e.\u0275dir=J({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[He([LT]),ye,St]});let t=e;return t})(),jT={provide:rr,useExisting:Oe(()=>el),multi:!0};function iD(t,e){return t==null?`${e}`:(e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function VT(t){return t.split(":")[0]}var el=(()=>{let e=class e extends yo{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let i=this._getOptionId(n),o=iD(i,n);this.setProperty("value",o)}registerOnChange(n){this.onChange=i=>{this.value=this._getOptionValue(i),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i),n))return i;return null}_getOptionValue(n){let i=VT(n);return this._optionMap.has(i)?this._optionMap.get(i):n}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=ft(e)))(o||e)}})(),e.\u0275dir=J({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(i,o){i&1&&Ee("change",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[He([jT]),ye]});let t=e;return t})(),oD=(()=>{let e=class e{constructor(n,i,o){this._element=n,this._renderer=i,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue(iD(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(i){return new(i||e)(M(Me),M(Mt),M(el,9))},e.\u0275dir=J({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})(),UT={provide:rr,useExisting:Oe(()=>sD),multi:!0};function Rv(t,e){return t==null?`${e}`:(typeof e=="string"&&(e=`'${e}'`),e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function BT(t){return t.split(":")[0]}var sD=(()=>{let e=class e extends yo{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let i;if(Array.isArray(n)){let o=n.map(s=>this._getOptionId(s));i=(s,a)=>{s._setSelected(o.indexOf(a.toString())>-1)}}else i=(o,s)=>{o._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(n){this.onChange=i=>{let o=[],s=i.selectedOptions;if(s!==void 0){let a=s;for(let l=0;l{let n;return function(o){return(n||(n=ft(e)))(o||e)}})(),e.\u0275dir=J({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(i,o){i&1&&Ee("change",function(a){return o.onChange(a.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[He([UT]),ye]});let t=e;return t})(),aD=(()=>{let e=class e{constructor(n,i,o){this._element=n,this._renderer=i,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(Rv(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(Rv(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(i){return new(i||e)(M(Me),M(Mt),M(sD,9))},e.\u0275dir=J({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})();function lD(t){return typeof t=="number"?t:parseFloat(t)}var cD=(()=>{let e=class e{constructor(){this._validator=Va}ngOnChanges(n){if(this.inputName in n){let i=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):Va,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=J({type:e,features:[St]});let t=e;return t})(),$T={provide:ir,useExisting:Oe(()=>Ef),multi:!0},Ef=(()=>{let e=class e extends cD{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=n=>lD(n),this.createValidator=n=>kv(n)}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=ft(e)))(o||e)}})(),e.\u0275dir=J({type:e,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(i,o){i&2&&Ri("max",o._enabled?o.max:null)},inputs:{max:"max"},features:[He([$T]),ye]});let t=e;return t})(),HT={provide:ir,useExisting:Oe(()=>wf),multi:!0},wf=(()=>{let e=class e extends cD{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=n=>lD(n),this.createValidator=n=>Fv(n)}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=ft(e)))(o||e)}})(),e.\u0275dir=J({type:e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(i,o){i&2&&Ri("min",o._enabled?o.min:null)},inputs:{min:"min"},features:[He([HT]),ye]});let t=e;return t})();var zT=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Xe({type:e}),e.\u0275inj=Je({});let t=e;return t})();var uD=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:yf,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:Za,useValue:n.callSetDisabledState??Ya}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Xe({type:e}),e.\u0275inj=Je({imports:[zT]});let t=e;return t})();function ei(t){return t===null?"null":t!==Object(t)?typeof t:{}.toString.call(t).slice(8,-1).toLowerCase()}function yt(t){return ei(t)!=="string"?!0:!t.length}function or(t="",e,r){if(yt(t))return!1;let n=t.charCodeAt(0);return e<=n&&n<=r}var ID={HEPBURN:"hepburn"},qT={useObsoleteKana:!1,passRomaji:!1,convertLongVowelMark:!0,upcaseKatakana:!1,IMEMode:!1,romanization:ID.HEPBURN};var WT=65345,KT=65370,QT=65313,ZT=65338,SD=12353,YT=12438,MD=12449,JT=12540,XT=19968,eA=40879,tA=12293,nA=12540,rA=12539,iA=[65296,65305],oA=[QT,ZT],sA=[WT,KT],aA=[65281,65295],lA=[65306,65311],cA=[65339,65343],uA=[65371,65376],dA=[65504,65518],fA=[12352,12447],hA=[12448,12543],pA=[65382,65439],gA=[12539,12540],TD=[65377,65381],mA=[12288,12351],yA=[19968,40959],vA=[13312,19903],DA=[fA,hA,TD,pA],AD=[mA,TD,gA,aA,lA,cA,uA,dA],EA=[...DA,...AD,oA,sA,iA,yA,vA],wA=[0,127],CA=[[256,257],[274,275],[298,299],[332,333],[362,363]],bA=[[8216,8217],[8220,8221]],_A=[wA,...CA],IA=[[32,47],[58,63],[91,96],[123,126],...bA];function dD(t=""){return EA.some(([e,r])=>or(t,e,r))}var fD=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function SA(t,e){return!!(t===e||fD(t)&&fD(e))}function MA(t,e){if(t.length!==e.length)return!1;for(var r=0;rObject.assign({},qT,t);function AA(t,e,r){let n=e;function i(a,l){if(a[l]!==void 0)return Object.assign({"":a[""]+l},a[l])}function o(a,l){let c=a.charAt(0);return s(Object.assign({"":c},n[c]),a.slice(1),l,l+1)}function s(a,l,c,u){if(!l)return r||Object.keys(a).length===1?a[""]?[[c,u,a[""]]]:[]:[[c,u,null]];if(Object.keys(a).length===1)return[[c,u,a[""]]].concat(o(l,u));let d=i(a,l.charAt(0));return d===void 0?[[c,u,a[""]]].concat(o(l,u)):s(d,l.slice(1),c,u+1)}return o(t,0)}function Sf(t){return Object.entries(t).reduce((e,[r,n])=>{let i=ei(n)==="string";return e[r]=i?{"":n}:Sf(n),e},{})}function xD(t,e){return e.split("").reduce((r,n)=>(r[n]===void 0&&(r[n]={}),r[n]),t)}function RD(t={}){let e={};return ei(t)==="object"&&Object.entries(t).forEach(([r,n])=>{let i=e;r.split("").forEach(o=>{i[o]===void 0&&(i[o]={}),i=i[o]}),i[""]=n}),function(n){let i=JSON.parse(JSON.stringify(n));function o(s,a){return s===void 0||ei(s)==="string"?a:Object.entries(a).reduce((l,[c,u])=>(l[c]=o(s[c],u),l),s)}return o(i,e)}}function OD(t,e){return e?ei(e)==="function"?e(t):RD(e)(t):t}var NA={a:"\u3042",i:"\u3044",u:"\u3046",e:"\u3048",o:"\u304A",k:{a:"\u304B",i:"\u304D",u:"\u304F",e:"\u3051",o:"\u3053"},s:{a:"\u3055",i:"\u3057",u:"\u3059",e:"\u305B",o:"\u305D"},t:{a:"\u305F",i:"\u3061",u:"\u3064",e:"\u3066",o:"\u3068"},n:{a:"\u306A",i:"\u306B",u:"\u306C",e:"\u306D",o:"\u306E"},h:{a:"\u306F",i:"\u3072",u:"\u3075",e:"\u3078",o:"\u307B"},m:{a:"\u307E",i:"\u307F",u:"\u3080",e:"\u3081",o:"\u3082"},y:{a:"\u3084",u:"\u3086",o:"\u3088"},r:{a:"\u3089",i:"\u308A",u:"\u308B",e:"\u308C",o:"\u308D"},w:{a:"\u308F",i:"\u3090",e:"\u3091",o:"\u3092"},g:{a:"\u304C",i:"\u304E",u:"\u3050",e:"\u3052",o:"\u3054"},z:{a:"\u3056",i:"\u3058",u:"\u305A",e:"\u305C",o:"\u305E"},d:{a:"\u3060",i:"\u3062",u:"\u3065",e:"\u3067",o:"\u3069"},b:{a:"\u3070",i:"\u3073",u:"\u3076",e:"\u3079",o:"\u307C"},p:{a:"\u3071",i:"\u3074",u:"\u3077",e:"\u307A",o:"\u307D"},v:{a:"\u3094\u3041",i:"\u3094\u3043",u:"\u3094",e:"\u3094\u3047",o:"\u3094\u3049"}},xA={".":"\u3002",",":"\u3001",":":"\uFF1A","/":"\u30FB","!":"\uFF01","?":"\uFF1F","~":"\u301C","-":"\u30FC","\u2018":"\u300C","\u2019":"\u300D","\u201C":"\u300E","\u201D":"\u300F","[":"\uFF3B","]":"\uFF3D","(":"\uFF08",")":"\uFF09","{":"\uFF5B","}":"\uFF5D"},gD={k:"\u304D",s:"\u3057",t:"\u3061",n:"\u306B",h:"\u3072",m:"\u307F",r:"\u308A",g:"\u304E",z:"\u3058",d:"\u3062",b:"\u3073",p:"\u3074",v:"\u3094",q:"\u304F",f:"\u3075"},PD={ya:"\u3083",yi:"\u3043",yu:"\u3085",ye:"\u3047",yo:"\u3087"},FD={a:"\u3041",i:"\u3043",u:"\u3045",e:"\u3047",o:"\u3049"},mD={sh:"sy",ch:"ty",cy:"ty",chy:"ty",shy:"sy",j:"zy",jy:"zy",shi:"si",chi:"ti",tsu:"tu",ji:"zi",fu:"hu"},RA=Object.assign({tu:"\u3063",wa:"\u308E",ka:"\u30F5",ke:"\u30F6"},FD,PD),OA={yi:"\u3044",wu:"\u3046",ye:"\u3044\u3047",wi:"\u3046\u3043",we:"\u3046\u3047",kwa:"\u304F\u3041",whu:"\u3046",tha:"\u3066\u3083",thu:"\u3066\u3085",tho:"\u3066\u3087",dha:"\u3067\u3083",dhu:"\u3067\u3085",dho:"\u3067\u3087"},PA={wh:"\u3046",kw:"\u304F",qw:"\u304F",q:"\u304F",gw:"\u3050",sw:"\u3059",ts:"\u3064",th:"\u3066",tw:"\u3068",dh:"\u3067",dw:"\u3069",fw:"\u3075",f:"\u3075"};function FA(){let t=Sf(NA),e=i=>xD(t,i);Object.entries(gD).forEach(([i,o])=>{Object.entries(PD).forEach(([s,a])=>{e(i+s)[""]=o+a})}),Object.entries(xA).forEach(([i,o])=>{e(i)[""]=o}),Object.entries(PA).forEach(([i,o])=>{Object.entries(FD).forEach(([s,a])=>{let l=e(i+s);l[""]=o+a})}),["n","n'","xn"].forEach(i=>{e(i)[""]="\u3093"}),t.c=JSON.parse(JSON.stringify(t.k)),Object.entries(mD).forEach(([i,o])=>{let s=i.slice(0,i.length-1),a=i.charAt(i.length-1),l=e(s);l[a]=JSON.parse(JSON.stringify(e(o)))});function r(i){return[...Object.entries(mD),["c","k"]].reduce((o,[s,a])=>i.startsWith(a)?o.concat(i.replace(a,s)):o,[])}Object.entries(RA).forEach(([i,o])=>{let s=d=>d.charAt(d.length-1),a=d=>d.slice(0,d.length-1),l=`x${i}`,c=e(l);c[""]=o;let u=e(`l${a(i)}`);u[s(i)]=c,r(i).forEach(d=>{["l","x"].forEach(h=>{let f=e(h+a(d));f[s(d)]=e(h+i)})})}),Object.entries(OA).forEach(([i,o])=>{e(i)[""]=o});function n(i){return Object.entries(i).reduce((o,[s,a])=>(s?o[s]=n(a):o[s]=`\u3063${a}`,o),{})}return[...Object.keys(gD),"c","y","w","j"].forEach(i=>{let o=t[i];o[i]=n(o)}),delete t.n.n,Object.freeze(JSON.parse(JSON.stringify(t)))}var Cf=null;function kA(){return Cf==null&&(Cf=FA()),Cf}var LA=RD({wi:"\u3090",we:"\u3091"});function jA(t){let e=JSON.parse(JSON.stringify(t));return e.n.n={"":"\u3093"},e.n[" "]={"":"\u3093"},e}function nl(t=""){return yt(t)?!1:t.charCodeAt(0)===nA}function VA(t=""){return yt(t)?!1:t.charCodeAt(0)===rA}function UA(t=""){return yt(t)?!1:nl(t)?!0:or(t,SD,YT)}var OV=ND((t,e,r)=>{let n=kA();return n=t?jA(n):n,n=e?LA(n):n,r&&(n=OD(n,r)),n},Xr);function If(t=""){return yt(t)?!1:_A.some(([e,r])=>or(t,e,r))}function kD(t="",e){let r=ei(e)==="regexp";return yt(t)?!1:[...t].every(n=>{let i=If(n);return r?i||e.test(n):i})}function tl(t=""){return or(t,MD,JT)}function BA(t=""){return yt(t)?!1:[...t].every(tl)}function LD(t=""){return yt(t)?!1:t.charCodeAt(0)===tA}function $A(t=""){return or(t,XT,eA)||LD(t)}var HA=(t,e)=>nl(t)&&e<1,zA=(t,e)=>nl(t)&&e>0,GA=t=>["\u30F6","\u30F5"].includes(t),qA={a:"\u3042",i:"\u3044",u:"\u3046",e:"\u3048",o:"\u3046"};function WA(t="",e,{isDestinationRomaji:r,convertLongVowelMark:n}={}){let i="";return t.split("").reduce((o,s,a)=>{if(VA(s)||HA(s,a)||GA(s))return o.concat(s);if(n&&i&&zA(s,a)){let l=e(i).slice(-1);return tl(t[a-1])&&l==="o"&&r?o.concat("\u304A"):o.concat(qA[l])}if(!nl(s)&&tl(s)){let l=s.charCodeAt(0)+(SD-MD),c=String.fromCharCode(l);return i=c,o.concat(c)}return i="",o.concat(s)},[]).join("")}var bf=null,KA={\u3042:"a",\u3044:"i",\u3046:"u",\u3048:"e",\u304A:"o",\u304B:"ka",\u304D:"ki",\u304F:"ku",\u3051:"ke",\u3053:"ko",\u3055:"sa",\u3057:"shi",\u3059:"su",\u305B:"se",\u305D:"so",\u305F:"ta",\u3061:"chi",\u3064:"tsu",\u3066:"te",\u3068:"to",\u306A:"na",\u306B:"ni",\u306C:"nu",\u306D:"ne",\u306E:"no",\u306F:"ha",\u3072:"hi",\u3075:"fu",\u3078:"he",\u307B:"ho",\u307E:"ma",\u307F:"mi",\u3080:"mu",\u3081:"me",\u3082:"mo",\u3089:"ra",\u308A:"ri",\u308B:"ru",\u308C:"re",\u308D:"ro",\u3084:"ya",\u3086:"yu",\u3088:"yo",\u308F:"wa",\u3090:"wi",\u3091:"we",\u3092:"wo",\u3093:"n",\u304C:"ga",\u304E:"gi",\u3050:"gu",\u3052:"ge",\u3054:"go",\u3056:"za",\u3058:"ji",\u305A:"zu",\u305C:"ze",\u305E:"zo",\u3060:"da",\u3062:"ji",\u3065:"zu",\u3067:"de",\u3069:"do",\u3070:"ba",\u3073:"bi",\u3076:"bu",\u3079:"be",\u307C:"bo",\u3071:"pa",\u3074:"pi",\u3077:"pu",\u307A:"pe",\u307D:"po",\u3094\u3041:"va",\u3094\u3043:"vi",\u3094:"vu",\u3094\u3047:"ve",\u3094\u3049:"vo"},QA={"\u3002":".","\u3001":",","\uFF1A":":","\u30FB":"/","\uFF01":"!","\uFF1F":"?","\u301C":"~",\u30FC:"-","\u300C":"\u2018","\u300D":"\u2019","\u300E":"\u201C","\u300F":"\u201D","\uFF3B":"[","\uFF3D":"]","\uFF08":"(","\uFF09":")","\uFF5B":"{","\uFF5D":"}","\u3000":" "},ZA=["\u3042","\u3044","\u3046","\u3048","\u304A","\u3084","\u3086","\u3088"],_f={\u3083:"ya",\u3085:"yu",\u3087:"yo"},YA={\u3043:"yi",\u3047:"ye"},JA={\u3041:"a",\u3043:"i",\u3045:"u",\u3047:"e",\u3049:"o"},XA=["\u304D","\u306B","\u3072","\u307F","\u308A","\u304E","\u3073","\u3074","\u3094","\u304F","\u3075"],eN={\u3057:"sh",\u3061:"ch",\u3058:"j",\u3062:"j"},tN={\u3063:"",\u3083:"ya",\u3085:"yu",\u3087:"yo",\u3041:"a",\u3043:"i",\u3045:"u",\u3047:"e",\u3049:"o"},yD={b:"b",c:"t",d:"d",f:"f",g:"g",h:"h",j:"j",k:"k",m:"m",p:"p",q:"q",r:"r",s:"s",t:"t",v:"v",w:"w",x:"x",z:"z"};function nN(){return bf==null&&(bf=iN()),bf}function rN(t){switch(t){case ID.HEPBURN:return nN();default:return{}}}function iN(){let t=Sf(KA),e=n=>xD(t,n),r=(n,i)=>{e(n)[""]=i};return Object.entries(QA).forEach(([n,i])=>{e(n)[""]=i}),[...Object.entries(_f),...Object.entries(JA)].forEach(([n,i])=>{r(n,i)}),XA.forEach(n=>{let i=e(n)[""][0];Object.entries(_f).forEach(([o,s])=>{r(n+o,i+s)}),Object.entries(YA).forEach(([o,s])=>{r(n+o,i+s)})}),Object.entries(eN).forEach(([n,i])=>{Object.entries(_f).forEach(([o,s])=>{r(n+o,i+s[1])}),r(`${n}\u3043`,`${i}yi`),r(`${n}\u3047`,`${i}e`)}),t.\u3063=jD(t),Object.entries(tN).forEach(([n,i])=>{r(n,i)}),ZA.forEach(n=>{r(`\u3093${n}`,`n'${e(n)[""]}`)}),Object.freeze(JSON.parse(JSON.stringify(t)))}function jD(t){return Object.entries(t).reduce((e,[r,n])=>{if(r)e[r]=jD(n);else{let i=n.charAt(0);e[r]=Object.keys(yD).includes(i)?yD[i]+n:n}return e},{})}var VD=ND((t,e)=>{let r=rN(t);return e&&(r=OD(r,e)),r},Xr);function Mf(t="",e={},r){let n=TA(e);return r||(r=VD(n.romanization,n.customRomajiMapping)),oN(t,n,r).map(i=>{let[o,s,a]=i;return n.upcaseKatakana&&BA(t.slice(o,s))?a.toUpperCase():a}).join("")}function oN(t,e,r){r||(r=VD(e.romanization,e.customRomajiMapping));let n=Object.assign({},{isDestinationRomaji:!0},e);return AA(WA(t,Mf,n),r,!e.IMEMode)}function vD(t=""){return yt(t)?!1:IA.some(([e,r])=>or(t,e,r))}function DD(t=""){return yt(t)||LD(t)?!1:AD.some(([e,r])=>or(t,e,r))}var ED=t=>t===" ",wD=t=>t==="\u3000",CD=t=>/[0-9]/.test(t),bD=t=>/[0-9]/.test(t),sN={EN:"en",JA:"ja",EN_NUM:"englishNumeral",JA_NUM:"japaneseNumeral",EN_PUNC:"englishPunctuation",JA_PUNC:"japanesePunctuation",KANJI:"kanji",HIRAGANA:"hiragana",KATAKANA:"katakana",SPACE:"space",OTHER:"other"};function _D(t,e=!1){let{EN:r,JA:n,EN_NUM:i,JA_NUM:o,EN_PUNC:s,JA_PUNC:a,KANJI:l,HIRAGANA:c,KATAKANA:u,SPACE:d,OTHER:h}=sN;if(e)switch(!0){case CD(t):return h;case bD(t):return h;case ED(t):return r;case vD(t):return h;case wD(t):return n;case DD(t):return h;case dD(t):return n;case If(t):return r;default:return h}else switch(!0){case wD(t):return d;case ED(t):return d;case CD(t):return o;case bD(t):return i;case vD(t):return s;case DD(t):return a;case $A(t):return l;case UA(t):return c;case tl(t):return u;case dD(t):return n;case If(t):return r;default:return h}}function UD(t,{compact:e=!1,detailed:r=!1}={}){if(t==null||yt(t))return[];let n=[...t],i=n.shift(),o=_D(i,e);return i=r?{type:o,value:i}:i,n.reduce((a,l)=>{let c=_D(l,e),u=c===o;o=c;let d=l;return u&&(d=(r?a.pop().value:a.pop())+d),r?a.concat({type:c,value:d}):a.concat(d)},[i])}var aN=(t,e)=>({result:t,index:e}),lN=t=>({$implicit:t});function cN(t,e){if(t&1&&(w(0,"span"),de(1,"i",8),b(2),C()),t&2){let r=$e().$implicit;X(2),ia(" ",r,"")}}function uN(t,e){}function dN(t,e){if(t&1){let r=Oi();w(0,"button",5),Ee("click",function(){let i=Mi(r),o=i.$implicit,s=i.index,a=$e(3);return Ti(a.handleSelectionClick(o,s))}),Tt(1,cN,3,1,"span",6)(2,uN,0,0,"ng-template",7),C()}if(t&2){let r=e.$implicit,n=e.index,i=$e(3);Ur("active",i.markIsActive(n,r)),X(),Pe("ngIf",!i.taItemTpl),X(),Pe("ngTemplateOutlet",i.taItemTpl)("ngTemplateOutletContext",Wm(8,lN,Pi(5,aN,r,n)))}}function fN(t,e){if(t&1){let r=Oi();w(0,"section",2)(1,"div",3),Ee("click",function(){Mi(r);let i=$e(2);return Ti(i.hideSuggestions())}),C(),Tt(2,dN,3,10,"button",4),C()}if(t&2){let r=$e(2);X(2),Pe("ngForOf",r.results)}}function hN(t,e){if(t&1&&Tt(0,fN,3,1,"section",1),t&2){let r=$e();Pe("ngIf",r.showSuggestions)}}var Te=function(t){return t.Backspace="Backspace",t.Tab="Tab",t.Enter="Enter",t.ShiftLeft="ShiftLeft",t.ShiftRight="ShiftRight",t.Escape="Escape",t.ArrowLeft="ArrowLeft",t.ArrowRight="ArrowRight",t.ArrowUp="ArrowUp",t.ArrowDown="ArrowDown",t.MetaLeft="MetaLeft",t.MetaRight="MetaRight",t}(Te||{});function pN(t){return[Te.Enter,Te.Tab,Te.ShiftLeft,Te.ShiftRight,Te.ArrowLeft,Te.ArrowUp,Te.ArrowRight,Te.ArrowDown,Te.MetaLeft,Te.MetaRight].every(e=>e!==t)}function gN(t){return t===Te.ArrowDown||t===Te.ArrowUp}function mN(t,e){return t===e}function yN(t){return t.code===Te.Enter}function vN(t){return t.code===Te.Escape}function DN(t,e="q",r={}){let n=E({[e]:t},r),i=(s,a)=>s.set(a,n[a]);return Object.keys(n).reduce(i,new Nt)}function EN(t=""){return["get","post","put","delete","patch","request"].some(n=>t===n)?t:"get"}var Tf=-1;function wN(t,e,r=10){let n=e?1:-1,i=r-1,o=Tf,s=t+n,a=s;return s===i+1&&(a=o),s===o-1&&(a=i),a}function CN(t){return t[1]}function bN(t){return t.map(e=>e[0])}function _N(t){return t.length>0}function IN(t){return t.target.value}function SN(t,e,r=!1){let n=t;return t.hasOwnProperty("length")||(n=(e.length?e:Object.keys(t)).reduce((o,s)=>`${o}${t[s]}`,"")),r?n:n.toLowerCase()}var BD=(()=>{let e=class e{constructor(n,i,o,s){this.element=n,this.viewContainer=i,this.http=o,this.cdr=s,this.showSuggestions=!1,this.results=[],this.taUrl="",this.taParams={},this.taQueryParam="q",this.taApi="jsonp",this.taApiMethod="get",this.taList=[],this.taListItemField=[],this.taListItemLabel="",this.taDebounce=300,this.taAllowEmpty=!1,this.taCaseSensitive=!1,this.taDisplayOnFocus=!1,this.taSelected=new ie,this.suggestionIndex=0,this.subscriptions=[],this.activeResult="",this.searchQuery="",this.selectedItem={},this.resultsAsItems=[],this.keydown$=new le,this.keyup$=new le}handleEsc(n){vN(n)&&(this.hideSuggestions(),n.preventDefault()),this.keydown$.next(n)}onkeyup(n){n.preventDefault(),n.stopPropagation(),this.keyup$.next(n)}onClick(){this.taDisplayOnFocus&&this.displaySuggestions()}ngOnInit(){this.filterEnterEvent(this.keydown$),this.listenAndSuggest(this.keyup$),this.navigateWithArrows(this.keydown$),this.renderTemplate()}ngOnDestroy(){this.keydown$.complete(),this.keyup$.complete()}renderTemplate(){if(!this.suggestionsTplRef){console.error("NO NGXTA Template Found. Requires NG9");return}this.viewContainer.createEmbeddedView(this.suggestionsTplRef),this.cdr.markForCheck()}listenAndSuggest(n){n.pipe(me(i=>pN(i.code)),R(IN),ql(this.taDebounce),Gl(),Kl(),me(i=>this.taAllowEmpty||_N(i)),ue(i=>this.searchQuery=i),Ne(i=>this.suggest(i))).subscribe(i=>{this.assignResults(i),this.displaySuggestions()})}assignResults(n){let i=this.taListItemLabel;this.resultsAsItems=n,this.results=n.map(o=>i?o[i]:o),this.suggestionIndex=Tf,(!n||!n.length)&&(this.activeResult=this.searchQuery)}filterEnterEvent(n){n.pipe(me(yN)).subscribe(i=>{this.handleSelectSuggestion(this.activeResult)})}navigateWithArrows(n){n.pipe(R(i=>i.key),me(i=>gN(i))).subscribe(i=>{this.updateIndex(i),this.displaySuggestions()})}updateIndex(n){this.suggestionIndex=wN(this.suggestionIndex,n===Te.ArrowDown,this.results.length)}displaySuggestions(){this.showSuggestions=!0,this.cdr.markForCheck()}suggest(n){return this.taList.length?this.createListSource(this.taList,n):this.request(n)}request(n){let i=this.taUrl,s={params:DN(n,this.taQueryParam,this.taParams)};return this.taApi==="jsonp"?this.requestJsonp(i,s,this.taCallbackParamValue):this.requestHttp(i,s)}requestHttp(n,i){let o=EN(this.taApiMethod);return this.http[o](n,i)}requestJsonp(n,i,o="callback"){let s=i.params.toString();return this.http.jsonp(`${n}?${s}`,o).pipe(R(CN),R(bN))}markIsActive(n,i){let o=mN(n,this.suggestionIndex);return o&&(this.activeResult=i),o}handleSelectionClick(n,i){this.suggestionIndex=i,this.handleSelectSuggestion(n)}handleSelectSuggestion(n){let i=this.resultsAsItems.length?this.resultsAsItems[this.suggestionIndex]:n;this.hideSuggestions();let o=this.suggestionIndex===Tf?this.searchQuery:i;this.taSelected.emit(o)}hideSuggestions(){this.showSuggestions=!1}hasItemTemplate(){return this.taItemTpl!==void 0}createListSource(n,i){let o=this.taCaseSensitive?i:i.toLowerCase(),s=this.taListItemField;return x(n.filter(a=>SN(a,s,this.taCaseSensitive).includes(o)))}};e.\u0275fac=function(i){return new(i||e)(M(Me),M(pt),M($i),M(wn))},e.\u0275cmp=gn({type:e,selectors:[["ngx-typeahead"],["","ngxTypeahead",""]],viewQuery:function(i,o){if(i&1&&zm(Bt,7),i&2){let s;Ju(s=Xu())&&(o.suggestionsTplRef=s.first)}},hostBindings:function(i,o){i&1&&Ee("keydown",function(a){return o.handleEsc(a)})("keyup",function(a){return o.onkeyup(a)})("click",function(){return o.onClick()})},inputs:{taItemTpl:"taItemTpl",taUrl:"taUrl",taParams:"taParams",taQueryParam:"taQueryParam",taCallbackParamValue:"taCallbackParamValue",taApi:"taApi",taApiMethod:"taApiMethod",taList:"taList",taListItemField:"taListItemField",taListItemLabel:"taListItemLabel",taDebounce:"taDebounce",taAllowEmpty:"taAllowEmpty",taCaseSensitive:"taCaseSensitive",taDisplayOnFocus:"taDisplayOnFocus"},outputs:{taSelected:"taSelected"},standalone:!0,features:[En],decls:2,vars:0,consts:[["suggestionsTplRef",""],["class","ta-results list-group",4,"ngIf"],[1,"ta-results","list-group"],[1,"ta-backdrop",3,"click"],["type","button","class","ta-item list-group-item",3,"active","click",4,"ngFor","ngForOf"],["type","button",1,"ta-item","list-group-item",3,"click"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"fa","fa-search"]],template:function(i,o){i&1&&Tt(0,hN,1,1,"ng-template",null,0,Qm)},dependencies:[ha,vy,Dy,Ey],styles:[".ta-results[_ngcontent-%COMP%]{position:absolute}.ta-backdrop[_ngcontent-%COMP%]{inset:0;position:fixed;z-index:1}.ta-item[_ngcontent-%COMP%]{position:relative;z-index:2;display:block}"]});let t=e;return t})();var $D=t=>{if(t instanceof nr){let e=t,r=Object.keys(e.controls);return r.every(i=>!!e.controls[i].value||e.controls[i].value===0)||r.every(i=>!e.controls[i].value)?null:{allOrNoneRequired:!0}}else throw new TypeError("allOrNoneRequiredValidator should be applied to a FormGroup")};var TN=(t,e)=>e.difficulty,AN=()=>["title","romajiTitle"],HD=(t,e)=>({success:t,danger:e});function NN(t,e){if(t&1&&(w(0,"label"),de(1,"input",21),b(2),C()),t&2){let r=e.$implicit;X(),Pe("value",r.difficulty),X(),oa(" ",r.difficulty," (",r.level,") ")}}function xN(t,e){if(t&1&&(w(0,"fieldset",6)(1,"legend"),b(2,"Difficulty*"),C(),Zu(3,NN,3,3,"label",null,TN),C(),w(5,"div",7)(6,"label",8),b(7," Score* "),de(8,"input",9),C(),w(9,"label",8),b(10," Lamp* "),w(11,"select",10)(12,"option"),b(13,"FAILED"),C(),w(14,"option"),b(15,"ASSIST"),C(),w(16,"option"),b(17,"CLEAR"),C(),w(18,"option"),b(19,"FULL COMBO"),C(),w(20,"option"),b(21,"GREAT FULL COMBO"),C(),w(22,"option"),b(23,"PERFECT FULL COMBO"),C(),w(24,"option"),b(25,"MARVELOUS FULL COMBO"),C(),w(26,"option"),b(27,"LIFE4"),C()()(),w(28,"label",8),b(29," Time* "),de(30,"input",11),C(),w(31,"label",8),b(32," Flare (optional) "),w(33,"select",12)(34,"option"),b(35,"0"),C(),w(36,"option"),b(37,"I"),C(),w(38,"option"),b(39,"II"),C(),w(40,"option"),b(41,"III"),C(),w(42,"option"),b(43,"IV"),C(),w(44,"option"),b(45,"V"),C(),w(46,"option"),b(47,"VI"),C(),w(48,"option"),b(49,"VII"),C(),w(50,"option"),b(51,"VIII"),C(),w(52,"option"),b(53,"IX"),C(),w(54,"option"),b(55,"EX"),C()()()(),w(56,"fieldset",13)(57,"legend"),b(58,"Judgements (optional, all or none)"),C(),w(59,"label"),b(60," MARVELOUS "),de(61,"input",14),C(),w(62,"label"),b(63," PERFECT "),de(64,"input",15),C(),w(65,"label"),b(66," GREAT "),de(67,"input",16),C(),w(68,"label"),b(69," GOOD "),de(70,"input",17),C(),w(71,"label"),b(72," OK "),de(73,"input",18),C(),w(74,"label"),b(75," MISS "),de(76,"input",19),C()(),w(77,"div")(78,"button",20),b(79,"Add score"),C()()),t&2){let r=$e();Pe("ngClass",Pi(3,HD,r.group.controls.difficulty.valid,r.group.controls.difficulty.invalid)),X(3),Yu(r.selectedSongCharts),X(53),Pe("ngClass",Pi(6,HD,r.group.controls.judgements.valid,r.group.controls.judgements.invalid)),X(22),Pe("disabled",r.group.invalid)}}function RN(t,e){if(t&1&&(w(0,"span",23),b(1),C(),b(2," - "),w(3,"span",24),b(4),C(),b(5," - "),w(6,"span",25),b(7),C(),b(8," - "),w(9,"span",26),b(10),C(),b(11," - "),w(12,"span",27),b(13),C(),b(14," - "),w(15,"span",28),b(16),C()),t&2){let r=$e().$implicit;X(),tt(r.judgements.MARVELOUS),X(3),tt(r.judgements.PERFECT),X(3),tt(r.judgements.GREAT),X(3),tt(r.judgements.GOOD),X(3),tt(r.judgements.OK),X(3),tt(r.judgements.MISS)}}function ON(t,e){if(t&1&&(w(0,"tr")(1,"td"),b(2),C(),w(3,"td"),b(4),C(),w(5,"td"),b(6),C(),w(7,"td"),b(8),C(),w(9,"td"),b(10),C(),w(11,"td"),Tt(12,RN,17,6),C()()),t&2){let r=e.$implicit,n=$e(2);X(2),tt(n.getSongTitle(r.identifier)),X(2),oa("",r.difficulty," (",n.getChartLevel(r.identifier,r.difficulty),")"),X(2),tt(r.score),X(2),tt(r.lamp),X(2),tt(r.optional==null?null:r.optional.flare),X(2),ra(r.judgements?12:-1)}}function PN(t,e){if(t&1){let r=Oi();w(0,"h1"),b(1,"Summary"),C(),w(2,"table")(3,"thead")(4,"tr")(5,"th"),b(6,"Title"),C(),w(7,"th"),b(8,"Difficulty"),C(),w(9,"th"),b(10,"Score"),C(),w(11,"th"),b(12,"Lamp"),C(),w(13,"th"),b(14,"Flare"),C(),w(15,"th"),b(16,"Judgements"),C()()(),w(17,"tbody"),Zu(18,ON,13,7,"tr",null,Hm),C()(),w(20,"button",22),Ee("click",function(){Mi(r);let i=$e();return Ti(i.generate())}),b(21,"Generate !"),C()}if(t&2){let r=$e();X(18),Yu(r.scores)}}var rl=class t{constructor(e){this.route=e;this.songs=this.route.snapshot.data.songs.map(r=>(r.romajiTitle=UD(r.title).map(n=>Mf(n,{convertLongVowelMark:!0})).join(" "),kD(r.title)?r.label=r.title:r.label=r.title+" ["+r.romajiTitle+"]",r)).sort((r,n)=>{let i=r.romajiTitle.toUpperCase(),o=n.romajiTitle.toUpperCase();return io?1:0}),this.charts=this.route.snapshot.data.charts,this.playstyle.valueChanges.pipe(Cr("SP"),Zl()).subscribe(([r,n])=>{console.log(r,n),this.group.dirty&&(confirm("Warning : changing your playstyle will reset the form")?this.reset():this.playstyle.setValue(r,{emitEvent:!1}))}),this.group.statusChanges.subscribe(r=>{if(r==="VALID"&&(this.group.controls.judgements.controls.marvelous.value||this.group.controls.judgements.controls.marvelous.value===0)){let n="MARVELOUS FULL COMBO";this.group.controls.judgements.controls.perfect.value>0&&(n="PERFECT FULL COMBO"),this.group.controls.judgements.controls.great.value>0&&(n="GREAT FULL COMBO"),this.group.controls.judgements.controls.good.value>0&&(n="FULL COMBO"),this.group.controls.judgements.controls.miss.value>0&&(n="CLEAR"),this.group.controls.lamp.setValue(n)}})}songs;charts=[];selectedSong;selectedSongCharts;scores=[];playstyle=new Fe("SP",Yt.required);group=new nr({title:new Fe("",Yt.required),difficulty:new Fe("",Yt.required),score:new Fe(0,{nonNullable:!0,validators:Yt.required}),lamp:new Fe("CLEAR",Yt.required),flare:new Fe,time:new Fe(new Date().toISOString().slice(0,16),Yt.required),judgements:new nr({marvelous:new Fe,perfect:new Fe,great:new Fe,good:new Fe,ok:new Fe,miss:new Fe},$D)});reset(){this.group.reset({title:"",lamp:"CLEAR",score:0,time:new Date().toISOString().slice(0,16)}),this.selectedSong=void 0,this.selectedSongCharts=void 0}onSelectedSong(e){this.selectedSong=e,this.selectedSong&&(this.selectedSongCharts=this.charts.filter(r=>r.songID===this.selectedSong?.id&&r.playtype===this.playstyle.value).sort((r,n)=>+r.level-+n.level))}getSongTitle(e){return this.songs.filter(r=>""+r.id===e).pop()?.title}getChartLevel(e,r){return this.charts.filter(n=>""+n.songID===e&&n.difficulty===r).pop()?.level}addScore(){let e={lamp:this.group.controls.lamp.value,timeAchieved:new Date(this.group.controls.time.value).getTime(),matchType:"inGameID",identifier:""+this.selectedSong?.id,difficulty:this.group.controls.difficulty.value,score:this.group.controls.score.value};this.group.controls.judgements.dirty&&(e.judgements={GOOD:this.group.controls.judgements.controls.good.value,GREAT:this.group.controls.judgements.controls.great.value,MARVELOUS:this.group.controls.judgements.controls.marvelous.value,MISS:this.group.controls.judgements.controls.miss.value,OK:this.group.controls.judgements.controls.ok.value,PERFECT:this.group.controls.judgements.controls.perfect.value}),this.group.controls.flare.value&&(e.optional={flare:this.group.controls.flare.value}),this.scores.push(e),this.reset()}generate(){let e={meta:{game:"ddr",service:"sukoa",version:"",playtype:this.playstyle.value},scores:this.scores},r=new Blob([JSON.stringify(e)],{type:"application/json"}),n=document.createElement("a"),i=URL.createObjectURL(r);n.href=i,n.download="sukoa.json",document.body.appendChild(n),n.click(),setTimeout(function(){document.body.removeChild(n),window.URL.revokeObjectURL(i)},0)}static \u0275fac=function(r){return new(r||t)(M(_n))};static \u0275cmp=gn({type:t,selectors:[["app-main"]],standalone:!0,features:[En],decls:18,vars:9,consts:[[3,"submit","formGroup"],[1,"flex","space-around"],["name","playstyle","type","radio","value","SP",3,"formControl"],["name","playstyle","type","radio","value","DP",3,"formControl"],[1,"width"],["type","text","autocomplete","off","name","songTitle","formControlName","title","ngxTypeahead","","taListItemLabel","label","placeholder","Start typing to select the song (romaji available for japanese text)",3,"taSelected","taList","taListItemField","value"],[1,"flex","space-around",3,"ngClass"],[1,"flex"],[1,"grow"],["type","number","min","0","max","1000000","formControlName","score"],["formControlName","lamp"],["formControlName","time","type","datetime-local"],["formControlName","flare"],["formGroupName","judgements",1,"flex",3,"ngClass"],["type","number","min","0","formControlName","marvelous"],["type","number","min","0","formControlName","perfect"],["type","number","min","0","formControlName","great"],["type","number","min","0","formControlName","good"],["type","number","min","0","formControlName","ok"],["type","number","min","0","formControlName","miss"],["type","submit",3,"disabled"],["type","radio","formControlName","difficulty","id","difficulty",3,"value"],[3,"click"],[1,"success"],[1,"attention"],[1,"severe"],[1,"accent"],[1,"default"],[1,"danger"]],template:function(r,n){r&1&&(w(0,"form",0),Ee("submit",function(){return n.addScore()}),w(1,"fieldset",1)(2,"legend"),b(3,"Playstyle"),C(),w(4,"label"),de(5,"input",2),b(6," SP "),C(),w(7,"label"),de(8,"input",3),b(9," DP "),C()(),w(10,"fieldset")(11,"legend"),b(12,"Song information"),C(),w(13,"label",4),b(14," Title* "),w(15,"input",5),Ee("taSelected",function(o){return n.onSelectedSong(o)}),C()(),Tt(16,xN,80,9),C()(),Tt(17,PN,22,0)),r&2&&(Pe("formGroup",n.group),X(5),Pe("formControl",n.playstyle),X(3),Pe("formControl",n.playstyle),X(7),Pe("taList",n.songs)("taListItemField",qm(8,AN))("value",n.selectedSong==null?null:n.selectedSong.title),X(),ra(n.selectedSong?16:-1),X(),ra(n.scores.length?17:-1))},dependencies:[uD,tD,oD,aD,Ka,gf,el,mf,Kv,Qv,wf,Ef,vf,Ja,Df,Xa,BD,yy],styles:["form[_ngcontent-%COMP%]{overflow:unset} .ta-item{background:var(--contrast)}"]})};var ti=class t{constructor(e){this.http=e}getSongs(){return this.http.get("https://raw.githubusercontent.com/zkldi/Tachi/main/seeds/collections/songs-ddr.json")}getCharts(){return this.http.get("https://raw.githubusercontent.com/zkldi/Tachi/main/seeds/collections/charts-ddr.json")}static \u0275fac=function(r){return new(r||t)(T($i))};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})};var zD=(t,e)=>v(ti).getSongs();var GD=(t,e)=>v(ti).getCharts();var qD=[{path:"",component:rl,resolve:{songs:zD,charts:GD}}];var z=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}(z||{}),Rt="*";function WD(t,e=null){return{type:z.Sequence,steps:t,options:e}}function Af(t){return{type:z.Style,styles:t,offset:null}}var An=class{constructor(e=0,r=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+r}_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 r=e=="start"?this._onStartFns:this._onDoneFns;r.forEach(n=>n()),r.length=0}},Do=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 r=0,n=0,i=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++r==o&&this._onFinish()}),s.onDestroy(()=>{++n==o&&this._onDestroy()}),s.onStart(()=>{++i==o&&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 r=e*this.totalTime;this.players.forEach(n=>{let i=n.totalTime?Math.min(1,r/n.totalTime):1;n.setPosition(i)})}getPosition(){let e=this.players.reduce((r,n)=>r===null||n.totalTime>r.totalTime?n:r,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let r=e=="start"?this._onStartFns:this._onDoneFns;r.forEach(n=>n()),r.length=0}},il="!";function KD(t){return new m(3e3,!1)}function FN(){return new m(3100,!1)}function kN(){return new m(3101,!1)}function LN(t){return new m(3001,!1)}function jN(t){return new m(3003,!1)}function VN(t){return new m(3004,!1)}function UN(t,e){return new m(3005,!1)}function BN(){return new m(3006,!1)}function $N(){return new m(3007,!1)}function HN(t,e){return new m(3008,!1)}function zN(t){return new m(3002,!1)}function GN(t,e,r,n,i){return new m(3010,!1)}function qN(){return new m(3011,!1)}function WN(){return new m(3012,!1)}function KN(){return new m(3200,!1)}function QN(){return new m(3202,!1)}function ZN(){return new m(3013,!1)}function YN(t){return new m(3014,!1)}function JN(t){return new m(3015,!1)}function XN(t){return new m(3016,!1)}function ex(t,e){return new m(3404,!1)}function tx(t){return new m(3502,!1)}function nx(t){return new m(3503,!1)}function rx(){return new m(3300,!1)}function ix(t){return new m(3504,!1)}function ox(t){return new m(3301,!1)}function sx(t,e){return new m(3302,!1)}function ax(t){return new m(3303,!1)}function lx(t,e){return new m(3400,!1)}function cx(t){return new m(3401,!1)}function ux(t){return new m(3402,!1)}function dx(t,e){return new m(3505,!1)}function Nn(t){switch(t.length){case 0:return new An;case 1:return t[0];default:return new Do(t)}}function lE(t,e,r=new Map,n=new Map){let i=[],o=[],s=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),u=c==s,d=u&&a||new Map;l.forEach((h,f)=>{let p=f,g=h;if(f!=="offset")switch(p=t.normalizePropertyName(p,i),g){case il:g=r.get(f);break;case Rt:g=n.get(f);break;default:g=t.normalizeStyleValue(f,p,g,i);break}d.set(p,g)}),u||o.push(d),a=d,s=c}),i.length)throw tx(i);return o}function Jf(t,e,r,n){switch(e){case"start":t.onStart(()=>n(r&&Nf(r,"start",t)));break;case"done":t.onDone(()=>n(r&&Nf(r,"done",t)));break;case"destroy":t.onDestroy(()=>n(r&&Nf(r,"destroy",t)));break}}function Nf(t,e,r){let n=r.totalTime,i=!!r.disabled,o=Xf(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,n??t.totalTime,i),s=t._data;return s!=null&&(o._data=s),o}function Xf(t,e,r,n,i="",o=0,s){return{element:t,triggerName:e,fromState:r,toState:n,phaseName:i,totalTime:o,disabled:!!s}}function We(t,e,r){let n=t.get(e);return n||t.set(e,n=r),n}function QD(t){let e=t.indexOf(":"),r=t.substring(1,e),n=t.slice(e+1);return[r,n]}var fx=typeof document>"u"?null:document.documentElement;function eh(t){let e=t.parentNode||t.host||null;return e===fx?null:e}function hx(t){return t.substring(1,6)=="ebkit"}var sr=null,ZD=!1;function px(t){sr||(sr=gx()||{},ZD=sr.style?"WebkitAppearance"in sr.style:!1);let e=!0;return sr.style&&!hx(t)&&(e=t in sr.style,!e&&ZD&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in sr.style)),e}function gx(){return typeof document<"u"?document.body:null}function cE(t,e){for(;e;){if(e===t)return!0;e=eh(e)}return!1}function uE(t,e,r){if(r)return Array.from(t.querySelectorAll(e));let n=t.querySelector(e);return n?[n]:[]}var th=(()=>{let e=class e{validateStyleProperty(n){return px(n)}containsElement(n,i){return cE(n,i)}getParentElement(n){return eh(n)}query(n,i,o){return uE(n,i,o)}computeStyle(n,i,o){return o||""}animate(n,i,o,s,a,l=[],c){return new An(o,s)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})(),oh=class oh{};oh.NOOP=new th;var cr=oh,ur=class{};var mx=1e3,dE="{{",yx="}}",fE="ng-enter",kf="ng-leave",ol="ng-trigger",ul=".ng-trigger",YD="ng-animating",Lf=".ng-animating";function Jt(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:jf(parseFloat(e[1]),e[2])}function jf(t,e){switch(e){case"s":return t*mx;default:return t}}function dl(t,e,r){return t.hasOwnProperty("duration")?t:vx(t,e,r)}function vx(t,e,r){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,o=0,s="";if(typeof t=="string"){let a=t.match(n);if(a===null)return e.push(KD(t)),{duration:0,delay:0,easing:""};i=jf(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(o=jf(parseFloat(l),a[4]));let c=a[5];c&&(s=c)}else i=t;if(!r){let a=!1,l=e.length;i<0&&(e.push(FN()),a=!0),o<0&&(e.push(kN()),a=!0),a&&e.splice(l,0,KD(t))}return{duration:i,delay:o,easing:s}}function Dx(t){return t.length?t[0]instanceof Map?t:t.map(e=>new Map(Object.entries(e))):[]}function Ot(t,e,r){e.forEach((n,i)=>{let o=nh(i);r&&!r.has(i)&&r.set(i,t.style[o]),t.style[o]=n})}function lr(t,e){e.forEach((r,n)=>{let i=nh(n);t.style[i]=""})}function Eo(t){return Array.isArray(t)?t.length==1?t[0]:WD(t):t}function Ex(t,e,r){let n=e.params||{},i=hE(t);i.length&&i.forEach(o=>{n.hasOwnProperty(o)||r.push(LN(o))})}var Vf=new RegExp(`${dE}\\s*(.+?)\\s*${yx}`,"g");function hE(t){let e=[];if(typeof t=="string"){let r;for(;r=Vf.exec(t);)e.push(r[1]);Vf.lastIndex=0}return e}function Co(t,e,r){let n=`${t}`,i=n.replace(Vf,(o,s)=>{let a=e[s];return a==null&&(r.push(jN(s)),a=""),a.toString()});return i==n?t:i}var wx=/-+([a-z0-9])/g;function nh(t){return t.replace(wx,(...e)=>e[1].toUpperCase())}function Cx(t,e){return t===0||e===0}function bx(t,e,r){if(r.size&&e.length){let n=e[0],i=[];if(r.forEach((o,s)=>{n.has(s)||i.push(s),n.set(s,o)}),i.length)for(let o=1;os.set(a,rh(t,a)))}}return e}function qe(t,e,r){switch(e.type){case z.Trigger:return t.visitTrigger(e,r);case z.State:return t.visitState(e,r);case z.Transition:return t.visitTransition(e,r);case z.Sequence:return t.visitSequence(e,r);case z.Group:return t.visitGroup(e,r);case z.Animate:return t.visitAnimate(e,r);case z.Keyframes:return t.visitKeyframes(e,r);case z.Style:return t.visitStyle(e,r);case z.Reference:return t.visitReference(e,r);case z.AnimateChild:return t.visitAnimateChild(e,r);case z.AnimateRef:return t.visitAnimateRef(e,r);case z.Query:return t.visitQuery(e,r);case z.Stagger:return t.visitStagger(e,r);default:throw VN(e.type)}}function rh(t,e){return window.getComputedStyle(t)[e]}var _x=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"]),fl=class extends ur{normalizePropertyName(e,r){return nh(e)}normalizeStyleValue(e,r,n,i){let o="",s=n.toString().trim();if(_x.has(r)&&n!==0&&n!=="0")if(typeof n=="number")o="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&i.push(UN(e,n))}return s+o}};var hl="*";function Ix(t,e){let r=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(n=>Sx(n,r,e)):r.push(t),r}function Sx(t,e,r){if(t[0]==":"){let l=Mx(t,r);if(typeof l=="function"){e.push(l);return}t=l}let n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return r.push(JN(t)),e;let i=n[1],o=n[2],s=n[3];e.push(JD(i,s));let a=i==hl&&s==hl;o[0]=="<"&&!a&&e.push(JD(s,i))}function Mx(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(r,n)=>parseFloat(n)>parseFloat(r);case":decrement":return(r,n)=>parseFloat(n) *"}}var sl=new Set(["true","1"]),al=new Set(["false","0"]);function JD(t,e){let r=sl.has(t)||al.has(t),n=sl.has(e)||al.has(e);return(i,o)=>{let s=t==hl||t==i,a=e==hl||e==o;return!s&&r&&typeof i=="boolean"&&(s=i?sl.has(t):al.has(t)),!a&&n&&typeof o=="boolean"&&(a=o?sl.has(e):al.has(e)),s&&a}}var pE=":self",Tx=new RegExp(`s*${pE}s*,?`,"g");function gE(t,e,r,n){return new Uf(t).build(e,r,n)}var XD="",Uf=class{constructor(e){this._driver=e}build(e,r,n){let i=new Bf(r);return this._resetContextStyleTimingState(i),qe(this,Eo(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=XD,e.collectedStyles=new Map,e.collectedStyles.set(XD,new Map),e.currentTime=0}visitTrigger(e,r){let n=r.queryCount=0,i=r.depCount=0,o=[],s=[];return e.name.charAt(0)=="@"&&r.errors.push(BN()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(r),a.type==z.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,r))}),l.name=c}else if(a.type==z.Transition){let l=this.visitTransition(a,r);n+=l.queryCount,i+=l.depCount,s.push(l)}else r.errors.push($N())}),{type:z.Trigger,name:e.name,states:o,transitions:s,queryCount:n,depCount:i,options:null}}visitState(e,r){let n=this.visitStyle(e.styles,r),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){let o=new Set,s=i||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{hE(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&r.errors.push(HN(e.name,[...o.values()]))}return{type:z.State,name:e.name,style:n,options:i?{params:i}:null}}visitTransition(e,r){r.queryCount=0,r.depCount=0;let n=qe(this,Eo(e.animation),r),i=Ix(e.expr,r.errors);return{type:z.Transition,matchers:i,animation:n,queryCount:r.queryCount,depCount:r.depCount,options:ar(e.options)}}visitSequence(e,r){return{type:z.Sequence,steps:e.steps.map(n=>qe(this,n,r)),options:ar(e.options)}}visitGroup(e,r){let n=r.currentTime,i=0,o=e.steps.map(s=>{r.currentTime=n;let a=qe(this,s,r);return i=Math.max(i,r.currentTime),a});return r.currentTime=i,{type:z.Group,steps:o,options:ar(e.options)}}visitAnimate(e,r){let n=Rx(e.timings,r.errors);r.currentAnimateTimings=n;let i,o=e.styles?e.styles:Af({});if(o.type==z.Keyframes)i=this.visitKeyframes(o,r);else{let s=e.styles,a=!1;if(!s){a=!0;let c={};n.easing&&(c.easing=n.easing),s=Af(c)}r.currentTime+=n.duration+n.delay;let l=this.visitStyle(s,r);l.isEmptyStep=a,i=l}return r.currentAnimateTimings=null,{type:z.Animate,timings:n,style:i,options:null}}visitStyle(e,r){let n=this._makeStyleAst(e,r);return this._validateStyleAst(n,r),n}_makeStyleAst(e,r){let n=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of i)typeof a=="string"?a===Rt?n.push(a):r.errors.push(zN(a)):n.push(new Map(Object.entries(a)));let o=!1,s=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o)){for(let l of a.values())if(l.toString().indexOf(dE)>=0){o=!0;break}}}),{type:z.Style,styles:n,easing:s,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,r){let n=r.currentAnimateTimings,i=r.currentTime,o=r.currentTime;n&&o>0&&(o-=n.duration+n.delay),e.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,l)=>{let c=r.collectedStyles.get(r.currentQuerySelector),u=c.get(l),d=!0;u&&(o!=i&&o>=u.startTime&&i<=u.endTime&&(r.errors.push(GN(l,u.startTime,u.endTime,o,i)),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:i}),r.options&&Ex(a,r.options,r.errors)})})}visitKeyframes(e,r){let n={type:z.Keyframes,styles:[],options:null};if(!r.currentAnimateTimings)return r.errors.push(qN()),n;let i=1,o=0,s=[],a=!1,l=!1,c=0,u=e.steps.map(D=>{let P=this._makeStyleAst(D,r),j=P.offset!=null?P.offset:xx(P.styles),F=0;return j!=null&&(o++,F=P.offset=j),l=l||F<0||F>1,a=a||F0&&o{let j=h>0?P==f?1:h*P:s[P],F=j*y;r.currentTime=p+g.delay+F,g.duration=F,this._validateStyleAst(D,r),D.offset=j,n.styles.push(D)}),n}visitReference(e,r){return{type:z.Reference,animation:qe(this,Eo(e.animation),r),options:ar(e.options)}}visitAnimateChild(e,r){return r.depCount++,{type:z.AnimateChild,options:ar(e.options)}}visitAnimateRef(e,r){return{type:z.AnimateRef,animation:this.visitReference(e.animation,r),options:ar(e.options)}}visitQuery(e,r){let n=r.currentQuerySelector,i=e.options||{};r.queryCount++,r.currentQuery=e;let[o,s]=Ax(e.selector);r.currentQuerySelector=n.length?n+" "+o:o,We(r.collectedStyles,r.currentQuerySelector,new Map);let a=qe(this,Eo(e.animation),r);return r.currentQuery=null,r.currentQuerySelector=n,{type:z.Query,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:ar(e.options)}}visitStagger(e,r){r.currentQuery||r.errors.push(ZN());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:dl(e.timings,r.errors,!0);return{type:z.Stagger,animation:qe(this,Eo(e.animation),r),timings:n,options:null}}};function Ax(t){let e=!!t.split(/\s*,\s*/).find(r=>r==pE);return e&&(t=t.replace(Tx,"")),t=t.replace(/@\*/g,ul).replace(/@\w+/g,r=>ul+"-"+r.slice(1)).replace(/:animating/g,Lf),[t,e]}function Nx(t){return t?E({},t):null}var Bf=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 xx(t){if(typeof t=="string")return null;let e=null;if(Array.isArray(t))t.forEach(r=>{if(r instanceof Map&&r.has("offset")){let n=r;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let r=t;e=parseFloat(r.get("offset")),r.delete("offset")}return e}function Rx(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let o=dl(t,e).duration;return xf(o,0,"")}let r=t;if(r.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=xf(0,0,"");return o.dynamic=!0,o.strValue=r,o}let i=dl(r,e);return xf(i.duration,i.delay,i.easing)}function ar(t){return t?(t=E({},t),t.params&&(t.params=Nx(t.params))):t={},t}function xf(t,e,r){return{duration:t,delay:e,easing:r}}function ih(t,e,r,n,i,o,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:r,postStyleProps:n,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}var bo=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,r){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...r)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Ox=1,Px=":enter",Fx=new RegExp(Px,"g"),kx=":leave",Lx=new RegExp(kx,"g");function mE(t,e,r,n,i,o=new Map,s=new Map,a,l,c=[]){return new $f().buildKeyframes(t,e,r,n,i,o,s,a,l,c)}var $f=class{buildKeyframes(e,r,n,i,o,s,a,l,c,u=[]){c=c||new bo;let d=new Hf(e,r,c,i,o,u,[]);d.options=l;let h=l.delay?Jt(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),qe(this,n,d);let f=d.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let g=f.length-1;g>=0;g--){let y=f[g];if(y.element===r){p=y;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[ih(r,[],[],[],0,h,"",!1)]}visitTrigger(e,r){}visitState(e,r){}visitTransition(e,r){}visitAnimateChild(e,r){let n=r.subInstructions.get(r.element);if(n){let i=r.createSubContext(e.options),o=r.currentTimeline.currentTime,s=this._visitSubInstructions(n,i,i.options);o!=s&&r.transformIntoNewTimeline(s)}r.previousNode=e}visitAnimateRef(e,r){let n=r.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],r,n),this.visitReference(e.animation,n),r.transformIntoNewTimeline(n.currentTimeline.currentTime),r.previousNode=e}_applyAnimationRefDelays(e,r,n){for(let i of e){let o=i?.delay;if(o){let s=typeof o=="number"?o:Jt(Co(o,i?.params??{},r.errors));n.delayNextStep(s)}}}_visitSubInstructions(e,r,n){let o=r.currentTimeline.currentTime,s=n.duration!=null?Jt(n.duration):null,a=n.delay!=null?Jt(n.delay):null;return s!==0&&e.forEach(l=>{let c=r.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(e,r){r.updateOptions(e.options,!0),qe(this,e.animation,r),r.previousNode=e}visitSequence(e,r){let n=r.subContextCount,i=r,o=e.options;if(o&&(o.params||o.delay)&&(i=r.createSubContext(o),i.transformIntoNewTimeline(),o.delay!=null)){i.previousNode.type==z.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=pl);let s=Jt(o.delay);i.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>qe(this,s,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),r.previousNode=e}visitGroup(e,r){let n=[],i=r.currentTimeline.currentTime,o=e.options&&e.options.delay?Jt(e.options.delay):0;e.steps.forEach(s=>{let a=r.createSubContext(e.options);o&&a.delayNextStep(o),qe(this,s,a),i=Math.max(i,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(s=>r.currentTimeline.mergeTimelineCollectedStyles(s)),r.transformIntoNewTimeline(i),r.previousNode=e}_visitTiming(e,r){if(e.dynamic){let n=e.strValue,i=r.params?Co(n,r.params,r.errors):n;return dl(i,r.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,r){let n=r.currentAnimateTimings=this._visitTiming(e.timings,r),i=r.currentTimeline;n.delay&&(r.incrementTime(n.delay),i.snapshotCurrentStyles());let o=e.style;o.type==z.Keyframes?this.visitKeyframes(o,r):(r.incrementTime(n.duration),this.visitStyle(o,r),i.applyStylesToKeyframe()),r.currentAnimateTimings=null,r.previousNode=e}visitStyle(e,r){let n=r.currentTimeline,i=r.currentAnimateTimings;!i&&n.hasCurrentStyleProperties()&&n.forwardFrame();let o=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(o):n.setStyles(e.styles,o,r.errors,r.options),r.previousNode=e}visitKeyframes(e,r){let n=r.currentAnimateTimings,i=r.currentTimeline.duration,o=n.duration,a=r.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*o),a.setStyles(l.styles,l.easing,r.errors,r.options),a.applyStylesToKeyframe()}),r.currentTimeline.mergeTimelineCollectedStyles(a),r.transformIntoNewTimeline(i+o),r.previousNode=e}visitQuery(e,r){let n=r.currentTimeline.currentTime,i=e.options||{},o=i.delay?Jt(i.delay):0;o&&(r.previousNode.type===z.Style||n==0&&r.currentTimeline.hasCurrentStyleProperties())&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=pl);let s=n,a=r.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,r.errors);r.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{r.currentQueryIndex=u;let d=r.createSubContext(e.options,c);o&&d.delayNextStep(o),c===r.element&&(l=d.currentTimeline),qe(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe();let h=d.currentTimeline.currentTime;s=Math.max(s,h)}),r.currentQueryIndex=0,r.currentQueryTotal=0,r.transformIntoNewTimeline(s),l&&(r.currentTimeline.mergeTimelineCollectedStyles(l),r.currentTimeline.snapshotCurrentStyles()),r.previousNode=e}visitStagger(e,r){let n=r.parentContext,i=r.currentTimeline,o=e.timings,s=Math.abs(o.duration),a=s*(r.currentQueryTotal-1),l=s*r.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime;break}let u=r.currentTimeline;l&&u.delayNextStep(l);let d=u.currentTime;qe(this,e.animation,r),r.previousNode=e,n.currentStaggerTime=i.currentTime-d+(i.startTime-n.currentTimeline.startTime)}},pl={},Hf=class t{constructor(e,r,n,i,o,s,a,l){this._driver=e,this.element=r,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=pl,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new gl(this._driver,r,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,r){if(!e)return;let n=e,i=this.options;n.duration!=null&&(i.duration=Jt(n.duration)),n.delay!=null&&(i.delay=Jt(n.delay));let o=n.params;if(o){let s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!r||!s.hasOwnProperty(a))&&(s[a]=Co(o[a],s,this.errors))})}}_copyOptions(){let e={};if(this.options){let r=this.options.params;if(r){let n=e.params={};Object.keys(r).forEach(i=>{n[i]=r[i]})}}return e}createSubContext(e=null,r,n){let i=r||this.element,o=new t(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=pl,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,r,n){let i={duration:r??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},o=new zf(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,r,n,i,o,s){let a=[];if(i&&a.push(this.element),e.length>0){e=e.replace(Fx,"."+this._enterClassName),e=e.replace(Lx,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,e,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!o&&a.length==0&&s.push(YN(r)),a}},gl=class t{constructor(e,r,n,i){this._driver=e,this.element=r,this.startTime=n,this._elementTimelineStylesLookup=i,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(r),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(r,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 r=this._keyframes.size===1&&this._pendingStyles.size;this.duration||r?(this.forwardTime(this.currentTime+e),r&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,r){return this.applyStylesToKeyframe(),new t(this._driver,e,r||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+=Ox,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,r){this._localTimelineStyles.set(e,r),this._globalTimelineStyles.set(e,r),this._styleSummary.set(e,{time:this.currentTime,value:r})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[r,n]of this._globalTimelineStyles)this._backFill.set(r,n||Rt),this._currentKeyframe.set(r,Rt);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,r,n,i){r&&this._previousKeyframe.set("easing",r);let o=i&&i.params||{},s=jx(e,this._globalTimelineStyles);for(let[a,l]of s){let c=Co(l,o,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Rt),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,r)=>{this._currentKeyframe.set(r,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,r)=>{this._currentKeyframe.has(r)||this._currentKeyframe.set(r,e)}))}snapshotCurrentStyles(){for(let[e,r]of this._localTimelineStyles)this._pendingStyles.set(e,r),this._updateStyle(e,r)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let r in this._currentKeyframe)e.push(r);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((r,n)=>{let i=this._styleSummary.get(n);(!i||r.time>i.time)&&this._updateStyle(n,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,r=new Set,n=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((u,d)=>{u===il?e.add(d):u===Rt&&r.add(d)}),n||c.set("offset",l/this.duration),i.push(c)});let o=[...e.values()],s=[...r.values()];if(n){let a=i[0],l=new Map(a);a.set("offset",0),l.set("offset",1),i=[a,l]}return ih(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}},zf=class extends gl{constructor(e,r,n,i,o,s,a=!1){super(e,r,s.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=o,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:r,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&r){let o=[],s=n+r,a=r/s,l=new Map(e[0]);l.set("offset",0),o.push(l);let c=new Map(e[0]);c.set("offset",eE(a)),o.push(c);let u=e.length-1;for(let d=1;d<=u;d++){let h=new Map(e[d]),f=h.get("offset"),p=r+f*n;h.set("offset",eE(p/s)),o.push(h)}n=s,r=0,i="",e=o}return ih(this.element,e,this.preStyleProps,this.postStyleProps,n,r,i,!0)}};function eE(t,e=3){let r=Math.pow(10,e-1);return Math.round(t*r)/r}function jx(t,e){let r=new Map,n;return t.forEach(i=>{if(i==="*"){n??=e.keys();for(let o of n)r.set(o,Rt)}else for(let[o,s]of i)r.set(o,s)}),r}function tE(t,e,r,n,i,o,s,a,l,c,u,d,h){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:r,fromStyles:o,toState:n,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}var Rf={},ml=class{constructor(e,r,n){this._triggerName=e,this.ast=r,this._stateStyles=n}match(e,r,n,i){return Vx(this.ast.matchers,e,r,n,i)}buildStyles(e,r,n){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(r,n):new Map}build(e,r,n,i,o,s,a,l,c,u){let d=[],h=this.ast.options&&this.ast.options.params||Rf,f=a&&a.params||Rf,p=this.buildStyles(n,f,d),g=l&&l.params||Rf,y=this.buildStyles(i,g,d),D=new Set,P=new Map,j=new Map,F=i==="void",fe={params:yE(g,h),delay:this.ast.options?.delay},Z=u?[]:mE(e,r,this.ast.animation,o,s,p,y,fe,c,d),ee=0;return Z.forEach(ae=>{ee=Math.max(ae.duration+ae.delay,ee)}),d.length?tE(r,this._triggerName,n,i,F,p,y,[],[],P,j,ee,d):(Z.forEach(ae=>{let Pt=ae.element,Xt=We(P,Pt,new Set);ae.preStyleProps.forEach(xn=>Xt.add(xn));let sh=We(j,Pt,new Set);ae.postStyleProps.forEach(xn=>sh.add(xn)),Pt!==r&&D.add(Pt)}),tE(r,this._triggerName,n,i,F,p,y,Z,[...D.values()],P,j,ee))}};function Vx(t,e,r,n,i){return t.some(o=>o(e,r,n,i))}function yE(t,e){let r=E({},e);return Object.entries(t).forEach(([n,i])=>{i!=null&&(r[n]=i)}),r}var Gf=class{constructor(e,r,n){this.styles=e,this.defaultParams=r,this.normalizer=n}buildStyles(e,r){let n=new Map,i=yE(e,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=Co(s,i,r));let l=this.normalizer.normalizePropertyName(a,r);s=this.normalizer.normalizeStyleValue(a,l,s,r),n.set(a,s)})}),n}};function Ux(t,e,r){return new qf(t,e,r)}var qf=class{constructor(e,r,n){this.name=e,this.ast=r,this._normalizer=n,this.transitionFactories=[],this.states=new Map,r.states.forEach(i=>{let o=i.options&&i.options.params||{};this.states.set(i.name,new Gf(i.style,o,n))}),nE(this.states,"true","1"),nE(this.states,"false","0"),r.transitions.forEach(i=>{this.transitionFactories.push(new ml(e,i,this.states))}),this.fallbackTransition=Bx(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,r,n,i){return this.transitionFactories.find(s=>s.match(e,r,n,i))||null}matchStyles(e,r,n){return this.fallbackTransition.buildStyles(e,r,n)}};function Bx(t,e,r){let n=[(s,a)=>!0],i={type:z.Sequence,steps:[],options:null},o={type:z.Transition,animation:i,matchers:n,options:null,queryCount:0,depCount:0};return new ml(t,o,e)}function nE(t,e,r){t.has(e)?t.has(r)||t.set(r,t.get(e)):t.has(r)&&t.set(e,t.get(r))}var $x=new bo,Wf=class{constructor(e,r,n){this.bodyNode=e,this._driver=r,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,r){let n=[],i=[],o=gE(this._driver,r,n,i);if(n.length)throw nx(n);i.length&&void 0,this._animations.set(e,o)}_buildPlayer(e,r,n){let i=e.element,o=lE(this._normalizer,e.keyframes,r,n);return this._driver.animate(i,o,e.duration,e.delay,e.easing,[],!0)}create(e,r,n={}){let i=[],o=this._animations.get(e),s,a=new Map;if(o?(s=mE(this._driver,r,o,fE,kf,new Map,new Map,n,$x,i),s.forEach(u=>{let d=We(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(i.push(rx()),s=[]),i.length)throw ix(i);a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,Rt))})});let l=s.map(u=>{let d=a.get(u.element);return this._buildPlayer(u,new Map,d)}),c=Nn(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let r=this._getPlayer(e);r.destroy(),this._playersById.delete(e);let n=this.players.indexOf(r);n>=0&&this.players.splice(n,1)}_getPlayer(e){let r=this._playersById.get(e);if(!r)throw ox(e);return r}listen(e,r,n,i){let o=Xf(r,"","","");return Jf(this._getPlayer(e),n,o,i),()=>{}}command(e,r,n,i){if(n=="register"){this.register(e,i[0]);return}if(n=="create"){let s=i[0]||{};this.create(e,r,s);return}let o=this._getPlayer(e);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e);break}}},rE="ng-animate-queued",Hx=".ng-animate-queued",Of="ng-animate-disabled",zx=".ng-animate-disabled",Gx="ng-star-inserted",qx=".ng-star-inserted",Wx=[],vE={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Kx={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},vt="__ng_removed",_o=class{get params(){return this.options.params}constructor(e,r=""){this.namespaceId=r;let n=e&&e.hasOwnProperty("value"),i=n?e.value:e;if(this.value=Zx(i),n){let o=e,{value:s}=o,a=_l(o,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let r=e.params;if(r){let n=this.options.params;Object.keys(r).forEach(i=>{n[i]==null&&(n[i]=r[i])})}}},wo="void",Pf=new _o(wo),Kf=class{constructor(e,r,n){this.id=e,this.hostElement=r,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,it(r,this._hostClassName)}listen(e,r,n,i){if(!this._triggers.has(r))throw sx(n,r);if(n==null||n.length==0)throw ax(r);if(!Yx(n))throw lx(n,r);let o=We(this._elementListeners,e,[]),s={name:r,phase:n,callback:i};o.push(s);let a=We(this._engine.statesByElement,e,new Map);return a.has(r)||(it(e,ol),it(e,ol+"-"+r),a.set(r,Pf)),()=>{this._engine.afterFlush(()=>{let l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(r)||a.delete(r)})}}register(e,r){return this._triggers.has(e)?!1:(this._triggers.set(e,r),!0)}_getTrigger(e){let r=this._triggers.get(e);if(!r)throw cx(e);return r}trigger(e,r,n,i=!0){let o=this._getTrigger(r),s=new Io(this.id,r,e),a=this._engine.statesByElement.get(e);a||(it(e,ol),it(e,ol+"-"+r),this._engine.statesByElement.set(e,a=new Map));let l=a.get(r),c=new _o(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(r,c),l||(l=Pf),!(c.value===wo)&&l.value===c.value){if(!eR(l.params,c.params)){let g=[],y=o.matchStyles(l.value,l.params,g),D=o.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{lr(e,y),Ot(e,D)})}return}let h=We(this._engine.playersByElement,e,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==r&&g.queued&&g.destroy()});let f=o.matchTransition(l.value,c.value,e,c.params),p=!1;if(!f){if(!i)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:r,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(it(e,rE),s.onStart(()=>{ni(e,rE)})),s.onDone(()=>{let g=this.players.indexOf(s);g>=0&&this.players.splice(g,1);let y=this._engine.playersByElement.get(e);if(y){let D=y.indexOf(s);D>=0&&y.splice(D,1)}}),this.players.push(s),h.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(r=>r.delete(e)),this._elementListeners.forEach((r,n)=>{this._elementListeners.set(n,r.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let r=this._engine.playersByElement.get(e);r&&(r.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,r){let n=this._engine.driver.query(e,ul,!0);n.forEach(i=>{if(i[vt])return;let o=this._engine.fetchNamespacesByElement(i);o.size?o.forEach(s=>s.triggerLeaveAnimation(i,r,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,r,n,i){let o=this._engine.statesByElement.get(e),s=new Map;if(o){let a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){let u=this.trigger(e,c,wo,i);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,r,s),n&&Nn(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let r=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(r&&n){let i=new Set;r.forEach(o=>{let s=o.name;if(i.has(s))return;i.add(s);let l=this._triggers.get(s).fallbackTransition,c=n.get(s)||Pf,u=new _o(wo),d=new Io(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,r){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,r),this.triggerLeaveAnimation(e,r,!0))return;let i=!1;if(n.totalAnimations){let o=n.players.length?n.playersByQueriedElement.get(e):[];if(o&&o.length)i=!0;else{let s=e;for(;s=s.parentNode;)if(n.statesByElement.get(s)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)n.markElementAsRemoved(this.id,e,!1,r);else{let o=e[vt];(!o||o===vE)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,r))}}insertNode(e,r){it(e,this._hostClassName)}drainQueuedTransitions(e){let r=[];return this._queue.forEach(n=>{let i=n.player;if(i.destroyed)return;let o=n.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==n.triggerName){let l=Xf(o,n.triggerName,n.fromState.value,n.toState.value);l._data=e,Jf(n.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):r.push(n)}),this._queue=[],r.sort((n,i)=>{let o=n.transition.ast.depCount,s=i.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(n.element,i.element)?1:-1})}destroy(e){this.players.forEach(r=>r.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Qf=class{_onRemovalComplete(e,r){this.onRemovalComplete(e,r)}constructor(e,r,n){this.bodyNode=e,this.driver=r,this._normalizer=n,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,o)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(r=>{r.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,r){let n=new Kf(e,r,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,r)?this._balanceNamespaceList(n,r):(this.newHostElements.set(r,n),this.collectEnterElement(r)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,r){let n=this._namespaceList,i=this.namespacesByHostElement;if(n.length-1>=0){let s=!1,a=this.driver.getParentElement(r);for(;a;){let l=i.get(a);if(l){let c=n.indexOf(l);n.splice(c+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||n.unshift(e)}else n.push(e);return i.set(r,e),e}register(e,r){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,r)),n}registerTrigger(e,r,n){let i=this._namespaceLookup[e];i&&i.register(r,n)&&this.totalAnimations++}destroy(e,r){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let i=this._namespaceList.indexOf(n);i>=0&&this._namespaceList.splice(i,1),n.destroy(r),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let r=new Set,n=this.statesByElement.get(e);if(n){for(let i of n.values())if(i.namespaceId){let o=this._fetchNamespace(i.namespaceId);o&&r.add(o)}}return r}trigger(e,r,n,i){if(ll(r)){let o=this._fetchNamespace(e);if(o)return o.trigger(r,n,i),!0}return!1}insertNode(e,r,n,i){if(!ll(r))return;let o=r[vt];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(r);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){let s=this._fetchNamespace(e);s&&s.insertNode(r,n)}i&&this.collectEnterElement(r)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,r){r?this.disabledNodes.has(e)||(this.disabledNodes.add(e),it(e,Of)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ni(e,Of))}removeNode(e,r,n){if(ll(r)){let i=e?this._fetchNamespace(e):null;i?i.removeNode(r,n):this.markElementAsRemoved(e,r,!1,n);let o=this.namespacesByHostElement.get(r);o&&o.id!==e&&o.removeNode(r,n)}else this._onRemovalComplete(r,n)}markElementAsRemoved(e,r,n,i,o){this.collectedLeaveElements.push(r),r[vt]={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,r,n,i,o){return ll(r)?this._fetchNamespace(e).listen(r,n,i,o):()=>{}}_buildInstruction(e,r,n,i,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,r,o)}destroyInnerAnimations(e){let r=this.driver.query(e,ul,!0);r.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(r=this.driver.query(e,Lf,!0),r.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let r=this.playersByElement.get(e);r&&r.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let r=this.playersByQueriedElement.get(e);r&&r.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Nn(this.players).onDone(()=>e());e()})}processLeaveNode(e){let r=e[vt];if(r&&r.setForRemoval){if(e[vt]=vE,r.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(r.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,r.setForRemoval)}e.classList?.contains(Of)&&this.markElementAsDisabled(e,!1),this.driver.query(e,zx,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let r=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,i)=>this._balanceNamespaceList(n,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],r.length?Nn(r).onDone(()=>{n.forEach(i=>i())}):n.forEach(i=>i())}}reportError(e){throw ux(e)}_flushAnimations(e,r){let n=new bo,i=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(_=>{u.add(_);let A=this.driver.query(_,Hx,!0);for(let N=0;N{let N=fE+g++;p.set(A,N),_.forEach(W=>it(W,N))});let y=[],D=new Set,P=new Set;for(let _=0;_D.add(W)):P.add(A))}let j=new Map,F=sE(h,Array.from(D));F.forEach((_,A)=>{let N=kf+g++;j.set(A,N),_.forEach(W=>it(W,N))}),e.push(()=>{f.forEach((_,A)=>{let N=p.get(A);_.forEach(W=>ni(W,N))}),F.forEach((_,A)=>{let N=j.get(A);_.forEach(W=>ni(W,N))}),y.forEach(_=>{this.processLeaveNode(_)})});let fe=[],Z=[];for(let _=this._namespaceList.length-1;_>=0;_--)this._namespaceList[_].drainQueuedTransitions(r).forEach(N=>{let W=N.player,ge=N.element;if(fe.push(W),this.collectedEnterElements.length){let be=ge[vt];if(be&&be.setForMove){if(be.previousTriggersValues&&be.previousTriggersValues.has(N.triggerName)){let Rn=be.previousTriggersValues.get(N.triggerName),Ke=this.statesByElement.get(N.element);if(Ke&&Ke.has(N.triggerName)){let So=Ke.get(N.triggerName);So.value=Rn,Ke.set(N.triggerName,So)}}W.destroy();return}}let Dt=!d||!this.driver.containsElement(d,ge),Ve=j.get(ge),en=p.get(ge),oe=this._buildInstruction(N,n,en,Ve,Dt);if(oe.errors&&oe.errors.length){Z.push(oe);return}if(Dt){W.onStart(()=>lr(ge,oe.fromStyles)),W.onDestroy(()=>Ot(ge,oe.toStyles)),i.push(W);return}if(N.isFallbackTransition){W.onStart(()=>lr(ge,oe.fromStyles)),W.onDestroy(()=>Ot(ge,oe.toStyles)),i.push(W);return}let ch=[];oe.timelines.forEach(be=>{be.stretchStartingKeyframe=!0,this.disabledNodes.has(be.element)||ch.push(be)}),oe.timelines=ch,n.append(ge,oe.timelines);let IE={instruction:oe,player:W,element:ge};s.push(IE),oe.queriedElements.forEach(be=>We(a,be,[]).push(W)),oe.preStyleProps.forEach((be,Rn)=>{if(be.size){let Ke=l.get(Rn);Ke||l.set(Rn,Ke=new Set),be.forEach((So,bl)=>Ke.add(bl))}}),oe.postStyleProps.forEach((be,Rn)=>{let Ke=c.get(Rn);Ke||c.set(Rn,Ke=new Set),be.forEach((So,bl)=>Ke.add(bl))})});if(Z.length){let _=[];Z.forEach(A=>{_.push(dx(A.triggerName,A.errors))}),fe.forEach(A=>A.destroy()),this.reportError(_)}let ee=new Map,ae=new Map;s.forEach(_=>{let A=_.element;n.has(A)&&(ae.set(A,A),this._beforeAnimationBuild(_.player.namespaceId,_.instruction,ee))}),i.forEach(_=>{let A=_.element;this._getPreviousPlayers(A,!1,_.namespaceId,_.triggerName,null).forEach(W=>{We(ee,A,[]).push(W),W.destroy()})});let Pt=y.filter(_=>aE(_,l,c)),Xt=new Map;oE(Xt,this.driver,P,c,Rt).forEach(_=>{aE(_,l,c)&&Pt.push(_)});let xn=new Map;f.forEach((_,A)=>{oE(xn,this.driver,new Set(_),l,il)}),Pt.forEach(_=>{let A=Xt.get(_),N=xn.get(_);Xt.set(_,new Map([...A?.entries()??[],...N?.entries()??[]]))});let Cl=[],ah=[],lh={};s.forEach(_=>{let{element:A,player:N,instruction:W}=_;if(n.has(A)){if(u.has(A)){N.onDestroy(()=>Ot(A,W.toStyles)),N.disabled=!0,N.overrideTotalTime(W.totalTime),i.push(N);return}let ge=lh;if(ae.size>1){let Ve=A,en=[];for(;Ve=Ve.parentNode;){let oe=ae.get(Ve);if(oe){ge=oe;break}en.push(Ve)}en.forEach(oe=>ae.set(oe,ge))}let Dt=this._buildAnimation(N.namespaceId,W,ee,o,xn,Xt);if(N.setRealPlayer(Dt),ge===lh)Cl.push(N);else{let Ve=this.playersByElement.get(ge);Ve&&Ve.length&&(N.parentPlayer=Nn(Ve)),i.push(N)}}else lr(A,W.fromStyles),N.onDestroy(()=>Ot(A,W.toStyles)),ah.push(N),u.has(A)&&i.push(N)}),ah.forEach(_=>{let A=o.get(_.element);if(A&&A.length){let N=Nn(A);_.setRealPlayer(N)}}),i.forEach(_=>{_.parentPlayer?_.syncPlayerEvents(_.parentPlayer):_.destroy()});for(let _=0;_!Dt.destroyed);ge.length?Jx(this,A,ge):this.processLeaveNode(A)}return y.length=0,Cl.forEach(_=>{this.players.push(_),_.onDone(()=>{_.destroy();let A=this.players.indexOf(_);this.players.splice(A,1)}),_.play()}),Cl}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,r,n,i,o){let s=[];if(r){let a=this.playersByQueriedElement.get(e);a&&(s=a)}else{let a=this.playersByElement.get(e);if(a){let l=!o||o==wo;a.forEach(c=>{c.queued||!l&&c.triggerName!=i||s.push(c)})}}return(n||i)&&(s=s.filter(a=>!(n&&n!=a.namespaceId||i&&i!=a.triggerName))),s}_beforeAnimationBuild(e,r,n){let i=r.triggerName,o=r.element,s=r.isRemovalTransition?void 0:e,a=r.isRemovalTransition?void 0:i;for(let l of r.timelines){let c=l.element,u=c!==o,d=We(n,c,[]);this._getPreviousPlayers(c,u,s,a,r.toState).forEach(f=>{let p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}lr(o,r.fromStyles)}_buildAnimation(e,r,n,i,o,s){let a=r.triggerName,l=r.element,c=[],u=new Set,d=new Set,h=r.timelines.map(p=>{let g=p.element;u.add(g);let y=g[vt];if(y&&y.removedBeforeQueried)return new An(p.duration,p.delay);let D=g!==l,P=Xx((n.get(g)||Wx).map(ee=>ee.getRealPlayer())).filter(ee=>{let ae=ee;return ae.element?ae.element===g:!1}),j=o.get(g),F=s.get(g),fe=lE(this._normalizer,p.keyframes,j,F),Z=this._buildPlayer(p,fe,P);if(p.subTimeline&&i&&d.add(g),D){let ee=new Io(e,a,g);ee.setRealPlayer(Z),c.push(ee)}return Z});c.forEach(p=>{We(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>Qx(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>it(p,YD));let f=Nn(h);return f.onDestroy(()=>{u.forEach(p=>ni(p,YD)),Ot(l,r.toStyles)}),d.forEach(p=>{We(i,p,[]).push(f)}),f}_buildPlayer(e,r,n){return r.length>0?this.driver.animate(e.element,r,e.duration,e.delay,e.easing,n):new An(e.duration,e.delay)}},Io=class{constructor(e,r,n){this.namespaceId=e,this.triggerName=r,this.element=n,this._player=new An,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((r,n)=>{r.forEach(i=>Jf(e,n,void 0,i))}),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 r=this._player;r.triggerCallback&&e.onStart(()=>r.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,r){We(this._queuedCallbacks,e,[]).push(r)}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 r=this._player;r.triggerCallback&&r.triggerCallback(e)}};function Qx(t,e,r){let n=t.get(e);if(n){if(n.length){let i=n.indexOf(r);n.splice(i,1)}n.length==0&&t.delete(e)}return n}function Zx(t){return t??null}function ll(t){return t&&t.nodeType===1}function Yx(t){return t=="start"||t=="done"}function iE(t,e){let r=t.style.display;return t.style.display=e??"none",r}function oE(t,e,r,n,i){let o=[];r.forEach(l=>o.push(iE(l)));let s=[];n.forEach((l,c)=>{let u=new Map;l.forEach(d=>{let h=e.computeStyle(c,d,i);u.set(d,h),(!h||h.length==0)&&(c[vt]=Kx,s.push(c))}),t.set(c,u)});let a=0;return r.forEach(l=>iE(l,o[a++])),s}function sE(t,e){let r=new Map;if(t.forEach(a=>r.set(a,[])),e.length==0)return r;let n=1,i=new Set(e),o=new Map;function s(a){if(!a)return n;let l=o.get(a);if(l)return l;let c=a.parentNode;return r.has(c)?l=c:i.has(c)?l=n:l=s(c),o.set(a,l),l}return e.forEach(a=>{let l=s(a);l!==n&&r.get(l).push(a)}),r}function it(t,e){t.classList?.add(e)}function ni(t,e){t.classList?.remove(e)}function Jx(t,e,r){Nn(r).onDone(()=>t.processLeaveNode(e))}function Xx(t){let e=[];return DE(t,e),e}function DE(t,e){for(let r=0;ri.add(o)):e.set(t,n),r.delete(t),!0}var ii=class{constructor(e,r,n){this._driver=r,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(i,o)=>{},this._transitionEngine=new Qf(e.body,r,n),this._timelineEngine=new Wf(e.body,r,n),this._transitionEngine.onRemovalComplete=(i,o)=>this.onRemovalComplete(i,o)}registerTrigger(e,r,n,i,o){let s=e+"-"+i,a=this._triggerCache[s];if(!a){let l=[],c=[],u=gE(this._driver,o,l,c);if(l.length)throw ex(i,l);c.length&&void 0,a=Ux(i,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(r,i,a)}register(e,r){this._transitionEngine.register(e,r)}destroy(e,r){this._transitionEngine.destroy(e,r)}onInsert(e,r,n,i){this._transitionEngine.insertNode(e,r,n,i)}onRemove(e,r,n){this._transitionEngine.removeNode(e,r,n)}disableAnimations(e,r){this._transitionEngine.markElementAsDisabled(e,r)}process(e,r,n,i){if(n.charAt(0)=="@"){let[o,s]=QD(n),a=i;this._timelineEngine.command(o,r,s,a)}else this._transitionEngine.trigger(e,r,n,i)}listen(e,r,n,i,o){if(n.charAt(0)=="@"){let[s,a]=QD(n);return this._timelineEngine.listen(s,r,a,o)}return this._transitionEngine.listen(e,r,n,i,o)}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 tR(t,e){let r=null,n=null;return Array.isArray(e)&&e.length?(r=Ff(e[0]),e.length>1&&(n=Ff(e[e.length-1]))):e instanceof Map&&(r=Ff(e)),r||n?new Zf(t,r,n):null}var ri=class ri{constructor(e,r,n){this._element=e,this._startStyles=r,this._endStyles=n,this._state=0;let i=ri.initialStylesByElement.get(e);i||ri.initialStylesByElement.set(e,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Ot(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ot(this._element,this._initialStyles),this._endStyles&&(Ot(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(ri.initialStylesByElement.delete(this._element),this._startStyles&&(lr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(lr(this._element,this._endStyles),this._endStyles=null),Ot(this._element,this._initialStyles),this._state=3)}};ri.initialStylesByElement=new WeakMap;var Zf=ri;function Ff(t){let e=null;return t.forEach((r,n)=>{nR(n)&&(e=e||new Map,e.set(n,r))}),e}function nR(t){return t==="display"||t==="position"}var yl=class{constructor(e,r,n,i){this.element=e,this.keyframes=r,this.options=n,this._specialStyles=i,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=n.duration,this._delay=n.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 r=()=>this._onFinish();this.domPlayer.addEventListener("finish",r),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",r)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let r=[];return e.forEach(n=>{r.push(Object.fromEntries(n))}),r}_triggerWebAnimation(e,r,n){return e.animate(this._convertKeyframesToObject(r),n)}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((n,i)=>{i!=="offset"&&e.set(i,this._finished?n:rh(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let r=e==="start"?this._onStartFns:this._onDoneFns;r.forEach(n=>n()),r.length=0}},vl=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,r){return cE(e,r)}getParentElement(e){return eh(e)}query(e,r,n){return uE(e,r,n)}computeStyle(e,r,n){return rh(e,r)}animate(e,r,n,i,o,s=[]){let a=i==0?"both":"forwards",l={duration:n,delay:i,fill:a};o&&(l.easing=o);let c=new Map,u=s.filter(f=>f instanceof yl);Cx(n,i)&&u.forEach(f=>{f.currentSnapshot.forEach((p,g)=>c.set(g,p))});let d=Dx(r).map(f=>new Map(f));d=bx(e,d,c);let h=tR(e,d);return new yl(e,d,l,h)}};var cl="@",EE="@.disabled",Dl=class{constructor(e,r,n,i){this.namespaceId=e,this.delegate=r,this.engine=n,this._onDestroy=i,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,r){return this.delegate.createElement(e,r)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,r){this.delegate.appendChild(e,r),this.engine.onInsert(this.namespaceId,r,e,!1)}insertBefore(e,r,n,i=!0){this.delegate.insertBefore(e,r,n),this.engine.onInsert(this.namespaceId,r,e,i)}removeChild(e,r,n){this.parentNode(r)&&this.engine.onRemove(this.namespaceId,r,this.delegate)}selectRootElement(e,r){return this.delegate.selectRootElement(e,r)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,r,n,i){this.delegate.setAttribute(e,r,n,i)}removeAttribute(e,r,n){this.delegate.removeAttribute(e,r,n)}addClass(e,r){this.delegate.addClass(e,r)}removeClass(e,r){this.delegate.removeClass(e,r)}setStyle(e,r,n,i){this.delegate.setStyle(e,r,n,i)}removeStyle(e,r,n){this.delegate.removeStyle(e,r,n)}setProperty(e,r,n){r.charAt(0)==cl&&r==EE?this.disableAnimations(e,!!n):this.delegate.setProperty(e,r,n)}setValue(e,r){this.delegate.setValue(e,r)}listen(e,r,n){return this.delegate.listen(e,r,n)}disableAnimations(e,r){this.engine.disableAnimations(e,r)}},Yf=class extends Dl{constructor(e,r,n,i,o){super(r,n,i,o),this.factory=e,this.namespaceId=r}setProperty(e,r,n){r.charAt(0)==cl?r.charAt(1)=="."&&r==EE?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,r.slice(1),n):this.delegate.setProperty(e,r,n)}listen(e,r,n){if(r.charAt(0)==cl){let i=rR(e),o=r.slice(1),s="";return o.charAt(0)!=cl&&([o,s]=iR(o)),this.engine.listen(this.namespaceId,i,o,s,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,n,a)})}return this.delegate.listen(e,r,n)}};function rR(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function iR(t){let e=t.indexOf("."),r=t.substring(0,e),n=t.slice(e+1);return[r,n]}var El=class{constructor(e,r,n){this.delegate=e,this.engine=r,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,r.onRemovalComplete=(i,o)=>{o?.removeChild(null,i)}}createRenderer(e,r){let n="",i=this.delegate.createRenderer(e,r);if(!e||!r?.data?.animation){let c=this._rendererCache,u=c.get(i);if(!u){let d=()=>c.delete(i);u=new Dl(n,i,this.engine,d),c.set(i,u)}return u}let o=r.id,s=r.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(o,s,e,c.name,c)};return r.data.animation.forEach(a),new Yf(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,r,n){if(e>=0&&er(n));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(o=>{let[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),i.push([r,n])}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()}};var sR=(()=>{let e=class e extends ii{constructor(n,i,o){super(n,i,o)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(i){return new(i||e)(T(we),T(cr),T(ur))},e.\u0275prov=I({token:e,factory:e.\u0275fac});let t=e;return t})();function aR(){return new fl}function lR(t,e,r){return new El(t,e,r)}var CE=[{provide:ur,useFactory:aR},{provide:ii,useClass:sR},{provide:fn,useFactory:lR,deps:[Ea,ii,te]}],wE=[{provide:cr,useFactory:()=>new vl},{provide:Pu,useValue:"BrowserAnimations"},...CE],cR=[{provide:cr,useClass:th},{provide:Pu,useValue:"NoopAnimations"},...CE],bE=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:n.disableAnimations?cR:wE}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Xe({type:e}),e.\u0275inj=Je({providers:wE,imports:[Hy]});let t=e;return t})();var _E={providers:[ey({eventCoalescing:!0}),Sv(qD),Oy(),yu(bE)]};var wl=class t{title="Sukoa";static \u0275fac=function(r){return new(r||t)};static \u0275cmp=gn({type:t,selectors:[["app-root"]],standalone:!0,features:[En],decls:11,vars:0,consts:[[1,"layout-simple"],["href","https://github.com/Gyoo/Sukoa","target","_blank"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 16 16","width","16","height","16"],["d","M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"]],template:function(r,n){r&1&&(w(0,"div",0)(1,"header"),b(2," DDR Score generator for Tachi "),w(3,"nav")(4,"menu")(5,"li")(6,"a",1),Rg(),w(7,"svg",2),de(8,"path",3),C()()()()()(),Og(),w(9,"main"),de(10,"router-outlet"),C()())},dependencies:[tf],styles:["svg[_ngcontent-%COMP%]{fill:var(--ly-brand)}"]})};By(wl,_E).catch(t=>console.error(t));