diff --git a/core-web/apps/contenttype-fields-builder/src/app/app.module.ts b/core-web/apps/contenttype-fields-builder/src/app/app.module.ts
index 1a8a57a41304..7b21f428746a 100644
--- a/core-web/apps/contenttype-fields-builder/src/app/app.module.ts
+++ b/core-web/apps/contenttype-fields-builder/src/app/app.module.ts
@@ -1,3 +1,5 @@
+import { MonacoEditorModule } from '@materia-ui/ngx-monaco-editor';
+
import { DoBootstrap, Injector, NgModule, Type } from '@angular/core';
import { createCustomElement } from '@angular/elements';
import { BrowserModule } from '@angular/platform-browser';
@@ -22,7 +24,7 @@ const CONTENTTYPE_FIELDS: ContenttypeFieldElement[] = [
@NgModule({
declarations: [AppComponent],
- imports: [BrowserModule, BrowserAnimationsModule, DotBinaryFieldComponent],
+ imports: [BrowserModule, BrowserAnimationsModule, DotBinaryFieldComponent, MonacoEditorModule],
providers: [DotMessageService, DotUploadService]
})
export class AppModule implements DoBootstrap {
diff --git a/core-web/libs/contenttype-fields/src/lib/fields/binary-field/binary-field.component.html b/core-web/libs/contenttype-fields/src/lib/fields/binary-field/binary-field.component.html
index 50d6bc5e8ba6..afa89c32534f 100644
--- a/core-web/libs/contenttype-fields/src/lib/fields/binary-field/binary-field.component.html
+++ b/core-web/libs/contenttype-fields/src/lib/fields/binary-field/binary-field.component.html
@@ -79,19 +79,24 @@
[header]="dialogHeaderMap[vm.mode] | dm"
[draggable]="false"
[resizable]="false"
+ [closeOnEscape]="false"
+ [styleClass]="isEditorMode(vm.mode) ? 'screen-cover' : ''"
(onHide)="afterDialogClose()">
-
-
-
-
-
- TODO: Implement Write Code
-
-
+
+
+
+
diff --git a/core-web/libs/contenttype-fields/src/lib/fields/binary-field/binary-field.component.scss b/core-web/libs/contenttype-fields/src/lib/fields/binary-field/binary-field.component.scss
index 4941ca19efb3..fc96c08fecf0 100644
--- a/core-web/libs/contenttype-fields/src/lib/fields/binary-field/binary-field.component.scss
+++ b/core-web/libs/contenttype-fields/src/lib/fields/binary-field/binary-field.component.scss
@@ -1,5 +1,14 @@
@use "variables" as *;
+::ng-deep {
+ .screen-cover {
+ width: 90vw;
+ height: 90vh;
+ min-width: 40rem;
+ min-height: 40rem;
+ }
+}
+
.binary-field__container {
display: flex;
justify-content: center;
diff --git a/core-web/libs/contenttype-fields/src/lib/fields/binary-field/binary-field.component.spec.ts b/core-web/libs/contenttype-fields/src/lib/fields/binary-field/binary-field.component.spec.ts
index 6bb811313e02..26b583fc4030 100644
--- a/core-web/libs/contenttype-fields/src/lib/fields/binary-field/binary-field.component.spec.ts
+++ b/core-web/libs/contenttype-fields/src/lib/fields/binary-field/binary-field.component.spec.ts
@@ -262,7 +262,7 @@ describe('DotBinaryFieldComponent', () => {
spectator.detectChanges();
await spectator.fixture.whenStable();
- const editorElement = spectator.query(byTestId('editor'));
+ const editorElement = spectator.query(byTestId('editor-mode'));
const isDialogOpen = spectator.fixture.componentInstance.openDialog;
expect(editorElement).toBeTruthy();
@@ -278,7 +278,7 @@ describe('DotBinaryFieldComponent', () => {
spectator.detectChanges();
await spectator.fixture.whenStable();
- const urlElement = spectator.query(byTestId('url'));
+ const urlElement = spectator.query(byTestId('url-mode'));
const isDialogOpen = spectator.fixture.componentInstance.openDialog;
expect(urlElement).toBeTruthy();
diff --git a/core-web/libs/contenttype-fields/src/lib/fields/binary-field/binary-field.component.stories.ts b/core-web/libs/contenttype-fields/src/lib/fields/binary-field/binary-field.component.stories.ts
index a5eee1520ab1..d10f1e67ef1d 100644
--- a/core-web/libs/contenttype-fields/src/lib/fields/binary-field/binary-field.component.stories.ts
+++ b/core-web/libs/contenttype-fields/src/lib/fields/binary-field/binary-field.component.stories.ts
@@ -50,21 +50,18 @@ export default {
provide: DotUploadService,
useValue: {
uploadFile: () => {
- return new Promise((resolve, reject) => {
+ return new Promise((resolve, _reject) => {
setTimeout(() => {
- reject({
- message: 'error URL'
+ resolve({
+ fileName: 'Image.jpg',
+ folder: 'folder',
+ id: 'tempFileId',
+ image: true,
+ length: 10000,
+ mimeType: 'mimeType',
+ referenceUrl: 'referenceUrl',
+ thumbnailUrl: 'thumbnailUrl'
});
- // resolve({
- // fileName: 'Image.jpg',
- // folder: 'folder',
- // id: 'tempFileId',
- // image: true,
- // length: 10000,
- // mimeType: 'mimeType',
- // referenceUrl: 'referenceUrl',
- // thumbnailUrl: 'thumbnailUrl'
- // });
}, 4000);
});
}
@@ -78,7 +75,7 @@ export default {
})
],
args: {
- accept: ['image/*'],
+ accept: ['image/*', '.ts'],
maxFileSize: 1000000,
helperText: 'This field accepts only images with a maximum size of 1MB.'
},
diff --git a/core-web/libs/contenttype-fields/src/lib/fields/binary-field/binary-field.component.ts b/core-web/libs/contenttype-fields/src/lib/fields/binary-field/binary-field.component.ts
index ac7c7124534e..54c824ae9d6b 100644
--- a/core-web/libs/contenttype-fields/src/lib/fields/binary-field/binary-field.component.ts
+++ b/core-web/libs/contenttype-fields/src/lib/fields/binary-field/binary-field.component.ts
@@ -29,6 +29,7 @@ import {
DropZoneFileValidity
} from '@dotcms/ui';
+import { DotBinaryFieldEditorComponent } from './components/dot-binary-field-editor/dot-binary-field-editor.component';
import { DotBinaryFieldUiMessageComponent } from './components/dot-binary-field-ui-message/dot-binary-field-ui-message.component';
import { DotBinaryFieldUrlModeComponent } from './components/dot-binary-field-url-mode/dot-binary-field-url-mode.component';
import {
@@ -62,6 +63,7 @@ const initialState: BinaryFieldState = {
DotBinaryFieldUiMessageComponent,
DotSpinnerModule,
HttpClientModule,
+ DotBinaryFieldEditorComponent,
InputTextModule,
DotBinaryFieldUrlModeComponent
],
@@ -198,15 +200,15 @@ export class DotBinaryFieldComponent implements OnInit {
this.dotBinaryFieldStore.removeFile();
}
- handleCreateFile(_event) {
- // TODO: Implement - Write Code
- }
-
setTempFile(tempFile: DotCMSTempFile) {
this.dotBinaryFieldStore.setTempFile(tempFile);
this.dialogOpen = false;
}
+ isEditorMode(mode: BINARY_FIELD_MODE): boolean {
+ return mode === BINARY_FIELD_MODE.EDITOR;
+ }
+
/**
* Handle file drop error
*
diff --git a/core-web/libs/contenttype-fields/src/lib/fields/binary-field/components/dot-binary-field-editor/dot-binary-field-editor.component.html b/core-web/libs/contenttype-fields/src/lib/fields/binary-field/components/dot-binary-field-editor/dot-binary-field-editor.component.html
new file mode 100644
index 000000000000..57d92a79405e
--- /dev/null
+++ b/core-web/libs/contenttype-fields/src/lib/fields/binary-field/components/dot-binary-field-editor/dot-binary-field-editor.component.html
@@ -0,0 +1,50 @@
+
diff --git a/core-web/libs/contenttype-fields/src/lib/fields/binary-field/components/dot-binary-field-editor/dot-binary-field-editor.component.scss b/core-web/libs/contenttype-fields/src/lib/fields/binary-field/components/dot-binary-field-editor/dot-binary-field-editor.component.scss
new file mode 100644
index 000000000000..cf8011c88d99
--- /dev/null
+++ b/core-web/libs/contenttype-fields/src/lib/fields/binary-field/components/dot-binary-field-editor/dot-binary-field-editor.component.scss
@@ -0,0 +1,82 @@
+@use "variables" as *;
+
+.binary-field__editor-container {
+ display: flex;
+ justify-content: center;
+ align-items: flex-start;
+ flex-direction: column;
+ flex: 1;
+ width: 100%;
+ gap: $spacing-1;
+}
+
+.binary-field__code-editor {
+ border: 1px solid $color-palette-gray-400; // Input
+ display: block;
+ flex-grow: 1;
+ width: 100%;
+ min-height: 20rem;
+ border-radius: $border-radius-md;
+ overflow: auto;
+}
+
+.binary-field__code-editor--disabled {
+ background-color: $color-palette-gray-200;
+ opacity: 0.5;
+
+ &::ng-deep {
+ .monaco-mouse-cursor-text,
+ .overflow-guard {
+ cursor: not-allowed;
+ }
+ }
+}
+
+.editor-mode__form {
+ height: 100%;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: flex-start;
+}
+
+.editor-mode__input-container {
+ width: 100%;
+ display: flex;
+ gap: $spacing-1;
+ flex-direction: column;
+}
+
+.editor-mode__input {
+ width: 100%;
+ display: flex;
+ flex-direction: column;
+}
+
+.editor-mode__actions {
+ width: 100%;
+ display: flex;
+ gap: $spacing-1;
+ align-items: center;
+ justify-content: flex-end;
+}
+
+.editor-mode__helper {
+ display: flex;
+ justify-content: flex-start;
+ align-items: center;
+ gap: $spacing-1;
+ color: $color-palette-gray-700;
+ font-weight: $font-size-sm;
+ visibility: hidden;
+}
+
+.editor-mode__helper--visible {
+ visibility: visible;
+}
+
+.error-message {
+ min-height: $spacing-4; // Fix height to avoid jumping
+ justify-content: flex-start;
+ display: flex;
+}
diff --git a/core-web/libs/contenttype-fields/src/lib/fields/binary-field/components/dot-binary-field-editor/dot-binary-field-editor.component.spec.ts b/core-web/libs/contenttype-fields/src/lib/fields/binary-field/components/dot-binary-field-editor/dot-binary-field-editor.component.spec.ts
new file mode 100644
index 000000000000..7d90c9b16f34
--- /dev/null
+++ b/core-web/libs/contenttype-fields/src/lib/fields/binary-field/components/dot-binary-field-editor/dot-binary-field-editor.component.spec.ts
@@ -0,0 +1,209 @@
+import { MonacoEditorComponent, MonacoEditorModule } from '@materia-ui/ngx-monaco-editor';
+import { Spectator, byTestId, createComponentFactory } from '@ngneat/spectator';
+import { MockComponent } from 'ng-mocks';
+
+import { fakeAsync, tick } from '@angular/core/testing';
+
+import { ButtonModule } from 'primeng/button';
+import { InputTextModule } from 'primeng/inputtext';
+
+import { DotMessageService, DotUploadService } from '@dotcms/data-access';
+import { DotFieldValidationMessageComponent, DotMessagePipe } from '@dotcms/ui';
+
+import { DotBinaryFieldEditorComponent } from './dot-binary-field-editor.component';
+
+import { CONTENTTYPE_FIELDS_MESSAGE_MOCK } from '../../../../utils/mock';
+import { TEMP_FILE_MOCK } from '../../store/binary-field.store.spec';
+
+const EDITOR_MOCK = {
+ updateOptions: (_options) => {
+ /* noops */
+ },
+ addCommand: () => {
+ /* noops */
+ },
+ createContextKey: () => {
+ /* noops */
+ },
+ addAction: () => {
+ /* noops */
+ },
+ getOption: () => {
+ /* noops */
+ }
+} as unknown;
+
+globalThis.monaco = {
+ languages: {
+ getLanguages: () => {
+ return [
+ {
+ id: 'javascript',
+ extensions: ['.js'],
+ mimetypes: ['text/javascript']
+ }
+ ];
+ }
+ }
+} as typeof monaco;
+
+describe('DotBinaryFieldEditorComponent', () => {
+ let component: DotBinaryFieldEditorComponent;
+ let spectator: Spectator;
+
+ let dotUploadService: DotUploadService;
+
+ const createComponent = createComponentFactory({
+ component: DotBinaryFieldEditorComponent,
+ declarations: [MockComponent(MonacoEditorComponent)],
+ imports: [
+ MonacoEditorModule,
+ InputTextModule,
+ ButtonModule,
+ DotMessagePipe,
+ DotFieldValidationMessageComponent
+ ],
+ providers: [
+ {
+ provide: DotUploadService,
+ useValue: {
+ uploadFile: ({ file }) => {
+ return new Promise((resolve) => {
+ if (file) {
+ resolve(TEMP_FILE_MOCK);
+ }
+ });
+ }
+ }
+ },
+ {
+ provide: DotMessageService,
+ useValue: CONTENTTYPE_FIELDS_MESSAGE_MOCK
+ }
+ ]
+ });
+
+ beforeEach(() => {
+ spectator = createComponent({
+ detectChanges: false,
+ props: {
+ accept: ['image/*', '.ts']
+ }
+ });
+
+ component = spectator.component;
+ component.editorRef.editor = EDITOR_MOCK as monaco.editor.IStandaloneCodeEditor;
+ dotUploadService = spectator.inject(DotUploadService, true);
+
+ spectator.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+
+ describe('Editor', () => {
+ it('should set editor language', fakeAsync(() => {
+ component.form.setValue({
+ name: 'script.js',
+ content: 'test'
+ });
+
+ tick(1000);
+
+ expect(component.editorOptions).toEqual({
+ ...component.editorOptions,
+ language: 'javascript'
+ });
+ expect(component.mimeType).toBe('text/javascript');
+ }));
+
+ it('should emit cancel event when cancel button is clicked', () => {
+ const spy = jest.spyOn(component.cancel, 'emit');
+ const cancelBtn = spectator.query(byTestId('cancel-button'));
+
+ spectator.click(cancelBtn);
+
+ expect(spy).toHaveBeenCalled();
+ });
+
+ it('should emit tempFileUploaded event when import button is clicked if form is valid', () => {
+ const spy = jest.spyOn(component.tempFileUploaded, 'emit');
+ const spyFormDisabled = jest.spyOn(component.form, 'disable');
+ const spyFormEnabled = jest.spyOn(component.form, 'enable');
+ const spyFileUpload = jest
+ .spyOn(dotUploadService, 'uploadFile')
+ .mockReturnValue(Promise.resolve(TEMP_FILE_MOCK));
+ const importBtn = spectator.query('[data-testId="import-button"] button');
+
+ component.form.setValue({
+ name: 'file-name.ts',
+ content: 'test'
+ });
+
+ spectator.click(importBtn);
+
+ expect(spy).toHaveBeenCalledWith(TEMP_FILE_MOCK);
+ expect(spyFileUpload).toHaveBeenCalled();
+ expect(spyFormDisabled).toHaveBeenCalled();
+ expect(spyFormEnabled).toHaveBeenCalled();
+ });
+
+ it('should not emit tempFileUploaded event when import button is clicked if form is invalid', () => {
+ const spy = jest.spyOn(component.tempFileUploaded, 'emit');
+ const spyFormDisabled = jest.spyOn(component.form, 'disable');
+ const spyFormEnabled = jest.spyOn(component.form, 'enable');
+ const spyFileUpload = jest
+ .spyOn(dotUploadService, 'uploadFile')
+ .mockReturnValue(Promise.resolve(TEMP_FILE_MOCK));
+ const importBtn = spectator.query('[data-testId="import-button"] button');
+
+ component.form.setValue({
+ name: '',
+ content: ''
+ });
+
+ spectator.click(importBtn);
+
+ expect(spyFileUpload).not.toHaveBeenCalled();
+ expect(spyFormDisabled).not.toHaveBeenCalled();
+ expect(spyFormEnabled).not.toHaveBeenCalled();
+ expect(spy).not.toHaveBeenCalled();
+ });
+
+ it('should mark name control as dirty when import button is clicked and name control is invalid', () => {
+ const spyDirty = jest.spyOn(component.form.get('name'), 'markAsDirty');
+ const spyDdateValueAndValidity = jest.spyOn(
+ component.form.get('name'),
+ 'updateValueAndValidity'
+ );
+ const importBtn = spectator.query('[data-testId="import-button"] button');
+
+ spectator.click(importBtn);
+
+ expect(spyDirty).toHaveBeenCalled();
+ expect(spyDdateValueAndValidity).toHaveBeenCalled();
+ });
+
+ it('should set form as invalid when accept is not valid', fakeAsync(() => {
+ const spy = jest.spyOn(component.name, 'setErrors');
+
+ component.form.setValue({
+ name: 'test.ts',
+ content: 'test'
+ });
+
+ tick(1000);
+
+ expect(spy).toHaveBeenCalledWith({
+ invalidExtension:
+ 'This type of file is not supported. Please use a image/*, .ts file.'
+ });
+ expect(component.form.valid).toBe(false);
+ }));
+
+ afterEach(() => {
+ jest.restoreAllMocks();
+ });
+ });
+});
diff --git a/core-web/libs/contenttype-fields/src/lib/fields/binary-field/components/dot-binary-field-editor/dot-binary-field-editor.component.ts b/core-web/libs/contenttype-fields/src/lib/fields/binary-field/components/dot-binary-field-editor/dot-binary-field-editor.component.ts
new file mode 100644
index 000000000000..f780c97aeb2a
--- /dev/null
+++ b/core-web/libs/contenttype-fields/src/lib/fields/binary-field/components/dot-binary-field-editor/dot-binary-field-editor.component.ts
@@ -0,0 +1,193 @@
+import {
+ MonacoEditorComponent,
+ MonacoEditorConstructionOptions,
+ MonacoEditorModule
+} from '@materia-ui/ngx-monaco-editor';
+import { from } from 'rxjs';
+
+import { CommonModule } from '@angular/common';
+import {
+ AfterViewInit,
+ ChangeDetectionStrategy,
+ ChangeDetectorRef,
+ Component,
+ EventEmitter,
+ Input,
+ OnInit,
+ Output,
+ ViewChild,
+ inject
+} from '@angular/core';
+import {
+ FormControl,
+ FormGroup,
+ FormsModule,
+ ReactiveFormsModule,
+ Validators
+} from '@angular/forms';
+
+import { ButtonModule } from 'primeng/button';
+import { InputTextModule } from 'primeng/inputtext';
+
+import { debounceTime } from 'rxjs/operators';
+
+import { DotMessageService, DotUploadService } from '@dotcms/data-access';
+import { DotCMSTempFile } from '@dotcms/dotcms-models';
+import { DotFieldValidationMessageComponent, DotMessagePipe } from '@dotcms/ui';
+
+const EDITOR_CONFIG: MonacoEditorConstructionOptions = {
+ theme: 'vs',
+ minimap: {
+ enabled: false
+ },
+ cursorBlinking: 'solid',
+ overviewRulerBorder: false,
+ mouseWheelZoom: false,
+ lineNumbers: 'on',
+ roundedSelection: false,
+ automaticLayout: true,
+ language: 'text'
+};
+
+@Component({
+ selector: 'dot-dot-binary-field-editor',
+ standalone: true,
+ imports: [
+ CommonModule,
+ MonacoEditorModule,
+ FormsModule,
+ ReactiveFormsModule,
+ InputTextModule,
+ ButtonModule,
+ DotMessagePipe,
+ DotFieldValidationMessageComponent
+ ],
+ templateUrl: './dot-binary-field-editor.component.html',
+ styleUrls: ['./dot-binary-field-editor.component.scss'],
+ changeDetection: ChangeDetectionStrategy.OnPush
+})
+export class DotBinaryFieldEditorComponent implements OnInit, AfterViewInit {
+ @Input() accept: string[];
+
+ @Output() readonly tempFileUploaded = new EventEmitter();
+ @Output() readonly cancel = new EventEmitter();
+
+ @ViewChild('editorRef', { static: true }) editorRef!: MonacoEditorComponent;
+
+ private readonly cd: ChangeDetectorRef = inject(ChangeDetectorRef);
+ private readonly dotUploadService: DotUploadService = inject(DotUploadService);
+ private readonly dotMessageService: DotMessageService = inject(DotMessageService);
+
+ private extension = '';
+ private invalidFileMessage = '';
+ private editor: monaco.editor.IStandaloneCodeEditor;
+ readonly form = new FormGroup({
+ name: new FormControl('', [Validators.required, Validators.pattern(/^.+\..+$/)]),
+ content: new FormControl('')
+ });
+
+ editorOptions = EDITOR_CONFIG;
+ mimeType = '';
+
+ get name(): FormControl {
+ return this.form.get('name') as FormControl;
+ }
+
+ get content(): FormControl {
+ return this.form.get('content') as FormControl;
+ }
+
+ ngOnInit(): void {
+ this.name.valueChanges
+ .pipe(debounceTime(350))
+ .subscribe((name) => this.setEditorLanguage(name));
+ this.invalidFileMessage = this.dotMessageService.get(
+ 'dot.binary.field.error.type.file.not.supported.message',
+ this.accept.join(', ')
+ );
+ }
+
+ ngAfterViewInit(): void {
+ this.editor = this.editorRef.editor;
+ }
+
+ onSubmit(): void {
+ if (this.form.invalid) {
+ if (!this.name.dirty) {
+ this.markControlInvalid(this.name);
+ }
+
+ return;
+ }
+
+ const file = new File([this.content.value], this.name.value, {
+ type: this.mimeType
+ });
+ this.uploadFile(file);
+ }
+
+ private markControlInvalid(control: FormControl): void {
+ control.markAsDirty();
+ control.updateValueAndValidity();
+ this.cd.detectChanges();
+ }
+
+ private uploadFile(file: File) {
+ const obs$ = from(this.dotUploadService.uploadFile({ file }));
+ this.disableEditor();
+ obs$.subscribe((tempFile) => {
+ this.enableEditor();
+ this.tempFileUploaded.emit(tempFile);
+ });
+ }
+
+ private setEditorLanguage(fileName: string = '') {
+ const fileExtension = fileName?.split('.').pop();
+ const { id, mimetypes, extensions } = this.getLanguage(fileExtension) || {};
+ this.mimeType = mimetypes?.[0];
+ this.extension = extensions?.[0];
+
+ if (!this.isValidType()) {
+ this.name.setErrors({ invalidExtension: this.invalidFileMessage });
+ }
+
+ this.updateEditorLanguage(id);
+ this.cd.detectChanges();
+ }
+
+ private getLanguage(fileExtension: string) {
+ // Global Object Defined by Monaco Editor
+ return monaco.languages
+ .getLanguages()
+ .find((language) => language.extensions?.includes(`.${fileExtension}`));
+ }
+
+ private updateEditorLanguage(languageId: string = 'text') {
+ this.editorOptions = {
+ ...this.editorOptions,
+ language: languageId
+ };
+ }
+
+ private disableEditor() {
+ this.form.disable();
+ this.editor.updateOptions({
+ readOnly: true
+ });
+ }
+
+ private enableEditor() {
+ this.form.enable();
+ this.editor.updateOptions({
+ readOnly: false
+ });
+ }
+
+ private isValidType(): boolean {
+ if (this.accept?.length === 0) {
+ return true;
+ }
+
+ return this.accept?.includes(this.extension) || this.accept?.includes(this.mimeType);
+ }
+}
diff --git a/core-web/libs/contenttype-fields/src/lib/fields/binary-field/components/dot-binary-field-url-mode/dot-binary-field-url-mode.component.spec.ts b/core-web/libs/contenttype-fields/src/lib/fields/binary-field/components/dot-binary-field-url-mode/dot-binary-field-url-mode.component.spec.ts
index f02459873a92..36752c972263 100644
--- a/core-web/libs/contenttype-fields/src/lib/fields/binary-field/components/dot-binary-field-url-mode/dot-binary-field-url-mode.component.spec.ts
+++ b/core-web/libs/contenttype-fields/src/lib/fields/binary-field/components/dot-binary-field-url-mode/dot-binary-field-url-mode.component.spec.ts
@@ -15,6 +15,7 @@ import { TEMP_FILE_MOCK } from '../../store/binary-field.store.spec';
describe('DotBinaryFieldUrlModeComponent', () => {
let spectator: Spectator;
+ let component: DotBinaryFieldUrlModeComponent;
let store: DotBinaryFieldUrlModeStore;
@@ -47,6 +48,7 @@ describe('DotBinaryFieldUrlModeComponent', () => {
detectChanges: false
});
+ component = spectator.component;
store = spectator.inject(DotBinaryFieldUrlModeStore, true);
spectator.detectChanges();
});
@@ -65,22 +67,24 @@ describe('DotBinaryFieldUrlModeComponent', () => {
describe('Actions', () => {
it('should upload file by url form when click on import button', async () => {
+ const spy = jest.spyOn(component.tempFileUploaded, 'emit');
const spyUploadFileByUrl = jest.spyOn(store, 'uploadFileByUrl');
- const button = spectator.query('[data-testId="import-button"] button');
+ const importButton = spectator.query('[data-testId="import-button"] button');
const form = spectator.component.form;
form.setValue({ url: 'http://dotcms.com' });
- spectator.click(button);
+ spectator.click(importButton);
+ expect(spy).toHaveBeenCalledWith(TEMP_FILE_MOCK);
expect(spectator.component.form.valid).toBeTruthy();
expect(spyUploadFileByUrl).toHaveBeenCalled();
});
it('should cancel when click on cancel button', () => {
const spyCancel = jest.spyOn(spectator.component.cancel, 'emit');
- const button = spectator.query('[data-testId="cancel-button"] button');
+ const cancelButton = spectator.query('[data-testId="cancel-button"] button');
- spectator.click(button);
+ spectator.click(cancelButton);
expect(spyCancel).toHaveBeenCalled();
});
diff --git a/core-web/libs/contenttype-fields/src/lib/utils/mock.ts b/core-web/libs/contenttype-fields/src/lib/utils/mock.ts
index dd168caaa596..2adbd829a2a4 100644
--- a/core-web/libs/contenttype-fields/src/lib/utils/mock.ts
+++ b/core-web/libs/contenttype-fields/src/lib/utils/mock.ts
@@ -14,12 +14,17 @@ const MESSAGES_MOCK = {
'Couldn't load the file. Please try again or
',
'dot.binary.field.drag.and.drop.error.file.not.supported.message':
'This type of file is not supported, Please select a
{0} file.',
+ 'dot.binary.field.error.type.file.not.supported.message':
+ 'This type of file is not supported. Please use a {0} file.',
+ 'dot.binary.field.error.type.file.not.extension': "Please add the file's extension",
'dot.binary.field.drag.and.drop.error.file.maxsize.exceeded.message':
'The file weight exceeds the limits of {0}, please
reduce size before uploading.',
'dot.binary.field.drag.and.drop.error.server.error.message':
'Something went wrong, please try again or
contact our support team.',
'dot.common.cancel': 'Cancel',
- 'dot.common.import': 'Import'
+ 'dot.common.import': 'Import',
+ 'dot.common.save': 'Save',
+ 'error.form.validator.required': 'This field is required'
};
export const CONTENTTYPE_FIELDS_MESSAGE_MOCK = new MockDotMessageService(MESSAGES_MOCK);
diff --git a/core-web/libs/ui/src/lib/components/dot-field-validation-message/dot-field-validation-message.component.spec.ts b/core-web/libs/ui/src/lib/components/dot-field-validation-message/dot-field-validation-message.component.spec.ts
index 9f41ca6376fe..c9559a5caa56 100644
--- a/core-web/libs/ui/src/lib/components/dot-field-validation-message/dot-field-validation-message.component.spec.ts
+++ b/core-web/libs/ui/src/lib/components/dot-field-validation-message/dot-field-validation-message.component.spec.ts
@@ -14,13 +14,14 @@ const messageServiceMock = new MockDotMessageService({
'contentType.errors.input.maxlength': 'Value must be no more than {0} characters',
'error.form.validator.maxlength': 'Max length error',
'error.form.validator.required': 'Required error',
+ 'error.form.validator.pattern': 'Pattern error',
'contentType.form.variable.placeholder': 'Will be auto-generated if left empty'
});
@Component({ selector: 'dot-custom-host', template: '' })
class CustomHostComponent {
defaultMessage = 'Required';
- control = new UntypedFormControl('', Validators.required);
+ control = new UntypedFormControl('', [Validators.required, Validators.pattern(/^.+\..+$/)]);
}
describe('FieldValidationComponent', () => {
@@ -37,7 +38,7 @@ describe('FieldValidationComponent', () => {
]
});
- describe('Using default message', () => {
+ describe('Using validators messages', () => {
beforeEach(() => {
spectator = createHost(
`
@@ -52,7 +53,7 @@ describe('FieldValidationComponent', () => {
it('should hide the message when field it is valid', () => {
expect(spectator.hostComponent.control.valid).toBe(false);
- spectator.hostComponent.control.setValue('valid-content');
+ spectator.hostComponent.control.setValue('match-pattern.js');
expect(spectator.hostComponent.control.valid).toBe(true);
expect(spectator.queryHost(byTestId('error-msg'))).not.toExist();
@@ -72,9 +73,25 @@ describe('FieldValidationComponent', () => {
expect(spectator.queryHost(byTestId('error-msg'))).toExist();
});
+
+ it('should show the message when field has not valid pattern', () => {
+ expect(spectator.hostComponent.control.valid).toBe(false);
+ expect(spectator.hostComponent.control.dirty).toBe(false);
+
+ spectator.hostComponent.control.setValue('not match pattern');
+ spectator.hostComponent.control.markAsDirty();
+
+ spectator.detectComponentChanges();
+
+ expect(spectator.hostComponent.control.valid).toBe(false);
+ expect(spectator.hostComponent.control.dirty).toBe(true);
+
+ expect(spectator.queryHost(byTestId('error-msg'))).toExist();
+ expect(spectator.queryHost(byTestId('error-msg'))).toContainText('Pattern error');
+ });
});
- describe('Using validators messages', () => {
+ describe('Using default message', () => {
beforeEach(() => {
spectator = createHost(
`
diff --git a/core-web/libs/ui/src/lib/components/dot-field-validation-message/dot-field-validation-message.component.ts b/core-web/libs/ui/src/lib/components/dot-field-validation-message/dot-field-validation-message.component.ts
index de2ece159cc9..5fda3d3f13d4 100644
--- a/core-web/libs/ui/src/lib/components/dot-field-validation-message/dot-field-validation-message.component.ts
+++ b/core-web/libs/ui/src/lib/components/dot-field-validation-message/dot-field-validation-message.component.ts
@@ -20,11 +20,12 @@ import { DotMessageService } from '@dotcms/data-access';
import { DotMessagePipe } from '../../dot-message/dot-message.pipe';
-type DefaultsNGValidatorsTypes = 'maxlength' | 'required';
+type DefaultsNGValidatorsTypes = 'maxlength' | 'required' | 'pattern';
const NG_DEFAULT_VALIDATORS_ERRORS_MSG: Record = {
maxlength: 'error.form.validator.maxlength',
- required: 'error.form.validator.required'
+ required: 'error.form.validator.required',
+ pattern: 'error.form.validator.pattern'
};
@Component({
@@ -35,6 +36,9 @@ const NG_DEFAULT_VALIDATORS_ERRORS_MSG: Record = new Subject();
@@ -100,7 +104,7 @@ export class DotFieldValidationMessageComponent implements OnDestroy {
Object.entries(errors).forEach(([key, value]) => {
if (key in NG_DEFAULT_VALIDATORS_ERRORS_MSG) {
let errorTranslated = '';
- const { requiredLength } = value;
+ const { requiredLength, requiredPattern } = value;
switch (key) {
case 'maxlength':
errorTranslated = this.dotMessageService.get(
@@ -109,6 +113,13 @@ export class DotFieldValidationMessageComponent implements OnDestroy {
);
break;
+ case 'pattern':
+ errorTranslated = this.dotMessageService.get(
+ this.patternErrorMessage || NG_DEFAULT_VALIDATORS_ERRORS_MSG[key],
+ requiredPattern
+ );
+ break;
+
default:
errorTranslated = NG_DEFAULT_VALIDATORS_ERRORS_MSG[key];
break;
diff --git a/dotCMS/src/main/webapp/WEB-INF/messages/Language.properties b/dotCMS/src/main/webapp/WEB-INF/messages/Language.properties
index 55da884758e6..2497888a1307 100644
--- a/dotCMS/src/main/webapp/WEB-INF/messages/Language.properties
+++ b/dotCMS/src/main/webapp/WEB-INF/messages/Language.properties
@@ -1153,12 +1153,15 @@ dot.binary.field.dialog.import.from.url.header=URL
dot.binary.field.drag.and.drop.message=Drag and Drop or
dot.binary.field.drag.and.drop.error.could.not.load.message=Couldn't load the file. Please try again or
dot.binary.field.drag.and.drop.error.file.not.supported.message=This type of file is not supported, Please select a
{0} file.
+dot.binary.field.error.type.file.not.supported.message=This type of file is not supported. Please use a {0} file.
+dot.binary.field.error.type.file.not.extension=Please add the file's extension
dot.binary.field.drag.and.drop.error.file.maxsize.exceeded.message=The file weight exceeds the limits of {0}, please
reduce size before uploading.
dot.binary.field.drag.and.drop.error.server.error.message=Something went wrong, please try again or
contact our support team.
dot.common.apply=Apply
dot.common.archived=Archived
dot.common.cancel=Cancel
dot.common.import=Import
+dot.common.save=Save
dot.common.content.search=Content Search
dot.common.dialog.accept=Accept
dot.common.dialog.reject=Cancel
@@ -5189,6 +5192,7 @@ Story-Block=Block Editor
html-render=HTML Render
error.form.validator.maxlength=This field cannot have more than {0} characters
error.form.validator.required=This field is required
+error.form.validator.pattern=This field must match the pattern {0}
analytics.app.override.not.allowed=dotAnalytics is configured using environmental variables - any configuration done within the App screen will be ignored
analytics.app.not.configured=The Analytics App is not fully configured. Please open the Apps tool, and provide values for the following missing properties in the Analytics Integration: {0}
content.has.change=Content has changed, proceed?
diff --git a/dotCMS/src/main/webapp/html/binary-field.js b/dotCMS/src/main/webapp/html/binary-field.js
index 9e6c59ac8534..7cdcf8aa034a 100644
--- a/dotCMS/src/main/webapp/html/binary-field.js
+++ b/dotCMS/src/main/webapp/html/binary-field.js
@@ -1 +1 @@
-var runtime=function(c){"use strict";var l,M=Object.prototype,p=M.hasOwnProperty,w=Object.defineProperty||function(r,t,e){r[t]=e.value},O="function"==typeof Symbol?Symbol:{},L=O.iterator||"@@iterator",z=O.asyncIterator||"@@asyncIterator",_=O.toStringTag||"@@toStringTag";function v(r,t,e){return Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}),r[t]}try{v({},"")}catch{v=function(t,e,o){return t[e]=o}}function R(r,t,e,o){var i=Object.create((t&&t.prototype instanceof j?t:j).prototype),a=new I(o||[]);return w(i,"_invoke",{value:H(r,e,a)}),i}function k(r,t,e){try{return{type:"normal",arg:r.call(t,e)}}catch(o){return{type:"throw",arg:o}}}c.wrap=R;var Y="suspendedStart",q="executing",b="completed",s={};function j(){}function S(){}function d(){}var N={};v(N,L,function(){return this});var T=Object.getPrototypeOf,E=T&&T(T(A([])));E&&E!==M&&p.call(E,L)&&(N=E);var g=d.prototype=j.prototype=Object.create(N);function D(r){["next","throw","return"].forEach(function(t){v(r,t,function(e){return this._invoke(t,e)})})}function G(r,t){function e(i,a,u,h){var f=k(r[i],r,a);if("throw"!==f.type){var C=f.arg,m=C.value;return m&&"object"==typeof m&&p.call(m,"__await")?t.resolve(m.__await).then(function(y){e("next",y,u,h)},function(y){e("throw",y,u,h)}):t.resolve(m).then(function(y){C.value=y,u(C)},function(y){return e("throw",y,u,h)})}h(f.arg)}var o;w(this,"_invoke",{value:function n(i,a){function u(){return new t(function(h,f){e(i,a,h,f)})}return o=o?o.then(u,u):u()}})}function H(r,t,e){var o=Y;return function(i,a){if(o===q)throw new Error("Generator is already running");if(o===b){if("throw"===i)throw a;return $()}for(e.method=i,e.arg=a;;){var u=e.delegate;if(u){var h=W(u,e);if(h){if(h===s)continue;return h}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(o===Y)throw o=b,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);o=q;var f=k(r,t,e);if("normal"===f.type){if(o=e.done?b:"suspendedYield",f.arg===s)continue;return{value:f.arg,done:e.done}}"throw"===f.type&&(o=b,e.method="throw",e.arg=f.arg)}}}function W(r,t){var e=t.method,o=r.iterator[e];if(o===l)return t.delegate=null,"throw"===e&&r.iterator.return&&(t.method="return",t.arg=l,W(r,t),"throw"===t.method)||"return"!==e&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+e+"' method")),s;var n=k(o,r.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,s;var i=n.arg;return i?i.done?(t[r.resultName]=i.value,t.next=r.nextLoc,"return"!==t.method&&(t.method="next",t.arg=l),t.delegate=null,s):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,s)}function J(r){var t={tryLoc:r[0]};1 in r&&(t.catchLoc=r[1]),2 in r&&(t.finallyLoc=r[2],t.afterLoc=r[3]),this.tryEntries.push(t)}function P(r){var t=r.completion||{};t.type="normal",delete t.arg,r.completion=t}function I(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(J,this),this.reset(!0)}function A(r){if(r){var t=r[L];if(t)return t.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var e=-1,o=function n(){for(;++e=0;--o){var n=this.tryEntries[o],i=n.completion;if("root"===n.tryLoc)return e("end");if(n.tryLoc<=this.prev){var a=p.call(n,"catchLoc"),u=p.call(n,"finallyLoc");if(a&&u){if(this.prev=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&p.call(o,"finallyLoc")&&this.prev=0;--t){var e=this.tryEntries[t];if(e.finallyLoc===r)return this.complete(e.completion,e.afterLoc),P(e),s}},catch:function(r){for(var t=this.tryEntries.length-1;t>=0;--t){var e=this.tryEntries[t];if(e.tryLoc===r){var o=e.completion;if("throw"===o.type){var n=o.arg;P(e)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(r,t,e){return this.delegate={iterator:A(r),resultName:t,nextLoc:e},"next"===this.method&&(this.arg=l),s}},c}("object"==typeof module?module.exports:{});try{regeneratorRuntime=runtime}catch{"object"==typeof globalThis?globalThis.regeneratorRuntime=runtime:Function("r","regeneratorRuntime = r")(runtime)}(()=>{"use strict";var e,m={},_={};function r(e){var i=_[e];if(void 0!==i)return i.exports;var t=_[e]={exports:{}};return m[e](t,t.exports,r),t.exports}r.m=m,e=[],r.O=(i,t,a,f)=>{if(!t){var n=1/0;for(o=0;o=f)&&Object.keys(r.O).every(b=>r.O[b](t[u]))?t.splice(u--,1):(s=!1,f0&&e[o-1][2]>f;o--)e[o]=e[o-1];e[o]=[t,a,f]},(()=>{var i,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__;r.t=function(t,a){if(1&a&&(t=this(t)),8&a||"object"==typeof t&&t&&(4&a&&t.__esModule||16&a&&"function"==typeof t.then))return t;var f=Object.create(null);r.r(f);var o={};i=i||[null,e({}),e([]),e(e)];for(var n=2&a&&t;"object"==typeof n&&!~i.indexOf(n);n=e(n))Object.getOwnPropertyNames(n).forEach(s=>o[s]=()=>t[s]);return o.default=()=>t,r.d(f,o),f}})(),r.d=(e,i)=>{for(var t in i)r.o(i,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:i[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((i,t)=>(r.f[t](e,i),i),[])),r.u=e=>(8592===e?"common":e)+".js",r.miniCssF=e=>{},r.o=(e,i)=>Object.prototype.hasOwnProperty.call(e,i),(()=>{var e={},i="contenttype-fields-builder:";r.l=(t,a,f,o)=>{if(e[t])e[t].push(a);else{var n,s;if(void 0!==f)for(var u=document.getElementsByTagName("script"),l=0;l{n.onerror=n.onload=null,clearTimeout(p);var y=e[t];if(delete e[t],n.parentNode&&n.parentNode.removeChild(n),y&&y.forEach(g=>g(b)),v)return v(b)},p=setTimeout(c.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=c.bind(null,n.onerror),n.onload=c.bind(null,n.onload),s&&document.head.appendChild(n)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:i=>i},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={3666:0};r.f.j=(a,f)=>{var o=r.o(e,a)?e[a]:void 0;if(0!==o)if(o)f.push(o[2]);else if(3666!=a){var n=new Promise((d,c)=>o=e[a]=[d,c]);f.push(o[2]=n);var s=r.p+r.u(a),u=new Error;r.l(s,d=>{if(r.o(e,a)&&(0!==(o=e[a])&&(e[a]=void 0),o)){var c=d&&("load"===d.type?"missing":d.type),p=d&&d.target&&d.target.src;u.message="Loading chunk "+a+" failed.\n("+c+": "+p+")",u.name="ChunkLoadError",u.type=c,u.request=p,o[1](u)}},"chunk-"+a,a)}else e[a]=0},r.O.j=a=>0===e[a];var i=(a,f)=>{var u,l,[o,n,s]=f,d=0;if(o.some(p=>0!==e[p])){for(u in n)r.o(n,u)&&(r.m[u]=n[u]);if(s)var c=s(r)}for(a&&a(f);d{!function(e){const n=e.performance;function i(I){n&&n.mark&&n.mark(I)}function r(I,_){n&&n.measure&&n.measure(I,_)}i("Zone");const c=e.__Zone_symbol_prefix||"__zone_symbol__";function u(I){return c+I}const f=!0===e[u("forceDuplicateZoneCheck")];if(e.Zone){if(f||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let p=(()=>{class I{constructor(t,o){this._parent=t,this._name=o?o.name||"unnamed":"",this._properties=o&&o.properties||{},this._zoneDelegate=new T(this,this._parent&&this._parent._zoneDelegate,o)}static assertZonePatched(){if(e.Promise!==K.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 t=I.current;for(;t.parent;)t=t.parent;return t}static get current(){return G.zone}static get currentTask(){return te}static __load_patch(t,o,y=!1){if(K.hasOwnProperty(t)){if(!y&&f)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const P="Zone:"+t;i(P),K[t]=o(e,I,le),r(P,P)}}get parent(){return this._parent}get name(){return this._name}get(t){const o=this.getZoneWith(t);if(o)return o._properties[t]}getZoneWith(t){let o=this;for(;o;){if(o._properties.hasOwnProperty(t))return o;o=o._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,o){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const y=this._zoneDelegate.intercept(this,t,o),P=this;return function(){return P.runGuarded(y,this,arguments,o)}}run(t,o,y,P){G={parent:G,zone:this};try{return this._zoneDelegate.invoke(this,t,o,y,P)}finally{G=G.parent}}runGuarded(t,o=null,y,P){G={parent:G,zone:this};try{try{return this._zoneDelegate.invoke(this,t,o,y,P)}catch(J){if(this._zoneDelegate.handleError(this,J))throw J}}finally{G=G.parent}}runTask(t,o,y){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||z).name+"; Execution: "+this.name+")");if(t.state===H&&(t.type===R||t.type===M))return;const P=t.state!=X;P&&t._transitionTo(X,Z),t.runCount++;const J=te;te=t,G={parent:G,zone:this};try{t.type==M&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,o,y)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{t.state!==H&&t.state!==Y&&(t.type==R||t.data&&t.data.isPeriodic?P&&t._transitionTo(Z,X):(t.runCount=0,this._updateTaskCount(t,-1),P&&t._transitionTo(H,X,H))),G=G.parent,te=J}}scheduleTask(t){if(t.zone&&t.zone!==this){let y=this;for(;y;){if(y===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);y=y.parent}}t._transitionTo(W,H);const o=[];t._zoneDelegates=o,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(y){throw t._transitionTo(Y,W,H),this._zoneDelegate.handleError(this,y),y}return t._zoneDelegates===o&&this._updateTaskCount(t,1),t.state==W&&t._transitionTo(Z,W),t}scheduleMicroTask(t,o,y,P){return this.scheduleTask(new m(v,t,o,y,P,void 0))}scheduleMacroTask(t,o,y,P,J){return this.scheduleTask(new m(M,t,o,y,P,J))}scheduleEventTask(t,o,y,P,J){return this.scheduleTask(new m(R,t,o,y,P,J))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||z).name+"; Execution: "+this.name+")");t._transitionTo(A,Z,X);try{this._zoneDelegate.cancelTask(this,t)}catch(o){throw t._transitionTo(Y,A),this._zoneDelegate.handleError(this,o),o}return this._updateTaskCount(t,-1),t._transitionTo(H,A),t.runCount=0,t}_updateTaskCount(t,o){const y=t._zoneDelegates;-1==o&&(t._zoneDelegates=null);for(let P=0;PI.hasTask(t,o),onScheduleTask:(I,_,t,o)=>I.scheduleTask(t,o),onInvokeTask:(I,_,t,o,y,P)=>I.invokeTask(t,o,y,P),onCancelTask:(I,_,t,o)=>I.cancelTask(t,o)};class T{constructor(_,t,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=_,this._parentDelegate=t,this._forkZS=o&&(o&&o.onFork?o:t._forkZS),this._forkDlgt=o&&(o.onFork?t:t._forkDlgt),this._forkCurrZone=o&&(o.onFork?this.zone:t._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:t._interceptZS),this._interceptDlgt=o&&(o.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:t._invokeZS),this._invokeDlgt=o&&(o.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:t._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:t._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:t._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:t._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const y=o&&o.onHasTask;(y||t&&t._hasTaskZS)&&(this._hasTaskZS=y?o:g,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=_,o.onScheduleTask||(this._scheduleTaskZS=g,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),o.onInvokeTask||(this._invokeTaskZS=g,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),o.onCancelTask||(this._cancelTaskZS=g,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(_,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,_,t):new p(_,t)}intercept(_,t,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,_,t,o):t}invoke(_,t,o,y,P){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,_,t,o,y,P):t.apply(o,y)}handleError(_,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,_,t)}scheduleTask(_,t){let o=t;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,_,t),o||(o=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=v)throw new Error("Task is missing scheduleFn.");d(t)}return o}invokeTask(_,t,o,y){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,_,t,o,y):t.callback.apply(o,y)}cancelTask(_,t){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,_,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");o=t.cancelFn(t)}return o}hasTask(_,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,_,t)}catch(o){this.handleError(_,o)}}_updateTaskCount(_,t){const o=this._taskCounts,y=o[_],P=o[_]=y+t;if(P<0)throw new Error("More tasks executed then were scheduled.");0!=y&&0!=P||this.hasTask(this.zone,{microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:_})}}class m{constructor(_,t,o,y,P,J){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=_,this.source=t,this.data=y,this.scheduleFn=P,this.cancelFn=J,!o)throw new Error("callback is not defined");this.callback=o;const l=this;this.invoke=_===R&&y&&y.useG?m.invokeTask:function(){return m.invokeTask.call(e,l,this,arguments)}}static invokeTask(_,t,o){_||(_=this),re++;try{return _.runCount++,_.zone.runTask(_,t,o)}finally{1==re&&L(),re--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(H,W)}_transitionTo(_,t,o){if(this._state!==t&&this._state!==o)throw new Error(`${this.type} '${this.source}': can not transition to '${_}', expecting state '${t}'${o?" or '"+o+"'":""}, was '${this._state}'.`);this._state=_,_==H&&(this._zoneDelegates=null)}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}}}const D=u("setTimeout"),S=u("Promise"),O=u("then");let E,F=[],V=!1;function d(I){if(0===re&&0===F.length)if(E||e[S]&&(E=e[S].resolve(0)),E){let _=E[O];_||(_=E.then),_.call(E,L)}else e[D](L,0);I&&F.push(I)}function L(){if(!V){for(V=!0;F.length;){const I=F;F=[];for(let _=0;_G,onUnhandledError:B,microtaskDrainDone:B,scheduleMicroTask:d,showUncaughtError:()=>!p[u("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:B,patchMethod:()=>B,bindArguments:()=>[],patchThen:()=>B,patchMacroTask:()=>B,patchEventPrototype:()=>B,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>B,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>B,wrapWithCurrentZone:()=>B,filterProperties:()=>[],attachOriginToPatched:()=>B,_redefineProperty:()=>B,patchCallbacks:()=>B};let G={parent:null,zone:new p(null,null)},te=null,re=0;function B(){}r("Zone","Zone"),e.Zone=p}(typeof window<"u"&&window||typeof self<"u"&&self||global);const fe=Object.getOwnPropertyDescriptor,be=Object.defineProperty,ye=Object.getPrototypeOf,lt=Object.create,ut=Array.prototype.slice,De="addEventListener",Ze="removeEventListener",Oe=Zone.__symbol__(De),Ie=Zone.__symbol__(Ze),se="true",ie="false",ge=Zone.__symbol__("");function Le(e,n){return Zone.current.wrap(e,n)}function Me(e,n,i,r,c){return Zone.current.scheduleMacroTask(e,n,i,r,c)}const x=Zone.__symbol__,we=typeof window<"u",de=we?window:void 0,$=we&&de||"object"==typeof self&&self||global,ht=[null];function Ae(e,n){for(let i=e.length-1;i>=0;i--)"function"==typeof e[i]&&(e[i]=Le(e[i],n+"_"+i));return e}function Fe(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const Be=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Pe=!("nw"in $)&&typeof $.process<"u"&&"[object process]"==={}.toString.call($.process),He=!Pe&&!Be&&!(!we||!de.HTMLElement),Ue=typeof $.process<"u"&&"[object process]"==={}.toString.call($.process)&&!Be&&!(!we||!de.HTMLElement),Re={},qe=function(e){if(!(e=e||$.event))return;let n=Re[e.type];n||(n=Re[e.type]=x("ON_PROPERTY"+e.type));const i=this||e.target||$,r=i[n];let c;return He&&i===de&&"error"===e.type?(c=r&&r.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===c&&e.preventDefault()):(c=r&&r.apply(this,arguments),null!=c&&!c&&e.preventDefault()),c};function We(e,n,i){let r=fe(e,n);if(!r&&i&&fe(i,n)&&(r={enumerable:!0,configurable:!0}),!r||!r.configurable)return;const c=x("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete r.writable,delete r.value;const u=r.get,f=r.set,p=n.substr(2);let g=Re[p];g||(g=Re[p]=x("ON_PROPERTY"+p)),r.set=function(T){let m=this;!m&&e===$&&(m=$),m&&(m[g]&&m.removeEventListener(p,qe),f&&f.apply(m,ht),"function"==typeof T?(m[g]=T,m.addEventListener(p,qe,!1)):m[g]=null)},r.get=function(){let T=this;if(!T&&e===$&&(T=$),!T)return null;const m=T[g];if(m)return m;if(u){let D=u&&u.call(this);if(D)return r.set.call(this,D),"function"==typeof T.removeAttribute&&T.removeAttribute(n),D}return null},be(e,n,r),e[c]=!0}function Xe(e,n,i){if(n)for(let r=0;rfunction(f,p){const g=i(f,p);return g.cbIdx>=0&&"function"==typeof p[g.cbIdx]?Me(g.name,p[g.cbIdx],g,c):u.apply(f,p)})}function ae(e,n){e[x("OriginalDelegate")]=n}let Ye=!1,je=!1;function mt(){if(Ye)return je;Ye=!0;try{const e=de.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(je=!0)}catch{}return je}Zone.__load_patch("ZoneAwarePromise",(e,n,i)=>{const r=Object.getOwnPropertyDescriptor,c=Object.defineProperty,f=i.symbol,p=[],g=!0===e[f("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],T=f("Promise"),m=f("then");i.onUnhandledError=l=>{if(i.showUncaughtError()){const s=l&&l.rejection;s?console.error("Unhandled Promise rejection:",s instanceof Error?s.message:s,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",s,s instanceof Error?s.stack:void 0):console.error(l)}},i.microtaskDrainDone=()=>{for(;p.length;){const l=p.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(s){O(s)}}};const S=f("unhandledPromiseRejectionHandler");function O(l){i.onUnhandledError(l);try{const s=n[S];"function"==typeof s&&s.call(this,l)}catch{}}function F(l){return l&&l.then}function V(l){return l}function E(l){return t.reject(l)}const d=f("state"),L=f("value"),z=f("finally"),H=f("parentPromiseValue"),W=f("parentPromiseState"),X=null,A=!0,Y=!1;function M(l,s){return a=>{try{G(l,s,a)}catch(h){G(l,!1,h)}}}const le=f("currentTaskTrace");function G(l,s,a){const h=function(){let l=!1;return function(a){return function(){l||(l=!0,a.apply(null,arguments))}}}();if(l===a)throw new TypeError("Promise resolved with itself");if(l[d]===X){let w=null;try{("object"==typeof a||"function"==typeof a)&&(w=a&&a.then)}catch(N){return h(()=>{G(l,!1,N)})(),l}if(s!==Y&&a instanceof t&&a.hasOwnProperty(d)&&a.hasOwnProperty(L)&&a[d]!==X)re(a),G(l,a[d],a[L]);else if(s!==Y&&"function"==typeof w)try{w.call(a,h(M(l,s)),h(M(l,!1)))}catch(N){h(()=>{G(l,!1,N)})()}else{l[d]=s;const N=l[L];if(l[L]=a,l[z]===z&&s===A&&(l[d]=l[W],l[L]=l[H]),s===Y&&a instanceof Error){const k=n.currentTask&&n.currentTask.data&&n.currentTask.data.__creationTrace__;k&&c(a,le,{configurable:!0,enumerable:!1,writable:!0,value:k})}for(let k=0;k{try{const b=l[L],C=!!a&&z===a[z];C&&(a[H]=b,a[W]=N);const j=s.run(k,void 0,C&&k!==E&&k!==V?[]:[b]);G(a,!0,j)}catch(b){G(a,!1,b)}},a)}const _=function(){};class t{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(s){return G(new this(null),A,s)}static reject(s){return G(new this(null),Y,s)}static race(s){let a,h,w=new this((b,C)=>{a=b,h=C});function N(b){a(b)}function k(b){h(b)}for(let b of s)F(b)||(b=this.resolve(b)),b.then(N,k);return w}static all(s){return t.allWithCallback(s)}static allSettled(s){return(this&&this.prototype instanceof t?this:t).allWithCallback(s,{thenCallback:h=>({status:"fulfilled",value:h}),errorCallback:h=>({status:"rejected",reason:h})})}static allWithCallback(s,a){let h,w,N=new this((j,U)=>{h=j,w=U}),k=2,b=0;const C=[];for(let j of s){F(j)||(j=this.resolve(j));const U=b;try{j.then(Q=>{C[U]=a?a.thenCallback(Q):Q,k--,0===k&&h(C)},Q=>{a?(C[U]=a.errorCallback(Q),k--,0===k&&h(C)):w(Q)})}catch(Q){w(Q)}k++,b++}return k-=2,0===k&&h(C),N}constructor(s){const a=this;if(!(a instanceof t))throw new Error("Must be an instanceof Promise.");a[d]=X,a[L]=[];try{s&&s(M(a,A),M(a,Y))}catch(h){G(a,!1,h)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(s,a){let h=this.constructor[Symbol.species];(!h||"function"!=typeof h)&&(h=this.constructor||t);const w=new h(_),N=n.current;return this[d]==X?this[L].push(N,w,s,a):B(this,N,w,s,a),w}catch(s){return this.then(null,s)}finally(s){let a=this.constructor[Symbol.species];(!a||"function"!=typeof a)&&(a=t);const h=new a(_);h[z]=z;const w=n.current;return this[d]==X?this[L].push(w,h,s,s):B(this,w,h,s,s),h}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;const o=e[T]=e.Promise;e.Promise=t;const y=f("thenPatched");function P(l){const s=l.prototype,a=r(s,"then");if(a&&(!1===a.writable||!a.configurable))return;const h=s.then;s[m]=h,l.prototype.then=function(w,N){return new t((b,C)=>{h.call(this,b,C)}).then(w,N)},l[y]=!0}return i.patchThen=P,o&&(P(o),ce(e,"fetch",l=>function J(l){return function(s,a){let h=l.apply(s,a);if(h instanceof t)return h;let w=h.constructor;return w[y]||P(w),h}}(l))),Promise[n.__symbol__("uncaughtPromiseErrors")]=p,t}),Zone.__load_patch("toString",e=>{const n=Function.prototype.toString,i=x("OriginalDelegate"),r=x("Promise"),c=x("Error"),u=function(){if("function"==typeof this){const T=this[i];if(T)return"function"==typeof T?n.call(T):Object.prototype.toString.call(T);if(this===Promise){const m=e[r];if(m)return n.call(m)}if(this===Error){const m=e[c];if(m)return n.call(m)}}return n.call(this)};u[i]=n,Function.prototype.toString=u;const f=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":f.call(this)}});let pe=!1;if(typeof window<"u")try{const e=Object.defineProperty({},"passive",{get:function(){pe=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{pe=!1}const Et={useG:!0},ee={},$e={},Je=new RegExp("^"+ge+"(\\w+)(true|false)$"),xe=x("propagationStopped");function Ke(e,n){const i=(n?n(e):e)+ie,r=(n?n(e):e)+se,c=ge+i,u=ge+r;ee[e]={},ee[e][ie]=c,ee[e][se]=u}function Tt(e,n,i){const r=i&&i.add||De,c=i&&i.rm||Ze,u=i&&i.listeners||"eventListeners",f=i&&i.rmAll||"removeAllListeners",p=x(r),g="."+r+":",T="prependListener",m="."+T+":",D=function(E,d,L){if(E.isRemoved)return;const z=E.callback;"object"==typeof z&&z.handleEvent&&(E.callback=W=>z.handleEvent(W),E.originalDelegate=z),E.invoke(E,d,[L]);const H=E.options;H&&"object"==typeof H&&H.once&&d[c].call(d,L.type,E.originalDelegate?E.originalDelegate:E.callback,H)},S=function(E){if(!(E=E||e.event))return;const d=this||E.target||e,L=d[ee[E.type][ie]];if(L)if(1===L.length)D(L[0],d,E);else{const z=L.slice();for(let H=0;Hfunction(c,u){c[xe]=!0,r&&r.apply(c,u)})}function gt(e,n,i,r,c){const u=Zone.__symbol__(r);if(n[u])return;const f=n[u]=n[r];n[r]=function(p,g,T){return g&&g.prototype&&c.forEach(function(m){const D=`${i}.${r}::`+m,S=g.prototype;if(S.hasOwnProperty(m)){const O=e.ObjectGetOwnPropertyDescriptor(S,m);O&&O.value?(O.value=e.wrapWithCurrentZone(O.value,D),e._redefineProperty(g.prototype,m,O)):S[m]&&(S[m]=e.wrapWithCurrentZone(S[m],D))}else S[m]&&(S[m]=e.wrapWithCurrentZone(S[m],D))}),f.call(n,p,g,T)},e.attachOriginToPatched(n[r],f)}const Ve=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],wt=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],et=["load"],tt=["blur","error","focus","load","resize","scroll","messageerror"],St=["bounce","finish","start"],nt=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],_e=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],Dt=["close","error","open","message"],Zt=["error","message"],me=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],Ve,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function rt(e,n,i){if(!i||0===i.length)return n;const r=i.filter(u=>u.target===e);if(!r||0===r.length)return n;const c=r[0].ignoreProperties;return n.filter(u=>-1===c.indexOf(u))}function q(e,n,i,r){e&&Xe(e,rt(e,n,i),r)}Zone.__load_patch("util",(e,n,i)=>{i.patchOnProperties=Xe,i.patchMethod=ce,i.bindArguments=Ae,i.patchMacroTask=pt;const r=n.__symbol__("BLACK_LISTED_EVENTS"),c=n.__symbol__("UNPATCHED_EVENTS");e[c]&&(e[r]=e[c]),e[r]&&(n[r]=n[c]=e[r]),i.patchEventPrototype=yt,i.patchEventTarget=Tt,i.isIEOrEdge=mt,i.ObjectDefineProperty=be,i.ObjectGetOwnPropertyDescriptor=fe,i.ObjectCreate=lt,i.ArraySlice=ut,i.patchClass=ke,i.wrapWithCurrentZone=Le,i.filterProperties=rt,i.attachOriginToPatched=ae,i._redefineProperty=Object.defineProperty,i.patchCallbacks=gt,i.getGlobalObjects=()=>({globalSources:$e,zoneSymbolEventNames:ee,eventNames:me,isBrowser:He,isMix:Ue,isNode:Pe,TRUE_STR:se,FALSE_STR:ie,ZONE_SYMBOL_PREFIX:ge,ADD_EVENT_LISTENER_STR:De,REMOVE_EVENT_LISTENER_STR:Ze})});const Ne=x("zoneTask");function Ee(e,n,i,r){let c=null,u=null;i+=r;const f={};function p(T){const m=T.data;return m.args[0]=function(){return T.invoke.apply(this,arguments)},m.handleId=c.apply(e,m.args),T}function g(T){return u.call(e,T.data.handleId)}c=ce(e,n+=r,T=>function(m,D){if("function"==typeof D[0]){const S={isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?D[1]||0:void 0,args:D},O=D[0];D[0]=function(){try{return O.apply(this,arguments)}finally{S.isPeriodic||("number"==typeof S.handleId?delete f[S.handleId]:S.handleId&&(S.handleId[Ne]=null))}};const F=Me(n,D[0],S,p,g);if(!F)return F;const V=F.data.handleId;return"number"==typeof V?f[V]=F:V&&(V[Ne]=F),V&&V.ref&&V.unref&&"function"==typeof V.ref&&"function"==typeof V.unref&&(F.ref=V.ref.bind(V),F.unref=V.unref.bind(V)),"number"==typeof V||V?V:F}return T.apply(e,D)}),u=ce(e,i,T=>function(m,D){const S=D[0];let O;"number"==typeof S?O=f[S]:(O=S&&S[Ne],O||(O=S)),O&&"string"==typeof O.type?"notScheduled"!==O.state&&(O.cancelFn&&O.data.isPeriodic||0===O.runCount)&&("number"==typeof S?delete f[S]:S&&(S[Ne]=null),O.zone.cancelTask(O)):T.apply(e,D)})}Zone.__load_patch("legacy",e=>{const n=e[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("queueMicrotask",(e,n,i)=>{i.patchMethod(e,"queueMicrotask",r=>function(c,u){n.current.scheduleMicroTask("queueMicrotask",u[0])})}),Zone.__load_patch("timers",e=>{const n="set",i="clear";Ee(e,n,i,"Timeout"),Ee(e,n,i,"Interval"),Ee(e,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{Ee(e,"request","cancel","AnimationFrame"),Ee(e,"mozRequest","mozCancel","AnimationFrame"),Ee(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,n)=>{const i=["alert","prompt","confirm"];for(let r=0;rfunction(g,T){return n.current.run(u,e,T,p)})}),Zone.__load_patch("EventTarget",(e,n,i)=>{(function Mt(e,n){n.patchEventPrototype(e,n)})(e,i),function Lt(e,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:r,TRUE_STR:c,FALSE_STR:u,ZONE_SYMBOL_PREFIX:f}=n.getGlobalObjects();for(let g=0;g{ke("MutationObserver"),ke("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,n,i)=>{ke("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,n,i)=>{ke("FileReader")}),Zone.__load_patch("on_property",(e,n,i)=>{!function Ot(e,n){if(Pe&&!Ue||Zone[e.symbol("patchEvents")])return;const i=typeof WebSocket<"u",r=n.__Zone_ignore_on_properties;if(He){const f=window,p=function _t(){try{const e=de.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:f,ignoreProperties:["error"]}]:[];q(f,me.concat(["messageerror"]),r&&r.concat(p),ye(f)),q(Document.prototype,me,r),typeof f.SVGElement<"u"&&q(f.SVGElement.prototype,me,r),q(Element.prototype,me,r),q(HTMLElement.prototype,me,r),q(HTMLMediaElement.prototype,wt,r),q(HTMLFrameSetElement.prototype,Ve.concat(tt),r),q(HTMLBodyElement.prototype,Ve.concat(tt),r),q(HTMLFrameElement.prototype,et,r),q(HTMLIFrameElement.prototype,et,r);const g=f.HTMLMarqueeElement;g&&q(g.prototype,St,r);const T=f.Worker;T&&q(T.prototype,Zt,r)}const c=n.XMLHttpRequest;c&&q(c.prototype,nt,r);const u=n.XMLHttpRequestEventTarget;u&&q(u&&u.prototype,nt,r),typeof IDBIndex<"u"&&(q(IDBIndex.prototype,_e,r),q(IDBRequest.prototype,_e,r),q(IDBOpenDBRequest.prototype,_e,r),q(IDBDatabase.prototype,_e,r),q(IDBTransaction.prototype,_e,r),q(IDBCursor.prototype,_e,r)),i&&q(WebSocket.prototype,Dt,r)}(i,e)}),Zone.__load_patch("customElements",(e,n,i)=>{!function It(e,n){const{isBrowser:i,isMix:r}=n.getGlobalObjects();(i||r)&&e.customElements&&"customElements"in e&&n.patchCallbacks(n,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,i)}),Zone.__load_patch("XHR",(e,n)=>{!function g(T){const m=T.XMLHttpRequest;if(!m)return;const D=m.prototype;let O=D[Oe],F=D[Ie];if(!O){const v=T.XMLHttpRequestEventTarget;if(v){const M=v.prototype;O=M[Oe],F=M[Ie]}}const V="readystatechange",E="scheduled";function d(v){const M=v.data,R=M.target;R[u]=!1,R[p]=!1;const K=R[c];O||(O=R[Oe],F=R[Ie]),K&&F.call(R,V,K);const le=R[c]=()=>{if(R.readyState===R.DONE)if(!M.aborted&&R[u]&&v.state===E){const te=R[n.__symbol__("loadfalse")];if(0!==R.status&&te&&te.length>0){const re=v.invoke;v.invoke=function(){const B=R[n.__symbol__("loadfalse")];for(let I=0;Ifunction(v,M){return v[r]=0==M[2],v[f]=M[1],H.apply(v,M)}),Z=x("fetchTaskAborting"),X=x("fetchTaskScheduling"),A=ce(D,"send",()=>function(v,M){if(!0===n.current[X]||v[r])return A.apply(v,M);{const R={target:v,url:v[f],isPeriodic:!1,args:M,aborted:!1},K=Me("XMLHttpRequest.send",L,R,d,z);v&&!0===v[p]&&!R.aborted&&K.state===E&&K.invoke()}}),Y=ce(D,"abort",()=>function(v,M){const R=function S(v){return v[i]}(v);if(R&&"string"==typeof R.type){if(null==R.cancelFn||R.data&&R.data.aborted)return;R.zone.cancelTask(R)}else if(!0===n.current[Z])return Y.apply(v,M)})}(e);const i=x("xhrTask"),r=x("xhrSync"),c=x("xhrListener"),u=x("xhrScheduled"),f=x("xhrURL"),p=x("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function dt(e,n){const i=e.constructor.name;for(let r=0;r{const g=function(){return p.apply(this,Ae(arguments,i+"."+c))};return ae(g,p),g})(u)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function i(r){return function(c){Qe(e,r).forEach(f=>{const p=e.PromiseRejectionEvent;if(p){const g=new p(r,{promise:c.promise,reason:c.rejection});f.invoke(g)}})}}e.PromiseRejectionEvent&&(n[x("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[x("rejectionHandledHandler")]=i("rejectionhandled"))})}},Se=>{Se(Se.s=88583)}]);(self.webpackChunkcontenttype_fields_builder=self.webpackChunkcontenttype_fields_builder||[]).push([[179],{26186:(fi,Yo,En)=>{"use strict";function tt(n){return"function"==typeof n}let Wt=!1;const Fe={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else Wt&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Wt=n},get useDeprecatedSynchronousErrorHandling(){return Wt}};function vt(n){setTimeout(()=>{throw n},0)}const qn={closed:!0,next(n){},error(n){if(Fe.useDeprecatedSynchronousErrorHandling)throw n;vt(n)},complete(){}},Gt=Array.isArray||(n=>n&&"number"==typeof n.length);function vl(n){return null!==n&&"object"==typeof n}const Zo=(()=>{function n(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return n.prototype=Object.create(Error.prototype),n})();class ge{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof ge)e.remove(this);else if(null!==e)for(let s=0;st.concat(e instanceof Zo?e.errors:e),[])}ge.EMPTY=((n=new ge).closed=!0,n);const Xo="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class we extends ge{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=qn;break;case 1:if(!t){this.destination=qn;break}if("object"==typeof t){t instanceof we?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new Ff(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new Ff(this,t,e,i)}}[Xo](){return this}static create(t,e,i){const r=new we(t,e,i);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class Ff extends we{constructor(t,e,i,r){super(),this._parentSubscriber=t;let o,s=this;tt(e)?o=e:e&&(o=e.next,i=e.error,r=e.complete,e!==qn&&(s=Object.create(e),tt(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=i,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;Fe.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=Fe;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):vt(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;vt(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);Fe.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),Fe.useDeprecatedSynchronousErrorHandling)throw i;vt(i)}}__tryOrSetError(t,e,i){if(!Fe.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return Fe.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(vt(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const kr="function"==typeof Symbol&&Symbol.observable||"@@observable";function Lf(n){return n}let ye=(()=>{class n{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:o}=this,s=function TE(n,t,e){if(n){if(n instanceof we)return n;if(n[Xo])return n[Xo]()}return n||t||e?new we(n,t,e):new we(qn)}(e,i,r);if(s.add(o?o.call(s,this.source):this.source||Fe.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),Fe.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){Fe.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function IE(n){for(;n;){const{closed:t,destination:e,isStopped:i}=n;if(t||i)return!1;n=e&&e instanceof we?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=jf(i))((r,o)=>{let s;s=this.subscribe(a=>{try{e(a)}catch(l){o(l),s&&s.unsubscribe()}},o,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[kr](){return this}pipe(...e){return 0===e.length?this:function kf(n){return 0===n.length?Lf:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}(e)(this)}toPromise(e){return new(e=jf(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return n.create=t=>new n(t),n})();function jf(n){if(n||(n=Fe.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Hi=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class Vf extends ge{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class Bf extends we{constructor(t){super(t),this.destination=t}}let Kn=(()=>{class n extends ye{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Xo](){return new Bf(this)}lift(e){const i=new Hf(this,this);return i.operator=e,i}next(e){if(this.closed)throw new Hi;if(!this.isStopped){const{observers:i}=this,r=i.length,o=i.slice();for(let s=0;snew Hf(t,e),n})();class Hf extends Kn{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):ge.EMPTY}}function bl(n){return n&&"function"==typeof n.schedule}function ht(n,t){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new ME(n,t))}}class ME{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new AE(t,this.project,this.thisArg))}}class AE extends we{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const Uf=n=>t=>{for(let e=0,i=n.length;en&&"number"==typeof n.length&&"function"!=typeof n;function zf(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Dl=n=>{if(n&&"function"==typeof n[kr])return(n=>t=>{const e=n[kr]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)})(n);if($f(n))return Uf(n);if(zf(n))return(n=>t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,vt),t))(n);if(n&&"function"==typeof n[Jo])return(n=>t=>{const e=n[Jo]();for(;;){let i;try{i=e.next()}catch(r){return t.error(r),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof e.return&&t.add(()=>{e.return&&e.return()}),t})(n);{const e=`You provided ${vl(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function El(n,t){return new ye(e=>{const i=new ge;let r=0;return i.add(t.schedule(function(){r!==n.length?(e.next(n[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function Wf(n,t){if(null!=n){if(function kE(n){return n&&"function"==typeof n[kr]}(n))return function RE(n,t){return new ye(e=>{const i=new ge;return i.add(t.schedule(()=>{const r=n[kr]();i.add(r.subscribe({next(o){i.add(t.schedule(()=>e.next(o)))},error(o){i.add(t.schedule(()=>e.error(o)))},complete(){i.add(t.schedule(()=>e.complete()))}}))})),i})}(n,t);if(zf(n))return function FE(n,t){return new ye(e=>{const i=new ge;return i.add(t.schedule(()=>n.then(r=>{i.add(t.schedule(()=>{e.next(r),i.add(t.schedule(()=>e.complete()))}))},r=>{i.add(t.schedule(()=>e.error(r)))}))),i})}(n,t);if($f(n))return El(n,t);if(function jE(n){return n&&"function"==typeof n[Jo]}(n)||"string"==typeof n)return function LE(n,t){if(!n)throw new Error("Iterable cannot be null");return new ye(e=>{const i=new ge;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(()=>{r=n[Jo](),i.add(t.schedule(function(){if(e.closed)return;let o,s;try{const a=r.next();o=a.value,s=a.done}catch(a){return void e.error(a)}s?e.complete():(e.next(o),this.schedule())}))})),i})}(n,t)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}function Ui(n,t){return t?Wf(n,t):n instanceof ye?n:new ye(Dl(n))}class es extends we{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class ts extends we{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function ns(n,t){if(t.closed)return;if(n instanceof ye)return n.subscribe(t);let e;try{e=Dl(n)(t)}catch(i){t.error(i)}return e}function Sl(n,t,e=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe(Sl((r,o)=>Ui(n(r,o)).pipe(ht((s,a)=>t(r,s,o,a))),e)):("number"==typeof t&&(e=t),i=>i.lift(new VE(n,e)))}class VE{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new BE(t,this.project,this.concurrent))}}class BE extends ts{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Cl(n,t){return t?El(n,t):new ye(Uf(n))}function Gf(...n){let t=Number.POSITIVE_INFINITY,e=null,i=n[n.length-1];return bl(i)?(e=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(t=n.pop())):"number"==typeof i&&(t=n.pop()),null===e&&1===n.length&&n[0]instanceof ye?n[0]:function HE(n=Number.POSITIVE_INFINITY){return Sl(Lf,n)}(t)(Cl(n,e))}function qf(){return function(t){return t.lift(new UE(t))}}class UE{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const r=new $E(t,i),o=e.subscribe(r);return r.closed||(r.connection=i.connect()),o}}class $E extends we{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=t._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class zE extends ye{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new ge,t.add(this.source.subscribe(new GE(this.getSubject(),this))),t.closed&&(this._connection=null,t=ge.EMPTY)),t}refCount(){return qf()(this)}}const WE=(()=>{const n=zE.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class GE extends Bf{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}class QE{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:i}=this,r=this.subjectFactory(),o=i(r).subscribe(t);return o.add(e.subscribe(r)),o}}function YE(){return new Kn}function ce(n){for(let t in n)if(n[t]===ce)return t;throw Error("Could not find renamed property on target object.")}function wl(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function ue(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(ue).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function Il(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const XE=ce({__forward_ref__:ce});function de(n){return n.__forward_ref__=de,n.toString=function(){return ue(this())},n}function O(n){return Tl(n)?n():n}function Tl(n){return"function"==typeof n&&n.hasOwnProperty(XE)&&n.__forward_ref__===de}function Ml(n){return n&&!!n.\u0275providers}const Kf="https://g.co/ng/security#xss";class D extends Error{constructor(t,e){super(function is(n,t){return`NG0${Math.abs(n)}${t?": "+t.trim():""}`}(t,e)),this.code=t}}function V(n){return"string"==typeof n?n:null==n?"":String(n)}function rs(n,t){throw new D(-201,!1)}function Pt(n,t){null==n&&function oe(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function U(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function xe(n){return{providers:n.providers||[],imports:n.imports||[]}}function os(n){return Qf(n,ss)||Qf(n,Zf)}function Qf(n,t){return n.hasOwnProperty(t)?n[t]:null}function Yf(n){return n&&(n.hasOwnProperty(Al)||n.hasOwnProperty(sS))?n[Al]:null}const ss=ce({\u0275prov:ce}),Al=ce({\u0275inj:ce}),Zf=ce({ngInjectableDef:ce}),sS=ce({ngInjectorDef:ce});var k=(()=>((k=k||{})[k.Default=0]="Default",k[k.Host=1]="Host",k[k.Self=2]="Self",k[k.SkipSelf=4]="SkipSelf",k[k.Optional=8]="Optional",k))();let xl;function Ot(n){const t=xl;return xl=n,t}function Xf(n,t,e){const i=os(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&k.Optional?null:void 0!==t?t:void rs(ue(n))}const fe=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),jr={},Pl="__NG_DI_FLAG__",as="ngTempTokenPath",cS=/\n/gm,Jf="__source";let Vr;function $i(n){const t=Vr;return Vr=n,t}function dS(n,t=k.Default){if(void 0===Vr)throw new D(-203,!1);return null===Vr?Xf(n,void 0,t):Vr.get(n,t&k.Optional?null:void 0,t)}function A(n,t=k.Default){return(function aS(){return xl}()||dS)(O(n),t)}function Br(n,t=k.Default){return A(n,ls(t))}function ls(n){return typeof n>"u"||"number"==typeof n?n:0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function Ol(n){const t=[];for(let e=0;e((qt=qt||{})[qt.OnPush=0]="OnPush",qt[qt.Default=1]="Default",qt))(),Kt=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Kt||(Kt={})),Kt))();const Sn={},ne=[],cs=ce({\u0275cmp:ce}),Nl=ce({\u0275dir:ce}),Rl=ce({\u0275pipe:ce}),th=ce({\u0275mod:ce}),Cn=ce({\u0275fac:ce}),Ur=ce({__NG_ELEMENT_ID__:ce});let mS=0;function Nt(n){return Yn(()=>{const e=!0===n.standalone,i={},r={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===qt.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||ne,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Kt.Emulated,id:"c"+mS++,styles:n.styles||ne,_:null,setInput:null,schemas:n.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},o=n.dependencies,s=n.features;return r.inputs=rh(n.inputs,i),r.outputs=rh(n.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(nh).filter(ih):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(it).filter(ih):null,r})}function nh(n){return se(n)||ze(n)}function ih(n){return null!==n}function Le(n){return Yn(()=>({type:n.type,bootstrap:n.bootstrap||ne,declarations:n.declarations||ne,imports:n.imports||ne,exports:n.exports||ne,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function rh(n,t){if(null==n)return Sn;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,t&&(t[r]=o)}return e}const L=Nt;function nt(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function se(n){return n[cs]||null}function ze(n){return n[Nl]||null}function it(n){return n[Rl]||null}const G=11;function Et(n){return Array.isArray(n)&&"object"==typeof n[1]}function Yt(n){return Array.isArray(n)&&!0===n[1]}function kl(n){return 0!=(4&n.flags)}function qr(n){return n.componentOffset>-1}function ps(n){return 1==(1&n.flags)}function Zt(n){return null!==n.template}function _S(n){return 0!=(256&n[2])}function pi(n,t){return n.hasOwnProperty(Cn)?n[Cn]:null}class uh{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function In(){return dh}function dh(n){return n.type.prototype.ngOnChanges&&(n.setInput=ES),DS}function DS(){const n=hh(this),t=n?.current;if(t){const e=n.previous;if(e===Sn)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function ES(n,t,e,i){const r=this.declaredInputs[e],o=hh(n)||function SS(n,t){return n[fh]=t}(n,{previous:Sn,current:null}),s=o.current||(o.current={}),a=o.previous,l=a[r];s[r]=new uh(l&&l.currentValue,t,a===Sn),n[i]=t}In.ngInherit=!0;const fh="__ngSimpleChanges__";function hh(n){return n[fh]||null}function Ue(n){for(;Array.isArray(n);)n=n[0];return n}function ms(n,t){return Ue(t[n])}function St(n,t){return Ue(t[n.index])}function gh(n,t){return n.data[t]}function Ki(n,t){return n[t]}function Ct(n,t){const e=t[n];return Et(e)?e:e[0]}function gs(n){return 64==(64&n[2])}function Zn(n,t){return null==t?null:n[t]}function yh(n){n[18]=0}function Vl(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const B={lFrame:Th(null),bindingsEnabled:!0};function vh(){return B.bindingsEnabled}function v(){return B.lFrame.lView}function Z(){return B.lFrame.tView}function _e(n){return B.lFrame.contextLView=n,n[8]}function ve(n){return B.lFrame.contextLView=null,n}function $e(){let n=bh();for(;null!==n&&64===n.type;)n=n.parent;return n}function bh(){return B.lFrame.currentTNode}function un(n,t){const e=B.lFrame;e.currentTNode=n,e.isParent=t}function Bl(){return B.lFrame.isParent}function Hl(){B.lFrame.isParent=!1}function ot(){const n=B.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function Qi(){return B.lFrame.bindingIndex++}function Mn(n){const t=B.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function LS(n,t){const e=B.lFrame;e.bindingIndex=e.bindingRootIndex=n,Ul(t)}function Ul(n){B.lFrame.currentDirectiveIndex=n}function Ch(){return B.lFrame.currentQueryIndex}function zl(n){B.lFrame.currentQueryIndex=n}function jS(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function wh(n,t,e){if(e&k.SkipSelf){let r=t,o=n;for(;!(r=r.parent,null!==r||e&k.Host||(r=jS(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;t=r,n=o}const i=B.lFrame=Ih();return i.currentTNode=t,i.lView=n,!0}function Wl(n){const t=Ih(),e=n[1];B.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function Ih(){const n=B.lFrame,t=null===n?null:n.child;return null===t?Th(n):t}function Th(n){const 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:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function Mh(){const n=B.lFrame;return B.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Ah=Mh;function Gl(){const n=Mh();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function st(){return B.lFrame.selectedIndex}function mi(n){B.lFrame.selectedIndex=n}function be(){const n=B.lFrame;return gh(n.tView,n.selectedIndex)}function ys(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e=i)break}else t[l]<0&&(n[18]+=65536),(a>11>16&&(3&n[2])===t){n[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class Qr{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Ql(n,t,e){let i=0;for(;it){s=o-1;break}}}for(;o>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let Yl=!0;function Es(n){const t=Yl;return Yl=n,t}let XS=0;const dn={};function Ss(n,t){const e=kh(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,Zl(i.data,n),Zl(t,null),Zl(i.blueprint,null));const r=Xl(n,t),o=n.injectorIndex;if(Rh(r)){const s=bs(r),a=Ds(r,t),l=a[1].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|l[s+c]}return t[o+8]=r,o}function Zl(n,t){n.push(0,0,0,0,0,0,0,0,t)}function kh(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function Xl(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){if(i=zh(r),null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function Jl(n,t,e){!function JS(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Ur)&&(i=e[Ur]),null==i&&(i=e[Ur]=XS++);const r=255&i;t.data[n+(r>>5)]|=1<=0?255&t:iC:t}(e);if("function"==typeof o){if(!wh(t,n,i))return i&k.Host?jh(r,0,i):Vh(t,e,i,r);try{const s=o(i);if(null!=s||i&k.Optional)return s;rs()}finally{Ah()}}else if("number"==typeof o){let s=null,a=kh(n,t),l=-1,c=i&k.Host?t[16][6]:null;for((-1===a||i&k.SkipSelf)&&(l=-1===a?Xl(n,t):t[a+8],-1!==l&&$h(i,!1)?(s=t[1],a=bs(l),t=Ds(l,t)):a=-1);-1!==a;){const u=t[1];if(Uh(o,a,u.data)){const d=tC(a,t,e,s,i,c);if(d!==dn)return d}l=t[a+8],-1!==l&&$h(i,t[1].data[a+8]===c)&&Uh(o,a,t)?(s=u,a=bs(l),t=Ds(l,t)):a=-1}}return r}function tC(n,t,e,i,r,o){const s=t[1],a=s.data[n+8],u=Cs(a,s,e,null==i?qr(a)&&Yl:i!=s&&0!=(3&a.type),r&k.Host&&o===a);return null!==u?gi(t,s,u,a):dn}function Cs(n,t,e,i,r){const o=n.providerIndexes,s=t.data,a=1048575&o,l=n.directiveStart,u=o>>20,f=r?a+u:n.directiveEnd;for(let h=i?a:a+u;h=l&&p.type===e)return h}if(r){const h=s[l];if(h&&Zt(h)&&h.type===e)return l}return null}function gi(n,t,e,i){let r=n[e];const o=t.data;if(function KS(n){return n instanceof Qr}(r)){const s=r;s.resolving&&function JE(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new D(-200,`Circular dependency in DI detected for ${n}${e}`)}(function re(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():V(n)}(o[e]));const a=Es(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Ot(s.injectImpl):null;wh(n,i,k.Default);try{r=n[e]=s.factory(void 0,o,n,i),t.firstCreatePass&&e>=i.directiveStart&&function GS(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(i){const s=dh(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o))}(e,o[e],t)}finally{null!==l&&Ot(l),Es(a),s.resolving=!1,Ah()}}return r}function Uh(n,t,e){return!!(e[t+(n>>5)]&1<{const t=ec(O(n));return t&&t()}:pi(n)}function zh(n){const t=n[1],e=t.type;return 2===e?t.declTNode:1===e?n[6]:null}const Ji="__parameters__";function tr(n,t,e){return Yn(()=>{const i=function nc(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(Ji)?l[Ji]:Object.defineProperty(l,Ji,{value:[]})[Ji];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class x{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=U({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function yi(n,t){n.forEach(e=>Array.isArray(e)?yi(e,t):t(e))}function Gh(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function ws(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Jr(n,t){const e=[];for(let i=0;i=0?n[1|i]=e:(i=~i,function lC(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function rc(n,t){const e=nr(n,t);if(e>=0)return n[1|e]}function nr(n,t){return function qh(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=n[o<t?r=o:i=o+1}return~(r<({token:n})),-1),Ms=Hr(tr("Optional"),8),As=Hr(tr("SkipSelf"),4);var pt=(()=>((pt=pt||{})[pt.Important=1]="Important",pt[pt.DashCase=2]="DashCase",pt))();const cc=new Map;let xC=0;const dc="__ngContext__";function Ke(n,t){Et(t)?(n[dc]=t[20],function OC(n){cc.set(n[20],n)}(t)):n[dc]=t}function hc(n,t){return undefined(n,t)}function io(n){const t=n[3];return Yt(t)?t[3]:t}function pc(n){return hp(n[13])}function mc(n){return hp(n[4])}function hp(n){for(;null!==n&&!Yt(n);)n=n[4];return n}function rr(n,t,e,i,r){if(null!=i){let o,s=!1;Yt(i)?o=i:Et(i)&&(s=!0,i=i[0]);const a=Ue(i);0===n&&null!==e?null==r?vp(t,e,a):_i(t,e,a,r||null,!0):1===n&&null!==e?_i(t,e,a,r||null,!0):2===n?function Ec(n,t,e){const i=Os(n,t);i&&function XC(n,t,e,i){n.removeChild(t,e,i)}(n,i,t,e)}(t,a,s):3===n&&t.destroyNode(a),null!=o&&function tw(n,t,e,i,r){const o=e[7];o!==Ue(e)&&rr(t,n,i,o,r);for(let a=10;a0&&(n[e-1][4]=i[4]);const o=ws(n,10+t);!function zC(n,t){ro(n,t,t[G],2,null,null),t[0]=null,t[6]=null}(i[1],i);const s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function gp(n,t){if(!(128&t[2])){const e=t[G];e.destroyNode&&ro(n,t,e,3,null,null),function qC(n){let t=n[13];if(!t)return vc(n[1],n);for(;t;){let e=null;if(Et(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)Et(t)&&vc(t[1],t),t=t[3];null===t&&(t=n),Et(t)&&vc(t[1],t),e=t&&t[4]}t=e}}(t)}}function vc(n,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function ZC(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i=0?i[r=s]():i[r=-s].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;o-1){const{encapsulation:o}=n.data[i.directiveStart+r];if(o===Kt.None||o===Kt.Emulated)return null}return St(i,e)}}(n,t.parent,e)}function _i(n,t,e,i,r){n.insertBefore(t,e,i,r)}function vp(n,t,e){n.appendChild(t,e)}function bp(n,t,e,i,r){null!==i?_i(n,t,e,i,r):vp(n,t,e)}function Os(n,t){return n.parentNode(t)}function Dp(n,t,e){return Sp(n,t,e)}let Fs,wc,Ls,Sp=function Ep(n,t,e){return 40&n.type?St(n,e):null};function Ns(n,t,e,i){const r=yp(n,i,t),o=t[G],a=Dp(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(e))for(let l=0;ln,createScript:n=>n,createScriptURL:n=>n})}catch{}return Fs}()?.createHTML(n)||n}function xp(n){return function Ic(){if(void 0===Ls&&(Ls=null,fe.trustedTypes))try{Ls=fe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Ls}()?.createHTML(n)||n}class Np{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Kf})`}}function Xn(n){return n instanceof Np?n.changingThisBreaksApplicationSecurity:n}class pw{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(vi(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class mw{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=vi(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=vi(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0"),!0}endElement(t){const e=t.nodeName.toLowerCase();Mc.hasOwnProperty(e)&&!Fp.hasOwnProperty(e)&&(this.buf.push(""),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Vp(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const bw=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Dw=/([^\#-~ |!])/g;function Vp(n){return n.replace(/&/g,"&").replace(bw,function(t){return""+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Dw,function(t){return""+t.charCodeAt(0)+";"}).replace(//g,">")}let ks;function xc(n){return"content"in n&&function Sw(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var Pe=(()=>((Pe=Pe||{})[Pe.NONE=0]="NONE",Pe[Pe.HTML=1]="HTML",Pe[Pe.STYLE=2]="STYLE",Pe[Pe.SCRIPT=3]="SCRIPT",Pe[Pe.URL=4]="URL",Pe[Pe.RESOURCE_URL=5]="RESOURCE_URL",Pe))();function Bp(n){const t=function ao(){const n=v();return n&&n[12]}();return t?xp(t.sanitize(Pe.HTML,n)||""):function oo(n,t){const e=function hw(n){return n instanceof Np&&n.getTypeName()||null}(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see ${Kf})`)}return e===t}(n,"HTML")?xp(Xn(n)):function Ew(n,t){let e=null;try{ks=ks||function Rp(n){const t=new mw(n);return function gw(){try{return!!(new window.DOMParser).parseFromString(vi(""),"text/html")}catch{return!1}}()?new pw(t):t}(n);let i=t?String(t):"";e=ks.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=ks.getInertBodyElement(i)}while(i!==o);return vi((new vw).sanitizeChildren(xc(e)||e))}finally{if(e){const i=xc(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}(function Ap(){return void 0!==wc?wc:typeof document<"u"?document:void 0}(),V(n))}const $p=new x("ENVIRONMENT_INITIALIZER"),zp=new x("INJECTOR",-1),Wp=new x("INJECTOR_DEF_TYPES");class Gp{get(t,e=jr){if(e===jr){const i=new Error(`NullInjectorError: No provider for ${ue(t)}!`);throw i.name="NullInjectorError",i}return e}}function Pw(...n){return{\u0275providers:qp(0,n),\u0275fromNgModule:!0}}function qp(n,...t){const e=[],i=new Set;let r;return yi(t,o=>{const s=o;Pc(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&Kp(r,e),e}function Kp(n,t){for(let e=0;e{t.push(o)})}}function Pc(n,t,e,i){if(!(n=O(n)))return!1;let r=null,o=Yf(n);const s=!o&&se(n);if(o||s){if(s&&!s.standalone)return!1;r=n}else{const l=n.ngModule;if(o=Yf(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)Pc(c,t,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{yi(o.imports,u=>{Pc(u,t,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&Kp(c,t)}if(!a){const c=pi(r)||(()=>new r);t.push({provide:r,useFactory:c,deps:ne},{provide:Wp,useValue:r,multi:!0},{provide:$p,useValue:()=>A(r),multi:!0})}const l=o.providers;null==l||a||Oc(l,u=>{t.push(u)})}}return r!==n&&void 0!==n.providers}function Oc(n,t){for(let e of n)Ml(e)&&(e=e.\u0275providers),Array.isArray(e)?Oc(e,t):t(e)}const Ow=ce({provide:String,useValue:ce});function Nc(n){return null!==n&&"object"==typeof n&&Ow in n}function bi(n){return"function"==typeof n}const Rc=new x("Set Injector scope."),js={},Rw={};let Fc;function Vs(){return void 0===Fc&&(Fc=new Gp),Fc}class Di{}class Zp extends Di{get destroyed(){return this._destroyed}constructor(t,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,kc(t,s=>this.processProvider(s)),this.records.set(zp,or(void 0,this)),r.has("environment")&&this.records.set(Di,or(void 0,this));const o=this.records.get(Rc);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Wp.multi,ne,k.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const e=$i(this),i=Ot(void 0);try{return t()}finally{$i(e),Ot(i)}}get(t,e=jr,i=k.Default){this.assertNotDestroyed(),i=ls(i);const r=$i(this),o=Ot(void 0);try{if(!(i&k.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function Vw(n){return"function"==typeof n||"object"==typeof n&&n instanceof x}(t)&&os(t);a=l&&this.injectableDefInScope(l)?or(Lc(t),js):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&k.Self?Vs():this.parent).get(t,e=i&k.Optional&&e===jr?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[as]=s[as]||[]).unshift(ue(t)),r)throw s;return function hS(n,t,e,i){const r=n[as];throw t[Jf]&&r.unshift(t[Jf]),n.message=function pS(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let r=ue(t);if(Array.isArray(t))r=t.map(ue).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):ue(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(cS,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[as]=null,n}(s,t,"R3InjectorError",this.source)}throw s}finally{Ot(o),$i(r)}}resolveInjectorInitializers(){const t=$i(this),e=Ot(void 0);try{const i=this.get($p.multi,ne,k.Self);for(const r of i)r()}finally{$i(t),Ot(e)}}toString(){const t=[],e=this.records;for(const i of e.keys())t.push(ue(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new D(205,!1)}processProvider(t){let e=bi(t=O(t))?t:O(t&&t.provide);const i=function Lw(n){return Nc(n)?or(void 0,n.useValue):or(Xp(n),js)}(t);if(bi(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=or(void 0,js,!0),r.factory=()=>Ol(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,i)}hydrate(t,e){return e.value===js&&(e.value=Rw,e.value=e.factory()),"object"==typeof e.value&&e.value&&function jw(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=O(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function Lc(n){const t=os(n),e=null!==t?t.factory:pi(n);if(null!==e)return e;if(n instanceof x)throw new D(204,!1);if(n instanceof Function)return function Fw(n){const t=n.length;if(t>0)throw Jr(t,"?"),new D(204,!1);const e=function rS(n){const t=n&&(n[ss]||n[Zf]);if(t){const e=function oS(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new D(204,!1)}function Xp(n,t,e){let i;if(bi(n)){const r=O(n);return pi(r)||Lc(r)}if(Nc(n))i=()=>O(n.useValue);else if(function Yp(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Ol(n.deps||[]));else if(function Qp(n){return!(!n||!n.useExisting)}(n))i=()=>A(O(n.useExisting));else{const r=O(n&&(n.useClass||n.provide));if(!function kw(n){return!!n.deps}(n))return pi(r)||Lc(r);i=()=>new r(...Ol(n.deps))}return i}function or(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function kc(n,t){for(const e of n)Array.isArray(e)?kc(e,t):e&&Ml(e)?kc(e.\u0275providers,t):t(e)}class Bw{}class Jp{}class Uw{resolveComponentFactory(t){throw function Hw(n){const t=Error(`No component factory found for ${ue(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let sr=(()=>{class n{}return n.NULL=new Uw,n})();function $w(){return ar($e(),v())}function ar(n,t){return new at(St(n,t))}let at=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=$w,n})();function zw(n){return n instanceof at?n.nativeElement:n}class lo{}let Jn=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function Ww(){const n=v(),e=Ct($e().index,n);return(Et(e)?e:n)[G]}(),n})(),Gw=(()=>{class n{}return n.\u0275prov=U({token:n,providedIn:"root",factory:()=>null}),n})();class co{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const qw=new co("15.1.1"),jc={};function Bc(n){return n.ngOriginalError}class lr{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&Bc(t);for(;e&&Bc(e);)e=Bc(e);return e||null}}function nm(n,t,e){let i=n.length;for(;;){const r=n.indexOf(t,e);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const o=t.length;if(r+o===i||n.charCodeAt(r+o)<=32)return r}e=r+1}}const im="ng-template";function rI(n,t,e){let i=0;for(;io?"":r[d+1].toLowerCase();const h=8&i?f:null;if(h&&-1!==nm(h,c,0)||2&i&&c!==f){if(Xt(i))return!1;s=!0}}}}else{if(!s&&!Xt(i)&&!Xt(l))return!1;if(s&&Xt(l))continue;s=!1,i=l|1&i}}return Xt(i)||s}function Xt(n){return 0==(1&n)}function aI(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!Xt(s)&&(t+=sm(o,r),r=""),i=s,o=o||!Xt(i);e++}return""!==r&&(t+=sm(o,r)),t}const H={};function N(n){am(Z(),v(),st()+n,!1)}function am(n,t,e,i){if(!i)if(3==(3&t[2])){const o=n.preOrderCheckHooks;null!==o&&_s(t,o,e)}else{const o=n.preOrderHooks;null!==o&&vs(t,o,0,e)}mi(e)}function dm(n,t=null,e=null,i){const r=fm(n,t,e,i);return r.resolveInjectorInitializers(),r}function fm(n,t=null,e=null,i,r=new Set){const o=[e||ne,Pw(n)];return i=i||("object"==typeof n?void 0:ue(n)),new Zp(o,t||Vs(),i||null,r)}let fn=(()=>{class n{static create(e,i){if(Array.isArray(e))return dm({name:""},i,e,"");{const r=e.name??"";return dm({name:r},e.parent,e.providers,r)}}}return n.THROW_IF_NOT_FOUND=jr,n.NULL=new Gp,n.\u0275prov=U({token:n,providedIn:"any",factory:()=>A(zp)}),n.__NG_ELEMENT_ID__=-1,n})();function b(n,t=k.Default){const e=v();return null===e?A(n,t):Bh($e(),e,O(n),t)}function vm(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i22&&am(n,t,22,!1),e(i,r)}finally{mi(o)}}function qc(n,t,e){if(kl(t)){const r=t.directiveEnd;for(let o=t.directiveStart;o0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(s)!=a&&s.push(a),s.push(e,i,o)}}(n,t,i,uo(n,e,r.hostVars,H),r)}function hn(n,t,e,i,r,o){const s=St(n,t);!function Jc(n,t,e,i,r,o,s){if(null==o)n.removeAttribute(t,r,e);else{const a=null==s?V(o):s(o,i||"",r);n.setAttribute(t,r,a,e)}}(t[G],s,o,n.value,e,i,r)}function JI(n,t,e,i,r,o){const s=o[t];if(null!==s){const a=i.setInput;for(let l=0;l0&&eu(e)}}function eu(n){for(let i=pc(n);null!==i;i=mc(i))for(let r=10;r0&&eu(o)}const e=n[1].components;if(null!==e)for(let i=0;i0&&eu(r)}}function o0(n,t){const e=Ct(t,n),i=e[1];(function s0(n,t){for(let e=t.length;e-1&&(_c(t,i),ws(e,i))}this._attachedToViewContainer=!1}gp(this._lView[1],this._lView)}onDestroy(t){Em(this._lView[1],this._lView,null,t)}markForCheck(){tu(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){zs(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new D(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function GC(n,t){ro(n,t,t[G],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new D(902,!1);this._appRef=t}}class a0 extends fo{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;zs(t[1],t,t[8],!1)}checkNoChanges(){}get context(){return null}}class Nm extends sr{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=se(t);return new ho(e,this.ngModule)}}function Rm(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class c0{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,i){i=ls(i);const r=this.injector.get(t,jc,i);return r!==jc||e===jc?r:this.parentInjector.get(t,e,i)}}class ho extends Jp{get inputs(){return Rm(this.componentDef.inputs)}get outputs(){return Rm(this.componentDef.outputs)}constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function hI(n){return n.map(fI).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}create(t,e,i,r){let o=(r=r||this.ngModule)instanceof Di?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new c0(t,o):t,a=s.get(lo,null);if(null===a)throw new D(407,!1);const l=s.get(Gw,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function jI(n,t,e){return n.selectRootElement(t,e===Kt.ShadowDom)}(c,i,this.componentDef.encapsulation):yc(c,u,function l0(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(u)),f=this.componentDef.onPush?288:272,h=Yc(0,null,null,1,0,null,null,null,null,null),p=Hs(null,h,null,f,null,null,a,c,l,s,null);let m,y;Wl(p);try{const _=this.componentDef;let E,g=null;_.findHostDirectiveDefs?(E=[],g=new Map,_.findHostDirectiveDefs(_,E,g),E.push(_)):E=[_];const C=function d0(n,t){const e=n[1];return n[22]=t,dr(e,22,2,"#host",null)}(p,d),X=function f0(n,t,e,i,r,o,s,a){const l=r[1];!function h0(n,t,e,i){for(const r of n)t.mergedAttrs=Yr(t.mergedAttrs,r.hostAttrs);null!==t.mergedAttrs&&(Ws(t,t.mergedAttrs,!0),null!==e&&Mp(i,e,t))}(i,n,t,s);const c=o.createRenderer(t,e),u=Hs(r,Dm(e),null,e.onPush?32:16,r[n.index],n,o,c,a||null,null,null);return l.firstCreatePass&&Xc(l,n,i.length-1),$s(r,u),r[n.index]=u}(C,d,_,E,p,a,c);y=gh(h,22),d&&function m0(n,t,e,i){if(i)Ql(n,e,["ng-version",qw.full]);else{const{attrs:r,classes:o}=function pI(n){const t=[],e=[];let i=1,r=2;for(;i0&&Tp(n,e,o.join(" "))}}(c,_,d,i),void 0!==e&&function g0(n,t,e){const i=n.projection=[];for(let r=0;r=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Yr(r.hostAttrs,e=Yr(e,r.hostAttrs))}}(i)}function ru(n){return n===Sn?{}:n===ne?[]:n}function v0(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function b0(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,o)=>{t(i,r,o),e(i,r,o)}:t}function D0(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let qs=null;function Ei(){if(!qs){const n=fe.Symbol;if(n&&n.iterator)qs=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;es(Ue(C[i.index])):i.index;let g=null;if(!s&&a&&(g=function F0(n,t,e,i){const r=n.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(n,t,r,i.index)),null!==g)(g.__ngLastListenerFn__||g).__ngNextListenerFn__=o,g.__ngLastListenerFn__=o,f=!1;else{o=Jm(i,t,u,o,!1);const C=e.listen(y,r,o);d.push(o,C),c&&c.push(r,E,_,_+1)}}else o=Jm(i,t,u,o,!1);const h=i.outputs;let p;if(f&&null!==h&&(p=h[r])){const m=p.length;if(m)for(let y=0;y-1?Ct(n.index,t):t);let l=Xm(t,0,i,s),c=o.__ngNextListenerFn__;for(;c;)l=Xm(t,0,c,s)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function j(n=1){return function VS(n){return(B.lFrame.contextLView=function BS(n,t){for(;n>0;)t=t[15],n--;return t}(n,B.lFrame.contextLView))[8]}(n)}function L0(n,t){let e=null;const i=function lI(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(!(1&e))return t[e+1]}return null}(n);for(let r=0;r>17&32767}function du(n){return 2|n}function wi(n){return(131068&n)>>2}function fu(n,t){return-131069&n|t<<2}function hu(n){return 1|n}function cg(n,t,e,i,r){const o=n[e+1],s=null===t;let a=i?ei(o):wi(o),l=!1;for(;0!==a&&(!1===l||s);){const u=n[a+1];U0(n[a],t)&&(l=!0,n[a+1]=i?hu(u):du(u)),a=i?ei(u):wi(u)}l&&(n[e+1]=i?du(o):hu(o))}function U0(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&nr(n,t)>=0}const je={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ug(n){return n.substring(je.key,je.keyEnd)}function $0(n){return n.substring(je.value,je.valueEnd)}function dg(n,t){const e=je.textEnd;return e===t?-1:(t=je.keyEnd=function G0(n,t,e){for(;t32;)t++;return t}(n,je.key=t,e),Er(n,t,e))}function fg(n,t){const e=je.textEnd;let i=je.key=Er(n,t,e);return e===i?-1:(i=je.keyEnd=function q0(n,t,e){let i;for(;t=65&&(-33&i)<=90||i>=48&&i<=57);)t++;return t}(n,i,e),i=pg(n,i,e),i=je.value=Er(n,i,e),i=je.valueEnd=function K0(n,t,e){let i=-1,r=-1,o=-1,s=t,a=s;for(;s32&&(a=s),o=r,r=i,i=-33&l}return a}(n,i,e),pg(n,i,e))}function hg(n){je.key=0,je.keyEnd=0,je.value=0,je.valueEnd=0,je.textEnd=n.length}function Er(n,t,e){for(;t=0;e=fg(t,e))vg(n,ug(t),$0(t))}function Ii(n){nn(wt,mn,n,!0)}function mn(n,t){for(let e=function z0(n){return hg(n),dg(n,Er(n,0,je.textEnd))}(t);e>=0;e=dg(t,e))wt(n,ug(t),!0)}function nn(n,t,e,i){const r=Z(),o=Mn(2);r.firstUpdatePass&&_g(r,null,o,i);const s=v();if(e!==H&&Qe(s,o,e)){const a=r.data[st()];if(Eg(a,i)&&!yg(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Il(l,e||"")),au(r,a,s,e,i)}else!function tT(n,t,e,i,r,o,s,a){r===H&&(r=ne);let l=0,c=0,u=0=n.expandoStartIndex}function _g(n,t,e,i){const r=n.data;if(null===r[e+1]){const o=r[st()],s=yg(n,e);Eg(o,i)&&null===t&&!s&&(t=!1),t=function Y0(n,t,e,i){const r=function $l(n){const t=B.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}(n);let o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=go(e=pu(null,n,t,e,i),t.attrs,i),o=null);else{const s=t.directiveStylingLast;if(-1===s||n[s]!==r)if(e=pu(r,n,t,e,i),null===o){let l=function Z0(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==wi(i))return n[ei(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=pu(null,n,t,l[1],i),l=go(l,t.attrs,i),function X0(n,t,e,i){n[ei(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else o=function J0(n,t,e){let i;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(c=!0)):u=e,r)if(0!==l){const f=ei(n[a+1]);n[i+1]=Zs(f,a),0!==f&&(n[f+1]=fu(n[f+1],i)),n[a+1]=function j0(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=Zs(a,0),0!==a&&(n[a+1]=fu(n[a+1],i)),a=i;else n[i+1]=Zs(l,0),0===a?a=i:n[l+1]=fu(n[l+1],i),l=i;c&&(n[i+1]=du(n[i+1])),cg(n,u,i,!0),cg(n,u,i,!1),function H0(n,t,e,i,r){const o=r?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&nr(o,t)>=0&&(e[i+1]=hu(e[i+1]))}(t,u,n,i,o),s=Zs(a,l),o?t.classBindings=s:t.styleBindings=s}(r,o,t,e,s,i)}}function pu(n,t,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let f=e[r+1];f===H&&(f=d?ne:void 0);let h=d?rc(f,i):u===i?f:void 0;if(c&&!Xs(h)&&(h=rc(l,i)),Xs(h)&&(a=h,s))return a;const p=n[r+1];r=s?ei(p):wi(p)}if(null!==t){let l=o?t.residualClasses:t.residualStyles;null!=l&&(a=rc(l,i))}return a}function Xs(n){return void 0!==n}function Eg(n,t){return 0!=(n.flags&(t?8:16))}function rn(n,t=""){const e=v(),i=Z(),r=n+22,o=i.firstCreatePass?dr(i,r,1,t,null):i.data[r],s=e[r]=function gc(n,t){return n.createText(t)}(e[G],t);Ns(i,e,s,o),un(o,!1)}function Ti(n){return Mi("",n,""),Ti}function Mi(n,t,e){const i=v(),r=function hr(n,t,e,i){return Qe(n,Qi(),e)?t+V(e)+i:H}(i,n,t,e);return r!==H&&function Pn(n,t,e){const i=ms(t,n);!function pp(n,t,e){n.setValue(t,e)}(n[G],i,e)}(i,st(),r),Mi}const Cr="en-US";let zg=Cr;function yu(n,t,e,i,r){if(n=O(n),Array.isArray(n))for(let o=0;o>20;if(bi(n)||!n.multi){const h=new Qr(l,r,b),p=vu(a,t,r?u:u+f,d);-1===p?(Jl(Ss(c,s),o,a),_u(o,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(h),s.push(h)):(e[p]=h,s[p]=h)}else{const h=vu(a,t,u+f,d),p=vu(a,t,u,u+f),y=p>=0&&e[p];if(r&&!y||!r&&!(h>=0&&e[h])){Jl(Ss(c,s),o,a);const _=function bM(n,t,e,i,r){const o=new Qr(n,e,b);return o.multi=[],o.index=t,o.componentProviders=0,my(o,r,i&&!e),o}(r?vM:_M,e.length,r,i,l);!r&&y&&(e[p].providerFactory=_),_u(o,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(_),s.push(_)}else _u(o,n,h>-1?h:p,my(e[r?p:h],l,!r&&i));!r&&i&&y&&e[p].componentProviders++}}}function _u(n,t,e,i){const r=bi(t),o=function Nw(n){return!!n.useClass}(t);if(r||o){const l=(o?O(t.useClass):t).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function my(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function vu(n,t,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function yM(n,t,e){const i=Z();if(i.firstCreatePass){const r=Zt(n);yu(e,i.data,i.blueprint,r,!0),yu(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class wr{}class DM{}class gy extends wr{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Nm(this);const i=function Dt(n,t){const e=n[th]||null;if(!e&&!0===t)throw new Error(`Type ${ue(n)} does not have '\u0275mod' property.`);return e}(t);this._bootstrapComponents=function xn(n){return n instanceof Function?n():n}(i.bootstrap),this._r3Injector=fm(t,e,[{provide:wr,useValue:this},{provide:sr,useValue:this.componentFactoryResolver}],ue(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Du extends DM{constructor(t){super(),this.moduleType=t}create(t){return new gy(this.moduleType,t)}}class SM extends wr{constructor(t,e,i){super(),this.componentFactoryResolver=new Nm(this),this.instance=null;const r=new Zp([...t,{provide:wr,useValue:this},{provide:sr,useValue:this.componentFactoryResolver}],e||Vs(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}let CM=(()=>{class n{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=qp(0,e.type),r=i.length>0?function yy(n,t,e=null){return new SM(n,t,e).injector}([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=U({token:n,providedIn:"environment",factory:()=>new n(A(Di))}),n})();function Ir(n){n.getStandaloneInjector=t=>t.get(CM).getOrCreateStandaloneInjector(n)}function ia(n,t,e){const i=ot()+n,r=v();return r[i]===H?pn(r,i,e?t.call(e):t()):po(r,i)}function ra(n,t,e,i){return My(v(),ot(),n,t,e,i)}function wy(n,t,e,i,r,o){return function xy(n,t,e,i,r,o,s,a){const l=t+e;return function Qs(n,t,e,i,r){const o=Si(n,t,e,i);return Qe(n,t+2,r)||o}(n,l,r,o,s)?pn(n,l+3,a?i.call(a,r,o,s):i(r,o,s)):Eo(n,l+3)}(v(),ot(),n,t,e,i,r,o)}function Su(n,t,e,i,r,o,s){return function Py(n,t,e,i,r,o,s,a,l){const c=t+e;return Lt(n,c,r,o,s,a)?pn(n,c+4,l?i.call(l,r,o,s,a):i(r,o,s,a)):Eo(n,c+4)}(v(),ot(),n,t,e,i,r,o,s)}function Ty(n,t,e,i){return function Oy(n,t,e,i,r,o){let s=t+e,a=!1;for(let l=0;l=0;e--){const i=t[e];if(n===i.name)return i}}(t,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=pi(i.type)),s=Ot(b);try{const a=Es(!1),l=o();return Es(a),function O0(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,v(),r,l),l}finally{Ot(s)}}function yt(n,t,e){const i=n+22,r=v(),o=Ki(r,i);return So(r,i)?My(r,ot(),t,o.transform,e,o):o.transform(e)}function So(n,t){return n[1].data[t].pure}function Cu(n){return t=>{setTimeout(n,void 0,t)}}const J=class BM extends Kn{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let r=t,o=e||(()=>null),s=i;if(t&&"object"==typeof t){const l=t;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=Cu(o),r&&(r=Cu(r)),s&&(s=Cu(s)));const a=super.subscribe({next:r,error:o,complete:s});return t instanceof ge&&t.add(a),a}};function HM(){return this._results[Ei()]()}class wu{get changes(){return this._changes||(this._changes=new J)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Ei(),i=wu.prototype;i[e]||(i[e]=HM)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const r=function Ft(n){return n.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function sC(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=zM,n})();const UM=gn,$M=class extends UM{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t,e){const i=this._declarationTContainer.tViews,r=Hs(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null,e||null);r[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(i)),Gc(i,r,t),new fo(r)}};function zM(){return oa($e(),v())}function oa(n,t){return 4&n.type?new $M(t,n,ar(n,t)):null}let yn=(()=>{class n{}return n.__NG_ELEMENT_ID__=WM,n})();function WM(){return Ly($e(),v())}const GM=yn,Ry=class extends GM{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return ar(this._hostTNode,this._hostLView)}get injector(){return new Zi(this._hostTNode,this._hostLView)}get parentInjector(){const t=Xl(this._hostTNode,this._hostLView);if(Rh(t)){const e=Ds(t,this._hostLView),i=bs(t);return new Zi(e[1].data[i+8],e)}return new Zi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Fy(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=t.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(t,e,i,r,o){const s=t&&!function Xr(n){return"function"==typeof n}(t);let a;if(s)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?t:new ho(se(t)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const f=(s?c:this.parentInjector).get(Di,null);f&&(o=f)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(t,e){const i=t._lView,r=i[1];if(function MS(n){return Yt(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=i[3],f=new Ry(d,d[6],d[3]);f.detach(f.indexOf(t))}}const o=this._adjustIndex(e),s=this._lContainer;!function KC(n,t,e,i){const r=10+i,o=e.length;i>0&&(e[r-1][4]=t),i0)i.push(s[a/2]);else{const c=o[a+1],u=t[-l];for(let d=10;d{class n{constructor(e){this.appInits=e,this.resolve=aa,this.reject=aa,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(A(s_,8))},n.\u0275prov=U({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const To=new x("AppId",{providedIn:"root",factory:function a_(){return`${ku()}${ku()}${ku()}`}});function ku(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const l_=new x("Platform Initializer"),ju=new x("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),_A=new x("appBootstrapListener"),c_=new x("AnimationModuleType"),Fn=new x("LocaleId",{providedIn:"root",factory:()=>Br(Fn,k.Optional|k.SkipSelf)||function vA(){return typeof $localize<"u"&&$localize.locale||Cr}()}),CA=(()=>Promise.resolve(0))();function Vu(n){typeof Zone>"u"?CA.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class Te{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new J(!1),this.onMicrotaskEmpty=new J(!1),this.onStable=new J(!1),this.onError=new J(!1),typeof Zone>"u")throw new D(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function wA(){let n=fe.requestAnimationFrame,t=fe.cancelAnimationFrame;if(typeof Zone<"u"&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function MA(n){const t=()=>{!function TA(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(fe,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Hu(n),n.isCheckStableRunning=!0,Bu(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Hu(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return f_(n),e.invokeTask(r,o,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),h_(n)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return f_(n),e.invoke(r,o,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),h_(n)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,Hu(n),Bu(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Te.isInAngularZone())throw new D(909,!1)}static assertNotInAngularZone(){if(Te.isInAngularZone())throw new D(909,!1)}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,t,IA,aa,aa);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const IA={};function Bu(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Hu(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function f_(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function h_(n){n._nesting--,Bu(n)}class AA{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new J,this.onMicrotaskEmpty=new J,this.onStable=new J,this.onError=new J}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}const p_=new x(""),ca=new x("");let zu,Uu=(()=>{class n{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,zu||(function xA(n){zu=n}(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Te.assertNotInAngularZone(),Vu(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Vu(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!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(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(A(Te),A($u),A(ca))},n.\u0275prov=U({token:n,factory:n.\u0275fac}),n})(),$u=(()=>{class n{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return zu?.findTestabilityInTree(this,e,i)??null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=U({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),ti=null;const m_=new x("AllowMultipleToken"),Wu=new x("PlatformDestroyListeners");function y_(n,t,e=[]){const i=`Platform: ${t}`,r=new x(i);return(o=[])=>{let s=Gu();if(!s||s.injector.get(m_,!1)){const a=[...e,...o,{provide:r,useValue:!0}];n?n(a):function NA(n){if(ti&&!ti.get(m_,!1))throw new D(400,!1);ti=n;const t=n.get(v_);(function g_(n){const t=n.get(l_,null);t&&t.forEach(e=>e())})(n)}(function __(n=[],t){return fn.create({name:t,providers:[{provide:Rc,useValue:"platform"},{provide:Wu,useValue:new Set([()=>ti=null])},...n]})}(a,i))}return function FA(n){const t=Gu();if(!t)throw new D(401,!1);return t}()}}function Gu(){return ti?.get(v_)??null}let v_=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function D_(n,t){let e;return e="noop"===n?new AA:("zone.js"===n?void 0:n)||new Te(t),e}(i?.ngZone,function b_(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:Te,useValue:r}];return r.run(()=>{const s=fn.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(lr,null);if(!l)throw new D(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{ua(this._modules,a),c.unsubscribe()})}),function E_(n,t,e){try{const i=e();return Ys(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(la);return c.runInitializers(),c.donePromise.then(()=>(function Wg(n){Pt(n,"Expected localeId to be defined"),"string"==typeof n&&(zg=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(Fn,Cr)||Cr),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=S_({},i);return function PA(n,t,e){const i=new Du(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Mo);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new D(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new D(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(Wu,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(A(fn))},n.\u0275prov=U({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function S_(n,t){return Array.isArray(t)?t.reduce(S_,n):{...n,...t}}let Mo=(()=>{class n{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new ye(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new ye(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{Te.assertNotInAngularZone(),Vu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{Te.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=Gf(o,s.pipe(function ZE(){return n=>qf()(function KE(n,t){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof t)return i.lift(new QE(r,t));const o=Object.create(i,WE);return o.source=i,o.subjectFactory=r,o}}(YE)(n))}()))}bootstrap(e,i){const r=e instanceof Jp;if(!this._injector.get(la).done)throw!r&&function $r(n){const t=se(n)||ze(n)||it(n);return null!==t&&t.standalone}(e),new D(405,false);let s;s=r?e:this._injector.get(sr).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function OA(n){return n.isBoundToModule}(s)?void 0:this._injector.get(wr),c=s.create(fn.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(p_,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),ua(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new D(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;ua(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(_A,[]);i.push(...this._bootstrapListeners),i.forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>ua(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new D(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(e){return new(e||n)(A(Te),A(Di),A(lr))},n.\u0275prov=U({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ua(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let Ar=(()=>{class n{}return n.__NG_ELEMENT_ID__=jA,n})();function jA(n){return function VA(n,t,e){if(qr(n)&&!e){const i=Ct(n.index,t);return new fo(i,i)}return 47&n.type?new fo(t[16],t):null}($e(),v(),16==(16&n))}class M_{constructor(){}supports(t){return Ks(t)}create(t){return new WA(t)}}const zA=(n,t)=>t;class WA{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||zA}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,r){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):t=this._addAfter(new GA(e,i),o,r),t}_verifyReinsertion(t,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new A_),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new A_),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class GA{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class qA{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(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,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class A_{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new qA,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function x_(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new QA(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class QA{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function O_(){return new ha([new M_])}let ha=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||O_()),deps:[[n,new As,new Ms]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new D(901,!1)}}return n.\u0275prov=U({token:n,providedIn:"root",factory:O_}),n})();function N_(){return new Ao([new P_])}let Ao=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||N_()),deps:[[n,new As,new Ms]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new D(901,!1)}}return n.\u0275prov=U({token:n,providedIn:"root",factory:N_}),n})();const XA=y_(null,"core",[]);let JA=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(A(Mo))},n.\u0275mod=Le({type:n}),n.\u0275inj=xe({}),n})();let Xu=null;function Pi(){return Xu}class nx{}const kt=new x("DocumentToken");function $_(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}const ld=/\s+/,z_=[];let Oo=(()=>{class n{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this.initialClasses=z_,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(ld):z_}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(ld):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,Boolean(e[i]));this._applyStateDiff()}_updateState(e,i){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(ld).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(b(ha),b(Ao),b(at),b(Jn))},n.\u0275dir=L({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})(),xr=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new Wx,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){K_("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){K_("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(b(yn),b(gn))},n.\u0275dir=L({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class Wx{constructor(){this.$implicit=null,this.ngIf=null}}function K_(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${ue(t)}'.`)}class cd{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Sa=(()=>{class n{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const i of this._defaultViews)i.enforceState(e)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=L({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),n})(),Q_=(()=>{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new cd(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(b(yn),b(gn),b(Sa,9))},n.\u0275dir=L({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),Ca=(()=>{class n{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,o]=e.split("."),s=-1===r.indexOf("-")?void 0:pt.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(e){return new(e||n)(b(at),b(Ao),b(Jn))},n.\u0275dir=L({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),n})(),ud=(()=>{class n{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(r,o,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(e){return new(e||n)(b(yn))},n.\u0275dir=L({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[In]}),n})();class Kx{createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}}class Qx{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}}const Yx=new Qx,Zx=new Kx;let dd=(()=>{class n{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(Ys(e))return Yx;if(Km(e))return Zx;throw function an(n,t){return new D(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(b(Ar,16))},n.\u0275pipe=nt({name:"async",type:n,pure:!1,standalone:!0}),n})(),Bt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Le({type:n}),n.\u0275inj=xe({}),n})();class ev{}class WP extends nx{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class gd extends WP{static makeCurrent(){!function tx(n){Xu||(Xu=n)}(new gd)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).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,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function GP(){return Ro=Ro||document.querySelector("base"),Ro?Ro.getAttribute("href"):null}();return null==e?null:function qP(n){Ia=Ia||document.createElement("a"),Ia.setAttribute("href",n);const t=Ia.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){Ro=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return $_(document.cookie,t)}}let Ia,Ro=null;const sv=new x("TRANSITION_ID"),QP=[{provide:s_,useFactory:function KP(n,t,e){return()=>{e.get(la).donePromise.then(()=>{const i=Pi(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=U({token:n,factory:n.\u0275fac}),n})();const Ta=new x("EventManagerPlugins");let Ma=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o{class n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=U({token:n,factory:n.\u0275fac}),n})(),Fo=(()=>{class n extends lv{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,r.push(i.appendChild(s))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(cv),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(cv))}}return n.\u0275fac=function(e){return new(e||n)(A(kt))},n.\u0275prov=U({token:n,factory:n.\u0275fac}),n})();function cv(n){Pi().remove(n)}const yd={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/MathML/"},_d=/%COMP%/g;function vd(n,t){return t.flat(100).map(e=>e.replace(_d,n))}function fv(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let Aa=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new bd(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Kt.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new r1(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case Kt.ShadowDom:return new o1(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=vd(i.id,i.styles);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(A(Ma),A(Fo),A(To))},n.\u0275prov=U({token:n,factory:n.\u0275fac}),n})();class bd{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(yd[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(pv(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(pv(t)?t.content:t).insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const o=yd[r];o?t.setAttributeNS(o,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=yd[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(pt.DashCase|pt.Important)?t.style.setProperty(e,i,r&pt.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&pt.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,fv(i)):this.eventManager.addEventListener(t,e,fv(i))}}function pv(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class r1 extends bd{constructor(t,e,i,r){super(t),this.component=i;const o=vd(r+"-"+i.id,i.styles);e.addStyles(o),this.contentAttr=function e1(n){return"_ngcontent-%COMP%".replace(_d,n)}(r+"-"+i.id),this.hostAttr=function t1(n){return"_nghost-%COMP%".replace(_d,n)}(r+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class o1 extends bd{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=vd(r.id,r.styles);for(let s=0;s{class n extends av{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(A(kt))},n.\u0275prov=U({token:n,factory:n.\u0275fac}),n})();const mv=["alt","control","meta","shift"],a1={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},l1={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let c1=(()=>{class n extends av{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const o=n.parseEventName(i),s=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Pi().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=n._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),mv.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let r=a1[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),mv.forEach(s=>{s!==r&&(0,l1[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{n.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(A(kt))},n.\u0275prov=U({token:n,factory:n.\u0275fac}),n})();const yv=[{provide:ju,useValue:"browser"},{provide:l_,useValue:function u1(){gd.makeCurrent()},multi:!0},{provide:kt,useFactory:function f1(){return function aw(n){wc=n}(document),document},deps:[]}],h1=y_(XA,"browser",yv),_v=new x(""),vv=[{provide:ca,useClass:class YP{addToWindow(t){fe.getAngularTestability=(i,r=!0)=>{const o=t.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},fe.getAllAngularTestabilities=()=>t.getAllTestabilities(),fe.getAllAngularRootElements=()=>t.getAllRootElements(),fe.frameworkStabilizers||(fe.frameworkStabilizers=[]),fe.frameworkStabilizers.push(i=>{const r=fe.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,i){return null==e?null:t.getTestability(e)??(i?Pi().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},deps:[]},{provide:p_,useClass:Uu,deps:[Te,$u,ca]},{provide:Uu,useClass:Uu,deps:[Te,$u,ca]}],bv=[{provide:Rc,useValue:"root"},{provide:lr,useFactory:function d1(){return new lr},deps:[]},{provide:Ta,useClass:s1,multi:!0,deps:[kt,Te,ju]},{provide:Ta,useClass:c1,multi:!0,deps:[kt]},{provide:Aa,useClass:Aa,deps:[Ma,Fo,To]},{provide:lo,useExisting:Aa},{provide:lv,useExisting:Fo},{provide:Fo,useClass:Fo,deps:[kt]},{provide:Ma,useClass:Ma,deps:[Ta,Te]},{provide:ev,useClass:ZP,deps:[]},[]];let Dv=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:To,useValue:e.appId},{provide:sv,useExisting:To},QP]}}}return n.\u0275fac=function(e){return new(e||n)(A(_v,12))},n.\u0275mod=Le({type:n}),n.\u0275inj=xe({providers:[...bv,...vv],imports:[Bt,JA]}),n})();typeof window<"u"&&window;class S1 extends ge{constructor(t,e){super()}schedule(t,e=0){return this}}class Cv extends S1{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(o){i=!0,r=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let wv=(()=>{class n{constructor(e,i=n.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return n.now=()=>Date.now(),n})();class jn extends wv{constructor(t,e=wv.now){super(t,()=>jn.delegate&&jn.delegate!==this?jn.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return jn.delegate&&jn.delegate!==this?jn.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const Sd=new class w1 extends jn{}(class C1 extends Cv{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}),I1=Sd,Cd=new ye(n=>n.complete());function Iv(n){return n?function T1(n){return new ye(t=>n.schedule(()=>t.complete()))}(n):Cd}function xa(...n){let t=n[n.length-1];return bl(t)?(n.pop(),El(n,t)):Cl(n)}function Tv(n,t){return new ye(t?e=>t.schedule(M1,0,{error:n,subscriber:e}):e=>e.error(n))}function M1({error:n,subscriber:t}){t.error(n)}class Ht{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return xa(this.value);case"E":return Tv(this.error);case"C":return Iv()}throw new Error("unexpected notification kind value")}static createNext(t){return typeof t<"u"?new Ht("N",t):Ht.undefinedValueNotification}static createError(t){return new Ht("E",void 0,t)}static createComplete(){return Ht.completeNotification}}Ht.completeNotification=new Ht("C"),Ht.undefinedValueNotification=new Ht("N",void 0);class x1{constructor(t,e=0){this.scheduler=t,this.delay=e}call(t,e){return e.subscribe(new Pa(t,this.scheduler,this.delay))}}class Pa extends we{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(Pa.dispatch,this.delay,new P1(t,this.destination)))}_next(t){this.scheduleMessage(Ht.createNext(t))}_error(t){this.scheduleMessage(Ht.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(Ht.createComplete()),this.unsubscribe()}}class P1{constructor(t,e){this.notification=t,this.destination=e}}class Oa extends Kn{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new O1(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;let s;if(this.closed)throw new Hi;if(this.isStopped||this.hasError?s=ge.EMPTY:(this.observers.push(t),s=new Vf(this,t)),r&&t.add(t=new Pa(t,r)),e)for(let a=0;ae&&(s=Math.max(s,o-e)),s>0&&r.splice(0,s),r}}class O1{constructor(t,e){this.time=t,this.value=e}}function Na(n,t){return"function"==typeof t?e=>e.pipe(Na((i,r)=>Ui(n(i,r)).pipe(ht((o,s)=>t(i,o,r,s))))):e=>e.lift(new N1(n))}class N1{constructor(t){this.project=t}call(t,e){return e.subscribe(new R1(t,this.project))}}class R1 extends ts{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const i=new es(this),r=this.destination;r.add(i),this.innerSubscription=ns(t,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const Ra={schedule(n,t){const e=setTimeout(n,t);return()=>clearTimeout(e)},scheduleBeforeRender(n){if(typeof window>"u")return Ra.schedule(n,0);if(typeof window.requestAnimationFrame>"u")return Ra.schedule(n,16);const t=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(t)}};let wd;function $1(n,t,e){let i=e;return function L1(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&t.some((r,o)=>!("*"===r||!function j1(n,t){if(!wd){const e=Element.prototype;wd=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&wd.call(n,t)}(n,r)||(i=o,0))),i}class W1{constructor(t,e){this.componentFactory=e.get(sr).resolveComponentFactory(t)}create(t){return new G1(this.componentFactory,t)}}class G1{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new Oa(1),this.events=this.eventEmitters.pipe(Na(i=>Gf(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(Te),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Ra.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{null!==this.componentRef?function V1(n,t){return n===t||n!=n&&t!=t}(e,this.getInputValue(t))&&(void 0!==e||!this.unchangedInputs.has(t))||(this.recordInputChange(t,e),this.unchangedInputs.delete(t),this.hasInputChanges=!0,this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=fn.create({providers:[],parent:this.injector}),i=function U1(n,t){const e=n.childNodes,i=t.map(()=>[]);let r=-1;t.some((o,s)=>"*"===o&&(r=s,!0));for(let o=0,s=e.length;o{this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:i,templateName:r})=>t.instance[i].pipe(ht(s=>({name:r,value:s}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}markViewForCheck(t){this.hasInputChanges&&(this.hasInputChanges=!1,t.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Ra.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[t];if(i)return void(i.currentValue=e);const r=this.unchangedInputs.has(t),o=r?void 0:this.getInputValue(t);this.inputChanges[t]=new uh(o,e,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class q1 extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class Mv{}class Q1{}const Vn="*";function Y1(n,t){return{type:7,name:n,definitions:t,options:{}}}function Av(n,t=null){return{type:4,styles:t,timings:n}}function xv(n,t=null){return{type:2,steps:n,options:t}}function Fa(n){return{type:6,styles:n,offset:null}}function Pv(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function Ov(n,t=null){return{type:8,animation:n,options:t}}function Nv(n,t=null){return{type:10,animation:n,options:t}}function Rv(n){Promise.resolve().then(n)}class Lo{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Rv(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class Fv{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const o=this.players.length;0==o?Rv(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function Lv(n){return new D(3e3,!1)}function PO(){return typeof window<"u"&&typeof window.document<"u"}function Td(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function ii(n){switch(n.length){case 0:return new Lo;case 1:return n[0];default:return new Fv(n)}}function kv(n,t,e,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),f=d==l,h=f&&c||new Map;u.forEach((p,m)=>{let y=m,_=p;if("offset"!==m)switch(y=t.normalizePropertyName(y,s),_){case"!":_=r.get(m);break;case Vn:_=o.get(m);break;default:_=t.normalizeStyleValue(m,y,_,s)}h.set(y,_)}),f||a.push(h),c=h,l=d}),s.length)throw function vO(n){return new D(3502,!1)}();return a}function Md(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&Ad(e,"start",n)));break;case"done":n.onDone(()=>i(e&&Ad(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&Ad(e,"destroy",n)))}}function Ad(n,t,e){const o=xd(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),s=n._data;return null!=s&&(o._data=s),o}function xd(n,t,e,i,r="",o=0,s){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function Tt(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function jv(n){const t=n.indexOf(":");return[n.substring(1,t),n.slice(t+1)]}let Pd=(n,t)=>!1,Vv=(n,t,e)=>[],Bv=null;function Od(n){const t=n.parentNode||n.host;return t===Bv?null:t}(Td()||typeof Element<"u")&&(PO()?(Bv=(()=>document.documentElement)(),Pd=(n,t)=>{for(;t;){if(t===n)return!0;t=Od(t)}return!1}):Pd=(n,t)=>n.contains(t),Vv=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let Oi=null,Hv=!1;const Uv=Pd,$v=Vv;let zv=(()=>{class n{validateStyleProperty(e){return function NO(n){Oi||(Oi=function RO(){return typeof document<"u"?document.body:null}()||{},Hv=!!Oi.style&&"WebkitAppearance"in Oi.style);let t=!0;return Oi.style&&!function OO(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in Oi.style,!t&&Hv&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Oi.style)),t}(e)}matchesElement(e,i){return!1}containsElement(e,i){return Uv(e,i)}getParentElement(e){return Od(e)}query(e,i,r){return $v(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new Lo(r,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=U({token:n,factory:n.\u0275fac}),n})(),Nd=(()=>{class n{}return n.NOOP=new zv,n})();const Rd="ng-enter",La="ng-leave",ka="ng-trigger",ja=".ng-trigger",Gv="ng-animating",Fd=".ng-animating";function Bn(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Ld(parseFloat(t[1]),t[2])}function Ld(n,t){return"s"===t?1e3*n:n}function Va(n,t,e){return n.hasOwnProperty("duration")?n:function kO(n,t,e){let r,o=0,s="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(Lv()),{duration:0,delay:0,easing:""};r=Ld(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=Ld(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push(function Z1(){return new D(3100,!1)}()),a=!0),o<0&&(t.push(function X1(){return new D(3101,!1)}()),a=!0),a&&t.splice(l,0,Lv())}return{duration:r,delay:o,easing:s}}(n,t,e)}function ko(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function qv(n){const t=new Map;return Object.keys(n).forEach(e=>{t.set(e,n[e])}),t}function ri(n,t=new Map,e){if(e)for(let[i,r]of e)t.set(i,r);for(let[i,r]of n)t.set(i,r);return t}function Qv(n,t,e){return e?t+":"+e+";":""}function Yv(n){let t="";for(let e=0;e{const o=jd(r);e&&!e.has(r)&&e.set(r,n.style[o]),n.style[o]=i}),Td()&&Yv(n))}function Ni(n,t){n.style&&(t.forEach((e,i)=>{const r=jd(i);n.style[r]=""}),Td()&&Yv(n))}function jo(n){return Array.isArray(n)?1==n.length?n[0]:xv(n):n}const kd=new RegExp("{{\\s*(.+?)\\s*}}","g");function Zv(n){let t=[];if("string"==typeof n){let e;for(;e=kd.exec(n);)t.push(e[1]);kd.lastIndex=0}return t}function Vo(n,t,e){const i=n.toString(),r=i.replace(kd,(o,s)=>{let a=t[s];return null==a&&(e.push(function eO(n){return new D(3003,!1)}()),a=""),a.toString()});return r==i?n:r}function Ba(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const BO=/-+([a-z0-9])/g;function jd(n){return n.replace(BO,(...t)=>t[1].toUpperCase())}function HO(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Mt(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function tO(n){return new D(3004,!1)}()}}function Xv(n,t){return window.getComputedStyle(n)[t]}function qO(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function KO(n,t,e){if(":"==n[0]){const l=function QO(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*([=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function pO(n){return new D(3015,!1)}()),t;const r=i[1],o=i[2],s=i[3];t.push(Jv(r,s));"<"==o[0]&&!("*"==r&&"*"==s)&&t.push(Jv(s,r))}(i,e,t)):e.push(n),e}const za=new Set(["true","1"]),Wa=new Set(["false","0"]);function Jv(n,t){const e=za.has(n)||Wa.has(n),i=za.has(t)||Wa.has(t);return(r,o)=>{let s="*"==n||n==r,a="*"==t||t==o;return!s&&e&&"boolean"==typeof r&&(s=r?za.has(n):Wa.has(n)),!a&&i&&"boolean"==typeof o&&(a=o?za.has(t):Wa.has(t)),s&&a}}const YO=new RegExp("s*:selfs*,?","g");function Vd(n,t,e,i){return new ZO(n).build(t,e,i)}class ZO{constructor(t){this._driver=t}build(t,e,i){const r=new eN(e);return this._resetContextStyleTimingState(r),Mt(this,jo(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push(function iO(){return new D(3006,!1)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(function rO(){return new D(3007,!1)}())}),{type:7,name:t.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Zv(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(Ba(o.values()),e.errors.push(function oO(n,t){return new D(3008,!1)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=Mt(this,jo(t.animation),e);return{type:1,matchers:qO(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Ri(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>Mt(this,i,e)),options:Ri(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const o=t.steps.map(s=>{e.currentTime=i;const a=Mt(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:Ri(t.options)}}visitAnimate(t,e){const i=function nN(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Bd(Va(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Bd(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=Va(e,t);return Bd(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,o=t.styles?t.styles:Fa({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=t.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Fa(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of r)"string"==typeof a?a===Vn?i.push(a):e.errors.push(new D(3002,!1)):i.push(qv(a));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(function aO(n,t,e,i,r){return new D(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),e.options&&function VO(n,t,e){const i=t.params||{},r=Zv(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function J1(n){return new D(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function lO(){return new D(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=t.steps.map(_=>{const E=this._makeStyleAst(_,e);let g=null!=E.offset?E.offset:function tN(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;t=parseFloat(e.get("offset")),e.delete("offset")}return t}(E.styles),C=0;return null!=g&&(o++,C=E.offset=g),l=l||C<0||C>1,a=a||C0&&o{const g=f>0?E==h?1:f*E:s[E],C=g*y;e.currentTime=p+m.delay+C,m.duration=C,this._validateStyleAst(_,e),_.offset=g,i.styles.push(_)}),i}visitReference(t,e){return{type:8,animation:Mt(this,jo(t.animation),e),options:Ri(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Ri(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Ri(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[o,s]=function XO(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(YO,"")),n=n.replace(/@\*/g,ja).replace(/@\w+/g,e=>ja+"-"+e.slice(1)).replace(/:animating/g,Fd),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+o:o,Tt(e.collectedStyles,e.currentQuerySelector,new Map);const a=Mt(this,jo(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Ri(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function fO(){return new D(3013,!1)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:Va(t.timings,e.errors,!0);return{type:12,animation:Mt(this,jo(t.animation),e),timings:i,options:null}}}class eN{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Ri(n){return n?(n=ko(n)).params&&(n.params=function JO(n){return n?ko(n):null}(n.params)):n={},n}function Bd(n,t,e){return{duration:n,delay:t,easing:e}}function Hd(n,t,e,i,r,o,s=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class Ga{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const oN=new RegExp(":enter","g"),aN=new RegExp(":leave","g");function Ud(n,t,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new lN).buildKeyframes(n,t,e,i,r,o,s,a,l,c)}class lN{buildKeyframes(t,e,i,r,o,s,a,l,c,u=[]){c=c||new Ga;const d=new $d(t,e,c,r,o,u,[]);d.options=l;const f=l.delay?Bn(l.delay):0;d.currentTimeline.delayNextStep(f),d.currentTimeline.setStyles([s],null,d.errors,l),Mt(this,i,d);const h=d.timelines.filter(p=>p.containsAnimation());if(h.length&&a.size){let p;for(let m=h.length-1;m>=0;m--){const y=h[m];if(y.element===e){p=y;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return h.length?h.map(p=>p.buildKeyframes()):[Hd(e,[],[],[],0,f,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,i),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,i){for(const r of t){const o=r?.delay;if(o){const s="number"==typeof o?o:Bn(Vo(o,r?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(t,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?Bn(i.duration):null,a=null!=i.delay?Bn(i.delay):null;return 0!==s&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),Mt(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const o=t.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=qa);const s=Bn(o.delay);r.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>Mt(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const o=t.options&&t.options.delay?Bn(t.options.delay):0;t.steps.forEach(s=>{const a=e.createSubContext(t.options);o&&a.delayNextStep(o),Mt(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return Va(e.params?Vo(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(o):i.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?Bn(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=qa);let s=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(t.options,c);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),Mt(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,o=t.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Mt(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const qa={};class $d{constructor(t,e,i,r,o,s,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=qa,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Ka(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=Bn(i.duration)),null!=i.delay&&(r.delay=Bn(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=Vo(o[a],s,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,o=new $d(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=qa,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:e??t.duration,delay:this.currentTimeline.currentTime+(i??0)+t.delay,easing:""},o=new cN(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,o,s){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(oN,"."+this._enterClassName)).replace(aN,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function hO(n){return new D(3014,!1)}()),a}}class Ka{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new Ka(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Vn),this._currentKeyframe.set(e,Vn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function uN(n,t){const e=new Map;let i;return n.forEach(r=>{if("*"===r){i=i||t.keys();for(let o of i)e.set(o,Vn)}else ri(r,e)}),e}(t,this._globalTimelineStyles);for(let[a,l]of s){const c=Vo(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Vn),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=ri(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?t.add(d):u===Vn&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=t.size?Ba(t.values()):[],s=e.size?Ba(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return Hd(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class cN extends Ka{constructor(t,e,i,r,o,s,a=!1){super(t,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=ri(t[0]);l.set("offset",0),o.push(l);const c=ri(t[0]);c.set("offset",nb(a)),o.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let f=ri(t[d]);const h=f.get("offset");f.set("offset",nb((e+h*i)/s)),o.push(f)}i=s,e=0,r="",t=o}return Hd(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function nb(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class zd{}const dN=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class fN extends zd{normalizePropertyName(t,e){return jd(t)}normalizeStyleValue(t,e,i,r){let o="";const s=i.toString().trim();if(dN.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function nO(n,t){return new D(3005,!1)}())}return s+o}}function ib(n,t,e,i,r,o,s,a,l,c,u,d,f){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:f}}const Wd={};class rb{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function hN(n,t,e,i,r){return n.some(o=>o(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){let r=this._stateStyles.get("*");return void 0!==t&&(r=this._stateStyles.get(t?.toString())||r),r?r.buildStyles(e,i):new Map}build(t,e,i,r,o,s,a,l,c,u){const d=[],f=this.ast.options&&this.ast.options.params||Wd,p=this.buildStyles(i,a&&a.params||Wd,d),m=l&&l.params||Wd,y=this.buildStyles(r,m,d),_=new Set,E=new Map,g=new Map,C="void"===r,X={params:pN(m,f),delay:this.ast.options?.delay},te=u?[]:Ud(t,e,this.ast.animation,o,s,p,y,X,c,d);let Je=0;if(te.forEach(Wn=>{Je=Math.max(Wn.duration+Wn.delay,Je)}),d.length)return ib(e,this._triggerName,i,r,C,p,y,[],[],E,g,Je,d);te.forEach(Wn=>{const Gn=Wn.element,EE=Tt(E,Gn,new Set);Wn.preStyleProps.forEach(Vi=>EE.add(Vi));const Qo=Tt(g,Gn,new Set);Wn.postStyleProps.forEach(Vi=>Qo.add(Vi)),Gn!==e&&_.add(Gn)});const zn=Ba(_.values());return ib(e,this._triggerName,i,r,C,p,y,te,zn,E,g,Je)}}function pN(n,t){const e=ko(t);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}class mN{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i=new Map,r=ko(this.defaultParams);return Object.keys(t).forEach(o=>{const s=t[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=Vo(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(a,s)})}),i}}class yN{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new mN(r.style,r.options&&r.options.params||{},i))}),ob(this.states,"true","1"),ob(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new rb(t,r,this.states))}),this.fallbackTransition=function _N(n,t,e){return new rb(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(s=>s.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function ob(n,t,e){n.has(t)?n.has(e)||n.set(e,n.get(t)):n.has(e)&&n.set(t,n.get(e))}const vN=new Ga;class bN{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){const i=[],o=Vd(this._driver,e,i,[]);if(i.length)throw function bO(n){return new D(3503,!1)}();this._animations.set(t,o)}_buildPlayer(t,e,i){const r=t.element,o=kv(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],o=this._animations.get(t);let s;const a=new Map;if(o?(s=Ud(this._driver,e,o,Rd,La,new Map,new Map,i,vN,r),s.forEach(u=>{const d=Tt(a,u.element,new Map);u.postStyleProps.forEach(f=>d.set(f,null))})):(r.push(function DO(){return new D(3300,!1)}()),s=[]),r.length)throw function EO(n){return new D(3504,!1)}();a.forEach((u,d)=>{u.forEach((f,h)=>{u.set(h,this._driver.computeStyle(d,h,Vn))})});const c=ii(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(t,c),c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById.get(t);if(!e)throw function SO(n){return new D(3301,!1)}();return e}listen(t,e,i,r){const o=xd(e,"","","");return Md(this._getPlayer(t),i,o,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const o=this._getPlayer(t);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const sb="ng-animate-queued",Gd="ng-animate-disabled",wN=[],ab={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},IN={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ut="__ng_removed";class qd{get params(){return this.options.params}constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function xN(n){return n??null}(i?t.value:t),i){const o=ko(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Bo="void",Kd=new qd(Bo);class TN{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,$t(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.has(e))throw function CO(n,t){return new D(3302,!1)}();if(null==i||0==i.length)throw function wO(n){return new D(3303,!1)}();if(!function PN(n){return"start"==n||"done"==n}(i))throw function IO(n,t){return new D(3400,!1)}();const o=Tt(this._elementListeners,t,[]),s={name:e,phase:i,callback:r};o.push(s);const a=Tt(this._engine.statesByElement,t,new Map);return a.has(e)||($t(t,ka),$t(t,ka+"-"+e),a.set(e,Kd)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(t,e){return!this._triggers.has(t)&&(this._triggers.set(t,e),!0)}_getTrigger(t){const e=this._triggers.get(t);if(!e)throw function TO(n){return new D(3401,!1)}();return e}trigger(t,e,i,r=!0){const o=this._getTrigger(e),s=new Qd(this.id,e,t);let a=this._engine.statesByElement.get(t);a||($t(t,ka),$t(t,ka+"-"+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e);const c=new qd(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=Kd),c.value!==Bo&&l.value===c.value){if(!function RN(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r{Ni(t,y),_n(t,_)})}return}const f=Tt(this._engine.playersByElement,t,[]);f.forEach(m=>{m.namespaceId==this.id&&m.triggerName==e&&m.queued&&m.destroy()});let h=o.matchTransition(l.value,c.value,t,c.params),p=!1;if(!h){if(!r)return;h=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||($t(t,sb),s.onStart(()=>{Pr(t,sb)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);const y=this._engine.playersByElement.get(t);if(y){let _=y.indexOf(s);_>=0&&y.splice(_,1)}}),this.players.push(s),f.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,ja,!0);i.forEach(r=>{if(r[Ut])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const o=this._engine.statesByElement.get(t),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(t,c,Bo,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,s),i&&ii(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||Kd,u=new qd(Bo),d=new Qd(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else{let s=t;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const o=t[Ut];(!o||o===ab)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){$t(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=xd(o,i.triggerName,i.fromState.value,i.toState.value);l._data=t,Md(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class MN{_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new TN(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(t,e,i,r){if(Qa(e)){const o=this._fetchNamespace(t);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!Qa(e))return;const o=e[Ut];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),$t(t,Gd)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Pr(t,Gd))}removeNode(t,e,i,r){if(Qa(e)){const o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,o){this.collectedLeaveElements.push(e),e[Ut]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,e,i,r,o){return Qa(e)?this._fetchNamespace(t).listen(e,i,r,o):()=>{}}_buildInstruction(t,e,i,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,ja,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,Fd,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return ii(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[Ut];if(e&&e.setForRemoval){if(t[Ut]=ab,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(Gd)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?ii(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function MO(n){return new D(3402,!1)}()}_flushAnimations(t,e){const i=new Ga,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(I=>{u.add(I);const M=this.driver.query(I,".ng-animate-queued",!0);for(let F=0;F{const F=Rd+m++;p.set(M,F),I.forEach(ee=>$t(ee,F))});const y=[],_=new Set,E=new Set;for(let I=0;I_.add(ee)):E.add(M))}const g=new Map,C=ub(f,Array.from(_));C.forEach((I,M)=>{const F=La+m++;g.set(M,F),I.forEach(ee=>$t(ee,F))}),t.push(()=>{h.forEach((I,M)=>{const F=p.get(M);I.forEach(ee=>Pr(ee,F))}),C.forEach((I,M)=>{const F=g.get(M);I.forEach(ee=>Pr(ee,F))}),y.forEach(I=>{this.processLeaveNode(I)})});const X=[],te=[];for(let I=this._namespaceList.length-1;I>=0;I--)this._namespaceList[I].drainQueuedTransitions(e).forEach(F=>{const ee=F.player,He=F.element;if(X.push(ee),this.collectedEnterElements.length){const et=He[Ut];if(et&&et.setForMove){if(et.previousTriggersValues&&et.previousTriggersValues.has(F.triggerName)){const Bi=et.previousTriggersValues.get(F.triggerName),zt=this.statesByElement.get(F.element);if(zt&&zt.has(F.triggerName)){const _l=zt.get(F.triggerName);_l.value=Bi,zt.set(F.triggerName,_l)}}return void ee.destroy()}}const Dn=!d||!this.driver.containsElement(d,He),xt=g.get(He),di=p.get(He),Ee=this._buildInstruction(F,i,di,xt,Dn);if(Ee.errors&&Ee.errors.length)return void te.push(Ee);if(Dn)return ee.onStart(()=>Ni(He,Ee.fromStyles)),ee.onDestroy(()=>_n(He,Ee.toStyles)),void r.push(ee);if(F.isFallbackTransition)return ee.onStart(()=>Ni(He,Ee.fromStyles)),ee.onDestroy(()=>_n(He,Ee.toStyles)),void r.push(ee);const wE=[];Ee.timelines.forEach(et=>{et.stretchStartingKeyframe=!0,this.disabledNodes.has(et.element)||wE.push(et)}),Ee.timelines=wE,i.append(He,Ee.timelines),s.push({instruction:Ee,player:ee,element:He}),Ee.queriedElements.forEach(et=>Tt(a,et,[]).push(ee)),Ee.preStyleProps.forEach((et,Bi)=>{if(et.size){let zt=l.get(Bi);zt||l.set(Bi,zt=new Set),et.forEach((_l,Nf)=>zt.add(Nf))}}),Ee.postStyleProps.forEach((et,Bi)=>{let zt=c.get(Bi);zt||c.set(Bi,zt=new Set),et.forEach((_l,Nf)=>zt.add(Nf))})});if(te.length){const I=[];te.forEach(M=>{I.push(function AO(n,t){return new D(3505,!1)}())}),X.forEach(M=>M.destroy()),this.reportError(I)}const Je=new Map,zn=new Map;s.forEach(I=>{const M=I.element;i.has(M)&&(zn.set(M,M),this._beforeAnimationBuild(I.player.namespaceId,I.instruction,Je))}),r.forEach(I=>{const M=I.element;this._getPreviousPlayers(M,!1,I.namespaceId,I.triggerName,null).forEach(ee=>{Tt(Je,M,[]).push(ee),ee.destroy()})});const Wn=y.filter(I=>fb(I,l,c)),Gn=new Map;cb(Gn,this.driver,E,c,Vn).forEach(I=>{fb(I,l,c)&&Wn.push(I)});const Qo=new Map;h.forEach((I,M)=>{cb(Qo,this.driver,new Set(I),l,"!")}),Wn.forEach(I=>{const M=Gn.get(I),F=Qo.get(I);Gn.set(I,new Map([...Array.from(M?.entries()??[]),...Array.from(F?.entries()??[])]))});const Vi=[],SE=[],CE={};s.forEach(I=>{const{element:M,player:F,instruction:ee}=I;if(i.has(M)){if(u.has(M))return F.onDestroy(()=>_n(M,ee.toStyles)),F.disabled=!0,F.overrideTotalTime(ee.totalTime),void r.push(F);let He=CE;if(zn.size>1){let xt=M;const di=[];for(;xt=xt.parentNode;){const Ee=zn.get(xt);if(Ee){He=Ee;break}di.push(xt)}di.forEach(Ee=>zn.set(Ee,He))}const Dn=this._buildAnimation(F.namespaceId,ee,Je,o,Qo,Gn);if(F.setRealPlayer(Dn),He===CE)Vi.push(F);else{const xt=this.playersByElement.get(He);xt&&xt.length&&(F.parentPlayer=ii(xt)),r.push(F)}}else Ni(M,ee.fromStyles),F.onDestroy(()=>_n(M,ee.toStyles)),SE.push(F),u.has(M)&&r.push(F)}),SE.forEach(I=>{const M=o.get(I.element);if(M&&M.length){const F=ii(M);I.setRealPlayer(F)}}),r.forEach(I=>{I.parentPlayer?I.syncPlayerEvents(I.parentPlayer):I.destroy()});for(let I=0;I!Dn.destroyed);He.length?ON(this,M,He):this.processLeaveNode(M)}return y.length=0,Vi.forEach(I=>{this.players.push(I),I.onDone(()=>{I.destroy();const M=this.players.indexOf(I);this.players.splice(M,1)}),I.play()}),Vi}elementContainsData(t,e){let i=!1;const r=e[Ut];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const l=!o||o==Bo;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(t,e,i){const o=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,d=Tt(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(h=>{const p=h.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),h.destroy(),d.push(h)})}Ni(o,e.fromStyles)}_buildAnimation(t,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,f=e.timelines.map(p=>{const m=p.element;u.add(m);const y=m[Ut];if(y&&y.removedBeforeQueried)return new Lo(p.duration,p.delay);const _=m!==l,E=function NN(n){const t=[];return db(n,t),t}((i.get(m)||wN).map(Je=>Je.getRealPlayer())).filter(Je=>!!Je.element&&Je.element===m),g=o.get(m),C=s.get(m),X=kv(0,this._normalizer,0,p.keyframes,g,C),te=this._buildPlayer(p,X,E);if(p.subTimeline&&r&&d.add(m),_){const Je=new Qd(t,a,m);Je.setRealPlayer(te),c.push(Je)}return te});c.forEach(p=>{Tt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function AN(n,t,e){let i=n.get(t);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>$t(p,Gv));const h=ii(f);return h.onDestroy(()=>{u.forEach(p=>Pr(p,Gv)),_n(l,e.toStyles)}),d.forEach(p=>{Tt(r,p,[]).push(h)}),h}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Lo(t.duration,t.delay)}}class Qd{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Lo,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>Md(t,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Tt(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Qa(n){return n&&1===n.nodeType}function lb(n,t){const e=n.style.display;return n.style.display=t??"none",e}function cb(n,t,e,i,r){const o=[];e.forEach(l=>o.push(lb(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const f=t.computeStyle(c,d,r);u.set(d,f),(!f||0==f.length)&&(c[Ut]=IN,s.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>lb(l,o[a++])),s}function ub(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return t.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}function $t(n,t){n.classList?.add(t)}function Pr(n,t){n.classList?.remove(t)}function ON(n,t,e){ii(e).onDone(()=>n.processLeaveNode(t))}function db(n,t){for(let e=0;er.add(o)):t.set(n,i),e.delete(n),!0}class Ya{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new MN(t,e,i),this._timelineEngine=new bN(t,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(t,e,i,r,o){const s=t+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],u=Vd(this._driver,o,l,[]);if(l.length)throw function _O(n,t){return new D(3404,!1)}();a=function gN(n,t,e){return new yN(n,t,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[o,s]=jv(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=jv(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(t,e,i,r,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let LN=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=n.initialStylesByElement.get(e);o||n.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&_n(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(_n(this._element,this._initialStyles),this._endStyles&&(_n(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Ni(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ni(this._element,this._endStyles),this._endStyles=null),_n(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function Yd(n){let t=null;return n.forEach((e,i)=>{(function kN(n){return"display"===n||"position"===n})(i)&&(t=t||new Map,t.set(i,e))}),t}class hb{constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){const e=[];return t.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(t,e,i){return t.animate(this._convertKeyframesToObject(e),i)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&t.set(r,this._finished?i:Xv(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class jN{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return Uv(t,e)}getParentElement(t){return Od(t)}query(t,e,i){return $v(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(h=>h instanceof hb);(function UO(n,t){return 0===n||0===t})(i,r)&&u.forEach(h=>{h.currentSnapshot.forEach((p,m)=>c.set(m,p))});let d=function jO(n){return n.length?n[0]instanceof Map?n:n.map(t=>qv(t)):[]}(e).map(h=>ri(h));d=function $O(n,t,e){if(e.size&&t.length){let i=t[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,Xv(n,a)))}}return t}(t,d,c);const f=function FN(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=Yd(t[0]),t.length>1&&(i=Yd(t[t.length-1]))):t instanceof Map&&(e=Yd(t)),e||i?new LN(n,e,i):null}(t,d);return new hb(t,d,l,f)}}let VN=(()=>{class n extends Mv{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Kt.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?xv(e):e;return pb(this._renderer,null,i,"register",[r]),new BN(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(A(lo),A(kt))},n.\u0275prov=U({token:n,factory:n.\u0275fac}),n})();class BN extends Q1{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new HN(this._id,t,e||{},this._renderer)}}class HN{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return pb(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function pb(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const mb="@.disabled";let UN=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new gb("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,e,u.name,u)};return i.data.animation.forEach(l),new $N(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(e){return new(e||n)(A(lo),A(Ya),A(Te))},n.\u0275prov=U({token:n,factory:n.\u0275fac}),n})();class gb{constructor(t,e,i,r){this.namespaceId=t,this.delegate=e,this.engine=i,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==mb?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class $N extends gb{constructor(t,e,i,r,o){super(e,i,r,o),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==mb?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function zN(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function WN(n){const t=n.indexOf(".");return[n.substring(0,t),n.slice(t+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}let GN=(()=>{class n extends Ya{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(A(kt),A(Nd),A(zd),A(Mo))},n.\u0275prov=U({token:n,factory:n.\u0275fac}),n})();const yb=[{provide:Mv,useClass:VN},{provide:zd,useFactory:function qN(){return new fN}},{provide:Ya,useClass:GN},{provide:lo,useFactory:function KN(n,t,e){return new UN(n,t,e)},deps:[Aa,Ya,Te]}],Zd=[{provide:Nd,useFactory:()=>new jN},{provide:c_,useValue:"BrowserAnimations"},...yb],_b=[{provide:Nd,useClass:zv},{provide:c_,useValue:"NoopAnimations"},...yb];let QN=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?_b:Zd}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Le({type:n}),n.\u0275inj=xe({providers:Zd,imports:[Dv]}),n})(),YN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Le({type:n}),n.\u0275inj=xe({imports:[[]]}),n})();function vb(n,t){return function(i){return i.lift(new XN(n,t))}}class XN{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new JN(t,this.predicate,this.thisArg))}}class JN extends we{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}class Xa{}class Xd{}class Hn{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Hn?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Hn;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Hn?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=t.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class eR{encodeKey(t){return bb(t)}encodeValue(t){return bb(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const nR=/%(\d[a-f0-9])/gi,iR={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function bb(n){return encodeURIComponent(n).replace(nR,(t,e)=>iR[e]??t)}function Ja(n){return`${n}`}class oi{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new eR,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function tR(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e],r=Array.isArray(i)?i.map(Ja):[Ja(i)];this.map.set(e,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new oi({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(Ja(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(Ja(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class rR{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function Db(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function Eb(n){return typeof Blob<"u"&&n instanceof Blob}function Sb(n){return typeof FormData<"u"&&n instanceof FormData}class Ho{constructor(t,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function oR(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Hn),this.context||(this.context=new rR),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ad.set(f,t.setHeaders[f]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((d,f)=>d.set(f,t.setParams[f]),c)),new Ho(e,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var Re=(()=>((Re=Re||{})[Re.Sent=0]="Sent",Re[Re.UploadProgress=1]="UploadProgress",Re[Re.ResponseHeader=2]="ResponseHeader",Re[Re.DownloadProgress=3]="DownloadProgress",Re[Re.Response=4]="Response",Re[Re.User=5]="User",Re))();class Jd{constructor(t,e=200,i="OK"){this.headers=t.headers||new Hn,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class ef extends Jd{constructor(t={}){super(t),this.type=Re.ResponseHeader}clone(t={}){return new ef({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class el extends Jd{constructor(t={}){super(t),this.type=Re.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new el({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Cb extends Jd{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function tf(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let wb=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Ho)o=e;else{let l,c;l=r.headers instanceof Hn?r.headers:new Hn(r.headers),r.params&&(c=r.params instanceof oi?r.params:new oi({fromObject:r.params})),o=new Ho(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=xa(o).pipe(function ZN(n,t){return Sl(n,t,1)}(l=>this.handler.handle(l)));if(e instanceof Ho||"events"===r.observe)return s;const a=s.pipe(vb(l=>l instanceof el));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(ht(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(ht(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(ht(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ht(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new oi).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,tf(r,i))}post(e,i,r={}){return this.request("POST",e,tf(r,i))}put(e,i,r={}){return this.request("PUT",e,tf(r,i))}}return n.\u0275fac=function(e){return new(e||n)(A(Xa))},n.\u0275prov=U({token:n,factory:n.\u0275fac}),n})();function Ib(n,t){return t(n)}function aR(n,t){return(e,i)=>t.intercept(e,{handle:r=>n(r,i)})}const cR=new x("HTTP_INTERCEPTORS"),Uo=new x("HTTP_INTERCEPTOR_FNS");function uR(){let n=null;return(t,e)=>(null===n&&(n=(Br(cR,{optional:!0})??[]).reduceRight(aR,Ib)),n(t,e))}let Tb=(()=>{class n extends Xa{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=Array.from(new Set(this.injector.get(Uo)));this.chain=i.reduceRight((r,o)=>function lR(n,t,e){return(i,r)=>e.runInContext(()=>t(i,o=>n(o,r)))}(r,o,this.injector),Ib)}return this.chain(e,i=>this.backend.handle(i))}}return n.\u0275fac=function(e){return new(e||n)(A(Xd),A(Di))},n.\u0275prov=U({token:n,factory:n.\u0275fac}),n})();const pR=/^\)\]\}',?\n/;let Ab=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ye(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((h,p)=>r.setRequestHeader(h,p.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const h=e.detectContentTypeHeader();null!==h&&r.setRequestHeader("Content-Type",h)}if(e.responseType){const h=e.responseType.toLowerCase();r.responseType="json"!==h?h:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const h=r.statusText||"OK",p=new Hn(r.getAllResponseHeaders()),m=function mR(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new ef({headers:p,status:r.status,statusText:h,url:m}),s},l=()=>{let{headers:h,status:p,statusText:m,url:y}=a(),_=null;204!==p&&(_=typeof r.response>"u"?r.responseText:r.response),0===p&&(p=_?200:0);let E=p>=200&&p<300;if("json"===e.responseType&&"string"==typeof _){const g=_;_=_.replace(pR,"");try{_=""!==_?JSON.parse(_):null}catch(C){_=g,E&&(E=!1,_={error:C,text:_})}}E?(i.next(new el({body:_,headers:h,status:p,statusText:m,url:y||void 0})),i.complete()):i.error(new Cb({error:_,headers:h,status:p,statusText:m,url:y||void 0}))},c=h=>{const{url:p}=a(),m=new Cb({error:h,status:r.status||0,statusText:r.statusText||"Unknown Error",url:p||void 0});i.error(m)};let u=!1;const d=h=>{u||(i.next(a()),u=!0);let p={type:Re.DownloadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),"text"===e.responseType&&r.responseText&&(p.partialText=r.responseText),i.next(p)},f=h=>{let p={type:Re.UploadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),i.next(p)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==o&&r.upload&&r.upload.addEventListener("progress",f)),r.send(o),i.next({type:Re.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==o&&r.upload&&r.upload.removeEventListener("progress",f)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(A(ev))},n.\u0275prov=U({token:n,factory:n.\u0275fac}),n})();const nf=new x("XSRF_ENABLED"),xb="XSRF-TOKEN",Pb=new x("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>xb}),Ob="X-XSRF-TOKEN",Nb=new x("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>Ob});class Rb{}let gR=(()=>{class n{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=$_(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(A(kt),A(ju),A(Pb))},n.\u0275prov=U({token:n,factory:n.\u0275fac}),n})();function yR(n,t){const e=n.url.toLowerCase();if(!Br(nf)||"GET"===n.method||"HEAD"===n.method||e.startsWith("http://")||e.startsWith("https://"))return t(n);const i=Br(Rb).getToken(),r=Br(Nb);return null!=i&&!n.headers.has(r)&&(n=n.clone({headers:n.headers.set(r,i)})),t(n)}var Ae=(()=>((Ae=Ae||{})[Ae.Interceptors=0]="Interceptors",Ae[Ae.LegacyInterceptors=1]="LegacyInterceptors",Ae[Ae.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Ae[Ae.NoXsrfProtection=3]="NoXsrfProtection",Ae[Ae.JsonpSupport=4]="JsonpSupport",Ae[Ae.RequestsMadeViaParent=5]="RequestsMadeViaParent",Ae))();function Or(n,t){return{\u0275kind:n,\u0275providers:t}}function _R(...n){const t=[wb,Ab,Tb,{provide:Xa,useExisting:Tb},{provide:Xd,useExisting:Ab},{provide:Uo,useValue:yR,multi:!0},{provide:nf,useValue:!0},{provide:Rb,useClass:gR}];for(const e of n)t.push(...e.\u0275providers);return function xw(n){return{\u0275providers:n}}(t)}const Fb=new x("LEGACY_INTERCEPTOR_FN");function bR({cookieName:n,headerName:t}){const e=[];return void 0!==n&&e.push({provide:Pb,useValue:n}),void 0!==t&&e.push({provide:Nb,useValue:t}),Or(Ae.CustomXsrfConfiguration,e)}let DR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Le({type:n}),n.\u0275inj=xe({providers:[_R(Or(Ae.LegacyInterceptors,[{provide:Fb,useFactory:uR},{provide:Uo,useExisting:Fb,multi:!0}]),bR({cookieName:xb,headerName:Ob}))]}),n})();const Lb=["*"];let Ze=(()=>{class n{}return n.STARTS_WITH="startsWith",n.CONTAINS="contains",n.NOT_CONTAINS="notContains",n.ENDS_WITH="endsWith",n.EQUALS="equals",n.NOT_EQUALS="notEquals",n.IN="in",n.LESS_THAN="lt",n.LESS_THAN_OR_EQUAL_TO="lte",n.GREATER_THAN="gt",n.GREATER_THAN_OR_EQUAL_TO="gte",n.BETWEEN="between",n.IS="is",n.IS_NOT="isNot",n.BEFORE="before",n.AFTER="after",n.DATE_IS="dateIs",n.DATE_IS_NOT="dateIsNot",n.DATE_BEFORE="dateBefore",n.DATE_AFTER="dateAfter",n})(),kb=(()=>{class n{constructor(){this.ripple=!1,this.overlayOptions={},this.filterMatchModeOptions={text:[Ze.STARTS_WITH,Ze.CONTAINS,Ze.NOT_CONTAINS,Ze.ENDS_WITH,Ze.EQUALS,Ze.NOT_EQUALS],numeric:[Ze.EQUALS,Ze.NOT_EQUALS,Ze.LESS_THAN,Ze.LESS_THAN_OR_EQUAL_TO,Ze.GREATER_THAN,Ze.GREATER_THAN_OR_EQUAL_TO],date:[Ze.DATE_IS,Ze.DATE_IS_NOT,Ze.DATE_BEFORE,Ze.DATE_AFTER]},this.translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",emptyFilterMessage:"No results found"},this.zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100},this.translationSource=new Kn,this.translationObserver=this.translationSource.asObservable()}getTranslation(e){return this.translation[e]}setTranslation(e){this.translation={...this.translation,...e},this.translationSource.next(this.translation)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=U({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ER=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Nt({type:n,selectors:[["p-header"]],ngContentSelectors:Lb,decls:1,vars:0,template:function(e,i){1&e&&(Ci(),On(0))},encapsulation:2}),n})(),SR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Nt({type:n,selectors:[["p-footer"]],ngContentSelectors:Lb,decls:1,vars:0,template:function(e,i){1&e&&(Ci(),On(0))},encapsulation:2}),n})(),jb=(()=>{class n{constructor(e){this.template=e}getType(){return this.name}}return n.\u0275fac=function(e){return new(e||n)(b(gn))},n.\u0275dir=L({type:n,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}}),n})(),CR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Le({type:n}),n.\u0275inj=xe({imports:[Bt]}),n})(),q=(()=>{class n{static addClass(e,i){e&&i&&(e.classList?e.classList.add(i):e.className+=" "+i)}static addMultipleClasses(e,i){if(e&&i)if(e.classList){let r=i.trim().split(" ");for(let o=0;o{if(m)return"relative"===getComputedStyle(m).getPropertyValue("position")?m:r(m.parentElement)},o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),s=i.offsetHeight,a=i.getBoundingClientRect(),l=this.getWindowScrollTop(),c=this.getWindowScrollLeft(),u=this.getViewport(),f=r(e)?.getBoundingClientRect()||{top:-1*l,left:-1*c};let h,p;a.top+s+o.height>u.height?(h=a.top-f.top-o.height,e.style.transformOrigin="bottom",a.top+h<0&&(h=-1*a.top)):(h=s+a.top-f.top,e.style.transformOrigin="top"),p=o.width>u.width?-1*(a.left-f.left):a.left-f.left+o.width>u.width?-1*(a.left-f.left+o.width-u.width):a.left-f.left,e.style.top=h+"px",e.style.left=p+"px"}static absolutePosition(e,i){const r=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),o=r.height,s=r.width,a=i.offsetHeight,l=i.offsetWidth,c=i.getBoundingClientRect(),u=this.getWindowScrollTop(),d=this.getWindowScrollLeft(),f=this.getViewport();let h,p;c.top+a+o>f.height?(h=c.top+u-o,e.style.transformOrigin="bottom",h<0&&(h=u)):(h=a+c.top+u,e.style.transformOrigin="top"),p=c.left+s>f.width?Math.max(0,c.left+d+l-s):c.left+d,e.style.top=h+"px",e.style.left=p+"px"}static getParents(e,i=[]){return null===e.parentNode?i:this.getParents(e.parentNode,i.concat([e.parentNode]))}static getScrollableParents(e){let i=[];if(e){let r=this.getParents(e);const o=/(auto|scroll)/,s=a=>{let l=window.getComputedStyle(a,null);return o.test(l.getPropertyValue("overflow"))||o.test(l.getPropertyValue("overflowX"))||o.test(l.getPropertyValue("overflowY"))};for(let a of r){let l=1===a.nodeType&&a.dataset.scrollselectors;if(l){let c=l.split(",");for(let u of c){let d=this.findSingle(a,u);d&&s(d)&&i.push(d)}}9!==a.nodeType&&s(a)&&i.push(a)}}return i}static getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let i=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",i}static getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let i=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",i}static getHiddenElementDimensions(e){let i={};return e.style.visibility="hidden",e.style.display="block",i.width=e.offsetWidth,i.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",i}static scrollInView(e,i){let r=getComputedStyle(e).getPropertyValue("borderTopWidth"),o=r?parseFloat(r):0,s=getComputedStyle(e).getPropertyValue("paddingTop"),a=s?parseFloat(s):0,l=e.getBoundingClientRect(),u=i.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-o-a,d=e.scrollTop,f=e.clientHeight,h=this.getOuterHeight(i);u<0?e.scrollTop=d+u:u+h>f&&(e.scrollTop=d+u-f+h)}static fadeIn(e,i){e.style.opacity=0;let r=+new Date,o=0,s=function(){o=+e.style.opacity.replace(",",".")+((new Date).getTime()-r)/i,e.style.opacity=o,r=+new Date,+o<1&&(window.requestAnimationFrame&&requestAnimationFrame(s)||setTimeout(s,16))};s()}static fadeOut(e,i){var r=1,a=50/i;let l=setInterval(()=>{(r-=a)<=0&&(r=0,clearInterval(l)),e.style.opacity=r},50)}static getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}static getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}static matches(e,i){var r=Element.prototype;return(r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector||function(s){return-1!==[].indexOf.call(document.querySelectorAll(s),this)}).call(e,i)}static getOuterWidth(e,i){let r=e.offsetWidth;if(i){let o=getComputedStyle(e);r+=parseFloat(o.marginLeft)+parseFloat(o.marginRight)}return r}static getHorizontalPadding(e){let i=getComputedStyle(e);return parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)}static getHorizontalMargin(e){let i=getComputedStyle(e);return parseFloat(i.marginLeft)+parseFloat(i.marginRight)}static innerWidth(e){let i=e.offsetWidth,r=getComputedStyle(e);return i+=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i}static width(e){let i=e.offsetWidth,r=getComputedStyle(e);return i-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i}static getInnerHeight(e){let i=e.offsetHeight,r=getComputedStyle(e);return i+=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),i}static getOuterHeight(e,i){let r=e.offsetHeight;if(i){let o=getComputedStyle(e);r+=parseFloat(o.marginTop)+parseFloat(o.marginBottom)}return r}static getHeight(e){let i=e.offsetHeight,r=getComputedStyle(e);return i-=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),i}static getWidth(e){let i=e.offsetWidth,r=getComputedStyle(e);return i-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight)+parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),i}static getViewport(){let e=window,i=document,r=i.documentElement,o=i.getElementsByTagName("body")[0];return{width:e.innerWidth||r.clientWidth||o.clientWidth,height:e.innerHeight||r.clientHeight||o.clientHeight}}static getOffset(e){var i=e.getBoundingClientRect();return{top:i.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:i.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(e,i){let r=e.parentNode;if(!r)throw"Can't replace element";return r.replaceChild(i,e)}static getUserAgent(){return navigator.userAgent}static isIE(){var e=window.navigator.userAgent;return e.indexOf("MSIE ")>0||(e.indexOf("Trident/")>0?(e.indexOf("rv:"),!0):e.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(e,i){if(this.isElement(i))i.appendChild(e);else{if(!i.el||!i.el.nativeElement)throw"Cannot append "+i+" to "+e;i.el.nativeElement.appendChild(e)}}static removeChild(e,i){if(this.isElement(i))i.removeChild(e);else{if(!i.el||!i.el.nativeElement)throw"Cannot remove "+e+" from "+i;i.el.nativeElement.removeChild(e)}}static removeElement(e){"remove"in Element.prototype?e.remove():e.parentNode.removeChild(e)}static isElement(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}static calculateScrollbarWidth(e){if(e){let i=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(i.borderLeftWidth)-parseFloat(i.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let i=document.createElement("div");i.className="p-scrollbar-measure",document.body.appendChild(i);let r=i.offsetWidth-i.clientWidth;return document.body.removeChild(i),this.calculatedScrollbarWidth=r,r}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let i=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=i,i}static invokeElementMethod(e,i,r){e[i].apply(e,r)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),i=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:i[1]||"",version:i[2]||"0"}}static isInteger(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}static isHidden(e){return!e||null===e.offsetParent}static isVisible(e){return e&&null!=e.offsetParent}static isExist(e){return null!==e&&typeof e<"u"&&e.nodeName&&e.parentNode}static focus(e,i){e&&document.activeElement!==e&&e.focus(i)}static getFocusableElements(e){let i=n.find(e,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]):not(.p-disabled)'),r=[];for(let o of i)(o.offsetWidth||o.offsetHeight||o.getClientRects().length)&&r.push(o);return r}static getNextFocusableElement(e,i=!1){const r=n.getFocusableElements(e);let o=0;if(r&&r.length>0){const s=r.indexOf(r[0].ownerDocument.activeElement);i?o=-1==s||0===s?r.length-1:s-1:-1!=s&&s!==r.length-1&&(o=s+1)}return r[o]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(e,i){if(!e)return null;switch(e){case"document":return document;case"window":return window;case"@next":return i?.nextElementSibling;case"@prev":return i?.previousElementSibling;case"@parent":return i?.parentElement;case"@grandparent":return i?.parentElement.parentElement;default:const r=typeof e;if("string"===r)return document.querySelector(e);if("object"===r&&e.hasOwnProperty("nativeElement"))return this.isExist(e.nativeElement)?e.nativeElement:void 0;const s=(a=e)&&a.constructor&&a.call&&a.apply?e():e;return s&&9===s.nodeType||this.isExist(s)?s:null}var a}}return n.zindex=1e3,n.calculatedScrollbarWidth=null,n.calculatedScrollbarHeight=null,n})(),Vb=(()=>{class n{constructor(e,i,r){this.el=e,this.zone=i,this.config=r}ngAfterViewInit(){this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.onMouseDown.bind(this),this.el.nativeElement.addEventListener("mousedown",this.mouseDownListener)})}onMouseDown(e){let i=this.getInk();if(!i||"none"===getComputedStyle(i,null).display)return;if(q.removeClass(i,"p-ink-active"),!q.getHeight(i)&&!q.getWidth(i)){let a=Math.max(q.getOuterWidth(this.el.nativeElement),q.getOuterHeight(this.el.nativeElement));i.style.height=a+"px",i.style.width=a+"px"}let r=q.getOffset(this.el.nativeElement),o=e.pageX-r.left+document.body.scrollTop-q.getWidth(i)/2,s=e.pageY-r.top+document.body.scrollLeft-q.getHeight(i)/2;i.style.top=s+"px",i.style.left=o+"px",q.addClass(i,"p-ink-active"),this.timeout=setTimeout(()=>{let a=this.getInk();a&&q.removeClass(a,"p-ink-active")},401)}getInk(){const e=this.el.nativeElement.children;for(let i=0;i{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Le({type:n}),n.\u0275inj=xe({imports:[Bt]}),n})();function wR(n,t){1&n&&Dr(0)}const IR=function(n,t,e,i){return{"p-button-icon":!0,"p-button-icon-left":n,"p-button-icon-right":t,"p-button-icon-top":e,"p-button-icon-bottom":i}};function TR(n,t){if(1&n&>(0,"span",4),2&n){const e=j();Ii(e.loading?"p-button-loading-icon "+e.loadingIcon:e.icon),T("ngClass",Su(4,IR,"left"===e.iconPos&&e.label,"right"===e.iconPos&&e.label,"top"===e.iconPos&&e.label,"bottom"===e.iconPos&&e.label)),Ye("aria-hidden",!0)}}function MR(n,t){if(1&n&&($(0,"span",5),rn(1),Y()),2&n){const e=j();Ye("aria-hidden",e.icon&&!e.label),N(1),Ti(e.label)}}function AR(n,t){if(1&n&&($(0,"span",4),rn(1),Y()),2&n){const e=j();Ii(e.badgeClass),T("ngClass",e.badgeStyleClass()),N(1),Ti(e.badge)}}const xR=function(n,t,e,i,r){return{"p-button p-component":!0,"p-button-icon-only":n,"p-button-vertical":t,"p-disabled":e,"p-button-loading":i,"p-button-loading-label-only":r}},PR=["*"];let Hb=(()=>{class n{constructor(){this.type="button",this.iconPos="left",this.loading=!1,this.loadingIcon="pi pi-spinner pi-spin",this.onClick=new J,this.onFocus=new J,this.onBlur=new J}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template})}badgeStyleClass(){return{"p-badge p-component":!0,"p-badge-no-gutter":this.badge&&1===String(this.badge).length}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Nt({type:n,selectors:[["p-button"]],contentQueries:function(e,i,r){if(1&e&&wo(r,jb,4),2&e){let o;Nn(o=Rn())&&(i.templates=o)}},hostAttrs:[1,"p-element"],inputs:{type:"type",iconPos:"iconPos",icon:"icon",badge:"badge",label:"label",disabled:"disabled",loading:"loading",loadingIcon:"loadingIcon",style:"style",styleClass:"styleClass",badgeClass:"badgeClass",ariaLabel:"ariaLabel"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},ngContentSelectors:PR,decls:6,vars:17,consts:[["pRipple","",3,"ngStyle","disabled","ngClass","click","focus","blur"],[4,"ngTemplateOutlet"],[3,"ngClass","class",4,"ngIf"],["class","p-button-label",4,"ngIf"],[3,"ngClass"],[1,"p-button-label"]],template:function(e,i){1&e&&(Ci(),$(0,"button",0),ie("click",function(o){return i.onClick.emit(o)})("focus",function(o){return i.onFocus.emit(o)})("blur",function(o){return i.onBlur.emit(o)}),On(1),ae(2,wR,1,0,"ng-container",1),ae(3,TR,1,9,"span",2),ae(4,MR,2,2,"span",3),ae(5,AR,2,4,"span",2),Y()),2&e&&(Ii(i.styleClass),T("ngStyle",i.style)("disabled",i.disabled||i.loading)("ngClass",function Iy(n,t,e,i,r,o,s,a){const l=ot()+n,c=v(),u=Lt(c,l,e,i,r,o);return Qe(c,l+4,s)||u?pn(c,l+5,a?t.call(a,e,i,r,o,s):t(e,i,r,o,s)):po(c,l+5)}(11,xR,i.icon&&!i.label,("top"===i.iconPos||"bottom"===i.iconPos)&&i.label,i.disabled||i.loading,i.loading,i.loading&&!i.icon&&i.label)),Ye("type",i.type)("aria-label",i.ariaLabel),N(2),T("ngTemplateOutlet",i.contentTemplate),N(1),T("ngIf",!i.contentTemplate&&(i.icon||i.loading)),N(1),T("ngIf",!i.contentTemplate&&i.label),N(1),T("ngIf",!i.contentTemplate&&i.badge))},dependencies:[Oo,xr,ud,Ca,Vb],encapsulation:2,changeDetection:0}),n})(),Ub=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Le({type:n}),n.\u0275inj=xe({imports:[Bt,Bb]}),n})(),OR=(()=>{class n{constructor(e){this.el=e}onkeydown(e){if(!0!==this.pFocusTrapDisabled){e.preventDefault();const i=q.getNextFocusableElement(this.el.nativeElement,e.shiftKey);i&&(i.focus(),i.select?.())}}}return n.\u0275fac=function(e){return new(e||n)(b(at))},n.\u0275dir=L({type:n,selectors:[["","pFocusTrap",""]],hostAttrs:[1,"p-element"],hostBindings:function(e,i){1&e&&ie("keydown.tab",function(o){return i.onkeydown(o)})("keydown.shift.tab",function(o){return i.onkeydown(o)})},inputs:{pFocusTrapDisabled:"pFocusTrapDisabled"}}),n})(),NR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Le({type:n}),n.\u0275inj=xe({imports:[Bt]}),n})();var zb=0,Wb=function FR(){let n=[];const r=o=>o&&parseInt(o.style.zIndex,10)||0;return{get:r,set:(o,s,a)=>{s&&(s.style.zIndex=String(((o,s)=>{let a=n.length>0?n[n.length-1]:{key:o,value:s},l=a.value+(a.key===o?0:s)+1;return n.push({key:o,value:l}),l})(o,a)))},clear:o=>{o&&((o=>{n=n.filter(s=>s.value!==o)})(r(o)),o.style.zIndex="")},getCurrent:()=>n.length>0?n[n.length-1].value:0}}();const LR=["titlebar"],kR=["content"],jR=["footer"];function VR(n,t){if(1&n){const e=Jt();$(0,"div",11),ie("mousedown",function(r){return _e(e),ve(j(3).initResize(r))}),Y()}}function BR(n,t){if(1&n&&($(0,"span",18),rn(1),Y()),2&n){const e=j(4);Ye("id",e.id+"-label"),N(1),Ti(e.header)}}function HR(n,t){1&n&&($(0,"span",18),On(1,1),Y()),2&n&&Ye("id",j(4).id+"-label")}function UR(n,t){1&n&&Dr(0)}const $R=function(){return{"p-dialog-header-icon p-dialog-header-maximize p-link":!0}};function zR(n,t){if(1&n){const e=Jt();$(0,"button",19),ie("click",function(){return _e(e),ve(j(4).maximize())})("keydown.enter",function(){return _e(e),ve(j(4).maximize())}),gt(1,"span",20),Y()}if(2&n){const e=j(4);T("ngClass",ia(2,$R)),N(1),T("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}const WR=function(){return{"p-dialog-header-icon p-dialog-header-close p-link":!0}};function GR(n,t){if(1&n){const e=Jt();$(0,"button",21),ie("click",function(r){return _e(e),ve(j(4).close(r))})("keydown.enter",function(r){return _e(e),ve(j(4).close(r))}),gt(1,"span",22),Y()}if(2&n){const e=j(4);T("ngClass",ia(4,WR)),Ye("aria-label",e.closeAriaLabel)("tabindex",e.closeTabindex),N(1),T("ngClass",e.closeIcon)}}function qR(n,t){if(1&n){const e=Jt();$(0,"div",12,13),ie("mousedown",function(r){return _e(e),ve(j(3).initDrag(r))}),ae(2,BR,2,2,"span",14),ae(3,HR,2,1,"span",14),ae(4,UR,1,0,"ng-container",9),$(5,"div",15),ae(6,zR,2,3,"button",16),ae(7,GR,2,5,"button",17),Y()()}if(2&n){const e=j(3);N(2),T("ngIf",!e.headerFacet&&!e.headerTemplate),N(1),T("ngIf",e.headerFacet),N(1),T("ngTemplateOutlet",e.headerTemplate),N(2),T("ngIf",e.maximizable),N(1),T("ngIf",e.closable)}}function KR(n,t){1&n&&Dr(0)}function QR(n,t){1&n&&Dr(0)}function YR(n,t){if(1&n&&($(0,"div",23,24),On(2,2),ae(3,QR,1,0,"ng-container",9),Y()),2&n){const e=j(3);N(3),T("ngTemplateOutlet",e.footerTemplate)}}const ZR=function(n,t,e,i){return{"p-dialog p-component":!0,"p-dialog-rtl":n,"p-dialog-draggable":t,"p-dialog-resizable":e,"p-dialog-maximized":i}},XR=function(n,t){return{transform:n,transition:t}},JR=function(n){return{value:"visible",params:n}};function eF(n,t){if(1&n){const e=Jt();$(0,"div",3,4),ie("@animation.start",function(r){return _e(e),ve(j(2).onAnimationStart(r))})("@animation.done",function(r){return _e(e),ve(j(2).onAnimationEnd(r))}),ae(2,VR,1,0,"div",5),ae(3,qR,8,5,"div",6),$(4,"div",7,8),On(6),ae(7,KR,1,0,"ng-container",9),Y(),ae(8,YR,4,1,"div",10),Y()}if(2&n){const e=j(2);Ii(e.styleClass),T("ngClass",Su(15,ZR,e.rtl,e.draggable,e.resizable,e.maximized))("ngStyle",e.style)("pFocusTrapDisabled",!1===e.focusTrap)("@animation",ra(23,JR,function Cy(n,t,e,i,r){return Ay(v(),ot(),n,t,e,i,r)}(20,XR,e.transformOptions,e.transitionOptions))),Ye("aria-labelledby",e.id+"-label"),N(2),T("ngIf",e.resizable),N(1),T("ngIf",e.showHeader),N(1),Ii(e.contentStyleClass),T("ngClass","p-dialog-content")("ngStyle",e.contentStyle),N(3),T("ngTemplateOutlet",e.contentTemplate),N(1),T("ngIf",e.footerFacet||e.footerTemplate)}}const tF=function(n,t,e,i,r,o,s,a,l,c){return{"p-dialog-mask":!0,"p-component-overlay p-component-overlay-enter":n,"p-dialog-mask-scrollblocker":t,"p-dialog-left":e,"p-dialog-right":i,"p-dialog-top":r,"p-dialog-top-left":o,"p-dialog-top-right":s,"p-dialog-bottom":a,"p-dialog-bottom-left":l,"p-dialog-bottom-right":c}};function nF(n,t){if(1&n&&($(0,"div",1),ae(1,eF,9,25,"div",2),Y()),2&n){const e=j();Ii(e.maskStyleClass),T("ngClass",Ty(4,tF,[e.modal,e.modal||e.blockScroll,"left"===e.position,"right"===e.position,"top"===e.position,"topleft"===e.position||"top-left"===e.position,"topright"===e.position||"top-right"===e.position,"bottom"===e.position,"bottomleft"===e.position||"bottom-left"===e.position,"bottomright"===e.position||"bottom-right"===e.position])),N(1),T("ngIf",e.visible)}}const iF=["*",[["p-header"]],[["p-footer"]]],rF=["*","p-header","p-footer"],oF=Ov([Fa({transform:"{{transform}}",opacity:0}),Av("{{transition}}")]),sF=Ov([Av("{{transition}}",Fa({transform:"{{transform}}",opacity:0}))]);let aF=(()=>{class n{constructor(e,i,r,o,s){this.el=e,this.renderer=i,this.zone=r,this.cd=o,this.config=s,this.draggable=!0,this.resizable=!0,this.closeOnEscape=!0,this.closable=!0,this.showHeader=!0,this.blockScroll=!1,this.autoZIndex=!0,this.baseZIndex=0,this.minX=0,this.minY=0,this.focusOnShow=!0,this.keepInViewport=!0,this.focusTrap=!0,this.transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)",this.closeIcon="pi pi-times",this.closeTabindex="-1",this.minimizeIcon="pi pi-window-minimize",this.maximizeIcon="pi pi-window-maximize",this.onShow=new J,this.onHide=new J,this.visibleChange=new J,this.onResizeInit=new J,this.onResizeEnd=new J,this.onDragEnd=new J,this.onMaximize=new J,this.id=function RR(){return"pr_id_"+ ++zb}(),this._style={},this._position="center",this.transformOptions="scale(0.7)"}get positionLeft(){return 0}set positionLeft(e){console.log("positionLeft property is deprecated.")}get positionTop(){return 0}set positionTop(e){console.log("positionTop property is deprecated.")}get responsive(){return!1}set responsive(e){console.log("Responsive property is deprecated.")}get breakpoint(){return 649}set breakpoint(e){console.log("Breakpoint property is not utilized and deprecated, use breakpoints or CSS media queries instead.")}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"content":default:this.contentTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}ngOnInit(){this.breakpoints&&this.createStyle()}get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0)}get style(){return this._style}set style(e){e&&(this._style={...e},this.originalStyle=e)}get position(){return this._position}set position(e){switch(this._position=e,e){case"topleft":case"bottomleft":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"topright":case"bottomright":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)"}}focus(){let e=q.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngular(()=>{setTimeout(()=>e.focus(),5)})}close(e){this.visibleChange.emit(!1),e.preventDefault()}enableModality(){this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",e=>{this.wrapper&&this.wrapper.isSameNode(e.target)&&this.close(e)})),this.modal&&q.addClass(document.body,"p-overflow-hidden")}disableModality(){this.wrapper&&(this.dismissableMask&&this.unbindMaskClickListener(),this.modal&&q.removeClass(document.body,"p-overflow-hidden"),this.cd.destroyed||this.cd.detectChanges())}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?q.addClass(document.body,"p-overflow-hidden"):q.removeClass(document.body,"p-overflow-hidden")),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex&&(Wb.set("modal",this.container,this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1))}createStyle(){if(!this.styleElement){this.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let e="";for(let i in this.breakpoints)e+=`\n @media screen and (max-width: ${i}) {\n .p-dialog[${this.id}] {\n width: ${this.breakpoints[i]} !important;\n }\n }\n `;this.styleElement.innerHTML=e}}initDrag(e){q.hasClass(e.target,"p-dialog-header-icon")||q.hasClass(e.target.parentElement,"p-dialog-header-icon")||this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",q.addClass(document.body,"p-unselectable-text"))}onKeydown(e){if(this.focusTrap&&9===e.which){e.preventDefault();let i=q.getFocusableElements(this.container);if(i&&i.length>0)if(i[0].ownerDocument.activeElement){let r=i.indexOf(i[0].ownerDocument.activeElement);e.shiftKey?-1==r||0===r?i[i.length-1].focus():i[r-1].focus():-1==r||r===i.length-1?i[0].focus():i[r+1].focus()}else i[0].focus()}}onDrag(e){if(this.dragging){let i=q.getOuterWidth(this.container),r=q.getOuterHeight(this.container),o=e.pageX-this.lastPageX,s=e.pageY-this.lastPageY,a=this.container.getBoundingClientRect(),l=a.left+o,c=a.top+s,u=q.getViewport();this.container.style.position="fixed",this.keepInViewport?(l>=this.minX&&l+i=this.minY&&c+rparseInt(u))&&f.left+lparseInt(d))&&f.top+c{this.documentDragListener=this.onDrag.bind(this),window.document.addEventListener("mousemove",this.documentDragListener)})}unbindDocumentDragListener(){this.documentDragListener&&(window.document.removeEventListener("mousemove",this.documentDragListener),this.documentDragListener=null)}bindDocumentDragEndListener(){this.zone.runOutsideAngular(()=>{this.documentDragEndListener=this.endDrag.bind(this),window.document.addEventListener("mouseup",this.documentDragEndListener)})}unbindDocumentDragEndListener(){this.documentDragEndListener&&(window.document.removeEventListener("mouseup",this.documentDragEndListener),this.documentDragEndListener=null)}bindDocumentResizeListeners(){this.zone.runOutsideAngular(()=>{this.documentResizeListener=this.onResize.bind(this),this.documentResizeEndListener=this.resizeEnd.bind(this),window.document.addEventListener("mousemove",this.documentResizeListener),window.document.addEventListener("mouseup",this.documentResizeEndListener)})}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(window.document.removeEventListener("mousemove",this.documentResizeListener),window.document.removeEventListener("mouseup",this.documentResizeEndListener),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindDocumentEscapeListener(){this.documentEscapeListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","keydown",i=>{27==i.which&&this.close(i)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.wrapper):q.appendChild(this.wrapper,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.wrapper)}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.wrapper=this.container.parentElement,this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.container.setAttribute(this.id,""),this.modal&&this.enableModality(),!this.modal&&this.blockScroll&&q.addClass(document.body,"p-overflow-hidden"),this.focusOnShow&&this.focus();break;case"void":this.wrapper&&this.modal&&q.addClass(this.wrapper,"p-component-overlay-leave")}}onAnimationEnd(e){switch(e.toState){case"void":this.onContainerDestroy(),this.onHide.emit({}),this.cd.markForCheck();break;case"visible":this.onShow.emit({})}}onContainerDestroy(){this.unbindGlobalListeners(),this.dragging=!1,this.maskVisible=!1,this.maximized&&(q.removeClass(document.body,"p-overflow-hidden"),this.maximized=!1),this.modal&&this.disableModality(),this.blockScroll&&q.removeClass(document.body,"p-overflow-hidden"),this.container&&this.autoZIndex&&Wb.clear(this.container),this.container=null,this.wrapper=null,this._style=this.originalStyle?{...this.originalStyle}:{}}destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}ngOnDestroy(){this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.destroyStyle()}}return n.\u0275fac=function(e){return new(e||n)(b(at),b(Jn),b(Te),b(Ar),b(kb))},n.\u0275cmp=Nt({type:n,selectors:[["p-dialog"]],contentQueries:function(e,i,r){if(1&e&&(wo(r,ER,5),wo(r,SR,5),wo(r,jb,4)),2&e){let o;Nn(o=Rn())&&(i.headerFacet=o.first),Nn(o=Rn())&&(i.footerFacet=o.first),Nn(o=Rn())&&(i.templates=o)}},viewQuery:function(e,i){if(1&e&&(Co(LR,5),Co(kR,5),Co(jR,5)),2&e){let r;Nn(r=Rn())&&(i.headerViewChild=r.first),Nn(r=Rn())&&(i.contentViewChild=r.first),Nn(r=Rn())&&(i.footerViewChild=r.first)}},hostAttrs:[1,"p-element"],inputs:{header:"header",draggable:"draggable",resizable:"resizable",positionLeft:"positionLeft",positionTop:"positionTop",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",modal:"modal",closeOnEscape:"closeOnEscape",dismissableMask:"dismissableMask",rtl:"rtl",closable:"closable",responsive:"responsive",appendTo:"appendTo",breakpoints:"breakpoints",styleClass:"styleClass",maskStyleClass:"maskStyleClass",showHeader:"showHeader",breakpoint:"breakpoint",blockScroll:"blockScroll",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",minX:"minX",minY:"minY",focusOnShow:"focusOnShow",maximizable:"maximizable",keepInViewport:"keepInViewport",focusTrap:"focusTrap",transitionOptions:"transitionOptions",closeIcon:"closeIcon",closeAriaLabel:"closeAriaLabel",closeTabindex:"closeTabindex",minimizeIcon:"minimizeIcon",maximizeIcon:"maximizeIcon",visible:"visible",style:"style",position:"position"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},ngContentSelectors:rF,decls:1,vars:1,consts:[[3,"class","ngClass",4,"ngIf"],[3,"ngClass"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","class","pFocusTrapDisabled",4,"ngIf"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","pFocusTrapDisabled"],["container",""],["class","p-resizable-handle","style","z-index: 90;",3,"mousedown",4,"ngIf"],["class","p-dialog-header",3,"mousedown",4,"ngIf"],[3,"ngClass","ngStyle"],["content",""],[4,"ngTemplateOutlet"],["class","p-dialog-footer",4,"ngIf"],[1,"p-resizable-handle",2,"z-index","90",3,"mousedown"],[1,"p-dialog-header",3,"mousedown"],["titlebar",""],["class","p-dialog-title",4,"ngIf"],[1,"p-dialog-header-icons"],["type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],["type","button","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],[1,"p-dialog-title"],["type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter"],[1,"p-dialog-header-maximize-icon",3,"ngClass"],["type","button","pRipple","",3,"ngClass","click","keydown.enter"],[1,"p-dialog-header-close-icon",3,"ngClass"],[1,"p-dialog-footer"],["footer",""]],template:function(e,i){1&e&&(Ci(iF),ae(0,nF,2,15,"div",0)),2&e&&T("ngIf",i.maskVisible)},dependencies:[Oo,xr,ud,Ca,OR,Vb],styles:[".p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-draggable .p-dialog-header{cursor:move}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{transition:none;transform:none;width:100vw!important;height:100vh!important;top:0!important;left:0!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}\n"],encapsulation:2,data:{animation:[Y1("animation",[Pv("void => visible",[Nv(oF)]),Pv("visible => void",[Nv(sF)])])]},changeDetection:0}),n})(),lF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Le({type:n}),n.\u0275inj=xe({imports:[Bt,NR,Bb,CR]}),n})();function tl(n,t){return new ye(e=>{const i=n.length;if(0===i)return void e.complete();const r=new Array(i);let o=0,s=0;for(let a=0;a{c||(c=!0,s++),r[a]=u},error:u=>e.error(u),complete:()=>{o++,(o===i||!c)&&(s===i&&e.next(t?t.reduce((u,d,f)=>(u[d]=r[f],u),{}):r),e.complete())}}))}})}let Gb=(()=>{class n{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(b(Jn),b(at))},n.\u0275dir=L({type:n}),n})(),Fi=(()=>{class n extends Gb{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=function qe(n){return Yn(()=>{const t=n.prototype.constructor,e=t[Cn]||ec(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const o=r[Cn]||ec(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}(n)))(i||n)}}(),n.\u0275dir=L({type:n,features:[le]}),n})();const vn=new x("NgValueAccessor"),dF={provide:vn,useExisting:de(()=>nl),multi:!0},hF=new x("CompositionEventMode");let nl=(()=>{class n extends Gb{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function fF(){const n=Pi()?Pi().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(b(Jn),b(at),b(hF,8))},n.\u0275dir=L({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&ie("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[he([dF]),le]}),n})();function si(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function Kb(n){return null!=n&&"number"==typeof n.length}const Xe=new x("NgValidators"),ai=new x("NgAsyncValidators"),mF=/^(?=.{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])?)*$/;class Qb{static min(t){return function Yb(n){return t=>{if(si(t.value)||si(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(si(t.value)||si(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function Xb(n){return si(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function Jb(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function eD(n){return si(n.value)||mF.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function tD(n){return t=>si(t.value)||!Kb(t.value)?null:t.value.lengthKb(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function iD(n){if(!n)return il;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(si(i.value))return null;const r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return cD(t)}static composeAsync(t){return uD(t)}}function il(n){return null}function rD(n){return null!=n}function oD(n){return Ys(n)?Ui(n):n}function sD(n){let t={};return n.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function aD(n,t){return t.map(e=>e(n))}function lD(n){return n.map(t=>function gF(n){return!n.validate}(t)?t:e=>t.validate(e))}function cD(n){if(!n)return null;const t=n.filter(rD);return 0==t.length?null:function(e){return sD(aD(e,t))}}function rf(n){return null!=n?cD(lD(n)):null}function uD(n){if(!n)return null;const t=n.filter(rD);return 0==t.length?null:function(e){return function cF(...n){if(1===n.length){const t=n[0];if(Gt(t))return tl(t,null);if(vl(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return tl(e.map(i=>t[i]),e)}}if("function"==typeof n[n.length-1]){const t=n.pop();return tl(n=1===n.length&&Gt(n[0])?n[0]:n,null).pipe(ht(e=>t(...e)))}return tl(n,null)}(aD(e,t).map(oD)).pipe(ht(sD))}}function sf(n){return null!=n?uD(lD(n)):null}function dD(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function fD(n){return n._rawValidators}function hD(n){return n._rawAsyncValidators}function af(n){return n?Array.isArray(n)?n:[n]:[]}function rl(n,t){return Array.isArray(n)?n.includes(t):n===t}function pD(n,t){const e=af(t);return af(n).forEach(r=>{rl(e,r)||e.push(r)}),e}function mD(n,t){return af(t).filter(e=>!rl(n,e))}class gD{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=rf(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=sf(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class dt extends gD{get formDirective(){return null}get path(){return null}}class li extends gD{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class yD{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let _D=(()=>{class n extends yD{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(b(li,2))},n.\u0275dir=L({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&mo("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[le]}),n})(),vD=(()=>{class n extends yD{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(b(dt,10))},n.\u0275dir=L({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&mo("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[le]}),n})();const $o="VALID",sl="INVALID",Nr="PENDING",zo="DISABLED";function df(n){return(al(n)?n.validators:n)||null}function ff(n,t){return(al(t)?t.asyncValidators:n)||null}function al(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class SD{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(e)}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 valid(){return this.status===$o}get invalid(){return this.status===sl}get pending(){return this.status==Nr}get disabled(){return this.status===zo}get enabled(){return this.status!==zo}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(pD(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(pD(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(mD(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(mD(t,this._rawAsyncValidators))}hasValidator(t){return rl(this._rawValidators,t)}hasAsyncValidator(t){return rl(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Nr,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=zo,this.errors=null,this._forEachChild(i=>{i.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=$o,this._forEachChild(i=>{i.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===$o||this.status===Nr)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?zo:$o}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Nr,this._hasOwnPendingAsyncValidator=!0;const e=oD(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){let e=t;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new J,this.statusChanges=new J}_calculateStatus(){return this._allControlsDisabled()?zo:this.errors?sl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Nr)?Nr:this._anyControlsHaveStatus(sl)?sl:$o}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){al(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function SF(n){return Array.isArray(n)?rf(n):n||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function CF(n){return Array.isArray(n)?sf(n):n||null}(this._rawAsyncValidators)}}class ll extends SD{constructor(t,e,i){super(df(e),ff(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){(function ED(n,t,e){n._forEachChild((i,r)=>{if(void 0===e[r])throw new D(1002,"")})})(this,0,t),Object.keys(t).forEach(i=>{(function DD(n,t,e){const i=n.controls;if(!(t?Object.keys(i):i).length)throw new D(1e3,"");if(!i[e])throw new D(1001,"")})(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{const r=this.controls[i];r&&r.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const 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}}const Rr=new x("CallSetDisabledState",{providedIn:"root",factory:()=>cl}),cl="always";function ul(n,t){return[...t.path,n]}function Wo(n,t,e=cl){hf(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||"always"===e)&&t.valueAccessor.setDisabledState?.(n.disabled),function TF(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&CD(n,t)})}(n,t),function AF(n,t){const e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function MF(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&CD(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function IF(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function dl(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),hl(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function fl(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function hf(n,t){const e=fD(n);null!==t.validator?n.setValidators(dD(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=hD(n);null!==t.asyncValidator?n.setAsyncValidators(dD(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();fl(t._rawValidators,r),fl(t._rawAsyncValidators,r)}function hl(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=fD(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.validator);o.length!==r.length&&(e=!0,n.setValidators(o))}}if(null!==t.asyncValidator){const r=hD(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.asyncValidator);o.length!==r.length&&(e=!0,n.setAsyncValidators(o))}}}const i=()=>{};return fl(t._rawValidators,i),fl(t._rawAsyncValidators,i),e}function CD(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function mf(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function gf(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(o=>{o.constructor===nl?e=o:function OF(n){return Object.getPrototypeOf(n.constructor)===Fi}(o)?i=o:r=o}),r||i||e||null}function TD(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function MD(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const _f=class extends SD{constructor(t=null,e,i){super(df(e),ff(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),al(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=MD(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){TD(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){TD(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){MD(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}},kF={provide:li,useExisting:de(()=>vf)},PD=(()=>Promise.resolve())();let vf=(()=>{class n extends li{constructor(e,i,r,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new _f,this._registered=!1,this.update=new J,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=gf(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),mf(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Wo(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){PD.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&function Zu(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}(i);PD.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?ul(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(b(dt,9),b(Xe,10),b(ai,10),b(vn,10),b(Ar,8),b(Rr,8))},n.\u0275dir=L({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[he([kF]),le,In]}),n})(),OD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=L({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})(),RD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Le({type:n}),n.\u0275inj=xe({}),n})();const bf=new x("NgModelWithFormControlWarning"),$F={provide:dt,useExisting:de(()=>pl)};let pl=(()=>{class n extends dt{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new J,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(hl(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return Wo(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){dl(e.control||null,e,!1),function NF(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,function ID(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(dl(i||null,e),(n=>n instanceof _f)(r)&&(Wo(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);(function wD(n,t){hf(n,t)})(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function xF(n,t){return hl(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){hf(this.form,this),this._oldForm&&hl(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(b(Xe,10),b(ai,10),b(Rr,8))},n.\u0275dir=L({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&ie("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[he([$F]),le,In]}),n})();const GF={provide:li,useExisting:de(()=>Sf)};let Sf=(()=>{class n extends li{set isDisabled(e){}constructor(e,i,r,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new J,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=gf(0,o)}ngOnChanges(e){this._added||this._setUpControl(),mf(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return ul(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(b(dt,13),b(Xe,10),b(ai,10),b(vn,10),b(bf,8))},n.\u0275dir=L({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[he([GF]),le,In]}),n})(),YD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Le({type:n}),n.\u0275inj=xe({imports:[RD]}),n})(),lL=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Rr,useValue:e.callSetDisabledState??cl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Le({type:n}),n.\u0275inj=xe({imports:[YD]}),n})(),cL=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:bf,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Rr,useValue:e.callSetDisabledState??cl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Le({type:n}),n.\u0275inj=xe({imports:[YD]}),n})(),uL=(()=>{class n{constructor(e,i,r){this.el=e,this.ngModel=i,this.cd=r}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(e){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}}return n.\u0275fac=function(e){return new(e||n)(b(at),b(vf,8),b(Ar))},n.\u0275dir=L({type:n,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(e,i){1&e&&ie("input",function(o){return i.onInput(o)}),2&e&&mo("p-filled",i.filled)}}),n})(),ZD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Le({type:n}),n.\u0275inj=xe({imports:[Bt]}),n})();class fL{constructor(t){this.total=t}call(t,e){return e.subscribe(new hL(t,this.total))}}class hL extends we{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}getComputedStyle(document.body).getPropertyValue("--color-palette-black-op-20"),getComputedStyle(document.body).getPropertyValue("--color-palette-black-op-30"),getComputedStyle(document.body).getPropertyValue("--color-palette-black-op-50"),getComputedStyle(document.body).getPropertyValue("--color-palette-black-op-70");let vL=(()=>{class n{constructor(){this.iconPath="./src/assets/images/icons",this.dotCMSURLKey="siteURLJWT"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=U({token:n,factory:n.\u0275fac}),n})(),qo=class{constructor(t){this.iconPath=t.iconPath}displayErrorMessage(t){this.displayMessage("Error",t,"error")}displaySuccessMessage(t){this.displayMessage("Success",t,"success")}displayInfoMessage(t){this.displayMessage("Info",t,"info")}displayMessage(t,e,i){let r;return r=new Notification(i,{body:e,icon:this.iconPath+"/"+i+".png"}),r}};qo.\u0275prov=U({token:qo,factory:qo.\u0275fac}),qo=function mL(n,t,e,i){var s,r=arguments.length,o=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,i);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o}([Ts("config"),function gL(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}("design:paramtypes",[vL])],qo);const SL=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})();function nE(n){return t=>0===n?Iv():t.lift(new CL(n))}class CL{constructor(t){if(this.total=t,this.total<0)throw new SL}call(t,e){return e.subscribe(new wL(t,this.total))}}class wL extends we{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}function iE(n,t,e,i){return tt(e)&&(i=e,e=void 0),i?iE(n,t,e).pipe(ht(r=>Gt(r)?i(...r):i(r))):new ye(r=>{rE(n,t,function o(s){r.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},r,e)})}function rE(n,t,e,i,r){let o;if(function xL(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const s=n;n.addEventListener(t,e,r),o=()=>s.removeEventListener(t,e,r)}else if(function AL(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const s=n;n.on(t,e),o=()=>s.off(t,e)}else if(function ML(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const s=n;n.addListener(t,e),o=()=>s.removeListener(t,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let s=0,a=n.length;s{const t=parseInt(n,0);if(t)return t;try{return JSON.parse(n)}catch{return n}};let PL=(()=>{class n{setItem(e,i){let r;r="object"==typeof i?JSON.stringify(i):i,localStorage.setItem(e,r)}getItem(e){const i=localStorage.getItem(e);return oE(i)}removeItem(e){localStorage.removeItem(e)}clear(){localStorage.clear()}listen(e){return iE(window,"storage").pipe(vb(({key:i})=>i===e),ht(i=>oE(i.newValue)))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=U({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gl=(()=>{class n{constructor(e,i){this.http=e,this.dotLocalstorageService=i,this.messageMap={},this.MESSAGES_LOCALSTORAGE_KEY="dotMessagesKeys",this.BUILDATE_LOCALSTORAGE_KEY="buildDate"}init(e){if(e&&(this.dotLocalstorageService.getItem(this.BUILDATE_LOCALSTORAGE_KEY)!==e?.buildDate||e.language))this.getAll(e.language||"default"),e.buildDate&&this.dotLocalstorageService.setItem(this.BUILDATE_LOCALSTORAGE_KEY,e.buildDate);else{const i=this.dotLocalstorageService.getItem(this.MESSAGES_LOCALSTORAGE_KEY);i?this.messageMap=i:this.getAll(e?.language||"default")}}get(e,...i){return this.messageMap[e]?i.length?function EL(n,t){return n.replace(/{(\d+)}/g,(e,i)=>typeof t[i]<"u"?t[i]:e)}(this.messageMap[e],i):this.messageMap[e]:e}getAll(e){this.http.get(this.geti18nURL(e)).pipe(nE(1),function IL(...n){const t=n.length;if(0===t)throw new Error("list of properties cannot be empty.");return e=>ht(function TL(n,t){return i=>{let r=i;for(let o=0;o{this.messageMap=i,this.dotLocalstorageService.setItem(this.MESSAGES_LOCALSTORAGE_KEY,this.messageMap)})}geti18nURL(e){return`/api/v2/languages/${e||"default"}/keys`}}return n.\u0275fac=function(e){return new(e||n)(A(wb),A(PL))},n.\u0275prov=U({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function sE(n,t,e,i,r,o,s){try{var a=n[o](s),l=a.value}catch(c){return void e(c)}a.done?t(l):Promise.resolve(l).then(i,r)}function aE(n){return function(){var t=this,e=arguments;return new Promise(function(i,r){var o=n.apply(t,e);function s(l){sE(o,i,r,s,a,"next",l)}function a(l){sE(o,i,r,s,a,"throw",l)}s(void 0)})}}const OL={500:"500 Internal Server Error",400:"400 Bad Request",401:"401 Unauthorized Error"};let Mf=(()=>{class n{uploadFile({file:e,maxSize:i,signal:r}){return"string"==typeof e?this.uploadFileByURL(e,r):this.uploadBinaryFile({file:e,maxSize:i,signal:r})}uploadFileByURL(e,i){return fetch("/api/v1/temp/byUrl",{method:"POST",signal:i,headers:{"Content-Type":"application/json",Origin:window.location.hostname},body:JSON.stringify({remoteUrl:e})}).then(function(){var o=aE(function*(s){if(200===s.status)return(yield s.json()).tempFiles[0];throw{message:(yield s.json()).message,status:s.status}});return function(s){return o.apply(this,arguments)}}()).catch(o=>{const{message:s,response:a}=o,l="string"==typeof a?JSON.parse(a):a;throw this.errorHandler(l||{message:s},o.status)})}uploadBinaryFile({file:e,maxSize:i,signal:r}){let o="/api/v1/temp";o+=i?`?maxFileLength=${i}`:"";const s=new FormData;return s.append("file",e),fetch(o,{method:"POST",signal:r,headers:{Origin:window.location.hostname},body:s}).then(function(){var a=aE(function*(l){if(200===l.status)return(yield l.json()).tempFiles[0];throw{message:(yield l.json()).message,status:l.status}});return function(l){return a.apply(this,arguments)}}()).catch(a=>{throw this.errorHandler(JSON.parse(a.response),a.status)})}errorHandler(e,i){let r="";try{r=e.message||e.errors[0].message}catch{r=OL[i||500]}return{message:r,status:500|i}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=U({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),NL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Le({type:n}),n.\u0275inj=xe({imports:[Bt]}),n})();const RL=["*"];let FL=(()=>{class n{constructor(){this.fileDropped=new J,this.fileDragEnter=new J,this.fileDragOver=new J,this.fileDragLeave=new J,this._accept=[],this._validity={fileTypeMismatch:!1,maxFileSizeExceeded:!1,multipleFilesDropped:!1,valid:!0}}set accept(e){this._accept=e?.filter(i=>"*/*"!==i).map(i=>i.toLowerCase().replace(/\*/g,""))}get validity(){return this._validity}onDrop(e){e.stopPropagation(),e.preventDefault();const{dataTransfer:i}=e,r=this.getFiles(i),o=1===r?.length?r[0]:null;0!==r.length&&(this.setValidity(r),i.items?.clear(),i.clearData(),this.fileDropped.emit({file:o,validity:this._validity}))}onDragEnter(e){e.stopPropagation(),e.preventDefault(),this.fileDragEnter.emit(!0)}onDragOver(e){e.stopPropagation(),e.preventDefault(),this.fileDragOver.emit(!0)}onDragLeave(e){e.stopPropagation(),e.preventDefault(),this.fileDragLeave.emit(!0)}typeMatch(e){if(!this._accept.length)return!0;const i=e.name.split(".").pop().toLowerCase(),r=e.type.toLowerCase();return this._accept.some(s=>r.includes(s)||s.includes(`.${i}`))}getFiles(e){const{items:i,files:r}=e;return i?Array.from(i).filter(o=>"file"===o.kind).map(o=>o.getAsFile()):Array.from(r)||[]}isFileTooLong(e){return!!this.maxFileSize&&e.size>this.maxFileSize}setValidity(e){const i=e[0],r=e.length>1,o=!this.typeMatch(i),s=this.isFileTooLong(i);this._validity={...this._validity,multipleFilesDropped:r,fileTypeMismatch:o,maxFileSizeExceeded:s,valid:!o&&!s&&!r}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Nt({type:n,selectors:[["dot-drop-zone"]],hostBindings:function(e,i){1&e&&ie("drop",function(o){return i.onDrop(o)})("dragenter",function(o){return i.onDragEnter(o)})("dragover",function(o){return i.onDragOver(o)})("dragleave",function(o){return i.onDragLeave(o)})},inputs:{maxFileSize:"maxFileSize",accept:"accept"},outputs:{fileDropped:"fileDropped",fileDragEnter:"fileDragEnter",fileDragOver:"fileDragOver",fileDragLeave:"fileDragLeave"},standalone:!0,features:[Ir],ngContentSelectors:RL,decls:1,vars:0,template:function(e,i){1&e&&(Ci(),On(0))},dependencies:[Bt],changeDetection:0}),n})(),Af=(()=>{class n{constructor(e){this.dotMessageService=e}transform(e,i=[]){return e?this.dotMessageService.get(e,...i):""}}return n.\u0275fac=function(e){return new(e||n)(b(gl,16))},n.\u0275pipe=nt({name:"dm",type:n,pure:!0,standalone:!0}),n})();function Fr(n){return t=>t.lift(new zL(n))}class zL{constructor(t){this.notifier=t}call(t,e){const i=new WL(t),r=ns(this.notifier,new es(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class WL extends ts{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function GL(n,t){if(1&n&&($(0,"small",1),rn(1),ct(2,"dm"),Y()),2&n){const e=j();N(1),Mi(" ",yt(2,1,e.errorMsg),"\n")}}const xf={maxlength:"error.form.validator.maxlength",required:"error.form.validator.required"};let qL=(()=>{class n{constructor(e,i){this.cd=e,this.dotMessageService=i,this.errorMsg="",this.destroy$=new Kn}set message(e){this.defaultMessage=e,this.cd.markForCheck()}set field(e){e&&(this._field=e,e.statusChanges.pipe(Fr(this.destroy$)).subscribe(()=>{this.errorMsg=this.getErrors(e.errors),this.cd.detectChanges()}))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}getErrors(e){let i=[];return e&&(i=[...this.getMsgDefaultValidators(e),...this.getMsgCustomsValidators(e)]),this.defaultMessage?this.defaultMessage:i.slice(0,1)[0]}getMsgDefaultValidators(e){let i=[];return Object.entries(e).forEach(([r,o])=>{if(r in xf){let s="";const{requiredLength:a}=o;s="maxlength"===r?this.dotMessageService.get(xf[r],a):xf[r],i=[...i,s]}}),i}getMsgCustomsValidators(e){let i=[];return Object.entries(e).forEach(([,r])=>{"string"==typeof r&&(i=[...i,r])}),i}}return n.\u0275fac=function(e){return new(e||n)(b(Ar),b(gl))},n.\u0275cmp=Nt({type:n,selectors:[["dot-field-validation-message"]],inputs:{message:"message",field:"field"},standalone:!0,features:[Ir],decls:1,vars:1,consts:[["class","p-invalid","data-testId","error-msg",4,"ngIf"],["data-testId","error-msg",1,"p-invalid"]],template:function(e,i){1&e&&ae(0,GL,3,3,"small",0),2&e&&T("ngIf",i._field&&i._field.enabled&&i._field.dirty&&!i._field.valid)},dependencies:[xr,Af],encapsulation:2,changeDetection:0}),n})();const KL=["*"];let QL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Nt({type:n,selectors:[["dot-binary-field-ui-message"]],inputs:{message:"message",icon:"icon",severity:"severity"},standalone:!0,features:[Ir],ngContentSelectors:KL,decls:5,vars:3,consts:[["data-testId","ui-message-icon-container",1,"icon-container",3,"ngClass"],["data-testId","ui-message-icon",2,"font-size","2rem","width","auto",3,"ngClass"],[1,"text"],["data-testId","ui-message-span",3,"innerHTML"]],template:function(e,i){1&e&&(Ci(),$(0,"div",0),gt(1,"i",1),Y(),$(2,"div",2),gt(3,"span",3),On(4),Y()),2&e&&(T("ngClass",i.severity),N(1),T("ngClass",i.icon),N(2),T("innerHTML",i.message,Bp))},dependencies:[Bt,Oo],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1rem;height:100%;padding:1rem}.icon-container[_ngcontent-%COMP%]{border-radius:50%;padding:1rem}.icon-container.info[_ngcontent-%COMP%]{color:var(--color-palette-secondary-500);background:var(--color-palette-secondary-200)}.icon-container.error[_ngcontent-%COMP%]{color:#ffb444;background:#fff8ec}.text[_ngcontent-%COMP%]{text-align:center;line-height:140%}"],changeDetection:0}),n})();function ci(){}function Lr(n,t,e){return function(r){return r.lift(new YL(n,t,e))}}class YL{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new ZL(t,this.nextOrObserver,this.error,this.complete))}}class ZL extends we{constructor(t,e,i,r){super(t),this._tapNext=ci,this._tapError=ci,this._tapComplete=ci,this._tapError=i||ci,this._tapComplete=r||ci,tt(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||ci,this._tapError=e.error||ci,this._tapComplete=e.complete||ci)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}let XL=1;const JL=Promise.resolve(),yl={};function lE(n){return n in yl&&(delete yl[n],!0)}const cE={setImmediate(n){const t=XL++;return yl[t]=!0,JL.then(()=>lE(t)&&n()),t},clearImmediate(n){lE(n)}},uE=new class tk extends jn{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=cE.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cE.clearImmediate(e),t.scheduled=void 0)}});function dE(n){return!!n&&(n instanceof ye||"function"==typeof n.lift&&"function"==typeof n.subscribe)}class fE extends we{notifyNext(t,e,i,r,o){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class nk extends we{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function hE(n,t,e,i,r=new nk(n,e,i)){if(!r.closed)return t instanceof ye?t.subscribe(r):Dl(t)(r)}const pE={};class rk{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new ok(t,this.resultSelector))}}class ok extends fE{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(pE),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i0){const o=r.indexOf(i);-1!==o&&r.splice(o,1)}}notifyComplete(){}_next(t){if(0===this.toRespond.length){const e=[t,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(t){let e;try{e=this.project.apply(this,t)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}function mE(n){return function(e){const i=new ck(n),r=e.lift(i);return i.caught=r}}class ck{constructor(t){this.selector=t}call(t,e){return e.subscribe(new uk(t,this.selector,this.caught))}}class uk extends ts{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let e;try{e=this.selector(t,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const i=new es(this);this.add(i);const r=ns(e,i);r!==i&&this.add(r)}}}class fk{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new hk(t,this.compare,this.keySelector))}}class hk extends we{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:r}=this;e=r?r(t):t}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}const yk=new x("@ngrx/component-store Initial State");let gE=(()=>{class n{constructor(e){this.destroySubject$=new Oa(1),this.destroy$=this.destroySubject$.asObservable(),this.stateSubject$=new Oa(1),this.isInitialized=!1,this.state$=this.select(i=>i),this.\u0275hasProvider=!1,e&&this.initState(e),this.checkProviderForHooks()}ngOnDestroy(){this.stateSubject$.complete(),this.destroySubject$.next()}updater(e){return i=>{let o,r=!0;const a=(dE(i)?i:xa(i)).pipe(function A1(n,t=0){return function(i){return i.lift(new x1(n,t))}}(Sd),Lr(()=>this.assertStateIsInitialized()),function sk(...n){return t=>{let e;return"function"==typeof n[n.length-1]&&(e=n.pop()),t.lift(new ak(n,e))}}(this.stateSubject$),ht(([l,c])=>e(c,l)),Lr(l=>this.stateSubject$.next(l)),mE(l=>r?(o=l,Cd):Tv(()=>l)),Fr(this.destroy$)).subscribe();if(o)throw o;return r=!1,a}}initState(e){Wf([e],Sd).subscribe(i=>{this.isInitialized=!0,this.stateSubject$.next(i)})}setState(e){"function"!=typeof e?this.initState(e):this.updater(e)()}patchState(e){const i="function"==typeof e?e(this.get()):e;this.updater((r,o)=>({...r,...o}))(i)}get(e){let i;return this.assertStateIsInitialized(),this.stateSubject$.pipe(nE(1)).subscribe(r=>{i=e?e(r):r}),i}select(...e){const{observablesOrSelectorsObject:i,projector:r,config:o}=function _k(n){const t=Array.from(n);let e={debounce:!1};if(function vk(n){return typeof n.debounce<"u"}(t[t.length-1])&&(e={...e,...t.pop()}),1===t.length&&"function"!=typeof t[0])return{observablesOrSelectorsObject:t[0],projector:void 0,config:e};const i=t.pop();return{observablesOrSelectorsObject:t,projector:i,config:e}}(e);return(function bk(n,t){return Array.isArray(n)&&0===n.length&&t}(i,r)?this.stateSubject$:function ik(...n){let t,e;return bl(n[n.length-1])&&(e=n.pop()),"function"==typeof n[n.length-1]&&(t=n.pop()),1===n.length&&Gt(n[0])&&(n=n[0]),Cl(n,e).lift(new rk(t))}(i)).pipe(o.debounce?function gk(){return n=>new ye(t=>{let e,i;const r=new ge;return r.add(n.subscribe({complete:()=>{e&&t.next(i),t.complete()},error:o=>{t.error(o)},next:o=>{i=o,e||(e=uE.schedule(()=>{t.next(i),e=void 0}),r.add(e))}})),r})}():n=>n,r?ht(a=>i.length>0&&Array.isArray(a)?r(...a):r(a)):n=>n,function dk(n,t){return e=>e.lift(new fk(n,t))}(),function pk(n,t,e){let i;return i=n&&"object"==typeof n?n:{bufferSize:n,windowTime:t,refCount:!1,scheduler:e},r=>r.lift(function mk({bufferSize:n=Number.POSITIVE_INFINITY,windowTime:t=Number.POSITIVE_INFINITY,refCount:e,scheduler:i}){let r,s,o=0,a=!1,l=!1;return function(u){let d;o++,!r||a?(a=!1,r=new Oa(n,t,i),d=r.subscribe(this),s=u.subscribe({next(f){r.next(f)},error(f){a=!0,r.error(f)},complete(){l=!0,s=void 0,r.complete()}}),l&&(s=void 0)):d=r.subscribe(this),this.add(()=>{o--,d.unsubscribe(),d=void 0,s&&!l&&e&&0===o&&(s.unsubscribe(),s=void 0,r=void 0)})}}(i))}({refCount:!0,bufferSize:1}),Fr(this.destroy$))}effect(e){const i=new Kn;return e(i).pipe(Fr(this.destroy$)).subscribe(),r=>(dE(r)?r:xa(r)).pipe(Fr(this.destroy$)).subscribe(s=>{i.next(s)})}checkProviderForHooks(){uE.schedule(()=>{})}assertStateIsInitialized(){if(!this.isInitialized)throw new Error(`${this.constructor.name} has not been initialized yet. Please make sure it is initialized before updating/getting.`)}}return n.\u0275fac=function(e){return new(e||n)(A(yk,8))},n.\u0275prov=U({token:n,factory:n.\u0275fac}),n})();function _E(n,t,e){return i=>i.pipe(Lr({next:n,complete:e}),mE(r=>(t(r),Cd)))}let vE=(()=>{class n extends gE{constructor(e){super({tempFile:null,isLoading:!1,error:""}),this.dotUploadService=e,this.vm$=this.select(i=>i),this.tempFile$=this.select(({tempFile:i})=>i),this.error$=this.select(({error:i})=>i),this.setTempFile=this.updater((i,r)=>({...i,tempFile:r,isLoading:!1,error:""})),this.setIsLoading=this.updater((i,r)=>({...i,isLoading:r})),this.setError=this.updater((i,r)=>({...i,isLoading:!1,error:r})),this.uploadFileByUrl=this.effect(i=>i.pipe(Lr(()=>this.setIsLoading(!0)),Na(({url:r,signal:o})=>this.uploadTempFile(r,o))))}setMaxFileSize(e){this._maxFileSize=e/1048576}uploadTempFile(e,i){return Ui(this.dotUploadService.uploadFile({file:e,maxSize:this._maxFileSize?`${this._maxFileSize}MB`:"",signal:i})).pipe(_E(r=>this.setTempFile(r),r=>{i.aborted?this.setIsLoading(!1):this.setError(r.message)}))}}return n.\u0275fac=function(e){return new(e||n)(A(Mf))},n.\u0275prov=U({token:n,factory:n.\u0275fac}),n})();function Dk(n,t){if(1&n&&(gt(0,"dot-field-validation-message",12),ct(1,"dm")),2&n){const e=j(2);T("message",yt(1,2,e.invalidError))("field",e.form.get("url"))}}function Ek(n,t){if(1&n&&($(0,"small",13),rn(1),ct(2,"dm"),Y()),2&n){const e=j().ngIf;N(1),Mi(" ",yt(2,1,e.error)," ")}}function Sk(n,t){1&n&&(gt(0,"p-button",14),ct(1,"dm")),2&n&&T("label",yt(1,2,"dot.common.import"))("icon","pi pi-download")}function Ck(n,t){1&n&>(0,"p-button",15),2&n&&T("icon","pi pi-spin pi-spinner")}const wk=function(){return{width:"6.85rem"}};function Ik(n,t){if(1&n){const e=Jt();$(0,"form",1),ie("ngSubmit",function(){return _e(e),ve(j().onSubmit())}),$(1,"div",2)(2,"label",3),rn(3),ct(4,"dm"),Y(),$(5,"input",4),ie("focus",function(){const o=_e(e).ngIf;return ve(j().resetError(!!o.error))}),Y(),$(6,"div",5),ae(7,Dk,2,4,"dot-field-validation-message",6),ae(8,Ek,3,3,"ng-template",null,7,Ou),Y()(),$(10,"div",8)(11,"p-button",9),ie("click",function(){return _e(e),ve(j().cancelUpload())}),ct(12,"dm"),Y(),$(13,"div"),ae(14,Sk,2,4,"p-button",10),ae(15,Ck,1,1,"ng-template",null,11,Ou),Y()()()}if(2&n){const e=t.ngIf,i=su(9),r=su(16);T("formGroup",j().form),N(3),Ti(yt(4,9,"dot.binary.field.action.import.from.url")),N(4),T("ngIf",!e.error)("ngIfElse",i),N(4),T("label",yt(12,11,"dot.common.cancel")),N(2),function en(n){nn(vg,Q0,n,!1)}(ia(13,wk)),N(1),T("ngIf",!e.isLoading)("ngIfElse",r)}}let Tk=(()=>{class n{constructor(e){this.store=e,this.tempFileUploaded=new J,this.cancel=new J,this.destroy$=new Kn,this.validators=[Qb.required,Qb.pattern(/^(ftp|http|https):\/\/[^ "]+$/)],this.invalidError="dot.binary.field.action.import.from.url.error.message",this.vm$=this.store.vm$.pipe(Lr(({isLoading:i})=>this.toggleForm(i))),this.tempFileChanged$=this.store.tempFile$,this.form=new ll({url:new _f("",this.validators)}),this.tempFileChanged$.pipe(Fr(this.destroy$)).subscribe(i=>{this.tempFileUploaded.emit(i)})}ngOnInit(){this.store.setMaxFileSize(this.maxFileSize)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.abortController?.abort()}onSubmit(){const e=this.form.get("url");if(this.form.invalid)return;const i=e.value;this.abortController=new AbortController,this.store.uploadFileByUrl({url:i,signal:this.abortController.signal}),this.form.reset({url:i})}cancelUpload(){this.abortController?.abort(),this.cancel.emit()}resetError(e){e&&this.store.setError("")}toggleForm(e){e?this.form.disable():this.form.enable()}}return n.\u0275fac=function(e){return new(e||n)(b(vE))},n.\u0275cmp=Nt({type:n,selectors:[["dot-dot-binary-field-url-mode"]],inputs:{maxFileSize:"maxFileSize",accept:"accept"},outputs:{tempFileUploaded:"tempFileUploaded",cancel:"cancel"},standalone:!0,features:[he([vE]),Ir],decls:2,vars:3,consts:[["class","url-mode__form","data-testId","form",3,"formGroup","ngSubmit",4,"ngIf"],["data-testId","form",1,"url-mode__form",3,"formGroup","ngSubmit"],[1,"url-mode__input-container"],["for","url-input"],["id","url-input","type","text","autocomplete","off","formControlName","url","pInputText","","placeholder","https://www.dotcms.com/image.png","aria-label","URL input field","data-testId","url-input",3,"focus"],[1,"error-messsage__container"],["data-testId","error-message",3,"message","field",4,"ngIf","ngIfElse"],["serverError",""],[1,"url-mode__actions"],["styleClass","p-button-outlined","type","button","aria-label","Cancel button","data-testId","cancel-button",3,"label","click"],["type","submit","aria-label","Import button","data-testId","import-button",3,"label","icon",4,"ngIf","ngIfElse"],["loadingButton",""],["data-testId","error-message",3,"message","field"],["data-testId","error-msg",1,"p-invalid"],["type","submit","aria-label","Import button","data-testId","import-button",3,"label","icon"],["type","button","aria-label","Loading button","data-testId","loading-button",3,"icon"]],template:function(e,i){1&e&&(ae(0,Ik,17,14,"form",0),ct(1,"async")),2&e&&T("ngIf",yt(1,1,i.vm$))},dependencies:[Bt,xr,dd,lL,OD,nl,_D,vD,cL,pl,Sf,Ub,Hb,ZD,uL,Af,qL],styles:["[_nghost-%COMP%] {display:block;width:32rem}[_nghost-%COMP%] .p-button{width:100%}[_nghost-%COMP%] .error-messsage__container{min-height:1.5rem}.url-mode__form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;justify-content:center;align-items:flex-start}.url-mode__input-container[_ngcontent-%COMP%]{width:100%;display:flex;gap:.5rem;flex-direction:column}.url-mode__actions[_ngcontent-%COMP%]{width:100%;display:flex;gap:.5rem;align-items:center;justify-content:flex-end}"],changeDetection:0}),n})();var ui=(()=>(function(n){n.DEFAULT="DEFAULT",n.SERVER_ERROR="SERVER_ERROR",n.FILE_TYPE_MISMATCH="FILE_TYPE_MISMATCH",n.MAX_FILE_SIZE_EXCEEDED="MAX_FILE_SIZE_EXCEEDED"}(ui||(ui={})),ui))();const Mk={DEFAULT:{message:"dot.binary.field.drag.and.drop.message",severity:"info",icon:"pi pi-upload"},SERVER_ERROR:{message:"dot.binary.field.drag.and.drop.error.server.error.message",severity:"error",icon:"pi pi-exclamation-triangle"},FILE_TYPE_MISMATCH:{message:"dot.binary.field.drag.and.drop.error.file.not.supported.message",severity:"error",icon:"pi pi-exclamation-triangle"},MAX_FILE_SIZE_EXCEEDED:{message:"dot.binary.field.drag.and.drop.error.file.maxsize.exceeded.message",severity:"error",icon:"pi pi-exclamation-triangle"}},Ko=(n,...t)=>{const{message:e,severity:i,icon:r}=Mk[n];return{message:e,severity:i,icon:r,args:t}};var ji=(()=>(function(n){n.DROPZONE="DROPZONE",n.URL="URL",n.EDITOR="EDITOR"}(ji||(ji={})),ji))(),ln=(()=>(function(n){n.INIT="INIT",n.UPLOADING="UPLOADING",n.PREVIEW="PREVIEW",n.ERROR="ERROR"}(ln||(ln={})),ln))();let bE=(()=>{class n extends gE{constructor(e){super(),this.dotUploadService=e,this.vm$=this.select(i=>({...i,isLoading:i.status===ln.UPLOADING})),this.file$=this.select(i=>i.file),this.tempFile$=this.select(i=>i.tempFile),this.mode$=this.select(i=>i.mode),this.setFile=this.updater((i,r)=>({...i,file:r})),this.setDropZoneActive=this.updater((i,r)=>({...i,dropZoneActive:r})),this.setTempFile=this.updater((i,r)=>({...i,status:ln.PREVIEW,tempFile:r})),this.setUiMessage=this.updater((i,r)=>({...i,UiMessage:r})),this.setMode=this.updater((i,r)=>({...i,mode:r})),this.setStatus=this.updater((i,r)=>({...i,status:r})),this.setUploading=this.updater(i=>({...i,dropZoneActive:!1,uiMessage:Ko(ui.DEFAULT),status:ln.UPLOADING})),this.setError=this.updater((i,r)=>({...i,UiMessage:r,status:ln.ERROR,tempFile:null})),this.invalidFile=this.updater((i,r)=>({...i,dropZoneActive:!1,UiMessage:r,status:ln.ERROR})),this.removeFile=this.updater(i=>({...i,file:null,tempFile:null,status:ln.INIT})),this.handleUploadFile=this.effect(i=>i.pipe(Lr(()=>this.setUploading()),Na(r=>this.uploadTempFile(r)))),this.handleCreateFile=this.effect(i=>i.pipe())}setMaxFileSize(e){this._maxFileSizeInMB=e/1048576}uploadTempFile(e){return Ui(this.dotUploadService.uploadFile({file:e,maxSize:this._maxFileSizeInMB?`${this._maxFileSizeInMB}MB`:"",signal:null})).pipe(_E(i=>this.setTempFile(i),()=>this.setError(Ko(ui.SERVER_ERROR))))}}return n.\u0275fac=function(e){return new(e||n)(A(Mf))},n.\u0275prov=U({token:n,factory:n.\u0275fac}),n})();const Ak=function(n,t,e){return{"border-width":n,width:t,height:e}};let xk=(()=>{class n{constructor(){this.borderSize="",this.size=""}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Nt({type:n,selectors:[["dot-spinner"]],inputs:{borderSize:"borderSize",size:"size"},decls:1,vars:5,consts:[[3,"ngStyle"]],template:function(e,i){1&e&>(0,"div",0),2&e&&T("ngStyle",wy(1,Ak,i.borderSize,i.size,i.size))},dependencies:[Ca],styles:["div[_ngcontent-%COMP%]{border-radius:50%;width:2.5rem;height:2.5rem;display:inline-block;vertical-align:middle;font-size:10px;position:relative;text-indent:-9999em;border:.5rem solid var(--color-palette-primary-op-20);border-left-color:var(--color-palette-primary-500);transform:translateZ(0);animation:_ngcontent-%COMP%_load8 1.1s infinite linear;overflow:hidden}.edit-page-variant-mode [_nghost-%COMP%] div[_ngcontent-%COMP%]{border:.5rem solid var(--color-palette-white-op-20);border-left-color:var(--color-palette-white-op-90)}@keyframes _ngcontent-%COMP%_load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),n})();const Pk=["inputFile"],Ok=function(n){return{"binary-field__drop-zone--active":n}};function Nk(n,t){if(1&n){const e=Jt();$(0,"div",10)(1,"div",11)(2,"dot-drop-zone",12),ie("fileDragOver",function(){return _e(e),ve(j(2).setDropZoneActiveState(!0))})("fileDragLeave",function(){return _e(e),ve(j(2).setDropZoneActiveState(!1))})("fileDropped",function(r){return _e(e),ve(j(2).handleFileDrop(r))}),$(3,"dot-binary-field-ui-message",13),ct(4,"dm"),$(5,"button",14),ie("click",function(){return _e(e),ve(j(2).openFilePicker())}),rn(6),ct(7,"dm"),Y()()(),$(8,"input",15,16),ie("change",function(r){return _e(e),ve(j(2).handleFileSelection(r))}),Y()(),$(10,"div",17)(11,"p-button",18),ie("click",function(){_e(e);const r=j(2);return ve(r.openDialog(r.BINARY_FIELD_MODE.URL))}),ct(12,"dm"),Y(),$(13,"p-button",19),ie("click",function(){_e(e);const r=j(2);return ve(r.openDialog(r.BINARY_FIELD_MODE.EDITOR))}),ct(14,"dm"),Y()()()}if(2&n){const e=j().ngIf,i=j();N(1),T("ngClass",ra(19,Ok,e.dropZoneActive)),N(1),T("accept",i.accept)("maxFileSize",i.maxFileSize),N(1),T("message",function Ny(n,t,e,i){const r=n+22,o=v(),s=Ki(o,r);return So(o,r)?Ay(o,ot(),t,s.transform,e,i,s):s.transform(e,i)}(4,10,e.UiMessage.message,e.UiMessage.args))("icon",e.UiMessage.icon)("severity",e.UiMessage.severity),N(3),Mi(" ",yt(7,13,"dot.binary.field.action.choose.file")," "),N(2),T("accept",i.accept.join(",")),N(3),T("label",yt(12,15,"dot.binary.field.action.import.from.url")),N(2),T("label",yt(14,17,"dot.binary.field.action.create.new.file"))}}function Rk(n,t){1&n&>(0,"dot-spinner",20)}function Fk(n,t){if(1&n){const e=Jt();$(0,"div",21)(1,"span"),rn(2),Y(),gt(3,"br"),$(4,"p-button",22),ie("click",function(){return _e(e),ve(j(2).removeFile())}),ct(5,"dm"),Y()()}if(2&n){const e=j().ngIf;N(2),Mi(" ",e.tempFile.fileName," "),N(2),T("label",yt(5,2,"dot.binary.field.action.remove"))}}function Lk(n,t){if(1&n){const e=Jt();$(0,"div",23)(1,"dot-dot-binary-field-url-mode",24),ie("tempFileUploaded",function(r){return _e(e),ve(j(2).setTempFile(r))})("cancel",function(){return _e(e),ve(j(2).closeDialog())}),Y()()}if(2&n){const e=j(2);N(1),T("accept",e.accept)("maxFileSize",e.maxFileSize)}}function kk(n,t){1&n&&($(0,"div",25),rn(1," TODO: Implement Write Code "),Y())}const jk=function(n){return{"binary-field__container--uploading":n}};function Vk(n,t){if(1&n){const e=Jt();$(0,"div",2),ae(1,Nk,15,21,"div",3),ae(2,Rk,1,0,"dot-spinner",4),ae(3,Fk,6,4,"div",5),$(4,"p-dialog",6),ie("visibleChange",function(r){return _e(e),ve(j().dialogOpen=r)})("onHide",function(){return _e(e),ve(j().afterDialogClose())}),ct(5,"dm"),$(6,"div",7),ae(7,Lk,2,2,"div",8),ae(8,kk,2,0,"div",9),Y()()()}if(2&n){const e=t.ngIf,i=j();T("ngClass",ra(14,jk,e.status===i.BINARY_FIELD_STATUS.UPLOADING)),N(1),T("ngIf",e.status===i.BINARY_FIELD_STATUS.INIT||e.status===i.BINARY_FIELD_STATUS.ERROR),N(1),T("ngIf",e.status===i.BINARY_FIELD_STATUS.UPLOADING),N(1),T("ngIf",e.status===i.BINARY_FIELD_STATUS.PREVIEW),N(1),T("visible",i.dialogOpen)("modal",!0)("header",yt(5,12,i.dialogHeaderMap[e.mode]))("draggable",!1)("resizable",!1),N(2),T("ngSwitch",e.mode),N(1),T("ngSwitchCase",i.BINARY_FIELD_MODE.URL),N(1),T("ngSwitchCase",i.BINARY_FIELD_MODE.EDITOR)}}function Bk(n,t){if(1&n&&($(0,"div",26),gt(1,"i",27),$(2,"span",28),rn(3),Y()()),2&n){const e=j();N(3),Ti(e.helperText)}}const Hk={file:null,tempFile:null,mode:ji.DROPZONE,status:ln.INIT,dropZoneActive:!1,UiMessage:Ko(ui.DEFAULT)};let DE=(()=>{class n{constructor(e,i){this.dotBinaryFieldStore=e,this.dotMessageService=i,this.accept=[],this.tempFile=new J,this.dialogHeaderMap={[ji.URL]:"dot.binary.field.dialog.import.from.url.header",[ji.EDITOR]:"dot.binary.field.dialog.create.new.file.header"},this.BINARY_FIELD_STATUS=ln,this.BINARY_FIELD_MODE=ji,this.vm$=this.dotBinaryFieldStore.vm$,this.dialogOpen=!1,this.dotBinaryFieldStore.setState(Hk),this.dotMessageService.init()}ngOnInit(){this.dotBinaryFieldStore.tempFile$.pipe(function dL(n){return t=>t.lift(new fL(n))}(1)).subscribe(e=>{this.tempFile.emit(e)}),this.dotBinaryFieldStore.setMaxFileSize(this.maxFileSize)}setDropZoneActiveState(e){this.dotBinaryFieldStore.setDropZoneActive(e)}handleFileDrop({validity:e,file:i}){if(e.valid)this.dotBinaryFieldStore.handleUploadFile(i);else{const r=this.handleFileDropError(e);this.dotBinaryFieldStore.invalidFile(r)}}openDialog(e){this.dialogOpen=!0,this.dotBinaryFieldStore.setMode(e)}closeDialog(){this.dialogOpen=!1}afterDialogClose(){this.dotBinaryFieldStore.setMode(null)}openFilePicker(){this.inputFile.nativeElement.click()}handleFileSelection(e){this.dotBinaryFieldStore.handleUploadFile(e.target.files[0])}removeFile(){this.dotBinaryFieldStore.removeFile()}handleCreateFile(e){}setTempFile(e){this.dotBinaryFieldStore.setTempFile(e),this.dialogOpen=!1}handleFileDropError({fileTypeMismatch:e,maxFileSizeExceeded:i}){const r=this.accept.join(", "),o=`${this.maxFileSize} bytes`;let s;return e?s=Ko(ui.FILE_TYPE_MISMATCH,r):i&&(s=Ko(ui.MAX_FILE_SIZE_EXCEEDED,o)),s}}return n.\u0275fac=function(e){return new(e||n)(b(bE),b(gl))},n.\u0275cmp=Nt({type:n,selectors:[["dot-binary-field"]],viewQuery:function(e,i){if(1&e&&Co(Pk,5),2&e){let r;Nn(r=Rn())&&(i.inputFile=r.first)}},inputs:{accept:"accept",maxFileSize:"maxFileSize",helperText:"helperText",contentlet:"contentlet"},outputs:{tempFile:"tempFile"},standalone:!0,features:[he([bE]),Ir],decls:3,vars:4,consts:[["class","binary-field__container",3,"ngClass",4,"ngIf"],["class","binary-field__helper",4,"ngIf"],[1,"binary-field__container",3,"ngClass"],["class","binary-field__drop-zone-container","data-testId","binary-field__drop-zone-container",4,"ngIf"],["data-testId","loading",4,"ngIf"],["data-testId","preview",4,"ngIf"],[3,"visible","modal","header","draggable","resizable","visibleChange","onHide"],[3,"ngSwitch"],["data-testId","url",4,"ngSwitchCase"],["data-testId","editor",4,"ngSwitchCase"],["data-testId","binary-field__drop-zone-container",1,"binary-field__drop-zone-container"],[1,"binary-field__drop-zone",3,"ngClass"],["data-testId","dropzone",3,"accept","maxFileSize","fileDragOver","fileDragLeave","fileDropped"],[3,"message","icon","severity"],["data-testId","choose-file-btn",1,"binary-field__drop-zone-btn",3,"click"],["type","file","data-testId","binary-field__file-input",1,"binary-field__input",3,"accept","change"],["inputFile",""],[1,"binary-field__actions"],["data-testId","action-url-btn","styleClass","p-button-link","icon","pi pi-link",3,"label","click"],["data-testId","action-editor-btn","styleClass","p-button-link","icon","pi pi-code",3,"label","click"],["data-testId","loading"],["data-testId","preview"],["data-testId","action-remove-btn","icon","pi pi-trash",1,"p-button-outlined",3,"label","click"],["data-testId","url"],[3,"accept","maxFileSize","tempFileUploaded","cancel"],["data-testId","editor"],[1,"binary-field__helper"],[1,"pi","pi-info-circle","binary-field__helper-icon"],["data-testId","helper-text"]],template:function(e,i){1&e&&(ae(0,Vk,9,16,"div",0),ct(1,"async"),ae(2,Bk,4,1,"div",1)),2&e&&(T("ngIf",yt(1,2,i.vm$)),N(2),T("ngIf",i.helperText))},dependencies:[Bt,Oo,xr,Sa,Q_,dd,Ub,Hb,lF,aF,FL,YN,Af,QL,NL,xk,DR,ZD,Tk],styles:[".binary-field__container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:100%;gap:1rem;border-radius:.375rem;border:1.5px solid #ebecef;padding:.5rem;margin-bottom:.5rem;height:10rem}.binary-field__container--uploading[_ngcontent-%COMP%]{border:1.5px dashed #ebecef}.binary-field__helper-icon[_ngcontent-%COMP%]{color:#8d92a5}.binary-field__helper[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center;gap:.5rem;color:#6c7389;font-weight:.813rem}.binary-field__actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;justify-content:center;align-items:flex-start}.binary-field__actions[_ngcontent-%COMP%] .p-button{display:inline-flex;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center}.binary-field__actions[_ngcontent-%COMP%] .p-button-link .p-button-label{color:#14151a}.binary-field__actions[_ngcontent-%COMP%] .p-button-link .p-button-icon{color:var(--color-palette-secondary-500)}.binary-field__drop-zone-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:100%;width:100%}.binary-field__drop-zone[_ngcontent-%COMP%]{border:1.5px dashed #afb3c0;display:flex;flex-direction:column;justify-content:center;align-items:center;border-radius:.375rem;-webkit-user-select:none;user-select:none;cursor:default;flex-grow:1;height:100%}.binary-field__drop-zone[_ngcontent-%COMP%] .binary-field__drop-zone-btn[_ngcontent-%COMP%]{border:none;background:none;color:var(--color-palette-primary-500);text-decoration:underline;font-size:1rem;font-family:Assistant,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;padding:revert}.binary-field__drop-zone--active[_ngcontent-%COMP%]{border-radius:.375rem;border-color:var(--color-palette-secondary-500);background:#ffffff;box-shadow:0 0 4px #14151a0a,0 8px 16px #14151a14}.binary-field__drop-zone[_ngcontent-%COMP%] dot-drop-zone[_ngcontent-%COMP%]{height:100%;width:100%}.binary-field__input[_ngcontent-%COMP%]{display:none}.binary-field__code-editor[_ngcontent-%COMP%]{border:1px solid #afb3c0;display:block;height:25rem}p-dialog[_ngcontent-%COMP%] .p-dialog-mask.p-component-overlay{background-color:transparent;-webkit-backdrop-filter:blur(.375rem);backdrop-filter:blur(.375rem)}"],changeDetection:0}),n})();const Uk=[{tag:"dotcms-binary-field",component:DE}];let $k=(()=>{class n{constructor(e){this.injector=e}ngDoBootstrap(){try{Uk.forEach(({tag:e,component:i})=>{if(customElements.get(e))return;const r=function K1(n,t){const e=function H1(n,t){return t.get(sr).resolveComponentFactory(n).inputs}(n,t.injector),i=t.strategyFactory||new W1(n,t.injector),r=function B1(n){const t={};return n.forEach(({propName:e,templateName:i})=>{t[function F1(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}(i)]=e}),t}(e);class o extends q1{get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||t.injector);e.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}constructor(a){super(),this.injector=a}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(r[a],c)}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=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return o.observedAttributes=Object.keys(r),e.forEach(({propName:s})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(a){this.ngElementStrategy.setInputValue(s,a)},configurable:!0,enumerable:!0})}),o}(i,{injector:this.injector});customElements.define(e,r)})}catch(e){console.error(e)}}}return n.\u0275fac=function(e){return new(e||n)(A(fn))},n.\u0275mod=Le({type:n}),n.\u0275inj=xe({providers:[gl,Mf],imports:[Dv,QN,DE]}),n})();h1().bootstrapModule($k).catch(n=>console.error(n))},13131:(fi,Yo,En)=>{var tt={"./ar-DZ/_lib/formatDistance/index.js":[28066,8592],"./ar-DZ/_lib/formatLong/index.js":[86369,8592,9493],"./ar-DZ/_lib/formatRelative/index.js":[89786,8592],"./ar-DZ/_lib/localize/index.js":[36207,8592,4373],"./ar-DZ/_lib/match/index.js":[53371,8592,2877],"./ar-DZ/index.js":[76327,8592,4288],"./ar-EG/_lib/formatDistance/index.js":[95932,8592],"./ar-EG/_lib/formatLong/index.js":[46023,8592,3639],"./ar-EG/_lib/formatRelative/index.js":[74621,8592],"./ar-EG/_lib/localize/index.js":[93376,8592,1378],"./ar-EG/_lib/match/index.js":[76456,8592,9284],"./ar-EG/index.js":[30830,8592,8477],"./ar-MA/_lib/formatDistance/index.js":[25565,8592],"./ar-MA/_lib/formatLong/index.js":[81783,8592,7236],"./ar-MA/_lib/formatRelative/index.js":[90030,8592],"./ar-MA/_lib/localize/index.js":[60503,8592,7995],"./ar-MA/_lib/match/index.js":[83427,8592,8213],"./ar-MA/index.js":[96094,8592,9736],"./ar-SA/_lib/formatDistance/index.js":[3797,8592],"./ar-SA/_lib/formatLong/index.js":[73212,8592,9090],"./ar-SA/_lib/formatRelative/index.js":[79009,8592],"./ar-SA/_lib/localize/index.js":[12535,8592,124],"./ar-SA/_lib/match/index.js":[14710,8592,2912],"./ar-SA/index.js":[54370,8592,6562],"./ar-TN/_lib/formatDistance/index.js":[56566,8592],"./ar-TN/_lib/formatLong/index.js":[4585,8592,3753],"./ar-TN/_lib/formatRelative/index.js":[5374,8592],"./ar-TN/_lib/localize/index.js":[85963,8592,4843],"./ar-TN/_lib/match/index.js":[13401,8592,2581],"./ar-TN/index.js":[37373,8592,6426],"./be-tarask/_lib/formatDistance/index.js":[82665,8592],"./be-tarask/_lib/formatLong/index.js":[9662,8592,5806],"./be-tarask/_lib/formatRelative/index.js":[4653,4,8592],"./be-tarask/_lib/localize/index.js":[40591,8592,1283],"./be-tarask/_lib/match/index.js":[34412,8592,9938],"./be-tarask/index.js":[27840,4,8592,7840],"./de-AT/_lib/localize/index.js":[44821,8592,8300],"./de-AT/index.js":[21782,8592,243],"./en-AU/_lib/formatLong/index.js":[65493,8592,6237],"./en-AU/index.js":[87747,8592,1128],"./en-CA/_lib/formatDistance/index.js":[80780,8592],"./en-CA/_lib/formatLong/index.js":[26153,8592,7747],"./en-CA/index.js":[21413,8592,7555],"./en-GB/_lib/formatLong/index.js":[33819,8592,4547],"./en-GB/index.js":[33035,8592,1228],"./en-IE/index.js":[61959,8592,463],"./en-IN/_lib/formatLong/index.js":[20862,8592,3191],"./en-IN/index.js":[82873,8592,8757],"./en-NZ/_lib/formatLong/index.js":[36336,8592,3197],"./en-NZ/index.js":[26041,8592,5966],"./en-US/_lib/formatDistance/index.js":[39563,9563],"./en-US/_lib/formatLong/index.js":[66929,6929],"./en-US/_lib/formatRelative/index.js":[21656,1656],"./en-US/_lib/localize/index.js":[31098,9350],"./en-US/_lib/match/index.js":[53239,3239],"./en-US/index.js":[33338,3338],"./en-ZA/_lib/formatLong/index.js":[9221,8592,6951],"./en-ZA/index.js":[11543,8592,4093],"./fa-IR/_lib/formatDistance/index.js":[76726,8592],"./fa-IR/_lib/formatLong/index.js":[10749,8592,7612],"./fa-IR/_lib/formatRelative/index.js":[7220,8592],"./fa-IR/_lib/localize/index.js":[72441,8592,9371],"./fa-IR/_lib/match/index.js":[81488,8592,7743],"./fa-IR/index.js":[84996,8592,5974],"./fr-CA/_lib/formatLong/index.js":[85947,8592,4367],"./fr-CA/index.js":[73723,8592,1688],"./fr-CH/_lib/formatLong/index.js":[27414,8592,3603],"./fr-CH/_lib/formatRelative/index.js":[66155,8592],"./fr-CH/index.js":[24565,8592,4087],"./it-CH/_lib/formatLong/index.js":[31519,8592,6685],"./it-CH/index.js":[87736,8592,2324],"./ja-Hira/_lib/formatDistance/index.js":[84703,8592],"./ja-Hira/_lib/formatLong/index.js":[56574,8592,7336],"./ja-Hira/_lib/formatRelative/index.js":[93381,8592],"./ja-Hira/_lib/localize/index.js":[35710,8592,3665],"./ja-Hira/_lib/match/index.js":[69417,8592,3148],"./ja-Hira/index.js":[12944,8592,1464],"./nl-BE/_lib/formatDistance/index.js":[16129,8592],"./nl-BE/_lib/formatLong/index.js":[17657,8592,3039],"./nl-BE/_lib/formatRelative/index.js":[89811,8592],"./nl-BE/_lib/localize/index.js":[58816,8592,1681],"./nl-BE/_lib/match/index.js":[28333,8592,2237],"./nl-BE/index.js":[70296,8592,4862],"./pt-BR/_lib/formatDistance/index.js":[52638,8592],"./pt-BR/_lib/formatLong/index.js":[33247,8592,4753],"./pt-BR/_lib/formatRelative/index.js":[25492,8592],"./pt-BR/_lib/localize/index.js":[81046,8592,2258],"./pt-BR/_lib/match/index.js":[63770,8592,9792],"./pt-BR/index.js":[47569,8592,1100],"./sr-Latn/_lib/formatDistance/index.js":[69014,8592],"./sr-Latn/_lib/formatLong/index.js":[99257,8592,275],"./sr-Latn/_lib/formatRelative/index.js":[42428,8592],"./sr-Latn/_lib/localize/index.js":[92773,8592,7136],"./sr-Latn/_lib/match/index.js":[7766,8592,3177],"./sr-Latn/index.js":[99064,8592,2152],"./uz-Cyrl/_lib/formatDistance/index.js":[67778,8592],"./uz-Cyrl/_lib/formatLong/index.js":[64095,8592,160],"./uz-Cyrl/_lib/formatRelative/index.js":[83734,8592],"./uz-Cyrl/_lib/localize/index.js":[17670,8592,2654],"./uz-Cyrl/_lib/match/index.js":[75798,8592,1360],"./uz-Cyrl/index.js":[14527,8592,8932],"./zh-CN/_lib/formatDistance/index.js":[33437,8592],"./zh-CN/_lib/formatLong/index.js":[91583,8592,485],"./zh-CN/_lib/formatRelative/index.js":[95629,8592,5441],"./zh-CN/_lib/localize/index.js":[17939,8592,9169],"./zh-CN/_lib/match/index.js":[71362,8592,7103],"./zh-CN/index.js":[86335,8592,8664],"./zh-HK/_lib/formatDistance/index.js":[37348,8592],"./zh-HK/_lib/formatLong/index.js":[60924,8592,3215],"./zh-HK/_lib/formatRelative/index.js":[22164,8592],"./zh-HK/_lib/localize/index.js":[39264,8592,1780],"./zh-HK/_lib/match/index.js":[50358,8592,5641],"./zh-HK/index.js":[59277,8592,2336],"./zh-TW/_lib/formatDistance/index.js":[31613,8592],"./zh-TW/_lib/formatLong/index.js":[1239,8592,248],"./zh-TW/_lib/formatRelative/index.js":[13240,8592],"./zh-TW/_lib/localize/index.js":[29850,8592,9886],"./zh-TW/_lib/match/index.js":[38819,8592,8041],"./zh-TW/index.js":[74565,8592,8978]};function Wt(Fe){if(!En.o(tt,Fe))return Promise.resolve().then(()=>{var Gt=new Error("Cannot find module '"+Fe+"'");throw Gt.code="MODULE_NOT_FOUND",Gt});var vt=tt[Fe],qn=vt[0];return Promise.all(vt.slice(1).map(En.e)).then(()=>En.t(qn,23))}Wt.keys=()=>Object.keys(tt),Wt.id=13131,fi.exports=Wt},71213:(fi,Yo,En)=>{var tt={"./_lib/buildFormatLongFn/index.js":[88995,7,8995],"./_lib/buildLocalizeFn/index.js":[77579,7,7579],"./_lib/buildMatchFn/index.js":[84728,7,4728],"./_lib/buildMatchPatternFn/index.js":[27223,7,7223],"./af/_lib/formatDistance/index.js":[55864,7,8592],"./af/_lib/formatLong/index.js":[25358,7,8592,9848],"./af/_lib/formatRelative/index.js":[25892,7,8592],"./af/_lib/localize/index.js":[18874,7,8592,459],"./af/_lib/match/index.js":[22146,7,8592,4568],"./af/index.js":[72399,7,8592,6595],"./ar-DZ/_lib/formatDistance/index.js":[28066,7,8592],"./ar-DZ/_lib/formatLong/index.js":[86369,7,8592,9493],"./ar-DZ/_lib/formatRelative/index.js":[89786,7,8592],"./ar-DZ/_lib/localize/index.js":[36207,7,8592,4373],"./ar-DZ/_lib/match/index.js":[53371,7,8592,2877],"./ar-DZ/index.js":[76327,7,8592,4288],"./ar-EG/_lib/formatDistance/index.js":[95932,7,8592],"./ar-EG/_lib/formatLong/index.js":[46023,7,8592,3639],"./ar-EG/_lib/formatRelative/index.js":[74621,7,8592],"./ar-EG/_lib/localize/index.js":[93376,7,8592,1378],"./ar-EG/_lib/match/index.js":[76456,7,8592,9284],"./ar-EG/index.js":[30830,7,8592,8477],"./ar-MA/_lib/formatDistance/index.js":[25565,7,8592],"./ar-MA/_lib/formatLong/index.js":[81783,7,8592,7236],"./ar-MA/_lib/formatRelative/index.js":[90030,7,8592],"./ar-MA/_lib/localize/index.js":[60503,7,8592,7995],"./ar-MA/_lib/match/index.js":[83427,7,8592,8213],"./ar-MA/index.js":[96094,7,8592,9736],"./ar-SA/_lib/formatDistance/index.js":[3797,7,8592],"./ar-SA/_lib/formatLong/index.js":[73212,7,8592,9090],"./ar-SA/_lib/formatRelative/index.js":[79009,7,8592],"./ar-SA/_lib/localize/index.js":[12535,7,8592,124],"./ar-SA/_lib/match/index.js":[14710,7,8592,2912],"./ar-SA/index.js":[54370,7,8592,6562],"./ar-TN/_lib/formatDistance/index.js":[56566,7,8592],"./ar-TN/_lib/formatLong/index.js":[4585,7,8592,3753],"./ar-TN/_lib/formatRelative/index.js":[5374,7,8592],"./ar-TN/_lib/localize/index.js":[85963,7,8592,4843],"./ar-TN/_lib/match/index.js":[13401,7,8592,2581],"./ar-TN/index.js":[37373,7,8592,6426],"./ar/_lib/formatDistance/index.js":[91118,7,8592],"./ar/_lib/formatLong/index.js":[90899,7,8592,319],"./ar/_lib/formatRelative/index.js":[18739,7,8592],"./ar/_lib/localize/index.js":[64620,7,8592,9521],"./ar/_lib/match/index.js":[32101,7,8592,6574],"./ar/index.js":[91780,7,8592,7519],"./az/_lib/formatDistance/index.js":[2541,7,8592],"./az/_lib/formatLong/index.js":[6246,7,8592,1481],"./az/_lib/formatRelative/index.js":[33557,7,8592],"./az/_lib/localize/index.js":[89347,7,8592,38],"./az/_lib/match/index.js":[75242,7,8592,5991],"./az/index.js":[170,7,8592,6265],"./be-tarask/_lib/formatDistance/index.js":[82665,7,8592],"./be-tarask/_lib/formatLong/index.js":[9662,7,8592,5806],"./be-tarask/_lib/formatRelative/index.js":[4653,7,4,8592],"./be-tarask/_lib/localize/index.js":[40591,7,8592,1283],"./be-tarask/_lib/match/index.js":[34412,7,8592,9938],"./be-tarask/index.js":[27840,7,4,8592,7840],"./be/_lib/formatDistance/index.js":[9006,7,8592],"./be/_lib/formatLong/index.js":[58343,7,8592,193],"./be/_lib/formatRelative/index.js":[20369,7,4,8592],"./be/_lib/localize/index.js":[30768,7,8592,36],"./be/_lib/match/index.js":[35637,7,8592,7910],"./be/index.js":[94646,7,4,8592,4646],"./bg/_lib/formatDistance/index.js":[54037,7,8592],"./bg/_lib/formatLong/index.js":[44221,7,8592,8416],"./bg/_lib/formatRelative/index.js":[24925,7,8592,9491],"./bg/_lib/localize/index.js":[60958,7,8592,7265],"./bg/_lib/match/index.js":[99124,7,8592,4480],"./bg/index.js":[90948,7,8592,6516],"./bn/_lib/formatDistance/index.js":[5190,7,8592,9310],"./bn/_lib/formatLong/index.js":[10846,7,8592,6590],"./bn/_lib/formatRelative/index.js":[90009,7,8592],"./bn/_lib/localize/index.js":[32143,9,8592,6288],"./bn/_lib/match/index.js":[71701,7,8592,9531],"./bn/index.js":[76982,7,8592,1832],"./bs/_lib/formatDistance/index.js":[3504,7,8592],"./bs/_lib/formatLong/index.js":[47625,7,8592,8960],"./bs/_lib/formatRelative/index.js":[69642,7,8592],"./bs/_lib/localize/index.js":[19781,7,8592,5350],"./bs/_lib/match/index.js":[98469,7,8592,7403],"./bs/index.js":[21670,7,8592,6919],"./ca/_lib/formatDistance/index.js":[78470,7,8592],"./ca/_lib/formatLong/index.js":[37682,7,8592,1927],"./ca/_lib/formatRelative/index.js":[73019,7,8592],"./ca/_lib/localize/index.js":[94354,7,8592,6716],"./ca/_lib/match/index.js":[87821,7,8592,4111],"./ca/index.js":[59800,7,8592,2376],"./cs/_lib/formatDistance/index.js":[84712,7,8592],"./cs/_lib/formatLong/index.js":[25366,7,8592,3353],"./cs/_lib/formatRelative/index.js":[30404,7,8592],"./cs/_lib/localize/index.js":[1944,7,8592,7884],"./cs/_lib/match/index.js":[8302,7,8592,4925],"./cs/index.js":[27463,7,8592,9494],"./cy/_lib/formatDistance/index.js":[53860,7,8592],"./cy/_lib/formatLong/index.js":[5355,7,8592,6718],"./cy/_lib/formatRelative/index.js":[11612,7,8592],"./cy/_lib/localize/index.js":[79008,7,8592,6502],"./cy/_lib/match/index.js":[69946,7,8592,9797],"./cy/index.js":[87955,7,8592,7039],"./da/_lib/formatDistance/index.js":[32439,7,8592],"./da/_lib/formatLong/index.js":[40114,7,8592,8688],"./da/_lib/formatRelative/index.js":[33452,7,8592],"./da/_lib/localize/index.js":[22653,7,8592,2710],"./da/_lib/match/index.js":[1416,7,8592,7195],"./da/index.js":[11295,7,8592,2630],"./de-AT/_lib/localize/index.js":[44821,7,8592,8300],"./de-AT/index.js":[21782,7,8592,243],"./de/_lib/formatDistance/index.js":[98815,7,8592],"./de/_lib/formatLong/index.js":[47173,7,8592,4801],"./de/_lib/formatRelative/index.js":[5278,7,8592],"./de/_lib/localize/index.js":[54552,7,8592,6131],"./de/_lib/match/index.js":[31871,7,8592,5131],"./de/index.js":[94086,7,8592,9616],"./el/_lib/formatDistance/index.js":[39298,7,8592],"./el/_lib/formatLong/index.js":[94460,7,8592,2027],"./el/_lib/formatRelative/index.js":[72435,7,8592],"./el/_lib/localize/index.js":[674,7,8592,7538],"./el/_lib/match/index.js":[40588,7,8592,2187],"./el/index.js":[26106,7,8592,5382],"./en-AU/_lib/formatLong/index.js":[65493,7,8592,6237],"./en-AU/index.js":[87747,7,8592,1128],"./en-CA/_lib/formatDistance/index.js":[80780,7,8592],"./en-CA/_lib/formatLong/index.js":[26153,7,8592,7747],"./en-CA/index.js":[21413,7,8592,7555],"./en-GB/_lib/formatLong/index.js":[33819,7,8592,4547],"./en-GB/index.js":[33035,7,8592,1228],"./en-IE/index.js":[61959,7,8592,463],"./en-IN/_lib/formatLong/index.js":[20862,7,8592,3191],"./en-IN/index.js":[82873,7,8592,8757],"./en-NZ/_lib/formatLong/index.js":[36336,7,8592,3197],"./en-NZ/index.js":[26041,7,8592,5966],"./en-US/_lib/formatDistance/index.js":[39563,7,9563],"./en-US/_lib/formatLong/index.js":[66929,7,6929],"./en-US/_lib/formatRelative/index.js":[21656,7,1656],"./en-US/_lib/localize/index.js":[31098,7,9350],"./en-US/_lib/match/index.js":[53239,7,3239],"./en-US/index.js":[33338,7,3338],"./en-ZA/_lib/formatLong/index.js":[9221,7,8592,6951],"./en-ZA/index.js":[11543,7,8592,4093],"./eo/_lib/formatDistance/index.js":[43549,7,8592],"./eo/_lib/formatLong/index.js":[25567,7,8592,8118],"./eo/_lib/formatRelative/index.js":[30410,7,8592],"./eo/_lib/localize/index.js":[27249,7,8592,1634],"./eo/_lib/match/index.js":[75687,7,8592,8199],"./eo/index.js":[63574,7,8592,1411],"./es/_lib/formatDistance/index.js":[66660,7,8592],"./es/_lib/formatLong/index.js":[39055,7,8592,8248],"./es/_lib/formatRelative/index.js":[63774,7,8592],"./es/_lib/localize/index.js":[38835,7,8592,7568],"./es/_lib/match/index.js":[38662,7,8592,6331],"./es/index.js":[23413,7,8592,7412],"./et/_lib/formatDistance/index.js":[64334,7,8592],"./et/_lib/formatLong/index.js":[32045,7,8592,7372],"./et/_lib/formatRelative/index.js":[47074,7,8592],"./et/_lib/localize/index.js":[42462,7,8592,6778],"./et/_lib/match/index.js":[85999,7,8592,7670],"./et/index.js":[65861,7,8592,8138],"./eu/_lib/formatDistance/index.js":[91793,7,8592],"./eu/_lib/formatLong/index.js":[17350,7,8592,2069],"./eu/_lib/formatRelative/index.js":[25688,7,8592],"./eu/_lib/localize/index.js":[28061,7,8592,8759],"./eu/_lib/match/index.js":[11113,7,8592,7462],"./eu/index.js":[29618,7,8592,7969],"./fa-IR/_lib/formatDistance/index.js":[76726,7,8592],"./fa-IR/_lib/formatLong/index.js":[10749,7,8592,7612],"./fa-IR/_lib/formatRelative/index.js":[7220,7,8592],"./fa-IR/_lib/localize/index.js":[72441,7,8592,9371],"./fa-IR/_lib/match/index.js":[81488,7,8592,7743],"./fa-IR/index.js":[84996,7,8592,5974],"./fi/_lib/formatDistance/index.js":[97929,7,8592],"./fi/_lib/formatLong/index.js":[63741,7,8592,694],"./fi/_lib/formatRelative/index.js":[23234,7,8592],"./fi/_lib/localize/index.js":[5936,7,8592,1090],"./fi/_lib/match/index.js":[157,7,8592,5464],"./fi/index.js":[3596,7,8592,4420],"./fr-CA/_lib/formatLong/index.js":[85947,7,8592,4367],"./fr-CA/index.js":[73723,7,8592,1688],"./fr-CH/_lib/formatLong/index.js":[27414,7,8592,3603],"./fr-CH/_lib/formatRelative/index.js":[66155,7,8592],"./fr-CH/index.js":[24565,7,8592,4087],"./fr/_lib/formatDistance/index.js":[26839,7,8592],"./fr/_lib/formatLong/index.js":[32554,7,8592,7586],"./fr/_lib/formatRelative/index.js":[15328,7,8592],"./fr/_lib/localize/index.js":[29821,7,8592,6409],"./fr/_lib/match/index.js":[57047,7,8592,7405],"./fr/index.js":[34153,7,8592,5146],"./fy/_lib/formatDistance/index.js":[60373,7,8592],"./fy/_lib/formatLong/index.js":[97771,7,8592,7654],"./fy/_lib/formatRelative/index.js":[33851,7,8592],"./fy/_lib/localize/index.js":[86993,7,8592,6579],"./fy/_lib/match/index.js":[48603,7,8592,5284],"./fy/index.js":[73434,7,8592,7176],"./gd/_lib/formatDistance/index.js":[45690,7,8592],"./gd/_lib/formatLong/index.js":[2660,7,8592,2e3],"./gd/_lib/formatRelative/index.js":[30700,7,8592],"./gd/_lib/localize/index.js":[40751,7,8592,8987],"./gd/_lib/match/index.js":[40421,7,8592,8809],"./gd/index.js":[48569,7,8592,296],"./gl/_lib/formatDistance/index.js":[35871,7,8592],"./gl/_lib/formatLong/index.js":[30449,7,8592,359],"./gl/_lib/formatRelative/index.js":[95563,7,8592],"./gl/_lib/localize/index.js":[61905,7,8592,594],"./gl/_lib/match/index.js":[33150,7,8592,5012],"./gl/index.js":[96508,7,8592,4612],"./gu/_lib/formatDistance/index.js":[88210,7,8592],"./gu/_lib/formatLong/index.js":[63333,7,8592,7308],"./gu/_lib/formatRelative/index.js":[89348,7,8592],"./gu/_lib/localize/index.js":[50143,7,8592,6108],"./gu/_lib/match/index.js":[50932,7,8592,7091],"./gu/index.js":[75732,7,8592,6971],"./he/_lib/formatDistance/index.js":[42191,7,8592],"./he/_lib/formatLong/index.js":[13925,7,8592,7992],"./he/_lib/formatRelative/index.js":[11481,7,8592],"./he/_lib/localize/index.js":[19661,7,8592,5989],"./he/_lib/match/index.js":[41291,7,8592,5362],"./he/index.js":[86517,7,8592,340],"./hi/_lib/formatDistance/index.js":[52573,7,8592,9170],"./hi/_lib/formatLong/index.js":[30535,7,8592,9664],"./hi/_lib/formatRelative/index.js":[65379,7,8592],"./hi/_lib/localize/index.js":[35423,9,8592,383],"./hi/_lib/match/index.js":[78198,7,8592,652],"./hi/index.js":[29562,7,8592,2592],"./hr/_lib/formatDistance/index.js":[7652,7,8592],"./hr/_lib/formatLong/index.js":[29577,7,8592,6290],"./hr/_lib/formatRelative/index.js":[27603,7,8592],"./hr/_lib/localize/index.js":[12512,7,8592,5734],"./hr/_lib/match/index.js":[83880,7,8592,8808],"./hr/index.js":[41499,7,8592,9108],"./ht/_lib/formatDistance/index.js":[17743,7,8592],"./ht/_lib/formatLong/index.js":[50596,7,8592,1669],"./ht/_lib/formatRelative/index.js":[66473,7,8592],"./ht/_lib/localize/index.js":[98942,7,8592,5217],"./ht/_lib/match/index.js":[18649,7,8592,4042],"./ht/index.js":[91792,7,8592,6132],"./hu/_lib/formatDistance/index.js":[74406,7,8592],"./hu/_lib/formatLong/index.js":[53971,7,8592,7275],"./hu/_lib/formatRelative/index.js":[48580,7,8592],"./hu/_lib/localize/index.js":[6998,7,8592,8730],"./hu/_lib/match/index.js":[69897,7,8592,4330],"./hu/index.js":[85980,7,8592,7955],"./hy/_lib/formatDistance/index.js":[50897,7,8592],"./hy/_lib/formatLong/index.js":[11837,7,8592,1408],"./hy/_lib/formatRelative/index.js":[3543,7,8592],"./hy/_lib/localize/index.js":[90151,7,8592,81],"./hy/_lib/match/index.js":[97177,7,8592,4931],"./hy/index.js":[83268,7,8592,5803],"./id/_lib/formatDistance/index.js":[70846,7,8592],"./id/_lib/formatLong/index.js":[53405,7,8592,7106],"./id/_lib/formatRelative/index.js":[97180,7,8592],"./id/_lib/localize/index.js":[35645,7,8592,4320],"./id/_lib/match/index.js":[87601,7,8592,3434],"./id/index.js":[90146,7,8592,3963],"./is/_lib/formatDistance/index.js":[2370,7,8592],"./is/_lib/formatLong/index.js":[74096,7,8592,1427],"./is/_lib/formatRelative/index.js":[42141,7,8592],"./is/_lib/localize/index.js":[12161,7,8592,5221],"./is/_lib/match/index.js":[20798,7,8592,4321],"./is/index.js":[84111,7,8592,5121],"./it-CH/_lib/formatLong/index.js":[31519,7,8592,6685],"./it-CH/index.js":[87736,7,8592,2324],"./it/_lib/formatDistance/index.js":[40358,7,8592],"./it/_lib/formatLong/index.js":[29588,7,8592,7173],"./it/_lib/formatRelative/index.js":[91403,7,8592,5096],"./it/_lib/localize/index.js":[62007,7,8592,5232],"./it/_lib/match/index.js":[94070,7,8592,4604],"./it/index.js":[93722,7,8592,6815],"./ja-Hira/_lib/formatDistance/index.js":[84703,7,8592],"./ja-Hira/_lib/formatLong/index.js":[56574,7,8592,7336],"./ja-Hira/_lib/formatRelative/index.js":[93381,7,8592],"./ja-Hira/_lib/localize/index.js":[35710,7,8592,3665],"./ja-Hira/_lib/match/index.js":[69417,7,8592,3148],"./ja-Hira/index.js":[12944,7,8592,1464],"./ja/_lib/formatDistance/index.js":[68018,7,8592],"./ja/_lib/formatLong/index.js":[45602,7,8592,1264],"./ja/_lib/formatRelative/index.js":[65297,7,8592],"./ja/_lib/localize/index.js":[77420,7,8592,800],"./ja/_lib/match/index.js":[83926,7,8592,4403],"./ja/index.js":[89251,7,8592,6422],"./ka/_lib/formatDistance/index.js":[39442,7,8592],"./ka/_lib/formatLong/index.js":[960,7,8592,6634],"./ka/_lib/formatRelative/index.js":[18861,7,8592],"./ka/_lib/localize/index.js":[85798,7,8592,599],"./ka/_lib/match/index.js":[55077,7,8592,3545],"./ka/index.js":[34010,7,8592,1289],"./kk/_lib/formatDistance/index.js":[44502,7,8592],"./kk/_lib/formatLong/index.js":[79591,7,8592,1473],"./kk/_lib/formatRelative/index.js":[80876,7,8592,1098],"./kk/_lib/localize/index.js":[16163,7,8592,9023],"./kk/_lib/match/index.js":[11079,7,8592,1038],"./kk/index.js":[61615,7,8592,9444],"./km/_lib/formatDistance/index.js":[69355,7,8592],"./km/_lib/formatLong/index.js":[64335,7,8592,5713],"./km/_lib/formatRelative/index.js":[68462,7,8592],"./km/_lib/localize/index.js":[32885,7,8592,5727],"./km/_lib/match/index.js":[49242,7,8592,3286],"./km/index.js":[98510,7,8592,2044],"./kn/_lib/formatDistance/index.js":[93557,7,8592],"./kn/_lib/formatLong/index.js":[19335,7,8592,2367],"./kn/_lib/formatRelative/index.js":[19080,7,8592],"./kn/_lib/localize/index.js":[83848,7,8592,61],"./kn/_lib/match/index.js":[36809,7,8592,4054],"./kn/index.js":[99517,7,8592,1417],"./ko/_lib/formatDistance/index.js":[21540,7,8592],"./ko/_lib/formatLong/index.js":[47237,7,8592,5780],"./ko/_lib/formatRelative/index.js":[91078,7,8592],"./ko/_lib/localize/index.js":[89409,7,8592,1075],"./ko/_lib/match/index.js":[38567,7,8592,9545],"./ko/index.js":[15058,7,8592,404],"./lb/_lib/formatDistance/index.js":[81904,7,8592],"./lb/_lib/formatLong/index.js":[53103,7,8592,5735],"./lb/_lib/formatRelative/index.js":[64861,7,8592],"./lb/_lib/localize/index.js":[13317,7,8592,8947],"./lb/_lib/match/index.js":[72652,7,8592,6123],"./lb/index.js":[61953,7,8592,9937],"./lt/_lib/formatDistance/index.js":[55348,7,8592],"./lt/_lib/formatLong/index.js":[18290,7,8592,5214],"./lt/_lib/formatRelative/index.js":[53257,7,8592],"./lt/_lib/localize/index.js":[62395,7,8592,6006],"./lt/_lib/match/index.js":[5825,7,8592,8766],"./lt/index.js":[35901,7,8592,1422],"./lv/_lib/formatDistance/index.js":[28910,7,8592],"./lv/_lib/formatLong/index.js":[86421,7,8592,2624],"./lv/_lib/formatRelative/index.js":[60151,7,8592,3746],"./lv/_lib/localize/index.js":[44960,7,8592,406],"./lv/_lib/match/index.js":[4876,7,8592,4139],"./lv/index.js":[82008,7,8592,2537],"./mk/_lib/formatDistance/index.js":[38992,7,8592],"./mk/_lib/formatLong/index.js":[7479,7,8592,6156],"./mk/_lib/formatRelative/index.js":[41655,7,8592,903],"./mk/_lib/localize/index.js":[23458,7,8592,4893],"./mk/_lib/match/index.js":[82975,7,8592,9858],"./mk/index.js":[21880,7,8592,2683],"./mn/_lib/formatDistance/index.js":[61341,7,8592],"./mn/_lib/formatLong/index.js":[19732,7,8592,5992],"./mn/_lib/formatRelative/index.js":[98225,7,8592],"./mn/_lib/localize/index.js":[89576,7,8592,4261],"./mn/_lib/match/index.js":[33306,7,8592,5055],"./mn/index.js":[31937,7,8592,4446],"./ms/_lib/formatDistance/index.js":[97808,7,8592],"./ms/_lib/formatLong/index.js":[61962,7,8592,6623],"./ms/_lib/formatRelative/index.js":[68530,7,8592],"./ms/_lib/localize/index.js":[13241,7,8592,3368],"./ms/_lib/match/index.js":[67079,7,8592,9302],"./ms/index.js":[25098,7,8592,5705],"./mt/_lib/formatDistance/index.js":[14611,7,8592],"./mt/_lib/formatLong/index.js":[65011,7,8592,1161],"./mt/_lib/formatRelative/index.js":[44521,7,8592],"./mt/_lib/localize/index.js":[69408,7,8592,6433],"./mt/_lib/match/index.js":[29726,7,8592,4216],"./mt/index.js":[12811,7,8592,1911],"./nb/_lib/formatDistance/index.js":[59968,7,8592],"./nb/_lib/formatLong/index.js":[20511,7,8592,5168],"./nb/_lib/formatRelative/index.js":[11639,7,8592],"./nb/_lib/localize/index.js":[94249,7,8592,4378],"./nb/_lib/match/index.js":[63498,7,8592,9691],"./nb/index.js":[61295,7,8592,2392],"./nl-BE/_lib/formatDistance/index.js":[16129,7,8592],"./nl-BE/_lib/formatLong/index.js":[17657,7,8592,3039],"./nl-BE/_lib/formatRelative/index.js":[89811,7,8592],"./nl-BE/_lib/localize/index.js":[58816,7,8592,1681],"./nl-BE/_lib/match/index.js":[28333,7,8592,2237],"./nl-BE/index.js":[70296,7,8592,4862],"./nl/_lib/formatDistance/index.js":[57117,7,8592],"./nl/_lib/formatLong/index.js":[57197,7,8592,2377],"./nl/_lib/formatRelative/index.js":[62818,7,8592],"./nl/_lib/localize/index.js":[67706,7,8592,3283],"./nl/_lib/match/index.js":[61430,7,8592,9229],"./nl/index.js":[80775,7,8592,9354],"./nn/_lib/formatDistance/index.js":[4563,7,8592],"./nn/_lib/formatLong/index.js":[89212,7,8592,169],"./nn/_lib/formatRelative/index.js":[2565,7,8592],"./nn/_lib/localize/index.js":[28456,7,8592,4340],"./nn/_lib/match/index.js":[51571,7,8592,9185],"./nn/index.js":[34632,7,8592,7506],"./oc/_lib/formatDistance/index.js":[16585,7,8592],"./oc/_lib/formatLong/index.js":[96725,7,8592,415],"./oc/_lib/formatRelative/index.js":[7548,7,8592],"./oc/_lib/localize/index.js":[93417,7,8592,5746],"./oc/_lib/match/index.js":[18145,7,8592,7829],"./oc/index.js":[68311,7,8592,7250],"./pl/_lib/formatDistance/index.js":[62056,7,8592],"./pl/_lib/formatLong/index.js":[47448,7,8592,5539],"./pl/_lib/formatRelative/index.js":[65991,7,8592,6160],"./pl/_lib/localize/index.js":[4306,7,8592,3498],"./pl/_lib/match/index.js":[76075,7,8592,7768],"./pl/index.js":[8554,7,8592,9134],"./pt-BR/_lib/formatDistance/index.js":[52638,7,8592],"./pt-BR/_lib/formatLong/index.js":[33247,7,8592,4753],"./pt-BR/_lib/formatRelative/index.js":[25492,7,8592],"./pt-BR/_lib/localize/index.js":[81046,7,8592,2258],"./pt-BR/_lib/match/index.js":[63770,7,8592,9792],"./pt-BR/index.js":[47569,7,8592,1100],"./pt/_lib/formatDistance/index.js":[55488,7,8592],"./pt/_lib/formatLong/index.js":[5133,7,8592,2741],"./pt/_lib/formatRelative/index.js":[7493,7,8592],"./pt/_lib/localize/index.js":[58360,7,8592,3713],"./pt/_lib/match/index.js":[37200,7,8592,7033],"./pt/index.js":[24239,7,8592,3530],"./ro/_lib/formatDistance/index.js":[18199,7,8592],"./ro/_lib/formatLong/index.js":[84311,7,8592,173],"./ro/_lib/formatRelative/index.js":[97974,7,8592],"./ro/_lib/localize/index.js":[64729,7,8592,470],"./ro/_lib/match/index.js":[9202,7,8592,9975],"./ro/index.js":[51055,7,8592,5563],"./ru/_lib/formatDistance/index.js":[90650,7,8592],"./ru/_lib/formatLong/index.js":[12580,7,8592,9390],"./ru/_lib/formatRelative/index.js":[15994,7,8592,1338],"./ru/_lib/localize/index.js":[66943,7,8592,6325],"./ru/_lib/match/index.js":[86374,7,8592,7339],"./ru/index.js":[27413,7,8592,9896],"./sk/_lib/formatDistance/index.js":[32882,7,8592],"./sk/_lib/formatLong/index.js":[95087,7,8592,6050],"./sk/_lib/formatRelative/index.js":[35507,7,8592,3951],"./sk/_lib/localize/index.js":[37369,7,8592,3264],"./sk/_lib/match/index.js":[74329,7,8592,9460],"./sk/index.js":[17065,7,8592,5064],"./sl/_lib/formatDistance/index.js":[57613,7,8592],"./sl/_lib/formatLong/index.js":[66302,7,8592,2857],"./sl/_lib/formatRelative/index.js":[92131,7,8592],"./sl/_lib/localize/index.js":[2942,7,8592,6363],"./sl/_lib/match/index.js":[36326,7,8592,7341],"./sl/index.js":[62166,7,8592,2157],"./sq/_lib/formatDistance/index.js":[82569,7,8592],"./sq/_lib/formatLong/index.js":[32784,7,8592,314],"./sq/_lib/formatRelative/index.js":[44390,7,8592],"./sq/_lib/localize/index.js":[26425,7,8592,9930],"./sq/_lib/match/index.js":[72140,7,8592,1445],"./sq/index.js":[70797,7,8592,8556],"./sr-Latn/_lib/formatDistance/index.js":[69014,7,8592],"./sr-Latn/_lib/formatLong/index.js":[99257,7,8592,275],"./sr-Latn/_lib/formatRelative/index.js":[42428,7,8592],"./sr-Latn/_lib/localize/index.js":[92773,7,8592,7136],"./sr-Latn/_lib/match/index.js":[7766,7,8592,3177],"./sr-Latn/index.js":[99064,7,8592,2152],"./sr/_lib/formatDistance/index.js":[55503,7,8592],"./sr/_lib/formatLong/index.js":[13465,7,8592,232],"./sr/_lib/formatRelative/index.js":[25743,7,8592],"./sr/_lib/localize/index.js":[30172,7,8592,5864],"./sr/_lib/match/index.js":[81613,7,8592,7316],"./sr/index.js":[15930,7,8592,5831],"./sv/_lib/formatDistance/index.js":[81387,7,8592],"./sv/_lib/formatLong/index.js":[20660,7,8592,5204],"./sv/_lib/formatRelative/index.js":[43502,7,8592],"./sv/_lib/localize/index.js":[32384,7,8592,4345],"./sv/_lib/match/index.js":[69940,7,8592,7105],"./sv/index.js":[81413,7,8592,5396],"./ta/_lib/formatDistance/index.js":[66840,7,8592],"./ta/_lib/formatLong/index.js":[49391,7,8592,5892],"./ta/_lib/formatRelative/index.js":[99284,7,8592],"./ta/_lib/localize/index.js":[61290,7,8592,6239],"./ta/_lib/match/index.js":[33749,7,8592,4720],"./ta/index.js":[21486,7,8592,7983],"./te/_lib/formatDistance/index.js":[38,7,8592],"./te/_lib/formatLong/index.js":[34703,7,8592,4094],"./te/_lib/formatRelative/index.js":[46611,7,8592],"./te/_lib/localize/index.js":[86184,7,8592,118],"./te/_lib/match/index.js":[17208,7,8592,7193],"./te/index.js":[52492,7,8592,7183],"./th/_lib/formatDistance/index.js":[32939,7,8592],"./th/_lib/formatLong/index.js":[96146,7,8592,8475],"./th/_lib/formatRelative/index.js":[97294,7,8592],"./th/_lib/localize/index.js":[44204,7,8592,6203],"./th/_lib/match/index.js":[59829,7,8592,2626],"./th/index.js":[74785,7,8592,4008],"./tr/_lib/formatDistance/index.js":[77216,7,8592],"./tr/_lib/formatLong/index.js":[68379,7,8592,5102],"./tr/_lib/formatRelative/index.js":[93999,7,8592],"./tr/_lib/localize/index.js":[8830,7,8592,7157],"./tr/_lib/match/index.js":[58828,7,8592,3128],"./tr/index.js":[63131,7,8592,8302],"./ug/_lib/formatDistance/index.js":[69442,7,8592],"./ug/_lib/formatLong/index.js":[36922,7,8592,5002],"./ug/_lib/formatRelative/index.js":[20290,7,8592],"./ug/_lib/localize/index.js":[82490,7,8592,6604],"./ug/_lib/match/index.js":[85282,7,8592,8004],"./ug/index.js":[60182,7,8592,6934],"./uk/_lib/formatDistance/index.js":[10017,7,8592],"./uk/_lib/formatLong/index.js":[26136,7,8592,8806],"./uk/_lib/formatRelative/index.js":[88271,7,4,8592],"./uk/_lib/localize/index.js":[10954,7,8592,1193],"./uk/_lib/match/index.js":[71680,7,8592,6954],"./uk/index.js":[12509,7,4,8592,2509],"./uz-Cyrl/_lib/formatDistance/index.js":[67778,7,8592],"./uz-Cyrl/_lib/formatLong/index.js":[64095,7,8592,160],"./uz-Cyrl/_lib/formatRelative/index.js":[83734,7,8592],"./uz-Cyrl/_lib/localize/index.js":[17670,7,8592,2654],"./uz-Cyrl/_lib/match/index.js":[75798,7,8592,1360],"./uz-Cyrl/index.js":[14527,7,8592,8932],"./uz/_lib/formatDistance/index.js":[27197,7,8592],"./uz/_lib/formatLong/index.js":[27810,7,8592,4328],"./uz/_lib/formatRelative/index.js":[22175,7,8592],"./uz/_lib/localize/index.js":[6881,7,8592,6425],"./uz/_lib/match/index.js":[19263,7,8592,2880],"./uz/index.js":[44203,7,8592,6896],"./vi/_lib/formatDistance/index.js":[61664,7,8592],"./vi/_lib/formatLong/index.js":[42296,7,8592,3405],"./vi/_lib/formatRelative/index.js":[55191,7,8592],"./vi/_lib/localize/index.js":[67431,7,8592,5843],"./vi/_lib/match/index.js":[98442,7,8592,3319],"./vi/index.js":[48875,7,8592,6677],"./zh-CN/_lib/formatDistance/index.js":[33437,7,8592],"./zh-CN/_lib/formatLong/index.js":[91583,7,8592,485],"./zh-CN/_lib/formatRelative/index.js":[95629,7,8592,5441],"./zh-CN/_lib/localize/index.js":[17939,7,8592,9169],"./zh-CN/_lib/match/index.js":[71362,7,8592,7103],"./zh-CN/index.js":[86335,7,8592,8664],"./zh-HK/_lib/formatDistance/index.js":[37348,7,8592],"./zh-HK/_lib/formatLong/index.js":[60924,7,8592,3215],"./zh-HK/_lib/formatRelative/index.js":[22164,7,8592],"./zh-HK/_lib/localize/index.js":[39264,7,8592,1780],"./zh-HK/_lib/match/index.js":[50358,7,8592,5641],"./zh-HK/index.js":[59277,7,8592,2336],"./zh-TW/_lib/formatDistance/index.js":[31613,7,8592],"./zh-TW/_lib/formatLong/index.js":[1239,7,8592,248],"./zh-TW/_lib/formatRelative/index.js":[13240,7,8592],"./zh-TW/_lib/localize/index.js":[29850,7,8592,9886],"./zh-TW/_lib/match/index.js":[38819,7,8592,8041],"./zh-TW/index.js":[74565,7,8592,8978]};function Wt(Fe){if(!En.o(tt,Fe))return Promise.resolve().then(()=>{var Gt=new Error("Cannot find module '"+Fe+"'");throw Gt.code="MODULE_NOT_FOUND",Gt});var vt=tt[Fe],qn=vt[0];return Promise.all(vt.slice(2).map(En.e)).then(()=>En.t(qn,16|vt[1]))}Wt.keys=()=>Object.keys(tt),Wt.id=71213,fi.exports=Wt}},fi=>{fi(fi.s=26186)}]);
\ No newline at end of file
+var runtime=function(c){"use strict";var l,M=Object.prototype,p=M.hasOwnProperty,w=Object.defineProperty||function(r,t,e){r[t]=e.value},O="function"==typeof Symbol?Symbol:{},L=O.iterator||"@@iterator",z=O.asyncIterator||"@@asyncIterator",_=O.toStringTag||"@@toStringTag";function v(r,t,e){return Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}),r[t]}try{v({},"")}catch{v=function(t,e,o){return t[e]=o}}function R(r,t,e,o){var i=Object.create((t&&t.prototype instanceof j?t:j).prototype),a=new I(o||[]);return w(i,"_invoke",{value:H(r,e,a)}),i}function k(r,t,e){try{return{type:"normal",arg:r.call(t,e)}}catch(o){return{type:"throw",arg:o}}}c.wrap=R;var Y="suspendedStart",q="executing",b="completed",s={};function j(){}function S(){}function d(){}var N={};v(N,L,function(){return this});var T=Object.getPrototypeOf,E=T&&T(T(A([])));E&&E!==M&&p.call(E,L)&&(N=E);var g=d.prototype=j.prototype=Object.create(N);function D(r){["next","throw","return"].forEach(function(t){v(r,t,function(e){return this._invoke(t,e)})})}function G(r,t){function e(i,a,u,h){var f=k(r[i],r,a);if("throw"!==f.type){var C=f.arg,m=C.value;return m&&"object"==typeof m&&p.call(m,"__await")?t.resolve(m.__await).then(function(y){e("next",y,u,h)},function(y){e("throw",y,u,h)}):t.resolve(m).then(function(y){C.value=y,u(C)},function(y){return e("throw",y,u,h)})}h(f.arg)}var o;w(this,"_invoke",{value:function n(i,a){function u(){return new t(function(h,f){e(i,a,h,f)})}return o=o?o.then(u,u):u()}})}function H(r,t,e){var o=Y;return function(i,a){if(o===q)throw new Error("Generator is already running");if(o===b){if("throw"===i)throw a;return $()}for(e.method=i,e.arg=a;;){var u=e.delegate;if(u){var h=W(u,e);if(h){if(h===s)continue;return h}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(o===Y)throw o=b,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);o=q;var f=k(r,t,e);if("normal"===f.type){if(o=e.done?b:"suspendedYield",f.arg===s)continue;return{value:f.arg,done:e.done}}"throw"===f.type&&(o=b,e.method="throw",e.arg=f.arg)}}}function W(r,t){var e=t.method,o=r.iterator[e];if(o===l)return t.delegate=null,"throw"===e&&r.iterator.return&&(t.method="return",t.arg=l,W(r,t),"throw"===t.method)||"return"!==e&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+e+"' method")),s;var n=k(o,r.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,s;var i=n.arg;return i?i.done?(t[r.resultName]=i.value,t.next=r.nextLoc,"return"!==t.method&&(t.method="next",t.arg=l),t.delegate=null,s):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,s)}function J(r){var t={tryLoc:r[0]};1 in r&&(t.catchLoc=r[1]),2 in r&&(t.finallyLoc=r[2],t.afterLoc=r[3]),this.tryEntries.push(t)}function P(r){var t=r.completion||{};t.type="normal",delete t.arg,r.completion=t}function I(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(J,this),this.reset(!0)}function A(r){if(r){var t=r[L];if(t)return t.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var e=-1,o=function n(){for(;++e=0;--o){var n=this.tryEntries[o],i=n.completion;if("root"===n.tryLoc)return e("end");if(n.tryLoc<=this.prev){var a=p.call(n,"catchLoc"),u=p.call(n,"finallyLoc");if(a&&u){if(this.prev=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&p.call(o,"finallyLoc")&&this.prev=0;--t){var e=this.tryEntries[t];if(e.finallyLoc===r)return this.complete(e.completion,e.afterLoc),P(e),s}},catch:function(r){for(var t=this.tryEntries.length-1;t>=0;--t){var e=this.tryEntries[t];if(e.tryLoc===r){var o=e.completion;if("throw"===o.type){var n=o.arg;P(e)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(r,t,e){return this.delegate={iterator:A(r),resultName:t,nextLoc:e},"next"===this.method&&(this.arg=l),s}},c}("object"==typeof module?module.exports:{});try{regeneratorRuntime=runtime}catch{"object"==typeof globalThis?globalThis.regeneratorRuntime=runtime:Function("r","regeneratorRuntime = r")(runtime)}(()=>{"use strict";var e,m={},_={};function r(e){var i=_[e];if(void 0!==i)return i.exports;var t=_[e]={exports:{}};return m[e](t,t.exports,r),t.exports}r.m=m,e=[],r.O=(i,t,a,f)=>{if(!t){var n=1/0;for(o=0;o=f)&&Object.keys(r.O).every(b=>r.O[b](t[u]))?t.splice(u--,1):(s=!1,f0&&e[o-1][2]>f;o--)e[o]=e[o-1];e[o]=[t,a,f]},(()=>{var i,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__;r.t=function(t,a){if(1&a&&(t=this(t)),8&a||"object"==typeof t&&t&&(4&a&&t.__esModule||16&a&&"function"==typeof t.then))return t;var f=Object.create(null);r.r(f);var o={};i=i||[null,e({}),e([]),e(e)];for(var n=2&a&&t;"object"==typeof n&&!~i.indexOf(n);n=e(n))Object.getOwnPropertyNames(n).forEach(s=>o[s]=()=>t[s]);return o.default=()=>t,r.d(f,o),f}})(),r.d=(e,i)=>{for(var t in i)r.o(i,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:i[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((i,t)=>(r.f[t](e,i),i),[])),r.u=e=>(8592===e?"common":e)+".js",r.miniCssF=e=>{},r.o=(e,i)=>Object.prototype.hasOwnProperty.call(e,i),(()=>{var e={},i="contenttype-fields-builder:";r.l=(t,a,f,o)=>{if(e[t])e[t].push(a);else{var n,s;if(void 0!==f)for(var u=document.getElementsByTagName("script"),l=0;l{n.onerror=n.onload=null,clearTimeout(p);var y=e[t];if(delete e[t],n.parentNode&&n.parentNode.removeChild(n),y&&y.forEach(g=>g(b)),v)return v(b)},p=setTimeout(c.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=c.bind(null,n.onerror),n.onload=c.bind(null,n.onload),s&&document.head.appendChild(n)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:i=>i},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={3666:0};r.f.j=(a,f)=>{var o=r.o(e,a)?e[a]:void 0;if(0!==o)if(o)f.push(o[2]);else if(3666!=a){var n=new Promise((d,c)=>o=e[a]=[d,c]);f.push(o[2]=n);var s=r.p+r.u(a),u=new Error;r.l(s,d=>{if(r.o(e,a)&&(0!==(o=e[a])&&(e[a]=void 0),o)){var c=d&&("load"===d.type?"missing":d.type),p=d&&d.target&&d.target.src;u.message="Loading chunk "+a+" failed.\n("+c+": "+p+")",u.name="ChunkLoadError",u.type=c,u.request=p,o[1](u)}},"chunk-"+a,a)}else e[a]=0},r.O.j=a=>0===e[a];var i=(a,f)=>{var u,l,[o,n,s]=f,d=0;if(o.some(p=>0!==e[p])){for(u in n)r.o(n,u)&&(r.m[u]=n[u]);if(s)var c=s(r)}for(a&&a(f);d{!function(e){const n=e.performance;function i(I){n&&n.mark&&n.mark(I)}function r(I,_){n&&n.measure&&n.measure(I,_)}i("Zone");const c=e.__Zone_symbol_prefix||"__zone_symbol__";function u(I){return c+I}const f=!0===e[u("forceDuplicateZoneCheck")];if(e.Zone){if(f||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let p=(()=>{class I{constructor(t,o){this._parent=t,this._name=o?o.name||"unnamed":"",this._properties=o&&o.properties||{},this._zoneDelegate=new T(this,this._parent&&this._parent._zoneDelegate,o)}static assertZonePatched(){if(e.Promise!==K.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 t=I.current;for(;t.parent;)t=t.parent;return t}static get current(){return G.zone}static get currentTask(){return te}static __load_patch(t,o,y=!1){if(K.hasOwnProperty(t)){if(!y&&f)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const P="Zone:"+t;i(P),K[t]=o(e,I,le),r(P,P)}}get parent(){return this._parent}get name(){return this._name}get(t){const o=this.getZoneWith(t);if(o)return o._properties[t]}getZoneWith(t){let o=this;for(;o;){if(o._properties.hasOwnProperty(t))return o;o=o._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,o){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const y=this._zoneDelegate.intercept(this,t,o),P=this;return function(){return P.runGuarded(y,this,arguments,o)}}run(t,o,y,P){G={parent:G,zone:this};try{return this._zoneDelegate.invoke(this,t,o,y,P)}finally{G=G.parent}}runGuarded(t,o=null,y,P){G={parent:G,zone:this};try{try{return this._zoneDelegate.invoke(this,t,o,y,P)}catch(J){if(this._zoneDelegate.handleError(this,J))throw J}}finally{G=G.parent}}runTask(t,o,y){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||z).name+"; Execution: "+this.name+")");if(t.state===H&&(t.type===R||t.type===M))return;const P=t.state!=X;P&&t._transitionTo(X,Z),t.runCount++;const J=te;te=t,G={parent:G,zone:this};try{t.type==M&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,o,y)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{t.state!==H&&t.state!==Y&&(t.type==R||t.data&&t.data.isPeriodic?P&&t._transitionTo(Z,X):(t.runCount=0,this._updateTaskCount(t,-1),P&&t._transitionTo(H,X,H))),G=G.parent,te=J}}scheduleTask(t){if(t.zone&&t.zone!==this){let y=this;for(;y;){if(y===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);y=y.parent}}t._transitionTo(W,H);const o=[];t._zoneDelegates=o,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(y){throw t._transitionTo(Y,W,H),this._zoneDelegate.handleError(this,y),y}return t._zoneDelegates===o&&this._updateTaskCount(t,1),t.state==W&&t._transitionTo(Z,W),t}scheduleMicroTask(t,o,y,P){return this.scheduleTask(new m(v,t,o,y,P,void 0))}scheduleMacroTask(t,o,y,P,J){return this.scheduleTask(new m(M,t,o,y,P,J))}scheduleEventTask(t,o,y,P,J){return this.scheduleTask(new m(R,t,o,y,P,J))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||z).name+"; Execution: "+this.name+")");t._transitionTo(A,Z,X);try{this._zoneDelegate.cancelTask(this,t)}catch(o){throw t._transitionTo(Y,A),this._zoneDelegate.handleError(this,o),o}return this._updateTaskCount(t,-1),t._transitionTo(H,A),t.runCount=0,t}_updateTaskCount(t,o){const y=t._zoneDelegates;-1==o&&(t._zoneDelegates=null);for(let P=0;PI.hasTask(t,o),onScheduleTask:(I,_,t,o)=>I.scheduleTask(t,o),onInvokeTask:(I,_,t,o,y,P)=>I.invokeTask(t,o,y,P),onCancelTask:(I,_,t,o)=>I.cancelTask(t,o)};class T{constructor(_,t,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=_,this._parentDelegate=t,this._forkZS=o&&(o&&o.onFork?o:t._forkZS),this._forkDlgt=o&&(o.onFork?t:t._forkDlgt),this._forkCurrZone=o&&(o.onFork?this.zone:t._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:t._interceptZS),this._interceptDlgt=o&&(o.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:t._invokeZS),this._invokeDlgt=o&&(o.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:t._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:t._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:t._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:t._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const y=o&&o.onHasTask;(y||t&&t._hasTaskZS)&&(this._hasTaskZS=y?o:g,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=_,o.onScheduleTask||(this._scheduleTaskZS=g,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),o.onInvokeTask||(this._invokeTaskZS=g,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),o.onCancelTask||(this._cancelTaskZS=g,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(_,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,_,t):new p(_,t)}intercept(_,t,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,_,t,o):t}invoke(_,t,o,y,P){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,_,t,o,y,P):t.apply(o,y)}handleError(_,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,_,t)}scheduleTask(_,t){let o=t;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,_,t),o||(o=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=v)throw new Error("Task is missing scheduleFn.");d(t)}return o}invokeTask(_,t,o,y){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,_,t,o,y):t.callback.apply(o,y)}cancelTask(_,t){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,_,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");o=t.cancelFn(t)}return o}hasTask(_,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,_,t)}catch(o){this.handleError(_,o)}}_updateTaskCount(_,t){const o=this._taskCounts,y=o[_],P=o[_]=y+t;if(P<0)throw new Error("More tasks executed then were scheduled.");0!=y&&0!=P||this.hasTask(this.zone,{microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:_})}}class m{constructor(_,t,o,y,P,J){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=_,this.source=t,this.data=y,this.scheduleFn=P,this.cancelFn=J,!o)throw new Error("callback is not defined");this.callback=o;const l=this;this.invoke=_===R&&y&&y.useG?m.invokeTask:function(){return m.invokeTask.call(e,l,this,arguments)}}static invokeTask(_,t,o){_||(_=this),re++;try{return _.runCount++,_.zone.runTask(_,t,o)}finally{1==re&&L(),re--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(H,W)}_transitionTo(_,t,o){if(this._state!==t&&this._state!==o)throw new Error(`${this.type} '${this.source}': can not transition to '${_}', expecting state '${t}'${o?" or '"+o+"'":""}, was '${this._state}'.`);this._state=_,_==H&&(this._zoneDelegates=null)}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}}}const D=u("setTimeout"),S=u("Promise"),O=u("then");let E,F=[],V=!1;function d(I){if(0===re&&0===F.length)if(E||e[S]&&(E=e[S].resolve(0)),E){let _=E[O];_||(_=E.then),_.call(E,L)}else e[D](L,0);I&&F.push(I)}function L(){if(!V){for(V=!0;F.length;){const I=F;F=[];for(let _=0;_G,onUnhandledError:B,microtaskDrainDone:B,scheduleMicroTask:d,showUncaughtError:()=>!p[u("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:B,patchMethod:()=>B,bindArguments:()=>[],patchThen:()=>B,patchMacroTask:()=>B,patchEventPrototype:()=>B,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>B,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>B,wrapWithCurrentZone:()=>B,filterProperties:()=>[],attachOriginToPatched:()=>B,_redefineProperty:()=>B,patchCallbacks:()=>B};let G={parent:null,zone:new p(null,null)},te=null,re=0;function B(){}r("Zone","Zone"),e.Zone=p}(typeof window<"u"&&window||typeof self<"u"&&self||global);const fe=Object.getOwnPropertyDescriptor,be=Object.defineProperty,ye=Object.getPrototypeOf,lt=Object.create,ut=Array.prototype.slice,De="addEventListener",Ze="removeEventListener",Oe=Zone.__symbol__(De),Ie=Zone.__symbol__(Ze),se="true",ie="false",ge=Zone.__symbol__("");function Le(e,n){return Zone.current.wrap(e,n)}function Me(e,n,i,r,c){return Zone.current.scheduleMacroTask(e,n,i,r,c)}const x=Zone.__symbol__,we=typeof window<"u",de=we?window:void 0,$=we&&de||"object"==typeof self&&self||global,ht=[null];function Ae(e,n){for(let i=e.length-1;i>=0;i--)"function"==typeof e[i]&&(e[i]=Le(e[i],n+"_"+i));return e}function Fe(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const Be=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Pe=!("nw"in $)&&typeof $.process<"u"&&"[object process]"==={}.toString.call($.process),He=!Pe&&!Be&&!(!we||!de.HTMLElement),Ue=typeof $.process<"u"&&"[object process]"==={}.toString.call($.process)&&!Be&&!(!we||!de.HTMLElement),Re={},qe=function(e){if(!(e=e||$.event))return;let n=Re[e.type];n||(n=Re[e.type]=x("ON_PROPERTY"+e.type));const i=this||e.target||$,r=i[n];let c;return He&&i===de&&"error"===e.type?(c=r&&r.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===c&&e.preventDefault()):(c=r&&r.apply(this,arguments),null!=c&&!c&&e.preventDefault()),c};function We(e,n,i){let r=fe(e,n);if(!r&&i&&fe(i,n)&&(r={enumerable:!0,configurable:!0}),!r||!r.configurable)return;const c=x("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete r.writable,delete r.value;const u=r.get,f=r.set,p=n.substr(2);let g=Re[p];g||(g=Re[p]=x("ON_PROPERTY"+p)),r.set=function(T){let m=this;!m&&e===$&&(m=$),m&&(m[g]&&m.removeEventListener(p,qe),f&&f.apply(m,ht),"function"==typeof T?(m[g]=T,m.addEventListener(p,qe,!1)):m[g]=null)},r.get=function(){let T=this;if(!T&&e===$&&(T=$),!T)return null;const m=T[g];if(m)return m;if(u){let D=u&&u.call(this);if(D)return r.set.call(this,D),"function"==typeof T.removeAttribute&&T.removeAttribute(n),D}return null},be(e,n,r),e[c]=!0}function Xe(e,n,i){if(n)for(let r=0;rfunction(f,p){const g=i(f,p);return g.cbIdx>=0&&"function"==typeof p[g.cbIdx]?Me(g.name,p[g.cbIdx],g,c):u.apply(f,p)})}function ae(e,n){e[x("OriginalDelegate")]=n}let Ye=!1,je=!1;function mt(){if(Ye)return je;Ye=!0;try{const e=de.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(je=!0)}catch{}return je}Zone.__load_patch("ZoneAwarePromise",(e,n,i)=>{const r=Object.getOwnPropertyDescriptor,c=Object.defineProperty,f=i.symbol,p=[],g=!0===e[f("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],T=f("Promise"),m=f("then");i.onUnhandledError=l=>{if(i.showUncaughtError()){const s=l&&l.rejection;s?console.error("Unhandled Promise rejection:",s instanceof Error?s.message:s,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",s,s instanceof Error?s.stack:void 0):console.error(l)}},i.microtaskDrainDone=()=>{for(;p.length;){const l=p.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(s){O(s)}}};const S=f("unhandledPromiseRejectionHandler");function O(l){i.onUnhandledError(l);try{const s=n[S];"function"==typeof s&&s.call(this,l)}catch{}}function F(l){return l&&l.then}function V(l){return l}function E(l){return t.reject(l)}const d=f("state"),L=f("value"),z=f("finally"),H=f("parentPromiseValue"),W=f("parentPromiseState"),X=null,A=!0,Y=!1;function M(l,s){return a=>{try{G(l,s,a)}catch(h){G(l,!1,h)}}}const le=f("currentTaskTrace");function G(l,s,a){const h=function(){let l=!1;return function(a){return function(){l||(l=!0,a.apply(null,arguments))}}}();if(l===a)throw new TypeError("Promise resolved with itself");if(l[d]===X){let w=null;try{("object"==typeof a||"function"==typeof a)&&(w=a&&a.then)}catch(N){return h(()=>{G(l,!1,N)})(),l}if(s!==Y&&a instanceof t&&a.hasOwnProperty(d)&&a.hasOwnProperty(L)&&a[d]!==X)re(a),G(l,a[d],a[L]);else if(s!==Y&&"function"==typeof w)try{w.call(a,h(M(l,s)),h(M(l,!1)))}catch(N){h(()=>{G(l,!1,N)})()}else{l[d]=s;const N=l[L];if(l[L]=a,l[z]===z&&s===A&&(l[d]=l[W],l[L]=l[H]),s===Y&&a instanceof Error){const k=n.currentTask&&n.currentTask.data&&n.currentTask.data.__creationTrace__;k&&c(a,le,{configurable:!0,enumerable:!1,writable:!0,value:k})}for(let k=0;k{try{const b=l[L],C=!!a&&z===a[z];C&&(a[H]=b,a[W]=N);const j=s.run(k,void 0,C&&k!==E&&k!==V?[]:[b]);G(a,!0,j)}catch(b){G(a,!1,b)}},a)}const _=function(){};class t{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(s){return G(new this(null),A,s)}static reject(s){return G(new this(null),Y,s)}static race(s){let a,h,w=new this((b,C)=>{a=b,h=C});function N(b){a(b)}function k(b){h(b)}for(let b of s)F(b)||(b=this.resolve(b)),b.then(N,k);return w}static all(s){return t.allWithCallback(s)}static allSettled(s){return(this&&this.prototype instanceof t?this:t).allWithCallback(s,{thenCallback:h=>({status:"fulfilled",value:h}),errorCallback:h=>({status:"rejected",reason:h})})}static allWithCallback(s,a){let h,w,N=new this((j,U)=>{h=j,w=U}),k=2,b=0;const C=[];for(let j of s){F(j)||(j=this.resolve(j));const U=b;try{j.then(Q=>{C[U]=a?a.thenCallback(Q):Q,k--,0===k&&h(C)},Q=>{a?(C[U]=a.errorCallback(Q),k--,0===k&&h(C)):w(Q)})}catch(Q){w(Q)}k++,b++}return k-=2,0===k&&h(C),N}constructor(s){const a=this;if(!(a instanceof t))throw new Error("Must be an instanceof Promise.");a[d]=X,a[L]=[];try{s&&s(M(a,A),M(a,Y))}catch(h){G(a,!1,h)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(s,a){let h=this.constructor[Symbol.species];(!h||"function"!=typeof h)&&(h=this.constructor||t);const w=new h(_),N=n.current;return this[d]==X?this[L].push(N,w,s,a):B(this,N,w,s,a),w}catch(s){return this.then(null,s)}finally(s){let a=this.constructor[Symbol.species];(!a||"function"!=typeof a)&&(a=t);const h=new a(_);h[z]=z;const w=n.current;return this[d]==X?this[L].push(w,h,s,s):B(this,w,h,s,s),h}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;const o=e[T]=e.Promise;e.Promise=t;const y=f("thenPatched");function P(l){const s=l.prototype,a=r(s,"then");if(a&&(!1===a.writable||!a.configurable))return;const h=s.then;s[m]=h,l.prototype.then=function(w,N){return new t((b,C)=>{h.call(this,b,C)}).then(w,N)},l[y]=!0}return i.patchThen=P,o&&(P(o),ce(e,"fetch",l=>function J(l){return function(s,a){let h=l.apply(s,a);if(h instanceof t)return h;let w=h.constructor;return w[y]||P(w),h}}(l))),Promise[n.__symbol__("uncaughtPromiseErrors")]=p,t}),Zone.__load_patch("toString",e=>{const n=Function.prototype.toString,i=x("OriginalDelegate"),r=x("Promise"),c=x("Error"),u=function(){if("function"==typeof this){const T=this[i];if(T)return"function"==typeof T?n.call(T):Object.prototype.toString.call(T);if(this===Promise){const m=e[r];if(m)return n.call(m)}if(this===Error){const m=e[c];if(m)return n.call(m)}}return n.call(this)};u[i]=n,Function.prototype.toString=u;const f=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":f.call(this)}});let pe=!1;if(typeof window<"u")try{const e=Object.defineProperty({},"passive",{get:function(){pe=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{pe=!1}const Et={useG:!0},ee={},$e={},Je=new RegExp("^"+ge+"(\\w+)(true|false)$"),xe=x("propagationStopped");function Ke(e,n){const i=(n?n(e):e)+ie,r=(n?n(e):e)+se,c=ge+i,u=ge+r;ee[e]={},ee[e][ie]=c,ee[e][se]=u}function Tt(e,n,i){const r=i&&i.add||De,c=i&&i.rm||Ze,u=i&&i.listeners||"eventListeners",f=i&&i.rmAll||"removeAllListeners",p=x(r),g="."+r+":",T="prependListener",m="."+T+":",D=function(E,d,L){if(E.isRemoved)return;const z=E.callback;"object"==typeof z&&z.handleEvent&&(E.callback=W=>z.handleEvent(W),E.originalDelegate=z),E.invoke(E,d,[L]);const H=E.options;H&&"object"==typeof H&&H.once&&d[c].call(d,L.type,E.originalDelegate?E.originalDelegate:E.callback,H)},S=function(E){if(!(E=E||e.event))return;const d=this||E.target||e,L=d[ee[E.type][ie]];if(L)if(1===L.length)D(L[0],d,E);else{const z=L.slice();for(let H=0;Hfunction(c,u){c[xe]=!0,r&&r.apply(c,u)})}function gt(e,n,i,r,c){const u=Zone.__symbol__(r);if(n[u])return;const f=n[u]=n[r];n[r]=function(p,g,T){return g&&g.prototype&&c.forEach(function(m){const D=`${i}.${r}::`+m,S=g.prototype;if(S.hasOwnProperty(m)){const O=e.ObjectGetOwnPropertyDescriptor(S,m);O&&O.value?(O.value=e.wrapWithCurrentZone(O.value,D),e._redefineProperty(g.prototype,m,O)):S[m]&&(S[m]=e.wrapWithCurrentZone(S[m],D))}else S[m]&&(S[m]=e.wrapWithCurrentZone(S[m],D))}),f.call(n,p,g,T)},e.attachOriginToPatched(n[r],f)}const Ve=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],wt=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],et=["load"],tt=["blur","error","focus","load","resize","scroll","messageerror"],St=["bounce","finish","start"],nt=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],_e=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],Dt=["close","error","open","message"],Zt=["error","message"],me=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],Ve,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function rt(e,n,i){if(!i||0===i.length)return n;const r=i.filter(u=>u.target===e);if(!r||0===r.length)return n;const c=r[0].ignoreProperties;return n.filter(u=>-1===c.indexOf(u))}function q(e,n,i,r){e&&Xe(e,rt(e,n,i),r)}Zone.__load_patch("util",(e,n,i)=>{i.patchOnProperties=Xe,i.patchMethod=ce,i.bindArguments=Ae,i.patchMacroTask=pt;const r=n.__symbol__("BLACK_LISTED_EVENTS"),c=n.__symbol__("UNPATCHED_EVENTS");e[c]&&(e[r]=e[c]),e[r]&&(n[r]=n[c]=e[r]),i.patchEventPrototype=yt,i.patchEventTarget=Tt,i.isIEOrEdge=mt,i.ObjectDefineProperty=be,i.ObjectGetOwnPropertyDescriptor=fe,i.ObjectCreate=lt,i.ArraySlice=ut,i.patchClass=ke,i.wrapWithCurrentZone=Le,i.filterProperties=rt,i.attachOriginToPatched=ae,i._redefineProperty=Object.defineProperty,i.patchCallbacks=gt,i.getGlobalObjects=()=>({globalSources:$e,zoneSymbolEventNames:ee,eventNames:me,isBrowser:He,isMix:Ue,isNode:Pe,TRUE_STR:se,FALSE_STR:ie,ZONE_SYMBOL_PREFIX:ge,ADD_EVENT_LISTENER_STR:De,REMOVE_EVENT_LISTENER_STR:Ze})});const Ne=x("zoneTask");function Ee(e,n,i,r){let c=null,u=null;i+=r;const f={};function p(T){const m=T.data;return m.args[0]=function(){return T.invoke.apply(this,arguments)},m.handleId=c.apply(e,m.args),T}function g(T){return u.call(e,T.data.handleId)}c=ce(e,n+=r,T=>function(m,D){if("function"==typeof D[0]){const S={isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?D[1]||0:void 0,args:D},O=D[0];D[0]=function(){try{return O.apply(this,arguments)}finally{S.isPeriodic||("number"==typeof S.handleId?delete f[S.handleId]:S.handleId&&(S.handleId[Ne]=null))}};const F=Me(n,D[0],S,p,g);if(!F)return F;const V=F.data.handleId;return"number"==typeof V?f[V]=F:V&&(V[Ne]=F),V&&V.ref&&V.unref&&"function"==typeof V.ref&&"function"==typeof V.unref&&(F.ref=V.ref.bind(V),F.unref=V.unref.bind(V)),"number"==typeof V||V?V:F}return T.apply(e,D)}),u=ce(e,i,T=>function(m,D){const S=D[0];let O;"number"==typeof S?O=f[S]:(O=S&&S[Ne],O||(O=S)),O&&"string"==typeof O.type?"notScheduled"!==O.state&&(O.cancelFn&&O.data.isPeriodic||0===O.runCount)&&("number"==typeof S?delete f[S]:S&&(S[Ne]=null),O.zone.cancelTask(O)):T.apply(e,D)})}Zone.__load_patch("legacy",e=>{const n=e[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("queueMicrotask",(e,n,i)=>{i.patchMethod(e,"queueMicrotask",r=>function(c,u){n.current.scheduleMicroTask("queueMicrotask",u[0])})}),Zone.__load_patch("timers",e=>{const n="set",i="clear";Ee(e,n,i,"Timeout"),Ee(e,n,i,"Interval"),Ee(e,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{Ee(e,"request","cancel","AnimationFrame"),Ee(e,"mozRequest","mozCancel","AnimationFrame"),Ee(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,n)=>{const i=["alert","prompt","confirm"];for(let r=0;rfunction(g,T){return n.current.run(u,e,T,p)})}),Zone.__load_patch("EventTarget",(e,n,i)=>{(function Mt(e,n){n.patchEventPrototype(e,n)})(e,i),function Lt(e,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:r,TRUE_STR:c,FALSE_STR:u,ZONE_SYMBOL_PREFIX:f}=n.getGlobalObjects();for(let g=0;g{ke("MutationObserver"),ke("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,n,i)=>{ke("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,n,i)=>{ke("FileReader")}),Zone.__load_patch("on_property",(e,n,i)=>{!function Ot(e,n){if(Pe&&!Ue||Zone[e.symbol("patchEvents")])return;const i=typeof WebSocket<"u",r=n.__Zone_ignore_on_properties;if(He){const f=window,p=function _t(){try{const e=de.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:f,ignoreProperties:["error"]}]:[];q(f,me.concat(["messageerror"]),r&&r.concat(p),ye(f)),q(Document.prototype,me,r),typeof f.SVGElement<"u"&&q(f.SVGElement.prototype,me,r),q(Element.prototype,me,r),q(HTMLElement.prototype,me,r),q(HTMLMediaElement.prototype,wt,r),q(HTMLFrameSetElement.prototype,Ve.concat(tt),r),q(HTMLBodyElement.prototype,Ve.concat(tt),r),q(HTMLFrameElement.prototype,et,r),q(HTMLIFrameElement.prototype,et,r);const g=f.HTMLMarqueeElement;g&&q(g.prototype,St,r);const T=f.Worker;T&&q(T.prototype,Zt,r)}const c=n.XMLHttpRequest;c&&q(c.prototype,nt,r);const u=n.XMLHttpRequestEventTarget;u&&q(u&&u.prototype,nt,r),typeof IDBIndex<"u"&&(q(IDBIndex.prototype,_e,r),q(IDBRequest.prototype,_e,r),q(IDBOpenDBRequest.prototype,_e,r),q(IDBDatabase.prototype,_e,r),q(IDBTransaction.prototype,_e,r),q(IDBCursor.prototype,_e,r)),i&&q(WebSocket.prototype,Dt,r)}(i,e)}),Zone.__load_patch("customElements",(e,n,i)=>{!function It(e,n){const{isBrowser:i,isMix:r}=n.getGlobalObjects();(i||r)&&e.customElements&&"customElements"in e&&n.patchCallbacks(n,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,i)}),Zone.__load_patch("XHR",(e,n)=>{!function g(T){const m=T.XMLHttpRequest;if(!m)return;const D=m.prototype;let O=D[Oe],F=D[Ie];if(!O){const v=T.XMLHttpRequestEventTarget;if(v){const M=v.prototype;O=M[Oe],F=M[Ie]}}const V="readystatechange",E="scheduled";function d(v){const M=v.data,R=M.target;R[u]=!1,R[p]=!1;const K=R[c];O||(O=R[Oe],F=R[Ie]),K&&F.call(R,V,K);const le=R[c]=()=>{if(R.readyState===R.DONE)if(!M.aborted&&R[u]&&v.state===E){const te=R[n.__symbol__("loadfalse")];if(0!==R.status&&te&&te.length>0){const re=v.invoke;v.invoke=function(){const B=R[n.__symbol__("loadfalse")];for(let I=0;Ifunction(v,M){return v[r]=0==M[2],v[f]=M[1],H.apply(v,M)}),Z=x("fetchTaskAborting"),X=x("fetchTaskScheduling"),A=ce(D,"send",()=>function(v,M){if(!0===n.current[X]||v[r])return A.apply(v,M);{const R={target:v,url:v[f],isPeriodic:!1,args:M,aborted:!1},K=Me("XMLHttpRequest.send",L,R,d,z);v&&!0===v[p]&&!R.aborted&&K.state===E&&K.invoke()}}),Y=ce(D,"abort",()=>function(v,M){const R=function S(v){return v[i]}(v);if(R&&"string"==typeof R.type){if(null==R.cancelFn||R.data&&R.data.aborted)return;R.zone.cancelTask(R)}else if(!0===n.current[Z])return Y.apply(v,M)})}(e);const i=x("xhrTask"),r=x("xhrSync"),c=x("xhrListener"),u=x("xhrScheduled"),f=x("xhrURL"),p=x("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function dt(e,n){const i=e.constructor.name;for(let r=0;r{const g=function(){return p.apply(this,Ae(arguments,i+"."+c))};return ae(g,p),g})(u)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function i(r){return function(c){Qe(e,r).forEach(f=>{const p=e.PromiseRejectionEvent;if(p){const g=new p(r,{promise:c.promise,reason:c.rejection});f.invoke(g)}})}}e.PromiseRejectionEvent&&(n[x("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[x("rejectionHandledHandler")]=i("rejectionhandled"))})}},Se=>{Se(Se.s=88583)}]);(self.webpackChunkcontenttype_fields_builder=self.webpackChunkcontenttype_fields_builder||[]).push([[179],{44579:(mi,rs,In)=>{"use strict";function rt(n){return"function"==typeof n}let qt=!1;const Le={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else qt&&console.log("RxJS: Back to a better error behavior. Thank you. <3");qt=n},get useDeprecatedSynchronousErrorHandling(){return qt}};function bt(n){setTimeout(()=>{throw n},0)}const Kn={closed:!0,next(n){},error(n){if(Le.useDeprecatedSynchronousErrorHandling)throw n;bt(n)},complete(){}},Kt=Array.isArray||(n=>n&&"number"==typeof n.length);function Tl(n){return null!==n&&"object"==typeof n}const os=(()=>{function n(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return n.prototype=Object.create(Error.prototype),n})();class _e{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof _e)e.remove(this);else if(null!==e)for(let s=0;st.concat(e instanceof os?e.errors:e),[])}_e.EMPTY=((n=new _e).closed=!0,n);const ss="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class Se extends _e{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Kn;break;case 1:if(!t){this.destination=Kn;break}if("object"==typeof t){t instanceof Se?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new Gf(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new Gf(this,t,e,i)}}[ss](){return this}static create(t,e,i){const r=new Se(t,e,i);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class Gf extends Se{constructor(t,e,i,r){super(),this._parentSubscriber=t;let o,s=this;rt(e)?o=e:e&&(o=e.next,i=e.error,r=e.complete,e!==Kn&&(s=Object.create(e),rt(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=i,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;Le.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=Le;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):bt(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;bt(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);Le.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),Le.useDeprecatedSynchronousErrorHandling)throw i;bt(i)}}__tryOrSetError(t,e,i){if(!Le.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return Le.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(bt(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const $r="function"==typeof Symbol&&Symbol.observable||"@@observable";function qf(n){return n}let ve=(()=>{class n{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:o}=this,s=function OE(n,t,e){if(n){if(n instanceof Se)return n;if(n[ss])return n[ss]()}return n||t||e?new Se(n,t,e):new Se(Kn)}(e,i,r);if(s.add(o?o.call(s,this.source):this.source||Le.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),Le.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){Le.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function PE(n){for(;n;){const{closed:t,destination:e,isStopped:i}=n;if(t||i)return!1;n=e&&e instanceof Se?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=Qf(i))((r,o)=>{let s;s=this.subscribe(a=>{try{e(a)}catch(l){o(l),s&&s.unsubscribe()}},o,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[$r](){return this}pipe(...e){return 0===e.length?this:function Kf(n){return 0===n.length?qf:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}(e)(this)}toPromise(e){return new(e=Qf(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return n.create=t=>new n(t),n})();function Qf(n){if(n||(n=Le.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const gi=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class Yf extends _e{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class Zf extends Se{constructor(t){super(t),this.destination=t}}let Tn=(()=>{class n extends ve{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[ss](){return new Zf(this)}lift(e){const i=new Xf(this,this);return i.operator=e,i}next(e){if(this.closed)throw new gi;if(!this.isStopped){const{observers:i}=this,r=i.length,o=i.slice();for(let s=0;snew Xf(t,e),n})();class Xf extends Tn{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):_e.EMPTY}}function Ml(n){return n&&"function"==typeof n.schedule}function mt(n,t){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new NE(n,t))}}class NE{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new RE(t,this.project,this.thisArg))}}class RE extends Se{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const Jf=n=>t=>{for(let e=0,i=n.length;en&&"number"==typeof n.length&&"function"!=typeof n;function th(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Al=n=>{if(n&&"function"==typeof n[$r])return(n=>t=>{const e=n[$r]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)})(n);if(eh(n))return Jf(n);if(th(n))return(n=>t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,bt),t))(n);if(n&&"function"==typeof n[as])return(n=>t=>{const e=n[as]();for(;;){let i;try{i=e.next()}catch(r){return t.error(r),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof e.return&&t.add(()=>{e.return&&e.return()}),t})(n);{const e=`You provided ${Tl(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function xl(n,t){return new ve(e=>{const i=new _e;let r=0;return i.add(t.schedule(function(){r!==n.length?(e.next(n[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function nh(n,t){if(null!=n){if(function UE(n){return n&&"function"==typeof n[$r]}(n))return function VE(n,t){return new ve(e=>{const i=new _e;return i.add(t.schedule(()=>{const r=n[$r]();i.add(r.subscribe({next(o){i.add(t.schedule(()=>e.next(o)))},error(o){i.add(t.schedule(()=>e.error(o)))},complete(){i.add(t.schedule(()=>e.complete()))}}))})),i})}(n,t);if(th(n))return function BE(n,t){return new ve(e=>{const i=new _e;return i.add(t.schedule(()=>n.then(r=>{i.add(t.schedule(()=>{e.next(r),i.add(t.schedule(()=>e.complete()))}))},r=>{i.add(t.schedule(()=>e.error(r)))}))),i})}(n,t);if(eh(n))return xl(n,t);if(function $E(n){return n&&"function"==typeof n[as]}(n)||"string"==typeof n)return function HE(n,t){if(!n)throw new Error("Iterable cannot be null");return new ve(e=>{const i=new _e;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(()=>{r=n[as](),i.add(t.schedule(function(){if(e.closed)return;let o,s;try{const a=r.next();o=a.value,s=a.done}catch(a){return void e.error(a)}s?e.complete():(e.next(o),this.schedule())}))})),i})}(n,t)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}function yi(n,t){return t?nh(n,t):n instanceof ve?n:new ve(Al(n))}class ls extends Se{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class cs extends Se{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function us(n,t){if(t.closed)return;if(n instanceof ve)return n.subscribe(t);let e;try{e=Al(n)(t)}catch(i){t.error(i)}return e}function Pl(n,t,e=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe(Pl((r,o)=>yi(n(r,o)).pipe(mt((s,a)=>t(r,s,o,a))),e)):("number"==typeof t&&(e=t),i=>i.lift(new zE(n,e)))}class zE{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new WE(t,this.project,this.concurrent))}}class WE extends cs{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Ol(n,t){return t?xl(n,t):new ve(Jf(n))}function ih(...n){let t=Number.POSITIVE_INFINITY,e=null,i=n[n.length-1];return Ml(i)?(e=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(t=n.pop())):"number"==typeof i&&(t=n.pop()),null===e&&1===n.length&&n[0]instanceof ve?n[0]:function GE(n=Number.POSITIVE_INFINITY){return Pl(qf,n)}(t)(Ol(n,e))}function rh(){return function(t){return t.lift(new qE(t))}}class qE{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const r=new KE(t,i),o=e.subscribe(r);return r.closed||(r.connection=i.connect()),o}}class KE extends Se{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=t._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class QE extends ve{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new _e,t.add(this.source.subscribe(new ZE(this.getSubject(),this))),t.closed&&(this._connection=null,t=_e.EMPTY)),t}refCount(){return rh()(this)}}const YE=(()=>{const n=QE.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class ZE extends Zf{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}class eS{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:i}=this,r=this.subjectFactory(),o=i(r).subscribe(t);return o.add(e.subscribe(r)),o}}function tS(){return new Tn}function ue(n){for(let t in n)if(n[t]===ue)return t;throw Error("Could not find renamed property on target object.")}function Nl(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function fe(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(fe).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function Rl(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const iS=ue({__forward_ref__:ue});function ce(n){return n.__forward_ref__=ce,n.toString=function(){return fe(this())},n}function N(n){return Fl(n)?n():n}function Fl(n){return"function"==typeof n&&n.hasOwnProperty(iS)&&n.__forward_ref__===ce}function Ll(n){return n&&!!n.\u0275providers}const oh="https://g.co/ng/security#xss";class D extends Error{constructor(t,e){super(function ds(n,t){return`NG0${Math.abs(n)}${t?": "+t.trim():""}`}(t,e)),this.code=t}}function B(n){return"string"==typeof n?n:null==n?"":String(n)}function fs(n,t){throw new D(-201,!1)}function Nt(n,t){null==n&&function oe(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function $(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function xe(n){return{providers:n.providers||[],imports:n.imports||[]}}function hs(n){return sh(n,ps)||sh(n,lh)}function sh(n,t){return n.hasOwnProperty(t)?n[t]:null}function ah(n){return n&&(n.hasOwnProperty(kl)||n.hasOwnProperty(dS))?n[kl]:null}const ps=ue({\u0275prov:ue}),kl=ue({\u0275inj:ue}),lh=ue({ngInjectableDef:ue}),dS=ue({ngInjectorDef:ue});var V=(()=>((V=V||{})[V.Default=0]="Default",V[V.Host=1]="Host",V[V.Self=2]="Self",V[V.SkipSelf=4]="SkipSelf",V[V.Optional=8]="Optional",V))();let jl;function Rt(n){const t=jl;return jl=n,t}function ch(n,t,e){const i=hs(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&V.Optional?null:void 0!==t?t:void fs(fe(n))}const he=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),zr={},Vl="__NG_DI_FLAG__",ms="ngTempTokenPath",pS=/\n/gm,uh="__source";let Wr;function qi(n){const t=Wr;return Wr=n,t}function gS(n,t=V.Default){if(void 0===Wr)throw new D(-203,!1);return null===Wr?ch(n,void 0,t):Wr.get(n,t&V.Optional?null:void 0,t)}function A(n,t=V.Default){return(function fS(){return jl}()||gS)(N(n),t)}function Yn(n,t=V.Default){return A(n,gs(t))}function gs(n){return typeof n>"u"||"number"==typeof n?n:0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function Bl(n){const t=[];for(let e=0;e((Qt=Qt||{})[Qt.OnPush=0]="OnPush",Qt[Qt.Default=1]="Default",Qt))(),Yt=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Yt||(Yt={})),Yt))();const Mn={},ie=[],ys=ue({\u0275cmp:ue}),Hl=ue({\u0275dir:ue}),Ul=ue({\u0275pipe:ue}),fh=ue({\u0275mod:ue}),An=ue({\u0275fac:ue}),qr=ue({__NG_ELEMENT_ID__:ue});let bS=0;function gt(n){return Zn(()=>{const e=!0===n.standalone,i={},r={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===Qt.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||ie,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Yt.Emulated,id:"c"+bS++,styles:n.styles||ie,_:null,setInput:null,schemas:n.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},o=n.dependencies,s=n.features;return r.inputs=mh(n.inputs,i),r.outputs=mh(n.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(hh).filter(ph):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(st).filter(ph):null,r})}function hh(n){return se(n)||qe(n)}function ph(n){return null!==n}function ke(n){return Zn(()=>({type:n.type,bootstrap:n.bootstrap||ie,declarations:n.declarations||ie,imports:n.imports||ie,exports:n.exports||ie,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function mh(n,t){if(null==n)return Mn;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,t&&(t[r]=o)}return e}const k=gt;function ot(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function se(n){return n[ys]||null}function qe(n){return n[Hl]||null}function st(n){return n[Ul]||null}const q=11;function St(n){return Array.isArray(n)&&"object"==typeof n[1]}function Xt(n){return Array.isArray(n)&&!0===n[1]}function Wl(n){return 0!=(4&n.flags)}function Xr(n){return n.componentOffset>-1}function Es(n){return 1==(1&n.flags)}function Jt(n){return null!==n.template}function SS(n){return 0!=(256&n[2])}function vi(n,t){return n.hasOwnProperty(An)?n[An]:null}class Dh{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function hn(){return Eh}function Eh(n){return n.type.prototype.ngOnChanges&&(n.setInput=TS),IS}function IS(){const n=Ch(this),t=n?.current;if(t){const e=n.previous;if(e===Mn)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function TS(n,t,e,i){const r=this.declaredInputs[e],o=Ch(n)||function MS(n,t){return n[Sh]=t}(n,{previous:Mn,current:null}),s=o.current||(o.current={}),a=o.previous,l=a[r];s[r]=new Dh(l&&l.currentValue,t,a===Mn),n[i]=t}hn.ngInherit=!0;const Sh="__ngSimpleChanges__";function Ch(n){return n[Sh]||null}function $e(n){for(;Array.isArray(n);)n=n[0];return n}function Ss(n,t){return $e(t[n])}function Ct(n,t){return $e(t[n.index])}function Th(n,t){return n.data[t]}function Xi(n,t){return n[t]}function wt(n,t){const e=t[n];return St(e)?e:e[0]}function Cs(n){return 64==(64&n[2])}function Xn(n,t){return null==t?null:n[t]}function Mh(n){n[18]=0}function ql(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const H={lFrame:jh(null),bindingsEnabled:!0};function xh(){return H.bindingsEnabled}function v(){return H.lFrame.lView}function X(){return H.lFrame.tView}function pe(n){return H.lFrame.contextLView=n,n[8]}function me(n){return H.lFrame.contextLView=null,n}function ze(){let n=Ph();for(;null!==n&&64===n.type;)n=n.parent;return n}function Ph(){return H.lFrame.currentTNode}function pn(n,t){const e=H.lFrame;e.currentTNode=n,e.isParent=t}function Kl(){return H.lFrame.isParent}function Ql(){H.lFrame.isParent=!1}function lt(){const n=H.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function Ji(){return H.lFrame.bindingIndex++}function On(n){const t=H.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function HS(n,t){const e=H.lFrame;e.bindingIndex=e.bindingRootIndex=n,Yl(t)}function Yl(n){H.lFrame.currentDirectiveIndex=n}function Fh(){return H.lFrame.currentQueryIndex}function Xl(n){H.lFrame.currentQueryIndex=n}function $S(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function Lh(n,t,e){if(e&V.SkipSelf){let r=t,o=n;for(;!(r=r.parent,null!==r||e&V.Host||(r=$S(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;t=r,n=o}const i=H.lFrame=kh();return i.currentTNode=t,i.lView=n,!0}function Jl(n){const t=kh(),e=n[1];H.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function kh(){const n=H.lFrame,t=null===n?null:n.child;return null===t?jh(n):t}function jh(n){const 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:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function Vh(){const n=H.lFrame;return H.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Bh=Vh;function ec(){const n=Vh();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function ct(){return H.lFrame.selectedIndex}function bi(n){H.lFrame.selectedIndex=n}function be(){const n=H.lFrame;return Th(n.tView,n.selectedIndex)}function ws(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e=i)break}else t[l]<0&&(n[18]+=65536),(a>11>16&&(3&n[2])===t){n[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class eo{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function ic(n,t,e){let i=0;for(;it){s=o-1;break}}}for(;o>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let rc=!0;function xs(n){const t=rc;return rc=n,t}let iC=0;const mn={};function Ps(n,t){const e=Kh(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,oc(i.data,n),oc(t,null),oc(i.blueprint,null));const r=sc(n,t),o=n.injectorIndex;if(Wh(r)){const s=Ms(r),a=As(r,t),l=a[1].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|l[s+c]}return t[o+8]=r,o}function oc(n,t){n.push(0,0,0,0,0,0,0,0,t)}function Kh(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function sc(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){if(i=tp(r),null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function ac(n,t,e){!function rC(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(qr)&&(i=e[qr]),null==i&&(i=e[qr]=iC++);const r=255&i;t.data[n+(r>>5)]|=1<=0?255&t:lC:t}(e);if("function"==typeof o){if(!Lh(t,n,i))return i&V.Host?Qh(r,0,i):Yh(t,e,i,r);try{const s=o(i);if(null!=s||i&V.Optional)return s;fs()}finally{Bh()}}else if("number"==typeof o){let s=null,a=Kh(n,t),l=-1,c=i&V.Host?t[16][6]:null;for((-1===a||i&V.SkipSelf)&&(l=-1===a?sc(n,t):t[a+8],-1!==l&&ep(i,!1)?(s=t[1],a=Ms(l),t=As(l,t)):a=-1);-1!==a;){const u=t[1];if(Jh(o,a,u.data)){const d=sC(a,t,e,s,i,c);if(d!==mn)return d}l=t[a+8],-1!==l&&ep(i,t[1].data[a+8]===c)&&Jh(o,a,t)?(s=u,a=Ms(l),t=As(l,t)):a=-1}}return r}function sC(n,t,e,i,r,o){const s=t[1],a=s.data[n+8],u=Os(a,s,e,null==i?Xr(a)&&rc:i!=s&&0!=(3&a.type),r&V.Host&&o===a);return null!==u?Di(t,s,u,a):mn}function Os(n,t,e,i,r){const o=n.providerIndexes,s=t.data,a=1048575&o,l=n.directiveStart,u=o>>20,f=r?a+u:n.directiveEnd;for(let h=i?a:a+u;h=l&&p.type===e)return h}if(r){const h=s[l];if(h&&Jt(h)&&h.type===e)return l}return null}function Di(n,t,e,i){let r=n[e];const o=t.data;if(function JS(n){return n instanceof eo}(r)){const s=r;s.resolving&&function rS(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new D(-200,`Circular dependency in DI detected for ${n}${e}`)}(function re(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():B(n)}(o[e]));const a=xs(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Rt(s.injectImpl):null;Lh(n,i,V.Default);try{r=n[e]=s.factory(void 0,o,n,i),t.firstCreatePass&&e>=i.directiveStart&&function ZS(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(i){const s=Eh(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o))}(e,o[e],t)}finally{null!==l&&Rt(l),xs(a),s.resolving=!1,Bh()}}return r}function Jh(n,t,e){return!!(e[t+(n>>5)]&1<{const t=lc(N(n));return t&&t()}:vi(n)}function tp(n){const t=n[1],e=t.type;return 2===e?t.declTNode:1===e?n[6]:null}const ir="__parameters__";function or(n,t,e){return Zn(()=>{const i=function uc(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(ir)?l[ir]:Object.defineProperty(l,ir,{value:[]})[ir];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class P{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=$({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Ei(n,t){n.forEach(e=>Array.isArray(e)?Ei(e,t):t(e))}function ip(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Ns(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function ro(n,t){const e=[];for(let i=0;i=0?n[1|i]=e:(i=~i,function hC(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function fc(n,t){const e=sr(n,t);if(e>=0)return n[1|e]}function sr(n,t){return function rp(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=n[o<t?r=o:i=o+1}return~(r<({token:n})),-1),Ls=Gr(or("Optional"),8),ks=Gr(or("SkipSelf"),4);var yt=(()=>((yt=yt||{})[yt.Important=1]="Important",yt[yt.DashCase=2]="DashCase",yt))();const yc=new Map;let FC=0;const vc="__ngContext__";function Ze(n,t){St(t)?(n[vc]=t[20],function kC(n){yc.set(n[20],n)}(t)):n[vc]=t}function Dc(n,t){return undefined(n,t)}function lo(n){const t=n[3];return Xt(t)?t[3]:t}function Ec(n){return Cp(n[13])}function Sc(n){return Cp(n[4])}function Cp(n){for(;null!==n&&!Xt(n);)n=n[4];return n}function lr(n,t,e,i,r){if(null!=i){let o,s=!1;Xt(i)?o=i:St(i)&&(s=!0,i=i[0]);const a=$e(i);0===n&&null!==e?null==r?xp(t,e,a):Si(t,e,a,r||null,!0):1===n&&null!==e?Si(t,e,a,r||null,!0):2===n?function xc(n,t,e){const i=Bs(n,t);i&&function iw(n,t,e,i){n.removeChild(t,e,i)}(n,i,t,e)}(t,a,s):3===n&&t.destroyNode(a),null!=o&&function sw(n,t,e,i,r){const o=e[7];o!==$e(e)&&lr(t,n,i,o,r);for(let a=10;a0&&(n[e-1][4]=i[4]);const o=Ns(n,10+t);!function QC(n,t){co(n,t,t[q],2,null,null),t[0]=null,t[6]=null}(i[1],i);const s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function Tp(n,t){if(!(128&t[2])){const e=t[q];e.destroyNode&&co(n,t,e,3,null,null),function XC(n){let t=n[13];if(!t)return Tc(n[1],n);for(;t;){let e=null;if(St(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)St(t)&&Tc(t[1],t),t=t[3];null===t&&(t=n),St(t)&&Tc(t[1],t),e=t&&t[4]}t=e}}(t)}}function Tc(n,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function nw(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i=0?i[r=s]():i[r=-s].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;o-1){const{encapsulation:o}=n.data[i.directiveStart+r];if(o===Yt.None||o===Yt.Emulated)return null}return Ct(i,e)}}(n,t.parent,e)}function Si(n,t,e,i,r){n.insertBefore(t,e,i,r)}function xp(n,t,e){n.appendChild(t,e)}function Pp(n,t,e,i,r){null!==i?Si(n,t,e,i,r):xp(n,t,e)}function Bs(n,t){return n.parentNode(t)}function Op(n,t,e){return Rp(n,t,e)}let $s,Nc,zs,Rp=function Np(n,t,e){return 40&n.type?Ct(n,e):null};function Hs(n,t,e,i){const r=Mp(n,i,t),o=t[q],a=Op(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(e))for(let l=0;ln,createScript:n=>n,createScriptURL:n=>n})}catch{}return $s}()?.createHTML(n)||n}function Hp(n){return function Rc(){if(void 0===zs&&(zs=null,he.trustedTypes))try{zs=he.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return zs}()?.createHTML(n)||n}class zp{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${oh})`}}function Jn(n){return n instanceof zp?n.changingThisBreaksApplicationSecurity:n}class vw{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Ci(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class bw{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Ci(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Ci(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0"),!0}endElement(t){const e=t.nodeName.toLowerCase();Lc.hasOwnProperty(e)&&!Gp.hasOwnProperty(e)&&(this.buf.push(""),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Yp(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const ww=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Iw=/([^\#-~ |!])/g;function Yp(n){return n.replace(/&/g,"&").replace(ww,function(t){return""+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Iw,function(t){return""+t.charCodeAt(0)+";"}).replace(//g,">")}let Ws;function jc(n){return"content"in n&&function Mw(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var Pe=(()=>((Pe=Pe||{})[Pe.NONE=0]="NONE",Pe[Pe.HTML=1]="HTML",Pe[Pe.STYLE=2]="STYLE",Pe[Pe.SCRIPT=3]="SCRIPT",Pe[Pe.URL=4]="URL",Pe[Pe.RESOURCE_URL=5]="RESOURCE_URL",Pe))();function Zp(n){const t=function ho(){const n=v();return n&&n[12]}();return t?Hp(t.sanitize(Pe.HTML,n)||""):function uo(n,t){const e=function _w(n){return n instanceof zp&&n.getTypeName()||null}(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see ${oh})`)}return e===t}(n,"HTML")?Hp(Jn(n)):function Tw(n,t){let e=null;try{Ws=Ws||function Wp(n){const t=new bw(n);return function Dw(){try{return!!(new window.DOMParser).parseFromString(Ci(""),"text/html")}catch{return!1}}()?new vw(t):t}(n);let i=t?String(t):"";e=Ws.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=Ws.getInertBodyElement(i)}while(i!==o);return Ci((new Cw).sanitizeChildren(jc(e)||e))}finally{if(e){const i=jc(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}(function Bp(){return void 0!==Nc?Nc:typeof document<"u"?document:void 0}(),B(n))}const em=new P("ENVIRONMENT_INITIALIZER"),tm=new P("INJECTOR",-1),nm=new P("INJECTOR_DEF_TYPES");class im{get(t,e=zr){if(e===zr){const i=new Error(`NullInjectorError: No provider for ${fe(t)}!`);throw i.name="NullInjectorError",i}return e}}function Lw(...n){return{\u0275providers:rm(0,n),\u0275fromNgModule:!0}}function rm(n,...t){const e=[],i=new Set;let r;return Ei(t,o=>{const s=o;Vc(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&om(r,e),e}function om(n,t){for(let e=0;e{t.push(o)})}}function Vc(n,t,e,i){if(!(n=N(n)))return!1;let r=null,o=ah(n);const s=!o&&se(n);if(o||s){if(s&&!s.standalone)return!1;r=n}else{const l=n.ngModule;if(o=ah(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)Vc(c,t,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{Ei(o.imports,u=>{Vc(u,t,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&om(c,t)}if(!a){const c=vi(r)||(()=>new r);t.push({provide:r,useFactory:c,deps:ie},{provide:nm,useValue:r,multi:!0},{provide:em,useValue:()=>A(r),multi:!0})}const l=o.providers;null==l||a||Bc(l,u=>{t.push(u)})}}return r!==n&&void 0!==n.providers}function Bc(n,t){for(let e of n)Ll(e)&&(e=e.\u0275providers),Array.isArray(e)?Bc(e,t):t(e)}const kw=ue({provide:String,useValue:ue});function Hc(n){return null!==n&&"object"==typeof n&&kw in n}function wi(n){return"function"==typeof n}const Uc=new P("Set Injector scope."),Gs={},Vw={};let $c;function qs(){return void 0===$c&&($c=new im),$c}class Ii{}class lm extends Ii{get destroyed(){return this._destroyed}constructor(t,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Wc(t,s=>this.processProvider(s)),this.records.set(tm,cr(void 0,this)),r.has("environment")&&this.records.set(Ii,cr(void 0,this));const o=this.records.get(Uc);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(nm.multi,ie,V.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const e=qi(this),i=Rt(void 0);try{return t()}finally{qi(e),Rt(i)}}get(t,e=zr,i=V.Default){this.assertNotDestroyed(),i=gs(i);const r=qi(this),o=Rt(void 0);try{if(!(i&V.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function zw(n){return"function"==typeof n||"object"==typeof n&&n instanceof P}(t)&&hs(t);a=l&&this.injectableDefInScope(l)?cr(zc(t),Gs):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&V.Self?qs():this.parent).get(t,e=i&V.Optional&&e===zr?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[ms]=s[ms]||[]).unshift(fe(t)),r)throw s;return function _S(n,t,e,i){const r=n[ms];throw t[uh]&&r.unshift(t[uh]),n.message=function vS(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let r=fe(t);if(Array.isArray(t))r=t.map(fe).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):fe(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(pS,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[ms]=null,n}(s,t,"R3InjectorError",this.source)}throw s}finally{Rt(o),qi(r)}}resolveInjectorInitializers(){const t=qi(this),e=Rt(void 0);try{const i=this.get(em.multi,ie,V.Self);for(const r of i)r()}finally{qi(t),Rt(e)}}toString(){const t=[],e=this.records;for(const i of e.keys())t.push(fe(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new D(205,!1)}processProvider(t){let e=wi(t=N(t))?t:N(t&&t.provide);const i=function Hw(n){return Hc(n)?cr(void 0,n.useValue):cr(cm(n),Gs)}(t);if(wi(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=cr(void 0,Gs,!0),r.factory=()=>Bl(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,i)}hydrate(t,e){return e.value===Gs&&(e.value=Vw,e.value=e.factory()),"object"==typeof e.value&&e.value&&function $w(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=N(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function zc(n){const t=hs(n),e=null!==t?t.factory:vi(n);if(null!==e)return e;if(n instanceof P)throw new D(204,!1);if(n instanceof Function)return function Bw(n){const t=n.length;if(t>0)throw ro(t,"?"),new D(204,!1);const e=function cS(n){const t=n&&(n[ps]||n[lh]);if(t){const e=function uS(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new D(204,!1)}function cm(n,t,e){let i;if(wi(n)){const r=N(n);return vi(r)||zc(r)}if(Hc(n))i=()=>N(n.useValue);else if(function am(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Bl(n.deps||[]));else if(function sm(n){return!(!n||!n.useExisting)}(n))i=()=>A(N(n.useExisting));else{const r=N(n&&(n.useClass||n.provide));if(!function Uw(n){return!!n.deps}(n))return vi(r)||zc(r);i=()=>new r(...Bl(n.deps))}return i}function cr(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function Wc(n,t){for(const e of n)Array.isArray(e)?Wc(e,t):e&&Ll(e)?Wc(e.\u0275providers,t):t(e)}class Ww{}class um{}class qw{resolveComponentFactory(t){throw function Gw(n){const t=Error(`No component factory found for ${fe(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let ur=(()=>{class n{}return n.NULL=new qw,n})();function Kw(){return dr(ze(),v())}function dr(n,t){return new ut(Ct(n,t))}let ut=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=Kw,n})();function Qw(n){return n instanceof ut?n.nativeElement:n}class po{}let ei=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function Yw(){const n=v(),e=wt(ze().index,n);return(St(e)?e:n)[q]}(),n})(),Zw=(()=>{class n{}return n.\u0275prov=$({token:n,providedIn:"root",factory:()=>null}),n})();class mo{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Xw=new mo("15.1.1"),Gc={};function Kc(n){return n.ngOriginalError}class fr{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&Kc(t);for(;e&&Kc(e);)e=Kc(e);return e||null}}function hm(n,t,e){let i=n.length;for(;;){const r=n.indexOf(t,e);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const o=t.length;if(r+o===i||n.charCodeAt(r+o)<=32)return r}e=r+1}}const pm="ng-template";function cI(n,t,e){let i=0;for(;io?"":r[d+1].toLowerCase();const h=8&i?f:null;if(h&&-1!==hm(h,c,0)||2&i&&c!==f){if(en(i))return!1;s=!0}}}}else{if(!s&&!en(i)&&!en(l))return!1;if(s&&en(l))continue;s=!1,i=l|1&i}}return en(i)||s}function en(n){return 0==(1&n)}function fI(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!en(s)&&(t+=ym(o,r),r=""),i=s,o=o||!en(i);e++}return""!==r&&(t+=ym(o,r)),t}const U={};function M(n){_m(X(),v(),ct()+n,!1)}function _m(n,t,e,i){if(!i)if(3==(3&t[2])){const o=n.preOrderCheckHooks;null!==o&&Is(t,o,e)}else{const o=n.preOrderHooks;null!==o&&Ts(t,o,0,e)}bi(e)}function Em(n,t=null,e=null,i){const r=Sm(n,t,e,i);return r.resolveInjectorInitializers(),r}function Sm(n,t=null,e=null,i,r=new Set){const o=[e||ie,Lw(n)];return i=i||("object"==typeof n?void 0:fe(n)),new lm(o,t||qs(),i||null,r)}let gn=(()=>{class n{static create(e,i){if(Array.isArray(e))return Em({name:""},i,e,"");{const r=e.name??"";return Em({name:r},e.parent,e.providers,r)}}}return n.THROW_IF_NOT_FOUND=zr,n.NULL=new im,n.\u0275prov=$({token:n,providedIn:"any",factory:()=>A(tm)}),n.__NG_ELEMENT_ID__=-1,n})();function b(n,t=V.Default){const e=v();return null===e?A(n,t):Zh(ze(),e,N(n),t)}function xm(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i22&&_m(n,t,22,!1),e(i,r)}finally{bi(o)}}function tu(n,t,e){if(Wl(t)){const r=t.directiveEnd;for(let o=t.directiveStart;o0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(s)!=a&&s.push(a),s.push(e,i,o)}}(n,t,i,go(n,e,r.hostVars,U),r)}function yn(n,t,e,i,r,o){const s=Ct(n,t);!function au(n,t,e,i,r,o,s){if(null==o)n.removeAttribute(t,r,e);else{const a=null==s?B(o):s(o,i||"",r);n.setAttribute(t,r,a,e)}}(t[q],s,o,n.value,e,i,r)}function o0(n,t,e,i,r,o){const s=o[t];if(null!==s){const a=i.setInput;for(let l=0;l0&&lu(e)}}function lu(n){for(let i=Ec(n);null!==i;i=Sc(i))for(let r=10;r0&&lu(o)}const e=n[1].components;if(null!==e)for(let i=0;i0&&lu(r)}}function u0(n,t){const e=wt(t,n),i=e[1];(function d0(n,t){for(let e=t.length;e-1&&(Ic(t,i),Ns(e,i))}this._attachedToViewContainer=!1}Tp(this._lView[1],this._lView)}onDestroy(t){Nm(this._lView[1],this._lView,null,t)}markForCheck(){cu(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Xs(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new D(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ZC(n,t){co(n,t,t[q],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new D(902,!1);this._appRef=t}}class f0 extends yo{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Xs(t[1],t,t[8],!1)}checkNoChanges(){}get context(){return null}}class zm extends ur{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=se(t);return new _o(e,this.ngModule)}}function Wm(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class p0{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,i){i=gs(i);const r=this.injector.get(t,Gc,i);return r!==Gc||e===Gc?r:this.parentInjector.get(t,e,i)}}class _o extends um{get inputs(){return Wm(this.componentDef.inputs)}get outputs(){return Wm(this.componentDef.outputs)}constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function _I(n){return n.map(yI).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}create(t,e,i,r){let o=(r=r||this.ngModule)instanceof Ii?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new p0(t,o):t,a=s.get(po,null);if(null===a)throw new D(407,!1);const l=s.get(Zw,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function $I(n,t,e){return n.selectRootElement(t,e===Yt.ShadowDom)}(c,i,this.componentDef.encapsulation):wc(c,u,function h0(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(u)),f=this.componentDef.onPush?288:272,h=ru(0,null,null,1,0,null,null,null,null,null),p=Qs(null,h,null,f,null,null,a,c,l,s,null);let m,y;Jl(p);try{const _=this.componentDef;let E,g=null;_.findHostDirectiveDefs?(E=[],g=new Map,_.findHostDirectiveDefs(_,E,g),E.push(_)):E=[_];const C=function g0(n,t){const e=n[1];return n[22]=t,mr(e,22,2,"#host",null)}(p,d),ee=function y0(n,t,e,i,r,o,s,a){const l=r[1];!function _0(n,t,e,i){for(const r of n)t.mergedAttrs=to(t.mergedAttrs,r.hostAttrs);null!==t.mergedAttrs&&(Js(t,t.mergedAttrs,!0),null!==e&&Vp(i,e,t))}(i,n,t,s);const c=o.createRenderer(t,e),u=Qs(r,Om(e),null,e.onPush?32:16,r[n.index],n,o,c,a||null,null,null);return l.firstCreatePass&&su(l,n,i.length-1),Zs(r,u),r[n.index]=u}(C,d,_,E,p,a,c);y=Th(h,22),d&&function b0(n,t,e,i){if(i)ic(n,e,["ng-version",Xw.full]);else{const{attrs:r,classes:o}=function vI(n){const t=[],e=[];let i=1,r=2;for(;i0&&jp(n,e,o.join(" "))}}(c,_,d,i),void 0!==e&&function D0(n,t,e){const i=n.projection=[];for(let r=0;r=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=to(r.hostAttrs,e=to(e,r.hostAttrs))}}(i)}function fu(n){return n===Mn?{}:n===ie?[]:n}function C0(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function w0(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,o)=>{t(i,r,o),e(i,r,o)}:t}function I0(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let ta=null;function Ti(){if(!ta){const n=he.Symbol;if(n&&n.iterator)ta=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;es($e(C[i.index])):i.index;let g=null;if(!s&&a&&(g=function B0(n,t,e,i){const r=n.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(n,t,r,i.index)),null!==g)(g.__ngLastListenerFn__||g).__ngNextListenerFn__=o,g.__ngLastListenerFn__=o,f=!1;else{o=ug(i,t,u,o,!1);const C=e.listen(y,r,o);d.push(o,C),c&&c.push(r,E,_,_+1)}}else o=ug(i,t,u,o,!1);const h=i.outputs;let p;if(f&&null!==h&&(p=h[r])){const m=p.length;if(m)for(let y=0;y-1?wt(n.index,t):t);let l=cg(t,0,i,s),c=o.__ngNextListenerFn__;for(;c;)l=cg(t,0,c,s)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function j(n=1){return function zS(n){return(H.lFrame.contextLView=function WS(n,t){for(;n>0;)t=t[15],n--;return t}(n,H.lFrame.contextLView))[8]}(n)}function H0(n,t){let e=null;const i=function hI(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(!(1&e))return t[e+1]}return null}(n);for(let r=0;r>17&32767}function yu(n){return 2|n}function xi(n){return(131068&n)>>2}function _u(n,t){return-131069&n|t<<2}function vu(n){return 1|n}function bg(n,t,e,i,r){const o=n[e+1],s=null===t;let a=i?ti(o):xi(o),l=!1;for(;0!==a&&(!1===l||s);){const u=n[a+1];q0(n[a],t)&&(l=!0,n[a+1]=i?vu(u):yu(u)),a=i?ti(u):xi(u)}l&&(n[e+1]=i?yu(o):vu(o))}function q0(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&sr(n,t)>=0}const Ve={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Dg(n){return n.substring(Ve.key,Ve.keyEnd)}function K0(n){return n.substring(Ve.value,Ve.valueEnd)}function Eg(n,t){const e=Ve.textEnd;return e===t?-1:(t=Ve.keyEnd=function Z0(n,t,e){for(;t32;)t++;return t}(n,Ve.key=t,e),Mr(n,t,e))}function Sg(n,t){const e=Ve.textEnd;let i=Ve.key=Mr(n,t,e);return e===i?-1:(i=Ve.keyEnd=function X0(n,t,e){let i;for(;t=65&&(-33&i)<=90||i>=48&&i<=57);)t++;return t}(n,i,e),i=wg(n,i,e),i=Ve.value=Mr(n,i,e),i=Ve.valueEnd=function J0(n,t,e){let i=-1,r=-1,o=-1,s=t,a=s;for(;s32&&(a=s),o=r,r=i,i=-33&l}return a}(n,i,e),wg(n,i,e))}function Cg(n){Ve.key=0,Ve.keyEnd=0,Ve.value=0,Ve.valueEnd=0,Ve.textEnd=n.length}function Mr(n,t,e){for(;t=0;e=Sg(t,e))xg(n,Dg(t),K0(t))}function Pi(n){rn(It,vn,n,!0)}function vn(n,t){for(let e=function Q0(n){return Cg(n),Eg(n,Mr(n,0,Ve.textEnd))}(t);e>=0;e=Eg(t,e))It(n,Dg(t),!0)}function rn(n,t,e,i){const r=X(),o=On(2);r.firstUpdatePass&&Ag(r,null,o,i);const s=v();if(e!==U&&Xe(s,o,e)){const a=r.data[ct()];if(Ng(a,i)&&!Mg(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Rl(l,e||"")),mu(r,a,s,e,i)}else!function sT(n,t,e,i,r,o,s,a){r===U&&(r=ie);let l=0,c=0,u=0=n.expandoStartIndex}function Ag(n,t,e,i){const r=n.data;if(null===r[e+1]){const o=r[ct()],s=Mg(n,e);Ng(o,i)&&null===t&&!s&&(t=!1),t=function tT(n,t,e,i){const r=function Zl(n){const t=H.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}(n);let o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=Do(e=bu(null,n,t,e,i),t.attrs,i),o=null);else{const s=t.directiveStylingLast;if(-1===s||n[s]!==r)if(e=bu(r,n,t,e,i),null===o){let l=function nT(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==xi(i))return n[ti(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=bu(null,n,t,l[1],i),l=Do(l,t.attrs,i),function iT(n,t,e,i){n[ti(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else o=function rT(n,t,e){let i;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(c=!0)):u=e,r)if(0!==l){const f=ti(n[a+1]);n[i+1]=oa(f,a),0!==f&&(n[f+1]=_u(n[f+1],i)),n[a+1]=function $0(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=oa(a,0),0!==a&&(n[a+1]=_u(n[a+1],i)),a=i;else n[i+1]=oa(l,0),0===a?a=i:n[l+1]=_u(n[l+1],i),l=i;c&&(n[i+1]=yu(n[i+1])),bg(n,u,i,!0),bg(n,u,i,!1),function G0(n,t,e,i,r){const o=r?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&sr(o,t)>=0&&(e[i+1]=vu(e[i+1]))}(t,u,n,i,o),s=oa(a,l),o?t.classBindings=s:t.styleBindings=s}(r,o,t,e,s,i)}}function bu(n,t,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let f=e[r+1];f===U&&(f=d?ie:void 0);let h=d?fc(f,i):u===i?f:void 0;if(c&&!sa(h)&&(h=fc(l,i)),sa(h)&&(a=h,s))return a;const p=n[r+1];r=s?ti(p):xi(p)}if(null!==t){let l=o?t.residualClasses:t.residualStyles;null!=l&&(a=fc(l,i))}return a}function sa(n){return void 0!==n}function Ng(n,t){return 0!=(n.flags&(t?8:16))}function Vt(n,t=""){const e=v(),i=X(),r=n+22,o=i.firstCreatePass?mr(i,r,1,t,null):i.data[r],s=e[r]=function Cc(n,t){return n.createText(t)}(e[q],t);Hs(i,e,s,o),pn(o,!1)}function Oi(n){return ni("",n,""),Oi}function ni(n,t,e){const i=v(),r=function yr(n,t,e,i){return Xe(n,Ji(),e)?t+B(e)+i:U}(i,n,t,e);return r!==U&&function Fn(n,t,e){const i=Ss(t,n);!function wp(n,t,e){n.setValue(t,e)}(n[q],i,e)}(i,ct(),r),ni}const xr="en-US";let ty=xr;function Su(n,t,e,i,r){if(n=N(n),Array.isArray(n))for(let o=0;o>20;if(wi(n)||!n.multi){const h=new eo(l,r,b),p=wu(a,t,r?u:u+f,d);-1===p?(ac(Ps(c,s),o,a),Cu(o,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(h),s.push(h)):(e[p]=h,s[p]=h)}else{const h=wu(a,t,u+f,d),p=wu(a,t,u,u+f),y=p>=0&&e[p];if(r&&!y||!r&&!(h>=0&&e[h])){ac(Ps(c,s),o,a);const _=function wM(n,t,e,i,r){const o=new eo(n,e,b);return o.multi=[],o.index=t,o.componentProviders=0,Iy(o,r,i&&!e),o}(r?CM:SM,e.length,r,i,l);!r&&y&&(e[p].providerFactory=_),Cu(o,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(_),s.push(_)}else Cu(o,n,h>-1?h:p,Iy(e[r?p:h],l,!r&&i));!r&&i&&y&&e[p].componentProviders++}}}function Cu(n,t,e,i){const r=wi(t),o=function jw(n){return!!n.useClass}(t);if(r||o){const l=(o?N(t.useClass):t).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function Iy(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function wu(n,t,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function EM(n,t,e){const i=X();if(i.firstCreatePass){const r=Jt(n);Su(e,i.data,i.blueprint,r,!0),Su(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class Pr{}class IM{}class Ty extends Pr{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new zm(this);const i=function Et(n,t){const e=n[fh]||null;if(!e&&!0===t)throw new Error(`Type ${fe(n)} does not have '\u0275mod' property.`);return e}(t);this._bootstrapComponents=function Rn(n){return n instanceof Function?n():n}(i.bootstrap),this._r3Injector=Sm(t,e,[{provide:Pr,useValue:this},{provide:ur,useValue:this.componentFactoryResolver}],fe(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Tu extends IM{constructor(t){super(),this.moduleType=t}create(t){return new Ty(this.moduleType,t)}}class MM extends Pr{constructor(t,e,i){super(),this.componentFactoryResolver=new zm(this),this.instance=null;const r=new lm([...t,{provide:Pr,useValue:this},{provide:ur,useValue:this.componentFactoryResolver}],e||qs(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}let AM=(()=>{class n{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=rm(0,e.type),r=i.length>0?function My(n,t,e=null){return new MM(n,t,e).injector}([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=$({token:n,providedIn:"environment",factory:()=>new n(A(Ii))}),n})();function Ri(n){n.getStandaloneInjector=t=>t.get(AM).getOrCreateStandaloneInjector(n)}function da(n,t,e){const i=lt()+n,r=v();return r[i]===U?_n(r,i,e?t.call(e):t()):vo(r,i)}function Or(n,t,e,i){return Vy(v(),lt(),n,t,e,i)}function Ly(n,t,e,i,r,o){return function Hy(n,t,e,i,r,o,s,a){const l=t+e;return function ia(n,t,e,i,r){const o=Mi(n,t,e,i);return Xe(n,t+2,r)||o}(n,l,r,o,s)?_n(n,l+3,a?i.call(a,r,o,s):i(r,o,s)):To(n,l+3)}(v(),lt(),n,t,e,i,r,o)}function Au(n,t,e,i,r,o,s){return function Uy(n,t,e,i,r,o,s,a,l){const c=t+e;return kt(n,c,r,o,s,a)?_n(n,c+4,l?i.call(l,r,o,s,a):i(r,o,s,a)):To(n,c+4)}(v(),lt(),n,t,e,i,r,o,s)}function jy(n,t,e,i){return function $y(n,t,e,i,r,o){let s=t+e,a=!1;for(let l=0;l=0;e--){const i=t[e];if(n===i.name)return i}}(t,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=vi(i.type)),s=Rt(b);try{const a=xs(!1),l=o();return xs(a),function k0(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,v(),r,l),l}finally{Rt(s)}}function et(n,t,e){const i=n+22,r=v(),o=Xi(r,i);return Mo(r,i)?Vy(r,lt(),t,o.transform,e,o):o.transform(e)}function Mo(n,t){return n[1].data[t].pure}function xu(n){return t=>{setTimeout(n,void 0,t)}}const Y=class WM extends Tn{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let r=t,o=e||(()=>null),s=i;if(t&&"object"==typeof t){const l=t;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=xu(o),r&&(r=xu(r)),s&&(s=xu(s)));const a=super.subscribe({next:r,error:o,complete:s});return t instanceof _e&&t.add(a),a}};function GM(){return this._results[Ti()]()}class Pu{get changes(){return this._changes||(this._changes=new Y)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Ti(),i=Pu.prototype;i[e]||(i[e]=GM)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const r=function Lt(n){return n.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function dC(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=QM,n})();const qM=bn,KM=class extends qM{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t,e){const i=this._declarationTContainer.tViews,r=Qs(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null,e||null);r[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(i)),eu(i,r,t),new yo(r)}};function QM(){return fa(ze(),v())}function fa(n,t){return 4&n.type?new KM(t,n,dr(n,t)):null}let Dn=(()=>{class n{}return n.__NG_ELEMENT_ID__=YM,n})();function YM(){return qy(ze(),v())}const ZM=Dn,Wy=class extends ZM{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return dr(this._hostTNode,this._hostLView)}get injector(){return new tr(this._hostTNode,this._hostLView)}get parentInjector(){const t=sc(this._hostTNode,this._hostLView);if(Wh(t)){const e=As(t,this._hostLView),i=Ms(t);return new tr(e[1].data[i+8],e)}return new tr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Gy(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=t.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(t,e,i,r,o){const s=t&&!function io(n){return"function"==typeof n}(t);let a;if(s)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?t:new _o(se(t)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const f=(s?c:this.parentInjector).get(Ii,null);f&&(o=f)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(t,e){const i=t._lView,r=i[1];if(function NS(n){return Xt(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=i[3],f=new Wy(d,d[6],d[3]);f.detach(f.indexOf(t))}}const o=this._adjustIndex(e),s=this._lContainer;!function JC(n,t,e,i){const r=10+i,o=e.length;i>0&&(e[r-1][4]=t),i0)i.push(s[a/2]);else{const c=o[a+1],u=t[-l];for(let d=10;d{class n{constructor(e){this.appInits=e,this.resolve=pa,this.reject=pa,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(A(y_,8))},n.\u0275prov=$({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Po=new P("AppId",{providedIn:"root",factory:function __(){return`${$u()}${$u()}${$u()}`}});function $u(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const v_=new P("Platform Initializer"),zu=new P("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),SA=new P("appBootstrapListener"),b_=new P("AnimationModuleType"),kn=new P("LocaleId",{providedIn:"root",factory:()=>Yn(kn,V.Optional|V.SkipSelf)||function CA(){return typeof $localize<"u"&&$localize.locale||xr}()}),AA=(()=>Promise.resolve(0))();function Wu(n){typeof Zone>"u"?AA.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class Ie{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Y(!1),this.onMicrotaskEmpty=new Y(!1),this.onStable=new Y(!1),this.onError=new Y(!1),typeof Zone>"u")throw new D(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function xA(){let n=he.requestAnimationFrame,t=he.cancelAnimationFrame;if(typeof Zone<"u"&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function NA(n){const t=()=>{!function OA(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(he,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,qu(n),n.isCheckStableRunning=!0,Gu(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),qu(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return S_(n),e.invokeTask(r,o,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),C_(n)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return S_(n),e.invoke(r,o,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),C_(n)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,qu(n),Gu(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ie.isInAngularZone())throw new D(909,!1)}static assertNotInAngularZone(){if(Ie.isInAngularZone())throw new D(909,!1)}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,t,PA,pa,pa);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const PA={};function Gu(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function qu(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function S_(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function C_(n){n._nesting--,Gu(n)}class RA{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Y,this.onMicrotaskEmpty=new Y,this.onStable=new Y,this.onError=new Y}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}const w_=new P(""),ga=new P("");let Yu,Ku=(()=>{class n{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Yu||(function FA(n){Yu=n}(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ie.assertNotInAngularZone(),Wu(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Wu(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!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(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(A(Ie),A(Qu),A(ga))},n.\u0275prov=$({token:n,factory:n.\u0275fac}),n})(),Qu=(()=>{class n{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Yu?.findTestabilityInTree(this,e,i)??null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=$({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),ii=null;const I_=new P("AllowMultipleToken"),Zu=new P("PlatformDestroyListeners");function M_(n,t,e=[]){const i=`Platform: ${t}`,r=new P(i);return(o=[])=>{let s=Xu();if(!s||s.injector.get(I_,!1)){const a=[...e,...o,{provide:r,useValue:!0}];n?n(a):function jA(n){if(ii&&!ii.get(I_,!1))throw new D(400,!1);ii=n;const t=n.get(x_);(function T_(n){const t=n.get(v_,null);t&&t.forEach(e=>e())})(n)}(function A_(n=[],t){return gn.create({name:t,providers:[{provide:Uc,useValue:"platform"},{provide:Zu,useValue:new Set([()=>ii=null])},...n]})}(a,i))}return function BA(n){const t=Xu();if(!t)throw new D(401,!1);return t}()}}function Xu(){return ii?.get(x_)??null}let x_=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function O_(n,t){let e;return e="noop"===n?new RA:("zone.js"===n?void 0:n)||new Ie(t),e}(i?.ngZone,function P_(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:Ie,useValue:r}];return r.run(()=>{const s=gn.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(fr,null);if(!l)throw new D(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{ya(this._modules,a),c.unsubscribe()})}),function N_(n,t,e){try{const i=e();return ra(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(ma);return c.runInitializers(),c.donePromise.then(()=>(function ny(n){Nt(n,"Expected localeId to be defined"),"string"==typeof n&&(ty=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(kn,xr)||xr),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=R_({},i);return function LA(n,t,e){const i=new Tu(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Oo);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new D(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new D(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(Zu,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(A(gn))},n.\u0275prov=$({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function R_(n,t){return Array.isArray(t)?t.reduce(R_,n):{...n,...t}}let Oo=(()=>{class n{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new ve(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new ve(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{Ie.assertNotInAngularZone(),Wu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{Ie.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=ih(o,s.pipe(function nS(){return n=>rh()(function JE(n,t){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof t)return i.lift(new eS(r,t));const o=Object.create(i,YE);return o.source=i,o.subjectFactory=r,o}}(tS)(n))}()))}bootstrap(e,i){const r=e instanceof um;if(!this._injector.get(ma).done)throw!r&&function Kr(n){const t=se(n)||qe(n)||st(n);return null!==t&&t.standalone}(e),new D(405,false);let s;s=r?e:this._injector.get(ur).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function kA(n){return n.isBoundToModule}(s)?void 0:this._injector.get(Pr),c=s.create(gn.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(w_,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),ya(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new D(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;ya(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(SA,[]);i.push(...this._bootstrapListeners),i.forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>ya(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new D(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(e){return new(e||n)(A(Ie),A(Ii),A(fr))},n.\u0275prov=$({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ya(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let Li=(()=>{class n{}return n.__NG_ELEMENT_ID__=$A,n})();function $A(n){return function zA(n,t,e){if(Xr(n)&&!e){const i=wt(n.index,t);return new yo(i,i)}return 47&n.type?new yo(t[16],t):null}(ze(),v(),16==(16&n))}class V_{constructor(){}supports(t){return na(t)}create(t){return new YA(t)}}const QA=(n,t)=>t;class YA{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||QA}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,r){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):t=this._addAfter(new ZA(e,i),o,r),t}_verifyReinsertion(t,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new B_),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new B_),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class ZA{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class XA{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(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,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class B_{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new XA,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function H_(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new ex(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class ex{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function $_(){return new ba([new V_])}let ba=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||$_()),deps:[[n,new ks,new Ls]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new D(901,!1)}}return n.\u0275prov=$({token:n,providedIn:"root",factory:$_}),n})();function z_(){return new No([new U_])}let No=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||z_()),deps:[[n,new ks,new Ls]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new D(901,!1)}}return n.\u0275prov=$({token:n,providedIn:"root",factory:z_}),n})();const ix=M_(null,"core",[]);let rx=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(A(Oo))},n.\u0275mod=ke({type:n}),n.\u0275inj=xe({}),n})();let rd=null;function ji(){return rd}class ax{}const Bt=new P("DocumentToken");function ev(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}const pd=/\s+/,tv=[];let Fr=(()=>{class n{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this.initialClasses=tv,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(pd):tv}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(pd):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,Boolean(e[i]));this._applyStateDiff()}_updateState(e,i){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(pd).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(b(ba),b(No),b(ut),b(ei))},n.\u0275dir=k({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})(),Lr=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new Yx,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){ov("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){ov("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(b(Dn),b(bn))},n.\u0275dir=k({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class Yx{constructor(){this.$implicit=null,this.ngIf=null}}function ov(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${fe(t)}'.`)}class md{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let xa=(()=>{class n{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const i of this._defaultViews)i.enforceState(e)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),n})(),sv=(()=>{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new md(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(b(Dn),b(bn),b(xa,9))},n.\u0275dir=k({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),Pa=(()=>{class n{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,o]=e.split("."),s=-1===r.indexOf("-")?void 0:yt.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(e){return new(e||n)(b(ut),b(No),b(ei))},n.\u0275dir=k({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),n})(),gd=(()=>{class n{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(r,o,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(e){return new(e||n)(b(Dn))},n.\u0275dir=k({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[hn]}),n})();class Jx{createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}}class eP{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}}const tP=new eP,nP=new Jx;let yd=(()=>{class n{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(ra(e))return tP;if(og(e))return nP;throw function cn(n,t){return new D(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(b(Li,16))},n.\u0275pipe=ot({name:"async",type:n,pure:!1,standalone:!0}),n})(),Mt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ke({type:n}),n.\u0275inj=xe({}),n})();class dv{}class YP extends ax{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Ed extends YP{static makeCurrent(){!function sx(n){rd||(rd=n)}(new Ed)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).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,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function ZP(){return ko=ko||document.querySelector("base"),ko?ko.getAttribute("href"):null}();return null==e?null:function XP(n){Na=Na||document.createElement("a"),Na.setAttribute("href",n);const t=Na.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){ko=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return ev(document.cookie,t)}}let Na,ko=null;const yv=new P("TRANSITION_ID"),e1=[{provide:y_,useFactory:function JP(n,t,e){return()=>{e.get(ma).donePromise.then(()=>{const i=ji(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=$({token:n,factory:n.\u0275fac}),n})();const Ra=new P("EventManagerPlugins");let Fa=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o{class n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=$({token:n,factory:n.\u0275fac}),n})(),jo=(()=>{class n extends vv{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,r.push(i.appendChild(s))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(bv),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(bv))}}return n.\u0275fac=function(e){return new(e||n)(A(Bt))},n.\u0275prov=$({token:n,factory:n.\u0275fac}),n})();function bv(n){ji().remove(n)}const Sd={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/MathML/"},Cd=/%COMP%/g;function wd(n,t){return t.flat(100).map(e=>e.replace(Cd,n))}function Sv(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let La=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Id(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Yt.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new c1(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case Yt.ShadowDom:return new u1(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=wd(i.id,i.styles);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(A(Fa),A(jo),A(Po))},n.\u0275prov=$({token:n,factory:n.\u0275fac}),n})();class Id{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(Sd[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(wv(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(wv(t)?t.content:t).insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const o=Sd[r];o?t.setAttributeNS(o,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=Sd[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(yt.DashCase|yt.Important)?t.style.setProperty(e,i,r&yt.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&yt.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,Sv(i)):this.eventManager.addEventListener(t,e,Sv(i))}}function wv(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class c1 extends Id{constructor(t,e,i,r){super(t),this.component=i;const o=wd(r+"-"+i.id,i.styles);e.addStyles(o),this.contentAttr=function s1(n){return"_ngcontent-%COMP%".replace(Cd,n)}(r+"-"+i.id),this.hostAttr=function a1(n){return"_nghost-%COMP%".replace(Cd,n)}(r+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class u1 extends Id{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=wd(r.id,r.styles);for(let s=0;s{class n extends _v{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(A(Bt))},n.\u0275prov=$({token:n,factory:n.\u0275fac}),n})();const Iv=["alt","control","meta","shift"],f1={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},h1={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let p1=(()=>{class n extends _v{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const o=n.parseEventName(i),s=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ji().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=n._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),Iv.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let r=f1[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Iv.forEach(s=>{s!==r&&(0,h1[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{n.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(A(Bt))},n.\u0275prov=$({token:n,factory:n.\u0275fac}),n})();const Mv=[{provide:zu,useValue:"browser"},{provide:v_,useValue:function m1(){Ed.makeCurrent()},multi:!0},{provide:Bt,useFactory:function y1(){return function fw(n){Nc=n}(document),document},deps:[]}],_1=M_(ix,"browser",Mv),Av=new P(""),xv=[{provide:ga,useClass:class t1{addToWindow(t){he.getAngularTestability=(i,r=!0)=>{const o=t.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},he.getAllAngularTestabilities=()=>t.getAllTestabilities(),he.getAllAngularRootElements=()=>t.getAllRootElements(),he.frameworkStabilizers||(he.frameworkStabilizers=[]),he.frameworkStabilizers.push(i=>{const r=he.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,i){return null==e?null:t.getTestability(e)??(i?ji().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},deps:[]},{provide:w_,useClass:Ku,deps:[Ie,Qu,ga]},{provide:Ku,useClass:Ku,deps:[Ie,Qu,ga]}],Pv=[{provide:Uc,useValue:"root"},{provide:fr,useFactory:function g1(){return new fr},deps:[]},{provide:Ra,useClass:d1,multi:!0,deps:[Bt,Ie,zu]},{provide:Ra,useClass:p1,multi:!0,deps:[Bt]},{provide:La,useClass:La,deps:[Fa,jo,Po]},{provide:po,useExisting:La},{provide:vv,useExisting:jo},{provide:jo,useClass:jo,deps:[Bt]},{provide:Fa,useClass:Fa,deps:[Ra,Ie]},{provide:dv,useClass:n1,deps:[]},[]];let Ov=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:Po,useValue:e.appId},{provide:yv,useExisting:Po},e1]}}}return n.\u0275fac=function(e){return new(e||n)(A(Av,12))},n.\u0275mod=ke({type:n}),n.\u0275inj=xe({providers:[...Pv,...xv],imports:[Mt,rx]}),n})();function Ad(n,t){return function(i){return i.lift(new M1(n,t))}}typeof window<"u"&&window;class M1{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new A1(t,this.predicate,this.thisArg))}}class A1 extends Se{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}const x1=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})(),xd=new ve(n=>n.complete());function Fv(n){return n?function P1(n){return new ve(t=>n.schedule(()=>t.complete()))}(n):xd}function Pd(n){return t=>0===n?Fv():t.lift(new O1(n))}class O1{constructor(t){if(this.total=t,this.total<0)throw new x1}call(t,e){return e.subscribe(new N1(t,this.total))}}class N1 extends Se{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}class R1 extends Tn{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new gi;return this._value}next(t){super.next(this._value=t)}}function ka(n,t){return new ve(e=>{const i=n.length;if(0===i)return void e.complete();const r=new Array(i);let o=0,s=0;for(let a=0;a{c||(c=!0,s++),r[a]=u},error:u=>e.error(u),complete:()=>{o++,(o===i||!c)&&(s===i&&e.next(t?t.reduce((u,d,f)=>(u[d]=r[f],u),{}):r),e.complete())}}))}})}let Lv=(()=>{class n{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(b(ei),b(ut))},n.\u0275dir=k({type:n}),n})(),Vi=(()=>{class n extends Lv{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=function Ye(n){return Zn(()=>{const t=n.prototype.constructor,e=t[An]||lc(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const o=r[An]||lc(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}(n)))(i||n)}}(),n.\u0275dir=k({type:n,features:[le]}),n})();const un=new P("NgValueAccessor"),k1={provide:un,useExisting:ce(()=>Vo),multi:!0},V1=new P("CompositionEventMode");let Vo=(()=>{class n extends Lv{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function j1(){const n=ji()?ji().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(b(ei),b(ut),b(V1,8))},n.\u0275dir=k({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&J("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[de([k1]),le]}),n})();function oi(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function jv(n){return null!=n&&"number"==typeof n.length}const Ge=new P("NgValidators"),si=new P("NgAsyncValidators"),H1=/^(?=.{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])?)*$/;class ja{static min(t){return function Vv(n){return t=>{if(oi(t.value)||oi(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(oi(t.value)||oi(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function Hv(n){return oi(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function Uv(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function $v(n){return oi(n.value)||H1.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function zv(n){return t=>oi(t.value)||!jv(t.value)?null:t.value.lengthjv(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function Gv(n){if(!n)return Va;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(oi(i.value))return null;const r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return Xv(t)}static composeAsync(t){return Jv(t)}}function Va(n){return null}function qv(n){return null!=n}function Kv(n){return ra(n)?yi(n):n}function Qv(n){let t={};return n.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function Yv(n,t){return t.map(e=>e(n))}function Zv(n){return n.map(t=>function U1(n){return!n.validate}(t)?t:e=>t.validate(e))}function Xv(n){if(!n)return null;const t=n.filter(qv);return 0==t.length?null:function(e){return Qv(Yv(e,t))}}function Od(n){return null!=n?Xv(Zv(n)):null}function Jv(n){if(!n)return null;const t=n.filter(qv);return 0==t.length?null:function(e){return function F1(...n){if(1===n.length){const t=n[0];if(Kt(t))return ka(t,null);if(Tl(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return ka(e.map(i=>t[i]),e)}}if("function"==typeof n[n.length-1]){const t=n.pop();return ka(n=1===n.length&&Kt(n[0])?n[0]:n,null).pipe(mt(e=>t(...e)))}return ka(n,null)}(Yv(e,t).map(Kv)).pipe(mt(Qv))}}function Nd(n){return null!=n?Jv(Zv(n)):null}function eb(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function tb(n){return n._rawValidators}function nb(n){return n._rawAsyncValidators}function Rd(n){return n?Array.isArray(n)?n:[n]:[]}function Ba(n,t){return Array.isArray(n)?n.includes(t):n===t}function ib(n,t){const e=Rd(t);return Rd(n).forEach(r=>{Ba(e,r)||e.push(r)}),e}function rb(n,t){return Rd(t).filter(e=>!Ba(n,e))}class ob{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Od(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Nd(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class ht extends ob{get formDirective(){return null}get path(){return null}}class ai extends ob{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class sb{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Fd=(()=>{class n extends sb{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(b(ai,2))},n.\u0275dir=k({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&bo("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[le]}),n})(),Ld=(()=>{class n extends sb{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(b(ht,10))},n.\u0275dir=k({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&bo("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[le]}),n})();const Bo="VALID",Ua="INVALID",kr="PENDING",Ho="DISABLED";function Bd(n){return($a(n)?n.validators:n)||null}function Hd(n,t){return($a(t)?t.asyncValidators:n)||null}function $a(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class ub{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(e)}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 valid(){return this.status===Bo}get invalid(){return this.status===Ua}get pending(){return this.status==kr}get disabled(){return this.status===Ho}get enabled(){return this.status!==Ho}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(ib(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(ib(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(rb(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(rb(t,this._rawAsyncValidators))}hasValidator(t){return Ba(this._rawValidators,t)}hasAsyncValidator(t){return Ba(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=kr,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Ho,this.errors=null,this._forEachChild(i=>{i.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Bo,this._forEachChild(i=>{i.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Bo||this.status===kr)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ho:Bo}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=kr,this._hasOwnPendingAsyncValidator=!0;const e=Kv(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){let e=t;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Y,this.statusChanges=new Y}_calculateStatus(){return this._allControlsDisabled()?Ho:this.errors?Ua:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(kr)?kr:this._anyControlsHaveStatus(Ua)?Ua:Bo}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){$a(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function Q1(n){return Array.isArray(n)?Od(n):n||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function Y1(n){return Array.isArray(n)?Nd(n):n||null}(this._rawAsyncValidators)}}class Uo extends ub{constructor(t,e,i){super(Bd(e),Hd(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){(function cb(n,t,e){n._forEachChild((i,r)=>{if(void 0===e[r])throw new D(1002,"")})})(this,0,t),Object.keys(t).forEach(i=>{(function lb(n,t,e){const i=n.controls;if(!(t?Object.keys(i):i).length)throw new D(1e3,"");if(!i[e])throw new D(1001,"")})(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{const r=this.controls[i];r&&r.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const 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}}const jr=new P("CallSetDisabledState",{providedIn:"root",factory:()=>za}),za="always";function Wa(n,t){return[...t.path,n]}function $o(n,t,e=za){Ud(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||"always"===e)&&t.valueAccessor.setDisabledState?.(n.disabled),function J1(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&db(n,t)})}(n,t),function tO(n,t){const e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function eO(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&db(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function X1(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function Ga(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),Ka(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function qa(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Ud(n,t){const e=tb(n);null!==t.validator?n.setValidators(eb(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=nb(n);null!==t.asyncValidator?n.setAsyncValidators(eb(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();qa(t._rawValidators,r),qa(t._rawAsyncValidators,r)}function Ka(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=tb(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.validator);o.length!==r.length&&(e=!0,n.setValidators(o))}}if(null!==t.asyncValidator){const r=nb(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.asyncValidator);o.length!==r.length&&(e=!0,n.setAsyncValidators(o))}}}const i=()=>{};return qa(t._rawValidators,i),qa(t._rawAsyncValidators,i),e}function db(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function zd(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function Wd(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(o=>{o.constructor===Vo?e=o:function rO(n){return Object.getPrototypeOf(n.constructor)===Vi}(o)?i=o:r=o}),r||i||e||null}function pb(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function mb(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const Wo=class extends ub{constructor(t=null,e,i){super(Bd(e),Hd(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),$a(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=mb(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){pb(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){pb(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){mb(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}},cO={provide:ai,useExisting:ce(()=>qd)},_b=(()=>Promise.resolve())();let qd=(()=>{class n extends ai{constructor(e,i,r,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new Wo,this._registered=!1,this.update=new Y,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=Wd(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),zd(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){$o(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){_b.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&function id(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}(i);_b.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Wa(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(b(ht,9),b(Ge,10),b(si,10),b(un,10),b(Li,8),b(jr,8))},n.\u0275dir=k({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[de([cO]),le,hn]}),n})(),Kd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=k({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})(),bb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ke({type:n}),n.\u0275inj=xe({}),n})();const Qd=new P("NgModelWithFormControlWarning"),mO={provide:ht,useExisting:ce(()=>Go)};let Go=(()=>{class n extends ht{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Y,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ka(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return $o(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){Ga(e.control||null,e,!1),function oO(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,function hb(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(Ga(i||null,e),(n=>n instanceof Wo)(r)&&($o(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);(function fb(n,t){Ud(n,t)})(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function nO(n,t){return Ka(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ud(this.form,this),this._oldForm&&Ka(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(b(Ge,10),b(si,10),b(jr,8))},n.\u0275dir=k({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&J("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[de([mO]),le,hn]}),n})();const _O={provide:ai,useExisting:ce(()=>Qa)};let Qa=(()=>{class n extends ai{set isDisabled(e){}constructor(e,i,r,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new Y,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=Wd(0,o)}ngOnChanges(e){this._added||this._setUpControl(),zd(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Wa(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(b(ht,13),b(Ge,10),b(si,10),b(un,10),b(Qd,8))},n.\u0275dir=k({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[de([_O]),le,hn]}),n})(),Lb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ke({type:n}),n.\u0275inj=xe({imports:[bb]}),n})(),kb=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:jr,useValue:e.callSetDisabledState??za}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ke({type:n}),n.\u0275inj=xe({imports:[Lb]}),n})(),jb=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Qd,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:jr,useValue:e.callSetDisabledState??za}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ke({type:n}),n.\u0275inj=xe({imports:[Lb]}),n})();const RO=["editor"];let LO=(()=>{class n{constructor(e,i){this.ngZone=e,this.monacoPathConfig=i,this.isMonacoLoaded$=new R1(!1),this._monacoPath="assets/monaco-editor/min/vs",window.monacoEditorAlreadyInitialized?e.run(()=>this.isMonacoLoaded$.next(!0)):(window.monacoEditorAlreadyInitialized=!0,this.monacoPathConfig&&(this.monacoPath=this.monacoPathConfig),this.loadMonaco())}set monacoPath(e){e&&(this._monacoPath=e)}loadMonaco(){const e=()=>{let s=this._monacoPath;window.amdRequire=window.require;const a=!!this.nodeRequire,l=s.includes("http");a&&(window.require=this.nodeRequire,l||(s=window.require("path").resolve(window.__dirname,this._monacoPath))),window.amdRequire.config({paths:{vs:s}}),window.amdRequire(["vs/editor/editor.main"],()=>{this.ngZone.run(()=>this.isMonacoLoaded$.next(!0))},c=>console.error("Error loading monaco-editor: ",c))};if(window.amdRequire)return e();window.require&&(this.addElectronFixScripts(),this.nodeRequire=window.require);const o=document.createElement("script");o.type="text/javascript",o.src=`${this._monacoPath}/loader.js`,o.addEventListener("load",e),document.body.appendChild(o)}addElectronFixScripts(){const e=document.createElement("script"),i=document.createTextNode("self.module = undefined;"),r=document.createTextNode("self.process.browser = true;");e.appendChild(i),e.appendChild(r),document.body.appendChild(e)}}return n.\u0275fac=function(e){return new(e||n)(A(Ie),A("MONACO_PATH",8))},n.\u0275prov=$({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),kO=(()=>{class n{constructor(e){this.monacoLoader=e,this.init=new Y,this.onTouched=()=>{},this.onErrorStatusChange=()=>{},this.propagateChange=()=>{}}get model(){return this.editor&&this.editor.getModel()}get modelMarkers(){return this.model&&monaco.editor.getModelMarkers({resource:this.model.uri})}ngOnInit(){this.monacoLoader.isMonacoLoaded$.pipe(Ad(e=>e),Pd(1)).subscribe(()=>{this.initEditor()})}ngOnChanges(e){if(this.editor&&e.options&&!e.options.firstChange){const{language:i,theme:r,...o}=e.options.currentValue,{language:s,theme:a}=e.options.previousValue;s!==i&&monaco.editor.setModelLanguage(this.editor.getModel(),this.options&&this.options.language?this.options.language:"text"),a!==r&&monaco.editor.setTheme(r),this.editor.updateOptions(o)}if(this.editor&&e.uri){const i=e.uri.currentValue,r=e.uri.previousValue;if(r&&!i||!r&&i||i&&r&&i.path!==r.path){const o=this.editor.getValue();let s;this.modelUriInstance&&this.modelUriInstance.dispose(),i&&(s=monaco.editor.getModels().find(a=>a.uri.path===i.path)),this.modelUriInstance=s||monaco.editor.createModel(o,this.options.language||"text",this.uri),this.editor.setModel(this.modelUriInstance)}}}writeValue(e){this.value=e,this.editor&&e?this.editor.setValue(e):this.editor&&this.editor.setValue("")}registerOnChange(e){this.propagateChange=e}registerOnTouched(e){this.onTouched=e}validate(){return this.parsedError?{monaco:{value:this.parsedError.split("|")}}:null}registerOnValidatorChange(e){this.onErrorStatusChange=e}initEditor(){const e={value:[this.value].join("\n"),language:"text",automaticLayout:!0,scrollBeyondLastLine:!1,theme:"vc"};this.editor=monaco.editor.create(this.editorContent.nativeElement,this.options?{...e,...this.options}:e),this.registerEditorListeners(),this.init.emit(this.editor)}registerEditorListeners(){this.editor.onDidChangeModelContent(()=>{this.propagateChange(this.editor.getValue())}),this.editor.onDidChangeModelDecorations(()=>{const e=this.modelMarkers.map(({message:r})=>r).join("|");this.parsedError!==e&&(this.parsedError=e,this.onErrorStatusChange())}),this.editor.onDidBlurEditorText(()=>{this.onTouched()})}ngOnDestroy(){this.editor&&this.editor.dispose()}}return n.\u0275fac=function(e){return new(e||n)(b(LO))},n.\u0275cmp=gt({type:n,selectors:[["ngx-monaco-editor"]],viewQuery:function(e,i){if(1&e&&Fi(RO,7),2&e){let r;on(r=sn())&&(i.editorContent=r.first)}},inputs:{options:"options",uri:"uri"},outputs:{init:"init"},features:[de([{provide:un,useExisting:ce(()=>n),multi:!0},{provide:Ge,useExisting:ce(()=>n),multi:!0}]),hn],decls:4,vars:0,consts:[["fxFlex","",1,"editor-container"],["container",""],[1,"monaco-editor"],["editor",""]],template:function(e,i){1&e&&(R(0,"div",0,1),Oe(2,"div",2,3),W())},styles:[".monaco-editor[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0}.editor-container[_ngcontent-%COMP%]{overflow:hidden;position:relative;display:table;width:100%;height:100%;min-width:0}"],changeDetection:0}),n})(),tf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ke({type:n}),n.\u0275inj=xe({imports:[[]]}),n})();class jO extends _e{constructor(t,e){super()}schedule(t,e=0){return this}}class nf extends jO{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(o){i=!0,r=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let Vb=(()=>{class n{constructor(e,i=n.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return n.now=()=>Date.now(),n})();class En extends Vb{constructor(t,e=Vb.now){super(t,()=>En.delegate&&En.delegate!==this?En.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return En.delegate&&En.delegate!==this?En.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const rf=new class BO extends En{}(class VO extends nf{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}),HO=rf;function Ya(...n){let t=n[n.length-1];return Ml(t)?(n.pop(),xl(n,t)):Ol(n)}function Bb(n,t){return new ve(t?e=>t.schedule(UO,0,{error:n,subscriber:e}):e=>e.error(n))}function UO({error:n,subscriber:t}){t.error(n)}class $t{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return Ya(this.value);case"E":return Bb(this.error);case"C":return Fv()}throw new Error("unexpected notification kind value")}static createNext(t){return typeof t<"u"?new $t("N",t):$t.undefinedValueNotification}static createError(t){return new $t("E",void 0,t)}static createComplete(){return $t.completeNotification}}$t.completeNotification=new $t("C"),$t.undefinedValueNotification=new $t("N",void 0);class zO{constructor(t,e=0){this.scheduler=t,this.delay=e}call(t,e){return e.subscribe(new Za(t,this.scheduler,this.delay))}}class Za extends Se{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(Za.dispatch,this.delay,new WO(t,this.destination)))}_next(t){this.scheduleMessage($t.createNext(t))}_error(t){this.scheduleMessage($t.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage($t.createComplete()),this.unsubscribe()}}class WO{constructor(t,e){this.notification=t,this.destination=e}}class Xa extends Tn{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new GO(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;let s;if(this.closed)throw new gi;if(this.isStopped||this.hasError?s=_e.EMPTY:(this.observers.push(t),s=new Yf(this,t)),r&&t.add(t=new Za(t,r)),e)for(let a=0;ae&&(s=Math.max(s,o-e)),s>0&&r.splice(0,s),r}}class GO{constructor(t,e){this.time=t,this.value=e}}function Ja(n,t){return"function"==typeof t?e=>e.pipe(Ja((i,r)=>yi(n(i,r)).pipe(mt((o,s)=>t(i,o,r,s))))):e=>e.lift(new qO(n))}class qO{constructor(t){this.project=t}call(t,e){return e.subscribe(new KO(t,this.project))}}class KO extends cs{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const i=new ls(this),r=this.destination;r.add(i),this.innerSubscription=us(t,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const el={schedule(n,t){const e=setTimeout(n,t);return()=>clearTimeout(e)},scheduleBeforeRender(n){if(typeof window>"u")return el.schedule(n,0);if(typeof window.requestAnimationFrame>"u")return el.schedule(n,16);const t=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(t)}};let sf;function iN(n,t,e){let i=e;return function YO(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&t.some((r,o)=>!("*"===r||!function XO(n,t){if(!sf){const e=Element.prototype;sf=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&sf.call(n,t)}(n,r)||(i=o,0))),i}class oN{constructor(t,e){this.componentFactory=e.get(ur).resolveComponentFactory(t)}create(t){return new sN(this.componentFactory,t)}}class sN{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new Xa(1),this.events=this.eventEmitters.pipe(Ja(i=>ih(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(Ie),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=el.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{null!==this.componentRef?function JO(n,t){return n===t||n!=n&&t!=t}(e,this.getInputValue(t))&&(void 0!==e||!this.unchangedInputs.has(t))||(this.recordInputChange(t,e),this.unchangedInputs.delete(t),this.hasInputChanges=!0,this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=gn.create({providers:[],parent:this.injector}),i=function nN(n,t){const e=n.childNodes,i=t.map(()=>[]);let r=-1;t.some((o,s)=>"*"===o&&(r=s,!0));for(let o=0,s=e.length;o{this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:i,templateName:r})=>t.instance[i].pipe(mt(s=>({name:r,value:s}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}markViewForCheck(t){this.hasInputChanges&&(this.hasInputChanges=!1,t.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=el.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[t];if(i)return void(i.currentValue=e);const r=this.unchangedInputs.has(t),o=r?void 0:this.getInputValue(t);this.inputChanges[t]=new Dh(o,e,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class aN extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class Hb{}class cN{}const Bn="*";function uN(n,t){return{type:7,name:n,definitions:t,options:{}}}function Ub(n,t=null){return{type:4,styles:t,timings:n}}function $b(n,t=null){return{type:2,steps:n,options:t}}function tl(n){return{type:6,styles:n,offset:null}}function zb(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function Wb(n,t=null){return{type:8,animation:n,options:t}}function Gb(n,t=null){return{type:10,animation:n,options:t}}function qb(n){Promise.resolve().then(n)}class qo{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){qb(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class Kb{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const o=this.players.length;0==o?qb(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function Qb(n){return new D(3e3,!1)}function WN(){return typeof window<"u"&&typeof window.document<"u"}function lf(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function li(n){switch(n.length){case 0:return new qo;case 1:return n[0];default:return new Kb(n)}}function Yb(n,t,e,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),f=d==l,h=f&&c||new Map;u.forEach((p,m)=>{let y=m,_=p;if("offset"!==m)switch(y=t.normalizePropertyName(y,s),_){case"!":_=r.get(m);break;case Bn:_=o.get(m);break;default:_=t.normalizeStyleValue(m,y,_,s)}h.set(y,_)}),f||a.push(h),c=h,l=d}),s.length)throw function NN(n){return new D(3502,!1)}();return a}function cf(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&uf(e,"start",n)));break;case"done":n.onDone(()=>i(e&&uf(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&uf(e,"destroy",n)))}}function uf(n,t,e){const o=df(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),s=n._data;return null!=s&&(o._data=s),o}function df(n,t,e,i,r="",o=0,s){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function At(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function Zb(n){const t=n.indexOf(":");return[n.substring(1,t),n.slice(t+1)]}let ff=(n,t)=>!1,Xb=(n,t,e)=>[],Jb=null;function hf(n){const t=n.parentNode||n.host;return t===Jb?null:t}(lf()||typeof Element<"u")&&(WN()?(Jb=(()=>document.documentElement)(),ff=(n,t)=>{for(;t;){if(t===n)return!0;t=hf(t)}return!1}):ff=(n,t)=>n.contains(t),Xb=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let Hi=null,eD=!1;const tD=ff,nD=Xb;let iD=(()=>{class n{validateStyleProperty(e){return function qN(n){Hi||(Hi=function KN(){return typeof document<"u"?document.body:null}()||{},eD=!!Hi.style&&"WebkitAppearance"in Hi.style);let t=!0;return Hi.style&&!function GN(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in Hi.style,!t&&eD&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Hi.style)),t}(e)}matchesElement(e,i){return!1}containsElement(e,i){return tD(e,i)}getParentElement(e){return hf(e)}query(e,i,r){return nD(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new qo(r,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=$({token:n,factory:n.\u0275fac}),n})(),pf=(()=>{class n{}return n.NOOP=new iD,n})();const mf="ng-enter",nl="ng-leave",il="ng-trigger",rl=".ng-trigger",oD="ng-animating",gf=".ng-animating";function Hn(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:yf(parseFloat(t[1]),t[2])}function yf(n,t){return"s"===t?1e3*n:n}function ol(n,t,e){return n.hasOwnProperty("duration")?n:function ZN(n,t,e){let r,o=0,s="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(Qb()),{duration:0,delay:0,easing:""};r=yf(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=yf(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push(function dN(){return new D(3100,!1)}()),a=!0),o<0&&(t.push(function fN(){return new D(3101,!1)}()),a=!0),a&&t.splice(l,0,Qb())}return{duration:r,delay:o,easing:s}}(n,t,e)}function Ko(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function sD(n){const t=new Map;return Object.keys(n).forEach(e=>{t.set(e,n[e])}),t}function ci(n,t=new Map,e){if(e)for(let[i,r]of e)t.set(i,r);for(let[i,r]of n)t.set(i,r);return t}function lD(n,t,e){return e?t+":"+e+";":""}function cD(n){let t="";for(let e=0;e{const o=vf(r);e&&!e.has(r)&&e.set(r,n.style[o]),n.style[o]=i}),lf()&&cD(n))}function Ui(n,t){n.style&&(t.forEach((e,i)=>{const r=vf(i);n.style[r]=""}),lf()&&cD(n))}function Qo(n){return Array.isArray(n)?1==n.length?n[0]:$b(n):n}const _f=new RegExp("{{\\s*(.+?)\\s*}}","g");function uD(n){let t=[];if("string"==typeof n){let e;for(;e=_f.exec(n);)t.push(e[1]);_f.lastIndex=0}return t}function Yo(n,t,e){const i=n.toString(),r=i.replace(_f,(o,s)=>{let a=t[s];return null==a&&(e.push(function pN(n){return new D(3003,!1)}()),a=""),a.toString()});return r==i?n:r}function sl(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const eR=/-+([a-z0-9])/g;function vf(n){return n.replace(eR,(...t)=>t[1].toUpperCase())}function tR(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function xt(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function mN(n){return new D(3004,!1)}()}}function dD(n,t){return window.getComputedStyle(n)[t]}function aR(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function lR(n,t,e){if(":"==n[0]){const l=function cR(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*([=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function MN(n){return new D(3015,!1)}()),t;const r=i[1],o=i[2],s=i[3];t.push(fD(r,s));"<"==o[0]&&!("*"==r&&"*"==s)&&t.push(fD(s,r))}(i,e,t)):e.push(n),e}const ul=new Set(["true","1"]),dl=new Set(["false","0"]);function fD(n,t){const e=ul.has(n)||dl.has(n),i=ul.has(t)||dl.has(t);return(r,o)=>{let s="*"==n||n==r,a="*"==t||t==o;return!s&&e&&"boolean"==typeof r&&(s=r?ul.has(n):dl.has(n)),!a&&i&&"boolean"==typeof o&&(a=o?ul.has(t):dl.has(t)),s&&a}}const uR=new RegExp("s*:selfs*,?","g");function bf(n,t,e,i){return new dR(n).build(t,e,i)}class dR{constructor(t){this._driver=t}build(t,e,i){const r=new pR(e);return this._resetContextStyleTimingState(r),xt(this,Qo(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push(function yN(){return new D(3006,!1)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(function _N(){return new D(3007,!1)}())}),{type:7,name:t.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{uD(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(sl(o.values()),e.errors.push(function vN(n,t){return new D(3008,!1)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=xt(this,Qo(t.animation),e);return{type:1,matchers:aR(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:$i(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>xt(this,i,e)),options:$i(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const o=t.steps.map(s=>{e.currentTime=i;const a=xt(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:$i(t.options)}}visitAnimate(t,e){const i=function gR(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Df(ol(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Df(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=ol(e,t);return Df(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,o=t.styles?t.styles:tl({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=t.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=tl(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of r)"string"==typeof a?a===Bn?i.push(a):e.errors.push(new D(3002,!1)):i.push(sD(a));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(function DN(n,t,e,i,r){return new D(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),e.options&&function JN(n,t,e){const i=t.params||{},r=uD(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function hN(n){return new D(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function EN(){return new D(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=t.steps.map(_=>{const E=this._makeStyleAst(_,e);let g=null!=E.offset?E.offset:function mR(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;t=parseFloat(e.get("offset")),e.delete("offset")}return t}(E.styles),C=0;return null!=g&&(o++,C=E.offset=g),l=l||C<0||C>1,a=a||C0&&o{const g=f>0?E==h?1:f*E:s[E],C=g*y;e.currentTime=p+m.delay+C,m.duration=C,this._validateStyleAst(_,e),_.offset=g,i.styles.push(_)}),i}visitReference(t,e){return{type:8,animation:xt(this,Qo(t.animation),e),options:$i(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:$i(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:$i(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[o,s]=function fR(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(uR,"")),n=n.replace(/@\*/g,rl).replace(/@\w+/g,e=>rl+"-"+e.slice(1)).replace(/:animating/g,gf),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+o:o,At(e.collectedStyles,e.currentQuerySelector,new Map);const a=xt(this,Qo(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:$i(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function IN(){return new D(3013,!1)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:ol(t.timings,e.errors,!0);return{type:12,animation:xt(this,Qo(t.animation),e),timings:i,options:null}}}class pR{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function $i(n){return n?(n=Ko(n)).params&&(n.params=function hR(n){return n?Ko(n):null}(n.params)):n={},n}function Df(n,t,e){return{duration:n,delay:t,easing:e}}function Ef(n,t,e,i,r,o,s=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class fl{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const vR=new RegExp(":enter","g"),DR=new RegExp(":leave","g");function Sf(n,t,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new ER).buildKeyframes(n,t,e,i,r,o,s,a,l,c)}class ER{buildKeyframes(t,e,i,r,o,s,a,l,c,u=[]){c=c||new fl;const d=new Cf(t,e,c,r,o,u,[]);d.options=l;const f=l.delay?Hn(l.delay):0;d.currentTimeline.delayNextStep(f),d.currentTimeline.setStyles([s],null,d.errors,l),xt(this,i,d);const h=d.timelines.filter(p=>p.containsAnimation());if(h.length&&a.size){let p;for(let m=h.length-1;m>=0;m--){const y=h[m];if(y.element===e){p=y;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return h.length?h.map(p=>p.buildKeyframes()):[Ef(e,[],[],[],0,f,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,i),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,i){for(const r of t){const o=r?.delay;if(o){const s="number"==typeof o?o:Hn(Yo(o,r?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(t,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?Hn(i.duration):null,a=null!=i.delay?Hn(i.delay):null;return 0!==s&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),xt(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const o=t.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=hl);const s=Hn(o.delay);r.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>xt(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const o=t.options&&t.options.delay?Hn(t.options.delay):0;t.steps.forEach(s=>{const a=e.createSubContext(t.options);o&&a.delayNextStep(o),xt(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return ol(e.params?Yo(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(o):i.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?Hn(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=hl);let s=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(t.options,c);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),xt(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,o=t.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;xt(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const hl={};class Cf{constructor(t,e,i,r,o,s,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=hl,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new pl(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=Hn(i.duration)),null!=i.delay&&(r.delay=Hn(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=Yo(o[a],s,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,o=new Cf(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=hl,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:e??t.duration,delay:this.currentTimeline.currentTime+(i??0)+t.delay,easing:""},o=new SR(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,o,s){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(vR,"."+this._enterClassName)).replace(DR,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function TN(n){return new D(3014,!1)}()),a}}class pl{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new pl(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Bn),this._currentKeyframe.set(e,Bn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function CR(n,t){const e=new Map;let i;return n.forEach(r=>{if("*"===r){i=i||t.keys();for(let o of i)e.set(o,Bn)}else ci(r,e)}),e}(t,this._globalTimelineStyles);for(let[a,l]of s){const c=Yo(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Bn),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=ci(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?t.add(d):u===Bn&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=t.size?sl(t.values()):[],s=e.size?sl(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return Ef(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class SR extends pl{constructor(t,e,i,r,o,s,a=!1){super(t,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=ci(t[0]);l.set("offset",0),o.push(l);const c=ci(t[0]);c.set("offset",mD(a)),o.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let f=ci(t[d]);const h=f.get("offset");f.set("offset",mD((e+h*i)/s)),o.push(f)}i=s,e=0,r="",t=o}return Ef(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function mD(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class wf{}const wR=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class IR extends wf{normalizePropertyName(t,e){return vf(t)}normalizeStyleValue(t,e,i,r){let o="";const s=i.toString().trim();if(wR.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function gN(n,t){return new D(3005,!1)}())}return s+o}}function gD(n,t,e,i,r,o,s,a,l,c,u,d,f){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:f}}const If={};class yD{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function TR(n,t,e,i,r){return n.some(o=>o(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){let r=this._stateStyles.get("*");return void 0!==t&&(r=this._stateStyles.get(t?.toString())||r),r?r.buildStyles(e,i):new Map}build(t,e,i,r,o,s,a,l,c,u){const d=[],f=this.ast.options&&this.ast.options.params||If,p=this.buildStyles(i,a&&a.params||If,d),m=l&&l.params||If,y=this.buildStyles(r,m,d),_=new Set,E=new Map,g=new Map,C="void"===r,ee={params:MR(m,f),delay:this.ast.options?.delay},ne=u?[]:Sf(t,e,this.ast.animation,o,s,p,y,ee,c,d);let nt=0;if(ne.forEach(Gn=>{nt=Math.max(Gn.duration+Gn.delay,nt)}),d.length)return gD(e,this._triggerName,i,r,C,p,y,[],[],E,g,nt,d);ne.forEach(Gn=>{const qn=Gn.element,TE=At(E,qn,new Set);Gn.preStyleProps.forEach(Wi=>TE.add(Wi));const is=At(g,qn,new Set);Gn.postStyleProps.forEach(Wi=>is.add(Wi)),qn!==e&&_.add(qn)});const Wn=sl(_.values());return gD(e,this._triggerName,i,r,C,p,y,ne,Wn,E,g,nt)}}function MR(n,t){const e=Ko(t);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}class AR{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i=new Map,r=Ko(this.defaultParams);return Object.keys(t).forEach(o=>{const s=t[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=Yo(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(a,s)})}),i}}class PR{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new AR(r.style,r.options&&r.options.params||{},i))}),_D(this.states,"true","1"),_D(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new yD(t,r,this.states))}),this.fallbackTransition=function OR(n,t,e){return new yD(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(s=>s.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function _D(n,t,e){n.has(t)?n.has(e)||n.set(e,n.get(t)):n.has(e)&&n.set(t,n.get(e))}const NR=new fl;class RR{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){const i=[],o=bf(this._driver,e,i,[]);if(i.length)throw function RN(n){return new D(3503,!1)}();this._animations.set(t,o)}_buildPlayer(t,e,i){const r=t.element,o=Yb(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],o=this._animations.get(t);let s;const a=new Map;if(o?(s=Sf(this._driver,e,o,mf,nl,new Map,new Map,i,NR,r),s.forEach(u=>{const d=At(a,u.element,new Map);u.postStyleProps.forEach(f=>d.set(f,null))})):(r.push(function FN(){return new D(3300,!1)}()),s=[]),r.length)throw function LN(n){return new D(3504,!1)}();a.forEach((u,d)=>{u.forEach((f,h)=>{u.set(h,this._driver.computeStyle(d,h,Bn))})});const c=li(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(t,c),c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById.get(t);if(!e)throw function kN(n){return new D(3301,!1)}();return e}listen(t,e,i,r){const o=df(e,"","","");return cf(this._getPlayer(t),i,o,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const o=this._getPlayer(t);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const vD="ng-animate-queued",Tf="ng-animate-disabled",VR=[],bD={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},BR={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},zt="__ng_removed";class Mf{get params(){return this.options.params}constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function zR(n){return n??null}(i?t.value:t),i){const o=Ko(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Zo="void",Af=new Mf(Zo);class HR{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Wt(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.has(e))throw function jN(n,t){return new D(3302,!1)}();if(null==i||0==i.length)throw function VN(n){return new D(3303,!1)}();if(!function WR(n){return"start"==n||"done"==n}(i))throw function BN(n,t){return new D(3400,!1)}();const o=At(this._elementListeners,t,[]),s={name:e,phase:i,callback:r};o.push(s);const a=At(this._engine.statesByElement,t,new Map);return a.has(e)||(Wt(t,il),Wt(t,il+"-"+e),a.set(e,Af)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(t,e){return!this._triggers.has(t)&&(this._triggers.set(t,e),!0)}_getTrigger(t){const e=this._triggers.get(t);if(!e)throw function HN(n){return new D(3401,!1)}();return e}trigger(t,e,i,r=!0){const o=this._getTrigger(e),s=new xf(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(Wt(t,il),Wt(t,il+"-"+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e);const c=new Mf(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=Af),c.value!==Zo&&l.value===c.value){if(!function KR(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r{Ui(t,y),Sn(t,_)})}return}const f=At(this._engine.playersByElement,t,[]);f.forEach(m=>{m.namespaceId==this.id&&m.triggerName==e&&m.queued&&m.destroy()});let h=o.matchTransition(l.value,c.value,t,c.params),p=!1;if(!h){if(!r)return;h=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(Wt(t,vD),s.onStart(()=>{Vr(t,vD)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);const y=this._engine.playersByElement.get(t);if(y){let _=y.indexOf(s);_>=0&&y.splice(_,1)}}),this.players.push(s),f.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,rl,!0);i.forEach(r=>{if(r[zt])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const o=this._engine.statesByElement.get(t),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(t,c,Zo,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,s),i&&li(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||Af,u=new Mf(Zo),d=new xf(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else{let s=t;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const o=t[zt];(!o||o===bD)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Wt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=df(o,i.triggerName,i.fromState.value,i.toState.value);l._data=t,cf(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class UR{_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new HR(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(t,e,i,r){if(ml(e)){const o=this._fetchNamespace(t);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!ml(e))return;const o=e[zt];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Wt(t,Tf)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Vr(t,Tf))}removeNode(t,e,i,r){if(ml(e)){const o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,o){this.collectedLeaveElements.push(e),e[zt]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,e,i,r,o){return ml(e)?this._fetchNamespace(t).listen(e,i,r,o):()=>{}}_buildInstruction(t,e,i,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,rl,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,gf,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return li(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[zt];if(e&&e.setForRemoval){if(t[zt]=bD,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(Tf)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?li(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function UN(n){return new D(3402,!1)}()}_flushAnimations(t,e){const i=new fl,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(T=>{u.add(T);const x=this.driver.query(T,".ng-animate-queued",!0);for(let L=0;L{const L=mf+m++;p.set(x,L),T.forEach(te=>Wt(te,L))});const y=[],_=new Set,E=new Set;for(let T=0;T_.add(te)):E.add(x))}const g=new Map,C=SD(f,Array.from(_));C.forEach((T,x)=>{const L=nl+m++;g.set(x,L),T.forEach(te=>Wt(te,L))}),t.push(()=>{h.forEach((T,x)=>{const L=p.get(x);T.forEach(te=>Vr(te,L))}),C.forEach((T,x)=>{const L=g.get(x);T.forEach(te=>Vr(te,L))}),y.forEach(T=>{this.processLeaveNode(T)})});const ee=[],ne=[];for(let T=this._namespaceList.length-1;T>=0;T--)this._namespaceList[T].drainQueuedTransitions(e).forEach(L=>{const te=L.player,Ue=L.element;if(ee.push(te),this.collectedEnterElements.length){const it=Ue[zt];if(it&&it.setForMove){if(it.previousTriggersValues&&it.previousTriggersValues.has(L.triggerName)){const Gi=it.previousTriggersValues.get(L.triggerName),Gt=this.statesByElement.get(L.element);if(Gt&&Gt.has(L.triggerName)){const Il=Gt.get(L.triggerName);Il.value=Gi,Gt.set(L.triggerName,Il)}}return void te.destroy()}}const wn=!d||!this.driver.containsElement(d,Ue),Ot=g.get(Ue),pi=p.get(Ue),Ee=this._buildInstruction(L,i,pi,Ot,wn);if(Ee.errors&&Ee.errors.length)return void ne.push(Ee);if(wn)return te.onStart(()=>Ui(Ue,Ee.fromStyles)),te.onDestroy(()=>Sn(Ue,Ee.toStyles)),void r.push(te);if(L.isFallbackTransition)return te.onStart(()=>Ui(Ue,Ee.fromStyles)),te.onDestroy(()=>Sn(Ue,Ee.toStyles)),void r.push(te);const xE=[];Ee.timelines.forEach(it=>{it.stretchStartingKeyframe=!0,this.disabledNodes.has(it.element)||xE.push(it)}),Ee.timelines=xE,i.append(Ue,Ee.timelines),s.push({instruction:Ee,player:te,element:Ue}),Ee.queriedElements.forEach(it=>At(a,it,[]).push(te)),Ee.preStyleProps.forEach((it,Gi)=>{if(it.size){let Gt=l.get(Gi);Gt||l.set(Gi,Gt=new Set),it.forEach((Il,zf)=>Gt.add(zf))}}),Ee.postStyleProps.forEach((it,Gi)=>{let Gt=c.get(Gi);Gt||c.set(Gi,Gt=new Set),it.forEach((Il,zf)=>Gt.add(zf))})});if(ne.length){const T=[];ne.forEach(x=>{T.push(function $N(n,t){return new D(3505,!1)}())}),ee.forEach(x=>x.destroy()),this.reportError(T)}const nt=new Map,Wn=new Map;s.forEach(T=>{const x=T.element;i.has(x)&&(Wn.set(x,x),this._beforeAnimationBuild(T.player.namespaceId,T.instruction,nt))}),r.forEach(T=>{const x=T.element;this._getPreviousPlayers(x,!1,T.namespaceId,T.triggerName,null).forEach(te=>{At(nt,x,[]).push(te),te.destroy()})});const Gn=y.filter(T=>wD(T,l,c)),qn=new Map;ED(qn,this.driver,E,c,Bn).forEach(T=>{wD(T,l,c)&&Gn.push(T)});const is=new Map;h.forEach((T,x)=>{ED(is,this.driver,new Set(T),l,"!")}),Gn.forEach(T=>{const x=qn.get(T),L=is.get(T);qn.set(T,new Map([...Array.from(x?.entries()??[]),...Array.from(L?.entries()??[])]))});const Wi=[],ME=[],AE={};s.forEach(T=>{const{element:x,player:L,instruction:te}=T;if(i.has(x)){if(u.has(x))return L.onDestroy(()=>Sn(x,te.toStyles)),L.disabled=!0,L.overrideTotalTime(te.totalTime),void r.push(L);let Ue=AE;if(Wn.size>1){let Ot=x;const pi=[];for(;Ot=Ot.parentNode;){const Ee=Wn.get(Ot);if(Ee){Ue=Ee;break}pi.push(Ot)}pi.forEach(Ee=>Wn.set(Ee,Ue))}const wn=this._buildAnimation(L.namespaceId,te,nt,o,is,qn);if(L.setRealPlayer(wn),Ue===AE)Wi.push(L);else{const Ot=this.playersByElement.get(Ue);Ot&&Ot.length&&(L.parentPlayer=li(Ot)),r.push(L)}}else Ui(x,te.fromStyles),L.onDestroy(()=>Sn(x,te.toStyles)),ME.push(L),u.has(x)&&r.push(L)}),ME.forEach(T=>{const x=o.get(T.element);if(x&&x.length){const L=li(x);T.setRealPlayer(L)}}),r.forEach(T=>{T.parentPlayer?T.syncPlayerEvents(T.parentPlayer):T.destroy()});for(let T=0;T!wn.destroyed);Ue.length?GR(this,x,Ue):this.processLeaveNode(x)}return y.length=0,Wi.forEach(T=>{this.players.push(T),T.onDone(()=>{T.destroy();const x=this.players.indexOf(T);this.players.splice(x,1)}),T.play()}),Wi}elementContainsData(t,e){let i=!1;const r=e[zt];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const l=!o||o==Zo;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(t,e,i){const o=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,d=At(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(h=>{const p=h.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),h.destroy(),d.push(h)})}Ui(o,e.fromStyles)}_buildAnimation(t,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,f=e.timelines.map(p=>{const m=p.element;u.add(m);const y=m[zt];if(y&&y.removedBeforeQueried)return new qo(p.duration,p.delay);const _=m!==l,E=function qR(n){const t=[];return CD(n,t),t}((i.get(m)||VR).map(nt=>nt.getRealPlayer())).filter(nt=>!!nt.element&&nt.element===m),g=o.get(m),C=s.get(m),ee=Yb(0,this._normalizer,0,p.keyframes,g,C),ne=this._buildPlayer(p,ee,E);if(p.subTimeline&&r&&d.add(m),_){const nt=new xf(t,a,m);nt.setRealPlayer(ne),c.push(nt)}return ne});c.forEach(p=>{At(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function $R(n,t,e){let i=n.get(t);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Wt(p,oD));const h=li(f);return h.onDestroy(()=>{u.forEach(p=>Vr(p,oD)),Sn(l,e.toStyles)}),d.forEach(p=>{At(r,p,[]).push(h)}),h}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new qo(t.duration,t.delay)}}class xf{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new qo,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>cf(t,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){At(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function ml(n){return n&&1===n.nodeType}function DD(n,t){const e=n.style.display;return n.style.display=t??"none",e}function ED(n,t,e,i,r){const o=[];e.forEach(l=>o.push(DD(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const f=t.computeStyle(c,d,r);u.set(d,f),(!f||0==f.length)&&(c[zt]=BR,s.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>DD(l,o[a++])),s}function SD(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return t.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}function Wt(n,t){n.classList?.add(t)}function Vr(n,t){n.classList?.remove(t)}function GR(n,t,e){li(e).onDone(()=>n.processLeaveNode(t))}function CD(n,t){for(let e=0;er.add(o)):t.set(n,i),e.delete(n),!0}class gl{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new UR(t,e,i),this._timelineEngine=new RR(t,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(t,e,i,r,o){const s=t+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],u=bf(this._driver,o,l,[]);if(l.length)throw function ON(n,t){return new D(3404,!1)}();a=function xR(n,t,e){return new PR(n,t,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[o,s]=Zb(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=Zb(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(t,e,i,r,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let YR=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=n.initialStylesByElement.get(e);o||n.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Sn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Sn(this._element,this._initialStyles),this._endStyles&&(Sn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Ui(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ui(this._element,this._endStyles),this._endStyles=null),Sn(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function Pf(n){let t=null;return n.forEach((e,i)=>{(function ZR(n){return"display"===n||"position"===n})(i)&&(t=t||new Map,t.set(i,e))}),t}class ID{constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){const e=[];return t.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(t,e,i){return t.animate(this._convertKeyframesToObject(e),i)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&t.set(r,this._finished?i:dD(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class XR{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return tD(t,e)}getParentElement(t){return hf(t)}query(t,e,i){return nD(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(h=>h instanceof ID);(function nR(n,t){return 0===n||0===t})(i,r)&&u.forEach(h=>{h.currentSnapshot.forEach((p,m)=>c.set(m,p))});let d=function XN(n){return n.length?n[0]instanceof Map?n:n.map(t=>sD(t)):[]}(e).map(h=>ci(h));d=function iR(n,t,e){if(e.size&&t.length){let i=t[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,dD(n,a)))}}return t}(t,d,c);const f=function QR(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=Pf(t[0]),t.length>1&&(i=Pf(t[t.length-1]))):t instanceof Map&&(e=Pf(t)),e||i?new YR(n,e,i):null}(t,d);return new ID(t,d,l,f)}}let JR=(()=>{class n extends Hb{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Yt.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?$b(e):e;return TD(this._renderer,null,i,"register",[r]),new eF(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(A(po),A(Bt))},n.\u0275prov=$({token:n,factory:n.\u0275fac}),n})();class eF extends cN{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new tF(this._id,t,e||{},this._renderer)}}class tF{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return TD(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function TD(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const MD="@.disabled";let nF=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new AD("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,e,u.name,u)};return i.data.animation.forEach(l),new iF(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(e){return new(e||n)(A(po),A(gl),A(Ie))},n.\u0275prov=$({token:n,factory:n.\u0275fac}),n})();class AD{constructor(t,e,i,r){this.namespaceId=t,this.delegate=e,this.engine=i,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==MD?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class iF extends AD{constructor(t,e,i,r,o){super(e,i,r,o),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==MD?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function rF(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function oF(n){const t=n.indexOf(".");return[n.substring(0,t),n.slice(t+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}let sF=(()=>{class n extends gl{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(A(Bt),A(pf),A(wf),A(Oo))},n.\u0275prov=$({token:n,factory:n.\u0275fac}),n})();const xD=[{provide:Hb,useClass:JR},{provide:wf,useFactory:function aF(){return new IR}},{provide:gl,useClass:sF},{provide:po,useFactory:function lF(n,t,e){return new nF(n,t,e)},deps:[La,gl,Ie]}],Of=[{provide:pf,useFactory:()=>new XR},{provide:b_,useValue:"BrowserAnimations"},...xD],PD=[{provide:pf,useClass:iD},{provide:b_,useValue:"NoopAnimations"},...xD];let cF=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?PD:Of}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ke({type:n}),n.\u0275inj=xe({providers:Of,imports:[Ov]}),n})();class _l{}class Nf{}class Un{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Un?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Un;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Un?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=t.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class dF{encodeKey(t){return OD(t)}encodeValue(t){return OD(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const hF=/%(\d[a-f0-9])/gi,pF={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function OD(n){return encodeURIComponent(n).replace(hF,(t,e)=>pF[e]??t)}function vl(n){return`${n}`}class ui{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new dF,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function fF(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e],r=Array.isArray(i)?i.map(vl):[vl(i)];this.map.set(e,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new ui({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(vl(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(vl(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class mF{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function ND(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function RD(n){return typeof Blob<"u"&&n instanceof Blob}function FD(n){return typeof FormData<"u"&&n instanceof FormData}class Xo{constructor(t,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function gF(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Un),this.context||(this.context=new mF),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ad.set(f,t.setHeaders[f]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((d,f)=>d.set(f,t.setParams[f]),c)),new Xo(e,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var Fe=(()=>((Fe=Fe||{})[Fe.Sent=0]="Sent",Fe[Fe.UploadProgress=1]="UploadProgress",Fe[Fe.ResponseHeader=2]="ResponseHeader",Fe[Fe.DownloadProgress=3]="DownloadProgress",Fe[Fe.Response=4]="Response",Fe[Fe.User=5]="User",Fe))();class Rf{constructor(t,e=200,i="OK"){this.headers=t.headers||new Un,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Ff extends Rf{constructor(t={}){super(t),this.type=Fe.ResponseHeader}clone(t={}){return new Ff({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class bl extends Rf{constructor(t={}){super(t),this.type=Fe.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new bl({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class LD extends Rf{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Lf(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let kD=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Xo)o=e;else{let l,c;l=r.headers instanceof Un?r.headers:new Un(r.headers),r.params&&(c=r.params instanceof ui?r.params:new ui({fromObject:r.params})),o=new Xo(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=Ya(o).pipe(function uF(n,t){return Pl(n,t,1)}(l=>this.handler.handle(l)));if(e instanceof Xo||"events"===r.observe)return s;const a=s.pipe(Ad(l=>l instanceof bl));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(mt(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(mt(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(mt(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(mt(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new ui).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,Lf(r,i))}post(e,i,r={}){return this.request("POST",e,Lf(r,i))}put(e,i,r={}){return this.request("PUT",e,Lf(r,i))}}return n.\u0275fac=function(e){return new(e||n)(A(_l))},n.\u0275prov=$({token:n,factory:n.\u0275fac}),n})();function jD(n,t){return t(n)}function _F(n,t){return(e,i)=>t.intercept(e,{handle:r=>n(r,i)})}const bF=new P("HTTP_INTERCEPTORS"),Jo=new P("HTTP_INTERCEPTOR_FNS");function DF(){let n=null;return(t,e)=>(null===n&&(n=(Yn(bF,{optional:!0})??[]).reduceRight(_F,jD)),n(t,e))}let VD=(()=>{class n extends _l{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=Array.from(new Set(this.injector.get(Jo)));this.chain=i.reduceRight((r,o)=>function vF(n,t,e){return(i,r)=>e.runInContext(()=>t(i,o=>n(o,r)))}(r,o,this.injector),jD)}return this.chain(e,i=>this.backend.handle(i))}}return n.\u0275fac=function(e){return new(e||n)(A(Nf),A(Ii))},n.\u0275prov=$({token:n,factory:n.\u0275fac}),n})();const wF=/^\)\]\}',?\n/;let HD=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ve(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((h,p)=>r.setRequestHeader(h,p.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const h=e.detectContentTypeHeader();null!==h&&r.setRequestHeader("Content-Type",h)}if(e.responseType){const h=e.responseType.toLowerCase();r.responseType="json"!==h?h:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const h=r.statusText||"OK",p=new Un(r.getAllResponseHeaders()),m=function IF(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new Ff({headers:p,status:r.status,statusText:h,url:m}),s},l=()=>{let{headers:h,status:p,statusText:m,url:y}=a(),_=null;204!==p&&(_=typeof r.response>"u"?r.responseText:r.response),0===p&&(p=_?200:0);let E=p>=200&&p<300;if("json"===e.responseType&&"string"==typeof _){const g=_;_=_.replace(wF,"");try{_=""!==_?JSON.parse(_):null}catch(C){_=g,E&&(E=!1,_={error:C,text:_})}}E?(i.next(new bl({body:_,headers:h,status:p,statusText:m,url:y||void 0})),i.complete()):i.error(new LD({error:_,headers:h,status:p,statusText:m,url:y||void 0}))},c=h=>{const{url:p}=a(),m=new LD({error:h,status:r.status||0,statusText:r.statusText||"Unknown Error",url:p||void 0});i.error(m)};let u=!1;const d=h=>{u||(i.next(a()),u=!0);let p={type:Fe.DownloadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),"text"===e.responseType&&r.responseText&&(p.partialText=r.responseText),i.next(p)},f=h=>{let p={type:Fe.UploadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),i.next(p)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==o&&r.upload&&r.upload.addEventListener("progress",f)),r.send(o),i.next({type:Fe.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==o&&r.upload&&r.upload.removeEventListener("progress",f)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(A(dv))},n.\u0275prov=$({token:n,factory:n.\u0275fac}),n})();const kf=new P("XSRF_ENABLED"),UD="XSRF-TOKEN",$D=new P("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>UD}),zD="X-XSRF-TOKEN",WD=new P("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>zD});class GD{}let TF=(()=>{class n{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=ev(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(A(Bt),A(zu),A($D))},n.\u0275prov=$({token:n,factory:n.\u0275fac}),n})();function MF(n,t){const e=n.url.toLowerCase();if(!Yn(kf)||"GET"===n.method||"HEAD"===n.method||e.startsWith("http://")||e.startsWith("https://"))return t(n);const i=Yn(GD).getToken(),r=Yn(WD);return null!=i&&!n.headers.has(r)&&(n=n.clone({headers:n.headers.set(r,i)})),t(n)}var Ae=(()=>((Ae=Ae||{})[Ae.Interceptors=0]="Interceptors",Ae[Ae.LegacyInterceptors=1]="LegacyInterceptors",Ae[Ae.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Ae[Ae.NoXsrfProtection=3]="NoXsrfProtection",Ae[Ae.JsonpSupport=4]="JsonpSupport",Ae[Ae.RequestsMadeViaParent=5]="RequestsMadeViaParent",Ae))();function Br(n,t){return{\u0275kind:n,\u0275providers:t}}function AF(...n){const t=[kD,HD,VD,{provide:_l,useExisting:VD},{provide:Nf,useExisting:HD},{provide:Jo,useValue:MF,multi:!0},{provide:kf,useValue:!0},{provide:GD,useClass:TF}];for(const e of n)t.push(...e.\u0275providers);return function Fw(n){return{\u0275providers:n}}(t)}const qD=new P("LEGACY_INTERCEPTOR_FN");function PF({cookieName:n,headerName:t}){const e=[];return void 0!==n&&e.push({provide:$D,useValue:n}),void 0!==t&&e.push({provide:WD,useValue:t}),Br(Ae.CustomXsrfConfiguration,e)}let OF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ke({type:n}),n.\u0275inj=xe({providers:[AF(Br(Ae.LegacyInterceptors,[{provide:qD,useFactory:DF},{provide:Jo,useExisting:qD,multi:!0}]),PF({cookieName:UD,headerName:zD}))]}),n})();const KD=["*"];let tt=(()=>{class n{}return n.STARTS_WITH="startsWith",n.CONTAINS="contains",n.NOT_CONTAINS="notContains",n.ENDS_WITH="endsWith",n.EQUALS="equals",n.NOT_EQUALS="notEquals",n.IN="in",n.LESS_THAN="lt",n.LESS_THAN_OR_EQUAL_TO="lte",n.GREATER_THAN="gt",n.GREATER_THAN_OR_EQUAL_TO="gte",n.BETWEEN="between",n.IS="is",n.IS_NOT="isNot",n.BEFORE="before",n.AFTER="after",n.DATE_IS="dateIs",n.DATE_IS_NOT="dateIsNot",n.DATE_BEFORE="dateBefore",n.DATE_AFTER="dateAfter",n})(),QD=(()=>{class n{constructor(){this.ripple=!1,this.overlayOptions={},this.filterMatchModeOptions={text:[tt.STARTS_WITH,tt.CONTAINS,tt.NOT_CONTAINS,tt.ENDS_WITH,tt.EQUALS,tt.NOT_EQUALS],numeric:[tt.EQUALS,tt.NOT_EQUALS,tt.LESS_THAN,tt.LESS_THAN_OR_EQUAL_TO,tt.GREATER_THAN,tt.GREATER_THAN_OR_EQUAL_TO],date:[tt.DATE_IS,tt.DATE_IS_NOT,tt.DATE_BEFORE,tt.DATE_AFTER]},this.translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",emptyFilterMessage:"No results found"},this.zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100},this.translationSource=new Tn,this.translationObserver=this.translationSource.asObservable()}getTranslation(e){return this.translation[e]}setTranslation(e){this.translation={...this.translation,...e},this.translationSource.next(this.translation)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=$({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),NF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=gt({type:n,selectors:[["p-header"]],ngContentSelectors:KD,decls:1,vars:0,template:function(e,i){1&e&&(Ai(),Ln(0))},encapsulation:2}),n})(),RF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=gt({type:n,selectors:[["p-footer"]],ngContentSelectors:KD,decls:1,vars:0,template:function(e,i){1&e&&(Ai(),Ln(0))},encapsulation:2}),n})(),YD=(()=>{class n{constructor(e){this.template=e}getType(){return this.name}}return n.\u0275fac=function(e){return new(e||n)(b(bn))},n.\u0275dir=k({type:n,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}}),n})(),FF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ke({type:n}),n.\u0275inj=xe({imports:[Mt]}),n})(),K=(()=>{class n{static addClass(e,i){e&&i&&(e.classList?e.classList.add(i):e.className+=" "+i)}static addMultipleClasses(e,i){if(e&&i)if(e.classList){let r=i.trim().split(" ");for(let o=0;o{if(m)return"relative"===getComputedStyle(m).getPropertyValue("position")?m:r(m.parentElement)},o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),s=i.offsetHeight,a=i.getBoundingClientRect(),l=this.getWindowScrollTop(),c=this.getWindowScrollLeft(),u=this.getViewport(),f=r(e)?.getBoundingClientRect()||{top:-1*l,left:-1*c};let h,p;a.top+s+o.height>u.height?(h=a.top-f.top-o.height,e.style.transformOrigin="bottom",a.top+h<0&&(h=-1*a.top)):(h=s+a.top-f.top,e.style.transformOrigin="top"),p=o.width>u.width?-1*(a.left-f.left):a.left-f.left+o.width>u.width?-1*(a.left-f.left+o.width-u.width):a.left-f.left,e.style.top=h+"px",e.style.left=p+"px"}static absolutePosition(e,i){const r=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),o=r.height,s=r.width,a=i.offsetHeight,l=i.offsetWidth,c=i.getBoundingClientRect(),u=this.getWindowScrollTop(),d=this.getWindowScrollLeft(),f=this.getViewport();let h,p;c.top+a+o>f.height?(h=c.top+u-o,e.style.transformOrigin="bottom",h<0&&(h=u)):(h=a+c.top+u,e.style.transformOrigin="top"),p=c.left+s>f.width?Math.max(0,c.left+d+l-s):c.left+d,e.style.top=h+"px",e.style.left=p+"px"}static getParents(e,i=[]){return null===e.parentNode?i:this.getParents(e.parentNode,i.concat([e.parentNode]))}static getScrollableParents(e){let i=[];if(e){let r=this.getParents(e);const o=/(auto|scroll)/,s=a=>{let l=window.getComputedStyle(a,null);return o.test(l.getPropertyValue("overflow"))||o.test(l.getPropertyValue("overflowX"))||o.test(l.getPropertyValue("overflowY"))};for(let a of r){let l=1===a.nodeType&&a.dataset.scrollselectors;if(l){let c=l.split(",");for(let u of c){let d=this.findSingle(a,u);d&&s(d)&&i.push(d)}}9!==a.nodeType&&s(a)&&i.push(a)}}return i}static getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let i=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",i}static getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let i=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",i}static getHiddenElementDimensions(e){let i={};return e.style.visibility="hidden",e.style.display="block",i.width=e.offsetWidth,i.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",i}static scrollInView(e,i){let r=getComputedStyle(e).getPropertyValue("borderTopWidth"),o=r?parseFloat(r):0,s=getComputedStyle(e).getPropertyValue("paddingTop"),a=s?parseFloat(s):0,l=e.getBoundingClientRect(),u=i.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-o-a,d=e.scrollTop,f=e.clientHeight,h=this.getOuterHeight(i);u<0?e.scrollTop=d+u:u+h>f&&(e.scrollTop=d+u-f+h)}static fadeIn(e,i){e.style.opacity=0;let r=+new Date,o=0,s=function(){o=+e.style.opacity.replace(",",".")+((new Date).getTime()-r)/i,e.style.opacity=o,r=+new Date,+o<1&&(window.requestAnimationFrame&&requestAnimationFrame(s)||setTimeout(s,16))};s()}static fadeOut(e,i){var r=1,a=50/i;let l=setInterval(()=>{(r-=a)<=0&&(r=0,clearInterval(l)),e.style.opacity=r},50)}static getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}static getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}static matches(e,i){var r=Element.prototype;return(r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector||function(s){return-1!==[].indexOf.call(document.querySelectorAll(s),this)}).call(e,i)}static getOuterWidth(e,i){let r=e.offsetWidth;if(i){let o=getComputedStyle(e);r+=parseFloat(o.marginLeft)+parseFloat(o.marginRight)}return r}static getHorizontalPadding(e){let i=getComputedStyle(e);return parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)}static getHorizontalMargin(e){let i=getComputedStyle(e);return parseFloat(i.marginLeft)+parseFloat(i.marginRight)}static innerWidth(e){let i=e.offsetWidth,r=getComputedStyle(e);return i+=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i}static width(e){let i=e.offsetWidth,r=getComputedStyle(e);return i-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i}static getInnerHeight(e){let i=e.offsetHeight,r=getComputedStyle(e);return i+=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),i}static getOuterHeight(e,i){let r=e.offsetHeight;if(i){let o=getComputedStyle(e);r+=parseFloat(o.marginTop)+parseFloat(o.marginBottom)}return r}static getHeight(e){let i=e.offsetHeight,r=getComputedStyle(e);return i-=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),i}static getWidth(e){let i=e.offsetWidth,r=getComputedStyle(e);return i-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight)+parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),i}static getViewport(){let e=window,i=document,r=i.documentElement,o=i.getElementsByTagName("body")[0];return{width:e.innerWidth||r.clientWidth||o.clientWidth,height:e.innerHeight||r.clientHeight||o.clientHeight}}static getOffset(e){var i=e.getBoundingClientRect();return{top:i.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:i.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(e,i){let r=e.parentNode;if(!r)throw"Can't replace element";return r.replaceChild(i,e)}static getUserAgent(){return navigator.userAgent}static isIE(){var e=window.navigator.userAgent;return e.indexOf("MSIE ")>0||(e.indexOf("Trident/")>0?(e.indexOf("rv:"),!0):e.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(e,i){if(this.isElement(i))i.appendChild(e);else{if(!i.el||!i.el.nativeElement)throw"Cannot append "+i+" to "+e;i.el.nativeElement.appendChild(e)}}static removeChild(e,i){if(this.isElement(i))i.removeChild(e);else{if(!i.el||!i.el.nativeElement)throw"Cannot remove "+e+" from "+i;i.el.nativeElement.removeChild(e)}}static removeElement(e){"remove"in Element.prototype?e.remove():e.parentNode.removeChild(e)}static isElement(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}static calculateScrollbarWidth(e){if(e){let i=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(i.borderLeftWidth)-parseFloat(i.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let i=document.createElement("div");i.className="p-scrollbar-measure",document.body.appendChild(i);let r=i.offsetWidth-i.clientWidth;return document.body.removeChild(i),this.calculatedScrollbarWidth=r,r}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let i=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=i,i}static invokeElementMethod(e,i,r){e[i].apply(e,r)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),i=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:i[1]||"",version:i[2]||"0"}}static isInteger(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}static isHidden(e){return!e||null===e.offsetParent}static isVisible(e){return e&&null!=e.offsetParent}static isExist(e){return null!==e&&typeof e<"u"&&e.nodeName&&e.parentNode}static focus(e,i){e&&document.activeElement!==e&&e.focus(i)}static getFocusableElements(e){let i=n.find(e,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]):not(.p-disabled)'),r=[];for(let o of i)(o.offsetWidth||o.offsetHeight||o.getClientRects().length)&&r.push(o);return r}static getNextFocusableElement(e,i=!1){const r=n.getFocusableElements(e);let o=0;if(r&&r.length>0){const s=r.indexOf(r[0].ownerDocument.activeElement);i?o=-1==s||0===s?r.length-1:s-1:-1!=s&&s!==r.length-1&&(o=s+1)}return r[o]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(e,i){if(!e)return null;switch(e){case"document":return document;case"window":return window;case"@next":return i?.nextElementSibling;case"@prev":return i?.previousElementSibling;case"@parent":return i?.parentElement;case"@grandparent":return i?.parentElement.parentElement;default:const r=typeof e;if("string"===r)return document.querySelector(e);if("object"===r&&e.hasOwnProperty("nativeElement"))return this.isExist(e.nativeElement)?e.nativeElement:void 0;const s=(a=e)&&a.constructor&&a.call&&a.apply?e():e;return s&&9===s.nodeType||this.isExist(s)?s:null}var a}}return n.zindex=1e3,n.calculatedScrollbarWidth=null,n.calculatedScrollbarHeight=null,n})(),ZD=(()=>{class n{constructor(e,i,r){this.el=e,this.zone=i,this.config=r}ngAfterViewInit(){this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.onMouseDown.bind(this),this.el.nativeElement.addEventListener("mousedown",this.mouseDownListener)})}onMouseDown(e){let i=this.getInk();if(!i||"none"===getComputedStyle(i,null).display)return;if(K.removeClass(i,"p-ink-active"),!K.getHeight(i)&&!K.getWidth(i)){let a=Math.max(K.getOuterWidth(this.el.nativeElement),K.getOuterHeight(this.el.nativeElement));i.style.height=a+"px",i.style.width=a+"px"}let r=K.getOffset(this.el.nativeElement),o=e.pageX-r.left+document.body.scrollTop-K.getWidth(i)/2,s=e.pageY-r.top+document.body.scrollLeft-K.getHeight(i)/2;i.style.top=s+"px",i.style.left=o+"px",K.addClass(i,"p-ink-active"),this.timeout=setTimeout(()=>{let a=this.getInk();a&&K.removeClass(a,"p-ink-active")},401)}getInk(){const e=this.el.nativeElement.children;for(let i=0;i{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ke({type:n}),n.\u0275inj=xe({imports:[Mt]}),n})();function LF(n,t){1&n&&Tr(0)}const kF=function(n,t,e,i){return{"p-button-icon":!0,"p-button-icon-left":n,"p-button-icon-right":t,"p-button-icon-top":e,"p-button-icon-bottom":i}};function jF(n,t){if(1&n&&Oe(0,"span",4),2&n){const e=j();Pi(e.loading?"p-button-loading-icon "+e.loadingIcon:e.icon),I("ngClass",Au(4,kF,"left"===e.iconPos&&e.label,"right"===e.iconPos&&e.label,"top"===e.iconPos&&e.label,"bottom"===e.iconPos&&e.label)),Je("aria-hidden",!0)}}function VF(n,t){if(1&n&&(R(0,"span",5),Vt(1),W()),2&n){const e=j();Je("aria-hidden",e.icon&&!e.label),M(1),Oi(e.label)}}function BF(n,t){if(1&n&&(R(0,"span",4),Vt(1),W()),2&n){const e=j();Pi(e.badgeClass),I("ngClass",e.badgeStyleClass()),M(1),Oi(e.badge)}}const HF=function(n,t,e,i,r){return{"p-button p-component":!0,"p-button-icon-only":n,"p-button-vertical":t,"p-disabled":e,"p-button-loading":i,"p-button-loading-label-only":r}},UF=["*"];let jf=(()=>{class n{constructor(){this.type="button",this.iconPos="left",this.loading=!1,this.loadingIcon="pi pi-spinner pi-spin",this.onClick=new Y,this.onFocus=new Y,this.onBlur=new Y}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template})}badgeStyleClass(){return{"p-badge p-component":!0,"p-badge-no-gutter":this.badge&&1===String(this.badge).length}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=gt({type:n,selectors:[["p-button"]],contentQueries:function(e,i,r){if(1&e&&Ao(r,YD,4),2&e){let o;on(o=sn())&&(i.templates=o)}},hostAttrs:[1,"p-element"],inputs:{type:"type",iconPos:"iconPos",icon:"icon",badge:"badge",label:"label",disabled:"disabled",loading:"loading",loadingIcon:"loadingIcon",style:"style",styleClass:"styleClass",badgeClass:"badgeClass",ariaLabel:"ariaLabel"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},ngContentSelectors:UF,decls:6,vars:17,consts:[["pRipple","",3,"ngStyle","disabled","ngClass","click","focus","blur"],[4,"ngTemplateOutlet"],[3,"ngClass","class",4,"ngIf"],["class","p-button-label",4,"ngIf"],[3,"ngClass"],[1,"p-button-label"]],template:function(e,i){1&e&&(Ai(),R(0,"button",0),J("click",function(o){return i.onClick.emit(o)})("focus",function(o){return i.onFocus.emit(o)})("blur",function(o){return i.onBlur.emit(o)}),Ln(1),ae(2,LF,1,0,"ng-container",1),ae(3,jF,1,9,"span",2),ae(4,VF,2,2,"span",3),ae(5,BF,2,4,"span",2),W()),2&e&&(Pi(i.styleClass),I("ngStyle",i.style)("disabled",i.disabled||i.loading)("ngClass",function ky(n,t,e,i,r,o,s,a){const l=lt()+n,c=v(),u=kt(c,l,e,i,r,o);return Xe(c,l+4,s)||u?_n(c,l+5,a?t.call(a,e,i,r,o,s):t(e,i,r,o,s)):vo(c,l+5)}(11,HF,i.icon&&!i.label,("top"===i.iconPos||"bottom"===i.iconPos)&&i.label,i.disabled||i.loading,i.loading,i.loading&&!i.icon&&i.label)),Je("type",i.type)("aria-label",i.ariaLabel),M(2),I("ngTemplateOutlet",i.contentTemplate),M(1),I("ngIf",!i.contentTemplate&&(i.icon||i.loading)),M(1),I("ngIf",!i.contentTemplate&&i.label),M(1),I("ngIf",!i.contentTemplate&&i.badge))},dependencies:[Fr,Lr,gd,Pa,ZD],encapsulation:2,changeDetection:0}),n})(),Vf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ke({type:n}),n.\u0275inj=xe({imports:[Mt,XD]}),n})(),$F=(()=>{class n{constructor(e){this.el=e}onkeydown(e){if(!0!==this.pFocusTrapDisabled){e.preventDefault();const i=K.getNextFocusableElement(this.el.nativeElement,e.shiftKey);i&&(i.focus(),i.select?.())}}}return n.\u0275fac=function(e){return new(e||n)(b(ut))},n.\u0275dir=k({type:n,selectors:[["","pFocusTrap",""]],hostAttrs:[1,"p-element"],hostBindings:function(e,i){1&e&&J("keydown.tab",function(o){return i.onkeydown(o)})("keydown.shift.tab",function(o){return i.onkeydown(o)})},inputs:{pFocusTrapDisabled:"pFocusTrapDisabled"}}),n})(),zF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ke({type:n}),n.\u0275inj=xe({imports:[Mt]}),n})();var eE=0,tE=function GF(){let n=[];const r=o=>o&&parseInt(o.style.zIndex,10)||0;return{get:r,set:(o,s,a)=>{s&&(s.style.zIndex=String(((o,s)=>{let a=n.length>0?n[n.length-1]:{key:o,value:s},l=a.value+(a.key===o?0:s)+1;return n.push({key:o,value:l}),l})(o,a)))},clear:o=>{o&&((o=>{n=n.filter(s=>s.value!==o)})(r(o)),o.style.zIndex="")},getCurrent:()=>n.length>0?n[n.length-1].value:0}}();const qF=["titlebar"],KF=["content"],QF=["footer"];function YF(n,t){if(1&n){const e=jt();R(0,"div",11),J("mousedown",function(r){return pe(e),me(j(3).initResize(r))}),W()}}function ZF(n,t){if(1&n&&(R(0,"span",18),Vt(1),W()),2&n){const e=j(4);Je("id",e.id+"-label"),M(1),Oi(e.header)}}function XF(n,t){1&n&&(R(0,"span",18),Ln(1,1),W()),2&n&&Je("id",j(4).id+"-label")}function JF(n,t){1&n&&Tr(0)}const eL=function(){return{"p-dialog-header-icon p-dialog-header-maximize p-link":!0}};function tL(n,t){if(1&n){const e=jt();R(0,"button",19),J("click",function(){return pe(e),me(j(4).maximize())})("keydown.enter",function(){return pe(e),me(j(4).maximize())}),Oe(1,"span",20),W()}if(2&n){const e=j(4);I("ngClass",da(2,eL)),M(1),I("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}const nL=function(){return{"p-dialog-header-icon p-dialog-header-close p-link":!0}};function iL(n,t){if(1&n){const e=jt();R(0,"button",21),J("click",function(r){return pe(e),me(j(4).close(r))})("keydown.enter",function(r){return pe(e),me(j(4).close(r))}),Oe(1,"span",22),W()}if(2&n){const e=j(4);I("ngClass",da(4,nL)),Je("aria-label",e.closeAriaLabel)("tabindex",e.closeTabindex),M(1),I("ngClass",e.closeIcon)}}function rL(n,t){if(1&n){const e=jt();R(0,"div",12,13),J("mousedown",function(r){return pe(e),me(j(3).initDrag(r))}),ae(2,ZF,2,2,"span",14),ae(3,XF,2,1,"span",14),ae(4,JF,1,0,"ng-container",9),R(5,"div",15),ae(6,tL,2,3,"button",16),ae(7,iL,2,5,"button",17),W()()}if(2&n){const e=j(3);M(2),I("ngIf",!e.headerFacet&&!e.headerTemplate),M(1),I("ngIf",e.headerFacet),M(1),I("ngTemplateOutlet",e.headerTemplate),M(2),I("ngIf",e.maximizable),M(1),I("ngIf",e.closable)}}function oL(n,t){1&n&&Tr(0)}function sL(n,t){1&n&&Tr(0)}function aL(n,t){if(1&n&&(R(0,"div",23,24),Ln(2,2),ae(3,sL,1,0,"ng-container",9),W()),2&n){const e=j(3);M(3),I("ngTemplateOutlet",e.footerTemplate)}}const lL=function(n,t,e,i){return{"p-dialog p-component":!0,"p-dialog-rtl":n,"p-dialog-draggable":t,"p-dialog-resizable":e,"p-dialog-maximized":i}},cL=function(n,t){return{transform:n,transition:t}},uL=function(n){return{value:"visible",params:n}};function dL(n,t){if(1&n){const e=jt();R(0,"div",3,4),J("@animation.start",function(r){return pe(e),me(j(2).onAnimationStart(r))})("@animation.done",function(r){return pe(e),me(j(2).onAnimationEnd(r))}),ae(2,YF,1,0,"div",5),ae(3,rL,8,5,"div",6),R(4,"div",7,8),Ln(6),ae(7,oL,1,0,"ng-container",9),W(),ae(8,aL,4,1,"div",10),W()}if(2&n){const e=j(2);Pi(e.styleClass),I("ngClass",Au(15,lL,e.rtl,e.draggable,e.resizable,e.maximized))("ngStyle",e.style)("pFocusTrapDisabled",!1===e.focusTrap)("@animation",Or(23,uL,function Fy(n,t,e,i,r){return By(v(),lt(),n,t,e,i,r)}(20,cL,e.transformOptions,e.transitionOptions))),Je("aria-labelledby",e.id+"-label"),M(2),I("ngIf",e.resizable),M(1),I("ngIf",e.showHeader),M(1),Pi(e.contentStyleClass),I("ngClass","p-dialog-content")("ngStyle",e.contentStyle),M(3),I("ngTemplateOutlet",e.contentTemplate),M(1),I("ngIf",e.footerFacet||e.footerTemplate)}}const fL=function(n,t,e,i,r,o,s,a,l,c){return{"p-dialog-mask":!0,"p-component-overlay p-component-overlay-enter":n,"p-dialog-mask-scrollblocker":t,"p-dialog-left":e,"p-dialog-right":i,"p-dialog-top":r,"p-dialog-top-left":o,"p-dialog-top-right":s,"p-dialog-bottom":a,"p-dialog-bottom-left":l,"p-dialog-bottom-right":c}};function hL(n,t){if(1&n&&(R(0,"div",1),ae(1,dL,9,25,"div",2),W()),2&n){const e=j();Pi(e.maskStyleClass),I("ngClass",jy(4,fL,[e.modal,e.modal||e.blockScroll,"left"===e.position,"right"===e.position,"top"===e.position,"topleft"===e.position||"top-left"===e.position,"topright"===e.position||"top-right"===e.position,"bottom"===e.position,"bottomleft"===e.position||"bottom-left"===e.position,"bottomright"===e.position||"bottom-right"===e.position])),M(1),I("ngIf",e.visible)}}const pL=["*",[["p-header"]],[["p-footer"]]],mL=["*","p-header","p-footer"],gL=Wb([tl({transform:"{{transform}}",opacity:0}),Ub("{{transition}}")]),yL=Wb([Ub("{{transition}}",tl({transform:"{{transform}}",opacity:0}))]);let _L=(()=>{class n{constructor(e,i,r,o,s){this.el=e,this.renderer=i,this.zone=r,this.cd=o,this.config=s,this.draggable=!0,this.resizable=!0,this.closeOnEscape=!0,this.closable=!0,this.showHeader=!0,this.blockScroll=!1,this.autoZIndex=!0,this.baseZIndex=0,this.minX=0,this.minY=0,this.focusOnShow=!0,this.keepInViewport=!0,this.focusTrap=!0,this.transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)",this.closeIcon="pi pi-times",this.closeTabindex="-1",this.minimizeIcon="pi pi-window-minimize",this.maximizeIcon="pi pi-window-maximize",this.onShow=new Y,this.onHide=new Y,this.visibleChange=new Y,this.onResizeInit=new Y,this.onResizeEnd=new Y,this.onDragEnd=new Y,this.onMaximize=new Y,this.id=function WF(){return"pr_id_"+ ++eE}(),this._style={},this._position="center",this.transformOptions="scale(0.7)"}get positionLeft(){return 0}set positionLeft(e){console.log("positionLeft property is deprecated.")}get positionTop(){return 0}set positionTop(e){console.log("positionTop property is deprecated.")}get responsive(){return!1}set responsive(e){console.log("Responsive property is deprecated.")}get breakpoint(){return 649}set breakpoint(e){console.log("Breakpoint property is not utilized and deprecated, use breakpoints or CSS media queries instead.")}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"content":default:this.contentTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}ngOnInit(){this.breakpoints&&this.createStyle()}get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0)}get style(){return this._style}set style(e){e&&(this._style={...e},this.originalStyle=e)}get position(){return this._position}set position(e){switch(this._position=e,e){case"topleft":case"bottomleft":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"topright":case"bottomright":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)"}}focus(){let e=K.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngular(()=>{setTimeout(()=>e.focus(),5)})}close(e){this.visibleChange.emit(!1),e.preventDefault()}enableModality(){this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",e=>{this.wrapper&&this.wrapper.isSameNode(e.target)&&this.close(e)})),this.modal&&K.addClass(document.body,"p-overflow-hidden")}disableModality(){this.wrapper&&(this.dismissableMask&&this.unbindMaskClickListener(),this.modal&&K.removeClass(document.body,"p-overflow-hidden"),this.cd.destroyed||this.cd.detectChanges())}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?K.addClass(document.body,"p-overflow-hidden"):K.removeClass(document.body,"p-overflow-hidden")),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex&&(tE.set("modal",this.container,this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1))}createStyle(){if(!this.styleElement){this.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let e="";for(let i in this.breakpoints)e+=`\n @media screen and (max-width: ${i}) {\n .p-dialog[${this.id}] {\n width: ${this.breakpoints[i]} !important;\n }\n }\n `;this.styleElement.innerHTML=e}}initDrag(e){K.hasClass(e.target,"p-dialog-header-icon")||K.hasClass(e.target.parentElement,"p-dialog-header-icon")||this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",K.addClass(document.body,"p-unselectable-text"))}onKeydown(e){if(this.focusTrap&&9===e.which){e.preventDefault();let i=K.getFocusableElements(this.container);if(i&&i.length>0)if(i[0].ownerDocument.activeElement){let r=i.indexOf(i[0].ownerDocument.activeElement);e.shiftKey?-1==r||0===r?i[i.length-1].focus():i[r-1].focus():-1==r||r===i.length-1?i[0].focus():i[r+1].focus()}else i[0].focus()}}onDrag(e){if(this.dragging){let i=K.getOuterWidth(this.container),r=K.getOuterHeight(this.container),o=e.pageX-this.lastPageX,s=e.pageY-this.lastPageY,a=this.container.getBoundingClientRect(),l=a.left+o,c=a.top+s,u=K.getViewport();this.container.style.position="fixed",this.keepInViewport?(l>=this.minX&&l+i=this.minY&&c+rparseInt(u))&&f.left+lparseInt(d))&&f.top+c{this.documentDragListener=this.onDrag.bind(this),window.document.addEventListener("mousemove",this.documentDragListener)})}unbindDocumentDragListener(){this.documentDragListener&&(window.document.removeEventListener("mousemove",this.documentDragListener),this.documentDragListener=null)}bindDocumentDragEndListener(){this.zone.runOutsideAngular(()=>{this.documentDragEndListener=this.endDrag.bind(this),window.document.addEventListener("mouseup",this.documentDragEndListener)})}unbindDocumentDragEndListener(){this.documentDragEndListener&&(window.document.removeEventListener("mouseup",this.documentDragEndListener),this.documentDragEndListener=null)}bindDocumentResizeListeners(){this.zone.runOutsideAngular(()=>{this.documentResizeListener=this.onResize.bind(this),this.documentResizeEndListener=this.resizeEnd.bind(this),window.document.addEventListener("mousemove",this.documentResizeListener),window.document.addEventListener("mouseup",this.documentResizeEndListener)})}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(window.document.removeEventListener("mousemove",this.documentResizeListener),window.document.removeEventListener("mouseup",this.documentResizeEndListener),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindDocumentEscapeListener(){this.documentEscapeListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","keydown",i=>{27==i.which&&this.close(i)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.wrapper):K.appendChild(this.wrapper,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.wrapper)}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.wrapper=this.container.parentElement,this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.container.setAttribute(this.id,""),this.modal&&this.enableModality(),!this.modal&&this.blockScroll&&K.addClass(document.body,"p-overflow-hidden"),this.focusOnShow&&this.focus();break;case"void":this.wrapper&&this.modal&&K.addClass(this.wrapper,"p-component-overlay-leave")}}onAnimationEnd(e){switch(e.toState){case"void":this.onContainerDestroy(),this.onHide.emit({}),this.cd.markForCheck();break;case"visible":this.onShow.emit({})}}onContainerDestroy(){this.unbindGlobalListeners(),this.dragging=!1,this.maskVisible=!1,this.maximized&&(K.removeClass(document.body,"p-overflow-hidden"),this.maximized=!1),this.modal&&this.disableModality(),this.blockScroll&&K.removeClass(document.body,"p-overflow-hidden"),this.container&&this.autoZIndex&&tE.clear(this.container),this.container=null,this.wrapper=null,this._style=this.originalStyle?{...this.originalStyle}:{}}destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}ngOnDestroy(){this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.destroyStyle()}}return n.\u0275fac=function(e){return new(e||n)(b(ut),b(ei),b(Ie),b(Li),b(QD))},n.\u0275cmp=gt({type:n,selectors:[["p-dialog"]],contentQueries:function(e,i,r){if(1&e&&(Ao(r,NF,5),Ao(r,RF,5),Ao(r,YD,4)),2&e){let o;on(o=sn())&&(i.headerFacet=o.first),on(o=sn())&&(i.footerFacet=o.first),on(o=sn())&&(i.templates=o)}},viewQuery:function(e,i){if(1&e&&(Fi(qF,5),Fi(KF,5),Fi(QF,5)),2&e){let r;on(r=sn())&&(i.headerViewChild=r.first),on(r=sn())&&(i.contentViewChild=r.first),on(r=sn())&&(i.footerViewChild=r.first)}},hostAttrs:[1,"p-element"],inputs:{header:"header",draggable:"draggable",resizable:"resizable",positionLeft:"positionLeft",positionTop:"positionTop",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",modal:"modal",closeOnEscape:"closeOnEscape",dismissableMask:"dismissableMask",rtl:"rtl",closable:"closable",responsive:"responsive",appendTo:"appendTo",breakpoints:"breakpoints",styleClass:"styleClass",maskStyleClass:"maskStyleClass",showHeader:"showHeader",breakpoint:"breakpoint",blockScroll:"blockScroll",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",minX:"minX",minY:"minY",focusOnShow:"focusOnShow",maximizable:"maximizable",keepInViewport:"keepInViewport",focusTrap:"focusTrap",transitionOptions:"transitionOptions",closeIcon:"closeIcon",closeAriaLabel:"closeAriaLabel",closeTabindex:"closeTabindex",minimizeIcon:"minimizeIcon",maximizeIcon:"maximizeIcon",visible:"visible",style:"style",position:"position"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},ngContentSelectors:mL,decls:1,vars:1,consts:[[3,"class","ngClass",4,"ngIf"],[3,"ngClass"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","class","pFocusTrapDisabled",4,"ngIf"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","pFocusTrapDisabled"],["container",""],["class","p-resizable-handle","style","z-index: 90;",3,"mousedown",4,"ngIf"],["class","p-dialog-header",3,"mousedown",4,"ngIf"],[3,"ngClass","ngStyle"],["content",""],[4,"ngTemplateOutlet"],["class","p-dialog-footer",4,"ngIf"],[1,"p-resizable-handle",2,"z-index","90",3,"mousedown"],[1,"p-dialog-header",3,"mousedown"],["titlebar",""],["class","p-dialog-title",4,"ngIf"],[1,"p-dialog-header-icons"],["type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],["type","button","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],[1,"p-dialog-title"],["type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter"],[1,"p-dialog-header-maximize-icon",3,"ngClass"],["type","button","pRipple","",3,"ngClass","click","keydown.enter"],[1,"p-dialog-header-close-icon",3,"ngClass"],[1,"p-dialog-footer"],["footer",""]],template:function(e,i){1&e&&(Ai(pL),ae(0,hL,2,15,"div",0)),2&e&&I("ngIf",i.maskVisible)},dependencies:[Fr,Lr,gd,Pa,$F,ZD],styles:[".p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-draggable .p-dialog-header{cursor:move}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{transition:none;transform:none;width:100vw!important;height:100vh!important;top:0!important;left:0!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}\n"],encapsulation:2,data:{animation:[uN("animation",[zb("void => visible",[Gb(gL)]),zb("visible => void",[Gb(yL)])])]},changeDetection:0}),n})(),vL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ke({type:n}),n.\u0275inj=xe({imports:[Mt,zF,XD,FF]}),n})(),nE=(()=>{class n{constructor(e,i,r){this.el=e,this.ngModel=i,this.cd=r}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(e){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}}return n.\u0275fac=function(e){return new(e||n)(b(ut),b(qd,8),b(Li))},n.\u0275dir=k({type:n,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(e,i){1&e&&J("input",function(o){return i.onInput(o)}),2&e&&bo("p-filled",i.filled)}}),n})(),Bf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ke({type:n}),n.\u0275inj=xe({imports:[Mt]}),n})();class DL{constructor(t){this.total=t}call(t,e){return e.subscribe(new EL(t,this.total))}}class EL extends Se{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}getComputedStyle(document.body).getPropertyValue("--color-palette-black-op-20"),getComputedStyle(document.body).getPropertyValue("--color-palette-black-op-30"),getComputedStyle(document.body).getPropertyValue("--color-palette-black-op-50"),getComputedStyle(document.body).getPropertyValue("--color-palette-black-op-70");let ML=(()=>{class n{constructor(){this.iconPath="./src/assets/images/icons",this.dotCMSURLKey="siteURLJWT"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=$({token:n,factory:n.\u0275fac}),n})(),es=class{constructor(t){this.iconPath=t.iconPath}displayErrorMessage(t){this.displayMessage("Error",t,"error")}displaySuccessMessage(t){this.displayMessage("Success",t,"success")}displayInfoMessage(t){this.displayMessage("Info",t,"info")}displayMessage(t,e,i){let r;return r=new Notification(i,{body:e,icon:this.iconPath+"/"+i+".png"}),r}};function aE(n,t,e,i){return rt(e)&&(i=e,e=void 0),i?aE(n,t,e).pipe(mt(r=>Kt(r)?i(...r):i(r))):new ve(r=>{lE(n,t,function o(s){r.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},r,e)})}function lE(n,t,e,i,r){let o;if(function LL(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const s=n;n.addEventListener(t,e,r),o=()=>s.removeEventListener(t,e,r)}else if(function FL(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const s=n;n.on(t,e),o=()=>s.off(t,e)}else if(function RL(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const s=n;n.addListener(t,e),o=()=>s.removeListener(t,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let s=0,a=n.length;s=0;a--)(s=n[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o}([Fs("config"),function wL(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}("design:paramtypes",[ML])],es);const cE=n=>{const t=parseInt(n,0);if(t)return t;try{return JSON.parse(n)}catch{return n}};let kL=(()=>{class n{setItem(e,i){let r;r="object"==typeof i?JSON.stringify(i):i,localStorage.setItem(e,r)}getItem(e){const i=localStorage.getItem(e);return cE(i)}removeItem(e){localStorage.removeItem(e)}clear(){localStorage.clear()}listen(e){return aE(window,"storage").pipe(Ad(({key:i})=>i===e),mt(i=>cE(i.newValue)))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=$({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ts=(()=>{class n{constructor(e,i){this.http=e,this.dotLocalstorageService=i,this.messageMap={},this.MESSAGES_LOCALSTORAGE_KEY="dotMessagesKeys",this.BUILDATE_LOCALSTORAGE_KEY="buildDate"}init(e){if(e&&(this.dotLocalstorageService.getItem(this.BUILDATE_LOCALSTORAGE_KEY)!==e?.buildDate||e.language))this.getAll(e.language||"default"),e.buildDate&&this.dotLocalstorageService.setItem(this.BUILDATE_LOCALSTORAGE_KEY,e.buildDate);else{const i=this.dotLocalstorageService.getItem(this.MESSAGES_LOCALSTORAGE_KEY);i?this.messageMap=i:this.getAll(e?.language||"default")}}get(e,...i){return this.messageMap[e]?i.length?function PL(n,t){return n.replace(/{(\d+)}/g,(e,i)=>typeof t[i]<"u"?t[i]:e)}(this.messageMap[e],i):this.messageMap[e]:e}getAll(e){this.http.get(this.geti18nURL(e)).pipe(Pd(1),function OL(...n){const t=n.length;if(0===t)throw new Error("list of properties cannot be empty.");return e=>mt(function NL(n,t){return i=>{let r=i;for(let o=0;o{this.messageMap=i,this.dotLocalstorageService.setItem(this.MESSAGES_LOCALSTORAGE_KEY,this.messageMap)})}geti18nURL(e){return`/api/v2/languages/${e||"default"}/keys`}}return n.\u0275fac=function(e){return new(e||n)(A(kD),A(kL))},n.\u0275prov=$({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function uE(n,t,e,i,r,o,s){try{var a=n[o](s),l=a.value}catch(c){return void e(c)}a.done?t(l):Promise.resolve(l).then(i,r)}function dE(n){return function(){var t=this,e=arguments;return new Promise(function(i,r){var o=n.apply(t,e);function s(l){uE(o,i,r,s,a,"next",l)}function a(l){uE(o,i,r,s,a,"throw",l)}s(void 0)})}}const jL={500:"500 Internal Server Error",400:"400 Bad Request",401:"401 Unauthorized Error"};let El=(()=>{class n{uploadFile({file:e,maxSize:i,signal:r}){return"string"==typeof e?this.uploadFileByURL(e,r):this.uploadBinaryFile({file:e,maxSize:i,signal:r})}uploadFileByURL(e,i){return fetch("/api/v1/temp/byUrl",{method:"POST",signal:i,headers:{"Content-Type":"application/json",Origin:window.location.hostname},body:JSON.stringify({remoteUrl:e})}).then(function(){var o=dE(function*(s){if(200===s.status)return(yield s.json()).tempFiles[0];throw{message:(yield s.json()).message,status:s.status}});return function(s){return o.apply(this,arguments)}}()).catch(o=>{const{message:s,response:a}=o,l="string"==typeof a?JSON.parse(a):a;throw this.errorHandler(l||{message:s},o.status)})}uploadBinaryFile({file:e,maxSize:i,signal:r}){let o="/api/v1/temp";o+=i?`?maxFileLength=${i}`:"";const s=new FormData;return s.append("file",e),fetch(o,{method:"POST",signal:r,headers:{Origin:window.location.hostname},body:s}).then(function(){var a=dE(function*(l){if(200===l.status)return(yield l.json()).tempFiles[0];throw{message:(yield l.json()).message,status:l.status}});return function(l){return a.apply(this,arguments)}}()).catch(a=>{throw this.errorHandler(JSON.parse(a.response),a.status)})}errorHandler(e,i){let r="";try{r=e.message||e.errors[0].message}catch{r=jL[i||500]}return{message:r,status:500|i}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=$({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),VL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ke({type:n}),n.\u0275inj=xe({imports:[Mt]}),n})();const BL=["*"];let HL=(()=>{class n{constructor(){this.fileDropped=new Y,this.fileDragEnter=new Y,this.fileDragOver=new Y,this.fileDragLeave=new Y,this._accept=[],this._validity={fileTypeMismatch:!1,maxFileSizeExceeded:!1,multipleFilesDropped:!1,valid:!0}}set accept(e){this._accept=e?.filter(i=>"*/*"!==i).map(i=>i.toLowerCase().replace(/\*/g,""))}get validity(){return this._validity}onDrop(e){e.stopPropagation(),e.preventDefault();const{dataTransfer:i}=e,r=this.getFiles(i),o=1===r?.length?r[0]:null;0!==r.length&&(this.setValidity(r),i.items?.clear(),i.clearData(),this.fileDropped.emit({file:o,validity:this._validity}))}onDragEnter(e){e.stopPropagation(),e.preventDefault(),this.fileDragEnter.emit(!0)}onDragOver(e){e.stopPropagation(),e.preventDefault(),this.fileDragOver.emit(!0)}onDragLeave(e){e.stopPropagation(),e.preventDefault(),this.fileDragLeave.emit(!0)}typeMatch(e){if(!this._accept.length)return!0;const i=e.name.split(".").pop().toLowerCase(),r=e.type.toLowerCase();return this._accept.some(s=>r.includes(s)||s.includes(`.${i}`))}getFiles(e){const{items:i,files:r}=e;return i?Array.from(i).filter(o=>"file"===o.kind).map(o=>o.getAsFile()):Array.from(r)||[]}isFileTooLong(e){return!!this.maxFileSize&&e.size>this.maxFileSize}setValidity(e){const i=e[0],r=e.length>1,o=!this.typeMatch(i),s=this.isFileTooLong(i);this._validity={...this._validity,multipleFilesDropped:r,fileTypeMismatch:o,maxFileSizeExceeded:s,valid:!o&&!s&&!r}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=gt({type:n,selectors:[["dot-drop-zone"]],hostBindings:function(e,i){1&e&&J("drop",function(o){return i.onDrop(o)})("dragenter",function(o){return i.onDragEnter(o)})("dragover",function(o){return i.onDragOver(o)})("dragleave",function(o){return i.onDragLeave(o)})},inputs:{maxFileSize:"maxFileSize",accept:"accept"},outputs:{fileDropped:"fileDropped",fileDragEnter:"fileDragEnter",fileDragOver:"fileDragOver",fileDragLeave:"fileDragLeave"},standalone:!0,features:[Ri],ngContentSelectors:BL,decls:1,vars:0,template:function(e,i){1&e&&(Ai(),Ln(0))},dependencies:[Mt],changeDetection:0}),n})(),Sl=(()=>{class n{constructor(e){this.dotMessageService=e}transform(e,i=[]){return e?this.dotMessageService.get(e,...i):""}}return n.\u0275fac=function(e){return new(e||n)(b(ts,16))},n.\u0275pipe=ot({name:"dm",type:n,pure:!0,standalone:!0}),n})();function Hr(n){return t=>t.lift(new YL(n))}class YL{constructor(t){this.notifier=t}call(t,e){const i=new ZL(t),r=us(this.notifier,new ls(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class ZL extends cs{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function XL(n,t){if(1&n&&(R(0,"small",1),Vt(1),We(2,"dm"),W()),2&n){const e=j();M(1),ni(" ",et(2,1,e.errorMsg),"\n")}}const Cl={maxlength:"error.form.validator.maxlength",required:"error.form.validator.required",pattern:"error.form.validator.pattern"};let fE=(()=>{class n{constructor(e,i){this.cd=e,this.dotMessageService=i,this.errorMsg="",this.destroy$=new Tn}set message(e){this.defaultMessage=e,this.cd.markForCheck()}set field(e){e&&(this._field=e,e.statusChanges.pipe(Hr(this.destroy$)).subscribe(()=>{this.errorMsg=this.getErrors(e.errors),this.cd.detectChanges()}))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}getErrors(e){let i=[];return e&&(i=[...this.getMsgDefaultValidators(e),...this.getMsgCustomsValidators(e)]),this.defaultMessage?this.defaultMessage:i.slice(0,1)[0]}getMsgDefaultValidators(e){let i=[];return Object.entries(e).forEach(([r,o])=>{if(r in Cl){let s="";const{requiredLength:a,requiredPattern:l}=o;switch(r){case"maxlength":s=this.dotMessageService.get(Cl[r],a);break;case"pattern":s=this.dotMessageService.get(this.patternErrorMessage||Cl[r],l);break;default:s=Cl[r]}i=[...i,s]}}),i}getMsgCustomsValidators(e){let i=[];return Object.entries(e).forEach(([,r])=>{"string"==typeof r&&(i=[...i,r])}),i}}return n.\u0275fac=function(e){return new(e||n)(b(Li),b(ts))},n.\u0275cmp=gt({type:n,selectors:[["dot-field-validation-message"]],inputs:{patternErrorMessage:"patternErrorMessage",message:"message",field:"field"},standalone:!0,features:[Ri],decls:1,vars:1,consts:[["class","p-invalid","data-testId","error-msg",4,"ngIf"],["data-testId","error-msg",1,"p-invalid"]],template:function(e,i){1&e&&ae(0,XL,3,3,"small",0),2&e&&I("ngIf",i._field&&i._field.enabled&&i._field.dirty&&!i._field.valid)},dependencies:[Lr,Sl],encapsulation:2,changeDetection:0}),n})();const JL=new En(nf);class tk{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new nk(t,this.dueTime,this.scheduler))}}class nk extends Se{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(ik,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function ik(n){n.debouncedNext()}const rk=["editorRef"],ok=function(n){return{"binary-field__code-editor--disabled":n}},sk=function(n){return{"editor-mode__helper--visible":n}},ak={theme:"vs",minimap:{enabled:!1},cursorBlinking:"solid",overviewRulerBorder:!1,mouseWheelZoom:!1,lineNumbers:"on",roundedSelection:!1,automaticLayout:!0,language:"text"};let lk=(()=>{class n{constructor(){this.tempFileUploaded=new Y,this.cancel=new Y,this.cd=Yn(Li),this.dotUploadService=Yn(El),this.dotMessageService=Yn(ts),this.extension="",this.invalidFileMessage="",this.form=new Uo({name:new Wo("",[ja.required,ja.pattern(/^.+\..+$/)]),content:new Wo("")}),this.editorOptions=ak,this.mimeType=""}get name(){return this.form.get("name")}get content(){return this.form.get("content")}ngOnInit(){this.name.valueChanges.pipe(function ek(n,t=JL){return e=>e.lift(new tk(n,t))}(350)).subscribe(e=>this.setEditorLanguage(e)),this.invalidFileMessage=this.dotMessageService.get("dot.binary.field.error.type.file.not.supported.message",this.accept.join(", "))}ngAfterViewInit(){this.editor=this.editorRef.editor}onSubmit(){if(this.form.invalid)return void this.markControlInvalid(this.name);const e=new File([this.content.value],this.name.value,{type:this.mimeType});this.uploadFile(e)}markControlInvalid(e){e.markAsDirty(),e.updateValueAndValidity(),this.cd.detectChanges()}uploadFile(e){const i=yi(this.dotUploadService.uploadFile({file:e}));this.disableEditor(),i.subscribe(r=>{this.enableEditor(),this.tempFileUploaded.emit(r)})}setEditorLanguage(e=""){const i=e?.split(".").pop(),{id:r,mimetypes:o,extensions:s}=this.getLanguage(i)||{};this.mimeType=o?.[0],this.extension=s?.[0],this.isValidType()||this.name.setErrors({invalidExtension:this.invalidFileMessage}),this.updateEditorLanguage(r),this.cd.detectChanges()}getLanguage(e){return monaco.languages.getLanguages().find(i=>i.extensions?.includes(`.${e}`))}updateEditorLanguage(e="text"){this.editorOptions={...this.editorOptions,language:e}}disableEditor(){this.form.disable(),this.editor.updateOptions({readOnly:!0})}enableEditor(){this.form.enable(),this.editor.updateOptions({readOnly:!1})}isValidType(){return 0===this.accept?.length||this.accept?.includes(this.extension)||this.accept?.includes(this.mimeType)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=gt({type:n,selectors:[["dot-dot-binary-field-editor"]],viewQuery:function(e,i){if(1&e&&Fi(rk,7),2&e){let r;on(r=sn())&&(i.editorRef=r.first)}},inputs:{accept:"accept"},outputs:{tempFileUploaded:"tempFileUploaded",cancel:"cancel"},standalone:!0,features:[Ri],decls:20,vars:17,consts:[[1,"editor-mode__form",3,"formGroup","ngSubmit"],[1,"editor-mode__input-container"],["for","file-name",1,"editor-mode__label"],[1,"editor-mode__label-text"],["id","file-name","type","text","pInputText","","formControlName","name","autocomplete","off","pInputText","","placeholder","Ex. template.html"],[1,"error-message"],["data-testId","error-message",3,"patternErrorMessage","field"],[1,"binary-field__editor-container"],["formControlName","content","data-testId","code-editor",1,"binary-field__code-editor",3,"ngClass","options"],["editorRef",""],[1,"editor-mode__helper",3,"ngClass"],[1,"pi","pi-info-circle"],[1,"editor-mode__actions"],["styleClass","p-button-outlined","type","button","aria-label","Cancel button","data-testId","cancel-button",3,"label","click"],["type","submit","aria-label","Import button","data-testId","import-button",3,"label"]],template:function(e,i){1&e&&(R(0,"form",0),J("ngSubmit",function(){return i.onSubmit()}),R(1,"div",1)(2,"label",2)(3,"span",3),Vt(4,"File Name"),W()(),Oe(5,"input",4),R(6,"div",5),Oe(7,"dot-field-validation-message",6),W()(),R(8,"div",7),Oe(9,"ngx-monaco-editor",8,9),R(11,"div",10),Oe(12,"i",11),R(13,"small"),Vt(14),W()()(),R(15,"div",12)(16,"p-button",13),J("click",function(){return i.cancel.emit()}),We(17,"dm"),W(),Oe(18,"p-button",14),We(19,"dm"),W()()),2&e&&(I("formGroup",i.form),M(7),I("patternErrorMessage","dot.binary.field.error.type.file.not.extension")("field",i.form.get("name")),M(2),I("ngClass",Or(13,ok,i.form.disabled))("options",i.editorOptions),M(2),I("ngClass",Or(15,sk,i.mimeType)),M(3),ni("Mime Type: ",i.mimeType,""),M(2),I("label",et(17,9,"dot.common.cancel")),M(2),I("label",et(19,11,"dot.common.save")))},dependencies:[Mt,Fr,tf,kO,kb,Kd,Vo,Fd,Ld,jb,Go,Qa,Bf,nE,Vf,jf,Sl,fE],styles:[".binary-field__editor-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:flex-start;flex-direction:column;flex:1;width:100%;gap:.5rem}.binary-field__code-editor[_ngcontent-%COMP%]{border:1px solid #d1d4db;display:block;flex-grow:1;width:100%;min-height:20rem;border-radius:.375rem;overflow:auto}.binary-field__code-editor--disabled[_ngcontent-%COMP%]{background-color:#f3f3f4;opacity:.5}.binary-field__code-editor--disabled[_ngcontent-%COMP%] .monaco-mouse-cursor-text, .binary-field__code-editor--disabled[_ngcontent-%COMP%] .overflow-guard{cursor:not-allowed}.editor-mode__form[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.editor-mode__input-container[_ngcontent-%COMP%]{width:100%;display:flex;gap:.5rem;flex-direction:column}.editor-mode__input[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column}.editor-mode__actions[_ngcontent-%COMP%]{width:100%;display:flex;gap:.5rem;align-items:center;justify-content:flex-end}.editor-mode__helper[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center;gap:.5rem;color:#6c7389;font-weight:.813rem;visibility:hidden}.editor-mode__helper--visible[_ngcontent-%COMP%]{visibility:visible}.error-message[_ngcontent-%COMP%]{min-height:1.5rem;justify-content:flex-start;display:flex}"],changeDetection:0}),n})();const ck=["*"];let uk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=gt({type:n,selectors:[["dot-binary-field-ui-message"]],inputs:{message:"message",icon:"icon",severity:"severity"},standalone:!0,features:[Ri],ngContentSelectors:ck,decls:5,vars:3,consts:[["data-testId","ui-message-icon-container",1,"icon-container",3,"ngClass"],["data-testId","ui-message-icon",2,"font-size","2rem","width","auto",3,"ngClass"],[1,"text"],["data-testId","ui-message-span",3,"innerHTML"]],template:function(e,i){1&e&&(Ai(),R(0,"div",0),Oe(1,"i",1),W(),R(2,"div",2),Oe(3,"span",3),Ln(4),W()),2&e&&(I("ngClass",i.severity),M(1),I("ngClass",i.icon),M(2),I("innerHTML",i.message,Zp))},dependencies:[Mt,Fr],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1rem;height:100%;padding:1rem}.icon-container[_ngcontent-%COMP%]{border-radius:50%;padding:1rem}.icon-container.info[_ngcontent-%COMP%]{color:var(--color-palette-secondary-500);background:var(--color-palette-secondary-200)}.icon-container.error[_ngcontent-%COMP%]{color:#ffb444;background:#fff8ec}.text[_ngcontent-%COMP%]{text-align:center;line-height:140%}"],changeDetection:0}),n})();function di(){}function Ur(n,t,e){return function(r){return r.lift(new dk(n,t,e))}}class dk{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new fk(t,this.nextOrObserver,this.error,this.complete))}}class fk extends Se{constructor(t,e,i,r){super(t),this._tapNext=di,this._tapError=di,this._tapComplete=di,this._tapError=i||di,this._tapComplete=r||di,rt(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||di,this._tapError=e.error||di,this._tapComplete=e.complete||di)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}let hk=1;const pk=Promise.resolve(),wl={};function hE(n){return n in wl&&(delete wl[n],!0)}const pE={setImmediate(n){const t=hk++;return wl[t]=!0,pk.then(()=>hE(t)&&n()),t},clearImmediate(n){hE(n)}},mE=new class gk extends En{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=pE.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(pE.clearImmediate(e),t.scheduled=void 0)}});function gE(n){return!!n&&(n instanceof ve||"function"==typeof n.lift&&"function"==typeof n.subscribe)}class yE extends Se{notifyNext(t,e,i,r,o){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class yk extends Se{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function _E(n,t,e,i,r=new yk(n,e,i)){if(!r.closed)return t instanceof ve?t.subscribe(r):Al(t)(r)}const vE={};class vk{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new bk(t,this.resultSelector))}}class bk extends yE{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(vE),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i0){const o=r.indexOf(i);-1!==o&&r.splice(o,1)}}notifyComplete(){}_next(t){if(0===this.toRespond.length){const e=[t,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(t){let e;try{e=this.project.apply(this,t)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}function bE(n){return function(e){const i=new Ck(n),r=e.lift(i);return i.caught=r}}class Ck{constructor(t){this.selector=t}call(t,e){return e.subscribe(new wk(t,this.selector,this.caught))}}class wk extends cs{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let e;try{e=this.selector(t,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const i=new ls(this);this.add(i);const r=us(e,i);r!==i&&this.add(r)}}}class Tk{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new Mk(t,this.compare,this.keySelector))}}class Mk extends Se{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:r}=this;e=r?r(t):t}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}const Ok=new P("@ngrx/component-store Initial State");let DE=(()=>{class n{constructor(e){this.destroySubject$=new Xa(1),this.destroy$=this.destroySubject$.asObservable(),this.stateSubject$=new Xa(1),this.isInitialized=!1,this.state$=this.select(i=>i),this.\u0275hasProvider=!1,e&&this.initState(e),this.checkProviderForHooks()}ngOnDestroy(){this.stateSubject$.complete(),this.destroySubject$.next()}updater(e){return i=>{let o,r=!0;const a=(gE(i)?i:Ya(i)).pipe(function $O(n,t=0){return function(i){return i.lift(new zO(n,t))}}(rf),Ur(()=>this.assertStateIsInitialized()),function Dk(...n){return t=>{let e;return"function"==typeof n[n.length-1]&&(e=n.pop()),t.lift(new Ek(n,e))}}(this.stateSubject$),mt(([l,c])=>e(c,l)),Ur(l=>this.stateSubject$.next(l)),bE(l=>r?(o=l,xd):Bb(()=>l)),Hr(this.destroy$)).subscribe();if(o)throw o;return r=!1,a}}initState(e){nh([e],rf).subscribe(i=>{this.isInitialized=!0,this.stateSubject$.next(i)})}setState(e){"function"!=typeof e?this.initState(e):this.updater(e)()}patchState(e){const i="function"==typeof e?e(this.get()):e;this.updater((r,o)=>({...r,...o}))(i)}get(e){let i;return this.assertStateIsInitialized(),this.stateSubject$.pipe(Pd(1)).subscribe(r=>{i=e?e(r):r}),i}select(...e){const{observablesOrSelectorsObject:i,projector:r,config:o}=function Nk(n){const t=Array.from(n);let e={debounce:!1};if(function Rk(n){return typeof n.debounce<"u"}(t[t.length-1])&&(e={...e,...t.pop()}),1===t.length&&"function"!=typeof t[0])return{observablesOrSelectorsObject:t[0],projector:void 0,config:e};const i=t.pop();return{observablesOrSelectorsObject:t,projector:i,config:e}}(e);return(function Fk(n,t){return Array.isArray(n)&&0===n.length&&t}(i,r)?this.stateSubject$:function _k(...n){let t,e;return Ml(n[n.length-1])&&(e=n.pop()),"function"==typeof n[n.length-1]&&(t=n.pop()),1===n.length&&Kt(n[0])&&(n=n[0]),Ol(n,e).lift(new vk(t))}(i)).pipe(o.debounce?function Pk(){return n=>new ve(t=>{let e,i;const r=new _e;return r.add(n.subscribe({complete:()=>{e&&t.next(i),t.complete()},error:o=>{t.error(o)},next:o=>{i=o,e||(e=mE.schedule(()=>{t.next(i),e=void 0}),r.add(e))}})),r})}():n=>n,r?mt(a=>i.length>0&&Array.isArray(a)?r(...a):r(a)):n=>n,function Ik(n,t){return e=>e.lift(new Tk(n,t))}(),function Ak(n,t,e){let i;return i=n&&"object"==typeof n?n:{bufferSize:n,windowTime:t,refCount:!1,scheduler:e},r=>r.lift(function xk({bufferSize:n=Number.POSITIVE_INFINITY,windowTime:t=Number.POSITIVE_INFINITY,refCount:e,scheduler:i}){let r,s,o=0,a=!1,l=!1;return function(u){let d;o++,!r||a?(a=!1,r=new Xa(n,t,i),d=r.subscribe(this),s=u.subscribe({next(f){r.next(f)},error(f){a=!0,r.error(f)},complete(){l=!0,s=void 0,r.complete()}}),l&&(s=void 0)):d=r.subscribe(this),this.add(()=>{o--,d.unsubscribe(),d=void 0,s&&!l&&e&&0===o&&(s.unsubscribe(),s=void 0,r=void 0)})}}(i))}({refCount:!0,bufferSize:1}),Hr(this.destroy$))}effect(e){const i=new Tn;return e(i).pipe(Hr(this.destroy$)).subscribe(),r=>(gE(r)?r:Ya(r)).pipe(Hr(this.destroy$)).subscribe(s=>{i.next(s)})}checkProviderForHooks(){mE.schedule(()=>{})}assertStateIsInitialized(){if(!this.isInitialized)throw new Error(`${this.constructor.name} has not been initialized yet. Please make sure it is initialized before updating/getting.`)}}return n.\u0275fac=function(e){return new(e||n)(A(Ok,8))},n.\u0275prov=$({token:n,factory:n.\u0275fac}),n})();function SE(n,t,e){return i=>i.pipe(Ur({next:n,complete:e}),bE(r=>(t(r),xd)))}let CE=(()=>{class n extends DE{constructor(e){super({tempFile:null,isLoading:!1,error:""}),this.dotUploadService=e,this.vm$=this.select(i=>i),this.tempFile$=this.select(({tempFile:i})=>i),this.error$=this.select(({error:i})=>i),this.setTempFile=this.updater((i,r)=>({...i,tempFile:r,isLoading:!1,error:""})),this.setIsLoading=this.updater((i,r)=>({...i,isLoading:r})),this.setError=this.updater((i,r)=>({...i,isLoading:!1,error:r})),this.uploadFileByUrl=this.effect(i=>i.pipe(Ur(()=>this.setIsLoading(!0)),Ja(({url:r,signal:o})=>this.uploadTempFile(r,o))))}setMaxFileSize(e){this._maxFileSize=e/1048576}uploadTempFile(e,i){return yi(this.dotUploadService.uploadFile({file:e,maxSize:this._maxFileSize?`${this._maxFileSize}MB`:"",signal:i})).pipe(SE(r=>this.setTempFile(r),r=>{i.aborted?this.setIsLoading(!1):this.setError(r.message)}))}}return n.\u0275fac=function(e){return new(e||n)(A(El))},n.\u0275prov=$({token:n,factory:n.\u0275fac}),n})();function Lk(n,t){if(1&n&&(Oe(0,"dot-field-validation-message",12),We(1,"dm")),2&n){const e=j(2);I("message",et(1,2,e.invalidError))("field",e.form.get("url"))}}function kk(n,t){if(1&n&&(R(0,"small",13),Vt(1),We(2,"dm"),W()),2&n){const e=j().ngIf;M(1),ni(" ",et(2,1,e.error)," ")}}function jk(n,t){1&n&&(Oe(0,"p-button",14),We(1,"dm")),2&n&&I("label",et(1,2,"dot.common.import"))("icon","pi pi-download")}function Vk(n,t){1&n&&Oe(0,"p-button",15),2&n&&I("icon","pi pi-spin pi-spinner")}const Bk=function(){return{width:"6.85rem"}};function Hk(n,t){if(1&n){const e=jt();R(0,"form",1),J("ngSubmit",function(){return pe(e),me(j().onSubmit())}),R(1,"div",2)(2,"label",3),Vt(3),We(4,"dm"),W(),R(5,"input",4),J("focus",function(){const o=pe(e).ngIf;return me(j().resetError(!!o.error))}),W(),R(6,"div",5),ae(7,Lk,2,4,"dot-field-validation-message",6),ae(8,kk,3,3,"ng-template",null,7,ju),W()(),R(10,"div",8)(11,"p-button",9),J("click",function(){return pe(e),me(j().cancelUpload())}),We(12,"dm"),W(),R(13,"div"),ae(14,jk,2,4,"p-button",10),ae(15,Vk,1,1,"ng-template",null,11,ju),W()()()}if(2&n){const e=t.ngIf,i=pu(9),r=pu(16);I("formGroup",j().form),M(3),Oi(et(4,9,"dot.binary.field.action.import.from.url")),M(4),I("ngIf",!e.error)("ngIfElse",i),M(4),I("label",et(12,11,"dot.common.cancel")),M(2),function tn(n){rn(xg,eT,n,!1)}(da(13,Bk)),M(1),I("ngIf",!e.isLoading)("ngIfElse",r)}}let Uk=(()=>{class n{constructor(e){this.store=e,this.tempFileUploaded=new Y,this.cancel=new Y,this.destroy$=new Tn,this.validators=[ja.required,ja.pattern(/^(ftp|http|https):\/\/[^ "]+$/)],this.invalidError="dot.binary.field.action.import.from.url.error.message",this.vm$=this.store.vm$.pipe(Ur(({isLoading:i})=>this.toggleForm(i))),this.tempFileChanged$=this.store.tempFile$,this.form=new Uo({url:new Wo("",this.validators)}),this.tempFileChanged$.pipe(Hr(this.destroy$)).subscribe(i=>{this.tempFileUploaded.emit(i)})}ngOnInit(){this.store.setMaxFileSize(this.maxFileSize)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.abortController?.abort()}onSubmit(){const e=this.form.get("url");if(this.form.invalid)return;const i=e.value;this.abortController=new AbortController,this.store.uploadFileByUrl({url:i,signal:this.abortController.signal}),this.form.reset({url:i})}cancelUpload(){this.abortController?.abort(),this.cancel.emit()}resetError(e){e&&this.store.setError("")}toggleForm(e){e?this.form.disable():this.form.enable()}}return n.\u0275fac=function(e){return new(e||n)(b(CE))},n.\u0275cmp=gt({type:n,selectors:[["dot-dot-binary-field-url-mode"]],inputs:{maxFileSize:"maxFileSize",accept:"accept"},outputs:{tempFileUploaded:"tempFileUploaded",cancel:"cancel"},standalone:!0,features:[de([CE]),Ri],decls:2,vars:3,consts:[["class","url-mode__form","data-testId","form",3,"formGroup","ngSubmit",4,"ngIf"],["data-testId","form",1,"url-mode__form",3,"formGroup","ngSubmit"],[1,"url-mode__input-container"],["for","url-input"],["id","url-input","type","text","autocomplete","off","formControlName","url","pInputText","","placeholder","https://www.dotcms.com/image.png","aria-label","URL input field","data-testId","url-input",3,"focus"],[1,"error-messsage__container"],["data-testId","error-message",3,"message","field",4,"ngIf","ngIfElse"],["serverError",""],[1,"url-mode__actions"],["styleClass","p-button-outlined","type","button","aria-label","Cancel button","data-testId","cancel-button",3,"label","click"],["type","submit","aria-label","Import button","data-testId","import-button",3,"label","icon",4,"ngIf","ngIfElse"],["loadingButton",""],["data-testId","error-message",3,"message","field"],["data-testId","error-msg",1,"p-invalid"],["type","submit","aria-label","Import button","data-testId","import-button",3,"label","icon"],["type","button","aria-label","Loading button","data-testId","loading-button",3,"icon"]],template:function(e,i){1&e&&(ae(0,Hk,17,14,"form",0),We(1,"async")),2&e&&I("ngIf",et(1,1,i.vm$))},dependencies:[Mt,Lr,yd,kb,Kd,Vo,Fd,Ld,jb,Go,Qa,Vf,jf,Bf,nE,Sl,fE],styles:["[_nghost-%COMP%] {display:block;width:32rem}[_nghost-%COMP%] .p-button{width:100%}[_nghost-%COMP%] .error-messsage__container{min-height:1.5rem}.url-mode__form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;justify-content:center;align-items:flex-start}.url-mode__input-container[_ngcontent-%COMP%]{width:100%;display:flex;gap:.5rem;flex-direction:column}.url-mode__actions[_ngcontent-%COMP%]{width:100%;display:flex;gap:.5rem;align-items:center;justify-content:flex-end}"],changeDetection:0}),n})();var fi=(()=>(function(n){n.DEFAULT="DEFAULT",n.SERVER_ERROR="SERVER_ERROR",n.FILE_TYPE_MISMATCH="FILE_TYPE_MISMATCH",n.MAX_FILE_SIZE_EXCEEDED="MAX_FILE_SIZE_EXCEEDED"}(fi||(fi={})),fi))();const $k={DEFAULT:{message:"dot.binary.field.drag.and.drop.message",severity:"info",icon:"pi pi-upload"},SERVER_ERROR:{message:"dot.binary.field.drag.and.drop.error.server.error.message",severity:"error",icon:"pi pi-exclamation-triangle"},FILE_TYPE_MISMATCH:{message:"dot.binary.field.drag.and.drop.error.file.not.supported.message",severity:"error",icon:"pi pi-exclamation-triangle"},MAX_FILE_SIZE_EXCEEDED:{message:"dot.binary.field.drag.and.drop.error.file.maxsize.exceeded.message",severity:"error",icon:"pi pi-exclamation-triangle"}},ns=(n,...t)=>{const{message:e,severity:i,icon:r}=$k[n];return{message:e,severity:i,icon:r,args:t}};var hi=(()=>(function(n){n.DROPZONE="DROPZONE",n.URL="URL",n.EDITOR="EDITOR"}(hi||(hi={})),hi))(),dn=(()=>(function(n){n.INIT="INIT",n.UPLOADING="UPLOADING",n.PREVIEW="PREVIEW",n.ERROR="ERROR"}(dn||(dn={})),dn))();let wE=(()=>{class n extends DE{constructor(e){super(),this.dotUploadService=e,this.vm$=this.select(i=>({...i,isLoading:i.status===dn.UPLOADING})),this.file$=this.select(i=>i.file),this.tempFile$=this.select(i=>i.tempFile),this.mode$=this.select(i=>i.mode),this.setFile=this.updater((i,r)=>({...i,file:r})),this.setDropZoneActive=this.updater((i,r)=>({...i,dropZoneActive:r})),this.setTempFile=this.updater((i,r)=>({...i,status:dn.PREVIEW,tempFile:r})),this.setUiMessage=this.updater((i,r)=>({...i,UiMessage:r})),this.setMode=this.updater((i,r)=>({...i,mode:r})),this.setStatus=this.updater((i,r)=>({...i,status:r})),this.setUploading=this.updater(i=>({...i,dropZoneActive:!1,uiMessage:ns(fi.DEFAULT),status:dn.UPLOADING})),this.setError=this.updater((i,r)=>({...i,UiMessage:r,status:dn.ERROR,tempFile:null})),this.invalidFile=this.updater((i,r)=>({...i,dropZoneActive:!1,UiMessage:r,status:dn.ERROR})),this.removeFile=this.updater(i=>({...i,file:null,tempFile:null,status:dn.INIT})),this.handleUploadFile=this.effect(i=>i.pipe(Ur(()=>this.setUploading()),Ja(r=>this.uploadTempFile(r)))),this.handleCreateFile=this.effect(i=>i.pipe())}setMaxFileSize(e){this._maxFileSizeInMB=e/1048576}uploadTempFile(e){return yi(this.dotUploadService.uploadFile({file:e,maxSize:this._maxFileSizeInMB?`${this._maxFileSizeInMB}MB`:"",signal:null})).pipe(SE(i=>this.setTempFile(i),()=>this.setError(ns(fi.SERVER_ERROR))))}}return n.\u0275fac=function(e){return new(e||n)(A(El))},n.\u0275prov=$({token:n,factory:n.\u0275fac}),n})();const zk=function(n,t,e){return{"border-width":n,width:t,height:e}};let Wk=(()=>{class n{constructor(){this.borderSize="",this.size=""}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=gt({type:n,selectors:[["dot-spinner"]],inputs:{borderSize:"borderSize",size:"size"},decls:1,vars:5,consts:[[3,"ngStyle"]],template:function(e,i){1&e&&Oe(0,"div",0),2&e&&I("ngStyle",Ly(1,zk,i.borderSize,i.size,i.size))},dependencies:[Pa],styles:["div[_ngcontent-%COMP%]{border-radius:50%;width:2.5rem;height:2.5rem;display:inline-block;vertical-align:middle;font-size:10px;position:relative;text-indent:-9999em;border:.5rem solid var(--color-palette-primary-op-20);border-left-color:var(--color-palette-primary-500);transform:translateZ(0);animation:_ngcontent-%COMP%_load8 1.1s infinite linear;overflow:hidden}.edit-page-variant-mode [_nghost-%COMP%] div[_ngcontent-%COMP%]{border:.5rem solid var(--color-palette-white-op-20);border-left-color:var(--color-palette-white-op-90)}@keyframes _ngcontent-%COMP%_load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),n})();const Gk=["inputFile"],qk=function(n){return{"binary-field__drop-zone--active":n}};function Kk(n,t){if(1&n){const e=jt();R(0,"div",10)(1,"div",11)(2,"dot-drop-zone",12),J("fileDragOver",function(){return pe(e),me(j(2).setDropZoneActiveState(!0))})("fileDragLeave",function(){return pe(e),me(j(2).setDropZoneActiveState(!1))})("fileDropped",function(r){return pe(e),me(j(2).handleFileDrop(r))}),R(3,"dot-binary-field-ui-message",13),We(4,"dm"),R(5,"button",14),J("click",function(){return pe(e),me(j(2).openFilePicker())}),Vt(6),We(7,"dm"),W()()(),R(8,"input",15,16),J("change",function(r){return pe(e),me(j(2).handleFileSelection(r))}),W()(),R(10,"div",17)(11,"p-button",18),J("click",function(){pe(e);const r=j(2);return me(r.openDialog(r.BINARY_FIELD_MODE.URL))}),We(12,"dm"),W(),R(13,"p-button",19),J("click",function(){pe(e);const r=j(2);return me(r.openDialog(r.BINARY_FIELD_MODE.EDITOR))}),We(14,"dm"),W()()()}if(2&n){const e=j().ngIf,i=j();M(1),I("ngClass",Or(19,qk,e.dropZoneActive)),M(1),I("accept",i.accept)("maxFileSize",i.maxFileSize),M(1),I("message",function zy(n,t,e,i){const r=n+22,o=v(),s=Xi(o,r);return Mo(o,r)?By(o,lt(),t,s.transform,e,i,s):s.transform(e,i)}(4,10,e.UiMessage.message,e.UiMessage.args))("icon",e.UiMessage.icon)("severity",e.UiMessage.severity),M(3),ni(" ",et(7,13,"dot.binary.field.action.choose.file")," "),M(2),I("accept",i.accept.join(",")),M(3),I("label",et(12,15,"dot.binary.field.action.import.from.url")),M(2),I("label",et(14,17,"dot.binary.field.action.create.new.file"))}}function Qk(n,t){1&n&&Oe(0,"dot-spinner",20)}function Yk(n,t){if(1&n){const e=jt();R(0,"div",21)(1,"span"),Vt(2),W(),Oe(3,"br"),R(4,"p-button",22),J("click",function(){return pe(e),me(j(2).removeFile())}),We(5,"dm"),W()()}if(2&n){const e=j().ngIf;M(2),ni(" ",e.tempFile.fileName," "),M(2),I("label",et(5,2,"dot.binary.field.action.remove"))}}function Zk(n,t){if(1&n){const e=jt();wr(0,23),R(1,"dot-dot-binary-field-url-mode",24),J("tempFileUploaded",function(r){return pe(e),me(j(2).setTempFile(r))})("cancel",function(){return pe(e),me(j(2).closeDialog())}),W(),Ir()}if(2&n){const e=j(2);M(1),I("accept",e.accept)("maxFileSize",e.maxFileSize)}}function Xk(n,t){if(1&n){const e=jt();wr(0,25),R(1,"dot-dot-binary-field-editor",26),J("tempFileUploaded",function(r){return pe(e),me(j(2).setTempFile(r))})("cancel",function(){return pe(e),me(j(2).closeDialog())}),W(),Ir()}if(2&n){const e=j(2);M(1),I("accept",e.accept)}}const Jk=function(n){return{"binary-field__container--uploading":n}};function e2(n,t){if(1&n){const e=jt();R(0,"div",2),ae(1,Kk,15,21,"div",3),ae(2,Qk,1,0,"dot-spinner",4),ae(3,Yk,6,4,"div",5),R(4,"p-dialog",6),J("visibleChange",function(r){return pe(e),me(j().dialogOpen=r)})("onHide",function(){return pe(e),me(j().afterDialogClose())}),We(5,"dm"),wr(6,7),ae(7,Zk,2,2,"ng-container",8),ae(8,Xk,2,1,"ng-container",9),Ir(),W()()}if(2&n){const e=t.ngIf,i=j();I("ngClass",Or(16,Jk,e.status===i.BINARY_FIELD_STATUS.UPLOADING)),M(1),I("ngIf",e.status===i.BINARY_FIELD_STATUS.INIT||e.status===i.BINARY_FIELD_STATUS.ERROR),M(1),I("ngIf",e.status===i.BINARY_FIELD_STATUS.UPLOADING),M(1),I("ngIf",e.status===i.BINARY_FIELD_STATUS.PREVIEW),M(1),I("visible",i.dialogOpen)("modal",!0)("header",et(5,14,i.dialogHeaderMap[e.mode]))("draggable",!1)("resizable",!1)("closeOnEscape",!1)("styleClass",i.isEditorMode(e.mode)?"screen-cover":""),M(2),I("ngSwitch",e.mode),M(1),I("ngSwitchCase",i.BINARY_FIELD_MODE.URL),M(1),I("ngSwitchCase",i.BINARY_FIELD_MODE.EDITOR)}}function t2(n,t){if(1&n&&(R(0,"div",27),Oe(1,"i",28),R(2,"span",29),Vt(3),W()()),2&n){const e=j();M(3),Oi(e.helperText)}}const n2={file:null,tempFile:null,mode:hi.DROPZONE,status:dn.INIT,dropZoneActive:!1,UiMessage:ns(fi.DEFAULT)};let IE=(()=>{class n{constructor(e,i){this.dotBinaryFieldStore=e,this.dotMessageService=i,this.accept=[],this.tempFile=new Y,this.dialogHeaderMap={[hi.URL]:"dot.binary.field.dialog.import.from.url.header",[hi.EDITOR]:"dot.binary.field.dialog.create.new.file.header"},this.BINARY_FIELD_STATUS=dn,this.BINARY_FIELD_MODE=hi,this.vm$=this.dotBinaryFieldStore.vm$,this.dialogOpen=!1,this.dotBinaryFieldStore.setState(n2),this.dotMessageService.init()}ngOnInit(){this.dotBinaryFieldStore.tempFile$.pipe(function bL(n){return t=>t.lift(new DL(n))}(1)).subscribe(e=>{this.tempFile.emit(e)}),this.dotBinaryFieldStore.setMaxFileSize(this.maxFileSize)}setDropZoneActiveState(e){this.dotBinaryFieldStore.setDropZoneActive(e)}handleFileDrop({validity:e,file:i}){if(e.valid)this.dotBinaryFieldStore.handleUploadFile(i);else{const r=this.handleFileDropError(e);this.dotBinaryFieldStore.invalidFile(r)}}openDialog(e){this.dialogOpen=!0,this.dotBinaryFieldStore.setMode(e)}closeDialog(){this.dialogOpen=!1}afterDialogClose(){this.dotBinaryFieldStore.setMode(null)}openFilePicker(){this.inputFile.nativeElement.click()}handleFileSelection(e){this.dotBinaryFieldStore.handleUploadFile(e.target.files[0])}removeFile(){this.dotBinaryFieldStore.removeFile()}setTempFile(e){this.dotBinaryFieldStore.setTempFile(e),this.dialogOpen=!1}isEditorMode(e){return e===hi.EDITOR}handleFileDropError({fileTypeMismatch:e,maxFileSizeExceeded:i}){const r=this.accept.join(", "),o=`${this.maxFileSize} bytes`;let s;return e?s=ns(fi.FILE_TYPE_MISMATCH,r):i&&(s=ns(fi.MAX_FILE_SIZE_EXCEEDED,o)),s}}return n.\u0275fac=function(e){return new(e||n)(b(wE),b(ts))},n.\u0275cmp=gt({type:n,selectors:[["dot-binary-field"]],viewQuery:function(e,i){if(1&e&&Fi(Gk,5),2&e){let r;on(r=sn())&&(i.inputFile=r.first)}},inputs:{accept:"accept",maxFileSize:"maxFileSize",helperText:"helperText",contentlet:"contentlet"},outputs:{tempFile:"tempFile"},standalone:!0,features:[de([wE]),Ri],decls:3,vars:4,consts:[["class","binary-field__container",3,"ngClass",4,"ngIf"],["class","binary-field__helper",4,"ngIf"],[1,"binary-field__container",3,"ngClass"],["class","binary-field__drop-zone-container","data-testId","binary-field__drop-zone-container",4,"ngIf"],["data-testId","loading",4,"ngIf"],["data-testId","preview",4,"ngIf"],[3,"visible","modal","header","draggable","resizable","closeOnEscape","styleClass","visibleChange","onHide"],[3,"ngSwitch"],["data-testId","url",4,"ngSwitchCase"],["data-testId","editor",4,"ngSwitchCase"],["data-testId","binary-field__drop-zone-container",1,"binary-field__drop-zone-container"],[1,"binary-field__drop-zone",3,"ngClass"],["data-testId","dropzone",3,"accept","maxFileSize","fileDragOver","fileDragLeave","fileDropped"],[3,"message","icon","severity"],["data-testId","choose-file-btn",1,"binary-field__drop-zone-btn",3,"click"],["type","file","data-testId","binary-field__file-input",1,"binary-field__input",3,"accept","change"],["inputFile",""],[1,"binary-field__actions"],["data-testId","action-url-btn","styleClass","p-button-link","icon","pi pi-link",3,"label","click"],["data-testId","action-editor-btn","styleClass","p-button-link","icon","pi pi-code",3,"label","click"],["data-testId","loading"],["data-testId","preview"],["data-testId","action-remove-btn","icon","pi pi-trash",1,"p-button-outlined",3,"label","click"],["data-testId","url"],["data-testId","url-mode",3,"accept","maxFileSize","tempFileUploaded","cancel"],["data-testId","editor"],["data-testId","editor-mode",3,"accept","tempFileUploaded","cancel"],[1,"binary-field__helper"],[1,"pi","pi-info-circle","binary-field__helper-icon"],["data-testId","helper-text"]],template:function(e,i){1&e&&(ae(0,e2,9,18,"div",0),We(1,"async"),ae(2,t2,4,1,"div",1)),2&e&&(I("ngIf",et(1,2,i.vm$)),M(2),I("ngIf",i.helperText))},dependencies:[Mt,Fr,Lr,xa,sv,yd,Vf,jf,vL,_L,HL,tf,Sl,uk,VL,Wk,OF,lk,Bf,Uk],styles:[".screen-cover{width:90vw;height:90vh;min-width:40rem;min-height:40rem}.binary-field__container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:100%;gap:1rem;border-radius:.375rem;border:1.5px solid #ebecef;padding:.5rem;margin-bottom:.5rem;height:10rem}.binary-field__container--uploading[_ngcontent-%COMP%]{border:1.5px dashed #ebecef}.binary-field__helper-icon[_ngcontent-%COMP%]{color:#8d92a5}.binary-field__helper[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center;gap:.5rem;color:#6c7389;font-weight:.813rem}.binary-field__actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;justify-content:center;align-items:flex-start}.binary-field__actions[_ngcontent-%COMP%] .p-button{display:inline-flex;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center}.binary-field__actions[_ngcontent-%COMP%] .p-button-link .p-button-label{color:#14151a}.binary-field__actions[_ngcontent-%COMP%] .p-button-link .p-button-icon{color:var(--color-palette-secondary-500)}.binary-field__drop-zone-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:100%;width:100%}.binary-field__drop-zone[_ngcontent-%COMP%]{border:1.5px dashed #afb3c0;display:flex;flex-direction:column;justify-content:center;align-items:center;border-radius:.375rem;-webkit-user-select:none;user-select:none;cursor:default;flex-grow:1;height:100%}.binary-field__drop-zone[_ngcontent-%COMP%] .binary-field__drop-zone-btn[_ngcontent-%COMP%]{border:none;background:none;color:var(--color-palette-primary-500);text-decoration:underline;font-size:1rem;font-family:Assistant,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;padding:revert}.binary-field__drop-zone--active[_ngcontent-%COMP%]{border-radius:.375rem;border-color:var(--color-palette-secondary-500);background:#ffffff;box-shadow:0 0 4px #14151a0a,0 8px 16px #14151a14}.binary-field__drop-zone[_ngcontent-%COMP%] dot-drop-zone[_ngcontent-%COMP%]{height:100%;width:100%}.binary-field__input[_ngcontent-%COMP%]{display:none}.binary-field__code-editor[_ngcontent-%COMP%]{border:1px solid #afb3c0;display:block;height:25rem}p-dialog[_ngcontent-%COMP%] .p-dialog-mask.p-component-overlay{background-color:transparent;-webkit-backdrop-filter:blur(.375rem);backdrop-filter:blur(.375rem)}"],changeDetection:0}),n})();const r2=[{tag:"dotcms-binary-field",component:IE}];let o2=(()=>{class n{constructor(e){this.injector=e}ngDoBootstrap(){try{r2.forEach(({tag:e,component:i})=>{if(customElements.get(e))return;const r=function lN(n,t){const e=function tN(n,t){return t.get(ur).resolveComponentFactory(n).inputs}(n,t.injector),i=t.strategyFactory||new oN(n,t.injector),r=function eN(n){const t={};return n.forEach(({propName:e,templateName:i})=>{t[function QO(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}(i)]=e}),t}(e);class o extends aN{get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||t.injector);e.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}constructor(a){super(),this.injector=a}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(r[a],c)}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=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return o.observedAttributes=Object.keys(r),e.forEach(({propName:s})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(a){this.ngElementStrategy.setInputValue(s,a)},configurable:!0,enumerable:!0})}),o}(i,{injector:this.injector});customElements.define(e,r)})}catch(e){console.error(e)}}}return n.\u0275fac=function(e){return new(e||n)(A(gn))},n.\u0275mod=ke({type:n}),n.\u0275inj=xe({providers:[ts,El],imports:[Ov,cF,IE,tf]}),n})();_1().bootstrapModule(o2).catch(n=>console.error(n))},13131:(mi,rs,In)=>{var rt={"./ar-DZ/_lib/formatDistance/index.js":[28066,8592],"./ar-DZ/_lib/formatLong/index.js":[86369,8592,9493],"./ar-DZ/_lib/formatRelative/index.js":[89786,8592],"./ar-DZ/_lib/localize/index.js":[36207,8592,4373],"./ar-DZ/_lib/match/index.js":[53371,8592,2877],"./ar-DZ/index.js":[76327,8592,4288],"./ar-EG/_lib/formatDistance/index.js":[95932,8592],"./ar-EG/_lib/formatLong/index.js":[46023,8592,3639],"./ar-EG/_lib/formatRelative/index.js":[74621,8592],"./ar-EG/_lib/localize/index.js":[93376,8592,1378],"./ar-EG/_lib/match/index.js":[76456,8592,9284],"./ar-EG/index.js":[30830,8592,8477],"./ar-MA/_lib/formatDistance/index.js":[25565,8592],"./ar-MA/_lib/formatLong/index.js":[81783,8592,7236],"./ar-MA/_lib/formatRelative/index.js":[90030,8592],"./ar-MA/_lib/localize/index.js":[60503,8592,7995],"./ar-MA/_lib/match/index.js":[83427,8592,8213],"./ar-MA/index.js":[96094,8592,9736],"./ar-SA/_lib/formatDistance/index.js":[3797,8592],"./ar-SA/_lib/formatLong/index.js":[73212,8592,9090],"./ar-SA/_lib/formatRelative/index.js":[79009,8592],"./ar-SA/_lib/localize/index.js":[12535,8592,124],"./ar-SA/_lib/match/index.js":[14710,8592,2912],"./ar-SA/index.js":[54370,8592,6562],"./ar-TN/_lib/formatDistance/index.js":[56566,8592],"./ar-TN/_lib/formatLong/index.js":[4585,8592,3753],"./ar-TN/_lib/formatRelative/index.js":[5374,8592],"./ar-TN/_lib/localize/index.js":[85963,8592,4843],"./ar-TN/_lib/match/index.js":[13401,8592,2581],"./ar-TN/index.js":[37373,8592,6426],"./be-tarask/_lib/formatDistance/index.js":[82665,8592],"./be-tarask/_lib/formatLong/index.js":[9662,8592,5806],"./be-tarask/_lib/formatRelative/index.js":[4653,4,8592],"./be-tarask/_lib/localize/index.js":[40591,8592,1283],"./be-tarask/_lib/match/index.js":[34412,8592,9938],"./be-tarask/index.js":[27840,4,8592,7840],"./de-AT/_lib/localize/index.js":[44821,8592,8300],"./de-AT/index.js":[21782,8592,243],"./en-AU/_lib/formatLong/index.js":[65493,8592,6237],"./en-AU/index.js":[87747,8592,1128],"./en-CA/_lib/formatDistance/index.js":[80780,8592],"./en-CA/_lib/formatLong/index.js":[26153,8592,7747],"./en-CA/index.js":[21413,8592,7555],"./en-GB/_lib/formatLong/index.js":[33819,8592,4547],"./en-GB/index.js":[33035,8592,1228],"./en-IE/index.js":[61959,8592,463],"./en-IN/_lib/formatLong/index.js":[20862,8592,3191],"./en-IN/index.js":[82873,8592,8757],"./en-NZ/_lib/formatLong/index.js":[36336,8592,3197],"./en-NZ/index.js":[26041,8592,5966],"./en-US/_lib/formatDistance/index.js":[39563,9563],"./en-US/_lib/formatLong/index.js":[66929,6929],"./en-US/_lib/formatRelative/index.js":[21656,1656],"./en-US/_lib/localize/index.js":[31098,9350],"./en-US/_lib/match/index.js":[53239,3239],"./en-US/index.js":[33338,3338],"./en-ZA/_lib/formatLong/index.js":[9221,8592,6951],"./en-ZA/index.js":[11543,8592,4093],"./fa-IR/_lib/formatDistance/index.js":[76726,8592],"./fa-IR/_lib/formatLong/index.js":[10749,8592,7612],"./fa-IR/_lib/formatRelative/index.js":[7220,8592],"./fa-IR/_lib/localize/index.js":[72441,8592,9371],"./fa-IR/_lib/match/index.js":[81488,8592,7743],"./fa-IR/index.js":[84996,8592,5974],"./fr-CA/_lib/formatLong/index.js":[85947,8592,4367],"./fr-CA/index.js":[73723,8592,1688],"./fr-CH/_lib/formatLong/index.js":[27414,8592,3603],"./fr-CH/_lib/formatRelative/index.js":[66155,8592],"./fr-CH/index.js":[24565,8592,4087],"./it-CH/_lib/formatLong/index.js":[31519,8592,6685],"./it-CH/index.js":[87736,8592,2324],"./ja-Hira/_lib/formatDistance/index.js":[84703,8592],"./ja-Hira/_lib/formatLong/index.js":[56574,8592,7336],"./ja-Hira/_lib/formatRelative/index.js":[93381,8592],"./ja-Hira/_lib/localize/index.js":[35710,8592,3665],"./ja-Hira/_lib/match/index.js":[69417,8592,3148],"./ja-Hira/index.js":[12944,8592,1464],"./nl-BE/_lib/formatDistance/index.js":[16129,8592],"./nl-BE/_lib/formatLong/index.js":[17657,8592,3039],"./nl-BE/_lib/formatRelative/index.js":[89811,8592],"./nl-BE/_lib/localize/index.js":[58816,8592,1681],"./nl-BE/_lib/match/index.js":[28333,8592,2237],"./nl-BE/index.js":[70296,8592,4862],"./pt-BR/_lib/formatDistance/index.js":[52638,8592],"./pt-BR/_lib/formatLong/index.js":[33247,8592,4753],"./pt-BR/_lib/formatRelative/index.js":[25492,8592],"./pt-BR/_lib/localize/index.js":[81046,8592,2258],"./pt-BR/_lib/match/index.js":[63770,8592,9792],"./pt-BR/index.js":[47569,8592,1100],"./sr-Latn/_lib/formatDistance/index.js":[69014,8592],"./sr-Latn/_lib/formatLong/index.js":[99257,8592,275],"./sr-Latn/_lib/formatRelative/index.js":[42428,8592],"./sr-Latn/_lib/localize/index.js":[92773,8592,7136],"./sr-Latn/_lib/match/index.js":[7766,8592,3177],"./sr-Latn/index.js":[99064,8592,2152],"./uz-Cyrl/_lib/formatDistance/index.js":[67778,8592],"./uz-Cyrl/_lib/formatLong/index.js":[64095,8592,160],"./uz-Cyrl/_lib/formatRelative/index.js":[83734,8592],"./uz-Cyrl/_lib/localize/index.js":[17670,8592,2654],"./uz-Cyrl/_lib/match/index.js":[75798,8592,1360],"./uz-Cyrl/index.js":[14527,8592,8932],"./zh-CN/_lib/formatDistance/index.js":[33437,8592],"./zh-CN/_lib/formatLong/index.js":[91583,8592,485],"./zh-CN/_lib/formatRelative/index.js":[95629,8592,5441],"./zh-CN/_lib/localize/index.js":[17939,8592,9169],"./zh-CN/_lib/match/index.js":[71362,8592,7103],"./zh-CN/index.js":[86335,8592,8664],"./zh-HK/_lib/formatDistance/index.js":[37348,8592],"./zh-HK/_lib/formatLong/index.js":[60924,8592,3215],"./zh-HK/_lib/formatRelative/index.js":[22164,8592],"./zh-HK/_lib/localize/index.js":[39264,8592,1780],"./zh-HK/_lib/match/index.js":[50358,8592,5641],"./zh-HK/index.js":[59277,8592,2336],"./zh-TW/_lib/formatDistance/index.js":[31613,8592],"./zh-TW/_lib/formatLong/index.js":[1239,8592,248],"./zh-TW/_lib/formatRelative/index.js":[13240,8592],"./zh-TW/_lib/localize/index.js":[29850,8592,9886],"./zh-TW/_lib/match/index.js":[38819,8592,8041],"./zh-TW/index.js":[74565,8592,8978]};function qt(Le){if(!In.o(rt,Le))return Promise.resolve().then(()=>{var Kt=new Error("Cannot find module '"+Le+"'");throw Kt.code="MODULE_NOT_FOUND",Kt});var bt=rt[Le],Kn=bt[0];return Promise.all(bt.slice(1).map(In.e)).then(()=>In.t(Kn,23))}qt.keys=()=>Object.keys(rt),qt.id=13131,mi.exports=qt},71213:(mi,rs,In)=>{var rt={"./_lib/buildFormatLongFn/index.js":[88995,7,8995],"./_lib/buildLocalizeFn/index.js":[77579,7,7579],"./_lib/buildMatchFn/index.js":[84728,7,4728],"./_lib/buildMatchPatternFn/index.js":[27223,7,7223],"./af/_lib/formatDistance/index.js":[55864,7,8592],"./af/_lib/formatLong/index.js":[25358,7,8592,9848],"./af/_lib/formatRelative/index.js":[25892,7,8592],"./af/_lib/localize/index.js":[18874,7,8592,459],"./af/_lib/match/index.js":[22146,7,8592,4568],"./af/index.js":[72399,7,8592,6595],"./ar-DZ/_lib/formatDistance/index.js":[28066,7,8592],"./ar-DZ/_lib/formatLong/index.js":[86369,7,8592,9493],"./ar-DZ/_lib/formatRelative/index.js":[89786,7,8592],"./ar-DZ/_lib/localize/index.js":[36207,7,8592,4373],"./ar-DZ/_lib/match/index.js":[53371,7,8592,2877],"./ar-DZ/index.js":[76327,7,8592,4288],"./ar-EG/_lib/formatDistance/index.js":[95932,7,8592],"./ar-EG/_lib/formatLong/index.js":[46023,7,8592,3639],"./ar-EG/_lib/formatRelative/index.js":[74621,7,8592],"./ar-EG/_lib/localize/index.js":[93376,7,8592,1378],"./ar-EG/_lib/match/index.js":[76456,7,8592,9284],"./ar-EG/index.js":[30830,7,8592,8477],"./ar-MA/_lib/formatDistance/index.js":[25565,7,8592],"./ar-MA/_lib/formatLong/index.js":[81783,7,8592,7236],"./ar-MA/_lib/formatRelative/index.js":[90030,7,8592],"./ar-MA/_lib/localize/index.js":[60503,7,8592,7995],"./ar-MA/_lib/match/index.js":[83427,7,8592,8213],"./ar-MA/index.js":[96094,7,8592,9736],"./ar-SA/_lib/formatDistance/index.js":[3797,7,8592],"./ar-SA/_lib/formatLong/index.js":[73212,7,8592,9090],"./ar-SA/_lib/formatRelative/index.js":[79009,7,8592],"./ar-SA/_lib/localize/index.js":[12535,7,8592,124],"./ar-SA/_lib/match/index.js":[14710,7,8592,2912],"./ar-SA/index.js":[54370,7,8592,6562],"./ar-TN/_lib/formatDistance/index.js":[56566,7,8592],"./ar-TN/_lib/formatLong/index.js":[4585,7,8592,3753],"./ar-TN/_lib/formatRelative/index.js":[5374,7,8592],"./ar-TN/_lib/localize/index.js":[85963,7,8592,4843],"./ar-TN/_lib/match/index.js":[13401,7,8592,2581],"./ar-TN/index.js":[37373,7,8592,6426],"./ar/_lib/formatDistance/index.js":[91118,7,8592],"./ar/_lib/formatLong/index.js":[90899,7,8592,319],"./ar/_lib/formatRelative/index.js":[18739,7,8592],"./ar/_lib/localize/index.js":[64620,7,8592,9521],"./ar/_lib/match/index.js":[32101,7,8592,6574],"./ar/index.js":[91780,7,8592,7519],"./az/_lib/formatDistance/index.js":[2541,7,8592],"./az/_lib/formatLong/index.js":[6246,7,8592,1481],"./az/_lib/formatRelative/index.js":[33557,7,8592],"./az/_lib/localize/index.js":[89347,7,8592,38],"./az/_lib/match/index.js":[75242,7,8592,5991],"./az/index.js":[170,7,8592,6265],"./be-tarask/_lib/formatDistance/index.js":[82665,7,8592],"./be-tarask/_lib/formatLong/index.js":[9662,7,8592,5806],"./be-tarask/_lib/formatRelative/index.js":[4653,7,4,8592],"./be-tarask/_lib/localize/index.js":[40591,7,8592,1283],"./be-tarask/_lib/match/index.js":[34412,7,8592,9938],"./be-tarask/index.js":[27840,7,4,8592,7840],"./be/_lib/formatDistance/index.js":[9006,7,8592],"./be/_lib/formatLong/index.js":[58343,7,8592,193],"./be/_lib/formatRelative/index.js":[20369,7,4,8592],"./be/_lib/localize/index.js":[30768,7,8592,36],"./be/_lib/match/index.js":[35637,7,8592,7910],"./be/index.js":[94646,7,4,8592,4646],"./bg/_lib/formatDistance/index.js":[54037,7,8592],"./bg/_lib/formatLong/index.js":[44221,7,8592,8416],"./bg/_lib/formatRelative/index.js":[24925,7,8592,9491],"./bg/_lib/localize/index.js":[60958,7,8592,7265],"./bg/_lib/match/index.js":[99124,7,8592,4480],"./bg/index.js":[90948,7,8592,6516],"./bn/_lib/formatDistance/index.js":[5190,7,8592,9310],"./bn/_lib/formatLong/index.js":[10846,7,8592,6590],"./bn/_lib/formatRelative/index.js":[90009,7,8592],"./bn/_lib/localize/index.js":[32143,9,8592,6288],"./bn/_lib/match/index.js":[71701,7,8592,9531],"./bn/index.js":[76982,7,8592,1832],"./bs/_lib/formatDistance/index.js":[3504,7,8592],"./bs/_lib/formatLong/index.js":[47625,7,8592,8960],"./bs/_lib/formatRelative/index.js":[69642,7,8592],"./bs/_lib/localize/index.js":[19781,7,8592,5350],"./bs/_lib/match/index.js":[98469,7,8592,7403],"./bs/index.js":[21670,7,8592,6919],"./ca/_lib/formatDistance/index.js":[78470,7,8592],"./ca/_lib/formatLong/index.js":[37682,7,8592,1927],"./ca/_lib/formatRelative/index.js":[73019,7,8592],"./ca/_lib/localize/index.js":[94354,7,8592,6716],"./ca/_lib/match/index.js":[87821,7,8592,4111],"./ca/index.js":[59800,7,8592,2376],"./cs/_lib/formatDistance/index.js":[84712,7,8592],"./cs/_lib/formatLong/index.js":[25366,7,8592,3353],"./cs/_lib/formatRelative/index.js":[30404,7,8592],"./cs/_lib/localize/index.js":[1944,7,8592,7884],"./cs/_lib/match/index.js":[8302,7,8592,4925],"./cs/index.js":[27463,7,8592,9494],"./cy/_lib/formatDistance/index.js":[53860,7,8592],"./cy/_lib/formatLong/index.js":[5355,7,8592,6718],"./cy/_lib/formatRelative/index.js":[11612,7,8592],"./cy/_lib/localize/index.js":[79008,7,8592,6502],"./cy/_lib/match/index.js":[69946,7,8592,9797],"./cy/index.js":[87955,7,8592,7039],"./da/_lib/formatDistance/index.js":[32439,7,8592],"./da/_lib/formatLong/index.js":[40114,7,8592,8688],"./da/_lib/formatRelative/index.js":[33452,7,8592],"./da/_lib/localize/index.js":[22653,7,8592,2710],"./da/_lib/match/index.js":[1416,7,8592,7195],"./da/index.js":[11295,7,8592,2630],"./de-AT/_lib/localize/index.js":[44821,7,8592,8300],"./de-AT/index.js":[21782,7,8592,243],"./de/_lib/formatDistance/index.js":[98815,7,8592],"./de/_lib/formatLong/index.js":[47173,7,8592,4801],"./de/_lib/formatRelative/index.js":[5278,7,8592],"./de/_lib/localize/index.js":[54552,7,8592,6131],"./de/_lib/match/index.js":[31871,7,8592,5131],"./de/index.js":[94086,7,8592,9616],"./el/_lib/formatDistance/index.js":[39298,7,8592],"./el/_lib/formatLong/index.js":[94460,7,8592,2027],"./el/_lib/formatRelative/index.js":[72435,7,8592],"./el/_lib/localize/index.js":[674,7,8592,7538],"./el/_lib/match/index.js":[40588,7,8592,2187],"./el/index.js":[26106,7,8592,5382],"./en-AU/_lib/formatLong/index.js":[65493,7,8592,6237],"./en-AU/index.js":[87747,7,8592,1128],"./en-CA/_lib/formatDistance/index.js":[80780,7,8592],"./en-CA/_lib/formatLong/index.js":[26153,7,8592,7747],"./en-CA/index.js":[21413,7,8592,7555],"./en-GB/_lib/formatLong/index.js":[33819,7,8592,4547],"./en-GB/index.js":[33035,7,8592,1228],"./en-IE/index.js":[61959,7,8592,463],"./en-IN/_lib/formatLong/index.js":[20862,7,8592,3191],"./en-IN/index.js":[82873,7,8592,8757],"./en-NZ/_lib/formatLong/index.js":[36336,7,8592,3197],"./en-NZ/index.js":[26041,7,8592,5966],"./en-US/_lib/formatDistance/index.js":[39563,7,9563],"./en-US/_lib/formatLong/index.js":[66929,7,6929],"./en-US/_lib/formatRelative/index.js":[21656,7,1656],"./en-US/_lib/localize/index.js":[31098,7,9350],"./en-US/_lib/match/index.js":[53239,7,3239],"./en-US/index.js":[33338,7,3338],"./en-ZA/_lib/formatLong/index.js":[9221,7,8592,6951],"./en-ZA/index.js":[11543,7,8592,4093],"./eo/_lib/formatDistance/index.js":[43549,7,8592],"./eo/_lib/formatLong/index.js":[25567,7,8592,8118],"./eo/_lib/formatRelative/index.js":[30410,7,8592],"./eo/_lib/localize/index.js":[27249,7,8592,1634],"./eo/_lib/match/index.js":[75687,7,8592,8199],"./eo/index.js":[63574,7,8592,1411],"./es/_lib/formatDistance/index.js":[66660,7,8592],"./es/_lib/formatLong/index.js":[39055,7,8592,8248],"./es/_lib/formatRelative/index.js":[63774,7,8592],"./es/_lib/localize/index.js":[38835,7,8592,7568],"./es/_lib/match/index.js":[38662,7,8592,6331],"./es/index.js":[23413,7,8592,7412],"./et/_lib/formatDistance/index.js":[64334,7,8592],"./et/_lib/formatLong/index.js":[32045,7,8592,7372],"./et/_lib/formatRelative/index.js":[47074,7,8592],"./et/_lib/localize/index.js":[42462,7,8592,6778],"./et/_lib/match/index.js":[85999,7,8592,7670],"./et/index.js":[65861,7,8592,8138],"./eu/_lib/formatDistance/index.js":[91793,7,8592],"./eu/_lib/formatLong/index.js":[17350,7,8592,2069],"./eu/_lib/formatRelative/index.js":[25688,7,8592],"./eu/_lib/localize/index.js":[28061,7,8592,8759],"./eu/_lib/match/index.js":[11113,7,8592,7462],"./eu/index.js":[29618,7,8592,7969],"./fa-IR/_lib/formatDistance/index.js":[76726,7,8592],"./fa-IR/_lib/formatLong/index.js":[10749,7,8592,7612],"./fa-IR/_lib/formatRelative/index.js":[7220,7,8592],"./fa-IR/_lib/localize/index.js":[72441,7,8592,9371],"./fa-IR/_lib/match/index.js":[81488,7,8592,7743],"./fa-IR/index.js":[84996,7,8592,5974],"./fi/_lib/formatDistance/index.js":[97929,7,8592],"./fi/_lib/formatLong/index.js":[63741,7,8592,694],"./fi/_lib/formatRelative/index.js":[23234,7,8592],"./fi/_lib/localize/index.js":[5936,7,8592,1090],"./fi/_lib/match/index.js":[157,7,8592,5464],"./fi/index.js":[3596,7,8592,4420],"./fr-CA/_lib/formatLong/index.js":[85947,7,8592,4367],"./fr-CA/index.js":[73723,7,8592,1688],"./fr-CH/_lib/formatLong/index.js":[27414,7,8592,3603],"./fr-CH/_lib/formatRelative/index.js":[66155,7,8592],"./fr-CH/index.js":[24565,7,8592,4087],"./fr/_lib/formatDistance/index.js":[26839,7,8592],"./fr/_lib/formatLong/index.js":[32554,7,8592,7586],"./fr/_lib/formatRelative/index.js":[15328,7,8592],"./fr/_lib/localize/index.js":[29821,7,8592,6409],"./fr/_lib/match/index.js":[57047,7,8592,7405],"./fr/index.js":[34153,7,8592,5146],"./fy/_lib/formatDistance/index.js":[60373,7,8592],"./fy/_lib/formatLong/index.js":[97771,7,8592,7654],"./fy/_lib/formatRelative/index.js":[33851,7,8592],"./fy/_lib/localize/index.js":[86993,7,8592,6579],"./fy/_lib/match/index.js":[48603,7,8592,5284],"./fy/index.js":[73434,7,8592,7176],"./gd/_lib/formatDistance/index.js":[45690,7,8592],"./gd/_lib/formatLong/index.js":[2660,7,8592,2e3],"./gd/_lib/formatRelative/index.js":[30700,7,8592],"./gd/_lib/localize/index.js":[40751,7,8592,8987],"./gd/_lib/match/index.js":[40421,7,8592,8809],"./gd/index.js":[48569,7,8592,296],"./gl/_lib/formatDistance/index.js":[35871,7,8592],"./gl/_lib/formatLong/index.js":[30449,7,8592,359],"./gl/_lib/formatRelative/index.js":[95563,7,8592],"./gl/_lib/localize/index.js":[61905,7,8592,594],"./gl/_lib/match/index.js":[33150,7,8592,5012],"./gl/index.js":[96508,7,8592,4612],"./gu/_lib/formatDistance/index.js":[88210,7,8592],"./gu/_lib/formatLong/index.js":[63333,7,8592,7308],"./gu/_lib/formatRelative/index.js":[89348,7,8592],"./gu/_lib/localize/index.js":[50143,7,8592,6108],"./gu/_lib/match/index.js":[50932,7,8592,7091],"./gu/index.js":[75732,7,8592,6971],"./he/_lib/formatDistance/index.js":[42191,7,8592],"./he/_lib/formatLong/index.js":[13925,7,8592,7992],"./he/_lib/formatRelative/index.js":[11481,7,8592],"./he/_lib/localize/index.js":[19661,7,8592,5989],"./he/_lib/match/index.js":[41291,7,8592,5362],"./he/index.js":[86517,7,8592,340],"./hi/_lib/formatDistance/index.js":[52573,7,8592,9170],"./hi/_lib/formatLong/index.js":[30535,7,8592,9664],"./hi/_lib/formatRelative/index.js":[65379,7,8592],"./hi/_lib/localize/index.js":[35423,9,8592,383],"./hi/_lib/match/index.js":[78198,7,8592,652],"./hi/index.js":[29562,7,8592,2592],"./hr/_lib/formatDistance/index.js":[7652,7,8592],"./hr/_lib/formatLong/index.js":[29577,7,8592,6290],"./hr/_lib/formatRelative/index.js":[27603,7,8592],"./hr/_lib/localize/index.js":[12512,7,8592,5734],"./hr/_lib/match/index.js":[83880,7,8592,8808],"./hr/index.js":[41499,7,8592,9108],"./ht/_lib/formatDistance/index.js":[17743,7,8592],"./ht/_lib/formatLong/index.js":[50596,7,8592,1669],"./ht/_lib/formatRelative/index.js":[66473,7,8592],"./ht/_lib/localize/index.js":[98942,7,8592,5217],"./ht/_lib/match/index.js":[18649,7,8592,4042],"./ht/index.js":[91792,7,8592,6132],"./hu/_lib/formatDistance/index.js":[74406,7,8592],"./hu/_lib/formatLong/index.js":[53971,7,8592,7275],"./hu/_lib/formatRelative/index.js":[48580,7,8592],"./hu/_lib/localize/index.js":[6998,7,8592,8730],"./hu/_lib/match/index.js":[69897,7,8592,4330],"./hu/index.js":[85980,7,8592,7955],"./hy/_lib/formatDistance/index.js":[50897,7,8592],"./hy/_lib/formatLong/index.js":[11837,7,8592,1408],"./hy/_lib/formatRelative/index.js":[3543,7,8592],"./hy/_lib/localize/index.js":[90151,7,8592,81],"./hy/_lib/match/index.js":[97177,7,8592,4931],"./hy/index.js":[83268,7,8592,5803],"./id/_lib/formatDistance/index.js":[70846,7,8592],"./id/_lib/formatLong/index.js":[53405,7,8592,7106],"./id/_lib/formatRelative/index.js":[97180,7,8592],"./id/_lib/localize/index.js":[35645,7,8592,4320],"./id/_lib/match/index.js":[87601,7,8592,3434],"./id/index.js":[90146,7,8592,3963],"./is/_lib/formatDistance/index.js":[2370,7,8592],"./is/_lib/formatLong/index.js":[74096,7,8592,1427],"./is/_lib/formatRelative/index.js":[42141,7,8592],"./is/_lib/localize/index.js":[12161,7,8592,5221],"./is/_lib/match/index.js":[20798,7,8592,4321],"./is/index.js":[84111,7,8592,5121],"./it-CH/_lib/formatLong/index.js":[31519,7,8592,6685],"./it-CH/index.js":[87736,7,8592,2324],"./it/_lib/formatDistance/index.js":[40358,7,8592],"./it/_lib/formatLong/index.js":[29588,7,8592,7173],"./it/_lib/formatRelative/index.js":[91403,7,8592,5096],"./it/_lib/localize/index.js":[62007,7,8592,5232],"./it/_lib/match/index.js":[94070,7,8592,4604],"./it/index.js":[93722,7,8592,6815],"./ja-Hira/_lib/formatDistance/index.js":[84703,7,8592],"./ja-Hira/_lib/formatLong/index.js":[56574,7,8592,7336],"./ja-Hira/_lib/formatRelative/index.js":[93381,7,8592],"./ja-Hira/_lib/localize/index.js":[35710,7,8592,3665],"./ja-Hira/_lib/match/index.js":[69417,7,8592,3148],"./ja-Hira/index.js":[12944,7,8592,1464],"./ja/_lib/formatDistance/index.js":[68018,7,8592],"./ja/_lib/formatLong/index.js":[45602,7,8592,1264],"./ja/_lib/formatRelative/index.js":[65297,7,8592],"./ja/_lib/localize/index.js":[77420,7,8592,800],"./ja/_lib/match/index.js":[83926,7,8592,4403],"./ja/index.js":[89251,7,8592,6422],"./ka/_lib/formatDistance/index.js":[39442,7,8592],"./ka/_lib/formatLong/index.js":[960,7,8592,6634],"./ka/_lib/formatRelative/index.js":[18861,7,8592],"./ka/_lib/localize/index.js":[85798,7,8592,599],"./ka/_lib/match/index.js":[55077,7,8592,3545],"./ka/index.js":[34010,7,8592,1289],"./kk/_lib/formatDistance/index.js":[44502,7,8592],"./kk/_lib/formatLong/index.js":[79591,7,8592,1473],"./kk/_lib/formatRelative/index.js":[80876,7,8592,1098],"./kk/_lib/localize/index.js":[16163,7,8592,9023],"./kk/_lib/match/index.js":[11079,7,8592,1038],"./kk/index.js":[61615,7,8592,9444],"./km/_lib/formatDistance/index.js":[69355,7,8592],"./km/_lib/formatLong/index.js":[64335,7,8592,5713],"./km/_lib/formatRelative/index.js":[68462,7,8592],"./km/_lib/localize/index.js":[32885,7,8592,5727],"./km/_lib/match/index.js":[49242,7,8592,3286],"./km/index.js":[98510,7,8592,2044],"./kn/_lib/formatDistance/index.js":[93557,7,8592],"./kn/_lib/formatLong/index.js":[19335,7,8592,2367],"./kn/_lib/formatRelative/index.js":[19080,7,8592],"./kn/_lib/localize/index.js":[83848,7,8592,61],"./kn/_lib/match/index.js":[36809,7,8592,4054],"./kn/index.js":[99517,7,8592,1417],"./ko/_lib/formatDistance/index.js":[21540,7,8592],"./ko/_lib/formatLong/index.js":[47237,7,8592,5780],"./ko/_lib/formatRelative/index.js":[91078,7,8592],"./ko/_lib/localize/index.js":[89409,7,8592,1075],"./ko/_lib/match/index.js":[38567,7,8592,9545],"./ko/index.js":[15058,7,8592,404],"./lb/_lib/formatDistance/index.js":[81904,7,8592],"./lb/_lib/formatLong/index.js":[53103,7,8592,5735],"./lb/_lib/formatRelative/index.js":[64861,7,8592],"./lb/_lib/localize/index.js":[13317,7,8592,8947],"./lb/_lib/match/index.js":[72652,7,8592,6123],"./lb/index.js":[61953,7,8592,9937],"./lt/_lib/formatDistance/index.js":[55348,7,8592],"./lt/_lib/formatLong/index.js":[18290,7,8592,5214],"./lt/_lib/formatRelative/index.js":[53257,7,8592],"./lt/_lib/localize/index.js":[62395,7,8592,6006],"./lt/_lib/match/index.js":[5825,7,8592,8766],"./lt/index.js":[35901,7,8592,1422],"./lv/_lib/formatDistance/index.js":[28910,7,8592],"./lv/_lib/formatLong/index.js":[86421,7,8592,2624],"./lv/_lib/formatRelative/index.js":[60151,7,8592,3746],"./lv/_lib/localize/index.js":[44960,7,8592,406],"./lv/_lib/match/index.js":[4876,7,8592,4139],"./lv/index.js":[82008,7,8592,2537],"./mk/_lib/formatDistance/index.js":[38992,7,8592],"./mk/_lib/formatLong/index.js":[7479,7,8592,6156],"./mk/_lib/formatRelative/index.js":[41655,7,8592,903],"./mk/_lib/localize/index.js":[23458,7,8592,4893],"./mk/_lib/match/index.js":[82975,7,8592,9858],"./mk/index.js":[21880,7,8592,2683],"./mn/_lib/formatDistance/index.js":[61341,7,8592],"./mn/_lib/formatLong/index.js":[19732,7,8592,5992],"./mn/_lib/formatRelative/index.js":[98225,7,8592],"./mn/_lib/localize/index.js":[89576,7,8592,4261],"./mn/_lib/match/index.js":[33306,7,8592,5055],"./mn/index.js":[31937,7,8592,4446],"./ms/_lib/formatDistance/index.js":[97808,7,8592],"./ms/_lib/formatLong/index.js":[61962,7,8592,6623],"./ms/_lib/formatRelative/index.js":[68530,7,8592],"./ms/_lib/localize/index.js":[13241,7,8592,3368],"./ms/_lib/match/index.js":[67079,7,8592,9302],"./ms/index.js":[25098,7,8592,5705],"./mt/_lib/formatDistance/index.js":[14611,7,8592],"./mt/_lib/formatLong/index.js":[65011,7,8592,1161],"./mt/_lib/formatRelative/index.js":[44521,7,8592],"./mt/_lib/localize/index.js":[69408,7,8592,6433],"./mt/_lib/match/index.js":[29726,7,8592,4216],"./mt/index.js":[12811,7,8592,1911],"./nb/_lib/formatDistance/index.js":[59968,7,8592],"./nb/_lib/formatLong/index.js":[20511,7,8592,5168],"./nb/_lib/formatRelative/index.js":[11639,7,8592],"./nb/_lib/localize/index.js":[94249,7,8592,4378],"./nb/_lib/match/index.js":[63498,7,8592,9691],"./nb/index.js":[61295,7,8592,2392],"./nl-BE/_lib/formatDistance/index.js":[16129,7,8592],"./nl-BE/_lib/formatLong/index.js":[17657,7,8592,3039],"./nl-BE/_lib/formatRelative/index.js":[89811,7,8592],"./nl-BE/_lib/localize/index.js":[58816,7,8592,1681],"./nl-BE/_lib/match/index.js":[28333,7,8592,2237],"./nl-BE/index.js":[70296,7,8592,4862],"./nl/_lib/formatDistance/index.js":[57117,7,8592],"./nl/_lib/formatLong/index.js":[57197,7,8592,2377],"./nl/_lib/formatRelative/index.js":[62818,7,8592],"./nl/_lib/localize/index.js":[67706,7,8592,3283],"./nl/_lib/match/index.js":[61430,7,8592,9229],"./nl/index.js":[80775,7,8592,9354],"./nn/_lib/formatDistance/index.js":[4563,7,8592],"./nn/_lib/formatLong/index.js":[89212,7,8592,169],"./nn/_lib/formatRelative/index.js":[2565,7,8592],"./nn/_lib/localize/index.js":[28456,7,8592,4340],"./nn/_lib/match/index.js":[51571,7,8592,9185],"./nn/index.js":[34632,7,8592,7506],"./oc/_lib/formatDistance/index.js":[16585,7,8592],"./oc/_lib/formatLong/index.js":[96725,7,8592,415],"./oc/_lib/formatRelative/index.js":[7548,7,8592],"./oc/_lib/localize/index.js":[93417,7,8592,5746],"./oc/_lib/match/index.js":[18145,7,8592,7829],"./oc/index.js":[68311,7,8592,7250],"./pl/_lib/formatDistance/index.js":[62056,7,8592],"./pl/_lib/formatLong/index.js":[47448,7,8592,5539],"./pl/_lib/formatRelative/index.js":[65991,7,8592,6160],"./pl/_lib/localize/index.js":[4306,7,8592,3498],"./pl/_lib/match/index.js":[76075,7,8592,7768],"./pl/index.js":[8554,7,8592,9134],"./pt-BR/_lib/formatDistance/index.js":[52638,7,8592],"./pt-BR/_lib/formatLong/index.js":[33247,7,8592,4753],"./pt-BR/_lib/formatRelative/index.js":[25492,7,8592],"./pt-BR/_lib/localize/index.js":[81046,7,8592,2258],"./pt-BR/_lib/match/index.js":[63770,7,8592,9792],"./pt-BR/index.js":[47569,7,8592,1100],"./pt/_lib/formatDistance/index.js":[55488,7,8592],"./pt/_lib/formatLong/index.js":[5133,7,8592,2741],"./pt/_lib/formatRelative/index.js":[7493,7,8592],"./pt/_lib/localize/index.js":[58360,7,8592,3713],"./pt/_lib/match/index.js":[37200,7,8592,7033],"./pt/index.js":[24239,7,8592,3530],"./ro/_lib/formatDistance/index.js":[18199,7,8592],"./ro/_lib/formatLong/index.js":[84311,7,8592,173],"./ro/_lib/formatRelative/index.js":[97974,7,8592],"./ro/_lib/localize/index.js":[64729,7,8592,470],"./ro/_lib/match/index.js":[9202,7,8592,9975],"./ro/index.js":[51055,7,8592,5563],"./ru/_lib/formatDistance/index.js":[90650,7,8592],"./ru/_lib/formatLong/index.js":[12580,7,8592,9390],"./ru/_lib/formatRelative/index.js":[15994,7,8592,1338],"./ru/_lib/localize/index.js":[66943,7,8592,6325],"./ru/_lib/match/index.js":[86374,7,8592,7339],"./ru/index.js":[27413,7,8592,9896],"./sk/_lib/formatDistance/index.js":[32882,7,8592],"./sk/_lib/formatLong/index.js":[95087,7,8592,6050],"./sk/_lib/formatRelative/index.js":[35507,7,8592,3951],"./sk/_lib/localize/index.js":[37369,7,8592,3264],"./sk/_lib/match/index.js":[74329,7,8592,9460],"./sk/index.js":[17065,7,8592,5064],"./sl/_lib/formatDistance/index.js":[57613,7,8592],"./sl/_lib/formatLong/index.js":[66302,7,8592,2857],"./sl/_lib/formatRelative/index.js":[92131,7,8592],"./sl/_lib/localize/index.js":[2942,7,8592,6363],"./sl/_lib/match/index.js":[36326,7,8592,7341],"./sl/index.js":[62166,7,8592,2157],"./sq/_lib/formatDistance/index.js":[82569,7,8592],"./sq/_lib/formatLong/index.js":[32784,7,8592,314],"./sq/_lib/formatRelative/index.js":[44390,7,8592],"./sq/_lib/localize/index.js":[26425,7,8592,9930],"./sq/_lib/match/index.js":[72140,7,8592,1445],"./sq/index.js":[70797,7,8592,8556],"./sr-Latn/_lib/formatDistance/index.js":[69014,7,8592],"./sr-Latn/_lib/formatLong/index.js":[99257,7,8592,275],"./sr-Latn/_lib/formatRelative/index.js":[42428,7,8592],"./sr-Latn/_lib/localize/index.js":[92773,7,8592,7136],"./sr-Latn/_lib/match/index.js":[7766,7,8592,3177],"./sr-Latn/index.js":[99064,7,8592,2152],"./sr/_lib/formatDistance/index.js":[55503,7,8592],"./sr/_lib/formatLong/index.js":[13465,7,8592,232],"./sr/_lib/formatRelative/index.js":[25743,7,8592],"./sr/_lib/localize/index.js":[30172,7,8592,5864],"./sr/_lib/match/index.js":[81613,7,8592,7316],"./sr/index.js":[15930,7,8592,5831],"./sv/_lib/formatDistance/index.js":[81387,7,8592],"./sv/_lib/formatLong/index.js":[20660,7,8592,5204],"./sv/_lib/formatRelative/index.js":[43502,7,8592],"./sv/_lib/localize/index.js":[32384,7,8592,4345],"./sv/_lib/match/index.js":[69940,7,8592,7105],"./sv/index.js":[81413,7,8592,5396],"./ta/_lib/formatDistance/index.js":[66840,7,8592],"./ta/_lib/formatLong/index.js":[49391,7,8592,5892],"./ta/_lib/formatRelative/index.js":[99284,7,8592],"./ta/_lib/localize/index.js":[61290,7,8592,6239],"./ta/_lib/match/index.js":[33749,7,8592,4720],"./ta/index.js":[21486,7,8592,7983],"./te/_lib/formatDistance/index.js":[38,7,8592],"./te/_lib/formatLong/index.js":[34703,7,8592,4094],"./te/_lib/formatRelative/index.js":[46611,7,8592],"./te/_lib/localize/index.js":[86184,7,8592,118],"./te/_lib/match/index.js":[17208,7,8592,7193],"./te/index.js":[52492,7,8592,7183],"./th/_lib/formatDistance/index.js":[32939,7,8592],"./th/_lib/formatLong/index.js":[96146,7,8592,8475],"./th/_lib/formatRelative/index.js":[97294,7,8592],"./th/_lib/localize/index.js":[44204,7,8592,6203],"./th/_lib/match/index.js":[59829,7,8592,2626],"./th/index.js":[74785,7,8592,4008],"./tr/_lib/formatDistance/index.js":[77216,7,8592],"./tr/_lib/formatLong/index.js":[68379,7,8592,5102],"./tr/_lib/formatRelative/index.js":[93999,7,8592],"./tr/_lib/localize/index.js":[8830,7,8592,7157],"./tr/_lib/match/index.js":[58828,7,8592,3128],"./tr/index.js":[63131,7,8592,8302],"./ug/_lib/formatDistance/index.js":[69442,7,8592],"./ug/_lib/formatLong/index.js":[36922,7,8592,5002],"./ug/_lib/formatRelative/index.js":[20290,7,8592],"./ug/_lib/localize/index.js":[82490,7,8592,6604],"./ug/_lib/match/index.js":[85282,7,8592,8004],"./ug/index.js":[60182,7,8592,6934],"./uk/_lib/formatDistance/index.js":[10017,7,8592],"./uk/_lib/formatLong/index.js":[26136,7,8592,8806],"./uk/_lib/formatRelative/index.js":[88271,7,4,8592],"./uk/_lib/localize/index.js":[10954,7,8592,1193],"./uk/_lib/match/index.js":[71680,7,8592,6954],"./uk/index.js":[12509,7,4,8592,2509],"./uz-Cyrl/_lib/formatDistance/index.js":[67778,7,8592],"./uz-Cyrl/_lib/formatLong/index.js":[64095,7,8592,160],"./uz-Cyrl/_lib/formatRelative/index.js":[83734,7,8592],"./uz-Cyrl/_lib/localize/index.js":[17670,7,8592,2654],"./uz-Cyrl/_lib/match/index.js":[75798,7,8592,1360],"./uz-Cyrl/index.js":[14527,7,8592,8932],"./uz/_lib/formatDistance/index.js":[27197,7,8592],"./uz/_lib/formatLong/index.js":[27810,7,8592,4328],"./uz/_lib/formatRelative/index.js":[22175,7,8592],"./uz/_lib/localize/index.js":[6881,7,8592,6425],"./uz/_lib/match/index.js":[19263,7,8592,2880],"./uz/index.js":[44203,7,8592,6896],"./vi/_lib/formatDistance/index.js":[61664,7,8592],"./vi/_lib/formatLong/index.js":[42296,7,8592,3405],"./vi/_lib/formatRelative/index.js":[55191,7,8592],"./vi/_lib/localize/index.js":[67431,7,8592,5843],"./vi/_lib/match/index.js":[98442,7,8592,3319],"./vi/index.js":[48875,7,8592,6677],"./zh-CN/_lib/formatDistance/index.js":[33437,7,8592],"./zh-CN/_lib/formatLong/index.js":[91583,7,8592,485],"./zh-CN/_lib/formatRelative/index.js":[95629,7,8592,5441],"./zh-CN/_lib/localize/index.js":[17939,7,8592,9169],"./zh-CN/_lib/match/index.js":[71362,7,8592,7103],"./zh-CN/index.js":[86335,7,8592,8664],"./zh-HK/_lib/formatDistance/index.js":[37348,7,8592],"./zh-HK/_lib/formatLong/index.js":[60924,7,8592,3215],"./zh-HK/_lib/formatRelative/index.js":[22164,7,8592],"./zh-HK/_lib/localize/index.js":[39264,7,8592,1780],"./zh-HK/_lib/match/index.js":[50358,7,8592,5641],"./zh-HK/index.js":[59277,7,8592,2336],"./zh-TW/_lib/formatDistance/index.js":[31613,7,8592],"./zh-TW/_lib/formatLong/index.js":[1239,7,8592,248],"./zh-TW/_lib/formatRelative/index.js":[13240,7,8592],"./zh-TW/_lib/localize/index.js":[29850,7,8592,9886],"./zh-TW/_lib/match/index.js":[38819,7,8592,8041],"./zh-TW/index.js":[74565,7,8592,8978]};function qt(Le){if(!In.o(rt,Le))return Promise.resolve().then(()=>{var Kt=new Error("Cannot find module '"+Le+"'");throw Kt.code="MODULE_NOT_FOUND",Kt});var bt=rt[Le],Kn=bt[0];return Promise.all(bt.slice(2).map(In.e)).then(()=>In.t(Kn,16|bt[1]))}qt.keys=()=>Object.keys(rt),qt.id=71213,mi.exports=qt}},mi=>{mi(mi.s=44579)}]);
\ No newline at end of file
diff --git a/dotCMS/src/main/webapp/html/portlet/ext/contentlet/field/edit_field.jsp b/dotCMS/src/main/webapp/html/portlet/ext/contentlet/field/edit_field.jsp
index f30fd4b7b5e6..2edc913e6aef 100644
--- a/dotCMS/src/main/webapp/html/portlet/ext/contentlet/field/edit_field.jsp
+++ b/dotCMS/src/main/webapp/html/portlet/ext/contentlet/field/edit_field.jsp
@@ -701,7 +701,7 @@
const binaryFieldContainer = document.getElementById("container-binary-field-<%=field.getVelocityVarName()%>");
const field = document.querySelector('#binary-field-input-<%=field.getFieldContentlet()%>ValueField');
const acceptArr = "<%= accept%>".split(',');
- const acceptTypes = acceptArr.map((type) => type.trim());
+ const acceptTypes = acceptArr.map((type) => type.trim()).filter((type) => type !== "");
const maxFileSize = Number("<%= maxFileLength%>");
// Creating the binary field dynamically
@@ -906,7 +906,12 @@
<%} %>
<%
- if(UtilMethods.isSet(value) && UtilMethods.isSet(resourceLink)){
+ String bnFlag = Config.getStringProperty("FEATURE_FLAG_NEW_BINARY_FIELD");
+ Boolean newBinaryOn = bnFlag != null && bnFlag.equalsIgnoreCase("true");
+ Boolean isBinaryField = field.getFieldType().equals(Field.FieldType.BINARY.toString());
+ Boolean shouldShowEditFileOnBn = isBinaryField && !newBinaryOn; // If the new binary field is on, we don't show the edit field
+
+ if(UtilMethods.isSet(value) && UtilMethods.isSet(resourceLink) && shouldShowEditFileOnBn){
boolean canUserWriteToContentlet = APILocator.getPermissionAPI().doesUserHavePermission(contentlet,PermissionAPI.PERMISSION_WRITE, user);