|
@@ -131,12 +133,13 @@
-
- Go to page:
-
+
+ Go to page:
+
+ of {{pages}} pages
diff --git a/Upendo.Modules.DnnPageManager/ClientApp/src/app/components/manage-pages/manage-pages.component.sass b/Upendo.Modules.DnnPageManager/ClientApp/src/app/components/manage-pages/manage-pages.component.sass
index e8db7c8..ef50803 100644
--- a/Upendo.Modules.DnnPageManager/ClientApp/src/app/components/manage-pages/manage-pages.component.sass
+++ b/Upendo.Modules.DnnPageManager/ClientApp/src/app/components/manage-pages/manage-pages.component.sass
@@ -148,3 +148,15 @@ input
&:before
border-radius: 50%
+
+.paginator
+ display: flex
+ align-items: baseline
+ margin-top: 8px
+ margin-right: 30px
+
+.go_to_page
+ margin-right: 20px
+
+.mat_form_field
+ width: 5vw
diff --git a/Upendo.Modules.DnnPageManager/ClientApp/src/app/components/manage-pages/manage-pages.component.ts b/Upendo.Modules.DnnPageManager/ClientApp/src/app/components/manage-pages/manage-pages.component.ts
index 2d841d0..f716ab0 100644
--- a/Upendo.Modules.DnnPageManager/ClientApp/src/app/components/manage-pages/manage-pages.component.ts
+++ b/Upendo.Modules.DnnPageManager/ClientApp/src/app/components/manage-pages/manage-pages.component.ts
@@ -68,6 +68,8 @@ export class ManagePagesComponent implements OnInit, OnDestroy, AfterViewInit {
filterMetadata = false;
+ pages: any = '0';
+
protected dispose = new Subject ();
@ViewChild(MatPaginator) paginator: MatPaginator;
@@ -90,7 +92,9 @@ export class ManagePagesComponent implements OnInit, OnDestroy, AfterViewInit {
) {}
ngOnInit(): void {
- this.filterMetadata = localStorage.getItem("filterMetadata") === "true" ? true : false;
+ this.filterMetadata =
+ localStorage.getItem('filterMetadata') === 'true' ? true : false;
+ this.pages = localStorage.getItem('pages');
this.store
.select(PageState.updated)
.pipe(
@@ -125,18 +129,15 @@ export class ManagePagesComponent implements OnInit, OnDestroy, AfterViewInit {
.subscribe();
}
- filterByMetadata():void {
-
+ filterByMetadata(): void {
this.filterMetadata = !this.filterMetadata;
localStorage.setItem('filterMetadata', JSON.stringify(this.filterMetadata));
this.getPages(false, true);
-
}
- isNeededFilterByMetadata():void{
-
+ isNeededFilterByMetadata(): void {
const portalId = this.context._properties.PortalId;
const sortType = localStorage.getItem('sortType');
const sortBy = localStorage.getItem('sortBy');
@@ -147,7 +148,7 @@ export class ManagePagesComponent implements OnInit, OnDestroy, AfterViewInit {
new GetAllPagesWithoutSEO(
portalId,
!!searchValue ? searchValue : this.searchText,
- this.paginator ? !!searchValue ? 0 : this.paginator.pageIndex : 0,
+ this.paginator ? (!!searchValue ? 0 : this.paginator.pageIndex) : 0,
this.paginator ? this.paginator.pageSize : 10,
!!sortBy ? sortBy : this.sort?.active,
!!sortType ? sortType : this.sort?.direction,
@@ -167,7 +168,7 @@ export class ManagePagesComponent implements OnInit, OnDestroy, AfterViewInit {
}
})
)
- .subscribe();
+ .subscribe();
}
getPages(showClearSearch: boolean, isInit: boolean = false): void {
@@ -179,8 +180,7 @@ export class ManagePagesComponent implements OnInit, OnDestroy, AfterViewInit {
this.paginator.pageIndex = 0;
}
- if (isInit)
- this.paginator.pageIndex = 0;
+ if (isInit) this.paginator.pageIndex = 0;
if (!!this.sort) {
localStorage.setItem(
@@ -203,7 +203,11 @@ export class ManagePagesComponent implements OnInit, OnDestroy, AfterViewInit {
new GetAllPages(
portalId,
!!searchValue ? searchValue : this.searchText,
- this.paginator ? !!searchValue || isInit ? 0 : this.paginator.pageIndex : 0,
+ this.paginator
+ ? !!searchValue || isInit
+ ? 0
+ : this.paginator.pageIndex
+ : 0,
this.paginator ? this.paginator.pageSize : 10,
!!sortBy ? sortBy : this.sort?.active,
!!sortType ? sortType : this.sort?.direction,
diff --git a/Upendo.Modules.DnnPageManager/ClientApp/src/app/state/page.state.ts b/Upendo.Modules.DnnPageManager/ClientApp/src/app/state/page.state.ts
index 3ffc4b1..9cf8d70 100644
--- a/Upendo.Modules.DnnPageManager/ClientApp/src/app/state/page.state.ts
+++ b/Upendo.Modules.DnnPageManager/ClientApp/src/app/state/page.state.ts
@@ -154,10 +154,11 @@ export class PageState {
)
.pipe(
tap((x) => {
- console.log(x.Total > 0);
- console.log(x);
+ var pages = Math.ceil(x.Total / action.pageSize);
+ localStorage.setItem('pages', pages.toString());
+ console.log('pages', pages);
patchState({
- isWithoutSEO: x.Total > 0,
+ isWithoutSEO: x.Total > 0,
});
})
);
diff --git a/Upendo.Modules.DnnPageManager/Components/PagesControllerImpl.cs b/Upendo.Modules.DnnPageManager/Components/PagesControllerImpl.cs
index 28c9192..412b823 100644
--- a/Upendo.Modules.DnnPageManager/Components/PagesControllerImpl.cs
+++ b/Upendo.Modules.DnnPageManager/Components/PagesControllerImpl.cs
@@ -50,7 +50,7 @@ public PagesControllerImpl()
}
public IEnumerable GetPagesList(int portalId, out int total, string searchKey = "", int pageIndex = -1, int pageSize = 10,
- string sortBy = "", string sortType = "", bool? deleted = false)
+ string sortBy = "", string sortType = "", bool? deleted = false,bool? getAllPages=false)
{
try
{
@@ -114,7 +114,8 @@ public IEnumerable GetPagesList(int portalId, out int total, string search
finalList.AddRange(pages);
total = finalList.Count;
- return pageIndex == -1 || pageSize == -1 ? finalList : finalList.Skip(pageIndex * pageSize).Take(pageSize);
+
+ return pageIndex == -1 || pageSize == -1 ? finalList : getAllPages==true? finalList : finalList.Skip(pageIndex * pageSize).Take(pageSize);
}
catch (Exception ex)
{
@@ -126,7 +127,7 @@ public IEnumerable GetPagesList(int portalId, out int total, string search
}
- public IEnumerable GetPageModules(int portalId, int tabId)
+ public IEnumerable GetPageModules(int portalId, int tabId)
{
try
{
@@ -386,6 +387,51 @@ public IEnumerable GetPagePermissions(int portalId, int tabI
throw;
}
}
+ public IEnumerable GetPagesMissingMetadata(IEnumerable pages, ModuleInfo ActiveModule, bool? filterMetadata = false)
+ {
+ var pagesMissingMetadata = new List();
+ if (filterMetadata.HasValue && ActiveModule.ModuleSettings.Count > 1)
+ {
+ if (filterMetadata.Value)
+ {
+ if (ActiveModule.ModuleSettings[Constants.QuickSettings.MODSETTING_Title].ToString().Equals(Constants.QuickSettings.MODSETTING_DefaultTrue))
+ {
+ var filterTitle = pages.Where(tab => string.IsNullOrEmpty(tab.Title));
+ foreach (var item in filterTitle)
+ {
+ if (!pagesMissingMetadata.Any(s => s.KeyID == item.KeyID))
+ {
+ pagesMissingMetadata.Add(item);
+ }
+ }
+ }
+ if (ActiveModule.ModuleSettings[Constants.QuickSettings.MODSETTING_Description].ToString().Equals(Constants.QuickSettings.MODSETTING_DefaultTrue))
+ {
+ var filterDescription = pages.Where(tab => string.IsNullOrEmpty(tab.Description));
+ foreach (var item in filterDescription)
+ {
+ if (!pagesMissingMetadata.Any(s => s.KeyID == item.KeyID))
+ {
+ pagesMissingMetadata.Add(item);
+ }
+ }
+
+ }
+ if (ActiveModule.ModuleSettings[Constants.QuickSettings.MODSETTING_Keywords].ToString().Equals(Constants.QuickSettings.MODSETTING_DefaultTrue))
+ {
+ var filterKeyWords = pages.Where(tab => string.IsNullOrEmpty(tab.KeyWords));
+ foreach (var item in filterKeyWords)
+ {
+ if (!pagesMissingMetadata.Any(s => s.KeyID == item.KeyID))
+ {
+ pagesMissingMetadata.Add(item);
+ }
+ }
+ }
+ }
+ }
+ return pagesMissingMetadata.ToList();
+ }
private static void LogError(Exception ex)
{
diff --git a/Upendo.Modules.DnnPageManager/Properties/AssemblyInfo.cs b/Upendo.Modules.DnnPageManager/Properties/AssemblyInfo.cs
index bd83c68..32f592b 100644
--- a/Upendo.Modules.DnnPageManager/Properties/AssemblyInfo.cs
+++ b/Upendo.Modules.DnnPageManager/Properties/AssemblyInfo.cs
@@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("01.01.01")]
-[assembly: AssemblyFileVersion("01.01.01")]
+[assembly: AssemblyVersion("01.01.02")]
+[assembly: AssemblyFileVersion("01.01.02")]
diff --git a/Upendo.Modules.DnnPageManager/ReleaseNotes.txt b/Upendo.Modules.DnnPageManager/ReleaseNotes.txt
index 3082522..2fef424 100644
--- a/Upendo.Modules.DnnPageManager/ReleaseNotes.txt
+++ b/Upendo.Modules.DnnPageManager/ReleaseNotes.txt
@@ -34,6 +34,19 @@
CI: Community Inquiry - This issue was reported by a community member in the GitHub issues (or elsewhere).
+ Version 01.01.02
+ Enhancements
+
+ Maintenence & Bug Fixes
+
+
Version 01.01.01
Enhancements
diff --git a/Upendo.Modules.DnnPageManager/Upendo.Modules.DnnPageManager.csproj b/Upendo.Modules.DnnPageManager/Upendo.Modules.DnnPageManager.csproj
index 0c9ca95..cbfc7d9 100644
--- a/Upendo.Modules.DnnPageManager/Upendo.Modules.DnnPageManager.csproj
+++ b/Upendo.Modules.DnnPageManager/Upendo.Modules.DnnPageManager.csproj
@@ -1,159 +1,159 @@
-
-
-
-
- Debug
- AnyCPU
- {7DCC1A29-DDEC-4B58-9F16-2FE5E0F49F66}
- Library
- Properties
- Upendo.Modules.DnnPageManager
- Upendo.Modules.DnnPageManager
- v4.7.2
- 512
-
-
-
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
-
-
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
-
-
- ..\packages\AutoMapper.10.1.1\lib\net461\AutoMapper.dll
-
-
- False
- $(DnnReferencePath)\Dnn.PersonaBar.Extensions.dll
- False
-
-
- False
- $(DnnReferencePath)\DotNetNuke.dll
- False
-
-
- False
- $(DnnReferencePath)\DotNetNuke.Abstractions.dll
- False
-
-
- False
- $(DnnReferencePath)\DotNetNuke.DependencyInjection.dll
- False
-
-
- False
- $(DnnReferencePath)\DotNetNuke.Instrumentation.dll
- False
-
-
- False
- $(DnnReferencePath)\DotNetNuke.Web.dll
- False
-
-
- False
- $(DnnReferencePath)\DotNetNuke.Web.Client.dll
- False
-
-
- False
- $(DnnReferencePath)\DotNetNuke.WebUtility.dll
- False
-
-
- False
- $(DnnReferencePath)\Microsoft.Extensions.DependencyInjection.Abstractions.dll
- False
-
-
- False
- $(DnnReferencePath)\Newtonsoft.Json.dll
- False
-
-
-
-
- False
- $(DnnReferencePath)\System.Net.Http.Formatting.dll
- False
-
-
-
- False
- $(DnnReferencePath)\System.Web.Http.dll
- False
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ Debug
+ AnyCPU
+ {7DCC1A29-DDEC-4B58-9F16-2FE5E0F49F66}
+ Library
+ Properties
+ Upendo.Modules.DnnPageManager
+ Upendo.Modules.DnnPageManager
+ v4.7.2
+ 512
+
+
+
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+ ..\packages\AutoMapper.10.1.1\lib\net461\AutoMapper.dll
+
+
+ False
+ $(DnnReferencePath)\Dnn.PersonaBar.Extensions.dll
+ False
+
+
+ False
+ $(DnnReferencePath)\DotNetNuke.dll
+ False
+
+
+ False
+ $(DnnReferencePath)\DotNetNuke.Abstractions.dll
+ False
+
+
+ False
+ $(DnnReferencePath)\DotNetNuke.DependencyInjection.dll
+ False
+
+
+ False
+ $(DnnReferencePath)\DotNetNuke.Instrumentation.dll
+ False
+
+
+ False
+ $(DnnReferencePath)\DotNetNuke.Web.dll
+ False
+
+
+ False
+ $(DnnReferencePath)\DotNetNuke.Web.Client.dll
+ False
+
+
+ False
+ $(DnnReferencePath)\DotNetNuke.WebUtility.dll
+ False
+
+
+ False
+ $(DnnReferencePath)\Microsoft.Extensions.DependencyInjection.Abstractions.dll
+ False
+
+
+ False
+ $(DnnReferencePath)\Newtonsoft.Json.dll
+ False
+
+
+
+
+ False
+ $(DnnReferencePath)\System.Net.Http.Formatting.dll
+ False
+
+
+
+ False
+ $(DnnReferencePath)\System.Web.Http.dll
+ False
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
cd $(ProjectDir)ClientApp
npm install
-
-
-
+
+
+
cd $(ProjectDir)ClientApp
npm run production
-
-
+
+
\ No newline at end of file
diff --git a/Upendo.Modules.DnnPageManager/Upendo.Modules.DnnPageManager.dnn b/Upendo.Modules.DnnPageManager/Upendo.Modules.DnnPageManager.dnn
index 1aa588c..049f437 100644
--- a/Upendo.Modules.DnnPageManager/Upendo.Modules.DnnPageManager.dnn
+++ b/Upendo.Modules.DnnPageManager/Upendo.Modules.DnnPageManager.dnn
@@ -1,16 +1,16 @@
-
+
Upendo DNN PageManager
This is a page management module meant to help make managing pages in DNN easier for all end-users, built by Upendo Ventures.
~/DesktopModules/Upendo.Modules.DnnPageManager/Images/PageManager.png
- Upendo Modules
- Upendo Ventures, LLC
- https://upendoventures.com
- solutions@upendoventures.com
+ Will Strohl
+ Upendo Ventures, LLC
+ https://upendoventures.com/What/CMS/DNN
+ solutions@upendoventures.com
@@ -64,7 +64,7 @@
Upendo.Modules.DnnPageManager.Controller.BusinessController, Upendo.Modules.DnnPageManager
[DESKTOPMODULEID]
- 01.00.00,01.00.01,01.00.02,01.01.01
+ 01.00.00,01.00.01,01.00.02,01.01.01,01.01.02
@@ -72,7 +72,7 @@
Upendo.Modules.DnnPageManager.dll
- 01.01.01
+ 01.01.02
bin
diff --git a/Upendo.Modules.DnnPageManager/Upendo.Modules.DnnPageManager_Symbols.dnn b/Upendo.Modules.DnnPageManager/Upendo.Modules.DnnPageManager_Symbols.dnn
index ec047a2..58f202b 100644
--- a/Upendo.Modules.DnnPageManager/Upendo.Modules.DnnPageManager_Symbols.dnn
+++ b/Upendo.Modules.DnnPageManager/Upendo.Modules.DnnPageManager_Symbols.dnn
@@ -1,7 +1,7 @@
-
+
Upendo DNN PageManager Symbols
This is a page management module meant to help make managing pages in DNN easier for all end-users, built by Upendo Ventures.
@@ -9,15 +9,15 @@
~/DesktopModules/Upendo.Modules.DnnPageManager/Images/PageManager.png
Will Strohl
- Upendo
- https://upendoventures.com
+ Upendo Ventures, LLC
+ https://upendoventures.com/What/CMS/DNN
solutions@upendoventures.com
True
- Upendo.Modules.DnnPageManager
+ Upendo.Modules.DnnPageManager
diff --git a/Upendo.Modules.DnnPageManager/WebAPI/PagesController.cs b/Upendo.Modules.DnnPageManager/WebAPI/PagesController.cs
index 0170061..1fa26e5 100644
--- a/Upendo.Modules.DnnPageManager/WebAPI/PagesController.cs
+++ b/Upendo.Modules.DnnPageManager/WebAPI/PagesController.cs
@@ -58,7 +58,6 @@ public HttpResponseMessage GetPagesList(int portalId, string searchKey = "", int
settings.Keywords = Constants.QuickSettings.MODSETTING_DefaultFalse;
}
int total = 0;
-
try
{
if (SecurityService.IsPagesAdminUser() == false)
@@ -67,57 +66,16 @@ public HttpResponseMessage GetPagesList(int portalId, string searchKey = "", int
}
PagesControllerImpl pageController = new PagesControllerImpl();
-
var pages = pageController.GetPagesList(portalId: portalId,
- total: out total,
- searchKey: searchKey,
- pageIndex: pageIndex,
- pageSize: pageSize,
- sortBy: sortBy,
- sortType: sortType,
- deleted: deleted
- );
- var pagesMissingMetadata = new List();
- if (filterMetadata.HasValue && ActiveModule.ModuleSettings.Count > 1)
- {
- if (filterMetadata.Value)
- {
- if (ActiveModule.ModuleSettings[Constants.QuickSettings.MODSETTING_Title].ToString().Equals(Constants.QuickSettings.MODSETTING_DefaultTrue))
- {
- var filterTitle = pages.Where(tab => string.IsNullOrEmpty(tab.Title));
- foreach (var item in filterTitle)
- {
- if (!pagesMissingMetadata.Any(s => s.KeyID == item.KeyID))
- {
- pagesMissingMetadata.Add(item);
- }
- }
- }
- if (ActiveModule.ModuleSettings[Constants.QuickSettings.MODSETTING_Description].ToString().Equals(Constants.QuickSettings.MODSETTING_DefaultTrue))
- {
- var filterDescription = pages.Where(tab => string.IsNullOrEmpty(tab.Description));
- foreach (var item in filterDescription)
- {
- if (!pagesMissingMetadata.Any(s => s.KeyID == item.KeyID))
- {
- pagesMissingMetadata.Add(item);
- }
- }
-
- }
- if (ActiveModule.ModuleSettings[Constants.QuickSettings.MODSETTING_Keywords].ToString().Equals(Constants.QuickSettings.MODSETTING_DefaultTrue))
- {
- var filterKeyWords = pages.Where(tab => string.IsNullOrEmpty(tab.KeyWords));
- foreach (var item in filterKeyWords)
- {
- if (!pagesMissingMetadata.Any(s => s.KeyID == item.KeyID))
- {
- pagesMissingMetadata.Add(item);
- }
- }
- }
- }
- }
+ total: out total,
+ searchKey: searchKey,
+ pageIndex: pageIndex,
+ pageSize: pageSize,
+ sortBy: sortBy,
+ sortType: sortType,
+ deleted: deleted
+ );
+ var pagesMissingMetadata = pageController.GetPagesMissingMetadata(pages, ActiveModule, filterMetadata).ToList();
var result = filterMetadata.Value ? pagesMissingMetadata.OrderBy(s => s.LocalizedTabName).Select(p => new
{
@@ -149,7 +107,11 @@ public HttpResponseMessage GetPagesList(int portalId, string searchKey = "", int
HasBeenPublished = p.HasBeenPublished
});
- return Request.CreateResponse(HttpStatusCode.OK, new { Total = result.Count().ToString(), result });
+ var allPages = pageController.GetPagesList(portalId: portalId, total: out total, searchKey: searchKey,pageIndex: pageIndex, pageSize: pageSize,
+ sortBy: sortBy, sortType: sortType, deleted: deleted, getAllPages:true );
+ pagesMissingMetadata = pageController.GetPagesMissingMetadata(allPages, ActiveModule, filterMetadata).ToList();
+
+ return Request.CreateResponse(HttpStatusCode.OK, new { Total= filterMetadata.Value ? pagesMissingMetadata.Count() : allPages.Count(), result });
}
catch (Exception ex)
{
diff --git a/Upendo.Modules.DnnPageManager/dist/index.html b/Upendo.Modules.DnnPageManager/dist/index.html
index f02e927..28ab82d 100644
--- a/Upendo.Modules.DnnPageManager/dist/index.html
+++ b/Upendo.Modules.DnnPageManager/dist/index.html
@@ -5,8 +5,8 @@
-
-
+
+
diff --git a/Upendo.Modules.DnnPageManager/dist/main.js b/Upendo.Modules.DnnPageManager/dist/main.js
index c3acc26..e706485 100644
--- a/Upendo.Modules.DnnPageManager/dist/main.js
+++ b/Upendo.Modules.DnnPageManager/dist/main.js
@@ -1 +1 @@
-"use strict";(self.webpackChunkscripts=self.webpackChunkscripts||[]).push([[179],{37:()=>{function Wi(n){return"function"==typeof n}let js=!1;const _n={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 js&&console.log("RxJS: Back to a better error behavior. Thank you. <3");js=n},get useDeprecatedSynchronousErrorHandling(){return js}};function qi(n){setTimeout(()=>{throw n},0)}const Al={closed:!0,next(n){},error(n){if(_n.useDeprecatedSynchronousErrorHandling)throw n;qi(n)},complete(){}},uo=Array.isArray||(n=>n&&"number"==typeof n.length);function zd(n){return null!==n&&"object"==typeof n}const Il=(()=>{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 Ee{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 Ee)e.remove(this);else if(null!==e)for(let s=0;st.concat(e instanceof Il?e.errors:e),[])}Ee.EMPTY=((n=new Ee).closed=!0,n);const kl="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class Oe extends Ee{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Al;break;case 1:if(!t){this.destination=Al;break}if("object"==typeof t){t instanceof Oe?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new x_(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new x_(this,t,e,i)}}[kl](){return this}static create(t,e,i){const r=new Oe(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 x_ extends Oe{constructor(t,e,i,r){super(),this._parentSubscriber=t;let o,s=this;Wi(e)?o=e:e&&(o=e.next,i=e.error,r=e.complete,e!==Al&&(s=Object.create(e),Wi(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;_n.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}=_n;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):qi(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;qi(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);_n.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(),_n.useDeprecatedSynchronousErrorHandling)throw i;qi(i)}}__tryOrSetError(t,e,i){if(!_n.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return _n.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(qi(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const Us="function"==typeof Symbol&&Symbol.observable||"@@observable";function Rl(n){return n}let be=(()=>{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 Ox(n,t,e){if(n){if(n instanceof Oe)return n;if(n[kl])return n[kl]()}return n||t||e?new Oe(n,t,e):new Oe(Al)}(e,i,r);if(s.add(o?o.call(s,this.source):this.source||_n.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),_n.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){_n.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function Rx(n){for(;n;){const{closed:t,destination:e,isStopped:i}=n;if(t||i)return!1;n=e&&e instanceof Oe?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=I_(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)}[Us](){return this}pipe(...e){return 0===e.length?this:function A_(n){return 0===n.length?Rl:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}(e)(this)}toPromise(e){return new(e=I_(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return n.create=t=>new n(t),n})();function I_(n){if(n||(n=_n.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const wr=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class k_ extends Ee{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 R_ extends Oe{constructor(t){super(t),this.destination=t}}let j=(()=>{class n extends be{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[kl](){return new R_(this)}lift(e){const i=new O_(this,this);return i.operator=e,i}next(e){if(this.closed)throw new wr;if(!this.isStopped){const{observers:i}=this,r=i.length,o=i.slice();for(let s=0;snew O_(t,e),n})();class O_ extends j{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):Ee.EMPTY}}function ho(n){return n&&"function"==typeof n.schedule}function Q(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 Px(n,t))}}class Px{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new Fx(t,this.project,this.thisArg))}}class Fx extends Oe{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 P_=n=>t=>{for(let e=0,i=n.length;en&&"number"==typeof n.length&&"function"!=typeof n;function N_(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Gd=n=>{if(n&&"function"==typeof n[Us])return(n=>t=>{const e=n[Us]();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 P_(n);if(N_(n))return(n=>t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,qi),t))(n);if(n&&"function"==typeof n[Ol])return(n=>t=>{const e=n[Ol]();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 ${zd(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function Wd(n,t){return new be(e=>{const i=new Ee;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 dt(n,t){return t?function Gx(n,t){if(null!=n){if(function $x(n){return n&&"function"==typeof n[Us]}(n))return function Hx(n,t){return new be(e=>{const i=new Ee;return i.add(t.schedule(()=>{const r=n[Us]();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(N_(n))return function jx(n,t){return new be(e=>{const i=new Ee;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 Wd(n,t);if(function zx(n){return n&&"function"==typeof n[Ol]}(n)||"string"==typeof n)return function Ux(n,t){if(!n)throw new Error("Iterable cannot be null");return new be(e=>{const i=new Ee;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(()=>{r=n[Ol](),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")}(n,t):n instanceof be?n:new be(Gd(n))}class fo extends Oe{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 po extends Oe{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function go(n,t){if(t.closed)return;if(n instanceof be)return n.subscribe(t);let e;try{e=Gd(n)(t)}catch(i){t.error(i)}return e}function ht(n,t,e=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe(ht((r,o)=>dt(n(r,o)).pipe(Q((s,a)=>t(r,s,o,a))),e)):("number"==typeof t&&(e=t),i=>i.lift(new Wx(n,e)))}class Wx{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new qx(t,this.project,this.concurrent))}}class qx extends po{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 $s(n=Number.POSITIVE_INFINITY){return ht(Rl,n)}function qd(n,t){return t?Wd(n,t):new be(P_(n))}function Dr(...n){let t=Number.POSITIVE_INFINITY,e=null,i=n[n.length-1];return ho(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 be?n[0]:$s(t)(qd(n,e))}function Yd(){return function(t){return t.lift(new Yx(t))}}class Yx{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const r=new Kx(t,i),o=e.subscribe(r);return r.closed||(r.connection=i.connect()),o}}class Kx extends Oe{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 L_ extends be{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 Ee,t.add(this.source.subscribe(new Zx(this.getSubject(),this))),t.closed&&(this._connection=null,t=Ee.EMPTY)),t}refCount(){return Yd()(this)}}const Qx=(()=>{const n=L_.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 Zx extends R_{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 eA{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 tA(){return new j}function Kd(){return n=>Yd()(function Jx(n,t){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof t)return i.lift(new eA(r,t));const o=Object.create(i,Qx);return o.source=i,o.subjectFactory=r,o}}(tA)(n))}function Be(n){for(let t in n)if(n[t]===Be)return t;throw Error("Could not find renamed property on target object.")}function Qd(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function Pe(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(Pe).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 Zd(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const nA=Be({__forward_ref__:Be});function Fe(n){return n.__forward_ref__=Fe,n.toString=function(){return Pe(this())},n}function le(n){return V_(n)?n():n}function V_(n){return"function"==typeof n&&n.hasOwnProperty(nA)&&n.__forward_ref__===Fe}class N extends Error{constructor(t,e){super(function Xd(n,t){return`NG0${Math.abs(n)}${t?": "+t:""}`}(t,e)),this.code=t}}function ee(n){return"string"==typeof n?n:null==n?"":String(n)}function Tt(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():ee(n)}function Pl(n,t){const e=t?` in ${t}`:"";throw new N(-201,`No provider for ${Tt(n)} found${e}`)}function Xt(n,t){null==n&&function Ne(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function x(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}const Jd=x;function J(n){return{providers:n.providers||[],imports:n.imports||[]}}function eh(n){return B_(n,Fl)||B_(n,j_)}function B_(n,t){return n.hasOwnProperty(t)?n[t]:null}function H_(n){return n&&(n.hasOwnProperty(th)||n.hasOwnProperty(cA))?n[th]:null}const Fl=Be({\u0275prov:Be}),th=Be({\u0275inj:Be}),j_=Be({ngInjectableDef:Be}),cA=Be({ngInjectorDef:Be});var Z=(()=>((Z=Z||{})[Z.Default=0]="Default",Z[Z.Host=1]="Host",Z[Z.Self=2]="Self",Z[Z.SkipSelf=4]="SkipSelf",Z[Z.Optional=8]="Optional",Z))();let nh;function Yi(n){const t=nh;return nh=n,t}function U_(n,t,e){const i=eh(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&Z.Optional?null:void 0!==t?t:void Pl(Pe(n),"Injector")}function Ki(n){return{toString:n}.toString()}var kn=(()=>((kn=kn||{})[kn.OnPush=0]="OnPush",kn[kn.Default=1]="Default",kn))(),Rn=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Rn||(Rn={})),Rn))();const dA="undefined"!=typeof globalThis&&globalThis,hA="undefined"!=typeof window&&window,fA="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Le=dA||"undefined"!=typeof global&&global||hA||fA,mo={},He=[],Nl=Be({\u0275cmp:Be}),ih=Be({\u0275dir:Be}),rh=Be({\u0275pipe:Be}),$_=Be({\u0275mod:Be}),wi=Be({\u0275fac:Be}),zs=Be({__NG_ELEMENT_ID__:Be});let pA=0;function Te(n){return Ki(()=>{const e={},i={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:e,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===kn.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||He,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Rn.Emulated,id:"c",styles:n.styles||He,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,o=n.features,s=n.pipes;return i.id+=pA++,i.inputs=q_(n.inputs,e),i.outputs=q_(n.outputs),o&&o.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(z_):null,i.pipeDefs=s?()=>("function"==typeof s?s():s).map(G_):null,i})}function z_(n){return xt(n)||function Qi(n){return n[ih]||null}(n)}function G_(n){return function Er(n){return n[rh]||null}(n)}const W_={};function te(n){return Ki(()=>{const t={type:n.type,bootstrap:n.bootstrap||He,declarations:n.declarations||He,imports:n.imports||He,exports:n.exports||He,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(W_[n.id]=n.type),t})}function q_(n,t){if(null==n)return mo;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 D=Te;function Wt(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function xt(n){return n[Nl]||null}function yn(n,t){const e=n[$_]||null;if(!e&&!0===t)throw new Error(`Type ${Pe(n)} does not have '\u0275mod' property.`);return e}function Kn(n){return Array.isArray(n)&&"object"==typeof n[1]}function Pn(n){return Array.isArray(n)&&!0===n[1]}function ah(n){return 0!=(8&n.flags)}function Hl(n){return 2==(2&n.flags)}function jl(n){return 1==(1&n.flags)}function Fn(n){return null!==n.template}function bA(n){return 0!=(512&n[2])}function xr(n,t){return n.hasOwnProperty(wi)?n[wi]:null}class DA{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function it(){return K_}function K_(n){return n.type.prototype.ngOnChanges&&(n.setInput=MA),EA}function EA(){const n=Z_(this),t=null==n?void 0:n.current;if(t){const e=n.previous;if(e===mo)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function MA(n,t,e,i){const r=Z_(n)||function SA(n,t){return n[Q_]=t}(n,{previous:mo,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[e],l=s[a];o[a]=new DA(l&&l.currentValue,t,s===mo),n[i]=t}it.ngInherit=!0;const Q_="__ngSimpleChanges__";function Z_(n){return n[Q_]||null}let hh;function rt(n){return!!n.listen}const X_={createRenderer:(n,t)=>function fh(){return void 0!==hh?hh:"undefined"!=typeof document?document:void 0}()};function ft(n){for(;Array.isArray(n);)n=n[0];return n}function Ul(n,t){return ft(t[n])}function en(n,t){return ft(t[n.index])}function ph(n,t){return n.data[t]}function Co(n,t){return n[t]}function tn(n,t){const e=t[n];return Kn(e)?e:e[0]}function J_(n){return 4==(4&n[2])}function gh(n){return 128==(128&n[2])}function Zi(n,t){return null==t?null:n[t]}function ey(n){n[18]=0}function mh(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 ne={lFrame:cy(null),bindingsEnabled:!0};function ny(){return ne.bindingsEnabled}function T(){return ne.lFrame.lView}function we(){return ne.lFrame.tView}function xe(n){return ne.lFrame.contextLView=n,n[8]}function bt(){let n=iy();for(;null!==n&&64===n.type;)n=n.parent;return n}function iy(){return ne.lFrame.currentTNode}function Qn(n,t){const e=ne.lFrame;e.currentTNode=n,e.isParent=t}function _h(){return ne.lFrame.isParent}function yh(){ne.lFrame.isParent=!1}function Bt(){const n=ne.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function wo(){return ne.lFrame.bindingIndex++}function Ei(n){const t=ne.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function $A(n,t){const e=ne.lFrame;e.bindingIndex=e.bindingRootIndex=n,vh(t)}function vh(n){ne.lFrame.currentDirectiveIndex=n}function bh(n){const t=ne.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function sy(){return ne.lFrame.currentQueryIndex}function Ch(n){ne.lFrame.currentQueryIndex=n}function GA(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function ay(n,t,e){if(e&Z.SkipSelf){let r=t,o=n;for(;!(r=r.parent,null!==r||e&Z.Host||(r=GA(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;t=r,n=o}const i=ne.lFrame=ly();return i.currentTNode=t,i.lView=n,!0}function zl(n){const t=ly(),e=n[1];ne.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function ly(){const n=ne.lFrame,t=null===n?null:n.child;return null===t?cy(n):t}function cy(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 uy(){const n=ne.lFrame;return ne.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const dy=uy;function Gl(){const n=uy();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 Ht(){return ne.lFrame.selectedIndex}function Xi(n){ne.lFrame.selectedIndex=n}function Ke(){const n=ne.lFrame;return ph(n.tView,n.selectedIndex)}function Ar(){ne.lFrame.currentNamespace="svg"}function Wl(){!function KA(){ne.lFrame.currentNamespace=null}()}function ql(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 Ks{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Ql(n,t,e){const i=rt(n);let r=0;for(;rt){s=o-1;break}}}for(;o>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let Mh=!0;function Xl(n){const t=Mh;return Mh=n,t}let rI=0;function Zs(n,t){const e=Th(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,Sh(i.data,n),Sh(t,null),Sh(i.blueprint,null));const r=Jl(n,t),o=n.injectorIndex;if(gy(r)){const s=Do(r),a=Eo(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 Sh(n,t){n.push(0,0,0,0,0,0,0,0,t)}function Th(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function Jl(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){const o=r[1],s=o.type;if(i=2===s?o.declTNode:1===s?r[6]:null,null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function ec(n,t,e){!function oI(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(zs)&&(i=e[zs]),null==i&&(i=e[zs]=rI++);const r=255&i;t.data[n+(r>>5)]|=1<=0?255&t:aI:t}(e);if("function"==typeof o){if(!ay(t,n,i))return i&Z.Host?yy(r,e,i):vy(t,e,i,r);try{const s=o(i);if(null!=s||i&Z.Optional)return s;Pl(e)}finally{dy()}}else if("number"==typeof o){let s=null,a=Th(n,t),l=-1,c=i&Z.Host?t[16][6]:null;for((-1===a||i&Z.SkipSelf)&&(l=-1===a?Jl(n,t):t[a+8],-1!==l&&Dy(i,!1)?(s=t[1],a=Do(l),t=Eo(l,t)):a=-1);-1!==a;){const u=t[1];if(wy(o,a,u.data)){const d=lI(a,t,e,s,i,c);if(d!==Cy)return d}l=t[a+8],-1!==l&&Dy(i,t[1].data[a+8]===c)&&wy(o,a,t)?(s=u,a=Do(l),t=Eo(l,t)):a=-1}}}return vy(t,e,i,r)}const Cy={};function aI(){return new Mo(bt(),T())}function lI(n,t,e,i,r,o){const s=t[1],a=s.data[n+8],u=tc(a,s,e,null==i?Hl(a)&&Mh:i!=s&&0!=(3&a.type),r&Z.Host&&o===a);return null!==u?Xs(t,s,u,a):Cy}function tc(n,t,e,i,r){const o=n.providerIndexes,s=t.data,a=1048575&o,l=n.directiveStart,u=o>>20,h=r?a+u:n.directiveEnd;for(let f=i?a:a+u;f=l&&g.type===e)return f}if(r){const f=s[l];if(f&&Fn(f)&&f.type===e)return l}return null}function Xs(n,t,e,i){let r=n[e];const o=t.data;if(function JA(n){return n instanceof Ks}(r)){const s=r;s.resolving&&function iA(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new N(-200,`Circular dependency in DI detected for ${n}${e}`)}(Tt(o[e]));const a=Xl(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Yi(s.injectImpl):null;ay(n,i,Z.Default);try{r=n[e]=s.factory(void 0,o,n,i),t.firstCreatePass&&e>=i.directiveStart&&function ZA(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(i){const s=K_(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&&Yi(l),Xl(a),s.resolving=!1,dy()}}return r}function wy(n,t,e){return!!(e[t+(n>>5)]&1<{const t=n.prototype.constructor,e=t[wi]||xh(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const o=r[wi]||xh(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function xh(n){return V_(n)?()=>{const t=xh(le(n));return t&&t()}:xr(n)}function Zn(n){return function sI(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r{const i=function Ah(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(To)?l[To]:Object.defineProperty(l,To,{value:[]})[To];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 A{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=x({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const dI=new A("AnalyzeForEntryComponents"),ea=Function;function Cn(n,t){void 0===t&&(t=n);for(let e=0;eArray.isArray(e)?Xn(e,t):t(e))}function My(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function nc(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function na(n,t){const e=[];for(let i=0;i=0?n[1|i]=e:(i=~i,function pI(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 Ih(n,t){const e=Io(n,t);if(e>=0)return n[1|e]}function Io(n,t){return function xy(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),rn=oa(Ao("Optional"),8),tr=oa(Ao("SkipSelf"),4);var on=(()=>((on=on||{})[on.Important=1]="Important",on[on.DashCase=2]="DashCase",on))();const By="__ngContext__";function Ft(n,t){n[By]=t}function Nh(n){const t=function aa(n){return n[By]||null}(n);return t?Array.isArray(t)?t:t.lView:null}function Vh(n,t){return undefined(n,t)}function la(n){const t=n[3];return Pn(t)?t[3]:t}function Bh(n){return Wy(n[13])}function Hh(n){return Wy(n[4])}function Wy(n){for(;null!==n&&!Pn(n);)n=n[4];return n}function Ro(n,t,e,i,r){if(null!=i){let o,s=!1;Pn(i)?o=i:Kn(i)&&(s=!0,i=i[0]);const a=ft(i);0===n&&null!==e?null==r?Xy(t,e,a):Ir(t,e,a,r||null,!0):1===n&&null!==e?Ir(t,e,a,r||null,!0):2===n?function qh(n,t,e){const i=ac(n,t);i&&function nk(n,t,e,i){rt(n)?n.removeChild(t,e,i):t.removeChild(e)}(n,i,t,e)}(t,a,s):3===n&&t.destroyNode(a),null!=o&&function ok(n,t,e,i,r){const o=e[7];o!==ft(e)&&Ro(t,n,i,o,r);for(let a=10;a0&&(n[e-1][4]=i[4]);const o=nc(n,10+t);!function YI(n,t){ca(n,t,t[11],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]&=-129}return i}function Ky(n,t){if(!(256&t[2])){const e=t[11];rt(e)&&e.destroyNode&&ca(n,t,e,3,null,null),function ZI(n){let t=n[13];if(!t)return zh(n[1],n);for(;t;){let e=null;if(Kn(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)Kn(t)&&zh(t[1],t),t=t[3];null===t&&(t=n),Kn(t)&&zh(t[1],t),e=t&&t[4]}t=e}}(t)}}function zh(n,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function tk(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i=0?i[r=c]():i[r=-c].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;on,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return uc}())||void 0===t?void 0:t.createHTML(n))||n}class Rr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class uk extends Rr{getTypeName(){return"HTML"}}class dk extends Rr{getTypeName(){return"Style"}}class hk extends Rr{getTypeName(){return"Script"}}class fk extends Rr{getTypeName(){return"URL"}}class pk extends Rr{getTypeName(){return"ResourceURL"}}function sn(n){return n instanceof Rr?n.changingThisBreaksApplicationSecurity:n}function Jn(n,t){const e=uv(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}function uv(n){return n instanceof Rr&&n.getTypeName()||null}class bk{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(kr(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Ck{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=kr(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=kr(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0ua(t.trim())).join(", ")}function ei(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function da(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const fv=ei("area,br,col,hr,img,wbr"),pv=ei("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),gv=ei("rp,rt"),Xh=da(fv,da(pv,ei("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),da(gv,ei("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),da(gv,pv)),Jh=ei("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ef=ei("srcset"),mv=da(Jh,ef,ei("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ei("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Mk=ei("script,style,template");class Sk{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Xh.hasOwnProperty(e))return this.sanitizedSomething=!0,!Mk.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r"),!0}endElement(t){const e=t.nodeName.toLowerCase();Xh.hasOwnProperty(e)&&!fv.hasOwnProperty(e)&&(this.buf.push(""),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(_v(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 Tk=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,xk=/([^\#-~ |!])/g;function _v(n){return n.replace(/&/g,"&").replace(Tk,function(t){return""+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(xk,function(t){return""+t.charCodeAt(0)+";"}).replace(//g,">")}let hc;function yv(n,t){let e=null;try{hc=hc||function dv(n){const t=new Ck(n);return function wk(){try{return!!(new window.DOMParser).parseFromString(kr(""),"text/html")}catch(n){return!1}}()?new bk(t):t}(n);let i=t?String(t):"";e=hc.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=hc.getInertBodyElement(i)}while(i!==o);return kr((new Sk).sanitizeChildren(tf(e)||e))}finally{if(e){const i=tf(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function tf(n){return"content"in n&&function Ak(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var Ae=(()=>((Ae=Ae||{})[Ae.NONE=0]="NONE",Ae[Ae.HTML=1]="HTML",Ae[Ae.STYLE=2]="STYLE",Ae[Ae.SCRIPT=3]="SCRIPT",Ae[Ae.URL=4]="URL",Ae[Ae.RESOURCE_URL=5]="RESOURCE_URL",Ae))();function sf(n){return n.ngOriginalError}function Hk(n,...t){n.error(...t)}class ti{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=function Bk(n){return n&&n.ngErrorLogger||Hk}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&sf(t);for(;e&&sf(e);)e=sf(e);return e||null}}const qk=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Le))();function ni(n){return n instanceof Function?n():n}function Cv(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 wv="ng-template";function Zk(n,t,e){let i=0;for(;io?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==Cv(f,c,0)||2&i&&c!==h){if(Nn(i))return!1;s=!0}}}}else{if(!s&&!Nn(i)&&!Nn(l))return!1;if(s&&Nn(l))continue;s=!1,i=l|1&i}}return Nn(i)||s}function Nn(n){return 0==(1&n)}function eR(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&&!Nn(s)&&(t+=Mv(o,r),r=""),i=s,o=o||!Nn(i);e++}return""!==r&&(t+=Mv(o,r)),t}const ie={};function w(n){Sv(we(),T(),Ht()+n,!1)}function Sv(n,t,e,i){if(!i)if(3==(3&t[2])){const o=n.preOrderCheckHooks;null!==o&&Yl(t,o,e)}else{const o=n.preOrderHooks;null!==o&&Kl(t,o,0,e)}Xi(e)}function fc(n,t){return n<<17|t<<2}function Ln(n){return n>>17&32767}function af(n){return 2|n}function Mi(n){return(131068&n)>>2}function lf(n,t){return-131069&n|t<<2}function cf(n){return 1|n}function Lv(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i20&&Sv(n,t,20,!1),e(i,r)}finally{Xi(o)}}function Bv(n,t,e){if(ah(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})(a)!=l&&a.push(l),a.push(i,r,s)}}function qv(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function Yv(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function PR(n,t,e){if(e){if(t.exportAs)for(let i=0;i0&&Df(e)}}function Df(n){for(let i=Bh(n);null!==i;i=Hh(i))for(let r=10;r0&&Df(o)}const e=n[1].components;if(null!==e)for(let i=0;i0&&Df(r)}}function jR(n,t){const e=tn(t,n),i=e[1];(function UR(n,t){for(let e=t.length;ePromise.resolve(null))();function Jv(n){return n[7]||(n[7]=[])}function eb(n){return n.cleanup||(n.cleanup=[])}function tb(n,t,e){return(null===n||Fn(n))&&(e=function OA(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(e[t.index])),e[11]}function nb(n,t){const e=n[9],i=e?e.get(ti,null):null;i&&i.handleError(t)}function ib(n,t,e,i,r){for(let o=0;othis.processProvider(a,t,e)),Xn([t],a=>this.processInjectorType(a,[],o)),this.records.set(ga,Lo(void 0,this));const s=this.records.get(xf);this.scope=null!=s?s.value:null,this.source=r||("object"==typeof t?null:Pe(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=ia,i=Z.Default){this.assertNotDestroyed();const r=ky(this),o=Yi(void 0);try{if(!(i&Z.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function nO(n){return"function"==typeof n||"object"==typeof n&&n instanceof A}(t)&&eh(t);a=l&&this.injectableDefInScope(l)?Lo(If(t),ma):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&Z.Self?ob():this.parent).get(t,e=i&Z.Optional&&e===ia?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[rc]=s[rc]||[]).unshift(Pe(t)),r)throw s;return function SI(n,t,e,i){const r=n[rc];throw t[Iy]&&r.unshift(t[Iy]),n.message=function TI(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=Pe(t);if(Array.isArray(t))r=t.map(Pe).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):Pe(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(CI,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[rc]=null,n}(s,t,"R3InjectorError",this.source)}throw s}finally{Yi(o),ky(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,r)=>t.push(Pe(r))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new N(205,!1)}processInjectorType(t,e,i){if(!(t=le(t)))return!1;let r=H_(t);const o=null==r&&t.ngModule||void 0,s=void 0===o?t:o,a=-1!==i.indexOf(s);if(void 0!==o&&(r=H_(o)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(s);try{Xn(r.imports,d=>{this.processInjectorType(d,e,i)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;dthis.processProvider(g,h,f||He))}}this.injectorDefTypes.add(s);const l=xr(s)||(()=>new s);this.records.set(s,Lo(l,ma));const c=r.providers;if(null!=c&&!a){const u=t;Xn(c,d=>this.processProvider(d,u,c))}return void 0!==o&&void 0!==t.providers}processProvider(t,e,i){let r=Vo(t=le(t))?t:le(t&&t.provide);const o=function QR(n,t,e){return cb(n)?Lo(void 0,n.useValue):Lo(lb(n),ma)}(t);if(Vo(t)||!0!==t.multi)this.records.get(r);else{let s=this.records.get(r);s||(s=Lo(void 0,ma,!0),s.factory=()=>Oh(s.multi),this.records.set(r,s)),r=t,s.multi.push(t)}this.records.set(r,o)}hydrate(t,e){return e.value===ma&&(e.value=qR,e.value=e.factory()),"object"==typeof e.value&&e.value&&function tO(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=le(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function If(n){const t=eh(n),e=null!==t?t.factory:xr(n);if(null!==e)return e;if(n instanceof A)throw new N(204,!1);if(n instanceof Function)return function KR(n){const t=n.length;if(t>0)throw na(t,"?"),new N(204,!1);const e=function aA(n){const t=n&&(n[Fl]||n[j_]);if(t){const e=function lA(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 N(204,!1)}function lb(n,t,e){let i;if(Vo(n)){const r=le(n);return xr(r)||If(r)}if(cb(n))i=()=>le(n.useValue);else if(function XR(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Oh(n.deps||[]));else if(function ZR(n){return!(!n||!n.useExisting)}(n))i=()=>m(le(n.useExisting));else{const r=le(n&&(n.useClass||n.provide));if(!function eO(n){return!!n.deps}(n))return xr(r)||If(r);i=()=>new r(...Oh(n.deps))}return i}function Lo(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function cb(n){return null!==n&&"object"==typeof n&&DI in n}function Vo(n){return"function"==typeof n}let Qe=(()=>{class n{static create(e,i){var r;if(Array.isArray(e))return sb({name:""},i,e,"");{const o=null!==(r=e.name)&&void 0!==r?r:"";return sb({name:o},e.parent,e.providers,o)}}}return n.THROW_IF_NOT_FOUND=ia,n.NULL=new rb,n.\u0275prov=x({token:n,providedIn:"any",factory:()=>m(ga)}),n.__NG_ELEMENT_ID__=-1,n})();function uO(n,t){ql(Nh(n)[1],bt())}function R(n){let t=function Cb(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),e=!0;const i=[n];for(;t;){let r;if(Fn(n))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new N(903,"");r=t.\u0275dir}if(r){if(e){i.push(r);const s=n;s.inputs=Of(n.inputs),s.declaredInputs=Of(n.declaredInputs),s.outputs=Of(n.outputs);const a=r.hostBindings;a&&pO(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&hO(n,l),c&&fO(n,c),Qd(n.inputs,r.inputs),Qd(n.declaredInputs,r.declaredInputs),Qd(n.outputs,r.outputs),Fn(r)&&r.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const o=r.features;if(o)for(let s=0;s=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Zl(r.hostAttrs,e=Zl(e,r.hostAttrs))}}(i)}function Of(n){return n===mo?{}:n===He?[]:n}function hO(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function fO(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,o)=>{t(i,r,o),e(i,r,o)}:t}function pO(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let vc=null;function Bo(){if(!vc){const n=Le.Symbol;if(n&&n.iterator)vc=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(ft(V[i.index])):i.index;if(rt(e)){let V=null;if(!a&&l&&(V=function zO(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!==V)(V.__ngLastListenerFn__||V).__ngNextListenerFn__=o,V.__ngLastListenerFn__=o,f=!1;else{o=$f(i,t,d,o,!1);const de=e.listen(E,r,o);h.push(o,de),u&&u.push(r,I,v,v+1)}}else o=$f(i,t,d,o,!0),E.addEventListener(r,o,s),h.push(o),u&&u.push(r,I,v,s)}else o=$f(i,t,d,o,!1);const g=i.outputs;let _;if(f&&null!==g&&(_=g[r])){const C=_.length;if(C)for(let E=0;E0;)t=t[15],n--;return t}(n,ne.lFrame.contextLView))[8]}(n)}function GO(n,t){let e=null;const i=function tR(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let r=0;r=0}const wt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function eC(n){return n.substring(wt.key,wt.keyEnd)}function tC(n,t){const e=wt.textEnd;return e===t?-1:(t=wt.keyEnd=function XO(n,t,e){for(;t32;)t++;return t}(n,wt.key=t,e),Qo(n,t,e))}function Qo(n,t,e){for(;t=0;e=tC(t,e))nn(n,eC(t),!0)}function Bn(n,t,e,i){const r=T(),o=we(),s=Ei(2);o.firstUpdatePass&&aC(o,n,s,i),t!==ie&&Nt(r,s,t)&&cC(o,o.data[Ht()],r,r[11],n,r[s+1]=function c1(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=Pe(sn(n)))),n}(t,e),i,s)}function sC(n,t){return t>=n.expandoStartIndex}function aC(n,t,e,i){const r=n.data;if(null===r[e+1]){const o=r[Ht()],s=sC(n,e);dC(o,i)&&null===t&&!s&&(t=!1),t=function i1(n,t,e,i){const r=bh(n);let o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=ba(e=Gf(null,n,t,e,i),t.attrs,i),o=null);else{const s=t.directiveStylingLast;if(-1===s||n[s]!==r)if(e=Gf(r,n,t,e,i),null===o){let l=function r1(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==Mi(i))return n[Ln(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=Gf(null,n,t,l[1],i),l=ba(l,t.attrs,i),function o1(n,t,e,i){n[Ln(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else o=function s1(n,t,e){let i;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(c=!0)}else u=e;if(r)if(0!==l){const h=Ln(n[a+1]);n[i+1]=fc(h,a),0!==h&&(n[h+1]=lf(n[h+1],i)),n[a+1]=function lR(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=fc(a,0),0!==a&&(n[a+1]=lf(n[a+1],i)),a=i;else n[i+1]=fc(l,0),0===a?a=i:n[l+1]=lf(n[l+1],i),l=i;c&&(n[i+1]=af(n[i+1])),Jb(n,u,i,!0),Jb(n,u,i,!1),function qO(n,t,e,i,r){const o=r?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&Io(o,t)>=0&&(e[i+1]=cf(e[i+1]))}(t,u,n,i,o),s=fc(a,l),o?t.classBindings=s:t.styleBindings=s}(r,o,t,e,s,i)}}function Gf(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 h=e[r+1];h===ie&&(h=d?He:void 0);let f=d?Ih(h,i):u===i?h:void 0;if(c&&!Dc(f)&&(f=Ih(l,i)),Dc(f)&&(a=f,s))return a;const g=n[r+1];r=s?Ln(g):Mi(g)}if(null!==t){let l=o?t.residualClasses:t.residualStyles;null!=l&&(a=Ih(l,i))}return a}function Dc(n){return void 0!==n}function dC(n,t){return 0!=(n.flags&(t?16:32))}function k(n,t=""){const e=T(),i=we(),r=n+20,o=i.firstCreatePass?Po(i,r,1,t,null):i.data[r],s=e[r]=function jh(n,t){return rt(n)?n.createText(t):n.createTextNode(t)}(e[11],t);lc(i,e,s,o),Qn(o,!1)}function Ze(n){return At("",n,""),Ze}function At(n,t,e){const i=T(),r=jo(i,n,t,e);return r!==ie&&Si(i,Ht(),r),At}function bC(n,t,e){!function Hn(n,t,e,i){const r=we(),o=Ei(2);r.firstUpdatePass&&aC(r,null,o,i);const s=T();if(e!==ie&&Nt(s,o,e)){const a=r.data[Ht()];if(dC(a,i)&&!sC(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Zd(l,e||"")),Hf(r,a,s,e,i)}else!function l1(n,t,e,i,r,o,s,a){r===ie&&(r=He);let l=0,c=0,u=0>20;if(Vo(n)||!n.multi){const f=new Ks(l,r,p),g=Zf(a,t,r?u:u+h,d);-1===g?(ec(Zs(c,s),o,a),Qf(o,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(f),s.push(f)):(e[g]=f,s[g]=f)}else{const f=Zf(a,t,u+h,d),g=Zf(a,t,u,u+h),_=f>=0&&e[f],C=g>=0&&e[g];if(r&&!C||!r&&!_){ec(Zs(c,s),o,a);const E=function TP(n,t,e,i,r){const o=new Ks(n,e,p);return o.multi=[],o.index=t,o.componentProviders=0,nw(o,r,i&&!e),o}(r?SP:MP,e.length,r,i,l);!r&&C&&(e[g].providerFactory=E),Qf(o,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(E),s.push(E)}else Qf(o,n,f>-1?f:g,nw(e[r?g:f],l,!r&&i));!r&&i&&C&&e[g].componentProviders++}}}function Qf(n,t,e,i){const r=Vo(t),o=function JR(n){return!!n.useClass}(t);if(r||o){const l=(o?le(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 nw(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function Zf(n,t,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function EP(n,t,e){const i=we();if(i.firstCreatePass){const r=Fn(n);Kf(e,i.data,i.blueprint,r,!0),Kf(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class iw{}class IP{resolveComponentFactory(t){throw function AP(n){const t=Error(`No component factory found for ${Pe(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let Nr=(()=>{class n{}return n.NULL=new IP,n})();function kP(){return Jo(bt(),T())}function Jo(n,t){return new W(en(n,t))}let W=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=kP,n})();function RP(n){return n instanceof W?n.nativeElement:n}class Ma{}let xi=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function PP(){const n=T(),e=tn(bt().index,n);return function OP(n){return n[11]}(Kn(e)?e:n)}(),n})(),FP=(()=>{class n{}return n.\u0275prov=x({token:n,providedIn:"root",factory:()=>null}),n})();class rr{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const NP=new rr("13.3.12"),Jf={};function Ac(n,t,e,i,r=!1){for(;null!==e;){const o=t[e.index];if(null!==o&&i.push(ft(o)),Pn(o))for(let a=10;a-1&&($h(t,i),nc(e,i))}this._attachedToViewContainer=!1}Ky(this._lView[1],this._lView)}onDestroy(t){$v(this._lView[1],this._lView,null,t)}markForCheck(){Ef(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function Sf(n,t,e){const i=t[10];i.begin&&i.begin();try{No(n,t,n.template,e)}catch(r){throw nb(t,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new N(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function QI(n,t){ca(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new N(902,"");this._appRef=t}}class LP extends Sa{constructor(t){super(t),this._view=t}detectChanges(){Xv(this._view)}checkNoChanges(){}get context(){return null}}class ow extends Nr{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=xt(t);return new ep(e,this.ngModule)}}function sw(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class ep extends iw{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function sR(n){return n.map(oR).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return sw(this.componentDef.inputs)}get outputs(){return sw(this.componentDef.outputs)}create(t,e,i,r){const o=(r=r||this.ngModule)?function BP(n,t){return{get:(e,i,r)=>{const o=n.get(e,Jf,r);return o!==Jf||i===Jf?o:t.get(e,i,r)}}}(t,r.injector):t,s=o.get(Ma,X_),a=o.get(FP,null),l=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function Uv(n,t,e){if(rt(n))return n.selectRootElement(t,e===Rn.ShadowDom);let i="string"==typeof t?n.querySelector(t):t;return i.textContent="",i}(l,i,this.componentDef.encapsulation):Uh(s.createRenderer(null,this.componentDef),c,function VP(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(c)),d=this.componentDef.onPush?576:528,h=function bb(n,t){return{components:[],scheduler:n||qk,clean:zR,playerHandler:t||null,flags:0}}(),f=mc(0,null,null,1,0,null,null,null,null,null),g=fa(null,f,h,d,null,null,s,l,a,o);let _,C;zl(g);try{const E=function yb(n,t,e,i,r,o){const s=e[1];e[20]=n;const l=Po(s,20,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(yc(l,c,!0),null!==n&&(Ql(r,n,c),null!==l.classes&&Kh(r,n,l.classes),null!==l.styles&&sv(r,n,l.styles)));const u=i.createRenderer(n,t),d=fa(e,Hv(t),null,t.onPush?64:16,e[20],l,i,u,o||null,null);return s.firstCreatePass&&(ec(Zs(l,e),s,t.type),Yv(s,l),Kv(l,e.length,1)),_c(e,d),e[20]=d}(u,this.componentDef,g,s,l);if(u)if(i)Ql(l,u,["ng-version",NP.full]);else{const{attrs:v,classes:I}=function aR(n){const t=[],e=[];let i=1,r=2;for(;i0&&Kh(l,u,I.join(" "))}if(C=ph(f,20),void 0!==e){const v=C.projection=[];for(let I=0;Il(s,t)),t.contentQueries){const l=bt();t.contentQueries(1,s,l.directiveStart)}const a=bt();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Xi(a.index),Wv(e[1],a,0,a.directiveStart,a.directiveEnd,t),qv(t,s)),s}(E,this.componentDef,g,h,[uO]),pa(f,g,null)}finally{Gl()}return new jP(this.componentType,_,Jo(C,g),g,C)}}class jP extends class xP{}{constructor(t,e,i,r,o){super(),this.location=i,this._rootLView=r,this._tNode=o,this.instance=e,this.hostView=this.changeDetectorRef=new LP(r),this.componentType=t}get injector(){return new Mo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class Ai{}class aw{}const es=new Map;class uw extends Ai{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new ow(this);const i=yn(t);this._bootstrapComponents=ni(i.bootstrap),this._r3Injector=ab(t,e,[{provide:Ai,useValue:this},{provide:Nr,useValue:this.componentFactoryResolver}],Pe(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Qe.THROW_IF_NOT_FOUND,i=Z.Default){return t===Qe||t===Ai||t===ga?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class tp extends aw{constructor(t){super(),this.moduleType=t,null!==yn(t)&&function $P(n){const t=new Set;!function e(i){const r=yn(i,!0),o=r.id;null!==o&&(function lw(n,t,e){if(t&&t!==e)throw new Error(`Duplicate module registered for ${n} - ${Pe(t)} vs ${Pe(t.name)}`)}(o,es.get(o),i),es.set(o,i));const s=ni(r.imports);for(const a of s)t.has(a)||(t.add(a),e(a))}(n)}(t)}create(t){return new uw(this.moduleType,t)}}function fw(n,t,e,i,r,o){const s=t+e;return Nt(n,s,r)?ri(n,s+1,o?i.call(o,r):i(r)):function Ta(n,t){const e=n[t];return e===ie?void 0:e}(n,s+1)}function or(n,t){const e=we();let i;const r=n+20;e.firstCreatePass?(i=function XP(n,t){if(t)for(let e=t.length-1;e>=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=xr(i.type)),s=Yi(p);try{const a=Xl(!1),l=o();return Xl(a),function wO(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,T(),r,l),l}finally{Yi(s)}}function sr(n,t,e){const i=n+20,r=T(),o=Co(r,i);return function xa(n,t){return n[1].data[t].pure}(r,i)?fw(r,Bt(),t,o.transform,e,o):o.transform(e)}function np(n){return t=>{setTimeout(n,void 0,t)}}const X=class iF extends j{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var r,o,s;let a=t,l=e||(()=>null),c=i;if(t&&"object"==typeof t){const d=t;a=null===(r=d.next)||void 0===r?void 0:r.bind(d),l=null===(o=d.error)||void 0===o?void 0:o.bind(d),c=null===(s=d.complete)||void 0===s?void 0:s.bind(d)}this.__isAsync&&(l=np(l),a&&(a=np(a)),c&&(c=np(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof Ee&&t.add(u),u}};function rF(){return this._results[Bo()]()}class Aa{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=Bo(),i=Aa.prototype;i[e]||(i[e]=rF)}get changes(){return this._changes||(this._changes=new X)}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=Cn(t);(this._changesDetected=!function hI(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=aF,n})();const oF=ct,sF=class extends oF{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=fa(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const o=this._declarationLView[19];return null!==o&&(i[19]=o.createEmbeddedView(e)),pa(e,i,t),new Sa(i)}};function aF(){return Ic(bt(),T())}function Ic(n,t){return 4&n.type?new sF(t,n,Jo(n,t)):null}let st=(()=>{class n{}return n.__NG_ELEMENT_ID__=lF,n})();function lF(){return bw(bt(),T())}const cF=st,yw=class extends cF{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return Jo(this._hostTNode,this._hostLView)}get injector(){return new Mo(this._hostTNode,this._hostLView)}get parentInjector(){const t=Jl(this._hostTNode,this._hostLView);if(gy(t)){const e=Eo(t,this._hostLView),i=Do(t);return new Mo(e[1].data[i+8],e)}return new Mo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=vw(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){const r=t.createEmbeddedView(e||{});return this.insert(r,i),r}createComponent(t,e,i,r,o){const s=t&&!function ta(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.ngModuleRef}const l=s?t:new ep(xt(t)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const h=(s?c:this.parentInjector).get(Ai,null);h&&(o=h)}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 FA(n){return Pn(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=i[3],h=new yw(d,d[6],d[3]);h.detach(h.indexOf(t))}}const o=this._adjustIndex(e),s=this._lContainer;!function XI(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=Oc,this.reject=Oc,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)(m(pp,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ka=new A("AppId",{providedIn:"root",factory:function Uw(){return`${mp()}${mp()}${mp()}`}});function mp(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const $w=new A("Platform Initializer"),Lr=new A("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),_p=new A("appBootstrapListener");let FF=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const Ii=new A("LocaleId",{providedIn:"root",factory:()=>er(Ii,Z.Optional|Z.SkipSelf)||function NF(){return"undefined"!=typeof $localize&&$localize.locale||Ec}()});class VF{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}let zw=(()=>{class n{compileModuleSync(e){return new tp(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=ni(yn(e).declarations).reduce((s,a)=>{const l=xt(a);return l&&s.push(new ep(l)),s},[]);return new VF(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const HF=(()=>Promise.resolve(0))();function yp(n){"undefined"==typeof Zone?HF.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class z{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new X(!1),this.onMicrotaskEmpty=new X(!1),this.onStable=new X(!1),this.onError=new X(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");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 jF(){let n=Le.requestAnimationFrame,t=Le.cancelAnimationFrame;if("undefined"!=typeof Zone&&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 zF(n){const t=()=>{!function $F(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(Le,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,bp(n),n.isCheckStableRunning=!0,vp(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),bp(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return Gw(n),e.invokeTask(r,o,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),Ww(n)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return Gw(n),e.invoke(r,o,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),Ww(n)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,bp(n),vp(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"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!z.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(z.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}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,UF,Oc,Oc);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 UF={};function vp(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 bp(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function Gw(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function Ww(n){n._nesting--,vp(n)}class GF{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new X,this.onMicrotaskEmpty=new X,this.onStable=new X,this.onError=new X}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)}}let Cp=(()=>{class n{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?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:()=>{z.assertNotInAngularZone(),yp(()=>{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())yp(()=>{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}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(m(z))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),WF=(()=>{class n{constructor(){this._applications=new Map,wp.addToWindow(this)}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 wp.findTestabilityInTree(this,e,i)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class qF{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}let wp=new qF,Vr=null;const qw=new A("AllowMultipleToken"),Yw=new A("PlatformOnDestroy");class Kw{constructor(t,e){this.name=t,this.token=e}}function Qw(n,t,e=[]){const i=`Platform: ${t}`,r=new A(i);return(o=[])=>{let s=Dp();if(!s||s.injector.get(qw,!1)){const a=[...e,...o,{provide:r,useValue:!0}];n?n(a):function ZF(n){if(Vr&&!Vr.get(qw,!1))throw new N(400,"");Vr=n;const t=n.get(Zw),e=n.get($w,null);e&&e.forEach(i=>i())}(function JF(n=[],t){return Qe.create({name:t,providers:[{provide:xf,useValue:"platform"},{provide:Yw,useValue:()=>Vr=null},...n]})}(a,i))}return function XF(n){const t=Dp();if(!t)throw new N(401,"");return t}()}}function Dp(){var n;return null!==(n=null==Vr?void 0:Vr.get(Zw))&&void 0!==n?n:null}let Zw=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const a=function eN(n,t){let e;return e="noop"===n?new GF:("zone.js"===n?void 0:n)||new z({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:z,useValue:a}];return a.run(()=>{const c=Qe.create({providers:l,parent:this.injector,name:e.moduleType.name}),u=e.create(c),d=u.injector.get(ti,null);if(!d)throw new N(402,"");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{d.handleError(f)}});u.onDestroy(()=>{Ep(this._modules,u),h.unsubscribe()})}),function tN(n,t,e){try{const i=e();return va(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(d,a,()=>{const h=u.injector.get(gp);return h.runInitializers(),h.donePromise.then(()=>(function O1(n){Xt(n,"Expected localeId to be defined"),"string"==typeof n&&(RC=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(Ii,Ec)||Ec),this._moduleDoBootstrap(u),u))})})}bootstrapModule(e,i=[]){const r=Xw({},i);return function KF(n,t,e){const i=new tp(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Pc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new N(403,"");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 N(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(Yw,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(m(Qe))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function Xw(n,t){return Array.isArray(t)?t.reduce(Xw,n):Object.assign(Object.assign({},n),t)}let Pc=(()=>{class n{constructor(e,i,r,o){this._zone=e,this._injector=i,this._exceptionHandler=r,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const s=new be(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new be(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{z.assertNotInAngularZone(),yp(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{z.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=Dr(s,a.pipe(Kd()))}bootstrap(e,i){if(!this._initStatus.done)throw new N(405,"");let r;r=e instanceof iw?e:this._injector.get(Nr).resolveComponentFactory(e),this.componentTypes.push(r.componentType);const o=function QF(n){return n.isBoundToModule}(r)?void 0:this._injector.get(Ai),a=r.create(Qe.NULL,[],i||r.selector,o),l=a.location.nativeElement,c=a.injector.get(Cp,null),u=c&&a.injector.get(WF);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Ep(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new N(101,"");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;Ep(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(_p,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(e){return new(e||n)(m(z),m(Qe),m(ti),m(gp))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Ep(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let eD=!0,tD=!1,It=(()=>{class n{}return n.__NG_ELEMENT_ID__=oN,n})();function oN(n){return function sN(n,t,e){if(Hl(n)&&!e){const i=tn(n.index,t);return new Sa(i,i)}return 47&n.type?new Sa(t[16],t):null}(bt(),T(),16==(16&n))}class oD{constructor(){}supports(t){return _a(t)}create(t){return new hN(t)}}const dN=(n,t)=>t;class hN{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||dN}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 fN(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 sD),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 sD),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 fN{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 pN{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 sD{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new pN,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 aD(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 mN(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 mN{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 cD(){return new li([new oD])}let li=(()=>{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||cD()),deps:[[n,new tr,new rn]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new N(901,"")}}return n.\u0275prov=x({token:n,providedIn:"root",factory:cD}),n})();function uD(){return new Ra([new lD])}let Ra=(()=>{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||uD()),deps:[[n,new tr,new rn]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(i)return i;throw new N(901,"")}}return n.\u0275prov=x({token:n,providedIn:"root",factory:uD}),n})();const vN=Qw(null,"core",[]);let bN=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(m(Pc))},n.\u0275mod=te({type:n}),n.\u0275inj=J({}),n})(),Lc=null;function ci(){return Lc}const U=new A("DocumentToken");let Hr=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:function(){return function MN(){return m(dD)}()},providedIn:"platform"}),n})();const SN=new A("Location Initialized");let dD=(()=>{class n extends Hr{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ci().getBaseHref(this._doc)}onPopState(e){const i=ci().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=ci().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,i,r){hD()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){hD()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(m(U))},n.\u0275prov=x({token:n,factory:function(){return function TN(){return new dD(m(U))}()},providedIn:"platform"}),n})();function hD(){return!!window.history.pushState}function Ap(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function fD(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function ki(n){return n&&"?"!==n[0]?"?"+n:n}let ns=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:function(){return function xN(n){const t=m(U).location;return new pD(m(Hr),t&&t.origin||"")}()},providedIn:"root"}),n})();const Ip=new A("appBaseHref");let pD=(()=>{class n extends ns{constructor(e,i){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Ap(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+ki(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+ki(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+ki(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return n.\u0275fac=function(e){return new(e||n)(m(Hr),m(Ip,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),AN=(()=>{class n extends ns{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=Ap(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+ki(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+ki(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return n.\u0275fac=function(e){return new(e||n)(m(Hr),m(Ip,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),Oa=(()=>{class n{constructor(e,i){this._subject=new X,this._urlChangeListeners=[],this._platformStrategy=e;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=fD(gD(r)),this._platformStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+ki(i))}normalize(e){return n.stripTrailingSlash(function kN(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,gD(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._platformStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ki(i)),r)}replaceState(e,i="",r=null){this._platformStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ki(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return n.normalizeQueryParams=ki,n.joinWithSlash=Ap,n.stripTrailingSlash=fD,n.\u0275fac=function(e){return new(e||n)(m(ns),m(Hr))},n.\u0275prov=x({token:n,factory:function(){return function IN(){return new Oa(m(ns),m(Hr))}()},providedIn:"root"}),n})();function gD(n){return n.replace(/\/index.html$/,"")}function ED(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}let qc=(()=>{class n{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(_a(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Pe(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).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)(p(li),p(Ra),p(W),p(xi))},n.\u0275dir=D({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})();class gL{constructor(t,e,i,r){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Hp=(()=>{class n{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new gL(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),MD(a,r)}});for(let r=0,o=i.length;r{MD(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(p(st),p(ct),p(li))},n.\u0275dir=D({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function MD(n,t){n.context.$implicit=t.item}let ar=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new mL,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){SD("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){SD("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)(p(st),p(ct))},n.\u0275dir=D({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class mL{constructor(){this.$implicit=null,this.ngIf=null}}function SD(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${Pe(t)}'.`)}class jp{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 Na=(()=>{class n{constructor(){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||(this._defaultViews=[]),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&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new jp(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(p(st),p(ct),p(Na,9))},n.\u0275dir=D({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})(),TD=(()=>{class n{constructor(e,i,r){r._addDefault(new jp(e,i))}}return n.\u0275fac=function(e){return new(e||n)(p(st),p(ct),p(Na,9))},n.\u0275dir=D({type:n,selectors:[["","ngSwitchDefault",""]]}),n})();class bL{createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class CL{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}onDestroy(t){}}const wL=new CL,DL=new bL;let Yc=(()=>{class n{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}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(va(e))return wL;if(jb(e))return DL;throw function Un(n,t){return new N(2100,"")}()}_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)(p(It,16))},n.\u0275pipe=Wt({name:"async",type:n,pure:!1}),n})(),jr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=te({type:n}),n.\u0275inj=J({}),n})();const ID="browser";let GL=(()=>{class n{}return n.\u0275prov=x({token:n,providedIn:"root",factory:()=>new WL(m(U),window)}),n})();class WL{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function qL(n,t){const e=n.getElementById(t)||n.getElementsByName(t)[0];if(e)return e;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const i=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=kD(this.window.history)||kD(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function kD(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class RD{}class Gp extends class YL extends class EN{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function DN(n){Lc||(Lc=n)}(new Gp)}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 KL(){return La=La||document.querySelector("base"),La?La.getAttribute("href"):null}();return null==e?null:function QL(n){Kc=Kc||document.createElement("a"),Kc.setAttribute("href",n);const t=Kc.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){La=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return ED(document.cookie,t)}}let Kc,La=null;const OD=new A("TRANSITION_ID"),XL=[{provide:pp,useFactory:function ZL(n,t,e){return()=>{e.get(gp).donePromise.then(()=>{const i=ci(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o{const o=t.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},Le.getAllAngularTestabilities=()=>t.getAllTestabilities(),Le.getAllAngularRootElements=()=>t.getAllRootElements(),Le.frameworkStabilizers||(Le.frameworkStabilizers=[]),Le.frameworkStabilizers.push(i=>{const r=Le.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){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:i?ci().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let JL=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const Qc=new A("EventManagerPlugins");let Zc=(()=>{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=x({token:n,factory:n.\u0275fac}),n})(),Va=(()=>{class n extends FD{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(ND),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(ND))}}return n.\u0275fac=function(e){return new(e||n)(m(U))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();function ND(n){ci().remove(n)}const qp={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/"},Yp=/%COMP%/g;function Xc(n,t,e){for(let i=0;i{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let Jc=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Kp(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Rn.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new oV(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case Rn.ShadowDom:return new sV(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=Xc(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)(m(Zc),m(Va),m(ka))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class Kp{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(qp[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&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=qp[r];o?t.setAttributeNS(o,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=qp[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&(on.DashCase|on.Important)?t.style.setProperty(e,i,r&on.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&on.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,BD(i)):this.eventManager.addEventListener(t,e,BD(i))}}class oV extends Kp{constructor(t,e,i,r){super(t),this.component=i;const o=Xc(r+"-"+i.id,i.styles,[]);e.addStyles(o),this.contentAttr=function nV(n){return"_ngcontent-%COMP%".replace(Yp,n)}(r+"-"+i.id),this.hostAttr=function iV(n){return"_nghost-%COMP%".replace(Yp,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 sV extends Kp{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=Xc(r.id,r.styles,[]);for(let s=0;s{class n extends PD{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)(m(U))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const jD=["alt","control","meta","shift"],cV={"\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"},UD={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},uV={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let dV=(()=>{class n extends PD{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(()=>ci().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="";if(jD.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),s+=l+".")}),s+=o,0!=i.length||0===o.length)return null;const a={};return a.domEventName=r,a.fullKey=s,a}static getEventFullKey(e){let i="",r=function hV(n){let t=n.key;if(null==t){if(t=n.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===n.location&&UD.hasOwnProperty(t)&&(t=UD[t]))}return cV[t]||t}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),jD.forEach(o=>{o!=r&&uV[o](e)&&(i+=o+".")}),i+=r,i}static eventCallback(e,i,r){return o=>{n.getEventFullKey(o)===e&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(m(U))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const mV=Qw(vN,"browser",[{provide:Lr,useValue:ID},{provide:$w,useValue:function fV(){Gp.makeCurrent(),Wp.init()},multi:!0},{provide:U,useFactory:function gV(){return function kA(n){hh=n}(document),document},deps:[]}]),_V=[{provide:xf,useValue:"root"},{provide:ti,useFactory:function pV(){return new ti},deps:[]},{provide:Qc,useClass:aV,multi:!0,deps:[U,z,Lr]},{provide:Qc,useClass:dV,multi:!0,deps:[U]},{provide:Jc,useClass:Jc,deps:[Zc,Va,ka]},{provide:Ma,useExisting:Jc},{provide:FD,useExisting:Va},{provide:Va,useClass:Va,deps:[U]},{provide:Cp,useClass:Cp,deps:[z]},{provide:Zc,useClass:Zc,deps:[Qc,z]},{provide:RD,useClass:JL,deps:[]}];let $D=(()=>{class n{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:n,providers:[{provide:ka,useValue:e.appId},{provide:OD,useExisting:ka},XL]}}}return n.\u0275fac=function(e){return new(e||n)(m(n,12))},n.\u0275mod=te({type:n}),n.\u0275inj=J({providers:_V,imports:[jr,bN]}),n})();"undefined"!=typeof window&&window;let eu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:function(e){let i=null;return i=e?new(e||n):m(WD),i},providedIn:"root"}),n})(),WD=(()=>{class n extends eu{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Ae.NONE:return i;case Ae.HTML:return Jn(i,"HTML")?sn(i):yv(this._doc,String(i)).toString();case Ae.STYLE:return Jn(i,"Style")?sn(i):i;case Ae.SCRIPT:if(Jn(i,"Script"))return sn(i);throw new Error("unsafe value used in a script context");case Ae.URL:return uv(i),Jn(i,"URL")?sn(i):ua(String(i));case Ae.RESOURCE_URL:if(Jn(i,"ResourceURL"))return sn(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function gk(n){return new uk(n)}(e)}bypassSecurityTrustStyle(e){return function mk(n){return new dk(n)}(e)}bypassSecurityTrustScript(e){return function _k(n){return new hk(n)}(e)}bypassSecurityTrustUrl(e){return function yk(n){return new fk(n)}(e)}bypassSecurityTrustResourceUrl(e){return function vk(n){return new pk(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(m(U))},n.\u0275prov=x({token:n,factory:function(e){let i=null;return i=e?new e:function TV(n){return new WD(n.get(U))}(m(Qe)),i},providedIn:"root"}),n})();function tu(...n){if(1===n.length){const t=n[0];if(uo(t))return nu(t,null);if(zd(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return nu(e.map(i=>t[i]),e)}}if("function"==typeof n[n.length-1]){const t=n.pop();return nu(n=1===n.length&&uo(n[0])?n[0]:n,null).pipe(Q(e=>t(...e)))}return nu(n,null)}function nu(n,t){return new be(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,h)=>(u[d]=r[h],u),{}):r),e.complete())}}))}})}let qD=(()=>{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)(p(xi),p(W))},n.\u0275dir=D({type:n}),n})(),Ur=(()=>{class n extends qD{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ce(n)))(i||n)}}(),n.\u0275dir=D({type:n,features:[R]}),n})();const $n=new A("NgValueAccessor"),xV={provide:$n,useExisting:Fe(()=>Zp),multi:!0};let Zp=(()=>{class n extends Ur{writeValue(e){this.setProperty("checked",e)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ce(n)))(i||n)}}(),n.\u0275dir=D({type:n,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,i){1&e&&H("change",function(o){return i.onChange(o.target.checked)})("blur",function(){return i.onTouched()})},features:[$([xV]),R]}),n})();const AV={provide:$n,useExisting:Fe(()=>Ba),multi:!0},kV=new A("CompositionEventMode");let Ba=(()=>{class n extends qD{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function IV(){const n=ci()?ci().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":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)(p(xi),p(W),p(kV,8))},n.\u0275dir=D({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&&H("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:[$([AV]),R]}),n})();const kt=new A("NgValidators"),ur=new A("NgAsyncValidators");function ZD(n){return function cr(n){return null==n||0===n.length}(n.value)?{required:!0}:null}function iu(n){return null}function iE(n){return null!=n}function rE(n){const t=va(n)?dt(n):n;return jf(t),t}function oE(n){let t={};return n.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function sE(n,t){return t.map(e=>e(n))}function aE(n){return n.map(t=>function OV(n){return!n.validate}(t)?t:e=>t.validate(e))}function Xp(n){return null!=n?function lE(n){if(!n)return null;const t=n.filter(iE);return 0==t.length?null:function(e){return oE(sE(e,t))}}(aE(n)):null}function Jp(n){return null!=n?function cE(n){if(!n)return null;const t=n.filter(iE);return 0==t.length?null:function(e){return tu(sE(e,t).map(rE)).pipe(Q(oE))}}(aE(n)):null}function uE(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function dE(n){return n._rawValidators}function hE(n){return n._rawAsyncValidators}function eg(n){return n?Array.isArray(n)?n:[n]:[]}function ru(n,t){return Array.isArray(n)?n.includes(t):n===t}function fE(n,t){const e=eg(t);return eg(n).forEach(r=>{ru(e,r)||e.push(r)}),e}function pE(n,t){return eg(t).filter(e=>!ru(n,e))}class gE{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=Xp(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Jp(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 ui extends gE{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class zt extends gE{get formDirective(){return null}get path(){return null}}let tg=(()=>{class n extends class mE{constructor(t){this._cd=t}is(t){var e,i,r;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(r=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===r?void 0:r[t])}}{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(p(ui,2))},n.\u0275dir=D({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&Ue("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))},features:[R]}),n})();function Ha(n,t){rg(n,t),t.valueAccessor.writeValue(n.value),function UV(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&yE(n,t)})}(n,t),function zV(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 $V(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&yE(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function jV(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function au(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),cu(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function lu(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function rg(n,t){const e=dE(n);null!==t.validator?n.setValidators(uE(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=hE(n);null!==t.asyncValidator?n.setAsyncValidators(uE(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();lu(t._rawValidators,r),lu(t._rawAsyncValidators,r)}function cu(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=dE(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=hE(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 lu(t._rawValidators,i),lu(t._rawAsyncValidators,i),e}function yE(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function vE(n,t){rg(n,t)}function CE(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function ag(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}const ja="VALID",uu="INVALID",is="PENDING",Ua="DISABLED";function cg(n){return(du(n)?n.validators:n)||null}function wE(n){return Array.isArray(n)?Xp(n):n||null}function ug(n,t){return(du(t)?t.asyncValidators:n)||null}function DE(n){return Array.isArray(n)?Jp(n):n||null}function du(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}const EE=n=>n instanceof xE,dg=n=>n instanceof fg;function ME(n){return EE(n)?n.value:n.getRawValue()}function SE(n,t){const e=dg(n),i=n.controls;if(!(e?Object.keys(i):i).length)throw new N(1e3,"");if(!i[t])throw new N(1001,"")}function TE(n,t){dg(n),n._forEachChild((i,r)=>{if(void 0===t[r])throw new N(1002,"")})}class hg{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._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=wE(this._rawValidators),this._composedAsyncValidatorFn=DE(this._rawAsyncValidators)}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===ja}get invalid(){return this.status===uu}get pending(){return this.status==is}get disabled(){return this.status===Ua}get enabled(){return this.status!==Ua}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._rawValidators=t,this._composedValidatorFn=wE(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=DE(t)}addValidators(t){this.setValidators(fE(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(fE(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(pE(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(pE(t,this._rawAsyncValidators))}hasValidator(t){return ru(this._rawValidators,t)}hasAsyncValidator(t){return ru(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=is,!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=Ua,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=ja,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},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}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ja||this.status===is)&&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()?Ua:ja}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=is,this._hasOwnPendingAsyncValidator=!0;const e=rE(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){return function YV(n,t,e){if(null==t||(Array.isArray(t)||(t=t.split(e)),Array.isArray(t)&&0===t.length))return null;let i=n;return t.forEach(r=>{i=dg(i)?i.controls.hasOwnProperty(r)?i.controls[r]:null:(n=>n instanceof QV)(i)&&i.at(r)||null}),i}(this,t,".")}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 X,this.statusChanges=new X}_calculateStatus(){return this._allControlsDisabled()?Ua:this.errors?uu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(is)?is:this._anyControlsHaveStatus(uu)?uu:ja}_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)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){du(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class xE extends hg{constructor(t=null,e,i){super(cg(e),ug(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}),du(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(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){ag(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){ag(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){this._isBoxedValue(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}}class fg extends hg{constructor(t,e,i){super(cg(e),ug(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={}){TE(this,t),Object.keys(t).forEach(i=>{SE(this,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=>{this.controls[i]&&this.controls[i].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]=ME(e),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 of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_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}}class QV extends hg{constructor(t,e,i){super(cg(e),ug(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){TE(this,t),t.forEach((i,r)=>{SE(this,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(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.controls.map(t=>ME(t))}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const ZV={provide:zt,useExisting:Fe(()=>za)},$a=(()=>Promise.resolve(null))();let za=(()=>{class n extends zt{constructor(e,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new X,this.form=new fg({},Xp(e),Jp(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){$a.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),Ha(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){$a.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){$a.then(()=>{const i=this._findContainer(e.path),r=new fg({});vE(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){$a.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){$a.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,CE(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(p(kt,10),p(ur,10))},n.\u0275dir=D({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&H("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[$([ZV]),R]}),n})();const JV={provide:ui,useExisting:Fe(()=>hu)},kE=(()=>Promise.resolve(null))();let hu=(()=>{class n extends ui{constructor(e,i,r,o,s){super(),this._changeDetectorRef=s,this.control=new xE,this._registered=!1,this.update=new X,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function sg(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(o=>{o.constructor===Ba?e=o:function qV(n){return Object.getPrototypeOf(n.constructor)===Ur}(o)?i=o:r=o}),r||i||e||null}(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),function og(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}(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(){Ha(this.control,this),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){kE.then(()=>{var i;this.control.setValue(e,{emitViewToModelChange:!1}),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=""===i||i&&"false"!==i;kE.then(()=>{var o;r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),null===(o=this._changeDetectorRef)||void 0===o||o.markForCheck()})}_getPath(e){return this._parent?function su(n,t){return[...t.path,n]}(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(p(zt,9),p(kt,10),p(ur,10),p($n,10),p(It,8))},n.\u0275dir=D({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:[$([JV]),R,it]}),n})();const t2={provide:$n,useExisting:Fe(()=>pg),multi:!0};let pg=(()=>{class n extends Ur{writeValue(e){this.setProperty("value",null==e?"":e)}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ce(n)))(i||n)}}(),n.\u0275dir=D({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,i){1&e&&H("input",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},features:[$([t2]),R]}),n})(),RE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=te({type:n}),n.\u0275inj=J({}),n})();const a2={provide:zt,useExisting:Fe(()=>Ga)};let Ga=(()=>{class n extends zt{constructor(e,i){super(),this.validators=e,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new X,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&&(cu(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 Ha(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){au(e.control||null,e,!1),ag(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,CE(this.form,this.directives),this.ngSubmit.emit(e),!1}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&&(au(i||null,e),EE(r)&&(Ha(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);vE(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function GV(n,t){return cu(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){rg(this.form,this),this._oldForm&&cu(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(p(kt,10),p(ur,10))},n.\u0275dir=D({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&H("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[$([a2]),R,it]}),n})(),$r=(()=>{class n{constructor(){this._validator=iu}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):iu,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=D({type:n,features:[it]}),n})();const b2={provide:kt,useExisting:Fe(()=>fu),multi:!0};let fu=(()=>{class n extends $r{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e=>function _2(n){return null!=n&&!1!==n&&"false"!=`${n}`}(e),this.createValidator=e=>ZD}enabled(e){return e}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ce(n)))(i||n)}}(),n.\u0275dir=D({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,i){2&e&&ge("required",i._enabled?"":null)},inputs:{required:"required"},features:[$([b2]),R]}),n})(),S2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=te({type:n}),n.\u0275inj=J({imports:[[RE]]}),n})(),T2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=te({type:n}),n.\u0275inj=J({imports:[S2]}),n})();class x2 extends Oe{notifyNext(t,e,i,r,o){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class A2 extends Oe{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 I2(n,t,e,i,r=new A2(n,e,i)){if(!r.closed)return t instanceof be?t.subscribe(r):Gd(t)(r)}const KE={};function bg(...n){let t,e;return ho(n[n.length-1])&&(e=n.pop()),"function"==typeof n[n.length-1]&&(t=n.pop()),1===n.length&&uo(n[0])&&(n=n[0]),qd(n,e).lift(new k2(t))}class k2{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new R2(t,this.resultSelector))}}class R2 extends x2{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(KE),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;i{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 zn extends QE{constructor(t,e=QE.now){super(t,()=>zn.delegate&&zn.delegate!==this?zn.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return zn.delegate&&zn.delegate!==this?zn.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 Cg=new zn(pu);function ZE(n){return!uo(n)&&n-parseFloat(n)+1>=0}function XE(n=0,t,e){let i=-1;return ZE(t)?i=Number(t)<1?1:Number(t):ho(t)&&(e=t),ho(e)||(e=Cg),new be(r=>{const o=ZE(n)?n:+n-e.now();return e.schedule(P2,o,{index:0,period:i,subscriber:r})})}function P2(n){const{index:t,period:e,subscriber:i}=n;if(i.next(t),!i.closed){if(-1===e)return i.complete();n.index=t+1,this.schedule(n,e)}}const JE=new class N2 extends zn{}(class F2 extends pu{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)}}),L2=JE,Mn=new be(n=>n.complete());function gu(n){return n?function V2(n){return new be(t=>n.schedule(()=>t.complete()))}(n):Mn}function B(...n){let t=n[n.length-1];return ho(t)?(n.pop(),Wd(n,t)):qd(n)}function Oi(n,t){return new be(t?e=>t.schedule(B2,0,{error:n,subscriber:e}):e=>e.error(n))}function B2({error:n,subscriber:t}){t.error(n)}class Sn{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 B(this.value);case"E":return Oi(this.error);case"C":return gu()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new Sn("N",t):Sn.undefinedValueNotification}static createError(t){return new Sn("E",void 0,t)}static createComplete(){return Sn.completeNotification}}Sn.completeNotification=new Sn("C"),Sn.undefinedValueNotification=new Sn("N",void 0);class j2{constructor(t,e=0){this.scheduler=t,this.delay=e}call(t,e){return e.subscribe(new mu(t,this.scheduler,this.delay))}}class mu extends Oe{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(mu.dispatch,this.delay,new U2(t,this.destination)))}_next(t){this.scheduleMessage(Sn.createNext(t))}_error(t){this.scheduleMessage(Sn.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(Sn.createComplete()),this.unsubscribe()}}class U2{constructor(t,e){this.notification=t,this.destination=e}}class _u extends j{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 $2(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 wr;if(this.isStopped||this.hasError?s=Ee.EMPTY:(this.observers.push(t),s=new k_(this,t)),r&&t.add(t=new mu(t,r)),e)for(let a=0;ae&&(s=Math.max(s,o-e)),s>0&&r.splice(0,s),r}}class $2{constructor(t,e){this.time=t,this.value=e}}const eM=(()=>{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 lt(n){return t=>0===n?gu():t.lift(new z2(n))}class z2{constructor(t){if(this.total=t,this.total<0)throw new eM}call(t,e){return e.subscribe(new G2(t,this.total))}}class G2 extends Oe{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()))}}let W2=(()=>{class n{constructor(){this.ignoreMissingServicesFramework=!1,this.forceUse=!1,this.moduleId=0,this.tabId=0,this.path="/"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),rs=(()=>{class n{constructor(e){this.devSettings=e,this.tidSubject=new _u(1),this.afTokenSubject=new _u(1),this._properties={},this._moduleId="",this._userId="",this.tabId$=this.tidSubject.asObservable(),this.antiForgeryToken$=this.afTokenSubject.asObservable(),this.all$=bg(this.tabId$,this.antiForgeryToken$).pipe(Q(r=>({tabId:r[0],antiForgeryToken:r[1]})));const i="Upendo.Modules.DnnPageManager";this.devSettings=Object.assign({},{ignoreMissingServicesFramework:!1},e),window&&window[i]&&(this._properties=window[i])}autoConfigure(){if(this._moduleId=this._properties.ModuleId,this._userId=this._properties.UserId,window.$&&window.$.ServicesFramework){const e=XE(0,100).pipe(lt(10)).subscribe(i=>{const r=window.$.ServicesFramework();r.getAntiForgeryValue()&&-1!==r.getTabId()?(e.unsubscribe(),this.tidSubject.next(r.getTabId()),this.afTokenSubject.next(r.getAntiForgeryValue())):window.dnn&&window.dnn.vars&&0===window.dnn.vars.length&&(window.dnn.vars=null)})}else{if(!this.devSettings.ignoreMissingServicesFramework)throw new Error("\n Services Framework is missing, and it's not allowed according to devSettings.\n Either set devSettings to ignore this, or ensure it's there");this.tidSubject.next(this.devSettings.tabId),this.afTokenSubject.next(this.devSettings.antiForgeryToken)}}}return n.\u0275fac=function(e){return new(e||n)(m(W2,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function os(n,t){return ht(n,t,1)}function mt(n,t){return function(i){return i.lift(new q2(n,t))}}class q2{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Y2(t,this.predicate,this.thisArg))}}class Y2 extends Oe{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 tM{}class nM{}class Pi{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 Pi?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 Pi;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Pi?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 K2{encodeKey(t){return iM(t)}encodeValue(t){return iM(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const Z2=/%(\d[a-f0-9])/gi,X2={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function iM(n){return encodeURIComponent(n).replace(Z2,(t,e)=>{var i;return null!==(i=X2[e])&&void 0!==i?i:t})}function rM(n){return`${n}`}class dr{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new K2,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Q2(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];this.map.set(e,Array.isArray(i)?i:[i])})):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 dr({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(rM(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(rM(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 J2{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 oM(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function sM(n){return"undefined"!=typeof Blob&&n instanceof Blob}function aM(n){return"undefined"!=typeof FormData&&n instanceof FormData}class Wa{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 eB(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 Pi),this.context||(this.context=new J2),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ah.set(f,t.setHeaders[f]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((h,f)=>h.set(f,t.setParams[f]),u)),new Wa(i,r,s,{params:u,headers:c,context:d,reportProgress:l,responseType:o,withCredentials:a})}}var _t=(()=>((_t=_t||{})[_t.Sent=0]="Sent",_t[_t.UploadProgress=1]="UploadProgress",_t[_t.ResponseHeader=2]="ResponseHeader",_t[_t.DownloadProgress=3]="DownloadProgress",_t[_t.Response=4]="Response",_t[_t.User=5]="User",_t))();class wg{constructor(t,e=200,i="OK"){this.headers=t.headers||new Pi,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 Dg extends wg{constructor(t={}){super(t),this.type=_t.ResponseHeader}clone(t={}){return new Dg({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 yu extends wg{constructor(t={}){super(t),this.type=_t.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new yu({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 lM extends wg{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 Eg(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 ss=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Wa)o=e;else{let l,c;l=r.headers instanceof Pi?r.headers:new Pi(r.headers),r.params&&(c=r.params instanceof dr?r.params:new dr({fromObject:r.params})),o=new Wa(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=B(o).pipe(os(l=>this.handler.handle(l)));if(e instanceof Wa||"events"===r.observe)return s;const a=s.pipe(mt(l=>l instanceof yu));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(Q(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(Q(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(Q(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(Q(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 dr).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,Eg(r,i))}post(e,i,r={}){return this.request("POST",e,Eg(r,i))}put(e,i,r={}){return this.request("PUT",e,Eg(r,i))}}return n.\u0275fac=function(e){return new(e||n)(m(tM))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class cM{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Mg=new A("HTTP_INTERCEPTORS");let nB=(()=>{class n{intercept(e,i){return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const iB=/^\)\]\}',?\n/;let uM=(()=>{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 be(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((f,g)=>r.setRequestHeader(f,g.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const f=e.detectContentTypeHeader();null!==f&&r.setRequestHeader("Content-Type",f)}if(e.responseType){const f=e.responseType.toLowerCase();r.responseType="json"!==f?f:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const f=r.statusText||"OK",g=new Pi(r.getAllResponseHeaders()),_=function rB(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 Dg({headers:g,status:r.status,statusText:f,url:_}),s},l=()=>{let{headers:f,status:g,statusText:_,url:C}=a(),E=null;204!==g&&(E=void 0===r.response?r.responseText:r.response),0===g&&(g=E?200:0);let v=g>=200&&g<300;if("json"===e.responseType&&"string"==typeof E){const I=E;E=E.replace(iB,"");try{E=""!==E?JSON.parse(E):null}catch(V){E=I,v&&(v=!1,E={error:V,text:E})}}v?(i.next(new yu({body:E,headers:f,status:g,statusText:_,url:C||void 0})),i.complete()):i.error(new lM({error:E,headers:f,status:g,statusText:_,url:C||void 0}))},c=f=>{const{url:g}=a(),_=new lM({error:f,status:r.status||0,statusText:r.statusText||"Unknown Error",url:g||void 0});i.error(_)};let u=!1;const d=f=>{u||(i.next(a()),u=!0);let g={type:_t.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(g.total=f.total),"text"===e.responseType&&!!r.responseText&&(g.partialText=r.responseText),i.next(g)},h=f=>{let g={type:_t.UploadProgress,loaded:f.loaded};f.lengthComputable&&(g.total=f.total),i.next(g)};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",h)),r.send(o),i.next({type:_t.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",h)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(m(RD))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const Sg=new A("XSRF_COOKIE_NAME"),Tg=new A("XSRF_HEADER_NAME");class dM{}let Pg,oB=(()=>{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=ED(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(m(U),m(Lr),m(Sg))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),xg=(()=>{class n{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const r=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return i.handle(e);const o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(m(dM),m(Tg))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),sB=(()=>{class n{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(Mg,[]);this.chain=i.reduceRight((r,o)=>new cM(r,o),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(m(nM),m(Qe))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),aB=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:xg,useClass:nB}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:Sg,useValue:e.cookieName}:[],e.headerName?{provide:Tg,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=te({type:n}),n.\u0275inj=J({providers:[xg,{provide:Mg,useExisting:xg,multi:!0},{provide:dM,useClass:oB},{provide:Sg,useValue:"XSRF-TOKEN"},{provide:Tg,useValue:"X-XSRF-TOKEN"}]}),n})(),lB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=te({type:n}),n.\u0275inj=J({providers:[ss,{provide:tM,useClass:sB},uM,{provide:nM,useExisting:uM}],imports:[[aB.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),n})(),hM=(()=>{class n{constructor(e,i){this.context=e,this.http=i,this._routingWebAPI=this.context._properties.routingWebAPI}getHelloWorld(){let i=this._routingWebAPI+"Test/HelloWorld";return console.log("\u200b---------------------------------"),console.log("\u200bService -> getUrl",i),console.log("\u200b---------------------------------"),this.http.get(i)}}return n.\u0275fac=function(e){return new(e||n)(m(rs),m(ss))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Ve(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}class Yt extends j{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 wr;return this._value}next(t){super.next(this._value=t)}}function zr(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function hr(){}function De(n,t,e){return function(r){return r.lift(new wB(n,t,e))}}class wB{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new DB(t,this.nextOrObserver,this.error,this.complete))}}class DB extends Oe{constructor(t,e,i,r){super(t),this._tapNext=hr,this._tapError=hr,this._tapComplete=hr,this._tapError=i||hr,this._tapComplete=r||hr,Wi(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||hr,this._tapError=e.error||hr,this._tapComplete=e.complete||hr)}_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()}}function Og(n,t=Cg){return e=>e.lift(new EB(n,t))}class EB{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new MB(t,this.dueTime,this.scheduler))}}class MB extends Oe{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(SB,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 SB(n){n.debouncedNext()}function vM(n){return t=>t.lift(new TB(n))}class TB{constructor(t){this.total=t}call(t,e){return e.subscribe(new xB(t,this.total))}}class xB extends Oe{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}function wu(n,t){return e=>e.lift(new AB(n,t))}class AB{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new IB(t,this.compare,this.keySelector))}}class IB extends Oe{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))}}function Ce(n){return t=>t.lift(new kB(n))}class kB{constructor(t){this.notifier=t}call(t,e){const i=new RB(t),r=go(this.notifier,new fo(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class RB extends po{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Me(n){return null!=n&&"false"!=`${n}`}function cn(n,t=0){return function OB(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):t}function Du(n){return Array.isArray(n)?n:[n]}function yt(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Fi(n){return n instanceof W?n.nativeElement:n}try{Pg="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){Pg=!1}let as,Re=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function $L(n){return n===ID}(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Pg)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(e){return new(e||n)(m(Lr))},n.\u0275prov=x({factory:function(){return new n(m(Lr))},token:n,providedIn:"root"}),n})(),qa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=te({type:n}),n.\u0275inj=J({}),n})();const bM=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function CM(){if(as)return as;if("object"!=typeof document||!document)return as=new Set(bM),as;let n=document.createElement("input");return as=new Set(bM.filter(t=>(n.setAttribute("type",t),n.type===t))),as}let Ya,Gr,Fg;function Ka(n){return function PB(){if(null==Ya&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ya=!0}))}finally{Ya=Ya||!1}return Ya}()?n:!!n.capture}function wM(){if(null==Gr){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Gr=!1,Gr;if("scrollBehavior"in document.documentElement.style)Gr=!0;else{const n=Element.prototype.scrollTo;Gr=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Gr}function Mu(){let n="undefined"!=typeof document&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const t=n.shadowRoot.activeElement;if(t===n)break;n=t}return n}function Wr(n){return n.composedPath?n.composedPath()[0]:n.target}function Ng(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}let Lg=(()=>{class n{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({factory:function(){return new n},token:n,providedIn:"root"}),n})(),DM=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Fi(e);return new be(r=>{const s=this._observeElement(i).subscribe(r);return()=>{s.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new j,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(m(Lg))},n.\u0275prov=x({factory:function(){return new n(m(Lg))},token:n,providedIn:"root"}),n})(),EM=(()=>{class n{constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new X,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Me(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=cn(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(Og(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(p(DM),p(W),p(z))},n.\u0275dir=D({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),Vg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=te({type:n}),n.\u0275inj=J({providers:[Lg]}),n})();function Su(n,t){return(n.getAttribute(t)||"").match(/\S+/g)||[]}const SM="cdk-describedby-message-container",TM="cdk-describedby-message",Tu="cdk-describedby-host";let BB=0;const di=new Map;let Rt=null,Bg=(()=>{class n{constructor(e){this._document=e}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const o=Hg(i,r);"string"!=typeof i?(xM(i),di.set(o,{messageElement:i,referenceCount:0})):di.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;const o=Hg(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),"string"==typeof i){const s=di.get(o);s&&0===s.referenceCount&&this._deleteMessageElement(o)}Rt&&0===Rt.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Tu}]`);for(let i=0;i0!=r.indexOf(TM));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=di.get(i);(function LB(n,t,e){const i=Su(n,t);i.some(r=>r.trim()==e.trim())||(i.push(e.trim()),n.setAttribute(t,i.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Tu,""),r.referenceCount++}_removeMessageReference(e,i){const r=di.get(i);r.referenceCount--,function VB(n,t,e){const r=Su(n,t).filter(o=>o!=e.trim());r.length?n.setAttribute(t,r.join(" ")):n.removeAttribute(t)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Tu)}_isElementDescribedByMessage(e,i){const r=Su(e,"aria-describedby"),o=di.get(i),s=o&&o.messageElement.id;return!!s&&-1!=r.indexOf(s)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),o=e.getAttribute("aria-label");return!(!r||o&&o.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(m(U))},n.\u0275prov=x({factory:function(){return new n(m(U))},token:n,providedIn:"root"}),n})();function Hg(n,t){return"string"==typeof n?`${t||""}/${n}`:n}function xM(n){n.id||(n.id=`${TM}-${BB++}`)}class jB extends class HB{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new j,this._typeaheadSubscription=Ee.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new j,this.change=new j,t instanceof Aa&&t.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(De(e=>this._pressedLetters.push(e)),Og(t),mt(()=>this._pressedLetters.length>0),Q(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r!t[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||zr(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),r=e[i];this._activeItem=null==r?null:r,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const r=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof Aa?this._items.toArray():this._items}}{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}let AM=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function $B(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function UB(n){try{return n.frameElement}catch(t){return null}}(function ZB(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(i&&(-1===kM(i)||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=kM(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function KB(n){let t=n.nodeName.toLowerCase(),e="input"===t&&n.type;return"text"===e||"password"===e||"select"===t||"textarea"===t}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==o:"video"===r?-1!==o&&(null!==o||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function QB(n){return!function GB(n){return function qB(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function zB(n){let t=n.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(n)||function WB(n){return function YB(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||IM(n))}(e)&&!this.isDisabled(e)&&((null==i?void 0:i.ignoreVisibility)||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(m(Re))},n.\u0275prov=x({factory:function(){return new n(m(Re))},token:n,providedIn:"root"}),n})();function IM(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let t=n.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function kM(n){if(!IM(n))return null;const t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class XB{constructor(t,e,i,r,o=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let i=0;i=0;i--){let r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(lt(1)).subscribe(t)}}let RM=(()=>{class n{constructor(e,i,r){this._checker=e,this._ngZone=i,this._document=r}create(e,i=!1){return new XB(e,this._checker,this._ngZone,this._document,i)}}return n.\u0275fac=function(e){return new(e||n)(m(AM),m(z),m(U))},n.\u0275prov=x({factory:function(){return new n(m(AM),m(z),m(U))},token:n,providedIn:"root"}),n})();function OM(n){return 0===n.offsetX&&0===n.offsetY}function PM(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}"undefined"!=typeof Element&∈const FM=new A("cdk-input-modality-detector-options"),iH={ignoreKeys:[18,17,224,91,16]},ls=Ka({passive:!0,capture:!0});let LM=(()=>{class n{constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new Yt(null),this._lastTouchMs=0,this._onKeydown=s=>{var a,l;(null===(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===l?void 0:l.some(c=>c===s.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Wr(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(OM(s)?"keyboard":"mouse"),this._mostRecentTarget=Wr(s))},this._onTouchstart=s=>{PM(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Wr(s))},this._options=Object.assign(Object.assign({},iH),o),this.modalityDetected=this._modality.pipe(vM(1)),this.modalityChanged=this.modalityDetected.pipe(wu()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,ls),r.addEventListener("mousedown",this._onMousedown,ls),r.addEventListener("touchstart",this._onTouchstart,ls)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ls),document.removeEventListener("mousedown",this._onMousedown,ls),document.removeEventListener("touchstart",this._onTouchstart,ls))}}return n.\u0275fac=function(e){return new(e||n)(m(Re),m(z),m(U),m(FM,8))},n.\u0275prov=x({factory:function(){return new n(m(Re),m(z),m(U),m(FM,8))},token:n,providedIn:"root"}),n})();const VM=new A("liveAnnouncerElement",{providedIn:"root",factory:function rH(){return null}}),BM=new A("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let HM=(()=>{class n{constructor(e,i,r,o){this._ngZone=i,this._defaultOptions=o,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){const r=this._defaultOptions;let o,s;return 1===i.length&&"number"==typeof i[0]?s=i[0]:[o,s]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),null==s&&r&&(s=r.duration),this._liveElement.setAttribute("aria-live",o),this._ngZone.runOutsideAngular(()=>new Promise(a=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,a(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o{class n{constructor(e,i,r,o,s){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new j,this._rootNodeFocusAndBlurListener=a=>{const l=Wr(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let u=l;u;u=u.parentElement)c.call(this,a,u)},this._document=o,this._detectionMode=(null==s?void 0:s.detectionMode)||0}monitor(e,i=!1){const r=Fi(e);if(!this._platform.isBrowser||1!==r.nodeType)return B(null);const o=function NB(n){if(function FB(){if(null==Fg){const n="undefined"!=typeof document?document.head:null;Fg=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Fg}()){const t=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new j,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Fi(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const o=Fi(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(e,i,r){r?e.classList.add(i):e.classList.remove(i)}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,i){this._toggleClass(e,"cdk-focused",!!i),this._toggleClass(e,"cdk-touch-focused","touch"===i),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===i),this._toggleClass(e,"cdk-mouse-focused","mouse"===i),this._toggleClass(e,"cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),o=Wr(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r.subject,null))}_emitOrigin(e,i){this._ngZone.run(()=>e.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,xu),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,xu)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ce(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,xu),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,xu),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}}return n.\u0275fac=function(e){return new(e||n)(m(z),m(Re),m(LM),m(U,8),m(jM,8))},n.\u0275prov=x({factory:function(){return new n(m(z),m(Re),m(LM),m(U,8),m(jM,8))},token:n,providedIn:"root"}),n})();const UM="cdk-high-contrast-black-on-white",$M="cdk-high-contrast-white-on-black",jg="cdk-high-contrast-active";let zM=(()=>{class n{constructor(e,i){this._platform=e,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),o){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(jg),e.remove(UM),e.remove($M),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(e.add(jg),e.add(UM)):2===i&&(e.add(jg),e.add($M))}}}return n.\u0275fac=function(e){return new(e||n)(m(Re),m(U))},n.\u0275prov=x({factory:function(){return new n(m(Re),m(U))},token:n,providedIn:"root"}),n})(),oH=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(m(zM))},n.\u0275mod=te({type:n}),n.\u0275inj=J({imports:[[qa,Vg]]}),n})();const GM=new A("cdk-dir-doc",{providedIn:"root",factory:function sH(){return er(U)}});let Tn=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new X,e){const r=e.documentElement?e.documentElement.dir:null,o=(e.body?e.body.dir:null)||r;this.value="ltr"===o||"rtl"===o?o:"ltr"}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(m(GM,8))},n.\u0275prov=x({factory:function(){return new n(m(GM,8))},token:n,providedIn:"root"}),n})(),Za=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=te({type:n}),n.\u0275inj=J({}),n})();const WM=new rr("12.2.13");class qM{}const Ni="*";function Gn(n,t){return{type:7,name:n,definitions:t,options:{}}}function Lt(n,t=null){return{type:4,styles:t,timings:n}}function YM(n,t=null){return{type:2,steps:n,options:t}}function fe(n){return{type:6,styles:n,offset:null}}function vt(n,t,e){return{type:0,name:n,styles:t,options:e}}function Xa(n){return{type:5,steps:n}}function Mt(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function KM(n=null){return{type:9,options:n}}function QM(n,t,e=null){return{type:11,selector:n,animation:t,options:e}}function ZM(n){Promise.resolve(null).then(n)}class Ja{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],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._onStartFns.push(t)}onDone(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(){ZM(()=>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}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 XM{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?ZM(()=>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}}const ye=!1;function JM(n){return new N(3e3,ye)}function jH(){return"undefined"!=typeof window&&void 0!==window.document}function $g(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function pr(n){switch(n.length){case 0:return new Ja;case 1:return n[0];default:return new XM(n)}}function eS(n,t,e,i,r={},o={}){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.offset,h=d==l,f=h&&c||{};Object.keys(u).forEach(g=>{let _=g,C=u[g];if("offset"!==g)switch(_=t.normalizePropertyName(_,s),C){case"!":C=r[g];break;case Ni:C=o[g];break;default:C=t.normalizeStyleValue(g,_,C,s)}f[_]=C}),h||a.push(f),c=f,l=d}),s.length)throw function IH(n){return new N(3502,ye)}();return a}function zg(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&Gg(e,"start",n)));break;case"done":n.onDone(()=>i(e&&Gg(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&Gg(e,"destroy",n)))}}function Gg(n,t,e){const i=e.totalTime,o=Wg(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,null==i?n.totalTime:i,!!e.disabled),s=n._data;return null!=s&&(o._data=s),o}function Wg(n,t,e,i,r="",o=0,s){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function un(n,t,e){let i;return n instanceof Map?(i=n.get(t),i||n.set(t,i=e)):(i=n[t],i||(i=n[t]=e)),i}function tS(n){const t=n.indexOf(":");return[n.substring(1,t),n.substr(t+1)]}let qg=(n,t)=>!1,nS=(n,t,e)=>[],iS=null;function Yg(n){const t=n.parentNode||n.host;return t===iS?null:t}($g()||"undefined"!=typeof Element)&&(jH()?(iS=(()=>document.documentElement)(),qg=(n,t)=>{for(;t;){if(t===n)return!0;t=Yg(t)}return!1}):qg=(n,t)=>n.contains(t),nS=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let qr=null,rS=!1;function oS(n){qr||(qr=function $H(){return"undefined"!=typeof document?document.body:null}()||{},rS=!!qr.style&&"WebkitAppearance"in qr.style);let t=!0;return qr.style&&!function UH(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in qr.style,!t&&rS&&(t="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in qr.style)),t}const sS=qg,aS=nS;let lS=(()=>{class n{validateStyleProperty(e){return oS(e)}matchesElement(e,i){return!1}containsElement(e,i){return sS(e,i)}getParentElement(e){return Yg(e)}query(e,i,r){return aS(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new Ja(r,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),Kg=(()=>{class n{}return n.NOOP=new lS,n})();const Qg="ng-enter",Iu="ng-leave",ku="ng-trigger",Ru=".ng-trigger",uS="ng-animating",Zg=".ng-animating";function Yr(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Xg(parseFloat(t[1]),t[2])}function Xg(n,t){return"s"===t?1e3*n:n}function Ou(n,t,e){return n.hasOwnProperty("duration")?n:function WH(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(JM()),{duration:0,delay:0,easing:""};r=Xg(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=Xg(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 lH(){return new N(3100,ye)}()),a=!0),o<0&&(t.push(function cH(){return new N(3101,ye)}()),a=!0),a&&t.splice(l,0,JM())}return{duration:r,delay:o,easing:s}}(n,t,e)}function cs(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function gr(n,t,e={}){if(t)for(let i in n)e[i]=n[i];else cs(n,e);return e}function hS(n,t,e){return e?t+":"+e+";":""}function fS(n){let t="";for(let e=0;e{const r=em(i);e&&!e.hasOwnProperty(i)&&(e[i]=n.style[r]),n.style[r]=t[i]}),$g()&&fS(n))}function Kr(n,t){n.style&&(Object.keys(t).forEach(e=>{const i=em(e);n.style[i]=""}),$g()&&fS(n))}function el(n){return Array.isArray(n)?1==n.length?n[0]:YM(n):n}const Jg=new RegExp("{{\\s*(.+?)\\s*}}","g");function pS(n){let t=[];if("string"==typeof n){let e;for(;e=Jg.exec(n);)t.push(e[1]);Jg.lastIndex=0}return t}function Pu(n,t,e){const i=n.toString(),r=i.replace(Jg,(o,s)=>{let a=t[s];return t.hasOwnProperty(s)||(e.push(function dH(n){return new N(3003,ye)}()),a=""),a.toString()});return r==i?n:r}function Fu(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const YH=/-+([a-z0-9])/g;function em(n){return n.replace(YH,(...t)=>t[1].toUpperCase())}function KH(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function dn(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 hH(n){return new N(3004,ye)}()}}function gS(n,t){return window.getComputedStyle(n)[t]}function tj(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function nj(n,t,e){if(":"==n[0]){const l=function ij(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 MH(n){return new N(3015,ye)}()),t;const r=i[1],o=i[2],s=i[3];t.push(mS(r,s));"<"==o[0]&&!("*"==r&&"*"==s)&&t.push(mS(s,r))}(i,e,t)):e.push(n),e}const Bu=new Set(["true","1"]),Hu=new Set(["false","0"]);function mS(n,t){const e=Bu.has(n)||Hu.has(n),i=Bu.has(t)||Hu.has(t);return(r,o)=>{let s="*"==n||n==r,a="*"==t||t==o;return!s&&e&&"boolean"==typeof r&&(s=r?Bu.has(n):Hu.has(n)),!a&&i&&"boolean"==typeof o&&(a=o?Bu.has(t):Hu.has(t)),s&&a}}const rj=new RegExp("s*:selfs*,?","g");function tm(n,t,e,i){return new oj(n).build(t,e,i)}class oj{constructor(t){this._driver=t}build(t,e,i){const r=new lj(e);this._resetContextStyleTimingState(r);const o=dn(this,el(t),r);return r.unsupportedCSSPropertiesFound.size&&r.unsupportedCSSPropertiesFound.keys(),o}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},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 pH(){return new N(3006,ye)}()),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 gH(){return new N(3007,ye)}())}),{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=>{if(ju(a)){const l=a;Object.keys(l).forEach(c=>{pS(l[c]).forEach(u=>{s.hasOwnProperty(u)||o.add(u)})})}}),o.size&&(Fu(o.values()),e.errors.push(function mH(n,t){return new N(3008,ye)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=dn(this,el(t.animation),e);return{type:1,matchers:tj(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Qr(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>dn(this,i,e)),options:Qr(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const o=t.steps.map(s=>{e.currentTime=i;const a=dn(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:Qr(t.options)}}visitAnimate(t,e){const i=function uj(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return nm(Ou(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=nm(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=Ou(e,t);return nm(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,o=t.styles?t.styles:fe({});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=fe(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=[];Array.isArray(t.styles)?t.styles.forEach(s=>{"string"==typeof s?s==Ni?i.push(s):e.errors.push(function _H(n){return new N(3002,ye)}()):i.push(s)}):i.push(t.styles);let r=!1,o=null;return i.forEach(s=>{if(ju(s)){const a=s,l=a.easing;if(l&&(o=l,delete a.easing),!r)for(let c in a)if(a[c].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:i,easing:o,offset:t.offset,containsDynamicStyles:r,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&&Object.keys(s).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete s[a],void e.unsupportedCSSPropertiesFound.add(a);const l=e.collectedStyles[e.currentQuerySelector],c=l[a];let u=!0;c&&(o!=r&&o>=c.startTime&&r<=c.endTime&&(e.errors.push(function yH(n,t,e,i,r){return new N(3010,ye)}()),u=!1),o=c.startTime),u&&(l[a]={startTime:o,endTime:r}),e.options&&function qH(n,t,e){const i=t.params||{},r=pS(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function uH(n){return new N(3001,ye)}())})}(s[a],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function vH(){return new N(3011,ye)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=t.steps.map(E=>{const v=this._makeStyleAst(E,e);let I=null!=v.offset?v.offset:function cj(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(ju(e)&&e.hasOwnProperty("offset")){const i=e;t=parseFloat(i.offset),delete i.offset}});else if(ju(n)&&n.hasOwnProperty("offset")){const e=n;t=parseFloat(e.offset),delete e.offset}return t}(v.styles),V=0;return null!=I&&(o++,V=v.offset=I),l=l||V<0||V>1,a=a||V0&&o{const I=h>0?v==f?1:h*v:s[v],V=I*C;e.currentTime=g+_.delay+V,_.duration=V,this._validateStyleAst(E,e),E.offset=I,i.styles.push(E)}),i}visitReference(t,e){return{type:8,animation:dn(this,el(t.animation),e),options:Qr(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Qr(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Qr(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[o,s]=function sj(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(rj,"")),n=n.replace(/@\*/g,Ru).replace(/@\w+/g,e=>Ru+"-"+e.substr(1)).replace(/:animating/g,Zg),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+o:o,un(e.collectedStyles,e.currentQuerySelector,{});const a=dn(this,el(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:Qr(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function DH(){return new N(3013,ye)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:Ou(t.timings,e.errors,!0);return{type:12,animation:dn(this,el(t.animation),e),timings:i,options:null}}}class lj{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={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function ju(n){return!Array.isArray(n)&&"object"==typeof n}function Qr(n){return n?(n=cs(n)).params&&(n.params=function aj(n){return n?cs(n):null}(n.params)):n={},n}function nm(n,t,e){return{duration:n,delay:t,easing:e}}function im(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 Uu{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 fj=new RegExp(":enter","g"),gj=new RegExp(":leave","g");function rm(n,t,e,i,r,o={},s={},a,l,c=[]){return(new mj).buildKeyframes(n,t,e,i,r,o,s,a,l,c)}class mj{buildKeyframes(t,e,i,r,o,s,a,l,c,u=[]){c=c||new Uu;const d=new om(t,e,c,r,o,u,[]);d.options=l,d.currentTimeline.setStyles([s],null,d.errors,l),dn(this,i,d);const h=d.timelines.filter(f=>f.containsAnimation());if(Object.keys(a).length){let f;for(let g=h.length-1;g>=0;g--){const _=h[g];if(_.element===e){f=_;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,l)}return h.length?h.map(f=>f.buildKeyframes()):[im(e,[],[],[],0,0,"",!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.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?Yr(i.duration):null,a=null!=i.delay?Yr(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),dn(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=$u);const s=Yr(o.delay);r.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>dn(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?Yr(t.options.delay):0;t.steps.forEach(s=>{const a=e.createSubContext(t.options);o&&a.delayNextStep(o),dn(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 Ou(e.params?Pu(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.getCurrentStyleProperties().length&&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?Yr(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=$u);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),dn(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;dn(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const $u={};class om{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=$u,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new zu(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=Yr(i.duration)),null!=i.delay&&(r.delay=Yr(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]=Pu(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 om(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=$u,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},o=new _j(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(fj,"."+this._enterClassName)).replace(gj,"."+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 EH(n){return new N(3014,ye)}()),a}}class zu{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),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.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new zu(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=Object.create(this._backFill,{}),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[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Ni,this._currentKeyframe[e]=Ni}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&(this._previousKeyframe.easing=e);const o=r&&r.params||{},s=function yj(n,t){const e={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(t),i.forEach(o=>{e[o]=Ni})):gr(r,!1,e)}),e}(t,this._globalTimelineStyles);Object.keys(s).forEach(a=>{const l=Pu(s[a],o,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:Ni),this._updateStyle(a,l)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyframe[i]=t[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[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){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],r=t._styleSummary[e];(!i||r.time>i.time)&&this._updateStyle(e,r.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=gr(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?t.add(u):d==Ni&&e.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const o=t.size?Fu(t.values()):[],s=e.size?Fu(e.values()):[];if(i){const a=r[0],l=cs(a);a.offset=0,l.offset=1,r=[a,l]}return im(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class _j extends zu{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=gr(t[0],!1);l.offset=0,o.push(l);const c=gr(t[0],!1);c.offset=vS(a),o.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let h=gr(t[d],!1);h.offset=vS((e+h.offset*i)/s),o.push(h)}i=s,e=0,r="",t=o}return im(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function vS(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class sm{}class vj extends sm{normalizePropertyName(t,e){return em(t)}normalizeStyleValue(t,e,i,r){let o="";const s=i.toString().trim();if(bj[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 fH(n,t){return new N(3005,ye)}())}return s+o}}const bj=(()=>function Cj(n){const t={};return n.forEach(e=>t[e]=!0),t}("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".split(",")))();function bS(n,t,e,i,r,o,s,a,l,c,u,d,h){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:h}}const am={};class CS{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function wj(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){const r=this._stateStyles["*"],o=this._stateStyles[t],s=r?r.buildStyles(e,i):{};return o?o.buildStyles(e,i):s}build(t,e,i,r,o,s,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||am,g=this.buildStyles(i,a&&a.params||am,d),_=l&&l.params||am,C=this.buildStyles(r,_,d),E=new Set,v=new Map,I=new Map,V="void"===r,de={params:Object.assign(Object.assign({},h),_)},Ye=u?[]:rm(t,e,this.ast.animation,o,s,g,C,de,c,d);let et=0;if(Ye.forEach(pn=>{et=Math.max(pn.duration+pn.delay,et)}),d.length)return bS(e,this._triggerName,i,r,V,g,C,[],[],v,I,et,d);Ye.forEach(pn=>{const gn=pn.element,Vs=un(v,gn,{});pn.preStyleProps.forEach(Yn=>Vs[Yn]=!0);const Gi=un(I,gn,{});pn.postStyleProps.forEach(Yn=>Gi[Yn]=!0),gn!==e&&E.add(gn)});const fn=Fu(E.values());return bS(e,this._triggerName,i,r,V,g,C,Ye,fn,v,I,et)}}class Dj{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i={},r=cs(this.defaultParams);return Object.keys(t).forEach(o=>{const s=t[o];null!=s&&(r[o]=s)}),this.styles.styles.forEach(o=>{if("string"!=typeof o){const s=o;Object.keys(s).forEach(a=>{let l=s[a];l.length>1&&(l=Pu(l,r,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),i[c]=l})}}),i}}class Mj{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(r=>{this.states[r.name]=new Dj(r.style,r.options&&r.options.params||{},i)}),wS(this.states,"true","1"),wS(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new CS(t,r,this.states))}),this.fallbackTransition=function Sj(n,t,e){return new CS(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 wS(n,t,e){n.hasOwnProperty(t)?n.hasOwnProperty(e)||(n[e]=n[t]):n.hasOwnProperty(e)&&(n[t]=n[e])}const Tj=new Uu;class xj{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],o=tm(this._driver,e,i,[]);if(i.length)throw function kH(n){return new N(3503,ye)}();this._animations[t]=o}_buildPlayer(t,e,i){const r=t.element,o=eS(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[t];let s;const a=new Map;if(o?(s=rm(this._driver,e,o,Qg,Iu,{},{},i,Tj,r),s.forEach(u=>{const d=un(a,u.element,{});u.postStyleProps.forEach(h=>d[h]=null)})):(r.push(function RH(){return new N(3300,ye)}()),s=[]),r.length)throw function OH(n){return new N(3504,ye)}();a.forEach((u,d)=>{Object.keys(u).forEach(h=>{u[h]=this._driver.computeStyle(d,h,Ni)})});const c=pr(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw function PH(n){return new N(3301,ye)}();return e}listen(t,e,i,r){const o=Wg(e,"","","");return zg(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 DS="ng-animate-queued",lm="ng-animate-disabled",Oj=[],ES={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Pj={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},xn="__ng_removed";class cm{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function Vj(n){return null!=n?n:null}(i?t.value:t),i){const o=cs(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return 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 tl="void",um=new cm(tl);class Fj{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,An(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.hasOwnProperty(e))throw function FH(n,t){return new N(3302,ye)}();if(null==i||0==i.length)throw function NH(n){return new N(3303,ye)}();if(!function Bj(n){return"start"==n||"done"==n}(i))throw function LH(n,t){return new N(3400,ye)}();const o=un(this._elementListeners,t,[]),s={name:e,phase:i,callback:r};o.push(s);const a=un(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(An(t,ku),An(t,ku+"-"+e),a[e]=um),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw function VH(n){return new N(3401,ye)}();return e}trigger(t,e,i,r=!0){const o=this._getTrigger(e),s=new dm(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(An(t,ku),An(t,ku+"-"+e),this._engine.statesByElement.set(t,a={}));let l=a[e];const c=new cm(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[e]=c,l||(l=um),c.value!==tl&&l.value===c.value){if(!function Uj(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r{Kr(t,C),hi(t,E)})}return}const h=un(this._engine.playersByElement,t,[]);h.forEach(_=>{_.namespaceId==this.id&&_.triggerName==e&&_.queued&&_.destroy()});let f=o.matchTransition(l.value,c.value,t,c.params),g=!1;if(!f){if(!r)return;f=o.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:g}),g||(An(t,DS),s.onStart(()=>{us(t,DS)})),s.onDone(()=>{let _=this.players.indexOf(s);_>=0&&this.players.splice(_,1);const C=this._engine.playersByElement.get(t);if(C){let E=C.indexOf(s);E>=0&&C.splice(E,1)}}),this.players.push(s),h.push(s),s}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[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,Ru,!0);i.forEach(r=>{if(r[xn])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(Object.keys(o).forEach(l=>{if(s.set(l,o[l].value),this._triggers[l]){const c=this.trigger(t,l,tl,r);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,s),i&&pr(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[s].fallbackTransition,c=i[s]||um,u=new cm(tl),d=new dm(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[xn];(!o||o===ES)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){An(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=Wg(o,i.triggerName,i.fromState.value,i.toState.value);l._data=t,zg(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 Nj{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)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}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 Fj(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,o=i.length-1;if(o>=0){let s=!1;if(void 0!==this.driver.getParentElement){let 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)}}else for(let a=o;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,e)){i.splice(a+1,0,t),s=!0;break}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){const r=Object.keys(i);for(let o=0;o=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),An(t,lm)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),us(t,lm))}removeNode(t,e,i,r){if(Gu(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[xn]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,e,i,r,o){return Gu(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,Ru,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,Zg,!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 pr(this.players).onDone(()=>t());t()})}processLeaveNode(t){var e;const i=t[xn];if(i&&i.setForRemoval){if(t[xn]=ES,i.namespaceId){this.destroyInnerAnimations(t);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,i.setForRemoval)}(null===(e=t.classList)||void 0===e?void 0:e.contains(lm))&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!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?pr(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function BH(n){return new N(3402,ye)}()}_flushAnimations(t,e){const i=new Uu,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(L=>{u.add(L);const G=this.driver.query(L,".ng-animate-queued",!0);for(let K=0;K{const K=Qg+_++;g.set(G,K),L.forEach(Se=>An(Se,K))});const C=[],E=new Set,v=new Set;for(let L=0;LE.add(Se)):v.add(G))}const I=new Map,V=TS(h,Array.from(E));V.forEach((L,G)=>{const K=Iu+_++;I.set(G,K),L.forEach(Se=>An(Se,K))}),t.push(()=>{f.forEach((L,G)=>{const K=g.get(G);L.forEach(Se=>us(Se,K))}),V.forEach((L,G)=>{const K=I.get(G);L.forEach(Se=>us(Se,K))}),C.forEach(L=>{this.processLeaveNode(L)})});const de=[],Ye=[];for(let L=this._namespaceList.length-1;L>=0;L--)this._namespaceList[L].drainQueuedTransitions(e).forEach(K=>{const Se=K.player,St=K.element;if(de.push(Se),this.collectedEnterElements.length){const Gt=St[xn];if(Gt&&Gt.setForMove){if(Gt.previousTriggersValues&&Gt.previousTriggersValues.has(K.triggerName)){const lo=Gt.previousTriggersValues.get(K.triggerName),Cr=this.statesByElement.get(K.element);Cr&&Cr[K.triggerName]&&(Cr[K.triggerName].value=lo)}return void Se.destroy()}}const bi=!d||!this.driver.containsElement(d,St),mn=I.get(St),br=g.get(St),tt=this._buildInstruction(K,i,br,mn,bi);if(tt.errors&&tt.errors.length)return void Ye.push(tt);if(bi)return Se.onStart(()=>Kr(St,tt.fromStyles)),Se.onDestroy(()=>hi(St,tt.toStyles)),void r.push(Se);if(K.isFallbackTransition)return Se.onStart(()=>Kr(St,tt.fromStyles)),Se.onDestroy(()=>hi(St,tt.toStyles)),void r.push(Se);const kx=[];tt.timelines.forEach(Gt=>{Gt.stretchStartingKeyframe=!0,this.disabledNodes.has(Gt.element)||kx.push(Gt)}),tt.timelines=kx,i.append(St,tt.timelines),s.push({instruction:tt,player:Se,element:St}),tt.queriedElements.forEach(Gt=>un(a,Gt,[]).push(Se)),tt.preStyleProps.forEach((Gt,lo)=>{const Cr=Object.keys(Gt);if(Cr.length){let co=l.get(lo);co||l.set(lo,co=new Set),Cr.forEach(S_=>co.add(S_))}}),tt.postStyleProps.forEach((Gt,lo)=>{const Cr=Object.keys(Gt);let co=c.get(lo);co||c.set(lo,co=new Set),Cr.forEach(S_=>co.add(S_))})});if(Ye.length){const L=[];Ye.forEach(G=>{L.push(function HH(n,t){return new N(3505,ye)}())}),de.forEach(G=>G.destroy()),this.reportError(L)}const et=new Map,fn=new Map;s.forEach(L=>{const G=L.element;i.has(G)&&(fn.set(G,G),this._beforeAnimationBuild(L.player.namespaceId,L.instruction,et))}),r.forEach(L=>{const G=L.element;this._getPreviousPlayers(G,!1,L.namespaceId,L.triggerName,null).forEach(Se=>{un(et,G,[]).push(Se),Se.destroy()})});const pn=C.filter(L=>AS(L,l,c)),gn=new Map;SS(gn,this.driver,v,c,Ni).forEach(L=>{AS(L,l,c)&&pn.push(L)});const Gi=new Map;f.forEach((L,G)=>{SS(Gi,this.driver,new Set(L),l,"!")}),pn.forEach(L=>{const G=gn.get(L),K=Gi.get(L);gn.set(L,Object.assign(Object.assign({},G),K))});const Yn=[],Bs=[],Hs={};s.forEach(L=>{const{element:G,player:K,instruction:Se}=L;if(i.has(G)){if(u.has(G))return K.onDestroy(()=>hi(G,Se.toStyles)),K.disabled=!0,K.overrideTotalTime(Se.totalTime),void r.push(K);let St=Hs;if(fn.size>1){let mn=G;const br=[];for(;mn=mn.parentNode;){const tt=fn.get(mn);if(tt){St=tt;break}br.push(mn)}br.forEach(tt=>fn.set(tt,St))}const bi=this._buildAnimation(K.namespaceId,Se,et,o,Gi,gn);if(K.setRealPlayer(bi),St===Hs)Yn.push(K);else{const mn=this.playersByElement.get(St);mn&&mn.length&&(K.parentPlayer=pr(mn)),r.push(K)}}else Kr(G,Se.fromStyles),K.onDestroy(()=>hi(G,Se.toStyles)),Bs.push(K),u.has(G)&&r.push(K)}),Bs.forEach(L=>{const G=o.get(L.element);if(G&&G.length){const K=pr(G);L.setRealPlayer(K)}}),r.forEach(L=>{L.parentPlayer?L.syncPlayerEvents(L.parentPlayer):L.destroy()});for(let L=0;L!bi.destroyed);St.length?Hj(this,G,St):this.processLeaveNode(G)}return C.length=0,Yn.forEach(L=>{this.players.push(L),L.onDone(()=>{L.destroy();const G=this.players.indexOf(L);this.players.splice(G,1)}),L.play()}),Yn}elementContainsData(t,e){let i=!1;const r=e[xn];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==tl;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=un(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(f=>{const g=f.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),f.destroy(),d.push(f)})}Kr(o,e.fromStyles)}_buildAnimation(t,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(g=>{const _=g.element;u.add(_);const C=_[xn];if(C&&C.removedBeforeQueried)return new Ja(g.duration,g.delay);const E=_!==l,v=function jj(n){const t=[];return xS(n,t),t}((i.get(_)||Oj).map(et=>et.getRealPlayer())).filter(et=>!!et.element&&et.element===_),I=o.get(_),V=s.get(_),de=eS(0,this._normalizer,0,g.keyframes,I,V),Ye=this._buildPlayer(g,de,v);if(g.subTimeline&&r&&d.add(_),E){const et=new dm(t,a,_);et.setRealPlayer(Ye),c.push(et)}return Ye});c.forEach(g=>{un(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function Lj(n,t,e){let i;if(n instanceof Map){if(i=n.get(t),i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}}else if(i=n[t],i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&delete n[t]}return i}(this.playersByQueriedElement,g.element,g))}),u.forEach(g=>An(g,uS));const f=pr(h);return f.onDestroy(()=>{u.forEach(g=>us(g,uS)),hi(l,e.toStyles)}),d.forEach(g=>{un(r,g,[]).push(f)}),f}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Ja(t.duration,t.delay)}}class dm{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Ja,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>zg(t,e,void 0,i))}),this._queuedCallbacks={},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){un(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 Gu(n){return n&&1===n.nodeType}function MS(n,t){const e=n.style.display;return n.style.display=null!=t?t:"none",e}function SS(n,t,e,i,r){const o=[];e.forEach(l=>o.push(MS(l)));const s=[];i.forEach((l,c)=>{const u={};l.forEach(d=>{const h=u[d]=t.computeStyle(c,d,r);(!h||0==h.length)&&(c[xn]=Pj,s.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>MS(l,o[a++])),s}function TS(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 An(n,t){var e;null===(e=n.classList)||void 0===e||e.add(t)}function us(n,t){var e;null===(e=n.classList)||void 0===e||e.remove(t)}function Hj(n,t,e){pr(e).onDone(()=>n.processLeaveNode(t))}function xS(n,t){for(let e=0;er.add(o)):t.set(n,i),e.delete(n),!0}class Wu{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new Nj(t,e,i),this._timelineEngine=new xj(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=tm(this._driver,o,l,[]);if(l.length)throw function AH(n,t){return new N(3404,ye)}();a=function Ej(n,t,e){return new Mj(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]=tS(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]=tS(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 zj=(()=>{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={}),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&hi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(hi(this._element,this._initialStyles),this._endStyles&&(hi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Kr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Kr(this._element,this._endStyles),this._endStyles=null),hi(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function hm(n){let t=null;const e=Object.keys(n);for(let i=0;it()),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]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(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}_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={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(i=>{"offset"!=i&&(t[i]=this._finished?e[i]:gS(this.element,i))})}this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class Wj{validateStyleProperty(t){return oS(t)}matchesElement(t,e){return!1}containsElement(t,e){return sS(t,e)}getParentElement(t){return Yg(t)}query(t,e,i){return aS(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={},u=s.filter(h=>h instanceof IS);(function QH(n,t){return 0===n||0===t})(i,r)&&u.forEach(h=>{let f=h.currentSnapshot;Object.keys(f).forEach(g=>c[g]=f[g])}),e=function ZH(n,t,e){const i=Object.keys(e);if(i.length&&t.length){let o=t[0],s=[];if(i.forEach(a=>{o.hasOwnProperty(a)||s.push(a),o[a]=e[a]}),s.length)for(var r=1;rgr(h,!1)),c);const d=function $j(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=hm(t[0]),t.length>1&&(i=hm(t[t.length-1]))):t&&(e=hm(t)),e||i?new zj(n,e,i):null}(t,e);return new IS(t,e,l,d)}}let qj=(()=>{class n extends qM{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Rn.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?YM(e):e;return kS(this._renderer,null,i,"register",[r]),new Yj(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(m(Ma),m(U))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class Yj extends class aH{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Kj(this._id,t,e||{},this._renderer)}}class Kj{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 kS(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(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function kS(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const RS="@.disabled";let Qj=(()=>{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=null==s?void 0: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 OS("",o,this.engine),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 Zj(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)(m(Ma),m(Wu),m(z))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class OS{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}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==RS?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 Zj extends OS{constructor(t,e,i,r){super(e,i,r),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==RS?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function Xj(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let o=e.substr(1),s="";return"@"!=o.charAt(0)&&([o,s]=function Jj(n){const t=n.indexOf(".");return[n.substring(0,t),n.substr(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 eU=(()=>{class n extends Wu{constructor(e,i,r){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(m(U),m(Kg),m(sm))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const mr=new A("AnimationModuleType"),PS=[{provide:qM,useClass:qj},{provide:sm,useFactory:function tU(){return new vj}},{provide:Wu,useClass:eU},{provide:Ma,useFactory:function nU(n,t,e){return new Qj(n,t,e)},deps:[Jc,Wu,z]}],FS=[{provide:Kg,useFactory:()=>new Wj},{provide:mr,useValue:"BrowserAnimations"},...PS],iU=[{provide:Kg,useClass:lS},{provide:mr,useValue:"NoopAnimations"},...PS];let rU=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?iU:FS}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=te({type:n}),n.\u0275inj=J({providers:FS,imports:[$D]}),n})();function aU(n,t){if(1&n&&re(0,"mat-pseudo-checkbox",4),2&n){const e=O();S("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function lU(n,t){if(1&n&&(y(0,"span",5),k(1),b()),2&n){const e=O();w(1),At("(",e.group.label,")")}}const cU=["*"];let uU=(()=>{class n{}return n.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",n.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",n.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",n.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",n})(),dU=(()=>{class n{}return n.COMPLEX="375ms",n.ENTERING="225ms",n.EXITING="195ms",n})();const NS=new rr("12.2.13"),fU=new A("mat-sanity-checks",{providedIn:"root",factory:function hU(){return!0}});let Xr,Ge=(()=>{class n{constructor(e,i,r){this._hasDoneGlobalChecks=!1,this._document=r,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=i,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!(!function iN(){return tD=!0,eD}()||Ng())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}_checkDoctypeIsDefined(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);const i=getComputedStyle(e);i&&"none"!==i.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&NS.full!==WM.full&&console.warn("The Angular Material version ("+NS.full+") does not match the Angular CDK version ("+WM.full+").\nPlease ensure the versions of these two packages exactly match.")}}return n.\u0275fac=function(e){return new(e||n)(m(zM),m(fU,8),m(U))},n.\u0275mod=te({type:n}),n.\u0275inj=J({imports:[[Za],Za]}),n})();function Zr(n){return class extends n{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Me(t)}}}function Yu(n,t){return class extends n{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function fm(n){return class extends n{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Me(t)}}}function LS(n,t=0){return class extends n{constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?cn(e):this.defaultTabIndex}}}function VS(n){return class extends n{constructor(...t){super(...t),this.stateChanges=new j,this.errorState=!1}updateErrorState(){const t=this.errorState,o=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);o!==t&&(this.errorState=o,this.stateChanges.next())}}}function BS(n){return class extends n{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new be(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}try{Xr="undefined"!=typeof Intl}catch(n){Xr=!1}let pm=(()=>{class n{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({factory:function(){return new n},token:n,providedIn:"root"}),n})();class MU{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const jS={enterDuration:225,exitDuration:150},gm=Ka({passive:!0}),US=["mousedown","touchstart"],$S=["mouseup","mouseleave","touchend","touchcancel"];class TU{constructor(t,e,i,r){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Fi(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},jS),i.animation);i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const s=i.radius||function AU(n,t,e){const i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),a=t-r.left,l=e-r.top,c=o.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-s+"px",u.style.top=l-s+"px",u.style.height=2*s+"px",u.style.width=2*s+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function xU(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const d=new MU(this,u,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const h=d===this._mostRecentTransientRipple;d.state=1,!i.persistent&&(!h||!this._isPointerDown)&&d.fadeOut()},c),d}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,r=Object.assign(Object.assign({},jS),t.config.animation);i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=Fi(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(US))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents($S),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=OM(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(e=>{this._triggerElement.addEventListener(e,this,gm)})})}_removeTriggerEvents(){this._triggerElement&&(US.forEach(t=>{this._triggerElement.removeEventListener(t,this,gm)}),this._pointerUpEventsRegistered&&$S.forEach(t=>{this._triggerElement.removeEventListener(t,this,gm)}))}}const IU=new A("mat-ripple-global-options");let ds=(()=>{class n{constructor(e,i,r,o,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new TU(this,i,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return n.\u0275fac=function(e){return new(e||n)(p(W),p(z),p(Re),p(IU,8),p(mr,8))},n.\u0275dir=D({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&Ue("mat-ripple-unbounded",i.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),n})(),mm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=te({type:n}),n.\u0275inj=J({imports:[[Ge,qa],Ge]}),n})(),kU=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(p(mr,8))},n.\u0275cmp=Te({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,i){2&e&&Ue("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,i){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),n})(),RU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=te({type:n}),n.\u0275inj=J({imports:[[Ge]]}),n})();const _m=new A("MAT_OPTION_PARENT_COMPONENT"),OU=Zr(class{});let PU=0,zS=(()=>{class n extends OU{constructor(e){var i;super(),this._labelId="mat-optgroup-label-"+PU++,this._inert=null!==(i=null==e?void 0:e.inertGroups)&&void 0!==i&&i}}return n.\u0275fac=function(e){return new(e||n)(p(_m,8))},n.\u0275dir=D({type:n,inputs:{label:"label"},features:[R]}),n})();const ym=new A("MatOptgroup");let FU=0;class NU{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let LU=(()=>{class n{constructor(e,i,r,o){this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+FU++,this.onSelectionChange=new X,this._stateChanges=new j}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=Me(e)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,i){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!zr(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new NU(this,e))}}return n.\u0275fac=function(e){return new(e||n)(p(W),p(It),p(void 0),p(zS))},n.\u0275dir=D({type:n,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),vm=(()=>{class n extends LU{constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(p(W),p(It),p(_m,8),p(ym,8))},n.\u0275cmp=Te({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,i){1&e&&H("click",function(){return i._selectViaInteraction()})("keydown",function(o){return i._handleKeydown(o)}),2&e&&(Pr("id",i.id),ge("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),Ue("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[R],ngContentSelectors:cU,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,i){1&e&&(ln(),M(0,aU,1,2,"mat-pseudo-checkbox",0),y(1,"span",1),qe(2),b(),M(3,lU,2,1,"span",2),re(4,"div",3)),2&e&&(S("ngIf",i.multiple),w(3),S("ngIf",i.group&&i.group._inert),w(1),S("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},directives:[ar,kU,ds],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),n})();function GS(n,t,e){if(e.length){let i=t.toArray(),r=e.toArray(),o=0;for(let s=0;s{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=te({type:n}),n.\u0275inj=J({imports:[[mm,jr,Ge,RU]]}),n})();const qS=["mat-button",""],YS=["*"],KS=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",HU=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],jU=Yu(Zr(fm(class{constructor(n){this._elementRef=n}})));let bm=(()=>{class n extends jU{constructor(e,i,r){super(e),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const o of HU)this._hasHostAttributes(o)&&this._getHostElement().classList.add(o);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(e){return new(e||n)(p(W),p(fr),p(mr,8))},n.\u0275cmp=Te({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,i){if(1&e&&at(ds,5),2&e){let r;oe(r=se())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(ge("disabled",i.disabled||null),Ue("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[R],attrs:qS,ngContentSelectors:YS,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(ln(),y(0,"span",0),qe(1),b(),re(2,"span",1)(3,"span",2)),2&e&&(w(2),Ue("mat-button-ripple-round",i.isRoundButton||i.isIconButton),S("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[ds],styles:[KS],encapsulation:2,changeDetection:0}),n})(),Cm=(()=>{class n extends bm{constructor(e,i,r){super(i,e,r)}_haltDisabledEvents(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}}return n.\u0275fac=function(e){return new(e||n)(p(fr),p(W),p(mr,8))},n.\u0275cmp=Te({type:n,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(e,i){1&e&&H("click",function(o){return i._haltDisabledEvents(o)}),2&e&&(ge("tabindex",i.disabled?-1:i.tabIndex||0)("disabled",i.disabled||null)("aria-disabled",i.disabled.toString()),Ue("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[R],attrs:qS,ngContentSelectors:YS,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(ln(),y(0,"span",0),qe(1),b(),re(2,"span",1)(3,"span",2)),2&e&&(w(2),Ue("mat-button-ripple-round",i.isRoundButton||i.isIconButton),S("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[ds],styles:[KS],encapsulation:2,changeDetection:0}),n})(),QS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=te({type:n}),n.\u0275inj=J({imports:[[mm,Ge],Ge]}),n})();function il(n,t,e,i){return Wi(e)&&(i=e,e=void 0),i?il(n,t,e).pipe(Q(r=>uo(r)?i(...r):i(r))):new be(r=>{ZS(n,t,function o(s){r.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},r,e)})}function ZS(n,t,e,i,r){let o;if(function zU(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 $U(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 UU(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;s0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(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&&(cancelAnimationFrame(e),t.scheduled=void 0)}});let YU=1;const KU=Promise.resolve(),Qu={};function XS(n){return n in Qu&&(delete Qu[n],!0)}const JS={setImmediate(n){const t=YU++;return Qu[t]=!0,KU.then(()=>XS(t)&&n()),t},clearImmediate(n){XS(n)}};new class ZU extends zn{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=JS.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&&(JS.clearImmediate(e),t.scheduled=void 0)}});function rl(n){return!!n&&(n instanceof be||"function"==typeof n.lift&&"function"==typeof n.subscribe)}class e3{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new t3(t,this.durationSelector))}}class t3 extends po{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:r}=this;e=r(t)}catch(r){return this.destination.error(r)}const i=go(e,new fo(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Zu(n,t=Cg){return function JU(n){return function(e){return e.lift(new e3(n))}}(()=>XE(n,t))}function Xu(...n){return function n3(){return $s(1)}()(B(...n))}function Wn(...n){const t=n[n.length-1];return ho(t)?(n.pop(),e=>Xu(n,e,t)):e=>Xu(n,e)}class i3{call(t,e){return e.subscribe(new r3(t))}}class r3 extends Oe{constructor(t){super(t),this.hasPrev=!1}_next(t){let e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}function qn(n,t){return"function"==typeof t?e=>e.pipe(qn((i,r)=>dt(n(i,r)).pipe(Q((o,s)=>t(i,o,r,s))))):e=>e.lift(new o3(n))}class o3{constructor(t){this.project=t}call(t,e){return e.subscribe(new s3(t,this.project))}}class s3 extends po{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 fo(this),r=this.destination;r.add(i),this.innerSubscription=go(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)}}function hs(n,t,e){let i;return i=n&&"object"==typeof n?n:{bufferSize:n,windowTime:t,refCount:!1,scheduler:e},r=>r.lift(function a3({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 _u(n,t,i),d=r.subscribe(this),s=u.subscribe({next(h){r.next(h)},error(h){a=!0,r.error(h)},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))}function Ju(n){return n&&"function"==typeof n.connect}class t0{applyChanges(t,e,i,r,o){t.forEachOperation((s,a,l)=>{let c,u;if(null==s.previousIndex){const d=i(s,a,l);c=e.createEmbeddedView(d.templateRef,d.context,d.index),u=1}else null==l?(e.remove(a),u=3):(c=e.get(a),e.move(c,l),u=2);o&&o({context:null==c?void 0:c.context,operation:u,record:s})})}detach(){}}class u3{constructor(t=!1,e,i=!0){this._multiple=t,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new j,e&&e.length&&(t?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}const Jr=new A("_ViewRepeater");let fs=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new j,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new be(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(Zu(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):B()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(mt(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Fi(i),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>il(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(m(z),m(Re),m(U,8))},n.\u0275prov=x({factory:function(){return new n(m(z),m(Re),m(U,8))},token:n,providedIn:"root"}),n})(),eo=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new j,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Zu(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(m(Re),m(z),m(U,8))},n.\u0275prov=x({factory:function(){return new n(m(Re),m(z),m(U,8))},token:n,providedIn:"root"}),n})(),ed=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=te({type:n}),n.\u0275inj=J({}),n})(),Dm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=te({type:n}),n.\u0275inj=J({imports:[[Za,qa,ed],Za,ed]}),n})();class Em{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class td extends Em{constructor(t,e,i,r){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r}}class nd extends Em{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class b3 extends Em{constructor(t){super(),this.element=t instanceof W?t.nativeElement:t}}class Mm{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof td?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof nd?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof b3?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class C3 extends Mm{constructor(t,e,i,r,o){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=s=>{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(t.injector||this._defaultInjector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=t,i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let id=(()=>{class n extends Mm{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new X,this.attachDomPortal=o=>{const s=o.element,a=this._document.createComment("dom-portal");o.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),s=i.createComponent(o,i.length,e.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(p(Nr),p(st),p(U))},n.\u0275dir=D({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[R]}),n})(),a0=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=te({type:n}),n.\u0275inj=J({}),n})();class D3{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new E3(t,this.predicate,this.inclusive))}}class E3 extends Oe{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}const l0=wM();class M3{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=yt(-this._previousScrollPosition.left),t.style.top=yt(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.style,r=this._document.body.style,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),l0&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),l0&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class S3{constructor(t,e,i,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class c0{enable(){}disable(){}attach(){}}function Sm(n,t){return t.some(e=>n.bottome.bottom||n.righte.right)}function u0(n,t){return t.some(e=>n.tope.bottom||n.lefte.right)}class T3{constructor(t,e,i,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();Sm(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let x3=(()=>{class n{constructor(e,i,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new c0,this.close=s=>new S3(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new M3(this._viewportRuler,this._document),this.reposition=s=>new T3(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}}return n.\u0275fac=function(e){return new(e||n)(m(fs),m(eo),m(z),m(U))},n.\u0275prov=x({factory:function(){return new n(m(fs),m(eo),m(z),m(U))},token:n,providedIn:"root"}),n})();class Tm{constructor(t){if(this.scrollStrategy=new c0,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class A3{constructor(t,e,i,r,o){this.offsetX=i,this.offsetY=r,this.panelClass=o,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class I3{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let d0=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(m(U))},n.\u0275prov=x({factory:function(){return new n(m(U))},token:n,providedIn:"root"}),n})(),k3=(()=>{class n extends d0{constructor(e){super(e),this._keydownListener=i=>{const r=this._attachedOverlays;for(let o=r.length-1;o>-1;o--)if(r[o]._keydownEvents.observers.length>0){r[o]._keydownEvents.next(i);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(m(U))},n.\u0275prov=x({factory:function(){return new n(m(U))},token:n,providedIn:"root"}),n})(),R3=(()=>{class n extends d0{constructor(e,i){super(e),this._platform=i,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=Wr(r)},this._clickListener=r=>{const o=Wr(r),s="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:o;this._pointerDownEventTarget=null;const a=this._attachedOverlays.slice();for(let l=a.length-1;l>-1;l--){const c=a[l];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(o)||c.overlayElement.contains(s))break;c._outsidePointerEvents.next(r)}}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return n.\u0275fac=function(e){return new(e||n)(m(U),m(Re))},n.\u0275prov=x({factory:function(){return new n(m(U),m(Re))},token:n,providedIn:"root"}),n})(),ol=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Ng()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;othis._backdropClick.next(u),this._keydownEvents=new j,this._outsidePointerEvents=new j,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(lt(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=yt(this._config.width),t.height=yt(this._config.height),t.minWidth=yt(this._config.minWidth),t.minHeight=yt(this._config.minHeight),t.maxWidth=yt(this._config.maxWidth),t.maxHeight=yt(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(!t)return;let e;const i=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",i),this._disposeBackdrop(t)),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",i)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const r=t.classList;Du(e).forEach(o=>{o&&(i?r.add(o):r.remove(o))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Ce(Dr(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.parentNode&&t.parentNode.removeChild(t),this._backdropElement===t&&(this._backdropElement=null))}}const h0="cdk-overlay-connected-position-bounding-box",P3=/([A-Za-z%]+)$/;class f0{constructor(t,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new j,this._resizeSubscription=Ee.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(h0),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,r=[];let o;for(let s of this._preferredPositions){let a=this._getOriginPoint(t,s),l=this._getOverlayPoint(a,e,s),c=this._getOverlayFit(l,e,i,s);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,a);this._canFitWithFlexibleDimensions(c,l,i)?r.push({position:s,origin:a,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(a,s)}):(!o||o.overlayFit.visibleAreaa&&(a=c,s=l)}return this._isPushed=!1,void this._applyPosition(s.position,s.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&to(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(h0),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,r;if("center"==e.originX)i=t.left+t.width/2;else{const o=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;i="start"==e.originX?o:s}return r="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:r}}_getOverlayPoint(t,e,i){let r,o;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+o}}_getOverlayFit(t,e,i,r){const o=g0(e);let{x:s,y:a}=t,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(s+=l),c&&(a+=c);let h=0-a,f=a+o.height-i.height,g=this._subtractOverflows(o.width,0-s,s+o.width-i.width),_=this._subtractOverflows(o.height,h,f),C=g*_;return{visibleArea:C,isCompletelyWithinViewport:o.width*o.height===C,fitsInViewportVertically:_===o.height,fitsInViewportHorizontally:g==o.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,o=i.right-e.x,s=p0(this._overlayRef.getConfig().minHeight),a=p0(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportHorizontally||null!=a&&a<=o;return(t.fitsInViewportVertically||null!=s&&s<=r)&&c}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=g0(e),o=this._viewportRect,s=Math.max(t.x+r.width-o.width,0),a=Math.max(t.y+r.height-o.height,0),l=Math.max(o.top-i.top-t.y,0),c=Math.max(o.left-i.left-t.x,0);let u=0,d=0;return u=r.width<=o.width?c||-s:t.xg&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-g/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)h=i.width-t.x+this._viewportMargin,u=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)d=t.x,u=i.right-t.x;else{const f=Math.min(i.right-t.x+i.left,t.x),g=this._lastBoundingBoxSize.width;u=2*f,d=t.x-f,u>g&&!this._isInitialRender&&!this._growAfterOpen&&(d=t.x-g/2)}return{top:s,left:d,bottom:a,right:h,width:u,height:o}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=yt(i.height),r.top=yt(i.top),r.bottom=yt(i.bottom),r.width=yt(i.width),r.left=yt(i.left),r.right=yt(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=yt(o)),s&&(r.maxWidth=yt(s))}this._lastBoundingBoxSize=i,to(this._boundingBox.style,r)}_resetBoundingBoxStyles(){to(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){to(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();to(i,this._getExactOverlayY(e,t,u)),to(i,this._getExactOverlayX(e,t,u))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),s.maxHeight&&(r?i.maxHeight=yt(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=yt(s.maxWidth):o&&(i.maxWidth="")),to(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let s=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return o.y-=s,"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=yt(o.y),r}_getExactOverlayX(t,e,i){let s,r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),s=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=yt(o.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:u0(t,i),isOriginOutsideView:Sm(t,i),isOverlayClipped:u0(e,i),isOverlayOutsideView:Sm(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,r)=>i-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Du(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof W)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function to(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function p0(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(P3);return e&&"px"!==e?null:parseFloat(t)}return n||null}function g0(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}class F3{constructor(t,e,i,r,o,s,a){this._preferredPositions=[],this._positionStrategy=new f0(i,r,o,s,a).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,i,r){const o=new A3(t,e,i,r);return this._preferredPositions.push(o),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const m0="cdk-global-overlay-wrapper";class N3{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(m0),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=l?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,l?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(m0),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let L3=(()=>{class n{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new N3}connectedTo(e,i,r){return new F3(i,r,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(e){return new f0(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(m(eo),m(U),m(Re),m(ol))},n.\u0275prov=x({factory:function(){return new n(m(eo),m(U),m(Re),m(ol))},token:n,providedIn:"root"}),n})(),V3=0,fi=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),s=new Tm(e);return s.direction=s.direction||this._directionality.value,new O3(o,i,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+V3++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Pc)),new C3(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(m(x3),m(ol),m(Nr),m(L3),m(k3),m(Qe),m(z),m(U),m(Tn),m(Oa),m(R3))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const B3=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],_0=new A("cdk-connected-overlay-scroll-strategy");let H3=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(p(W))},n.\u0275dir=D({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),y0=(()=>{class n{constructor(e,i,r,o,s){this._overlay=e,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Ee.EMPTY,this._attachSubscription=Ee.EMPTY,this._detachSubscription=Ee.EMPTY,this._positionSubscription=Ee.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new X,this.positionChange=new X,this.attach=new X,this.detach=new X,this.overlayKeydown=new X,this.overlayOutsideClick=new X,this._templatePortal=new nd(i,r),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Me(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Me(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Me(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Me(e)}get push(){return this._push}set push(e){this._push=Me(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=B3);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!zr(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Tm({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this.origin.elementRef).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function w3(n,t=!1){return e=>e.lift(new D3(n,t))}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(p(fi),p(ct),p(st),p(_0),p(Tn,8))},n.\u0275dir=D({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[it]}),n})();const U3={provide:_0,deps:[fi],useFactory:function j3(n){return()=>n.scrollStrategies.reposition()}};let xm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=te({type:n}),n.\u0275inj=J({providers:[fi,U3],imports:[[Za,a0,Dm],Dm]}),n})();const $3=["underline"],z3=["connectionContainer"],G3=["inputContainer"],W3=["label"];function q3(n,t){1&n&&(Ie(0),y(1,"div",14),re(2,"div",15)(3,"div",16)(4,"div",17),b(),y(5,"div",18),re(6,"div",15)(7,"div",16)(8,"div",17),b(),ke())}function Y3(n,t){1&n&&(y(0,"div",19),qe(1,1),b())}function K3(n,t){if(1&n&&(Ie(0),qe(1,2),y(2,"span"),k(3),b(),ke()),2&n){const e=O(2);w(3),Ze(e._control.placeholder)}}function Q3(n,t){1&n&&qe(0,3,["*ngSwitchCase","true"])}function Z3(n,t){1&n&&(y(0,"span",23),k(1," *"),b())}function X3(n,t){if(1&n){const e=je();y(0,"label",20,21),H("cdkObserveContent",function(){return xe(e),O().updateOutlineGap()}),M(2,K3,4,1,"ng-container",12),M(3,Q3,1,0,"ng-content",12),M(4,Z3,2,0,"span",22),b()}if(2&n){const e=O();Ue("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),S("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),ge("for",e._control.id)("aria-owns",e._control.id),w(2),S("ngSwitchCase",!1),w(1),S("ngSwitchCase",!0),w(1),S("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function J3(n,t){1&n&&(y(0,"div",24),qe(1,4),b())}function e$(n,t){if(1&n&&(y(0,"div",25,26),re(2,"span",27),b()),2&n){const e=O();w(2),Ue("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function t$(n,t){1&n&&(y(0,"div"),qe(1,5),b()),2&n&&S("@transitionMessages",O()._subscriptAnimationState)}function n$(n,t){if(1&n&&(y(0,"div",31),k(1),b()),2&n){const e=O(2);S("id",e._hintLabelId),w(1),Ze(e.hintLabel)}}function i$(n,t){if(1&n&&(y(0,"div",28),M(1,n$,2,2,"div",29),qe(2,6),re(3,"div",30),qe(4,7),b()),2&n){const e=O();S("@transitionMessages",e._subscriptAnimationState),w(1),S("ngIf",e.hintLabel)}}const r$=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],o$=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let s$=0;const v0=new A("MatError");let a$=(()=>{class n{constructor(e,i){this.id="mat-error-"+s$++,e||i.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(e){return new(e||n)(Zn("aria-live"),p(W))},n.\u0275dir=D({type:n,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,i){2&e&&ge("id",i.id)},inputs:{id:"id"},features:[$([{provide:v0,useExisting:n}])]}),n})();const l$={transitionMessages:Gn("transitionMessages",[vt("enter",fe({opacity:1,transform:"translateY(0%)"})),Mt("void => enter",[fe({opacity:0,transform:"translateY(-5px)"}),Lt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let rd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=D({type:n}),n})();const b0=new A("MatHint");let od=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=D({type:n,selectors:[["mat-label"]]}),n})(),u$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=D({type:n,selectors:[["mat-placeholder"]]}),n})();const C0=new A("MatPrefix");let d$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=D({type:n,selectors:[["","matPrefix",""]],features:[$([{provide:C0,useExisting:n}])]}),n})();const w0=new A("MatSuffix");let h$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=D({type:n,selectors:[["","matSuffix",""]],features:[$([{provide:w0,useExisting:n}])]}),n})(),D0=0;const p$=Yu(class{constructor(n){this._elementRef=n}},"primary"),g$=new A("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Am=new A("MatFormField");let Im=(()=>{class n extends p${constructor(e,i,r,o,s,a,l,c){super(e),this._changeDetectorRef=i,this._dir=o,this._defaults=s,this._platform=a,this._ngZone=l,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new j,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+D0++,this._labelId="mat-form-field-label-"+D0++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==c,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&i!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Me(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(Wn(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Ce(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Ce(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Dr(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Wn(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Wn(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Ce(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,il(this._label.nativeElement,"transitionend").pipe(lt(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(o=>"start"===o.align):null,r=this._hintChildren?this._hintChildren.find(o=>"end"===o.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let i=0,r=0;const o=this._connectionContainerRef.nativeElement,s=o.querySelectorAll(".mat-form-field-outline-start"),a=o.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const l=o.getBoundingClientRect();if(0===l.width&&0===l.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const c=this._getStartEnd(l),u=e.children,d=this._getStartEnd(u[0].getBoundingClientRect());let h=0;for(let f=0;f0?.75*h+10:0}for(let l=0;l{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=te({type:n}),n.\u0275inj=J({imports:[[jr,Ge,Vg],Ge]}),n})();function ad(n){return new be(t=>{let e;try{e=n()}catch(r){return void t.error(r)}return(e?dt(e):gu()).subscribe(t)})}const m$=["trigger"],_$=["panel"];function y$(n,t){if(1&n&&(y(0,"span",8),k(1),b()),2&n){const e=O();w(1),Ze(e.placeholder)}}function v$(n,t){if(1&n&&(y(0,"span",12),k(1),b()),2&n){const e=O(2);w(1),Ze(e.triggerValue)}}function b$(n,t){1&n&&qe(0,0,["*ngSwitchCase","true"])}function C$(n,t){1&n&&(y(0,"span",9),M(1,v$,2,1,"span",10),M(2,b$,1,0,"ng-content",11),b()),2&n&&(S("ngSwitch",!!O().customTrigger),w(2),S("ngSwitchCase",!0))}function w$(n,t){if(1&n){const e=je();y(0,"div",13)(1,"div",14,15),H("@transformPanel.done",function(r){return xe(e),O()._panelDoneAnimatingStream.next(r.toState)})("keydown",function(r){return xe(e),O()._handleKeydown(r)}),qe(3,1),b()()}if(2&n){const e=O();S("@transformPanelWrap",void 0),w(1),bC("mat-select-panel ",e._getPanelTheme(),""),Ti("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),S("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),ge("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const D$=[[["mat-select-trigger"]],"*"],E$=["mat-select-trigger","*"],M0={transformPanelWrap:Gn("transformPanelWrap",[Mt("* => void",QM("@transformPanel",[KM()],{optional:!0}))]),transformPanel:Gn("transformPanel",[vt("void",fe({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),vt("showing",fe({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),vt("showing-multiple",fe({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Mt("void => *",Lt("120ms cubic-bezier(0, 0, 0.2, 1)")),Mt("* => void",Lt("100ms 25ms linear",fe({opacity:0})))])};let S0=0;const x0=new A("mat-select-scroll-strategy"),x$=new A("MAT_SELECT_CONFIG"),A$={provide:x0,deps:[fi],useFactory:function T$(n){return()=>n.scrollStrategies.reposition()}};class I${constructor(t,e){this.source=t,this.value=e}}const k$=fm(LS(Zr(VS(class{constructor(n,t,e,i,r){this._elementRef=n,this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=r}})))),A0=new A("MatSelectTrigger");let R$=(()=>{class n extends k${constructor(e,i,r,o,s,a,l,c,u,d,h,f,g,_){var C,E,v;super(s,o,l,c,d),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=a,this._parentFormField=u,this._liveAnnouncer=g,this._defaultOptions=_,this._panelOpen=!1,this._compareWith=(I,V)=>I===V,this._uid="mat-select-"+S0++,this._triggerAriaLabelledBy=null,this._destroy=new j,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+S0++,this._panelDoneAnimatingStream=new j,this._overlayPanelClass=(null===(C=this._defaultOptions)||void 0===C?void 0:C.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(v=null===(E=this._defaultOptions)||void 0===E?void 0:E.disableOptionCentering)&&void 0!==v&&v,this.ariaLabel="",this.optionSelectionChanges=ad(()=>{const I=this.options;return I?I.changes.pipe(Wn(I),qn(()=>Dr(...I.map(V=>V.onSelectionChange)))):this._ngZone.onStable.pipe(lt(1),qn(()=>this.optionSelectionChanges))}),this.openedChange=new X,this._openedStream=this.openedChange.pipe(mt(I=>I),Q(()=>{})),this._closedStream=this.openedChange.pipe(mt(I=>!I),Q(()=>{})),this.selectionChange=new X,this.valueChange=new X,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==_?void 0:_.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=_.typeaheadDebounceInterval),this._scrollStrategyFactory=f,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required}set required(e){this._required=Me(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Me(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Me(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=cn(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new u3(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(wu(),Ce(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Ce(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(Wn(null),Ce(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){const i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this.value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,i;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(i=this._selectionModel)||void 0===i?void 0:i.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const i=e.keyCode,r=40===i||38===i||37===i||39===i,o=13===i||32===i,s=this._keyManager;if(!s.isTyping()&&o&&!zr(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const a=this.selected;s.onKeydown(e);const l=this.selected;l&&a!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,r=e.keyCode,o=40===r||38===r,s=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(s||13!==r&&32!==r||!i.activeItem||zr(e))if(!s&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const a=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(a?l.select():l.deselect())})}else{const a=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==a&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(lt(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectValue(i)),this._sortValues();else{const i=this._selectValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(e){const i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch(o){return!1}});return i&&this._selectionModel.select(i),i}_initKeyManager(){this._keyManager=new jB(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Ce(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Ce(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=Dr(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ce(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Dr(...this.options.map(i=>i._stateChanges)).pipe(Ce(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,i){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(i?i+" ":"")+this.ariaLabelledby:i}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let r=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(p(eo),p(It),p(z),p(pm),p(W),p(Tn,8),p(za,8),p(Ga,8),p(Am,8),p(ui,10),Zn("tabindex"),p(x0),p(HM),p(x$,8))},n.\u0275dir=D({type:n,viewQuery:function(e,i){if(1&e&&(at(m$,5),at(_$,5),at(y0,5)),2&e){let r;oe(r=se())&&(i.trigger=r.first),oe(r=se())&&(i.panel=r.first),oe(r=se())&&(i._overlayDir=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[R,it]}),n})(),I0=(()=>{class n extends R${constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,i,r){const o=this._getItemHeight();return Math.min(Math.max(0,o*e-i+o/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Ce(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(lt(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const i=GS(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===i?0:function VU(n,t,e,i){return ne+i?Math.max(0,n-i+t):e}((e+i)*r,r,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new I$(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),r=this._isRtl(),o=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let c=this._selectionModel.selected[0]||this.options.first;s=c&&c.group?32:16}r||(s*=-1);const a=0-(e.left+s-(r?o:0)),l=e.right+s-i.width+(r?0:o);a>0?s+=a+8:l>0&&(s-=l+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,i,r){const o=this._getItemHeight(),s=(o-this._triggerRect.height)/2,a=Math.floor(256/o);let l;return this.disableOptionCentering?0:(l=0===this._scrollTop?e*o:this._scrollTop===r?(e-(this._getItemCount()-a))*o+(o-(this._getItemCount()*o-256)%o):i-o/2,Math.round(-1*l-s))}_checkOverlayWithinViewport(e){const i=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),o=this._triggerRect.top-8,s=r.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*i,256)-a-this._triggerRect.height;c>s?this._adjustPanelUp(c,s):a>o?this._adjustPanelDown(a,o,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,i){const r=Math.round(e-i);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,i,r){const o=Math.round(e-i);if(this._scrollTop+=o,this._offsetY+=o,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),i=this._getItemCount(),r=Math.min(i*e,256),s=i*e-r;let a;a=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),a+=GS(a,this.options,this.optionGroups);const l=r/2;this._scrollTop=this._calculateOverlayScroll(a,l,s),this._offsetY=this._calculateOverlayOffsetY(a,l,s),this._checkOverlayWithinViewport(s)}_getOriginBasedOnOption(){const e=this._getItemHeight(),i=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-i+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ce(n)))(i||n)}}(),n.\u0275cmp=Te({type:n,selectors:[["mat-select"]],contentQueries:function(e,i,r){if(1&e&&(Xe(r,A0,5),Xe(r,vm,5),Xe(r,ym,5)),2&e){let o;oe(o=se())&&(i.customTrigger=o.first),oe(o=se())&&(i.options=o),oe(o=se())&&(i.optionGroups=o)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,i){1&e&&H("keydown",function(o){return i._handleKeydown(o)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(ge("id",i.id)("tabindex",i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-describedby",i._ariaDescribedby||null)("aria-activedescendant",i._getAriaActiveDescendant()),Ue("mat-select-disabled",i.disabled)("mat-select-invalid",i.errorState)("mat-select-required",i.required)("mat-select-empty",i.empty)("mat-select-multiple",i.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[$([{provide:rd,useExisting:n},{provide:_m,useExisting:n}]),R],ngContentSelectors:E$,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,i){if(1&e&&(ln(D$),y(0,"div",0,1),H("click",function(){return i.toggle()}),y(3,"div",2),M(4,y$,2,1,"span",3),M(5,C$,3,2,"span",4),b(),y(6,"div",5),re(7,"div",6),b()(),M(8,w$,4,14,"ng-template",7),H("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const r=Cc(1);ge("aria-owns",i.panelOpen?i.id+"-panel":null),w(3),S("ngSwitch",i.empty),ge("id",i._valueId),w(1),S("ngSwitchCase",!0),w(1),S("ngSwitchCase",!1),w(3),S("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayMinWidth",null==i._triggerRect?null:i._triggerRect.width)("cdkConnectedOverlayOffsetY",i._offsetY)}},directives:[H3,Na,Up,TD,y0,qc],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[M0.transformPanelWrap,M0.transformPanel]},changeDetection:0}),n})(),k0=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=te({type:n}),n.\u0275inj=J({providers:[A$],imports:[[jr,xm,WS,Ge],ed,sd,WS,Ge]}),n})();const R0=new Set;let gs,O0=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):P$}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function O$(n){if(!R0.has(n))try{gs||(gs=document.createElement("style"),gs.setAttribute("type","text/css"),document.head.appendChild(gs)),gs.sheet&&(gs.sheet.insertRule(`@media ${n} {body{ }}`,0),R0.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(m(Re))},n.\u0275prov=x({factory:function(){return new n(m(Re))},token:n,providedIn:"root"}),n})();function P$(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let F$=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new j}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return P0(Du(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=bg(P0(Du(e)).map(s=>this._registerQuery(s).observable));return o=Xu(o.pipe(lt(1)),o.pipe(vM(1),Og(0))),o.pipe(Q(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),o={observable:new be(s=>{const a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(Wn(i),Q(({matches:s})=>({query:e,matches:s})),Ce(this._destroySubject)),mql:i};return this._queries.set(e,o),o}}return n.\u0275fac=function(e){return new(e||n)(m(O0),m(z))},n.\u0275prov=x({factory:function(){return new n(m(O0),m(z))},token:n,providedIn:"root"}),n})();function P0(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const L$={tooltipState:Gn("state",[vt("initial, void, hidden",fe({opacity:0,transform:"scale(0)"})),vt("visible",fe({transform:"scale(1)"})),Mt("* => visible",Lt("200ms cubic-bezier(0, 0, 0.2, 1)",Xa([fe({opacity:0,transform:"scale(0)",offset:0}),fe({opacity:.5,transform:"scale(0.99)",offset:.5}),fe({opacity:1,transform:"scale(1)",offset:1})]))),Mt("* => hidden",Lt("100ms cubic-bezier(0, 0, 0.2, 1)",fe({opacity:0})))])},F0="tooltip-panel",N0=Ka({passive:!0}),L0=new A("mat-tooltip-scroll-strategy"),j$={provide:L0,deps:[fi],useFactory:function H$(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},U$=new A("mat-tooltip-default-options",{providedIn:"root",factory:function $$(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let z$=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,f){this._overlay=e,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=o,this._ngZone=s,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=d,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new j,this._handleKeydown=g=>{this._isTooltipVisible()&&27===g.keyCode&&!zr(g)&&(g.preventDefault(),g.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=u,this._document=f,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),d.change.pipe(Ce(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),s.runOutsideAngular(()=>{i.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(e){var i;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=Me(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Ce(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,N0)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const i=this._createOverlay();this._detach(),this._portal=this._portal||new td(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Ce(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return i.positionChanges.pipe(Ce(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:i,panelClass:`${this._cssClassPrefix}-${F0}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ce(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Ce(this._destroyed)).subscribe(()=>{var r;return null===(r=this._tooltipInstance)||void 0===r?void 0:r._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const i=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),o.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),o.fallback))])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={originX:"end",originY:"center"});const{x:o,y:s}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:s}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:o,y:s}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(lt(1),Ce(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:r,originY:o}=e;let s;if(s="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===o?"above":"below",s!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${F0}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",()=>this.hide()],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,N0)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,r=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(e){return new(e||n)(p(fi),p(W),p(fs),p(st),p(z),p(Re),p(Bg),p(fr),p(void 0),p(Tn),p(void 0),p(U))},n.\u0275dir=D({type:n,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),G$=(()=>{class n extends z${constructor(e,i,r,o,s,a,l,c,u,d,h,f){super(e,i,r,o,s,a,l,c,u,d,h,f),this._tooltipComponent=q$}}return n.\u0275fac=function(e){return new(e||n)(p(fi),p(W),p(fs),p(st),p(z),p(Re),p(Bg),p(fr),p(L0),p(Tn,8),p(U$,8),p(U))},n.\u0275dir=D({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[R]}),n})(),W$=(()=>{class n{constructor(e){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new j}show(e){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const i=e.toState;"hidden"===i&&!this.isVisible()&&this._onHide.next(),("visible"===i||"hidden"===i)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return n.\u0275fac=function(e){return new(e||n)(p(It))},n.\u0275dir=D({type:n}),n})(),q$=(()=>{class n extends W${constructor(e,i){super(e),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return n.\u0275fac=function(e){return new(e||n)(p(It),p(F$))},n.\u0275cmp=Te({type:n,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){2&e&&Ti("zoom","visible"===i._visibility?1:null)},features:[R],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,i){if(1&e&&(y(0,"div",0),H("@state.start",function(){return i._animationStart()})("@state.done",function(o){return i._animationDone(o)}),or(1,"async"),k(2),b()),2&e){let r;Ue("mat-tooltip-handset",null==(r=sr(1,5,i._isHandset))?null:r.matches),S("ngClass",i.tooltipClass)("@state",i._visibility),w(2),Ze(i.message)}},directives:[qc],pipes:[Yc],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[L$.tooltipState]},changeDetection:0}),n})(),Y$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=te({type:n}),n.\u0275inj=J({providers:[j$],imports:[[oH,jr,xm,Ge],Ge,ed]}),n})();function K$(n,t){if(1&n&&(y(0,"mat-option",19),k(1),b()),2&n){const e=t.$implicit;S("value",e),w(1),At(" ",e," ")}}function Q$(n,t){if(1&n){const e=je();y(0,"mat-form-field",16)(1,"mat-select",17),H("selectionChange",function(r){return xe(e),O(2)._changePageSize(r.value)}),M(2,K$,2,2,"mat-option",18),b()()}if(2&n){const e=O(2);S("appearance",e._formFieldAppearance)("color",e.color),w(1),S("value",e.pageSize)("disabled",e.disabled)("aria-label",e._intl.itemsPerPageLabel),w(1),S("ngForOf",e._displayedPageSizeOptions)}}function Z$(n,t){if(1&n&&(y(0,"div",20),k(1),b()),2&n){const e=O(2);w(1),Ze(e.pageSize)}}function X$(n,t){if(1&n&&(y(0,"div",12)(1,"div",13),k(2),b(),M(3,Q$,3,6,"mat-form-field",14),M(4,Z$,2,1,"div",15),b()),2&n){const e=O();w(2),At(" ",e._intl.itemsPerPageLabel," "),w(1),S("ngIf",e._displayedPageSizeOptions.length>1),w(1),S("ngIf",e._displayedPageSizeOptions.length<=1)}}function J$(n,t){if(1&n){const e=je();y(0,"button",21),H("click",function(){return xe(e),O().firstPage()}),Ar(),y(1,"svg",7),re(2,"path",22),b()()}if(2&n){const e=O();S("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),ge("aria-label",e._intl.firstPageLabel)}}function ez(n,t){if(1&n){const e=je();Ar(),Wl(),y(0,"button",23),H("click",function(){return xe(e),O().lastPage()}),Ar(),y(1,"svg",7),re(2,"path",24),b()()}if(2&n){const e=O();S("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),ge("aria-label",e._intl.lastPageLabel)}}let al=(()=>{class n{constructor(){this.changes=new j,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,i,r)=>{if(0==r||0==i)return`0 of ${r}`;const o=e*i;return`${o+1} \u2013 ${o<(r=Math.max(r,0))?Math.min(o+i,r):o+i} of ${r}`}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({factory:function(){return new n},token:n,providedIn:"root"}),n})();const nz={provide:al,deps:[[new rn,new tr,al]],useFactory:function tz(n){return n||new al}},rz=new A("MAT_PAGINATOR_DEFAULT_OPTIONS"),oz=Zr(BS(class{}));let sz=(()=>{class n extends oz{constructor(e,i,r){if(super(),this._intl=e,this._changeDetectorRef=i,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new X,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),r){const{pageSize:o,pageSizeOptions:s,hidePageSize:a,showFirstLastButtons:l}=r;null!=o&&(this._pageSize=o),null!=s&&(this._pageSizeOptions=s),null!=a&&(this._hidePageSize=a),null!=l&&(this._showFirstLastButtons=l)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(cn(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=cn(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(cn(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(i=>cn(i)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=Me(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=Me(e)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex++,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex--,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndexe-i),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return n.\u0275fac=function(e){return new(e||n)(p(al),p(It),p(void 0))},n.\u0275dir=D({type:n,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[R]}),n})(),V0=(()=>{class n extends sz{constructor(e,i,r){super(e,i,r),r&&null!=r.formFieldAppearance&&(this._formFieldAppearance=r.formFieldAppearance)}}return n.\u0275fac=function(e){return new(e||n)(p(al),p(It),p(rz,8))},n.\u0275cmp=Te({type:n,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[R],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,i){1&e&&(y(0,"div",0)(1,"div",1),M(2,X$,5,3,"div",2),y(3,"div",3)(4,"div",4),k(5),b(),M(6,J$,3,5,"button",5),y(7,"button",6),H("click",function(){return i.previousPage()}),Ar(),y(8,"svg",7),re(9,"path",8),b()(),Wl(),y(10,"button",9),H("click",function(){return i.nextPage()}),Ar(),y(11,"svg",7),re(12,"path",10),b()(),M(13,ez,3,5,"button",11),b()()()),2&e&&(w(2),S("ngIf",!i.hidePageSize),w(3),At(" ",i._intl.getRangeLabel(i.pageIndex,i.pageSize,i.length)," "),w(1),S("ngIf",i.showFirstLastButtons),w(1),S("matTooltip",i._intl.previousPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),ge("aria-label",i._intl.previousPageLabel),w(3),S("matTooltip",i._intl.nextPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),ge("aria-label",i._intl.nextPageLabel),w(3),S("ngIf",i.showFirstLastButtons))},directives:[ar,Im,I0,Hp,vm,bm,G$],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),n})(),az=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=te({type:n}),n.\u0275inj=J({providers:[nz],imports:[[jr,QS,k0,Y$,Ge]]}),n})();const lz=["mat-sort-header",""];function cz(n,t){if(1&n){const e=je();y(0,"div",3),H("@arrowPosition.start",function(){return xe(e),O()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return xe(e),O()._disableViewStateAnimation=!1}),re(1,"div",4),y(2,"div",5),re(3,"div",6)(4,"div",7)(5,"div",8),b()()}if(2&n){const e=O();S("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),w(2),S("@indicator",e._getArrowDirectionState()),w(1),S("@leftPointer",e._getArrowDirectionState()),w(1),S("@rightPointer",e._getArrowDirectionState())}}const uz=["*"],dz=new A("MAT_SORT_DEFAULT_OPTIONS"),hz=BS(Zr(class{}));let km=(()=>{class n extends hz{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new j,this.start="asc",this._direction="",this.sortChange=new X}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Me(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){var i,r,o;if(!e)return"";const s=null!==(r=null!==(i=null==e?void 0:e.disableClear)&&void 0!==i?i:this.disableClear)&&void 0!==r?r:!!(null===(o=this._defaultOptions)||void 0===o?void 0:o.disableClear);let a=function fz(n,t){let e=["asc","desc"];return"desc"==n&&e.reverse(),t||e.push(""),e}(e.start||this.start,s),l=a.indexOf(this.direction)+1;return l>=a.length&&(l=0),a[l]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(p(dz,8))},n.\u0275dir=D({type:n,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[R,it]}),n})();const _r=dU.ENTERING+" "+uU.STANDARD_CURVE,ms={indicator:Gn("indicator",[vt("active-asc, asc",fe({transform:"translateY(0px)"})),vt("active-desc, desc",fe({transform:"translateY(10px)"})),Mt("active-asc <=> active-desc",Lt(_r))]),leftPointer:Gn("leftPointer",[vt("active-asc, asc",fe({transform:"rotate(-45deg)"})),vt("active-desc, desc",fe({transform:"rotate(45deg)"})),Mt("active-asc <=> active-desc",Lt(_r))]),rightPointer:Gn("rightPointer",[vt("active-asc, asc",fe({transform:"rotate(45deg)"})),vt("active-desc, desc",fe({transform:"rotate(-45deg)"})),Mt("active-asc <=> active-desc",Lt(_r))]),arrowOpacity:Gn("arrowOpacity",[vt("desc-to-active, asc-to-active, active",fe({opacity:1})),vt("desc-to-hint, asc-to-hint, hint",fe({opacity:.54})),vt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",fe({opacity:0})),Mt("* => asc, * => desc, * => active, * => hint, * => void",Lt("0ms")),Mt("* <=> *",Lt(_r))]),arrowPosition:Gn("arrowPosition",[Mt("* => desc-to-hint, * => desc-to-active",Lt(_r,Xa([fe({transform:"translateY(-25%)"}),fe({transform:"translateY(0)"})]))),Mt("* => hint-to-desc, * => active-to-desc",Lt(_r,Xa([fe({transform:"translateY(0)"}),fe({transform:"translateY(25%)"})]))),Mt("* => asc-to-hint, * => asc-to-active",Lt(_r,Xa([fe({transform:"translateY(25%)"}),fe({transform:"translateY(0)"})]))),Mt("* => hint-to-asc, * => active-to-asc",Lt(_r,Xa([fe({transform:"translateY(0)"}),fe({transform:"translateY(-25%)"})]))),vt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",fe({transform:"translateY(0)"})),vt("hint-to-desc, active-to-desc, desc",fe({transform:"translateY(-25%)"})),vt("hint-to-asc, active-to-asc, asc",fe({transform:"translateY(25%)"}))]),allowChildren:Gn("allowChildren",[Mt("* <=> *",[QM("@*",KM(),{optional:!0})])])};let cd=(()=>{class n{constructor(){this.changes=new j}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({factory:function(){return new n},token:n,providedIn:"root"}),n})();const gz={provide:cd,deps:[[new rn,new tr,cd]],useFactory:function pz(n){return n||new cd}},mz=Zr(class{});let _z=(()=>{class n extends mz{constructor(e,i,r,o,s,a,l){super(),this._intl=e,this._changeDetectorRef=i,this._sort=r,this._columnDef=o,this._focusMonitor=s,this._elementRef=a,this._ariaDescriber=l,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Me(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector('[role="button"]'),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const i=!!e;i!==this._showIndicatorHint&&(this._setIndicatorHintVisible(i),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){var i,r;this._sortButton&&(null===(i=this._ariaDescriber)||void 0===i||i.removeDescription(this._sortButton,this._sortActionDescription),null===(r=this._ariaDescriber)||void 0===r||r.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=Dr(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(p(cd),p(It),p(km,8),p("MAT_SORT_HEADER_COLUMN_DEF",8),p(fr),p(W),p(Bg,8))},n.\u0275cmp=Te({type:n,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,i){1&e&&H("click",function(){return i._handleClick()})("keydown",function(o){return i._handleKeydown(o)})("mouseenter",function(){return i._setIndicatorHintVisible(!0)})("mouseleave",function(){return i._setIndicatorHintVisible(!1)}),2&e&&(ge("aria-sort",i._getAriaSortAttribute()),Ue("mat-sort-header-disabled",i._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",sortActionDescription:"sortActionDescription",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[R],attrs:lz,ngContentSelectors:uz,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,i){1&e&&(ln(),y(0,"div",0)(1,"div",1),qe(2),b(),M(3,cz,6,6,"div",2),b()),2&e&&(Ue("mat-sort-header-sorted",i._isSorted())("mat-sort-header-position-before","before"==i.arrowPosition),ge("tabindex",i._isDisabled()?null:0),w(3),S("ngIf",i._renderArrow()))},directives:[ar],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[ms.indicator,ms.leftPointer,ms.rightPointer,ms.arrowOpacity,ms.arrowPosition,ms.allowChildren]},changeDetection:0}),n})(),yz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=te({type:n}),n.\u0275inj=J({providers:[gz],imports:[[jr,Ge]]}),n})();function vz(n,t){}class Rm{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const bz={dialogContainer:Gn("dialogContainer",[vt("void, exit",fe({opacity:0,transform:"scale(0.7)"})),vt("enter",fe({transform:"none"})),Mt("* => enter",Lt("150ms cubic-bezier(0, 0, 0.2, 1)",fe({transform:"none",opacity:1}))),Mt("* => void, * => exit",Lt("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",fe({opacity:0})))])};let Cz=(()=>{class n extends Mm{constructor(e,i,r,o,s,a){super(),this._elementRef=e,this._focusTrapFactory=i,this._changeDetectorRef=r,this._config=s,this._focusMonitor=a,this._animationStateChanged=new X,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=l=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(l)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=o}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const i=Mu(),r=this._elementRef.nativeElement;(!i||i===this._document.body||i===r||r.contains(i))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=Mu())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=Mu();return e===i||e.contains(i)}}return n.\u0275fac=function(e){return new(e||n)(p(W),p(RM),p(It),p(U,8),p(Rm),p(fr))},n.\u0275dir=D({type:n,viewQuery:function(e,i){if(1&e&&at(id,7),2&e){let r;oe(r=se())&&(i._portalOutlet=r.first)}},features:[R]}),n})(),wz=(()=>{class n extends Cz{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:i}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:i})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:i}))}_onAnimationStart({toState:e,totalTime:i}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:i}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:i})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ce(n)))(i||n)}}(),n.\u0275cmp=Te({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,i){1&e&&Uf("@dialogContainer.start",function(o){return i._onAnimationStart(o)})("@dialogContainer.done",function(o){return i._onAnimationDone(o)}),2&e&&(Pr("id",i._id),ge("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),Wf("@dialogContainer",i._state))},features:[R],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&M(0,vz,0,0,"ng-template",0)},directives:[id],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[bz.dialogContainer]}}),n})(),Dz=0;class _s{constructor(t,e,i="mat-dialog-"+Dz++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new j,this._afterClosed=new j,this._beforeClosed=new j,this._state=0,e._id=i,e._animationStateChanged.pipe(mt(r=>"opened"===r.state),lt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(mt(r=>"closed"===r.state),lt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(mt(r=>27===r.keyCode&&!this.disableClose&&!zr(r))).subscribe(r=>{r.preventDefault(),Om(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():Om(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(mt(e=>"closing"===e.state),lt(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function Om(n,t,e){return void 0!==n._containerInstance&&(n._containerInstance._closeInteractionType=t),n.close(e)}const ud=new A("MatDialogData"),Ez=new A("mat-dialog-default-options"),B0=new A("mat-dialog-scroll-strategy"),Sz={provide:B0,deps:[fi],useFactory:function Mz(n){return()=>n.scrollStrategies.block()}};let Tz=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u){this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._dialogRefConstructor=l,this._dialogContainerType=c,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new j,this._afterOpenedAtThisLevel=new j,this._ariaHiddenElements=new Map,this.afterAllClosed=ad(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Wn(void 0))),this._scrollStrategy=a}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,i){i=function xz(n,t){return Object.assign(Object.assign({},t),n)}(i,this._defaultOptions||new Rm),i.id&&this.getDialogById(i.id);const r=this._createOverlay(i),o=this._attachDialogContainer(r,i),s=this._attachDialogContent(e,o,r,i);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),o._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(e){const i=this._getOverlayConfig(e);return this._overlay.create(i)}_getOverlayConfig(e){const i=new Tm({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachDialogContainer(e,i){const o=Qe.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:Rm,useValue:i}]}),s=new td(this._dialogContainerType,i.viewContainerRef,o,i.componentFactoryResolver);return e.attach(s).instance}_attachDialogContent(e,i,r,o){const s=new this._dialogRefConstructor(r,i,o.id);if(e instanceof ct)i.attachTemplatePortal(new nd(e,null,{$implicit:o.data,dialogRef:s}));else{const a=this._createInjector(o,s,i),l=i.attachComponentPortal(new td(e,o.viewContainerRef,a));s.componentInstance=l.instance}return s.updateSize(o.width,o.height).updatePosition(o.position),s}_createInjector(e,i,r){const o=e&&e.viewContainerRef&&e.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:r},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:i}];return e.direction&&(!o||!o.get(Tn,null,Z.Optional))&&s.push({provide:Tn,useValue:{value:e.direction,change:B()}}),Qe.create({parent:o||this._injector,providers:s})}_removeOpenDialog(e){const i=this.openDialogs.indexOf(e);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,o)=>{r?o.setAttribute("aria-hidden",r):o.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){let o=i[r];o!==e&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}}return n.\u0275fac=function(e){return new(e||n)(p(fi),p(Qe),p(void 0),p(void 0),p(ol),p(void 0),p(ea),p(ea),p(A))},n.\u0275dir=D({type:n}),n})(),dd=(()=>{class n extends Tz{constructor(e,i,r,o,s,a,l){super(e,i,o,a,l,s,_s,wz,ud)}}return n.\u0275fac=function(e){return new(e||n)(m(fi),m(Qe),m(Oa,8),m(Ez,8),m(B0),m(n,12),m(ol))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),Iz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=D({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),Pm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=D({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),n})(),kz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=te({type:n}),n.\u0275inj=J({providers:[dd,Sz],imports:[[xm,a0,Ge],Ge]}),n})(),j0=(()=>{class n{constructor(e,i,r,o,s,a,l){this.portalId=e,this.searchKey=i,this.pageIndex=r,this.pageSize=o,this.sortBy=s,this.sortType=a,this.filterMetadata=l}}return n.type="[USER] Get All Pages",n})(),U0=(()=>{class n{constructor(e,i,r,o,s,a,l){this.portalId=e,this.searchKey=i,this.pageIndex=r,this.pageSize=o,this.sortBy=s,this.sortType=a,this.filterMetadata=l}}return n.type="[USER] Get All Pages Without SEO",n})(),$0=(()=>{class n{constructor(e,i,r){this.portalId=e,this.tabId=i,this.indexed=r}}return n.type="[USER] Update Page Indexing",n})(),z0=(()=>{class n{constructor(e,i,r){this.portalId=e,this.tabId=i,this.visible=r}}return n.type="[USER] Update Page Visibility",n})(),G0=(()=>{class n{constructor(e,i,r,o){this.portalId=e,this.tabId=i,this.propertyName=r,this.propertyValue=o}}return n.type="[USER] Update Page Properties",n})(),W0=(()=>{class n{constructor(e,i){this.portalId=e,this.tabId=i}}return n.type="[USER] Get Permissions",n})(),q0=(()=>{class n{constructor(e,i){this.portalId=e,this.tabId=i}}return n.type="[USER] Get Urls",n})(),Fm=(()=>{class n{}return n.type="[USER] Set Default State",n})(),Y0=(()=>{class n{constructor(e,i){this.portalId=e,this.tabId=i}}return n.type="[USER] Get Page Modules",n})(),Nm=(()=>{class n{constructor(){this.bootstrap$=new _u(1)}get appBootstrapped$(){return this.bootstrap$.asObservable()}bootstrap(){this.bootstrap$.next(!0),this.bootstrap$.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();function Rz(n,t){return n===t}function Oz(n,t,e){if(null===t||null===e||t.length!==e.length)return!1;const i=t.length;for(let r=0;r{class n{static set(e){this.value=e}static pop(){const e=this.value;return this.value={},e}}return n.value={},n})();const Fz=new A("Internals.StateContextFactory"),Nz=new A("Internals.StateFactory");function K0(n,t){return t?e=>e.pipe(K0((i,r)=>dt(n(i,r)).pipe(Q((o,s)=>t(i,o,r,s))))):e=>e.lift(new Lz(n))}class Lz{constructor(t){this.project=t}call(t,e){return e.subscribe(new Vz(t,this.project))}}class Vz extends po{constructor(t,e){super(t),this.project=e,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(t){this.hasSubscription||this.tryNext(t)}tryNext(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(r){return void this.destination.error(r)}this.hasSubscription=!0,this._innerSub(e)}_innerSub(t){const e=new fo(this),i=this.destination;i.add(e);const r=go(t,e);r!==e&&i.add(r)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}function hd(n=null){return t=>t.lift(new Bz(n))}class Bz{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Hz(t,this.defaultValue))}}class Hz extends Oe{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Kt(n){return function(e){const i=new jz(n),r=e.lift(i);return i.caught=r}}class jz{constructor(t){this.selector=t}call(t,e){return e.subscribe(new Uz(t,this.selector,this.caught))}}class Uz extends po{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 fo(this);this.add(i);const r=go(e,i);r!==i&&this.add(r)}}}class pi{constructor(t,e){this._ngZone=t,this._platformId=e}enter(t){return function zL(n){return"server"===n}(this._platformId)?this.runInsideAngular(t):this.runOutsideAngular(t)}leave(t){return this.runInsideAngular(t)}runInsideAngular(t){return z.isInAngularZone()?t():this._ngZone.run(t)}runOutsideAngular(t){return z.isInAngularZone()?this._ngZone.runOutsideAngular(t):t()}}pi.\u0275fac=function(t){return new(t||pi)(m(z),m(Lr))},pi.\u0275prov=x({token:pi,factory:pi.\u0275fac,providedIn:"root"}),pi.ngInjectableDef=Jd({factory:function(){return new pi(er(z),er(Lr))},token:pi,providedIn:"root"});const Q0=new A("ROOT_STATE_TOKEN"),Z0=new A("FEATURE_STATE_TOKEN"),Xz=new A("NGXS_PLUGINS"),Li="NGXS_META",X0="NGXS_OPTIONS_META",Bm="NGXS_SELECTOR_META";let ys=(()=>{class n{constructor(){this.defaultsState={},this.selectorOptions={injectContainerState:!0,suppressErrors:!0},this.compatibility={strictContentSecurityPolicy:!1},this.executionStrategy=pi}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class Jz{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}}class Vi{enter(t){return t()}leave(t){return t()}}Vi.\u0275fac=function(t){return new(t||Vi)},Vi.\u0275prov=x({token:Vi,factory:Vi.\u0275fac,providedIn:"root"}),Vi.ngInjectableDef=Jd({factory:function(){return new Vi},token:Vi,providedIn:"root"});const J0=new A("USER_PROVIDED_NGXS_EXECUTION_STRATEGY"),e8=new A("NGXS_EXECUTION_STRATEGY",{providedIn:"root",factory:()=>{const n=er(ga),t=n.get(J0);return n.get(t||(void 0!==Le.Zone?pi:Vi))}});function Hm(n){if(!n.hasOwnProperty(Li)){const t={name:null,actions:{},defaults:{},path:null,makeRootSelector:e=>e.getStateGetter(t.name),children:[]};Object.defineProperty(n,Li,{value:t})}return vs(n)}function vs(n){return n[Li]}function Um(n){return n[Bm]}function eT(n,t){return t&&t.compatibility&&t.compatibility.strictContentSecurityPolicy?function t8(n){const t=n.slice();return e=>t.reduce((i,r)=>i&&i[r],e)}(n):function n8(n){const t=n;let e="store."+t[0],i=0;const r=t.length;let o=e;for(;++i{n=Object.assign({},n);const i=t.split("."),r=i.length-1;return i.reduce((o,s,a)=>(o[s]=a===r?e:Array.isArray(o[s])?o[s].slice():Object.assign({},o[s]),o&&o[s]),n),n},$m=(n,t)=>t.split(".").reduce((e,i)=>e&&e[i],n),zm=n=>n&&"object"==typeof n&&!Array.isArray(n),Gm=(n,...t)=>{if(!t.length)return n;const e=t.shift();if(zm(n)&&zm(e))for(const i in e)zm(e[i])?(n[i]||Object.assign(n,{[i]:{}}),Gm(n[i],e[i])):Object.assign(n,{[i]:e[i]});return Gm(n,...t)};function l8(...n){return function bs(n,t,e=d8){const i=function h8(n){return n.reduce((t,e)=>(t[ll(e)]=!0,t),{})}(n),r=t&&function f8(n){return n.reduce((t,e)=>(t[e]=!0,t),{})}(t);return function(o){return o.pipe(function c8(n,t){return mt(e=>{const i=ll(e.action);return n[i]&&(!t||t[e.status])})}(i,r),e())}}(n,["DISPATCHED"])}function d8(){return Q(n=>n.action)}function cl(n){return t=>new be(e=>t.subscribe({next(i){n.leave(()=>e.next(i))},error(i){n.leave(()=>e.error(i))},complete(){n.leave(()=>e.complete())}}))}let fd=(()=>{class n{constructor(e){this._executionStrategy=e}enter(e){return this._executionStrategy.enter(e)}leave(e){return this._executionStrategy.leave(e)}}return n.\u0275fac=function(e){return new(e||n)(m(e8))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();class p8 extends j{constructor(){super(...arguments),this._itemQueue=[],this._busyPushingNext=!1}next(t){if(this._busyPushingNext)this._itemQueue.unshift(t);else{for(this._busyPushingNext=!0,super.next(t);this._itemQueue.length>0;){const e=this._itemQueue.pop();super.next(e)}this._busyPushingNext=!1}}}let pd=(()=>{class n extends p8{ngOnDestroy(){this.complete()}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ce(n)))(i||n)}}(),n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),g8=(()=>{class n extends be{constructor(e,i){const r=e.pipe(cl(i),Kd());super(o=>{const s=r.subscribe({next:a=>o.next(a),error:a=>o.error(a),complete:()=>o.complete()});o.add(s)})}}return n.\u0275fac=function(e){return new(e||n)(m(pd),m(fd))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const nT=n=>(...t)=>n.shift()(...t,(...i)=>nT(n)(...i));class gi{constructor(t){this._injector=t,this._errorHandler=null}reportErrorSafely(t){null===this._errorHandler&&(this._errorHandler=this._injector.get(ti));try{this._errorHandler.handleError(t)}catch(e){}}}gi.\u0275fac=function(t){return new(t||gi)(m(Qe))},gi.\u0275prov=x({token:gi,factory:gi.\u0275fac,providedIn:"root"}),gi.ngInjectableDef=Jd({factory:function(){return new gi(er(ga))},token:gi,providedIn:"root"});let gd=(()=>{class n extends Yt{constructor(){super({})}ngOnDestroy(){this.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),Wm=(()=>{class n{constructor(e,i){this._parentManager=e,this._pluginHandlers=i,this.plugins=[],this.registerHandlers()}get rootPlugins(){return this._parentManager&&this._parentManager.plugins||this.plugins}registerHandlers(){const e=this.getPluginHandlers();this.rootPlugins.push(...e)}getPluginHandlers(){return(this._pluginHandlers||[]).map(i=>i.handle?i.handle.bind(i):i)}}return n.\u0275fac=function(e){return new(e||n)(m(n,12),m(Xz,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),qm=(()=>{class n extends j{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ce(n)))(i||n)}}(),n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),iT=(()=>{class n{constructor(e,i,r,o,s,a){this._actions=e,this._actionResults=i,this._pluginManager=r,this._stateStream=o,this._ngxsExecutionStrategy=s,this._internalErrorReporter=a}dispatch(e){return this._ngxsExecutionStrategy.enter(()=>this.dispatchByEvents(e)).pipe(function m8(n,t){return e=>{let i=!1;return e.subscribe({error:r=>{t.enter(()=>Promise.resolve().then(()=>{i||t.leave(()=>n.reportErrorSafely(r))}))}}),new be(r=>(i=!0,e.pipe(cl(t)).subscribe(r)))}}(this._internalErrorReporter,this._ngxsExecutionStrategy))}dispatchByEvents(e){return Array.isArray(e)?0===e.length?B(this._stateStream.getValue()):tu(e.map(i=>this.dispatchSingle(i))):this.dispatchSingle(e)}dispatchSingle(e){const i=this._stateStream.getValue();return nT([...this._pluginManager.plugins,(o,s)=>{o!==i&&this._stateStream.next(o);const a=this.getActionResultStream(s);return a.subscribe(l=>this._actions.next(l)),this._actions.next({action:s,status:"DISPATCHED"}),this.createDispatchObservable(a)}])(i,e).pipe(hs())}getActionResultStream(e){return this._actionResults.pipe(mt(i=>i.action===e&&"DISPATCHED"!==i.status),lt(1),hs())}createDispatchObservable(e){return e.pipe(K0(i=>{switch(i.status){case"SUCCESSFUL":return B(this._stateStream.getValue());case"ERRORED":return Oi(i.error);default:return Mn}})).pipe(hs())}}return n.\u0275fac=function(e){return new(e||n)(m(pd),m(qm),m(Wm),m(gd),m(fd),m(gi))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),Cs=(()=>{class n{constructor(e,i,r){this._stateStream=e,this._dispatcher=i,this._config=r}getRootStateOperations(){return{getState:()=>this._stateStream.getValue(),setState:i=>this._stateStream.next(i),dispatch:i=>this._dispatcher.dispatch(i)}}setStateToTheCurrentWithNew(e){const i=this.getRootStateOperations(),r=i.getState();i.setState(Object.assign({},r,e.defaults))}}return n.\u0275fac=function(e){return new(e||n)(m(gd),m(iT),m(ys))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();let md=(()=>{class n{constructor(e){this._internalStateOperations=e}createStateContext(e){const i=this._internalStateOperations.getRootStateOperations();function r(l){return $m(l,e.path)}function o(l,c){const u=tT(l,e.path,c);return i.setState(u),u}function s(l,c){return o(l,c(r(l)))}return{getState:()=>r(i.getState()),patchState:l=>s(i.getState(),function _8(n){return t=>{Array.isArray(n)?function Qz(){throw new Error("Patching arrays is not supported.")}():"object"!=typeof n&&function Zz(){throw new Error("Patching primitives is not supported.")}();const e=Object.assign({},t);for(const i in n)e[i]=n[i];return e}}(l)),setState(l){const c=i.getState();return function a(l){return"function"==typeof l}(l)?s(c,l):o(c,l)},dispatch:l=>i.dispatch(l)}}}return n.\u0275fac=function(e){return new(e||n)(m(Cs))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();new RegExp("^[a-zA-Z0-9_]+$");let ws=(()=>{class n{constructor(e,i,r,o,s,a,l){this._injector=e,this._config=i,this._parentFactory=r,this._actions=o,this._actionResults=s,this._stateContextFactory=a,this._initialState=l,this._actionsSubscription=null,this._states=[],this._statesByName={},this._statePaths={},this.getRuntimeSelectorContext=Lm(()=>{const c=this;function u(h){const f=c.statePaths[h];return f?eT(f.split("."),c._config):null}return this._parentFactory?this._parentFactory.getRuntimeSelectorContext():{getStateGetter(h){let f=u(h);return f||((...g)=>(f||(f=u(h)),f?f(...g):void 0))},getSelectorOptions:h=>Object.assign({},c._config.selectorOptions,h||{})}})}get states(){return this._parentFactory?this._parentFactory.states:this._states}get statesByName(){return this._parentFactory?this._parentFactory.statesByName:this._statesByName}get statePaths(){return this._parentFactory?this._parentFactory.statePaths:this._statePaths}static cloneDefaults(e){let i={};return i=Array.isArray(e)?e.slice():function a8(n){return"object"==typeof n&&null!==n||"function"==typeof n}(e)?Object.assign({},e):void 0===e?{}:e,i}ngOnDestroy(){this._actionsSubscription.unsubscribe()}add(e){const{newStates:i}=this.addToStatesMap(e);if(!i.length)return[];const r=function i8(n){const t=e=>n.find(r=>r===e)[Li].name;return n.reduce((e,i)=>{const{name:r,children:o}=i[Li];return e[r]=(o||[]).map(t),e},{})}(i),o=function s8(n){const t=[],e={},i=(r,o=[])=>{Array.isArray(o)||(o=[]),o.push(r),e[r]=!0,n[r].forEach(s=>{e[s]||i(s,o.slice(0))}),t.indexOf(r)<0&&t.push(r)};return Object.keys(n).forEach(r=>i(r)),t.reverse()}(r),s=function o8(n,t={}){const e=(i,r)=>{for(const o in i)if(i.hasOwnProperty(o)&&i[o].indexOf(r)>=0){const s=e(i,o);return null!==s?`${s}.${o}`:o}return null};for(const i in n)if(n.hasOwnProperty(i)){const r=e(n,i);t[i]=r?`${r}.${i}`:i}return t}(r),a=function r8(n){return n.reduce((t,e)=>(t[e[Li].name]=e,t),{})}(i),l=[];for(const c of o){const u=a[c],d=s[c],h=u[Li];this.addRuntimeInfoToMeta(h,d);const f={name:c,path:d,isInitialised:!1,actions:h.actions,instance:this._injector.get(u),defaults:n.cloneDefaults(h.defaults)};this.hasBeenMountedAndBootstrapped(c,d)||l.push(f),this.states.push(f)}return l}addAndReturnDefaults(e){const r=this.add(e||[]);return{defaults:r.reduce((s,a)=>tT(s,a.path,a.defaults),{}),states:r}}connectActionHandlers(){if(null!==this._actionsSubscription)return;const e=new j;this._actionsSubscription=this._actions.pipe(mt(i=>"DISPATCHED"===i.status),ht(i=>{e.next(i);const r=i.action;return this.invokeActions(e,r).pipe(Q(()=>({action:r,status:"SUCCESSFUL"})),hd({action:r,status:"CANCELED"}),Kt(o=>B({action:r,status:"ERRORED",error:o})))})).subscribe(i=>this._actionResults.next(i))}invokeActions(e,i){const r=ll(i),o=[];for(const s of this.states){const a=s.actions[r];if(a)for(const l of a){const c=this._stateContextFactory.createStateContext(s);try{let u=s.instance[l.fn](c,i);u instanceof Promise&&(u=dt(u)),rl(u)?(u=u.pipe(ht(d=>d instanceof Promise?dt(d):rl(d)?d:B(d)),hd({})),l.options.cancelUncompleted&&(u=u.pipe(Ce(e.pipe(l8(i)))))):u=B({}).pipe(hs()),o.push(u)}catch(u){o.push(Oi(u))}}}return o.length||o.push(B({})),tu(o)}addToStatesMap(e){const i=[],r=this.statesByName;for(const o of e){const s=vs(o).name;!r[s]&&(i.push(o),r[s]=o)}return{newStates:i}}addRuntimeInfoToMeta(e,i){this.statePaths[e.name]=i,e.path=i}hasBeenMountedAndBootstrapped(e,i){const r=void 0!==$m(this._initialState,i);return this.statesByName[e]&&r}}return n.\u0275fac=function(e){return new(e||n)(m(Qe),m(ys),m(n,12),m(pd),m(qm),m(md),m(Vm,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})();const _d_getOptions=n=>n&&n.NGXS_SELECTOR_OPTIONS_META||{};function v8(n,t,e){const i=e&&e.containerClass,o=Lm(function(...c){const u=t.apply(i,c);return u instanceof Function?Lm.apply(null,[u]):u});Object.setPrototypeOf(o,t);const s=function b8(n,t){const e=function jm(n){return n.hasOwnProperty(Bm)||Object.defineProperty(n,Bm,{value:{makeRootSelector:null,originalFn:null,containerClass:null,selectorName:null,getSelectorOptions:()=>({})}}),Um(n)}(n);e.originalFn=n;let i=()=>({});t&&(e.containerClass=t.containerClass,e.selectorName=t.selectorName,i=t.getSelectorOptions||i);const r=Object.assign({},e);return e.getSelectorOptions=()=>function w8(n,t){return Object.assign({},_d_getOptions(n.containerClass)||{},_d_getOptions(n.originalFn)||{},n.getSelectorOptions()||{},t)}(r,i()),e}(t,e);return s.makeRootSelector=l=>{const{argumentSelectorFunctions:c,selectorOptions:u}=function C8(n,t,e=[]){const i=t.getSelectorOptions(),r=n.getSelectorOptions(i),s=function D8(n=[],t,e){const i=[];return e&&(0===n.length||t.injectContainerState)&&vs(e)&&i.push(e),n&&i.push(...n),i}(e,r,t.containerClass).map(a=>sT(a)(n));return{selectorOptions:r,argumentSelectorFunctions:s}}(l,s,n);return function(h){const f=c.map(g=>g(h));try{return o(...f)}catch(g){if(g instanceof TypeError&&u.suppressErrors)return;throw g}}},o}function sT(n){const t=Um(n)||vs(n);return t&&t.makeRootSelector||(()=>n)}let Bi=(()=>{class n{constructor(e,i,r,o,s,a){this._stateStream=e,this._internalStateOperations=i,this._config=r,this._internalExecutionStrategy=o,this._stateFactory=s,this._selectableStateStream=this._stateStream.pipe(function H2(n,t=0){return function(i){return i.lift(new j2(n,t))}}(JE),cl(this._internalExecutionStrategy),hs({bufferSize:1,refCount:!0})),this.initStateStream(a)}dispatch(e){return this._internalStateOperations.getRootStateOperations().dispatch(e)}select(e){const i=this.getStoreBoundSelectorFn(e);return this._selectableStateStream.pipe(Q(i),Kt(r=>{const{suppressErrors:o}=this._config.selectorOptions;return r instanceof TypeError&&o?B(void 0):Oi(r)}),wu(),cl(this._internalExecutionStrategy))}selectOnce(e){return this.select(e).pipe(lt(1))}selectSnapshot(e){return this.getStoreBoundSelectorFn(e)(this._stateStream.getValue())}subscribe(e){return this._selectableStateStream.pipe(cl(this._internalExecutionStrategy)).subscribe(e)}snapshot(){return this._internalStateOperations.getRootStateOperations().getState()}reset(e){return this._internalStateOperations.getRootStateOperations().setState(e)}getStoreBoundSelectorFn(e){return sT(e)(this._stateFactory.getRuntimeSelectorContext())}initStateStream(e){const i=this._stateStream.value;if(!i||0===Object.keys(i).length){const s=Object.keys(this._config.defaultsState).length>0?Object.assign({},this._config.defaultsState,e):e;this._stateStream.next(s)}}}return n.\u0275fac=function(e){return new(e||n)(m(gd),m(Cs),m(ys),m(fd),m(ws),m(Vm,8))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),Ym=(()=>{class n{constructor(e,i,r,o,s){this._store=e,this._internalErrorReporter=i,this._internalStateOperations=r,this._stateContextFactory=o,this._bootstrapper=s,this._destroy$=new j}ngOnDestroy(){this._destroy$.next()}ngxsBootstrap(e,i){this._internalStateOperations.getRootStateOperations().dispatch(e).pipe(mt(()=>!!i),De(()=>this._invokeInitOnStates(i.states)),ht(()=>this._bootstrapper.appBootstrapped$),mt(r=>!!r),Kt(r=>(this._internalErrorReporter.reportErrorSafely(r),Mn)),Ce(this._destroy$)).subscribe(()=>this._invokeBootstrapOnStates(i.states))}_invokeInitOnStates(e){for(const i of e){const r=i.instance;r.ngxsOnChanges&&this._store.select(o=>$m(o,i.path)).pipe(Wn(void 0),n=>n.lift(new i3),Ce(this._destroy$)).subscribe(([o,s])=>{const a=new Jz(o,s,!i.isInitialised);r.ngxsOnChanges(a)}),r.ngxsOnInit&&r.ngxsOnInit(this._getStateContext(i)),i.isInitialised=!0}}_invokeBootstrapOnStates(e){for(const i of e){const r=i.instance;r.ngxsAfterBootstrap&&r.ngxsAfterBootstrap(this._getStateContext(i))}}_getStateContext(e){return this._stateContextFactory.createStateContext(e)}}return n.\u0275fac=function(e){return new(e||n)(m(Bi),m(gi),m(Cs),m(md),m(Nm))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),ul=(()=>{class n{constructor(e,i){n.store=e,n.config=i}ngOnDestroy(){n.store=null,n.config=null}}return n.\u0275fac=function(e){return new(e||n)(m(Bi),m(ys))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n.store=null,n.config=null,n})();class E8{static get type(){return"@@INIT"}}class M8{constructor(t){this.addedStates=t}static get type(){return"@@UPDATE_STATE"}}let S8=(()=>{class n{constructor(e,i,r,o,s=[],a){const l=e.addAndReturnDefaults(s);i.setStateToTheCurrentWithNew(l),e.connectActionHandlers(),a.ngxsBootstrap(new E8,l)}}return n.\u0275fac=function(e){return new(e||n)(m(ws),m(Cs),m(Bi),m(ul),m(Q0,8),m(Ym))},n.\u0275mod=te({type:n}),n.\u0275inj=J({}),n})(),T8=(()=>{class n{constructor(e,i,r,o=[],s){const a=n.flattenStates(o),l=r.addAndReturnDefaults(a);l.states.length&&(i.setStateToTheCurrentWithNew(l),s.ngxsBootstrap(new M8(l.defaults),l))}static flattenStates(e=[]){return e.reduce((i,r)=>i.concat(r),[])}}return n.\u0275fac=function(e){return new(e||n)(m(Bi),m(Cs),m(ws),m(Z0,8),m(Ym))},n.\u0275mod=te({type:n}),n.\u0275inj=J({}),n})();class Qt{static forRoot(t=[],e={}){return{ngModule:S8,providers:[ws,md,g8,pd,Nm,Ym,iT,qm,Cs,fd,Bi,gd,ul,Wm,...t,...Qt.ngxsTokenProviders(t,e)]}}static forFeature(t=[]){return{ngModule:T8,providers:[ws,Wm,...t,{provide:Z0,multi:!0,useValue:t}]}}static ngxsTokenProviders(t,e){return[{provide:J0,useValue:e.executionStrategy},{provide:Q0,useValue:t},{provide:Qt.ROOT_OPTIONS,useValue:e},{provide:ys,useFactory:Qt.ngxsConfigFactory,deps:[Qt.ROOT_OPTIONS]},{provide:_p,useFactory:Qt.appBootstrapListenerFactory,multi:!0,deps:[Nm]},{provide:Vm,useFactory:Qt.getInitialState},{provide:Fz,useExisting:md},{provide:Nz,useExisting:ws}]}static ngxsConfigFactory(t){return Gm(new ys,t)}static appBootstrapListenerFactory(t){return()=>t.bootstrap()}static getInitialState(){return Pz.pop()}}function Hi(n,t){return(e,i)=>{const r=Hm(e.constructor);Array.isArray(n)||(n=[n]);for(const o of n){const s=o.type;r.actions[s]||(r.actions[s]=[]),r.actions[s].push({fn:i,options:t||{},type:s})}}}function yr(n,...t){return function(e,i){const r=i.toString(),o=`__${r}__selector`,s=function k8(n,t,e=[]){return t=t||function R8(n){const t=n.length-1;return 36===n.charCodeAt(t)?n.slice(0,t):n}(n),"string"==typeof t?eT(e.length?[t,...e]:t.split("."),ul.config):t}(r,n,t);Object.defineProperties(e,{[o]:{writable:!0,enumerable:!1,configurable:!0},[r]:{enumerable:!0,configurable:!0,get(){return this[o]||(this[o]=function I8(n){return ul.store||function Kz(){throw new Error("You have forgotten to import the NGXS module!")}(),ul.store.select(n)}(s))}}})}}function mi(n){return(t,e,i)=>{const r=i.value,o=v8(n,r,{containerClass:t,selectorName:e.toString(),getSelectorOptions:()=>({})}),s={configurable:!0,get:()=>o};return s.originalFn=r,s}}Qt.\u0275fac=function(t){return new(t||Qt)},Qt.\u0275mod=te({type:Qt}),Qt.\u0275inj=J({}),Qt.ROOT_OPTIONS=new A("ROOT_OPTIONS");let aT=(()=>{class n{constructor(e,i){this.context=e,this.http=i,this._routingWebAPI=this.context._properties.routingWebAPI}getPages(e,i,r,o,s,a,l){return this.http.get(this._routingWebAPI+`Pages/GetPagesList?portalId=${e}&searchKey=${i}&pageIndex=${r}&pageSize=${o}&sortBy=${s}&sortType=${a}&filterMetadata=${l}`).pipe(lt(1))}updatePageIndexing(e,i,r){return this.http.post(this._routingWebAPI+`Pages/SetPageIndexed?portalId=${e}&tabId=${i}&indexed=${r}`,null)}updatePageVisibility(e,i,r){return this.http.post(this._routingWebAPI+`Pages/SetPageVisibility?portalId=${e}&tabId=${i}&visible=${r}`,null)}updatePageProperties(e,i,r,o){const s=function O8(n){switch(n){case"Priority":return"SetPagePriority";case"Keywords":return"SetPageKeywords";case"Description":return"SetPageDescription";case"Title":return"SetPageTitle";case"Name":return"SetPageName";case"PrimaryURL":return"SetPagePrimaryURL";default:return"String"}}(r),a=function P8(n){switch(n){case"Priority":return"priority";case"Keywords":return"keywords";case"Description":return"description";case"Title":return"title";case"Name":return"name";case"PrimaryURL":return"url";default:return"String"}}(r);return this.http.post(this._routingWebAPI+`Pages/${s}?portalId=${e}&tabId=${i}&${a}=${o}`,null)}getPermissions(e,i){return this.http.get(this._routingWebAPI+`Pages/GetPagePermissions?portalId=${e}&tabId=${i}`)}getUrls(e,i){return this.http.get(this._routingWebAPI+`Pages/GetPageUrls?portalId=${e}&tabId=${i}`)}getPageModules(e,i){return this.http.get(this._routingWebAPI+`Pages/GetPageModules?portalId=${e}&tabId=${i}`)}}return n.\u0275fac=function(e){return new(e||n)(m(rs),m(ss))},n.\u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_e=class{constructor(t){this.pageService=t}static pages(t){var e;return null!==(e=null==t?void 0:t.pages)&&void 0!==e?e:[]}static modules(t){var e;return null!==(e=null==t?void 0:t.modules)&&void 0!==e?e:[]}static total(t){return null==t?void 0:t.total}static totalWithoutSEO(t){return null==t?void 0:t.isWithoutSEO}static urls(t){var e;return null!==(e=null==t?void 0:t.urls)&&void 0!==e?e:[]}static permissions(t){return null==t?void 0:t.permissions}static userPermissions(t){var e;return null!==(e=null==t?void 0:t.permissions.Users)&&void 0!==e?e:[]}static rolePermissions(t){var e;return null!==(e=null==t?void 0:t.permissions.Roles)&&void 0!==e?e:[]}static isLoading(t){return t.isLoading}static updated(t){return t.updated}getAllPages({patchState:t},e){return t({isLoading:!0}),this.pageService.getPages(e.portalId,e.searchKey,e.pageIndex,e.pageSize,e.sortBy,e.sortType,e.filterMetadata).pipe(De(i=>{t({total:i.Total,pages:i.result,isLoading:!1})}))}getAllPagesWithoutSEO({patchState:t},e){return t({isLoading:!0}),this.pageService.getPages(e.portalId,e.searchKey,e.pageIndex,e.pageSize,e.sortBy,e.sortType,e.filterMetadata).pipe(De(i=>{console.log(i.Total>0),console.log(i),t({isWithoutSEO:i.Total>0})}))}getPermissions({patchState:t},e){return this.pageService.getPermissions(e.portalId,e.tabId).pipe(De(i=>{t({permissions:i})}))}getUrls({patchState:t},e){return this.pageService.getUrls(e.portalId,e.tabId).pipe(De(i=>{t({urls:i})}))}updatePageIndexing({patchState:t},e){return t({updated:!1}),this.pageService.updatePageIndexing(e.portalId,e.tabId,e.indexed).pipe(De(()=>{t({updated:!0})}))}updatePageProperties({patchState:t},e){return t({updated:!1}),this.pageService.updatePageProperties(e.portalId,e.tabId,e.propertyName,e.propertyValue).pipe(De(()=>{t({updated:!0})}))}updatePageVisibility({patchState:t},e){return t({updated:!1}),this.pageService.updatePageVisibility(e.portalId,e.tabId,e.visible).pipe(De(()=>{t({updated:!0})}))}setDefaultState({patchState:t}){t({updated:!1})}getPageModules({patchState:t},e){return this.pageService.getPageModules(e.portalId,e.tabId).pipe(De(i=>{t({modules:i})}))}};_e.\u0275fac=function(t){return new(t||_e)(m(aT))},_e.\u0275prov=x({token:_e,factory:_e.\u0275fac}),Ve([Hi(j0,{cancelUncompleted:!0})],_e.prototype,"getAllPages",null),Ve([Hi(U0,{cancelUncompleted:!0})],_e.prototype,"getAllPagesWithoutSEO",null),Ve([Hi(W0)],_e.prototype,"getPermissions",null),Ve([Hi(q0)],_e.prototype,"getUrls",null),Ve([Hi($0)],_e.prototype,"updatePageIndexing",null),Ve([Hi(G0)],_e.prototype,"updatePageProperties",null),Ve([Hi(z0)],_e.prototype,"updatePageVisibility",null),Ve([Hi(Fm)],_e.prototype,"setDefaultState",null),Ve([Hi(Y0)],_e.prototype,"getPageModules",null),Ve([mi()],_e,"pages",null),Ve([mi()],_e,"modules",null),Ve([mi()],_e,"total",null),Ve([mi()],_e,"totalWithoutSEO",null),Ve([mi()],_e,"urls",null),Ve([mi()],_e,"permissions",null),Ve([mi()],_e,"userPermissions",null),Ve([mi()],_e,"rolePermissions",null),Ve([mi()],_e,"isLoading",null),Ve([mi()],_e,"updated",null),_e=Ve([function x8(n){return i=>{const r=i,o=Hm(r),s=Object.getPrototypeOf(r),a=function t(i){return Object.assign({},i[X0]||{},n)}(s);(function e(i){const{meta:r,inheritedStateClass:o,optionsWithInheritance:s}=i,{children:a,defaults:l,name:c}=s,u="string"==typeof c?c:c&&c.getName()||null;o.hasOwnProperty(Li)&&(r.actions=Object.assign({},r.actions,(o[Li]||{}).actions)),r.children=a,r.defaults=l,r.name=u})({meta:o,inheritedStateClass:s,optionsWithInheritance:a}),r[X0]=a}}({name:"pages",defaults:{isLoading:!1,total:0,isWithoutSEO:!1,pages:[],urls:[],permissions:{Roles:[],Users:[]},updated:!1,modules:[]}})],_e);const lT=Ka({passive:!0});let cT=(()=>{class n{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Mn;const i=Fi(e),r=this._monitoredElements.get(i);if(r)return r.subject;const o=new j,s="cdk-text-field-autofilled",a=l=>{"cdk-text-field-autofill-start"!==l.animationName||i.classList.contains(s)?"cdk-text-field-autofill-end"===l.animationName&&i.classList.contains(s)&&(i.classList.remove(s),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!1}))):(i.classList.add(s),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,lT),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:o,unlisten:()=>{i.removeEventListener("animationstart",a,lT)}}),o}stopMonitoring(e){const i=Fi(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return n.\u0275fac=function(e){return new(e||n)(m(Re),m(z))},n.\u0275prov=x({factory:function(){return new n(m(Re),m(z))},token:n,providedIn:"root"}),n})(),uT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=te({type:n}),n.\u0275inj=J({imports:[[qa]]}),n})();const L8=new A("MAT_INPUT_VALUE_ACCESSOR"),V8=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let B8=0;const H8=VS(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i}});let dT=(()=>{class n extends H8{constructor(e,i,r,o,s,a,l,c,u,d){super(a,o,s,r),this._elementRef=e,this._platform=i,this._autofillMonitor=c,this._formField=d,this._uid="mat-input-"+B8++,this.focused=!1,this.stateChanges=new j,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(g=>CM().has(g));const h=this._elementRef.nativeElement,f=h.nodeName.toLowerCase();this._inputValueAccessor=l||h,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",g=>{const _=g.target;!_.value&&0===_.selectionStart&&0===_.selectionEnd&&(_.setSelectionRange(1,1),_.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===f,this._isTextarea="textarea"===f,this._isInFormField=!!d,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Me(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required}set required(e){this._required=Me(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&CM().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Me(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e,i;const r=(null===(i=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===i?void 0:i.call(e))?null:this.placeholder;if(r!==this._previousPlaceholder){const o=this._elementRef.nativeElement;this._previousPlaceholder=r,r?o.setAttribute("placeholder",r):o.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){V8.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(p(W),p(Re),p(ui,10),p(za,8),p(Ga,8),p(pm),p(L8,10),p(cT),p(z),p(Am,8))},n.\u0275dir=D({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:11,hostBindings:function(e,i){1&e&&H("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(Pr("disabled",i.disabled)("required",i.required),ge("id",i.id)("data-placeholder",i.placeholder)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),Ue("mat-input-server",i._isServer)("mat-native-select-inline",i._isInlineSelect()))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[$([{provide:rd,useExisting:n}]),R,it]}),n})(),j8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=te({type:n}),n.\u0275inj=J({providers:[pm],imports:[[uT,sd,Ge],uT,sd]}),n})();const U8=[[["caption"]],[["colgroup"],["col"]]],$8=["caption","colgroup, col"];function Km(n){return class extends n{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=Me(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const Ds=new A("CDK_TABLE");let Es=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(p(ct))},n.\u0275dir=D({type:n,selectors:[["","cdkCellDef",""]]}),n})(),Ms=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(p(ct))},n.\u0275dir=D({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),yd=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(p(ct))},n.\u0275dir=D({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class q8{}const Y8=Km(q8);let ji=(()=>{class n extends Y8{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const i=this._stickyEnd;this._stickyEnd=Me(e),this._hasStickyChanged=i!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return n.\u0275fac=function(e){return new(e||n)(p(Ds,8))},n.\u0275dir=D({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,i,r){if(1&e&&(Xe(r,Es,5),Xe(r,Ms,5),Xe(r,yd,5)),2&e){let o;oe(o=se())&&(i.cell=o.first),oe(o=se())&&(i.headerCell=o.first),oe(o=se())&&(i.footerCell=o.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[$([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),R]}),n})();class Qm{constructor(t,e){const i=e.nativeElement.classList;for(const r of t._columnCssClassName)i.add(r)}}let Zm=(()=>{class n extends Qm{constructor(e,i){super(e,i)}}return n.\u0275fac=function(e){return new(e||n)(p(ji),p(W))},n.\u0275dir=D({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[R]}),n})(),Xm=(()=>{class n extends Qm{constructor(e,i){var r;if(super(e,i),1===(null===(r=e._table)||void 0===r?void 0:r._elementRef.nativeElement.nodeType)){const o=e._table._elementRef.nativeElement.getAttribute("role");i.nativeElement.setAttribute("role","grid"===o||"treegrid"===o?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(p(ji),p(W))},n.\u0275dir=D({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[R]}),n})();class fT{constructor(){this.tasks=[],this.endTasks=[]}}const Jm=new A("_COALESCED_STYLE_SCHEDULER");let pT=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new j}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new fT,this._getScheduleObservable().pipe(Ce(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new fT;for(const i of e.tasks)i();for(const i of e.endTasks)i()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?dt(Promise.resolve(void 0)):this._ngZone.onStable.pipe(lt(1))}}return n.\u0275fac=function(e){return new(e||n)(m(z))},n.\u0275prov=x({token:n,factory:n.\u0275fac}),n})(),e_=(()=>{class n{constructor(e,i){this.template=e,this._differs=i}ngOnChanges(e){if(!this._columnsDiffer){const i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof dl?e.headerCell.template:this instanceof hl?e.footerCell.template:e.cell.template}}return n.\u0275fac=function(e){return new(e||n)(p(ct),p(li))},n.\u0275dir=D({type:n,features:[it]}),n})();class K8 extends e_{}const Q8=Km(K8);let dl=(()=>{class n extends Q8{constructor(e,i,r){super(e,i),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(p(ct),p(li),p(Ds,8))},n.\u0275dir=D({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[R,it]}),n})();class Z8 extends e_{}const X8=Km(Z8);let hl=(()=>{class n extends X8{constructor(e,i,r){super(e,i),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(p(ct),p(li),p(Ds,8))},n.\u0275dir=D({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[R,it]}),n})(),vd=(()=>{class n extends e_{constructor(e,i,r){super(e,i),this._table=r}}return n.\u0275fac=function(e){return new(e||n)(p(ct),p(li),p(Ds,8))},n.\u0275dir=D({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[R]}),n})(),Ui=(()=>{class n{constructor(e){this._viewContainer=e,n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}return n.\u0275fac=function(e){return new(e||n)(p(st))},n.\u0275dir=D({type:n,selectors:[["","cdkCellOutlet",""]]}),n.mostRecentCellOutlet=null,n})(),t_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Te({type:n,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&oi(0,0)},directives:[Ui],encapsulation:2}),n})(),i_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Te({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&oi(0,0)},directives:[Ui],encapsulation:2}),n})(),bd=(()=>{class n{constructor(e){this.templateRef=e}}return n.\u0275fac=function(e){return new(e||n)(p(ct))},n.\u0275dir=D({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const gT=["top","bottom","left","right"];class J8{constructor(t,e,i,r,o=!0,s=!0,a){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=s,this._positionListener=a,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(t,e){const i=[];for(const r of t)if(r.nodeType===r.ELEMENT_NODE){i.push(r);for(let o=0;o{for(const r of i)this._removeStickyStyle(r,e)})}updateStickyColumns(t,e,i,r=!0){if(!t.length||!this._isBrowser||!e.some(h=>h)&&!i.some(h=>h))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const o=t[0],s=o.children.length,a=this._getCellWidths(o,r),l=this._getStickyStartColumnPositions(a,e),c=this._getStickyEndColumnPositions(a,i),u=e.lastIndexOf(!0),d=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const h="rtl"===this.direction,f=h?"right":"left",g=h?"left":"right";for(const _ of t)for(let C=0;Ce[C]?_:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===d?[]:a.slice(d).map((_,C)=>i[C+d]?_:null).reverse()}))})}stickRows(t,e,i){if(!this._isBrowser)return;const r="bottom"===i?t.slice().reverse():t,o="bottom"===i?e.slice().reverse():e,s=[],a=[],l=[];for(let u=0,d=0;u{var u,d;for(let h=0;h{e.some(r=>!r)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const r of e)t.style[r]="",t.classList.remove(this._borderCellCss[r]);gT.some(r=>-1===e.indexOf(r)&&t.style[r])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i,r){t.classList.add(this._stickCellCss),r&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${i}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const r of gT)t.style[r]&&(i+=e[r]);return i?`${i}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],r=t.children;for(let o=0;o0;o--)e[o]&&(i[o]=r,r+=t[o]);return i}}const r_=new A("CDK_SPL");let Cd=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(p(st),p(W))},n.\u0275dir=D({type:n,selectors:[["","rowOutlet",""]]}),n})(),wd=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(p(st),p(W))},n.\u0275dir=D({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),Dd=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(p(st),p(W))},n.\u0275dir=D({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),Ed=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return n.\u0275fac=function(e){return new(e||n)(p(st),p(W))},n.\u0275dir=D({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),Md=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h){this._differs=e,this._changeDetectorRef=i,this._elementRef=r,this._dir=s,this._platform=l,this._viewRepeater=c,this._coalescedStyleScheduler=u,this._viewportRuler=d,this._stickyPositioningListener=h,this._onDestroy=new j,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new X,this.viewChange=new Yt({start:0,end:Number.MAX_VALUE}),o||this._elementRef.nativeElement.setAttribute("role","table"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=Me(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=Me(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(Ce(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),Ju(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(r,o,s)=>this._getEmbeddedViewArgs(r.item,s),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{i.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const o=this._headerRowDefs.map(s=>s.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,o,"top"),this._headerRowDefs.forEach(s=>s.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const o=this._footerRowDefs.map(s=>s.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,o,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,o),this._footerRowDefs.forEach(s=>s.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,s)=>{this._addStickyColumnStyles([o],this._headerRowDefs[s])}),this._rowDefs.forEach(o=>{const s=[];for(let a=0;a{this._addStickyColumnStyles([o],this._footerRowDefs[s])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_getAllRenderRows(){const e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const a=r&&r.has(s)?r.get(s):[];if(a.length){const l=a.shift();return l.dataIndex=i,l}return{data:e,rowDef:s,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Sd(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=Sd(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Sd(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Sd(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(i=>!i.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(s,a)=>s||!!a.getColumnsDiff(),i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),i||r||o}_switchDataSource(e){this._data=[],Ju(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;Ju(this.dataSource)?e=this.dataSource.connect(this):rl(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=B(this.dataSource)),this._renderChangeSubscription=e.pipe(Ce(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){const r=Array.from(i.columns||[]).map(a=>this._columnDefsByName.get(a)),o=r.map(a=>a.sticky),s=r.map(a=>a.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const i=[];for(let r=0;r!o.when||o.when(i,e));else{let o=this._rowDefs.find(s=>s.when&&s.when(i,e))||this._defaultRowDef;o&&r.push(o)}return r}_getEmbeddedViewArgs(e,i){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:i}}_renderRow(e,i,r,o={}){const s=e.viewContainer.createEmbeddedView(i.template,o,r);return this._renderCellTemplateForItem(i,o),s}_renderCellTemplateForItem(e,i){for(let r of this._getCellTemplates(e))Ui.mostRecentCellOutlet&&Ui.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let i=0,r=e.length;i{const r=this._columnDefsByName.get(i);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),i=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of i){const o=this._document.createElement(r.tag);o.setAttribute("role","rowgroup");for(const s of r.outlets)o.appendChild(s.elementRef.nativeElement);e.appendChild(o)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(i,r)=>i||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new J8(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:B()).pipe(Ce(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(e){const i=0===this._rowOutlet.viewContainer.length;if(i!==this._isShowingNoDataRow){const r=this._noDataRowOutlet.viewContainer;i?r.createEmbeddedView(e.templateRef):r.clear(),this._isShowingNoDataRow=i}}}}return n.\u0275fac=function(e){return new(e||n)(p(li),p(It),p(W),Zn("role"),p(Tn,8),p(U),p(Re),p(Jr),p(Jm),p(eo),p(r_,12))},n.\u0275cmp=Te({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,i,r){if(1&e&&(Xe(r,bd,5),Xe(r,ji,5),Xe(r,vd,5),Xe(r,dl,5),Xe(r,hl,5)),2&e){let o;oe(o=se())&&(i._noDataRow=o.first),oe(o=se())&&(i._contentColumnDefs=o),oe(o=se())&&(i._contentRowDefs=o),oe(o=se())&&(i._contentHeaderRowDefs=o),oe(o=se())&&(i._contentFooterRowDefs=o)}},viewQuery:function(e,i){if(1&e&&(at(Cd,7),at(wd,7),at(Dd,7),at(Ed,7)),2&e){let r;oe(r=se())&&(i._rowOutlet=r.first),oe(r=se())&&(i._headerRowOutlet=r.first),oe(r=se())&&(i._footerRowOutlet=r.first),oe(r=se())&&(i._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,i){2&e&&Ue("cdk-table-fixed-layout",i.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[$([{provide:Ds,useExisting:n},{provide:Jr,useClass:t0},{provide:Jm,useClass:pT},{provide:r_,useValue:null}])],ngContentSelectors:$8,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(ln(U8),qe(0),qe(1,1),oi(2,0)(3,1)(4,2)(5,3))},directives:[wd,Cd,Ed,Dd],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),n})();function Sd(n,t){return n.concat(Array.from(t))}let t5=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=te({type:n}),n.\u0275inj=J({imports:[[Dm]]}),n})();const n5=[[["caption"]],[["colgroup"],["col"]]],i5=["caption","colgroup, col"];let fl=(()=>{class n extends Md{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ce(n)))(i||n)}}(),n.\u0275cmp=Te({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,i){2&e&&Ue("mat-table-fixed-layout",i.fixedLayout)},exportAs:["matTable"],features:[$([{provide:Jr,useClass:t0},{provide:Md,useExisting:n},{provide:Ds,useExisting:n},{provide:Jm,useClass:pT},{provide:r_,useValue:null}]),R],ngContentSelectors:i5,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(ln(n5),qe(0),qe(1,1),oi(2,0)(3,1)(4,2)(5,3))},directives:[wd,Cd,Ed,Dd],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),n})(),Ss=(()=>{class n extends Es{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ce(n)))(i||n)}}(),n.\u0275dir=D({type:n,selectors:[["","matCellDef",""]],features:[$([{provide:Es,useExisting:n}]),R]}),n})(),Ts=(()=>{class n extends Ms{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ce(n)))(i||n)}}(),n.\u0275dir=D({type:n,selectors:[["","matHeaderCellDef",""]],features:[$([{provide:Ms,useExisting:n}]),R]}),n})(),xs=(()=>{class n extends ji{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ce(n)))(i||n)}}(),n.\u0275dir=D({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[$([{provide:ji,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),R]}),n})(),As=(()=>{class n extends Zm{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ce(n)))(i||n)}}(),n.\u0275dir=D({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[R]}),n})(),Is=(()=>{class n extends Xm{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ce(n)))(i||n)}}(),n.\u0275dir=D({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[R]}),n})(),pl=(()=>{class n extends dl{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ce(n)))(i||n)}}(),n.\u0275dir=D({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[$([{provide:dl,useExisting:n}]),R]}),n})(),gl=(()=>{class n extends vd{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ce(n)))(i||n)}}(),n.\u0275dir=D({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[$([{provide:vd,useExisting:n}]),R]}),n})(),ml=(()=>{class n extends t_{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ce(n)))(i||n)}}(),n.\u0275cmp=Te({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[$([{provide:t_,useExisting:n}]),R],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&oi(0,0)},directives:[Ui],encapsulation:2}),n})(),_l=(()=>{class n extends i_{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ce(n)))(i||n)}}(),n.\u0275cmp=Te({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[$([{provide:i_,useExisting:n}]),R],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&oi(0,0)},directives:[Ui],encapsulation:2}),n})(),f5=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=te({type:n}),n.\u0275inj=J({imports:[[t5,Ge],Ge]}),n})();function g5(n,t){if(1&n){const e=je();y(0,"div")(1,"input",7),H("ngModelChange",function(r){return xe(e),O(2).currentValue=r}),b()()}if(2&n){const e=O(2);w(1),S("ngModel",e.currentValue)}}function m5(n,t){1&n&&(y(0,"mat-error"),k(1," Name is required. "),b())}function _5(n,t){if(1&n){const e=je();y(0,"div")(1,"input",8),H("ngModelChange",function(r){return xe(e),O(2).currentValue=r}),b()()}if(2&n){const e=O(2);w(1),S("ngModel",e.currentValue)}}function y5(n,t){if(1&n){const e=je();y(0,"div")(1,"textarea",8),H("ngModelChange",function(r){return xe(e),O(2).currentValue=r}),b()()}if(2&n){const e=O(2);w(1),S("ngModel",e.currentValue)}}function v5(n,t){if(1&n&&(y(0,"mat-option",11),k(1),b()),2&n){const e=t.$implicit;S("value",e.value),w(1),At(" ",e.name," ")}}function b5(n,t){if(1&n){const e=je();y(0,"div")(1,"mat-select",9),H("ngModelChange",function(r){return xe(e),O(2).currentValue=r}),M(2,v5,2,2,"mat-option",10),b()()}if(2&n){const e=O(2);w(1),S("ngModel",e.currentValue),w(1),S("ngForOf",e.priorities)}}function C5(n,t){if(1&n&&(y(0,"mat-form-field",6),M(1,g5,2,1,"div",1),M(2,m5,2,0,"mat-error",1),M(3,_5,2,1,"div",1),M(4,y5,2,1,"div",1),M(5,b5,3,2,"div",1),b()),2&n){const e=O();w(1),S("ngIf","Name"===e.propertyName),w(1),S("ngIf",0===e.currentValue.length),w(1),S("ngIf","Title"===e.propertyName),w(1),S("ngIf","Description"===e.propertyName||"Keywords"===e.propertyName),w(1),S("ngIf","Priority"===e.propertyName)}}function w5(n,t){1&n&&(y(0,"th",20),k(1,"Url"),b())}function D5(n,t){if(1&n&&(y(0,"td",21)(1,"span"),k(2),b()()),2&n){const e=t.$implicit;w(2),Ze(e.Url)}}function E5(n,t){1&n&&(y(0,"th",20),k(1,"Url Type"),b())}function M5(n,t){if(1&n&&(y(0,"td",21)(1,"span"),k(2),b()()),2&n){const e=t.$implicit;w(2),Ze(e.UrlType)}}function S5(n,t){1&n&&(y(0,"th",20),k(1,"Generated By"),b())}function T5(n,t){if(1&n&&(y(0,"td",21)(1,"span"),k(2),b()()),2&n){const e=t.$implicit;w(2),Ze(e.GeneratedBy)}}function x5(n,t){1&n&&re(0,"tr",22)}function A5(n,t){1&n&&re(0,"tr",23)}function I5(n,t){if(1&n&&(y(0,"div")(1,"table",12),Ie(2,13),M(3,w5,2,0,"th",14),M(4,D5,3,1,"td",15),ke(),Ie(5,16),M(6,E5,2,0,"th",14),M(7,M5,3,1,"td",15),ke(),Ie(8,17),M(9,S5,2,0,"th",14),M(10,T5,3,1,"td",15),ke(),M(11,x5,1,0,"tr",18),M(12,A5,1,0,"tr",19),b()()),2&n){const e=O();w(1),S("dataSource",e.pageUrls$),w(10),S("matHeaderRowDef",e.displayedPrimaryUrlColumns),w(1),S("matRowDefColumns",e.displayedPrimaryUrlColumns)}}function k5(n,t){if(1&n&&(y(0,"span",24),k(1),b()),2&n){const e=O();w(1),Ze(e.errorMessage)}}function R5(n,t){if(1&n){const e=je();y(0,"a",4),H("click",function(){return xe(e),O().save()}),k(1," Save "),b()}}class ks{constructor(t,e,i){this.data=t,this.dialogRef=e,this.store=i,this.saved=new X,this.displayedPrimaryUrlColumns=["Url","UrlType","GeneratedBy"],this.priorities=[{name:"0",value:0},{name:"0.1",value:.1},{name:"0.2",value:.2},{name:"0.3",value:.3},{name:"0.4",value:.4},{name:"0.5",value:.5},{name:"0.6",value:.6},{name:"0.7",value:.7},{name:"0.8",value:.8},{name:"0.9",value:.9},{name:"1",value:1}],this.errorMessage="",this.dispose=new j}ngOnInit(){this.currentValue=this.data.currentValue,this.propertyName=this.data.propertyName,this.portalId=this.data.portalId,this.tabId=this.data.tabId,"PrimaryUrl"==this.propertyName&&this.store.dispatch(new q0(this.portalId,this.tabId)),this.store.select(_e.updated).pipe(Ce(this.dispose),De(t=>{t&&(this.dialogRef.close(),this.saved.emit(!0),this.store.dispatch(new Fm))})).subscribe()}ngOnDestroy(){this.dispose.next(),this.dispose.complete()}cancel(){this.dialogRef.close()}save(){this.errorMessage="",("Name"!=this.propertyName||this.currentValue&&0!==this.currentValue.length&&this.validateExpression())&&this.store.dispatch(new G0(this.portalId,this.tabId,this.propertyName,this.currentValue)).pipe(Kt(t=>(this.errorMessage=t.message,Mn))).subscribe()}validateExpression(){var t=this.currentValue.toUpperCase().match(/^LPT[1-9]$|^COM[1-9]$/g)||this.currentValue.toUpperCase().match(/^AUX$|^CON$|^NUL$|^SITEMAP$|^LINKCLICK$|^KEEPALIVE$|^DEFAULT$|^ERRORPAGE$|^LOGIN$|^REGISTER$/g);return!!t&&t.length>0&&(this.errorMessage="Invalid Name."),0===this.errorMessage.length}}ks.\u0275fac=function(t){return new(t||ks)(p(ud),p(_s),p(Bi))},ks.\u0275cmp=Te({type:ks,selectors:[["app-edit-page-dialog"]],decls:9,vars:5,consts:[["class","example-form-field","appearance","outline",4,"ngIf"],[4,"ngIf"],["class","error-message",4,"ngIf"],["mat-dialog-actions","",1,"dialog-action"],["mat-flat-button","","disableRipple","",1,"button",3,"click"],["class","button","mat-flat-button","","disableRipple","",3,"click",4,"ngIf"],["appearance","outline",1,"example-form-field"],["matInput","","required","",3,"ngModel","ngModelChange"],["matInput","",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["mat-table","",3,"dataSource"],["matColumnDef","Url"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","UrlType"],["matColumnDef","GeneratedBy"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],[1,"error-message"]],template:function(t,e){1&t&&(y(0,"mat-label"),k(1),b(),M(2,C5,6,5,"mat-form-field",0),M(3,I5,13,3,"div",1),M(4,k5,2,1,"span",2),y(5,"div",3)(6,"a",4),H("click",function(){return e.cancel()}),k(7," Cancel "),b(),M(8,R5,2,0,"a",5),b()),2&t&&(w(1),At(" ",e.propertyName," "),w(1),S("ngIf","PrimaryUrl"!==e.propertyName),w(1),S("ngIf","PrimaryUrl"===e.propertyName),w(1),S("ngIf",e.errorMessage.length>0),w(4),S("ngIf","PrimaryUrl"!==e.propertyName))},directives:[od,ar,Im,dT,Ba,fu,tg,hu,a$,I0,Hp,vm,fl,xs,Ts,As,Ss,Is,pl,ml,gl,_l,Pm,Cm],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}mat-label[_ngcontent-%COMP%]{font-size:12px;font-weight:600;text-transform:uppercase;margin-bottom:5px;display:block}input.mat-input-element[_ngcontent-%COMP%]{margin-bottom:2px;font-weight:500}table[_ngcontent-%COMP%]{width:100%}th.mat-header-cell[_ngcontent-%COMP%]{font-size:12px;font-weight:700;color:#46292b;padding:8px;text-transform:uppercase}td.mat-cell[_ngcontent-%COMP%]{font-size:12px;padding:8px;color:#000}td[_ngcontent-%COMP%]:first-child{word-break:break-word}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:center}.button[_ngcontent-%COMP%]{border:1px solid #3f51b5;height:34px;padding:0 22px;font-size:14px;line-height:34px;color:#3f51b5;background:#FFFFFF;border-radius:3px;cursor:pointer}.button[_ngcontent-%COMP%]:hover, .button[_ngcontent-%COMP%]:focus, .button[_ngcontent-%COMP%]:visited{color:#3f51b5!important;background:#f5f8fa!important}.button[_ngcontent-%COMP%]:disabled, .button[disabled][_ngcontent-%COMP%], .button[_ngcontent-%COMP%]:disabled:hover, .button[_ngcontent-%COMP%]:disabled:focus, .button[_ngcontent-%COMP%]:disabled:visited{border:1px solid #999999!important;background-color:#0000001f!important;color:#666!important;cursor:not-allowed!important;pointer-events:none}a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:focus, a[_ngcontent-%COMP%]:visited{text-decoration:none;font-family:Roboto,Helvetica Neue,sans-serif;background:#FFFFFF}invalid-input[_ngcontent-%COMP%]{color:red}.error-message[_ngcontent-%COMP%]{color:red;text-weight:600} .mat-form-field-appearance-outline .mat-form-field-outline{color:#959695} .mat-button-focus-overlay{background-color:transparent}"]}),Ve([yr(_e.urls)],ks.prototype,"pageUrls$",void 0);const O5=["input"],P5=function(n){return{enterDuration:n}},F5=["*"],N5=new A("mat-checkbox-default-options",{providedIn:"root",factory:_T});function _T(){return{color:"accent",clickAction:"check-indeterminate"}}let L5=0;const yT=_T(),V5={provide:$n,useExisting:Fe(()=>vT),multi:!0};class B5{}const H5=LS(Yu(fm(Zr(class{constructor(n){this._elementRef=n}}))));let vT=(()=>{class n extends H5{constructor(e,i,r,o,s,a,l){super(e),this._changeDetectorRef=i,this._focusMonitor=r,this._ngZone=o,this._animationMode=a,this._options=l,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++L5,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new X,this.indeterminateChange=new X,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||yT,this.color=this.defaultColor=this._options.color||yT.color,this.tabIndex=parseInt(s)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Me(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const i=Me(e);i!==this.disabled&&(this._disabled=i,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const i=e!=this._indeterminate;this._indeterminate=Me(e),i&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let i=this._currentCheckState,r=this._elementRef.nativeElement;if(i!==e&&(this._currentAnimationClass.length>0&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},1e3)})}}_emitChangeEvent(){const e=new B5;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(e){var i;const r=null===(i=this._options)||void 0===i?void 0:i.clickAction;e.stopPropagation(),this.disabled||"noop"===r?!this.disabled&&"noop"===r&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==r&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(e,i){e?this._focusMonitor.focusVia(this._inputElement,e,i):this._inputElement.nativeElement.focus(i)}_onInteractionEvent(e){e.stopPropagation()}_getAnimationClassForCheckStateTransition(e,i){if("NoopAnimations"===this._animationMode)return"";let r="";switch(e){case 0:if(1===i)r="unchecked-checked";else{if(3!=i)return"";r="unchecked-indeterminate"}break;case 2:r=1===i?"unchecked-checked":"unchecked-indeterminate";break;case 1:r=2===i?"checked-unchecked":"checked-indeterminate";break;case 3:r=1===i?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${r}`}_syncIndeterminate(e){const i=this._inputElement;i&&(i.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){return new(e||n)(p(W),p(It),p(fr),p(z),Zn("tabindex"),p(mr,8),p(N5,8))},n.\u0275cmp=Te({type:n,selectors:[["mat-checkbox"]],viewQuery:function(e,i){if(1&e&&(at(O5,5),at(ds,5)),2&e){let r;oe(r=se())&&(i._inputElement=r.first),oe(r=se())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,i){2&e&&(Pr("id",i.id),ge("tabindex",null),Ue("mat-checkbox-indeterminate",i.indeterminate)("mat-checkbox-checked",i.checked)("mat-checkbox-disabled",i.disabled)("mat-checkbox-label-before","before"==i.labelPosition)("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[$([V5]),R],ngContentSelectors:F5,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,i){if(1&e&&(ln(),y(0,"label",0,1)(2,"span",2)(3,"input",3,4),H("change",function(o){return i._onInteractionEvent(o)})("click",function(o){return i._onInputClick(o)}),b(),y(5,"span",5),re(6,"span",6),b(),re(7,"span",7),y(8,"span",8),Ar(),y(9,"svg",9),re(10,"path",10),b(),Wl(),re(11,"span",11),b()(),y(12,"span",12,13),H("cdkObserveContent",function(){return i._onLabelTextChange()}),y(14,"span",14),k(15,"\xa0"),b(),qe(16),b()()),2&e){const r=Cc(1),o=Cc(13);ge("for",i.inputId),w(2),Ue("mat-checkbox-inner-container-no-side-margin",!o.textContent||!o.textContent.trim()),w(1),S("id",i.inputId)("required",i.required)("checked",i.checked)("disabled",i.disabled)("tabIndex",i.tabIndex),ge("value",i.value)("name",i.name)("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby)("aria-checked",i._getAriaChecked())("aria-describedby",i.ariaDescribedby),w(2),S("matRippleTrigger",r)("matRippleDisabled",i._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",function hw(n,t,e,i){return fw(T(),Bt(),n,t,e,i)}(19,P5,"NoopAnimations"===i._animationMode?0:150))}},directives:[ds,EM],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),n})(),bT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=te({type:n}),n.\u0275inj=J({}),n})(),$5=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=te({type:n}),n.\u0275inj=J({imports:[[mm,Ge,Vg,bT],Ge,bT]}),n})();function z5(n,t){1&n&&(y(0,"th",16),k(1,"Role Name"),b())}function G5(n,t){if(1&n&&(y(0,"td",17)(1,"span"),k(2),b()()),2&n){const e=t.$implicit;w(2),Ze(e.RoleName)}}function W5(n,t){1&n&&(y(0,"th",18),k(1,"View"),b())}function q5(n,t){if(1&n&&(y(0,"td",19),re(1,"mat-checkbox",20),b()),2&n){const e=t.$implicit;w(1),S("checked",e.View)}}function Y5(n,t){1&n&&(y(0,"th",18),k(1,"Edit"),b())}function K5(n,t){if(1&n&&(y(0,"td",19),re(1,"mat-checkbox",20),b()),2&n){const e=t.$implicit;w(1),S("checked",e.Edit)}}function Q5(n,t){1&n&&re(0,"tr",21)}function Z5(n,t){1&n&&re(0,"tr",22)}function X5(n,t){if(1&n&&(y(0,"tr")(1,"td",23),k(2," No Records Found! "),b()()),2&n){const e=O();w(1),ge("colspan",e.displayedRoleColumns.length)}}function J5(n,t){1&n&&(y(0,"th",16),k(1,"User Name"),b())}function e4(n,t){if(1&n&&(y(0,"td",17)(1,"span"),k(2),b()()),2&n){const e=t.$implicit;w(2),Ze(e.UserName)}}function t4(n,t){1&n&&(y(0,"th",18),k(1,"View"),b())}function n4(n,t){if(1&n&&(y(0,"td",19),re(1,"mat-checkbox",20),b()),2&n){const e=t.$implicit;w(1),S("checked",e.View)}}function i4(n,t){1&n&&(y(0,"th",18),k(1,"Edit"),b())}function r4(n,t){if(1&n&&(y(0,"td",19),re(1,"mat-checkbox",20),b()),2&n){const e=t.$implicit;w(1),S("checked",e.Edit)}}function o4(n,t){1&n&&re(0,"tr",21)}function s4(n,t){1&n&&re(0,"tr",22)}function a4(n,t){if(1&n&&(y(0,"tr")(1,"td",24),k(2," No Records Found! "),b()()),2&n){const e=O();w(1),ge("colspan",e.displayedUserColumns.length)}}class no{constructor(t,e,i){this.data=t,this.dialogRef=e,this.store=i,this.saved=new X,this.isEditDisabled=!0,this.displayedRoleColumns=["rolename","view","edit"],this.displayedUserColumns=["username","view","edit"]}ngOnInit(){this.portalId=this.data.portalId,this.tabId=this.data.tabId,this.store.dispatch(new W0(this.portalId,this.tabId)).subscribe()}cancel(){this.dialogRef.close()}edit(){}}function l4(n,t){1&n&&(y(0,"th",9),k(1,"Title"),b())}function c4(n,t){if(1&n&&(y(0,"td",10)(1,"span"),k(2),b()()),2&n){const e=t.$implicit;w(2),Ze(e.Title)}}function u4(n,t){1&n&&(y(0,"th",9),k(1,"Module Type"),b())}function d4(n,t){if(1&n&&(y(0,"td",10)(1,"span"),k(2),b()()),2&n){const e=t.$implicit;w(2),Ze(e.ModuleType)}}function h4(n,t){1&n&&re(0,"tr",11)}function f4(n,t){1&n&&re(0,"tr",12)}no.\u0275fac=function(t){return new(t||no)(p(ud),p(_s),p(Bi))},no.\u0275cmp=Te({type:no,selectors:[["app-edit-permissions-dialog"]],decls:41,vars:13,consts:[[1,"table-container"],["mat-table","",3,"dataSource"],["matColumnDef","rolename"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","view"],["mat-header-cell","","width","100",4,"matHeaderCellDef"],["mat-cell","","align","center",4,"matCellDef"],["matColumnDef","edit"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[4,"ngIf"],["matColumnDef","username"],["mat-dialog-actions","",1,"dialog-action"],["mat-flat-button","","disableRipple","",1,"button",3,"click"],["mat-flat-button","","disableRipple","",1,"button",3,"disabled","click"],["mat-header-cell",""],["mat-cell",""],["mat-header-cell","","width","100"],["mat-cell","","align","center"],["disableRipple","","disabled","true",3,"checked"],["mat-header-row",""],["mat-row",""],[2,"text-align","center"],[1,"info",2,"text-align","center"]],template:function(t,e){if(1&t&&(y(0,"div",0)(1,"h2"),k(2,"Role Permissions"),b(),y(3,"table",1),Ie(4,2),M(5,z5,2,0,"th",3),M(6,G5,3,1,"td",4),ke(),Ie(7,5),M(8,W5,2,0,"th",6),M(9,q5,2,1,"td",7),ke(),Ie(10,8),M(11,Y5,2,0,"th",6),M(12,K5,2,1,"td",7),ke(),M(13,Q5,1,0,"tr",9),M(14,Z5,1,0,"tr",10),b(),y(15,"table"),M(16,X5,3,1,"tr",11),or(17,"async"),b()(),y(18,"div",0)(19,"h2"),k(20,"User Permissions"),b(),y(21,"table",1),Ie(22,12),M(23,J5,2,0,"th",3),M(24,e4,3,1,"td",4),ke(),Ie(25,5),M(26,t4,2,0,"th",6),M(27,n4,2,1,"td",7),ke(),Ie(28,8),M(29,i4,2,0,"th",6),M(30,r4,2,1,"td",7),ke(),M(31,o4,1,0,"tr",9),M(32,s4,1,0,"tr",10),b(),y(33,"table"),M(34,a4,3,1,"tr",11),or(35,"async"),b()(),y(36,"div",13)(37,"a",14),H("click",function(){return e.cancel()}),k(38," Cancel\n"),b(),y(39,"a",15),H("click",function(){return!e.isEditDisabled&&e.edit()}),k(40," Edit\n"),b()()),2&t){let i,r;w(3),S("dataSource",e.rolePermissions$),w(10),S("matHeaderRowDef",e.displayedRoleColumns),w(1),S("matRowDefColumns",e.displayedRoleColumns),w(2),S("ngIf",0===(null==(i=sr(17,9,e.rolePermissions$))?null:i.length)),w(5),S("dataSource",e.userPermissions$),w(10),S("matHeaderRowDef",e.displayedUserColumns),w(1),S("matRowDefColumns",e.displayedUserColumns),w(2),S("ngIf",0===(null==(r=sr(35,11,e.userPermissions$))?null:r.length)),w(5),S("disabled",e.isEditDisabled)}},directives:[fl,xs,Ts,As,Ss,Is,vT,pl,ml,gl,_l,ar,Pm,Cm],pipes:[Yc],styles:["table[_ngcontent-%COMP%]{width:100%}th.mat-header-cell[_ngcontent-%COMP%]{font-size:12px;font-weight:700;color:#46292b;padding:8px;text-transform:uppercase}th.mat-header-cell[_ngcontent-%COMP%]:not(:first-child){text-align:center}td.mat-cell[_ngcontent-%COMP%]{font-size:12px;padding:8px;color:#000}td[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{cursor:not-allowed}mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px;margin-right:7px;vertical-align:middle;cursor:pointer}h2[_ngcontent-%COMP%]{font-size:16px;font-weight:700;color:#000;text-align:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:center}.button[_ngcontent-%COMP%]{border:1px solid #3f51b5;height:34px;padding:0 22px;font-size:14px;line-height:34px;color:#3f51b5;background:#FFFFFF;border-radius:3px;cursor:pointer}.button[_ngcontent-%COMP%]:hover, .button[_ngcontent-%COMP%]:focus, .button[_ngcontent-%COMP%]:visited{color:#3f51b5!important;background:#f5f8fa!important}.button[_ngcontent-%COMP%]:disabled, .button[disabled][_ngcontent-%COMP%], .button[_ngcontent-%COMP%]:disabled:hover, .button[_ngcontent-%COMP%]:disabled:focus, .button[_ngcontent-%COMP%]:disabled:visited{border:1px solid #999999!important;background-color:#0000001f!important;color:#666!important;cursor:not-allowed!important;pointer-events:none}a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:focus, a[_ngcontent-%COMP%]:visited{text-decoration:none;font-family:Roboto,Helvetica Neue,sans-serif;background:#FFFFFF} .mat-checkbox-checked.mat-accent .mat-checkbox-background{background-color:#d3d3d3} .mat-checkbox-checkmark-path{stroke:#707070!important} .mat-button-focus-overlay{background-color:transparent}.table-container[_ngcontent-%COMP%]{margin-bottom:20px}.info[_ngcontent-%COMP%]{padding:10px 0}"]}),Ve([yr(_e.userPermissions)],no.prototype,"userPermissions$",void 0),Ve([yr(_e.rolePermissions)],no.prototype,"rolePermissions$",void 0);class Rs{constructor(t,e,i){this.data=t,this.dialogRef=e,this.store=i,this.displayedPageModuleColumns=["Title","ModuleType"]}ngOnInit(){this.portalId=this.data.portalId,this.tabId=this.data.tabId,this.store.dispatch(new Y0(this.portalId,this.tabId))}cancel(){this.dialogRef.close()}}function CT(n){return t=>t.lift(new p4(n))}Rs.\u0275fac=function(t){return new(t||Rs)(p(ud),p(_s),p(Bi))},Rs.\u0275cmp=Te({type:Rs,selectors:[["app-manage-page-modules-dialog"]],decls:13,vars:3,consts:[["mat-table","",3,"dataSource"],["matColumnDef","Title"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","ModuleType"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions","",1,"dialog-action"],["mat-flat-button","","disableRipple","",1,"button",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(y(0,"mat-dialog-content")(1,"table",0),Ie(2,1),M(3,l4,2,0,"th",2),M(4,c4,3,1,"td",3),ke(),Ie(5,4),M(6,u4,2,0,"th",2),M(7,d4,3,1,"td",3),ke(),M(8,h4,1,0,"tr",5),M(9,f4,1,0,"tr",6),b()(),y(10,"div",7)(11,"a",8),H("click",function(){return e.cancel()}),k(12," Cancel "),b()()),2&t&&(w(1),S("dataSource",e.pageModules$),w(7),S("matHeaderRowDef",e.displayedPageModuleColumns),w(1),S("matRowDefColumns",e.displayedPageModuleColumns))},directives:[Iz,fl,xs,Ts,As,Ss,Is,pl,ml,gl,_l,Pm,Cm],styles:["table[_ngcontent-%COMP%]{width:100%}th.mat-header-cell[_ngcontent-%COMP%]{font-size:12px;font-weight:700;color:#46292b;padding:8px;text-transform:uppercase}td.mat-cell[_ngcontent-%COMP%]{font-size:12px;padding:8px;color:#000}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:center}.button[_ngcontent-%COMP%]{border:1px solid #3f51b5;height:34px;padding:0 22px;font-size:14px;line-height:34px;color:#3f51b5;background:#FFFFFF;border-radius:3px;cursor:pointer}.button[_ngcontent-%COMP%]:hover, .button[_ngcontent-%COMP%]:focus, .button[_ngcontent-%COMP%]:visited{color:#3f51b5!important;background:#f5f8fa!important}.button[_ngcontent-%COMP%]:disabled, .button[disabled][_ngcontent-%COMP%], .button[_ngcontent-%COMP%]:disabled:hover, .button[_ngcontent-%COMP%]:disabled:focus, .button[_ngcontent-%COMP%]:disabled:visited{border:1px solid #999999!important;background-color:#0000001f!important;color:#666!important;cursor:not-allowed!important;pointer-events:none}a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:focus, a[_ngcontent-%COMP%]:visited{text-decoration:none;font-family:Roboto,Helvetica Neue,sans-serif;background:#FFFFFF} .mat-button-focus-overlay{background-color:transparent}"]}),Ve([yr(_e.modules)],Rs.prototype,"pageModules$",void 0);class p4{constructor(t){this.callback=t}call(t,e){return e.subscribe(new g4(t,this.callback))}}class g4 extends Oe{constructor(t,e){super(t),this.add(new Ee(e))}}const m4=["*"];function wT(n){return Error(`Unable to find icon with the name "${n}"`)}function DT(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function ET(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class io{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let Td=(()=>{class n{constructor(e,i,r,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,o){return this._addSvgIconConfig(e,i,new io(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){const s=this._sanitizer.sanitize(Ae.HTML,r);if(!s)throw ET(r);return this._addSvgIconConfig(e,i,new io("",s,o))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new io(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const o=this._sanitizer.sanitize(Ae.HTML,i);if(!o)throw ET(i);return this._addSvgIconSetConfig(e,new io("",o,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(Ae.RESOURCE_URL,e);if(!i)throw DT(e);const r=this._cachedIconsByUrl.get(i);return r?B(xd(r)):this._loadSvgIconFromConfig(new io(e,null)).pipe(De(o=>this._cachedIconsByUrl.set(i,o)),Q(o=>xd(o)))}getNamedSvgIcon(e,i=""){const r=MT(i,e);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):Oi(wT(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?B(xd(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Q(i=>xd(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);return r?B(r):tu(i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(Kt(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(Ae.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),B(null)})))).pipe(Q(()=>{const s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw wT(e);return s}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const o=i[r];if(o.svgText&&o.svgText.indexOf(e)>-1){const s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,e,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(De(i=>e.svgText=i),Q(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?B(null):this._fetchIcon(e).pipe(De(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const o=e.querySelector(`[id="${i}"]`);if(!o)return null;const s=o.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,r);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),r);const a=this._svgElementFromString("");return a.appendChild(s),this._setSvgAttributes(a,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error(" |