diff --git a/404.html b/404.html index 4fc34cb..1d62bf5 100644 --- a/404.html +++ b/404.html @@ -6,8 +6,8 @@ - + - + diff --git a/index.html b/index.html index 4fc34cb..1d62bf5 100644 --- a/index.html +++ b/index.html @@ -6,8 +6,8 @@ - + - + diff --git a/main-FGHNIQQW.js b/main-FGHNIQQW.js new file mode 100644 index 0000000..f2f569d --- /dev/null +++ b/main-FGHNIQQW.js @@ -0,0 +1,7 @@ +var Bc=Object.create;var Kn=Object.defineProperty,Hc=Object.defineProperties,$c=Object.getOwnPropertyDescriptor,Uc=Object.getOwnPropertyDescriptors,zc=Object.getOwnPropertyNames,Oi=Object.getOwnPropertySymbols,Gc=Object.getPrototypeOf,ki=Object.prototype.hasOwnProperty,Wc=Object.prototype.propertyIsEnumerable;var Ri=(e,t,n)=>t in e?Kn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,W=(e,t)=>{for(var n in t||={})ki.call(t,n)&&Ri(e,n,t[n]);if(Oi)for(var n of Oi(t))Wc.call(t,n)&&Ri(e,n,t[n]);return e},K=(e,t)=>Hc(e,Uc(t));var qc=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Zc=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of zc(t))!ki.call(e,o)&&o!==n&&Kn(e,o,{get:()=>t[o],enumerable:!(r=$c(t,o))||r.enumerable});return e};var Pi=(e,t,n)=>(n=e!=null?Bc(Gc(e)):{},Zc(t||!e||!e.__esModule?Kn(n,"default",{value:e,enumerable:!0}):n,e));var Ni=qc(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});function Rg(e,t,n){var r=n.get;if(!r)throw new TypeError("Getter property descriptor expected");n.get=function(){var o=r.call(this);return Object.defineProperty(this,t,{configurable:n.configurable,enumerable:n.enumerable,writable:!1,value:o}),o}}xi.cache=Rg});function Fi(e,t){return Object.is(e,t)}var O=null,qt=!1,Zt=1,ge=Symbol("SIGNAL");function y(e){let t=O;return O=e,t}function Li(){return O}var wt={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 Qt(e){if(qt)throw new Error("");if(O===null)return;O.consumerOnSignalRead(e);let t=O.nextProducerIndex++;if(Xt(O),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function tr(e){Xt(e);for(let t=0;t0}function Xt(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function $i(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Ui(e){return e.producerNode!==void 0}function zi(e){let t=Object.create(Kc);t.computation=e;let n=()=>{if(ji(t),Qt(t),t.value===Yt)throw t.error;return t.value};return n[ge]=t,n}var Jn=Symbol("UNSET"),Xn=Symbol("COMPUTING"),Yt=Symbol("ERRORED"),Kc=K(W({},wt),{value:Jn,dirty:!0,error:null,equal:Fi,producerMustRecompute(e){return e.value===Jn||e.value===Xn},producerRecomputeValue(e){if(e.value===Xn)throw new Error("Detected cycle in computations.");let t=e.value;e.value=Xn;let n=Kt(e),r;try{r=e.computation()}catch(o){r=Yt,e.error=o}finally{er(e,n)}if(t!==Jn&&t!==Yt&&r!==Yt&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function Jc(){throw new Error}var Gi=Jc;function Wi(){Gi()}function qi(e){Gi=e}var Xc=null;function Zi(e){let t=Object.create(rr);t.value=e;let n=()=>(Qt(t),t.value);return n[ge]=t,n}function en(e,t){Bi()||Wi(),e.equal(e.value,t)||(e.value=t,el(e))}function Yi(e,t){Bi()||Wi(),en(e,t(e.value))}var rr=K(W({},wt),{equal:Fi,value:void 0});function el(e){e.version++,Yc(),Vi(e),Xc?.()}function H(e){return typeof e=="function"}function tn(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 nn=tn(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 Et(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var j=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(H(r))try{r()}catch(i){t=i instanceof nn?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Qi(i)}catch(s){t=t??[],s instanceof nn?t=[...t,...s.errors]:t.push(s)}}if(t)throw new nn(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Qi(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)&&Et(n,t)}remove(t){let{_finalizers:n}=this;n&&Et(n,t),t instanceof e&&t._removeParent(this)}};j.EMPTY=(()=>{let e=new j;return e.closed=!0,e})();var or=j.EMPTY;function rn(e){return e instanceof j||e&&"closed"in e&&H(e.remove)&&H(e.add)&&H(e.unsubscribe)}function Qi(e){H(e)?e():e.unsubscribe()}var J={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Je={setTimeout(e,t,...n){let{delegate:r}=Je;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Je;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Ki(e){Je.setTimeout(()=>{let{onUnhandledError:t}=J;if(t)t(e);else throw e})}function ir(){}var Ji=sr("C",void 0,void 0);function Xi(e){return sr("E",void 0,e)}function es(e){return sr("N",e,void 0)}function sr(e,t,n){return{kind:e,value:t,error:n}}var Ae=null;function Xe(e){if(J.useDeprecatedSynchronousErrorHandling){let t=!Ae;if(t&&(Ae={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Ae;if(Ae=null,n)throw r}}else e()}function ts(e){J.useDeprecatedSynchronousErrorHandling&&Ae&&(Ae.errorThrown=!0,Ae.error=e)}var Oe=class extends j{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,rn(t)&&t.add(this)):this.destination=rl}static create(t,n,r){return new et(t,n,r)}next(t){this.isStopped?ur(es(t),this):this._next(t)}error(t){this.isStopped?ur(Xi(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?ur(Ji,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()}}},tl=Function.prototype.bind;function ar(e,t){return tl.call(e,t)}var cr=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){on(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){on(r)}else on(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){on(n)}}},et=class extends Oe{constructor(t,n,r){super();let o;if(H(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&J.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&ar(t.next,i),error:t.error&&ar(t.error,i),complete:t.complete&&ar(t.complete,i)}):o=t}this.destination=new cr(o)}};function on(e){J.useDeprecatedSynchronousErrorHandling?ts(e):Ki(e)}function nl(e){throw e}function ur(e,t){let{onStoppedNotification:n}=J;n&&Je.setTimeout(()=>n(e,t))}var rl={closed:!0,next:ir,error:nl,complete:ir};var ns=typeof Symbol=="function"&&Symbol.observable||"@@observable";function rs(e){return e}function os(e){return e.length===0?rs:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var lr=(()=>{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=il(n)?n:new et(n,r,o);return Xe(()=>{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=is(r),new r((o,i)=>{let s=new et({next:a=>{try{n(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[ns](){return this}pipe(...n){return os(n)(this)}toPromise(n){return n=is(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 is(e){var t;return(t=e??J.Promise)!==null&&t!==void 0?t:Promise}function ol(e){return e&&H(e.next)&&H(e.error)&&H(e.complete)}function il(e){return e&&e instanceof Oe||ol(e)&&rn(e)}function sl(e){return H(e?.lift)}function ss(e){return t=>{if(sl(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 as(e,t,n,r,o){return new dr(e,t,n,r,o)}var dr=class extends Oe{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){t.error(u)}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 us=tn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var be=(()=>{class e extends lr{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new sn(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new us}next(n){Xe(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Xe(()=>{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(){Xe(()=>{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?or:(this.currentObservers=null,i.push(n),new j(()=>{this.currentObservers=null,Et(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new lr;return n.source=this,n}}return e.create=(t,n)=>new sn(t,n),e})(),sn=class extends be{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:or}};var It=class extends be{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};function an(e,t,n,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,n,i):s(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i}function fr(e,t){return ss((n,r)=>{let o=0;n.subscribe(as(r,i=>{r.next(e.call(t,i,o++))}))})}var al="https://g.co/ng/security#xss",M=class extends Error{constructor(t,n){super(yo(t,n)),this.code=t}};function yo(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}var qs=Symbol("InputSignalNode#UNSET"),ul=K(W({},rr),{transformFn:void 0,applyValueToInputSignal(e,t){en(e,t)}});function Zs(e,t){let n=Object.create(ul);n.value=e,n.transformFn=t?.transform;function r(){if(Qt(n),n.value===qs)throw new M(-950,!1);return n.value}return r[ge]=n,r}function cl(e){return{toString:e}.toString()}var Mr=globalThis;function T(e){for(let t in e)if(e[t]===T)return t;throw Error("Could not find renamed property on target object.")}function q(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(q).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 Sr(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var ll=T({__forward_ref__:T});function Ys(e){return e.__forward_ref__=Ys,e.toString=function(){return q(this())},e}function ee(e){return dl(e)?e():e}function dl(e){return typeof e=="function"&&e.hasOwnProperty(ll)&&e.__forward_ref__===Ys}function A(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Do(e){return cs(e,Qs)||cs(e,Ks)}function cs(e,t){return e.hasOwnProperty(t)?e[t]:null}function fl(e){let t=e&&(e[Qs]||e[Ks]);return t||null}function ls(e){return e&&(e.hasOwnProperty(ds)||e.hasOwnProperty(hl))?e[ds]:null}var Qs=T({\u0275prov:T}),ds=T({\u0275inj:T}),Ks=T({ngInjectableDef:T}),hl=T({ngInjectorDef:T}),S=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=A({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Js(e){return e&&!!e.\u0275providers}var pl=T({\u0275cmp:T}),gl=T({\u0275dir:T}),ml=T({\u0275pipe:T});var fs=T({\u0275fac:T}),Ct=T({__NG_ELEMENT_ID__:T}),hs=T({__NG_ENV_ID__:T});function wo(e){return typeof e=="string"?e:e==null?"":String(e)}function vl(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():wo(e)}function yl(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new M(-200,e)}function Eo(e,t){throw new M(-201,!1)}var E=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}(E||{}),_r;function Xs(){return _r}function ie(e){let t=_r;return _r=e,t}function ea(e,t,n){let r=Do(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&E.Optional)return null;if(t!==void 0)return t;Eo(e,"Injector")}var Dl={},bt=Dl,wl="__NG_DI_FLAG__",pn="ngTempTokenPath",El="ngTokenPath",Il=/\n/gm,Cl="\u0275",ps="__source",it;function bl(){return it}function tt(e){let t=it;return it=e,t}function Ml(e,t=E.Default){if(it===void 0)throw new M(-203,!1);return it===null?ea(e,void 0,t):it.get(e,t&E.Optional?null:void 0,t)}function _(e,t=E.Default){return(Xs()||Ml)(ee(e),t)}function I(e,t=E.Default){return _(e,Tn(t))}function Tn(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Tr(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):q(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Il,` + `)}`}function Mt(e,t){let n=e.hasOwnProperty(fs);return n?e[fs]:null}function Io(e,t){e.forEach(n=>Array.isArray(n)?Io(n,t):t(n))}function xl(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ta(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Nl(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function xn(e,t,n){let r=jt(e,t);return r>=0?e[r|1]=n:(r=~r,Nl(e,r,t,n)),r}function hr(e,t){let n=jt(e,t);if(n>=0)return e[n|1]}function jt(e,t){return Al(e,t,1)}function Al(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<t){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&c!==d){if(X(r))return!1;s=!0}}}}return X(r)||s}function X(e){return(e&1)===0}function jl(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!==""&&!X(s)&&(t+=ms(i,o),o=""),r=s,i=i||!X(r);n++}return o!==""&&(t+=ms(i,o)),t}function Ul(e){return e.map($l).join(",")}function zl(e){let t=[],n=[],r=1,o=2;for(;r{let t=Zl(e),n=K(W({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===oa.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||ue.Emulated,styles:e.styles||ve,_:null,schemas:e.schemas||null,tView:null,id:""});Yl(n);let r=e.dependencies;return n.directiveDefs=ys(r,!1),n.pipeDefs=ys(r,!0),n.id=Ql(n),n})}function Gl(e){return Nn(e)||sa(e)}function Wl(e){return e!==null}function vs(e,t){if(e==null)return St;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=at.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==at.None?[r,a]:r,t[i]=s):n[i]=r}return n}function Nn(e){return e[pl]||null}function sa(e){return e[gl]||null}function aa(e){return e[ml]||null}function ql(e){let t=Nn(e)||sa(e)||aa(e);return t!==null?t.standalone:!1}function Zl(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||St,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||ve,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:vs(e.inputs,t),outputs:vs(e.outputs),debugInfo:null}}function Yl(e){e.features?.forEach(t=>t(e))}function ys(e,t){if(!e)return null;let n=t?aa:Gl;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Wl)}function Ql(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 ua(e){return{\u0275providers:e}}function Kl(...e){return{\u0275providers:ca(!0,e),\u0275fromNgModule:!0}}function ca(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Io(t,s=>{let a=s;Nr(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&la(o,i),n}function la(e,t){for(let n=0;n{t(i,r)})}}function Nr(e,t,n,r){if(e=ee(e),!e)return!1;let o=null,i=ls(e),s=!i&&Nn(e);if(!i&&!s){let u=e.ngModule;if(i=ls(u),i)o=u;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 u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)Nr(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{Io(i.imports,l=>{Nr(l,t,n,r)&&(c||=[],c.push(l))})}finally{}c!==void 0&&la(c,t)}if(!a){let c=Mt(o)||(()=>new o);t({provide:o,useFactory:c,deps:ve},o),t({provide:ra,useValue:o,multi:!0},o),t({provide:_t,useValue:()=>_(o),multi:!0},o)}let u=i.providers;if(u!=null&&!a){let c=e;Mo(u,l=>{t(l,c)})}}else return!1;return o!==e&&e.providers!==void 0}function Mo(e,t){for(let n of e)Js(n)&&(n=n.\u0275providers),Array.isArray(n)?Mo(n,t):t(n)}var Jl=T({provide:String,useValue:T});function da(e){return e!==null&&typeof e=="object"&&Jl in e}function Xl(e){return!!(e&&e.useExisting)}function ed(e){return!!(e&&e.useFactory)}function Ar(e){return typeof e=="function"}var An=new S(""),cn={},td={},pr;function So(){return pr===void 0&&(pr=new gn),pr}var Pe=class{},mn=class extends Pe{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Rr(t,s=>this.processProvider(s)),this.records.set(na,nt(void 0,this)),o.has("environment")&&this.records.set(Pe,nt(void 0,this));let i=this.records.get(An);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(ra,ve,E.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=y(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(),y(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=tt(this),r=ie(void 0),o;try{return t()}finally{tt(n),ie(r)}}get(t,n=bt,r=E.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(hs))return t[hs](this);r=Tn(r);let o,i=tt(this),s=ie(void 0);try{if(!(r&E.SkipSelf)){let u=this.records.get(t);if(u===void 0){let c=ad(t)&&Do(t);c&&this.injectableDefInScope(c)?u=nt(Or(t),cn):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=r&E.Self?So():this.parent;return n=r&E.Optional&&n===bt?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[pn]=a[pn]||[]).unshift(q(t)),i)throw a;return _l(a,t,"R3InjectorError",this.source)}else throw a}finally{ie(s),tt(i)}}resolveInjectorInitializers(){let t=y(null),n=tt(this),r=ie(void 0),o;try{let i=this.get(_t,ve,E.Self);for(let s of i)s()}finally{tt(n),ie(r),y(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(q(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new M(205,!1)}processProvider(t){t=ee(t);let n=Ar(t)?t:ee(t&&t.provide),r=rd(t);if(!Ar(t)&&t.multi===!0){let o=this.records.get(n);o||(o=nt(void 0,cn,!0),o.factory=()=>Tr(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=y(null);try{return n.value===cn&&(n.value=td,n.value=n.factory()),typeof n.value=="object"&&n.value&&sd(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{y(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=ee(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 Or(e){let t=Do(e),n=t!==null?t.factory:Mt(e);if(n!==null)return n;if(e instanceof S)throw new M(204,!1);if(e instanceof Function)return nd(e);throw new M(204,!1)}function nd(e){if(e.length>0)throw new M(204,!1);let n=fl(e);return n!==null?()=>n.factory(e):()=>new e}function rd(e){if(da(e))return nt(void 0,e.useValue);{let t=od(e);return nt(t,cn)}}function od(e,t,n){let r;if(Ar(e)){let o=ee(e);return Mt(o)||Or(o)}else if(da(e))r=()=>ee(e.useValue);else if(ed(e))r=()=>e.useFactory(...Tr(e.deps||[]));else if(Xl(e))r=()=>_(ee(e.useExisting));else{let o=ee(e&&(e.useClass||e.provide));if(id(e))r=()=>new o(...Tr(e.deps));else return Mt(o)||Or(o)}return r}function nt(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function id(e){return!!e.deps}function sd(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function ad(e){return typeof e=="function"||typeof e=="object"&&e instanceof S}function Rr(e,t){for(let n of e)Array.isArray(n)?Rr(n,t):n&&Js(n)?Rr(n.\u0275providers,t):t(n)}function ud(){return Xs()!==void 0||bl()!=null}var Ee=0,D=1,m=2,Y=3,te=4,fe=5,Tt=6,vn=7,V=8,ut=9,ye=10,L=11,xt=12,Ds=13,mt=14,ce=15,ct=16,rt=17,lt=18,On=19,fa=20,Me=21,gr=22,Z=23,ne=25,ha=1;var Nt=7,cd=8,yn=9,$=10,Dn=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Dn||{});function ke(e){return Array.isArray(e)&&typeof e[ha]=="object"}function Be(e){return Array.isArray(e)&&e[ha]===!0}function pa(e){return(e.flags&4)!==0}function _o(e){return e.componentOffset>-1}function To(e){return(e.flags&1)===1}function Vt(e){return!!e.template}function kr(e){return(e[m]&512)!==0}var Pr=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function ga(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function ld(){return ma}function ma(e){return e.type.prototype.ngOnChanges&&(e.setInput=fd),dd}ld.ngInherit=!0;function dd(){let e=ya(this),t=e?.current;if(t){let n=e.previous;if(n===St)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function fd(e,t,n,r,o){let i=this.declaredInputs[r],s=ya(e)||hd(e,{previous:St,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[i];a[i]=new Pr(c&&c.currentValue,n,u===St),ga(e,t,o,n)}var va="__ngSimpleChanges__";function ya(e){return e[va]||null}function hd(e,t){return e[va]=t}var ws=null;var se=function(e,t,n){ws?.(e,t,n)},Da="svg",pd="math";function De(e){for(;Array.isArray(e);)e=e[Ee];return e}function wa(e,t){return De(t[e])}function re(e,t){return De(t[e.index])}function xo(e,t){return e.data[t]}function vt(e,t){let n=t[e];return ke(n)?n:n[Ee]}function No(e){return(e[m]&128)===128}function dt(e,t){return t==null?null:e[t]}function Ea(e){e[rt]=0}function Ia(e){e[m]&1024||(e[m]|=1024,No(e)&&Rn(e))}function gd(e,t){for(;e>0;)t=t[mt],e--;return t}function At(e){return!!(e[m]&9216||e[Z]?.dirty)}function Fr(e){e[ye].changeDetectionScheduler?.notify(7),e[m]&64&&(e[m]|=1024),At(e)&&Rn(e)}function Rn(e){e[ye].changeDetectionScheduler?.notify(0);let t=Fe(e);for(;t!==null&&!(t[m]&8192||(t[m]|=8192,!No(t)));)t=Fe(t)}function Ca(e,t){if((e[m]&256)===256)throw new M(911,!1);e[Me]===null&&(e[Me]=[]),e[Me].push(t)}function md(e,t){if(e[Me]===null)return;let n=e[Me].indexOf(t);n!==-1&&e[Me].splice(n,1)}function Fe(e){let t=e[Y];return Be(t)?t[Y]:t}var C={lFrame:Ra(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var ba=!1;function vd(){return C.lFrame.elementDepthCount}function yd(){C.lFrame.elementDepthCount++}function Dd(){C.lFrame.elementDepthCount--}function Ma(){return C.bindingsEnabled}function wd(){return C.skipHydrationRootTNode!==null}function Ed(e){return C.skipHydrationRootTNode===e}function Id(){C.skipHydrationRootTNode=null}function N(){return C.lFrame.lView}function oe(){return C.lFrame.tView}function Se(){let e=Sa();for(;e!==null&&e.type===64;)e=e.parent;return e}function Sa(){return C.lFrame.currentTNode}function Cd(){let e=C.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Bt(e,t){let n=C.lFrame;n.currentTNode=e,n.isParent=t}function _a(){return C.lFrame.isParent}function bd(){C.lFrame.isParent=!1}function Ta(){return ba}function Es(e){ba=e}function Md(e){return C.lFrame.bindingIndex=e}function Ht(){return C.lFrame.bindingIndex++}function xa(e){let t=C.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Sd(){return C.lFrame.inI18n}function _d(e,t){let n=C.lFrame;n.bindingIndex=n.bindingRootIndex=e,Lr(t)}function Td(){return C.lFrame.currentDirectiveIndex}function Lr(e){C.lFrame.currentDirectiveIndex=e}function xd(e){let t=C.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Na(e){C.lFrame.currentQueryIndex=e}function Nd(e){let t=e[D];return t.type===2?t.declTNode:t.type===1?e[fe]:null}function Aa(e,t,n){if(n&E.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&E.Host);)if(o=Nd(i),o===null||(i=i[mt],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=C.lFrame=Oa();return r.currentTNode=t,r.lView=e,!0}function Ao(e){let t=Oa(),n=e[D];C.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Oa(){let e=C.lFrame,t=e===null?null:e.child;return t===null?Ra(e):t}function Ra(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 ka(){let e=C.lFrame;return C.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Pa=ka;function Oo(){let e=ka();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 Ad(e){return(C.lFrame.contextLView=gd(e,C.lFrame.contextLView))[V]}function _e(){return C.lFrame.selectedIndex}function Le(e){C.lFrame.selectedIndex=e}function Fa(){let e=C.lFrame;return xo(e.tView,e.selectedIndex)}function kn(){C.lFrame.currentNamespace=Da}function Od(){return C.lFrame.currentNamespace}var La=!0;function Ro(){return La}function ko(e){La=e}function Rd(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=ma(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 Po(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[rt]+=65536),(a>14>16&&(e[m]&3)===t&&(e[m]+=16384,Is(a,i)):Is(a,i)}var st=-1,Ot=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function Pd(e){return e instanceof Ot}function Fd(e){return(e.flags&8)!==0}function Ld(e){return(e.flags&16)!==0}var vr={},jr=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Tn(r);let o=this.injector.get(t,vr,r);return o!==vr||n===vr?o:this.parentInjector.get(t,n,r)}};function jd(e){return e!==st}function Vr(e){return e&32767}function Vd(e){return e>>16}function Br(e,t){let n=Vd(e),r=t;for(;n>0;)r=r[mt],n--;return r}var Hr=!0;function Cs(e){let t=Hr;return Hr=e,t}var Bd=256,Va=Bd-1,Ba=5,Hd=0,ae={};function $d(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ct)&&(r=n[Ct]),r==null&&(r=n[Ct]=Hd++);let o=r&Va,i=1<>Ba)]|=i}function Ha(e,t){let n=$a(e,t);if(n!==-1)return n;let r=t[D];r.firstCreatePass&&(e.injectorIndex=t.length,yr(r.data,e),yr(t,null),yr(r.blueprint,null));let o=Ua(e,t),i=e.injectorIndex;if(jd(o)){let s=Vr(o),a=Br(o,t),u=a[D].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|u[s+c]}return t[i+8]=o,i}function yr(e,t){e.push(0,0,0,0,0,0,0,0,t)}function $a(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Ua(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=Za(o),r===null)return st;if(n++,o=o[mt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return st}function Ud(e,t,n){$d(e,t,n)}function za(e,t,n){if(n&E.Optional||e!==void 0)return e;Eo(t,"NodeInjector")}function Ga(e,t,n,r){if(n&E.Optional&&r===void 0&&(r=null),!(n&(E.Self|E.Host))){let o=e[ut],i=ie(void 0);try{return o?o.get(t,r,n&E.Optional):ea(t,r,n&E.Optional)}finally{ie(i)}}return za(r,t,n)}function Wa(e,t,n,r=E.Default,o){if(e!==null){if(t[m]&2048&&!(r&E.Self)){let s=Zd(e,t,n,r,ae);if(s!==ae)return s}let i=qa(e,t,n,r,ae);if(i!==ae)return i}return Ga(t,n,r,o)}function qa(e,t,n,r,o){let i=Wd(n);if(typeof i=="function"){if(!Aa(t,e,r))return r&E.Host?za(o,n,r):Ga(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&E.Optional))Eo(n);else return s}finally{Pa()}}else if(typeof i=="number"){let s=null,a=$a(e,t),u=st,c=r&E.Host?t[ce][fe]:null;for((a===-1||r&E.SkipSelf)&&(u=a===-1?Ua(e,t):t[a+8],u===st||!Ms(r,!1)?a=-1:(s=t[D],a=Vr(u),t=Br(u,t)));a!==-1;){let l=t[D];if(bs(i,a,l.data)){let d=zd(a,t,n,s,r,c);if(d!==ae)return d}u=t[a+8],u!==st&&Ms(r,t[D].data[a+8]===c)&&bs(i,a,t)?(s=l,a=Vr(u),t=Br(u,t)):a=-1}}return o}function zd(e,t,n,r,o,i){let s=t[D],a=s.data[e+8],u=r==null?_o(a)&&Hr:r!=s&&(a.type&3)!==0,c=o&E.Host&&i===a,l=Gd(a,s,n,u,c);return l!==null?Rt(t,s,l,a):ae}function Gd(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,u=e.directiveStart,c=e.directiveEnd,l=i>>20,d=r?a:a+l,g=o?a+l:c;for(let f=d;f=u&&v.type===n)return f}if(o){let f=s[u];if(f&&Vt(f)&&f.type===n)return u}return null}function Rt(e,t,n,r){let o=e[n],i=t.data;if(Pd(o)){let s=o;s.resolving&&yl(vl(i[n]));let a=Cs(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?ie(s.injectImpl):null,l=Aa(e,r,E.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&Rd(n,i[n],t)}finally{c!==null&&ie(c),Cs(a),s.resolving=!1,Pa()}}return o}function Wd(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Ct)?e[Ct]:void 0;return typeof t=="number"?t>=0?t&Va:qd:t}function bs(e,t,n){let r=1<>Ba)]&r)}function Ms(e,t){return!(e&E.Self)&&!(e&E.Host&&t)}var wn=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Wa(this._tNode,this._lView,t,Tn(r),n)}};function qd(){return new wn(Se(),N())}function Zd(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[m]&2048&&!(s[m]&512);){let a=qa(i,s,n,r|E.Self,ae);if(a!==ae)return a;let u=i.parent;if(!u){let c=s[fa];if(c){let l=c.get(n,ae,r);if(l!==ae)return l}u=Za(s),s=s[mt]}i=u}return o}function Za(e){let t=e[D],n=t.type;return n===2?t.declTNode:n===1?e[fe]:null}function Ss(e,t=null,n=null,r){let o=Yd(e,t,n,r);return o.resolveInjectorInitializers(),o}function Yd(e,t=null,n=null,r,o=new Set){let i=[n||ve,Kl(e)];return r=r||(typeof e=="object"?void 0:q(e)),new mn(i,t||So(),r||null,o)}var Re=class Re{static create(t,n){if(Array.isArray(t))return Ss({name:""},n,t,"");{let r=t.name??"";return Ss({name:r},t.parent,t.providers,r)}}};Re.THROW_IF_NOT_FOUND=bt,Re.NULL=new gn,Re.\u0275prov=A({token:Re,providedIn:"any",factory:()=>_(na)}),Re.__NG_ELEMENT_ID__=-1;var kt=Re;var Qd=new S("");Qd.__NG_ELEMENT_ID__=e=>{let t=Se();if(t===null)throw new M(204,!1);if(t.type&2)return t.value;if(e&E.Optional)return null;throw new M(204,!1)};var Kd="ngOriginalError";function Dr(e){return e[Kd]}var le=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Dr(t);for(;n&&Dr(n);)n=Dr(n);return n||null}},Ya=new S("",{providedIn:"root",factory:()=>I(le).handleError.bind(void 0)}),Fo=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=Jd,t.__NG_ENV_ID__=r=>r;let e=t;return e})(),$r=class extends Fo{constructor(t){super(),this._lView=t}onDestroy(t){return Ca(this._lView,t),()=>md(this._lView,t)}};function Jd(){return new $r(N())}var Ur=class{constructor(){this.destroyed=!1,this.listeners=null,this.errorHandler=I(le,{optional:!0}),this.destroyRef=I(Fo),this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new M(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 M(953,!1);if(this.listeners===null)return;let n=y(null);try{for(let r of this.listeners)try{r(t)}catch(o){this.errorHandler?.handleError(o)}}finally{y(n)}}};function Qa(e){return new Ur}function _s(e,t){return Zs(e,t)}function Xd(e){return Zs(qs,e)}var Te=(_s.required=Xd,_s);function ef(){return Ka(Se(),N())}function Ka(e,t){return new Pn(re(e,t))}var Pn=(()=>{let t=class t{constructor(r){this.nativeElement=r}};t.__NG_ELEMENT_ID__=ef;let e=t;return e})();var Fn=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new It(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};t.\u0275prov=A({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();var zr=class extends be{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,ud()&&(this.destroyRef=I(Fo,{optional:!0})??void 0,this.pendingTasks=I(Fn,{optional:!0})??void 0)}emit(t){let n=y(null);try{super.next(t)}finally{y(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let u=t;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof j&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},me=zr;function Ja(e){return(e.flags&128)===128}var Xa=new Map,tf=0;function nf(){return tf++}function rf(e){Xa.set(e[On],e)}function of(e){Xa.delete(e[On])}var Ts="__ngContext__";function je(e,t){ke(t)?(e[Ts]=t[On],rf(t)):e[Ts]=t}function eu(e){return nu(e[xt])}function tu(e){return nu(e[te])}function nu(e){for(;e!==null&&!Be(e);)e=e[te];return e}var Gr;function ru(e){Gr=e}function sf(){if(Gr!==void 0)return Gr;if(typeof document<"u")return document;throw new M(210,!1)}var Lo=new S("",{providedIn:"root",factory:()=>af}),af="ng",jo=new S(""),yt=new S("",{providedIn:"platform",factory:()=>"unknown"});var Vo=new S("",{providedIn:"root",factory:()=>sf().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var uf="h",cf="b";var lf=()=>null;function Bo(e,t,n=!1){return lf(e,t,n)}var ou=!1,df=new S("",{providedIn:"root",factory:()=>ou});var Wr=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${al})`}};function $t(e){return e instanceof Wr?e.changingThisBreaksApplicationSecurity:e}var we=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(we||{}),ff;function Ho(e,t){return ff(e,t)}function ot(e,t,n,r,o){if(r!=null){let i,s=!1;Be(r)?i=r:ke(r)&&(s=!0,r=r[Ee]);let a=De(r);e===0&&n!==null?o==null?uu(t,n,a):qr(t,n,a,o||null,!0):e===1&&n!==null?qr(t,n,a,o||null,!0):e===2?_f(t,a,s):e===3&&t.destroyNode(a),i!=null&&xf(t,e,i,n,o)}}function hf(e,t){return e.createText(t)}function pf(e,t,n){e.setValue(t,n)}function iu(e,t,n){return e.createElement(t,n)}function gf(e,t){su(e,t),t[Ee]=null,t[fe]=null}function mf(e,t,n,r,o,i){r[Ee]=o,r[fe]=t,Ln(e,r,n,1,o,i)}function su(e,t){t[ye].changeDetectionScheduler?.notify(8),Ln(e,t,t[L],2,null,null)}function vf(e){let t=e[xt];if(!t)return wr(e[D],e);for(;t;){let n=null;if(ke(t))n=t[xt];else{let r=t[$];r&&(n=r)}if(!n){for(;t&&!t[te]&&t!==e;)ke(t)&&wr(t[D],t),t=t[Y];t===null&&(t=e),ke(t)&&wr(t[D],t),n=t&&t[te]}t=n}}function yf(e,t,n,r){let o=$+r,i=n.length;r>0&&(n[o-1][te]=t),r0&&(e[n-1][te]=r[te]);let i=ta(e,$+t);gf(r[D],r);let s=i[lt];s!==null&&s.detachView(i[D]),r[Y]=null,r[te]=null,r[m]&=-129}return r}function zo(e,t){if(!(t[m]&256)){let n=t[L];n.destroyNode&&Ln(e,t,n,3,null,null),vf(t)}}function wr(e,t){if(t[m]&256)return;let n=y(null);try{t[m]&=-129,t[m]|=256,t[Z]&&nr(t[Z]),wf(e,t),Df(e,t),t[D].type===1&&t[L].destroy();let r=t[ct];if(r!==null&&Be(t[Y])){r!==t[Y]&&$o(r,t);let o=t[lt];o!==null&&o.detachView(e)}of(t)}finally{y(n)}}function Df(e,t){let n=e.cleanup,r=t[vn];if(n!==null)for(let i=0;i=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(t[vn]=null);let o=t[Me];if(o!==null){t[Me]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===ue.None||i===ue.Emulated)return null}return re(r,n)}}function qr(e,t,n,r,o){e.insertBefore(t,n,r,o)}function uu(e,t,n){e.appendChild(t,n)}function xs(e,t,n,r,o){r!==null?qr(e,t,n,r,o):uu(e,t,n)}function Cf(e,t,n,r){e.removeChild(t,n,r)}function cu(e,t){return e.parentNode(t)}function bf(e,t,n){return Sf(e,t,n)}function Mf(e,t,n){return e.type&40?re(e,n):null}var Sf=Mf,Ns;function Go(e,t,n,r){let o=Ef(e,r,t),i=t[L],s=r.parent||t[fe],a=bf(s,r,t);if(o!=null)if(Array.isArray(n))for(let u=0;une&&hu(e,t,ne,!1),se(s?2:0,o),n(r,o)}finally{Le(i),se(s?3:1,o)}}function vu(e,t,n){if(pa(t)){let r=y(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function Vf(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return wd()&&(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 As(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,u=at.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=i;if(o!==null){if(!o.hasOwnProperty(i))continue;c=o[i]}e===0?Os(r,n,c,a,u):Os(r,n,c,a)}return r}function Os(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 Bf(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],u=null,c=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Wf(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;_o(n)&&Xf(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||Ha(n,t),je(r,t);let s=n.initialInputs;for(let a=o;a{Rn(e.lView)},consumerOnSignalRead(){this.lView[Z]=this}});function mh(e){let t=e[Z]??Object.create(vh);return t.lView=e,t}var vh=K(W({},wt),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Fe(e.lView);for(;t&&!xu(t[D]);)t=Fe(t);t&&Ia(t)},consumerOnSignalRead(){this.lView[Z]=this}});function xu(e){return e.type!==2}var yh=100;function Nu(e,t=!0,n=0){let r=e[ye],o=r.rendererFactory,i=!1;i||o.begin?.();try{Dh(e,n)}catch(s){throw t&&Mu(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function Dh(e,t){let n=Ta();try{Es(!0),Kr(e,t);let r=0;for(;At(e);){if(r===yh)throw new M(103,!1);r++,Kr(e,1)}}finally{Es(n)}}function wh(e,t,n,r){let o=t[m];if((o&256)===256)return;let i=!1,s=!1;!i&&t[ye].inlineEffectRunner?.flush(),Ao(t);let a=!0,u=null,c=null;i||(xu(e)?(c=fh(t),u=Kt(c)):Li()===null?(a=!1,c=mh(t),u=Kt(c)):t[Z]&&(nr(t[Z]),t[Z]=null));try{Ea(t),Md(e.bindingStartIndex),n!==null&&mu(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&ln(t,f,null)}else{let f=e.preOrderHooks;f!==null&&dn(t,f,0,null),mr(t,0)}if(s||Eh(t),Au(t,0),e.contentQueries!==null&&bu(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&ln(t,f)}else{let f=e.contentHooks;f!==null&&dn(t,f,1),mr(t,1)}Rf(e,t);let d=e.components;d!==null&&Ru(t,d,0);let g=e.viewQuery;if(g!==null&&Qr(2,g,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&ln(t,f)}else{let f=e.viewHooks;f!==null&&dn(t,f,2),mr(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[gr]){for(let f of t[gr])f();t[gr]=null}i||(t[m]&=-73)}catch(l){throw i||Rn(t),l}finally{c!==null&&(er(c,u),a&&ph(c)),Oo()}}function Au(e,t){for(let n=eu(e);n!==null;n=tu(n))for(let r=$;r-1&&(Uo(t,r),ta(n,r))}this._attachedToViewContainer=!1}zo(this._lView[D],this._lView)}onDestroy(t){Ca(this._lView,t)}markForCheck(){ei(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[m]&=-129}reattach(){Fr(this._lView),this._lView[m]|=128}detectChanges(){this._lView[m]|=1024,Nu(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new M(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=kr(this._lView),n=this._lView[ct];n!==null&&!t&&$o(n,this._lView),su(this._lView[D],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new M(902,!1);this._appRef=t;let n=kr(this._lView),r=this._lView[ct];r!==null&&!n&&au(r,this._lView),Fr(this._lView)}};var av=new RegExp(`^(\\d+)*(${cf}|${uf})*(.*)`);var Ch=()=>null;function ti(e,t){return Ch(e,t)}var Pt=class{},ni=new S("",{providedIn:"root",factory:()=>!1});var ku=new S(""),Xr=class{},In=class{};function bh(e){let t=Error(`No component factory found for ${q(e)}.`);return t[Mh]=e,t}var Mh="ngComponent";var eo=class{resolveComponentFactory(t){throw bh(t)}},pi=class pi{};pi.NULL=new eo;var Ft=pi,ft=class{};var Sh=(()=>{let t=class t{};t.\u0275prov=A({token:t,providedIn:"root",factory:()=>null});let e=t;return e})();var Rs=new Set;function He(e){Rs.has(e)||(Rs.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function Pu(e){let t=!0;return setTimeout(()=>{t&&(t=!1,e())}),typeof Mr.requestAnimationFrame=="function"&&Mr.requestAnimationFrame(()=>{t&&(t=!1,e())}),()=>{t=!1}}function ks(e){let t=!0;return queueMicrotask(()=>{t&&e()}),()=>{t=!1}}function Ps(...e){}var k=class e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new me(!1),this.onMicrotaskEmpty=new me(!1),this.onStable=new me(!1),this.onError=new me(!1),typeof Zone>"u")throw new M(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.callbackScheduled=!1,xh(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new M(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new M(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,_h,Ps,Ps);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)}},_h={};function ri(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 Th(e){e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,Zone.root.run(()=>{Pu(()=>{e.callbackScheduled=!1,to(e),e.isCheckStableRunning=!0,ri(e),e.isCheckStableRunning=!1})}),to(e))}function xh(e){let t=()=>{Th(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{if(Nh(a))return n.invokeTask(o,i,s,a);try{return Fs(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&i.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Ls(e)}},onInvoke:(n,r,o,i,s,a,u)=>{try{return Fs(e),n.invoke(o,i,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Ah(a)&&t(),Ls(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&(i.change=="microTask"?(e._hasPendingMicrotasks=i.microTask,to(e),ri(e)):i.change=="macroTask"&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}function to(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Fs(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ls(e){e._nesting--,ri(e)}var no=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new me,this.onMicrotaskEmpty=new me,this.onStable=new me,this.onError=new me}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 Nh(e){return Fu(e,"__ignore_ng_zone__")}function Ah(e){return Fu(e,"__scheduler_tick__")}function Fu(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Lu=(()=>{let t=class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let r=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let o of r)o()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};t.\u0275prov=A({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();function ro(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&du(e,n,i.join(" "))}}function jh(e,t,n){let r=e.projection=[];for(let o=0;o!1;function Hh(e,t,n){return Bh(e,t,n)}function oi(e,t){He("NgSignals");let n=Zi(e),r=n[ge];return t?.equal&&(r.equal=t.equal),n.set=o=>en(r,o),n.update=o=>Yi(r,o),n.asReadonly=$h.bind(n),n}function $h(){let e=this[ge];if(e.readonlyFn===void 0){let t=()=>this();t[ge]=e,e.readonlyFn=t}return e.readonlyFn}var ht=class{};var Cn=class extends ht{constructor(t){super(),this.componentFactoryResolver=new oo(this),this.instance=null;let n=new mn([...t.providers,{provide:ht,useValue:this},{provide:Ft,useValue:this.componentFactoryResolver}],t.parent||So(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Uh(e,t,n=null){return new Cn({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function $e(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function zh(e){return(e.flags&32)===32}function Gh(e,t,n,r,o,i,s,a,u){let c=t.consts,l=Vn(t,e,4,s||null,a||null);Eu(t,n,l,dt(c,u)),Po(t,l);let d=l.tView=qo(2,l,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return t.queries!==null&&(t.queries.template(t,l),d.queries=t.queries.embeddedTView(l)),l}function ao(e,t,n,r,o,i,s,a,u,c){let l=n+ne,d=t.firstCreatePass?Gh(l,t,e,r,o,i,s,a,u):t.data[l];Bt(d,!1);let g=Wh(t,e,d,n);Ro()&&Go(t,e,g,d),je(g,e);let f=oh(g,e,g,d);return e[l]=f,Zo(e,f),Hh(f,d,e),To(d)&&yu(t,e,d),u!=null&&Du(e,d,c),d}function ii(e,t,n,r,o,i,s,a){let u=N(),c=oe(),l=dt(c.consts,i);return ao(u,c,e,t,n,r,o,l,s,a),ii}var Wh=qh;function qh(e,t,n,r){return ko(!0),t[L].createComment("")}function p(e,t,n,r){let o=N(),i=Ht();if($e(o,i,t)){let s=oe(),a=Fa();eh(a,o,e,t,n,r)}return p}function Zh(e,t,n,r){return $e(e,Ht(),n)?t+wo(n)+r:Ie}function un(e,t){return e<<17|t<<2}function Ve(e){return e>>17&32767}function Yh(e){return(e&2)==2}function Qh(e,t){return e&131071|t<<17}function uo(e){return e|2}function pt(e){return(e&131068)>>2}function Er(e,t){return e&-131069|t<<2}function Kh(e){return(e&1)===1}function co(e){return e|1}function Jh(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Ve(s),u=pt(s);e[r]=n;let c=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||jt(d,l)>0)&&(c=!0)}else l=n;if(o)if(u!==0){let g=Ve(e[a+1]);e[r+1]=un(g,a),g!==0&&(e[g+1]=Er(e[g+1],r)),e[a+1]=Qh(e[a+1],r)}else e[r+1]=un(a,0),a!==0&&(e[a+1]=Er(e[a+1],r)),a=r;else e[r+1]=un(u,0),a===0?a=r:e[u+1]=Er(e[u+1],r),u=r;c&&(e[r+1]=uo(e[r+1])),Vs(e,l,r,!0),Vs(e,l,r,!1),Xh(t,l,e,r,i),s=un(a,u),i?t.classBindings=s:t.styleBindings=s}function Xh(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&jt(i,t)>=0&&(n[r+1]=co(n[r+1]))}function Vs(e,t,n,r){let o=e[n+1],i=t===null,s=r?Ve(o):pt(o),a=!1;for(;s!==0&&(a===!1||i);){let u=e[s],c=e[s+1];ep(u,t)&&(a=!0,e[s+1]=r?co(c):uo(c)),s=r?Ve(c):pt(c)}a&&(e[n+1]=r?uo(o):co(o))}function ep(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?jt(e,t)>=0:!1}var R={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ju(e){return e.substring(R.key,R.keyEnd)}function tp(e){return e.substring(R.value,R.valueEnd)}function np(e){return Hu(e),Vu(e,gt(e,0,R.textEnd))}function Vu(e,t){let n=R.textEnd;return n===t?-1:(t=R.keyEnd=op(e,R.key=t,n),gt(e,t,n))}function rp(e){return Hu(e),Bu(e,gt(e,0,R.textEnd))}function Bu(e,t){let n=R.textEnd,r=R.key=gt(e,t,n);return n===r?-1:(r=R.keyEnd=ip(e,r,n),r=Bs(e,r,n,58),r=R.value=gt(e,r,n),r=R.valueEnd=sp(e,r,n),Bs(e,r,n,59))}function Hu(e){R.key=0,R.keyEnd=0,R.value=0,R.valueEnd=0,R.textEnd=e.length}function gt(e,t,n){for(;t32;)t++;return t}function ip(e,t,n){let r;for(;t=65&&(r&-33)<=90||r>=48&&r<=57);)t++;return t}function Bs(e,t,n,r){return t=gt(e,t,n),t32&&(a=s),i=o,o=r,r=u&-33}return a}function Hs(e,t,n,r){let o=-1,i=n;for(;i=0;n=Bu(t,n))Zu(e,ju(t),tp(t))}function Uu(e){Gu(pp,up,e,!0)}function up(e,t){for(let n=np(t);n>=0;n=Vu(t,n))xn(e,ju(t),!0)}function zu(e,t,n,r){let o=N(),i=oe(),s=xa(2);if(i.firstUpdatePass&&qu(i,e,s,r),t!==Ie&&$e(o,s,t)){let a=i.data[_e()];Yu(i,a,o,o[L],e,o[s+1]=mp(t,n),r,s)}}function Gu(e,t,n,r){let o=oe(),i=xa(2);o.firstUpdatePass&&qu(o,null,i,r);let s=N();if(n!==Ie&&$e(s,i,n)){let a=o.data[_e()];if(Qu(a,r)&&!Wu(o,i)){let u=r?a.classesWithoutHost:a.stylesWithoutHost;u!==null&&(n=Sr(u,n||"")),lo(o,a,s,n,r)}else gp(o,a,s,s[L],s[i+1],s[i+1]=hp(e,t,n),r,i)}}function Wu(e,t){return t>=e.expandoStartIndex}function qu(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[_e()],s=Wu(e,n);Qu(i,r)&&t===null&&!s&&(t=!1),t=cp(o,i,t,r),Jh(o,i,t,n,s,r)}}function cp(e,t,n,r){let o=xd(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Ir(null,e,t,n,r),n=Lt(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Ir(o,e,t,n,r),i===null){let u=lp(e,t,r);u!==void 0&&Array.isArray(u)&&(u=Ir(null,e,t,u[1],r),u=Lt(u,t.attrs,r),dp(e,t,r,u))}else i=fp(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function lp(e,t,n){let r=n?t.classBindings:t.styleBindings;if(pt(r)!==0)return e[Ve(r)]}function dp(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Ve(o)]=r}function fp(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let u=e[o],c=Array.isArray(u),l=c?u[1]:u,d=l===null,g=n[o+1];g===Ie&&(g=d?ve:void 0);let f=d?hr(g,r):l===r?g:void 0;if(c&&!bn(f)&&(f=hr(u,r)),bn(f)&&(a=f,s))return a;let v=e[o+1];o=s?Ve(v):pt(v)}if(t!==null){let u=i?t.residualClasses:t.residualStyles;u!=null&&(a=hr(u,r))}return a}function bn(e){return e!==void 0}function mp(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=q($t(e)))),e}function Qu(e,t){return(e.flags&(t?8:16))!==0}var fo=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 Cr(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function vp(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let u=t.length-1;for(;i<=s&&i<=u;){let c=e.at(i),l=t[i],d=Cr(i,c,i,l,n);if(d!==0){d<0&&e.updateValue(i,l),i++;continue}let g=e.at(s),f=t[u],v=Cr(s,g,u,f,n);if(v!==0){v<0&&e.updateValue(s,f),s--,u--;continue}let b=n(i,c),x=n(s,g),U=n(i,l);if(Object.is(U,x)){let z=n(u,f);Object.is(z,b)?(e.swap(i,s),e.updateValue(s,f),u--,s--):e.move(s,i),e.updateValue(i,l),i++;continue}if(r??=new Mn,o??=zs(e,i,s,n),ho(e,r,i,U))e.updateValue(i,l),i++,s++;else if(o.has(U))r.set(b,e.detach(i)),s--;else{let z=e.create(i,t[i]);e.attach(i,z),i++,s++}}for(;i<=u;)Us(e,r,n,i,t[i]),i++}else if(t!=null){let u=t[Symbol.iterator](),c=u.next();for(;!c.done&&i<=s;){let l=e.at(i),d=c.value,g=Cr(i,l,i,d,n);if(g!==0)g<0&&e.updateValue(i,d),i++,c=u.next();else{r??=new Mn,o??=zs(e,i,s,n);let f=n(i,d);if(ho(e,r,i,f))e.updateValue(i,d),i++,s++,c=u.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,c=u.next();else{let v=n(i,l);r.set(v,e.detach(i)),s--}}}for(;!c.done;)Us(e,r,n,e.length,c.value),c=u.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(u=>{e.destroy(u)})}function ho(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function Us(e,t,n,r,o){if(ho(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function zs(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 Mn=class{constructor(){this.kvMap=new Map,this._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 Ku(e,t){He("NgControlFlow");let n=N(),r=Ht(),o=n[r]!==Ie?n[r]:-1,i=o!==-1?Sn(n,ne+o):void 0,s=0;if($e(n,r,e)){let a=y(null);try{if(i!==void 0&&_u(i,s),e!==-1){let u=ne+e,c=Sn(n,u),l=vo(n[D],u),d=ti(c,l.tView.ssrId),g=Ko(n,l,t,{dehydratedView:d});Xo(c,g,s,Jo(l,d))}}finally{y(a)}}else if(i!==void 0){let a=Su(i,s);a!==void 0&&(a[V]=t)}}var po=class{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-$}};function ui(e,t){return t}var go=class{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function ci(e,t,n,r,o,i,s,a,u,c,l,d,g){He("NgControlFlow");let f=N(),v=oe(),b=u!==void 0,x=N(),U=a?s.bind(x[ce][V]):s,z=new go(b,U);x[ne+e]=z,ao(f,v,e+1,t,n,r,o,dt(v.consts,i)),b&&ao(f,v,e+2,u,c,l,d,dt(v.consts,g))}var mo=class extends fo{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-$}at(t){return this.getLView(t)[V].$implicit}attach(t,n){let r=n[Tt];this.needsIndexUpdate||=t!==this.length,Xo(this.lContainer,n,t,Jo(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,yp(this.lContainer,t)}create(t,n){let r=ti(this.lContainer,this.templateTNode.tView.ssrId),o=Ko(this.hostLView,this.templateTNode,new po(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){zo(t[D],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[V].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t(ko(!0),iu(r,o,Od()));var _n="en-US";var Ip=_n;function Cp(e){typeof e=="string"&&(Ip=e.toLowerCase().replace(/_/g,"-"))}var bp=(e,t,n)=>{};function ze(e,t,n,r){let o=N(),i=oe(),s=Se();return Sp(i,o,o[L],s,e,t,r),ze}function Mp(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;iu?a[u]:null}typeof s=="string"&&(i+=2)}return null}function Sp(e,t,n,r,o,i,s){let a=To(r),c=e.firstCreatePass&&sh(e),l=t[V],d=ih(t),g=!0;if(r.type&3||s){let b=re(r,t),x=s?s(b):b,U=d.length,z=s?pe=>s(De(pe[r.index])):r.index,B=null;if(!s&&a&&(B=Mp(e,t,o,r.index)),B!==null){let pe=B.__ngLastListenerFn__||B;pe.__ngNextListenerFn__=i,B.__ngLastListenerFn__=i,g=!1}else{i=Ws(r,t,l,i),bp(b,o,i);let pe=n.listen(x,o,i);d.push(i,pe),c&&c.push(o,z,U,U+1)}}else i=Ws(r,t,l,i);let f=r.outputs,v;if(g&&f!==null&&(v=f[o])){let b=v.length;if(b)for(let x=0;x-1?vt(e.index,t):t;ei(s,5);let a=Gs(t,n,r,i),u=o.__ngNextListenerFn__;for(;u;)a=Gs(t,n,u,i)&&a,u=u.__ngNextListenerFn__;return a}}function Ju(e=1){return Ad(e)}function Ge(e,t=""){let n=N(),r=oe(),o=e+ne,i=r.firstCreatePass?Vn(r,o,1,t,null):r.data[o],s=_p(r,n,i,t,e);n[o]=s,Ro()&&Go(r,n,s,i),Bt(i,!1)}var _p=(e,t,n,r,o)=>(ko(!0),hf(t[L],r));function di(e){return Bn("",e,""),di}function Bn(e,t,n){let r=N(),o=Zh(r,e,t,n);return o!==Ie&&ah(r,_e(),o),Bn}var Tp=(()=>{let t=class t{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){let o=ca(!1,r.type),i=o.length>0?Uh([o],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,i)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(let r of this.cachedInjectors.values())r!==null&&r.destroy()}finally{this.cachedInjectors.clear()}}};t.\u0275prov=A({token:t,providedIn:"environment",factory:()=>new t(_(Pe))});let e=t;return e})();function he(e){He("NgStandalone"),e.getStandaloneInjector=t=>t.get(Tp).getOrCreateStandaloneInjector(e)}var Xu=new S("");function fi(e){return!!e&&typeof e.then=="function"}function ec(e){return!!e&&typeof e.subscribe=="function"}var xp=new S(""),tc=(()=>{let t=class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o}),this.appInits=I(xp,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let r=[];for(let i of this.appInits){let s=i();if(fi(s))r.push(s);else if(ec(s)){let a=new Promise((u,c)=>{s.subscribe({complete:u,error:c})});r.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{o()}).catch(i=>{this.reject(i)}),r.length===0&&o(),this.initialized=!0}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Np=new S("");function Ap(){qi(()=>{throw new M(600,!1)})}function Op(e){return e.isBoundToModule}var Rp=10;function kp(e,t,n){try{let r=n();return fi(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Hn=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=I(Ya),this.afterRenderEffectManager=I(Lu),this.zonelessEnabled=I(ni),this.externalTestViews=new Set,this.beforeRender=new be,this.afterTick=new be,this.componentTypes=[],this.components=[],this.isStable=I(Fn).hasPendingTasks.pipe(fr(r=>!r)),this._injector=I(Pe)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,o){let i=r instanceof In;if(!this._injector.get(tc).done){let f=!i&&ql(r),v=!1;throw new M(405,v)}let a;i?a=r:a=this._injector.get(Ft).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let u=Op(a)?void 0:this._injector.get(ht),c=o||a.selector,l=a.create(kt.NULL,[],c,u),d=l.location.nativeElement,g=l.injector.get(Xu,null);return g?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),br(this.components,l),g?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(r){if(this._runningTick)throw new M(101,!1);let o=y(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(r)}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,y(o),this.afterTick.next()}}detectChangesInAttachedViews(r){let o=null;this._injector.destroyed||(o=this._injector.get(ft,null,{optional:!0}));let i=0,s=this.afterRenderEffectManager;for(;iAt(u))&&(s.execute(),!this.allViews.some(({_lView:u})=>At(u))))break}}attachView(r){let o=r;this._views.push(o),o.attachToAppRef(this)}detachView(r){let o=r;br(this._views,o),o.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let o=this._injector.get(Np,[]);[...this._bootstrapListeners,...o].forEach(i=>i(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>br(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new M(406,!1);let r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function br(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Pp(e,t,n,r){if(!n&&!At(e))return;Nu(e,t,n&&!r?0:1)}var Fp=(()=>{let t=class t{constructor(){this.zone=I(k),this.changeDetectionScheduler=I(Pt),this.applicationRef=I(Hn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Lp=new S("",{factory:()=>!1});function nc({ngZoneFactory:e,ignoreChangesOutsideZone:t}){return e??=()=>new k(oc()),[{provide:k,useFactory:e},{provide:_t,multi:!0,useFactory:()=>{let n=I(Fp,{optional:!0});return()=>n.initialize()}},{provide:_t,multi:!0,useFactory:()=>{let n=I(Vp);return()=>{n.initialize()}}},{provide:Ya,useFactory:jp},t===!0?{provide:ku,useValue:!0}:[]]}function jp(){let e=I(k),t=I(le);return n=>e.runOutsideAngular(()=>t.handleError(n))}function rc(e){let t=e?.ignoreChangesOutsideZone,n=nc({ngZoneFactory:()=>{let r=oc(e);return r.shouldCoalesceEventChangeDetection&&He("NgZone_CoalesceEvent"),new k(r)},ignoreChangesOutsideZone:t});return ua([{provide:Lp,useValue:!0},{provide:ni,useValue:!1},n])}function oc(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Vp=(()=>{let t=class t{constructor(){this.subscription=new j,this.initialized=!1,this.zone=I(k),this.pendingTasks=I(Fn)}initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{k.assertNotInAngularZone(),queueMicrotask(()=>{r!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{k.assertInAngularZone(),r??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Bp=(()=>{let t=class t{constructor(){this.appRef=I(Hn),this.taskService=I(Fn),this.ngZone=I(k),this.zonelessEnabled=I(ni),this.disableScheduling=I(ku,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new j,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof no||!this.zoneIsDefined)}notify(r){if(!this.zonelessEnabled&&r===5)return;switch(r){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let o=this.useMicrotaskScheduler?ks:Pu;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=o(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=o(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&k.isInAngularZone())}tick(r){if(this.runningTick||this.appRef.destroyed)return;let o=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(r)},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(o),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,ks(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(o)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let r=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(r)}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Hp(){return typeof $localize<"u"&&$localize.locale||_n}var hi=new S("",{providedIn:"root",factory:()=>I(hi,E.Optional|E.SkipSelf)||Hp()});var ic=new S("");var hn=null;function $p(e=[],t){return kt.create({name:t,providers:[{provide:An,useValue:"platform"},{provide:ic,useValue:new Set([()=>hn=null])},...e]})}function Up(e=[]){if(hn)return hn;let t=$p(e);return hn=t,Ap(),zp(t),t}function zp(e){e.get(jo,null)?.forEach(n=>n())}function sc(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=Up(r),i=[nc({}),{provide:Pt,useExisting:Bp},...n||[]],a=new Cn({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1}).injector,u=a.get(k);return u.run(()=>{a.resolveInjectorInitializers();let c=a.get(le,null),l;u.runOutsideAngular(()=>{l=u.onError.subscribe({next:f=>{c.handleError(f)}})});let d=()=>a.destroy(),g=o.get(ic);return g.add(d),a.onDestroy(()=>{l.unsubscribe(),g.delete(d)}),kp(c,u,()=>{let f=a.get(tc);return f.runInitializers(),f.donePromise.then(()=>{let v=a.get(hi,_n);Cp(v||_n);let b=a.get(Hn);return t!==void 0&&b.bootstrap(t),b})})})}catch(t){return Promise.reject(t)}}function We(e,t){He("NgSignals");let n=zi(e);return t?.equal&&(n[ge].equal=t.equal),n}var ac=null;function gi(){return ac}function uc(e){ac??=e}var $n=class{};var xe=new S("");var cc=new S("");function lc(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 dc="browser",Wp="server";function mi(e){return e===Wp}var Un=class{};var Di=class extends $n{constructor(){super(...arguments),this.supportsDOMEvents=!0}},wi=class e extends Di{static makeCurrent(){uc(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}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=Zp();return n==null?null:Yp(n)}resetBaseElement(){Ut=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return lc(document.cookie,t)}},Ut=null;function Zp(){return Ut=Ut||document.querySelector("base"),Ut?Ut.getAttribute("href"):null}function Yp(e){return new URL(e,document.baseURI).pathname}var Qp=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac});let e=t;return e})(),Ei=new S(""),gc=(()=>{let t=class t{constructor(r,o){this._zone=o,this._eventNameToPlugin=new Map,r.forEach(i=>{i.manager=this}),this._plugins=r.slice().reverse()}addEventListener(r,o,i){return this._findPluginFor(o).addEventListener(r,o,i)}getZone(){return this._zone}_findPluginFor(r){let o=this._eventNameToPlugin.get(r);if(o)return o;if(o=this._plugins.find(s=>s.supports(r)),!o)throw new M(5101,!1);return this._eventNameToPlugin.set(r,o),o}};t.\u0275fac=function(o){return new(o||t)(_(Ei),_(k))},t.\u0275prov=A({token:t,factory:t.\u0275fac});let e=t;return e})(),zn=class{constructor(t){this._doc=t}},vi="ng-app-id",mc=(()=>{let t=class t{constructor(r,o,i,s={}){this.doc=r,this.appId=o,this.nonce=i,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=mi(s),this.resetHostNodes()}addStyles(r){for(let o of r)this.changeUsageCount(o,1)===1&&this.onStyleAdded(o)}removeStyles(r){for(let o of r)this.changeUsageCount(o,-1)<=0&&this.onStyleRemoved(o)}ngOnDestroy(){let r=this.styleNodesInDOM;r&&(r.forEach(o=>o.remove()),r.clear());for(let o of this.getAllStyles())this.onStyleRemoved(o);this.resetHostNodes()}addHost(r){this.hostNodes.add(r);for(let o of this.getAllStyles())this.addStyleToHost(r,o)}removeHost(r){this.hostNodes.delete(r)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(r){for(let o of this.hostNodes)this.addStyleToHost(o,r)}onStyleRemoved(r){let o=this.styleRef;o.get(r)?.elements?.forEach(i=>i.remove()),o.delete(r)}collectServerRenderedStyles(){let r=this.doc.head?.querySelectorAll(`style[${vi}="${this.appId}"]`);if(r?.length){let o=new Map;return r.forEach(i=>{i.textContent!=null&&o.set(i.textContent,i)}),o}return null}changeUsageCount(r,o){let i=this.styleRef;if(i.has(r)){let s=i.get(r);return s.usage+=o,s.usage}return i.set(r,{usage:o,elements:[]}),o}getStyleElement(r,o){let i=this.styleNodesInDOM,s=i?.get(o);if(s?.parentNode===r)return i.delete(o),s.removeAttribute(vi),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=o,this.platformIsServer&&a.setAttribute(vi,this.appId),r.appendChild(a),a}}addStyleToHost(r,o){let i=this.getStyleElement(r,o),s=this.styleRef,a=s.get(o)?.elements;a?a.push(i):s.set(o,{elements:[i],usage:1})}resetHostNodes(){let r=this.hostNodes;r.clear(),r.add(this.doc.head)}};t.\u0275fac=function(o){return new(o||t)(_(xe),_(Lo),_(Vo,8),_(yt))},t.\u0275prov=A({token:t,factory:t.\u0275fac});let e=t;return e})(),yi={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"},Ci=/%COMP%/g,vc="%COMP%",Kp=`_nghost-${vc}`,Jp=`_ngcontent-${vc}`,Xp=!0,eg=new S("",{providedIn:"root",factory:()=>Xp});function tg(e){return Jp.replace(Ci,e)}function ng(e){return Kp.replace(Ci,e)}function yc(e,t){return t.map(n=>n.replace(Ci,e))}var fc=(()=>{let t=class t{constructor(r,o,i,s,a,u,c,l=null){this.eventManager=r,this.sharedStylesHost=o,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=u,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=mi(u),this.defaultRenderer=new zt(r,a,c,this.platformIsServer)}createRenderer(r,o){if(!r||!o)return this.defaultRenderer;this.platformIsServer&&o.encapsulation===ue.ShadowDom&&(o=K(W({},o),{encapsulation:ue.Emulated}));let i=this.getOrCreateRenderer(r,o);return i instanceof Gn?i.applyToHost(r):i instanceof Gt&&i.applyStyles(),i}getOrCreateRenderer(r,o){let i=this.rendererByCompId,s=i.get(o.id);if(!s){let a=this.doc,u=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,g=this.platformIsServer;switch(o.encapsulation){case ue.Emulated:s=new Gn(c,l,o,this.appId,d,a,u,g);break;case ue.ShadowDom:return new Ii(c,l,r,o,a,u,this.nonce,g);default:s=new Gt(c,l,o,d,a,u,g);break}i.set(o.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(o){return new(o||t)(_(gc),_(mc),_(Lo),_(eg),_(xe),_(yt),_(k),_(Vo))},t.\u0275prov=A({token:t,factory:t.\u0275fac});let e=t;return e})(),zt=class{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(yi[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(hc(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(hc(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new M(-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=yi[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=yi[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=gi().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 hc(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Ii=class extends zt{constructor(t,n,r,o,i,s,a,u){super(t,i,s,u),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=yc(o.id,o.styles);for(let l of c){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(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Gt=class extends zt{constructor(t,n,r,o,i,s,a,u){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=u?yc(u,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Gn=class extends Gt{constructor(t,n,r,o,i,s,a,u){let c=o+"-"+r.id;super(t,n,r,i,s,a,u,c),this.contentAttr=tg(c),this.hostAttr=ng(c)}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}},rg=(()=>{let t=class t extends zn{constructor(r){super(r)}supports(r){return!0}addEventListener(r,o,i){return r.addEventListener(o,i,!1),()=>this.removeEventListener(r,o,i)}removeEventListener(r,o,i){return r.removeEventListener(o,i)}};t.\u0275fac=function(o){return new(o||t)(_(xe))},t.\u0275prov=A({token:t,factory:t.\u0275fac});let e=t;return e})(),pc=["alt","control","meta","shift"],og={"\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"},ig={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},sg=(()=>{let t=class t extends zn{constructor(r){super(r)}supports(r){return t.parseEventName(r)!=null}addEventListener(r,o,i){let s=t.parseEventName(o),a=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>gi().onAndCancel(r,s.domEventName,a))}static parseEventName(r){let o=r.toLowerCase().split("."),i=o.shift();if(o.length===0||!(i==="keydown"||i==="keyup"))return null;let s=t._normalizeKey(o.pop()),a="",u=o.indexOf("code");if(u>-1&&(o.splice(u,1),a="code."),pc.forEach(l=>{let d=o.indexOf(l);d>-1&&(o.splice(d,1),a+=l+".")}),a+=s,o.length!=0||s.length===0)return null;let c={};return c.domEventName=i,c.fullKey=a,c}static matchEventFullKeyCode(r,o){let i=og[r.key]||r.key,s="";return o.indexOf("code.")>-1&&(i=r.code,s="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),pc.forEach(a=>{if(a!==i){let u=ig[a];u(r)&&(s+=a+".")}}),s+=i,s===o)}static eventCallback(r,o,i){return s=>{t.matchEventFullKeyCode(s,r)&&i.runGuarded(()=>o(s))}}static _normalizeKey(r){return r==="esc"?"escape":r}};t.\u0275fac=function(o){return new(o||t)(_(xe))},t.\u0275prov=A({token:t,factory:t.\u0275fac});let e=t;return e})();function Dc(e,t){return sc(W({rootComponent:e},ag(t)))}function ag(e){return{appProviders:[...fg,...e?.providers??[]],platformProviders:dg}}function ug(){wi.makeCurrent()}function cg(){return new le}function lg(){return ru(document),document}var dg=[{provide:yt,useValue:dc},{provide:jo,useValue:ug,multi:!0},{provide:xe,useFactory:lg,deps:[]}];var fg=[{provide:An,useValue:"root"},{provide:le,useFactory:cg,deps:[]},{provide:Ei,useClass:rg,multi:!0,deps:[xe,k,yt]},{provide:Ei,useClass:sg,multi:!0,deps:[xe]},fc,mc,gc,{provide:ft,useExisting:fc},{provide:Un,useClass:Qp,deps:[]},[]];var wc={providers:[rc({eventCoalescing:!0}),{provide:cc,useValue:"/amaze"}]};var Ce=e=>{let t=n=>{if(typeof n=="symbol")return n.toString();if(typeof n>"u")return"undefined";if(typeof n=="string")return n;try{return JSON.stringify(n)}catch(r){if(r instanceof TypeError)return typeof n=="bigint"?`${n.toString()} (bigint)`:"circular object";throw r}};throw new TypeError(`Internal Error: encountered impossible value "${t(e)}"`)};function Ec(e,t,n){if(typeof n<"u"){let s=e,a=t;return Ec.tag(s,a,n)}let r=e,o=t;if(!Object.prototype.hasOwnProperty.call(o,r))return Object.prototype.hasOwnProperty.call(o,"_")?o._():Ce(r);let i=o[r];return i(r)}Ec.tag=(e,t,n)=>{let r=e[t];if(!Object.prototype.hasOwnProperty.call(n,r))return Object.prototype.hasOwnProperty.call(n,"_")?n._():Ce(e);let o=n[r];return o(e)};var hg=214013,pg=2531011,gg=4294967295,mg=(1<<31)-1,bi=function(e){return e*hg+pg&gg},Mi=function(e){return(e&mg)>>16},Ic=function(){function e(t){this.seed=t}return e.prototype.clone=function(){return new e(this.seed)},e.prototype.next=function(){var t=new e(this.seed),n=t.unsafeNext();return[n,t]},e.prototype.unsafeNext=function(){var t=bi(this.seed),n=Mi(t),r=bi(t),o=Mi(r);this.seed=bi(r);var i=Mi(this.seed),s=i+(o+(n<<15)<<15);return s|0},e.prototype.getState=function(){return[this.seed]},e}();function vg(e){var t=e.length===1;if(!t)throw new Error("The state must have been produced by a congruential32 RandomGenerator");return new Ic(e[0])}var yg=Object.assign(function(e){return new Ic(e)},{fromState:vg});var Dg=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},wg=function(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r>>1^-(o&1)&e.A}for(var r=e.N-e.M;r!==e.N-1;++r){var i=(n[r]&e.MASK_UPPER)+(n[r+1]&e.MASK_LOWER);n[r]=n[r+e.M-e.N]^i>>>1^-(i&1)&e.A}var s=(n[e.N-1]&e.MASK_UPPER)+(n[0]&e.MASK_LOWER);return n[e.N-1]=n[e.M-1]^s>>>1^-(s&1)&e.A,n},e.seeded=function(t){var n=Array(e.N);n[0]=t;for(var r=1;r!==e.N;++r){var o=n[r-1]^n[r-1]>>>30;n[r]=Math.imul(e.F,o)+r|0}return n},e.from=function(t){return new e(e.twist(e.seeded(t)),0)},e.prototype.clone=function(){return new e(this.states,this.index)},e.prototype.next=function(){var t=new e(this.states,this.index),n=t.unsafeNext();return[n,t]},e.prototype.unsafeNext=function(){var t=this.states[this.index];return t^=this.states[this.index]>>>e.U,t^=t<>>e.L,++this.index>=e.N&&(this.states=e.twist(this.states),this.index=0),t},e.prototype.getState=function(){return wg([this.index],Dg(this.states),!1)},e.fromState=function(t){var n=t.length===e.N+1&&t[0]>=0&&t[0]>>9),r=t^this.s10^(t>>>18|n<<14)^(this.s10>>>5|this.s11<<27),o=n^this.s11^n>>>18^this.s11>>>5,i=this.s00+this.s10|0;return this.s01=this.s11,this.s00=this.s10,this.s11=o,this.s10=r,i},e.prototype.jump=function(){var t=new e(this.s01,this.s00,this.s11,this.s10);return t.unsafeJump(),t},e.prototype.unsafeJump=function(){for(var t=0,n=0,r=0,o=0,i=[1667051007,2321340297,1548169110,304075285],s=0;s!==4;++s)for(var a=1;a;a<<=1)i[s]&a&&(t^=this.s01,n^=this.s00,r^=this.s11,o^=this.s10),this.unsafeNext();this.s01=t,this.s00=n,this.s11=r,this.s10=o},e.prototype.getState=function(){return[this.s01,this.s00,this.s11,this.s10]},e}();function Cg(e){var t=e.length===4;if(!t)throw new Error("The state must have been produced by a xorshift128plus RandomGenerator");return new bc(e[0],e[1],e[2],e[3])}var bg=Object.assign(function(e){return new bc(-1,~e,e|0,0)},{fromState:Cg});var Mc=function(){function e(t,n,r,o){this.s01=t,this.s00=n,this.s11=r,this.s10=o}return e.prototype.clone=function(){return new e(this.s01,this.s00,this.s11,this.s10)},e.prototype.next=function(){var t=new e(this.s01,this.s00,this.s11,this.s10),n=t.unsafeNext();return[n,t]},e.prototype.unsafeNext=function(){var t=this.s00+this.s10|0,n=this.s10^this.s00,r=this.s11^this.s01,o=this.s00,i=this.s01;return this.s00=o<<24^i>>>8^n^n<<16,this.s01=i<<24^o>>>8^r^(r<<16|n>>>16),this.s10=r<<5^n>>>27,this.s11=n<<5^r>>>27,t},e.prototype.jump=function(){var t=new e(this.s01,this.s00,this.s11,this.s10);return t.unsafeJump(),t},e.prototype.unsafeJump=function(){for(var t=0,n=0,r=0,o=0,i=[3639956645,3750757012,1261568508,386426335],s=0;s!==4;++s)for(var a=1;a;a<<=1)i[s]&a&&(t^=this.s01,n^=this.s00,r^=this.s11,o^=this.s10),this.unsafeNext();this.s01=t,this.s00=n,this.s11=r,this.s10=o},e.prototype.getState=function(){return[this.s01,this.s00,this.s11,this.s10]},e}();function Mg(e){var t=e.length===4;if(!t)throw new Error("The state must have been produced by a xoroshiro128plus RandomGenerator");return new Mc(e[0],e[1],e[2],e[3])}var Si=Object.assign(function(e){return new Mc(-1,~e,e|0,0)},{fromState:Mg});function Wn(e,t){if(t<0){var n=-t;e.sign=-1,e.data[0]=~~(n/4294967296),e.data[1]=n>>>0}else e.sign=1,e.data[0]=~~(t/4294967296),e.data[1]=t>>>0;return e}function Sc(e,t,n){var r=t.data[1],o=t.data[0],i=t.sign,s=n.data[1],a=n.data[0],u=n.sign;if(e.sign=1,i===1&&u===-1){var c=r+s,l=o+a+(c>4294967295?1:0);return e.data[0]=l>>>0,e.data[1]=c>>>0,e}var d=r,g=o,f=s,v=a;i===-1&&(d=s,g=a,f=r,v=o);var b=0,x=d-f;return x<0&&(b=1,x=x>>>0),e.data[0]=g-v-b,e.data[1]=x,e}function qn(e,t){for(var n=e>2?~~(4294967296/e)*e:4294967296,r=t.unsafeNext()+2147483648;r>=n;)r=t.unsafeNext()+2147483648;return r%e}function _i(e,t,n){for(var r=t.length;;){for(var o=0;o!==r;++o){var i=o===0?t[0]+1:4294967296,s=qn(i,n);e[o]=s}for(var o=0;o!==r;++o){var a=e[o],u=t[o];if(au)break}}}var Tg=Number.MAX_SAFE_INTEGER,xg={sign:1,data:[0,0]},Ng={sign:1,data:[0,0]},_c={sign:1,data:[0,0]},Ti=[0,0];function Ag(e,t,n,r){var o=n<=Tg?Wn(_c,n):Sc(_c,Wn(xg,t),Wn(Ng,e));return o.data[1]===4294967295?(o.data[0]+=1,o.data[1]=0):o.data[1]+=1,_i(Ti,o.data,r),Ti[0]*4294967296+Ti[1]+e}function Zn(e,t,n){var r=t-e;if(r<=4294967295){var o=qn(r+1,n);return o+e}return Ag(e,t,r,n)}var Ze=class{constructor(t){this.seed=t,this.prng=Si(t)}choose(t){let n=Zn(0,t.length-1,this.prng);return t[n]}};var xc=Pi(Ni());var Tc=Pi(Ni());var w=function(e){return e[e.U=0]="U",e[e.R=1]="R",e[e.D=2]="D",e[e.L=3]="L",e}(w||{}),Ye=[w.U,w.R,w.D,w.L];var Ne=class e{constructor(t,n,r,o){this.i=t,this.j=n,this.size=r,this.chooser=o,this.neighbors=[]}static getKey(t,n){let r,o;if(typeof t=="number"&&typeof n=="number")r=t,o=n;else if(t instanceof Array)r=t[0],o=t[1];else throw new Error(`invalid arguments: ${t} ${n}`);return`${r}~${o}`}get key(){return e.getKey(this.i,this.j)}equals(t){return t instanceof e?this.i===t.i&&this.j===t.j:t instanceof Array?t.length===2&&this.i===t[0]&&this.j===t[1]:!1}getNeighborCoordinates(t){switch(t){case w.U:return[this.i-1,this.j];case w.R:return[this.i,this.j+1];case w.D:return[this.i+1,this.j];case w.L:return[this.i,this.j-1];default:Ce(t)}}chooseNeighbor(t){let n=[];for(let r of Ye){let o=this.getNeighborCoordinates(r);kg(o,this.size)&&!t.has(e.getKey(o))&&n.push(o)}if(n.length!==0)return new e(...this.chooser.choose(n),this.size,this.chooser)}hasNeighbor(t){let n=e.getKey(t);return this.neighbors.some(r=>r.key===n)}get walls(){let t=[];for(let n of Ye){let r=this.getNeighborCoordinates(n);t.push(!this.hasNeighbor(r))}return this.i===0&&(t[w.U]=!0),this.i===this.size-1&&(t[w.D]=!0),this.j===0&&(t[w.L]=!0),this.j===this.size-1&&(t[w.R]=!0),t}};an([Tc.cache],Ne.prototype,"walls",null);function kg([e,t],n){return e>=0&&e=0&&ti.nodes.set(s.key,s)),i.nodeArray=void 0,i.start=r,i.end=o,i}get indices(){return new Array(this.size).fill(0).map((t,n)=>n)}init(){let t=new Ne(this.chooser.choose(this.indices),this.chooser.choose(this.indices),this.size,this.chooser);this.nodes.set(t.key,t);let n=[];for(;this.nodes.size!n.has(o.key));if(r.length===0)return[];n.add(t.key);for(let o of r){let i=this.solveRecursive(o,n);if(i.length>0)return[t,...i]}return n.delete(t.key),[]}};an([xc.cache],Wt.prototype,"indices",null);var Pg=150,Yn=(()=>{let t=class t{constructor(){this.chooser=new Ze(Nc()),this.positionInternal=oi(new Ne(0,0,0,this.chooser)),this.pathInternal=oi([]),this.inAnimationInternal=!1,this.abortAnimation=!1,this.TEST_ONLY={getChooser:()=>this.chooser}}reset(r,o){o=o??Nc(),this.chooser=new Ze(o),this.mazeInternal=new Wt(r,this.chooser),this.positionInternal.set(this.maze.start),this.pathInternal.set([this.maze.start]),this.inAnimation&&(this.abortAnimation=!0)}get position(){return this.positionInternal}get path(){return this.pathInternal}get inAnimation(){return this.inAnimationInternal}getShareUrl(){return`${window.location.origin}${window.location.pathname}?seed=${this.chooser.seed}`}get maze(){return this.mazeInternal}move(r){if(!this.canMove(r))return;let o=this.positionInternal().getNeighborCoordinates(r),i=this.maze.getNode(o);this.pathInternal.set([...this.pathInternal(),i]),this.positionInternal.set(i)}canMove(r){return!this.positionInternal().walls[r]}solve(r){let o=this.maze.solve();if(!r){this.positionInternal.set(o.at(-1)),this.pathInternal.set(o);return}this.inAnimationInternal=!0;let i=0,s=()=>{if(this.abortAnimation){this.inAnimationInternal=!1,this.abortAnimation=!1;return}this.positionInternal.set(o[i]),this.pathInternal.set(o.slice(0,i+1)),i++{let t=class t{constructor(){this.gameStateService=I(Yn),this.node=Te.required(),this.endpoint=Te(void 0),this.inPath=We(()=>this.gameStateService.path().includes(this.node())),this.classes=We(()=>{let r=this.node(),o=[];for(let s of Ye)r.walls[s]&&o.push(Ac(s));let i=this.endpoint();if(i){let s=Ac(Oc(r));o=o.filter(a=>a!==s),o.push("endpoint",`endpoint-edge-${s}`,i)}return o.join(" ")}),this.icon=We(()=>{if(!this.endpoint())return"";let r=Oc(this.node()),o=this.endpoint()==="start";switch(r){case w.U:return o?"arrow_downward":"arrow_upward";case w.R:return o?"arrow_back":"arrow_forward";case w.D:return o?"arrow_upward":"arrow_downward";case w.L:return o?"arrow_forward":"arrow_back";default:Ce(r)}})}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=de({type:t,selectors:[["amaze-node"]],hostVars:4,hostBindings:function(o,i){o&2&&(Uu(i.classes()),ai("material-symbols",!0))},inputs:{node:[1,"node"],endpoint:[1,"endpoint"]},standalone:!0,features:[he],decls:4,vars:2,consts:[[1,"current-position"],[1,"historical-position"]],template:function(o,i){o&1&&(P(0,"span"),Ge(1),F(),ii(2,Fg,1,0,"span",0)(3,Lg,1,0,"span",1)),o&2&&(h(),di(i.icon()),h(),Ku(i.node().equals(i.gameStateService.position())?2:i.inPath()?3:-1))},styles:["[_nghost-%COMP%]{align-items:center;border:1px solid rgba(0,0,0,0);display:flex;height:2rem;justify-content:center;position:relative;text-align:center;text-transform:uppercase;width:2rem}.up[_nghost-%COMP%]{border-top:1px solid var(--border-color)}.right[_nghost-%COMP%]{border-right:1px solid var(--border-color)}.down[_nghost-%COMP%]{border-bottom:1px solid var(--border-color)}.left[_nghost-%COMP%]{border-left:1px solid var(--border-color)}[_nghost-%COMP%] span[_ngcontent-%COMP%]{position:absolute}.endpoint-edge-up[_nghost-%COMP%] span[_ngcontent-%COMP%]{top:-95%}.endpoint-edge-right[_nghost-%COMP%] span[_ngcontent-%COMP%]{right:-90%}.endpoint-edge-down[_nghost-%COMP%] span[_ngcontent-%COMP%]{bottom:-95%}.endpoint-edge-left[_nghost-%COMP%] span[_ngcontent-%COMP%]{left:-90%}[_nghost-%COMP%] span.current-position[_ngcontent-%COMP%], [_nghost-%COMP%] span.historical-position[_ngcontent-%COMP%]{background:var(--current-position-color);border-radius:50%;height:.6666666667rem;inset:.6666666667rem;width:.6666666667rem}[_nghost-%COMP%] span.historical-position[_ngcontent-%COMP%]{background:var(--path-color)}"],changeDetection:0});let e=t;return e})();function Ac(e){switch(e){case w.U:return"up";case w.R:return"right";case w.D:return"down";case w.L:return"left";default:Ce(e)}}function Oc(e){if(e.i===0)return w.U;if(e.j===e.size-1)return w.R;if(e.i===e.size-1)return w.D;if(e.j===0)return w.L;throw new Error(`node is not attached to maze edge: ${e}`)}function jg(e,t){if(e&1&&G(0,"amaze-node",1),e&2){let n=t.$implicit,r=Ju(2);Ue("node",n)("endpoint",r.getEndpoint(n))}}function Vg(e,t){if(e&1&&(P(0,"div",0),ci(1,jg,1,2,"amaze-node",1,ui),F()),e&2){let n=t.$implicit;h(),li(n)}}var kc=(()=>{let t=class t{constructor(){this.elementRef=I(Pn),this.maze=Te.required(),this.move=Qa()}ngAfterViewInit(){this.cleanupEventListener(),t.eventListener=r=>this.handleKeypress(r),document.body.addEventListener("keydown",t.eventListener)}ngOnDestroy(){this.cleanupEventListener()}cleanupEventListener(){t.eventListener&&document.body.removeEventListener("keydown",t.eventListener)}handleKeypress(r){let o=Bg(r.key);o!==void 0&&this.move.emit(o)}getEndpoint(r){if(this.maze().start.equals(r))return"start";if(this.maze().end.equals(r))return"end"}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=de({type:t,selectors:[["amaze-maze"]],hostVars:1,hostBindings:function(o,i){o&2&&p("tabindex",0)},inputs:{maze:[1,"maze"]},outputs:{move:"move"},standalone:!0,features:[he],decls:2,vars:0,consts:[[1,"row"],[3,"node","endpoint"]],template:function(o,i){o&1&&ci(0,Vg,3,0,"div",0,ui),o&2&&li(i.maze().toArray())},dependencies:[Rc],styles:["[_nghost-%COMP%]{border-collapse:collapse;display:block}[_nghost-%COMP%]:focus{outline:none}.row[_ngcontent-%COMP%]{display:flex}amaze-node[_ngcontent-%COMP%]{margin:-1px 0 0 -1px}"],changeDetection:0});let e=t;return e})();function Bg(e){switch(e){case"ArrowUp":case"W":case"w":return w.U;case"ArrowRight":case"D":case"d":return w.R;case"ArrowDown":case"S":case"s":return w.D;case"ArrowLeft":case"A":case"a":return w.L;default:return}}var Pc=(()=>{let t=class t{constructor(){this.color="black"}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=de({type:t,selectors:[["amaze-logo"]],hostVars:2,hostBindings:function(o,i){o&2&&si("height",i.sizePx+"px")},inputs:{sizePx:"sizePx",color:"color"},standalone:!0,features:[he],decls:65,vars:66,consts:[["viewBox","0 0 565 566","fill","none","xmlns","http://www.w3.org/2000/svg"],["x1","482","y1","3","x2","482","y2","83","stroke-width","6"],["x1","403","y1","3","x2","403","y2","83","stroke-width","6"],["x1","323","y1","3","x2","323","y2","83","stroke-width","6"],["d","M480 3L400 3","stroke-width","6"],["d","M320 3L240 3","stroke-width","6"],["d","M400 3L320 3","stroke-width","6"],["x1","3","y1","163","x2","3","y2","243","stroke-width","6"],["d","M240 163L160 163","stroke-width","6"],["d","M160 163L80 163","stroke-width","6"],["x1","83","y1","83","x2","83","y2","163","stroke-width","6"],["x1","3","y1","83","x2","3","y2","163","stroke-width","6"],["d","M245 83L165 83","stroke-width","6"],["x1","83","y1","3","x2","83","y2","83","stroke-width","6"],["x1","3","x2","3","y2","83","stroke-width","6"],["d","M240 3L160 3","stroke-width","6"],["d","M160 3L80 3","stroke-width","6"],["d","M485 403L404 403","stroke-width","6"],["x1","482","y1","403","x2","482","y2","483","stroke-width","6"],["x1","562","y1","83","x2","562","y2","163","stroke-width","6"],["d","M480 323L400 323","stroke-width","6"],["x1","562","y1","163","x2","562","y2","243","stroke-width","6"],["x1","562","y1","3","x2","562","y2","83","stroke-width","6"],["d","M565 3L480 3","stroke-width","6"],["x1","83","y1","403","x2","83","y2","483","stroke-width","6"],["x1","3","y1","403","x2","3","y2","483","stroke-width","6"],["d","M160 403L80 403","stroke-width","6"],["x1","3","y1","323","x2","3","y2","403","stroke-width","6"],["d","M160 323L80 323","stroke-width","6"],["x1","83","y1","243","x2","83","y2","323","stroke-width","6"],["x1","3","y1","243","x2","3","y2","323","stroke-width","6"],["d","M245 243L165 243","stroke-width","6"],["d","M165 243L80 243","stroke-width","6"],["d","M485 243L404 243","stroke-width","6"],["x1","323","y1","162","x2","323","y2","243","stroke-width","6"],["d","M485 163L404 163","stroke-width","6"],["d","M326 163L240 163","stroke-width","6"],["x1","482","y1","83","x2","482","y2","163","stroke-width","6"],["d","M326 83L245 83","stroke-width","6"],["x1","562","y1","243","x2","562","y2","323","stroke-width","6"],["d","M485 323L404 323","stroke-width","6"],["d","M400 323L320 323","stroke-width","6"],["x1","482","y1","243","x2","482","y2","323","stroke-width","6"],["x1","323","y1","243","x2","323","y2","323","stroke-width","6"],["x1","562","y1","323","x2","562","y2","403","stroke-width","6"],["d","M320 483L240 483","stroke-width","6"],["d","M400 483L320 483","stroke-width","6"],["x1","562","y1","483","x2","562","y2","566","stroke-width","6"],["d","M324 403L240 403","stroke-width","6"],["d","M404 403L324 403","stroke-width","6"],["x1","562","y1","403","x2","562","y2","483","stroke-width","6"],["x1","243","y1","243","x2","243","y2","323","stroke-width","6"],["x1","243","y1","323","x2","243","y2","403","stroke-width","6"],["d","M485 563L399 563","stroke-width","6"],["x1","482","y1","483","x2","482","y2","563","stroke-width","6"],["x1","163","y1","483","x2","163","y2","563","stroke-width","6"],["x1","83","y1","483","x2","83","y2","563","stroke-width","6"],["x1","3","y1","483","x2","3","y2","563","stroke-width","6"],["d","M320 563L240 563","stroke-width","6"],["d","M400 563L320 563","stroke-width","6"],["d","M240 563L160 563","stroke-width","6"],["d","M80 563L0 563","stroke-width","6"],["d","M160 563L80 563","stroke-width","6"],["x1","243","y1","483","x2","243","y2","563","stroke-width","6"]],template:function(o,i){o&1&&(kn(),P(0,"svg",0),G(1,"line",1)(2,"line",2)(3,"line",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"line",7)(8,"path",8)(9,"path",9)(10,"line",10)(11,"line",11)(12,"path",12)(13,"line",13)(14,"line",14)(15,"path",15)(16,"path",16)(17,"path",17)(18,"line",18)(19,"line",19)(20,"path",20)(21,"line",21)(22,"line",22)(23,"path",23)(24,"line",24)(25,"line",25)(26,"path",26)(27,"line",27)(28,"path",28)(29,"line",29)(30,"line",30)(31,"path",31)(32,"path",32)(33,"path",33)(34,"line",34)(35,"path",35)(36,"path",36)(37,"line",37)(38,"path",38)(39,"line",39)(40,"path",40)(41,"path",41)(42,"line",42)(43,"line",43)(44,"line",44)(45,"path",45)(46,"path",46)(47,"line",47)(48,"path",48)(49,"path",49)(50,"line",50)(51,"line",51)(52,"line",52)(53,"path",53)(54,"line",54)(55,"line",55)(56,"line",56)(57,"line",57)(58,"path",58)(59,"path",59)(60,"path",60)(61,"path",61)(62,"path",62)(63,"line",63)(64,"path",41),F()),o&2&&(p("width",i.sizePx)("height",i.sizePx),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0});let e=t;return e})();var Fc=(()=>{let t=class t{constructor(){this.color=Te("black"),this.sizeRem=Te(1.25),this.size=We(()=>`${this.sizeRem()}rem`),this.pathStyle=We(()=>`transform: scale(${Hg(this.sizeRem())/98});`)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=de({type:t,selectors:[["github-logo"]],inputs:{color:[1,"color"],sizeRem:[1,"sizeRem"]},standalone:!0,features:[he],decls:2,vars:5,consts:[["xmlns","http://www.w3.org/2000/svg",2,"vertical-align","middle"],["fill-rule","evenodd","clip-rule","evenodd","d","M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z"]],template:function(o,i){o&1&&(kn(),P(0,"svg",0),G(1,"path",1),F()),o&2&&(p("width",i.size())("height",i.size()),h(),$u(i.pathStyle()),p("fill",i.color()))},encapsulation:2});let e=t;return e})();function Hg(e){let t=parseInt(getComputedStyle(document.documentElement).fontSize);return e*t}var Ai="dark-mode",$g=new S("window",{factory:()=>window}),Lc=(()=>{let t=class t{constructor(){this.gameStateService=I(Yn),this.window=I($g),this.size=20}ngOnInit(){this.window.matchMedia&&this.window.matchMedia("(prefers-color-scheme: dark)").matches&&document.body.classList.add(Ai);let r=new URL(this.window.location.toString()),o;r.searchParams.has("seed")&&(o=Number(r.searchParams.get("seed")),this.window.history.pushState({},"",this.window.location.origin)),this.generateNewMaze(o)}get iconColor(){return this.darkModeEnabled?"white":"black"}get maze(){return this.gameStateService.maze}solveMaze(){this.gameStateService.inAnimation||this.gameStateService.solve(!0)}generateNewMaze(r){this.gameStateService.reset(this.size,r)}get darkModeEnabled(){return document.body.classList.contains(Ai)}get themeModeIcon(){return this.darkModeEnabled?"light_mode":"dark_mode"}toggleDarkMode(){document.body.classList.toggle(Ai)}shareMaze(){let r=this.gameStateService.getShareUrl();navigator.clipboard.writeText(r),alert("URL copied to clipboard")}handleMove(r){this.gameStateService.inAnimation||this.gameStateService.move(r)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=de({type:t,selectors:[["app-root"]],standalone:!0,features:[he],decls:14,vars:5,consts:[[3,"sizePx","color"],["title","Solve the maze","data-test-id","solve-maze-button",1,"material-symbols","icon-button",3,"click"],["title","Generate a new maze","data-test-id","generate-maze-button",1,"material-symbols","icon-button",3,"click"],["title","Toggle light/dark mode","data-test-id","toggle-dark-mode-button",1,"material-symbols","icon-button",3,"click"],["title","Share this maze","data-test-id","share-maze-button",1,"material-symbols","icon-button",3,"click"],["href","https://github.com/chrispyles/amaze","target","_blank","title","View on GitHub",1,"icon-button"],[3,"color"],[3,"move","maze"]],template:function(o,i){o&1&&(P(0,"header"),G(1,"amaze-logo",0),P(2,"div")(3,"button",1),ze("click",function(){return i.solveMaze()}),Ge(4," conversion_path "),F(),P(5,"button",2),ze("click",function(){return i.generateNewMaze()}),Ge(6," refresh "),F(),P(7,"button",3),ze("click",function(){return i.toggleDarkMode()}),Ge(8),F(),P(9,"button",4),ze("click",function(){return i.shareMaze()}),Ge(10," share "),F(),P(11,"a",5),G(12,"github-logo",6),F()()(),P(13,"amaze-maze",7),ze("move",function(a){return i.handleMove(a)}),F()),o&2&&(h(),Ue("sizePx",36)("color",i.iconColor),h(7),Bn(" ",i.themeModeIcon," "),h(4),Ue("color",i.iconColor),h(),Ue("maze",i.maze))},dependencies:[Fc,Pc,kc],styles:["[_nghost-%COMP%]{align-items:center;display:flex;height:100%;justify-content:center;position:relative;width:100%}header[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between;padding:1rem;position:absolute;top:0;width:calc(100% - 2rem)}header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex}"],changeDetection:0});let e=t;return e})();Dc(Lc,wc).catch(e=>console.error(e)); diff --git a/main-MJ4J4H5D.js b/main-MJ4J4H5D.js deleted file mode 100644 index 54dda78..0000000 --- a/main-MJ4J4H5D.js +++ /dev/null @@ -1,7 +0,0 @@ -var Ac=Object.create;var Zn=Object.defineProperty,Oc=Object.defineProperties,Rc=Object.getOwnPropertyDescriptor,kc=Object.getOwnPropertyDescriptors,Pc=Object.getOwnPropertyNames,Ni=Object.getOwnPropertySymbols,Fc=Object.getPrototypeOf,Oi=Object.prototype.hasOwnProperty,Lc=Object.prototype.propertyIsEnumerable;var Ai=(e,t,n)=>t in e?Zn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,z=(e,t)=>{for(var n in t||={})Oi.call(t,n)&&Ai(e,n,t[n]);if(Ni)for(var n of Ni(t))Lc.call(t,n)&&Ai(e,n,t[n]);return e},Y=(e,t)=>Oc(e,kc(t));var jc=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Vc=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Pc(t))!Oi.call(e,o)&&o!==n&&Zn(e,o,{get:()=>t[o],enumerable:!(r=Rc(t,o))||r.enumerable});return e};var Ri=(e,t,n)=>(n=e!=null?Ac(Fc(e)):{},Vc(t||!e||!e.__esModule?Zn(n,"default",{value:e,enumerable:!0}):n,e));var Ti=jc(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});function Ig(e,t,n){var r=n.get;if(!r)throw new TypeError("Getter property descriptor expected");n.get=function(){var o=r.call(this);return Object.defineProperty(this,t,{configurable:n.configurable,enumerable:n.enumerable,writable:!1,value:o}),o}}_i.cache=Ig});function ki(e,t){return Object.is(e,t)}var O=null,zt=!1,Gt=1,he=Symbol("SIGNAL");function y(e){let t=O;return O=e,t}function Pi(){return O}var vt={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 qt(e){if(zt)throw new Error("");if(O===null)return;O.consumerOnSignalRead(e);let t=O.nextProducerIndex++;if(Qt(O),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Jn(e){Qt(e);for(let t=0;t0}function Qt(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Bi(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Hi(e){return e.producerNode!==void 0}function $i(e){let t=Object.create($c);t.computation=e;let n=()=>{if(Fi(t),qt(t),t.value===Wt)throw t.error;return t.value};return n[he]=t,n}var Yn=Symbol("UNSET"),Qn=Symbol("COMPUTING"),Wt=Symbol("ERRORED"),$c=Y(z({},vt),{value:Yn,dirty:!0,error:null,equal:ki,producerMustRecompute(e){return e.value===Yn||e.value===Qn},producerRecomputeValue(e){if(e.value===Qn)throw new Error("Detected cycle in computations.");let t=e.value;e.value=Qn;let n=Zt(e),r;try{r=e.computation()}catch(o){r=Wt,e.error=o}finally{Kn(e,n)}if(t!==Yn&&t!==Wt&&r!==Wt&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function Uc(){throw new Error}var Ui=Uc;function zi(){Ui()}function Gi(e){Ui=e}var zc=null;function Wi(e){let t=Object.create(er);t.value=e;let n=()=>(qt(t),t.value);return n[he]=t,n}function Kt(e,t){ji()||zi(),e.equal(e.value,t)||(e.value=t,Gc(e))}function qi(e,t){ji()||zi(),Kt(e,t(e.value))}var er=Y(z({},vt),{equal:ki,value:void 0});function Gc(e){e.version++,Bc(),Li(e),zc?.()}function V(e){return typeof e=="function"}function Jt(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 Xt=Jt(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 yt(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var P=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(V(r))try{r()}catch(i){t=i instanceof Xt?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Zi(i)}catch(s){t=t??[],s instanceof Xt?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Xt(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Zi(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)&&yt(n,t)}remove(t){let{_finalizers:n}=this;n&&yt(n,t),t instanceof e&&t._removeParent(this)}};P.EMPTY=(()=>{let e=new P;return e.closed=!0,e})();var tr=P.EMPTY;function en(e){return e instanceof P||e&&"closed"in e&&V(e.remove)&&V(e.add)&&V(e.unsubscribe)}function Zi(e){V(e)?e():e.unsubscribe()}var Q={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ze={setTimeout(e,t,...n){let{delegate:r}=Ze;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Ze;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Yi(e){Ze.setTimeout(()=>{let{onUnhandledError:t}=Q;if(t)t(e);else throw e})}function nr(){}var Qi=rr("C",void 0,void 0);function Ki(e){return rr("E",void 0,e)}function Ji(e){return rr("N",e,void 0)}function rr(e,t,n){return{kind:e,value:t,error:n}}var Ne=null;function Ye(e){if(Q.useDeprecatedSynchronousErrorHandling){let t=!Ne;if(t&&(Ne={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Ne;if(Ne=null,n)throw r}}else e()}function Xi(e){Q.useDeprecatedSynchronousErrorHandling&&Ne&&(Ne.errorThrown=!0,Ne.error=e)}var Ae=class extends P{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,en(t)&&t.add(this)):this.destination=Zc}static create(t,n,r){return new Qe(t,n,r)}next(t){this.isStopped?ir(Ji(t),this):this._next(t)}error(t){this.isStopped?ir(Ki(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?ir(Qi,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()}}},Wc=Function.prototype.bind;function or(e,t){return Wc.call(e,t)}var sr=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){tn(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){tn(r)}else tn(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){tn(n)}}},Qe=class extends Ae{constructor(t,n,r){super();let o;if(V(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Q.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&or(t.next,i),error:t.error&&or(t.error,i),complete:t.complete&&or(t.complete,i)}):o=t}this.destination=new sr(o)}};function tn(e){Q.useDeprecatedSynchronousErrorHandling?Xi(e):Yi(e)}function qc(e){throw e}function ir(e,t){let{onStoppedNotification:n}=Q;n&&Ze.setTimeout(()=>n(e,t))}var Zc={closed:!0,next:nr,error:qc,complete:nr};var es=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ts(e){return e}function ns(e){return e.length===0?ts:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var ar=(()=>{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=Qc(n)?n:new Qe(n,r,o);return Ye(()=>{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=rs(r),new r((o,i)=>{let s=new Qe({next:a=>{try{n(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[es](){return this}pipe(...n){return ns(n)(this)}toPromise(n){return n=rs(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 rs(e){var t;return(t=e??Q.Promise)!==null&&t!==void 0?t:Promise}function Yc(e){return e&&V(e.next)&&V(e.error)&&V(e.complete)}function Qc(e){return e&&e instanceof Ae||Yc(e)&&en(e)}function Kc(e){return V(e?.lift)}function os(e){return t=>{if(Kc(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 is(e,t,n,r,o){return new ur(e,t,n,r,o)}var ur=class extends Ae{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){t.error(u)}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 ss=Jt(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Ie=(()=>{class e extends ar{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new nn(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new ss}next(n){Ye(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Ye(()=>{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(){Ye(()=>{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?tr:(this.currentObservers=null,i.push(n),new P(()=>{this.currentObservers=null,yt(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new ar;return n.source=this,n}}return e.create=(t,n)=>new nn(t,n),e})(),nn=class extends Ie{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:tr}};var Dt=class extends Ie{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};function rn(e,t,n,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,n,i):s(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i}function cr(e,t){return os((n,r)=>{let o=0;n.subscribe(is(r,i=>{r.next(e.call(t,i,o++))}))})}var Jc="https://g.co/ng/security#xss",M=class extends Error{constructor(t,n){super(go(t,n)),this.code=t}};function go(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}var Us=Symbol("InputSignalNode#UNSET"),Xc=Y(z({},er),{transformFn:void 0,applyValueToInputSignal(e,t){Kt(e,t)}});function zs(e,t){let n=Object.create(Xc);n.value=e,n.transformFn=t?.transform;function r(){if(qt(n),n.value===Us)throw new M(-950,!1);return n.value}return r[he]=n,r}function el(e){return{toString:e}.toString()}var Ir=globalThis;function T(e){for(let t in e)if(e[t]===T)return t;throw Error("Could not find renamed property on target object.")}function G(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(G).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 Cr(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var tl=T({__forward_ref__:T});function Gs(e){return e.__forward_ref__=Gs,e.toString=function(){return G(this())},e}function X(e){return nl(e)?e():e}function nl(e){return typeof e=="function"&&e.hasOwnProperty(tl)&&e.__forward_ref__===Gs}function A(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function mo(e){return as(e,Ws)||as(e,qs)}function as(e,t){return e.hasOwnProperty(t)?e[t]:null}function rl(e){let t=e&&(e[Ws]||e[qs]);return t||null}function us(e){return e&&(e.hasOwnProperty(cs)||e.hasOwnProperty(ol))?e[cs]:null}var Ws=T({\u0275prov:T}),cs=T({\u0275inj:T}),qs=T({ngInjectableDef:T}),ol=T({ngInjectorDef:T}),S=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=A({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Zs(e){return e&&!!e.\u0275providers}var il=T({\u0275cmp:T}),sl=T({\u0275dir:T}),al=T({\u0275pipe:T});var ls=T({\u0275fac:T}),wt=T({__NG_ELEMENT_ID__:T}),ds=T({__NG_ENV_ID__:T});function vo(e){return typeof e=="string"?e:e==null?"":String(e)}function ul(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():vo(e)}function cl(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new M(-200,e)}function yo(e,t){throw new M(-201,!1)}var E=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}(E||{}),br;function Ys(){return br}function oe(e){let t=br;return br=e,t}function Qs(e,t,n){let r=mo(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&E.Optional)return null;if(t!==void 0)return t;yo(e,"Injector")}var ll={},Et=ll,dl="__NG_DI_FLAG__",dn="ngTempTokenPath",fl="ngTokenPath",hl=/\n/gm,pl="\u0275",fs="__source",tt;function gl(){return tt}function Ke(e){let t=tt;return tt=e,t}function ml(e,t=E.Default){if(tt===void 0)throw new M(-203,!1);return tt===null?Qs(e,void 0,t):tt.get(e,t&E.Optional?null:void 0,t)}function _(e,t=E.Default){return(Ys()||ml)(X(e),t)}function b(e,t=E.Default){return _(e,Mn(t))}function Mn(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Mr(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):G(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(hl,` - `)}`}function It(e,t){let n=e.hasOwnProperty(ls);return n?e[ls]:null}function Do(e,t){e.forEach(n=>Array.isArray(n)?Do(n,t):t(n))}function wl(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ks(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function El(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function wo(e,t,n){let r=Pt(e,t);return r>=0?e[r|1]=n:(r=~r,El(e,r,t,n)),r}function lr(e,t){let n=Pt(e,t);if(n>=0)return e[n|1]}function Pt(e,t){return Il(e,t,1)}function Il(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<t){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&c!==d){if(K(r))return!1;s=!0}}}}return K(r)||s}function K(e){return(e&1)===0}function xl(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!==""&&!K(s)&&(t+=ps(i,o),o=""),r=s,i=i||!K(r);n++}return o!==""&&(t+=ps(i,o)),t}function kl(e){return e.map(Rl).join(",")}function Pl(e){let t=[],n=[],r=1,o=2;for(;r{let t=Vl(e),n=Y(z({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===ea.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||ae.Emulated,styles:e.styles||ge,_:null,schemas:e.schemas||null,tView:null,id:""});Bl(n);let r=e.dependencies;return n.directiveDefs=ms(r,!1),n.pipeDefs=ms(r,!0),n.id=Hl(n),n})}function Fl(e){return Sn(e)||na(e)}function Ll(e){return e!==null}function gs(e,t){if(e==null)return Ct;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 Sn(e){return e[il]||null}function na(e){return e[sl]||null}function ra(e){return e[al]||null}function jl(e){let t=Sn(e)||na(e)||ra(e);return t!==null?t.standalone:!1}function Vl(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||Ct,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||ge,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:gs(e.inputs,t),outputs:gs(e.outputs),debugInfo:null}}function Bl(e){e.features?.forEach(t=>t(e))}function ms(e,t){if(!e)return null;let n=t?ra:Fl;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Ll)}function Hl(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 oa(e){return{\u0275providers:e}}function $l(...e){return{\u0275providers:ia(!0,e),\u0275fromNgModule:!0}}function ia(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Do(t,s=>{let a=s;_r(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&sa(o,i),n}function sa(e,t){for(let n=0;n{t(i,r)})}}function _r(e,t,n,r){if(e=X(e),!e)return!1;let o=null,i=us(e),s=!i&&Sn(e);if(!i&&!s){let u=e.ngModule;if(i=us(u),i)o=u;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 u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)_r(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{Do(i.imports,l=>{_r(l,t,n,r)&&(c||=[],c.push(l))})}finally{}c!==void 0&&sa(c,t)}if(!a){let c=It(o)||(()=>new o);t({provide:o,useFactory:c,deps:ge},o),t({provide:Xs,useValue:o,multi:!0},o),t({provide:bt,useValue:()=>_(o),multi:!0},o)}let u=i.providers;if(u!=null&&!a){let c=e;Co(u,l=>{t(l,c)})}}else return!1;return o!==e&&e.providers!==void 0}function Co(e,t){for(let n of e)Zs(n)&&(n=n.\u0275providers),Array.isArray(n)?Co(n,t):t(n)}var Ul=T({provide:String,useValue:T});function aa(e){return e!==null&&typeof e=="object"&&Ul in e}function zl(e){return!!(e&&e.useExisting)}function Gl(e){return!!(e&&e.useFactory)}function Tr(e){return typeof e=="function"}var _n=new S(""),sn={},Wl={},dr;function bo(){return dr===void 0&&(dr=new fn),dr}var ke=class{},hn=class extends ke{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Nr(t,s=>this.processProvider(s)),this.records.set(Js,Je(void 0,this)),o.has("environment")&&this.records.set(ke,Je(void 0,this));let i=this.records.get(_n);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Xs,ge,E.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=y(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(),y(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=Ke(this),r=oe(void 0),o;try{return t()}finally{Ke(n),oe(r)}}get(t,n=Et,r=E.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(ds))return t[ds](this);r=Mn(r);let o,i=Ke(this),s=oe(void 0);try{if(!(r&E.SkipSelf)){let u=this.records.get(t);if(u===void 0){let c=Jl(t)&&mo(t);c&&this.injectableDefInScope(c)?u=Je(xr(t),sn):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=r&E.Self?bo():this.parent;return n=r&E.Optional&&n===Et?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[dn]=a[dn]||[]).unshift(G(t)),i)throw a;return yl(a,t,"R3InjectorError",this.source)}else throw a}finally{oe(s),Ke(i)}}resolveInjectorInitializers(){let t=y(null),n=Ke(this),r=oe(void 0),o;try{let i=this.get(bt,ge,E.Self);for(let s of i)s()}finally{Ke(n),oe(r),y(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(G(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new M(205,!1)}processProvider(t){t=X(t);let n=Tr(t)?t:X(t&&t.provide),r=Zl(t);if(!Tr(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Je(void 0,sn,!0),o.factory=()=>Mr(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=y(null);try{return n.value===sn&&(n.value=Wl,n.value=n.factory()),typeof n.value=="object"&&n.value&&Kl(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{y(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=X(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 xr(e){let t=mo(e),n=t!==null?t.factory:It(e);if(n!==null)return n;if(e instanceof S)throw new M(204,!1);if(e instanceof Function)return ql(e);throw new M(204,!1)}function ql(e){if(e.length>0)throw new M(204,!1);let n=rl(e);return n!==null?()=>n.factory(e):()=>new e}function Zl(e){if(aa(e))return Je(void 0,e.useValue);{let t=Yl(e);return Je(t,sn)}}function Yl(e,t,n){let r;if(Tr(e)){let o=X(e);return It(o)||xr(o)}else if(aa(e))r=()=>X(e.useValue);else if(Gl(e))r=()=>e.useFactory(...Mr(e.deps||[]));else if(zl(e))r=()=>_(X(e.useExisting));else{let o=X(e&&(e.useClass||e.provide));if(Ql(e))r=()=>new o(...Mr(e.deps));else return It(o)||xr(o)}return r}function Je(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Ql(e){return!!e.deps}function Kl(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Jl(e){return typeof e=="function"||typeof e=="object"&&e instanceof S}function Nr(e,t){for(let n of e)Array.isArray(n)?Nr(n,t):n&&Zs(n)?Nr(n.\u0275providers,t):t(n)}function Xl(){return Ys()!==void 0||gl()!=null}var De=0,D=1,m=2,q=3,ee=4,le=5,Mt=6,pn=7,F=8,ot=9,me=10,k=11,St=12,vs=13,dt=14,ue=15,it=16,Xe=17,st=18,Tn=19,ua=20,Ce=21,fr=22,W=23,te=25,ca=1;var _t=7,ed=8,gn=9,B=10,mn=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(mn||{});function Re(e){return Array.isArray(e)&&typeof e[ca]=="object"}function Ve(e){return Array.isArray(e)&&e[ca]===!0}function la(e){return(e.flags&4)!==0}function Mo(e){return e.componentOffset>-1}function So(e){return(e.flags&1)===1}function Ft(e){return!!e.template}function Ar(e){return(e[m]&512)!==0}var Or=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function da(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function td(){return fa}function fa(e){return e.type.prototype.ngOnChanges&&(e.setInput=rd),nd}td.ngInherit=!0;function nd(){let e=pa(this),t=e?.current;if(t){let n=e.previous;if(n===Ct)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function rd(e,t,n,r,o){let i=this.declaredInputs[r],s=pa(e)||od(e,{previous:Ct,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[i];a[i]=new Or(c&&c.currentValue,n,u===Ct),da(e,t,o,n)}var ha="__ngSimpleChanges__";function pa(e){return e[ha]||null}function od(e,t){return e[ha]=t}var ys=null;var ie=function(e,t,n){ys?.(e,t,n)},ga="svg",id="math";function ve(e){for(;Array.isArray(e);)e=e[De];return e}function ma(e,t){return ve(t[e])}function ne(e,t){return ve(t[e.index])}function _o(e,t){return e.data[t]}function ft(e,t){let n=t[e];return Re(n)?n:n[De]}function To(e){return(e[m]&128)===128}function at(e,t){return t==null?null:e[t]}function va(e){e[Xe]=0}function ya(e){e[m]&1024||(e[m]|=1024,To(e)&&xn(e))}function sd(e,t){for(;e>0;)t=t[dt],e--;return t}function Tt(e){return!!(e[m]&9216||e[W]?.dirty)}function Rr(e){e[me].changeDetectionScheduler?.notify(7),e[m]&64&&(e[m]|=1024),Tt(e)&&xn(e)}function xn(e){e[me].changeDetectionScheduler?.notify(0);let t=Pe(e);for(;t!==null&&!(t[m]&8192||(t[m]|=8192,!To(t)));)t=Pe(t)}function Da(e,t){if((e[m]&256)===256)throw new M(911,!1);e[Ce]===null&&(e[Ce]=[]),e[Ce].push(t)}function ad(e,t){if(e[Ce]===null)return;let n=e[Ce].indexOf(t);n!==-1&&e[Ce].splice(n,1)}function Pe(e){let t=e[q];return Ve(t)?t[q]:t}var I={lFrame:xa(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var wa=!1;function ud(){return I.lFrame.elementDepthCount}function cd(){I.lFrame.elementDepthCount++}function ld(){I.lFrame.elementDepthCount--}function Ea(){return I.bindingsEnabled}function dd(){return I.skipHydrationRootTNode!==null}function fd(e){return I.skipHydrationRootTNode===e}function hd(){I.skipHydrationRootTNode=null}function N(){return I.lFrame.lView}function re(){return I.lFrame.tView}function Me(){let e=Ia();for(;e!==null&&e.type===64;)e=e.parent;return e}function Ia(){return I.lFrame.currentTNode}function pd(){let e=I.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Lt(e,t){let n=I.lFrame;n.currentTNode=e,n.isParent=t}function Ca(){return I.lFrame.isParent}function gd(){I.lFrame.isParent=!1}function ba(){return wa}function Ds(e){wa=e}function md(e){return I.lFrame.bindingIndex=e}function jt(){return I.lFrame.bindingIndex++}function Ma(e){let t=I.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function vd(){return I.lFrame.inI18n}function yd(e,t){let n=I.lFrame;n.bindingIndex=n.bindingRootIndex=e,kr(t)}function Dd(){return I.lFrame.currentDirectiveIndex}function kr(e){I.lFrame.currentDirectiveIndex=e}function wd(e){let t=I.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Sa(e){I.lFrame.currentQueryIndex=e}function Ed(e){let t=e[D];return t.type===2?t.declTNode:t.type===1?e[le]:null}function _a(e,t,n){if(n&E.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&E.Host);)if(o=Ed(i),o===null||(i=i[dt],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=I.lFrame=Ta();return r.currentTNode=t,r.lView=e,!0}function xo(e){let t=Ta(),n=e[D];I.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ta(){let e=I.lFrame,t=e===null?null:e.child;return t===null?xa(e):t}function xa(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 Na(){let e=I.lFrame;return I.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Aa=Na;function No(){let e=Na();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 Id(e){return(I.lFrame.contextLView=sd(e,I.lFrame.contextLView))[F]}function Se(){return I.lFrame.selectedIndex}function Fe(e){I.lFrame.selectedIndex=e}function Oa(){let e=I.lFrame;return _o(e.tView,e.selectedIndex)}function Ra(){I.lFrame.currentNamespace=ga}function Cd(){return I.lFrame.currentNamespace}var ka=!0;function Ao(){return ka}function Oo(e){ka=e}function bd(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=fa(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 Ro(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[Xe]+=65536),(a>14>16&&(e[m]&3)===t&&(e[m]+=16384,ws(a,i)):ws(a,i)}var nt=-1,xt=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function Sd(e){return e instanceof xt}function _d(e){return(e.flags&8)!==0}function Td(e){return(e.flags&16)!==0}var pr={},Pr=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Mn(r);let o=this.injector.get(t,pr,r);return o!==pr||n===pr?o:this.parentInjector.get(t,n,r)}};function xd(e){return e!==nt}function Fr(e){return e&32767}function Nd(e){return e>>16}function Lr(e,t){let n=Nd(e),r=t;for(;n>0;)r=r[dt],n--;return r}var jr=!0;function Es(e){let t=jr;return jr=e,t}var Ad=256,Fa=Ad-1,La=5,Od=0,se={};function Rd(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(wt)&&(r=n[wt]),r==null&&(r=n[wt]=Od++);let o=r&Fa,i=1<>La)]|=i}function ja(e,t){let n=Va(e,t);if(n!==-1)return n;let r=t[D];r.firstCreatePass&&(e.injectorIndex=t.length,gr(r.data,e),gr(t,null),gr(r.blueprint,null));let o=Ba(e,t),i=e.injectorIndex;if(xd(o)){let s=Fr(o),a=Lr(o,t),u=a[D].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|u[s+c]}return t[i+8]=o,i}function gr(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Va(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Ba(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=Ga(o),r===null)return nt;if(n++,o=o[dt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return nt}function kd(e,t,n){Rd(e,t,n)}function Ha(e,t,n){if(n&E.Optional||e!==void 0)return e;yo(t,"NodeInjector")}function $a(e,t,n,r){if(n&E.Optional&&r===void 0&&(r=null),!(n&(E.Self|E.Host))){let o=e[ot],i=oe(void 0);try{return o?o.get(t,r,n&E.Optional):Qs(t,r,n&E.Optional)}finally{oe(i)}}return Ha(r,t,n)}function Ua(e,t,n,r=E.Default,o){if(e!==null){if(t[m]&2048&&!(r&E.Self)){let s=Vd(e,t,n,r,se);if(s!==se)return s}let i=za(e,t,n,r,se);if(i!==se)return i}return $a(t,n,r,o)}function za(e,t,n,r,o){let i=Ld(n);if(typeof i=="function"){if(!_a(t,e,r))return r&E.Host?Ha(o,n,r):$a(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&E.Optional))yo(n);else return s}finally{Aa()}}else if(typeof i=="number"){let s=null,a=Va(e,t),u=nt,c=r&E.Host?t[ue][le]:null;for((a===-1||r&E.SkipSelf)&&(u=a===-1?Ba(e,t):t[a+8],u===nt||!Cs(r,!1)?a=-1:(s=t[D],a=Fr(u),t=Lr(u,t)));a!==-1;){let l=t[D];if(Is(i,a,l.data)){let d=Pd(a,t,n,s,r,c);if(d!==se)return d}u=t[a+8],u!==nt&&Cs(r,t[D].data[a+8]===c)&&Is(i,a,t)?(s=l,a=Fr(u),t=Lr(u,t)):a=-1}}return o}function Pd(e,t,n,r,o,i){let s=t[D],a=s.data[e+8],u=r==null?Mo(a)&&jr:r!=s&&(a.type&3)!==0,c=o&E.Host&&i===a,l=Fd(a,s,n,u,c);return l!==null?Nt(t,s,l,a):se}function Fd(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,u=e.directiveStart,c=e.directiveEnd,l=i>>20,d=r?a:a+l,g=o?a+l:c;for(let f=d;f=u&&v.type===n)return f}if(o){let f=s[u];if(f&&Ft(f)&&f.type===n)return u}return null}function Nt(e,t,n,r){let o=e[n],i=t.data;if(Sd(o)){let s=o;s.resolving&&cl(ul(i[n]));let a=Es(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?oe(s.injectImpl):null,l=_a(e,r,E.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&bd(n,i[n],t)}finally{c!==null&&oe(c),Es(a),s.resolving=!1,Aa()}}return o}function Ld(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(wt)?e[wt]:void 0;return typeof t=="number"?t>=0?t&Fa:jd:t}function Is(e,t,n){let r=1<>La)]&r)}function Cs(e,t){return!(e&E.Self)&&!(e&E.Host&&t)}var vn=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Ua(this._tNode,this._lView,t,Mn(r),n)}};function jd(){return new vn(Me(),N())}function Vd(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[m]&2048&&!(s[m]&512);){let a=za(i,s,n,r|E.Self,se);if(a!==se)return a;let u=i.parent;if(!u){let c=s[ua];if(c){let l=c.get(n,se,r);if(l!==se)return l}u=Ga(s),s=s[dt]}i=u}return o}function Ga(e){let t=e[D],n=t.type;return n===2?t.declTNode:n===1?e[le]:null}function bs(e,t=null,n=null,r){let o=Bd(e,t,n,r);return o.resolveInjectorInitializers(),o}function Bd(e,t=null,n=null,r,o=new Set){let i=[n||ge,$l(e)];return r=r||(typeof e=="object"?void 0:G(e)),new hn(i,t||bo(),r||null,o)}var Oe=class Oe{static create(t,n){if(Array.isArray(t))return bs({name:""},n,t,"");{let r=t.name??"";return bs({name:r},t.parent,t.providers,r)}}};Oe.THROW_IF_NOT_FOUND=Et,Oe.NULL=new fn,Oe.\u0275prov=A({token:Oe,providedIn:"any",factory:()=>_(Js)}),Oe.__NG_ELEMENT_ID__=-1;var At=Oe;var Hd=new S("");Hd.__NG_ELEMENT_ID__=e=>{let t=Me();if(t===null)throw new M(204,!1);if(t.type&2)return t.value;if(e&E.Optional)return null;throw new M(204,!1)};var $d="ngOriginalError";function mr(e){return e[$d]}var ce=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&mr(t);for(;n&&mr(n);)n=mr(n);return n||null}},Wa=new S("",{providedIn:"root",factory:()=>b(ce).handleError.bind(void 0)}),ko=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=Ud,t.__NG_ENV_ID__=r=>r;let e=t;return e})(),Vr=class extends ko{constructor(t){super(),this._lView=t}onDestroy(t){return Da(this._lView,t),()=>ad(this._lView,t)}};function Ud(){return new Vr(N())}var Br=class{constructor(){this.destroyed=!1,this.listeners=null,this.errorHandler=b(ce,{optional:!0}),this.destroyRef=b(ko),this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new M(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 M(953,!1);if(this.listeners===null)return;let n=y(null);try{for(let r of this.listeners)try{r(t)}catch(o){this.errorHandler?.handleError(o)}}finally{y(n)}}};function qa(e){return new Br}function Ms(e,t){return zs(e,t)}function zd(e){return zs(Us,e)}var Vt=(Ms.required=zd,Ms);function Gd(){return Za(Me(),N())}function Za(e,t){return new Nn(ne(e,t))}var Nn=(()=>{let t=class t{constructor(r){this.nativeElement=r}};t.__NG_ELEMENT_ID__=Gd;let e=t;return e})();var An=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Dt(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};t.\u0275prov=A({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();var Hr=class extends Ie{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,Xl()&&(this.destroyRef=b(ko,{optional:!0})??void 0,this.pendingTasks=b(An,{optional:!0})??void 0)}emit(t){let n=y(null);try{super.next(t)}finally{y(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let u=t;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}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 P&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},pe=Hr;function Ya(e){return(e.flags&128)===128}var Qa=new Map,Wd=0;function qd(){return Wd++}function Zd(e){Qa.set(e[Tn],e)}function Yd(e){Qa.delete(e[Tn])}var Ss="__ngContext__";function Le(e,t){Re(t)?(e[Ss]=t[Tn],Zd(t)):e[Ss]=t}function Ka(e){return Xa(e[St])}function Ja(e){return Xa(e[ee])}function Xa(e){for(;e!==null&&!Ve(e);)e=e[ee];return e}var $r;function eu(e){$r=e}function Qd(){if($r!==void 0)return $r;if(typeof document<"u")return document;throw new M(210,!1)}var Po=new S("",{providedIn:"root",factory:()=>Kd}),Kd="ng",Fo=new S(""),ht=new S("",{providedIn:"platform",factory:()=>"unknown"});var Lo=new S("",{providedIn:"root",factory:()=>Qd().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Jd="h",Xd="b";var ef=()=>null;function jo(e,t,n=!1){return ef(e,t,n)}var tu=!1,tf=new S("",{providedIn:"root",factory:()=>tu});var Ur=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Jc})`}};function On(e){return e instanceof Ur?e.changingThisBreaksApplicationSecurity:e}var ye=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(ye||{}),nf;function Vo(e,t){return nf(e,t)}function et(e,t,n,r,o){if(r!=null){let i,s=!1;Ve(r)?i=r:Re(r)&&(s=!0,r=r[De]);let a=ve(r);e===0&&n!==null?o==null?iu(t,n,a):zr(t,n,a,o||null,!0):e===1&&n!==null?zr(t,n,a,o||null,!0):e===2?yf(t,a,s):e===3&&t.destroyNode(a),i!=null&&wf(t,e,i,n,o)}}function rf(e,t){return e.createText(t)}function of(e,t,n){e.setValue(t,n)}function nu(e,t,n){return e.createElement(t,n)}function sf(e,t){ru(e,t),t[De]=null,t[le]=null}function af(e,t,n,r,o,i){r[De]=o,r[le]=t,Rn(e,r,n,1,o,i)}function ru(e,t){t[me].changeDetectionScheduler?.notify(8),Rn(e,t,t[k],2,null,null)}function uf(e){let t=e[St];if(!t)return vr(e[D],e);for(;t;){let n=null;if(Re(t))n=t[St];else{let r=t[B];r&&(n=r)}if(!n){for(;t&&!t[ee]&&t!==e;)Re(t)&&vr(t[D],t),t=t[q];t===null&&(t=e),Re(t)&&vr(t[D],t),n=t&&t[ee]}t=n}}function cf(e,t,n,r){let o=B+r,i=n.length;r>0&&(n[o-1][ee]=t),r0&&(e[n-1][ee]=r[ee]);let i=Ks(e,B+t);sf(r[D],r);let s=i[st];s!==null&&s.detachView(i[D]),r[q]=null,r[ee]=null,r[m]&=-129}return r}function $o(e,t){if(!(t[m]&256)){let n=t[k];n.destroyNode&&Rn(e,t,n,3,null,null),uf(t)}}function vr(e,t){if(t[m]&256)return;let n=y(null);try{t[m]&=-129,t[m]|=256,t[W]&&Xn(t[W]),df(e,t),lf(e,t),t[D].type===1&&t[k].destroy();let r=t[it];if(r!==null&&Ve(t[q])){r!==t[q]&&Bo(r,t);let o=t[st];o!==null&&o.detachView(e)}Yd(t)}finally{y(n)}}function lf(e,t){let n=e.cleanup,r=t[pn];if(n!==null)for(let i=0;i=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(t[pn]=null);let o=t[Ce];if(o!==null){t[Ce]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===ae.None||i===ae.Emulated)return null}return ne(r,n)}}function zr(e,t,n,r,o){e.insertBefore(t,n,r,o)}function iu(e,t,n){e.appendChild(t,n)}function _s(e,t,n,r,o){r!==null?zr(e,t,n,r,o):iu(e,t,n)}function pf(e,t,n,r){e.removeChild(t,n,r)}function su(e,t){return e.parentNode(t)}function gf(e,t,n){return vf(e,t,n)}function mf(e,t,n){return e.type&40?ne(e,n):null}var vf=mf,Ts;function Uo(e,t,n,r){let o=ff(e,r,t),i=t[k],s=r.parent||t[le],a=gf(s,r,t);if(o!=null)if(Array.isArray(n))for(let u=0;ute&&lu(e,t,te,!1),ie(s?2:0,o),n(r,o)}finally{Fe(i),ie(s?3:1,o)}}function pu(e,t,n){if(la(t)){let r=y(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function Nf(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return dd()&&(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 xs(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,u=rt.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=i;if(o!==null){if(!o.hasOwnProperty(i))continue;c=o[i]}e===0?Ns(r,n,c,a,u):Ns(r,n,c,a)}return r}function Ns(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 Af(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],u=null,c=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Lf(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;Mo(n)&&zf(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||ja(n,t),Le(r,t);let s=n.initialInputs;for(let a=o;a{xn(e.lView)},consumerOnSignalRead(){this.lView[W]=this}});function ah(e){let t=e[W]??Object.create(uh);return t.lView=e,t}var uh=Y(z({},vt),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Pe(e.lView);for(;t&&!Su(t[D]);)t=Pe(t);t&&ya(t)},consumerOnSignalRead(){this.lView[W]=this}});function Su(e){return e.type!==2}var ch=100;function _u(e,t=!0,n=0){let r=e[me],o=r.rendererFactory,i=!1;i||o.begin?.();try{lh(e,n)}catch(s){throw t&&Iu(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function lh(e,t){let n=ba();try{Ds(!0),Zr(e,t);let r=0;for(;Tt(e);){if(r===ch)throw new M(103,!1);r++,Zr(e,1)}}finally{Ds(n)}}function dh(e,t,n,r){let o=t[m];if((o&256)===256)return;let i=!1,s=!1;!i&&t[me].inlineEffectRunner?.flush(),xo(t);let a=!0,u=null,c=null;i||(Su(e)?(c=rh(t),u=Zt(c)):Pi()===null?(a=!1,c=ah(t),u=Zt(c)):t[W]&&(Xn(t[W]),t[W]=null));try{va(t),md(e.bindingStartIndex),n!==null&&hu(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&an(t,f,null)}else{let f=e.preOrderHooks;f!==null&&un(t,f,0,null),hr(t,0)}if(s||fh(t),Tu(t,0),e.contentQueries!==null&&Eu(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&an(t,f)}else{let f=e.contentHooks;f!==null&&un(t,f,1),hr(t,1)}bf(e,t);let d=e.components;d!==null&&Nu(t,d,0);let g=e.viewQuery;if(g!==null&&qr(2,g,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&an(t,f)}else{let f=e.viewHooks;f!==null&&un(t,f,2),hr(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[fr]){for(let f of t[fr])f();t[fr]=null}i||(t[m]&=-73)}catch(l){throw i||xn(t),l}finally{c!==null&&(Kn(c,u),a&&ih(c)),No()}}function Tu(e,t){for(let n=Ka(e);n!==null;n=Ja(n))for(let r=B;r-1&&(Ho(t,r),Ks(n,r))}this._attachedToViewContainer=!1}$o(this._lView[D],this._lView)}onDestroy(t){Da(this._lView,t)}markForCheck(){Jo(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[m]&=-129}reattach(){Rr(this._lView),this._lView[m]|=128}detectChanges(){this._lView[m]|=1024,_u(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new M(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Ar(this._lView),n=this._lView[it];n!==null&&!t&&Bo(n,this._lView),ru(this._lView[D],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new M(902,!1);this._appRef=t;let n=Ar(this._lView),r=this._lView[it];r!==null&&!n&&ou(r,this._lView),Rr(this._lView)}};var Zm=new RegExp(`^(\\d+)*(${Xd}|${Jd})*(.*)`);var ph=()=>null;function Xo(e,t){return ph(e,t)}var Ot=class{},ei=new S("",{providedIn:"root",factory:()=>!1});var Au=new S(""),Qr=class{},Dn=class{};function gh(e){let t=Error(`No component factory found for ${G(e)}.`);return t[mh]=e,t}var mh="ngComponent";var Kr=class{resolveComponentFactory(t){throw gh(t)}},fi=class fi{};fi.NULL=new Kr;var Rt=fi,ut=class{};var vh=(()=>{let t=class t{};t.\u0275prov=A({token:t,providedIn:"root",factory:()=>null});let e=t;return e})();var As=new Set;function Be(e){As.has(e)||(As.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function Ou(e){let t=!0;return setTimeout(()=>{t&&(t=!1,e())}),typeof Ir.requestAnimationFrame=="function"&&Ir.requestAnimationFrame(()=>{t&&(t=!1,e())}),()=>{t=!1}}function Os(e){let t=!0;return queueMicrotask(()=>{t&&e()}),()=>{t=!1}}function Rs(...e){}var R=class e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new pe(!1),this.onMicrotaskEmpty=new pe(!1),this.onStable=new pe(!1),this.onError=new pe(!1),typeof Zone>"u")throw new M(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.callbackScheduled=!1,wh(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new M(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new M(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,yh,Rs,Rs);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)}},yh={};function ti(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 Dh(e){e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,Zone.root.run(()=>{Ou(()=>{e.callbackScheduled=!1,Jr(e),e.isCheckStableRunning=!0,ti(e),e.isCheckStableRunning=!1})}),Jr(e))}function wh(e){let t=()=>{Dh(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{if(Eh(a))return n.invokeTask(o,i,s,a);try{return ks(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&i.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Ps(e)}},onInvoke:(n,r,o,i,s,a,u)=>{try{return ks(e),n.invoke(o,i,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Ih(a)&&t(),Ps(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&(i.change=="microTask"?(e._hasPendingMicrotasks=i.microTask,Jr(e),ti(e)):i.change=="macroTask"&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}function Jr(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function ks(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ps(e){e._nesting--,ti(e)}var Xr=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new pe,this.onMicrotaskEmpty=new pe,this.onStable=new pe,this.onError=new pe}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 Eh(e){return Ru(e,"__ignore_ng_zone__")}function Ih(e){return Ru(e,"__scheduler_tick__")}function Ru(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var ku=(()=>{let t=class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let r=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let o of r)o()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};t.\u0275prov=A({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();function eo(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&uu(e,n,i.join(" "))}}function xh(e,t,n){let r=e.projection=[];for(let o=0;o!1;function Oh(e,t,n){return Ah(e,t,n)}function ni(e,t){Be("NgSignals");let n=Wi(e),r=n[he];return t?.equal&&(r.equal=t.equal),n.set=o=>Kt(r,o),n.update=o=>qi(r,o),n.asReadonly=Rh.bind(n),n}function Rh(){let e=this[he];if(e.readonlyFn===void 0){let t=()=>this();t[he]=e,e.readonlyFn=t}return e.readonlyFn}var ct=class{};var wn=class extends ct{constructor(t){super(),this.componentFactoryResolver=new to(this),this.instance=null;let n=new hn([...t.providers,{provide:ct,useValue:this},{provide:Rt,useValue:this.componentFactoryResolver}],t.parent||bo(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function kh(e,t,n=null){return new wn({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function He(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Ph(e){return(e.flags&32)===32}function Fh(e,t,n,r,o,i,s,a,u){let c=t.consts,l=Pn(t,e,4,s||null,a||null);yu(t,n,l,at(c,u)),Ro(t,l);let d=l.tView=Go(2,l,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return t.queries!==null&&(t.queries.template(t,l),d.queries=t.queries.embeddedTView(l)),l}function oo(e,t,n,r,o,i,s,a,u,c){let l=n+te,d=t.firstCreatePass?Fh(l,t,e,r,o,i,s,a,u):t.data[l];Lt(d,!1);let g=Lh(t,e,d,n);Ao()&&Uo(t,e,g,d),Le(g,e);let f=Yf(g,e,g,d);return e[l]=f,Wo(e,f),Oh(f,d,e),So(d)&&gu(t,e,d),u!=null&&mu(e,d,c),d}function ri(e,t,n,r,o,i,s,a){let u=N(),c=re(),l=at(c.consts,i);return oo(u,c,e,t,n,r,o,l,s,a),ri}var Lh=jh;function jh(e,t,n,r){return Oo(!0),t[k].createComment("")}function p(e,t,n,r){let o=N(),i=jt();if(He(o,i,t)){let s=re(),a=Oa();Gf(a,o,e,t,n,r)}return p}function Vh(e,t,n,r){return He(e,jt(),n)?t+vo(n)+r:we}function on(e,t){return e<<17|t<<2}function je(e){return e>>17&32767}function Bh(e){return(e&2)==2}function Hh(e,t){return e&131071|t<<17}function io(e){return e|2}function lt(e){return(e&131068)>>2}function yr(e,t){return e&-131069|t<<2}function $h(e){return(e&1)===1}function so(e){return e|1}function Uh(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=je(s),u=lt(s);e[r]=n;let c=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Pt(d,l)>0)&&(c=!0)}else l=n;if(o)if(u!==0){let g=je(e[a+1]);e[r+1]=on(g,a),g!==0&&(e[g+1]=yr(e[g+1],r)),e[a+1]=Hh(e[a+1],r)}else e[r+1]=on(a,0),a!==0&&(e[a+1]=yr(e[a+1],r)),a=r;else e[r+1]=on(u,0),a===0?a=r:e[u+1]=yr(e[u+1],r),u=r;c&&(e[r+1]=io(e[r+1])),Ls(e,l,r,!0),Ls(e,l,r,!1),zh(t,l,e,r,i),s=on(a,u),i?t.classBindings=s:t.styleBindings=s}function zh(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Pt(i,t)>=0&&(n[r+1]=so(n[r+1]))}function Ls(e,t,n,r){let o=e[n+1],i=t===null,s=r?je(o):lt(o),a=!1;for(;s!==0&&(a===!1||i);){let u=e[s],c=e[s+1];Gh(u,t)&&(a=!0,e[s+1]=r?so(c):io(c)),s=r?je(c):lt(c)}a&&(e[n+1]=r?io(o):so(o))}function Gh(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Pt(e,t)>=0:!1}var J={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Wh(e){return e.substring(J.key,J.keyEnd)}function qh(e){return Zh(e),Pu(e,Fu(e,0,J.textEnd))}function Pu(e,t){let n=J.textEnd;return n===t?-1:(t=J.keyEnd=Yh(e,J.key=t,n),Fu(e,t,n))}function Zh(e){J.key=0,J.keyEnd=0,J.value=0,J.valueEnd=0,J.textEnd=e.length}function Fu(e,t,n){for(;t32;)t++;return t}function pt(e,t,n){let r=N(),o=jt();if(He(r,o,t)){let i=re(),s=Oa();Rf(i,s,r,e,t,r[k],n,!1)}return pt}function ao(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";qo(e,n,i[s],s,r)}function oi(e,t,n){return ju(e,t,n,!1),oi}function ii(e,t){return ju(e,t,null,!0),ii}function Lu(e){Kh(rp,Qh,e,!0)}function Qh(e,t){for(let n=qh(t);n>=0;n=Pu(t,n))wo(e,Wh(t),!0)}function ju(e,t,n,r){let o=N(),i=re(),s=Ma(2);if(i.firstUpdatePass&&Bu(i,e,s,r),t!==we&&He(o,s,t)){let a=i.data[Se()];Hu(i,a,o,o[k],e,o[s+1]=ip(t,n),r,s)}}function Kh(e,t,n,r){let o=re(),i=Ma(2);o.firstUpdatePass&&Bu(o,null,i,r);let s=N();if(n!==we&&He(s,i,n)){let a=o.data[Se()];if($u(a,r)&&!Vu(o,i)){let u=r?a.classesWithoutHost:a.stylesWithoutHost;u!==null&&(n=Cr(u,n||"")),ao(o,a,s,n,r)}else op(o,a,s,s[k],s[i+1],s[i+1]=np(e,t,n),r,i)}}function Vu(e,t){return t>=e.expandoStartIndex}function Bu(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Se()],s=Vu(e,n);$u(i,r)&&t===null&&!s&&(t=!1),t=Jh(o,i,t,r),Uh(o,i,t,n,s,r)}}function Jh(e,t,n,r){let o=wd(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Dr(null,e,t,n,r),n=kt(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Dr(o,e,t,n,r),i===null){let u=Xh(e,t,r);u!==void 0&&Array.isArray(u)&&(u=Dr(null,e,t,u[1],r),u=kt(u,t.attrs,r),ep(e,t,r,u))}else i=tp(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function Xh(e,t,n){let r=n?t.classBindings:t.styleBindings;if(lt(r)!==0)return e[je(r)]}function ep(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[je(o)]=r}function tp(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let u=e[o],c=Array.isArray(u),l=c?u[1]:u,d=l===null,g=n[o+1];g===we&&(g=d?ge:void 0);let f=d?lr(g,r):l===r?g:void 0;if(c&&!En(f)&&(f=lr(u,r)),En(f)&&(a=f,s))return a;let v=e[o+1];o=s?je(v):lt(v)}if(t!==null){let u=i?t.residualClasses:t.residualStyles;u!=null&&(a=lr(u,r))}return a}function En(e){return e!==void 0}function ip(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=G(On(e)))),e}function $u(e,t){return(e.flags&(t?8:16))!==0}var uo=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 wr(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function sp(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let u=t.length-1;for(;i<=s&&i<=u;){let c=e.at(i),l=t[i],d=wr(i,c,i,l,n);if(d!==0){d<0&&e.updateValue(i,l),i++;continue}let g=e.at(s),f=t[u],v=wr(s,g,u,f,n);if(v!==0){v<0&&e.updateValue(s,f),s--,u--;continue}let C=n(i,c),x=n(s,g),$=n(i,l);if(Object.is($,x)){let U=n(u,f);Object.is(U,C)?(e.swap(i,s),e.updateValue(s,f),u--,s--):e.move(s,i),e.updateValue(i,l),i++;continue}if(r??=new In,o??=Bs(e,i,s,n),co(e,r,i,$))e.updateValue(i,l),i++,s++;else if(o.has($))r.set(C,e.detach(i)),s--;else{let U=e.create(i,t[i]);e.attach(i,U),i++,s++}}for(;i<=u;)Vs(e,r,n,i,t[i]),i++}else if(t!=null){let u=t[Symbol.iterator](),c=u.next();for(;!c.done&&i<=s;){let l=e.at(i),d=c.value,g=wr(i,l,i,d,n);if(g!==0)g<0&&e.updateValue(i,d),i++,c=u.next();else{r??=new In,o??=Bs(e,i,s,n);let f=n(i,d);if(co(e,r,i,f))e.updateValue(i,d),i++,s++,c=u.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,c=u.next();else{let v=n(i,l);r.set(v,e.detach(i)),s--}}}for(;!c.done;)Vs(e,r,n,e.length,c.value),c=u.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(u=>{e.destroy(u)})}function co(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function Vs(e,t,n,r,o){if(co(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function Bs(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 In=class{constructor(){this.kvMap=new Map,this._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 Uu(e,t){Be("NgControlFlow");let n=N(),r=jt(),o=n[r]!==we?n[r]:-1,i=o!==-1?Cn(n,te+o):void 0,s=0;if(He(n,r,e)){let a=y(null);try{if(i!==void 0&&bu(i,s),e!==-1){let u=te+e,c=Cn(n,u),l=po(n[D],u),d=Xo(c,l.tView.ssrId),g=Yo(n,l,t,{dehydratedView:d});Ko(c,g,s,Qo(l,d))}}finally{y(a)}}else if(i!==void 0){let a=Cu(i,s);a!==void 0&&(a[F]=t)}}var lo=class{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-B}};function si(e,t){return t}var fo=class{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function ai(e,t,n,r,o,i,s,a,u,c,l,d,g){Be("NgControlFlow");let f=N(),v=re(),C=u!==void 0,x=N(),$=a?s.bind(x[ue][F]):s,U=new fo(C,$);x[te+e]=U,oo(f,v,e+1,t,n,r,o,at(v.consts,i)),C&&oo(f,v,e+2,u,c,l,d,at(v.consts,g))}var ho=class extends uo{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-B}at(t){return this.getLView(t)[F].$implicit}attach(t,n){let r=n[Mt];this.needsIndexUpdate||=t!==this.length,Ko(this.lContainer,n,t,Qo(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,ap(this.lContainer,t)}create(t,n){let r=Xo(this.lContainer,this.templateTNode.tView.ssrId),o=Yo(this.hostLView,this.templateTNode,new lo(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){$o(t[D],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[F].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t(Oo(!0),nu(r,o,Cd()));var bn="en-US";var dp=bn;function fp(e){typeof e=="string"&&(dp=e.toLowerCase().replace(/_/g,"-"))}var hp=(e,t,n)=>{};function $e(e,t,n,r){let o=N(),i=re(),s=Me();return gp(i,o,o[k],s,e,t,r),$e}function pp(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;iu?a[u]:null}typeof s=="string"&&(i+=2)}return null}function gp(e,t,n,r,o,i,s){let a=So(r),c=e.firstCreatePass&&Kf(e),l=t[F],d=Qf(t),g=!0;if(r.type&3||s){let C=ne(r,t),x=s?s(C):C,$=d.length,U=s?fe=>s(ve(fe[r.index])):r.index,j=null;if(!s&&a&&(j=pp(e,t,o,r.index)),j!==null){let fe=j.__ngLastListenerFn__||j;fe.__ngNextListenerFn__=i,j.__ngLastListenerFn__=i,g=!1}else{i=$s(r,t,l,i),hp(C,o,i);let fe=n.listen(x,o,i);d.push(i,fe),c&&c.push(o,U,$,$+1)}}else i=$s(r,t,l,i);let f=r.outputs,v;if(g&&f!==null&&(v=f[o])){let C=v.length;if(C)for(let x=0;x-1?ft(e.index,t):t;Jo(s,5);let a=Hs(t,n,r,i),u=o.__ngNextListenerFn__;for(;u;)a=Hs(t,n,u,i)&&a,u=u.__ngNextListenerFn__;return a}}function zu(e=1){return Id(e)}function Ue(e,t=""){let n=N(),r=re(),o=e+te,i=r.firstCreatePass?Pn(r,o,1,t,null):r.data[o],s=mp(r,n,i,t,e);n[o]=s,Ao()&&Uo(r,n,s,i),Lt(i,!1)}var mp=(e,t,n,r,o)=>(Oo(!0),rf(t[k],r));function ci(e){return Fn("",e,""),ci}function Fn(e,t,n){let r=N(),o=Vh(r,e,t,n);return o!==we&&Jf(r,Se(),o),Fn}var vp=(()=>{let t=class t{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){let o=ia(!1,r.type),i=o.length>0?kh([o],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,i)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(let r of this.cachedInjectors.values())r!==null&&r.destroy()}finally{this.cachedInjectors.clear()}}};t.\u0275prov=A({token:t,providedIn:"environment",factory:()=>new t(_(ke))});let e=t;return e})();function _e(e){Be("NgStandalone"),e.getStandaloneInjector=t=>t.get(vp).getOrCreateStandaloneInjector(e)}var Gu=new S("");function li(e){return!!e&&typeof e.then=="function"}function Wu(e){return!!e&&typeof e.subscribe=="function"}var yp=new S(""),qu=(()=>{let t=class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o}),this.appInits=b(yp,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let r=[];for(let i of this.appInits){let s=i();if(li(s))r.push(s);else if(Wu(s)){let a=new Promise((u,c)=>{s.subscribe({complete:u,error:c})});r.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{o()}).catch(i=>{this.reject(i)}),r.length===0&&o(),this.initialized=!0}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Dp=new S("");function wp(){Gi(()=>{throw new M(600,!1)})}function Ep(e){return e.isBoundToModule}var Ip=10;function Cp(e,t,n){try{let r=n();return li(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Ln=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=b(Wa),this.afterRenderEffectManager=b(ku),this.zonelessEnabled=b(ei),this.externalTestViews=new Set,this.beforeRender=new Ie,this.afterTick=new Ie,this.componentTypes=[],this.components=[],this.isStable=b(An).hasPendingTasks.pipe(cr(r=>!r)),this._injector=b(ke)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,o){let i=r instanceof Dn;if(!this._injector.get(qu).done){let f=!i&&jl(r),v=!1;throw new M(405,v)}let a;i?a=r:a=this._injector.get(Rt).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let u=Ep(a)?void 0:this._injector.get(ct),c=o||a.selector,l=a.create(At.NULL,[],c,u),d=l.location.nativeElement,g=l.injector.get(Gu,null);return g?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),Er(this.components,l),g?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(r){if(this._runningTick)throw new M(101,!1);let o=y(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(r)}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,y(o),this.afterTick.next()}}detectChangesInAttachedViews(r){let o=null;this._injector.destroyed||(o=this._injector.get(ut,null,{optional:!0}));let i=0,s=this.afterRenderEffectManager;for(;iTt(u))&&(s.execute(),!this.allViews.some(({_lView:u})=>Tt(u))))break}}attachView(r){let o=r;this._views.push(o),o.attachToAppRef(this)}detachView(r){let o=r;Er(this._views,o),o.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let o=this._injector.get(Dp,[]);[...this._bootstrapListeners,...o].forEach(i=>i(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>Er(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new M(406,!1);let r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Er(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function bp(e,t,n,r){if(!n&&!Tt(e))return;_u(e,t,n&&!r?0:1)}var Mp=(()=>{let t=class t{constructor(){this.zone=b(R),this.changeDetectionScheduler=b(Ot),this.applicationRef=b(Ln)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Sp=new S("",{factory:()=>!1});function Zu({ngZoneFactory:e,ignoreChangesOutsideZone:t}){return e??=()=>new R(Qu()),[{provide:R,useFactory:e},{provide:bt,multi:!0,useFactory:()=>{let n=b(Mp,{optional:!0});return()=>n.initialize()}},{provide:bt,multi:!0,useFactory:()=>{let n=b(Tp);return()=>{n.initialize()}}},{provide:Wa,useFactory:_p},t===!0?{provide:Au,useValue:!0}:[]]}function _p(){let e=b(R),t=b(ce);return n=>e.runOutsideAngular(()=>t.handleError(n))}function Yu(e){let t=e?.ignoreChangesOutsideZone,n=Zu({ngZoneFactory:()=>{let r=Qu(e);return r.shouldCoalesceEventChangeDetection&&Be("NgZone_CoalesceEvent"),new R(r)},ignoreChangesOutsideZone:t});return oa([{provide:Sp,useValue:!0},{provide:ei,useValue:!1},n])}function Qu(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Tp=(()=>{let t=class t{constructor(){this.subscription=new P,this.initialized=!1,this.zone=b(R),this.pendingTasks=b(An)}initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{R.assertNotInAngularZone(),queueMicrotask(()=>{r!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{R.assertInAngularZone(),r??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var xp=(()=>{let t=class t{constructor(){this.appRef=b(Ln),this.taskService=b(An),this.ngZone=b(R),this.zonelessEnabled=b(ei),this.disableScheduling=b(Au,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new P,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Xr||!this.zoneIsDefined)}notify(r){if(!this.zonelessEnabled&&r===5)return;switch(r){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let o=this.useMicrotaskScheduler?Os:Ou;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=o(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=o(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&R.isInAngularZone())}tick(r){if(this.runningTick||this.appRef.destroyed)return;let o=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(r)},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(o),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Os(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(o)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let r=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(r)}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Np(){return typeof $localize<"u"&&$localize.locale||bn}var di=new S("",{providedIn:"root",factory:()=>b(di,E.Optional|E.SkipSelf)||Np()});var Ku=new S("");var ln=null;function Ap(e=[],t){return At.create({name:t,providers:[{provide:_n,useValue:"platform"},{provide:Ku,useValue:new Set([()=>ln=null])},...e]})}function Op(e=[]){if(ln)return ln;let t=Ap(e);return ln=t,wp(),Rp(t),t}function Rp(e){e.get(Fo,null)?.forEach(n=>n())}function Ju(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=Op(r),i=[Zu({}),{provide:Ot,useExisting:xp},...n||[]],a=new wn({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1}).injector,u=a.get(R);return u.run(()=>{a.resolveInjectorInitializers();let c=a.get(ce,null),l;u.runOutsideAngular(()=>{l=u.onError.subscribe({next:f=>{c.handleError(f)}})});let d=()=>a.destroy(),g=o.get(Ku);return g.add(d),a.onDestroy(()=>{l.unsubscribe(),g.delete(d)}),Cp(c,u,()=>{let f=a.get(qu);return f.runInitializers(),f.donePromise.then(()=>{let v=a.get(di,bn);fp(v||bn);let C=a.get(Ln);return t!==void 0&&C.bootstrap(t),C})})})}catch(t){return Promise.reject(t)}}function jn(e,t){Be("NgSignals");let n=$i(e);return t?.equal&&(n[he].equal=t.equal),n}var Xu=null;function hi(){return Xu}function ec(e){Xu??=e}var Vn=class{};var Te=new S("");var tc=new S("");function nc(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 rc="browser",Pp="server";function pi(e){return e===Pp}var Bn=class{};var vi=class extends Vn{constructor(){super(...arguments),this.supportsDOMEvents=!0}},yi=class e extends vi{static makeCurrent(){ec(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}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=Lp();return n==null?null:jp(n)}resetBaseElement(){Bt=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return nc(document.cookie,t)}},Bt=null;function Lp(){return Bt=Bt||document.querySelector("base"),Bt?Bt.getAttribute("href"):null}function jp(e){return new URL(e,document.baseURI).pathname}var Vp=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac});let e=t;return e})(),Di=new S(""),ac=(()=>{let t=class t{constructor(r,o){this._zone=o,this._eventNameToPlugin=new Map,r.forEach(i=>{i.manager=this}),this._plugins=r.slice().reverse()}addEventListener(r,o,i){return this._findPluginFor(o).addEventListener(r,o,i)}getZone(){return this._zone}_findPluginFor(r){let o=this._eventNameToPlugin.get(r);if(o)return o;if(o=this._plugins.find(s=>s.supports(r)),!o)throw new M(5101,!1);return this._eventNameToPlugin.set(r,o),o}};t.\u0275fac=function(o){return new(o||t)(_(Di),_(R))},t.\u0275prov=A({token:t,factory:t.\u0275fac});let e=t;return e})(),Hn=class{constructor(t){this._doc=t}},gi="ng-app-id",uc=(()=>{let t=class t{constructor(r,o,i,s={}){this.doc=r,this.appId=o,this.nonce=i,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=pi(s),this.resetHostNodes()}addStyles(r){for(let o of r)this.changeUsageCount(o,1)===1&&this.onStyleAdded(o)}removeStyles(r){for(let o of r)this.changeUsageCount(o,-1)<=0&&this.onStyleRemoved(o)}ngOnDestroy(){let r=this.styleNodesInDOM;r&&(r.forEach(o=>o.remove()),r.clear());for(let o of this.getAllStyles())this.onStyleRemoved(o);this.resetHostNodes()}addHost(r){this.hostNodes.add(r);for(let o of this.getAllStyles())this.addStyleToHost(r,o)}removeHost(r){this.hostNodes.delete(r)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(r){for(let o of this.hostNodes)this.addStyleToHost(o,r)}onStyleRemoved(r){let o=this.styleRef;o.get(r)?.elements?.forEach(i=>i.remove()),o.delete(r)}collectServerRenderedStyles(){let r=this.doc.head?.querySelectorAll(`style[${gi}="${this.appId}"]`);if(r?.length){let o=new Map;return r.forEach(i=>{i.textContent!=null&&o.set(i.textContent,i)}),o}return null}changeUsageCount(r,o){let i=this.styleRef;if(i.has(r)){let s=i.get(r);return s.usage+=o,s.usage}return i.set(r,{usage:o,elements:[]}),o}getStyleElement(r,o){let i=this.styleNodesInDOM,s=i?.get(o);if(s?.parentNode===r)return i.delete(o),s.removeAttribute(gi),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=o,this.platformIsServer&&a.setAttribute(gi,this.appId),r.appendChild(a),a}}addStyleToHost(r,o){let i=this.getStyleElement(r,o),s=this.styleRef,a=s.get(o)?.elements;a?a.push(i):s.set(o,{elements:[i],usage:1})}resetHostNodes(){let r=this.hostNodes;r.clear(),r.add(this.doc.head)}};t.\u0275fac=function(o){return new(o||t)(_(Te),_(Po),_(Lo,8),_(ht))},t.\u0275prov=A({token:t,factory:t.\u0275fac});let e=t;return e})(),mi={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"},Ei=/%COMP%/g,cc="%COMP%",Bp=`_nghost-${cc}`,Hp=`_ngcontent-${cc}`,$p=!0,Up=new S("",{providedIn:"root",factory:()=>$p});function zp(e){return Hp.replace(Ei,e)}function Gp(e){return Bp.replace(Ei,e)}function lc(e,t){return t.map(n=>n.replace(Ei,e))}var oc=(()=>{let t=class t{constructor(r,o,i,s,a,u,c,l=null){this.eventManager=r,this.sharedStylesHost=o,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=u,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=pi(u),this.defaultRenderer=new Ht(r,a,c,this.platformIsServer)}createRenderer(r,o){if(!r||!o)return this.defaultRenderer;this.platformIsServer&&o.encapsulation===ae.ShadowDom&&(o=Y(z({},o),{encapsulation:ae.Emulated}));let i=this.getOrCreateRenderer(r,o);return i instanceof $n?i.applyToHost(r):i instanceof $t&&i.applyStyles(),i}getOrCreateRenderer(r,o){let i=this.rendererByCompId,s=i.get(o.id);if(!s){let a=this.doc,u=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,g=this.platformIsServer;switch(o.encapsulation){case ae.Emulated:s=new $n(c,l,o,this.appId,d,a,u,g);break;case ae.ShadowDom:return new wi(c,l,r,o,a,u,this.nonce,g);default:s=new $t(c,l,o,d,a,u,g);break}i.set(o.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(o){return new(o||t)(_(ac),_(uc),_(Po),_(Up),_(Te),_(ht),_(R),_(Lo))},t.\u0275prov=A({token:t,factory:t.\u0275fac});let e=t;return e})(),Ht=class{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(mi[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(ic(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(ic(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new M(-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=mi[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=mi[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&(ye.DashCase|ye.Important)?t.style.setProperty(n,r,o&ye.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&ye.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=hi().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 ic(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var wi=class extends Ht{constructor(t,n,r,o,i,s,a,u){super(t,i,s,u),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=lc(o.id,o.styles);for(let l of c){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(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},$t=class extends Ht{constructor(t,n,r,o,i,s,a,u){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=u?lc(u,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},$n=class extends $t{constructor(t,n,r,o,i,s,a,u){let c=o+"-"+r.id;super(t,n,r,i,s,a,u,c),this.contentAttr=zp(c),this.hostAttr=Gp(c)}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}},Wp=(()=>{let t=class t extends Hn{constructor(r){super(r)}supports(r){return!0}addEventListener(r,o,i){return r.addEventListener(o,i,!1),()=>this.removeEventListener(r,o,i)}removeEventListener(r,o,i){return r.removeEventListener(o,i)}};t.\u0275fac=function(o){return new(o||t)(_(Te))},t.\u0275prov=A({token:t,factory:t.\u0275fac});let e=t;return e})(),sc=["alt","control","meta","shift"],qp={"\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"},Zp={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Yp=(()=>{let t=class t extends Hn{constructor(r){super(r)}supports(r){return t.parseEventName(r)!=null}addEventListener(r,o,i){let s=t.parseEventName(o),a=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>hi().onAndCancel(r,s.domEventName,a))}static parseEventName(r){let o=r.toLowerCase().split("."),i=o.shift();if(o.length===0||!(i==="keydown"||i==="keyup"))return null;let s=t._normalizeKey(o.pop()),a="",u=o.indexOf("code");if(u>-1&&(o.splice(u,1),a="code."),sc.forEach(l=>{let d=o.indexOf(l);d>-1&&(o.splice(d,1),a+=l+".")}),a+=s,o.length!=0||s.length===0)return null;let c={};return c.domEventName=i,c.fullKey=a,c}static matchEventFullKeyCode(r,o){let i=qp[r.key]||r.key,s="";return o.indexOf("code.")>-1&&(i=r.code,s="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),sc.forEach(a=>{if(a!==i){let u=Zp[a];u(r)&&(s+=a+".")}}),s+=i,s===o)}static eventCallback(r,o,i){return s=>{t.matchEventFullKeyCode(s,r)&&i.runGuarded(()=>o(s))}}static _normalizeKey(r){return r==="esc"?"escape":r}};t.\u0275fac=function(o){return new(o||t)(_(Te))},t.\u0275prov=A({token:t,factory:t.\u0275fac});let e=t;return e})();function dc(e,t){return Ju(z({rootComponent:e},Qp(t)))}function Qp(e){return{appProviders:[...tg,...e?.providers??[]],platformProviders:eg}}function Kp(){yi.makeCurrent()}function Jp(){return new ce}function Xp(){return eu(document),document}var eg=[{provide:ht,useValue:rc},{provide:Fo,useValue:Kp,multi:!0},{provide:Te,useFactory:Xp,deps:[]}];var tg=[{provide:_n,useValue:"root"},{provide:ce,useFactory:Jp,deps:[]},{provide:Di,useClass:Wp,multi:!0,deps:[Te,R,ht]},{provide:Di,useClass:Yp,multi:!0,deps:[Te]},oc,uc,ac,{provide:ut,useExisting:oc},{provide:Bn,useClass:Vp,deps:[]},[]];var fc={providers:[Yu({eventCoalescing:!0}),{provide:tc,useValue:"/amaze"}]};var Ee=e=>{let t=n=>{if(typeof n=="symbol")return n.toString();if(typeof n>"u")return"undefined";if(typeof n=="string")return n;try{return JSON.stringify(n)}catch(r){if(r instanceof TypeError)return typeof n=="bigint"?`${n.toString()} (bigint)`:"circular object";throw r}};throw new TypeError(`Internal Error: encountered impossible value "${t(e)}"`)};function hc(e,t,n){if(typeof n<"u"){let s=e,a=t;return hc.tag(s,a,n)}let r=e,o=t;if(!Object.prototype.hasOwnProperty.call(o,r))return Object.prototype.hasOwnProperty.call(o,"_")?o._():Ee(r);let i=o[r];return i(r)}hc.tag=(e,t,n)=>{let r=e[t];if(!Object.prototype.hasOwnProperty.call(n,r))return Object.prototype.hasOwnProperty.call(n,"_")?n._():Ee(e);let o=n[r];return o(e)};var ng=214013,rg=2531011,og=4294967295,ig=(1<<31)-1,Ii=function(e){return e*ng+rg&og},Ci=function(e){return(e&ig)>>16},pc=function(){function e(t){this.seed=t}return e.prototype.clone=function(){return new e(this.seed)},e.prototype.next=function(){var t=new e(this.seed),n=t.unsafeNext();return[n,t]},e.prototype.unsafeNext=function(){var t=Ii(this.seed),n=Ci(t),r=Ii(t),o=Ci(r);this.seed=Ii(r);var i=Ci(this.seed),s=i+(o+(n<<15)<<15);return s|0},e.prototype.getState=function(){return[this.seed]},e}();function sg(e){var t=e.length===1;if(!t)throw new Error("The state must have been produced by a congruential32 RandomGenerator");return new pc(e[0])}var ag=Object.assign(function(e){return new pc(e)},{fromState:sg});var ug=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},cg=function(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r>>1^-(o&1)&e.A}for(var r=e.N-e.M;r!==e.N-1;++r){var i=(n[r]&e.MASK_UPPER)+(n[r+1]&e.MASK_LOWER);n[r]=n[r+e.M-e.N]^i>>>1^-(i&1)&e.A}var s=(n[e.N-1]&e.MASK_UPPER)+(n[0]&e.MASK_LOWER);return n[e.N-1]=n[e.M-1]^s>>>1^-(s&1)&e.A,n},e.seeded=function(t){var n=Array(e.N);n[0]=t;for(var r=1;r!==e.N;++r){var o=n[r-1]^n[r-1]>>>30;n[r]=Math.imul(e.F,o)+r|0}return n},e.from=function(t){return new e(e.twist(e.seeded(t)),0)},e.prototype.clone=function(){return new e(this.states,this.index)},e.prototype.next=function(){var t=new e(this.states,this.index),n=t.unsafeNext();return[n,t]},e.prototype.unsafeNext=function(){var t=this.states[this.index];return t^=this.states[this.index]>>>e.U,t^=t<>>e.L,++this.index>=e.N&&(this.states=e.twist(this.states),this.index=0),t},e.prototype.getState=function(){return cg([this.index],ug(this.states),!1)},e.fromState=function(t){var n=t.length===e.N+1&&t[0]>=0&&t[0]>>9),r=t^this.s10^(t>>>18|n<<14)^(this.s10>>>5|this.s11<<27),o=n^this.s11^n>>>18^this.s11>>>5,i=this.s00+this.s10|0;return this.s01=this.s11,this.s00=this.s10,this.s11=o,this.s10=r,i},e.prototype.jump=function(){var t=new e(this.s01,this.s00,this.s11,this.s10);return t.unsafeJump(),t},e.prototype.unsafeJump=function(){for(var t=0,n=0,r=0,o=0,i=[1667051007,2321340297,1548169110,304075285],s=0;s!==4;++s)for(var a=1;a;a<<=1)i[s]&a&&(t^=this.s01,n^=this.s00,r^=this.s11,o^=this.s10),this.unsafeNext();this.s01=t,this.s00=n,this.s11=r,this.s10=o},e.prototype.getState=function(){return[this.s01,this.s00,this.s11,this.s10]},e}();function fg(e){var t=e.length===4;if(!t)throw new Error("The state must have been produced by a xorshift128plus RandomGenerator");return new mc(e[0],e[1],e[2],e[3])}var hg=Object.assign(function(e){return new mc(-1,~e,e|0,0)},{fromState:fg});var vc=function(){function e(t,n,r,o){this.s01=t,this.s00=n,this.s11=r,this.s10=o}return e.prototype.clone=function(){return new e(this.s01,this.s00,this.s11,this.s10)},e.prototype.next=function(){var t=new e(this.s01,this.s00,this.s11,this.s10),n=t.unsafeNext();return[n,t]},e.prototype.unsafeNext=function(){var t=this.s00+this.s10|0,n=this.s10^this.s00,r=this.s11^this.s01,o=this.s00,i=this.s01;return this.s00=o<<24^i>>>8^n^n<<16,this.s01=i<<24^o>>>8^r^(r<<16|n>>>16),this.s10=r<<5^n>>>27,this.s11=n<<5^r>>>27,t},e.prototype.jump=function(){var t=new e(this.s01,this.s00,this.s11,this.s10);return t.unsafeJump(),t},e.prototype.unsafeJump=function(){for(var t=0,n=0,r=0,o=0,i=[3639956645,3750757012,1261568508,386426335],s=0;s!==4;++s)for(var a=1;a;a<<=1)i[s]&a&&(t^=this.s01,n^=this.s00,r^=this.s11,o^=this.s10),this.unsafeNext();this.s01=t,this.s00=n,this.s11=r,this.s10=o},e.prototype.getState=function(){return[this.s01,this.s00,this.s11,this.s10]},e}();function pg(e){var t=e.length===4;if(!t)throw new Error("The state must have been produced by a xoroshiro128plus RandomGenerator");return new vc(e[0],e[1],e[2],e[3])}var bi=Object.assign(function(e){return new vc(-1,~e,e|0,0)},{fromState:pg});function Un(e,t){if(t<0){var n=-t;e.sign=-1,e.data[0]=~~(n/4294967296),e.data[1]=n>>>0}else e.sign=1,e.data[0]=~~(t/4294967296),e.data[1]=t>>>0;return e}function yc(e,t,n){var r=t.data[1],o=t.data[0],i=t.sign,s=n.data[1],a=n.data[0],u=n.sign;if(e.sign=1,i===1&&u===-1){var c=r+s,l=o+a+(c>4294967295?1:0);return e.data[0]=l>>>0,e.data[1]=c>>>0,e}var d=r,g=o,f=s,v=a;i===-1&&(d=s,g=a,f=r,v=o);var C=0,x=d-f;return x<0&&(C=1,x=x>>>0),e.data[0]=g-v-C,e.data[1]=x,e}function zn(e,t){for(var n=e>2?~~(4294967296/e)*e:4294967296,r=t.unsafeNext()+2147483648;r>=n;)r=t.unsafeNext()+2147483648;return r%e}function Mi(e,t,n){for(var r=t.length;;){for(var o=0;o!==r;++o){var i=o===0?t[0]+1:4294967296,s=zn(i,n);e[o]=s}for(var o=0;o!==r;++o){var a=e[o],u=t[o];if(au)break}}}var vg=Number.MAX_SAFE_INTEGER,yg={sign:1,data:[0,0]},Dg={sign:1,data:[0,0]},Dc={sign:1,data:[0,0]},Si=[0,0];function wg(e,t,n,r){var o=n<=vg?Un(Dc,n):yc(Dc,Un(yg,t),Un(Dg,e));return o.data[1]===4294967295?(o.data[0]+=1,o.data[1]=0):o.data[1]+=1,Mi(Si,o.data,r),Si[0]*4294967296+Si[1]+e}function Gn(e,t,n){var r=t-e;if(r<=4294967295){var o=zn(r+1,n);return o+e}return wg(e,t,r,n)}var ze=class{constructor(t){this.seed=t,this.prng=bi(t)}choose(t){let n=Gn(0,t.length-1,this.prng);return t[n]}};var Ec=Ri(Ti());var wc=Ri(Ti());var w=function(e){return e[e.U=0]="U",e[e.R=1]="R",e[e.D=2]="D",e[e.L=3]="L",e}(w||{}),Ge=[w.U,w.R,w.D,w.L];var xe=class e{constructor(t,n,r,o){this.i=t,this.j=n,this.size=r,this.chooser=o,this.neighbors=[]}static getKey(t,n){let r,o;if(typeof t=="number"&&typeof n=="number")r=t,o=n;else if(t instanceof Array)r=t[0],o=t[1];else throw new Error(`invalid arguments: ${t} ${n}`);return`${r}~${o}`}get key(){return e.getKey(this.i,this.j)}equals(t){return t instanceof e?this.i===t.i&&this.j===t.j:t instanceof Array?t.length===2&&this.i===t[0]&&this.j===t[1]:!1}getNeighborCoordinates(t){switch(t){case w.U:return[this.i-1,this.j];case w.R:return[this.i,this.j+1];case w.D:return[this.i+1,this.j];case w.L:return[this.i,this.j-1];default:Ee(t)}}chooseNeighbor(t){let n=[];for(let r of Ge){let o=this.getNeighborCoordinates(r);Cg(o,this.size)&&!t.has(e.getKey(o))&&n.push(o)}if(n.length!==0)return new e(...this.chooser.choose(n),this.size,this.chooser)}hasNeighbor(t){let n=e.getKey(t);return this.neighbors.some(r=>r.key===n)}get walls(){let t=[];for(let n of Ge){let r=this.getNeighborCoordinates(n);t.push(!this.hasNeighbor(r))}return this.i===0&&(t[w.U]=!0),this.i===this.size-1&&(t[w.D]=!0),this.j===0&&(t[w.L]=!0),this.j===this.size-1&&(t[w.R]=!0),t}};rn([wc.cache],xe.prototype,"walls",null);function Cg([e,t],n){return e>=0&&e=0&&ti.nodes.set(s.key,s)),i.nodeArray=void 0,i.start=r,i.end=o,i}get indices(){return new Array(this.size).fill(0).map((t,n)=>n)}init(){let t=new xe(this.chooser.choose(this.indices),this.chooser.choose(this.indices),this.size,this.chooser);this.nodes.set(t.key,t);let n=[];for(;this.nodes.size!n.has(o.key));if(r.length===0)return[];n.add(t.key);for(let o of r){let i=this.solveRecursive(o,n);if(i.length>0)return[t,...i]}return n.delete(t.key),[]}};rn([Ec.cache],Ut.prototype,"indices",null);var bg=150,Wn=(()=>{let t=class t{constructor(){this.chooser=new ze(Ic()),this.positionInternal=ni(new xe(0,0,0,this.chooser)),this.pathInternal=ni([]),this.inAnimation=!1,this.abortAnimation=!1}reset(r,o){o=o??Ic(),this.chooser=new ze(o),this.mazeInternal=new Ut(r,this.chooser),this.positionInternal.set(this.maze.start),this.pathInternal.set([this.maze.start]),this.inAnimation&&(this.abortAnimation=!0)}get position(){return this.positionInternal}get path(){return this.pathInternal}getShareUrl(){return`${window.location.origin}${window.location.pathname}?seed=${this.chooser.seed}`}get maze(){return this.mazeInternal}move(r){if(!this.canMove(r))return;let o=this.positionInternal().getNeighborCoordinates(r),i=this.maze.getNode(o);this.pathInternal.set([...this.pathInternal(),i]),this.positionInternal.set(i)}canMove(r){return!this.positionInternal().walls[r]}solve(r){let o=this.maze.solve();if(!r){this.positionInternal.set(o.at(-1)),this.pathInternal.set(o);return}this.inAnimation=!0;let i=0,s=()=>{if(this.abortAnimation){this.inAnimation=!1,this.abortAnimation=!1;return}this.positionInternal.set(o[i]),this.pathInternal.set(o.slice(0,i+1)),i++{let t=class t{constructor(){this.gameStateService=b(Wn),this.node=Vt.required(),this.endpoint=Vt(void 0),this.inPath=jn(()=>this.gameStateService.path().includes(this.node())),this.classes=jn(()=>{let r=this.node(),o=[];for(let s of Ge)r.walls[s]&&o.push(Cc(s));let i=this.endpoint();if(i){let s=Cc(bc(r));o=o.filter(a=>a!==s),o.push("endpoint",`endpoint-edge-${s}`,i)}return o.join(" ")}),this.icon=jn(()=>{if(!this.endpoint())return"";let r=bc(this.node()),o=this.endpoint()==="start";switch(r){case w.U:return o?"arrow_downward":"arrow_upward";case w.R:return o?"arrow_back":"arrow_forward";case w.D:return o?"arrow_upward":"arrow_downward";case w.L:return o?"arrow_forward":"arrow_back";default:Ee(r)}})}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=be({type:t,selectors:[["amaze-node"]],hostVars:4,hostBindings:function(o,i){o&2&&(Lu(i.classes()),ii("material-symbols",!0))},inputs:{node:[1,"node"],endpoint:[1,"endpoint"]},standalone:!0,features:[_e],decls:4,vars:2,consts:[[1,"current-position"],[1,"historical-position"]],template:function(o,i){o&1&&(L(0,"span"),Ue(1),H(),ri(2,Mg,1,0,"span",0)(3,Sg,1,0,"span",1)),o&2&&(h(),ci(i.icon()),h(),Uu(i.node().equals(i.gameStateService.position())?2:i.inPath()?3:-1))},styles:["[_nghost-%COMP%]{align-items:center;border:1px solid rgba(0,0,0,0);display:flex;height:2rem;justify-content:center;position:relative;text-align:center;text-transform:uppercase;width:2rem}.up[_nghost-%COMP%]{border-top:1px solid var(--border-color)}.right[_nghost-%COMP%]{border-right:1px solid var(--border-color)}.down[_nghost-%COMP%]{border-bottom:1px solid var(--border-color)}.left[_nghost-%COMP%]{border-left:1px solid var(--border-color)}[_nghost-%COMP%] span[_ngcontent-%COMP%]{position:absolute}.endpoint-edge-up[_nghost-%COMP%] span[_ngcontent-%COMP%]{top:-95%}.endpoint-edge-right[_nghost-%COMP%] span[_ngcontent-%COMP%]{right:-90%}.endpoint-edge-down[_nghost-%COMP%] span[_ngcontent-%COMP%]{bottom:-95%}.endpoint-edge-left[_nghost-%COMP%] span[_ngcontent-%COMP%]{left:-90%}[_nghost-%COMP%] span.current-position[_ngcontent-%COMP%], [_nghost-%COMP%] span.historical-position[_ngcontent-%COMP%]{background:var(--current-position-color);border-radius:50%;height:.6666666667rem;inset:.6666666667rem;width:.6666666667rem}[_nghost-%COMP%] span.historical-position[_ngcontent-%COMP%]{background:var(--path-color)}"],changeDetection:0});let e=t;return e})();function Cc(e){switch(e){case w.U:return"up";case w.R:return"right";case w.D:return"down";case w.L:return"left";default:Ee(e)}}function bc(e){if(e.i===0)return w.U;if(e.j===e.size-1)return w.R;if(e.i===e.size-1)return w.D;if(e.j===0)return w.L;throw new Error(`node is not attached to maze edge: ${e}`)}function _g(e,t){if(e&1&&de(0,"amaze-node",1),e&2){let n=t.$implicit,r=zu(2);pt("node",n)("endpoint",r.getEndpoint(n))}}function Tg(e,t){if(e&1&&(L(0,"div",0),ai(1,_g,1,2,"amaze-node",1,si),H()),e&2){let n=t.$implicit;h(),ui(n)}}var Sc=(()=>{let t=class t{constructor(){this.elementRef=b(Nn),this.maze=Vt.required(),this.move=qa()}ngAfterViewInit(){this.cleanupEventListener(),t.eventListener=r=>this.handleKeypress(r),document.body.addEventListener("keydown",t.eventListener)}ngOnDestroy(){this.cleanupEventListener()}cleanupEventListener(){t.eventListener&&document.body.removeEventListener("keydown",t.eventListener)}handleKeypress(r){let o=xg(r.key);o!==void 0&&this.move.emit(o)}getEndpoint(r){if(this.maze().start.equals(r))return"start";if(this.maze().end.equals(r))return"end"}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=be({type:t,selectors:[["amaze-maze"]],hostVars:1,hostBindings:function(o,i){o&2&&p("tabindex",0)},inputs:{maze:[1,"maze"]},outputs:{move:"move"},standalone:!0,features:[_e],decls:2,vars:0,consts:[[1,"row"],[3,"node","endpoint"]],template:function(o,i){o&1&&ai(0,Tg,3,0,"div",0,si),o&2&&ui(i.maze().toArray())},dependencies:[Mc],styles:["[_nghost-%COMP%]{border-collapse:collapse;display:block}[_nghost-%COMP%]:focus{outline:none}.row[_ngcontent-%COMP%]{display:flex}amaze-node[_ngcontent-%COMP%]{margin:-1px 0 0 -1px}"],changeDetection:0});let e=t;return e})();function xg(e){switch(e){case"ArrowUp":case"W":case"w":return w.U;case"ArrowRight":case"D":case"d":return w.R;case"ArrowDown":case"S":case"s":return w.D;case"ArrowLeft":case"A":case"a":return w.L;default:return}}var _c=(()=>{let t=class t{constructor(){this.color="black"}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=be({type:t,selectors:[["amaze-logo"]],hostVars:2,hostBindings:function(o,i){o&2&&oi("height",i.sizePx+"px")},inputs:{sizePx:"sizePx",color:"color"},standalone:!0,features:[_e],decls:65,vars:66,consts:[["viewBox","0 0 565 566","fill","none","xmlns","http://www.w3.org/2000/svg"],["x1","482","y1","3","x2","482","y2","83","stroke-width","6"],["x1","403","y1","3","x2","403","y2","83","stroke-width","6"],["x1","323","y1","3","x2","323","y2","83","stroke-width","6"],["d","M480 3L400 3","stroke-width","6"],["d","M320 3L240 3","stroke-width","6"],["d","M400 3L320 3","stroke-width","6"],["x1","3","y1","163","x2","3","y2","243","stroke-width","6"],["d","M240 163L160 163","stroke-width","6"],["d","M160 163L80 163","stroke-width","6"],["x1","83","y1","83","x2","83","y2","163","stroke-width","6"],["x1","3","y1","83","x2","3","y2","163","stroke-width","6"],["d","M245 83L165 83","stroke-width","6"],["x1","83","y1","3","x2","83","y2","83","stroke-width","6"],["x1","3","x2","3","y2","83","stroke-width","6"],["d","M240 3L160 3","stroke-width","6"],["d","M160 3L80 3","stroke-width","6"],["d","M485 403L404 403","stroke-width","6"],["x1","482","y1","403","x2","482","y2","483","stroke-width","6"],["x1","562","y1","83","x2","562","y2","163","stroke-width","6"],["d","M480 323L400 323","stroke-width","6"],["x1","562","y1","163","x2","562","y2","243","stroke-width","6"],["x1","562","y1","3","x2","562","y2","83","stroke-width","6"],["d","M565 3L480 3","stroke-width","6"],["x1","83","y1","403","x2","83","y2","483","stroke-width","6"],["x1","3","y1","403","x2","3","y2","483","stroke-width","6"],["d","M160 403L80 403","stroke-width","6"],["x1","3","y1","323","x2","3","y2","403","stroke-width","6"],["d","M160 323L80 323","stroke-width","6"],["x1","83","y1","243","x2","83","y2","323","stroke-width","6"],["x1","3","y1","243","x2","3","y2","323","stroke-width","6"],["d","M245 243L165 243","stroke-width","6"],["d","M165 243L80 243","stroke-width","6"],["d","M485 243L404 243","stroke-width","6"],["x1","323","y1","162","x2","323","y2","243","stroke-width","6"],["d","M485 163L404 163","stroke-width","6"],["d","M326 163L240 163","stroke-width","6"],["x1","482","y1","83","x2","482","y2","163","stroke-width","6"],["d","M326 83L245 83","stroke-width","6"],["x1","562","y1","243","x2","562","y2","323","stroke-width","6"],["d","M485 323L404 323","stroke-width","6"],["d","M400 323L320 323","stroke-width","6"],["x1","482","y1","243","x2","482","y2","323","stroke-width","6"],["x1","323","y1","243","x2","323","y2","323","stroke-width","6"],["x1","562","y1","323","x2","562","y2","403","stroke-width","6"],["d","M320 483L240 483","stroke-width","6"],["d","M400 483L320 483","stroke-width","6"],["x1","562","y1","483","x2","562","y2","566","stroke-width","6"],["d","M324 403L240 403","stroke-width","6"],["d","M404 403L324 403","stroke-width","6"],["x1","562","y1","403","x2","562","y2","483","stroke-width","6"],["x1","243","y1","243","x2","243","y2","323","stroke-width","6"],["x1","243","y1","323","x2","243","y2","403","stroke-width","6"],["d","M485 563L399 563","stroke-width","6"],["x1","482","y1","483","x2","482","y2","563","stroke-width","6"],["x1","163","y1","483","x2","163","y2","563","stroke-width","6"],["x1","83","y1","483","x2","83","y2","563","stroke-width","6"],["x1","3","y1","483","x2","3","y2","563","stroke-width","6"],["d","M320 563L240 563","stroke-width","6"],["d","M400 563L320 563","stroke-width","6"],["d","M240 563L160 563","stroke-width","6"],["d","M80 563L0 563","stroke-width","6"],["d","M160 563L80 563","stroke-width","6"],["x1","243","y1","483","x2","243","y2","563","stroke-width","6"]],template:function(o,i){o&1&&(Ra(),L(0,"svg",0),de(1,"line",1)(2,"line",2)(3,"line",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"line",7)(8,"path",8)(9,"path",9)(10,"line",10)(11,"line",11)(12,"path",12)(13,"line",13)(14,"line",14)(15,"path",15)(16,"path",16)(17,"path",17)(18,"line",18)(19,"line",19)(20,"path",20)(21,"line",21)(22,"line",22)(23,"path",23)(24,"line",24)(25,"line",25)(26,"path",26)(27,"line",27)(28,"path",28)(29,"line",29)(30,"line",30)(31,"path",31)(32,"path",32)(33,"path",33)(34,"line",34)(35,"path",35)(36,"path",36)(37,"line",37)(38,"path",38)(39,"line",39)(40,"path",40)(41,"path",41)(42,"line",42)(43,"line",43)(44,"line",44)(45,"path",45)(46,"path",46)(47,"line",47)(48,"path",48)(49,"path",49)(50,"line",50)(51,"line",51)(52,"line",52)(53,"path",53)(54,"line",54)(55,"line",55)(56,"line",56)(57,"line",57)(58,"path",58)(59,"path",59)(60,"path",60)(61,"path",61)(62,"path",62)(63,"line",63)(64,"path",41),H()),o&2&&(p("width",i.sizePx)("height",i.sizePx),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color),h(),p("stroke",i.color))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0});let e=t;return e})();var xi="dark-mode",Tc=(()=>{let t=class t{constructor(){this.gameStateService=b(Wn),this.size=20}ngOnInit(){window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&document.body.classList.add(xi);let r=new URL(window.location.toString()),o;r.searchParams.has("seed")&&(o=Number(r.searchParams.get("seed")),window.history.pushState({},"",window.location.origin)),this.generateNewMaze(o)}get logoColor(){return this.darkModeEnabled?"white":"black"}get maze(){return this.gameStateService.maze}solveMaze(){this.gameStateService.inAnimation||this.gameStateService.solve(!0)}generateNewMaze(r){this.gameStateService.reset(this.size,r)}get darkModeEnabled(){return document.body.classList.contains(xi)}get themeModeIcon(){return this.darkModeEnabled?"light_mode":"dark_mode"}toggleDarkMode(){document.body.classList.toggle(xi)}shareMaze(){let r=this.gameStateService.getShareUrl();navigator.clipboard.writeText(r),alert("URL copied to clipboard")}handleMove(r){this.gameStateService.inAnimation||this.gameStateService.move(r)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=be({type:t,selectors:[["app-root"]],standalone:!0,features:[_e],decls:12,vars:4,consts:[[3,"sizePx","color"],["title","Solve the maze",1,"material-symbols","icon-button",3,"click"],["title","Generate a new maze",1,"material-symbols","icon-button",3,"click"],["title","Toggle light/dark mode",1,"material-symbols","icon-button",3,"click"],["title","Share this maze",1,"material-symbols","icon-button",3,"click"],[3,"move","maze"]],template:function(o,i){o&1&&(L(0,"header"),de(1,"amaze-logo",0),L(2,"div")(3,"button",1),$e("click",function(){return i.solveMaze()}),Ue(4," conversion_path "),H(),L(5,"button",2),$e("click",function(){return i.generateNewMaze()}),Ue(6," refresh "),H(),L(7,"button",3),$e("click",function(){return i.toggleDarkMode()}),Ue(8),H(),L(9,"button",4),$e("click",function(){return i.shareMaze()}),Ue(10," share "),H()()(),L(11,"amaze-maze",5),$e("move",function(a){return i.handleMove(a)}),H()),o&2&&(h(),pt("sizePx",36)("color",i.logoColor),h(7),Fn(" ",i.themeModeIcon," "),h(3),pt("maze",i.maze))},dependencies:[_c,Sc],styles:["[_nghost-%COMP%]{align-items:center;display:flex;height:100%;justify-content:center;position:relative;width:100%}header[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between;padding:1rem;position:absolute;top:0;width:calc(100% - 2rem)}header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex}"],changeDetection:0});let e=t;return e})();dc(Tc,fc).catch(e=>console.error(e)); diff --git a/styles-N6APHOZ6.css b/styles-N6APHOZ6.css new file mode 100644 index 0000000..0ad6b6b --- /dev/null +++ b/styles-N6APHOZ6.css @@ -0,0 +1 @@ +@font-face{font-family:Material Symbols Outlined;font-style:normal;font-weight:100 700;src:url(https://fonts.gstatic.com/s/materialsymbolsoutlined/v195/kJEhBvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oFsI.woff2) format("woff2")}.material-symbols-outlined{font-family:Material Symbols Outlined;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}*{margin:0}html,body{height:100%}body{--background-color: white;--border-color: black;--current-position-color: #204ed6;--hover-color: rgba(0, 0, 0, .2);--path-color: #87ceea;--text-color: black;background:var(--background-color);color:var(--text-color)}body.dark-mode{--background-color: #060606;--border-color: white;--current-position-color: #ff2b2b;--hover-color: rgba(255, 255, 255, .2);--path-color: #f08080;--text-color: white}button,a{background:none;border:none;border-radius:50%;color:var(--text-color);cursor:pointer;font-size:1.25rem;padding:.5rem}button:hover,a:hover{background:var(--hover-color)}button.icon-button,a.icon-button{align-items:center;display:flex;height:2.5rem;justify-content:center;padding:0;width:2.5rem}.material-symbols{font-family:Material Symbols Outlined} diff --git a/styles-OL7YJWEL.css b/styles-OL7YJWEL.css deleted file mode 100644 index dac91b9..0000000 --- a/styles-OL7YJWEL.css +++ /dev/null @@ -1 +0,0 @@ -@font-face{font-family:Material Symbols Outlined;font-style:normal;font-weight:100 700;src:url(https://fonts.gstatic.com/s/materialsymbolsoutlined/v192/kJEhBvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oFsI.woff2) format("woff2")}.material-symbols-outlined{font-family:Material Symbols Outlined;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}*{margin:0}html,body{height:100%}body{--background-color: white;--border-color: black;--current-position-color: blue;--hover-color: rgba(0, 0, 0, .2);--path-color: skyblue;--text-color: black;background:var(--background-color);color:var(--text-color)}body.dark-mode{--background-color: #060606;--border-color: white;--current-position-color: red;--hover-color: rgba(255, 255, 255, .2);--path-color: lightcoral;--text-color: white}button{background:none;border:none;border-radius:50%;color:var(--text-color);cursor:pointer;font-size:1.25rem;padding:.5rem}button:hover{background:var(--hover-color)}button.icon-button{align-items:center;display:flex;height:2.5rem;justify-content:center;width:2.5rem}.material-symbols{font-family:Material Symbols Outlined}