9 lines
201 KiB
JavaScript
9 lines
201 KiB
JavaScript
var Wf=Object.defineProperty,qf=Object.defineProperties;var Zf=Object.getOwnPropertyDescriptors;var $a=Object.getOwnPropertySymbols;var Yf=Object.prototype.hasOwnProperty,Qf=Object.prototype.propertyIsEnumerable;var Ua=(e,t,n)=>t in e?Wf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,k=(e,t)=>{for(var n in t||={})Yf.call(t,n)&&Ua(e,n,t[n]);if($a)for(var n of $a(t))Qf.call(t,n)&&Ua(e,n,t[n]);return e},U=(e,t)=>qf(e,Zf(t));var Xn=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(u){o(u)}},s=c=>{try{a(n.throw(c))}catch(u){o(u)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});function Ha(e,t){return Object.is(e,t)}var Y=null,er=!1,tr=1,Le=Symbol("SIGNAL");function T(e){let t=Y;return Y=e,t}function Ga(){return Y}var Dn={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 ni(e){if(er)throw new Error("");if(Y===null)return;Y.consumerOnSignalRead(e);let t=Y.nextProducerIndex++;if(ir(Y),t<Y.producerNode.length&&Y.producerNode[t]!==e&&vn(Y)){let n=Y.producerNode[t];or(n,Y.producerIndexOfThis[t])}Y.producerNode[t]!==e&&(Y.producerNode[t]=e,Y.producerIndexOfThis[t]=vn(Y)?Za(e,Y,t):0),Y.producerLastReadVersion[t]=e.version}function Kf(){tr++}function za(e){if(!(vn(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===tr)){if(!e.producerMustRecompute(e)&&!oi(e)){e.dirty=!1,e.lastCleanEpoch=tr;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=tr}}function Wa(e){if(e.liveConsumerNode===void 0)return;let t=er;er=!0;try{for(let n of e.liveConsumerNode)n.dirty||Jf(n)}finally{er=t}}function qa(){return Y?.consumerAllowSignalWrites!==!1}function Jf(e){e.dirty=!0,Wa(e),e.consumerMarkedDirty?.(e)}function rr(e){return e&&(e.nextProducerIndex=0),T(e)}function ri(e,t){if(T(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(vn(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)or(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function oi(e){ir(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(za(n),r!==n.version))return!0}return!1}function ii(e){if(ir(e),vn(e))for(let t=0;t<e.producerNode.length;t++)or(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function Za(e,t,n){if(Ya(e),e.liveConsumerNode.length===0&&Qa(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=Za(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function or(e,t){if(Ya(e),e.liveConsumerNode.length===1&&Qa(e))for(let r=0;r<e.producerNode.length;r++)or(e.producerNode[r],e.producerIndexOfThis[r]);let n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){let r=e.liveConsumerIndexOfThis[t],o=e.liveConsumerNode[t];ir(o),o.producerIndexOfThis[r]=t}}function vn(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function ir(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Ya(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Qa(e){return e.producerNode!==void 0}function Ka(e){let t=Object.create(Xf);t.computation=e;let n=()=>{if(za(t),ni(t),t.value===nr)throw t.error;return t.value};return n[Le]=t,n}var ei=Symbol("UNSET"),ti=Symbol("COMPUTING"),nr=Symbol("ERRORED"),Xf=U(k({},Dn),{value:ei,dirty:!0,error:null,equal:Ha,producerMustRecompute(e){return e.value===ei||e.value===ti},producerRecomputeValue(e){if(e.value===ti)throw new Error("Detected cycle in computations.");let t=e.value;e.value=ti;let n=rr(e),r;try{r=e.computation()}catch(o){r=nr,e.error=o}finally{ri(e,n)}if(t!==ei&&t!==nr&&r!==nr&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function eh(){throw new Error}var Ja=eh;function Xa(){Ja()}function ec(e){Ja=e}var th=null;function tc(e){let t=Object.create(rc);t.value=e;let n=()=>(ni(t),t.value);return n[Le]=t,n}function si(e,t){qa()||Xa(),e.equal(e.value,t)||(e.value=t,nh(e))}function nc(e,t){qa()||Xa(),si(e,t(e.value))}var rc=U(k({},Dn),{equal:Ha,value:void 0});function nh(e){e.version++,Kf(),Wa(e),th?.()}function _(e){return typeof e=="function"}function Rt(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var sr=Rt(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
|
|
${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
|
|
`)}`:"",this.name="UnsubscriptionError",this.errors=n});function ut(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var J=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(_(r))try{r()}catch(i){t=i instanceof sr?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{oc(i)}catch(s){t=t??[],s instanceof sr?t=[...t,...s.errors]:t.push(s)}}if(t)throw new sr(t)}}add(t){var n;if(t&&t!==this)if(this.closed)oc(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&ut(n,t)}remove(t){let{_finalizers:n}=this;n&&ut(n,t),t instanceof e&&t._removeParent(this)}};J.EMPTY=(()=>{let e=new J;return e.closed=!0,e})();var ai=J.EMPTY;function ar(e){return e instanceof J||e&&"closed"in e&&_(e.remove)&&_(e.add)&&_(e.unsubscribe)}function oc(e){_(e)?e():e.unsubscribe()}var De={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ft={setTimeout(e,t,...n){let{delegate:r}=Ft;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Ft;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function cr(e){Ft.setTimeout(()=>{let{onUnhandledError:t}=De;if(t)t(e);else throw e})}function ci(){}var ic=ui("C",void 0,void 0);function sc(e){return ui("E",void 0,e)}function ac(e){return ui("N",e,void 0)}function ui(e,t,n){return{kind:e,value:t,error:n}}var lt=null;function Pt(e){if(De.useDeprecatedSynchronousErrorHandling){let t=!lt;if(t&&(lt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=lt;if(lt=null,n)throw r}}else e()}function cc(e){De.useDeprecatedSynchronousErrorHandling&<&&(lt.errorThrown=!0,lt.error=e)}var dt=class extends J{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,ar(t)&&t.add(this)):this.destination=ih}static create(t,n,r){return new kt(t,n,r)}next(t){this.isStopped?di(ac(t),this):this._next(t)}error(t){this.isStopped?di(sc(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?di(ic,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},rh=Function.prototype.bind;function li(e,t){return rh.call(e,t)}var fi=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){ur(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){ur(r)}else ur(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){ur(n)}}},kt=class extends dt{constructor(t,n,r){super();let o;if(_(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&De.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&li(t.next,i),error:t.error&&li(t.error,i),complete:t.complete&&li(t.complete,i)}):o=t}this.destination=new fi(o)}};function ur(e){De.useDeprecatedSynchronousErrorHandling?cc(e):cr(e)}function oh(e){throw e}function di(e,t){let{onStoppedNotification:n}=De;n&&Ft.setTimeout(()=>n(e,t))}var ih={closed:!0,next:ci,error:oh,complete:ci};var Lt=typeof Symbol=="function"&&Symbol.observable||"@@observable";function uc(e){return e}function lc(e){return e.length===0?uc:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var B=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=ah(n)?n:new kt(n,r,o);return Pt(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=dc(r),new r((o,i)=>{let s=new kt({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Lt](){return this}pipe(...n){return lc(n)(this)}toPromise(n){return n=dc(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function dc(e){var t;return(t=e??De.Promise)!==null&&t!==void 0?t:Promise}function sh(e){return e&&_(e.next)&&_(e.error)&&_(e.complete)}function ah(e){return e&&e instanceof dt||sh(e)&&ar(e)}function ch(e){return _(e?.lift)}function ee(e){return t=>{if(ch(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function te(e,t,n,r,o){return new hi(e,t,n,r,o)}var hi=class extends dt{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var fc=Rt(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Me=(()=>{class e extends B{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new lr(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new fc}next(n){Pt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Pt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Pt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?ai:(this.currentObservers=null,i.push(n),new J(()=>{this.currentObservers=null,ut(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new B;return n.source=this,n}}return e.create=(t,n)=>new lr(t,n),e})(),lr=class extends Me{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:ai}};var wn=class extends Me{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var pi={now(){return(pi.delegate||Date).now()},delegate:void 0};var dr=class extends J{constructor(t,n){super()}schedule(t,n=0){return this}};var En={setInterval(e,t,...n){let{delegate:r}=En;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=En;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var fr=class extends dr{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return En.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&En.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,ut(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var Vt=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};Vt.now=pi.now;var hr=class extends Vt{constructor(t,n=Vt.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var hc=new hr(fr);function pc(e){return e&&_(e.schedule)}function gc(e){return e[e.length-1]}function mc(e){return _(gc(e))?e.pop():void 0}function yc(e){return pc(gc(e))?e.pop():void 0}function Dc(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l))}catch(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function vc(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ft(e){return this instanceof ft?(this.v=e,this):new ft(e)}function wc(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(p){return Promise.resolve(p).then(f,d)}}function a(f,p){r[f]&&(o[f]=function(g){return new Promise(function(m,M){i.push([f,g,m,M])>1||c(f,g)})},p&&(o[f]=p(o[f])))}function c(f,p){try{u(r[f](p))}catch(g){h(i[0][3],g)}}function u(f){f.value instanceof ft?Promise.resolve(f.value.v).then(l,d):h(i[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function h(f,p){f(p),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Ec(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof vc=="function"?vc(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var pr=e=>e&&typeof e.length=="number"&&typeof e!="function";function gr(e){return _(e?.then)}function mr(e){return _(e[Lt])}function yr(e){return Symbol.asyncIterator&&_(e?.[Symbol.asyncIterator])}function vr(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function uh(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Dr=uh();function wr(e){return _(e?.[Dr])}function Er(e){return wc(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield ft(n.read());if(o)return yield ft(void 0);yield yield ft(r)}}finally{n.releaseLock()}})}function Cr(e){return _(e?.getReader)}function ne(e){if(e instanceof B)return e;if(e!=null){if(mr(e))return lh(e);if(pr(e))return dh(e);if(gr(e))return fh(e);if(yr(e))return Cc(e);if(wr(e))return hh(e);if(Cr(e))return ph(e)}throw vr(e)}function lh(e){return new B(t=>{let n=e[Lt]();if(_(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function dh(e){return new B(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function fh(e){return new B(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,cr)})}function hh(e){return new B(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Cc(e){return new B(t=>{gh(e,t).catch(n=>t.error(n))})}function ph(e){return Cc(Er(e))}function gh(e,t){var n,r,o,i;return Dc(this,void 0,void 0,function*(){try{for(n=Ec(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function ce(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function _r(e,t=0){return ee((n,r)=>{n.subscribe(te(r,o=>ce(r,e,()=>r.next(o),t),()=>ce(r,e,()=>r.complete(),t),o=>ce(r,e,()=>r.error(o),t)))})}function Ir(e,t=0){return ee((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function _c(e,t){return ne(e).pipe(Ir(t),_r(t))}function Ic(e,t){return ne(e).pipe(Ir(t),_r(t))}function bc(e,t){return new B(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Mc(e,t){return new B(n=>{let r;return ce(n,t,()=>{r=e[Dr](),ce(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>_(r?.return)&&r.return()})}function br(e,t){if(!e)throw new Error("Iterable cannot be null");return new B(n=>{ce(n,t,()=>{let r=e[Symbol.asyncIterator]();ce(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Tc(e,t){return br(Er(e),t)}function xc(e,t){if(e!=null){if(mr(e))return _c(e,t);if(pr(e))return bc(e,t);if(gr(e))return Ic(e,t);if(yr(e))return br(e,t);if(wr(e))return Mc(e,t);if(Cr(e))return Tc(e,t)}throw vr(e)}function ht(e,t){return t?xc(e,t):ne(e)}function Mr(...e){let t=yc(e);return ht(e,t)}function Sc(e){return e instanceof Date&&!isNaN(e)}var mh=Rt(e=>function(n=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n});function gi(e,t){let{first:n,each:r,with:o=yh,scheduler:i=t??hc,meta:s=null}=Sc(e)?{first:e}:typeof e=="number"?{each:e}:e;if(n==null&&r==null)throw new TypeError("No timeout provided.");return ee((a,c)=>{let u,l,d=null,h=0,f=p=>{l=ce(c,i,()=>{try{u.unsubscribe(),ne(o({meta:s,lastValue:d,seen:h})).subscribe(c)}catch(g){c.error(g)}},p)};u=a.subscribe(te(c,p=>{l?.unsubscribe(),h++,c.next(d=p),r>0&&f(r)},void 0,void 0,()=>{l?.closed||l?.unsubscribe(),d=null})),!h&&f(n!=null?typeof n=="number"?n:+n-i.now():r)})}function yh(e){throw new mh(e)}function X(e,t){return ee((n,r)=>{let o=0;n.subscribe(te(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:vh}=Array;function Dh(e,t){return vh(t)?e(...t):e(t)}function Nc(e){return X(t=>Dh(e,t))}var{isArray:wh}=Array,{getPrototypeOf:Eh,prototype:Ch,keys:_h}=Object;function Ac(e){if(e.length===1){let t=e[0];if(wh(t))return{args:t,keys:null};if(Ih(t)){let n=_h(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Ih(e){return e&&typeof e=="object"&&Eh(e)===Ch}function Oc(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Rc(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,h=()=>{d&&!c.length&&!u&&t.complete()},f=g=>u<r?p(g):c.push(g),p=g=>{i&&t.next(g),u++;let m=!1;ne(n(g,l++)).subscribe(te(t,M=>{o?.(M),i?f(M):t.next(M)},()=>{m=!0},void 0,()=>{if(m)try{for(u--;c.length&&u<r;){let M=c.shift();s?ce(t,s,()=>p(M)):p(M)}h()}catch(M){t.error(M)}}))};return e.subscribe(te(t,f,()=>{d=!0,h()})),()=>{a?.()}}function Tr(e,t,n=1/0){return _(t)?Tr((r,o)=>X((i,s)=>t(r,i,o,s))(ne(e(r,o))),n):(typeof t=="number"&&(n=t),ee((r,o)=>Rc(r,o,e,n)))}function mi(...e){let t=mc(e),{args:n,keys:r}=Ac(e),o=new B(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l<s;l++){let d=!1;ne(n[l]).subscribe(te(i,h=>{d||(d=!0,u--),a[l]=h},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?Oc(r,a):a),i.complete())}))}});return t?o.pipe(Nc(t)):o}function yi(e,t){return ee((n,r)=>{let o=0;n.subscribe(te(r,i=>e.call(t,i,o++)&&r.next(i)))})}function vi(e,t){return _(t)?Tr(e,t,1):Tr(e,1)}function jt(e){return ee((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Di(e,t){return ee((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(te(r,c=>{o?.unsubscribe();let u=0,l=i++;ne(e(c,l)).subscribe(o=te(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}var bh="https://g.co/ng/security#xss",E=class extends Error{constructor(t,n){super(co(t,n)),this.code=t}};function co(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function Rn(e){return{toString:e}.toString()}var xr="__parameters__";function Mh(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function Du(e,t,n){return Rn(()=>{let r=Mh(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,u,l){let d=c.hasOwnProperty(xr)?c[xr]:Object.defineProperty(c,xr,{value:[]})[xr];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),c}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var Cn=globalThis;function j(e){for(let t in e)if(e[t]===j)return t;throw Error("Could not find renamed property on target object.")}function Th(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function fe(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(fe).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(`
|
|
`);return n===-1?t:t.substring(0,n)}function Fc(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var xh=j({__forward_ref__:j});function Fn(e){return e.__forward_ref__=Fn,e.toString=function(){return fe(this())},e}function oe(e){return wu(e)?e():e}function wu(e){return typeof e=="function"&&e.hasOwnProperty(xh)&&e.__forward_ref__===Fn}function x(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Tt(e){return{providers:e.providers||[],imports:e.imports||[]}}function xs(e){return Pc(e,Eu)||Pc(e,Cu)}function Pc(e,t){return e.hasOwnProperty(t)?e[t]:null}function Sh(e){let t=e&&(e[Eu]||e[Cu]);return t||null}function kc(e){return e&&(e.hasOwnProperty(Lc)||e.hasOwnProperty(Nh))?e[Lc]:null}var Eu=j({\u0275prov:j}),Lc=j({\u0275inj:j}),Cu=j({ngInjectableDef:j}),Nh=j({ngInjectorDef:j}),D=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=x({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function _u(e){return e&&!!e.\u0275providers}var Ah=j({\u0275cmp:j}),Oh=j({\u0275dir:j}),Rh=j({\u0275pipe:j});var Vr=j({\u0275fac:j}),bn=j({__NG_ELEMENT_ID__:j}),Vc=j({__NG_ENV_ID__:j});function jr(e){return typeof e=="string"?e:e==null?"":String(e)}function Fh(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():jr(e)}function Ph(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new E(-200,e)}function Ss(e,t){throw new E(-201,!1)}var I=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(I||{}),Fi;function Iu(){return Fi}function ue(e){let t=Fi;return Fi=e,t}function bu(e,t,n){let r=xs(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&I.Optional)return null;if(t!==void 0)return t;Ss(e,"Injector")}var kh={},Mn=kh,Pi="__NG_DI_FLAG__",Br="ngTempTokenPath",Lh="ngTokenPath",Vh=/\n/gm,jh="\u0275",jc="__source",Ht;function Bh(){return Ht}function Qe(e){let t=Ht;return Ht=e,t}function $h(e,t=I.Default){if(Ht===void 0)throw new E(-203,!1);return Ht===null?bu(e,void 0,t):Ht.get(e,t&I.Optional?null:void 0,t)}function b(e,t=I.Default){return(Iu()||$h)(oe(e),t)}function v(e,t=I.Default){return b(e,uo(t))}function uo(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function ki(e){let t=[];for(let n=0;n<e.length;n++){let r=oe(e[n]);if(Array.isArray(r)){if(r.length===0)throw new E(900,!1);let o,i=I.Default;for(let s=0;s<r.length;s++){let a=r[s],c=Uh(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(b(o,i))}else t.push(b(r))}return t}function Mu(e,t){return e[Pi]=t,e.prototype[Pi]=t,e}function Uh(e){return e[Pi]}function Hh(e,t,n,r){let o=e[Br];throw t[jc]&&o.unshift(t[jc]),e.message=Gh(`
|
|
`+e.message,o,n,r),e[Lh]=o,e[Br]=null,e}function Gh(e,t,n,r=null){e=e&&e.charAt(0)===`
|
|
`&&e.charAt(1)==jh?e.slice(2):e;let o=fe(t);if(Array.isArray(t))o=t.map(fe).join(" -> ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):fe(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Vh,`
|
|
`)}`}var Tu=Mu(Du("Optional"),8);var zh=Mu(Du("SkipSelf"),4);function mt(e,t){let n=e.hasOwnProperty(Vr);return n?e[Vr]:null}function Wh(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function qh(e){return e.flat(Number.POSITIVE_INFINITY)}function Ns(e,t){e.forEach(n=>Array.isArray(n)?Ns(n,t):t(n))}function xu(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function $r(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Zh(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Yh(e,t,n){let r=Pn(e,t);return r>=0?e[r|1]=n:(r=~r,Zh(e,r,t,n)),r}function wi(e,t){let n=Pn(e,t);if(n>=0)return e[n|1]}function Pn(e,t){return Qh(e,t,1)}function Qh(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var zt={},ge=[],Tn=new D(""),Su=new D("",-1),Nu=new D(""),Ur=class{get(t,n=Mn){if(n===Mn){let r=new Error(`NullInjectorError: No provider for ${fe(t)}!`);throw r.name="NullInjectorError",r}return n}},Au=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Au||{}),Se=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Se||{}),Xe=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Xe||{});function Kh(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}function Li(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];Xh(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function Jh(e){return e===3||e===4||e===6}function Xh(e){return e.charCodeAt(0)===64}function xn(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?Bc(e,n,o,null,t[++r]):Bc(e,n,o,null,null))}}return e}function Bc(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){if(r===null){o!==null&&(e[i+1]=o);return}else if(r===e[i+1]){e[i+2]=o;return}}i++,r!==null&&i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),r!==null&&e.splice(i++,0,r),o!==null&&e.splice(i++,0,o)}var Ou="ng-template";function ep(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&Kh(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(As(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function As(e){return e.type===4&&e.value!==Ou}function tp(e,t,n){let r=e.type===4&&!n?Ou:e.value;return t===r}function np(e,t,n){let r=4,o=e.attrs,i=o!==null?ip(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!we(r)&&!we(c))return!1;if(s&&we(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!tp(e,c,n)||c===""&&t.length===1){if(we(r))return!1;s=!0}}else if(r&8){if(o===null||!ep(e,o,c,n)){if(we(r))return!1;s=!0}}else{let u=t[++a],l=rp(c,o,As(e),n);if(l===-1){if(we(r))return!1;s=!0;continue}if(u!==""){let d;if(l>i?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(we(r))return!1;s=!0}}}}return we(r)||s}function we(e){return(e&1)===0}function rp(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return sp(t,e)}function op(e,t,n=!1){for(let r=0;r<t.length;r++)if(np(e,t[r],n))return!0;return!1}function ip(e){for(let t=0;t<e.length;t++){let n=e[t];if(Jh(n))return t}return e.length}function sp(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function $c(e,t){return e?":not("+t.trim()+")":t}function ap(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!we(s)&&(t+=$c(i,o),o=""),r=s,i=i||!we(r);n++}return o!==""&&(t+=$c(i,o)),t}function cp(e){return e.map(ap).join(",")}function up(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!we(o))break;o=i}r++}return{attrs:t,classes:n}}function lo(e){return Rn(()=>{let t=ku(e),n=U(k({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Au.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Se.Emulated,styles:e.styles||ge,_:null,schemas:e.schemas||null,tView:null,id:""});Lu(n);let r=e.dependencies;return n.directiveDefs=Hc(r,!1),n.pipeDefs=Hc(r,!0),n.id=hp(n),n})}function lp(e){return Wt(e)||Fu(e)}function dp(e){return e!==null}function xt(e){return Rn(()=>({type:e.type,bootstrap:e.bootstrap||ge,declarations:e.declarations||ge,imports:e.imports||ge,exports:e.exports||ge,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Uc(e,t){if(e==null)return zt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=Xe.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==Xe.None?[r,a]:r,t[i]=s):n[i]=r}return n}function Ue(e){return Rn(()=>{let t=ku(e);return Lu(t),t})}function Ru(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone===!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Wt(e){return e[Ah]||null}function Fu(e){return e[Oh]||null}function Pu(e){return e[Rh]||null}function fp(e){let t=Wt(e)||Fu(e)||Pu(e);return t!==null?t.standalone:!1}function ku(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||zt,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||ge,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Uc(e.inputs,t),outputs:Uc(e.outputs),debugInfo:null}}function Lu(e){e.features?.forEach(t=>t(e))}function Hc(e,t){if(!e)return null;let n=t?Pu:lp;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(dp)}function hp(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Os(e){return{\u0275providers:e}}function pp(...e){return{\u0275providers:Vu(!0,e),\u0275fromNgModule:!0}}function Vu(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Ns(t,s=>{let a=s;Vi(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&ju(o,i),n}function ju(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Rs(o,i=>{t(i,r)})}}function Vi(e,t,n,r){if(e=oe(e),!e)return!1;let o=null,i=kc(e),s=!i&&Wt(e);if(!i&&!s){let c=e.ngModule;if(i=kc(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)Vi(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{Ns(i.imports,l=>{Vi(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&ju(u,t)}if(!a){let u=mt(o)||(()=>new o);t({provide:o,useFactory:u,deps:ge},o),t({provide:Nu,useValue:o,multi:!0},o),t({provide:Tn,useValue:()=>b(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;Rs(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function Rs(e,t){for(let n of e)_u(n)&&(n=n.\u0275providers),Array.isArray(n)?Rs(n,t):t(n)}var gp=j({provide:String,useValue:j});function Bu(e){return e!==null&&typeof e=="object"&&gp in e}function mp(e){return!!(e&&e.useExisting)}function yp(e){return!!(e&&e.useFactory)}function qt(e){return typeof e=="function"}function vp(e){return!!e.useClass}var fo=new D(""),Or={},Dp={},Ei;function Fs(){return Ei===void 0&&(Ei=new Ur),Ei}var Ne=class{},Sn=class extends Ne{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Bi(t,s=>this.processProvider(s)),this.records.set(Su,Bt(void 0,this)),o.has("environment")&&this.records.set(Ne,Bt(void 0,this));let i=this.records.get(fo);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Nu,ge,I.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=T(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),T(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=Qe(this),r=ue(void 0),o;try{return t()}finally{Qe(n),ue(r)}}get(t,n=Mn,r=I.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Vc))return t[Vc](this);r=uo(r);let o,i=Qe(this),s=ue(void 0);try{if(!(r&I.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=Ip(t)&&xs(t);u&&this.injectableDefInScope(u)?c=Bt(ji(t),Or):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&I.Self?Fs():this.parent;return n=r&I.Optional&&n===Mn?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Br]=a[Br]||[]).unshift(fe(t)),i)throw a;return Hh(a,t,"R3InjectorError",this.source)}else throw a}finally{ue(s),Qe(i)}}resolveInjectorInitializers(){let t=T(null),n=Qe(this),r=ue(void 0),o;try{let i=this.get(Tn,ge,I.Self);for(let s of i)s()}finally{Qe(n),ue(r),T(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(fe(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new E(205,!1)}processProvider(t){t=oe(t);let n=qt(t)?t:oe(t&&t.provide),r=Ep(t);if(!qt(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Bt(void 0,Or,!0),o.factory=()=>ki(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=T(null);try{return n.value===Or&&(n.value=Dp,n.value=n.factory()),typeof n.value=="object"&&n.value&&_p(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{T(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=oe(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function ji(e){let t=xs(e),n=t!==null?t.factory:mt(e);if(n!==null)return n;if(e instanceof D)throw new E(204,!1);if(e instanceof Function)return wp(e);throw new E(204,!1)}function wp(e){if(e.length>0)throw new E(204,!1);let n=Sh(e);return n!==null?()=>n.factory(e):()=>new e}function Ep(e){if(Bu(e))return Bt(void 0,e.useValue);{let t=$u(e);return Bt(t,Or)}}function $u(e,t,n){let r;if(qt(e)){let o=oe(e);return mt(o)||ji(o)}else if(Bu(e))r=()=>oe(e.useValue);else if(yp(e))r=()=>e.useFactory(...ki(e.deps||[]));else if(mp(e))r=()=>b(oe(e.useExisting));else{let o=oe(e&&(e.useClass||e.provide));if(Cp(e))r=()=>new o(...ki(e.deps));else return mt(o)||ji(o)}return r}function Bt(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Cp(e){return!!e.deps}function _p(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Ip(e){return typeof e=="function"||typeof e=="object"&&e instanceof D}function Bi(e,t){for(let n of e)Array.isArray(n)?Bi(n,t):n&&_u(n)?Bi(n.\u0275providers,t):t(n)}function Uu(e,t){e instanceof Sn&&e.assertNotDestroyed();let n,r=Qe(e),o=ue(void 0);try{return t()}finally{Qe(r),ue(o)}}function bp(){return Iu()!==void 0||Bh()!=null}function Mp(e){return typeof e=="function"}var He=0,w=1,y=2,re=3,Ee=4,_e=5,Hr=6,Gr=7,Ce=8,Zt=9,Ve=10,Q=11,Nn=12,Gc=13,nn=14,Ae=15,yt=16,$t=17,je=18,ho=19,Hu=20,Ke=21,Ci=22,me=23,Oe=25,Gu=1;var vt=7,zr=8,Yt=9,he=10,Wr=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Wr||{});function Je(e){return Array.isArray(e)&&typeof e[Gu]=="object"}function Ge(e){return Array.isArray(e)&&e[Gu]===!0}function zu(e){return(e.flags&4)!==0}function po(e){return e.componentOffset>-1}function Ps(e){return(e.flags&1)===1}function et(e){return!!e.template}function $i(e){return(e[y]&512)!==0}var Ui=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Wu(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function go(){return qu}function qu(e){return e.type.prototype.ngOnChanges&&(e.setInput=xp),Tp}go.ngInherit=!0;function Tp(){let e=Yu(this),t=e?.current;if(t){let n=e.previous;if(n===zt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function xp(e,t,n,r,o){let i=this.declaredInputs[r],s=Yu(e)||Sp(e,{previous:zt,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new Ui(u&&u.currentValue,n,c===zt),Wu(e,t,o,n)}var Zu="__ngSimpleChanges__";function Yu(e){return e[Zu]||null}function Sp(e,t){return e[Zu]=t}var zc=null;var Te=function(e,t,n){zc?.(e,t,n)},Np="svg",Ap="math";function Re(e){for(;Array.isArray(e);)e=e[He];return e}function Qu(e,t){return Re(t[e])}function Ie(e,t){return Re(t[e.index])}function Ku(e,t){return e.data[t]}function Op(e,t){return e[t]}function tt(e,t){let n=t[e];return Je(n)?n:n[He]}function Rp(e){return(e[y]&4)===4}function ks(e){return(e[y]&128)===128}function Fp(e){return Ge(e[re])}function qr(e,t){return t==null?null:e[t]}function Ju(e){e[$t]=0}function Xu(e){e[y]&1024||(e[y]|=1024,ks(e)&&yo(e))}function Pp(e,t){for(;e>0;)t=t[nn],e--;return t}function mo(e){return!!(e[y]&9216||e[me]?.dirty)}function Hi(e){e[Ve].changeDetectionScheduler?.notify(8),e[y]&64&&(e[y]|=1024),mo(e)&&yo(e)}function yo(e){e[Ve].changeDetectionScheduler?.notify(0);let t=Dt(e);for(;t!==null&&!(t[y]&8192||(t[y]|=8192,!ks(t)));)t=Dt(t)}function el(e,t){if((e[y]&256)===256)throw new E(911,!1);e[Ke]===null&&(e[Ke]=[]),e[Ke].push(t)}function kp(e,t){if(e[Ke]===null)return;let n=e[Ke].indexOf(t);n!==-1&&e[Ke].splice(n,1)}function Dt(e){let t=e[re];return Ge(t)?t[re]:t}var C={lFrame:ll(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var tl=!1;function Lp(){return C.lFrame.elementDepthCount}function Vp(){C.lFrame.elementDepthCount++}function jp(){C.lFrame.elementDepthCount--}function nl(){return C.bindingsEnabled}function Bp(){return C.skipHydrationRootTNode!==null}function $p(e){return C.skipHydrationRootTNode===e}function Up(){C.skipHydrationRootTNode=null}function O(){return C.lFrame.lView}function ie(){return C.lFrame.tView}function vo(e){return C.lFrame.contextLView=e,e[Ce]}function Do(e){return C.lFrame.contextLView=null,e}function de(){let e=rl();for(;e!==null&&e.type===64;)e=e.parent;return e}function rl(){return C.lFrame.currentTNode}function Hp(){let e=C.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function kn(e,t){let n=C.lFrame;n.currentTNode=e,n.isParent=t}function ol(){return C.lFrame.isParent}function Gp(){C.lFrame.isParent=!1}function il(){return tl}function Wc(e){tl=e}function zp(){let e=C.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Wp(){return C.lFrame.bindingIndex}function qp(e){return C.lFrame.bindingIndex=e}function Ls(){return C.lFrame.bindingIndex++}function sl(e){let t=C.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Zp(){return C.lFrame.inI18n}function Yp(e,t){let n=C.lFrame;n.bindingIndex=n.bindingRootIndex=e,Gi(t)}function Qp(){return C.lFrame.currentDirectiveIndex}function Gi(e){C.lFrame.currentDirectiveIndex=e}function Kp(e){let t=C.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function al(){return C.lFrame.currentQueryIndex}function Vs(e){C.lFrame.currentQueryIndex=e}function Jp(e){let t=e[w];return t.type===2?t.declTNode:t.type===1?e[_e]:null}function cl(e,t,n){if(n&I.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&I.Host);)if(o=Jp(i),o===null||(i=i[nn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=C.lFrame=ul();return r.currentTNode=t,r.lView=e,!0}function js(e){let t=ul(),n=e[w];C.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ul(){let e=C.lFrame,t=e===null?null:e.child;return t===null?ll(e):t}function ll(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function dl(){let e=C.lFrame;return C.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var fl=dl;function Bs(){let e=dl();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Xp(e){return(C.lFrame.contextLView=Pp(e,C.lFrame.contextLView))[Ce]}function St(){return C.lFrame.selectedIndex}function wt(e){C.lFrame.selectedIndex=e}function hl(){let e=C.lFrame;return Ku(e.tView,e.selectedIndex)}function eg(){return C.lFrame.currentNamespace}var pl=!0;function $s(){return pl}function Us(e){pl=e}function tg(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=qu(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function Hs(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:l}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),l!=null&&(e.destroyHooks??=[]).push(n,l)}}function Rr(e,t,n){gl(e,t,3,n)}function Fr(e,t,n,r){(e[y]&3)===n&&gl(e,t,n,r)}function _i(e,t){let n=e[y];(n&3)===t&&(n&=16383,n+=1,e[y]=n)}function gl(e,t,n,r){let o=r!==void 0?e[$t]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[$t]+=65536),(a<i||i==-1)&&(ng(e,n,t,c),e[$t]=(e[$t]&4294901760)+c+2),c++}function qc(e,t){Te(4,e,t);let n=T(null);try{t.call(e)}finally{T(n),Te(5,e,t)}}function ng(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[y]>>14<e[$t]>>16&&(e[y]&3)===t&&(e[y]+=16384,qc(a,i)):qc(a,i)}var Gt=-1,Et=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function rg(e){return e instanceof Et}function og(e){return(e.flags&8)!==0}function ig(e){return(e.flags&16)!==0}var Ii={},zi=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=uo(r);let o=this.injector.get(t,Ii,r);return o!==Ii||n===Ii?o:this.parentInjector.get(t,n,r)}};function ml(e){return e!==Gt}function Zr(e){return e&32767}function sg(e){return e>>16}function Yr(e,t){let n=sg(e),r=t;for(;n>0;)r=r[nn],n--;return r}var Wi=!0;function Qr(e){let t=Wi;return Wi=e,t}var ag=256,yl=ag-1,vl=5,cg=0,xe={};function ug(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(bn)&&(r=n[bn]),r==null&&(r=n[bn]=cg++);let o=r&yl,i=1<<o;t.data[e+(o>>vl)]|=i}function Kr(e,t){let n=Dl(e,t);if(n!==-1)return n;let r=t[w];r.firstCreatePass&&(e.injectorIndex=t.length,bi(r.data,e),bi(t,null),bi(r.blueprint,null));let o=Gs(e,t),i=e.injectorIndex;if(ml(o)){let s=Zr(o),a=Yr(o,t),c=a[w].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function bi(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Dl(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Gs(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=bl(o),r===null)return Gt;if(n++,o=o[nn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Gt}function qi(e,t,n){ug(e,t,n)}function wl(e,t,n){if(n&I.Optional||e!==void 0)return e;Ss(t,"NodeInjector")}function El(e,t,n,r){if(n&I.Optional&&r===void 0&&(r=null),!(n&(I.Self|I.Host))){let o=e[Zt],i=ue(void 0);try{return o?o.get(t,r,n&I.Optional):bu(t,r,n&I.Optional)}finally{ue(i)}}return wl(r,t,n)}function Cl(e,t,n,r=I.Default,o){if(e!==null){if(t[y]&2048&&!(r&I.Self)){let s=hg(e,t,n,r,xe);if(s!==xe)return s}let i=_l(e,t,n,r,xe);if(i!==xe)return i}return El(t,n,r,o)}function _l(e,t,n,r,o){let i=dg(n);if(typeof i=="function"){if(!cl(t,e,r))return r&I.Host?wl(o,n,r):El(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&I.Optional))Ss(n);else return s}finally{fl()}}else if(typeof i=="number"){let s=null,a=Dl(e,t),c=Gt,u=r&I.Host?t[Ae][_e]:null;for((a===-1||r&I.SkipSelf)&&(c=a===-1?Gs(e,t):t[a+8],c===Gt||!Yc(r,!1)?a=-1:(s=t[w],a=Zr(c),t=Yr(c,t)));a!==-1;){let l=t[w];if(Zc(i,a,l.data)){let d=lg(a,t,n,s,r,u);if(d!==xe)return d}c=t[a+8],c!==Gt&&Yc(r,t[w].data[a+8]===u)&&Zc(i,a,t)?(s=l,a=Zr(c),t=Yr(c,t)):a=-1}}return o}function lg(e,t,n,r,o,i){let s=t[w],a=s.data[e+8],c=r==null?po(a)&&Wi:r!=s&&(a.type&3)!==0,u=o&I.Host&&i===a,l=Pr(a,s,n,c,u);return l!==null?Ct(t,s,l,a):xe}function Pr(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,d=r?a:a+l,h=o?a+l:u;for(let f=d;f<h;f++){let p=s[f];if(f<c&&n===p||f>=c&&p.type===n)return f}if(o){let f=s[c];if(f&&et(f)&&f.type===n)return c}return null}function Ct(e,t,n,r){let o=e[n],i=t.data;if(rg(o)){let s=o;s.resolving&&Ph(Fh(i[n]));let a=Qr(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?ue(s.injectImpl):null,l=cl(e,r,I.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&tg(n,i[n],t)}finally{u!==null&&ue(u),Qr(a),s.resolving=!1,fl()}}return o}function dg(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(bn)?e[bn]:void 0;return typeof t=="number"?t>=0?t&yl:fg:t}function Zc(e,t,n){let r=1<<e;return!!(n[t+(e>>vl)]&r)}function Yc(e,t){return!(e&I.Self)&&!(e&I.Host&&t)}var gt=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Cl(this._tNode,this._lView,t,uo(r),n)}};function fg(){return new gt(de(),O())}function Il(e){return Rn(()=>{let t=e.prototype.constructor,n=t[Vr]||Zi(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Vr]||Zi(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Zi(e){return wu(e)?()=>{let t=Zi(oe(e));return t&&t()}:mt(e)}function hg(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[y]&2048&&!(s[y]&512);){let a=_l(i,s,n,r|I.Self,xe);if(a!==xe)return a;let c=i.parent;if(!c){let u=s[Hu];if(u){let l=u.get(n,xe,r);if(l!==xe)return l}c=bl(s),s=s[nn]}i=c}return o}function bl(e){let t=e[w],n=t.type;return n===2?t.declTNode:n===1?e[_e]:null}function Qc(e,t=null,n=null,r){let o=pg(e,t,n,r);return o.resolveInjectorInitializers(),o}function pg(e,t=null,n=null,r,o=new Set){let i=[n||ge,pp(e)];return r=r||(typeof e=="object"?void 0:fe(e)),new Sn(i,t||Fs(),r||null,o)}var Qt=class e{static{this.THROW_IF_NOT_FOUND=Mn}static{this.NULL=new Ur}static create(t,n){if(Array.isArray(t))return Qc({name:""},n,t,"");{let r=t.name??"";return Qc({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=x({token:e,providedIn:"any",factory:()=>b(Su)})}static{this.__NG_ELEMENT_ID__=-1}};var gg=new D("");gg.__NG_ELEMENT_ID__=e=>{let t=de();if(t===null)throw new E(204,!1);if(t.type&2)return t.value;if(e&I.Optional)return null;throw new E(204,!1)};var mg="ngOriginalError";function Mi(e){return e[mg]}var Ml=!0,Tl=(()=>{class e{static{this.__NG_ELEMENT_ID__=yg}static{this.__NG_ENV_ID__=n=>n}}return e})(),Yi=class extends Tl{constructor(t){super(),this._lView=t}onDestroy(t){return el(this._lView,t),()=>kp(this._lView,t)}};function yg(){return new Yi(O())}var rn=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new wn(!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)}static{this.\u0275prov=x({token:e,providedIn:"root",factory:()=>new e})}}return e})();var Qi=class extends Me{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,bp()&&(this.destroyRef=v(Tl,{optional:!0})??void 0,this.pendingTasks=v(rn,{optional:!0})??void 0)}emit(t){let n=T(null);try{super.next(t)}finally{T(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof J&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},le=Qi;function Jr(...e){}function xl(e){let t,n;function r(){e=Jr;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Kc(e){return queueMicrotask(()=>e()),()=>{e=Jr}}var zs="isAngularZone",Xr=zs+"_ID",vg=0,G=class e{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new le(!1),this.onMicrotaskEmpty=new le(!1),this.onStable=new le(!1),this.onError=new le(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Ml}=t;if(typeof Zone>"u")throw new E(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Eg(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(zs)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new E(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new E(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Dg,Jr,Jr);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Dg={};function Ws(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function wg(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){xl(()=>{e.callbackScheduled=!1,Ki(e),e.isCheckStableRunning=!0,Ws(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Ki(e)}function Eg(e){let t=()=>{wg(e)},n=vg++;e._inner=e._inner.fork({name:"angular",properties:{[zs]:!0,[Xr]:n,[Xr+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Cg(c))return r.invokeTask(i,s,a,c);try{return Jc(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Xc(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Jc(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!_g(c)&&t(),Xc(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Ki(e),Ws(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Ki(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Jc(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Xc(e){e._nesting--,Ws(e)}var Ji=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new le,this.onMicrotaskEmpty=new le,this.onStable=new le,this.onError=new le}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Cg(e){return Sl(e,"__ignore_ng_zone__")}function _g(e){return Sl(e,"__scheduler_tick__")}function Sl(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Be=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Mi(t);for(;n&&Mi(n);)n=Mi(n);return n||null}},Ig=new D("",{providedIn:"root",factory:()=>{let e=v(G),t=v(Be);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function bg(){return on(de(),O())}function on(e,t){return new ze(Ie(e,t))}var ze=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=bg}}return e})();function Mg(e){return e instanceof ze?e.nativeElement:e}function Tg(){return this._results[Symbol.iterator]()}var Xi=class e{get changes(){return this._changes??=new le}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let n=e.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=Tg)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=qh(t);(this._changesDetected=!Wh(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function Nl(e){return(e.flags&128)===128}var Al=new Map,xg=0;function Sg(){return xg++}function Ng(e){Al.set(e[ho],e)}function es(e){Al.delete(e[ho])}var eu="__ngContext__";function _t(e,t){Je(t)?(e[eu]=t[ho],Ng(t)):e[eu]=t}function Ol(e){return Fl(e[Nn])}function Rl(e){return Fl(e[Ee])}function Fl(e){for(;e!==null&&!Ge(e);)e=e[Ee];return e}var ts;function Pl(e){ts=e}function Ag(){if(ts!==void 0)return ts;if(typeof document<"u")return document;throw new E(210,!1)}var qs=new D("",{providedIn:"root",factory:()=>Og}),Og="ng",Zs=new D(""),nt=new D("",{providedIn:"platform",factory:()=>"unknown"});var Ys=new D("",{providedIn:"root",factory:()=>Ag().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Rg="h",Fg="b";var Pg=()=>null;function Qs(e,t,n=!1){return Pg(e,t,n)}var kl=!1,kg=new D("",{providedIn:"root",factory:()=>kl});var ns=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${bh})`}};function Ks(e){return e instanceof ns?e.changingThisBreaksApplicationSecurity:e}var $e=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}($e||{}),Lg;function Js(e,t){return Lg(e,t)}function Ut(e,t,n,r,o){if(r!=null){let i,s=!1;Ge(r)?i=r:Je(r)&&(s=!0,r=r[He]);let a=Re(r);e===0&&n!==null?o==null?$l(t,n,a):eo(t,n,a,o||null,!0):e===1&&n!==null?eo(t,n,a,o||null,!0):e===2?Jg(t,a,s):e===3&&t.destroyNode(a),i!=null&&em(t,e,i,n,o)}}function Vg(e,t){return e.createText(t)}function jg(e,t,n){e.setValue(t,n)}function Ll(e,t,n){return e.createElement(t,n)}function Bg(e,t){Vl(e,t),t[He]=null,t[_e]=null}function $g(e,t,n,r,o,i){r[He]=o,r[_e]=t,wo(e,r,n,1,o,i)}function Vl(e,t){t[Ve].changeDetectionScheduler?.notify(9),wo(e,t,t[Q],2,null,null)}function Ug(e){let t=e[Nn];if(!t)return Ti(e[w],e);for(;t;){let n=null;if(Je(t))n=t[Nn];else{let r=t[he];r&&(n=r)}if(!n){for(;t&&!t[Ee]&&t!==e;)Je(t)&&Ti(t[w],t),t=t[re];t===null&&(t=e),Je(t)&&Ti(t[w],t),n=t&&t[Ee]}t=n}}function Hg(e,t,n,r){let o=he+r,i=n.length;r>0&&(n[o-1][Ee]=t),r<i-he?(t[Ee]=n[o],xu(n,he+r,t)):(n.push(t),t[Ee]=null),t[re]=n;let s=t[yt];s!==null&&n!==s&&jl(s,t);let a=t[je];a!==null&&a.insertView(e),Hi(t),t[y]|=128}function jl(e,t){let n=e[Yt],r=t[re];if(Je(r))e[y]|=Wr.HasTransplantedViews;else{let o=r[re][Ae];t[Ae]!==o&&(e[y]|=Wr.HasTransplantedViews)}n===null?e[Yt]=[t]:n.push(t)}function Xs(e,t){let n=e[Yt],r=n.indexOf(t);n.splice(r,1)}function rs(e,t){if(e.length<=he)return;let n=he+t,r=e[n];if(r){let o=r[yt];o!==null&&o!==e&&Xs(o,r),t>0&&(e[n-1][Ee]=r[Ee]);let i=$r(e,he+t);Bg(r[w],r);let s=i[je];s!==null&&s.detachView(i[w]),r[re]=null,r[Ee]=null,r[y]&=-129}return r}function Bl(e,t){if(!(t[y]&256)){let n=t[Q];n.destroyNode&&wo(e,t,n,3,null,null),Ug(t)}}function Ti(e,t){if(t[y]&256)return;let n=T(null);try{t[y]&=-129,t[y]|=256,t[me]&&ii(t[me]),zg(e,t),Gg(e,t),t[w].type===1&&t[Q].destroy();let r=t[yt];if(r!==null&&Ge(t[re])){r!==t[re]&&Xs(r,t);let o=t[je];o!==null&&o.detachView(e)}es(t)}finally{T(n)}}function Gg(e,t){let n=e.cleanup,r=t[Gr];if(n!==null)for(let i=0;i<n.length-1;i+=2)if(typeof n[i]=="string"){let s=n[i+3];s>=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(t[Gr]=null);let o=t[Ke];if(o!==null){t[Ke]=null;for(let i=0;i<o.length;i++){let s=o[i];s()}}}function zg(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof Et)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];Te(4,a,c);try{c.call(a)}finally{Te(5,a,c)}}else{Te(4,o,i);try{i.call(o)}finally{Te(5,o,i)}}}}}function Wg(e,t,n){return qg(e,t.parent,n)}function qg(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[He];{let{componentOffset:o}=r;if(o>-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===Se.None||i===Se.Emulated)return null}return Ie(r,n)}}function eo(e,t,n,r,o){e.insertBefore(t,n,r,o)}function $l(e,t,n){e.appendChild(t,n)}function tu(e,t,n,r,o){r!==null?eo(e,t,n,r,o):$l(e,t,n)}function Ul(e,t){return e.parentNode(t)}function Zg(e,t){return e.nextSibling(t)}function Yg(e,t,n){return Kg(e,t,n)}function Qg(e,t,n){return e.type&40?Ie(e,n):null}var Kg=Qg,nu;function ea(e,t,n,r){let o=Wg(e,r,t),i=t[Q],s=r.parent||t[_e],a=Yg(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)tu(i,o,n[c],a,!1);else tu(i,o,n,a,!1);nu!==void 0&&nu(i,r,t,n,o)}function _n(e,t){if(t!==null){let n=t.type;if(n&3)return Ie(t,e);if(n&4)return os(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return _n(e,r);{let o=e[t.index];return Ge(o)?os(-1,o):Re(o)}}else{if(n&128)return _n(e,t.next);if(n&32)return Js(t,e)()||Re(e[t.index]);{let r=Hl(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Dt(e[Ae]);return _n(o,r)}else return _n(e,t.next)}}}return null}function Hl(e,t){if(t!==null){let r=e[Ae][_e],o=t.projection;return r.projection[o]}return null}function os(e,t){let n=he+e+1;if(n<t.length){let r=t[n],o=r[w].firstChild;if(o!==null)return _n(r,o)}return t[vt]}function Jg(e,t,n){e.removeChild(null,t,n)}function ta(e,t,n,r,o,i,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],c=n.type;if(s&&t===0&&(a&&_t(Re(a),r),n.flags|=2),(n.flags&32)!==32)if(c&8)ta(e,t,n.child,r,o,i,!1),Ut(t,e,o,a,i);else if(c&32){let u=Js(n,r),l;for(;l=u();)Ut(t,e,o,l,i);Ut(t,e,o,a,i)}else c&16?Xg(e,t,r,n,o,i):Ut(t,e,o,a,i);n=s?n.projectionNext:n.next}}function wo(e,t,n,r,o,i){ta(n,r,e.firstChild,t,o,i,!1)}function Xg(e,t,n,r,o,i){let s=n[Ae],c=s[_e].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];Ut(t,e,o,l,i)}else{let u=c,l=s[re];Nl(r)&&(u.flags|=128),ta(e,t,u,l,o,i,!0)}}function em(e,t,n,r,o){let i=n[vt],s=Re(n);i!==s&&Ut(t,e,r,i,o);for(let a=he;a<n.length;a++){let c=n[a];wo(c[w],c,e,t,r,i)}}function tm(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:$e.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=$e.Important),e.setStyle(n,r,o,i))}}function nm(e,t,n){e.setAttribute(t,"style",n)}function Gl(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function zl(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&Li(e,t,r),o!==null&&Gl(e,t,o),i!==null&&nm(e,t,i)}var We={};function z(e=1){Wl(ie(),O(),St()+e,!1)}function Wl(e,t,n,r){if(!r)if((t[y]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Rr(t,i,n)}else{let i=e.preOrderHooks;i!==null&&Fr(t,i,0,n)}wt(n)}function L(e,t=I.Default){let n=O();if(n===null)return b(e,t);let r=de();return Cl(r,n,oe(e),t)}function ql(e,t,n,r,o,i){let s=T(null);try{let a=null;o&Xe.SignalBased&&(a=t[r][Le]),a!==null&&a.transformFn!==void 0&&(i=a.transformFn(i)),o&Xe.HasDecoratorInputTransform&&(i=e.inputTransforms[r].call(t,i)),e.setInput!==null?e.setInput(t,a,i,n,r):Wu(t,a,r,i)}finally{T(s)}}function rm(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)wt(~o);else{let i=o,s=n[++r],a=n[++r];Yp(s,i);let c=t[i];a(2,c)}}}finally{wt(-1)}}function Eo(e,t,n,r,o,i,s,a,c,u,l){let d=t.blueprint.slice();return d[He]=o,d[y]=r|4|128|8|64,(u!==null||e&&e[y]&2048)&&(d[y]|=2048),Ju(d),d[re]=d[nn]=e,d[Ce]=n,d[Ve]=s||e&&e[Ve],d[Q]=a||e&&e[Q],d[Zt]=c||e&&e[Zt]||null,d[_e]=i,d[ho]=Sg(),d[Hr]=l,d[Hu]=u,d[Ae]=t.type==2?e[Ae]:d,d}function Co(e,t,n,r,o){let i=e.data[t];if(i===null)i=om(e,t,n,r,o),Zp()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Hp();i.injectorIndex=s===null?-1:s.injectorIndex}return kn(i,!0),i}function om(e,t,n,r,o){let i=rl(),s=ol(),a=s?i:i&&i.parent,c=e.data[t]=lm(e,a,n,t,r,o);return e.firstChild===null&&(e.firstChild=c),i!==null&&(s?i.child==null&&c.parent!==null&&(i.child=c):i.next===null&&(i.next=c,c.prev=i)),c}function Zl(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function Yl(e,t,n,r,o){let i=St(),s=r&2;try{wt(-1),s&&t.length>Oe&&Wl(e,t,Oe,!1),Te(s?2:0,o),n(r,o)}finally{wt(i),Te(s?3:1,o)}}function Ql(e,t,n){if(zu(t)){let r=T(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{T(r)}}}function Kl(e,t,n){nl()&&(mm(e,t,n,Ie(n,t)),(n.flags&64)===64&&rd(e,t,n))}function Jl(e,t,n=Ie){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function Xl(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=na(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function na(e,t,n,r,o,i,s,a,c,u,l){let d=Oe+r,h=d+o,f=im(d,h),p=typeof u=="function"?u():u;return f[w]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:p,incompleteFirstPass:!1,ssrId:l}}function im(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:We);return n}function sm(e,t,n,r){let i=r.get(kg,kl)||n===Se.ShadowDom,s=e.selectRootElement(t,i);return am(s),s}function am(e){cm(e)}var cm=()=>null;function um(e,t,n,r){let o=sd(t);o.push(n),e.firstCreatePass&&ad(e).push(r,o.length-1)}function lm(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Bp()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function ru(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,c=Xe.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=i;if(o!==null){if(!o.hasOwnProperty(i))continue;u=o[i]}e===0?ou(r,n,u,a,c):ou(r,n,u,a)}return r}function ou(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function dm(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],c=null,u=null;for(let l=r;l<o;l++){let d=i[l],h=n?n.get(d):null,f=h?h.inputs:null,p=h?h.outputs:null;c=ru(0,d.inputs,l,c,f),u=ru(1,d.outputs,l,u,p);let g=c!==null&&s!==null&&!As(t)?bm(c,l,s):null;a.push(g)}c!==null&&(c.hasOwnProperty("class")&&(t.flags|=8),c.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=a,t.inputs=c,t.outputs=u}function fm(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function ed(e,t,n,r,o,i,s,a){let c=Ie(t,n),u=t.inputs,l;!a&&u!=null&&(l=u[r])?(ra(e,n,l,r,o),po(t)&&hm(n,t.index)):t.type&3?(r=fm(r),o=s!=null?s(o,t.value||"",r):o,i.setProperty(c,r,o)):t.type&12}function hm(e,t){let n=tt(t,e);n[y]&16||(n[y]|=64)}function td(e,t,n,r){if(nl()){let o=r===null?null:{"":-1},i=vm(e,n),s,a;i===null?s=a=null:[s,a]=i,s!==null&&nd(e,t,n,s,o,a),o&&Dm(n,r,o)}n.mergedAttrs=xn(n.mergedAttrs,n.attrs)}function nd(e,t,n,r,o,i){for(let u=0;u<r.length;u++)qi(Kr(n,t),e,r[u].type);Em(n,e.data.length,r.length);for(let u=0;u<r.length;u++){let l=r[u];l.providersResolver&&l.providersResolver(l)}let s=!1,a=!1,c=Zl(e,t,r.length,null);for(let u=0;u<r.length;u++){let l=r[u];n.mergedAttrs=xn(n.mergedAttrs,l.hostAttrs),Cm(e,n,t,c,l),wm(c,l,o),l.contentQueries!==null&&(n.flags|=4),(l.hostBindings!==null||l.hostAttrs!==null||l.hostVars!==0)&&(n.flags|=64);let d=l.type.prototype;!s&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),s=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),a=!0),c++}dm(e,n,i)}function pm(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;gm(s)!=a&&s.push(a),s.push(n,r,i)}}function gm(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function mm(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;po(n)&&_m(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||Kr(n,t),_t(r,t);let s=n.initialInputs;for(let a=o;a<i;a++){let c=e.data[a],u=Ct(t,e,a,n);if(_t(u,t),s!==null&&Im(t,a-o,u,c,n,s),et(c)){let l=tt(n.index,t);l[Ce]=Ct(t,e,a,n)}}}function rd(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Qp();try{wt(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];Gi(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&ym(c,u)}}finally{wt(-1),Gi(s)}}function ym(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function vm(e,t){let n=e.directiveRegistry,r=null,o=null;if(n)for(let i=0;i<n.length;i++){let s=n[i];if(op(t,s.selectors,!1))if(r||(r=[]),et(s))if(s.findHostDirectiveDefs!==null){let a=[];o=o||new Map,s.findHostDirectiveDefs(s,a,o),r.unshift(...a,s);let c=a.length;is(e,t,c)}else r.unshift(s),is(e,t,0);else o=o||new Map,s.findHostDirectiveDefs?.(s,r,o),r.push(s)}return r===null?null:[r,o]}function is(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function Dm(e,t,n){if(t){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new E(-301,!1);r.push(t[o],i)}}}function wm(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;et(t)&&(n[""]=e)}}function Em(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Cm(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=mt(o.type,!0)),s=new Et(i,et(o),L);e.blueprint[r]=s,n[r]=s,pm(e,t,r,Zl(e,n,o.hostVars,We),o)}function _m(e,t,n){let r=Ie(t,e),o=Xl(n),i=e[Ve].rendererFactory,s=16;n.signals?s=4096:n.onPush&&(s=64);let a=_o(e,Eo(e,o,null,s,r,t,null,i.createRenderer(r,n),null,null,null));e[t.index]=a}function Im(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;){let c=s[a++],u=s[a++],l=s[a++],d=s[a++];ql(r,n,c,u,l,d)}}function bm(e,t,n){let r=null,o=0;for(;o<n.length;){let i=n[o];if(i===0){o+=4;continue}else if(i===5){o+=2;continue}if(typeof i=="number")break;if(e.hasOwnProperty(i)){r===null&&(r=[]);let s=e[i];for(let a=0;a<s.length;a+=3)if(s[a]===t){r.push(i,s[a+1],s[a+2],n[o+1]);break}}o+=2}return r}function od(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function id(e,t){let n=e.contentQueries;if(n!==null){let r=T(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];Vs(i),a.contentQueries(2,t[s],s)}}}finally{T(r)}}}function _o(e,t){return e[Nn]?e[Gc][Ee]=t:e[Nn]=t,e[Gc]=t,t}function ss(e,t,n){Vs(0);let r=T(null);try{t(e,n)}finally{T(r)}}function sd(e){return e[Gr]??=[]}function ad(e){return e.cleanup??=[]}function cd(e,t){let n=e[Zt],r=n?n.get(Be,null):null;r&&r.handleError(t)}function ra(e,t,n,r,o){for(let i=0;i<n.length;){let s=n[i++],a=n[i++],c=n[i++],u=t[s],l=e.data[s];ql(l,u,r,a,c,o)}}function ud(e,t,n){let r=Qu(t,e);jg(e[Q],r,n)}function Mm(e,t){let n=tt(t,e),r=n[w];Tm(r,n);let o=n[He];o!==null&&n[Hr]===null&&(n[Hr]=Qs(o,n[Zt])),oa(r,n,n[Ce])}function Tm(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function oa(e,t,n){js(t);try{let r=e.viewQuery;r!==null&&ss(1,r,n);let o=e.template;o!==null&&Yl(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[je]?.finishViewCreation(e),e.staticContentQueries&&id(e,t),e.staticViewQueries&&ss(2,e.viewQuery,n);let i=e.components;i!==null&&xm(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[y]&=-5,Bs()}}function xm(e,t){for(let n=0;n<t.length;n++)Mm(e,t[n])}function Sm(e,t,n,r){let o=T(null);try{let i=t.tView,a=e[y]&4096?4096:16,c=Eo(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[yt]=u;let l=e[je];return l!==null&&(c[je]=l.createEmbeddedView(i)),oa(i,c,n),c}finally{T(o)}}function iu(e,t){return!t||t.firstChild===null||Nl(e)}function Nm(e,t,n,r=!0){let o=t[w];if(Hg(o,t,e,n),r){let s=os(n,e),a=t[Q],c=Ul(a,e[vt]);c!==null&&$g(o,e[_e],a,t,c,s)}let i=t[Hr];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function to(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(Re(i)),Ge(i)&&Am(i,r);let s=n.type;if(s&8)to(e,t,n.child,r);else if(s&32){let a=Js(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=Hl(t,n);if(Array.isArray(a))r.push(...a);else{let c=Dt(t[Ae]);to(c[w],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function Am(e,t){for(let n=he;n<e.length;n++){let r=e[n],o=r[w].firstChild;o!==null&&to(r[w],r,o,t)}e[vt]!==e[He]&&t.push(e[vt])}var ld=[];function Om(e){return e[me]??Rm(e)}function Rm(e){let t=ld.pop()??Object.create(Pm);return t.lView=e,t}function Fm(e){e.lView[me]!==e&&(e.lView=null,ld.push(e))}var Pm=U(k({},Dn),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{yo(e.lView)},consumerOnSignalRead(){this.lView[me]=this}});function km(e){let t=e[me]??Object.create(Lm);return t.lView=e,t}var Lm=U(k({},Dn),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Dt(e.lView);for(;t&&!dd(t[w]);)t=Dt(t);t&&Xu(t)},consumerOnSignalRead(){this.lView[me]=this}});function dd(e){return e.type!==2}var Vm=100;function fd(e,t=!0,n=0){let r=e[Ve],o=r.rendererFactory,i=!1;i||o.begin?.();try{jm(e,n)}catch(s){throw t&&cd(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function jm(e,t){let n=il();try{Wc(!0),as(e,t);let r=0;for(;mo(e);){if(r===Vm)throw new E(103,!1);r++,as(e,1)}}finally{Wc(n)}}function Bm(e,t,n,r){let o=t[y];if((o&256)===256)return;let i=!1,s=!1;!i&&t[Ve].inlineEffectRunner?.flush(),js(t);let a=!0,c=null,u=null;i||(dd(e)?(u=Om(t),c=rr(u)):Ga()===null?(a=!1,u=km(t),c=rr(u)):t[me]&&(ii(t[me]),t[me]=null));try{Ju(t),qp(e.bindingStartIndex),n!==null&&Yl(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Rr(t,f,null)}else{let f=e.preOrderHooks;f!==null&&Fr(t,f,0,null),_i(t,0)}if(s||$m(t),hd(t,0),e.contentQueries!==null&&id(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&Rr(t,f)}else{let f=e.contentHooks;f!==null&&Fr(t,f,1),_i(t,1)}rm(e,t);let d=e.components;d!==null&&gd(t,d,0);let h=e.viewQuery;if(h!==null&&ss(2,h,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Rr(t,f)}else{let f=e.viewHooks;f!==null&&Fr(t,f,2),_i(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ci]){for(let f of t[Ci])f();t[Ci]=null}i||(t[y]&=-73)}catch(l){throw i||yo(t),l}finally{u!==null&&(ri(u,c),a&&Fm(u)),Bs()}}function hd(e,t){for(let n=Ol(e);n!==null;n=Rl(n))for(let r=he;r<n.length;r++){let o=n[r];pd(o,t)}}function $m(e){for(let t=Ol(e);t!==null;t=Rl(t)){if(!(t[y]&Wr.HasTransplantedViews))continue;let n=t[Yt];for(let r=0;r<n.length;r++){let o=n[r];Xu(o)}}}function Um(e,t,n){let r=tt(t,e);pd(r,n)}function pd(e,t){ks(e)&&as(e,t)}function as(e,t){let r=e[w],o=e[y],i=e[me],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&oi(i)),s||=!1,i&&(i.dirty=!1),e[y]&=-9217,s)Bm(r,e,r.template,e[Ce]);else if(o&8192){hd(e,1);let a=r.components;a!==null&&gd(e,a,1)}}function gd(e,t,n){for(let r=0;r<t.length;r++)Um(e,t[r],n)}function ia(e,t){let n=il()?64:1088;for(e[Ve].changeDetectionScheduler?.notify(t);e;){e[y]|=n;let r=Dt(e);if($i(e)&&!r)return e;e=r}return null}var It=class{get rootNodes(){let t=this._lView,n=t[w];return to(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Ce]}set context(t){this._lView[Ce]=t}get destroyed(){return(this._lView[y]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[re];if(Ge(t)){let n=t[zr],r=n?n.indexOf(this):-1;r>-1&&(rs(t,r),$r(n,r))}this._attachedToViewContainer=!1}Bl(this._lView[w],this._lView)}onDestroy(t){el(this._lView,t)}markForCheck(){ia(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[y]&=-129}reattach(){Hi(this._lView),this._lView[y]|=128}detectChanges(){this._lView[y]|=1024,fd(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new E(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=$i(this._lView),n=this._lView[yt];n!==null&&!t&&Xs(n,this._lView),Vl(this._lView[w],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new E(902,!1);this._appRef=t;let n=$i(this._lView),r=this._lView[yt];r!==null&&!n&&jl(r,this._lView),Hi(this._lView)}},bt=(()=>{class e{static{this.__NG_ELEMENT_ID__=zm}}return e})(),Hm=bt,Gm=class extends Hm{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=Sm(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new It(o)}};function zm(){return sa(de(),O())}function sa(e,t){return e.type&4?new Gm(t,e,on(e,t)):null}var ZI=new RegExp(`^(\\d+)*(${Fg}|${Rg})*(.*)`);var Wm=()=>null;function su(e,t){return Wm(e,t)}var Kt=class{},aa=new D("",{providedIn:"root",factory:()=>!1});var md=new D(""),yd=new D(""),cs=class{},no=class{};function qm(e){let t=Error(`No component factory found for ${fe(e)}.`);return t[Zm]=e,t}var Zm="ngComponent";var us=class{resolveComponentFactory(t){throw qm(t)}},An=class{static{this.NULL=new us}},Jt=class{},Ln=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>Ym()}}return e})();function Ym(){let e=O(),t=de(),n=tt(t.index,e);return(Je(n)?n:e)[Q]}var Qm=(()=>{class e{static{this.\u0275prov=x({token:e,providedIn:"root",factory:()=>null})}}return e})();function ls(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=Fc(o,a);else if(i==2){let c=a,u=t[++s];r=Fc(r,c+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}var ds=class extends An{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=Wt(t);return new ro(n,this.ngModule)}};function au(e,t){let n=[];for(let r in e){if(!e.hasOwnProperty(r))continue;let o=e[r];if(o===void 0)continue;let i=Array.isArray(o),s=i?o[0]:o,a=i?o[1]:Xe.None;t?n.push({propName:s,templateName:r,isSignal:(a&Xe.SignalBased)!==0}):n.push({propName:s,templateName:r})}return n}function Km(e){let t=e.toLowerCase();return t==="svg"?Np:t==="math"?Ap:null}var ro=class extends no{get inputs(){let t=this.componentDef,n=t.inputTransforms,r=au(t.inputs,!0);if(n!==null)for(let o of r)n.hasOwnProperty(o.propName)&&(o.transform=n[o.propName]);return r}get outputs(){return au(this.componentDef.outputs,!1)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=cp(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=T(null);try{o=o||this.ngModule;let s=o instanceof Ne?o:o?.injector;s&&this.componentDef.getStandaloneInjector!==null&&(s=this.componentDef.getStandaloneInjector(s)||s);let a=s?new zi(t,s):t,c=a.get(Jt,null);if(c===null)throw new E(407,!1);let u=a.get(Qm,null),l=a.get(Kt,null),d={rendererFactory:c,sanitizer:u,inlineEffectRunner:null,changeDetectionScheduler:l},h=c.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",p=r?sm(h,r,this.componentDef.encapsulation,a):Ll(h,f,Km(f)),g=512;this.componentDef.signals?g|=4096:this.componentDef.onPush||(g|=16);let m=null;p!==null&&(m=Qs(p,a,!0));let M=na(0,null,null,1,0,null,null,null,null,null,null),q=Eo(null,M,null,g,null,null,d,h,a,null,m);js(q);let F,K,ae=null;try{let Z=this.componentDef,ke,Xo=null;Z.findHostDirectiveDefs?(ke=[],Xo=new Map,Z.findHostDirectiveDefs(Z,ke,Xo),ke.push(Z)):ke=[Z];let zf=Jm(q,p);ae=Xm(zf,p,Z,ke,q,d,h),K=Ku(M,Oe),p&&ny(h,Z,p,r),n!==void 0&&ry(K,this.ngContentSelectors,n),F=ty(ae,Z,ke,Xo,q,[oy]),oa(M,q,null)}catch(Z){throw ae!==null&&es(ae),es(q),Z}finally{Bs()}return new fs(this.componentType,F,on(K,q),q,K)}finally{T(i)}}},fs=class extends cs{constructor(t,n,r,o,i){super(),this.location=r,this._rootLView=o,this._tNode=i,this.previousInputValues=null,this.instance=n,this.hostView=this.changeDetectorRef=new It(o,void 0,!1),this.componentType=t}setInput(t,n){let r=this._tNode.inputs,o;if(r!==null&&(o=r[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let i=this._rootLView;ra(i[w],i,o,t,n),this.previousInputValues.set(t,n);let s=tt(this._tNode.index,i);ia(s,1)}}get injector(){return new gt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function Jm(e,t){let n=e[w],r=Oe;return e[r]=t,Co(n,r,2,"#host",null)}function Xm(e,t,n,r,o,i,s){let a=o[w];ey(r,e,t,s);let c=null;t!==null&&(c=Qs(t,o[Zt]));let u=i.rendererFactory.createRenderer(t,n),l=16;n.signals?l=4096:n.onPush&&(l=64);let d=Eo(o,Xl(n),null,l,o[e.index],e,i,u,null,null,c);return a.firstCreatePass&&is(a,e,r.length-1),_o(o,d),o[e.index]=d}function ey(e,t,n,r){for(let o of e)t.mergedAttrs=xn(t.mergedAttrs,o.hostAttrs);t.mergedAttrs!==null&&(ls(t,t.mergedAttrs,!0),n!==null&&zl(r,n,t))}function ty(e,t,n,r,o,i){let s=de(),a=o[w],c=Ie(s,o);nd(a,o,s,n,null,r);for(let l=0;l<n.length;l++){let d=s.directiveStart+l,h=Ct(o,a,d,s);_t(h,o)}rd(a,o,s),c&&_t(c,o);let u=Ct(o,a,s.directiveStart+s.componentOffset,s);if(e[Ce]=o[Ce]=u,i!==null)for(let l of i)l(u,t);return Ql(a,s,o),u}function ny(e,t,n,r){if(r)Li(e,n,["ng-version","18.2.14"]);else{let{attrs:o,classes:i}=up(t.selectors[0]);o&&Li(e,n,o),i&&i.length>0&&Gl(e,n,i.join(" "))}}function ry(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null?Array.from(i):null)}}function oy(){let e=de();Hs(O()[w],e)}var sn=(()=>{class e{static{this.__NG_ELEMENT_ID__=iy}}return e})();function iy(){let e=de();return Dd(e,O())}var sy=sn,vd=class extends sy{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return on(this._hostTNode,this._hostLView)}get injector(){return new gt(this._hostTNode,this._hostLView)}get parentInjector(){let t=Gs(this._hostTNode,this._hostLView);if(ml(t)){let n=Yr(t,this._hostLView),r=Zr(t),o=n[w].data[r+8];return new gt(o,n)}else return new gt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=cu(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-he}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=su(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,iu(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!Mp(t),a;if(s)a=n;else{let p=n||{};a=p.index,r=p.injector,o=p.projectableNodes,i=p.environmentInjector||p.ngModuleRef}let c=s?t:new ro(Wt(t)),u=r||this.parentInjector;if(!i&&c.ngModule==null){let g=(s?u:this.parentInjector).get(Ne,null);g&&(i=g)}let l=Wt(c.componentType??{}),d=su(this._lContainer,l?.id??null),h=d?.firstChild??null,f=c.create(u,o,h,i);return this.insertImpl(f.hostView,a,iu(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Fp(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[re],u=new vd(c,c[_e],c[re]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Nm(s,o,i,r),t.attachToViewContainerRef(),xu(xi(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=cu(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=rs(this._lContainer,n);r&&($r(xi(this._lContainer),n),Bl(r[w],r))}detach(t){let n=this._adjustIndex(t,-1),r=rs(this._lContainer,n);return r&&$r(xi(this._lContainer),n)!=null?new It(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function cu(e){return e[zr]}function xi(e){return e[zr]||(e[zr]=[])}function Dd(e,t){let n,r=t[e.index];return Ge(r)?n=r:(n=od(r,t,null,e),t[e.index]=n,_o(t,n)),cy(n,t,e,r),new vd(n,e,t)}function ay(e,t){let n=e[Q],r=n.createComment(""),o=Ie(t,e),i=Ul(n,o);return eo(n,i,r,Zg(n,o),!1),r}var cy=dy,uy=()=>!1;function ly(e,t,n){return uy(e,t,n)}function dy(e,t,n,r){if(e[vt])return;let o;n.type&8?o=Re(r):o=ay(t,n),e[vt]=o}var hs=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},ps=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)ca(t,n).matches!==null&&this.queries[n].setDirty()}},gs=class{constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=Dy(t):this.predicate=t}},ms=class e{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i])}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},ys=class e{constructor(t,n=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,fy(n,i)),this.matchTNodeWithReadOption(t,n,Pr(n,t,i,!1,!1))}else r===bt?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Pr(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===ze||o===sn||o===bt&&n.type&4)this.addMatch(n.index,-2);else{let i=Pr(n,t,o,!1,!1);i!==null&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function fy(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function hy(e,t){return e.type&11?on(e,t):e.type&4?sa(e,t):null}function py(e,t,n,r){return n===-1?hy(t,e):n===-2?gy(e,t,r):Ct(e,e[w],n,t)}function gy(e,t,n){if(n===ze)return on(t,e);if(n===bt)return sa(t,e);if(n===sn)return Dd(t,e)}function wd(e,t,n,r){let o=t[je].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let u=s[c];if(u<0)a.push(null);else{let l=i[u];a.push(py(t,l,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function vs(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=wd(e,t,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else{let u=i[a+1],l=t[-c];for(let d=he;d<l.length;d++){let h=l[d];h[yt]===h[re]&&vs(h[w],h,u,r)}if(l[Yt]!==null){let d=l[Yt];for(let h=0;h<d.length;h++){let f=d[h];vs(f[w],f,u,r)}}}}}return r}function my(e,t){return e[je].queries[t].queryList}function yy(e,t,n){let r=new Xi((n&4)===4);return um(e,t,r,r.destroy),(t[je]??=new ps).queries.push(new hs(r))-1}function vy(e,t,n){let r=ie();return r.firstCreatePass&&(wy(r,new gs(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),yy(r,O(),t)}function Dy(e){return e.split(",").map(t=>t.trim())}function wy(e,t,n){e.queries===null&&(e.queries=new ms),e.queries.track(new ys(t,n))}function ca(e,t){return e.queries.getByIndex(t)}function Ey(e,t){let n=e[w],r=ca(n,t);return r.crossesNgTemplate?vs(n,e,t,[]):wd(n,e,r,t)}var uu=new Set;function Vn(e){uu.has(e)||(uu.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function Cy(e){return typeof e=="function"&&e[Le]!==void 0}function Io(e,t){Vn("NgSignals");let n=tc(e),r=n[Le];return t?.equal&&(r.equal=t.equal),n.set=o=>si(r,o),n.update=o=>nc(r,o),n.asReadonly=_y.bind(n),n}function _y(){let e=this[Le];if(e.readonlyFn===void 0){let t=()=>this();t[Le]=e,e.readonlyFn=t}return e.readonlyFn}function Ed(e){return Cy(e)&&typeof e.set=="function"}function Iy(e){return Object.getPrototypeOf(e.prototype).constructor}function an(e){let t=Iy(e.type),n=!0,r=[e];for(;t;){let o;if(et(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new E(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=Sr(e.inputs),s.inputTransforms=Sr(e.inputTransforms),s.declaredInputs=Sr(e.declaredInputs),s.outputs=Sr(e.outputs);let a=o.hostBindings;a&&Sy(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&Ty(e,c),u&&xy(e,u),by(e,o),Th(e.outputs,o.outputs),et(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(e),a===an&&(n=!1)}}t=Object.getPrototypeOf(t)}My(r)}function by(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];if(r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n],t.inputTransforms!==null)){let o=Array.isArray(r)?r[0]:r;if(!t.inputTransforms.hasOwnProperty(o))continue;e.inputTransforms??={},e.inputTransforms[o]=t.inputTransforms[o]}}}function My(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=xn(o.hostAttrs,n=xn(n,o.hostAttrs))}}function Sr(e){return e===zt?{}:e===ge?[]:e}function Ty(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function xy(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function Sy(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}var Xt=class{};var oo=class extends Xt{constructor(t){super(),this.componentFactoryResolver=new ds(this),this.instance=null;let n=new Sn([...t.providers,{provide:Xt,useValue:this},{provide:An,useValue:this.componentFactoryResolver}],t.parent||Fs(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Ny(e,t,n=null){return new oo({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function Cd(e){return Oy(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function Ay(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value)}}function Oy(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function Ry(e,t,n){return e[t]=n}function en(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function _d(e,t,n,r){let o=en(e,t,n);return en(e,t+1,r)||o}function Fy(e){return(e.flags&32)===32}function Py(e,t,n,r,o,i,s,a,c){let u=t.consts,l=Co(t,e,4,s||null,a||null);td(t,n,l,qr(u,c)),Hs(t,l);let d=l.tView=na(2,l,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return t.queries!==null&&(t.queries.template(t,l),d.queries=t.queries.embeddedTView(l)),l}function ky(e,t,n,r,o,i,s,a,c,u){let l=n+Oe,d=t.firstCreatePass?Py(l,t,e,r,o,i,s,a,c):t.data[l];kn(d,!1);let h=Ly(t,e,d,n);$s()&&ea(t,e,h,d),_t(h,e);let f=od(h,e,h,d);return e[l]=f,_o(e,f),ly(f,d,e),Ps(d)&&Kl(t,e,d),c!=null&&Jl(e,d,u),d}function cn(e,t,n,r,o,i,s,a){let c=O(),u=ie(),l=qr(u.consts,i);return ky(c,u,e,t,n,r,o,l,s,a),cn}var Ly=Vy;function Vy(e,t,n,r){return Us(!0),t[Q].createComment("")}var In=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(In||{}),jy=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=x({token:e,providedIn:"root",factory:()=>new e})}}return e})(),lu=class e{constructor(){this.ngZone=v(G),this.scheduler=v(Kt),this.errorHandler=v(Be,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[In.EarlyRead,In.Write,In.MixedReadWrite,In.Read]}execute(){this.executing=!0;for(let t of e.PHASES)for(let n of this.sequences)if(!(n.erroredOrDestroyed||!n.hooks[t]))try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let t of this.sequences)t.afterRun(),t.once&&(this.sequences.delete(t),t.destroy());for(let t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static{this.\u0275prov=x({token:e,providedIn:"root",factory:()=>new e})}};function By(e,t,n,r){return en(e,Ls(),n)?t+jr(n)+r:We}function $y(e,t,n,r,o,i){let s=Wp(),a=_d(e,s,n,o);return sl(2),a?t+jr(n)+r+jr(o)+i:We}function Nr(e,t){return e<<17|t<<2}function Mt(e){return e>>17&32767}function Uy(e){return(e&2)==2}function Hy(e,t){return e&131071|t<<17}function Ds(e){return e|2}function tn(e){return(e&131068)>>2}function Si(e,t){return e&-131069|t<<2}function Gy(e){return(e&1)===1}function ws(e){return e|1}function zy(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Mt(s),c=tn(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Pn(d,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let h=Mt(e[a+1]);e[r+1]=Nr(h,a),h!==0&&(e[h+1]=Si(e[h+1],r)),e[a+1]=Hy(e[a+1],r)}else e[r+1]=Nr(a,0),a!==0&&(e[a+1]=Si(e[a+1],r)),a=r;else e[r+1]=Nr(c,0),a===0?a=r:e[c+1]=Si(e[c+1],r),c=r;u&&(e[r+1]=Ds(e[r+1])),du(e,l,r,!0),du(e,l,r,!1),Wy(t,l,e,r,i),s=Nr(a,c),i?t.classBindings=s:t.styleBindings=s}function Wy(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Pn(i,t)>=0&&(n[r+1]=ws(n[r+1]))}function du(e,t,n,r){let o=e[n+1],i=t===null,s=r?Mt(o):tn(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];qy(c,t)&&(a=!0,e[s+1]=r?ws(u):Ds(u)),s=r?Mt(u):tn(u)}a&&(e[n+1]=r?Ds(o):ws(o))}function qy(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Pn(e,t)>=0:!1}function rt(e,t,n){let r=O(),o=Ls();if(en(r,o,t)){let i=ie(),s=hl();ed(i,s,r,e,t,r[Q],n,!1)}return rt}function fu(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";ra(e,n,i[s],s,r)}function Nt(e,t){return Zy(e,t,null,!0),Nt}function Zy(e,t,n,r){let o=O(),i=ie(),s=sl(2);if(i.firstUpdatePass&&Qy(i,e,s,r),t!==We&&en(o,s,t)){let a=i.data[St()];tv(i,a,o,o[Q],e,o[s+1]=nv(t,n),r,s)}}function Yy(e,t){return t>=e.expandoStartIndex}function Qy(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[St()],s=Yy(e,n);rv(i,r)&&t===null&&!s&&(t=!1),t=Ky(o,i,t,r),zy(o,i,t,n,s,r)}}function Ky(e,t,n,r){let o=Kp(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Ni(null,e,t,n,r),n=On(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Ni(o,e,t,n,r),i===null){let c=Jy(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Ni(null,e,t,c[1],r),c=On(c,t.attrs,r),Xy(e,t,r,c))}else i=ev(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function Jy(e,t,n){let r=n?t.classBindings:t.styleBindings;if(tn(r)!==0)return e[Mt(r)]}function Xy(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Mt(o)]=r}function ev(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=On(r,s,n)}return On(r,t.attrs,n)}function Ni(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=On(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function On(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),Yh(e,s,n?!0:t[++i]))}return e===void 0?null:e}function tv(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=Gy(u)?hu(c,t,n,o,tn(u),s):void 0;if(!io(l)){io(i)||Uy(u)&&(i=hu(c,null,n,o,a,s));let d=Qu(St(),n);tm(r,s,d,o,i)}}function hu(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,h=n[o+1];h===We&&(h=d?ge:void 0);let f=d?wi(h,r):l===r?h:void 0;if(u&&!io(f)&&(f=wi(c,r)),io(f)&&(a=f,s))return a;let p=e[o+1];o=s?Mt(p):tn(p)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=wi(c,r))}return a}function io(e){return e!==void 0}function nv(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=fe(Ks(e)))),e}function rv(e,t){return(e.flags&(t?8:16))!==0}function ov(e,t,n,r,o,i){let s=t.consts,a=qr(s,o),c=Co(t,e,2,r,a);return td(t,n,c,qr(s,i)),c.attrs!==null&&ls(c,c.attrs,!1),c.mergedAttrs!==null&&ls(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function R(e,t,n,r){let o=O(),i=ie(),s=Oe+e,a=o[Q],c=i.firstCreatePass?ov(s,i,o,t,n,r):i.data[s],u=iv(i,o,c,a,t,e);o[s]=u;let l=Ps(c);return kn(c,!0),zl(a,u,c),!Fy(c)&&$s()&&ea(i,o,u,c),Lp()===0&&_t(u,o),Vp(),l&&(Kl(i,o,c),Ql(i,c,o)),r!==null&&Jl(o,c),R}function A(){let e=de();ol()?Gp():(e=e.parent,kn(e,!1));let t=e;$p(t)&&Up(),jp();let n=ie();return n.firstCreatePass&&(Hs(n,e),zu(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&og(t)&&fu(n,t,O(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&ig(t)&&fu(n,t,O(),t.stylesWithoutHost,!1),A}function un(e,t,n,r){return R(e,t,n,r),A(),un}var iv=(e,t,n,r,o,i)=>(Us(!0),Ll(r,o,eg()));function Id(){return O()}var pt=void 0;function sv(e){let t=e,n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return n===1&&r===0?1:5}var av=["en",[["a","p"],["AM","PM"],pt],[["AM","PM"],pt,pt],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],pt,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],pt,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",pt,"{1} 'at' {0}",pt],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",sv],Ai={};function ye(e){let t=cv(e),n=pu(t);if(n)return n;let r=t.split("-")[0];if(n=pu(r),n)return n;if(r==="en")return av;throw new E(701,!1)}function pu(e){return e in Ai||(Ai[e]=Cn.ng&&Cn.ng.common&&Cn.ng.common.locales&&Cn.ng.common.locales[e]),Ai[e]}var H=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(H||{});function cv(e){return e.toLowerCase().replace(/_/g,"-")}var so="en-US";var uv=so;function lv(e){typeof e=="string"&&(uv=e.toLowerCase().replace(/_/g,"-"))}var dv=(e,t,n)=>{};function ln(e,t,n,r){let o=O(),i=ie(),s=de();return bd(i,o,o[Q],s,e,t,r),ln}function fv(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[Gr],c=o[i+2];return a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function bd(e,t,n,r,o,i,s){let a=Ps(r),u=e.firstCreatePass&&ad(e),l=t[Ce],d=sd(t),h=!0;if(r.type&3||s){let g=Ie(r,t),m=s?s(g):g,M=d.length,q=s?K=>s(Re(K[r.index])):r.index,F=null;if(!s&&a&&(F=fv(e,t,o,r.index)),F!==null){let K=F.__ngLastListenerFn__||F;K.__ngNextListenerFn__=i,F.__ngLastListenerFn__=i,h=!1}else{i=mu(r,t,l,i),dv(g,o,i);let K=n.listen(m,o,i);d.push(i,K),u&&u.push(o,q,M,M+1)}}else i=mu(r,t,l,i);let f=r.outputs,p;if(h&&f!==null&&(p=f[o])){let g=p.length;if(g)for(let m=0;m<g;m+=2){let M=p[m],q=p[m+1],ae=t[M][q].subscribe(i),Z=d.length;d.push(i,ae),u&&u.push(o,r.index,Z,-(Z+1))}}}function gu(e,t,n,r){let o=T(null);try{return Te(6,t,n),n(r)!==!1}catch(i){return cd(e,i),!1}finally{Te(7,t,n),T(o)}}function mu(e,t,n,r){return function o(i){if(i===Function)return r;let s=e.componentOffset>-1?tt(e.index,t):t;ia(s,5);let a=gu(t,n,r,i),c=o.__ngNextListenerFn__;for(;c;)a=gu(t,n,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function Md(e=1){return Xp(e)}function Td(e,t,n){vy(e,t,n)}function xd(e){let t=O(),n=ie(),r=al();Vs(r+1);let o=ca(n,r);if(e.dirty&&Rp(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=Ey(t,r);e.reset(i,Mg),e.notifyOnChanges()}return!0}return!1}function Sd(){return my(O(),al())}function hv(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function $(e,t=""){let n=O(),r=ie(),o=e+Oe,i=r.firstCreatePass?Co(r,o,1,t,null):r.data[o],s=pv(r,n,i,t,e);n[o]=s,$s()&&ea(r,n,s,i),kn(i,!1)}var pv=(e,t,n,r,o)=>(Us(!0),Vg(t[Q],r));function ot(e){return dn("",e,""),ot}function dn(e,t,n){let r=O(),o=By(r,e,t,n);return o!==We&&ud(r,St(),o),dn}function ua(e,t,n,r,o){let i=O(),s=$y(i,e,t,n,r,o);return s!==We&&ud(i,St(),s),ua}function la(e,t,n){Ed(t)&&(t=t());let r=O(),o=Ls();if(en(r,o,t)){let i=ie(),s=hl();ed(i,s,r,e,t,r[Q],n,!1)}return la}function Nd(e,t){let n=Ed(e);return n&&e.set(t),n}function da(e,t){let n=O(),r=ie(),o=de();return bd(r,n,n[Q],o,e,t),da}function gv(e,t,n){let r=ie();if(r.firstCreatePass){let o=et(e);Es(n,r.data,r.blueprint,o,!0),Es(t,r.data,r.blueprint,o,!1)}}function Es(e,t,n,r,o){if(e=oe(e),Array.isArray(e))for(let i=0;i<e.length;i++)Es(e[i],t,n,r,o);else{let i=ie(),s=O(),a=de(),c=qt(e)?e:oe(e.provide),u=$u(e),l=a.providerIndexes&1048575,d=a.directiveStart,h=a.providerIndexes>>20;if(qt(e)||!e.multi){let f=new Et(u,o,L),p=Ri(c,t,o?l:l+h,d);p===-1?(qi(Kr(a,s),i,c),Oi(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[p]=f,s[p]=f)}else{let f=Ri(c,t,l+h,d),p=Ri(c,t,l,l+h),g=f>=0&&n[f],m=p>=0&&n[p];if(o&&!m||!o&&!g){qi(Kr(a,s),i,c);let M=vv(o?yv:mv,n.length,o,r,u);!o&&m&&(n[p].providerFactory=M),Oi(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(M),s.push(M)}else{let M=Ad(n[o?p:f],u,!o&&r);Oi(i,e,f>-1?f:p,M)}!o&&r&&m&&n[p].componentProviders++}}}function Oi(e,t,n,r){let o=qt(t),i=vp(t);if(o||i){let c=(i?oe(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c)}else u.push(n,c)}}}function Ad(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ri(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function mv(e,t,n,r){return Cs(this.multi,[])}function yv(e,t,n,r){let o=this.multi,i;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=Ct(n,n[w],this.providerFactory.index,r);i=a.slice(0,s),Cs(o,i);for(let c=s;c<a.length;c++)i.push(a[c])}else i=[],Cs(o,i);return i}function Cs(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function vv(e,t,n,r,o){let i=new Et(e,n,L);return i.multi=[],i.index=t,i.componentProviders=0,Ad(i,o,r&&!n),i}function fa(e,t=[]){return n=>{n.providersResolver=(r,o)=>gv(r,o?o(e):e,t)}}var Dv=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Vu(!1,n.type),o=r.length>0?Ny([r],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()}}static{this.\u0275prov=x({token:e,providedIn:"environment",factory:()=>new e(b(Ne))})}}return e})();function bo(e){Vn("NgStandalone"),e.getStandaloneInjector=t=>t.get(Dv).getOrCreateStandaloneInjector(e)}function wv(e,t){let n=e[t];return n===We?void 0:n}function Ev(e,t,n,r,o,i,s){let a=t+n;return _d(e,a,o,i)?Ry(e,a+2,s?r.call(s,o,i):r(o,i)):wv(e,a+2)}function Od(e,t){let n=ie(),r,o=e+Oe;n.firstCreatePass?(r=Cv(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=mt(r.type,!0)),s,a=ue(L);try{let c=Qr(!1),u=i();return Qr(c),hv(n,O(),o,u),u}finally{ue(a)}}function Cv(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function Rd(e,t,n,r){let o=e+Oe,i=O(),s=Op(i,o);return _v(i,o)?Ev(i,zp(),t,s.transform,n,r,s):s.transform(n,r)}function _v(e,t){return e[w].data[t].pure}var Fd=new D("");function jn(e){return!!e&&typeof e.then=="function"}function Pd(e){return!!e&&typeof e.subscribe=="function"}var Iv=new D(""),kd=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=v(Iv,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=o();if(jn(i))n.push(i);else if(Pd(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Ld=new D("");function bv(){ec(()=>{throw new E(600,!1)})}function Mv(e){return e.isBoundToModule}var Tv=10;function xv(e,t,n){try{let r=n();return jn(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var fn=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=v(Ig),this.afterRenderManager=v(jy),this.zonelessEnabled=v(aa),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new Me,this.afterTick=new Me,this.componentTypes=[],this.components=[],this.isStable=v(rn).hasPendingTasks.pipe(X(n=>!n)),this._injector=v(Ne)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){let o=n instanceof no;if(!this._injector.get(kd).done){let h=!o&&fp(n),f=!1;throw new E(405,f)}let s;o?s=n:s=this._injector.get(An).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=Mv(s)?void 0:this._injector.get(Xt),c=r||s.selector,u=s.create(Qt.NULL,[],c,a),l=u.location.nativeElement,d=u.injector.get(Fd,null);return d?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),kr(this.components,u),d?.unregisterApplication(l)}),this._loadComponent(u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new E(101,!1);let n=T(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,T(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(Jt,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++<Tv;)this.synchronizeOnce(n)}synchronizeOnce(n){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8,this.beforeRender.next(r);for(let{_lView:o,notifyErrorHandler:i}of this._views)Sv(o,i,r,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&7)return}else n?.begin?.(),n?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>mo(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;kr(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(Ld,[]);[...this._bootstrapListeners,...r].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),()=>kr(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new E(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function kr(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Sv(e,t,n,r){if(!n&&!mo(e))return;fd(e,t,n&&!r?0:1)}var Nv=(()=>{class e{constructor(){this.zone=v(G),this.changeDetectionScheduler=v(Kt),this.applicationRef=v(fn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Av({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new G(U(k({},Ov()),{scheduleInRootZone:n})),[{provide:G,useFactory:e},{provide:Tn,multi:!0,useFactory:()=>{let r=v(Nv,{optional:!0});return()=>r.initialize()}},{provide:Tn,multi:!0,useFactory:()=>{let r=v(Rv);return()=>{r.initialize()}}},t===!0?{provide:md,useValue:!0}:[],{provide:yd,useValue:n??Ml}]}function Ov(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Rv=(()=>{class e{constructor(){this.subscription=new J,this.initialized=!1,this.zone=v(G),this.pendingTasks=v(rn)}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(()=>{G.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{G.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Fv=(()=>{class e{constructor(){this.appRef=v(fn),this.taskService=v(rn),this.ngZone=v(G),this.zonelessEnabled=v(aa),this.disableScheduling=v(md,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new J,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Xr):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(v(yd,{optional:!0})??!1),this.cancelScheduledCallback=null,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 Ji||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?Kc:xl;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Xr+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Kc(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Pv(){return typeof $localize<"u"&&$localize.locale||so}var Mo=new D("",{providedIn:"root",factory:()=>v(Mo,I.Optional|I.SkipSelf)||Pv()});var _s=new D("");function Ar(e){return!e.moduleRef}function kv(e){let t=Ar(e)?e.r3Injector:e.moduleRef.injector,n=t.get(G);return n.run(()=>{Ar(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Be,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Ar(e)){let i=()=>t.destroy(),s=e.platformInjector.get(_s);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(_s);s.add(i),e.moduleRef.onDestroy(()=>{kr(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return xv(r,n,()=>{let i=t.get(kd);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(Mo,so);if(lv(s||so),Ar(e)){let a=t.get(fn);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return Lv(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function Lv(e,t){let n=e.injector.get(fn);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new E(-403,!1);t.push(e)}var Lr=null,Vd=new D("");function Vv(e=[],t){return Qt.create({name:t,providers:[{provide:fo,useValue:"platform"},{provide:_s,useValue:new Set([()=>Lr=null])},...e]})}function jv(e=[]){if(Lr)return Lr;let t=Vv(e);return t.get(Vd,!1)||(Lr=t),bv(),Bv(t),t}function Bv(e){e.get(Zs,null)?.forEach(n=>n())}var To=(()=>{class e{static{this.__NG_ELEMENT_ID__=$v}}return e})();function $v(e){return Uv(de(),O(),(e&16)===16)}function Uv(e,t,n){if(po(e)&&!n){let r=tt(e.index,t);return new It(r,r)}else if(e.type&175){let r=t[Ae];return new It(r,t)}return null}var Is=class{constructor(){}supports(t){return Cd(t)}create(t){return new bs(t)}},Hv=(e,t)=>t,bs=class{constructor(t){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=t||Hv}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<yu(r,o,i)?n:r,a=yu(s,o,i),c=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else{i||(i=[]);let u=a-o,l=c-o;if(u!=l){for(let h=0;h<u;h++){let f=h<i.length?i[h]:i[h]=0,p=f+h;l<=p&&p<u&&(i[h]=f+1)}let d=s.previousIndex;i[d]=l-u}}a!==c&&t(s,a,c)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)t(n)}diff(t){if(t==null&&(t=[]),!Cd(t))throw new E(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._itHead,r=!1,o,i,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next}else o=0,Ay(t,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new Ms(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new ao),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new ao),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},Ms=class{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},Ts=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},ao=class{constructor(){this.map=new Map}put(t){let n=t.trackById,r=this.map.get(n);r||(r=new Ts,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function yu(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}function vu(){return new ha([new Is])}var ha=(()=>{class e{static{this.\u0275prov=x({token:e,providedIn:"root",factory:vu})}constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||vu()),deps:[[e,new zh,new Tu]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new E(901,!1)}}return e})();function jd(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;try{let i=o?.injector??jv(r);if(i.get(Vd,!1)===!0&&!e.platformRef)throw new E(401,!1);let s=[Av({}),{provide:Kt,useExisting:Fv},...n||[]],a=new oo({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return kv({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}}function pa(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function xo(e,t){Vn("NgSignals");let n=Ka(e);return t?.equal&&(n[Le].equal=t.equal),n}function it(e){let t=T(null);try{return e()}finally{T(t)}}var Gd=null;function pn(){return Gd}function zd(e){Gd??=e}var Lo=class{};var Fe=new D("");var se=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(se||{}),P=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(P||{}),pe=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(pe||{}),st={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function zv(e){return ye(e)[H.LocaleId]}function Wv(e,t,n){let r=ye(e),o=[r[H.DayPeriodsFormat],r[H.DayPeriodsStandalone]],i=ve(o,t);return ve(i,n)}function qv(e,t,n){let r=ye(e),o=[r[H.DaysFormat],r[H.DaysStandalone]],i=ve(o,t);return ve(i,n)}function Zv(e,t,n){let r=ye(e),o=[r[H.MonthsFormat],r[H.MonthsStandalone]],i=ve(o,t);return ve(i,n)}function Yv(e,t){let r=ye(e)[H.Eras];return ve(r,t)}function So(e,t){let n=ye(e);return ve(n[H.DateFormat],t)}function No(e,t){let n=ye(e);return ve(n[H.TimeFormat],t)}function Ao(e,t){let r=ye(e)[H.DateTimeFormat];return ve(r,t)}function jo(e,t){let n=ye(e),r=n[H.NumberSymbols][t];if(typeof r>"u"){if(t===st.CurrencyDecimal)return n[H.NumberSymbols][st.Decimal];if(t===st.CurrencyGroup)return n[H.NumberSymbols][st.Group]}return r}function Wd(e){if(!e[H.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[H.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Qv(e){let t=ye(e);return Wd(t),(t[H.ExtraData][2]||[]).map(r=>typeof r=="string"?ga(r):[ga(r[0]),ga(r[1])])}function Kv(e,t,n){let r=ye(e);Wd(r);let o=[r[H.ExtraData][0],r[H.ExtraData][1]],i=ve(o,t)||[];return ve(i,n)||[]}function ve(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function ga(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var Jv=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Oo={},Xv=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Ze=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}(Ze||{}),N=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}(N||{}),S=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}(S||{});function eD(e,t,n,r){let o=uD(e);t=qe(n,t)||t;let s=[],a;for(;t;)if(a=Xv.exec(t),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;t=l}else{s.push(t);break}let c=o.getTimezoneOffset();r&&(c=Zd(r,c),o=cD(o,r,!0));let u="";return s.forEach(l=>{let d=sD(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function Vo(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function qe(e,t){let n=zv(e);if(Oo[n]??={},Oo[n][t])return Oo[n][t];let r="";switch(t){case"shortDate":r=So(e,pe.Short);break;case"mediumDate":r=So(e,pe.Medium);break;case"longDate":r=So(e,pe.Long);break;case"fullDate":r=So(e,pe.Full);break;case"shortTime":r=No(e,pe.Short);break;case"mediumTime":r=No(e,pe.Medium);break;case"longTime":r=No(e,pe.Long);break;case"fullTime":r=No(e,pe.Full);break;case"short":let o=qe(e,"shortTime"),i=qe(e,"shortDate");r=Ro(Ao(e,pe.Short),[o,i]);break;case"medium":let s=qe(e,"mediumTime"),a=qe(e,"mediumDate");r=Ro(Ao(e,pe.Medium),[s,a]);break;case"long":let c=qe(e,"longTime"),u=qe(e,"longDate");r=Ro(Ao(e,pe.Long),[c,u]);break;case"full":let l=qe(e,"fullTime"),d=qe(e,"fullDate");r=Ro(Ao(e,pe.Full),[l,d]);break}return r&&(Oo[n][t]=r),r}function Ro(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function be(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),i+s}function tD(e,t){return be(e,3).substring(0,t)}function W(e,t,n=0,r=!1,o=!1){return function(i,s){let a=nD(e,i);if((n>0||a>-n)&&(a+=n),e===N.Hours)a===0&&n===-12&&(a=12);else if(e===N.FractionalSeconds)return tD(a,t);let c=jo(s,st.MinusSign);return be(a,t,c,r,o)}}function nD(e,t){switch(e){case N.FullYear:return t.getFullYear();case N.Month:return t.getMonth();case N.Date:return t.getDate();case N.Hours:return t.getHours();case N.Minutes:return t.getMinutes();case N.Seconds:return t.getSeconds();case N.FractionalSeconds:return t.getMilliseconds();case N.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}function V(e,t,n=se.Format,r=!1){return function(o,i){return rD(o,i,e,t,n,r)}}function rD(e,t,n,r,o,i){switch(n){case S.Months:return Zv(t,o,r)[e.getMonth()];case S.Days:return qv(t,o,r)[e.getDay()];case S.DayPeriods:let s=e.getHours(),a=e.getMinutes();if(i){let u=Qv(t),l=Kv(t,o,r),d=u.findIndex(h=>{if(Array.isArray(h)){let[f,p]=h,g=s>=f.hours&&a>=f.minutes,m=s<p.hours||s===p.hours&&a<p.minutes;if(f.hours<p.hours){if(g&&m)return!0}else if(g||m)return!0}else if(h.hours===s&&h.minutes===a)return!0;return!1});if(d!==-1)return l[d]}return Wv(t,o,r)[s<12?0:1];case S.Eras:return Yv(t,r)[e.getFullYear()<=0?0:1];default:let c=n;throw new Error(`unexpected translation type ${c}`)}}function Fo(e){return function(t,n,r){let o=-1*r,i=jo(n,st.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case Ze.Short:return(o>=0?"+":"")+be(s,2,i)+be(Math.abs(o%60),2,i);case Ze.ShortGMT:return"GMT"+(o>=0?"+":"")+be(s,1,i);case Ze.Long:return"GMT"+(o>=0?"+":"")+be(s,2,i)+":"+be(Math.abs(o%60),2,i);case Ze.Extended:return r===0?"Z":(o>=0?"+":"")+be(s,2,i)+":"+be(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}var oD=0,ko=4;function iD(e){let t=Vo(e,oD,1).getDay();return Vo(e,0,1+(t<=ko?ko:ko+7)-t)}function qd(e){let t=e.getDay(),n=t===0?-3:ko-t;return Vo(e.getFullYear(),e.getMonth(),e.getDate()+n)}function ma(e,t=!1){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{let i=qd(n),s=iD(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return be(o,e,jo(r,st.MinusSign))}}function Po(e,t=!1){return function(n,r){let i=qd(n).getFullYear();return be(i,e,jo(r,st.MinusSign),t)}}var ya={};function sD(e){if(ya[e])return ya[e];let t;switch(e){case"G":case"GG":case"GGG":t=V(S.Eras,P.Abbreviated);break;case"GGGG":t=V(S.Eras,P.Wide);break;case"GGGGG":t=V(S.Eras,P.Narrow);break;case"y":t=W(N.FullYear,1,0,!1,!0);break;case"yy":t=W(N.FullYear,2,0,!0,!0);break;case"yyy":t=W(N.FullYear,3,0,!1,!0);break;case"yyyy":t=W(N.FullYear,4,0,!1,!0);break;case"Y":t=Po(1);break;case"YY":t=Po(2,!0);break;case"YYY":t=Po(3);break;case"YYYY":t=Po(4);break;case"M":case"L":t=W(N.Month,1,1);break;case"MM":case"LL":t=W(N.Month,2,1);break;case"MMM":t=V(S.Months,P.Abbreviated);break;case"MMMM":t=V(S.Months,P.Wide);break;case"MMMMM":t=V(S.Months,P.Narrow);break;case"LLL":t=V(S.Months,P.Abbreviated,se.Standalone);break;case"LLLL":t=V(S.Months,P.Wide,se.Standalone);break;case"LLLLL":t=V(S.Months,P.Narrow,se.Standalone);break;case"w":t=ma(1);break;case"ww":t=ma(2);break;case"W":t=ma(1,!0);break;case"d":t=W(N.Date,1);break;case"dd":t=W(N.Date,2);break;case"c":case"cc":t=W(N.Day,1);break;case"ccc":t=V(S.Days,P.Abbreviated,se.Standalone);break;case"cccc":t=V(S.Days,P.Wide,se.Standalone);break;case"ccccc":t=V(S.Days,P.Narrow,se.Standalone);break;case"cccccc":t=V(S.Days,P.Short,se.Standalone);break;case"E":case"EE":case"EEE":t=V(S.Days,P.Abbreviated);break;case"EEEE":t=V(S.Days,P.Wide);break;case"EEEEE":t=V(S.Days,P.Narrow);break;case"EEEEEE":t=V(S.Days,P.Short);break;case"a":case"aa":case"aaa":t=V(S.DayPeriods,P.Abbreviated);break;case"aaaa":t=V(S.DayPeriods,P.Wide);break;case"aaaaa":t=V(S.DayPeriods,P.Narrow);break;case"b":case"bb":case"bbb":t=V(S.DayPeriods,P.Abbreviated,se.Standalone,!0);break;case"bbbb":t=V(S.DayPeriods,P.Wide,se.Standalone,!0);break;case"bbbbb":t=V(S.DayPeriods,P.Narrow,se.Standalone,!0);break;case"B":case"BB":case"BBB":t=V(S.DayPeriods,P.Abbreviated,se.Format,!0);break;case"BBBB":t=V(S.DayPeriods,P.Wide,se.Format,!0);break;case"BBBBB":t=V(S.DayPeriods,P.Narrow,se.Format,!0);break;case"h":t=W(N.Hours,1,-12);break;case"hh":t=W(N.Hours,2,-12);break;case"H":t=W(N.Hours,1);break;case"HH":t=W(N.Hours,2);break;case"m":t=W(N.Minutes,1);break;case"mm":t=W(N.Minutes,2);break;case"s":t=W(N.Seconds,1);break;case"ss":t=W(N.Seconds,2);break;case"S":t=W(N.FractionalSeconds,1);break;case"SS":t=W(N.FractionalSeconds,2);break;case"SSS":t=W(N.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Fo(Ze.Short);break;case"ZZZZZ":t=Fo(Ze.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Fo(Ze.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Fo(Ze.Long);break;default:return null}return ya[e]=t,t}function Zd(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function aD(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function cD(e,t,n){let r=n?-1:1,o=e.getTimezoneOffset(),i=Zd(t,o);return aD(e,r*(i-o))}function uD(e){if(Bd(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return Vo(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(Jv))return lD(r)}let t=new Date(e);if(!Bd(t))throw new Error(`Unable to convert "${e}" into a date`);return t}function lD(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,c,u),t}function Bd(e){return e instanceof Date&&!isNaN(e.valueOf())}function Bo(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var va=class{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Yd=(()=>{class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,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 r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new va(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),$d(a,o)}});for(let o=0,i=r.length;o<i;o++){let a=r.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{let i=r.get(o.currentIndex);$d(i,o)})}static ngTemplateContextGuard(n,r){return!0}static{this.\u0275fac=function(r){return new(r||e)(L(sn),L(bt),L(ha))}}static{this.\u0275dir=Ue({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return e})();function $d(e,t){e.context.$implicit=t.item}var Qd=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new Da,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Ud("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Ud("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,r){return!0}static{this.\u0275fac=function(r){return new(r||e)(L(sn),L(bt))}}static{this.\u0275dir=Ue({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return e})(),Da=class{constructor(){this.$implicit=null,this.ngIf=null}};function Ud(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${fe(t)}'.`)}function dD(e,t){return new E(2100,!1)}var fD="mediumDate",hD=new D(""),pD=new D(""),Kd=(()=>{class e{constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??fD,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return eD(n,s,i||this.locale,a)}catch(s){throw dD(e,s.message)}}static{this.\u0275fac=function(r){return new(r||e)(L(Mo,16),L(hD,24),L(pD,24))}}static{this.\u0275pipe=Ru({name:"date",type:e,pure:!0,standalone:!0})}}return e})();var wa=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=xt({type:e})}static{this.\u0275inj=Tt({})}}return e})(),Jd="browser",gD="server";function $o(e){return e===gD}var hn=class{};var $n=class{},Un=class{},Ye=class e{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
|
|
`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var Ca=class{encodeKey(t){return ef(t)}encodeValue(t){return ef(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function mD(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var yD=/%(\d[a-f0-9])/gi,vD={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ef(e){return encodeURIComponent(e).replace(yD,(t,n)=>vD[n]??t)}function Uo(e){return`${e}`}var at=class e{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Ca,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=mD(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(Uo):[Uo(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(Uo(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(Uo(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var _a=class{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function DD(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function tf(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function nf(e){return typeof Blob<"u"&&e instanceof Blob}function rf(e){return typeof FormData<"u"&&e instanceof FormData}function wD(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Bn=class e{constructor(t,n,r,o){this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let i;if(DD(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new Ye,this.context??=new _a,!this.params)this.params=new at,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||tf(this.body)||nf(this.body)||rf(this.body)||wD(this.body)?this.body:this.body instanceof at?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||rf(this.body)?null:nf(this.body)?this.body.type||null:tf(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof at?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.transferCache??this.transferCache,s=t.body!==void 0?t.body:this.body,a=t.withCredentials??this.withCredentials,c=t.reportProgress??this.reportProgress,u=t.headers||this.headers,l=t.params||this.params,d=t.context??this.context;return t.setHeaders!==void 0&&(u=Object.keys(t.setHeaders).reduce((h,f)=>h.set(f,t.setHeaders[f]),u)),t.setParams&&(l=Object.keys(t.setParams).reduce((h,f)=>h.set(f,t.setParams[f]),l)),new e(n,r,s,{params:l,headers:u,context:d,reportProgress:c,responseType:o,withCredentials:a,transferCache:i})}},ct=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(ct||{}),Hn=class{constructor(t,n=200,r="OK"){this.headers=t.headers||new Ye,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},Ho=class e extends Hn{constructor(t={}){super(t),this.type=ct.ResponseHeader}clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Gn=class e extends Hn{constructor(t={}){super(t),this.type=ct.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Pe=class extends Hn{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},cf=200,ED=204;function Ea(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var Ta=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Bn)i=n;else{let c;o.headers instanceof Ye?c=o.headers:c=new Ye(o.headers);let u;o.params&&(o.params instanceof at?u=o.params:u=new at({fromObject:o.params})),i=new Bn(n,r,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 s=Mr(i).pipe(vi(c=>this.handler.handle(c)));if(n instanceof Bn||o.observe==="events")return s;let a=s.pipe(yi(c=>c instanceof Gn));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(X(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(X(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(X(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return a.pipe(X(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new at().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Ea(o,r))}post(n,r,o={}){return this.request("POST",n,Ea(o,r))}put(n,r,o={}){return this.request("PUT",n,Ea(o,r))}static{this.\u0275fac=function(r){return new(r||e)(b($n))}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac})}}return e})(),CD=/^\)\]\}',?\n/,_D="X-Request-URL";function of(e){if(e.url)return e.url;let t=_D.toLocaleLowerCase();return e.headers.get(t)}var Ia=(()=>{class e{constructor(){this.fetchImpl=v(ba,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n)),this.ngZone=v(G)}handle(n){return new B(r=>{let o=new AbortController;return this.doRequest(n,o.signal,r).then(Ma,i=>r.error(new Pe({error:i}))),()=>o.abort()})}doRequest(n,r,o){return Xn(this,null,function*(){let i=this.createRequestInit(n),s;try{let f=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,k({signal:r},i)));ID(f),o.next({type:ct.Sent}),s=yield f}catch(f){o.error(new Pe({error:f,status:f.status??0,statusText:f.statusText,url:n.urlWithParams,headers:f.headers}));return}let a=new Ye(s.headers),c=s.statusText,u=of(s)??n.urlWithParams,l=s.status,d=null;if(n.reportProgress&&o.next(new Ho({headers:a,status:l,statusText:c,url:u})),s.body){let f=s.headers.get("content-length"),p=[],g=s.body.getReader(),m=0,M,q,F=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Xn(this,null,function*(){for(;;){let{done:ae,value:Z}=yield g.read();if(ae)break;if(p.push(Z),m+=Z.length,n.reportProgress){q=n.responseType==="text"?(q??"")+(M??=new TextDecoder).decode(Z,{stream:!0}):void 0;let ke=()=>o.next({type:ct.DownloadProgress,total:f?+f:void 0,loaded:m,partialText:q});F?F.run(ke):ke()}}}));let K=this.concatChunks(p,m);try{let ae=s.headers.get("Content-Type")??"";d=this.parseBody(n,K,ae)}catch(ae){o.error(new Pe({error:ae,headers:new Ye(s.headers),status:s.status,statusText:s.statusText,url:of(s)??n.urlWithParams}));return}}l===0&&(l=d?cf:0),l>=200&&l<300?(o.next(new Gn({body:d,headers:a,status:l,statusText:c,url:u})),o.complete()):o.error(new Pe({error:d,headers:a,status:l,statusText:c,url:u}))})}parseBody(n,r,o){switch(n.responseType){case"json":let i=new TextDecoder().decode(r).replace(CD,"");return i===""?null:JSON.parse(i);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let i=n.detectContentTypeHeader();i!==null&&(r["Content-Type"]=i)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o}}concatChunks(n,r){let o=new Uint8Array(r),i=0;for(let s of n)o.set(s,i),i+=s.length;return o}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac})}}return e})(),ba=class{};function Ma(){}function ID(e){e.then(Ma,Ma)}function bD(e,t){return t(e)}function MD(e,t,n){return(r,o)=>Uu(n,()=>t(r,i=>e(i,o)))}var uf=new D(""),TD=new D(""),xD=new D("",{providedIn:"root",factory:()=>!0});var sf=(()=>{class e extends $n{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=v(rn),this.contributeToStability=v(xD)}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(uf),...this.injector.get(TD,[])]));this.chain=r.reduceRight((o,i)=>MD(o,i,this.injector),bD)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(jt(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}static{this.\u0275fac=function(r){return new(r||e)(b(Un),b(Ne))}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac})}}return e})();var SD=/^\)\]\}',?\n/;function ND(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var af=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new E(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?ht(r.\u0275loadImpl()):Mr(null)).pipe(Di(()=>new B(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((g,m)=>s.setRequestHeader(g,m.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let g=n.detectContentTypeHeader();g!==null&&s.setRequestHeader("Content-Type",g)}if(n.responseType){let g=n.responseType.toLowerCase();s.responseType=g!=="json"?g:"text"}let a=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let g=s.statusText||"OK",m=new Ye(s.getAllResponseHeaders()),M=ND(s)||n.url;return c=new Ho({headers:m,status:s.status,statusText:g,url:M}),c},l=()=>{let{headers:g,status:m,statusText:M,url:q}=u(),F=null;m!==ED&&(F=typeof s.response>"u"?s.responseText:s.response),m===0&&(m=F?cf:0);let K=m>=200&&m<300;if(n.responseType==="json"&&typeof F=="string"){let ae=F;F=F.replace(SD,"");try{F=F!==""?JSON.parse(F):null}catch(Z){F=ae,K&&(K=!1,F={error:Z,text:F})}}K?(i.next(new Gn({body:F,headers:g,status:m,statusText:M,url:q||void 0})),i.complete()):i.error(new Pe({error:F,headers:g,status:m,statusText:M,url:q||void 0}))},d=g=>{let{url:m}=u(),M=new Pe({error:g,status:s.status||0,statusText:s.statusText||"Unknown Error",url:m||void 0});i.error(M)},h=!1,f=g=>{h||(i.next(u()),h=!0);let m={type:ct.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(m.total=g.total),n.responseType==="text"&&s.responseText&&(m.partialText=s.responseText),i.next(m)},p=g=>{let m={type:ct.UploadProgress,loaded:g.loaded};g.lengthComputable&&(m.total=g.total),i.next(m)};return s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",f),a!==null&&s.upload&&s.upload.addEventListener("progress",p)),s.send(a),i.next({type:ct.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",d),n.reportProgress&&(s.removeEventListener("progress",f),a!==null&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}static{this.\u0275fac=function(r){return new(r||e)(b(hn))}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac})}}return e})(),lf=new D(""),AD="XSRF-TOKEN",OD=new D("",{providedIn:"root",factory:()=>AD}),RD="X-XSRF-TOKEN",FD=new D("",{providedIn:"root",factory:()=>RD}),Go=class{},PD=(()=>{class e{constructor(n,r,o){this.doc=n,this.platform=r,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=Bo(n,this.cookieName),this.lastCookieString=n),this.lastToken}static{this.\u0275fac=function(r){return new(r||e)(b(Fe),b(nt),b(OD))}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac})}}return e})();function kD(e,t){let n=e.url.toLowerCase();if(!v(lf)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=v(Go).getToken(),o=v(FD);return r!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var df=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(df||{});function LD(e,t){return{\u0275kind:e,\u0275providers:t}}function ff(...e){let t=[Ta,af,sf,{provide:$n,useExisting:sf},{provide:Un,useFactory:()=>v(Ia,{optional:!0})??v(af)},{provide:uf,useValue:kD,multi:!0},{provide:lf,useValue:!0},{provide:Go,useClass:PD}];for(let n of e)t.push(...n.\u0275providers);return Os(t)}function hf(){return LD(df.Fetch,[Ia,{provide:Un,useExisting:Ia}])}var Na=class extends Lo{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Aa=class e extends Na{static makeCurrent(){zd(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=jD();return n==null?null:BD(n)}resetBaseElement(){zn=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Bo(document.cookie,t)}},zn=null;function jD(){return zn=zn||document.querySelector("base"),zn?zn.getAttribute("href"):null}function BD(e){return new URL(e,document.baseURI).pathname}var $D=(()=>{class e{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac})}}return e})(),Oa=new D(""),yf=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new E(5101,!1);return this._eventNameToPlugin.set(n,r),r}static{this.\u0275fac=function(r){return new(r||e)(b(Oa),b(G))}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac})}}return e})(),zo=class{constructor(t){this._doc=t}},xa="ng-app-id",vf=(()=>{class e{constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=$o(i),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${xa}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(o=>{o.textContent!=null&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){let o=this.styleRef;if(o.has(n)){let i=o.get(n);return i.usage+=r,i.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===n)return o.delete(r),i.removeAttribute(xa),i;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(xa,this.appId),n.appendChild(s),s}}addStyleToHost(n,r){let o=this.getStyleElement(n,r),i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}static{this.\u0275fac=function(r){return new(r||e)(b(Fe),b(qs),b(Ys,8),b(nt))}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac})}}return e})(),Sa={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"},Fa=/%COMP%/g,Df="%COMP%",UD=`_nghost-${Df}`,HD=`_ngcontent-${Df}`,GD=!0,zD=new D("",{providedIn:"root",factory:()=>GD});function WD(e){return HD.replace(Fa,e)}function qD(e){return UD.replace(Fa,e)}function wf(e,t){return t.map(n=>n.replace(Fa,e))}var pf=(()=>{class e{constructor(n,r,o,i,s,a,c,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=$o(a),this.defaultRenderer=new Wn(n,s,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Se.ShadowDom&&(r=U(k({},r),{encapsulation:Se.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof Wo?o.applyToHost(n):o instanceof qn&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case Se.Emulated:i=new Wo(c,u,r,this.appId,l,s,a,d);break;case Se.ShadowDom:return new Ra(c,u,n,r,s,a,this.nonce,d);default:i=new qn(c,u,r,l,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||e)(b(yf),b(vf),b(qs),b(zD),b(Fe),b(nt),b(G),b(Ys))}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac})}}return e})(),Wn=class{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(Sa[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(gf(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(gf(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new E(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=Sa[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=Sa[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&($e.DashCase|$e.Important)?t.style.setProperty(n,r,o&$e.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&$e.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=pn().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function gf(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Ra=class extends Wn{constructor(t,n,r,o,i,s,a,c){super(t,i,s,c),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=wf(o.id,o.styles);for(let l of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},qn=class extends Wn{constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=c?wf(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Wo=class extends qn{constructor(t,n,r,o,i,s,a,c){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,u),this.contentAttr=WD(u),this.hostAttr=qD(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},ZD=(()=>{class e extends zo{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}static{this.\u0275fac=function(r){return new(r||e)(b(Fe))}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac})}}return e})(),mf=["alt","control","meta","shift"],YD={"\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"},QD={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},KD=(()=>{class e extends zo{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o){let i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>pn().onAndCancel(n,i.domEventName,s))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),mf.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=YD[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),mf.forEach(s=>{if(s!==o){let a=QD[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static{this.\u0275fac=function(r){return new(r||e)(b(Fe))}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac})}}return e})();function Ef(e,t,n){return jd(k({rootComponent:e,platformRef:n?.platformRef},JD(t)))}function JD(e){return{appProviders:[...rw,...e?.providers??[]],platformProviders:nw}}function XD(){Aa.makeCurrent()}function ew(){return new Be}function tw(){return Pl(document),document}var nw=[{provide:nt,useValue:Jd},{provide:Zs,useValue:XD,multi:!0},{provide:Fe,useFactory:tw,deps:[]}];var rw=[{provide:fo,useValue:"root"},{provide:Be,useFactory:ew,deps:[]},{provide:Oa,useClass:ZD,multi:!0,deps:[Fe,G,nt]},{provide:Oa,useClass:KD,multi:!0,deps:[Fe]},pf,vf,yf,{provide:Jt,useExisting:pf},{provide:hn,useClass:$D,deps:[]},[]];var Sf=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static{this.\u0275fac=function(r){return new(r||e)(L(Ln),L(ze))}}static{this.\u0275dir=Ue({type:e})}}return e})(),ow=(()=>{class e extends Sf{static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=Il(e)))(o||e)}})()}static{this.\u0275dir=Ue({type:e,features:[an]})}}return e})(),Nf=new D("");var iw={provide:Nf,useExisting:Fn(()=>Ko),multi:!0};function sw(){let e=pn()?pn().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var aw=new D(""),Ko=(()=>{class e extends Sf{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!sw())}writeValue(n){let r=n??"";this.setProperty("value",r)}_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)}static{this.\u0275fac=function(r){return new(r||e)(L(Ln),L(ze),L(aw,8))}}static{this.\u0275dir=Ue({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(r,o){r&1&&ln("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},features:[fa([iw]),an]})}}return e})();var cw=new D(""),uw=new D("");function Af(e){return e!=null}function Of(e){return jn(e)?ht(e):e}function Rf(e){let t={};return e.forEach(n=>{t=n!=null?k(k({},t),n):t}),Object.keys(t).length===0?null:t}function Ff(e,t){return t.map(n=>n(e))}function lw(e){return!e.validate}function Pf(e){return e.map(t=>lw(t)?t:n=>t.validate(n))}function dw(e){if(!e)return null;let t=e.filter(Af);return t.length==0?null:function(n){return Rf(Ff(n,t))}}function kf(e){return e!=null?dw(Pf(e)):null}function fw(e){if(!e)return null;let t=e.filter(Af);return t.length==0?null:function(n){let r=Ff(n,t).map(Of);return mi(r).pipe(X(Rf))}}function Lf(e){return e!=null?fw(Pf(e)):null}function Cf(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function hw(e){return e._rawValidators}function pw(e){return e._rawAsyncValidators}function Pa(e){return e?Array.isArray(e)?e:[e]:[]}function Zo(e,t){return Array.isArray(e)?e.includes(t):e===t}function _f(e,t){let n=Pa(t);return Pa(e).forEach(o=>{Zo(n,o)||n.push(o)}),n}function If(e,t){return Pa(t).filter(n=>!Zo(e,n))}var Yo=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(t){this._rawValidators=t||[],this._composedValidatorFn=kf(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Lf(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},ka=class extends Yo{get formDirective(){return null}get path(){return null}},Jn=class extends Yo{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},La=class{constructor(t){this._cd=t}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}},gw={"[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"},M0=U(k({},gw),{"[class.ng-submitted]":"isSubmitted"}),Vf=(()=>{class e extends La{constructor(n){super(n)}static{this.\u0275fac=function(r){return new(r||e)(L(Jn,2))}}static{this.\u0275dir=Ue({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&Nt("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:[an]})}}return e})();var Zn="VALID",qo="INVALID",gn="PENDING",Yn="DISABLED",yn=class{},Qo=class extends yn{constructor(t,n){super(),this.value=t,this.source=n}},Qn=class extends yn{constructor(t,n){super(),this.pristine=t,this.source=n}},Kn=class extends yn{constructor(t,n){super(),this.touched=t,this.source=n}},mn=class extends yn{constructor(t,n){super(),this.status=t,this.source=n}};function mw(e){return(Jo(e)?e.validators:e)||null}function yw(e){return Array.isArray(e)?kf(e):e||null}function vw(e,t){return(Jo(t)?t.asyncValidators:e)||null}function Dw(e){return Array.isArray(e)?Lf(e):e||null}function Jo(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var Va=class{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=xo(()=>this.statusReactive()),this.statusReactive=Io(void 0),this._pristine=xo(()=>this.pristineReactive()),this.pristineReactive=Io(!0),this._touched=xo(()=>this.touchedReactive()),this.touchedReactive=Io(!1),this._events=new Me,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return it(this.statusReactive)}set status(t){it(()=>this.statusReactive.set(t))}get valid(){return this.status===Zn}get invalid(){return this.status===qo}get pending(){return this.status==gn}get disabled(){return this.status===Yn}get enabled(){return this.status!==Yn}get pristine(){return it(this.pristineReactive)}set pristine(t){it(()=>this.pristineReactive.set(t))}get dirty(){return!this.pristine}get touched(){return it(this.touchedReactive)}set touched(t){it(()=>this.touchedReactive.set(t))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(_f(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(_f(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(If(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(If(t,this._rawAsyncValidators))}hasValidator(t){return Zo(this._rawValidators,t)}hasAsyncValidator(t){return Zo(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(U(k({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Kn(!0,r))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new Kn(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(U(k({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Qn(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new Qn(!0,r))}markAsPending(t={}){this.status=gn;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new mn(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(U(k({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Yn,this.errors=null,this._forEachChild(o=>{o.disable(U(k({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Qo(this.value,r)),this._events.next(new mn(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(U(k({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Zn,this._forEachChild(r=>{r.enable(U(k({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(U(k({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Zn||this.status===gn)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Qo(this.value,n)),this._events.next(new mn(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(U(k({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Yn:Zn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=gn,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=Of(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new mn(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new le,this.statusChanges=new le}_calculateStatus(){return this._allControlsDisabled()?Yn:this.errors?qo:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(gn)?gn:this._anyControlsHaveStatus(qo)?qo:Zn}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),o&&this._events.next(new Qn(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new Kn(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Jo(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=yw(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Dw(this._rawAsyncValidators)}};var jf=new D("CallSetDisabledState",{providedIn:"root",factory:()=>ja}),ja="always";function ww(e,t){return[...t.path,e]}function Ew(e,t,n=ja){_w(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),Iw(e,t),Mw(e,t),bw(e,t),Cw(e,t)}function bf(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function Cw(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function _w(e,t){let n=hw(e);t.validator!==null?e.setValidators(Cf(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=pw(e);t.asyncValidator!==null?e.setAsyncValidators(Cf(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();bf(t._rawValidators,o),bf(t._rawAsyncValidators,o)}function Iw(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Bf(e,t)})}function bw(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Bf(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function Bf(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Mw(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function Tw(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function xw(e){return Object.getPrototypeOf(e.constructor)===ow}function Sw(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===Ko?n=i:xw(i)?r=i:o=i}),o||r||n||null}function Mf(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Tf(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var Nw=class extends Va{constructor(t=null,n,r){super(mw(n),vw(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Jo(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Tf(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Mf(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Mf(this._onDisabledChange,t)}_forEachChild(t){}_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(t){Tf(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var Aw={provide:Jn,useExisting:Fn(()=>Ba)},xf=Promise.resolve(),Ba=(()=>{class e extends Jn{constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new Nw,this._registered=!1,this.name="",this.update=new le,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=Sw(this,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),Tw(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Ew(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){xf.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&pa(r);xf.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?ww(n,this._parent):[n]}static{this.\u0275fac=function(r){return new(r||e)(L(ka,9),L(cw,10),L(uw,10),L(Nf,10),L(To,8),L(jf,8))}}static{this.\u0275dir=Ue({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[fa([Aw]),an,go]})}}return e})();var Ow=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=xt({type:e})}static{this.\u0275inj=Tt({})}}return e})();var $f=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:jf,useValue:n.callSetDisabledState??ja}]}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=xt({type:e})}static{this.\u0275inj=Tt({imports:[Ow]})}}return e})();var Ot={production:!1,apiUrl:"/api",appName:"Viriato AI ",chatEndpoint:"/perguntar",requestTimeoutMs:24e4,internalBadge:"Beta Release"};var Uf=(()=>{class e{constructor(){this.http=v(Ta)}sendMessage(n,r=[]){let o=`${Ot.apiUrl}${Ot.chatEndpoint}`,i={pergunta:n,history:r};return this.http.post(o,i).pipe(X(s=>({pergunta:s.pergunta??n,resposta:s.resposta??s.answer??s.message??"",fontes:s.fontes??s.sources??[]}))).pipe(gi(Ot.requestTimeoutMs))}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Fw=["scrollContainer"];function Pw(e,t){if(e&1&&(R(0,"button",22),$(1),A()),e&2){let n=t.$implicit;z(),dn(" ",n," ")}}function kw(e,t){if(e&1&&(R(0,"div",31)(1,"strong"),$(2),A(),R(3,"span"),$(4),A(),R(5,"small"),$(6),A()()),e&2){let n=t.$implicit;z(2),ot(n.nome_pdf),z(2),ua("",n.categoria," \xB7 Chunk ",n.chunk_id,""),z(2),dn("Score: ",n.score_distancia,"")}}function Lw(e,t){if(e&1&&(R(0,"div",28)(1,"p",29),$(2,"Fontes"),A(),cn(3,kw,7,4,"div",30),A()),e&2){let n=Md().$implicit;z(3),rt("ngForOf",n.sources)}}function Vw(e,t){if(e&1&&(R(0,"article",23)(1,"div",24),$(2),A(),R(3,"div",25)(4,"div",26)(5,"strong"),$(6),A(),R(7,"span"),$(8),Od(9,"date"),A()(),R(10,"p"),$(11),A(),cn(12,Lw,4,1,"div",27),A()()),e&2){let n=t.$implicit;Nt("user-row",n.role==="user"),z(),Nt("user-avatar",n.role==="user"),z(),dn(" ",n.role==="user"?"U":"AI"," "),z(),Nt("user-bubble",n.role==="user")("error-bubble",n.isError),z(3),ot(n.role==="user"?"Utilizador":"Assistente"),z(2),ot(Rd(9,13,n.createdAt,"HH:mm")),z(3),ot(n.content),z(),rt("ngIf",n.sources==null?null:n.sources.length)}}function jw(e,t){e&1&&(R(0,"article",23)(1,"div",24),$(2,"AI"),A(),R(3,"div",32)(4,"div",33),un(5,"span")(6,"span")(7,"span"),A()()())}var Hf=(()=>{class e{constructor(){this.chatService=v(Uf),this.appName=Ot.appName,this.badge=Ot.internalBadge,this.prompt="",this.isLoading=!1,this.conversations=["Exemplo de conversa guardada 1","Exemplo de conversa guardada 2","Exemplo de conversa guardada 3","Exemplo de conversa guardada 4"],this.messages=[{id:crypto.randomUUID(),role:"assistant",content:"Ol\xE1. Sou o Viriato AI. Em que lhe posso ajudar?",createdAt:new Date}]}send(){let n=this.prompt.trim();if(!n||this.isLoading)return;let r={id:crypto.randomUUID(),role:"user",content:n,createdAt:new Date};this.messages=[...this.messages,r],this.prompt="",this.isLoading=!0,this.scrollToBottom(),this.chatService.sendMessage(n,this.messages.map(({role:o,content:i,createdAt:s})=>({role:o,content:i,createdAt:s}))).pipe(jt(()=>this.isLoading=!1)).subscribe({next:o=>{let i={id:crypto.randomUUID(),role:"assistant",content:o.resposta||"Sem resposta do servi\xE7o.",createdAt:new Date,sources:o.fontes??[]};this.messages=[...this.messages,i],this.scrollToBottom()},error:o=>{let i=this.getErrorMessage(o),s={id:crypto.randomUUID(),role:"assistant",content:i,createdAt:new Date,isError:!0};this.messages=[...this.messages,s],this.scrollToBottom()}})}handleKeyDown(n){n.key==="Enter"&&!n.shiftKey&&(n.preventDefault(),this.send())}trackByMessage(n,r){return r.id}scrollToBottom(){queueMicrotask(()=>{let n=this.scrollContainer?.nativeElement;n&&(n.scrollTop=n.scrollHeight)})}getErrorMessage(n){if(n&&typeof n=="object"&&"name"in n&&n.name==="TimeoutError")return"O backend demorou demasiado tempo a responder. Aumenta o timeout no frontend ou verifica a lat\xEAncia do modelo no FastAPI.";if(n instanceof Pe){let r=typeof n.error?.detail=="string"?n.error.detail:typeof n.error=="string"?n.error:"";return n.status===0?"N\xE3o foi poss\xEDvel ligar ao backend em http://127.0.0.1:8000. Confirma que o FastAPI est\xE1 em execu\xE7\xE3o e acess\xEDvel no browser.":r?`Erro do backend (${n.status}): ${r}`:`Erro do backend (${n.status}).`}return"O pedido falhou por um erro inesperado ao comunicar com o backend."}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=lo({type:e,selectors:[["app-chat-layout"]],viewQuery:function(r,o){if(r&1&&Td(Fw,5),r&2){let i;xd(i=Sd())&&(o.scrollContainer=i.first)}},standalone:!0,features:[bo],decls:42,vars:8,consts:[["scrollContainer",""],[1,"shell"],[1,"sidebar"],[1,"brand-card"],["src","assets/imagens/logo_exercito_cor1_png.png","alt","Logo Exercito AI",1,"brand-logo"],[1,"badge"],["type","button",1,"new-chat-btn"],[1,"sidebar-section"],[1,"sidebar-title"],["class","conversation-item","type","button",4,"ngFor","ngForOf"],[1,"sidebar-footer"],[1,"chat-panel"],[1,"topbar"],[1,"status-pill"],[1,"messages"],["class","message-row",3,"user-row",4,"ngFor","ngForOf","ngForTrackBy"],["class","message-row",4,"ngIf"],[1,"composer-wrapper"],[1,"composer"],["rows","1","placeholder","Escreve a tua pergunta...",3,"ngModelChange","keydown","ngModel"],["type","button",3,"click","disabled"],[1,"composer-note"],["type","button",1,"conversation-item"],[1,"message-row"],[1,"avatar"],[1,"bubble"],[1,"meta"],["class","sources",4,"ngIf"],[1,"sources"],[1,"sources-title"],["class","source-item",4,"ngFor","ngForOf"],[1,"source-item"],[1,"bubble","loading-bubble"],[1,"typing"]],template:function(r,o){if(r&1){let i=Id();R(0,"div",1)(1,"aside",2)(2,"div")(3,"div",3)(4,"div",3),un(5,"img",4),R(6,"div")(7,"h1"),$(8),A(),R(9,"span",5),$(10),A()()()(),R(11,"button",6),$(12,"+ Nova conversa"),A(),R(13,"div",7)(14,"p",8),$(15,"Conversas recentes"),A(),cn(16,Pw,2,1,"button",9),A()(),R(17,"div",10)(18,"p"),$(19,"LLM em ambiente privado para utiliza\xE7\xE3o interna."),A(),R(20,"small"),$(21,"Beta Release - Cap Pinto Garcia"),A()()(),R(22,"main",11)(23,"header",12)(24,"div")(25,"h2"),$(26,"Assistente interno"),A(),R(27,"p"),$(28,"Interface proposta a servir como draft ou ponto de partida."),A()(),R(29,"div",13),$(30,"Beta release"),A()(),R(31,"section",14,0),cn(33,Vw,13,16,"article",15)(34,jw,8,0,"article",16),A(),R(35,"footer",17)(36,"div",18)(37,"textarea",19),da("ngModelChange",function(a){return vo(i),Nd(o.prompt,a)||(o.prompt=a),Do(a)}),ln("keydown",function(a){return vo(i),Do(o.handleKeyDown(a))}),A(),R(38,"button",20),ln("click",function(){return vo(i),Do(o.send())}),$(39,"Enviar"),A()(),R(40,"p",21),$(41," As respostas podem demorar algum tempo a ser geradas uma vez que est\xE3o alocadas no meu servidor pessoal. "),A()()()()}r&2&&(z(8),ot(o.appName),z(2),ot(o.badge),z(6),rt("ngForOf",o.conversations),z(17),rt("ngForOf",o.messages)("ngForTrackBy",o.trackByMessage),z(),rt("ngIf",o.isLoading),z(3),la("ngModel",o.prompt),z(),rt("disabled",o.isLoading||!o.prompt.trim()))},dependencies:[wa,Yd,Qd,Kd,$f,Ko,Vf,Ba],styles:["[_nghost-%COMP%]{display:block;min-height:100vh}*[_ngcontent-%COMP%]{box-sizing:border-box}.shell[_ngcontent-%COMP%]{display:grid;grid-template-columns:300px 1fr;min-height:100vh;background:#03361c;color:#e2f0e8}.sidebar[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;padding:24px;background:linear-gradient(180deg,#196b31,#031f0a);border-right:1px solid rgba(148,163,184,.15)}.brand-card[_ngcontent-%COMP%]{display:flex;gap:14px;align-items:center;margin-bottom:24px}.brand-card[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;font-size:1.1rem}.brand-mark[_ngcontent-%COMP%]{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;font-weight:700;background:linear-gradient(135deg,#22c55e,#06b6d4);color:#06202a}.brand-logo[_ngcontent-%COMP%]{width:60px;height:60px;object-fit:contain}.brand-logo[_ngcontent-%COMP%]{width:60px}.badge[_ngcontent-%COMP%], .status-pill[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;font-size:.78rem;background:#22c55e1f;color:#fff;border:1px solid rgba(254,255,255,.25)}.new-chat-btn[_ngcontent-%COMP%], .conversation-item[_ngcontent-%COMP%], .composer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border:0;cursor:pointer;transition:transform .2s ease,opacity .2s ease,background .2s ease}.new-chat-btn[_ngcontent-%COMP%]{width:100%;padding:14px 16px;border-radius:16px;background:#1e293bf2;color:#f8fafc;text-align:left;margin-bottom:22px}.sidebar-title[_ngcontent-%COMP%]{margin:0 0 12px;font-size:.85rem;color:#94a3b8;text-transform:uppercase;letter-spacing:.08em}.conversation-item[_ngcontent-%COMP%]{width:100%;margin-bottom:10px;padding:12px 14px;border-radius:14px;text-align:left;color:#cbd5e1;background:transparent}.conversation-item[_ngcontent-%COMP%]:hover, .new-chat-btn[_ngcontent-%COMP%]:hover, .composer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover:not(:disabled){transform:translateY(-1px);opacity:.96}.sidebar-footer[_ngcontent-%COMP%]{padding-top:20px;border-top:1px solid rgba(148,163,184,.12);color:#94a3b8;font-size:.9rem}.chat-panel[_ngcontent-%COMP%]{display:grid;grid-template-rows:auto 1fr auto;min-height:100vh}.topbar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 32px 18px;border-bottom:1px solid rgba(148,163,184,.12);background:#0f172abf;backdrop-filter:blur(10px)}.topbar[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 6px;font-size:1.4rem}.topbar[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:#94a3b8}.messages[_ngcontent-%COMP%]{overflow-y:auto;padding:28px 32px}.message-row[_ngcontent-%COMP%]{display:flex;gap:16px;align-items:flex-start;max-width:880px;margin:0 auto 20px}.user-row[_ngcontent-%COMP%]{flex-direction:row-reverse}.avatar[_ngcontent-%COMP%]{flex:0 0 42px;width:42px;height:42px;display:grid;place-items:center;border-radius:14px;font-size:.8rem;font-weight:700;background:#38bdf824;color:#7dd3fc;border:1px solid rgba(125,211,252,.2)}.user-avatar[_ngcontent-%COMP%]{background:#22c55e24;color:#86efac;border-color:#86efac33}.bubble[_ngcontent-%COMP%]{width:min(100%,760px);padding:18px 20px;border-radius:22px;background:#0f172ad9;border:1px solid rgba(148,163,184,.12);box-shadow:0 14px 30px #02061738}.user-bubble[_ngcontent-%COMP%]{background:#1e293bf2}.meta[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:16px;font-size:.82rem;margin-bottom:10px;color:#94a3b8}.bubble[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;line-height:1.65;white-space:pre-wrap}.composer-wrapper[_ngcontent-%COMP%]{padding:18px 32px 28px;background:linear-gradient(180deg,#0f172a00,#0f172a 30%)}.composer[_ngcontent-%COMP%]{max-width:880px;margin:0 auto;display:grid;grid-template-columns:1fr auto;gap:14px;padding:14px;border-radius:24px;background:#0f172af2;border:1px solid rgba(148,163,184,.15);box-shadow:0 20px 35px #02061740}.composer[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%;border:0;resize:none;min-height:56px;max-height:180px;color:#e2e8f0;background:transparent;font:inherit;padding:8px 10px;outline:none}.composer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:0 22px;border-radius:18px;background:linear-gradient(135deg,#22c55e,#14b8a6);color:#052e2b;font-weight:700}.composer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.45}.composer-note[_ngcontent-%COMP%]{max-width:880px;margin:10px auto 0;color:#64748b;text-align:center;font-size:.82rem}.typing[_ngcontent-%COMP%]{display:flex;gap:8px}.typing[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:9px;height:9px;border-radius:50%;background:#94a3b8;animation:_ngcontent-%COMP%_blink 1.2s infinite ease-in-out}.typing[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){animation-delay:.2s}.typing[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){animation-delay:.4s}@keyframes _ngcontent-%COMP%_blink{0%,80%,to{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}@media (max-width: 960px){.shell[_ngcontent-%COMP%]{grid-template-columns:1fr}.sidebar[_ngcontent-%COMP%]{display:none}.topbar[_ngcontent-%COMP%], .messages[_ngcontent-%COMP%], .composer-wrapper[_ngcontent-%COMP%]{padding-left:18px;padding-right:18px}}"]})}}return e})();var Gf=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=lo({type:e,selectors:[["app-root"]],standalone:!0,features:[bo],decls:1,vars:0,template:function(r,o){r&1&&un(0,"app-chat-layout")},dependencies:[Hf],encapsulation:2})}}return e})();Ef(Gf,{providers:[ff(hf())]}).catch(e=>console.error(e));
|