From f64042268bbdb7df9f574ff2dbcddeed2fef0f5a Mon Sep 17 00:00:00 2001 From: Connie Leung Date: Wed, 20 Nov 2024 13:21:47 +0800 Subject: [PATCH] chore: deploy to github page --- docs/ai-feedback-app/404.html | 2 +- docs/ai-feedback-app/index.html | 2 +- .../{main-2WNFKTRY.js => main-IADFZ2HZ.js} | 15 ++++++++------- 3 files changed, 10 insertions(+), 9 deletions(-) rename docs/ai-feedback-app/{main-2WNFKTRY.js => main-IADFZ2HZ.js} (77%) diff --git a/docs/ai-feedback-app/404.html b/docs/ai-feedback-app/404.html index 5aa49a3..1b557cc 100644 --- a/docs/ai-feedback-app/404.html +++ b/docs/ai-feedback-app/404.html @@ -9,5 +9,5 @@ - + diff --git a/docs/ai-feedback-app/index.html b/docs/ai-feedback-app/index.html index 5aa49a3..1b557cc 100644 --- a/docs/ai-feedback-app/index.html +++ b/docs/ai-feedback-app/index.html @@ -9,5 +9,5 @@ - + diff --git a/docs/ai-feedback-app/main-2WNFKTRY.js b/docs/ai-feedback-app/main-IADFZ2HZ.js similarity index 77% rename from docs/ai-feedback-app/main-2WNFKTRY.js rename to docs/ai-feedback-app/main-IADFZ2HZ.js index 8519b9c..4aacc30 100644 --- a/docs/ai-feedback-app/main-2WNFKTRY.js +++ b/docs/ai-feedback-app/main-IADFZ2HZ.js @@ -1,15 +1,16 @@ -var np=Object.defineProperty,rp=Object.defineProperties;var op=Object.getOwnPropertyDescriptors;var ec=Object.getOwnPropertySymbols;var ip=Object.prototype.hasOwnProperty,sp=Object.prototype.propertyIsEnumerable;var tc=(e,t,n)=>t in e?np(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,S=(e,t)=>{for(var n in t||={})ip.call(t,n)&&tc(e,n,t[n]);if(ec)for(var n of ec(t))sp.call(t,n)&&tc(e,n,t[n]);return e},O=(e,t)=>rp(e,op(t));function Ni(e,t){return Object.is(e,t)}var j=null,In=!1,xi=1,J=Symbol("SIGNAL");function D(e){let t=j;return j=e,t}function nc(){return j}function ap(){return In}var pt={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function vr(e){if(In)throw new Error("");if(j===null)return;j.consumerOnSignalRead(e);let t=j.nextProducerIndex++;if(Cr(j),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Mn(e){Cr(e);for(let t=0;t0}function Cr(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function ac(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function cc(e){return e.producerNode!==void 0}function uc(e){let t=Object.create(up);t.computation=e;let n=()=>{if(Oi(t),vr(t),t.value===yr)throw t.error;return t.value};return n[J]=t,n}var Mi=Symbol("UNSET"),Si=Symbol("COMPUTING"),yr=Symbol("ERRORED"),up=O(S({},pt),{value:Mi,dirty:!0,error:null,equal:Ni,producerMustRecompute(e){return e.value===Mi||e.value===Si},producerRecomputeValue(e){if(e.value===Si)throw new Error("Detected cycle in computations.");let t=e.value;e.value=Si;let n=Ft(e),r;try{r=e.computation()}catch(o){r=yr,e.error=o}finally{bn(e,n)}if(t!==Mi&&t!==yr&&r!==yr&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function lp(){throw new Error}var lc=lp;function dc(){lc()}function fc(e){lc=e}var dp=null;function pc(e){let t=Object.create(Fi);t.value=e;let n=()=>(vr(t),t.value);return n[J]=t,n}function Er(e,t){oc()||dc(),e.equal(e.value,t)||(e.value=t,fp(e))}function hc(e,t){oc()||dc(),Er(e,t(e.value))}var Fi=O(S({},pt),{equal:Ni,value:void 0});function fp(e){e.version++,cp(),rc(e),dp?.()}function gc(e,t,n){let r=Object.create(pp);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;let o=c=>{r.cleanupFn=c};function i(c){return c.fn===null&&c.schedule===null}function s(c){i(c)||(Rt(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=Ai)}let a=()=>{if(r.fn===null)return;if(ap())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!Mn(r))return;r.hasRun=!0;let c=Ft(r);try{r.cleanupFn(),r.cleanupFn=Ai,r.fn(o)}finally{bn(r,c)}};return r.ref={notify:()=>ic(r),run:a,cleanup:()=>r.cleanupFn(),destroy:()=>s(r),[J]:r},r.ref}var Ai=()=>{},pp=O(S({},pt),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule!==null&&e.schedule(e.ref)},hasRun:!1,cleanupFn:Ai});function T(e){return typeof e=="function"}function wr(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 Ir=wr(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: +var np=Object.defineProperty,rp=Object.defineProperties;var op=Object.getOwnPropertyDescriptors;var ec=Object.getOwnPropertySymbols;var ip=Object.prototype.hasOwnProperty,sp=Object.prototype.propertyIsEnumerable;var tc=(e,t,n)=>t in e?np(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T=(e,t)=>{for(var n in t||={})ip.call(t,n)&&tc(e,n,t[n]);if(ec)for(var n of ec(t))sp.call(t,n)&&tc(e,n,t[n]);return e},F=(e,t)=>rp(e,op(t));function Ai(e,t){return Object.is(e,t)}var B=null,In=!1,Ni=1,J=Symbol("SIGNAL");function D(e){let t=B;return B=e,t}function nc(){return B}function ap(){return In}var pt={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function vr(e){if(In)throw new Error("");if(B===null)return;B.consumerOnSignalRead(e);let t=B.nextProducerIndex++;if(Cr(B),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Mn(e){Cr(e);for(let t=0;t0}function Cr(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function ac(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function cc(e){return e.producerNode!==void 0}function uc(e){let t=Object.create(up);t.computation=e;let n=()=>{if(xi(t),vr(t),t.value===yr)throw t.error;return t.value};return n[J]=t,n}var bi=Symbol("UNSET"),Mi=Symbol("COMPUTING"),yr=Symbol("ERRORED"),up=F(T({},pt),{value:bi,dirty:!0,error:null,equal:Ai,producerMustRecompute(e){return e.value===bi||e.value===Mi},producerRecomputeValue(e){if(e.value===Mi)throw new Error("Detected cycle in computations.");let t=e.value;e.value=Mi;let n=Ft(e),r;try{r=e.computation()}catch(o){r=yr,e.error=o}finally{bn(e,n)}if(t!==bi&&t!==yr&&r!==yr&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function lp(){throw new Error}var lc=lp;function dc(){lc()}function fc(e){lc=e}var dp=null;function pc(e){let t=Object.create(Oi);t.value=e;let n=()=>(vr(t),t.value);return n[J]=t,n}function Er(e,t){oc()||dc(),e.equal(e.value,t)||(e.value=t,fp(e))}function hc(e,t){oc()||dc(),Er(e,t(e.value))}var Oi=F(T({},pt),{equal:Ai,value:void 0});function fp(e){e.version++,cp(),rc(e),dp?.()}function gc(e,t,n){let r=Object.create(pp);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;let o=c=>{r.cleanupFn=c};function i(c){return c.fn===null&&c.schedule===null}function s(c){i(c)||(Rt(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=Ti)}let a=()=>{if(r.fn===null)return;if(ap())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!Mn(r))return;r.hasRun=!0;let c=Ft(r);try{r.cleanupFn(),r.cleanupFn=Ti,r.fn(o)}finally{bn(r,c)}};return r.ref={notify:()=>ic(r),run:a,cleanup:()=>r.cleanupFn(),destroy:()=>s(r),[J]:r},r.ref}var Ti=()=>{},pp=F(T({},pt),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule!==null&&e.schedule(e.ref)},hasRun:!1,cleanupFn:Ti});function A(e){return typeof e=="function"}function wr(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 Ir=wr(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 ht(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var q=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(T(r))try{r()}catch(i){t=i instanceof Ir?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{mc(i)}catch(s){t=t??[],s instanceof Ir?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Ir(t)}}add(t){var n;if(t&&t!==this)if(this.closed)mc(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)&&ht(n,t)}remove(t){let{_finalizers:n}=this;n&&ht(n,t),t instanceof e&&t._removeParent(this)}};q.EMPTY=(()=>{let e=new q;return e.closed=!0,e})();var Ri=q.EMPTY;function _r(e){return e instanceof q||e&&"closed"in e&&T(e.remove)&&T(e.add)&&T(e.unsubscribe)}function mc(e){T(e)?e():e.unsubscribe()}var Me={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Pt={setTimeout(e,t,...n){let{delegate:r}=Pt;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Pt;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function br(e){Pt.setTimeout(()=>{let{onUnhandledError:t}=Me;if(t)t(e);else throw e})}function Pi(){}var yc=ki("C",void 0,void 0);function vc(e){return ki("E",void 0,e)}function Dc(e){return ki("N",e,void 0)}function ki(e,t,n){return{kind:e,value:t,error:n}}var gt=null;function kt(e){if(Me.useDeprecatedSynchronousErrorHandling){let t=!gt;if(t&&(gt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=gt;if(gt=null,n)throw r}}else e()}function Cc(e){Me.useDeprecatedSynchronousErrorHandling&>&&(gt.errorThrown=!0,gt.error=e)}var mt=class extends q{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,_r(t)&&t.add(this)):this.destination=mp}static create(t,n,r){return new Lt(t,n,r)}next(t){this.isStopped?Vi(Dc(t),this):this._next(t)}error(t){this.isStopped?Vi(vc(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Vi(yc,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()}}},hp=Function.prototype.bind;function Li(e,t){return hp.call(e,t)}var ji=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Mr(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Mr(r)}else Mr(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Mr(n)}}},Lt=class extends mt{constructor(t,n,r){super();let o;if(T(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Me.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 ji(o)}};function Mr(e){Me.useDeprecatedSynchronousErrorHandling?Cc(e):br(e)}function gp(e){throw e}function Vi(e,t){let{onStoppedNotification:n}=Me;n&&Pt.setTimeout(()=>n(e,t))}var mp={closed:!0,next:Pi,error:gp,complete:Pi};var Vt=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Sr(e){return e}function Ec(e){return e.length===0?Sr:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var V=(()=>{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=vp(n)?n:new Lt(n,r,o);return kt(()=>{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=wc(r),new r((o,i)=>{let s=new Lt({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)}[Vt](){return this}pipe(...n){return Ec(n)(this)}toPromise(n){return n=wc(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 wc(e){var t;return(t=e??Me.Promise)!==null&&t!==void 0?t:Promise}function yp(e){return e&&T(e.next)&&T(e.error)&&T(e.complete)}function vp(e){return e&&e instanceof mt||yp(e)&&_r(e)}function Dp(e){return T(e?.lift)}function X(e){return t=>{if(Dp(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 U(e,t,n,r,o){return new Bi(e,t,n,r,o)}var Bi=class extends mt{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 Ic=wr(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var me=(()=>{class e extends V{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Tr(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Ic}next(n){kt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){kt(()=>{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(){kt(()=>{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?Ri:(this.currentObservers=null,i.push(n),new q(()=>{this.currentObservers=null,ht(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new V;return n.source=this,n}}return e.create=(t,n)=>new Tr(t,n),e})(),Tr=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:Ri}};var Sn=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 Tn={now(){return(Tn.delegate||Date).now()},delegate:void 0};var An=class extends me{constructor(t=1/0,n=1/0,r=Tn){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;se.complete());function Mc(e){return e&&T(e.schedule)}function Hi(e){return e[e.length-1]}function Sc(e){return T(Hi(e))?e.pop():void 0}function Or(e){return Mc(Hi(e))?e.pop():void 0}function Tc(e,t){return typeof Hi(e)=="number"?e.pop():t}function Nc(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 Ac(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 yt(e){return this instanceof yt?(this.v=e,this):new yt(e)}function xc(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(g){return Promise.resolve(g).then(f,d)}}function a(f,g){r[f]&&(o[f]=function(M){return new Promise(function(L,x){i.push([f,M,L,x])>1||c(f,M)})},g&&(o[f]=g(o[f])))}function c(f,g){try{u(r[f](g))}catch(M){h(i[0][3],M)}}function u(f){f.value instanceof yt?Promise.resolve(f.value.v).then(l,d):h(i[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function h(f,g){f(g),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Oc(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 Ac=="function"?Ac(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 Fr=e=>e&&typeof e.length=="number"&&typeof e!="function";function Rr(e){return T(e?.then)}function Pr(e){return T(e[Vt])}function kr(e){return Symbol.asyncIterator&&T(e?.[Symbol.asyncIterator])}function Lr(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 Cp(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Vr=Cp();function jr(e){return T(e?.[Vr])}function Br(e){return xc(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield yt(n.read());if(o)return yield yt(void 0);yield yield yt(r)}}finally{n.releaseLock()}})}function Hr(e){return T(e?.getReader)}function G(e){if(e instanceof V)return e;if(e!=null){if(Pr(e))return Ep(e);if(Fr(e))return wp(e);if(Rr(e))return Ip(e);if(kr(e))return Fc(e);if(jr(e))return _p(e);if(Hr(e))return bp(e)}throw Lr(e)}function Ep(e){return new V(t=>{let n=e[Vt]();if(T(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function wp(e){return new V(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,br)})}function _p(e){return new V(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Fc(e){return new V(t=>{Mp(e,t).catch(n=>t.error(n))})}function bp(e){return Fc(Br(e))}function Mp(e,t){var n,r,o,i;return Nc(this,void 0,void 0,function*(){try{for(n=Oc(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 ye(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 X((n,r)=>{n.subscribe(U(r,o=>ye(r,e,()=>r.next(o),t),()=>ye(r,e,()=>r.complete(),t),o=>ye(r,e,()=>r.error(o),t)))})}function Ur(e,t=0){return X((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Rc(e,t){return G(e).pipe(Ur(t),$r(t))}function Pc(e,t){return G(e).pipe(Ur(t),$r(t))}function kc(e,t){return new V(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Lc(e,t){return new V(n=>{let r;return ye(n,t,()=>{r=e[Vr](),ye(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)}),()=>T(r?.return)&&r.return()})}function Gr(e,t){if(!e)throw new Error("Iterable cannot be null");return new V(n=>{ye(n,t,()=>{let r=e[Symbol.asyncIterator]();ye(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Vc(e,t){return Gr(Br(e),t)}function jc(e,t){if(e!=null){if(Pr(e))return Rc(e,t);if(Fr(e))return kc(e,t);if(Rr(e))return Pc(e,t);if(kr(e))return Gr(e,t);if(jr(e))return Lc(e,t);if(Hr(e))return Vc(e,t)}throw Lr(e)}function Se(e,t){return t?jc(e,t):G(e)}function vt(...e){let t=Or(e);return Se(e,t)}function Ue(e,t){return X((n,r)=>{let o=0;n.subscribe(U(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Sp}=Array;function Tp(e,t){return Sp(t)?e(...t):e(t)}function Bc(e){return Ue(t=>Tp(e,t))}var{isArray:Ap}=Array,{getPrototypeOf:Np,prototype:xp,keys:Op}=Object;function Hc(e){if(e.length===1){let t=e[0];if(Ap(t))return{args:t,keys:null};if(Fp(t)){let n=Op(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Fp(e){return e&&typeof e=="object"&&Np(e)===xp}function $c(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Uc(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,h=()=>{d&&!c.length&&!u&&t.complete()},f=M=>u{i&&t.next(M),u++;let L=!1;G(n(M,l++)).subscribe(U(t,x=>{o?.(x),i?f(x):t.next(x)},()=>{L=!0},void 0,()=>{if(L)try{for(u--;c.length&&ug(x)):g(x)}h()}catch(x){t.error(x)}}))};return e.subscribe(U(t,f,()=>{d=!0,h()})),()=>{a?.()}}function $i(e,t,n=1/0){return T(t)?$i((r,o)=>Ue((i,s)=>t(r,i,o,s))(G(e(r,o))),n):(typeof t=="number"&&(n=t),X((r,o)=>Uc(r,o,e,n)))}function Gc(e=1/0){return $i(Sr,e)}function Ui(...e){let t=Sc(e),{args:n,keys:r}=Hc(e),o=new V(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l{d||(d=!0,u--),a[l]=h},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?$c(r,a):a),i.complete())}))}});return t?o.pipe(Bc(t)):o}function Gi(...e){let t=Or(e),n=Tc(e,1/0),r=e;return r.length?r.length===1?G(r[0]):Gc(n)(Se(r,t)):bc}function xn(e,t){return X((n,r)=>{let o=0;n.subscribe(U(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Bt(e){return X((t,n)=>{let r=null,o=!1,i;r=t.subscribe(U(n,void 0,void 0,s=>{i=G(e(s,Bt(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function On(e,t=_c){return X((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let u=i;i=null,r.next(u)}};function c(){let u=s+e,l=t.now();if(l{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function Dt(e,t){return X((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(U(r,c=>{o?.unsubscribe();let u=0,l=i++;G(e(c,l)).subscribe(o=U(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}var Nu="https://g.co/ng/security#xss",v=class extends Error{code;constructor(t,n){super(Xs(t,n)),this.code=t}};function Xs(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}var xu=Symbol("InputSignalNode#UNSET"),Rp=O(S({},Fi),{transformFn:void 0,applyValueToInputSignal(e,t){Er(e,t)}});function Ou(e,t){let n=Object.create(Rp);n.value=e,n.transformFn=t?.transform;function r(){if(vr(n),n.value===xu)throw new v(-950,!1);return n.value}return r[J]=n,r}function So(e){return{toString:e}.toString()}var kn=globalThis;function k(e){for(let t in e)if(e[t]===k)return t;throw Error("Could not find renamed property on target object.")}function Pp(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Ce(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(Ce).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 zc(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var kp=k({__forward_ref__:k});function Zn(e){return e.__forward_ref__=Zn,e.toString=function(){return Ce(this())},e}function se(e){return Fu(e)?e():e}function Fu(e){return typeof e=="function"&&e.hasOwnProperty(kp)&&e.__forward_ref__===Zn}function w(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function To(e){return{providers:e.providers||[],imports:e.imports||[]}}function ea(e){return Wc(e,Ru)||Wc(e,Pu)}function Wc(e,t){return e.hasOwnProperty(t)?e[t]:null}function Lp(e){let t=e&&(e[Ru]||e[Pu]);return t||null}function qc(e){return e&&(e.hasOwnProperty(Zc)||e.hasOwnProperty(Vp))?e[Zc]:null}var Ru=k({\u0275prov:k}),Zc=k({\u0275inj:k}),Pu=k({ngInjectableDef:k}),Vp=k({ngInjectorDef:k}),I=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=w({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function ku(e){return e&&!!e.\u0275providers}var jp=k({\u0275cmp:k}),Bp=k({\u0275dir:k}),Hp=k({\u0275pipe:k});var ro=k({\u0275fac:k}),Pn=k({__NG_ELEMENT_ID__:k}),Yc=k({__NG_ENV_ID__:k});function Ln(e){return typeof e=="string"?e:e==null?"":String(e)}function $p(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Ln(e)}function Up(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new v(-200,e)}function ta(e,t){throw new v(-201,!1)}var b=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}(b||{}),ns;function Lu(){return ns}function ae(e){let t=ns;return ns=e,t}function Vu(e,t,n){let r=ea(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&b.Optional)return null;if(t!==void 0)return t;ta(e,"Injector")}var Gp={},Vn=Gp,zp="__NG_DI_FLAG__",oo="ngTempTokenPath",Wp="ngTokenPath",qp=/\n/gm,Zp="\u0275",Qc="__source",Gt;function Yp(){return Gt}function Je(e){let t=Gt;return Gt=e,t}function Qp(e,t=b.Default){if(Gt===void 0)throw new v(-203,!1);return Gt===null?Vu(e,void 0,t):Gt.get(e,t&b.Optional?null:void 0,t)}function P(e,t=b.Default){return(Lu()||Qp)(se(e),t)}function p(e,t=b.Default){return P(e,Ao(t))}function Ao(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function rs(e){let t=[];for(let n=0;n{let e=new q;return e.closed=!0,e})();var Fi=q.EMPTY;function _r(e){return e instanceof q||e&&"closed"in e&&A(e.remove)&&A(e.add)&&A(e.unsubscribe)}function mc(e){A(e)?e():e.unsubscribe()}var Me={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Pt={setTimeout(e,t,...n){let{delegate:r}=Pt;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Pt;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function br(e){Pt.setTimeout(()=>{let{onUnhandledError:t}=Me;if(t)t(e);else throw e})}function Ri(){}var yc=Pi("C",void 0,void 0);function vc(e){return Pi("E",void 0,e)}function Dc(e){return Pi("N",e,void 0)}function Pi(e,t,n){return{kind:e,value:t,error:n}}var gt=null;function kt(e){if(Me.useDeprecatedSynchronousErrorHandling){let t=!gt;if(t&&(gt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=gt;if(gt=null,n)throw r}}else e()}function Cc(e){Me.useDeprecatedSynchronousErrorHandling&>&&(gt.errorThrown=!0,gt.error=e)}var mt=class extends q{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,_r(t)&&t.add(this)):this.destination=mp}static create(t,n,r){return new Lt(t,n,r)}next(t){this.isStopped?Li(Dc(t),this):this._next(t)}error(t){this.isStopped?Li(vc(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Li(yc,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()}}},hp=Function.prototype.bind;function ki(e,t){return hp.call(e,t)}var Vi=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Mr(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Mr(r)}else Mr(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Mr(n)}}},Lt=class extends mt{constructor(t,n,r){super();let o;if(A(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Me.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&ki(t.next,i),error:t.error&&ki(t.error,i),complete:t.complete&&ki(t.complete,i)}):o=t}this.destination=new Vi(o)}};function Mr(e){Me.useDeprecatedSynchronousErrorHandling?Cc(e):br(e)}function gp(e){throw e}function Li(e,t){let{onStoppedNotification:n}=Me;n&&Pt.setTimeout(()=>n(e,t))}var mp={closed:!0,next:Ri,error:gp,complete:Ri};var Vt=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Sr(e){return e}function Ec(e){return e.length===0?Sr:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var V=(()=>{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=vp(n)?n:new Lt(n,r,o);return kt(()=>{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=wc(r),new r((o,i)=>{let s=new Lt({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)}[Vt](){return this}pipe(...n){return Ec(n)(this)}toPromise(n){return n=wc(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 wc(e){var t;return(t=e??Me.Promise)!==null&&t!==void 0?t:Promise}function yp(e){return e&&A(e.next)&&A(e.error)&&A(e.complete)}function vp(e){return e&&e instanceof mt||yp(e)&&_r(e)}function Dp(e){return A(e?.lift)}function X(e){return t=>{if(Dp(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 U(e,t,n,r,o){return new ji(e,t,n,r,o)}var ji=class extends mt{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 Ic=wr(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var me=(()=>{class e extends V{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Tr(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Ic}next(n){kt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){kt(()=>{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(){kt(()=>{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?Fi:(this.currentObservers=null,i.push(n),new q(()=>{this.currentObservers=null,ht(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new V;return n.source=this,n}}return e.create=(t,n)=>new Tr(t,n),e})(),Tr=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:Fi}};var Sn=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 Tn={now(){return(Tn.delegate||Date).now()},delegate:void 0};var An=class extends me{constructor(t=1/0,n=1/0,r=Tn){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;se.complete());function Mc(e){return e&&A(e.schedule)}function Bi(e){return e[e.length-1]}function Sc(e){return A(Bi(e))?e.pop():void 0}function Or(e){return Mc(Bi(e))?e.pop():void 0}function Tc(e,t){return typeof Bi(e)=="number"?e.pop():t}function Nc(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 Ac(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 yt(e){return this instanceof yt?(this.v=e,this):new yt(e)}function xc(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(g){return Promise.resolve(g).then(f,d)}}function a(f,g){r[f]&&(o[f]=function(S){return new Promise(function(L,O){i.push([f,S,L,O])>1||c(f,S)})},g&&(o[f]=g(o[f])))}function c(f,g){try{u(r[f](g))}catch(S){h(i[0][3],S)}}function u(f){f.value instanceof yt?Promise.resolve(f.value.v).then(l,d):h(i[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function h(f,g){f(g),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Oc(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 Ac=="function"?Ac(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 Fr=e=>e&&typeof e.length=="number"&&typeof e!="function";function Rr(e){return A(e?.then)}function Pr(e){return A(e[Vt])}function kr(e){return Symbol.asyncIterator&&A(e?.[Symbol.asyncIterator])}function Lr(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 Cp(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Vr=Cp();function jr(e){return A(e?.[Vr])}function Br(e){return xc(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield yt(n.read());if(o)return yield yt(void 0);yield yield yt(r)}}finally{n.releaseLock()}})}function Hr(e){return A(e?.getReader)}function G(e){if(e instanceof V)return e;if(e!=null){if(Pr(e))return Ep(e);if(Fr(e))return wp(e);if(Rr(e))return Ip(e);if(kr(e))return Fc(e);if(jr(e))return _p(e);if(Hr(e))return bp(e)}throw Lr(e)}function Ep(e){return new V(t=>{let n=e[Vt]();if(A(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function wp(e){return new V(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,br)})}function _p(e){return new V(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Fc(e){return new V(t=>{Mp(e,t).catch(n=>t.error(n))})}function bp(e){return Fc(Br(e))}function Mp(e,t){var n,r,o,i;return Nc(this,void 0,void 0,function*(){try{for(n=Oc(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 ye(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 X((n,r)=>{n.subscribe(U(r,o=>ye(r,e,()=>r.next(o),t),()=>ye(r,e,()=>r.complete(),t),o=>ye(r,e,()=>r.error(o),t)))})}function Ur(e,t=0){return X((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Rc(e,t){return G(e).pipe(Ur(t),$r(t))}function Pc(e,t){return G(e).pipe(Ur(t),$r(t))}function kc(e,t){return new V(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Lc(e,t){return new V(n=>{let r;return ye(n,t,()=>{r=e[Vr](),ye(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)}),()=>A(r?.return)&&r.return()})}function Gr(e,t){if(!e)throw new Error("Iterable cannot be null");return new V(n=>{ye(n,t,()=>{let r=e[Symbol.asyncIterator]();ye(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Vc(e,t){return Gr(Br(e),t)}function jc(e,t){if(e!=null){if(Pr(e))return Rc(e,t);if(Fr(e))return kc(e,t);if(Rr(e))return Pc(e,t);if(kr(e))return Gr(e,t);if(jr(e))return Lc(e,t);if(Hr(e))return Vc(e,t)}throw Lr(e)}function Se(e,t){return t?jc(e,t):G(e)}function vt(...e){let t=Or(e);return Se(e,t)}function Ue(e,t){return X((n,r)=>{let o=0;n.subscribe(U(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Sp}=Array;function Tp(e,t){return Sp(t)?e(...t):e(t)}function Bc(e){return Ue(t=>Tp(e,t))}var{isArray:Ap}=Array,{getPrototypeOf:Np,prototype:xp,keys:Op}=Object;function Hc(e){if(e.length===1){let t=e[0];if(Ap(t))return{args:t,keys:null};if(Fp(t)){let n=Op(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Fp(e){return e&&typeof e=="object"&&Np(e)===xp}function $c(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Uc(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,h=()=>{d&&!c.length&&!u&&t.complete()},f=S=>u{i&&t.next(S),u++;let L=!1;G(n(S,l++)).subscribe(U(t,O=>{o?.(O),i?f(O):t.next(O)},()=>{L=!0},void 0,()=>{if(L)try{for(u--;c.length&&ug(O)):g(O)}h()}catch(O){t.error(O)}}))};return e.subscribe(U(t,f,()=>{d=!0,h()})),()=>{a?.()}}function Hi(e,t,n=1/0){return A(t)?Hi((r,o)=>Ue((i,s)=>t(r,i,o,s))(G(e(r,o))),n):(typeof t=="number"&&(n=t),X((r,o)=>Uc(r,o,e,n)))}function Gc(e=1/0){return Hi(Sr,e)}function $i(...e){let t=Sc(e),{args:n,keys:r}=Hc(e),o=new V(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l{d||(d=!0,u--),a[l]=h},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?$c(r,a):a),i.complete())}))}});return t?o.pipe(Bc(t)):o}function Ui(...e){let t=Or(e),n=Tc(e,1/0),r=e;return r.length?r.length===1?G(r[0]):Gc(n)(Se(r,t)):bc}function Gi(e,t){return X((n,r)=>{let o=0;n.subscribe(U(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Bt(e){return X((t,n)=>{let r=null,o=!1,i;r=t.subscribe(U(n,void 0,void 0,s=>{i=G(e(s,Bt(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function xn(e,t=_c){return X((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let u=i;i=null,r.next(u)}};function c(){let u=s+e,l=t.now();if(l{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function On(e,t){return X((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(U(r,c=>{o?.unsubscribe();let u=0,l=i++;G(e(c,l)).subscribe(o=U(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}var Nu="https://g.co/ng/security#xss",v=class extends Error{code;constructor(t,n){super(Xs(t,n)),this.code=t}};function Xs(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}var xu=Symbol("InputSignalNode#UNSET"),Rp=F(T({},Oi),{transformFn:void 0,applyValueToInputSignal(e,t){Er(e,t)}});function Ou(e,t){let n=Object.create(Rp);n.value=e,n.transformFn=t?.transform;function r(){if(vr(n),n.value===xu)throw new v(-950,!1);return n.value}return r[J]=n,r}function So(e){return{toString:e}.toString()}var kn=globalThis;function k(e){for(let t in e)if(e[t]===k)return t;throw Error("Could not find renamed property on target object.")}function Pp(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Ce(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(Ce).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 zc(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var kp=k({__forward_ref__:k});function Zn(e){return e.__forward_ref__=Zn,e.toString=function(){return Ce(this())},e}function se(e){return Fu(e)?e():e}function Fu(e){return typeof e=="function"&&e.hasOwnProperty(kp)&&e.__forward_ref__===Zn}function w(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function To(e){return{providers:e.providers||[],imports:e.imports||[]}}function ea(e){return Wc(e,Ru)||Wc(e,Pu)}function Wc(e,t){return e.hasOwnProperty(t)?e[t]:null}function Lp(e){let t=e&&(e[Ru]||e[Pu]);return t||null}function qc(e){return e&&(e.hasOwnProperty(Zc)||e.hasOwnProperty(Vp))?e[Zc]:null}var Ru=k({\u0275prov:k}),Zc=k({\u0275inj:k}),Pu=k({ngInjectableDef:k}),Vp=k({ngInjectorDef:k}),_=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=w({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function ku(e){return e&&!!e.\u0275providers}var jp=k({\u0275cmp:k}),Bp=k({\u0275dir:k}),Hp=k({\u0275pipe:k});var ro=k({\u0275fac:k}),Pn=k({__NG_ELEMENT_ID__:k}),Yc=k({__NG_ENV_ID__:k});function Ln(e){return typeof e=="string"?e:e==null?"":String(e)}function $p(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Ln(e)}function Up(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new v(-200,e)}function ta(e,t){throw new v(-201,!1)}var b=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}(b||{}),ns;function Lu(){return ns}function ae(e){let t=ns;return ns=e,t}function Vu(e,t,n){let r=ea(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&b.Optional)return null;if(t!==void 0)return t;ta(e,"Injector")}var Gp={},Vn=Gp,zp="__NG_DI_FLAG__",oo="ngTempTokenPath",Wp="ngTokenPath",qp=/\n/gm,Zp="\u0275",Qc="__source",Gt;function Yp(){return Gt}function Ke(e){let t=Gt;return Gt=e,t}function Qp(e,t=b.Default){if(Gt===void 0)throw new v(-203,!1);return Gt===null?Vu(e,void 0,t):Gt.get(e,t&b.Optional?null:void 0,t)}function P(e,t=b.Default){return(Lu()||Qp)(se(e),t)}function p(e,t=b.Default){return P(e,Ao(t))}function Ao(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function rs(e){let t=[];for(let n=0;n ");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):Ce(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(qp,` - `)}`}function Ct(e,t){let n=e.hasOwnProperty(ro);return n?e[ro]:null}function na(e,t){e.forEach(n=>Array.isArray(n)?na(n,t):t(n))}function eh(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ju(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function th(e,t){let n=[];for(let r=0;rt;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function rh(e,t,n){let r=Yn(e,t);return r>=0?e[r|1]=n:(r=~r,nh(e,r,t,n)),r}function zi(e,t){let n=Yn(e,t);if(n>=0)return e[n|1]}function Yn(e,t){return oh(e,t,1)}function oh(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<{n.push(s)};return na(t,s=>{let a=s;os(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&zu(o,i),n}function zu(e,t){for(let n=0;n{t(i,r)})}}function os(e,t,n,r){if(e=se(e),!e)return!1;let o=null,i=qc(e),s=!i&&No(e);if(!i&&!s){let c=e.ngModule;if(i=qc(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)os(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{na(i.imports,l=>{os(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&zu(u,t)}if(!a){let u=Ct(o)||(()=>new o);t({provide:o,useFactory:u,deps:ve},o),t({provide:Hu,useValue:o,multi:!0},o),t({provide:jn,useValue:()=>P(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;ra(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function ra(e,t){for(let n of e)ku(n)&&(n=n.\u0275providers),Array.isArray(n)?ra(n,t):t(n)}var ah=k({provide:String,useValue:k});function Wu(e){return e!==null&&typeof e=="object"&&ah in e}function ch(e){return!!(e&&e.useExisting)}function uh(e){return!!(e&&e.useFactory)}function qt(e){return typeof e=="function"}function lh(e){return!!e.useClass}var xo=new I(""),Kr={},dh={},Wi;function oa(){return Wi===void 0&&(Wi=new io),Wi}var Et=class{},Bn=class extends Et{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,ss(t,s=>this.processProvider(s)),this.records.set(Bu,Ht(void 0,this)),o.has("environment")&&this.records.set(Et,Ht(void 0,this));let i=this.records.get(xo);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Hu,ve,b.Self))}destroy(){Fn(this),this._destroyed=!0;let t=D(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(),D(t)}}onDestroy(t){return Fn(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Fn(this);let n=Je(this),r=ae(void 0),o;try{return t()}finally{Je(n),ae(r)}}get(t,n=Vn,r=b.Default){if(Fn(this),t.hasOwnProperty(Yc))return t[Yc](this);r=Ao(r);let o,i=Je(this),s=ae(void 0);try{if(!(r&b.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=mh(t)&&ea(t);u&&this.injectableDefInScope(u)?c=Ht(is(t),Kr):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&b.Self?oa():this.parent;return n=r&b.Optional&&n===Vn?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[oo]=a[oo]||[]).unshift(Ce(t)),i)throw a;return Jp(a,t,"R3InjectorError",this.source)}else throw a}finally{ae(s),Je(i)}}resolveInjectorInitializers(){let t=D(null),n=Je(this),r=ae(void 0),o;try{let i=this.get(jn,ve,b.Self);for(let s of i)s()}finally{Je(n),ae(r),D(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(Ce(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=se(t);let n=qt(t)?t:se(t&&t.provide),r=ph(t);if(!qt(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Ht(void 0,Kr,!0),o.factory=()=>rs(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=D(null);try{return n.value===Kr&&(n.value=dh,n.value=n.factory()),typeof n.value=="object"&&n.value&&gh(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{D(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=se(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 is(e){let t=ea(e),n=t!==null?t.factory:Ct(e);if(n!==null)return n;if(e instanceof I)throw new v(204,!1);if(e instanceof Function)return fh(e);throw new v(204,!1)}function fh(e){if(e.length>0)throw new v(204,!1);let n=Lp(e);return n!==null?()=>n.factory(e):()=>new e}function ph(e){if(Wu(e))return Ht(void 0,e.useValue);{let t=qu(e);return Ht(t,Kr)}}function qu(e,t,n){let r;if(qt(e)){let o=se(e);return Ct(o)||is(o)}else if(Wu(e))r=()=>se(e.useValue);else if(uh(e))r=()=>e.useFactory(...rs(e.deps||[]));else if(ch(e))r=()=>P(se(e.useExisting));else{let o=se(e&&(e.useClass||e.provide));if(hh(e))r=()=>new o(...rs(e.deps));else return Ct(o)||is(o)}return r}function Fn(e){if(e.destroyed)throw new v(205,!1)}function Ht(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function hh(e){return!!e.deps}function gh(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function mh(e){return typeof e=="function"||typeof e=="object"&&e instanceof I}function ss(e,t){for(let n of e)Array.isArray(n)?ss(n,t):n&&ku(n)?ss(n.\u0275providers,t):t(n)}function Zu(e,t){e instanceof Bn&&Fn(e);let n,r=Je(e),o=ae(void 0);try{return t()}finally{Je(r),ae(o)}}function Yu(){return Lu()!==void 0||Yp()!=null}function rn(e){if(!Yu())throw new v(-203,!1)}var Ze=0,C=1,m=2,Ee=3,Ae=4,fe=5,Zt=6,so=7,te=8,Yt=9,Ge=10,W=11,Hn=12,Kc=13,on=14,de=15,Qt=16,$t=17,Kt=18,Oo=19,Qu=20,Xe=21,Jr=22,wt=23,le=24,Y=25,Ku=1;var $n=7,yh=8,ao=9,ce=10,co=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(co||{});function et(e){return Array.isArray(e)&&typeof e[Ku]=="object"}function Tt(e){return Array.isArray(e)&&e[Ku]===!0}function Ju(e){return(e.flags&4)!==0}function Fo(e){return e.componentOffset>-1}function ia(e){return(e.flags&1)===1}function tt(e){return!!e.template}function as(e){return(e[m]&512)!==0}var cs=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Xu(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var el=(()=>{let e=()=>tl;return e.ngInherit=!0,e})();function tl(e){return e.type.prototype.ngOnChanges&&(e.setInput=Dh),vh}function vh(){let e=rl(this),t=e?.current;if(t){let n=e.previous;if(n===Wt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Dh(e,t,n,r,o){let i=this.declaredInputs[r],s=rl(e)||Ch(e,{previous:Wt,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new cs(u&&u.currentValue,n,c===Wt),Xu(e,t,o,n)}var nl="__ngSimpleChanges__";function rl(e){return e[nl]||null}function Ch(e,t){return e[nl]=t}var Jc=null;var xe=function(e,t,n){Jc?.(e,t,n)},Eh="svg",wh="math";function ze(e){for(;Array.isArray(e);)e=e[Ze];return e}function ol(e,t){return ze(t[e])}function Pe(e,t){return ze(t[e.index])}function sa(e,t){return e.data[t]}function il(e,t){return e[t]}function it(e,t){let n=t[e];return et(n)?n:n[Ze]}function aa(e){return(e[m]&128)===128}function Jt(e,t){return t==null?null:e[t]}function sl(e){e[$t]=0}function ca(e){e[m]&1024||(e[m]|=1024,aa(e)&&Qn(e))}function Ih(e,t){for(;e>0;)t=t[on],e--;return t}function Ro(e){return!!(e[m]&9216||e[le]?.dirty)}function us(e){e[Ge].changeDetectionScheduler?.notify(9),e[m]&64&&(e[m]|=1024),Ro(e)&&Qn(e)}function Qn(e){e[Ge].changeDetectionScheduler?.notify(0);let t=It(e);for(;t!==null&&!(t[m]&8192||(t[m]|=8192,!aa(t)));)t=It(t)}function al(e,t){if((e[m]&256)===256)throw new v(911,!1);e[Xe]===null&&(e[Xe]=[]),e[Xe].push(t)}function _h(e,t){if(e[Xe]===null)return;let n=e[Xe].indexOf(t);n!==-1&&e[Xe].splice(n,1)}function It(e){let t=e[Ee];return Tt(t)?t[Ee]:t}var E={lFrame:vl(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var ls=!1;function bh(){return E.lFrame.elementDepthCount}function Mh(){E.lFrame.elementDepthCount++}function Sh(){E.lFrame.elementDepthCount--}function cl(){return E.bindingsEnabled}function ul(){return E.skipHydrationRootTNode!==null}function Th(e){return E.skipHydrationRootTNode===e}function Ah(){E.skipHydrationRootTNode=null}function A(){return E.lFrame.lView}function Q(){return E.lFrame.tView}function ke(e){return E.lFrame.contextLView=e,e[te]}function Le(e){return E.lFrame.contextLView=null,e}function pe(){let e=ll();for(;e!==null&&e.type===64;)e=e.parent;return e}function ll(){return E.lFrame.currentTNode}function Nh(){let e=E.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function sn(e,t){let n=E.lFrame;n.currentTNode=e,n.isParent=t}function dl(){return E.lFrame.isParent}function fl(){E.lFrame.isParent=!1}function xh(){return E.lFrame.contextLView}function pl(){return ls}function uo(e){let t=ls;return ls=e,t}function Oh(){let e=E.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Fh(){return E.lFrame.bindingIndex}function Rh(e){return E.lFrame.bindingIndex=e}function Kn(){return E.lFrame.bindingIndex++}function hl(e){let t=E.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Ph(){return E.lFrame.inI18n}function kh(e,t){let n=E.lFrame;n.bindingIndex=n.bindingRootIndex=e,ds(t)}function Lh(){return E.lFrame.currentDirectiveIndex}function ds(e){E.lFrame.currentDirectiveIndex=e}function Vh(e){let t=E.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function gl(e){E.lFrame.currentQueryIndex=e}function jh(e){let t=e[C];return t.type===2?t.declTNode:t.type===1?e[fe]:null}function ml(e,t,n){if(n&b.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&b.Host);)if(o=jh(i),o===null||(i=i[on],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=E.lFrame=yl();return r.currentTNode=t,r.lView=e,!0}function ua(e){let t=yl(),n=e[C];E.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function yl(){let e=E.lFrame,t=e===null?null:e.child;return t===null?vl(e):t}function vl(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=E.lFrame;return E.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Cl=Dl;function la(){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 Bh(e){return(E.lFrame.contextLView=Ih(e,E.lFrame.contextLView))[te]}function Ye(){return E.lFrame.selectedIndex}function _t(e){E.lFrame.selectedIndex=e}function El(){let e=E.lFrame;return sa(e.tView,e.selectedIndex)}function Hh(){return E.lFrame.currentNamespace}var wl=!0;function da(){return wl}function fa(e){wl=e}function $h(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=tl(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 pa(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[$t]+=65536),(a>14>16&&(e[m]&3)===t&&(e[m]+=16384,Xc(a,i)):Xc(a,i)}var zt=-1,bt=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function Gh(e){return e instanceof bt}function zh(e){return(e.flags&8)!==0}function Wh(e){return(e.flags&16)!==0}function fs(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;i>16}function gs(e,t){let n=Qh(e),r=t;for(;n>0;)r=r[on],n--;return r}var ms=!0;function lo(e){let t=ms;return ms=e,t}var Kh=256,_l=Kh-1,bl=5,Jh=0,Oe={};function Xh(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Pn)&&(r=n[Pn]),r==null&&(r=n[Pn]=Jh++);let o=r&_l,i=1<>bl)]|=i}function fo(e,t){let n=Ml(e,t);if(n!==-1)return n;let r=t[C];r.firstCreatePass&&(e.injectorIndex=t.length,Yi(r.data,e),Yi(t,null),Yi(r.blueprint,null));let o=Sl(e,t),i=e.injectorIndex;if(Yh(o)){let s=hs(o),a=gs(o,t),c=a[C].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function Yi(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ml(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Sl(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=Fl(o),r===null)return zt;if(n++,o=o[on],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return zt}function ys(e,t,n){Xh(e,t,n)}function Tl(e,t,n){if(n&b.Optional||e!==void 0)return e;ta(t,"NodeInjector")}function Al(e,t,n,r){if(n&b.Optional&&r===void 0&&(r=null),!(n&(b.Self|b.Host))){let o=e[Yt],i=ae(void 0);try{return o?o.get(t,r,n&b.Optional):Vu(t,r,n&b.Optional)}finally{ae(i)}}return Tl(r,t,n)}function Nl(e,t,n,r=b.Default,o){if(e!==null){if(t[m]&2048&&!(r&b.Self)){let s=og(e,t,n,r,Oe);if(s!==Oe)return s}let i=xl(e,t,n,r,Oe);if(i!==Oe)return i}return Al(t,n,r,o)}function xl(e,t,n,r,o){let i=ng(n);if(typeof i=="function"){if(!ml(t,e,r))return r&b.Host?Tl(o,n,r):Al(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&b.Optional))ta(n);else return s}finally{Cl()}}else if(typeof i=="number"){let s=null,a=Ml(e,t),c=zt,u=r&b.Host?t[de][fe]:null;for((a===-1||r&b.SkipSelf)&&(c=a===-1?Sl(e,t):t[a+8],c===zt||!nu(r,!1)?a=-1:(s=t[C],a=hs(c),t=gs(c,t)));a!==-1;){let l=t[C];if(tu(i,a,l.data)){let d=eg(a,t,n,s,r,u);if(d!==Oe)return d}c=t[a+8],c!==zt&&nu(r,t[C].data[a+8]===u)&&tu(i,a,t)?(s=l,a=hs(c),t=gs(c,t)):a=-1}}return o}function eg(e,t,n,r,o,i){let s=t[C],a=s.data[e+8],c=r==null?Fo(a)&&ms:r!=s&&(a.type&3)!==0,u=o&b.Host&&i===a,l=tg(a,s,n,c,u);return l!==null?Xt(t,s,l,a):Oe}function tg(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=c&&g.type===n)return f}if(o){let f=s[c];if(f&&tt(f)&&f.type===n)return c}return null}function Xt(e,t,n,r){let o=e[n],i=t.data;if(Gh(o)){let s=o;s.resolving&&Up($p(i[n]));let a=lo(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?ae(s.injectImpl):null,l=ml(e,r,b.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&$h(n,i[n],t)}finally{u!==null&&ae(u),lo(a),s.resolving=!1,Cl()}}return o}function ng(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Pn)?e[Pn]:void 0;return typeof t=="number"?t>=0?t&_l:rg:t}function tu(e,t,n){let r=1<>bl)]&r)}function nu(e,t){return!(e&b.Self)&&!(e&b.Host&&t)}var po=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Nl(this._tNode,this._lView,t,Ao(r),n)}};function rg(){return new po(pe(),A())}function Ol(e){return So(()=>{let t=e.prototype.constructor,n=t[ro]||vs(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[ro]||vs(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function vs(e){return Fu(e)?()=>{let t=vs(se(e));return t&&t()}:Ct(e)}function og(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[m]&2048&&!(s[m]&512);){let a=xl(i,s,n,r|b.Self,Oe);if(a!==Oe)return a;let c=i.parent;if(!c){let u=s[Qu];if(u){let l=u.get(n,Oe,r);if(l!==Oe)return l}c=Fl(s),s=s[on]}i=c}return o}function Fl(e){let t=e[C],n=t.type;return n===2?t.declTNode:n===1?e[fe]:null}function ru(e,t=null,n=null,r){let o=ig(e,t,n,r);return o.resolveInjectorInitializers(),o}function ig(e,t=null,n=null,r,o=new Set){let i=[n||ve,sh(e)];return r=r||(typeof e=="object"?void 0:Ce(e)),new Bn(i,t||oa(),r||null,o)}var ne=class e{static THROW_IF_NOT_FOUND=Vn;static NULL=new io;static create(t,n){if(Array.isArray(t))return ru({name:""},n,t,"");{let r=t.name??"";return ru({name:r},t.parent,t.providers,r)}}static \u0275prov=w({token:e,providedIn:"any",factory:()=>P(Bu)});static __NG_ELEMENT_ID__=-1};var sg=new I("");sg.__NG_ELEMENT_ID__=e=>{let t=pe();if(t===null)throw new v(204,!1);if(t.type&2)return t.value;if(e&b.Optional)return null;throw new v(204,!1)};var Rl=!1,Ve=(()=>{class e{static __NG_ELEMENT_ID__=ag;static __NG_ENV_ID__=n=>n}return e})(),ho=class extends Ve{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return al(this._lView,t),()=>_h(this._lView,t)}};function ag(){return new ho(A())}var nt=class{},Po=new I("",{providedIn:"root",factory:()=>!1});var Pl=new I(""),ha=new I(""),an=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Sn(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}return e})(),kl=(()=>{class e{internalPendingTasks=p(an);scheduler=p(nt);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(12),this.internalPendingTasks.remove(n))}}async run(n){let r=this.add();try{return await n()}finally{r()}}static \u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}return e})(),Ds=class extends me{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Yu()&&(this.destroyRef=p(Ve,{optional:!0})??void 0,this.pendingTasks=p(an,{optional:!0})??void 0)}emit(t){let n=D(null);try{super.next(t)}finally{D(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 q&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},De=Ds;function Gn(...e){}function Ll(e){let t,n;function r(){e=Gn;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 ou(e){return queueMicrotask(()=>e()),()=>{e=Gn}}var ga="isAngularZone",go=ga+"_ID",cg=0,z=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new De(!1);onMicrotaskEmpty=new De(!1);onStable=new De(!1);onError=new De(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Rl}=t;if(typeof Zone>"u")throw new v(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,dg(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(ga)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new v(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new v(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,ug,Gn,Gn);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)}},ug={};function ma(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 lg(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Ll(()=>{e.callbackScheduled=!1,Cs(e),e.isCheckStableRunning=!0,ma(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Cs(e)}function dg(e){let t=()=>{lg(e)},n=cg++;e._inner=e._inner.fork({name:"angular",properties:{[ga]:!0,[go]:n,[go+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(fg(c))return r.invokeTask(i,s,a,c);try{return iu(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),su(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return iu(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!pg(c)&&t(),su(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Cs(e),ma(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 Cs(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function iu(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function su(e){e._nesting--,ma(e)}var mo=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new De;onMicrotaskEmpty=new De;onStable=new De;onError=new De;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 fg(e){return Vl(e,"__ignore_ng_zone__")}function pg(e){return Vl(e,"__scheduler_tick__")}function Vl(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Fe=class{_console=console;handleError(t){this._console.error("ERROR",t)}},hg=new I("",{providedIn:"root",factory:()=>{let e=p(z),t=p(Fe);return n=>e.runOutsideAngular(()=>t.handleError(n))}}),Es=class{destroyed=!1;listeners=null;errorHandler=p(Fe,{optional:!0});destroyRef=p(Ve);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new v(953,!1);return(this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?.indexOf(t);n!==void 0&&n!==-1&&this.listeners?.splice(n,1)}}}emit(t){if(this.destroyed)throw new v(953,!1);if(this.listeners===null)return;let n=D(null);try{for(let r of this.listeners)try{r(t)}catch(o){this.errorHandler?.handleError(o)}}finally{D(n)}}};function jl(e){return new Es}function au(e,t){return Ou(e,t)}function gg(e){return Ou(xu,e)}var st=(au.required=gg,au);function mg(){return Bl(pe(),A())}function Bl(e,t){return new Jn(Pe(e,t))}var Jn=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=mg}return e})();function Hl(e){return(e.flags&128)===128}var $l=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}($l||{}),Ul=new Map,yg=0;function vg(){return yg++}function Dg(e){Ul.set(e[Oo],e)}function ws(e){Ul.delete(e[Oo])}var cu="__ngContext__";function Mt(e,t){et(t)?(e[cu]=t[Oo],Dg(t)):e[cu]=t}function Gl(e){return Wl(e[Hn])}function zl(e){return Wl(e[Ae])}function Wl(e){for(;e!==null&&!Tt(e);)e=e[Ae];return e}var Is;function ql(e){Is=e}function Zl(){if(Is!==void 0)return Is;if(typeof document<"u")return document;throw new v(210,!1)}var ya=new I("",{providedIn:"root",factory:()=>Cg}),Cg="ng",va=new I(""),we=new I("",{providedIn:"platform",factory:()=>"unknown"});var Da=new I("",{providedIn:"root",factory:()=>Zl().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Eg="h",wg="b";var Yl=!1,Ig=new I("",{providedIn:"root",factory:()=>Yl});var _g=()=>null;function Ca(e,t,n=!1){return _g(e,t,n)}var Re=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Re||{}),zr;function bg(){if(zr===void 0&&(zr=null,kn.trustedTypes))try{zr=kn.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return zr}function ko(e){return bg()?.createHTML(e)||e}var Wr;function Mg(){if(Wr===void 0&&(Wr=null,kn.trustedTypes))try{Wr=kn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Wr}function uu(e){return Mg()?.createHTML(e)||e}var yo=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Nu})`}};function Lo(e){return e instanceof yo?e.changingThisBreaksApplicationSecurity:e}function Ql(e,t){let n=Sg(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Nu})`)}return n===t}function Sg(e){return e instanceof yo&&e.getTypeName()||null}function Tg(e){let t=new bs(e);return Ag()?new _s(t):t}var _s=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let n=new window.DOMParser().parseFromString(ko(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},bs=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=ko(t),n}};function Ag(){try{return!!new window.DOMParser().parseFromString(ko(""),"text/html")}catch{return!1}}var Ng=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Kl(e){return e=String(e),e.match(Ng)?e:"unsafe:"+e}function Qe(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Xn(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var Jl=Qe("area,br,col,hr,img,wbr"),Xl=Qe("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ed=Qe("rp,rt"),xg=Xn(ed,Xl),Og=Xn(Xl,Qe("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Fg=Xn(ed,Qe("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),lu=Xn(Jl,Og,Fg,xg),td=Qe("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Rg=Qe("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Pg=Qe("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),kg=Xn(td,Rg,Pg),Lg=Qe("script,style,template"),Ms=class{sanitizedSomething=!1;buf=[];sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=Bg(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=jg(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=du(t).toLowerCase();if(!lu.hasOwnProperty(n))return this.sanitizedSomething=!0,!Lg.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o"),!0}endElement(t){let n=du(t).toLowerCase();lu.hasOwnProperty(n)&&!Jl.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(fu(t))}};function Vg(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function jg(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw nd(t);return t}function Bg(e){let t=e.firstChild;if(t&&Vg(e,t))throw nd(t);return t}function du(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function nd(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var Hg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$g=/([^\#-~ |!])/g;function fu(e){return e.replace(/&/g,"&").replace(Hg,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace($g,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var qr;function rd(e,t){let n=null;try{qr=qr||Tg(e);let r=t?String(t):"";n=qr.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=qr.getInertBodyElement(r)}while(r!==i);let a=new Ms().sanitizeChildren(pu(n)||n);return ko(a)}finally{if(n){let r=pu(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function pu(e){return"content"in e&&Ug(e)?e.content:null}function Ug(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var Ea=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Ea||{});function er(e){let t=Gg();return t?uu(t.sanitize(Ea.HTML,e)||""):Ql(e,"HTML")?uu(Lo(e)):rd(Zl(),Ln(e))}function Gg(){let e=A();return e&&e[Ge].sanitizer}var rt=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(rt||{}),We=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(We||{}),zg;function wa(e,t){return zg(e,t)}function Ut(e,t,n,r,o){if(r!=null){let i,s=!1;Tt(r)?i=r:et(r)&&(s=!0,r=r[Ze]);let a=ze(r);e===0&&n!==null?o==null?cd(t,n,a):Ss(t,n,a,o||null,!0):e===1&&n!==null?Ss(t,n,a,o||null,!0):e===2?om(t,a,s):e===3&&t.destroyNode(a),i!=null&&sm(t,e,i,n,o)}}function Wg(e,t){return e.createText(t)}function qg(e,t,n){e.setValue(t,n)}function od(e,t,n){return e.createElement(t,n)}function Zg(e,t){id(e,t),t[Ze]=null,t[fe]=null}function Yg(e,t,n,r,o,i){r[Ze]=o,r[fe]=t,Vo(e,r,n,1,o,i)}function id(e,t){t[Ge].changeDetectionScheduler?.notify(10),Vo(e,t,t[W],2,null,null)}function Qg(e){let t=e[Hn];if(!t)return Qi(e[C],e);for(;t;){let n=null;if(et(t))n=t[Hn];else{let r=t[ce];r&&(n=r)}if(!n){for(;t&&!t[Ae]&&t!==e;)et(t)&&Qi(t[C],t),t=t[Ee];t===null&&(t=e),et(t)&&Qi(t[C],t),n=t&&t[Ae]}t=n}}function Kg(e,t,n,r){let o=ce+r,i=n.length;r>0&&(n[o-1][Ae]=t),r0&&(e[n-1][Ae]=r[Ae]);let i=ju(e,ce+t);Zg(r[C],r);let s=i[Kt];s!==null&&s.detachView(i[C]),r[Ee]=null,r[Ae]=null,r[m]&=-129}return r}function ba(e,t){if(!(t[m]&256)){let n=t[W];n.destroyNode&&Vo(e,t,n,3,null,null),Qg(t)}}function Qi(e,t){if(t[m]&256)return;let n=D(null);try{t[m]&=-129,t[m]|=256,t[le]&&Rt(t[le]),Xg(e,t),Jg(e,t),t[C].type===1&&t[W].destroy();let r=t[Qt];if(r!==null&&Tt(t[Ee])){r!==t[Ee]&&Ia(r,t);let o=t[Kt];o!==null&&o.detachView(e)}ws(t)}finally{D(n)}}function Jg(e,t){let n=e.cleanup,r=t[so];if(n!==null)for(let s=0;s=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[so]=null);let o=t[Xe];if(o!==null){t[Xe]=null;for(let s=0;s-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===Re.None||i===Re.Emulated)return null}return Pe(r,n)}}function Ss(e,t,n,r,o){e.insertBefore(t,n,r,o)}function cd(e,t,n){e.appendChild(t,n)}function hu(e,t,n,r,o){r!==null?Ss(e,t,n,r,o):cd(e,t,n)}function tm(e,t){return e.parentNode(t)}function ud(e,t,n){return rm(e,t,n)}function nm(e,t,n){return e.type&40?Pe(e,n):null}var rm=nm,gu;function Ma(e,t,n,r){let o=ad(e,r,t),i=t[W],s=r.parent||t[fe],a=ud(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(Te(r))return!1;s=!0}}}}return Te(r)||s}function Te(e){return(e&1)===0}function pm(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Te(s)&&(t+=mu(i,o),o=""),r=s,i=i||!Te(r);n++}return o!==""&&(t+=mu(i,o)),t}function Dm(e){return e.map(vm).join(",")}function Cm(e){let t=[],n=[],r=1,o=2;for(;rY&&md(e,t,Y,!1),xe(s?2:0,o),n(r,o)}finally{_t(i),xe(s?3:1,o)}}function Cd(e,t,n){if(Ju(t)){let r=D(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function Sm(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return ul()&&(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 yu(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=rt.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?vu(r,n,u,a,c):vu(r,n,u,a)}return r}function vu(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 Tm(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;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Fm(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;Fo(n)&&Bm(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||fo(n,t),Mt(r,t);let s=n.initialInputs;for(let a=o;a{Qn(e.lView)},consumerOnSignalRead(){this.lView[le]=this}});function ey(e){let t=e[le]??Object.create(ty);return t.lView=e,t}var ty=O(S({},pt),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=It(e.lView);for(;t&&!Pd(t[C]);)t=It(t);t&&ca(t)},consumerOnSignalRead(){this.lView[le]=this}});function Pd(e){return e.type!==2}function kd(e){if(e[wt]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[wt])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[m]&8192)}}var ny=100;function Ld(e,t=!0,n=0){let o=e[Ge].rendererFactory,i=!1;i||o.begin?.();try{ry(e,n)}catch(s){throw t&&Nd(e,s),s}finally{i||o.end?.()}}function ry(e,t){let n=pl();try{uo(!0),xs(e,t);let r=0;for(;Ro(e);){if(r===ny)throw new v(103,!1);r++,xs(e,1)}}finally{uo(n)}}function oy(e,t,n,r){let o=t[m];if((o&256)===256)return;let i=!1,s=!1;ua(t);let a=!0,c=null,u=null;i||(Pd(e)?(u=Qm(t),c=Ft(u)):nc()===null?(a=!1,u=ey(t),c=Ft(u)):t[le]&&(Rt(t[le]),t[le]=null));try{sl(t),Rh(e.bindingStartIndex),n!==null&&Dd(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Xr(t,f,null)}else{let f=e.preOrderHooks;f!==null&&eo(t,f,0,null),qi(t,0)}if(s||iy(t),kd(t),Vd(t,0),e.contentQueries!==null&&Ad(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&Xr(t,f)}else{let f=e.contentHooks;f!==null&&eo(t,f,1),qi(t,1)}Em(e,t);let d=e.components;d!==null&&Bd(t,d,0);let h=e.viewQuery;if(h!==null&&Ns(2,h,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Xr(t,f)}else{let f=e.viewHooks;f!==null&&eo(t,f,2),qi(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Jr]){for(let f of t[Jr])f();t[Jr]=null}i||(t[m]&=-73)}catch(l){throw i||Qn(t),l}finally{u!==null&&(bn(u,c),a&&Jm(u)),la()}}function Vd(e,t){for(let n=Gl(e);n!==null;n=zl(n))for(let r=ce;r-1&&(_a(t,r),ju(n,r))}this._attachedToViewContainer=!1}ba(this._lView[C],this._lView)}onDestroy(t){al(this._lView,t)}markForCheck(){Fa(this._cdRefInjectingView||this._lView,4)}markForRefresh(){ca(this._cdRefInjectingView||this._lView)}detach(){this._lView[m]&=-129}reattach(){us(this._lView),this._lView[m]|=128}detectChanges(){this._lView[m]|=1024,Ld(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new v(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=as(this._lView),n=this._lView[Qt];n!==null&&!t&&Ia(n,this._lView),id(this._lView[C],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new v(902,!1);this._appRef=t;let n=as(this._lView),r=this._lView[Qt];r!==null&&!n&&sd(r,this._lView),us(this._lView)}};var O_=new RegExp(`^(\\d+)*(${wg}|${Eg})*(.*)`);var ay=()=>null;function Uo(e,t){return ay(e,t)}var Os=class{},Do=class{},Fs=class{resolveComponentFactory(t){throw Error(`No component factory found for ${Ce(t)}.`)}},Wn=class{static NULL=new Fs},en=class{},Go=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>cy()}return e})();function cy(){let e=A(),t=pe(),n=it(t.index,e);return(et(n)?n:e)[W]}var uy=(()=>{class e{static \u0275prov=w({token:e,providedIn:"root",factory:()=>null})}return e})();function Rs(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&fd(e,n,i.join(" "))}}function my(e,t,n){let r=e.projection=[];for(let o=0;o!1;function Dy(e,t,n){return vy(e,t,n)}var Cu=new Set;function Be(e){Cu.has(e)||(Cu.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function Cy(e){return typeof e=="function"&&e[J]!==void 0}function R(e,t){Be("NgSignals");let n=pc(e),r=n[J];return t?.equal&&(r.equal=t.equal),n.set=o=>Er(r,o),n.update=o=>hc(r,o),n.asReadonly=Ey.bind(n),n}function Ey(){let e=this[J];if(e.readonlyFn===void 0){let t=()=>this();t[J]=e,e.readonlyFn=t}return e.readonlyFn}function Hd(e){return Cy(e)&&typeof e.set=="function"}var $d=!0,tn=class{};var Co=class extends tn{injector;componentFactoryResolver=new Ps(this);instance=null;constructor(t){super();let n=new Bn([...t.providers,{provide:tn,useValue:this},{provide:Wn,useValue:this.componentFactoryResolver}],t.parent||oa(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function wy(e,t,n=null){return new Co({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Iy=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Gu(!1,n.type),o=r.length>0?wy([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 \u0275prov=w({token:e,providedIn:"environment",factory:()=>new e(P(Et))})}return e})();function re(e){return So(()=>{let t=Gd(e),n=O(S({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===$l.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(Iy).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Re.Emulated,styles:e.styles||ve,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Be("NgStandalone"),zd(n);let r=e.dependencies;return n.directiveDefs=wu(r,!1),n.pipeDefs=wu(r,!0),n.id=My(n),n})}function _y(e){return No(e)||$u(e)}function by(e){return e!==null}function zo(e){return So(()=>({type:e.type,bootstrap:e.bootstrap||ve,declarations:e.declarations||ve,imports:e.imports||ve,exports:e.exports||ve,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Eu(e,t){if(e==null)return Wt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=rt.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==rt.None?[r,a]:r,t[i]=s):n[i]=r}return n}function un(e){return So(()=>{let t=Gd(e);return zd(t),t})}function Ud(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??$d,onDestroy:e.type.prototype.ngOnDestroy||null}}function Gd(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||Wt,exportAs:e.exportAs||null,standalone:e.standalone??$d,signals:e.signals===!0,selectors:e.selectors||ve,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Eu(e.inputs,t),outputs:Eu(e.outputs),debugInfo:null}}function zd(e){e.features?.forEach(t=>t(e))}function wu(e,t){if(!e)return null;let n=t?Uu:_y;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(by)}function My(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 Sy(e){return Object.getPrototypeOf(e.prototype).constructor}function ln(e){let t=Sy(e.type),n=!0,r=[e];for(;t;){let o;if(tt(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new v(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=Zr(e.inputs),s.inputTransforms=Zr(e.inputTransforms),s.declaredInputs=Zr(e.declaredInputs),s.outputs=Zr(e.outputs);let a=o.hostBindings;a&&Oy(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&Ny(e,c),u&&xy(e,u),Ty(e,o),Pp(e.outputs,o.outputs),tt(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=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Un(o.hostAttrs,n=Un(n,o.hostAttrs))}}function Zr(e){return e===Wt?{}:e===ve?[]:e}function Ny(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 Oy(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function Fy(e,t,n){return e[t]=n}function qe(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Ry(e,t,n,r){let o=qe(e,t,n);return qe(e,t+1,r)||o}function Py(e){return(e.flags&32)===32}function ky(e,t,n,r,o,i,s,a,c){let u=t.consts,l=cn(t,e,4,s||null,a||null);bd(t,n,l,Jt(u,c)),pa(t,l);let d=l.tView=Aa(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 Eo(e,t,n,r,o,i,s,a,c,u){let l=n+Y,d=t.firstCreatePass?ky(l,t,e,r,o,i,s,a,c):t.data[l];sn(d,!1);let h=Ly(t,e,d,n);da()&&Ma(t,e,h,d),Mt(h,e);let f=Um(h,e,h,d);return e[l]=f,Na(e,f),Dy(f,d,e),ia(d)&&Ed(t,e,d),c!=null&&wd(e,d,u),d}function he(e,t,n,r,o,i,s,a){let c=A(),u=Q(),l=Jt(u.consts,i);return Eo(c,u,e,t,n,r,o,l,s,a),he}var Ly=Vy;function Vy(e,t,n,r){return fa(!0),t[W].createComment("")}var jy=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}return e})();var Wd=new I("");function tr(e){return!!e&&typeof e.then=="function"}function qd(e){return!!e&&typeof e.subscribe=="function"}var By=new I("");var Zd=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=p(By,{optional:!0})??[];injector=p(ne);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Zu(this.injector,o);if(tr(i))n.push(i);else if(qd(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Yd=(()=>{class e{static \u0275prov=w({token:e,providedIn:"root",factory:()=>new wo})}return e})(),wo=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}},Hy=new I("");function $y(){fc(()=>{throw new v(600,!1)})}function Uy(e){return e.isBoundToModule}var Gy=10;function zy(e,t,n){try{let r=n();return tr(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var nr=(()=>{class e{_bootstrapListeners=[];_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=p(hg);afterRenderManager=p(jy);zonelessEnabled=p(Po);rootEffectScheduler=p(Yd);dirtyFlags=0;deferredDirtyFlags=0;externalTestViews=new Set;afterTick=new me;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=p(an).hasPendingTasks.pipe(Ue(n=>!n));whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=p(Et);get injector(){return this._injector}bootstrap(n,r){let o=n instanceof Do;if(!this._injector.get(Zd).done){let h=!o&&ih(n),f=!1;throw new v(405,f)}let s;o?s=n:s=this._injector.get(Wn).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=Uy(s)?void 0:this._injector.get(tn),c=r||s.selector,u=s.create(ne.NULL,[],c,a),l=u.location.nativeElement,d=u.injector.get(Wd,null);return d?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),to(this.components,u),d?.unregisterApplication(l)}),this._loadComponent(u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new v(101,!1);let n=D(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,D(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(en,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++Ro(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;to(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(Hy,[]);[...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),()=>to(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new v(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function to(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Wy(e,t,n,r){if(!n&&!Ro(e))return;Ld(e,t,n&&!r?0:1)}function qy(e,t,n,r){return qe(e,Kn(),n)?t+Ln(n)+r:je}function Zy(e,t,n,r,o,i){let s=Fh(),a=Ry(e,s,n,o);return hl(2),a?t+Ln(n)+r+Ln(o)+i:je}function Yr(e,t){return e<<17|t<<2}function St(e){return e>>17&32767}function Yy(e){return(e&2)==2}function Qy(e,t){return e&131071|t<<17}function Vs(e){return e|2}function nn(e){return(e&131068)>>2}function Ki(e,t){return e&-131069|t<<2}function Ky(e){return(e&1)===1}function js(e){return e|1}function Jy(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=St(s),c=nn(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Yn(d,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let h=St(e[a+1]);e[r+1]=Yr(h,a),h!==0&&(e[h+1]=Ki(e[h+1],r)),e[a+1]=Qy(e[a+1],r)}else e[r+1]=Yr(a,0),a!==0&&(e[a+1]=Ki(e[a+1],r)),a=r;else e[r+1]=Yr(c,0),a===0?a=r:e[c+1]=Ki(e[c+1],r),c=r;u&&(e[r+1]=Vs(e[r+1])),Iu(e,l,r,!0),Iu(e,l,r,!1),Xy(t,l,e,r,i),s=Yr(a,c),i?t.classBindings=s:t.styleBindings=s}function Xy(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Yn(i,t)>=0&&(n[r+1]=js(n[r+1]))}function Iu(e,t,n,r){let o=e[n+1],i=t===null,s=r?St(o):nn(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];ev(c,t)&&(a=!0,e[s+1]=r?js(u):Vs(u)),s=r?St(u):nn(u)}a&&(e[n+1]=r?Vs(o):js(o))}function ev(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Yn(e,t)>=0:!1}function B(e,t,n){let r=A(),o=Kn();if(qe(r,o,t)){let i=Q(),s=El();_d(i,s,r,e,t,r[W],n,!1)}return B}function _u(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";xa(e,n,i[s],s,r)}function Ra(e,t){return tv(e,t,null,!0),Ra}function tv(e,t,n,r){let o=A(),i=Q(),s=hl(2);if(i.firstUpdatePass&&rv(i,e,s,r),t!==je&&qe(o,s,t)){let a=i.data[Ye()];cv(i,a,o,o[W],e,o[s+1]=uv(t,n),r,s)}}function nv(e,t){return t>=e.expandoStartIndex}function rv(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Ye()],s=nv(e,n);lv(i,r)&&t===null&&!s&&(t=!1),t=ov(o,i,t,r),Jy(o,i,t,n,s,r)}}function ov(e,t,n,r){let o=Vh(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Ji(null,e,t,n,r),n=qn(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Ji(o,e,t,n,r),i===null){let c=iv(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Ji(null,e,t,c[1],r),c=qn(c,t.attrs,r),sv(e,t,r,c))}else i=av(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function iv(e,t,n){let r=n?t.classBindings:t.styleBindings;if(nn(r)!==0)return e[St(r)]}function sv(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[St(o)]=r}function av(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,h=n[o+1];h===je&&(h=d?ve:void 0);let f=d?zi(h,r):l===r?h:void 0;if(u&&!Io(f)&&(f=zi(c,r)),Io(f)&&(a=f,s))return a;let g=e[o+1];o=s?St(g):nn(g)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=zi(c,r))}return a}function Io(e){return e!==void 0}function uv(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Ce(Lo(e)))),e}function lv(e,t){return(e.flags&(t?8:16))!==0}var Bs=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function Xi(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function dv(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let c=t.length-1;for(;i<=s&&i<=c;){let u=e.at(i),l=t[i],d=Xi(i,u,i,l,n);if(d!==0){d<0&&e.updateValue(i,l),i++;continue}let h=e.at(s),f=t[c],g=Xi(s,h,c,f,n);if(g!==0){g<0&&e.updateValue(s,f),s--,c--;continue}let M=n(i,u),L=n(s,h),x=n(i,l);if(Object.is(x,L)){let $=n(c,f);Object.is($,M)?(e.swap(i,s),e.updateValue(s,f),c--,s--):e.move(s,i),e.updateValue(i,l),i++;continue}if(r??=new _o,o??=Su(e,i,s,n),Hs(e,r,i,x))e.updateValue(i,l),i++,s++;else if(o.has(x))r.set(M,e.detach(i)),s--;else{let $=e.create(i,t[i]);e.attach(i,$),i++,s++}}for(;i<=c;)Mu(e,r,n,i,t[i]),i++}else if(t!=null){let c=t[Symbol.iterator](),u=c.next();for(;!u.done&&i<=s;){let l=e.at(i),d=u.value,h=Xi(i,l,i,d,n);if(h!==0)h<0&&e.updateValue(i,d),i++,u=c.next();else{r??=new _o,o??=Su(e,i,s,n);let f=n(i,d);if(Hs(e,r,i,f))e.updateValue(i,d),i++,s++,u=c.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,u=c.next();else{let g=n(i,l);r.set(g,e.detach(i)),s--}}}for(;!u.done;)Mu(e,r,n,e.length,u.value),u=c.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(c=>{e.destroy(c)})}function Hs(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function Mu(e,t,n,r,o){if(Hs(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function Su(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var _o=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function Ie(e,t){Be("NgControlFlow");let n=A(),r=Kn(),o=n[r]!==je?n[r]:-1,i=o!==-1?bo(n,Y+o):void 0,s=0;if(qe(n,r,e)){let a=D(null);try{if(i!==void 0&&Fd(i,s),e!==-1){let c=Y+e,u=bo(n,c),l=zs(n[C],c),d=Uo(u,l.tView.ssrId),h=Bo(n,l,t,{dehydratedView:d});$o(u,h,s,Ho(l,d))}}finally{D(a)}}else if(i!==void 0){let a=Od(i,s);a!==void 0&&(a[te]=t)}}var $s=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-ce}};function Qd(e){return e}var Us=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function Wo(e,t,n,r,o,i,s,a,c,u,l,d,h){Be("NgControlFlow");let f=A(),g=Q(),M=c!==void 0,L=A(),x=a?s.bind(L[de][te]):s,$=new Us(M,x);L[Y+e]=$,Eo(f,g,e+1,t,n,r,o,Jt(g.consts,i)),M&&Eo(f,g,e+2,c,u,l,d,Jt(g.consts,h))}var Gs=class extends Bs{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-ce}at(t){return this.getLView(t)[te].$implicit}attach(t,n){let r=n[Zt];this.needsIndexUpdate||=t!==this.length,$o(this.lContainer,n,t,Ho(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,fv(this.lContainer,t)}create(t,n){let r=Uo(this.lContainer,this.templateTNode.tView.ssrId),o=Bo(this.hostLView,this.templateTNode,new $s(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){ba(t[C],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[te].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t(fa(!0),od(r,o,Hh()));function at(){return A()}var Mo="en-US";var mv=Mo;function yv(e){typeof e=="string"&&(mv=e.toLowerCase().replace(/_/g,"-"))}var vv=(e,t,n)=>{};function He(e,t,n,r){let o=A(),i=Q(),s=pe();return Kd(i,o,o[W],s,e,t,r),He}function Dv(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;ic?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Kd(e,t,n,r,o,i,s){let a=ia(r),u=e.firstCreatePass&&zm(e),l=t[te],d=Gm(t),h=!0;if(r.type&3||s){let M=Pe(r,t),L=s?s(M):M,x=d.length,$=s?be=>s(ze(be[r.index])):r.index,$e=null;if(!s&&a&&($e=Dv(e,t,o,r.index)),$e!==null){let be=$e.__ngLastListenerFn__||$e;be.__ngNextListenerFn__=i,$e.__ngLastListenerFn__=i,h=!1}else{i=Au(r,t,l,i),vv(M,o,i);let be=n.listen(L,o,i);d.push(i,be),u&&u.push(o,$,x,x+1)}}else i=Au(r,t,l,i);let f=r.outputs,g;if(h&&f!==null&&(g=f[o])){let M=g.length;if(M)for(let L=0;L-1?it(e.index,t):t;Fa(s,5);let a=Tu(t,n,r,i),c=o.__ngNextListenerFn__;for(;c;)a=Tu(t,n,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function ge(e=1){return Bh(e)}function Cv(e,t){let n=null,r=hm(e);for(let o=0;o=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function F(e,t=""){let n=A(),r=Q(),o=e+Y,i=r.firstCreatePass?cn(r,o,1,t,null):r.data[o],s=wv(r,n,i,t,e);n[o]=s,da()&&Ma(r,n,s,i),sn(i,!1)}var wv=(e,t,n,r,o)=>(fa(!0),Wg(t[W],r));function At(e){return rr("",e,""),At}function rr(e,t,n){let r=A(),o=qy(r,e,t,n);return o!==je&&xd(r,Ye(),o),rr}function ka(e,t,n,r,o){let i=A(),s=Zy(i,e,t,n,r,o);return s!==je&&xd(i,Ye(),s),ka}function or(e,t,n){Hd(t)&&(t=t());let r=A(),o=Kn();if(qe(r,o,t)){let i=Q(),s=El();_d(i,s,r,e,t,r[W],n,!1)}return or}function Zo(e,t){let n=Hd(e);return n&&e.set(t),n}function ir(e,t){let n=A(),r=Q(),o=pe();return Kd(r,n,n[W],o,e,t),ir}var ef={};function _e(e){let t=Q(),n=A(),r=e+Y,o=cn(t,r,128,null,null);return sn(o,!1),Pa(t,n,r,ef),_e}function ct(e){Be("NgLet");let t=Q(),n=A(),r=Ye();return Pa(t,n,r,e),e}function ut(e){let t=xh(),n=il(t,Y+e);if(n===ef)throw new v(314,!1);return n}function Iv(e,t,n){let r=Q();if(r.firstCreatePass){let o=tt(e);Ws(n,r.data,r.blueprint,o,!0),Ws(t,r.data,r.blueprint,o,!1)}}function Ws(e,t,n,r,o){if(e=se(e),Array.isArray(e))for(let i=0;i>20;if(qt(e)||!e.multi){let f=new bt(u,o,K),g=ts(c,t,o?l:l+h,d);g===-1?(ys(fo(a,s),i,c),es(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[g]=f,s[g]=f)}else{let f=ts(c,t,l+h,d),g=ts(c,t,l,l+h),M=f>=0&&n[f],L=g>=0&&n[g];if(o&&!L||!o&&!M){ys(fo(a,s),i,c);let x=Mv(o?bv:_v,n.length,o,r,u);!o&&L&&(n[g].providerFactory=x),es(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(x),s.push(x)}else{let x=tf(n[o?g:f],u,!o&&r);es(i,e,f>-1?f:g,x)}!o&&r&&L&&n[g].componentProviders++}}}function es(e,t,n,r){let o=qt(t),i=lh(t);if(o||i){let c=(i?se(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 tf(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function ts(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>Iv(r,o?o(e):e,t)}}function Sv(e,t){let n=e[t];return n===je?void 0:n}function Tv(e,t,n,r,o,i){let s=t+n;return qe(e,s,o)?Fy(e,s+1,i?r.call(i,o):r(o)):Sv(e,s+1)}function sr(e,t){let n=Q(),r,o=e+Y;n.firstCreatePass?(r=Av(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=Ct(r.type,!0)),s,a=ae(K);try{let c=lo(!1),u=i();return lo(c),Pa(n,A(),o,u),u}finally{ae(a)}}function Av(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function ar(e,t,n){let r=e+Y,o=A(),i=il(o,r);return Nv(o,r)?Tv(o,Oh(),t,i.transform,n,i):i.transform(n)}function Nv(e,t){return e[C].data[t].pure}var xv=(()=>{class e{zone=p(z);changeDetectionScheduler=p(nt);applicationRef=p(nr);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ov({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new z(O(S({},Fv()),{scheduleInRootZone:n})),[{provide:z,useFactory:e},{provide:jn,multi:!0,useFactory:()=>{let r=p(xv,{optional:!0});return()=>r.initialize()}},{provide:jn,multi:!0,useFactory:()=>{let r=p(Rv);return()=>{r.initialize()}}},t===!0?{provide:Pl,useValue:!0}:[],{provide:ha,useValue:n??Rl}]}function Fv(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Rv=(()=>{class e{subscription=new q;initialized=!1;zone=p(z);pendingTasks=p(an);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(()=>{z.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{z.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var nf=(()=>{class e{appRef=p(nr);taskService=p(an);ngZone=p(z);zonelessEnabled=p(Po);disableScheduling=p(Pl,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new q;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(go):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(ha,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){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 mo||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;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 8:{this.appRef.deferredDirtyFlags|=8;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 13:{this.appRef.dirtyFlags|=16,r=!0;break}case 14:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{r=!0;break}case 10:case 9:case 7:case 11:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?ou:Ll;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(go+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,ou(()=>{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 \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function rf(){return Be("NgZoneless"),ot([{provide:nt,useExisting:nf},{provide:z,useClass:mo},{provide:Po,useValue:!0},{provide:ha,useValue:!1},[]])}function Pv(){return typeof $localize<"u"&&$localize.locale||Mo}var Va=new I("",{providedIn:"root",factory:()=>p(Va,b.Optional|b.SkipSelf)||Pv()});var Zs=new I("");function Qr(e){return!e.moduleRef}function kv(e){let t=Qr(e)?e.r3Injector:e.moduleRef.injector,n=t.get(z);return n.run(()=>{Qr(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Fe,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Qr(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Zs);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Zs);s.add(i),e.moduleRef.onDestroy(()=>{to(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return zy(r,n,()=>{let i=t.get(Zd);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(Va,Mo);if(yv(s||Mo),Qr(e)){let a=t.get(nr);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(nr);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new v(-403,!1);t.push(e)}var no=null;function Vv(e=[],t){return ne.create({name:t,providers:[{provide:xo,useValue:"platform"},{provide:Zs,useValue:new Set([()=>no=null])},...e]})}function jv(e=[]){if(no)return no;let t=Vv(e);return no=t,$y(),Bv(t),t}function Bv(e){let t=e.get(va,null);Zu(e,()=>{t?.forEach(n=>n())})}var Yo=(()=>{class e{static __NG_ELEMENT_ID__=Hv}return e})();function Hv(e){return $v(pe(),A(),(e&16)===16)}function $v(e,t,n){if(Fo(e)&&!n){let r=it(e.index,t);return new zn(r,r)}else if(e.type&175){let r=t[de];return new zn(r,t)}return null}function of(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=jv(r),i=[Ov({}),{provide:nt,useExisting:nf},...n||[]],s=new Co({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return kv({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}function ja(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function ie(e,t){Be("NgSignals");let n=uc(e);return t?.equal&&(n[J].equal=t.equal),n}function ee(e){let t=D(null);try{return e()}finally{D(t)}}var sf=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=Uv}return e})();function Uv(){return new sf(A(),pe())}var Gv=!1,zv=(()=>{class e extends wo{pendingTasks=p(an);taskId=null;schedule(n){super.schedule(n),this.taskId===null&&(this.taskId=this.pendingTasks.add(),queueMicrotask(()=>this.flush()))}flush(){try{super.flush()}finally{this.taskId!==null&&(this.pendingTasks.remove(this.taskId),this.taskId=null)}}static \u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}return e})(),Ys=class{scheduler;effectFn;zone;injector;unregisterOnDestroy;watcher;constructor(t,n,r,o,i,s){this.scheduler=t,this.effectFn=n,this.zone=r,this.injector=i,this.watcher=gc(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){this.injector.get(Fe,null,{optional:!0})?.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.schedule(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function Wv(){}function af(e,t){Be("NgSignals"),!t?.injector&&rn(Wv);let n=t?.injector??p(ne),r=t?.manualCleanup!==!0?n.get(Ve):null,o=new Ys(n.get(zv),e,typeof Zone>"u"?null:Zone.current,r,n,t?.allowSignalWrites??!1),i=n.get(Yo,null,{optional:!0});return!i||!(i._lView[m]&8)?o.watcher.notify():(i._lView[Jr]??=[]).push(o.watcher.notify),o}var qv=Gv;var Qs=class{[J];constructor(t){this[J]=t}destroy(){this[J].destroy()}};function Qo(e,t){if(qv)return af(e,t);Be("NgSignals"),!t?.injector&&rn(Qo);let n=t?.injector??p(ne),r=t?.manualCleanup!==!0?n.get(Ve):null,o,i=n.get(sf,null,{optional:!0}),s=n.get(nt);return i!==null&&!t?.forceRoot?(o=Qv(i.view,s,e),r instanceof ho&&r._lView===i.view&&(r=null)):o=Kv(e,n.get(Yd),s),o.injector=n,r!==null&&(o.onDestroyFn=r.onDestroy(()=>o.destroy())),new Qs(o)}var cf=O(S({},pt),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,onDestroyFn:Gn,run(){if(this.dirty=!1,this.hasRun&&!Mn(this))return;this.hasRun=!0;let e=r=>(this.cleanupFns??=[]).push(r),t=Ft(this),n=uo(!1);try{this.maybeCleanup(),this.fn(e)}finally{uo(n),bn(this,t)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}}),Zv=O(S({},cf),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(13)},destroy(){Rt(this),this.onDestroyFn(),this.maybeCleanup()}}),Yv=O(S({},cf),{consumerMarkedDirty(){this.view[m]|=8192,Qn(this.view),this.notifier.notify(14)},destroy(){Rt(this),this.onDestroyFn(),this.maybeCleanup(),this.view[wt]?.delete(this)}});function Qv(e,t,n){let r=Object.create(Yv);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=n,e[wt]??=new Set,e[wt].add(r),r.consumerMarkedDirty(r),r}function Kv(e,t,n){let r=Object.create(Zv);return r.fn=e,r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.schedule(r),r.notifier.notify(13),r}var Z=function(e){return e[e.Idle=0]="Idle",e[e.Error=1]="Error",e[e.Loading=2]="Loading",e[e.Reloading=3]="Reloading",e[e.Resolved=4]="Resolved",e[e.Local=5]="Local",e}(Z||{});function Ko(e){e?.injector||rn(Ko);let t=e.request??(()=>null);return new Js(t,e.loader,e.equal,e.injector)}var Ks=class{value;status=R(Z.Idle);error=R(void 0);rawSetValue;constructor(t){this.value=R(void 0,{equal:t?Jv(t):void 0}),this.rawSetValue=this.value.set,this.value.set=n=>this.set(n),this.value.update=n=>this.set(n(ee(this.value)))}set(t){let n=this.value[J].version;this.rawSetValue(t),this.value[J].version!==n&&(this.onLocalValue(),this.status.set(Z.Local),this.error.set(void 0))}update(t){this.value.update(t)}isLoading=ie(()=>this.status()===Z.Loading||this.status()===Z.Reloading);hasValue(){return this.status()===Z.Resolved||this.status()===Z.Local||this.status()===Z.Reloading}asReadonly(){return this}setValueState(t,n=void 0){this.status.set(t),this.rawSetValue(n),this.error.set(void 0)}setErrorState(t){this.status.set(Z.Error),this.value.set(void 0),this.error.set(t)}},Js=class extends Ks{loaderFn;request;pendingTasks;effectRef;pendingController;resolvePendingTask=void 0;constructor(t,n,r,o){super(r),this.loaderFn=n,o=o??p(ne),this.pendingTasks=o.get(kl),this.request=ie(()=>({request:t(),reload:R(0)})),this.effectRef=Qo(this.loadEffect.bind(this),{injector:o,manualCleanup:!0}),o.get(Ve).onDestroy(()=>this.destroy())}reload(){let t=ee(this.status);return t===Z.Idle||t===Z.Loading||t===Z.Reloading?!1:(ee(this.request).reload.update(n=>n+1),!0)}destroy(){this.effectRef.destroy(),this.abortInProgressLoad(),this.setValueState(Z.Idle)}async loadEffect(){let t=ee(this.status);this.abortInProgressLoad();let n=this.request();if(n.request===void 0){this.setValueState(Z.Idle);return}n.reload()===0?this.setValueState(Z.Loading):this.status.set(Z.Reloading);let r=this.resolvePendingTask=this.pendingTasks.add(),{signal:o}=this.pendingController=new AbortController;try{let i=await ee(()=>this.loaderFn({abortSignal:o,request:n.request,previous:{status:t}}));if(o.aborted)return;this.setValueState(Z.Resolved,i)}catch(i){if(o.aborted)return;this.setErrorState(i)}finally{r()}}abortInProgressLoad(){this.pendingController?.abort(),this.pendingController=void 0,this.resolvePendingTask?.(),this.resolvePendingTask=void 0}onLocalValue(){this.abortInProgressLoad()}};function Jv(e){return(t,n)=>t===void 0||n===void 0?t===n:e(t,n)}var lf=null;function dn(){return lf}function df(e){lf??=e}var Jo=class{};var lt=new I("");function ff(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 Ba="browser",Xv="server";function fn(e){return e===Ba}function Ha(e){return e===Xv}var Xo=class{};var Ua=class extends Jo{supportsDOMEvents=!0},Ga=class e extends Ua{static makeCurrent(){df(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=tD();return n==null?null:nD(n)}resetBaseElement(){cr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return ff(document.cookie,t)}},cr=null;function tD(){return cr=cr||document.querySelector("base"),cr?cr.getAttribute("href"):null}function nD(e){return new URL(e,document.baseURI).pathname}var rD=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),za=new I(""),Df=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,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 v(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(P(za),P(z))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),ei=class{_doc;constructor(t){this._doc=t}manager},Wa="ng-app-id";function pf(e){for(let t of e)t.remove()}function hf(e,t){let n=t.createElement("style");return n.textContent=e,n}function oD(e,t,n){let r=e.head?.querySelectorAll(`style[${Wa}="${t}"]`);if(r)for(let o of r)o.textContent&&(o.removeAttribute(Wa),n.set(o.textContent,{usage:0,elements:[o]}))}function gf(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Cf=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.isServer=Ha(i),oD(n,r,this.inline),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,hf);r?.forEach(o=>this.addUsage(o,this.external,gf))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(pf(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])pf(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,hf(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,gf(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(Wa,this.appId),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(P(lt),P(ya),P(Da,8),P(we))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),$a={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"},Za=/%COMP%/g,Ef="%COMP%",iD=`_nghost-${Ef}`,sD=`_ngcontent-${Ef}`,aD=!0,cD=new I("",{providedIn:"root",factory:()=>aD});function uD(e){return sD.replace(Za,e)}function lD(e){return iD.replace(Za,e)}function wf(e,t){return t.map(n=>n.replace(Za,e))}var mf=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;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.platformIsServer=Ha(a),this.defaultRenderer=new ur(n,s,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Re.ShadowDom&&(r=O(S({},r),{encapsulation:Re.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof ti?o.applyToHost(n):o instanceof lr&&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 Re.Emulated:i=new ti(c,u,r,this.appId,l,s,a,d);break;case Re.ShadowDom:return new qa(c,u,n,r,s,a,this.nonce,d);default:i=new lr(c,u,r,l,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(r){return new(r||e)(P(Df),P(Cf),P(ya),P(cD),P(lt),P(we),P(z),P(Da))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),ur=class{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS($a[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(yf(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(yf(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 v(-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=$a[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=$a[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&(We.DashCase|We.Important)?t.style.setProperty(n,r,o&We.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&We.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=dn().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 yf(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var qa=class extends ur{sharedStylesHost;hostEl;shadowRoot;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)}},lr=class extends ur{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;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,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},ti=class extends lr{contentAttr;hostAttr;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=uD(u),this.hostAttr=lD(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}},dD=(()=>{class e extends ei{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 \u0275fac=function(r){return new(r||e)(P(lt))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),vf=["alt","control","meta","shift"],fD={"\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"},pD={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},hD=(()=>{class e extends ei{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(()=>dn().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."),vf.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=fD[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"),vf.forEach(s=>{if(s!==o){let a=pD[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 \u0275fac=function(r){return new(r||e)(P(lt))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})();function If(e,t){return of(S({rootComponent:e},gD(t)))}function gD(e){return{appProviders:[...CD,...e?.providers??[]],platformProviders:DD}}function mD(){Ga.makeCurrent()}function yD(){return new Fe}function vD(){return ql(document),document}var DD=[{provide:we,useValue:Ba},{provide:va,useValue:mD,multi:!0},{provide:lt,useFactory:vD,deps:[]}];var CD=[{provide:xo,useValue:"root"},{provide:Fe,useFactory:yD,deps:[]},{provide:za,useClass:dD,multi:!0,deps:[lt,z,we]},{provide:za,useClass:hD,multi:!0,deps:[lt]},mf,Cf,Df,{provide:en,useExisting:mf},{provide:Xo,useClass:rD,deps:[]},[]];var dt=new I("AI_PROMPT_API_TOKEN"),ft=new I("AI_TRANSLATION_API_TOKEN"),ni=new I("AI_SUMMARIZATION_API_TOKEN");function _f(){return ot([{provide:dt,useFactory:()=>{let e=p(we),t=fn(e)?window:void 0;if(t&&"ai"in t){let n=t.ai,r=n.assistant||n.languageModel;if(r)return r}}}])}function bf(){return ot([{provide:ft,useFactory:()=>{let e=p(we),t=fn(e)?window:void 0;if(t&&"translation"in t)return t.translation}}])}function Mf(){return ot([{provide:ni,useFactory:()=>{let e=p(we),t=fn(e)?window:void 0;if(t&&"ai"in t){let n=t.ai;if(n.summarizer)return n.summarizer}}}])}var Sf={providers:[rf(),_f(),bf(),Mf()]};function Ke(e,t){!t?.injector&&rn(Ke);let n=t?.injector??p(ne),r=new An(1),o=Qo(()=>{let i;try{i=e()}catch(s){ee(()=>r.error(s));return}ee(()=>r.next(i))},{injector:n,manualCleanup:!0});return n.get(Ve).onDestroy(()=>{o.destroy(),r.complete()}),r.asObservable()}function Ne(e,t){let n=!t?.manualCleanup;n&&!t?.injector&&rn(Ne);let r=n?t?.injector?.get(Ve)??p(Ve):null,o=ED(t?.equal),i;t?.requireSync?i=R({kind:0},{equal:o}):i=R({kind:1,value:t?.initialValue},{equal:o});let s=e.subscribe({next:a=>i.set({kind:1,value:a}),error:a=>{if(t?.rejectErrors)throw a;i.set({kind:2,error:a})}});if(t?.requireSync&&i().kind===0)throw new v(601,!1);return r?.onDestroy(s.unsubscribe.bind(s)),ie(()=>{let a=i();switch(a.kind){case 1:return a.value;case 2:throw a.error;case 0:throw new v(601,!1)}},{equal:t?.equal})}function ED(e=Object.is){return(t,n)=>t.kind===1&&n.kind===1&&e(t.value,n.value)}function wD(e){let t=e.userAgentData?.brands;return t!==void 0&&Array.isArray(t)}function ri(){let e=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);return e?parseInt(e[2],10):0}function ID(){return wD(navigator)?navigator.userAgentData?.brands:[]}function oi(){return ID()?.some(e=>e.brand==="Google Chrome")}var Tf=128,Af=(s=>(s.NOT_CHROME_BROWSER="Your browser is not supported. Please use Google Chrome Dev or Canary.",s.OLD_BROWSER=`Please upgrade the Chrome version to at least ${Tf} to support Prompt API.`,s.NO_PROMPT_API="Prompt API is not available, check your configuration in chrome://flags/#prompt-api-for-gemini-nano",s.API_NOT_READY="Build-in Prompt API not found in window. Please check the Prompt API's explainer in github.com/explainers-by-googlers/prompt-api",s.AFTER_DOWNLOAD="Built-in AI is not ready, please go to chrome://components and start downloading the Optimization Guide On Device Model",s.NO_LARGE_LANGUAGE_MODEL="The model of the Prompt API is not implemented. Please check your configuration in chrome://flags/#optimization-guide-on-device-model",s))(Af||{});async function _D(){if(!oi())throw new Error("Your browser is not supported. Please use Google Chrome Dev or Canary.");if(ri()(console.error(e),vt(e instanceof Error?e.message:"unknown"))))}var Vf=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}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 \u0275fac=function(r){return new(r||e)(K(Go),K(Jn))};static \u0275dir=un({type:e})}return e})(),bD=(()=>{class e extends Vf{static \u0275fac=(()=>{let n;return function(o){return(n||(n=Ol(e)))(o||e)}})();static \u0275dir=un({type:e,features:[ln]})}return e})(),jf=new I("");var MD={provide:jf,useExisting:Zn(()=>mn),multi:!0};function SD(){let e=dn()?dn().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var TD=new I(""),mn=(()=>{class e extends Vf{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!SD())}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 \u0275fac=function(r){return new(r||e)(K(Go),K(Jn),K(TD,8))};static \u0275dir=un({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&&He("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)})},standalone:!1,features:[La([MD]),ln]})}return e})();var AD=new I(""),ND=new I("");function Bf(e){return e!=null}function Hf(e){return tr(e)?Se(e):e}function $f(e){let t={};return e.forEach(n=>{t=n!=null?S(S({},t),n):t}),Object.keys(t).length===0?null:t}function Uf(e,t){return t.map(n=>n(e))}function xD(e){return!e.validate}function Gf(e){return e.map(t=>xD(t)?t:n=>t.validate(n))}function OD(e){if(!e)return null;let t=e.filter(Bf);return t.length==0?null:function(n){return $f(Uf(n,t))}}function zf(e){return e!=null?OD(Gf(e)):null}function FD(e){if(!e)return null;let t=e.filter(Bf);return t.length==0?null:function(n){let r=Uf(n,t).map(Hf);return Ui(r).pipe(Ue($f))}}function Wf(e){return e!=null?FD(Gf(e)):null}function xf(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function RD(e){return e._rawValidators}function PD(e){return e._rawAsyncValidators}function Ya(e){return e?Array.isArray(e)?e:[e]:[]}function ai(e,t){return Array.isArray(e)?e.includes(t):e===t}function Of(e,t){let n=Ya(t);return Ya(e).forEach(o=>{ai(n,o)||n.push(o)}),n}function Ff(e,t){return Ya(t).filter(n=>!ai(e,n))}var ci=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=zf(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Wf(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_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}},Qa=class extends ci{name;get formDirective(){return null}get path(){return null}},gr=class extends ci{_parent=null;name=null;valueAccessor=null},Ka=class{_cd;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}},kD={"[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"},x0=O(S({},kD),{"[class.ng-submitted]":"isSubmitted"}),li=(()=>{class e extends Ka{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(K(gr,2))};static \u0275dir=un({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&Ra("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)},standalone:!1,features:[ln]})}return e})();var dr="VALID",si="INVALID",pn="PENDING",fr="DISABLED",gn=class{},ui=class extends gn{value;source;constructor(t,n){super(),this.value=t,this.source=n}},pr=class extends gn{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},hr=class extends gn{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},hn=class extends gn{status;source;constructor(t,n){super(),this.status=t,this.source=n}};function LD(e){return(di(e)?e.validators:e)||null}function VD(e){return Array.isArray(e)?zf(e):e||null}function jD(e,t){return(di(t)?t.asyncValidators:e)||null}function BD(e){return Array.isArray(e)?Wf(e):e||null}function di(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var Ja=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){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 ee(this.statusReactive)}set status(t){ee(()=>this.statusReactive.set(t))}_status=ie(()=>this.statusReactive());statusReactive=R(void 0);get valid(){return this.status===dr}get invalid(){return this.status===si}get pending(){return this.status==pn}get disabled(){return this.status===fr}get enabled(){return this.status!==fr}errors;get pristine(){return ee(this.pristineReactive)}set pristine(t){ee(()=>this.pristineReactive.set(t))}_pristine=ie(()=>this.pristineReactive());pristineReactive=R(!0);get dirty(){return!this.pristine}get touched(){return ee(this.touchedReactive)}set touched(t){ee(()=>this.touchedReactive.set(t))}_touched=ie(()=>this.touchedReactive());touchedReactive=R(!1);get untouched(){return!this.touched}_events=new me;events=this._events.asObservable();valueChanges;statusChanges;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(Of(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Of(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Ff(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Ff(t,this._rawAsyncValidators))}hasValidator(t){return ai(this._rawValidators,t)}hasAsyncValidator(t){return ai(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(O(S({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new hr(!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 hr(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(O(S({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new pr(!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 pr(!0,r))}markAsPending(t={}){this.status=pn;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new hn(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(O(S({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=fr,this.errors=null,this._forEachChild(o=>{o.disable(O(S({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new ui(this.value,r)),this._events.next(new hn(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(O(S({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=dr,this._forEachChild(r=>{r.enable(O(S({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(O(S({},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===dr||this.status===pn)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new ui(this.value,n)),this._events.next(new hn(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(O(S({},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()?fr:dr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=pn,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=Hf(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 hn(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new De,this.statusChanges=new De}_calculateStatus(){return this._allControlsDisabled()?fr:this.errors?si:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(pn)?pn:this._anyControlsHaveStatus(si)?si:dr}_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 pr(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new hr(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){di(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=VD(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=BD(this._rawAsyncValidators)}};var qf=new I("CallSetDisabledState",{providedIn:"root",factory:()=>Xa}),Xa="always";function HD(e,t){return[...t.path,e]}function $D(e,t,n=Xa){GD(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),zD(e,t),qD(e,t),WD(e,t),UD(e,t)}function Rf(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function UD(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function GD(e,t){let n=RD(e);t.validator!==null?e.setValidators(xf(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=PD(e);t.asyncValidator!==null?e.setAsyncValidators(xf(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();Rf(t._rawValidators,o),Rf(t._rawAsyncValidators,o)}function zD(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Zf(e,t)})}function WD(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Zf(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function Zf(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function qD(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function ZD(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function YD(e){return Object.getPrototypeOf(e.constructor)===bD}function QD(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===mn?n=i:YD(i)?r=i:o=i}),o||r||n||null}function Pf(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function kf(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var KD=class extends Ja{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(LD(n),jD(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),di(n)&&(n.nonNullable||n.initialValueIsDefault)&&(kf(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){Pf(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Pf(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){kf(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 JD={provide:gr,useExisting:Zn(()=>mr)},Lf=Promise.resolve(),mr=(()=>{class e extends gr{_changeDetectorRef;callSetDisabledState;control=new KD;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new De;constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=QD(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),ZD(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(){$D(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){Lf.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&ja(r);Lf.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?HD(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(K(Qa,9),K(AD,10),K(ND,10),K(jf,10),K(Yo,8),K(qf,8))};static \u0275dir=un({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"],standalone:!1,features:[La([JD]),ln,el]})}return e})();var XD=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=zo({type:e});static \u0275inj=To({})}return e})();var fi=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:qf,useValue:n.callSetDisabledState??Xa}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=zo({type:e});static \u0275inj=To({imports:[XD]})}return e})();var yn=class e{transform(t,...n){return t.replace(/(?:\r\n|\r|\n)/g,"
")}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=Ud({name:"lineBreak",type:e,pure:!0})};var eC=[{role:"system",content:`You are an expert in determine the sentiment of a text. - If it is positive, say 'positive'. If it is negative, say 'negative'. If you are not sure, then say 'not sure'`},{role:"user",content:"The food is affordable and delicious, and the venue is close to the train station."},{role:"assistant",content:"positive"},{role:"user",content:"The waiters are very rude, the food is salty, and the drinks are sour."},{role:"assistant",content:"negative"},{role:"user",content:"The weather is hot and sunny today."},{role:"assistant",content:"postive"}],pi=class e{#e=p(dt);#t=R(null);#n=new AbortController;async createSession(t){this.destroySession();let n=await this.#e?.create({initialPrompts:t},{signal:this.#n.signal});this.#t.set(n)}async prompt(t){if(!this.#e)throw new Error("Your browser doesn't support the Prompt API. If you are on Chrome, join the Early Preview Program to enable it.");this.#t()||await this.createSession(eC);let n=this.#t();if(!n)throw new Error("Failed to create a Prompt session.");return n.prompt(t)}destroySession(){let t=this.#t();t&&t.destroy&&(t.destroy(),this.#t.set(null))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})};var vn=class e{#e=p(ft);#t=R(null);async detect(t){if(!this.#e)throw new Error("Your browser doesn't support the Translation API. If you are on Chrome, join the Early Preview Program to enable it.");this.#t()||await this.createDetector();let n=this.#t();if(!n)throw new Error("Built-in Language Detector is not available.");let r=await n.detect(t);if(!r.length)return;let o=r[0].detectedLanguage;return{code:o,name:this.languageTagToHumanReadable(o)}}async createDetector(){if(this.#t()){console.log("Language Detector found.");return}if(!(await this.#e?.canDetect()==="readily"))throw new Error("Built-in Language Detector is not available.");let n=await this.#e?.createDetector();this.#t.set(n)}languageTagToHumanReadable(t,n="en"){return new Intl.DisplayNames([n],{type:"language"}).of(t)||"NA"}static \u0275fac=function(n){return new(n||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})};var hi=class e{promptService=p(pi);languageDetectionService=p(vn);detectSentimentAndLanguage(t){return Promise.allSettled([this.promptService.prompt(t),this.languageDetectionService.detect(t)]).then(([n,r])=>{if(n.status==="fulfilled"&&r.status==="fulfilled"&&r.value)return{sentiment:n.value,code:r.value.code,language:r.value.name}}).catch(n=>{let r=n instanceof Error?n.message:"Error in finding the sentiment.";throw new Error(r)})}destroySessions(){this.promptService.destroySession()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})};var nC=["*"];function rC(e,t){e&1&&F(0,"Loading...")}function oC(e,t){e&1&&(_(0,"div")(1,"span",0),F(2,"Status: "),y(),_(3,"span"),Xd(4,0,null,rC,1,0),y()())}var Dn=class e{isLoading=st(!1);static \u0275fac=function(n){return new(n||e)};static \u0275cmp=re({type:e,selectors:[["app-feedback-loading"]],inputs:{isLoading:[1,"isLoading"]},ngContentSelectors:nC,decls:1,vars:1,consts:[[1,"label"]],template:function(n,r){n&1&&(Jd(),he(0,oC,6,0,"div")),n&2&&Ie(r.isLoading()?0:-1)},encapsulation:2,changeDetection:0})};function iC(e,t){if(e&1&&(_(0,"div")(1,"span",0),F(2,"Error: "),y(),_(3,"p"),F(4),y()()),e&2){let n=ge();N(4),At(n.error())}}var Cn=class e{error=st("");static \u0275fac=function(n){return new(n||e)};static \u0275cmp=re({type:e,selectors:[["app-feedback-error"]],inputs:{error:[1,"error"]},decls:1,vars:1,consts:[[1,"label"]],template:function(n,r){n&1&&he(0,iC,5,1,"div"),n&2&&Ie(r.error()?0:-1)},encapsulation:2,changeDetection:0})};function sC(e,t){if(e&1&&(_(0,"div",4)(1,"p",6)(2,"span",7),F(3,"Sentiment: "),y(),oe(4,"span",8),sr(5,"lineBreak"),y(),_(6,"p",6)(7,"span",7),F(8,"Language: "),y(),oe(9,"span",8),sr(10,"lineBreak"),y()()),e&2){ge();let n=ut(9);N(4),B("innerHTML",ar(5,2,n.sentiment),er),N(5),B("innerHTML",ar(10,4,n.language),er)}}var gi=class e{sentimentService=p(hi);injector=p(ne);isLoading=R(!1);error=R("");query=R(`Tuve una experiencia muy mala en este restaurante. La comida lleg\xF3 fr\xEDa, lo cual fue decepcionante. Adem\xE1s, el camarero fue grosero durante toda la cena, lo que hizo que la situaci\xF3n fuera a\xFAn m\xE1s inc\xF3moda. + `)}`}function Dt(e,t){let n=e.hasOwnProperty(ro);return n?e[ro]:null}function na(e,t){e.forEach(n=>Array.isArray(n)?na(n,t):t(n))}function eh(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ju(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function th(e,t){let n=[];for(let r=0;rt;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function rh(e,t,n){let r=Yn(e,t);return r>=0?e[r|1]=n:(r=~r,nh(e,r,t,n)),r}function zi(e,t){let n=Yn(e,t);if(n>=0)return e[n|1]}function Yn(e,t){return oh(e,t,1)}function oh(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<{n.push(s)};return na(t,s=>{let a=s;os(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&zu(o,i),n}function zu(e,t){for(let n=0;n{t(i,r)})}}function os(e,t,n,r){if(e=se(e),!e)return!1;let o=null,i=qc(e),s=!i&&No(e);if(!i&&!s){let c=e.ngModule;if(i=qc(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)os(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{na(i.imports,l=>{os(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&zu(u,t)}if(!a){let u=Dt(o)||(()=>new o);t({provide:o,useFactory:u,deps:ve},o),t({provide:Hu,useValue:o,multi:!0},o),t({provide:jn,useValue:()=>P(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;ra(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function ra(e,t){for(let n of e)ku(n)&&(n=n.\u0275providers),Array.isArray(n)?ra(n,t):t(n)}var ah=k({provide:String,useValue:k});function Wu(e){return e!==null&&typeof e=="object"&&ah in e}function ch(e){return!!(e&&e.useExisting)}function uh(e){return!!(e&&e.useFactory)}function qt(e){return typeof e=="function"}function lh(e){return!!e.useClass}var xo=new _(""),Kr={},dh={},Wi;function oa(){return Wi===void 0&&(Wi=new io),Wi}var Ct=class{},Bn=class extends Ct{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,ss(t,s=>this.processProvider(s)),this.records.set(Bu,Ht(void 0,this)),o.has("environment")&&this.records.set(Ct,Ht(void 0,this));let i=this.records.get(xo);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Hu,ve,b.Self))}destroy(){Fn(this),this._destroyed=!0;let t=D(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(),D(t)}}onDestroy(t){return Fn(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Fn(this);let n=Ke(this),r=ae(void 0),o;try{return t()}finally{Ke(n),ae(r)}}get(t,n=Vn,r=b.Default){if(Fn(this),t.hasOwnProperty(Yc))return t[Yc](this);r=Ao(r);let o,i=Ke(this),s=ae(void 0);try{if(!(r&b.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=mh(t)&&ea(t);u&&this.injectableDefInScope(u)?c=Ht(is(t),Kr):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&b.Self?oa():this.parent;return n=r&b.Optional&&n===Vn?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[oo]=a[oo]||[]).unshift(Ce(t)),i)throw a;return Jp(a,t,"R3InjectorError",this.source)}else throw a}finally{ae(s),Ke(i)}}resolveInjectorInitializers(){let t=D(null),n=Ke(this),r=ae(void 0),o;try{let i=this.get(jn,ve,b.Self);for(let s of i)s()}finally{Ke(n),ae(r),D(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(Ce(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=se(t);let n=qt(t)?t:se(t&&t.provide),r=ph(t);if(!qt(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Ht(void 0,Kr,!0),o.factory=()=>rs(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=D(null);try{return n.value===Kr&&(n.value=dh,n.value=n.factory()),typeof n.value=="object"&&n.value&&gh(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{D(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=se(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 is(e){let t=ea(e),n=t!==null?t.factory:Dt(e);if(n!==null)return n;if(e instanceof _)throw new v(204,!1);if(e instanceof Function)return fh(e);throw new v(204,!1)}function fh(e){if(e.length>0)throw new v(204,!1);let n=Lp(e);return n!==null?()=>n.factory(e):()=>new e}function ph(e){if(Wu(e))return Ht(void 0,e.useValue);{let t=qu(e);return Ht(t,Kr)}}function qu(e,t,n){let r;if(qt(e)){let o=se(e);return Dt(o)||is(o)}else if(Wu(e))r=()=>se(e.useValue);else if(uh(e))r=()=>e.useFactory(...rs(e.deps||[]));else if(ch(e))r=()=>P(se(e.useExisting));else{let o=se(e&&(e.useClass||e.provide));if(hh(e))r=()=>new o(...rs(e.deps));else return Dt(o)||is(o)}return r}function Fn(e){if(e.destroyed)throw new v(205,!1)}function Ht(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function hh(e){return!!e.deps}function gh(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function mh(e){return typeof e=="function"||typeof e=="object"&&e instanceof _}function ss(e,t){for(let n of e)Array.isArray(n)?ss(n,t):n&&ku(n)?ss(n.\u0275providers,t):t(n)}function Zu(e,t){e instanceof Bn&&Fn(e);let n,r=Ke(e),o=ae(void 0);try{return t()}finally{Ke(r),ae(o)}}function Yu(){return Lu()!==void 0||Yp()!=null}function rn(e){if(!Yu())throw new v(-203,!1)}var Ze=0,C=1,m=2,Ee=3,Ae=4,fe=5,Zt=6,so=7,te=8,Yt=9,Ge=10,W=11,Hn=12,Kc=13,on=14,de=15,Qt=16,$t=17,Kt=18,Oo=19,Qu=20,Je=21,Jr=22,Et=23,le=24,Y=25,Ku=1;var $n=7,yh=8,ao=9,ce=10,co=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(co||{});function Xe(e){return Array.isArray(e)&&typeof e[Ku]=="object"}function St(e){return Array.isArray(e)&&e[Ku]===!0}function Ju(e){return(e.flags&4)!==0}function Fo(e){return e.componentOffset>-1}function ia(e){return(e.flags&1)===1}function et(e){return!!e.template}function as(e){return(e[m]&512)!==0}var cs=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Xu(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var el=(()=>{let e=()=>tl;return e.ngInherit=!0,e})();function tl(e){return e.type.prototype.ngOnChanges&&(e.setInput=Dh),vh}function vh(){let e=rl(this),t=e?.current;if(t){let n=e.previous;if(n===Wt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Dh(e,t,n,r,o){let i=this.declaredInputs[r],s=rl(e)||Ch(e,{previous:Wt,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new cs(u&&u.currentValue,n,c===Wt),Xu(e,t,o,n)}var nl="__ngSimpleChanges__";function rl(e){return e[nl]||null}function Ch(e,t){return e[nl]=t}var Jc=null;var Ne=function(e,t,n){Jc?.(e,t,n)},Eh="svg",wh="math";function ze(e){for(;Array.isArray(e);)e=e[Ze];return e}function ol(e,t){return ze(t[e])}function Re(e,t){return ze(t[e.index])}function sa(e,t){return e.data[t]}function il(e,t){return e[t]}function ot(e,t){let n=t[e];return Xe(n)?n:n[Ze]}function aa(e){return(e[m]&128)===128}function Jt(e,t){return t==null?null:e[t]}function sl(e){e[$t]=0}function ca(e){e[m]&1024||(e[m]|=1024,aa(e)&&Qn(e))}function Ih(e,t){for(;e>0;)t=t[on],e--;return t}function Ro(e){return!!(e[m]&9216||e[le]?.dirty)}function us(e){e[Ge].changeDetectionScheduler?.notify(9),e[m]&64&&(e[m]|=1024),Ro(e)&&Qn(e)}function Qn(e){e[Ge].changeDetectionScheduler?.notify(0);let t=wt(e);for(;t!==null&&!(t[m]&8192||(t[m]|=8192,!aa(t)));)t=wt(t)}function al(e,t){if((e[m]&256)===256)throw new v(911,!1);e[Je]===null&&(e[Je]=[]),e[Je].push(t)}function _h(e,t){if(e[Je]===null)return;let n=e[Je].indexOf(t);n!==-1&&e[Je].splice(n,1)}function wt(e){let t=e[Ee];return St(t)?t[Ee]:t}var E={lFrame:vl(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var ls=!1;function bh(){return E.lFrame.elementDepthCount}function Mh(){E.lFrame.elementDepthCount++}function Sh(){E.lFrame.elementDepthCount--}function cl(){return E.bindingsEnabled}function ul(){return E.skipHydrationRootTNode!==null}function Th(e){return E.skipHydrationRootTNode===e}function Ah(){E.skipHydrationRootTNode=null}function N(){return E.lFrame.lView}function Q(){return E.lFrame.tView}function Pe(e){return E.lFrame.contextLView=e,e[te]}function ke(e){return E.lFrame.contextLView=null,e}function pe(){let e=ll();for(;e!==null&&e.type===64;)e=e.parent;return e}function ll(){return E.lFrame.currentTNode}function Nh(){let e=E.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function sn(e,t){let n=E.lFrame;n.currentTNode=e,n.isParent=t}function dl(){return E.lFrame.isParent}function fl(){E.lFrame.isParent=!1}function xh(){return E.lFrame.contextLView}function pl(){return ls}function uo(e){let t=ls;return ls=e,t}function Oh(){let e=E.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Fh(){return E.lFrame.bindingIndex}function Rh(e){return E.lFrame.bindingIndex=e}function Kn(){return E.lFrame.bindingIndex++}function hl(e){let t=E.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Ph(){return E.lFrame.inI18n}function kh(e,t){let n=E.lFrame;n.bindingIndex=n.bindingRootIndex=e,ds(t)}function Lh(){return E.lFrame.currentDirectiveIndex}function ds(e){E.lFrame.currentDirectiveIndex=e}function Vh(e){let t=E.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function gl(e){E.lFrame.currentQueryIndex=e}function jh(e){let t=e[C];return t.type===2?t.declTNode:t.type===1?e[fe]:null}function ml(e,t,n){if(n&b.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&b.Host);)if(o=jh(i),o===null||(i=i[on],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=E.lFrame=yl();return r.currentTNode=t,r.lView=e,!0}function ua(e){let t=yl(),n=e[C];E.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function yl(){let e=E.lFrame,t=e===null?null:e.child;return t===null?vl(e):t}function vl(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=E.lFrame;return E.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Cl=Dl;function la(){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 Bh(e){return(E.lFrame.contextLView=Ih(e,E.lFrame.contextLView))[te]}function Ye(){return E.lFrame.selectedIndex}function It(e){E.lFrame.selectedIndex=e}function El(){let e=E.lFrame;return sa(e.tView,e.selectedIndex)}function Hh(){return E.lFrame.currentNamespace}var wl=!0;function da(){return wl}function fa(e){wl=e}function $h(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=tl(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 pa(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[$t]+=65536),(a>14>16&&(e[m]&3)===t&&(e[m]+=16384,Xc(a,i)):Xc(a,i)}var zt=-1,_t=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function Gh(e){return e instanceof _t}function zh(e){return(e.flags&8)!==0}function Wh(e){return(e.flags&16)!==0}function fs(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;i>16}function gs(e,t){let n=Qh(e),r=t;for(;n>0;)r=r[on],n--;return r}var ms=!0;function lo(e){let t=ms;return ms=e,t}var Kh=256,_l=Kh-1,bl=5,Jh=0,xe={};function Xh(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Pn)&&(r=n[Pn]),r==null&&(r=n[Pn]=Jh++);let o=r&_l,i=1<>bl)]|=i}function fo(e,t){let n=Ml(e,t);if(n!==-1)return n;let r=t[C];r.firstCreatePass&&(e.injectorIndex=t.length,Yi(r.data,e),Yi(t,null),Yi(r.blueprint,null));let o=Sl(e,t),i=e.injectorIndex;if(Yh(o)){let s=hs(o),a=gs(o,t),c=a[C].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function Yi(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ml(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Sl(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=Fl(o),r===null)return zt;if(n++,o=o[on],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return zt}function ys(e,t,n){Xh(e,t,n)}function Tl(e,t,n){if(n&b.Optional||e!==void 0)return e;ta(t,"NodeInjector")}function Al(e,t,n,r){if(n&b.Optional&&r===void 0&&(r=null),!(n&(b.Self|b.Host))){let o=e[Yt],i=ae(void 0);try{return o?o.get(t,r,n&b.Optional):Vu(t,r,n&b.Optional)}finally{ae(i)}}return Tl(r,t,n)}function Nl(e,t,n,r=b.Default,o){if(e!==null){if(t[m]&2048&&!(r&b.Self)){let s=og(e,t,n,r,xe);if(s!==xe)return s}let i=xl(e,t,n,r,xe);if(i!==xe)return i}return Al(t,n,r,o)}function xl(e,t,n,r,o){let i=ng(n);if(typeof i=="function"){if(!ml(t,e,r))return r&b.Host?Tl(o,n,r):Al(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&b.Optional))ta(n);else return s}finally{Cl()}}else if(typeof i=="number"){let s=null,a=Ml(e,t),c=zt,u=r&b.Host?t[de][fe]:null;for((a===-1||r&b.SkipSelf)&&(c=a===-1?Sl(e,t):t[a+8],c===zt||!nu(r,!1)?a=-1:(s=t[C],a=hs(c),t=gs(c,t)));a!==-1;){let l=t[C];if(tu(i,a,l.data)){let d=eg(a,t,n,s,r,u);if(d!==xe)return d}c=t[a+8],c!==zt&&nu(r,t[C].data[a+8]===u)&&tu(i,a,t)?(s=l,a=hs(c),t=gs(c,t)):a=-1}}return o}function eg(e,t,n,r,o,i){let s=t[C],a=s.data[e+8],c=r==null?Fo(a)&&ms:r!=s&&(a.type&3)!==0,u=o&b.Host&&i===a,l=tg(a,s,n,c,u);return l!==null?Xt(t,s,l,a):xe}function tg(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=c&&g.type===n)return f}if(o){let f=s[c];if(f&&et(f)&&f.type===n)return c}return null}function Xt(e,t,n,r){let o=e[n],i=t.data;if(Gh(o)){let s=o;s.resolving&&Up($p(i[n]));let a=lo(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?ae(s.injectImpl):null,l=ml(e,r,b.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&$h(n,i[n],t)}finally{u!==null&&ae(u),lo(a),s.resolving=!1,Cl()}}return o}function ng(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Pn)?e[Pn]:void 0;return typeof t=="number"?t>=0?t&_l:rg:t}function tu(e,t,n){let r=1<>bl)]&r)}function nu(e,t){return!(e&b.Self)&&!(e&b.Host&&t)}var po=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Nl(this._tNode,this._lView,t,Ao(r),n)}};function rg(){return new po(pe(),N())}function Ol(e){return So(()=>{let t=e.prototype.constructor,n=t[ro]||vs(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[ro]||vs(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function vs(e){return Fu(e)?()=>{let t=vs(se(e));return t&&t()}:Dt(e)}function og(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[m]&2048&&!(s[m]&512);){let a=xl(i,s,n,r|b.Self,xe);if(a!==xe)return a;let c=i.parent;if(!c){let u=s[Qu];if(u){let l=u.get(n,xe,r);if(l!==xe)return l}c=Fl(s),s=s[on]}i=c}return o}function Fl(e){let t=e[C],n=t.type;return n===2?t.declTNode:n===1?e[fe]:null}function ru(e,t=null,n=null,r){let o=ig(e,t,n,r);return o.resolveInjectorInitializers(),o}function ig(e,t=null,n=null,r,o=new Set){let i=[n||ve,sh(e)];return r=r||(typeof e=="object"?void 0:Ce(e)),new Bn(i,t||oa(),r||null,o)}var ne=class e{static THROW_IF_NOT_FOUND=Vn;static NULL=new io;static create(t,n){if(Array.isArray(t))return ru({name:""},n,t,"");{let r=t.name??"";return ru({name:r},t.parent,t.providers,r)}}static \u0275prov=w({token:e,providedIn:"any",factory:()=>P(Bu)});static __NG_ELEMENT_ID__=-1};var sg=new _("");sg.__NG_ELEMENT_ID__=e=>{let t=pe();if(t===null)throw new v(204,!1);if(t.type&2)return t.value;if(e&b.Optional)return null;throw new v(204,!1)};var Rl=!1,Le=(()=>{class e{static __NG_ELEMENT_ID__=ag;static __NG_ENV_ID__=n=>n}return e})(),ho=class extends Le{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return al(this._lView,t),()=>_h(this._lView,t)}};function ag(){return new ho(N())}var tt=class{},Po=new _("",{providedIn:"root",factory:()=>!1});var Pl=new _(""),ha=new _(""),an=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Sn(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}return e})(),kl=(()=>{class e{internalPendingTasks=p(an);scheduler=p(tt);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(12),this.internalPendingTasks.remove(n))}}async run(n){let r=this.add();try{return await n()}finally{r()}}static \u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}return e})(),Ds=class extends me{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Yu()&&(this.destroyRef=p(Le,{optional:!0})??void 0,this.pendingTasks=p(an,{optional:!0})??void 0)}emit(t){let n=D(null);try{super.next(t)}finally{D(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 q&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},De=Ds;function Gn(...e){}function Ll(e){let t,n;function r(){e=Gn;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 ou(e){return queueMicrotask(()=>e()),()=>{e=Gn}}var ga="isAngularZone",go=ga+"_ID",cg=0,z=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new De(!1);onMicrotaskEmpty=new De(!1);onStable=new De(!1);onError=new De(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Rl}=t;if(typeof Zone>"u")throw new v(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,dg(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(ga)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new v(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new v(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,ug,Gn,Gn);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)}},ug={};function ma(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 lg(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Ll(()=>{e.callbackScheduled=!1,Cs(e),e.isCheckStableRunning=!0,ma(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Cs(e)}function dg(e){let t=()=>{lg(e)},n=cg++;e._inner=e._inner.fork({name:"angular",properties:{[ga]:!0,[go]:n,[go+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(fg(c))return r.invokeTask(i,s,a,c);try{return iu(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),su(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return iu(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!pg(c)&&t(),su(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Cs(e),ma(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 Cs(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function iu(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function su(e){e._nesting--,ma(e)}var mo=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new De;onMicrotaskEmpty=new De;onStable=new De;onError=new De;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 fg(e){return Vl(e,"__ignore_ng_zone__")}function pg(e){return Vl(e,"__scheduler_tick__")}function Vl(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Oe=class{_console=console;handleError(t){this._console.error("ERROR",t)}},hg=new _("",{providedIn:"root",factory:()=>{let e=p(z),t=p(Oe);return n=>e.runOutsideAngular(()=>t.handleError(n))}}),Es=class{destroyed=!1;listeners=null;errorHandler=p(Oe,{optional:!0});destroyRef=p(Le);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new v(953,!1);return(this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?.indexOf(t);n!==void 0&&n!==-1&&this.listeners?.splice(n,1)}}}emit(t){if(this.destroyed)throw new v(953,!1);if(this.listeners===null)return;let n=D(null);try{for(let r of this.listeners)try{r(t)}catch(o){this.errorHandler?.handleError(o)}}finally{D(n)}}};function jl(e){return new Es}function au(e,t){return Ou(e,t)}function gg(e){return Ou(xu,e)}var it=(au.required=gg,au);function mg(){return Bl(pe(),N())}function Bl(e,t){return new Jn(Re(e,t))}var Jn=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=mg}return e})();function Hl(e){return(e.flags&128)===128}var $l=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}($l||{}),Ul=new Map,yg=0;function vg(){return yg++}function Dg(e){Ul.set(e[Oo],e)}function ws(e){Ul.delete(e[Oo])}var cu="__ngContext__";function bt(e,t){Xe(t)?(e[cu]=t[Oo],Dg(t)):e[cu]=t}function Gl(e){return Wl(e[Hn])}function zl(e){return Wl(e[Ae])}function Wl(e){for(;e!==null&&!St(e);)e=e[Ae];return e}var Is;function ql(e){Is=e}function Zl(){if(Is!==void 0)return Is;if(typeof document<"u")return document;throw new v(210,!1)}var ya=new _("",{providedIn:"root",factory:()=>Cg}),Cg="ng",va=new _(""),we=new _("",{providedIn:"platform",factory:()=>"unknown"});var Da=new _("",{providedIn:"root",factory:()=>Zl().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Eg="h",wg="b";var Yl=!1,Ig=new _("",{providedIn:"root",factory:()=>Yl});var _g=()=>null;function Ca(e,t,n=!1){return _g(e,t,n)}var Fe=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Fe||{}),zr;function bg(){if(zr===void 0&&(zr=null,kn.trustedTypes))try{zr=kn.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return zr}function ko(e){return bg()?.createHTML(e)||e}var Wr;function Mg(){if(Wr===void 0&&(Wr=null,kn.trustedTypes))try{Wr=kn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Wr}function uu(e){return Mg()?.createHTML(e)||e}var yo=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Nu})`}};function Lo(e){return e instanceof yo?e.changingThisBreaksApplicationSecurity:e}function Ql(e,t){let n=Sg(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Nu})`)}return n===t}function Sg(e){return e instanceof yo&&e.getTypeName()||null}function Tg(e){let t=new bs(e);return Ag()?new _s(t):t}var _s=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let n=new window.DOMParser().parseFromString(ko(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},bs=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=ko(t),n}};function Ag(){try{return!!new window.DOMParser().parseFromString(ko(""),"text/html")}catch{return!1}}var Ng=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Kl(e){return e=String(e),e.match(Ng)?e:"unsafe:"+e}function Qe(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Xn(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var Jl=Qe("area,br,col,hr,img,wbr"),Xl=Qe("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ed=Qe("rp,rt"),xg=Xn(ed,Xl),Og=Xn(Xl,Qe("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Fg=Xn(ed,Qe("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),lu=Xn(Jl,Og,Fg,xg),td=Qe("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Rg=Qe("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Pg=Qe("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),kg=Xn(td,Rg,Pg),Lg=Qe("script,style,template"),Ms=class{sanitizedSomething=!1;buf=[];sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=Bg(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=jg(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=du(t).toLowerCase();if(!lu.hasOwnProperty(n))return this.sanitizedSomething=!0,!Lg.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o"),!0}endElement(t){let n=du(t).toLowerCase();lu.hasOwnProperty(n)&&!Jl.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(fu(t))}};function Vg(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function jg(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw nd(t);return t}function Bg(e){let t=e.firstChild;if(t&&Vg(e,t))throw nd(t);return t}function du(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function nd(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var Hg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$g=/([^\#-~ |!])/g;function fu(e){return e.replace(/&/g,"&").replace(Hg,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace($g,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var qr;function rd(e,t){let n=null;try{qr=qr||Tg(e);let r=t?String(t):"";n=qr.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=qr.getInertBodyElement(r)}while(r!==i);let a=new Ms().sanitizeChildren(pu(n)||n);return ko(a)}finally{if(n){let r=pu(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function pu(e){return"content"in e&&Ug(e)?e.content:null}function Ug(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var Ea=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Ea||{});function er(e){let t=Gg();return t?uu(t.sanitize(Ea.HTML,e)||""):Ql(e,"HTML")?uu(Lo(e)):rd(Zl(),Ln(e))}function Gg(){let e=N();return e&&e[Ge].sanitizer}var nt=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(nt||{}),We=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(We||{}),zg;function wa(e,t){return zg(e,t)}function Ut(e,t,n,r,o){if(r!=null){let i,s=!1;St(r)?i=r:Xe(r)&&(s=!0,r=r[Ze]);let a=ze(r);e===0&&n!==null?o==null?cd(t,n,a):Ss(t,n,a,o||null,!0):e===1&&n!==null?Ss(t,n,a,o||null,!0):e===2?om(t,a,s):e===3&&t.destroyNode(a),i!=null&&sm(t,e,i,n,o)}}function Wg(e,t){return e.createText(t)}function qg(e,t,n){e.setValue(t,n)}function od(e,t,n){return e.createElement(t,n)}function Zg(e,t){id(e,t),t[Ze]=null,t[fe]=null}function Yg(e,t,n,r,o,i){r[Ze]=o,r[fe]=t,Vo(e,r,n,1,o,i)}function id(e,t){t[Ge].changeDetectionScheduler?.notify(10),Vo(e,t,t[W],2,null,null)}function Qg(e){let t=e[Hn];if(!t)return Qi(e[C],e);for(;t;){let n=null;if(Xe(t))n=t[Hn];else{let r=t[ce];r&&(n=r)}if(!n){for(;t&&!t[Ae]&&t!==e;)Xe(t)&&Qi(t[C],t),t=t[Ee];t===null&&(t=e),Xe(t)&&Qi(t[C],t),n=t&&t[Ae]}t=n}}function Kg(e,t,n,r){let o=ce+r,i=n.length;r>0&&(n[o-1][Ae]=t),r0&&(e[n-1][Ae]=r[Ae]);let i=ju(e,ce+t);Zg(r[C],r);let s=i[Kt];s!==null&&s.detachView(i[C]),r[Ee]=null,r[Ae]=null,r[m]&=-129}return r}function ba(e,t){if(!(t[m]&256)){let n=t[W];n.destroyNode&&Vo(e,t,n,3,null,null),Qg(t)}}function Qi(e,t){if(t[m]&256)return;let n=D(null);try{t[m]&=-129,t[m]|=256,t[le]&&Rt(t[le]),Xg(e,t),Jg(e,t),t[C].type===1&&t[W].destroy();let r=t[Qt];if(r!==null&&St(t[Ee])){r!==t[Ee]&&Ia(r,t);let o=t[Kt];o!==null&&o.detachView(e)}ws(t)}finally{D(n)}}function Jg(e,t){let n=e.cleanup,r=t[so];if(n!==null)for(let s=0;s=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[so]=null);let o=t[Je];if(o!==null){t[Je]=null;for(let s=0;s-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===Fe.None||i===Fe.Emulated)return null}return Re(r,n)}}function Ss(e,t,n,r,o){e.insertBefore(t,n,r,o)}function cd(e,t,n){e.appendChild(t,n)}function hu(e,t,n,r,o){r!==null?Ss(e,t,n,r,o):cd(e,t,n)}function tm(e,t){return e.parentNode(t)}function ud(e,t,n){return rm(e,t,n)}function nm(e,t,n){return e.type&40?Re(e,n):null}var rm=nm,gu;function Ma(e,t,n,r){let o=ad(e,r,t),i=t[W],s=r.parent||t[fe],a=ud(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(Te(r))return!1;s=!0}}}}return Te(r)||s}function Te(e){return(e&1)===0}function pm(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Te(s)&&(t+=mu(i,o),o=""),r=s,i=i||!Te(r);n++}return o!==""&&(t+=mu(i,o)),t}function Dm(e){return e.map(vm).join(",")}function Cm(e){let t=[],n=[],r=1,o=2;for(;rY&&md(e,t,Y,!1),Ne(s?2:0,o),n(r,o)}finally{It(i),Ne(s?3:1,o)}}function Cd(e,t,n){if(Ju(t)){let r=D(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function Sm(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return ul()&&(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 yu(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=nt.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?vu(r,n,u,a,c):vu(r,n,u,a)}return r}function vu(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 Tm(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;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Fm(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;Fo(n)&&Bm(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||fo(n,t),bt(r,t);let s=n.initialInputs;for(let a=o;a{Qn(e.lView)},consumerOnSignalRead(){this.lView[le]=this}});function ey(e){let t=e[le]??Object.create(ty);return t.lView=e,t}var ty=F(T({},pt),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=wt(e.lView);for(;t&&!Pd(t[C]);)t=wt(t);t&&ca(t)},consumerOnSignalRead(){this.lView[le]=this}});function Pd(e){return e.type!==2}function kd(e){if(e[Et]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Et])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[m]&8192)}}var ny=100;function Ld(e,t=!0,n=0){let o=e[Ge].rendererFactory,i=!1;i||o.begin?.();try{ry(e,n)}catch(s){throw t&&Nd(e,s),s}finally{i||o.end?.()}}function ry(e,t){let n=pl();try{uo(!0),xs(e,t);let r=0;for(;Ro(e);){if(r===ny)throw new v(103,!1);r++,xs(e,1)}}finally{uo(n)}}function oy(e,t,n,r){let o=t[m];if((o&256)===256)return;let i=!1,s=!1;ua(t);let a=!0,c=null,u=null;i||(Pd(e)?(u=Qm(t),c=Ft(u)):nc()===null?(a=!1,u=ey(t),c=Ft(u)):t[le]&&(Rt(t[le]),t[le]=null));try{sl(t),Rh(e.bindingStartIndex),n!==null&&Dd(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Xr(t,f,null)}else{let f=e.preOrderHooks;f!==null&&eo(t,f,0,null),qi(t,0)}if(s||iy(t),kd(t),Vd(t,0),e.contentQueries!==null&&Ad(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&Xr(t,f)}else{let f=e.contentHooks;f!==null&&eo(t,f,1),qi(t,1)}Em(e,t);let d=e.components;d!==null&&Bd(t,d,0);let h=e.viewQuery;if(h!==null&&Ns(2,h,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Xr(t,f)}else{let f=e.viewHooks;f!==null&&eo(t,f,2),qi(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Jr]){for(let f of t[Jr])f();t[Jr]=null}i||(t[m]&=-73)}catch(l){throw i||Qn(t),l}finally{u!==null&&(bn(u,c),a&&Jm(u)),la()}}function Vd(e,t){for(let n=Gl(e);n!==null;n=zl(n))for(let r=ce;r-1&&(_a(t,r),ju(n,r))}this._attachedToViewContainer=!1}ba(this._lView[C],this._lView)}onDestroy(t){al(this._lView,t)}markForCheck(){Fa(this._cdRefInjectingView||this._lView,4)}markForRefresh(){ca(this._cdRefInjectingView||this._lView)}detach(){this._lView[m]&=-129}reattach(){us(this._lView),this._lView[m]|=128}detectChanges(){this._lView[m]|=1024,Ld(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new v(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=as(this._lView),n=this._lView[Qt];n!==null&&!t&&Ia(n,this._lView),id(this._lView[C],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new v(902,!1);this._appRef=t;let n=as(this._lView),r=this._lView[Qt];r!==null&&!n&&sd(r,this._lView),us(this._lView)}};var O_=new RegExp(`^(\\d+)*(${wg}|${Eg})*(.*)`);var ay=()=>null;function Uo(e,t){return ay(e,t)}var Os=class{},Do=class{},Fs=class{resolveComponentFactory(t){throw Error(`No component factory found for ${Ce(t)}.`)}},Wn=class{static NULL=new Fs},en=class{},Go=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>cy()}return e})();function cy(){let e=N(),t=pe(),n=ot(t.index,e);return(Xe(n)?n:e)[W]}var uy=(()=>{class e{static \u0275prov=w({token:e,providedIn:"root",factory:()=>null})}return e})();function Rs(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&fd(e,n,i.join(" "))}}function my(e,t,n){let r=e.projection=[];for(let o=0;o!1;function Dy(e,t,n){return vy(e,t,n)}var Cu=new Set;function je(e){Cu.has(e)||(Cu.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function Cy(e){return typeof e=="function"&&e[J]!==void 0}function R(e,t){je("NgSignals");let n=pc(e),r=n[J];return t?.equal&&(r.equal=t.equal),n.set=o=>Er(r,o),n.update=o=>hc(r,o),n.asReadonly=Ey.bind(n),n}function Ey(){let e=this[J];if(e.readonlyFn===void 0){let t=()=>this();t[J]=e,e.readonlyFn=t}return e.readonlyFn}function Hd(e){return Cy(e)&&typeof e.set=="function"}var $d=!0,tn=class{};var Co=class extends tn{injector;componentFactoryResolver=new Ps(this);instance=null;constructor(t){super();let n=new Bn([...t.providers,{provide:tn,useValue:this},{provide:Wn,useValue:this.componentFactoryResolver}],t.parent||oa(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function wy(e,t,n=null){return new Co({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Iy=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Gu(!1,n.type),o=r.length>0?wy([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 \u0275prov=w({token:e,providedIn:"environment",factory:()=>new e(P(Ct))})}return e})();function re(e){return So(()=>{let t=Gd(e),n=F(T({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===$l.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(Iy).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Fe.Emulated,styles:e.styles||ve,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&je("NgStandalone"),zd(n);let r=e.dependencies;return n.directiveDefs=wu(r,!1),n.pipeDefs=wu(r,!0),n.id=My(n),n})}function _y(e){return No(e)||$u(e)}function by(e){return e!==null}function zo(e){return So(()=>({type:e.type,bootstrap:e.bootstrap||ve,declarations:e.declarations||ve,imports:e.imports||ve,exports:e.exports||ve,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Eu(e,t){if(e==null)return Wt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=nt.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==nt.None?[r,a]:r,t[i]=s):n[i]=r}return n}function un(e){return So(()=>{let t=Gd(e);return zd(t),t})}function Ud(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??$d,onDestroy:e.type.prototype.ngOnDestroy||null}}function Gd(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||Wt,exportAs:e.exportAs||null,standalone:e.standalone??$d,signals:e.signals===!0,selectors:e.selectors||ve,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Eu(e.inputs,t),outputs:Eu(e.outputs),debugInfo:null}}function zd(e){e.features?.forEach(t=>t(e))}function wu(e,t){if(!e)return null;let n=t?Uu:_y;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(by)}function My(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 Sy(e){return Object.getPrototypeOf(e.prototype).constructor}function ln(e){let t=Sy(e.type),n=!0,r=[e];for(;t;){let o;if(et(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new v(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=Zr(e.inputs),s.inputTransforms=Zr(e.inputTransforms),s.declaredInputs=Zr(e.declaredInputs),s.outputs=Zr(e.outputs);let a=o.hostBindings;a&&Oy(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&Ny(e,c),u&&xy(e,u),Ty(e,o),Pp(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=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Un(o.hostAttrs,n=Un(n,o.hostAttrs))}}function Zr(e){return e===Wt?{}:e===ve?[]:e}function Ny(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 Oy(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function Fy(e,t,n){return e[t]=n}function qe(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Ry(e,t,n,r){let o=qe(e,t,n);return qe(e,t+1,r)||o}function Py(e){return(e.flags&32)===32}function ky(e,t,n,r,o,i,s,a,c){let u=t.consts,l=cn(t,e,4,s||null,a||null);bd(t,n,l,Jt(u,c)),pa(t,l);let d=l.tView=Aa(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 Eo(e,t,n,r,o,i,s,a,c,u){let l=n+Y,d=t.firstCreatePass?ky(l,t,e,r,o,i,s,a,c):t.data[l];sn(d,!1);let h=Ly(t,e,d,n);da()&&Ma(t,e,h,d),bt(h,e);let f=Um(h,e,h,d);return e[l]=f,Na(e,f),Dy(f,d,e),ia(d)&&Ed(t,e,d),c!=null&&wd(e,d,u),d}function he(e,t,n,r,o,i,s,a){let c=N(),u=Q(),l=Jt(u.consts,i);return Eo(c,u,e,t,n,r,o,l,s,a),he}var Ly=Vy;function Vy(e,t,n,r){return fa(!0),t[W].createComment("")}var jy=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}return e})();var Wd=new _("");function tr(e){return!!e&&typeof e.then=="function"}function qd(e){return!!e&&typeof e.subscribe=="function"}var By=new _("");var Zd=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=p(By,{optional:!0})??[];injector=p(ne);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Zu(this.injector,o);if(tr(i))n.push(i);else if(qd(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Yd=(()=>{class e{static \u0275prov=w({token:e,providedIn:"root",factory:()=>new wo})}return e})(),wo=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}},Hy=new _("");function $y(){fc(()=>{throw new v(600,!1)})}function Uy(e){return e.isBoundToModule}var Gy=10;function zy(e,t,n){try{let r=n();return tr(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var nr=(()=>{class e{_bootstrapListeners=[];_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=p(hg);afterRenderManager=p(jy);zonelessEnabled=p(Po);rootEffectScheduler=p(Yd);dirtyFlags=0;deferredDirtyFlags=0;externalTestViews=new Set;afterTick=new me;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=p(an).hasPendingTasks.pipe(Ue(n=>!n));whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=p(Ct);get injector(){return this._injector}bootstrap(n,r){let o=n instanceof Do;if(!this._injector.get(Zd).done){let h=!o&&ih(n),f=!1;throw new v(405,f)}let s;o?s=n:s=this._injector.get(Wn).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=Uy(s)?void 0:this._injector.get(tn),c=r||s.selector,u=s.create(ne.NULL,[],c,a),l=u.location.nativeElement,d=u.injector.get(Wd,null);return d?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),to(this.components,u),d?.unregisterApplication(l)}),this._loadComponent(u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new v(101,!1);let n=D(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,D(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(en,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++Ro(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;to(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(Hy,[]);[...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),()=>to(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new v(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function to(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Wy(e,t,n,r){if(!n&&!Ro(e))return;Ld(e,t,n&&!r?0:1)}function qy(e,t,n,r){return qe(e,Kn(),n)?t+Ln(n)+r:Ve}function Zy(e,t,n,r,o,i){let s=Fh(),a=Ry(e,s,n,o);return hl(2),a?t+Ln(n)+r+Ln(o)+i:Ve}function Yr(e,t){return e<<17|t<<2}function Mt(e){return e>>17&32767}function Yy(e){return(e&2)==2}function Qy(e,t){return e&131071|t<<17}function Vs(e){return e|2}function nn(e){return(e&131068)>>2}function Ki(e,t){return e&-131069|t<<2}function Ky(e){return(e&1)===1}function js(e){return e|1}function Jy(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Mt(s),c=nn(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Yn(d,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let h=Mt(e[a+1]);e[r+1]=Yr(h,a),h!==0&&(e[h+1]=Ki(e[h+1],r)),e[a+1]=Qy(e[a+1],r)}else e[r+1]=Yr(a,0),a!==0&&(e[a+1]=Ki(e[a+1],r)),a=r;else e[r+1]=Yr(c,0),a===0?a=r:e[c+1]=Ki(e[c+1],r),c=r;u&&(e[r+1]=Vs(e[r+1])),Iu(e,l,r,!0),Iu(e,l,r,!1),Xy(t,l,e,r,i),s=Yr(a,c),i?t.classBindings=s:t.styleBindings=s}function Xy(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Yn(i,t)>=0&&(n[r+1]=js(n[r+1]))}function Iu(e,t,n,r){let o=e[n+1],i=t===null,s=r?Mt(o):nn(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];ev(c,t)&&(a=!0,e[s+1]=r?js(u):Vs(u)),s=r?Mt(u):nn(u)}a&&(e[n+1]=r?Vs(o):js(o))}function ev(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Yn(e,t)>=0:!1}function j(e,t,n){let r=N(),o=Kn();if(qe(r,o,t)){let i=Q(),s=El();_d(i,s,r,e,t,r[W],n,!1)}return j}function _u(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";xa(e,n,i[s],s,r)}function Ra(e,t){return tv(e,t,null,!0),Ra}function tv(e,t,n,r){let o=N(),i=Q(),s=hl(2);if(i.firstUpdatePass&&rv(i,e,s,r),t!==Ve&&qe(o,s,t)){let a=i.data[Ye()];cv(i,a,o,o[W],e,o[s+1]=uv(t,n),r,s)}}function nv(e,t){return t>=e.expandoStartIndex}function rv(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Ye()],s=nv(e,n);lv(i,r)&&t===null&&!s&&(t=!1),t=ov(o,i,t,r),Jy(o,i,t,n,s,r)}}function ov(e,t,n,r){let o=Vh(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Ji(null,e,t,n,r),n=qn(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Ji(o,e,t,n,r),i===null){let c=iv(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Ji(null,e,t,c[1],r),c=qn(c,t.attrs,r),sv(e,t,r,c))}else i=av(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function iv(e,t,n){let r=n?t.classBindings:t.styleBindings;if(nn(r)!==0)return e[Mt(r)]}function sv(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Mt(o)]=r}function av(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,h=n[o+1];h===Ve&&(h=d?ve:void 0);let f=d?zi(h,r):l===r?h:void 0;if(u&&!Io(f)&&(f=zi(c,r)),Io(f)&&(a=f,s))return a;let g=e[o+1];o=s?Mt(g):nn(g)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=zi(c,r))}return a}function Io(e){return e!==void 0}function uv(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Ce(Lo(e)))),e}function lv(e,t){return(e.flags&(t?8:16))!==0}var Bs=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function Xi(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function dv(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let c=t.length-1;for(;i<=s&&i<=c;){let u=e.at(i),l=t[i],d=Xi(i,u,i,l,n);if(d!==0){d<0&&e.updateValue(i,l),i++;continue}let h=e.at(s),f=t[c],g=Xi(s,h,c,f,n);if(g!==0){g<0&&e.updateValue(s,f),s--,c--;continue}let S=n(i,u),L=n(s,h),O=n(i,l);if(Object.is(O,L)){let $=n(c,f);Object.is($,S)?(e.swap(i,s),e.updateValue(s,f),c--,s--):e.move(s,i),e.updateValue(i,l),i++;continue}if(r??=new _o,o??=Su(e,i,s,n),Hs(e,r,i,O))e.updateValue(i,l),i++,s++;else if(o.has(O))r.set(S,e.detach(i)),s--;else{let $=e.create(i,t[i]);e.attach(i,$),i++,s++}}for(;i<=c;)Mu(e,r,n,i,t[i]),i++}else if(t!=null){let c=t[Symbol.iterator](),u=c.next();for(;!u.done&&i<=s;){let l=e.at(i),d=u.value,h=Xi(i,l,i,d,n);if(h!==0)h<0&&e.updateValue(i,d),i++,u=c.next();else{r??=new _o,o??=Su(e,i,s,n);let f=n(i,d);if(Hs(e,r,i,f))e.updateValue(i,d),i++,s++,u=c.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,u=c.next();else{let g=n(i,l);r.set(g,e.detach(i)),s--}}}for(;!u.done;)Mu(e,r,n,e.length,u.value),u=c.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(c=>{e.destroy(c)})}function Hs(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function Mu(e,t,n,r,o){if(Hs(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function Su(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var _o=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function Ie(e,t){je("NgControlFlow");let n=N(),r=Kn(),o=n[r]!==Ve?n[r]:-1,i=o!==-1?bo(n,Y+o):void 0,s=0;if(qe(n,r,e)){let a=D(null);try{if(i!==void 0&&Fd(i,s),e!==-1){let c=Y+e,u=bo(n,c),l=zs(n[C],c),d=Uo(u,l.tView.ssrId),h=Bo(n,l,t,{dehydratedView:d});$o(u,h,s,Ho(l,d))}}finally{D(a)}}else if(i!==void 0){let a=Od(i,s);a!==void 0&&(a[te]=t)}}var $s=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-ce}};function Qd(e){return e}var Us=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function Wo(e,t,n,r,o,i,s,a,c,u,l,d,h){je("NgControlFlow");let f=N(),g=Q(),S=c!==void 0,L=N(),O=a?s.bind(L[de][te]):s,$=new Us(S,O);L[Y+e]=$,Eo(f,g,e+1,t,n,r,o,Jt(g.consts,i)),S&&Eo(f,g,e+2,c,u,l,d,Jt(g.consts,h))}var Gs=class extends Bs{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-ce}at(t){return this.getLView(t)[te].$implicit}attach(t,n){let r=n[Zt];this.needsIndexUpdate||=t!==this.length,$o(this.lContainer,n,t,Ho(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,fv(this.lContainer,t)}create(t,n){let r=Uo(this.lContainer,this.templateTNode.tView.ssrId),o=Bo(this.hostLView,this.templateTNode,new $s(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){ba(t[C],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[te].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t(fa(!0),od(r,o,Hh()));function st(){return N()}var Mo="en-US";var mv=Mo;function yv(e){typeof e=="string"&&(mv=e.toLowerCase().replace(/_/g,"-"))}var vv=(e,t,n)=>{};function Be(e,t,n,r){let o=N(),i=Q(),s=pe();return Kd(i,o,o[W],s,e,t,r),Be}function Dv(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;ic?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Kd(e,t,n,r,o,i,s){let a=ia(r),u=e.firstCreatePass&&zm(e),l=t[te],d=Gm(t),h=!0;if(r.type&3||s){let S=Re(r,t),L=s?s(S):S,O=d.length,$=s?be=>s(ze(be[r.index])):r.index,$e=null;if(!s&&a&&($e=Dv(e,t,o,r.index)),$e!==null){let be=$e.__ngLastListenerFn__||$e;be.__ngNextListenerFn__=i,$e.__ngLastListenerFn__=i,h=!1}else{i=Au(r,t,l,i),vv(S,o,i);let be=n.listen(L,o,i);d.push(i,be),u&&u.push(o,$,O,O+1)}}else i=Au(r,t,l,i);let f=r.outputs,g;if(h&&f!==null&&(g=f[o])){let S=g.length;if(S)for(let L=0;L-1?ot(e.index,t):t;Fa(s,5);let a=Tu(t,n,r,i),c=o.__ngNextListenerFn__;for(;c;)a=Tu(t,n,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function ge(e=1){return Bh(e)}function Cv(e,t){let n=null,r=hm(e);for(let o=0;o=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function x(e,t=""){let n=N(),r=Q(),o=e+Y,i=r.firstCreatePass?cn(r,o,1,t,null):r.data[o],s=wv(r,n,i,t,e);n[o]=s,da()&&Ma(r,n,s,i),sn(i,!1)}var wv=(e,t,n,r,o)=>(fa(!0),Wg(t[W],r));function Tt(e){return rr("",e,""),Tt}function rr(e,t,n){let r=N(),o=qy(r,e,t,n);return o!==Ve&&xd(r,Ye(),o),rr}function ka(e,t,n,r,o){let i=N(),s=Zy(i,e,t,n,r,o);return s!==Ve&&xd(i,Ye(),s),ka}function or(e,t,n){Hd(t)&&(t=t());let r=N(),o=Kn();if(qe(r,o,t)){let i=Q(),s=El();_d(i,s,r,e,t,r[W],n,!1)}return or}function Zo(e,t){let n=Hd(e);return n&&e.set(t),n}function ir(e,t){let n=N(),r=Q(),o=pe();return Kd(r,n,n[W],o,e,t),ir}var ef={};function _e(e){let t=Q(),n=N(),r=e+Y,o=cn(t,r,128,null,null);return sn(o,!1),Pa(t,n,r,ef),_e}function at(e){je("NgLet");let t=Q(),n=N(),r=Ye();return Pa(t,n,r,e),e}function ct(e){let t=xh(),n=il(t,Y+e);if(n===ef)throw new v(314,!1);return n}function Iv(e,t,n){let r=Q();if(r.firstCreatePass){let o=et(e);Ws(n,r.data,r.blueprint,o,!0),Ws(t,r.data,r.blueprint,o,!1)}}function Ws(e,t,n,r,o){if(e=se(e),Array.isArray(e))for(let i=0;i>20;if(qt(e)||!e.multi){let f=new _t(u,o,K),g=ts(c,t,o?l:l+h,d);g===-1?(ys(fo(a,s),i,c),es(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[g]=f,s[g]=f)}else{let f=ts(c,t,l+h,d),g=ts(c,t,l,l+h),S=f>=0&&n[f],L=g>=0&&n[g];if(o&&!L||!o&&!S){ys(fo(a,s),i,c);let O=Mv(o?bv:_v,n.length,o,r,u);!o&&L&&(n[g].providerFactory=O),es(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(O),s.push(O)}else{let O=tf(n[o?g:f],u,!o&&r);es(i,e,f>-1?f:g,O)}!o&&r&&L&&n[g].componentProviders++}}}function es(e,t,n,r){let o=qt(t),i=lh(t);if(o||i){let c=(i?se(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 tf(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function ts(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>Iv(r,o?o(e):e,t)}}function Sv(e,t){let n=e[t];return n===Ve?void 0:n}function Tv(e,t,n,r,o,i){let s=t+n;return qe(e,s,o)?Fy(e,s+1,i?r.call(i,o):r(o)):Sv(e,s+1)}function sr(e,t){let n=Q(),r,o=e+Y;n.firstCreatePass?(r=Av(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=Dt(r.type,!0)),s,a=ae(K);try{let c=lo(!1),u=i();return lo(c),Pa(n,N(),o,u),u}finally{ae(a)}}function Av(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function ar(e,t,n){let r=e+Y,o=N(),i=il(o,r);return Nv(o,r)?Tv(o,Oh(),t,i.transform,n,i):i.transform(n)}function Nv(e,t){return e[C].data[t].pure}var xv=(()=>{class e{zone=p(z);changeDetectionScheduler=p(tt);applicationRef=p(nr);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ov({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new z(F(T({},Fv()),{scheduleInRootZone:n})),[{provide:z,useFactory:e},{provide:jn,multi:!0,useFactory:()=>{let r=p(xv,{optional:!0});return()=>r.initialize()}},{provide:jn,multi:!0,useFactory:()=>{let r=p(Rv);return()=>{r.initialize()}}},t===!0?{provide:Pl,useValue:!0}:[],{provide:ha,useValue:n??Rl}]}function Fv(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Rv=(()=>{class e{subscription=new q;initialized=!1;zone=p(z);pendingTasks=p(an);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(()=>{z.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{z.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var nf=(()=>{class e{appRef=p(nr);taskService=p(an);ngZone=p(z);zonelessEnabled=p(Po);disableScheduling=p(Pl,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new q;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(go):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(ha,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){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 mo||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;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 8:{this.appRef.deferredDirtyFlags|=8;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 13:{this.appRef.dirtyFlags|=16,r=!0;break}case 14:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{r=!0;break}case 10:case 9:case 7:case 11:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?ou:Ll;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(go+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,ou(()=>{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 \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function rf(){return je("NgZoneless"),rt([{provide:tt,useExisting:nf},{provide:z,useClass:mo},{provide:Po,useValue:!0},{provide:ha,useValue:!1},[]])}function Pv(){return typeof $localize<"u"&&$localize.locale||Mo}var Va=new _("",{providedIn:"root",factory:()=>p(Va,b.Optional|b.SkipSelf)||Pv()});var Zs=new _("");function Qr(e){return!e.moduleRef}function kv(e){let t=Qr(e)?e.r3Injector:e.moduleRef.injector,n=t.get(z);return n.run(()=>{Qr(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Oe,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Qr(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Zs);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Zs);s.add(i),e.moduleRef.onDestroy(()=>{to(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return zy(r,n,()=>{let i=t.get(Zd);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(Va,Mo);if(yv(s||Mo),Qr(e)){let a=t.get(nr);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(nr);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new v(-403,!1);t.push(e)}var no=null;function Vv(e=[],t){return ne.create({name:t,providers:[{provide:xo,useValue:"platform"},{provide:Zs,useValue:new Set([()=>no=null])},...e]})}function jv(e=[]){if(no)return no;let t=Vv(e);return no=t,$y(),Bv(t),t}function Bv(e){let t=e.get(va,null);Zu(e,()=>{t?.forEach(n=>n())})}var Yo=(()=>{class e{static __NG_ELEMENT_ID__=Hv}return e})();function Hv(e){return $v(pe(),N(),(e&16)===16)}function $v(e,t,n){if(Fo(e)&&!n){let r=ot(e.index,t);return new zn(r,r)}else if(e.type&175){let r=t[de];return new zn(r,t)}return null}function of(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=jv(r),i=[Ov({}),{provide:tt,useExisting:nf},...n||[]],s=new Co({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return kv({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}function ja(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function ie(e,t){je("NgSignals");let n=uc(e);return t?.equal&&(n[J].equal=t.equal),n}function ee(e){let t=D(null);try{return e()}finally{D(t)}}var sf=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=Uv}return e})();function Uv(){return new sf(N(),pe())}var Gv=!1,zv=(()=>{class e extends wo{pendingTasks=p(an);taskId=null;schedule(n){super.schedule(n),this.taskId===null&&(this.taskId=this.pendingTasks.add(),queueMicrotask(()=>this.flush()))}flush(){try{super.flush()}finally{this.taskId!==null&&(this.pendingTasks.remove(this.taskId),this.taskId=null)}}static \u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}return e})(),Ys=class{scheduler;effectFn;zone;injector;unregisterOnDestroy;watcher;constructor(t,n,r,o,i,s){this.scheduler=t,this.effectFn=n,this.zone=r,this.injector=i,this.watcher=gc(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){this.injector.get(Oe,null,{optional:!0})?.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.schedule(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function Wv(){}function af(e,t){je("NgSignals"),!t?.injector&&rn(Wv);let n=t?.injector??p(ne),r=t?.manualCleanup!==!0?n.get(Le):null,o=new Ys(n.get(zv),e,typeof Zone>"u"?null:Zone.current,r,n,t?.allowSignalWrites??!1),i=n.get(Yo,null,{optional:!0});return!i||!(i._lView[m]&8)?o.watcher.notify():(i._lView[Jr]??=[]).push(o.watcher.notify),o}var qv=Gv;var Qs=class{[J];constructor(t){this[J]=t}destroy(){this[J].destroy()}};function Qo(e,t){if(qv)return af(e,t);je("NgSignals"),!t?.injector&&rn(Qo);let n=t?.injector??p(ne),r=t?.manualCleanup!==!0?n.get(Le):null,o,i=n.get(sf,null,{optional:!0}),s=n.get(tt);return i!==null&&!t?.forceRoot?(o=Qv(i.view,s,e),r instanceof ho&&r._lView===i.view&&(r=null)):o=Kv(e,n.get(Yd),s),o.injector=n,r!==null&&(o.onDestroyFn=r.onDestroy(()=>o.destroy())),new Qs(o)}var cf=F(T({},pt),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,onDestroyFn:Gn,run(){if(this.dirty=!1,this.hasRun&&!Mn(this))return;this.hasRun=!0;let e=r=>(this.cleanupFns??=[]).push(r),t=Ft(this),n=uo(!1);try{this.maybeCleanup(),this.fn(e)}finally{uo(n),bn(this,t)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}}),Zv=F(T({},cf),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(13)},destroy(){Rt(this),this.onDestroyFn(),this.maybeCleanup()}}),Yv=F(T({},cf),{consumerMarkedDirty(){this.view[m]|=8192,Qn(this.view),this.notifier.notify(14)},destroy(){Rt(this),this.onDestroyFn(),this.maybeCleanup(),this.view[Et]?.delete(this)}});function Qv(e,t,n){let r=Object.create(Yv);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=n,e[Et]??=new Set,e[Et].add(r),r.consumerMarkedDirty(r),r}function Kv(e,t,n){let r=Object.create(Zv);return r.fn=e,r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.schedule(r),r.notifier.notify(13),r}var Z=function(e){return e[e.Idle=0]="Idle",e[e.Error=1]="Error",e[e.Loading=2]="Loading",e[e.Reloading=3]="Reloading",e[e.Resolved=4]="Resolved",e[e.Local=5]="Local",e}(Z||{});function dn(e){e?.injector||rn(dn);let t=e.request??(()=>null);return new Js(t,e.loader,e.equal,e.injector)}var Ks=class{value;status=R(Z.Idle);error=R(void 0);rawSetValue;constructor(t){this.value=R(void 0,{equal:t?Jv(t):void 0}),this.rawSetValue=this.value.set,this.value.set=n=>this.set(n),this.value.update=n=>this.set(n(ee(this.value)))}set(t){let n=this.value[J].version;this.rawSetValue(t),this.value[J].version!==n&&(this.onLocalValue(),this.status.set(Z.Local),this.error.set(void 0))}update(t){this.value.update(t)}isLoading=ie(()=>this.status()===Z.Loading||this.status()===Z.Reloading);hasValue(){return this.status()===Z.Resolved||this.status()===Z.Local||this.status()===Z.Reloading}asReadonly(){return this}setValueState(t,n=void 0){this.status.set(t),this.rawSetValue(n),this.error.set(void 0)}setErrorState(t){this.status.set(Z.Error),this.value.set(void 0),this.error.set(t)}},Js=class extends Ks{loaderFn;request;pendingTasks;effectRef;pendingController;resolvePendingTask=void 0;constructor(t,n,r,o){super(r),this.loaderFn=n,o=o??p(ne),this.pendingTasks=o.get(kl),this.request=ie(()=>({request:t(),reload:R(0)})),this.effectRef=Qo(this.loadEffect.bind(this),{injector:o,manualCleanup:!0}),o.get(Le).onDestroy(()=>this.destroy())}reload(){let t=ee(this.status);return t===Z.Idle||t===Z.Loading||t===Z.Reloading?!1:(ee(this.request).reload.update(n=>n+1),!0)}destroy(){this.effectRef.destroy(),this.abortInProgressLoad(),this.setValueState(Z.Idle)}async loadEffect(){let t=ee(this.status);this.abortInProgressLoad();let n=this.request();if(n.request===void 0){this.setValueState(Z.Idle);return}n.reload()===0?this.setValueState(Z.Loading):this.status.set(Z.Reloading);let r=this.resolvePendingTask=this.pendingTasks.add(),{signal:o}=this.pendingController=new AbortController;try{let i=await ee(()=>this.loaderFn({abortSignal:o,request:n.request,previous:{status:t}}));if(o.aborted)return;this.setValueState(Z.Resolved,i)}catch(i){if(o.aborted)return;this.setErrorState(i)}finally{r()}}abortInProgressLoad(){this.pendingController?.abort(),this.pendingController=void 0,this.resolvePendingTask?.(),this.resolvePendingTask=void 0}onLocalValue(){this.abortInProgressLoad()}};function Jv(e){return(t,n)=>t===void 0||n===void 0?t===n:e(t,n)}var lf=null;function fn(){return lf}function df(e){lf??=e}var Ko=class{};var ut=new _("");function ff(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 Ba="browser",Xv="server";function pn(e){return e===Ba}function Ha(e){return e===Xv}var Jo=class{};var Ua=class extends Ko{supportsDOMEvents=!0},Ga=class e extends Ua{static makeCurrent(){df(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=tD();return n==null?null:nD(n)}resetBaseElement(){cr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return ff(document.cookie,t)}},cr=null;function tD(){return cr=cr||document.querySelector("base"),cr?cr.getAttribute("href"):null}function nD(e){return new URL(e,document.baseURI).pathname}var rD=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),za=new _(""),Df=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,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 v(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(P(za),P(z))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),Xo=class{_doc;constructor(t){this._doc=t}manager},Wa="ng-app-id";function pf(e){for(let t of e)t.remove()}function hf(e,t){let n=t.createElement("style");return n.textContent=e,n}function oD(e,t,n){let r=e.head?.querySelectorAll(`style[${Wa}="${t}"]`);if(r)for(let o of r)o.textContent&&(o.removeAttribute(Wa),n.set(o.textContent,{usage:0,elements:[o]}))}function gf(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Cf=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.isServer=Ha(i),oD(n,r,this.inline),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,hf);r?.forEach(o=>this.addUsage(o,this.external,gf))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(pf(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])pf(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,hf(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,gf(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(Wa,this.appId),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(P(ut),P(ya),P(Da,8),P(we))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),$a={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"},Za=/%COMP%/g,Ef="%COMP%",iD=`_nghost-${Ef}`,sD=`_ngcontent-${Ef}`,aD=!0,cD=new _("",{providedIn:"root",factory:()=>aD});function uD(e){return sD.replace(Za,e)}function lD(e){return iD.replace(Za,e)}function wf(e,t){return t.map(n=>n.replace(Za,e))}var mf=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;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.platformIsServer=Ha(a),this.defaultRenderer=new ur(n,s,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Fe.ShadowDom&&(r=F(T({},r),{encapsulation:Fe.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof ei?o.applyToHost(n):o instanceof lr&&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 Fe.Emulated:i=new ei(c,u,r,this.appId,l,s,a,d);break;case Fe.ShadowDom:return new qa(c,u,n,r,s,a,this.nonce,d);default:i=new lr(c,u,r,l,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(r){return new(r||e)(P(Df),P(Cf),P(ya),P(cD),P(ut),P(we),P(z),P(Da))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),ur=class{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS($a[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(yf(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(yf(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 v(-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=$a[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=$a[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&(We.DashCase|We.Important)?t.style.setProperty(n,r,o&We.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&We.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=fn().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 yf(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var qa=class extends ur{sharedStylesHost;hostEl;shadowRoot;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)}},lr=class extends ur{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;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,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},ei=class extends lr{contentAttr;hostAttr;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=uD(u),this.hostAttr=lD(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}},dD=(()=>{class e extends Xo{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 \u0275fac=function(r){return new(r||e)(P(ut))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),vf=["alt","control","meta","shift"],fD={"\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"},pD={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},hD=(()=>{class e extends Xo{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(()=>fn().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."),vf.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=fD[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"),vf.forEach(s=>{if(s!==o){let a=pD[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 \u0275fac=function(r){return new(r||e)(P(ut))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})();function If(e,t){return of(T({rootComponent:e},gD(t)))}function gD(e){return{appProviders:[...CD,...e?.providers??[]],platformProviders:DD}}function mD(){Ga.makeCurrent()}function yD(){return new Oe}function vD(){return ql(document),document}var DD=[{provide:we,useValue:Ba},{provide:va,useValue:mD,multi:!0},{provide:ut,useFactory:vD,deps:[]}];var CD=[{provide:xo,useValue:"root"},{provide:Oe,useFactory:yD,deps:[]},{provide:za,useClass:dD,multi:!0,deps:[ut,z,we]},{provide:za,useClass:hD,multi:!0,deps:[ut]},mf,Cf,Df,{provide:en,useExisting:mf},{provide:Jo,useClass:rD,deps:[]},[]];var lt=new _("AI_PROMPT_API_TOKEN"),dt=new _("AI_TRANSLATION_API_TOKEN"),ti=new _("AI_SUMMARIZATION_API_TOKEN");function _f(){return rt([{provide:lt,useFactory:()=>{let e=p(we),t=pn(e)?window:void 0;if(t&&"ai"in t){let n=t.ai,r=n.assistant||n.languageModel;if(r)return r}}}])}function bf(){return rt([{provide:dt,useFactory:()=>{let e=p(we),t=pn(e)?window:void 0;if(t&&"translation"in t)return t.translation}}])}function Mf(){return rt([{provide:ti,useFactory:()=>{let e=p(we),t=pn(e)?window:void 0;if(t&&"ai"in t){let n=t.ai;if(n.summarizer)return n.summarizer}}}])}var Sf={providers:[rf(),_f(),bf(),Mf()]};function At(e,t){!t?.injector&&rn(At);let n=t?.injector??p(ne),r=new An(1),o=Qo(()=>{let i;try{i=e()}catch(s){ee(()=>r.error(s));return}ee(()=>r.next(i))},{injector:n,manualCleanup:!0});return n.get(Le).onDestroy(()=>{o.destroy(),r.complete()}),r.asObservable()}function He(e,t){let n=!t?.manualCleanup;n&&!t?.injector&&rn(He);let r=n?t?.injector?.get(Le)??p(Le):null,o=ED(t?.equal),i;t?.requireSync?i=R({kind:0},{equal:o}):i=R({kind:1,value:t?.initialValue},{equal:o});let s=e.subscribe({next:a=>i.set({kind:1,value:a}),error:a=>{if(t?.rejectErrors)throw a;i.set({kind:2,error:a})}});if(t?.requireSync&&i().kind===0)throw new v(601,!1);return r?.onDestroy(s.unsubscribe.bind(s)),ie(()=>{let a=i();switch(a.kind){case 1:return a.value;case 2:throw a.error;case 0:throw new v(601,!1)}},{equal:t?.equal})}function ED(e=Object.is){return(t,n)=>t.kind===1&&n.kind===1&&e(t.value,n.value)}function wD(e){let t=e.userAgentData?.brands;return t!==void 0&&Array.isArray(t)}function ni(){let e=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);return e?parseInt(e[2],10):0}function ID(){return wD(navigator)?navigator.userAgentData?.brands:[]}function ri(){return ID()?.some(e=>e.brand==="Google Chrome")}var Tf=128,Af=(s=>(s.NOT_CHROME_BROWSER="Your browser is not supported. Please use Google Chrome Dev or Canary.",s.OLD_BROWSER=`Please upgrade the Chrome version to at least ${Tf} to support Prompt API.`,s.NO_PROMPT_API="Prompt API is not available, check your configuration in chrome://flags/#prompt-api-for-gemini-nano",s.API_NOT_READY="Build-in Prompt API not found in window. Please check the Prompt API's explainer in github.com/explainers-by-googlers/prompt-api",s.AFTER_DOWNLOAD="Built-in AI is not ready, please go to chrome://components and start downloading the Optimization Guide On Device Model",s.NO_LARGE_LANGUAGE_MODEL="The model of the Prompt API is not implemented. Please check your configuration in chrome://flags/#optimization-guide-on-device-model",s))(Af||{});async function _D(){if(!ri())throw new Error("Your browser is not supported. Please use Google Chrome Dev or Canary.");if(ni()(console.error(e),vt(e instanceof Error?e.message:"unknown"))))}var Vf=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}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 \u0275fac=function(r){return new(r||e)(K(Go),K(Jn))};static \u0275dir=un({type:e})}return e})(),bD=(()=>{class e extends Vf{static \u0275fac=(()=>{let n;return function(o){return(n||(n=Ol(e)))(o||e)}})();static \u0275dir=un({type:e,features:[ln]})}return e})(),jf=new _("");var MD={provide:jf,useExisting:Zn(()=>yn),multi:!0};function SD(){let e=fn()?fn().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var TD=new _(""),yn=(()=>{class e extends Vf{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!SD())}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 \u0275fac=function(r){return new(r||e)(K(Go),K(Jn),K(TD,8))};static \u0275dir=un({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&&Be("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)})},standalone:!1,features:[La([MD]),ln]})}return e})();var AD=new _(""),ND=new _("");function Bf(e){return e!=null}function Hf(e){return tr(e)?Se(e):e}function $f(e){let t={};return e.forEach(n=>{t=n!=null?T(T({},t),n):t}),Object.keys(t).length===0?null:t}function Uf(e,t){return t.map(n=>n(e))}function xD(e){return!e.validate}function Gf(e){return e.map(t=>xD(t)?t:n=>t.validate(n))}function OD(e){if(!e)return null;let t=e.filter(Bf);return t.length==0?null:function(n){return $f(Uf(n,t))}}function zf(e){return e!=null?OD(Gf(e)):null}function FD(e){if(!e)return null;let t=e.filter(Bf);return t.length==0?null:function(n){let r=Uf(n,t).map(Hf);return $i(r).pipe(Ue($f))}}function Wf(e){return e!=null?FD(Gf(e)):null}function xf(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function RD(e){return e._rawValidators}function PD(e){return e._rawAsyncValidators}function Ya(e){return e?Array.isArray(e)?e:[e]:[]}function si(e,t){return Array.isArray(e)?e.includes(t):e===t}function Of(e,t){let n=Ya(t);return Ya(e).forEach(o=>{si(n,o)||n.push(o)}),n}function Ff(e,t){return Ya(t).filter(n=>!si(e,n))}var ai=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=zf(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Wf(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_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}},Qa=class extends ai{name;get formDirective(){return null}get path(){return null}},gr=class extends ai{_parent=null;name=null;valueAccessor=null},Ka=class{_cd;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}},kD={"[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"},x0=F(T({},kD),{"[class.ng-submitted]":"isSubmitted"}),ui=(()=>{class e extends Ka{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(K(gr,2))};static \u0275dir=un({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&Ra("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)},standalone:!1,features:[ln]})}return e})();var dr="VALID",ii="INVALID",hn="PENDING",fr="DISABLED",mn=class{},ci=class extends mn{value;source;constructor(t,n){super(),this.value=t,this.source=n}},pr=class extends mn{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},hr=class extends mn{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},gn=class extends mn{status;source;constructor(t,n){super(),this.status=t,this.source=n}};function LD(e){return(li(e)?e.validators:e)||null}function VD(e){return Array.isArray(e)?zf(e):e||null}function jD(e,t){return(li(t)?t.asyncValidators:e)||null}function BD(e){return Array.isArray(e)?Wf(e):e||null}function li(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var Ja=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){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 ee(this.statusReactive)}set status(t){ee(()=>this.statusReactive.set(t))}_status=ie(()=>this.statusReactive());statusReactive=R(void 0);get valid(){return this.status===dr}get invalid(){return this.status===ii}get pending(){return this.status==hn}get disabled(){return this.status===fr}get enabled(){return this.status!==fr}errors;get pristine(){return ee(this.pristineReactive)}set pristine(t){ee(()=>this.pristineReactive.set(t))}_pristine=ie(()=>this.pristineReactive());pristineReactive=R(!0);get dirty(){return!this.pristine}get touched(){return ee(this.touchedReactive)}set touched(t){ee(()=>this.touchedReactive.set(t))}_touched=ie(()=>this.touchedReactive());touchedReactive=R(!1);get untouched(){return!this.touched}_events=new me;events=this._events.asObservable();valueChanges;statusChanges;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(Of(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Of(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Ff(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Ff(t,this._rawAsyncValidators))}hasValidator(t){return si(this._rawValidators,t)}hasAsyncValidator(t){return si(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(F(T({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new hr(!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 hr(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(F(T({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new pr(!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 pr(!0,r))}markAsPending(t={}){this.status=hn;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new gn(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(F(T({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=fr,this.errors=null,this._forEachChild(o=>{o.disable(F(T({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new ci(this.value,r)),this._events.next(new gn(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(F(T({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=dr,this._forEachChild(r=>{r.enable(F(T({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(F(T({},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===dr||this.status===hn)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new ci(this.value,n)),this._events.next(new gn(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(F(T({},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()?fr:dr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=hn,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=Hf(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 gn(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new De,this.statusChanges=new De}_calculateStatus(){return this._allControlsDisabled()?fr:this.errors?ii:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(hn)?hn:this._anyControlsHaveStatus(ii)?ii:dr}_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 pr(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new hr(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){li(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=VD(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=BD(this._rawAsyncValidators)}};var qf=new _("CallSetDisabledState",{providedIn:"root",factory:()=>Xa}),Xa="always";function HD(e,t){return[...t.path,e]}function $D(e,t,n=Xa){GD(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),zD(e,t),qD(e,t),WD(e,t),UD(e,t)}function Rf(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function UD(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function GD(e,t){let n=RD(e);t.validator!==null?e.setValidators(xf(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=PD(e);t.asyncValidator!==null?e.setAsyncValidators(xf(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();Rf(t._rawValidators,o),Rf(t._rawAsyncValidators,o)}function zD(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Zf(e,t)})}function WD(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Zf(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function Zf(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function qD(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function ZD(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function YD(e){return Object.getPrototypeOf(e.constructor)===bD}function QD(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===yn?n=i:YD(i)?r=i:o=i}),o||r||n||null}function Pf(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function kf(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var KD=class extends Ja{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(LD(n),jD(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),li(n)&&(n.nonNullable||n.initialValueIsDefault)&&(kf(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){Pf(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Pf(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){kf(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 JD={provide:gr,useExisting:Zn(()=>mr)},Lf=Promise.resolve(),mr=(()=>{class e extends gr{_changeDetectorRef;callSetDisabledState;control=new KD;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new De;constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=QD(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),ZD(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(){$D(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){Lf.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&ja(r);Lf.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?HD(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(K(Qa,9),K(AD,10),K(ND,10),K(jf,10),K(Yo,8),K(qf,8))};static \u0275dir=un({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"],standalone:!1,features:[La([JD]),ln,el]})}return e})();var XD=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=zo({type:e});static \u0275inj=To({})}return e})();var di=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:qf,useValue:n.callSetDisabledState??Xa}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=zo({type:e});static \u0275inj=To({imports:[XD]})}return e})();var vn=class e{transform(t,...n){return t.replace(/(?:\r\n|\r|\n)/g,"
")}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=Ud({name:"lineBreak",type:e,pure:!0})};var eC=[{role:"system",content:`You are an expert in determine the sentiment of a text. + If it is positive, say 'positive'. If it is negative, say 'negative'. If you are not sure, then say 'not sure'`},{role:"user",content:"The food is affordable and delicious, and the venue is close to the train station."},{role:"assistant",content:"positive"},{role:"user",content:"The waiters are very rude, the food is salty, and the drinks are sour."},{role:"assistant",content:"negative"},{role:"user",content:"The weather is hot and sunny today."},{role:"assistant",content:"postive"}],fi=class e{#e=p(lt);#t=R(null);#n=new AbortController;async createSession(t){this.destroySession();let n=await this.#e?.create({initialPrompts:t},{signal:this.#n.signal});this.#t.set(n)}async prompt(t){if(!this.#e)throw new Error("Your browser doesn't support the Prompt API. If you are on Chrome, join the Early Preview Program to enable it.");this.#t()||await this.createSession(eC);let n=this.#t();if(!n)throw new Error("Failed to create a Prompt session.");return n.prompt(t)}destroySession(){let t=this.#t();t&&t.destroy&&(t.destroy(),this.#t.set(null))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})};var Dn=class e{#e=p(dt);#t=R(null);async detect(t){if(!this.#e)throw new Error("Your browser doesn't support the Translation API. If you are on Chrome, join the Early Preview Program to enable it.");this.#t()||await this.createDetector();let n=this.#t();if(!n)throw new Error("Built-in Language Detector is not available.");let r=await n.detect(t);if(!r.length)return;let o=r[0].detectedLanguage;return{code:o,name:this.languageTagToHumanReadable(o)}}async createDetector(){if(this.#t()){console.log("Language Detector found.");return}if(!(await this.#e?.canDetect()==="readily"))throw new Error("Built-in Language Detector is not available.");let n=await this.#e?.createDetector();this.#t.set(n)}languageTagToHumanReadable(t,n="en"){return new Intl.DisplayNames([n],{type:"language"}).of(t)||"NA"}static \u0275fac=function(n){return new(n||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})};var pi=class e{promptService=p(fi);languageDetectionService=p(Dn);detectSentimentAndLanguage(t){return Promise.allSettled([this.promptService.prompt(t),this.languageDetectionService.detect(t)]).then(([n,r])=>{if(n.status==="fulfilled"&&r.status==="fulfilled"&&r.value)return{sentiment:n.value,code:r.value.code,language:r.value.name}}).catch(n=>{let r=n instanceof Error?n.message:"Error in finding the sentiment.";throw new Error(r)})}destroySessions(){this.promptService.destroySession()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})};var nC=["*"];function rC(e,t){e&1&&x(0,"Loading...")}function oC(e,t){e&1&&(I(0,"div")(1,"span",0),x(2,"Status: "),y(),I(3,"span"),Xd(4,0,null,rC,1,0),y()())}var ft=class e{isLoading=it(!1);static \u0275fac=function(n){return new(n||e)};static \u0275cmp=re({type:e,selectors:[["app-feedback-loading"]],inputs:{isLoading:[1,"isLoading"]},ngContentSelectors:nC,decls:1,vars:1,consts:[[1,"label"]],template:function(n,r){n&1&&(Jd(),he(0,oC,6,0,"div")),n&2&&Ie(r.isLoading()?0:-1)},encapsulation:2,changeDetection:0})};function iC(e,t){if(e&1&&(I(0,"div")(1,"span",0),x(2,"Error: "),y(),I(3,"p"),x(4),y()()),e&2){let n=ge();M(4),Tt(n.error())}}var Cn=class e{error=it("");static \u0275fac=function(n){return new(n||e)};static \u0275cmp=re({type:e,selectors:[["app-feedback-error"]],inputs:{error:[1,"error"]},decls:1,vars:1,consts:[[1,"label"]],template:function(n,r){n&1&&he(0,iC,5,1,"div"),n&2&&Ie(r.error()?0:-1)},encapsulation:2,changeDetection:0})};function sC(e,t){if(e&1&&(I(0,"div",4)(1,"p",6)(2,"span",7),x(3,"Sentiment: "),y(),oe(4,"span",8),sr(5,"lineBreak"),y(),I(6,"p",6)(7,"span",7),x(8,"Language: "),y(),oe(9,"span",8),sr(10,"lineBreak"),y()()),e&2){ge();let n=ct(9);M(4),j("innerHTML",ar(5,2,n.sentiment),er),M(5),j("innerHTML",ar(10,4,n.language),er)}}var hi=class e{sentimentService=p(pi);injector=p(ne);isLoading=R(!1);error=R("");query=R(`Tuve una experiencia muy mala en este restaurante. La comida lleg\xF3 fr\xEDa, lo cual fue decepcionante. Adem\xE1s, el camarero fue grosero durante toda la cena, lo que hizo que la situaci\xF3n fuera a\xFAn m\xE1s inc\xF3moda. Mientras serv\xEDa nuestra bebida, derram\xF3 el l\xEDquido sobre mi abrigo y ni siquiera ofreci\xF3 papel toalla para secarlo. Me pareci\xF3 una falta total de atenci\xF3n al cliente. Por si fuera poco, el ba\xF1o estaba en condiciones horribles: ol\xEDa mal y no hab\xEDa papel higi\xE9nico en la cabina. -En resumen, no recomendar\xEDa este lugar a nadie. La calidad del servicio y la limpieza son aspectos que definitivamente necesitan mejorar. No volver\xE9.`);sentimentLanguageEvaluated=jl();sentiment$=Gi(Ke(this.query).pipe(On(1e3)),vt(this.query())).pipe(Dt(t=>(this.isLoading.set(!0),this.error.set(""),this.sentimentService.detectSentimentAndLanguage(t).then(n=>(n&&this.sentimentLanguageEvaluated.emit({code:n.code,sentiment:n.sentiment,query:t}),n)).catch(n=>{this.error.set(n.message)}).finally(()=>this.isLoading.set(!1)))));sentiment=Ne(this.sentiment$,{injector:this.injector,initialValue:void 0});ngOnDestroy(){this.sentimentService.destroySessions()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=re({type:e,selectors:[["app-feedback-sentiment"]],outputs:{sentimentLanguageEvaluated:"sentimentLanguageEvaluated"},decls:12,vars:6,consts:[[2,"border","1px solid black","border-radius","0.25rem","padding","1rem"],[3,"isLoading"],["for","input",1,"label"],["id","input","name","input","rows","5",3,"ngModelChange","ngModel","disabled"],[2,"display","flex"],[3,"error"],[2,"flex-basis","50%","flex-grow","1","flex-shrink","1"],[1,"label"],[3,"innerHTML"]],template:function(n,r){if(n&1){let o=at();_(0,"div",0)(1,"h3"),F(2,"Customer's Feedback"),y(),_(3,"app-feedback-loading",1),F(4,"Processing"),y(),_(5,"div")(6,"span",2),F(7,"Input: "),y(),_(8,"textarea",3),ir("ngModelChange",function(s){return ke(o),Zo(r.query,s)||(r.query=s),Le(s)}),y()(),_e(9),he(10,sC,11,6,"div",4),oe(11,"app-feedback-error",5),y()}if(n&2){N(3),B("isLoading",r.isLoading()),N(5),or("ngModel",r.query),B("disabled",r.isLoading()),N();let o=ct(r.sentiment());N(),Ie(o?10:-1),N(),B("error",r.error())}},dependencies:[fi,mn,li,mr,yn,Cn,Dn],encapsulation:2,changeDetection:0})};var mi=class e{#e=p(ft);async createLanguagePairs(t){if(!this.#e)throw new Error("Your browser doesn't support the Translation API. If you are on Chrome, join the Early Preview Program to enable it.");let n=[],r="en";if(t!==r){let o={sourceLanguage:t,targetLanguage:r};await this.#e.canTranslate(o)!=="no"&&n.push(o)}return n}async translate(t,n){try{if(!this.#e)throw new Error("Your browser doesn't support the Translation API. If you are on Chrome, join the Early Preview Program to enable it.");let r=await this.#e.createTranslator(t);if(!r)return"";let o=await r.translate(n);return r.destroy&&r.destroy(),o}catch(r){return console.error(r),""}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})};function Qf(e){return e.createOptionsAvailable!==void 0}function Kf(e){return e.supportsFormat!==void 0&&e.supportsType!==void 0&&e.supportsLength!==void 0}var yi=class e{#e=p(ni);#t=new AbortController;languageDetectionService=p(vn);validateAndReturnApi(){if(this.#e){if(!this.#e.capabilities)throw new Error("Capabilities detection is unsupported. Please check your configuration in chrome://flags/#optimization-guide-on-device-model")}else throw new Error("Your browser doesn't support the Summarization API. If you are on Chrome, join the Early Preview Program to enable it.");return this.#e}initCapabilities(){return this.validateAndReturnApi().capabilities()}initSession(t){return this.validateAndReturnApi().create(t)}async languageAvailable(t){return(await this.initCapabilities()).languageAvailable(t)}async summarize(t,n){let r=await this.languageDetectionService.detect(n);if(!r)throw new Error("Failed to detect the language of the text.");if(!await this.languageAvailable(r.code))throw new Error("The summarization API does not support the language of the text.");let o=await this.initCapabilities();Kf(o)?await this.validateCreateOptionsOld(t,o):Qf(o)&&await this.validateCreateOptionsNew(t,o);let i=await this.initSession(O(S({},t),{signal:this.#t.signal})),s=await i.summarize(n);return i.destroy(),s}async validateCreateOptionsNew(t,n){if(t.format&&await n.createOptionsAvailable({format:t.format})!=="readily")throw new Error(`Summarization API does not ${t.format} format`);if(t.length&&await n.createOptionsAvailable({length:t.length})!=="readily")throw new Error(`Summarization API does not ${t.length} format`);if(t.type&&await n.createOptionsAvailable({type:t.type})!=="readily")throw new Error(`Summarization API does not ${t.type} format`)}async validateCreateOptionsOld(t,n){if(t.format&&await n.supportsFormat(t.format)!=="readily")throw new Error(`Summarization API does not ${t.format} format`);if(t.length&&await n.supportsLength(t.length)!=="readily")throw new Error(`Summarization API does not ${t.length} format`);if(t.type&&await n.supportsType(t.type)!=="readily")throw new Error(`Summarization API does not ${t.type} format`)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})};var En=class e{#e=p(mi);#t=p(yi);getLanguagePairs(t,n){return Ke(t,{injector:n}).pipe(xn(r=>!!r),Dt(({code:r})=>this.#e.createLanguagePairs(r).catch(o=>(console.error(o),[]))))}async translate(t,n){try{return t?await this.#e.translate(n,t):""}catch(r){return console.error(r),""}}async summarize(t){try{return t?await this.#t.summarize({type:"tl;dr",format:"plain-text",length:"medium",sharedContext:"You are an expert that can summarize a customer's feedback"},t):""}catch(n){return console.error(n),""}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})};var vi=class e{#e=p(dt);#t=R(null);#n=new AbortController;async createSession(t){this.destroySession();let n=await this.#e?.create({systemPrompt:t},{signal:this.#n.signal});this.#t.set(n)}async prompt(t,n){if(!this.#e)throw new Error("Your browser doesn't support the Prompt API. If you are on Chrome, join the Early Preview Program to enable it.");this.#t()||await this.createSession("You are a professional writer who drafts a response for feedback in English.");let r=this.#t();if(!r)throw new Error("Failed to create a Prompt session.");let o=` +En resumen, no recomendar\xEDa este lugar a nadie. La calidad del servicio y la limpieza son aspectos que definitivamente necesitan mejorar. No volver\xE9.`);sentimentLanguageEvaluated=jl();sentiment$=Ui(At(this.query).pipe(xn(1e3)),vt(this.query())).pipe(On(t=>(this.isLoading.set(!0),this.error.set(""),this.sentimentService.detectSentimentAndLanguage(t).then(n=>(n&&this.sentimentLanguageEvaluated.emit({code:n.code,sentiment:n.sentiment,query:t}),n)).catch(n=>{this.error.set(n.message)}).finally(()=>this.isLoading.set(!1)))));sentiment=He(this.sentiment$,{injector:this.injector,initialValue:void 0});ngOnDestroy(){this.sentimentService.destroySessions()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=re({type:e,selectors:[["app-feedback-sentiment"]],outputs:{sentimentLanguageEvaluated:"sentimentLanguageEvaluated"},decls:12,vars:6,consts:[[2,"border","1px solid black","border-radius","0.25rem","padding","1rem"],[3,"isLoading"],["for","input",1,"label"],["id","input","name","input","rows","5",3,"ngModelChange","ngModel","disabled"],[2,"display","flex"],[3,"error"],[2,"flex-basis","50%","flex-grow","1","flex-shrink","1"],[1,"label"],[3,"innerHTML"]],template:function(n,r){if(n&1){let o=st();I(0,"div",0)(1,"h3"),x(2,"Customer's Feedback"),y(),I(3,"app-feedback-loading",1),x(4,"Processing"),y(),I(5,"div")(6,"span",2),x(7,"Input: "),y(),I(8,"textarea",3),ir("ngModelChange",function(s){return Pe(o),Zo(r.query,s)||(r.query=s),ke(s)}),y()(),_e(9),he(10,sC,11,6,"div",4),oe(11,"app-feedback-error",5),y()}if(n&2){M(3),j("isLoading",r.isLoading()),M(5),or("ngModel",r.query),j("disabled",r.isLoading()),M();let o=at(r.sentiment());M(),Ie(o?10:-1),M(),j("error",r.error())}},dependencies:[di,yn,ui,mr,vn,Cn,ft],encapsulation:2,changeDetection:0})};function Qf(e){return e.createOptionsAvailable!==void 0}function Kf(e){return e.supportsFormat!==void 0&&e.supportsType!==void 0&&e.supportsLength!==void 0}var gi=class e{#e=p(ti);#t=new AbortController;languageDetectionService=p(Dn);validateAndReturnApi(){if(this.#e){if(!this.#e.capabilities)throw new Error("Capabilities detection is unsupported. Please check your configuration in chrome://flags/#optimization-guide-on-device-model")}else throw new Error("Your browser doesn't support the Summarization API. If you are on Chrome, join the Early Preview Program to enable it.");return this.#e}initCapabilities(){return this.validateAndReturnApi().capabilities()}initSession(t){return this.validateAndReturnApi().create(t)}async languageAvailable(t){return(await this.initCapabilities()).languageAvailable(t)}async canSummarize(t){let n=await this.languageDetectionService.detect(t);if(!n)throw new Error("Failed to detect the language of the text.");return await this.languageAvailable(n.code)==="readily"}async summarize(t,n){if(!this.canSummarize(n))throw new Error("The summarization API does not support the language of the text.");let r=await this.initCapabilities();Kf(r)?await this.validateCreateOptionsOld(t,r):Qf(r)&&await this.validateCreateOptionsNew(t,r);let o=await this.initSession(F(T({},t),{signal:this.#t.signal})),i=await o.summarize(n);return o.destroy(),i}async validateCreateOptionsNew(t,n){if(t.format&&await n.createOptionsAvailable({format:t.format})!=="readily")throw new Error(`Summarization API does not ${t.format} format`);if(t.length&&await n.createOptionsAvailable({length:t.length})!=="readily")throw new Error(`Summarization API does not ${t.length} format`);if(t.type&&await n.createOptionsAvailable({type:t.type})!=="readily")throw new Error(`Summarization API does not ${t.type} format`)}async validateCreateOptionsOld(t,n){if(t.format&&await n.supportsFormat(t.format)!=="readily")throw new Error(`Summarization API does not ${t.format} format`);if(t.length&&await n.supportsLength(t.length)!=="readily")throw new Error(`Summarization API does not ${t.length} format`);if(t.type&&await n.supportsType(t.type)!=="readily")throw new Error(`Summarization API does not ${t.type} format`)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})};var mi=class e{#e=p(dt);async createLanguagePairs(t){if(!this.#e)throw new Error("Your browser doesn't support the Translation API. If you are on Chrome, join the Early Preview Program to enable it.");let n=[],r="en";if(t!==r){let o={sourceLanguage:t,targetLanguage:r};await this.#e.canTranslate(o)!=="no"&&n.push(o)}return n}async translate(t,n){try{if(!this.#e)throw new Error("Your browser doesn't support the Translation API. If you are on Chrome, join the Early Preview Program to enable it.");let r=await this.#e.createTranslator(t);if(!r)return"";let o=await r.translate(n);return r.destroy&&r.destroy(),o}catch(r){return console.error(r),""}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})};var En=class e{#e=p(mi);#t=p(gi);getLanguagePairs(t,n){return At(t,{injector:n}).pipe(Gi(r=>!!r),On(({code:r})=>this.#e.createLanguagePairs(r).catch(o=>(console.error(o),[]))))}async translate(t,n){try{return t?await this.#e.translate(n,t):""}catch(r){return console.error(r),""}}async canSummarize(t){return this.#t.canSummarize(t)}async summarize(t){try{return t?await this.#t.summarize({type:"headline",format:"plain-text",length:"short",sharedContext:`You are an expert that can summarize a customer's feedback. + If the text is not in English, please return a blank string.`},t):""}catch(n){return console.error(n),""}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})};var yi=class e{#e=p(lt);#t=R(null);#n=new AbortController;async createSession(t){this.destroySession();let n=await this.#e?.create({systemPrompt:t},{signal:this.#n.signal});this.#t.set(n)}async prompt(t,n){if(!this.#e)throw new Error("Your browser doesn't support the Prompt API. If you are on Chrome, join the Early Preview Program to enable it.");this.#t()||await this.createSession("You are a professional writer who drafts a response for feedback in English.");let r=this.#t();if(!r)throw new Error("Failed to create a Prompt session.");let o=` The customer wrote a ${n} feedback. Please draft the response in one paragraph, 200 words max. The response must be in formal English and do not use contractions such as "We're" and "I'm". Feedback: ${t} - `;return r.prompt(o)}destroySession(){let t=this.#t();t&&t.destroy&&(t.destroy(),this.#t.set(null))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})};var wn="en",Di=class e{#e=p(vi);#t=p(En);async generateDraft({query:t,sentiment:n,code:r}){try{let o=await this.#e.prompt(t,n);if(r!==wn){let i=await this.#t.translate(o,{sourceLanguage:wn,targetLanguage:r});return{firstDraft:o,translation:i}}return{firstDraft:o}}catch(o){let i=o instanceof Error?o.message:"Error in generating a draft.";throw new Error(i)}}async translateDraft(t,n){try{return n!==wn?this.#t.translate(t,{sourceLanguage:wn,targetLanguage:n}):""}catch(r){let o=r instanceof Error?r.message:"Error in finding the sentiment.";throw new Error(o)}}destroySessions(){this.#e.destroySession()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})};function aC(e,t){if(e&1&&(_(0,"div")(1,"h3"),F(2,"Translate back to original language"),y(),oe(3,"p",7),sr(4,"lineBreak"),y()),e&2){ge();let n=ut(13);N(3),B("innerHTML",ar(4,1,n),er)}}var cC=e=>O(S({},e),{query:e.query.trim()}),Ci=class e{translationInput=st.required({transform:cC});writerService=p(Di);isLoading=R(!1);error=R("");draft=R("");debounceDraft=Ne(Ke(this.draft).pipe(On(1e3)),{initialValue:""});translatedDraft=Ko({request:()=>this.debounceDraft(),loader:({request:t,abortSignal:n})=>this.writerService.translateDraft(t,this.translationInput().code)});isNonEnglish=ie(()=>this.translationInput().code!==wn);async generateDraft(){try{this.isLoading.set(!0),this.error.set(""),this.draft.set(""),this.translatedDraft.set("");let{firstDraft:t,translation:n=""}=await this.writerService.generateDraft(this.translationInput());this.draft.set(t),this.translatedDraft.set(n)}catch(t){this.error.set(t.message)}finally{this.isLoading.set(!1)}}fakeSubmit(){let t=JSON.stringify(this.isNonEnglish()?this.translatedDraft.value():this.draft());alert("Submit "+t+" to the backend.")}ngOnDestroy(){this.writerService.destroySessions()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=re({type:e,selectors:[["app-response-writer"]],inputs:{translationInput:[1,"translationInput"]},decls:16,vars:8,consts:[[2,"border","1px solid black","border-radius","0.25rem","padding","1rem"],[3,"isLoading"],[2,"margin-bottom","0.5rem"],["id","input","name","input","rows","7",3,"ngModelChange","ngModel","disabled"],[2,"margin-right","0.5rem",3,"click","disabled"],[3,"click","disabled"],[3,"error"],[3,"innerHTML"]],template:function(n,r){if(n&1){let o=at();_(0,"div",0)(1,"h3"),F(2,"Write a response"),y(),_e(3)(4),_(5,"app-feedback-loading",1),F(6,"Generating..."),y(),_(7,"div",2)(8,"textarea",3),ir("ngModelChange",function(s){return ke(o),Zo(r.draft,s)||(r.draft=s),Le(s)}),y(),_(9,"button",4),He("click",function(){return ke(o),Le(r.generateDraft())}),F(10,"Generate a draft"),y(),_(11,"button",5),He("click",function(){return ke(o),Le(r.fakeSubmit())}),F(12,"Fake submit"),y()(),_e(13),he(14,aC,5,3,"div"),oe(15,"app-feedback-error",6),y()}if(n&2){let o=r.isLoading()||r.translationInput().query===""||r.translationInput().sentiment==="",i=r.isLoading()||r.draft().trim()==="";N(5),B("isLoading",r.isLoading()),N(3),or("ngModel",r.draft),B("disabled",r.isLoading()),N(),B("disabled",o),N(2),B("disabled",i),N(2);let s=ct(r.translatedDraft.value());N(),Ie(r.isNonEnglish()&&s?14:-1),N(),B("error",r.error())}},dependencies:[fi,mn,li,mr,yn,Cn,Dn],encapsulation:2,changeDetection:0})};var uC=(e,t)=>t.targetLanguage;function lC(e,t){if(e&1){let n=at();_(0,"button",5),He("click",function(){let o=ke(n).$implicit,i=ge();return Le(i.translate(o))}),F(1),y()}if(e&2){let n=t.$implicit,r=ge();B("disabled",r.isLoading()),N(),ka(" ",n.sourceLanguage," to ",n.targetLanguage," ")}}var Ei=class e{translationInput=st.required();translationService=p(En);translation=R("");isLoading=R(!1);injector=p(ne);languagePairs=Ne(this.translationService.getLanguagePairs(this.translationInput,this.injector),{initialValue:[]});originalText=ie(()=>this.translationInput()?.query||"");feedback=ie(()=>this.languagePairs().length?this.translation():this.originalText());writerInput=ie(()=>({code:this.translationInput().code,query:this.feedback(),sentiment:this.translationInput().sentiment}));summary=Ne(Ke(this.feedback).pipe(xn(t=>!!t),Dt(t=>this.translationService.summarize(t))),{initialValue:""});async translate(t){try{let n=this.translationInput();if(n){this.isLoading.set(!0),this.translation.set("");let r=await this.translationService.translate(n.query,t);this.translation.set(r)}}finally{this.isLoading.set(!1)}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=re({type:e,selectors:[["app-feedback-translation"]],inputs:{translationInput:[1,"translationInput"]},decls:15,vars:4,consts:[[2,"border","1px solid black","border-radius","0.25rem","padding","1rem"],[2,"margin-bottom","0.5rem"],[2,"margin-right","0.5rem",3,"disabled"],[1,"label"],[3,"translationInput"],[2,"margin-right","0.5rem",3,"click","disabled"]],template:function(n,r){if(n&1&&(_(0,"div",0)(1,"div",1),Wo(2,lC,2,3,"button",2,uC),y(),_e(4),_(5,"div",1)(6,"p")(7,"span",3),F(8),y(),F(9),y(),_(10,"p")(11,"span",3),F(12,"Summary: "),y(),F(13),y()(),oe(14,"app-response-writer",4),y()),n&2){N(2),qo(r.languagePairs());let o=r.languagePairs().length?"Translation: ":"Original Text: ";N(6),At(o),N(),rr(" ",r.feedback(),""),N(4),rr(" ",r.summary(),""),N(),B("translationInput",r.writerInput())}},dependencies:[Ci],encapsulation:2,changeDetection:0})};function dC(e,t){if(e&1&&oe(0,"app-feedback-translation",1),e&2){ge();let n=ut(1);B("translationInput",n)}}var wi=class e{translationInput=R(void 0);static \u0275fac=function(n){return new(n||e)};static \u0275cmp=re({type:e,selectors:[["app-feedback-container"]],decls:3,vars:2,consts:[[3,"sentimentLanguageEvaluated"],[3,"translationInput"]],template:function(n,r){if(n&1){let o=at();_(0,"app-feedback-sentiment",0),He("sentimentLanguageEvaluated",function(s){return ke(o),Le(r.translationInput.set(s))}),y(),_e(1),he(2,dC,1,1,"app-feedback-translation",1)}if(n&2){N();let o=ct(r.translationInput());N(),Ie(o?2:-1)}},dependencies:[gi,Ei],encapsulation:2,changeDetection:0})};var Jf=131,Xf=(s=>(s.NOT_CHROME_BROWSER="Your browser is not supported. Please use Google Chrome Dev or Canary.",s.OLD_BROWSER=`Please upgrade the Chrome version to at least ${Jf} to support Translation API.`,s.NO_TRANSLATOR="Build-in Language Translator not found in window. Please check the Translation API's explainer in github.com/WICG/translation-api?tab=readme-ov-file#translation",s.TRANSLATION_AFTER_DOWNLLOAD="Built-in AI is not ready, please go to chrome://components and start downloading the Chrome TranslateKit.",s.NO_TRANSLATION_API="The model of the Translation API is not implemented. Please check your configuration in chrome://flags/#translation-api",s.NO_LANGUAGE_DETECTOR="Build-in Language Detector not found in window. Please check the Translation API's explainer in github.com/WICG/translation-api?tab=readme-ov-file#translation",s))(Xf||{});async function fC(){if(!oi())throw new Error("Your browser is not supported. Please use Google Chrome Dev or Canary.");if(ri()(console.error(e),vt(e instanceof Error?e.message:"unknown"))))}function gC(e,t){e&1&&oe(0,"app-feedback-container")}function mC(e,t){e&1&&(_(0,"p"),F(1,"If you're on Chrome, join the Early Preview Program to enable it."),y())}function yC(e,t){if(e&1&&(_(0,"li"),F(1),y()),e&2){let n=t.$implicit;N(),At(n)}}function vC(e,t){if(e&1&&(_(0,"h4",0),F(1,"Errors"),y(),_(2,"ul"),Wo(3,yC,2,1,"li",null,Qd),y()),e&2){ge();let n=ut(1);N(3),qo(n)}}var Ii=class e{hasPromptCapabilities=Ne(Nf(),{initialValue:""});hasTranlsationCapabilities=Ne(ep(),{initialValue:""});hasCapabilities=ie(()=>[this.hasPromptCapabilities(),this.hasTranlsationCapabilities()].reduce((n,r)=>r!==""?n.concat(r):n,[]));static \u0275fac=function(n){return new(n||e)};static \u0275cmp=re({type:e,selectors:[["app-detect-ai"]],decls:5,vars:2,consts:[[1,"error"]],template:function(n,r){if(n&1&&(_(0,"div"),_e(1),he(2,gC,1,0,"app-feedback-container")(3,mC,2,0,"p")(4,vC,5,0),y()),n&2){N();let o=ct(r.hasCapabilities());N(),Ie(o.length?o.includes("unknown")?3:4:2)}},dependencies:[wi],styles:[".error[_ngcontent-%COMP%]{text-decoration:underline;color:#000;font-style:italic;font-size:1.1rem}li[_ngcontent-%COMP%]{margin-left:.75rem;line-height:1.15rem}"],changeDetection:0})};var _i=class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=re({type:e,selectors:[["app-root"]],decls:5,vars:0,template:function(n,r){n&1&&(_(0,"h2"),F(1,"Generate Response for Customer Feedback"),y(),_(2,"h3"),F(3,"Use Chrome Built-In Prompt, Language Detection, and Translation APIs"),y(),oe(4,"app-detect-ai"))},dependencies:[Ii],styles:["[_nghost-%COMP%]{display:block;padding-left:1rem;padding-right:1rem}"],changeDetection:0})};If(_i,Sf).catch(e=>console.error(e)); + `;return r.prompt(o)}destroySession(){let t=this.#t();t&&t.destroy&&(t.destroy(),this.#t.set(null))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})};var wn="en",vi=class e{#e=p(yi);#t=p(En);async generateDraft({query:t,sentiment:n,code:r}){try{let o=await this.#e.prompt(t,n);if(r!==wn){let i=await this.#t.translate(o,{sourceLanguage:wn,targetLanguage:r});return{firstDraft:o,translation:i}}return{firstDraft:o}}catch(o){let i=o instanceof Error?o.message:"Error in generating a draft.";throw new Error(i)}}async translateDraft(t,n){try{return n!==wn?this.#t.translate(t,{sourceLanguage:wn,targetLanguage:n}):""}catch(r){let o=r instanceof Error?r.message:"Error in finding the sentiment.";throw new Error(o)}}destroySessions(){this.#e.destroySession()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})};function aC(e,t){if(e&1&&(I(0,"div")(1,"h3"),x(2,"Translate back to original language"),y(),oe(3,"p",7),sr(4,"lineBreak"),y()),e&2){ge();let n=ct(13);M(3),j("innerHTML",ar(4,1,n),er)}}var cC=e=>F(T({},e),{query:e.query.trim()}),Di=class e{translationInput=it.required({transform:cC});writerService=p(vi);isLoading=R(!1);error=R("");draft=R("");debounceDraft=He(At(this.draft).pipe(xn(1e3)),{initialValue:""});translatedDraft=dn({request:()=>this.debounceDraft(),loader:({request:t,abortSignal:n})=>this.writerService.translateDraft(t,this.translationInput().code)});isNonEnglish=ie(()=>this.translationInput().code!==wn);async generateDraft(){try{this.isLoading.set(!0),this.error.set(""),this.draft.set(""),this.translatedDraft.set("");let{firstDraft:t,translation:n=""}=await this.writerService.generateDraft(this.translationInput());this.draft.set(t),this.translatedDraft.set(n)}catch(t){this.error.set(t.message)}finally{this.isLoading.set(!1)}}fakeSubmit(){let t=JSON.stringify(this.isNonEnglish()?this.translatedDraft.value():this.draft());alert("Submit "+t+" to the backend.")}ngOnDestroy(){this.writerService.destroySessions()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=re({type:e,selectors:[["app-response-writer"]],inputs:{translationInput:[1,"translationInput"]},decls:16,vars:8,consts:[[2,"border","1px solid black","border-radius","0.25rem","padding","1rem"],[3,"isLoading"],[2,"margin-bottom","0.5rem"],["id","input","name","input","rows","7",3,"ngModelChange","ngModel","disabled"],[2,"margin-right","0.5rem",3,"click","disabled"],[3,"click","disabled"],[3,"error"],[3,"innerHTML"]],template:function(n,r){if(n&1){let o=st();I(0,"div",0)(1,"h3"),x(2,"Write a response"),y(),_e(3)(4),I(5,"app-feedback-loading",1),x(6,"Generating..."),y(),I(7,"div",2)(8,"textarea",3),ir("ngModelChange",function(s){return Pe(o),Zo(r.draft,s)||(r.draft=s),ke(s)}),y(),I(9,"button",4),Be("click",function(){return Pe(o),ke(r.generateDraft())}),x(10,"Generate a draft"),y(),I(11,"button",5),Be("click",function(){return Pe(o),ke(r.fakeSubmit())}),x(12,"Fake submit"),y()(),_e(13),he(14,aC,5,3,"div"),oe(15,"app-feedback-error",6),y()}if(n&2){let o=r.isLoading()||r.translationInput().query===""||r.translationInput().sentiment==="",i=r.isLoading()||r.draft().trim()==="";M(5),j("isLoading",r.isLoading()),M(3),or("ngModel",r.draft),j("disabled",r.isLoading()),M(),j("disabled",o),M(2),j("disabled",i),M(2);let s=at(r.translatedDraft.value());M(),Ie(r.isNonEnglish()&&s?14:-1),M(),j("error",r.error())}},dependencies:[di,yn,ui,mr,vn,Cn,ft],encapsulation:2,changeDetection:0})};var uC=(e,t)=>t.targetLanguage;function lC(e,t){if(e&1){let n=st();I(0,"button",6),Be("click",function(){let o=Pe(n).$implicit,i=ge();return ke(i.translate(o))}),x(1),y()}if(e&2){let n=t.$implicit,r=ge();j("disabled",r.isLoading()),M(),ka(" ",n.sourceLanguage," to ",n.targetLanguage," ")}}var Ci=class e{translationInput=it.required();translationService=p(En);translation=R("");isLoading=R(!1);injector=p(ne);languagePairs=He(this.translationService.getLanguagePairs(this.translationInput,this.injector),{initialValue:[]});originalText=ie(()=>this.translationInput()?.query||"");feedback=ie(()=>this.languagePairs().length?this.translation():this.originalText());writerInput=ie(()=>({code:this.translationInput().code,query:this.feedback(),sentiment:this.translationInput().sentiment}));summary=dn({request:()=>this.feedback(),loader:async({request:t})=>await this.translationService.canSummarize(t)?this.translationService.summarize(t):""});async translate(t){try{if(this.translationInput()){this.isLoading.set(!0),this.translation.set("");let n=await this.translationService.translate(this.translationInput().query,t);this.translation.set(n)}}finally{this.isLoading.set(!1)}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=re({type:e,selectors:[["app-feedback-translation"]],inputs:{translationInput:[1,"translationInput"]},decls:17,vars:5,consts:[[2,"border","1px solid black","border-radius","0.25rem","padding","1rem"],[3,"isLoading"],[2,"margin-bottom","0.5rem"],[2,"margin-right","0.5rem",3,"disabled"],[1,"label"],[3,"translationInput"],[2,"margin-right","0.5rem",3,"click","disabled"]],template:function(n,r){if(n&1&&(I(0,"div",0)(1,"app-feedback-loading",1),x(2,"Translating..."),y(),I(3,"div",2),Wo(4,lC,2,3,"button",3,uC),y(),_e(6),I(7,"div",2)(8,"p")(9,"span",4),x(10),y(),x(11),y(),I(12,"p")(13,"span",4),x(14,"Summary: "),y(),x(15),y()(),oe(16,"app-response-writer",5),y()),n&2){M(),j("isLoading",r.isLoading()),M(3),qo(r.languagePairs());let o=r.languagePairs().length?"Translation: ":"Original Text: ";M(6),Tt(o),M(),rr(" ",r.feedback(),""),M(4),rr(" ",r.summary.value(),""),M(),j("translationInput",r.writerInput())}},dependencies:[Di,ft],encapsulation:2,changeDetection:0})};function dC(e,t){if(e&1&&oe(0,"app-feedback-translation",1),e&2){ge();let n=ct(1);j("translationInput",n)}}var Ei=class e{translationInput=R(void 0);static \u0275fac=function(n){return new(n||e)};static \u0275cmp=re({type:e,selectors:[["app-feedback-container"]],decls:3,vars:2,consts:[[3,"sentimentLanguageEvaluated"],[3,"translationInput"]],template:function(n,r){if(n&1){let o=st();I(0,"app-feedback-sentiment",0),Be("sentimentLanguageEvaluated",function(s){return Pe(o),ke(r.translationInput.set(s))}),y(),_e(1),he(2,dC,1,1,"app-feedback-translation",1)}if(n&2){M();let o=at(r.translationInput());M(),Ie(o?2:-1)}},dependencies:[hi,Ci],encapsulation:2,changeDetection:0})};var Jf=131,Xf=(s=>(s.NOT_CHROME_BROWSER="Your browser is not supported. Please use Google Chrome Dev or Canary.",s.OLD_BROWSER=`Please upgrade the Chrome version to at least ${Jf} to support Translation API.`,s.NO_TRANSLATOR="Build-in Language Translator not found in window. Please check the Translation API's explainer in github.com/WICG/translation-api?tab=readme-ov-file#translation",s.TRANSLATION_AFTER_DOWNLLOAD="Built-in AI is not ready, please go to chrome://components and start downloading the Chrome TranslateKit.",s.NO_TRANSLATION_API="The model of the Translation API is not implemented. Please check your configuration in chrome://flags/#translation-api",s.NO_LANGUAGE_DETECTOR="Build-in Language Detector not found in window. Please check the Translation API's explainer in github.com/WICG/translation-api?tab=readme-ov-file#translation",s))(Xf||{});async function fC(){if(!ri())throw new Error("Your browser is not supported. Please use Google Chrome Dev or Canary.");if(ni()(console.error(e),vt(e instanceof Error?e.message:"unknown"))))}function gC(e,t){e&1&&oe(0,"app-feedback-container")}function mC(e,t){e&1&&(I(0,"p"),x(1,"If you're on Chrome, join the Early Preview Program to enable it."),y())}function yC(e,t){if(e&1&&(I(0,"li"),x(1),y()),e&2){let n=t.$implicit;M(),Tt(n)}}function vC(e,t){if(e&1&&(I(0,"h4",0),x(1,"Errors"),y(),I(2,"ul"),Wo(3,yC,2,1,"li",null,Qd),y()),e&2){ge();let n=ct(1);M(3),qo(n)}}var wi=class e{hasPromptCapabilities=He(Nf(),{initialValue:""});hasTranlsationCapabilities=He(ep(),{initialValue:""});hasCapabilities=ie(()=>[this.hasPromptCapabilities(),this.hasTranlsationCapabilities()].reduce((n,r)=>r!==""?n.concat(r):n,[]));static \u0275fac=function(n){return new(n||e)};static \u0275cmp=re({type:e,selectors:[["app-detect-ai"]],decls:5,vars:2,consts:[[1,"error"]],template:function(n,r){if(n&1&&(I(0,"div"),_e(1),he(2,gC,1,0,"app-feedback-container")(3,mC,2,0,"p")(4,vC,5,0),y()),n&2){M();let o=at(r.hasCapabilities());M(),Ie(o.length?o.includes("unknown")?3:4:2)}},dependencies:[Ei],styles:[".error[_ngcontent-%COMP%]{text-decoration:underline;color:#000;font-style:italic;font-size:1.1rem}li[_ngcontent-%COMP%]{margin-left:.75rem;line-height:1.15rem}"],changeDetection:0})};var Ii=class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=re({type:e,selectors:[["app-root"]],decls:5,vars:0,template:function(n,r){n&1&&(I(0,"h2"),x(1,"Generate Response for Customer Feedback"),y(),I(2,"h3"),x(3,"Use Chrome Built-In Prompt, Language Detection, and Translation APIs"),y(),oe(4,"app-detect-ai"))},dependencies:[wi],styles:["[_nghost-%COMP%]{display:block;padding-left:1rem;padding-right:1rem}"],changeDetection:0})};If(Ii,Sf).catch(e=>console.error(e));