todosalud-webc-form-citas 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +88 -0
- package/package.json +58 -0
- package/todosalud-webc-form-citas.css +0 -0
- package/todosalud-webc-form-citas.js +10 -0
package/README.md
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# TodoSalud Form Citas - Web Component
|
|
2
|
+
|
|
3
|
+
## Instalación
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm install todosalud-webc-form-citas
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Uso en Angular
|
|
10
|
+
|
|
11
|
+
### 1. Configurar angular.json
|
|
12
|
+
|
|
13
|
+
```json
|
|
14
|
+
{
|
|
15
|
+
"projects": {
|
|
16
|
+
"tu-proyecto": {
|
|
17
|
+
"architect": {
|
|
18
|
+
"build": {
|
|
19
|
+
"options": {
|
|
20
|
+
"scripts": [
|
|
21
|
+
"node_modules/todosalud-webc-form-citas/todosalud-webc-form-citas.js"
|
|
22
|
+
],
|
|
23
|
+
"styles": [
|
|
24
|
+
"node_modules/todosalud-webc-form-citas/todosalud-webc-form-citas.css"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### 2. Agregar CUSTOM_ELEMENTS_SCHEMA
|
|
35
|
+
|
|
36
|
+
```typescript
|
|
37
|
+
// app.module.ts
|
|
38
|
+
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
39
|
+
|
|
40
|
+
@NgModule({
|
|
41
|
+
declarations: [...],
|
|
42
|
+
imports: [...],
|
|
43
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
|
44
|
+
})
|
|
45
|
+
export class AppModule { }
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### 3. Usar en tu componente
|
|
49
|
+
|
|
50
|
+
```html
|
|
51
|
+
<todosalud-webc-form-citas
|
|
52
|
+
app-name="plsrecaudos"
|
|
53
|
+
min-password-length="6"
|
|
54
|
+
(formSubmitted)="onSubmit($event)"
|
|
55
|
+
(cancel)="onCancel($event)">
|
|
56
|
+
</todosalud-webc-form-citas>
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
```typescript
|
|
60
|
+
export class MiComponente {
|
|
61
|
+
onSubmit(event: any) {
|
|
62
|
+
console.log('Datos:', event.detail);
|
|
63
|
+
const { app, data } = event.detail;
|
|
64
|
+
// data.email, data.password
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
onCancel(event: any) {
|
|
68
|
+
console.log('Cancelado:', event.detail);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Propiedades
|
|
74
|
+
|
|
75
|
+
| Propiedad | Tipo | Default | Descripción |
|
|
76
|
+
|-----------|------|---------|-------------|
|
|
77
|
+
| app-name | string | '' | Nombre de la aplicación |
|
|
78
|
+
| min-password-length | number | 6 | Longitud mínima del password |
|
|
79
|
+
|
|
80
|
+
## Eventos
|
|
81
|
+
|
|
82
|
+
| Evento | Payload | Descripción |
|
|
83
|
+
|--------|---------|-------------|
|
|
84
|
+
| formSubmitted | {app, data: {email, password}} | Formulario enviado |
|
|
85
|
+
| cancel | {app, cancelled, timestamp} | Formulario cancelado |
|
|
86
|
+
|
|
87
|
+
## Versión
|
|
88
|
+
1.0.0
|
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "todosalud-webc-form-citas",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Web Component para formulario de citas médicas TodoSalud",
|
|
5
|
+
"main": "todosalud-webc-form-citas.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"start": "ng serve",
|
|
8
|
+
"build": "ng build --configuration production",
|
|
9
|
+
"build:elements": "npm run build && node build-elements.js",
|
|
10
|
+
"pack": "npm run build:elements && npm pack",
|
|
11
|
+
"publish:npm": "npm run build:elements && npm publish"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"web-component",
|
|
15
|
+
"angular",
|
|
16
|
+
"todosalud",
|
|
17
|
+
"formulario"
|
|
18
|
+
],
|
|
19
|
+
"author": "TodoSalud",
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"files": [
|
|
22
|
+
"todosalud-webc-form-citas.js",
|
|
23
|
+
"todosalud-webc-form-citas.css",
|
|
24
|
+
"README.md"
|
|
25
|
+
],
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@angular/animations": "^19.2.18",
|
|
28
|
+
"@angular/common": "^19.2.0",
|
|
29
|
+
"@angular/compiler": "^19.2.0",
|
|
30
|
+
"@angular/core": "^19.2.0",
|
|
31
|
+
"@angular/elements": "^19.2.18",
|
|
32
|
+
"@angular/forms": "^19.2.0",
|
|
33
|
+
"@angular/platform-browser": "^19.2.0",
|
|
34
|
+
"@angular/platform-browser-dynamic": "^19.2.0",
|
|
35
|
+
"@angular/router": "^19.2.0",
|
|
36
|
+
"@ng-bootstrap/ng-bootstrap": "^18.0.0",
|
|
37
|
+
"@webcomponents/custom-elements": "^1.6.0",
|
|
38
|
+
"bootstrap": "^5.3.8",
|
|
39
|
+
"rxjs": "~7.8.0",
|
|
40
|
+
"tslib": "^2.3.0",
|
|
41
|
+
"zone.js": "~0.15.0"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@angular-devkit/build-angular": "^19.2.15",
|
|
45
|
+
"@angular/cli": "^19.2.15",
|
|
46
|
+
"@angular/compiler-cli": "^19.2.0",
|
|
47
|
+
"@types/jasmine": "~5.1.0",
|
|
48
|
+
"concat": "^1.0.3",
|
|
49
|
+
"fs-extra": "^11.3.3",
|
|
50
|
+
"jasmine-core": "~5.6.0",
|
|
51
|
+
"karma": "~6.4.0",
|
|
52
|
+
"karma-chrome-launcher": "~3.2.0",
|
|
53
|
+
"karma-coverage": "~2.2.0",
|
|
54
|
+
"karma-jasmine": "~5.1.0",
|
|
55
|
+
"karma-jasmine-html-reporter": "~2.1.0",
|
|
56
|
+
"typescript": "~5.7.2"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var ce=globalThis;function te(t){return(ce.__Zone_symbol_prefix||"__zone_symbol__")+t}function ht(){let t=ce.performance;function n(I){t&&t.mark&&t.mark(I)}function a(I,s){t&&t.measure&&t.measure(I,s)}n("Zone");class e{static __symbol__=te;static assertZonePatched(){if(ce.Promise!==S.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let s=e.current;for(;s.parent;)s=s.parent;return s}static get current(){return b.zone}static get currentTask(){return D}static __load_patch(s,i,r=!1){if(S.hasOwnProperty(s)){let E=ce[te("forceDuplicateZoneCheck")]===!0;if(!r&&E)throw Error("Already loaded patch: "+s)}else if(!ce["__Zone_disable_"+s]){let E="Zone:"+s;n(E),S[s]=i(ce,e,R),a(E,E)}}get parent(){return this._parent}get name(){return this._name}_parent;_name;_properties;_zoneDelegate;constructor(s,i){this._parent=s,this._name=i?i.name||"unnamed":"<root>",this._properties=i&&i.properties||{},this._zoneDelegate=new f(this,this._parent&&this._parent._zoneDelegate,i)}get(s){let i=this.getZoneWith(s);if(i)return i._properties[s]}getZoneWith(s){let i=this;for(;i;){if(i._properties.hasOwnProperty(s))return i;i=i._parent}return null}fork(s){if(!s)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,s)}wrap(s,i){if(typeof s!="function")throw new Error("Expecting function got: "+s);let r=this._zoneDelegate.intercept(this,s,i),E=this;return function(){return E.runGuarded(r,this,arguments,i)}}run(s,i,r,E){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,s,i,r,E)}finally{b=b.parent}}runGuarded(s,i=null,r,E){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,s,i,r,E)}catch(x){if(this._zoneDelegate.handleError(this,x))throw x}}finally{b=b.parent}}runTask(s,i,r){if(s.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(s.zone||J).name+"; Execution: "+this.name+")");let E=s,{type:x,data:{isPeriodic:ee=!1,isRefreshable:M=!1}={}}=s;if(s.state===q&&(x===U||x===k))return;let he=s.state!=A;he&&E._transitionTo(A,d);let _e=D;D=E,b={parent:b,zone:this};try{x==k&&s.data&&!ee&&!M&&(s.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,E,i,r)}catch(Q){if(this._zoneDelegate.handleError(this,Q))throw Q}}finally{let Q=s.state;if(Q!==q&&Q!==X)if(x==U||ee||M&&Q===p)he&&E._transitionTo(d,A,p);else{let Te=E._zoneDelegates;this._updateTaskCount(E,-1),he&&E._transitionTo(q,A,q),M&&(E._zoneDelegates=Te)}b=b.parent,D=_e}}scheduleTask(s){if(s.zone&&s.zone!==this){let r=this;for(;r;){if(r===s.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${s.zone.name}`);r=r.parent}}s._transitionTo(p,q);let i=[];s._zoneDelegates=i,s._zone=this;try{s=this._zoneDelegate.scheduleTask(this,s)}catch(r){throw s._transitionTo(X,p,q),this._zoneDelegate.handleError(this,r),r}return s._zoneDelegates===i&&this._updateTaskCount(s,1),s.state==p&&s._transitionTo(d,p),s}scheduleMicroTask(s,i,r,E){return this.scheduleTask(new g(F,s,i,r,E,void 0))}scheduleMacroTask(s,i,r,E,x){return this.scheduleTask(new g(k,s,i,r,E,x))}scheduleEventTask(s,i,r,E,x){return this.scheduleTask(new g(U,s,i,r,E,x))}cancelTask(s){if(s.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(s.zone||J).name+"; Execution: "+this.name+")");if(!(s.state!==d&&s.state!==A)){s._transitionTo(V,d,A);try{this._zoneDelegate.cancelTask(this,s)}catch(i){throw s._transitionTo(X,V),this._zoneDelegate.handleError(this,i),i}return this._updateTaskCount(s,-1),s._transitionTo(q,V),s.runCount=-1,s}}_updateTaskCount(s,i){let r=s._zoneDelegates;i==-1&&(s._zoneDelegates=null);for(let E=0;E<r.length;E++)r[E]._updateTaskCount(s.type,i)}}let c={name:"",onHasTask:(I,s,i,r)=>I.hasTask(i,r),onScheduleTask:(I,s,i,r)=>I.scheduleTask(i,r),onInvokeTask:(I,s,i,r,E,x)=>I.invokeTask(i,r,E,x),onCancelTask:(I,s,i,r)=>I.cancelTask(i,r)};class f{get zone(){return this._zone}_zone;_taskCounts={microTask:0,macroTask:0,eventTask:0};_parentDelegate;_forkDlgt;_forkZS;_forkCurrZone;_interceptDlgt;_interceptZS;_interceptCurrZone;_invokeDlgt;_invokeZS;_invokeCurrZone;_handleErrorDlgt;_handleErrorZS;_handleErrorCurrZone;_scheduleTaskDlgt;_scheduleTaskZS;_scheduleTaskCurrZone;_invokeTaskDlgt;_invokeTaskZS;_invokeTaskCurrZone;_cancelTaskDlgt;_cancelTaskZS;_cancelTaskCurrZone;_hasTaskDlgt;_hasTaskDlgtOwner;_hasTaskZS;_hasTaskCurrZone;constructor(s,i,r){this._zone=s,this._parentDelegate=i,this._forkZS=r&&(r&&r.onFork?r:i._forkZS),this._forkDlgt=r&&(r.onFork?i:i._forkDlgt),this._forkCurrZone=r&&(r.onFork?this._zone:i._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:i._interceptZS),this._interceptDlgt=r&&(r.onIntercept?i:i._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this._zone:i._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:i._invokeZS),this._invokeDlgt=r&&(r.onInvoke?i:i._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this._zone:i._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:i._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?i:i._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this._zone:i._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:i._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?i:i._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this._zone:i._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:i._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?i:i._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this._zone:i._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:i._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?i:i._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this._zone:i._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let E=r&&r.onHasTask,x=i&&i._hasTaskZS;(E||x)&&(this._hasTaskZS=E?r:c,this._hasTaskDlgt=i,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,r.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=i,this._scheduleTaskCurrZone=this._zone),r.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=i,this._invokeTaskCurrZone=this._zone),r.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=i,this._cancelTaskCurrZone=this._zone))}fork(s,i){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,s,i):new e(s,i)}intercept(s,i,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,s,i,r):i}invoke(s,i,r,E,x){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,s,i,r,E,x):i.apply(r,E)}handleError(s,i){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,s,i):!0}scheduleTask(s,i){let r=i;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,s,i),r||(r=i);else if(i.scheduleFn)i.scheduleFn(i);else if(i.type==F)z(i);else throw new Error("Task is missing scheduleFn.");return r}invokeTask(s,i,r,E){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,s,i,r,E):i.callback.apply(r,E)}cancelTask(s,i){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,s,i);else{if(!i.cancelFn)throw Error("Task is not cancelable");r=i.cancelFn(i)}return r}hasTask(s,i){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,s,i)}catch(r){this.handleError(s,r)}}_updateTaskCount(s,i){let r=this._taskCounts,E=r[s],x=r[s]=E+i;if(x<0)throw new Error("More tasks executed then were scheduled.");if(E==0||x==0){let ee={microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:s};this.hasTask(this._zone,ee)}}}class g{type;source;invoke;callback;data;scheduleFn;cancelFn;_zone=null;runCount=0;_zoneDelegates=null;_state="notScheduled";constructor(s,i,r,E,x,ee){if(this.type=s,this.source=i,this.data=E,this.scheduleFn=x,this.cancelFn=ee,!r)throw new Error("callback is not defined");this.callback=r;let M=this;s===U&&E&&E.useG?this.invoke=g.invokeTask:this.invoke=function(){return g.invokeTask.call(ce,M,this,arguments)}}static invokeTask(s,i,r){s||(s=this),K++;try{return s.runCount++,s.zone.runTask(s,i,r)}finally{K==1&&$(),K--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(q,p)}_transitionTo(s,i,r){if(this._state===i||this._state===r)this._state=s,s==q&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${s}', expecting state '${i}'${r?" or '"+r+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let T=te("setTimeout"),y=te("Promise"),w=te("then"),_=[],P=!1,L;function H(I){if(L||ce[y]&&(L=ce[y].resolve(0)),L){let s=L[w];s||(s=L.then),s.call(L,I)}else ce[T](I,0)}function z(I){K===0&&_.length===0&&H($),I&&_.push(I)}function $(){if(!P){for(P=!0;_.length;){let I=_;_=[];for(let s=0;s<I.length;s++){let i=I[s];try{i.zone.runTask(i,null,null)}catch(r){R.onUnhandledError(r)}}}R.microtaskDrainDone(),P=!1}}let J={name:"NO ZONE"},q="notScheduled",p="scheduling",d="scheduled",A="running",V="canceling",X="unknown",F="microTask",k="macroTask",U="eventTask",S={},R={symbol:te,currentZoneFrame:()=>b,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:z,showUncaughtError:()=>!e[te("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:H},b={parent:null,zone:new e(null,null)},D=null,K=0;function W(){}return a("Zone","Zone"),e}function dt(){let t=globalThis,n=t[te("forceDuplicateZoneCheck")]===!0;if(t.Zone&&(n||typeof t.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return t.Zone??=ht(),t.Zone}var pe=Object.getOwnPropertyDescriptor,Me=Object.defineProperty,Ae=Object.getPrototypeOf,_t=Object.create,Tt=Array.prototype.slice,je="addEventListener",He="removeEventListener",Ne=te(je),Ze=te(He),ae="true",le="false",ve=te("");function Ve(t,n){return Zone.current.wrap(t,n)}function xe(t,n,a,e,c){return Zone.current.scheduleMacroTask(t,n,a,e,c)}var j=te,we=typeof window<"u",be=we?window:void 0,Y=we&&be||globalThis,Et="removeAttribute";function Fe(t,n){for(let a=t.length-1;a>=0;a--)typeof t[a]=="function"&&(t[a]=Ve(t[a],n+"_"+a));return t}function gt(t,n){let a=t.constructor.name;for(let e=0;e<n.length;e++){let c=n[e],f=t[c];if(f){let g=pe(t,c);if(!et(g))continue;t[c]=(T=>{let y=function(){return T.apply(this,Fe(arguments,a+"."+c))};return fe(y,T),y})(f)}}}function et(t){return t?t.writable===!1?!1:!(typeof t.get=="function"&&typeof t.set>"u"):!0}var tt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,De=!("nw"in Y)&&typeof Y.process<"u"&&Y.process.toString()==="[object process]",Ge=!De&&!tt&&!!(we&&be.HTMLElement),nt=typeof Y.process<"u"&&Y.process.toString()==="[object process]"&&!tt&&!!(we&&be.HTMLElement),Ce={},kt=j("enable_beforeunload"),Xe=function(t){if(t=t||Y.event,!t)return;let n=Ce[t.type];n||(n=Ce[t.type]=j("ON_PROPERTY"+t.type));let a=this||t.target||Y,e=a[n],c;if(Ge&&a===be&&t.type==="error"){let f=t;c=e&&e.call(this,f.message,f.filename,f.lineno,f.colno,f.error),c===!0&&t.preventDefault()}else c=e&&e.apply(this,arguments),t.type==="beforeunload"&&Y[kt]&&typeof c=="string"?t.returnValue=c:c!=null&&!c&&t.preventDefault();return c};function Ye(t,n,a){let e=pe(t,n);if(!e&&a&&pe(a,n)&&(e={enumerable:!0,configurable:!0}),!e||!e.configurable)return;let c=j("on"+n+"patched");if(t.hasOwnProperty(c)&&t[c])return;delete e.writable,delete e.value;let f=e.get,g=e.set,T=n.slice(2),y=Ce[T];y||(y=Ce[T]=j("ON_PROPERTY"+T)),e.set=function(w){let _=this;if(!_&&t===Y&&(_=Y),!_)return;typeof _[y]=="function"&&_.removeEventListener(T,Xe),g?.call(_,null),_[y]=w,typeof w=="function"&&_.addEventListener(T,Xe,!1)},e.get=function(){let w=this;if(!w&&t===Y&&(w=Y),!w)return null;let _=w[y];if(_)return _;if(f){let P=f.call(this);if(P)return e.set.call(this,P),typeof w[Et]=="function"&&w.removeAttribute(n),P}return null},Me(t,n,e),t[c]=!0}function rt(t,n,a){if(n)for(let e=0;e<n.length;e++)Ye(t,"on"+n[e],a);else{let e=[];for(let c in t)c.slice(0,2)=="on"&&e.push(c);for(let c=0;c<e.length;c++)Ye(t,e[c],a)}}var oe=j("originalInstance");function ye(t){let n=Y[t];if(!n)return;Y[j(t)]=n,Y[t]=function(){let c=Fe(arguments,t);switch(c.length){case 0:this[oe]=new n;break;case 1:this[oe]=new n(c[0]);break;case 2:this[oe]=new n(c[0],c[1]);break;case 3:this[oe]=new n(c[0],c[1],c[2]);break;case 4:this[oe]=new n(c[0],c[1],c[2],c[3]);break;default:throw new Error("Arg list too long.")}},fe(Y[t],n);let a=new n(function(){}),e;for(e in a)t==="XMLHttpRequest"&&e==="responseBlob"||function(c){typeof a[c]=="function"?Y[t].prototype[c]=function(){return this[oe][c].apply(this[oe],arguments)}:Me(Y[t].prototype,c,{set:function(f){typeof f=="function"?(this[oe][c]=Ve(f,t+"."+c),fe(this[oe][c],f)):this[oe][c]=f},get:function(){return this[oe][c]}})}(e);for(e in n)e!=="prototype"&&n.hasOwnProperty(e)&&(Y[t][e]=n[e])}function ue(t,n,a){let e=t;for(;e&&!e.hasOwnProperty(n);)e=Ae(e);!e&&t[n]&&(e=t);let c=j(n),f=null;if(e&&(!(f=e[c])||!e.hasOwnProperty(c))){f=e[c]=e[n];let g=e&&pe(e,n);if(et(g)){let T=a(f,c,n);e[n]=function(){return T(this,arguments)},fe(e[n],f)}}return f}function mt(t,n,a){let e=null;function c(f){let g=f.data;return g.args[g.cbIdx]=function(){f.invoke.apply(this,arguments)},e.apply(g.target,g.args),f}e=ue(t,n,f=>function(g,T){let y=a(g,T);return y.cbIdx>=0&&typeof T[y.cbIdx]=="function"?xe(y.name,T[y.cbIdx],y,c):f.apply(g,T)})}function fe(t,n){t[j("OriginalDelegate")]=n}var $e=!1,Le=!1;function yt(){if($e)return Le;$e=!0;try{let t=be.navigator.userAgent;(t.indexOf("MSIE ")!==-1||t.indexOf("Trident/")!==-1||t.indexOf("Edge/")!==-1)&&(Le=!0)}catch{}return Le}function Je(t){return typeof t=="function"}function Ke(t){return typeof t=="number"}var pt={useG:!0},ne={},ot={},st=new RegExp("^"+ve+"(\\w+)(true|false)$"),it=j("propagationStopped");function ct(t,n){let a=(n?n(t):t)+le,e=(n?n(t):t)+ae,c=ve+a,f=ve+e;ne[t]={},ne[t][le]=c,ne[t][ae]=f}function vt(t,n,a,e){let c=e&&e.add||je,f=e&&e.rm||He,g=e&&e.listeners||"eventListeners",T=e&&e.rmAll||"removeAllListeners",y=j(c),w="."+c+":",_="prependListener",P="."+_+":",L=function(p,d,A){if(p.isRemoved)return;let V=p.callback;typeof V=="object"&&V.handleEvent&&(p.callback=k=>V.handleEvent(k),p.originalDelegate=V);let X;try{p.invoke(p,d,[A])}catch(k){X=k}let F=p.options;if(F&&typeof F=="object"&&F.once){let k=p.originalDelegate?p.originalDelegate:p.callback;d[f].call(d,A.type,k,F)}return X};function H(p,d,A){if(d=d||t.event,!d)return;let V=p||d.target||t,X=V[ne[d.type][A?ae:le]];if(X){let F=[];if(X.length===1){let k=L(X[0],V,d);k&&F.push(k)}else{let k=X.slice();for(let U=0;U<k.length&&!(d&&d[it]===!0);U++){let S=L(k[U],V,d);S&&F.push(S)}}if(F.length===1)throw F[0];for(let k=0;k<F.length;k++){let U=F[k];n.nativeScheduleMicroTask(()=>{throw U})}}}let z=function(p){return H(this,p,!1)},$=function(p){return H(this,p,!0)};function J(p,d){if(!p)return!1;let A=!0;d&&d.useG!==void 0&&(A=d.useG);let V=d&&d.vh,X=!0;d&&d.chkDup!==void 0&&(X=d.chkDup);let F=!1;d&&d.rt!==void 0&&(F=d.rt);let k=p;for(;k&&!k.hasOwnProperty(c);)k=Ae(k);if(!k&&p[c]&&(k=p),!k||k[y])return!1;let U=d&&d.eventNameToString,S={},R=k[y]=k[c],b=k[j(f)]=k[f],D=k[j(g)]=k[g],K=k[j(T)]=k[T],W;d&&d.prepend&&(W=k[j(d.prepend)]=k[d.prepend]);function I(o,u){return u?typeof o=="boolean"?{capture:o,passive:!0}:o?typeof o=="object"&&o.passive!==!1?{...o,passive:!0}:o:{passive:!0}:o}let s=function(o){if(!S.isExisting)return R.call(S.target,S.eventName,S.capture?$:z,S.options)},i=function(o){if(!o.isRemoved){let u=ne[o.eventName],v;u&&(v=u[o.capture?ae:le]);let C=v&&o.target[v];if(C){for(let m=0;m<C.length;m++)if(C[m]===o){C.splice(m,1),o.isRemoved=!0,o.removeAbortListener&&(o.removeAbortListener(),o.removeAbortListener=null),C.length===0&&(o.allRemoved=!0,o.target[v]=null);break}}}if(o.allRemoved)return b.call(o.target,o.eventName,o.capture?$:z,o.options)},r=function(o){return R.call(S.target,S.eventName,o.invoke,S.options)},E=function(o){return W.call(S.target,S.eventName,o.invoke,S.options)},x=function(o){return b.call(o.target,o.eventName,o.invoke,o.options)},ee=A?s:r,M=A?i:x,he=function(o,u){let v=typeof u;return v==="function"&&o.callback===u||v==="object"&&o.originalDelegate===u},_e=d?.diff||he,Q=Zone[j("UNPATCHED_EVENTS")],Te=t[j("PASSIVE_EVENTS")];function h(o){if(typeof o=="object"&&o!==null){let u={...o};return o.signal&&(u.signal=o.signal),u}return o}let l=function(o,u,v,C,m=!1,O=!1){return function(){let N=this||t,Z=arguments[0];d&&d.transferEventName&&(Z=d.transferEventName(Z));let G=arguments[1];if(!G)return o.apply(this,arguments);if(De&&Z==="uncaughtException")return o.apply(this,arguments);let B=!1;if(typeof G!="function"){if(!G.handleEvent)return o.apply(this,arguments);B=!0}if(V&&!V(o,G,N,arguments))return;let de=!!Te&&Te.indexOf(Z)!==-1,se=h(I(arguments[2],de)),Ee=se?.signal;if(Ee?.aborted)return;if(Q){for(let ie=0;ie<Q.length;ie++)if(Z===Q[ie])return de?o.call(N,Z,G,se):o.apply(this,arguments)}let Se=se?typeof se=="boolean"?!0:se.capture:!1,Be=se&&typeof se=="object"?se.once:!1,ft=Zone.current,Oe=ne[Z];Oe||(ct(Z,U),Oe=ne[Z]);let ze=Oe[Se?ae:le],ge=N[ze],Ue=!1;if(ge){if(Ue=!0,X){for(let ie=0;ie<ge.length;ie++)if(_e(ge[ie],G))return}}else ge=N[ze]=[];let Pe,We=N.constructor.name,qe=ot[We];qe&&(Pe=qe[Z]),Pe||(Pe=We+u+(U?U(Z):Z)),S.options=se,Be&&(S.options.once=!1),S.target=N,S.capture=Se,S.eventName=Z,S.isExisting=Ue;let me=A?pt:void 0;me&&(me.taskData=S),Ee&&(S.options.signal=void 0);let re=ft.scheduleEventTask(Pe,G,me,v,C);if(Ee){S.options.signal=Ee;let ie=()=>re.zone.cancelTask(re);o.call(Ee,"abort",ie,{once:!0}),re.removeAbortListener=()=>Ee.removeEventListener("abort",ie)}if(S.target=null,me&&(me.taskData=null),Be&&(S.options.once=!0),typeof re.options!="boolean"&&(re.options=se),re.target=N,re.capture=Se,re.eventName=Z,B&&(re.originalDelegate=G),O?ge.unshift(re):ge.push(re),m)return N}};return k[c]=l(R,w,ee,M,F),W&&(k[_]=l(W,P,E,M,F,!0)),k[f]=function(){let o=this||t,u=arguments[0];d&&d.transferEventName&&(u=d.transferEventName(u));let v=arguments[2],C=v?typeof v=="boolean"?!0:v.capture:!1,m=arguments[1];if(!m)return b.apply(this,arguments);if(V&&!V(b,m,o,arguments))return;let O=ne[u],N;O&&(N=O[C?ae:le]);let Z=N&&o[N];if(Z)for(let G=0;G<Z.length;G++){let B=Z[G];if(_e(B,m)){if(Z.splice(G,1),B.isRemoved=!0,Z.length===0&&(B.allRemoved=!0,o[N]=null,!C&&typeof u=="string")){let de=ve+"ON_PROPERTY"+u;o[de]=null}return B.zone.cancelTask(B),F?o:void 0}}return b.apply(this,arguments)},k[g]=function(){let o=this||t,u=arguments[0];d&&d.transferEventName&&(u=d.transferEventName(u));let v=[],C=at(o,U?U(u):u);for(let m=0;m<C.length;m++){let O=C[m],N=O.originalDelegate?O.originalDelegate:O.callback;v.push(N)}return v},k[T]=function(){let o=this||t,u=arguments[0];if(u){d&&d.transferEventName&&(u=d.transferEventName(u));let v=ne[u];if(v){let C=v[le],m=v[ae],O=o[C],N=o[m];if(O){let Z=O.slice();for(let G=0;G<Z.length;G++){let B=Z[G],de=B.originalDelegate?B.originalDelegate:B.callback;this[f].call(this,u,de,B.options)}}if(N){let Z=N.slice();for(let G=0;G<Z.length;G++){let B=Z[G],de=B.originalDelegate?B.originalDelegate:B.callback;this[f].call(this,u,de,B.options)}}}}else{let v=Object.keys(o);for(let C=0;C<v.length;C++){let m=v[C],O=st.exec(m),N=O&&O[1];N&&N!=="removeListener"&&this[T].call(this,N)}this[T].call(this,"removeListener")}if(F)return this},fe(k[c],R),fe(k[f],b),K&&fe(k[T],K),D&&fe(k[g],D),!0}let q=[];for(let p=0;p<a.length;p++)q[p]=J(a[p],e);return q}function at(t,n){if(!n){let f=[];for(let g in t){let T=st.exec(g),y=T&&T[1];if(y&&(!n||y===n)){let w=t[g];if(w)for(let _=0;_<w.length;_++)f.push(w[_])}}return f}let a=ne[n];a||(ct(n),a=ne[n]);let e=t[a[le]],c=t[a[ae]];return e?c?e.concat(c):e.slice():c?c.slice():[]}function bt(t,n){let a=t.Event;a&&a.prototype&&n.patchMethod(a.prototype,"stopImmediatePropagation",e=>function(c,f){c[it]=!0,e&&e.apply(c,f)})}function Pt(t,n){n.patchMethod(t,"queueMicrotask",a=>function(e,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}var Re=j("zoneTask");function ke(t,n,a,e){let c=null,f=null;n+=e,a+=e;let g={};function T(w){let _=w.data;_.args[0]=function(){return w.invoke.apply(this,arguments)};let P=c.apply(t,_.args);return Ke(P)?_.handleId=P:(_.handle=P,_.isRefreshable=Je(P.refresh)),w}function y(w){let{handle:_,handleId:P}=w.data;return f.call(t,_??P)}c=ue(t,n,w=>function(_,P){if(Je(P[0])){let L={isRefreshable:!1,isPeriodic:e==="Interval",delay:e==="Timeout"||e==="Interval"?P[1]||0:void 0,args:P},H=P[0];P[0]=function(){try{return H.apply(this,arguments)}finally{let{handle:A,handleId:V,isPeriodic:X,isRefreshable:F}=L;!X&&!F&&(V?delete g[V]:A&&(A[Re]=null))}};let z=xe(n,P[0],L,T,y);if(!z)return z;let{handleId:$,handle:J,isRefreshable:q,isPeriodic:p}=z.data;if($)g[$]=z;else if(J&&(J[Re]=z,q&&!p)){let d=J.refresh;J.refresh=function(){let{zone:A,state:V}=z;return V==="notScheduled"?(z._state="scheduled",A._updateTaskCount(z,1)):V==="running"&&(z._state="scheduling"),d.call(this)}}return J??$??z}else return w.apply(t,P)}),f=ue(t,a,w=>function(_,P){let L=P[0],H;Ke(L)?(H=g[L],delete g[L]):(H=L?.[Re],H?L[Re]=null:H=L),H?.type?H.cancelFn&&H.zone.cancelTask(H):w.apply(t,P)})}function Rt(t,n){let{isBrowser:a,isMix:e}=n.getGlobalObjects();if(!a&&!e||!t.customElements||!("customElements"in t))return;let c=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];n.patchCallbacks(n,t.customElements,"customElements","define",c)}function Ct(t,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:a,zoneSymbolEventNames:e,TRUE_STR:c,FALSE_STR:f,ZONE_SYMBOL_PREFIX:g}=n.getGlobalObjects();for(let y=0;y<a.length;y++){let w=a[y],_=w+f,P=w+c,L=g+_,H=g+P;e[w]={},e[w][f]=L,e[w][c]=H}let T=t.EventTarget;if(!(!T||!T.prototype))return n.patchEventTarget(t,n,[T&&T.prototype]),!0}function wt(t,n){n.patchEventPrototype(t,n)}function lt(t,n,a){if(!a||a.length===0)return n;let e=a.filter(f=>f.target===t);if(e.length===0)return n;let c=e[0].ignoreProperties;return n.filter(f=>c.indexOf(f)===-1)}function Qe(t,n,a,e){if(!t)return;let c=lt(t,n,a);rt(t,c,e)}function Ie(t){return Object.getOwnPropertyNames(t).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function Dt(t,n){if(De&&!nt||Zone[t.symbol("patchEvents")])return;let a=n.__Zone_ignore_on_properties,e=[];if(Ge){let c=window;e=e.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let f=[];Qe(c,Ie(c),a&&a.concat(f),Ae(c))}e=e.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c<e.length;c++){let f=n[e[c]];f?.prototype&&Qe(f.prototype,Ie(f.prototype),a)}}function St(t){t.__load_patch("legacy",n=>{let a=n[t.__symbol__("legacyPatch")];a&&a()}),t.__load_patch("timers",n=>{let a="set",e="clear";ke(n,a,e,"Timeout"),ke(n,a,e,"Interval"),ke(n,a,e,"Immediate")}),t.__load_patch("requestAnimationFrame",n=>{ke(n,"request","cancel","AnimationFrame"),ke(n,"mozRequest","mozCancel","AnimationFrame"),ke(n,"webkitRequest","webkitCancel","AnimationFrame")}),t.__load_patch("blocking",(n,a)=>{let e=["alert","prompt","confirm"];for(let c=0;c<e.length;c++){let f=e[c];ue(n,f,(g,T,y)=>function(w,_){return a.current.run(g,n,_,y)})}}),t.__load_patch("EventTarget",(n,a,e)=>{wt(n,e),Ct(n,e);let c=n.XMLHttpRequestEventTarget;c&&c.prototype&&e.patchEventTarget(n,e,[c.prototype])}),t.__load_patch("MutationObserver",(n,a,e)=>{ye("MutationObserver"),ye("WebKitMutationObserver")}),t.__load_patch("IntersectionObserver",(n,a,e)=>{ye("IntersectionObserver")}),t.__load_patch("FileReader",(n,a,e)=>{ye("FileReader")}),t.__load_patch("on_property",(n,a,e)=>{Dt(e,n)}),t.__load_patch("customElements",(n,a,e)=>{Rt(n,e)}),t.__load_patch("XHR",(n,a)=>{w(n);let e=j("xhrTask"),c=j("xhrSync"),f=j("xhrListener"),g=j("xhrScheduled"),T=j("xhrURL"),y=j("xhrErrorBeforeScheduled");function w(_){let P=_.XMLHttpRequest;if(!P)return;let L=P.prototype;function H(R){return R[e]}let z=L[Ne],$=L[Ze];if(!z){let R=_.XMLHttpRequestEventTarget;if(R){let b=R.prototype;z=b[Ne],$=b[Ze]}}let J="readystatechange",q="scheduled";function p(R){let b=R.data,D=b.target;D[g]=!1,D[y]=!1;let K=D[f];z||(z=D[Ne],$=D[Ze]),K&&$.call(D,J,K);let W=D[f]=()=>{if(D.readyState===D.DONE)if(!b.aborted&&D[g]&&R.state===q){let s=D[a.__symbol__("loadfalse")];if(D.status!==0&&s&&s.length>0){let i=R.invoke;R.invoke=function(){let r=D[a.__symbol__("loadfalse")];for(let E=0;E<r.length;E++)r[E]===R&&r.splice(E,1);!b.aborted&&R.state===q&&i.call(R)},s.push(R)}else R.invoke()}else!b.aborted&&D[g]===!1&&(D[y]=!0)};return z.call(D,J,W),D[e]||(D[e]=R),U.apply(D,b.args),D[g]=!0,R}function d(){}function A(R){let b=R.data;return b.aborted=!0,S.apply(b.target,b.args)}let V=ue(L,"open",()=>function(R,b){return R[c]=b[2]==!1,R[T]=b[1],V.apply(R,b)}),X="XMLHttpRequest.send",F=j("fetchTaskAborting"),k=j("fetchTaskScheduling"),U=ue(L,"send",()=>function(R,b){if(a.current[k]===!0||R[c])return U.apply(R,b);{let D={target:R,url:R[T],isPeriodic:!1,args:b,aborted:!1},K=xe(X,d,D,p,A);R&&R[y]===!0&&!D.aborted&&K.state===q&&K.invoke()}}),S=ue(L,"abort",()=>function(R,b){let D=H(R);if(D&&typeof D.type=="string"){if(D.cancelFn==null||D.data&&D.data.aborted)return;D.zone.cancelTask(D)}else if(a.current[F]===!0)return S.apply(R,b)})}}),t.__load_patch("geolocation",n=>{n.navigator&&n.navigator.geolocation&>(n.navigator.geolocation,["getCurrentPosition","watchPosition"])}),t.__load_patch("PromiseRejectionEvent",(n,a)=>{function e(c){return function(f){at(n,c).forEach(T=>{let y=n.PromiseRejectionEvent;if(y){let w=new y(c,{promise:f.promise,reason:f.rejection});T.invoke(w)}})}}n.PromiseRejectionEvent&&(a[j("unhandledPromiseRejectionHandler")]=e("unhandledrejection"),a[j("rejectionHandledHandler")]=e("rejectionhandled"))}),t.__load_patch("queueMicrotask",(n,a,e)=>{Pt(n,e)})}function Ot(t){t.__load_patch("ZoneAwarePromise",(n,a,e)=>{let c=Object.getOwnPropertyDescriptor,f=Object.defineProperty;function g(h){if(h&&h.toString===Object.prototype.toString){let l=h.constructor&&h.constructor.name;return(l||"")+": "+JSON.stringify(h)}return h?h.toString():Object.prototype.toString.call(h)}let T=e.symbol,y=[],w=n[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,_=T("Promise"),P=T("then"),L="__creationTrace__";e.onUnhandledError=h=>{if(e.showUncaughtError()){let l=h&&h.rejection;l?console.error("Unhandled Promise rejection:",l instanceof Error?l.message:l,"; Zone:",h.zone.name,"; Task:",h.task&&h.task.source,"; Value:",l,l instanceof Error?l.stack:void 0):console.error(h)}},e.microtaskDrainDone=()=>{for(;y.length;){let h=y.shift();try{h.zone.runGuarded(()=>{throw h.throwOriginal?h.rejection:h})}catch(l){z(l)}}};let H=T("unhandledPromiseRejectionHandler");function z(h){e.onUnhandledError(h);try{let l=a[H];typeof l=="function"&&l.call(this,h)}catch{}}function $(h){return h&&typeof h.then=="function"}function J(h){return h}function q(h){return M.reject(h)}let p=T("state"),d=T("value"),A=T("finally"),V=T("parentPromiseValue"),X=T("parentPromiseState"),F="Promise.then",k=null,U=!0,S=!1,R=0;function b(h,l){return o=>{try{I(h,l,o)}catch(u){I(h,!1,u)}}}let D=function(){let h=!1;return function(o){return function(){h||(h=!0,o.apply(null,arguments))}}},K="Promise resolved with itself",W=T("currentTaskTrace");function I(h,l,o){let u=D();if(h===o)throw new TypeError(K);if(h[p]===k){let v=null;try{(typeof o=="object"||typeof o=="function")&&(v=o&&o.then)}catch(C){return u(()=>{I(h,!1,C)})(),h}if(l!==S&&o instanceof M&&o.hasOwnProperty(p)&&o.hasOwnProperty(d)&&o[p]!==k)i(o),I(h,o[p],o[d]);else if(l!==S&&typeof v=="function")try{v.call(o,u(b(h,l)),u(b(h,!1)))}catch(C){u(()=>{I(h,!1,C)})()}else{h[p]=l;let C=h[d];if(h[d]=o,h[A]===A&&l===U&&(h[p]=h[X],h[d]=h[V]),l===S&&o instanceof Error){let m=a.currentTask&&a.currentTask.data&&a.currentTask.data[L];m&&f(o,W,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m<C.length;)r(h,C[m++],C[m++],C[m++],C[m++]);if(C.length==0&&l==S){h[p]=R;let m=o;try{throw new Error("Uncaught (in promise): "+g(o)+(o&&o.stack?`
|
|
2
|
+
`+o.stack:""))}catch(O){m=O}w&&(m.throwOriginal=!0),m.rejection=o,m.promise=h,m.zone=a.current,m.task=a.currentTask,y.push(m),e.scheduleMicroTask()}}}return h}let s=T("rejectionHandledHandler");function i(h){if(h[p]===R){try{let l=a[s];l&&typeof l=="function"&&l.call(this,{rejection:h[d],promise:h})}catch{}h[p]=S;for(let l=0;l<y.length;l++)h===y[l].promise&&y.splice(l,1)}}function r(h,l,o,u,v){i(h);let C=h[p],m=C?typeof u=="function"?u:J:typeof v=="function"?v:q;l.scheduleMicroTask(F,()=>{try{let O=h[d],N=!!o&&A===o[A];N&&(o[V]=O,o[X]=C);let Z=l.run(m,void 0,N&&m!==q&&m!==J?[]:[O]);I(o,!0,Z)}catch(O){I(o,!1,O)}},o)}let E="function ZoneAwarePromise() { [native code] }",x=function(){},ee=n.AggregateError;class M{static toString(){return E}static resolve(l){return l instanceof M?l:I(new this(null),U,l)}static reject(l){return I(new this(null),S,l)}static withResolvers(){let l={};return l.promise=new M((o,u)=>{l.resolve=o,l.reject=u}),l}static any(l){if(!l||typeof l[Symbol.iterator]!="function")return Promise.reject(new ee([],"All promises were rejected"));let o=[],u=0;try{for(let m of l)u++,o.push(M.resolve(m))}catch{return Promise.reject(new ee([],"All promises were rejected"))}if(u===0)return Promise.reject(new ee([],"All promises were rejected"));let v=!1,C=[];return new M((m,O)=>{for(let N=0;N<o.length;N++)o[N].then(Z=>{v||(v=!0,m(Z))},Z=>{C.push(Z),u--,u===0&&(v=!0,O(new ee(C,"All promises were rejected")))})})}static race(l){let o,u,v=new this((O,N)=>{o=O,u=N});function C(O){o(O)}function m(O){u(O)}for(let O of l)$(O)||(O=this.resolve(O)),O.then(C,m);return v}static all(l){return M.allWithCallback(l)}static allSettled(l){return(this&&this.prototype instanceof M?this:M).allWithCallback(l,{thenCallback:u=>({status:"fulfilled",value:u}),errorCallback:u=>({status:"rejected",reason:u})})}static allWithCallback(l,o){let u,v,C=new this((Z,G)=>{u=Z,v=G}),m=2,O=0,N=[];for(let Z of l){$(Z)||(Z=this.resolve(Z));let G=O;try{Z.then(B=>{N[G]=o?o.thenCallback(B):B,m--,m===0&&u(N)},B=>{o?(N[G]=o.errorCallback(B),m--,m===0&&u(N)):v(B)})}catch(B){v(B)}m++,O++}return m-=2,m===0&&u(N),C}constructor(l){let o=this;if(!(o instanceof M))throw new Error("Must be an instanceof Promise.");o[p]=k,o[d]=[];try{let u=D();l&&l(u(b(o,U)),u(b(o,S)))}catch(u){I(o,!1,u)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return M}then(l,o){let u=this.constructor?.[Symbol.species];(!u||typeof u!="function")&&(u=this.constructor||M);let v=new u(x),C=a.current;return this[p]==k?this[d].push(C,v,l,o):r(this,C,v,l,o),v}catch(l){return this.then(null,l)}finally(l){let o=this.constructor?.[Symbol.species];(!o||typeof o!="function")&&(o=M);let u=new o(x);u[A]=A;let v=a.current;return this[p]==k?this[d].push(v,u,l,l):r(this,v,u,l,l),u}}M.resolve=M.resolve,M.reject=M.reject,M.race=M.race,M.all=M.all;let he=n[_]=n.Promise;n.Promise=M;let _e=T("thenPatched");function Q(h){let l=h.prototype,o=c(l,"then");if(o&&(o.writable===!1||!o.configurable))return;let u=l.then;l[P]=u,h.prototype.then=function(v,C){return new M((O,N)=>{u.call(this,O,N)}).then(v,C)},h[_e]=!0}e.patchThen=Q;function Te(h){return function(l,o){let u=h.apply(l,o);if(u instanceof M)return u;let v=u.constructor;return v[_e]||Q(v),u}}return he&&(Q(he),ue(n,"fetch",h=>Te(h))),Promise[a.__symbol__("uncaughtPromiseErrors")]=y,M})}function Nt(t){t.__load_patch("toString",n=>{let a=Function.prototype.toString,e=j("OriginalDelegate"),c=j("Promise"),f=j("Error"),g=function(){if(typeof this=="function"){let _=this[e];if(_)return typeof _=="function"?a.call(_):Object.prototype.toString.call(_);if(this===Promise){let P=n[c];if(P)return a.call(P)}if(this===Error){let P=n[f];if(P)return a.call(P)}}return a.call(this)};g[e]=a,Function.prototype.toString=g;let T=Object.prototype.toString,y="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?y:T.call(this)}})}function Zt(t,n,a,e,c){let f=Zone.__symbol__(e);if(n[f])return;let g=n[f]=n[e];n[e]=function(T,y,w){return y&&y.prototype&&c.forEach(function(_){let P=`${a}.${e}::`+_,L=y.prototype;try{if(L.hasOwnProperty(_)){let H=t.ObjectGetOwnPropertyDescriptor(L,_);H&&H.value?(H.value=t.wrapWithCurrentZone(H.value,P),t._redefineProperty(y.prototype,_,H)):L[_]&&(L[_]=t.wrapWithCurrentZone(L[_],P))}else L[_]&&(L[_]=t.wrapWithCurrentZone(L[_],P))}catch{}}),g.call(n,T,y,w)},t.attachOriginToPatched(n[e],g)}function Lt(t){t.__load_patch("util",(n,a,e)=>{let c=Ie(n);e.patchOnProperties=rt,e.patchMethod=ue,e.bindArguments=Fe,e.patchMacroTask=mt;let f=a.__symbol__("BLACK_LISTED_EVENTS"),g=a.__symbol__("UNPATCHED_EVENTS");n[g]&&(n[f]=n[g]),n[f]&&(a[f]=a[g]=n[f]),e.patchEventPrototype=bt,e.patchEventTarget=vt,e.isIEOrEdge=yt,e.ObjectDefineProperty=Me,e.ObjectGetOwnPropertyDescriptor=pe,e.ObjectCreate=_t,e.ArraySlice=Tt,e.patchClass=ye,e.wrapWithCurrentZone=Ve,e.filterProperties=lt,e.attachOriginToPatched=fe,e._redefineProperty=Object.defineProperty,e.patchCallbacks=Zt,e.getGlobalObjects=()=>({globalSources:ot,zoneSymbolEventNames:ne,eventNames:c,isBrowser:Ge,isMix:nt,isNode:De,TRUE_STR:ae,FALSE_STR:le,ZONE_SYMBOL_PREFIX:ve,ADD_EVENT_LISTENER_STR:je,REMOVE_EVENT_LISTENER_STR:He})})}function It(t){Ot(t),Nt(t),Lt(t)}var ut=dt();It(ut);St(ut);
|
|
3
|
+
|
|
4
|
+
var nd=Object.defineProperty,rd=Object.defineProperties;var od=Object.getOwnPropertyDescriptors;var Hs=Object.getOwnPropertySymbols;var id=Object.prototype.hasOwnProperty,sd=Object.prototype.propertyIsEnumerable;var $s=(e,t,n)=>t in e?nd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,M=(e,t)=>{for(var n in t||={})id.call(t,n)&&$s(e,n,t[n]);if(Hs)for(var n of Hs(t))sd.call(t,n)&&$s(e,n,t[n]);return e},N=(e,t)=>rd(e,od(t));function eo(e,t){return Object.is(e,t)}var O=null,cn=!1,to=1,se=Symbol("SIGNAL");function E(e){let t=O;return O=e,t}function no(){return O}var It={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function ln(e){if(cn)throw new Error("");if(O===null)return;O.consumerOnSignalRead(e);let t=O.nextProducerIndex++;if(pn(O),t<O.producerNode.length&&O.producerNode[t]!==e&&wt(O)){let n=O.producerNode[t];fn(n,O.producerIndexOfThis[t])}O.producerNode[t]!==e&&(O.producerNode[t]=e,O.producerIndexOfThis[t]=wt(O)?Gs(e,O,t):0),O.producerLastReadVersion[t]=e.version}function Us(){to++}function ro(e){if(!(wt(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===to)){if(!e.producerMustRecompute(e)&&!ao(e)){Xr(e);return}e.producerRecomputeValue(e),Xr(e)}}function oo(e){if(e.liveConsumerNode===void 0)return;let t=cn;cn=!0;try{for(let n of e.liveConsumerNode)n.dirty||ad(n)}finally{cn=t}}function io(){return O?.consumerAllowSignalWrites!==!1}function ad(e){e.dirty=!0,oo(e),e.consumerMarkedDirty?.(e)}function Xr(e){e.dirty=!1,e.lastCleanEpoch=to}function dn(e){return e&&(e.nextProducerIndex=0),E(e)}function so(e,t){if(E(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(wt(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)fn(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function ao(e){pn(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(ro(n),r!==n.version))return!0}return!1}function co(e){if(pn(e),wt(e))for(let t=0;t<e.producerNode.length;t++)fn(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function Gs(e,t,n){if(zs(e),e.liveConsumerNode.length===0&&Ws(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=Gs(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function fn(e,t){if(zs(e),e.liveConsumerNode.length===1&&Ws(e))for(let r=0;r<e.producerNode.length;r++)fn(e.producerNode[r],e.producerIndexOfThis[r]);let n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){let r=e.liveConsumerIndexOfThis[t],o=e.liveConsumerNode[t];pn(o),o.producerIndexOfThis[r]=t}}function wt(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function pn(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function zs(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Ws(e){return e.producerNode!==void 0}function uo(e,t){let n=Object.create(cd);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(ro(n),ln(n),n.value===un)throw n.error;return n.value};return r[se]=n,r}var Kr=Symbol("UNSET"),Jr=Symbol("COMPUTING"),un=Symbol("ERRORED"),cd=N(M({},It),{value:Kr,dirty:!0,error:null,equal:eo,kind:"computed",producerMustRecompute(e){return e.value===Kr||e.value===Jr},producerRecomputeValue(e){if(e.value===Jr)throw new Error("Detected cycle in computations.");let t=e.value;e.value=Jr;let n=dn(e),r,o=!1;try{r=e.computation(),E(null),o=t!==Kr&&t!==un&&r!==un&&e.equal(t,r)}catch(i){r=un,e.error=i}finally{so(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function ud(){throw new Error}var qs=ud;function Zs(e){qs(e)}function lo(e){qs=e}var ld=null;function fo(e,t){let n=Object.create(ho);n.value=e,t!==void 0&&(n.equal=t);let r=()=>(ln(n),n.value);return r[se]=n,r}function hn(e,t){io()||Zs(e),e.equal(e.value,t)||(e.value=t,dd(e))}function po(e,t){io()||Zs(e),hn(e,t(e.value))}var ho=N(M({},It),{equal:eo,value:void 0,kind:"signal"});function dd(e){e.version++,Us(),oo(e),ld?.()}function go(e){let t=E(null);try{return e()}finally{E(t)}}var mo;function bt(){return mo}function ge(e){let t=mo;return mo=e,t}var gn=Symbol("NotFound");function _(e){return typeof e=="function"}function mn(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 yn=mn(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
|
|
5
|
+
${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
|
|
6
|
+
`)}`:"",this.name="UnsubscriptionError",this.errors=n});function Mt(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var V=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(_(r))try{r()}catch(i){t=i instanceof yn?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Ys(i)}catch(s){t=t??[],s instanceof yn?t=[...t,...s.errors]:t.push(s)}}if(t)throw new yn(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Ys(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)&&Mt(n,t)}remove(t){let{_finalizers:n}=this;n&&Mt(n,t),t instanceof e&&t._removeParent(this)}};V.EMPTY=(()=>{let e=new V;return e.closed=!0,e})();var yo=V.EMPTY;function vn(e){return e instanceof V||e&&"closed"in e&&_(e.remove)&&_(e.add)&&_(e.unsubscribe)}function Ys(e){_(e)?e():e.unsubscribe()}var X={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ye={setTimeout(e,t,...n){let{delegate:r}=Ye;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Ye;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Dn(e){Ye.setTimeout(()=>{let{onUnhandledError:t}=X;if(t)t(e);else throw e})}function vo(){}var Qs=Do("C",void 0,void 0);function Ks(e){return Do("E",void 0,e)}function Js(e){return Do("N",e,void 0)}function Do(e,t,n){return{kind:e,value:t,error:n}}var Pe=null;function Qe(e){if(X.useDeprecatedSynchronousErrorHandling){let t=!Pe;if(t&&(Pe={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Pe;if(Pe=null,n)throw r}}else e()}function Xs(e){X.useDeprecatedSynchronousErrorHandling&&Pe&&(Pe.errorThrown=!0,Pe.error=e)}var Le=class extends V{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,vn(t)&&t.add(this)):this.destination=yd}static create(t,n,r){return new Ke(t,n,r)}next(t){this.isStopped?Co(Js(t),this):this._next(t)}error(t){this.isStopped?Co(Ks(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Co(Qs,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()}}},gd=Function.prototype.bind;function Eo(e,t){return gd.call(e,t)}var _o=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){En(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){En(r)}else En(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){En(n)}}},Ke=class extends Le{constructor(t,n,r){super();let o;if(_(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&X.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Eo(t.next,i),error:t.error&&Eo(t.error,i),complete:t.complete&&Eo(t.complete,i)}):o=t}this.destination=new _o(o)}};function En(e){X.useDeprecatedSynchronousErrorHandling?Xs(e):Dn(e)}function md(e){throw e}function Co(e,t){let{onStoppedNotification:n}=X;n&&Ye.setTimeout(()=>n(e,t))}var yd={closed:!0,next:vo,error:md,complete:vo};var Je=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Cn(e){return e}function ea(e){return e.length===0?Cn:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var A=(()=>{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=Dd(n)?n:new Ke(n,r,o);return Qe(()=>{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=ta(r),new r((o,i)=>{let s=new Ke({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Je](){return this}pipe(...n){return ea(n)(this)}toPromise(n){return n=ta(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 ta(e){var t;return(t=e??X.Promise)!==null&&t!==void 0?t:Promise}function vd(e){return e&&_(e.next)&&_(e.error)&&_(e.complete)}function Dd(e){return e&&e instanceof Le||vd(e)&&vn(e)}function Ed(e){return _(e?.lift)}function ae(e){return t=>{if(Ed(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 q(e,t,n,r,o){return new wo(e,t,n,r,o)}var wo=class extends Le{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var na=mn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ee=(()=>{class e extends A{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new _n(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new na}next(n){Qe(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Qe(()=>{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(){Qe(()=>{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?yo:(this.currentObservers=null,i.push(n),new V(()=>{this.currentObservers=null,Mt(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new A;return n.source=this,n}}return e.create=(t,n)=>new _n(t,n),e})(),_n=class extends ee{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:yo}};var St=class extends ee{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Io={now(){return(Io.delegate||Date).now()},delegate:void 0};var Tt=class extends ee{constructor(t=1/0,n=1/0,r=Io){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}};var ra=new A(e=>e.complete());function oa(e){return e&&_(e.schedule)}function bo(e){return e[e.length-1]}function ia(e){return _(bo(e))?e.pop():void 0}function sa(e){return oa(bo(e))?e.pop():void 0}function aa(e,t){return typeof bo(e)=="number"?e.pop():t}function ua(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l))}catch(f){s(f)}}function c(l){try{u(r.throw(l))}catch(f){s(f)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function ca(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ve(e){return this instanceof Ve?(this.v=e,this):new Ve(e)}function la(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(d){return function(h){return Promise.resolve(h).then(d,f)}}function a(d,h){r[d]&&(o[d]=function(b){return new Promise(function(B,k){i.push([d,b,B,k])>1||c(d,b)})},h&&(o[d]=h(o[d])))}function c(d,h){try{u(r[d](h))}catch(b){p(i[0][3],b)}}function u(d){d.value instanceof Ve?Promise.resolve(d.value.v).then(l,f):p(i[0][2],d)}function l(d){c("next",d)}function f(d){c("throw",d)}function p(d,h){d(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function da(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof ca=="function"?ca(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var wn=e=>e&&typeof e.length=="number"&&typeof e!="function";function In(e){return _(e?.then)}function bn(e){return _(e[Je])}function Mn(e){return Symbol.asyncIterator&&_(e?.[Symbol.asyncIterator])}function Sn(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Cd(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Tn=Cd();function Nn(e){return _(e?.[Tn])}function xn(e){return la(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Ve(n.read());if(o)return yield Ve(void 0);yield yield Ve(r)}}finally{n.releaseLock()}})}function An(e){return _(e?.getReader)}function P(e){if(e instanceof A)return e;if(e!=null){if(bn(e))return _d(e);if(wn(e))return wd(e);if(In(e))return Id(e);if(Mn(e))return fa(e);if(Nn(e))return bd(e);if(An(e))return Md(e)}throw Sn(e)}function _d(e){return new A(t=>{let n=e[Je]();if(_(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function wd(e){return new A(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Id(e){return new A(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Dn)})}function bd(e){return new A(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function fa(e){return new A(t=>{Sd(e,t).catch(n=>t.error(n))})}function Md(e){return fa(xn(e))}function Sd(e,t){var n,r,o,i;return ua(this,void 0,void 0,function*(){try{for(n=da(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function Z(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Rn(e,t=0){return ae((n,r)=>{n.subscribe(q(r,o=>Z(r,e,()=>r.next(o),t),()=>Z(r,e,()=>r.complete(),t),o=>Z(r,e,()=>r.error(o),t)))})}function On(e,t=0){return ae((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function pa(e,t){return P(e).pipe(On(t),Rn(t))}function ha(e,t){return P(e).pipe(On(t),Rn(t))}function ga(e,t){return new A(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function ma(e,t){return new A(n=>{let r;return Z(n,t,()=>{r=e[Tn](),Z(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>_(r?.return)&&r.return()})}function Fn(e,t){if(!e)throw new Error("Iterable cannot be null");return new A(n=>{Z(n,t,()=>{let r=e[Symbol.asyncIterator]();Z(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function ya(e,t){return Fn(xn(e),t)}function va(e,t){if(e!=null){if(bn(e))return pa(e,t);if(wn(e))return ga(e,t);if(In(e))return ha(e,t);if(Mn(e))return Fn(e,t);if(Nn(e))return ma(e,t);if(An(e))return ya(e,t)}throw Sn(e)}function Nt(e,t){return t?va(e,t):P(e)}function me(e,t){return ae((n,r)=>{let o=0;n.subscribe(q(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Td}=Array;function Nd(e,t){return Td(t)?e(...t):e(t)}function Da(e){return me(t=>Nd(e,t))}var{isArray:xd}=Array,{getPrototypeOf:Ad,prototype:Rd,keys:Od}=Object;function Ea(e){if(e.length===1){let t=e[0];if(xd(t))return{args:t,keys:null};if(Fd(t)){let n=Od(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Fd(e){return e&&typeof e=="object"&&Ad(e)===Rd}function Ca(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function _a(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,f=!1,p=()=>{f&&!c.length&&!u&&t.complete()},d=b=>u<r?h(b):c.push(b),h=b=>{i&&t.next(b),u++;let B=!1;P(n(b,l++)).subscribe(q(t,k=>{o?.(k),i?d(k):t.next(k)},()=>{B=!0},void 0,()=>{if(B)try{for(u--;c.length&&u<r;){let k=c.shift();s?Z(t,s,()=>h(k)):h(k)}p()}catch(k){t.error(k)}}))};return e.subscribe(q(t,d,()=>{f=!0,p()})),()=>{a?.()}}function Mo(e,t,n=1/0){return _(t)?Mo((r,o)=>me((i,s)=>t(r,i,o,s))(P(e(r,o))),n):(typeof t=="number"&&(n=t),ae((r,o)=>_a(r,o,e,n)))}function wa(e=1/0){return Mo(Cn,e)}function So(...e){let t=ia(e),{args:n,keys:r}=Ea(e),o=new A(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l<s;l++){let f=!1;P(n[l]).subscribe(q(i,p=>{f||(f=!0,u--),a[l]=p},()=>c--,void 0,()=>{(!c||!f)&&(u||i.next(r?Ca(r,a):a),i.complete())}))}});return t?o.pipe(Da(t)):o}function To(...e){let t=sa(e),n=aa(e,1/0),r=e;return r.length?r.length===1?P(r[0]):wa(n)(Nt(r,t)):ra}function No(e,t){return ae((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(q(r,c=>{o?.unsubscribe();let u=0,l=i++;P(e(c,l)).subscribe(o=q(r,f=>r.next(t?t(c,f,l,u++):f),()=>{o=null,a()}))},()=>{s=!0,a()}))})}var Pd="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",g=class extends Error{code;constructor(t,n){super(Vd(t,n)),this.code=t}};function Ld(e){return`NG0${Math.abs(e)}`}function Vd(e,t){return`${Ld(e)}${t?": "+t:""}`}function gr(e){return{toString:e}.toString()}var kn="__parameters__";function jd(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function pc(e,t,n){return gr(()=>{let r=jd(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,u,l){let f=c.hasOwnProperty(kn)?c[kn]:Object.defineProperty(c,kn,{value:[]})[kn];for(;f.length<=l;)f.push(null);return(f[l]=f[l]||[]).push(s),c}}return o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var _e=globalThis;function S(e){for(let t in e)if(e[t]===S)return t;throw Error("Could not find renamed property on target object.")}function $(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map($).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
|
|
7
|
+
`);return r>=0?n.slice(0,r):n}function Ia(e,t){return e?t?`${e} ${t}`:e:t||""}var Bd=S({__forward_ref__:S});function wi(e){return e.__forward_ref__=wi,e.toString=function(){return $(this())},e}function ne(e){return Hd(e)?e():e}function Hd(e){return typeof e=="function"&&e.hasOwnProperty(Bd)&&e.__forward_ref__===wi}function T(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function de(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ii(e){return ba(e,hc)||ba(e,gc)}function ba(e,t){return e.hasOwnProperty(t)?e[t]:null}function $d(e){let t=e&&(e[hc]||e[gc]);return t||null}function Ma(e){return e&&(e.hasOwnProperty(Sa)||e.hasOwnProperty(Ud))?e[Sa]:null}var hc=S({\u0275prov:S}),Sa=S({\u0275inj:S}),gc=S({ngInjectableDef:S}),Ud=S({ngInjectorDef:S}),v=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=T({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function mc(e){return e&&!!e.\u0275providers}var Gd=S({\u0275cmp:S}),zd=S({\u0275dir:S}),Wd=S({\u0275pipe:S}),qd=S({\u0275mod:S}),Ta=S({\u0275fac:S}),Ot=S({__NG_ELEMENT_ID__:S}),Na=S({__NG_ENV_ID__:S});function yc(e){return typeof e=="string"?e:e==null?"":String(e)}function Zd(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():yc(e)}function vc(e,t){throw new g(-200,e)}function bi(e,t){throw new g(-201,!1)}var y=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}(y||{}),Ho;function Dc(){return Ho}function Y(e){let t=Ho;return Ho=e,t}function Ec(e,t,n){let r=Ii(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&y.Optional)return null;if(t!==void 0)return t;bi(e,"Injector")}var Yd={},je=Yd,$o="__NG_DI_FLAG__",$n=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=n;return this.injector.get(t,r.optional?gn:je,r)}},Un="ngTempTokenPath",Qd="ngTokenPath",Kd=/\n/gm,Jd="\u0275",xa="__source";function Xd(e,t=y.Default){if(bt()===void 0)throw new g(-203,!1);if(bt()===null)return Ec(e,void 0,t);{let n=bt(),r;return n instanceof $n?r=n.injector:r=n,r.get(e,t&y.Optional?null:void 0,t)}}function C(e,t=y.Default){return(Dc()||Xd)(ne(e),t)}function I(e,t=y.Default){return C(e,mr(t))}function mr(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Uo(e){let t=[];for(let n=0;n<e.length;n++){let r=ne(e[n]);if(Array.isArray(r)){if(r.length===0)throw new g(900,!1);let o,i=y.Default;for(let s=0;s<r.length;s++){let a=r[s],c=ef(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(C(o,i))}else t.push(C(r))}return t}function Cc(e,t){return e[$o]=t,e.prototype[$o]=t,e}function ef(e){return e[$o]}function tf(e,t,n,r){let o=e[Un];throw t[xa]&&o.unshift(t[xa]),e.message=nf(`
|
|
8
|
+
`+e.message,o,n,r),e[Qd]=o,e[Un]=null,e}function nf(e,t,n,r=null){e=e&&e.charAt(0)===`
|
|
9
|
+
`&&e.charAt(1)==Jd?e.slice(2):e;let o=$(t);if(Array.isArray(t))o=t.map($).join(" -> ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):$(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Kd,`
|
|
10
|
+
`)}`}var rf=Cc(pc("Optional"),8);var of=Cc(pc("SkipSelf"),4);function Ft(e,t){let n=e.hasOwnProperty(Ta);return n?e[Ta]:null}function Mi(e,t){e.forEach(n=>Array.isArray(n)?Mi(n,t):t(n))}function _c(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Gn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function sf(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 af(e,t,n){let r=Bt(e,t);return r>=0?e[r|1]=n:(r=~r,sf(e,r,t,n)),r}function xo(e,t){let n=Bt(e,t);if(n>=0)return e[n|1]}function Bt(e,t){return cf(e,t,1)}function cf(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var rt={},re=[],zn=new v(""),wc=new v("",-1),Ic=new v(""),Wn=class{get(t,n=je){if(n===je){let r=new Error(`NullInjectorError: No provider for ${$(t)}!`);throw r.name="NullInjectorError",r}return n}};function uf(e,t){let n=e[qd]||null;if(!n&&t===!0)throw new Error(`Type ${$(e)} does not have '\u0275mod' property.`);return n}function kt(e){return e[Gd]||null}function lf(e){return e[zd]||null}function df(e){return e[Wd]||null}function ff(...e){return{\u0275providers:bc(!0,e),\u0275fromNgModule:!0}}function bc(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Mi(t,s=>{let a=s;Go(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Mc(o,i),n}function Mc(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Si(o,i=>{t(i,r)})}}function Go(e,t,n,r){if(e=ne(e),!e)return!1;let o=null,i=Ma(e),s=!i&&kt(e);if(!i&&!s){let c=e.ngModule;if(i=Ma(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)Go(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{Mi(i.imports,l=>{Go(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&Mc(u,t)}if(!a){let u=Ft(o)||(()=>new o);t({provide:o,useFactory:u,deps:re},o),t({provide:Ic,useValue:o,multi:!0},o),t({provide:zn,useValue:()=>C(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;Si(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function Si(e,t){for(let n of e)mc(n)&&(n=n.\u0275providers),Array.isArray(n)?Si(n,t):t(n)}var pf=S({provide:String,useValue:S});function Sc(e){return e!==null&&typeof e=="object"&&pf in e}function hf(e){return!!(e&&e.useExisting)}function gf(e){return!!(e&&e.useFactory)}function zo(e){return typeof e=="function"}var yr=new v(""),Vn={},Aa={},Ao;function Ti(){return Ao===void 0&&(Ao=new Wn),Ao}var xe=class{},Pt=class extends xe{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,qo(t,s=>this.processProvider(s)),this.records.set(wc,Xe(void 0,this)),o.has("environment")&&this.records.set(xe,Xe(void 0,this));let i=this.records.get(yr);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Ic,re,y.Self))}retrieve(t,n){let r=n;return this.get(t,r.optional?gn:je,r)}destroy(){At(this),this._destroyed=!0;let t=E(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(),E(t)}}onDestroy(t){return At(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){At(this);let n=ge(this),r=Y(void 0),o;try{return t()}finally{ge(n),Y(r)}}get(t,n=je,r=y.Default){if(At(this),t.hasOwnProperty(Na))return t[Na](this);r=mr(r);let o,i=ge(this),s=Y(void 0);try{if(!(r&y.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=Cf(t)&&Ii(t);u&&this.injectableDefInScope(u)?c=Xe(Wo(t),Vn):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c,r)}let a=r&y.Self?Ti():this.parent;return n=r&y.Optional&&n===je?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Un]=a[Un]||[]).unshift($(t)),i)throw a;return tf(a,t,"R3InjectorError",this.source)}else throw a}finally{Y(s),ge(i)}}resolveInjectorInitializers(){let t=E(null),n=ge(this),r=Y(void 0),o;try{let i=this.get(zn,re,y.Self);for(let s of i)s()}finally{ge(n),Y(r),E(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push($(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=ne(t);let n=zo(t)?t:ne(t&&t.provide),r=yf(t);if(!zo(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Xe(void 0,Vn,!0),o.factory=()=>Uo(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=E(null);try{return n.value===Aa?vc($(t)):n.value===Vn&&(n.value=Aa,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&Ef(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{E(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=ne(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 Wo(e){let t=Ii(e),n=t!==null?t.factory:Ft(e);if(n!==null)return n;if(e instanceof v)throw new g(204,!1);if(e instanceof Function)return mf(e);throw new g(204,!1)}function mf(e){if(e.length>0)throw new g(204,!1);let n=$d(e);return n!==null?()=>n.factory(e):()=>new e}function yf(e){if(Sc(e))return Xe(void 0,e.useValue);{let t=vf(e);return Xe(t,Vn)}}function vf(e,t,n){let r;if(zo(e)){let o=ne(e);return Ft(o)||Wo(o)}else if(Sc(e))r=()=>ne(e.useValue);else if(gf(e))r=()=>e.useFactory(...Uo(e.deps||[]));else if(hf(e))r=(o,i)=>C(ne(e.useExisting),i!==void 0&&i&y.Optional?y.Optional:void 0);else{let o=ne(e&&(e.useClass||e.provide));if(Df(e))r=()=>new o(...Uo(e.deps));else return Ft(o)||Wo(o)}return r}function At(e){if(e.destroyed)throw new g(205,!1)}function Xe(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Df(e){return!!e.deps}function Ef(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Cf(e){return typeof e=="function"||typeof e=="object"&&e instanceof v}function qo(e,t){for(let n of e)Array.isArray(n)?qo(n,t):n&&mc(n)?qo(n.\u0275providers,t):t(n)}function Tc(e,t){let n;e instanceof Pt?(At(e),n=e):n=new $n(e);let r,o=ge(n),i=Y(void 0);try{return t()}finally{ge(o),Y(i)}}function Nc(){return Dc()!==void 0||bt()!=null}function _f(e){let t=_e.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function wf(e){return typeof e=="function"}var we=0,w=1,m=2,j=3,oe=4,ie=5,qn=6,Zn=7,U=8,ot=9,Ae=10,L=11,Lt=12,Ra=13,lt=14,ye=15,it=16,et=17,st=18,vr=19,xc=20,Te=21,Ro=22,Yn=23,Q=24,Oo=25,ve=26,Ac=1;var He=7,Qn=8,Kn=9,K=10;function Ne(e){return Array.isArray(e)&&typeof e[Ac]=="object"}function Ie(e){return Array.isArray(e)&&e[Ac]===!0}function Rc(e){return(e.flags&4)!==0}function Ht(e){return e.componentOffset>-1}function Ni(e){return(e.flags&1)===1}function We(e){return!!e.template}function Jn(e){return(e[m]&512)!==0}function dt(e){return(e[m]&256)===256}var Zo=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Oc(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function If(e){return e.type.prototype.ngOnChanges&&(e.setInput=Mf),bf}function bf(){let e=kc(this),t=e?.current;if(t){let n=e.previous;if(n===rt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Mf(e,t,n,r,o){let i=this.declaredInputs[r],s=kc(e)||Sf(e,{previous:rt,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new Zo(u&&u.currentValue,n,c===rt),Oc(e,t,o,n)}var Fc="__ngSimpleChanges__";function kc(e){return e[Fc]||null}function Sf(e,t){return e[Fc]=t}var Oa=null;var x=function(e,t=null,n){Oa?.(e,t,n)},Pc="svg",Tf="math";function ue(e){for(;Array.isArray(e);)e=e[we];return e}function Lc(e,t){return ue(t[e])}function be(e,t){return ue(t[e.index])}function Vc(e,t){return e.data[t]}function De(e,t){let n=t[e];return Ne(n)?n:n[we]}function xi(e){return(e[m]&128)===128}function Nf(e){return Ie(e[j])}function Xn(e,t){return t==null?null:e[t]}function jc(e){e[et]=0}function Ai(e){e[m]&1024||(e[m]|=1024,xi(e)&&Dr(e))}function xf(e,t){for(;e>0;)t=t[lt],e--;return t}function $t(e){return!!(e[m]&9216||e[Q]?.dirty)}function Yo(e){e[Ae].changeDetectionScheduler?.notify(8),e[m]&64&&(e[m]|=1024),$t(e)&&Dr(e)}function Dr(e){e[Ae].changeDetectionScheduler?.notify(0);let t=$e(e);for(;t!==null&&!(t[m]&8192||(t[m]|=8192,!xi(t)));)t=$e(t)}function Bc(e,t){if(dt(e))throw new g(911,!1);e[Te]===null&&(e[Te]=[]),e[Te].push(t)}function Af(e,t){if(e[Te]===null)return;let n=e[Te].indexOf(t);n!==-1&&e[Te].splice(n,1)}function $e(e){let t=e[j];return Ie(t)?t[j]:t}function Hc(e){return e[Zn]??=[]}function $c(e){return e.cleanup??=[]}var D={lFrame:Kc(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Qo=!1;function Rf(){return D.lFrame.elementDepthCount}function Of(){D.lFrame.elementDepthCount++}function Ff(){D.lFrame.elementDepthCount--}function Uc(){return D.bindingsEnabled}function kf(){return D.skipHydrationRootTNode!==null}function Pf(e){return D.skipHydrationRootTNode===e}function Lf(){D.skipHydrationRootTNode=null}function F(){return D.lFrame.lView}function Oe(){return D.lFrame.tView}function Er(e){return D.lFrame.contextLView=e,e[U]}function Cr(e){return D.lFrame.contextLView=null,e}function Me(){let e=Gc();for(;e!==null&&e.type===64;)e=e.parent;return e}function Gc(){return D.lFrame.currentTNode}function Vf(){let e=D.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Ut(e,t){let n=D.lFrame;n.currentTNode=e,n.isParent=t}function zc(){return D.lFrame.isParent}function jf(){D.lFrame.isParent=!1}function Wc(){return Qo}function Fa(e){let t=Qo;return Qo=e,t}function Bf(e){return D.lFrame.bindingIndex=e}function qc(){return D.lFrame.bindingIndex++}function Hf(e){let t=D.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function $f(){return D.lFrame.inI18n}function Uf(e,t){let n=D.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ko(t)}function Gf(){return D.lFrame.currentDirectiveIndex}function Ko(e){D.lFrame.currentDirectiveIndex=e}function zf(e){let t=D.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Zc(e){D.lFrame.currentQueryIndex=e}function Wf(e){let t=e[w];return t.type===2?t.declTNode:t.type===1?e[ie]:null}function Yc(e,t,n){if(n&y.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&y.Host);)if(o=Wf(i),o===null||(i=i[lt],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=D.lFrame=Qc();return r.currentTNode=t,r.lView=e,!0}function Ri(e){let t=Qc(),n=e[w];D.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Qc(){let e=D.lFrame,t=e===null?null:e.child;return t===null?Kc(e):t}function Kc(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 Jc(){let e=D.lFrame;return D.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Xc=Jc;function Oi(){let e=Jc();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 qf(e){return(D.lFrame.contextLView=xf(e,D.lFrame.contextLView))[U]}function ft(){return D.lFrame.selectedIndex}function Ue(e){D.lFrame.selectedIndex=e}function Zf(){let e=D.lFrame;return Vc(e.tView,e.selectedIndex)}function eu(){D.lFrame.currentNamespace=Pc}function tu(){Yf()}function Yf(){D.lFrame.currentNamespace=null}function Qf(){return D.lFrame.currentNamespace}var nu=!0;function Fi(){return nu}function ki(e){nu=e}function Kf(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=If(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 ru(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:l}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),l!=null&&(e.destroyHooks??=[]).push(n,l)}}function jn(e,t,n){ou(e,t,3,n)}function Bn(e,t,n,r){(e[m]&3)===n&&ou(e,t,n,r)}function Fo(e,t){let n=e[m];(n&3)===t&&(n&=16383,n+=1,e[m]=n)}function ou(e,t,n,r){let o=r!==void 0?e[et]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[et]+=65536),(a<i||i==-1)&&(Jf(e,n,t,c),e[et]=(e[et]&4294901760)+c+2),c++}function ka(e,t){x(4,e,t);let n=E(null);try{t.call(e)}finally{E(n),x(5,e,t)}}function Jf(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[m]>>14<e[et]>>16&&(e[m]&3)===t&&(e[m]+=16384,ka(a,i)):ka(a,i)}var nt=-1,Vt=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function Xf(e){return(e.flags&8)!==0}function ep(e){return(e.flags&16)!==0}function tp(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];rp(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function np(e){return e===3||e===4||e===6}function rp(e){return e.charCodeAt(0)===64}function Pi(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?Pa(e,n,o,null,t[++r]):Pa(e,n,o,null,null))}}return e}function Pa(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function iu(e){return e!==nt}function er(e){return e&32767}function op(e){return e>>16}function tr(e,t){let n=op(e),r=t;for(;n>0;)r=r[lt],n--;return r}var Jo=!0;function La(e){let t=Jo;return Jo=e,t}var ip=256,su=ip-1,au=5,sp=0,ce={};function ap(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ot)&&(r=n[Ot]),r==null&&(r=n[Ot]=sp++);let o=r&su,i=1<<o;t.data[e+(o>>au)]|=i}function cu(e,t){let n=uu(e,t);if(n!==-1)return n;let r=t[w];r.firstCreatePass&&(e.injectorIndex=t.length,ko(r.data,e),ko(t,null),ko(r.blueprint,null));let o=Li(e,t),i=e.injectorIndex;if(iu(o)){let s=er(o),a=tr(o,t),c=a[w].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function ko(e,t){e.push(0,0,0,0,0,0,0,0,t)}function uu(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Li(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=hu(o),r===null)return nt;if(n++,o=o[lt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return nt}function cp(e,t,n){ap(e,t,n)}function lu(e,t,n){if(n&y.Optional||e!==void 0)return e;bi(t,"NodeInjector")}function du(e,t,n,r){if(n&y.Optional&&r===void 0&&(r=null),(n&(y.Self|y.Host))===0){let o=e[ot],i=Y(void 0);try{return o?o.get(t,r,n&y.Optional):Ec(t,r,n&y.Optional)}finally{Y(i)}}return lu(r,t,n)}function fu(e,t,n,r=y.Default,o){if(e!==null){if(t[m]&2048&&!(r&y.Self)){let s=pp(e,t,n,r,ce);if(s!==ce)return s}let i=pu(e,t,n,r,ce);if(i!==ce)return i}return du(t,n,r,o)}function pu(e,t,n,r,o){let i=dp(n);if(typeof i=="function"){if(!Yc(t,e,r))return r&y.Host?lu(o,n,r):du(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&y.Optional))bi(n);else return s}finally{Xc()}}else if(typeof i=="number"){let s=null,a=uu(e,t),c=nt,u=r&y.Host?t[ye][ie]:null;for((a===-1||r&y.SkipSelf)&&(c=a===-1?Li(e,t):t[a+8],c===nt||!ja(r,!1)?a=-1:(s=t[w],a=er(c),t=tr(c,t)));a!==-1;){let l=t[w];if(Va(i,a,l.data)){let f=up(a,t,n,s,r,u);if(f!==ce)return f}c=t[a+8],c!==nt&&ja(r,t[w].data[a+8]===u)&&Va(i,a,t)?(s=l,a=er(c),t=tr(c,t)):a=-1}}return o}function up(e,t,n,r,o,i){let s=t[w],a=s.data[e+8],c=r==null?Ht(a)&&Jo:r!=s&&(a.type&3)!==0,u=o&y.Host&&i===a,l=lp(a,s,n,c,u);return l!==null?Xo(t,s,l,a,o):ce}function lp(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,f=r?a:a+l,p=o?a+l:u;for(let d=f;d<p;d++){let h=s[d];if(d<c&&n===h||d>=c&&h.type===n)return d}if(o){let d=s[c];if(d&&We(d)&&d.type===n)return c}return null}function Xo(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Vt){let a=i;a.resolving&&vc(Zd(s[n]));let c=La(a.canSeeViewProviders);a.resolving=!0;let u,l=a.injectImpl?Y(a.injectImpl):null,f=Yc(e,r,y.Default);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&Kf(n,s[n],t)}finally{l!==null&&Y(l),La(c),a.resolving=!1,Xc()}}return i}function dp(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Ot)?e[Ot]:void 0;return typeof t=="number"?t>=0?t&su:fp:t}function Va(e,t,n){let r=1<<e;return!!(n[t+(e>>au)]&r)}function ja(e,t){return!(e&y.Self)&&!(e&y.Host&&t)}var Be=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return fu(this._tNode,this._lView,t,mr(r),n)}};function fp(){return new Be(Me(),F())}function pp(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[m]&2048&&!Jn(s);){let a=pu(i,s,n,r|y.Self,ce);if(a!==ce)return a;let c=i.parent;if(!c){let u=s[xc];if(u){let l=u.get(n,ce,r);if(l!==ce)return l}c=hu(s),s=s[lt]}i=c}return o}function hu(e){let t=e[w],n=t.type;return n===2?t.declTNode:n===1?e[ie]:null}function Ba(e,t=null,n=null,r){let o=gu(e,t,n,r);return o.resolveInjectorInitializers(),o}function gu(e,t=null,n=null,r,o=new Set){let i=[n||re,ff(e)];return r=r||(typeof e=="object"?void 0:$(e)),new Pt(i,t||Ti(),r||null,o)}var J=class e{static THROW_IF_NOT_FOUND=je;static NULL=new Wn;static create(t,n){if(Array.isArray(t))return Ba({name:""},n,t,"");{let r=t.name??"";return Ba({name:r},t.parent,t.providers,r)}}static \u0275prov=T({token:e,providedIn:"any",factory:()=>C(wc)});static __NG_ELEMENT_ID__=-1};var hp=new v("");hp.__NG_ELEMENT_ID__=e=>{let t=Me();if(t===null)throw new g(204,!1);if(t.type&2)return t.value;if(e&y.Optional)return null;throw new g(204,!1)};var mu=!1,Vi=(()=>{class e{static __NG_ELEMENT_ID__=gp;static __NG_ENV_ID__=n=>n}return e})(),ei=class extends Vi{_lView;constructor(t){super(),this._lView=t}onDestroy(t){let n=this._lView;return dt(n)?(t(),()=>{}):(Bc(n,t),()=>Af(n,t))}};function gp(){return new ei(F())}var Ge=class{},yu=new v("",{providedIn:"root",factory:()=>!1});var vu=new v(""),Du=new v(""),_r=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new St(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=T({token:e,providedIn:"root",factory:()=>new e})}return e})();var ti=class extends ee{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Nc()&&(this.destroyRef=I(Vi,{optional:!0})??void 0,this.pendingTasks=I(_r,{optional:!0})??void 0)}emit(t){let n=E(null);try{super.next(t)}finally{E(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof V&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},H=ti;function nr(...e){}function Eu(e){let t,n;function r(){e=nr;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Ha(e){return queueMicrotask(()=>e()),()=>{e=nr}}var ji="isAngularZone",rr=ji+"_ID",mp=0,R=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new H(!1);onMicrotaskEmpty=new H(!1);onStable=new H(!1);onError=new H(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=mu}=t;if(typeof Zone>"u")throw new g(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Dp(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(ji)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new g(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new g(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,yp,nr,nr);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)}},yp={};function Bi(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 vp(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Eu(()=>{e.callbackScheduled=!1,ni(e),e.isCheckStableRunning=!0,Bi(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),ni(e)}function Dp(e){let t=()=>{vp(e)},n=mp++;e._inner=e._inner.fork({name:"angular",properties:{[ji]:!0,[rr]:n,[rr+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Ep(c))return r.invokeTask(i,s,a,c);try{return $a(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Ua(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return $a(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Cp(c)&&t(),Ua(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,ni(e),Bi(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function ni(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function $a(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ua(e){e._nesting--,Bi(e)}var or=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new H;onMicrotaskEmpty=new H;onStable=new H;onError=new H;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 Ep(e){return Cu(e,"__ignore_ng_zone__")}function Cp(e){return Cu(e,"__scheduler_tick__")}function Cu(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}function _p(e="zone.js",t){return e==="noop"?new or:e==="zone.js"?new R(t):e}var Ee=class{_console=console;handleError(t){this._console.error("ERROR",t)}},wp=new v("",{providedIn:"root",factory:()=>{let e=I(R),t=I(Ee);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Ip(){return wr(Me(),F())}function wr(e,t){return new pt(be(e,t))}var pt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Ip}return e})();function Ir(e,t){let n=fo(e,t?.equal),r=n[se];return n.set=o=>hn(r,o),n.update=o=>po(r,o),n.asReadonly=bp.bind(n),n}function bp(){let e=this[se];if(e.readonlyFn===void 0){let t=()=>this();t[se]=e,e.readonlyFn=t}return e.readonlyFn}function _u(e){return(e.flags&128)===128}var wu=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(wu||{}),Iu=new Map,Mp=0;function Sp(){return Mp++}function Tp(e){Iu.set(e[vr],e)}function ri(e){Iu.delete(e[vr])}var Ga="__ngContext__";function Gt(e,t){Ne(t)?(e[Ga]=t[vr],Tp(t)):e[Ga]=t}function bu(e){return Su(e[Lt])}function Mu(e){return Su(e[oe])}function Su(e){for(;e!==null&&!Ie(e);)e=e[oe];return e}var oi;function Tu(e){oi=e}function Np(){if(oi!==void 0)return oi;if(typeof document<"u")return document;throw new g(210,!1)}var Hi=new v("",{providedIn:"root",factory:()=>xp}),xp="ng",$i=new v(""),zt=new v("",{providedIn:"platform",factory:()=>"unknown"});var Ui=new v("",{providedIn:"root",factory:()=>Np().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Ap="h",Rp="b";var Nu=!1,Op=new v("",{providedIn:"root",factory:()=>Nu});var xu=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(xu||{}),br=new v(""),za=new Set;function Fp(e){za.has(e)||(za.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var kp=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=T({token:e,providedIn:"root",factory:()=>new e})}return e})();var Pp=(e,t,n,r)=>{};function Lp(e,t,n,r){Pp(e,t,n,r)}var Vp=()=>null;function Au(e,t,n=!1){return Vp(e,t,n)}function Ru(e,t){let n=e.contentQueries;if(n!==null){let r=E(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];Zc(i),a.contentQueries(2,t[s],s)}}}finally{E(r)}}}function ii(e,t,n){Zc(0);let r=E(null);try{t(e,n)}finally{E(r)}}function Ou(e,t,n){if(Rc(t)){let r=E(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{E(r)}}}var le=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(le||{});var si=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Pd})`}};function jp(e){return e instanceof si?e.changingThisBreaksApplicationSecurity:e}function Bp(e,t){return e.createText(t)}function Hp(e,t,n){e.setValue(t,n)}function Fu(e,t,n){return e.createElement(t,n)}function ir(e,t,n,r,o){e.insertBefore(t,n,r,o)}function ku(e,t,n){e.appendChild(t,n)}function Wa(e,t,n,r,o){r!==null?ir(e,t,n,r,o):ku(e,t,n)}function $p(e,t,n){e.removeChild(null,t,n)}function Up(e,t,n){e.setAttribute(t,"style",n)}function Gp(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Pu(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&tp(e,t,r),o!==null&&Gp(e,t,o),i!==null&&Up(e,t,i)}function zp(e){return e instanceof Function?e():e}function Wp(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var Lu="ng-template";function qp(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&Wp(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(Gi(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function Gi(e){return e.type===4&&e.value!==Lu}function Zp(e,t,n){let r=e.type===4&&!n?Lu:e.value;return t===r}function Yp(e,t,n){let r=4,o=e.attrs,i=o!==null?Jp(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!te(r)&&!te(c))return!1;if(s&&te(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!Zp(e,c,n)||c===""&&t.length===1){if(te(r))return!1;s=!0}}else if(r&8){if(o===null||!qp(e,o,c,n)){if(te(r))return!1;s=!0}}else{let u=t[++a],l=Qp(c,o,Gi(e),n);if(l===-1){if(te(r))return!1;s=!0;continue}if(u!==""){let f;if(l>i?f="":f=o[l+1].toLowerCase(),r&2&&u!==f){if(te(r))return!1;s=!0}}}}return te(r)||s}function te(e){return(e&1)===0}function Qp(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return Xp(t,e)}function Kp(e,t,n=!1){for(let r=0;r<t.length;r++)if(Yp(e,t[r],n))return!0;return!1}function Jp(e){for(let t=0;t<e.length;t++){let n=e[t];if(np(n))return t}return e.length}function Xp(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function qa(e,t){return e?":not("+t.trim()+")":t}function eh(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!te(s)&&(t+=qa(i,o),o=""),r=s,i=i||!te(r);n++}return o!==""&&(t+=qa(i,o)),t}function th(e){return e.map(eh).join(",")}function nh(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!te(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var ht={};function zi(e,t,n,r,o,i,s,a,c,u,l){let f=ve+r,p=f+o,d=rh(f,p),h=typeof u=="function"?u():u;return d[w]={type:e,blueprint:d,template:n,queries:null,viewQuery:a,declTNode:t,data:d.slice().fill(null,f),bindingStartIndex:f,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:h,incompleteFirstPass:!1,ssrId:l}}function rh(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:ht);return n}function oh(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=zi(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Wi(e,t,n,r,o,i,s,a,c,u,l){let f=t.blueprint.slice();return f[we]=o,f[m]=r|4|128|8|64|1024,(u!==null||e&&e[m]&2048)&&(f[m]|=2048),jc(f),f[j]=f[lt]=e,f[U]=n,f[Ae]=s||e&&e[Ae],f[L]=a||e&&e[L],f[ot]=c||e&&e[ot]||null,f[ie]=i,f[vr]=Sp(),f[qn]=l,f[xc]=u,f[ye]=t.type==2?e[ye]:f,f}function ih(e,t,n){let r=be(t,e),o=oh(n),i=e[Ae].rendererFactory,s=qi(e,Wi(e,o,null,Vu(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function Vu(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function ju(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function qi(e,t){return e[Lt]?e[Ra][oe]=t:e[Lt]=t,e[Ra]=t,t}function fe(e=1){Bu(Oe(),F(),ft()+e,!1)}function Bu(e,t,n,r){if(!r)if((t[m]&3)===3){let i=e.preOrderCheckHooks;i!==null&&jn(t,i,n)}else{let i=e.preOrderHooks;i!==null&&Bn(t,i,0,n)}Ue(n)}var Mr=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Mr||{});function ai(e,t,n,r){let o=E(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Mr.SignalBased)!==0&&(c=t[i][se]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):Oc(t,c,i,r)}finally{E(o)}}function Hu(e,t,n,r,o){let i=ft(),s=r&2;try{Ue(-1),s&&t.length>ve&&Bu(e,t,ve,!1),x(s?2:0,o),n(r,o)}finally{Ue(i),x(s?3:1,o)}}function Zi(e,t,n){fh(e,t,n),(n.flags&64)===64&&ph(e,t,n)}function $u(e,t,n=be){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function sh(e,t,n,r){let i=r.get(Op,Nu)||n===le.ShadowDom,s=e.selectRootElement(t,i);return ah(s),s}function ah(e){ch(e)}var ch=()=>null;function uh(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function lh(e,t,n,r,o,i,s,a){if(!a&&Yi(t,e,n,r,o)){Ht(t)&&dh(n,t.index);return}if(t.type&3){let c=be(t,n);r=uh(r),o=s!=null?s(o,t.value||"",r):o,i.setProperty(c,r,o)}else t.type&12}function dh(e,t){let n=De(t,e);n[m]&16||(n[m]|=64)}function fh(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Ht(n)&&ih(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||cu(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Xo(t,e,s,n);if(Gt(c,t),i!==null&&gh(t,s-r,c,a,n,i),We(a)){let u=De(n.index,t);u[U]=Xo(t,e,s,n)}}}function ph(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Gf();try{Ue(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];Ko(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&hh(c,u)}}finally{Ue(-1),Ko(s)}}function hh(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function Uu(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];Kp(t,i.selectors,!1)&&(r??=[],We(i)?r.unshift(i):r.push(i))}return r}function gh(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],u=s[a+1];ai(r,n,c,u)}}function mh(e,t){let n=e[ot],r=n?n.get(Ee,null):null;r&&r.handleError(t)}function Yi(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let u=s[c],l=s[c+1],f=t.data[u];ai(f,n[u],l,o),a=!0}if(i)for(let c of i){let u=n[c],l=t.data[c];ai(l,u,r,o),a=!0}return a}function yh(e,t){let n=De(t,e),r=n[w];vh(r,n);let o=n[we];o!==null&&n[qn]===null&&(n[qn]=Au(o,n[ot])),x(18),Qi(r,n,n[U]),x(19,n[U])}function vh(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Qi(e,t,n){Ri(t);try{let r=e.viewQuery;r!==null&&ii(1,r,n);let o=e.template;o!==null&&Hu(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[st]?.finishViewCreation(e),e.staticContentQueries&&Ru(e,t),e.staticViewQueries&&ii(2,e.viewQuery,n);let i=e.components;i!==null&&Dh(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[m]&=-5,Oi()}}function Dh(e,t){for(let n=0;n<t.length;n++)yh(e,t[n])}function Eh(e,t,n,r){let o=E(null);try{let i=t.tView,a=e[m]&4096?4096:16,c=Wi(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[it]=u;let l=e[st];return l!==null&&(c[st]=l.createEmbeddedView(i)),Qi(i,c,n),c}finally{E(o)}}function Za(e,t){return!t||t.firstChild===null||_u(e)}var Ch;function Ki(e,t){return Ch(e,t)}var Ce=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Ce||{});function Gu(e){return(e.flags&32)===32}function tt(e,t,n,r,o){if(r!=null){let i,s=!1;Ie(r)?i=r:Ne(r)&&(s=!0,r=r[we]);let a=ue(r);e===0&&n!==null?o==null?ku(t,n,a):ir(t,n,a,o||null,!0):e===1&&n!==null?ir(t,n,a,o||null,!0):e===2?$p(t,a,s):e===3&&t.destroyNode(a),i!=null&&Oh(t,e,i,n,o)}}function _h(e,t){zu(e,t),t[we]=null,t[ie]=null}function wh(e,t,n,r,o,i){r[we]=o,r[ie]=t,Sr(e,r,n,1,o,i)}function zu(e,t){t[Ae].changeDetectionScheduler?.notify(9),Sr(e,t,t[L],2,null,null)}function Ih(e){let t=e[Lt];if(!t)return Po(e[w],e);for(;t;){let n=null;if(Ne(t))n=t[Lt];else{let r=t[K];r&&(n=r)}if(!n){for(;t&&!t[oe]&&t!==e;)Ne(t)&&Po(t[w],t),t=t[j];t===null&&(t=e),Ne(t)&&Po(t[w],t),n=t&&t[oe]}t=n}}function Ji(e,t){let n=e[Kn],r=n.indexOf(t);n.splice(r,1)}function Wu(e,t){if(dt(t))return;let n=t[L];n.destroyNode&&Sr(e,t,n,3,null,null),Ih(t)}function Po(e,t){if(dt(t))return;let n=E(null);try{t[m]&=-129,t[m]|=256,t[Q]&&co(t[Q]),Mh(e,t),bh(e,t),t[w].type===1&&t[L].destroy();let r=t[it];if(r!==null&&Ie(t[j])){r!==t[j]&&Ji(r,t);let o=t[st];o!==null&&o.detachView(e)}ri(t)}finally{E(n)}}function bh(e,t){let n=e.cleanup,r=t[Zn];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[Zn]=null);let o=t[Te];if(o!==null){t[Te]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[Yn];if(i!==null){t[Yn]=null;for(let s of i)s.destroy()}}function Mh(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof Vt)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];x(4,a,c);try{c.call(a)}finally{x(5,a,c)}}else{x(4,o,i);try{i.call(o)}finally{x(5,o,i)}}}}}function Sh(e,t,n){return Th(e,t.parent,n)}function Th(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[we];if(Ht(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===le.None||o===le.Emulated)return null}return be(r,n)}function Nh(e,t,n){return Ah(e,t,n)}function xh(e,t,n){return e.type&40?be(e,n):null}var Ah=xh,Ya;function Xi(e,t,n,r){let o=Sh(e,r,t),i=t[L],s=r.parent||t[ie],a=Nh(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Wa(i,o,n[c],a,!1);else Wa(i,o,n,a,!1);Ya!==void 0&&Ya(i,r,t,n,o)}function Rt(e,t){if(t!==null){let n=t.type;if(n&3)return be(t,e);if(n&4)return ci(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Rt(e,r);{let o=e[t.index];return Ie(o)?ci(-1,o):ue(o)}}else{if(n&128)return Rt(e,t.next);if(n&32)return Ki(t,e)()||ue(e[t.index]);{let r=qu(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=$e(e[ye]);return Rt(o,r)}else return Rt(e,t.next)}}}return null}function qu(e,t){if(t!==null){let r=e[ye][ie],o=t.projection;return r.projection[o]}return null}function ci(e,t){let n=K+e+1;if(n<t.length){let r=t[n],o=r[w].firstChild;if(o!==null)return Rt(r,o)}return t[He]}function es(e,t,n,r,o,i,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],c=n.type;if(s&&t===0&&(a&&Gt(ue(a),r),n.flags|=2),!Gu(n))if(c&8)es(e,t,n.child,r,o,i,!1),tt(t,e,o,a,i);else if(c&32){let u=Ki(n,r),l;for(;l=u();)tt(t,e,o,l,i);tt(t,e,o,a,i)}else c&16?Rh(e,t,r,n,o,i):tt(t,e,o,a,i);n=s?n.projectionNext:n.next}}function Sr(e,t,n,r,o,i){es(n,r,e.firstChild,t,o,i,!1)}function Rh(e,t,n,r,o,i){let s=n[ye],c=s[ie].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];tt(t,e,o,l,i)}else{let u=c,l=s[j];_u(r)&&(u.flags|=128),es(e,t,u,l,o,i,!0)}}function Oh(e,t,n,r,o){let i=n[He],s=ue(n);i!==s&&tt(t,e,r,i,o);for(let a=K;a<n.length;a++){let c=n[a];Sr(c[w],c,e,t,r,i)}}function Fh(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:Ce.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Ce.Important),e.setStyle(n,r,o,i))}}function sr(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(ue(i)),Ie(i)&&kh(i,r);let s=n.type;if(s&8)sr(e,t,n.child,r);else if(s&32){let a=Ki(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=qu(t,n);if(Array.isArray(a))r.push(...a);else{let c=$e(t[ye]);sr(c[w],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function kh(e,t){for(let n=K;n<e.length;n++){let r=e[n],o=r[w].firstChild;o!==null&&sr(r[w],r,o,t)}e[He]!==e[we]&&t.push(e[He])}function Zu(e){if(e[Oo]!==null){for(let t of e[Oo])t.impl.addSequence(t);e[Oo].length=0}}var Yu=[];function Ph(e){return e[Q]??Lh(e)}function Lh(e){let t=Yu.pop()??Object.create(jh);return t.lView=e,t}function Vh(e){e.lView[Q]!==e&&(e.lView=null,Yu.push(e))}var jh=N(M({},It),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Dr(e.lView)},consumerOnSignalRead(){this.lView[Q]=this}});function Bh(e){let t=e[Q]??Object.create(Hh);return t.lView=e,t}var Hh=N(M({},It),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=$e(e.lView);for(;t&&!Qu(t[w]);)t=$e(t);t&&Ai(t)},consumerOnSignalRead(){this.lView[Q]=this}});function Qu(e){return e.type!==2}function Ku(e){if(e[Yn]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Yn])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[m]&8192)}}var $h=100;function Ju(e,t=!0,n=0){let o=e[Ae].rendererFactory,i=!1;i||o.begin?.();try{Uh(e,n)}catch(s){throw t&&mh(e,s),s}finally{i||o.end?.()}}function Uh(e,t){let n=Wc();try{Fa(!0),ui(e,t);let r=0;for(;$t(e);){if(r===$h)throw new g(103,!1);r++,ui(e,1)}}finally{Fa(n)}}function Gh(e,t,n,r){if(dt(t))return;let o=t[m],i=!1,s=!1;Ri(t);let a=!0,c=null,u=null;i||(Qu(e)?(u=Ph(t),c=dn(u)):no()===null?(a=!1,u=Bh(t),c=dn(u)):t[Q]&&(co(t[Q]),t[Q]=null));try{jc(t),Bf(e.bindingStartIndex),n!==null&&Hu(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let d=e.preOrderCheckHooks;d!==null&&jn(t,d,null)}else{let d=e.preOrderHooks;d!==null&&Bn(t,d,0,null),Fo(t,0)}if(s||zh(t),Ku(t),Xu(t,0),e.contentQueries!==null&&Ru(e,t),!i)if(l){let d=e.contentCheckHooks;d!==null&&jn(t,d)}else{let d=e.contentHooks;d!==null&&Bn(t,d,1),Fo(t,1)}qh(e,t);let f=e.components;f!==null&&tl(t,f,0);let p=e.viewQuery;if(p!==null&&ii(2,p,r),!i)if(l){let d=e.viewCheckHooks;d!==null&&jn(t,d)}else{let d=e.viewHooks;d!==null&&Bn(t,d,2),Fo(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ro]){for(let d of t[Ro])d();t[Ro]=null}i||(Zu(t),t[m]&=-73)}catch(l){throw i||Dr(t),l}finally{u!==null&&(so(u,c),a&&Vh(u)),Oi()}}function Xu(e,t){for(let n=bu(e);n!==null;n=Mu(n))for(let r=K;r<n.length;r++){let o=n[r];el(o,t)}}function zh(e){for(let t=bu(e);t!==null;t=Mu(t)){if(!(t[m]&2))continue;let n=t[Kn];for(let r=0;r<n.length;r++){let o=n[r];Ai(o)}}}function Wh(e,t,n){x(18);let r=De(t,e);el(r,n),x(19,r[U])}function el(e,t){xi(e)&&ui(e,t)}function ui(e,t){let r=e[w],o=e[m],i=e[Q],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&ao(i)),s||=!1,i&&(i.dirty=!1),e[m]&=-9217,s)Gh(r,e,r.template,e[U]);else if(o&8192){Ku(e),Xu(e,1);let a=r.components;a!==null&&tl(e,a,1),Zu(e)}}function tl(e,t,n){for(let r=0;r<t.length;r++)Wh(e,t[r],n)}function qh(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)Ue(~o);else{let i=o,s=n[++r],a=n[++r];Uf(s,i);let c=t[i];x(24,c),a(2,c),x(25,c)}}}finally{Ue(-1)}}function ts(e,t){let n=Wc()?64:1088;for(e[Ae].changeDetectionScheduler?.notify(t);e;){e[m]|=n;let r=$e(e);if(Jn(e)&&!r)return e;e=r}return null}function nl(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Zh(e,t,n,r=!0){let o=t[w];if(Yh(o,t,e,n),r){let s=ci(n,e),a=t[L],c=a.parentNode(e[He]);c!==null&&wh(o,e[ie],a,t,c,s)}let i=t[qn];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function li(e,t){if(e.length<=K)return;let n=K+t,r=e[n];if(r){let o=r[it];o!==null&&o!==e&&Ji(o,r),t>0&&(e[n-1][oe]=r[oe]);let i=Gn(e,K+t);_h(r[w],r);let s=i[st];s!==null&&s.detachView(i[w]),r[j]=null,r[oe]=null,r[m]&=-129}return r}function Yh(e,t,n,r){let o=K+r,i=n.length;r>0&&(n[o-1][oe]=t),r<i-K?(t[oe]=n[o],_c(n,K+r,t)):(n.push(t),t[oe]=null),t[j]=n;let s=t[it];s!==null&&n!==s&&rl(s,t);let a=t[st];a!==null&&a.insertView(e),Yo(t),t[m]|=128}function rl(e,t){let n=e[Kn],r=t[j];if(Ne(r))e[m]|=2;else{let o=r[j][ye];t[ye]!==o&&(e[m]|=2)}n===null?e[Kn]=[t]:n.push(t)}var ns=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let t=this._lView,n=t[w];return sr(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r}get context(){return this._lView[U]}set context(t){this._lView[U]=t}get destroyed(){return dt(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[j];if(Ie(t)){let n=t[Qn],r=n?n.indexOf(this):-1;r>-1&&(li(t,r),Gn(n,r))}this._attachedToViewContainer=!1}Wu(this._lView[w],this._lView)}onDestroy(t){Bc(this._lView,t)}markForCheck(){ts(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[m]&=-129}reattach(){Yo(this._lView),this._lView[m]|=128}detectChanges(){this._lView[m]|=1024,Ju(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new g(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Jn(this._lView),n=this._lView[it];n!==null&&!t&&Ji(n,this._lView),zu(this._lView[w],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new g(902,!1);this._appRef=t;let n=Jn(this._lView),r=this._lView[it];r!==null&&!n&&rl(r,this._lView),Yo(this._lView)}};function ol(e){return $t(e._lView)||!!(e._lView[m]&64)}function il(e){Ai(e._cdRefInjectingView||e._lView)}var Tr=(()=>{class e{static __NG_ELEMENT_ID__=Jh}return e})(),Qh=Tr,Kh=class extends Qh{_declarationLView;_declarationTContainer;elementRef;constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=Eh(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new ns(o)}};function Jh(){return Xh(Me(),F())}function Xh(e,t){return e.type&4?new Kh(t,e,wr(e,t)):null}function rs(e,t,n,r,o){let i=e.data[t];if(i===null)i=eg(e,t,n,r,o),$f()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Vf();i.injectorIndex=s===null?-1:s.injectorIndex}return Ut(i,!0),i}function eg(e,t,n,r,o){let i=Gc(),s=zc(),a=s?i:i&&i.parent,c=e.data[t]=ng(e,a,n,t,r,o);return tg(e,c,i,s),c}function tg(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function ng(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return kf()&&(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:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex: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}}var GC=new RegExp(`^(\\d+)*(${Rp}|${Ap})*(.*)`);var rg=()=>null;function Qa(e,t){return rg(e,t)}var og=class{},sl=class{},di=class{resolveComponentFactory(t){throw Error(`No component factory found for ${$(t)}.`)}},qe=class{static NULL=new di},at=class{},os=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>ig()}return e})();function ig(){let e=F(),t=Me(),n=De(t.index,e);return(Ne(n)?n:e)[L]}var sg=(()=>{class e{static \u0275prov=T({token:e,providedIn:"root",factory:()=>null})}return e})();var Lo={},fi=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=mr(r);let o=this.injector.get(t,Lo,r);return o!==Lo||n===Lo?o:this.parentInjector.get(t,n,r)}};function Ka(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=Ia(o,a);else if(i==2){let c=a,u=t[++s];r=Ia(r,c+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function W(e,t=y.Default){let n=F();if(n===null)return C(e,t);let r=Me();return fu(r,n,ne(e),t)}function al(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a,c=null,u=null,l=cg(s);l===null?a=s:[a,c,u]=l,dg(e,t,n,a,i,c,u)}i!==null&&r!==null&&ag(n,r,i)}function ag(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new g(-301,!1);r.push(t[o],i)}}function cg(e){let t=null,n=!1;for(let s=0;s<e.length;s++){let a=e[s];if(s===0&&We(a)&&(t=a),a.findHostDirectiveDefs!==null){n=!0;break}}if(!n)return null;let r=null,o=null,i=null;for(let s of e)s.findHostDirectiveDefs!==null&&(r??=[],o??=new Map,i??=new Map,ug(s,r,i,o)),s===t&&(r??=[],r.push(s));return r!==null?(r.push(...t===null?e:e.slice(1)),[r,o,i]):null}function ug(e,t,n,r){let o=t.length;e.findHostDirectiveDefs(e,t,r),n.set(e,[o,t.length-1])}function lg(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function dg(e,t,n,r,o,i,s){let a=r.length,c=!1;for(let p=0;p<a;p++){let d=r[p];!c&&We(d)&&(c=!0,lg(e,n,p)),cp(cu(n,t),e,d.type)}yg(n,e.data.length,a);for(let p=0;p<a;p++){let d=r[p];d.providersResolver&&d.providersResolver(d)}let u=!1,l=!1,f=ju(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let d=r[p];if(n.mergedAttrs=Pi(n.mergedAttrs,d.hostAttrs),pg(e,n,t,f,d),mg(f,d,o),s!==null&&s.has(d)){let[b,B]=s.get(d);n.directiveToIndex.set(d.type,[f,b+n.directiveStart,B+n.directiveStart])}else(i===null||!i.has(d))&&n.directiveToIndex.set(d.type,f);d.contentQueries!==null&&(n.flags|=4),(d.hostBindings!==null||d.hostAttrs!==null||d.hostVars!==0)&&(n.flags|=64);let h=d.type.prototype;!u&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=!0),f++}fg(e,n,i)}function fg(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Ja(0,t,o,r),Ja(1,t,o,r),ec(t,r,!1);else{let i=n.get(o);Xa(0,t,i,r),Xa(1,t,i,r),ec(t,r,!0)}}}function Ja(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),cl(t,i)}}function Xa(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),cl(t,s)}}function cl(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function ec(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Gi(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let u=o[c];for(let l of u)if(l===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let u=i[c];for(let l=0;l<u.length;l+=2)if(u[l]===t){s??=[],s.push(u[l+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function pg(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Ft(o.type,!0)),s=new Vt(i,We(o),W);e.blueprint[r]=s,n[r]=s,hg(e,t,r,ju(e,n,o.hostVars,ht),o)}function hg(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;gg(s)!=a&&s.push(a),s.push(n,r,i)}}function gg(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function mg(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;We(t)&&(n[""]=e)}}function yg(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function ul(e,t,n,r,o,i,s,a){let c=t.consts,u=Xn(c,s),l=rs(t,e,2,r,u);return i&&al(t,n,l,Xn(c,a),o),l.mergedAttrs=Pi(l.mergedAttrs,l.attrs),l.attrs!==null&&Ka(l,l.attrs,!1),l.mergedAttrs!==null&&Ka(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}function ll(e,t){ru(e,t),Rc(t)&&e.queries.elementEnd(t)}var ar=class extends qe{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=kt(t);return new cr(n,this.ngModule)}};function vg(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Mr.SignalBased)!==0};return o&&(i.transform=o),i})}function Dg(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function Eg(e,t,n){let r=t instanceof xe?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new fi(n,r):n}function Cg(e){let t=e.get(at,null);if(t===null)throw new g(407,!1);let n=e.get(sg,null),r=e.get(Ge,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r}}function _g(e,t){let n=(e.selectors[0][0]||"div").toLowerCase();return Fu(t,n,n==="svg"?Pc:n==="math"?Tf:null)}var cr=class extends sl{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=vg(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=Dg(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=th(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o){x(22);let i=E(null);try{let s=this.componentDef,a=r?["ng-version","19.2.18"]:nh(this.componentDef.selectors[0]),c=zi(0,null,null,1,0,null,null,null,null,[a],null),u=Eg(s,o||this.ngModule,t),l=Cg(u),f=l.rendererFactory.createRenderer(null,s),p=r?sh(f,r,s.encapsulation,u):_g(s,f),d=Wi(null,c,null,512|Vu(s),null,null,l,f,u,null,Au(p,u,!0));d[ve]=p,Ri(d);let h=null;try{let b=ul(ve,c,d,"#host",()=>[this.componentDef],!0,0);p&&(Pu(f,p,b),Gt(p,d)),Zi(c,d,b),Ou(c,b,d),ll(c,b),n!==void 0&&wg(b,this.ngContentSelectors,n),h=De(b.index,d),d[U]=h[U],Qi(c,d,null)}catch(b){throw h!==null&&ri(h),ri(d),b}finally{x(23),Oi()}return new pi(this.componentType,d)}finally{E(i)}}},pi=class extends og{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n){super(),this._rootLView=n,this._tNode=Vc(n[w],ve),this.location=wr(this._tNode,n),this.instance=De(this._tNode.index,n)[U],this.hostView=this.changeDetectorRef=new ns(n,void 0,!1),this.componentType=t}setInput(t,n){let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=Yi(r,o[w],o,t,n);this.previousInputValues.set(t,n);let s=De(r.index,o);ts(s,1)}get injector(){return new Be(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function wg(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var Nr=(()=>{class e{static __NG_ELEMENT_ID__=Ig}return e})();function Ig(){let e=Me();return Mg(e,F())}var bg=Nr,dl=class extends bg{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return wr(this._hostTNode,this._hostLView)}get injector(){return new Be(this._hostTNode,this._hostLView)}get parentInjector(){let t=Li(this._hostTNode,this._hostLView);if(iu(t)){let n=tr(t,this._hostLView),r=er(t),o=n[w].data[r+8];return new Be(o,n)}else return new Be(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=tc(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-K}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Qa(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Za(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!wf(t),a;if(s)a=n;else{let h=n||{};a=h.index,r=h.injector,o=h.projectableNodes,i=h.environmentInjector||h.ngModuleRef}let c=s?t:new cr(kt(t)),u=r||this.parentInjector;if(!i&&c.ngModule==null){let b=(s?u:this.parentInjector).get(xe,null);b&&(i=b)}let l=kt(c.componentType??{}),f=Qa(this._lContainer,l?.id??null),p=f?.firstChild??null,d=c.create(u,o,p,i);return this.insertImpl(d.hostView,a,Za(this._hostTNode,f)),d}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Nf(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[j],u=new dl(c,c[ie],c[j]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Zh(s,o,i,r),t.attachToViewContainerRef(),_c(Vo(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=tc(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=li(this._lContainer,n);r&&(Gn(Vo(this._lContainer),n),Wu(r[w],r))}detach(t){let n=this._adjustIndex(t,-1),r=li(this._lContainer,n);return r&&Gn(Vo(this._lContainer),n)!=null?new ns(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function tc(e){return e[Qn]}function Vo(e){return e[Qn]||(e[Qn]=[])}function Mg(e,t){let n,r=t[e.index];return Ie(r)?n=r:(n=nl(r,t,null,e),t[e.index]=n,qi(t,n)),Tg(n,t,e,r),new dl(n,e,t)}function Sg(e,t){let n=e[L],r=n.createComment(""),o=be(t,e),i=n.parentNode(o);return ir(n,i,r,n.nextSibling(o),!1),r}var Tg=Ag,Ng=()=>!1;function xg(e,t,n){return Ng(e,t,n)}function Ag(e,t,n,r){if(e[He])return;let o;n.type&8?o=ue(r):o=Sg(t,n),e[He]=o}function Rg(e){let t=[],n=new Map;function r(o){let i=n.get(o);if(!i){let s=e(o);n.set(o,i=s.then(Pg))}return i}return ur.forEach((o,i)=>{let s=[];o.templateUrl&&s.push(r(o.templateUrl).then(u=>{o.template=u}));let a=typeof o.styles=="string"?[o.styles]:o.styles||[];if(o.styles=a,o.styleUrl&&o.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(o.styleUrls?.length){let u=o.styles.length,l=o.styleUrls;o.styleUrls.forEach((f,p)=>{a.push(""),s.push(r(f).then(d=>{a[u+p]=d,l.splice(l.indexOf(f),1),l.length==0&&(o.styleUrls=void 0)}))})}else o.styleUrl&&s.push(r(o.styleUrl).then(u=>{a.push(u),o.styleUrl=void 0}));let c=Promise.all(s).then(()=>Lg(i));t.push(c)}),Fg(),Promise.all(t).then(()=>{})}var ur=new Map,Og=new Set;function Fg(){let e=ur;return ur=new Map,e}function kg(){return ur.size===0}function Pg(e){return typeof e=="string"?e:e.text()}function Lg(e){Og.delete(e)}var ct=class{},Vg=class{};var lr=class extends ct{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new ar(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=uf(t);this._bootstrapComponents=zp(i.bootstrap),this._r3Injector=gu(t,n,[{provide:ct,useValue:this},{provide:qe,useValue:this.componentFactoryResolver},...r],$(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},hi=class extends Vg{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new lr(this.moduleType,t,[])}};function jg(e,t,n){return new lr(e,t,n,!1)}var gi=class extends ct{injector;componentFactoryResolver=new ar(this);instance=null;constructor(t){super();let n=new Pt([...t.providers,{provide:ct,useValue:this},{provide:qe,useValue:this.componentFactoryResolver}],t.parent||Ti(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Bg(e,t,n=null){return new gi({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Hg=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=bc(!1,n.type),o=r.length>0?Bg([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=T({token:e,providedIn:"environment",factory:()=>new e(C(xe))})}return e})();function fl(e){return gr(()=>{let t=pl(e),n=N(M({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===wu.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(Hg).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||le.Emulated,styles:e.styles||re,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Fp("NgStandalone"),hl(n);let r=e.dependencies;return n.directiveDefs=nc(r,!1),n.pipeDefs=nc(r,!0),n.id=Wg(n),n})}function $g(e){return kt(e)||lf(e)}function Ug(e){return e!==null}function pe(e){return gr(()=>({type:e.type,bootstrap:e.bootstrap||re,declarations:e.declarations||re,imports:e.imports||re,exports:e.exports||re,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Gg(e,t){if(e==null)return rt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=Mr.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function zg(e){if(e==null)return rt;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Wt(e){return gr(()=>{let t=pl(e);return hl(t),t})}function pl(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,inputConfig:e.inputs||rt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||re,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Gg(e.inputs,t),outputs:zg(e.outputs),debugInfo:null}}function hl(e){e.features?.forEach(t=>t(e))}function nc(e,t){if(!e)return null;let n=t?df:$g;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Ug)}function Wg(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,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];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function gl(e){return Zg(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function qg(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value)}}function Zg(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function is(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Yg(e,t,n,r,o,i,s,a,c){let u=t.consts,l=rs(t,e,4,s||null,a||null);Uc()&&al(t,n,l,Xn(u,c),Uu),l.mergedAttrs=Pi(l.mergedAttrs,l.attrs),ru(t,l);let f=l.tView=zi(2,l,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return t.queries!==null&&(t.queries.template(t,l),f.queries=t.queries.embeddedTView(l)),l}function Qg(e,t,n,r,o,i,s,a,c,u){let l=n+ve,f=t.firstCreatePass?Yg(l,t,e,r,o,i,s,a,c):t.data[l];Ut(f,!1);let p=Kg(t,e,f,n);Fi()&&Xi(t,e,p,f),Gt(p,e);let d=nl(p,e,p,f);return e[l]=d,qi(e,d),xg(d,f,e),Ni(f)&&Zi(t,e,f),c!=null&&$u(e,f,u),f}function qt(e,t,n,r,o,i,s,a){let c=F(),u=Oe(),l=Xn(u.consts,i);return Qg(c,u,e,t,n,r,o,l,s,a),qt}var Kg=Jg;function Jg(e,t,n,r){return ki(!0),t[L].createComment("")}var ss=new v(""),Zt=new v(""),xr=(()=>{class e{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(n,r,o){this._ngZone=n,this.registry=r,Nc()&&(this._destroyRef=I(Vi,{optional:!0})??void 0),as||(Xg(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){let n=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),r=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{R.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}}));this._destroyRef?.onDestroy(()=>{n.unsubscribe(),r.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>r.updateCb&&r.updateCb(n)?(clearTimeout(r.timeoutId),!1):!0)}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n()},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this._taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}static \u0275fac=function(r){return new(r||e)(C(R),C(Ar),C(Zt))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})(),Ar=(()=>{class e{_applications=new Map;registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return as?.findTestabilityInTree(this,n,r)??null}static \u0275fac=function(r){return new(r||e)};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function Xg(e){as=e}var as,em=(()=>{class e{static \u0275prov=T({token:e,providedIn:"root",factory:()=>new mi})}return e})(),mi=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),this.queuedEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}};function Yt(e){return!!e&&typeof e.then=="function"}function ml(e){return!!e&&typeof e.subscribe=="function"}var tm=new v("");var yl=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=I(tm,{optional:!0})??[];injector=I(J);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Tc(this.injector,o);if(Yt(i))n.push(i);else if(ml(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),nm=new v("");function rm(){lo(()=>{throw new g(600,!1)})}function om(e){return e.isBoundToModule}var im=10;function vl(e,t){return Array.isArray(t)?t.reduce(vl,e):M(M({},e),t)}var Re=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=I(wp);afterRenderManager=I(kp);zonelessEnabled=I(yu);rootEffectScheduler=I(em);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new ee;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=I(_r).hasPendingTasks.pipe(me(n=>!n));constructor(){I(br,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=I(xe);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=J.NULL){x(10);let i=n instanceof sl;if(!this._injector.get(yl).done){let d="";throw new g(405,d)}let a;i?a=n:a=this._injector.get(qe).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let c=om(a)?void 0:this._injector.get(ct),u=r||a.selector,l=a.create(o,[],u,c),f=l.location.nativeElement,p=l.injector.get(ss,null);return p?.registerApplication(f),l.onDestroy(()=>{this.detachView(l.hostView),Hn(this.components,l),p?.unregisterApplication(f)}),this._loadComponent(l),x(11,l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){x(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(xu.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new g(101,!1);let n=E(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,E(n),this.afterTick.next(),x(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(at,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<im;)x(14),this.synchronizeOnce(),x(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:o}of this.allViews)sm(r,o,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>$t(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Hn(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(nm,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Hn(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new g(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Hn(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function sm(e,t,n,r){if(!n&&!$t(e))return;Ju(e,t,n&&!r?0:1)}function am(e,t,n,r){return is(e,qc(),n)?t+yc(n)+r:ht}function Pn(e,t){return e<<17|t<<2}function ze(e){return e>>17&32767}function cm(e){return(e&2)==2}function um(e,t){return e&131071|t<<17}function yi(e){return e|2}function ut(e){return(e&131068)>>2}function jo(e,t){return e&-131069|t<<2}function lm(e){return(e&1)===1}function vi(e){return e|1}function dm(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=ze(s),c=ut(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let f=n;l=f[1],(l===null||Bt(f,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let p=ze(e[a+1]);e[r+1]=Pn(p,a),p!==0&&(e[p+1]=jo(e[p+1],r)),e[a+1]=um(e[a+1],r)}else e[r+1]=Pn(a,0),a!==0&&(e[a+1]=jo(e[a+1],r)),a=r;else e[r+1]=Pn(c,0),a===0?a=r:e[c+1]=jo(e[c+1],r),c=r;u&&(e[r+1]=yi(e[r+1])),rc(e,l,r,!0),rc(e,l,r,!1),fm(t,l,e,r,i),s=Pn(a,c),i?t.classBindings=s:t.styleBindings=s}function fm(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Bt(i,t)>=0&&(n[r+1]=vi(n[r+1]))}function rc(e,t,n,r){let o=e[n+1],i=t===null,s=r?ze(o):ut(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];pm(c,t)&&(a=!0,e[s+1]=r?vi(u):yi(u)),s=r?ze(u):ut(u)}a&&(e[n+1]=r?yi(o):vi(o))}function pm(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Bt(e,t)>=0:!1}function Se(e,t,n){let r=F(),o=qc();if(is(r,o,t)){let i=Oe(),s=Zf();lh(i,s,r,e,t,r[L],n,!1)}return Se}function oc(e,t,n,r,o){Yi(t,e,n,o?"class":"style",r)}function cs(e,t,n){return hm(e,t,n,!1),cs}function hm(e,t,n,r){let o=F(),i=Oe(),s=Hf(2);if(i.firstUpdatePass&&mm(i,e,s,r),t!==ht&&is(o,s,t)){let a=i.data[ft()];Cm(i,a,o,o[L],e,o[s+1]=_m(t,n),r,s)}}function gm(e,t){return t>=e.expandoStartIndex}function mm(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[ft()],s=gm(e,n);wm(i,r)&&t===null&&!s&&(t=!1),t=ym(o,i,t,r),dm(o,i,t,n,s,r)}}function ym(e,t,n,r){let o=zf(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Bo(null,e,t,n,r),n=jt(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Bo(o,e,t,n,r),i===null){let c=vm(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Bo(null,e,t,c[1],r),c=jt(c,t.attrs,r),Dm(e,t,r,c))}else i=Em(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function vm(e,t,n){let r=n?t.classBindings:t.styleBindings;if(ut(r)!==0)return e[ze(r)]}function Dm(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[ze(o)]=r}function Em(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=jt(r,s,n)}return jt(r,t.attrs,n)}function Bo(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=jt(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function jt(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),af(e,s,n?!0:t[++i]))}return e===void 0?null:e}function Cm(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=lm(u)?ic(c,t,n,o,ut(u),s):void 0;if(!dr(l)){dr(i)||cm(u)&&(i=ic(c,null,n,o,a,s));let f=Lc(ft(),n);Fh(r,s,f,o,i)}}function ic(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,f=l===null,p=n[o+1];p===ht&&(p=f?re:void 0);let d=f?xo(p,r):l===r?p:void 0;if(u&&!dr(d)&&(d=xo(c,r)),dr(d)&&(a=d,s))return a;let h=e[o+1];o=s?ze(h):ut(h)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=xo(c,r))}return a}function dr(e){return e!==void 0}function _m(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=$(jp(e)))),e}function wm(e,t){return(e.flags&(t?8:16))!==0}function G(e,t,n,r){let o=F(),i=Oe(),s=ve+e,a=o[L],c=i.firstCreatePass?ul(s,i,o,t,Uu,Uc(),n,r):i.data[s],u=Im(i,o,c,a,t,e);o[s]=u;let l=Ni(c);return Ut(c,!0),Pu(a,u,c),!Gu(c)&&Fi()&&Xi(i,o,u,c),(Rf()===0||l)&&Gt(u,o),Of(),l&&(Zi(i,o,c),Ou(i,c,o)),r!==null&&$u(o,c),G}function z(){let e=Me();zc()?jf():(e=e.parent,Ut(e,!1));let t=e;Pf(t)&&Lf(),Ff();let n=Oe();return n.firstCreatePass&&ll(n,t),t.classesWithoutHost!=null&&Xf(t)&&oc(n,t,F(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&ep(t)&&oc(n,t,F(),t.stylesWithoutHost,!1),z}function Rr(e,t,n,r){return G(e,t,n,r),z(),Rr}var Im=(e,t,n,r,o,i)=>(ki(!0),Fu(r,o,Qf()));function Dl(){return F()}var fr="en-US";var bm=fr;function Mm(e){typeof e=="string"&&(bm=e.toLowerCase().replace(/_/g,"-"))}function sc(e,t,n){return function r(o){if(o===Function)return n;let i=Ht(e)?De(e.index,t):t;ts(i,5);let s=t[U],a=ac(t,s,n,o),c=r.__ngNextListenerFn__;for(;c;)a=ac(t,s,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function ac(e,t,n,r){let o=E(null);try{return x(6,t,n),n(r)!==!1}catch(i){return Sm(e,i),!1}finally{x(7,t,n),E(o)}}function Sm(e,t){let n=e[ot],r=n?n.get(Ee,null):null;r&&r.handleError(t)}function cc(e,t,n,r,o,i){let s=t[n],a=t[w],u=a.data[n].outputs[r],l=s[u],f=a.firstCreatePass?$c(a):null,p=Hc(t),d=l.subscribe(i),h=p.length;p.push(i,d),f&&f.push(o,e.index,h,-(h+1))}function gt(e,t,n,r){let o=F(),i=Oe(),s=Me();return Nm(i,o,o[L],s,e,t,r),gt}function Tm(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[Zn],c=o[i+2];return a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Nm(e,t,n,r,o,i,s){let a=Ni(r),u=e.firstCreatePass?$c(e):null,l=Hc(t),f=!0;if(r.type&3||s){let p=be(r,t),d=s?s(p):p,h=l.length,b=s?k=>s(ue(k[r.index])):r.index,B=null;if(!s&&a&&(B=Tm(e,t,o,r.index)),B!==null){let k=B.__ngLastListenerFn__||B;k.__ngNextListenerFn__=i,B.__ngLastListenerFn__=i,f=!1}else{i=sc(r,t,i),Lp(t,d,o,i);let k=n.listen(d,o,i);l.push(i,k),u&&u.push(o,b,h,h+1)}}else i=sc(r,t,i);if(f){let p=r.outputs?.[o],d=r.hostDirectiveOutputs?.[o];if(d&&d.length)for(let h=0;h<d.length;h+=2){let b=d[h],B=d[h+1];cc(r,t,b,B,o,i)}if(p&&p.length)for(let h of p)cc(r,t,h,o,o,i)}}function mt(e=1){return qf(e)}function Fe(e,t=""){let n=F(),r=Oe(),o=e+ve,i=r.firstCreatePass?rs(r,o,1,t,null):r.data[o],s=xm(r,n,i,t,e);n[o]=s,Fi()&&Xi(r,n,s,i),Ut(i,!1)}var xm=(e,t,n,r,o)=>(ki(!0),Bp(t[L],r));function Or(e,t,n){let r=F(),o=am(r,e,t,n);return o!==ht&&Am(r,ft(),o),Or}function Am(e,t,n){let r=Lc(t,e);Hp(e[L],r,n)}var Ln=null;function Rm(e){Ln!==null&&(e.defaultEncapsulation!==Ln.defaultEncapsulation||e.preserveWhitespaces!==Ln.preserveWhitespaces)||(Ln=e)}var Om=new v("");function Fm(e,t,n){let r=new hi(n);return Promise.resolve(r)}function uc(e){for(let t=e.length-1;t>=0;t--)if(e[t]!==void 0)return e[t]}var km=(()=>{class e{zone=I(R);changeDetectionScheduler=I(Ge);applicationRef=I(Re);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Pm({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new R(N(M({},El()),{scheduleInRootZone:n})),[{provide:R,useFactory:e},{provide:zn,multi:!0,useFactory:()=>{let r=I(km,{optional:!0});return()=>r.initialize()}},{provide:zn,multi:!0,useFactory:()=>{let r=I(Lm);return()=>{r.initialize()}}},t===!0?{provide:vu,useValue:!0}:[],{provide:Du,useValue:n??mu}]}function El(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Lm=(()=>{class e{subscription=new V;initialized=!1;zone=I(R);pendingTasks=I(_r);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{R.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{R.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Vm=(()=>{class e{appRef=I(Re);taskService=I(_r);ngZone=I(R);zonelessEnabled=I(yu);tracing=I(br,{optional:!0});disableScheduling=I(vu,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new V;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(rr):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(I(Du,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof or||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?Ha:Eu;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(rr+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Ha(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function jm(){return typeof $localize<"u"&&$localize.locale||fr}var us=new v("",{providedIn:"root",factory:()=>I(us,y.Optional|y.SkipSelf)||jm()});var pr=new v(""),Bm=new v("");function xt(e){return!e.moduleRef}function Hm(e){let t=xt(e)?e.r3Injector:e.moduleRef.injector,n=t.get(R);return n.run(()=>{xt(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Ee,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),xt(e)){let i=()=>t.destroy(),s=e.platformInjector.get(pr);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(pr);s.add(i),e.moduleRef.onDestroy(()=>{Hn(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return Um(r,n,()=>{let i=t.get(yl);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(us,fr);if(Mm(s||fr),!t.get(Bm,!0))return xt(e)?t.get(Re):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(xt(e)){let c=t.get(Re);return e.rootComponent!==void 0&&c.bootstrap(e.rootComponent),c}else return $m(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function $m(e,t){let n=e.injector.get(Re);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new g(-403,!1);t.push(e)}function Um(e,t,n){try{let r=n();return Yt(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Cl=(()=>{class e{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(n){this._injector=n}bootstrapModuleFactory(n,r){let o=r?.scheduleInRootZone,i=()=>_p(r?.ngZone,N(M({},El({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing})),{scheduleInRootZone:o})),s=r?.ignoreChangesOutsideZone,a=[Pm({ngZoneFactory:i,ignoreChangesOutsideZone:s}),{provide:Ge,useExisting:Vm}],c=jg(n.moduleType,this.injector,a);return Hm({moduleRef:c,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(n,r=[]){let o=vl({},r);return Fm(this.injector,o,n).then(i=>this.bootstrapModuleFactory(i,o))}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new g(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());let n=this._injector.get(pr,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(r){return new(r||e)(C(J))};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),ls=null;function Gm(e){if(fs())throw new g(400,!1);rm(),ls=e;let t=e.get(Cl);return qm(e),t}function ds(e,t,n=[]){let r=`Platform: ${t}`,o=new v(r);return(i=[])=>{let s=fs();if(!s){let a=[...n,...i,{provide:o,useValue:!0}];s=e?.(a)??Gm(zm(a,r))}return Wm(o)}}function zm(e=[],t){return J.create({name:t,providers:[{provide:yr,useValue:"platform"},{provide:pr,useValue:new Set([()=>ls=null])},...e]})}function Wm(e){let t=fs();if(!t)throw new g(401,!1);return t}function fs(){return ls?.get(Cl)??null}function qm(e){let t=e.get($i,null);Tc(e,()=>{t?.forEach(n=>n())})}var Di=class{constructor(){}supports(t){return gl(t)}create(t){return new Ei(t)}},Zm=(e,t)=>t,Ei=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(t){this._trackByFn=t||Zm}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<lc(r,o,i)?n:r,a=lc(s,o,i),c=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else{i||(i=[]);let u=a-o,l=c-o;if(u!=l){for(let p=0;p<u;p++){let d=p<i.length?i[p]:i[p]=0,h=d+p;l<=h&&h<u&&(i[p]=d+1)}let f=s.previousIndex;i[f]=l-u}}a!==c&&t(s,a,c)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)t(n)}diff(t){if(t==null&&(t=[]),!gl(t))throw new g(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._itHead,r=!1,o,i,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next}else o=0,qg(t,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new Ci(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new hr),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new hr),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},Ci=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(t,n){this.item=t,this.trackById=n}},_i=class{_head=null;_tail=null;add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},hr=class{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new _i,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function lc(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}function dc(){return new ps([new Di])}var ps=(()=>{class e{factories;static \u0275prov=T({token:e,providedIn:"root",factory:dc});constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||dc()),deps:[[e,new of,new rf]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new g(901,!1)}}return e})();var _l=ds(null,"core",[]),wl=(()=>{class e{constructor(n){}static \u0275fac=function(r){return new(r||e)(C(Re))};static \u0275mod=pe({type:e});static \u0275inj=de({})}return e})();function ke(e){return go(e)}function Fr(e,t){return uo(e,t?.equal)}var fc=class{[se];constructor(t){this[se]=t}destroy(){this[se].destroy()}};var he=new v("");var Il=null;function vt(){return Il}function hs(e){Il??=e}var Qt=class{};var gs=/\s+/,bl=[],ms=(()=>{class e{_ngEl;_renderer;initialClasses=bl;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r}set klass(n){this.initialClasses=n!=null?n.trim().split(gs):bl}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(gs):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(gs).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(r){return new(r||e)(W(pt),W(os))};static \u0275dir=Wt({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})();var kr=class{$implicit;ngForOf;index;count;constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Lr=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new kr(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),Ml(a,o)}});for(let o=0,i=r.length;o<i;o++){let a=r.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{let i=r.get(o.currentIndex);Ml(i,o)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(W(Nr),W(Tr),W(ps))};static \u0275dir=Wt({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function Ml(e,t){e.context.$implicit=t.item}var ys=(()=>{class e{_viewContainer;_context=new Pr;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(n,r){this._viewContainer=n,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Sl(n,!1),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Sl(n,!1),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(W(Nr),W(Tr))};static \u0275dir=Wt({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),Pr=class{$implicit=null;ngIf=null};function Sl(e,t){if(e&&!e.createEmbeddedView)throw new g(2020,!1)}var Kt=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=pe({type:e});static \u0275inj=de({})}return e})();function vs(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 Ds="browser",Tl="server";function Vr(e){return e===Tl}var Jt=class{};var Hr=new v(""),ws=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new g(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(C(Hr),C(R))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})(),Xt=class{_doc;constructor(t){this._doc=t}manager},jr="ng-app-id";function Nl(e){for(let t of e)t.remove()}function xl(e,t){let n=t.createElement("style");return n.textContent=e,n}function Km(e,t,n,r){let o=e.head?.querySelectorAll(`style[${jr}="${t}"],link[${jr}="${t}"]`);if(o)for(let i of o)i.removeAttribute(jr),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function Cs(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Is=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.isServer=Vr(i),Km(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,xl);r?.forEach(o=>this.addUsage(o,this.external,Cs))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(Nl(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Nl(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,xl(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,Cs(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(jr,this.appId),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(C(he),C(Hi),C(Ui,8),C(zt))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})(),Es={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"},bs=/%COMP%/g;var Rl="%COMP%",Jm=`_nghost-${Rl}`,Xm=`_ngcontent-${Rl}`,ey=!0,ty=new v("",{providedIn:"root",factory:()=>ey});function ny(e){return Xm.replace(bs,e)}function ry(e){return Jm.replace(bs,e)}function Ol(e,t){return t.map(n=>n.replace(bs,e))}var Ms=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,o,i,s,a,c,u=null,l=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.tracingService=l,this.platformIsServer=Vr(a),this.defaultRenderer=new en(n,s,c,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===le.ShadowDom&&(r=N(M({},r),{encapsulation:le.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof Br?o.applyToHost(n):o instanceof tn&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,f=this.platformIsServer,p=this.tracingService;switch(r.encapsulation){case le.Emulated:i=new Br(c,u,r,this.appId,l,s,a,f,p);break;case le.ShadowDom:return new _s(c,u,n,r,s,a,this.nonce,f,p);default:i=new tn(c,u,r,l,s,a,f,p);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(C(ws),C(Is),C(Hi),C(ty),C(he),C(zt),C(R),C(Ui),C(br,8))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})(),en=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.tracingService=i}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(Es[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Al(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Al(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new g(-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=Es[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=Es[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&(Ce.DashCase|Ce.Important)?t.style.setProperty(n,r,o&Ce.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Ce.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,o){if(typeof t=="string"&&(t=vt().getGlobalEventTarget(this.doc,t),!t))throw new g(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function Al(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var _s=class extends en{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,c,u){super(t,i,s,c,u),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=o.styles;l=Ol(o.id,l);for(let p of l){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=p,this.shadowRoot.appendChild(d)}let f=o.getExternalStyles?.();if(f)for(let p of f){let d=Cs(p,i);a&&d.setAttribute("nonce",a),this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},tn=class extends en{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c,u){super(t,i,s,a,c),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let l=r.styles;this.styles=u?Ol(u,l):l,this.styleUrls=r.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Br=class extends tn{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c,u){let l=o+"-"+r.id;super(t,n,r,i,s,a,c,u,l),this.contentAttr=ny(l),this.hostAttr=ry(l)}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}};var $r=class e extends Qt{supportsDOMEvents=!0;static makeCurrent(){hs(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=oy();return n==null?null:iy(n)}resetBaseElement(){nn=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return vs(document.cookie,t)}},nn=null;function oy(){return nn=nn||document.head.querySelector("base"),nn?nn.getAttribute("href"):null}function iy(e){return new URL(e,document.baseURI).pathname}var Ur=class{addToWindow(t){_e.getAngularTestability=(r,o=!0)=>{let i=t.findTestabilityInTree(r,o);if(i==null)throw new g(5103,!1);return i},_e.getAllAngularTestabilities=()=>t.getAllTestabilities(),_e.getAllAngularRootElements=()=>t.getAllRootElements();let n=r=>{let o=_e.getAllAngularTestabilities(),i=o.length,s=function(){i--,i==0&&r()};o.forEach(a=>{a.whenStable(s)})};_e.frameworkStabilizers||(_e.frameworkStabilizers=[]),_e.frameworkStabilizers.push(n)}findTestabilityInTree(t,n,r){if(n==null)return null;let o=t.getTestability(n);return o??(r?vt().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},sy=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})(),kl=(()=>{class e extends Xt{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(C(he))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})(),Fl=["alt","control","meta","shift"],ay={"\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"},cy={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Pl=(()=>{class e extends Xt{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>vt().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Fl.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=ay[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Fl.forEach(s=>{if(s!==o){let a=cy[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(C(he))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})();function uy(){$r.makeCurrent()}function ly(){return new Ee}function dy(){return Tu(document),document}var fy=[{provide:zt,useValue:Ds},{provide:$i,useValue:uy,multi:!0},{provide:he,useFactory:dy}],Ss=ds(_l,"browser",fy);var py=[{provide:Zt,useClass:Ur},{provide:ss,useClass:xr,deps:[R,Ar,Zt]},{provide:xr,useClass:xr,deps:[R,Ar,Zt]}],hy=[{provide:yr,useValue:"root"},{provide:Ee,useFactory:ly},{provide:Hr,useClass:kl,multi:!0,deps:[he]},{provide:Hr,useClass:Pl,multi:!0,deps:[he]},Ms,Is,ws,{provide:at,useExisting:Ms},{provide:Jt,useClass:sy},[]],Ts=(()=>{class e{constructor(){}static \u0275fac=function(r){return new(r||e)};static \u0275mod=pe({type:e});static \u0275inj=de({providers:[...hy,...py],imports:[Kt,wl]})}return e})();function Os(e){return e==null||Fs(e)===0}function Fs(e){return e==null?null:Array.isArray(e)||typeof e=="string"?e.length:e instanceof Set?e.size:null}var yy=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ze=class{static min(t){return vy(t)}static max(t){return Dy(t)}static required(t){return Ey(t)}static requiredTrue(t){return Cy(t)}static email(t){return _y(t)}static minLength(t){return wy(t)}static maxLength(t){return Iy(t)}static pattern(t){return by(t)}static nullValidator(t){return $l()}static compose(t){return Zl(t)}static composeAsync(t){return Yl(t)}};function vy(e){return t=>{if(t.value==null||e==null)return null;let n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}function Dy(e){return t=>{if(t.value==null||e==null)return null;let n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}function Ey(e){return Os(e.value)?{required:!0}:null}function Cy(e){return e.value===!0?null:{required:!0}}function _y(e){return Os(e.value)||yy.test(e.value)?null:{email:!0}}function wy(e){return t=>{let n=t.value?.length??Fs(t.value);return n===null||n===0?null:n<e?{minlength:{requiredLength:e,actualLength:n}}:null}}function Iy(e){return t=>{let n=t.value?.length??Fs(t.value);return n!==null&&n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}function by(e){if(!e)return $l;let t,n;return typeof e=="string"?(n="",e.charAt(0)!=="^"&&(n+="^"),n+=e,e.charAt(e.length-1)!=="$"&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),r=>{if(Os(r.value))return null;let o=r.value;return t.test(o)?null:{pattern:{requiredPattern:n,actualValue:o}}}}function $l(e){return null}function Ul(e){return e!=null}function Gl(e){return Yt(e)?Nt(e):e}function zl(e){let t={};return e.forEach(n=>{t=n!=null?M(M({},t),n):t}),Object.keys(t).length===0?null:t}function Wl(e,t){return t.map(n=>n(e))}function My(e){return!e.validate}function ql(e){return e.map(t=>My(t)?t:n=>t.validate(n))}function Zl(e){if(!e)return null;let t=e.filter(Ul);return t.length==0?null:function(n){return zl(Wl(n,t))}}function Sy(e){return e!=null?Zl(ql(e)):null}function Yl(e){if(!e)return null;let t=e.filter(Ul);return t.length==0?null:function(n){let r=Wl(n,t).map(Gl);return So(r).pipe(me(zl))}}function Ty(e){return e!=null?Yl(ql(e)):null}function xs(e){return e?Array.isArray(e)?e:[e]:[]}function zr(e,t){return Array.isArray(e)?e.includes(t):e===t}function Ll(e,t){let n=xs(t);return xs(e).forEach(o=>{zr(n,o)||n.push(o)}),n}function Vl(e,t){return xs(t).filter(n=>!zr(e,n))}var Ny={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},TI=N(M({},Ny),{"[class.ng-submitted]":"isSubmitted"});var rn="VALID",Gr="INVALID",Dt="PENDING",on="DISABLED",Ct=class{},Wr=class extends Ct{value;source;constructor(t,n){super(),this.value=t,this.source=n}},sn=class extends Ct{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},an=class extends Ct{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},Et=class extends Ct{status;source;constructor(t,n){super(),this.status=t,this.source=n}};function ks(e){return(Zr(e)?e.validators:e)||null}function xy(e){return Array.isArray(e)?Sy(e):e||null}function Ps(e,t){return(Zr(t)?t.asyncValidators:e)||null}function Ay(e){return Array.isArray(e)?Ty(e):e||null}function Zr(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function Ql(e,t,n){let r=e.controls;if(!(t?Object.keys(r):r).length)throw new g(1e3,"");if(!r[n])throw new g(1001,"")}function Kl(e,t,n){e._forEachChild((r,o)=>{if(n[o]===void 0)throw new g(1002,"")})}var _t=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return ke(this.statusReactive)}set status(t){ke(()=>this.statusReactive.set(t))}_status=Fr(()=>this.statusReactive());statusReactive=Ir(void 0);get valid(){return this.status===rn}get invalid(){return this.status===Gr}get pending(){return this.status==Dt}get disabled(){return this.status===on}get enabled(){return this.status!==on}errors;get pristine(){return ke(this.pristineReactive)}set pristine(t){ke(()=>this.pristineReactive.set(t))}_pristine=Fr(()=>this.pristineReactive());pristineReactive=Ir(!0);get dirty(){return!this.pristine}get touched(){return ke(this.touchedReactive)}set touched(t){ke(()=>this.touchedReactive.set(t))}_touched=Fr(()=>this.touchedReactive());touchedReactive=Ir(!1);get untouched(){return!this.touched}_events=new ee;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Ll(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Ll(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Vl(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Vl(t,this._rawAsyncValidators))}hasValidator(t){return zr(this._rawValidators,t)}hasAsyncValidator(t){return zr(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(N(M({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new an(!0,r))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new an(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(N(M({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new sn(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new sn(!0,r))}markAsPending(t={}){this.status=Dt;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Et(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(N(M({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=on,this.errors=null,this._forEachChild(o=>{o.disable(N(M({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Wr(this.value,r)),this._events.next(new Et(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(N(M({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=rn,this._forEachChild(r=>{r.enable(N(M({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(N(M({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===rn||this.status===Dt)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Wr(this.value,n)),this._events.next(new Et(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(N(M({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?on:rn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=Dt,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=Gl(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new Et(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new H,this.statusChanges=new H}_calculateStatus(){return this._allControlsDisabled()?on:this.errors?Gr:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Dt)?Dt:this._anyControlsHaveStatus(Gr)?Gr:rn}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),o&&this._events.next(new sn(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new an(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Zr(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=xy(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Ay(this._rawAsyncValidators)}},qr=class extends _t{constructor(t,n,r){super(ks(n),Ps(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){Kl(this,!0,t),Object.keys(t).forEach(r=>{Ql(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){t!=null&&(Object.keys(t).forEach(r=>{let o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t?t[o]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>r._syncPendingControls()?!0:n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{let r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var As=class extends qr{};var Ry=new v("",{providedIn:"root",factory:()=>Jl}),Jl="always";function jl(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Bl(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var Ns=class extends _t{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(ks(n),Ps(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Zr(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Bl(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){jl(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){jl(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){Bl(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var Oy=new v("");var Fy=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=pe({type:e});static \u0275inj=de({})}return e})(),Rs=class extends _t{constructor(t,n,r){super(ks(n),Ps(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(t){return this.controls[this._adjustIndex(t)]}push(t,n={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(t,n,r={}){this.controls.splice(t,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(t,n={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(t,n,r={}){let o=this._adjustIndex(t);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),n&&(this.controls.splice(o,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,n={}){Kl(this,!1,t),t.forEach((r,o)=>{Ql(this,!1,o),this.at(o).setValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){t!=null&&(t.forEach((r,o)=>{this.at(o)&&this.at(o).patchValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t=[],n={}){this._forEachChild((r,o)=>{r.reset(t[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((n,r)=>r._syncPendingControls()?!0:n,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((n,r)=>{t(n,r)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(n=>n.enabled&&t(n))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}};function Hl(e){return!!e&&(e.asyncValidators!==void 0||e.validators!==void 0||e.updateOn!==void 0)}var Xl=(()=>{class e{useNonNullable=!1;get nonNullable(){let n=new e;return n.useNonNullable=!0,n}group(n,r=null){let o=this._reduceControls(n),i={};return Hl(r)?i=r:r!==null&&(i.validators=r.validator,i.asyncValidators=r.asyncValidator),new qr(o,i)}record(n,r=null){let o=this._reduceControls(n);return new As(o,r)}control(n,r,o){let i={};return this.useNonNullable?(Hl(r)?i=r:(i.validators=r,i.asyncValidators=o),new Ns(n,N(M({},i),{nonNullable:!0}))):new Ns(n,r,o)}array(n,r,o){let i=n.map(s=>this._createControl(s));return new Rs(i,r,o)}_reduceControls(n){let r={};return Object.keys(n).forEach(o=>{r[o]=this._createControl(n[o])}),r}_createControl(n){if(n instanceof Ns)return n;if(n instanceof _t)return n;if(Array.isArray(n)){let r=n[0],o=n.length>1?n[1]:null,i=n.length>2?n[2]:null;return this.control(r,o,i)}else return this.control(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var ed=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Oy,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:Ry,useValue:n.callSetDisabledState??Jl}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=pe({type:e});static \u0275inj=de({imports:[Fy]})}return e})();var Py={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function Ly(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function Vy(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var Ls;function jy(e,t){if(!Ls){let n=Element.prototype;Ls=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?Ls.call(e,t):!1}function By(e){let t={};return e.forEach(({propName:n,templateName:r,transform:o})=>{t[Ly(r)]=[n,o]}),t}function Hy(e,t){return t.get(qe).resolveComponentFactory(e).inputs}function $y(e,t){let n=e.childNodes,r=t.map(()=>[]),o=-1;t.some((i,s)=>i==="*"?(o=s,!0):!1);for(let i=0,s=n.length;i<s;++i){let a=n[i],c=Uy(a,t,o);c!==-1&&r[c].push(a)}return r}function Uy(e,t,n){let r=n;return Vy(e)&&t.some((o,i)=>o!=="*"&&jy(e,o)?(r=i,!0):!1),r}var Gy=10,Vs=class{componentFactory;inputMap=new Map;constructor(t,n){this.componentFactory=n.get(qe).resolveComponentFactory(t);for(let r of this.componentFactory.inputs)this.inputMap.set(r.propName,r.templateName)}create(t){return new js(this.componentFactory,t,this.inputMap)}},js=class{componentFactory;injector;inputMap;eventEmitters=new Tt(1);events=this.eventEmitters.pipe(No(t=>To(...t)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(t,n,r){this.componentFactory=t,this.injector=n,this.inputMap=r,this.ngZone=this.injector.get(R),this.appRef=this.injector.get(Re),this.cdScheduler=n.get(Ge),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=Py.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},Gy))})}getInputValue(t){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,n){if(this.componentRef===null){this.initialInputValues.set(t,n);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(t)??t,n),ol(this.componentRef.hostView)&&(il(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(t){let n=J.create({providers:[],parent:this.injector}),r=$y(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(n,r,t),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[t,n]of this.initialInputValues)this.setInputValue(t,n);this.initialInputValues.clear()}initializeOutputs(t){let n=this.componentFactory.outputs.map(({propName:r,templateName:o})=>{let i=t.instance[r];return new A(s=>{let a=i.subscribe(c=>s.next({name:o,value:c}));return()=>a.unsubscribe()})});this.eventEmitters.next(n)}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}},Bs=class extends HTMLElement{ngElementEventsSubscription=null};function td(e,t){let n=Hy(e,t.injector),r=t.strategyFactory||new Vs(e,t.injector),o=By(n);class i extends Bs{injector;static observedAttributes=Object.keys(o);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:c,transform:u})=>{if(!this.hasOwnProperty(c))return;let l=this[c];delete this[c],a.setInputValue(c,l,u)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,c,u,l){let[f,p]=o[a];this.ngElementStrategy.setInputValue(f,u,p)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{let c=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(c)})}}return n.forEach(({propName:s,transform:a})=>{Object.defineProperty(i.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(c){this.ngElementStrategy.setInputValue(s,c,a)},configurable:!0,enumerable:!0})}),i}function zy(e,t){if(e&1&&(G(0,"div",19)(1,"div",20),Fe(2),z(),G(3,"div",21)(4,"small",22),Fe(5),z()()()),e&2){let n=t.$implicit,r=t.index,o=mt(2);fe(),Se("ngClass",r<=o.currentIndex?"ts-main-bg text-white shadow":"bg-light text-muted border"),fe(),Or(" ",n.ui," "),fe(2),Se("ngClass",r<=o.currentIndex?"ts-main-text fw-bold":"text-muted"),fe(),Or(" ",o.getStepTitle(n.internal)," ")}}function Wy(e,t){e&1&&(G(0,"button",23),Fe(1," Siguiente "),z())}function qy(e,t){e&1&&(G(0,"button",23),Fe(1," Agendar "),z())}function Zy(e,t){if(e&1){let n=Dl();G(0,"div",1)(1,"div",2)(2,"div",3)(3,"button",4),gt("click",function(){Er(n);let o=mt();return Cr(o.cancel.emit())}),eu(),G(4,"svg",5),Rr(5,"path",6),z()(),tu(),G(6,"h3",7),Fe(7," Agendar cita "),z(),G(8,"button",8),gt("click",function(){Er(n);let o=mt();return Cr(o.onCancel())}),Fe(9," Cancelar "),z()()(),G(10,"div",9)(11,"div",10)(12,"div",11),Rr(13,"div",12),z(),G(14,"div",13),qt(15,zy,6,4,"div",14),z()(),G(16,"div",15)(17,"div",16)(18,"button",17),gt("click",function(){Er(n);let o=mt();return Cr(o.onPrevious())}),Fe(19," Anterior "),z(),qt(20,Wy,2,0,"button",18)(21,qy,2,0,"button",18),z()()()()}if(e&2){let n=mt();fe(13),cs("width",(n.totalSteps>1?n.currentIndex/(n.totalSteps-1)*100:0)+"%"),fe(2),Se("ngForOf",n.displayedSteps),fe(3),Se("disabled",n.currentIndex===0),fe(2),Se("ngIf",!n.isLastStep()),fe(),Se("ngIf",n.isLastStep())}}var Yr=class e{constructor(t,n){this.fb=t;this.elementRef=n;console.log("Constructor - appName inicial:",this.appName)}appName="";minPasswordLength=6;cancel=new H;onCancel(){console.log("\u274C Cancelar llamado"),this.emitEvent("cancel",{app:this.appName,cancelled:!0,timestamp:new Date().toISOString()})}emitEvent(t,n){let r=new CustomEvent(t,{detail:n,bubbles:!0,composed:!0});this.elementRef.nativeElement.dispatchEvent(r),console.log(`\u{1F4E4} Evento "${t}" emitido:`,n)}formSubmitted=new H;form;patientBasicForm;currentIndex=0;viewMode="form";ngOnInit(){console.log("ngOnInit - appName:",this.appName),this.form=this.fb.group({email:["",[Ze.required,Ze.email]],password:["",[Ze.required,Ze.minLength(this.minPasswordLength)]]}),this.currentIndex=0,this.buildPatientBasicForm(),this.patientBasicForm.get("autonomyCondition")?.valueChanges.subscribe(()=>{this.currentIndex>=this.displayedSteps.length&&(this.currentIndex=this.displayedSteps.length-1)})}buildPatientBasicForm(){this.patientBasicForm=this.fb.group({documentType:[""],documentNumber:[""],autonomyCondition:["autonomous"],firstName:[""],secondName:[""],firstSurname:[""],secondSurname:[""],birthDate:[""],issueDate:[""],gender:[""],maritalStatus:[""],email:[""],phone:[""],confirmEmail:[""],confirmPhone:[""],validateAutonomous:[!1],lockIdentity:[!1]})}submit(){console.log("Submit llamado"),this.form.valid?(console.log("Formulario v\xE1lido, emitiendo evento"),this.formSubmitted.emit({app:this.appName,data:this.form.value})):console.log("Formulario inv\xE1lido")}get currentStepInternal(){return this.displayedSteps[this.currentIndex]?.internal??1}isLastStep(){return this.currentIndex===this.totalSteps-1}onPrevious(){this.currentIndex>0&&this.currentIndex--}getStepTitle(t){let n;return this.patientBasicData.autonomyCondition==="autonomous"?n={1:"Datos de la cita",2:"Datos b\xE1sicos del paciente",3:"Ubicaci\xF3n y residencia del paciente",6:"Aceptaci\xF3n de t\xE9rminos"}:n={1:"Datos de la cita",2:"Datos b\xE1sicos del paciente",3:"Ubicaci\xF3n y residencia del paciente",4:"Informaci\xF3n del tutor",5:"Ubicaci\xF3n y residencia del tutor",6:"Acompa\xF1ante y aceptaci\xF3n de t\xE9rminos"},n[t]??""}get patientBasicData(){return this.patientBasicForm?.getRawValue()}get displayedSteps(){return this.patientBasicData.autonomyCondition==="autonomous"?[{ui:1,internal:1},{ui:2,internal:2},{ui:3,internal:3},{ui:4,internal:6}]:[{ui:1,internal:1},{ui:2,internal:2},{ui:3,internal:3},{ui:4,internal:4},{ui:5,internal:5},{ui:6,internal:6}]}get totalSteps(){return this.displayedSteps.length}static \u0275fac=function(n){return new(n||e)(W(Xl),W(pt))};static \u0275cmp=fl({type:e,selectors:[["app-formulario-citas"]],inputs:{appName:"appName",minPasswordLength:"minPasswordLength"},outputs:{cancel:"cancel",formSubmitted:"formSubmitted"},decls:1,vars:1,consts:[["class","card shadow-sm",4,"ngIf"],[1,"card","shadow-sm"],[1,"card-header","text-white","ts-header"],[1,"d-flex","align-items-center","justify-content-between"],["type","button","aria-label","Volver",1,"btn","btn-link","p-0","me-2","ts-back-icon",3,"click"],["width","20","height","20","viewBox","0 0 24 24"],["d","M15 19l-7-7 7-7","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],[1,"h5","mb-0","fw-bold","flex-grow-1"],[1,"btn","btn-outline-light","btn-sm","ms-3",3,"click"],[1,"card-body"],[1,"d-none","d-sm-block","position-relative"],[1,"progress","position-absolute",2,"top","20px","height","2px","width","100%"],[1,"progress-bar","ts-main-bg"],[1,"d-flex","justify-content-between","position-relative",2,"z-index","10%"],["class","d-flex flex-column align-items-center",4,"ngFor","ngForOf"],[1,"card-footer","bg-white"],[1,"d-flex","justify-content-between"],[1,"btn","btn-outline-secondary",3,"click","disabled"],["class","btn",4,"ngIf"],[1,"d-flex","flex-column","align-items-center"],[1,"rounded-circle","d-flex","align-items-center","justify-content-center","fw-bold",2,"width","40px","height","40px","font-size","14px",3,"ngClass"],[1,"mt-2","text-center",2,"max-width","120px"],[1,"d-block","lh-sm",3,"ngClass"],[1,"btn"]],template:function(n,r){n&1&&qt(0,Zy,22,6,"div",0),n&2&&Se("ngIf",r.viewMode==="form")},dependencies:[ms,Lr,ys],styles:['@charset "UTF-8";.ts-main-bg[_ngcontent-%COMP%]{background-color:#08203c!important;border-color:#08203c!important}.ts-main-text[_ngcontent-%COMP%]{color:#08203c!important}.ts-header[_ngcontent-%COMP%]{background-color:#08203c}']})};var Qr=class e{constructor(t){this.injector=t;let n=td(Yr,{injector:t});customElements.define("todosalud-webc-form-citas",n),console.log('\u2705 Web Component "todosalud-webc-form-citas" registrado')}ngDoBootstrap(){}static \u0275fac=function(n){return new(n||e)(C(J))};static \u0275mod=pe({type:e});static \u0275inj=de({imports:[Ts,Kt,ed]})};Ss().bootstrapModule(Qr).catch(e=>console.error(e));
|