����JFIF��x�x����'403WebShell
403Webshell
Server IP : 78.140.185.180  /  Your IP : 18.220.98.157
Web Server : LiteSpeed
System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : builderbox ( 1072)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/builderbox/public_html/public/client/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/builderbox/public_html/public/client/main-es2015.ec5d0f3c273738031d73.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"+41h":function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("fXoL"),r=n("tyNb"),s=n("+rOU"),o=n("pLZG");class a{constructor(t){this.overlayRef=t}close(){this.overlayRef&&this.overlayRef.dispose()}backdropClick(){return this.overlayRef.backdropClick()}attachments(){return this.overlayRef.attachments()}detachments(){return this.overlayRef.detachments()}backdropElement(){return this.overlayRef.backdropElement}contextMenuElement(){return this.overlayRef.overlayElement}}const c=new i.r("CONTEXT_MENU_DATA");var l=n("rDax");let u=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.zone=e,this.injector=n,this.resolver=i,this.overlay=s,this.router.events.pipe(Object(o.a)(t=>t instanceof r.c)).subscribe(()=>this.close())}open(t,e,n={}){if(this.close(),!t)return;const i=this.createOverlay(e,n);this.openContextMenu=new a(i);const r=new s.g(this.injector,new WeakMap([[c,n.data],[a,this.openContextMenu]])),o=new s.d(t,null,r);return i.attach(o),this.bindEventsToOverlay(),this.openContextMenu}close(){this.removeLastOrigin(),this.openContextMenu&&(this.openContextMenu.close(),this.openContextMenu=null)}createOverlay(t,e){return this.overlay.create({positionStrategy:this.getMenuPositionStrategy(t,e),scrollStrategy:this.overlay.scrollStrategies.close(),hasBackdrop:!0,backdropClass:"context-menu-backdrop",panelClass:"context-menu-overlay"})}bindEventsToOverlay(){this.openContextMenu.contextMenuElement().addEventListener("click",()=>{this.close()}),this.openContextMenu.backdropClick().subscribe(()=>{this.close()}),this.openContextMenu.backdropElement().addEventListener("contextmenu",t=>{t.preventDefault(),this.close()}),this.openContextMenu.detachments().subscribe(()=>{this.close()})}getMenuPositionStrategy(t,e){this.createOriginFromEvent(t,e);const n={originX:e.originX||"center",originY:e.originY||"bottom",overlayX:e.overlayX||"center",overlayY:e.overlayY||"top"};return this.overlay.position().flexibleConnectedTo(new i.l(this.lastOrigin)).withPositions([n,{originX:"end",originY:"bottom",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"bottom"}])}createOriginFromEvent(t,e){this.removeLastOrigin(),t instanceof HTMLElement||t instanceof EventTarget?this.lastOrigin=t:(this.lastOrigin=document.createElement("div"),this.lastOrigin.style.position="fixed",this.lastOrigin.style.top=t.clientY+(e.offsetY||0)+"px",this.lastOrigin.style.left=t.clientX+(e.offsetX||0)+"px",this.lastOrigin.id="dynamic-context-menu-origin",document.body.appendChild(this.lastOrigin))}removeLastOrigin(){this.lastOrigin&&"dynamic-context-menu-origin"===this.lastOrigin.id&&this.lastOrigin.remove()}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(r.d),i.Xb(i.A),i.Xb(i.s),i.Xb(i.j),i.Xb(l.a))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},"+JQf":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("fXoL"),r=n("sPnx");let s=(()=>{class t{constructor(t){this.http=t}all(){return this.http.get("themes")}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(r.a))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},"+cHU":function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var i=n("0IaG"),r=n("fXoL"),s=n("f+iI"),o=n("kmQS"),a=n("ZfYz"),c=n("twBr");function l(t,e){if(1&t){const t=r.Ub();r.Tb(0,"button",9),r.ac("click",(function(){return r.vc(t),r.ec().markAllAsRead()})),r.Hc(1,"Mark all as read "),r.Sb()}}function u(t,e){1&t&&r.Ob(0,"mat-progress-bar",10)}function h(t,e){if(1&t){const t=r.Ub();r.Tb(0,"a",11),r.ac("click",(function(){return r.vc(t),r.ec().closePanel()})),r.Tb(1,"span",2),r.Hc(2,"View all"),r.Sb(),r.Ob(3,"mat-icon",12),r.Sb()}}function d(t,e){if(1&t){const t=r.Ub();r.Tb(0,"a",13),r.ac("click",(function(){return r.vc(t),r.ec().closePanel()})),r.Tb(1,"span",2),r.Hc(2,"Settings"),r.Sb(),r.Ob(3,"mat-icon",14),r.Sb()}}let p=(()=>{class t{constructor(t,e,n,i){this.notifications=t,this.settings=e,this.overlayPanelRef=n,this.currentUser=i}ngOnInit(){this.notifications.all$.value||this.notifications.load().subscribe()}closePanel(){this.overlayPanelRef.close()}markAllAsRead(){this.closePanel(),this.notifications.markAllAsRead().subscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(s.a),r.Nb(o.a),r.Nb(a.a),r.Nb(c.a))},t.\u0275cmp=r.Hb({type:t,selectors:[["notification-panel"]],hostAttrs:[1,"material-panel"],hostVars:1,hostBindings:function(t,e){2&t&&r.Ec("@dialogContainer","enter")},decls:15,vars:16,consts:[[1,"panel-content"],[1,"header"],["trans",""],["mat-button","","class","mark-as-read-button","type","button","trans","",3,"click",4,"ngIf"],["mode","indeterminate","color","accent",4,"ngIf"],[3,"notifications","compact"],[1,"footer"],["routerLink","notifications","class","view-all-button","trans","",3,"click",4,"ngIf"],["routerLink","notifications/settings","class","settings-button",3,"click",4,"ngIf"],["mat-button","","type","button","trans","",1,"mark-as-read-button",3,"click"],["mode","indeterminate","color","accent"],["routerLink","notifications","trans","",1,"view-all-button",3,"click"],["svgIcon","keyboard-arrow-right"],["routerLink","notifications/settings",1,"settings-button",3,"click"],["svgIcon","settings"]],template:function(t,e){if(1&t&&(r.Tb(0,"div",0),r.Tb(1,"div",1),r.Tb(2,"h2",2),r.Hc(3,"Notifications"),r.Sb(),r.Fc(4,l,2,0,"button",3),r.fc(5,"async"),r.Sb(),r.Fc(6,u,1,0,"mat-progress-bar",4),r.fc(7,"async"),r.Ob(8,"notification-list",5),r.fc(9,"async"),r.Tb(10,"div",6),r.Fc(11,h,4,0,"a",7),r.fc(12,"async"),r.Fc(13,d,4,0,"a",8),r.fc(14,"async"),r.Sb(),r.Sb()),2&t){var n=null;r.Bb(4),r.kc("ngIf",r.gc(5,6,e.notifications.unreadCount$)),r.Bb(2),r.kc("ngIf",r.gc(7,8,e.notifications.loading$)),r.Bb(2),r.kc("notifications",r.gc(9,10,e.notifications.all$))("compact",!0),r.Bb(3),r.kc("ngIf",r.gc(12,12,e.notifications.canLoadMore)),r.Bb(2),r.kc("ngIf",e.settings.get("notif.subs.integrated")&&e.currentUser.hasPermission("notification.subscribe")&&(null==(n=r.gc(14,14,e.notifications.all$))?null:n.length))}},styles:["[_nghost-%COMP%]{display:block;background-color:var(--be-background);padding:0;width:460px;min-height:275px;max-height:90vh;max-width:95vw;margin:auto;position:relative;overflow:auto}.header[_ngcontent-%COMP%]{display:flex;align-items:center;padding:10px 20px;border-bottom:1px solid var(--be-divider-default)}h2[_ngcontent-%COMP%]{font-weight:400;margin:0;font-size:1.8rem}.mark-as-read-button[_ngcontent-%COMP%]{display:block;margin-left:auto;color:var(--be-secondary-text);font-size:1.3rem}.footer[_ngcontent-%COMP%]{display:flex;align-items:center;padding:15px}.footer[_ngcontent-%COMP%]:empty{display:none}.footer[_ngcontent-%COMP%]   .view-all-button[_ngcontent-%COMP%]{margin-right:auto}.footer[_ngcontent-%COMP%]   .settings-button[_ngcontent-%COMP%]{margin-left:auto}.footer[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:block;color:inherit}.footer[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:underline}.footer[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{vertical-align:middle;width:20px;height:20px;line-height:20px;margin-left:5px}.mat-progress-bar[_ngcontent-%COMP%]{position:absolute;width:100%;left:0;top:46px}"],data:{animation:[i.j.dialogContainer]},changeDetection:0}),t})()},"+rOU":function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return d})),n.d(e,"c",(function(){return p})),n.d(e,"d",(function(){return a})),n.d(e,"e",(function(){return h})),n.d(e,"f",(function(){return m})),n.d(e,"g",(function(){return g})),n.d(e,"h",(function(){return b})),n.d(e,"i",(function(){return c}));var i=n("fXoL"),r=n("ofXK");function s(){throw Error("Host already has a portal attached")}class o{attach(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&s(),this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null==t?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class a extends o{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class c extends o{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}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 l extends o{constructor(t){super(),this.element=t instanceof i.l?t.nativeElement:t}}class u{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&s(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof a?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof c?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof l?(this._attachedPortal=t,this.attachDomPortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()}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 h extends u{constructor(t,e,n,i,r){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{if(!this._document)throw Error("Cannot attach DOM portal without _document constructor parameter");const e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");const n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=r}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let d=(()=>{class t extends c{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.N),i.Nb(i.R))},t.\u0275dir=i.Ib({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[i.yb]}),t})(),p=(()=>{class t extends u{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new i.n,this.attachDomPortal=t=>{if(!this._document)throw Error("Cannot attach DOM portal without _document constructor parameter");const e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");const n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.j),i.Nb(i.R),i.Nb(r.e))},t.\u0275dir=i.Ib({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.yb]}),t})(),m=(()=>{class t extends p{}return t.\u0275fac=function(e){return f(e||t)},t.\u0275dir=i.Ib({type:t,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[i.Ab([{provide:p,useExisting:t}]),i.yb]}),t})();const f=i.Vb(m);let b=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)}}),t})();class g{constructor(t,e){this._parentInjector=t,this._customTokens=e}get(t,e){const n=this._customTokens.get(t);return void 0!==n?n:this._parentInjector.get(t,e)}}},"/1cH":function(t,e,n){"use strict";n.d(e,"a",(function(){return R})),n.d(e,"b",(function(){return V})),n.d(e,"c",(function(){return H}));var i=n("u47x"),r=n("8LU1"),s=n("fXoL"),o=n("FKr1"),a=n("quSY"),c=n("XNiG"),l=n("NXyV"),u=n("VRyK"),h=n("LRne"),d=n("xgIS"),p=n("ofXK"),m=n("rDax"),f=n("vxfF"),b=n("FtGj"),g=n("nLfN"),_=n("+rOU"),v=n("3Pt+"),y=n("kmnG"),w=n("IzEk"),C=n("eIep"),x=n("pLZG"),k=n("lJxs"),O=n("vkgz"),S=n("3E0/"),E=n("cH1L");const T=["panel"];function A(t,e){if(1&t&&(s.Tb(0,"div",0,1),s.ic(2),s.Sb()),2&t){const t=s.ec();s.kc("id",t.id)("ngClass",t._classList)}}const I=["*"];let D=0;class P{constructor(t,e){this.source=t,this.option=e}}class j{}const F=Object(o.w)(j),M=new s.r("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let R=(()=>{class t extends F{constructor(t,e,n){super(),this._changeDetectorRef=t,this._elementRef=e,this._activeOptionChanges=a.a.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new s.n,this.opened=new s.n,this.closed=new s.n,this.optionActivated=new s.n,this._classList={},this.id="mat-autocomplete-"+D++,this._autoActiveFirstOption=!!n.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=Object(r.c)(t)}set classList(t){this._classList=t&&t.length?t.split(" ").reduce((t,e)=>(t[e.trim()]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new i.b(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){const e=new P(this,t);this.optionSelected.emit(e)}_setVisibilityClasses(t){t["mat-autocomplete-visible"]=this.showPanel,t["mat-autocomplete-hidden"]=!this.showPanel}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.h),s.Nb(s.l),s.Nb(M))},t.\u0275cmp=s.Hb({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,n){var i;1&t&&(s.Gb(n,o.l,!0),s.Gb(n,o.e,!0)),2&t&&(s.rc(i=s.bc())&&(e.options=i),s.rc(i=s.bc())&&(e.optionGroups=i))},viewQuery:function(t,e){var n;1&t&&(s.Bc(s.N,!0),s.Nc(T,!0)),2&t&&(s.rc(n=s.bc())&&(e.template=n.first),s.rc(n=s.bc())&&(e.panel=n.first))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple",displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[s.Ab([{provide:o.f,useExisting:t}]),s.yb],ngContentSelectors:I,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(s.jc(),s.Fc(0,A,3,2,"ng-template"))},directives:[p.q],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),t})();const N=new s.r("mat-autocomplete-scroll-strategy"),L={provide:N,deps:[m.a],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},B={provide:v.s,useExisting:Object(s.V)(()=>H),multi:!0};let H=(()=>{class t{constructor(t,e,n,i,r,s,o,h,d,p){this._element=t,this._overlay=e,this._viewContainerRef=n,this._zone=i,this._changeDetectorRef=r,this._dir=o,this._formField=h,this._document=d,this._viewportRuler=p,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=a.a.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new c.a,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Object(l.a)(()=>this.autocomplete&&this.autocomplete.options?Object(u.a)(...this.autocomplete.options.map(t=>t.onSelectionChange)):this._zone.onStable.asObservable().pipe(Object(w.a)(1),Object(C.a)(()=>this.optionSelections))),this._scrollStrategy=s}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=Object(r.c)(t)}ngAfterViewInit(){const t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Object(u.a)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Object(x.a)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Object(x.a)(()=>this._overlayAttached)):Object(h.a)()).pipe(Object(k.a)(t=>t instanceof o.n?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Object(u.a)(Object(d.a)(this._document,"click"),Object(d.a)(this._document,"touchend")).pipe(Object(x.a)(t=>{const e=this._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,n=this._formField?this._formField._elementRef.nativeElement:null,i=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&e!==this._element.nativeElement&&(!n||!n.contains(e))&&(!i||!i.contains(e))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(e)}))}writeValue(t){Promise.resolve(null).then(()=>this._setTriggerValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){const e=t.keyCode;if(e===b.g&&t.preventDefault(),this.activeOption&&e===b.f&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){const n=this.autocomplete._keyManager.activeItem,i=e===b.p||e===b.d;this.panelOpen||e===b.o?this.autocomplete._keyManager.onKeydown(t):i&&this._canOpen()&&this.openPanel(),(i||this.autocomplete._keyManager.activeItem!==n)&&this._scrollToOption()}}_handleInput(t){let e=t.target,n=e.value;"number"===e.type&&(n=""==n?null:parseFloat(n)),this._previousValue!==n&&(this._previousValue=n,this._onChange(n),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(t=!1){this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_scrollToOption(){const t=this.autocomplete._keyManager.activeItemIndex||0,e=Object(o.t)(t,this.autocomplete.options,this.autocomplete.optionGroups);if(0===t&&1===e)this.autocomplete._setScrollTop(0);else{const n=Object(o.u)(t+e,48,this.autocomplete._getScrollTop(),256);this.autocomplete._setScrollTop(n)}}_subscribeToClosingActions(){const t=this._zone.onStable.asObservable().pipe(Object(w.a)(1)),e=this.autocomplete.options.changes.pipe(Object(O.a)(()=>this._positionStrategy.reapplyLastPosition()),Object(S.a)(0));return Object(u.a)(t,e).pipe(Object(C.a)(()=>{const t=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),t!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),Object(w.a)(1)).subscribe(t=>this._setValueAndClose(t))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(t){const e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,n=null!=e?e:"";this._formField?this._formField._control.value=n:this._element.nativeElement.value=n,this._previousValue=n}_setValueAndClose(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}_clearPreviousSelectedOption(t){this.autocomplete.options.forEach(e=>{e!=t&&e.selected&&e.deselect()})}_attachOverlay(){if(!this.autocomplete)throw Error("Attempting to open an undefined instance of `mat-autocomplete`. Make sure that the id passed to the `matAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.");null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!Object(g.c)(this._element.nativeElement));let t=this._overlayRef;t?(this._positionStrategy.setOrigin(this._getConnectedElement()),t.updateSize({width:this._getPanelWidth()})):(this._portal=new _.i(this.autocomplete.template,this._viewContainerRef),t=this._overlay.create(this._getOverlayConfig()),this._overlayRef=t,t.keydownEvents().subscribe(t=>{(t.keyCode===b.g||t.keyCode===b.p&&t.altKey)&&(this._resetActiveItem(),this._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&t&&t.updateSize({width:this._getPanelWidth()})})),t&&!t.hasAttached()&&(t.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const e=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&e!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new m.b({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir})}_getOverlayPosition(){const t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){const e=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],n=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"}];let i;i="above"===this.position?n:"below"===this.position?e:[...e,...n],t.withPositions(i)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){this.autocomplete._keyManager.setActiveItem(this.autocomplete.autoActiveFirstOption?0:-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.l),s.Nb(m.a),s.Nb(s.R),s.Nb(s.A),s.Nb(s.h),s.Nb(N),s.Nb(E.c,8),s.Nb(y.a,9),s.Nb(p.e,8),s.Nb(f.e))},t.\u0275dir=s.Ib({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&s.ac("focusin",(function(){return e._handleFocus()}))("blur",(function(){return e._onTouched()}))("input",(function(t){return e._handleInput(t)}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&s.Cb("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},exportAs:["matAutocompleteTrigger"],features:[s.Ab([B]),s.zb]}),t})(),V=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)},providers:[L],imports:[[o.m,m.d,o.h,p.c],f.b,o.m,o.h]}),t})()},"/RwR":function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var i=n("0IaG"),r=n("fXoL"),s=n("VaLf"),o=n("kmQS"),a=n("NFeN"),c=n("ofXK"),l=n("bTqV");function u(t,e){if(1&t&&(r.Tb(0,"p",9),r.Hc(1),r.Sb()),2&t){const t=r.ec();r.Bb(1),r.Ic(t.data.bodyBold)}}let h=(()=>{class t{constructor(t,e,n,i){this.dialogRef=t,this.data=e,this.i18n=n,this.settings=i}ngOnInit(){this.data.ok||(this.data.ok="Confirm"),this.data.cancel||(this.data.cancel="Cancel");for(const t in this.data)"string"==typeof this.data[t]&&(this.data[t]=this.i18n.t(this.data[t],this.data.replacements))}confirm(){this.dialogRef.close(!0)}close(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(i.h),r.Nb(i.a),r.Nb(s.a),r.Nb(o.a))},t.\u0275cmp=r.Hb({type:t,selectors:[["confirm-modal"]],decls:14,vars:5,consts:[[1,"modal-header"],["mat-dialog-title","",1,"modal-title"],["type","button","tabindex","-1",1,"close-button","no-style",3,"click"],["svgIcon","close"],["mat-dialog-content","",1,"mat-dialog-contents"],["class","bold",4,"ngIf"],["mat-dialog-actions","",1,"buttons","right","mat-dialog-actions"],["type","button","mat-button","",1,"button","cancel","cancel-button",3,"click"],["type","submit","mat-raised-button","","color","accent","cdkFocusInitial","",1,"button","primary","submit-button",3,"click"],[1,"bold"]],template:function(t,e){1&t&&(r.Tb(0,"div",0),r.Tb(1,"h2",1),r.Hc(2),r.Sb(),r.Tb(3,"button",2),r.ac("click",(function(){return e.close()})),r.Ob(4,"mat-icon",3),r.Sb(),r.Sb(),r.Tb(5,"div",4),r.Tb(6,"p"),r.Hc(7),r.Sb(),r.Fc(8,u,2,1,"p",5),r.Sb(),r.Tb(9,"div",6),r.Tb(10,"button",7),r.ac("click",(function(){return e.close()})),r.Hc(11),r.Sb(),r.Tb(12,"button",8),r.ac("click",(function(){return e.confirm()})),r.Hc(13),r.Sb(),r.Sb()),2&t&&(r.Bb(2),r.Ic(e.data.title),r.Bb(5),r.Ic(e.data.body),r.Bb(1),r.kc("ngIf",e.data.bodyBold),r.Bb(3),r.Ic(e.data.cancel),r.Bb(2),r.Ic(e.data.ok))},directives:[i.i,a.a,i.f,c.t,i.c,l.b],styles:["[_nghost-%COMP%]{display:block;max-width:500px}.modal-header[_ngcontent-%COMP%]{margin-bottom:10px}.bold[_ngcontent-%COMP%]{font-weight:500}p[_ngcontent-%COMP%]{font-size:1.5rem}"],changeDetection:0}),t})()},"/uUt":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("7o/Q");function r(t,e){return n=>n.lift(new s(t,e))}class s{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new o(t,this.compare,this.keySelector))}}class o extends i.a{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}},"/zh3":function(t,e,n){"use strict";n.d(e,"a",(function(){return E}));var i=n("fXoL"),r=n("twBr"),s=n("4vkA"),o=n("kmQS"),a=n("OnlV"),c=n("L317"),l=n("ofXK"),u=n("tyNb"),h=n("STbY"),d=n("NFeN"),p=n("Rd8u");function m(t,e){if(1&t){const t=i.Ub();i.Tb(0,"a",11),i.ac("click",(function(){return i.vc(t),i.ec(2).onItemClick()})),i.Ob(1,"mat-icon",12),i.Tb(2,"span",7),i.Hc(3,"Admin Area"),i.Sb(),i.Sb()}}function f(t,e){if(1&t){const t=i.Ub();i.Tb(0,"a",13),i.ac("click",(function(){return i.vc(t),i.ec(2).onItemClick()})),i.Ob(1,"mat-icon",14),i.Tb(2,"span",7),i.Hc(3,"Notifications"),i.Sb(),i.Sb()}}function b(t,e){if(1&t&&(i.Tb(0,"a",17),i.Ob(1,"mat-icon",18),i.Tb(2,"span",7),i.Hc(3),i.Sb(),i.Sb()),2&t){const t=i.ec().$implicit;i.kc("routerLink",t.route),i.Bb(1),i.kc("svgIcon",t.icon),i.Bb(2),i.Ic(t.name)}}function g(t,e){if(1&t&&(i.Rb(0),i.Fc(1,b,4,3,"a",16),i.Qb()),2&t){const t=e.$implicit,n=i.ec(3);i.Bb(1),i.kc("ngIf",n.shouldShowMenuItem(t))}}function _(t,e){if(1&t&&(i.Rb(0),i.Fc(1,g,2,1,"ng-container",15),i.Qb()),2&t){const t=i.ec(2);i.Bb(1),i.kc("ngForOf",t.config.get("vebto.navbar.dropdownItems"))}}function v(t,e){if(1&t){const t=i.Ub();i.Rb(0),i.Tb(1,"a",19),i.ac("click",(function(){return i.vc(t),i.ec(2).onItemClick()})),i.Ob(2,"mat-icon",20),i.Tb(3,"span",7),i.Hc(4,"Subscription"),i.Sb(),i.Sb(),i.Tb(5,"a",21),i.ac("click",(function(){return i.vc(t),i.ec(2).onItemClick()})),i.Ob(6,"mat-icon",22),i.Tb(7,"span",7),i.Hc(8,"Invoices"),i.Sb(),i.Sb(),i.Qb()}}function y(t,e){1&t&&(i.Rb(0),i.Ob(1,"mat-icon",25),i.Tb(2,"span",7),i.Hc(3,"Light Mode"),i.Sb(),i.Qb())}function w(t,e){1&t&&(i.Ob(0,"mat-icon",26),i.Tb(1,"span",7),i.Hc(2,"Dark Mode"),i.Sb())}function C(t,e){if(1&t){const t=i.Ub();i.Tb(0,"div",23),i.ac("click",(function(){i.vc(t);const e=i.ec(2);return e.theme.toggle(),e.onItemClick()})),i.Fc(1,y,4,0,"ng-container",0),i.fc(2,"async"),i.Fc(3,w,3,0,"ng-template",null,24,i.Gc),i.Sb()}if(2&t){const t=i.sc(4),e=i.ec(2);var n;i.Bb(1),i.kc("ngIf",null==(n=i.gc(2,2,e.theme.selectedTheme$))?null:n.is_dark)("ngIfElse",t)}}function x(t,e){if(1&t){const t=i.Ub();i.Rb(0),i.Fc(1,m,4,0,"a",2),i.Fc(2,f,4,0,"a",3),i.fc(3,"async"),i.ic(4),i.Fc(5,_,2,1,"ng-container",4),i.Tb(6,"a",5),i.ac("click",(function(){return i.vc(t),i.ec().onItemClick()})),i.Ob(7,"mat-icon",6),i.Tb(8,"span",7),i.Hc(9,"Account Settings"),i.Sb(),i.Sb(),i.Fc(10,v,9,0,"ng-container",4),i.Fc(11,C,5,4,"div",8),i.Tb(12,"div",9),i.ac("click",(function(){i.vc(t);const e=i.ec();return e.auth.logOut(),e.onItemClick()})),i.Ob(13,"mat-icon",10),i.Tb(14,"span",7),i.Hc(15,"Log Out"),i.Sb(),i.Sb(),i.Qb()}if(2&t){const t=i.ec();i.Bb(1),i.kc("ngIf",t.currentUser.hasPermission("admin.access")),i.Bb(1),i.kc("ngIf",t.forceNotifButton||i.gc(3,5,t.breakpoints.isMobile$)&&t.config.get("notifications.integrated")),i.Bb(3),i.kc("ngIf",!t.hideConfigItems),i.Bb(5),i.kc("ngIf",t.currentUser.isSubscribed()),i.Bb(1),i.kc("ngIf",t.config.get("themes.user_change"))}}function k(t,e){if(1&t){const t=i.Ub();i.Tb(0,"a",29),i.ac("click",(function(){return i.vc(t),i.ec(2).onItemClick()})),i.Hc(1,"Register"),i.Sb()}}function O(t,e){if(1&t){const t=i.Ub();i.Tb(0,"a",27),i.ac("click",(function(){return i.vc(t),i.ec().onItemClick()})),i.Hc(1,"Login"),i.Sb(),i.Fc(2,k,2,0,"a",28)}if(2&t){const t=i.ec();i.Bb(2),i.kc("ngIf",!t.config.get("registration.disable")&&!t.hideRegisterButton)}}const S=["*"];let E=(()=>{class t{constructor(t,e,n,r,s){this.currentUser=t,this.auth=e,this.config=n,this.breakpoints=r,this.theme=s,this.hideRegisterButton=!1,this.hideConfigItems=!1,this.forceNotifButton=!1,this.itemClicked=new i.n}shouldShowMenuItem(t){const e=!t.permission||this.currentUser.hasPermission(t.permission),n=!t.role||this.currentUser.hasRole(t.role);return e&&n}onItemClick(){this.itemClicked.emit()}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(r.a),i.Nb(s.a),i.Nb(o.a),i.Nb(a.a),i.Nb(c.a))},t.\u0275cmp=i.Hb({type:t,selectors:[["logged-in-user-menu"]],inputs:{hideRegisterButton:"hideRegisterButton",hideConfigItems:"hideConfigItems",forceNotifButton:"forceNotifButton"},outputs:{itemClicked:"itemClicked"},ngContentSelectors:S,decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["guestMenuItems",""],["class","admin-link","mat-menu-item","","routerLink","/admin",3,"click",4,"ngIf"],["class","notifications-link","mat-menu-item","","routerLink","/notifications",3,"click",4,"ngIf"],[4,"ngIf"],["mat-menu-item","","routerLink","/account/settings",1,"account-settings-link",3,"click"],["svgIcon","settings",1,"mat-icon"],["trans",""],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",1,"logout-item",3,"click"],["svgIcon","exit-to-app"],["mat-menu-item","","routerLink","/admin",1,"admin-link",3,"click"],["svgIcon","dashboard",1,"mat-icon"],["mat-menu-item","","routerLink","/notifications",1,"notifications-link",3,"click"],["svgIcon","notifications"],[4,"ngFor","ngForOf"],["mat-menu-item","",3,"routerLink",4,"ngIf"],["mat-menu-item","",3,"routerLink"],[3,"svgIcon"],["mat-menu-item","","routerLink","/billing/subscription",1,"subscription-link",3,"click"],["svgIcon","credit-card",1,"mat-icon"],["mat-menu-item","","routerLink","/billing/invoices",1,"subscription-link",3,"click"],["svgIcon","assignment",1,"mat-icon"],["mat-menu-item","",3,"click"],["lightMode",""],["svgIcon","light-on"],["svgIcon","light"],["routerLink","/login","mat-menu-item","","trans","",3,"click"],["routerLink","/register","mat-menu-item","","trans","",3,"click",4,"ngIf"],["routerLink","/register","mat-menu-item","","trans","",3,"click"]],template:function(t,e){if(1&t&&(i.jc(),i.Fc(0,x,16,7,"ng-container",0),i.fc(1,"async"),i.Fc(2,O,3,1,"ng-template",null,1,i.Gc)),2&t){const t=i.sc(3);i.kc("ngIf",i.gc(1,2,e.currentUser.isLoggedIn$))("ngIfElse",t)}},directives:[l.t,u.g,h.a,d.a,p.a,l.s],pipes:[l.b],styles:[""],changeDetection:0}),t})()},0:function(t,e,n){t.exports=n("zUnb")},"0EQZ":function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return a}));var i=n("7+OI"),r=n("LRne"),s=n("XNiG"),o=n("fXoL");function a(t){return t&&"function"==typeof t.connect}class c extends class{}{constructor(t){super(),this._data=t}connect(){return Object(i.a)(this._data)?this._data:Object(r.a)(this._data)}disconnect(){}}class l{constructor(t=!1,e,n=!0){this._multiple=t,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new s.a,e&&e.length&&(t?e.forEach(t=>this._markSelected(t)):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(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),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){if(t.length>1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")}}let u=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let n of this._listeners)n(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(o.Jb)({factory:function(){return new t},token:t,providedIn:"root"}),t})()},"0EUg":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("bHdf");function r(){return Object(i.a)(1)}},"0Ej5":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("fXoL"),r=n("sPnx");let s=(()=>{class t{constructor(t){this.httpClient=t}get(e,n={}){return this.httpClient.getWithCache(`${t.BASE_URI}/${e.join(",")}`,n)}clearCache(){this.httpClient.clearCache()}}return t.BASE_URI="value-lists",t.\u0275fac=function(e){return new(e||t)(i.Xb(r.a))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},"0Gur":function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var i=n("ofXK"),r=n("A5z7"),s=n("NFeN"),o=n("3Pt+"),a=n("6rvT"),c=n("/1cH"),l=n("bTqV"),u=n("FKr1"),h=n("fXoL");let d=(()=>{class t{}return t.\u0275mod=h.Lb({type:t}),t.\u0275inj=h.Kb({factory:function(e){return new(e||t)},imports:[[i.c,r.e,c.b,o.E,a.a,l.c,s.b,u.r]]}),t})()},"0IaG":function(t,e,n){"use strict";n.d(e,"a",(function(){return S})),n.d(e,"b",(function(){return I})),n.d(e,"c",(function(){return M})),n.d(e,"d",(function(){return P})),n.d(e,"e",(function(){return C})),n.d(e,"f",(function(){return F})),n.d(e,"g",(function(){return N})),n.d(e,"h",(function(){return k})),n.d(e,"i",(function(){return j})),n.d(e,"j",(function(){return y}));var i=n("rDax"),r=n("+rOU"),s=n("fXoL"),o=n("FKr1"),a=n("cH1L"),c=n("ofXK"),l=n("XNiG"),u=n("NXyV"),h=n("LRne"),d=n("pLZG"),p=n("IzEk"),m=n("JX91"),f=n("R0Ic"),b=n("FtGj"),g=n("u47x");function _(t,e){}class v{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 y={dialogContainer:Object(f.m)("dialogContainer",[Object(f.j)("void, exit",Object(f.k)({opacity:0,transform:"scale(0.7)"})),Object(f.j)("enter",Object(f.k)({transform:"none"})),Object(f.l)("* => enter",Object(f.e)("150ms cubic-bezier(0, 0, 0.2, 1)",Object(f.k)({transform:"none",opacity:1}))),Object(f.l)("* => void, * => exit",Object(f.e)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Object(f.k)({opacity:0})))])};function w(){throw Error("Attempting to attach dialog content after content is already attached")}let C=(()=>{class t extends r.a{constructor(t,e,n,i,r,o){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=n,this._config=r,this._focusMonitor=o,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._state="enter",this._animationStateChanged=new s.n,this.attachDomPortal=t=>(this._portalOutlet.hasAttached()&&w(),this._setupFocusTrap(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=r.ariaLabelledBy||null,this._document=i}attachComponentPortal(t){return this._portalOutlet.hasAttached()&&w(),this._setupFocusTrap(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached()&&w(),this._setupFocusTrap(),this._portalOutlet.attachTemplatePortal(t)}_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 t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=this._document.activeElement,n=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==n&&!n.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)),this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then(()=>this._elementRef.nativeElement.focus()))}_containsFocus(){const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}_onAnimationDone(t){"enter"===t.toState?this._trapFocus():"exit"===t.toState&&this._restoreFocus(),this._animationStateChanged.emit(t)}_onAnimationStart(t){this._animationStateChanged.emit(t)}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.l),s.Nb(g.i),s.Nb(s.h),s.Nb(c.e,8),s.Nb(v),s.Nb(g.h))},t.\u0275cmp=s.Hb({type:t,selectors:[["mat-dialog-container"]],viewQuery:function(t,e){var n;1&t&&s.Bc(r.c,!0),2&t&&s.rc(n=s.bc())&&(e._portalOutlet=n.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&s.Dc("@dialogContainer.start",(function(t){return e._onAnimationStart(t)}))("@dialogContainer.done",(function(t){return e._onAnimationDone(t)})),2&t&&(s.Cb("id",e._id)("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),s.Ec("@dialogContainer",e._state))},features:[s.yb],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&s.Fc(0,_,0,0,"ng-template",0)},directives:[r.c],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;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:[y.dialogContainer]}}),t})(),x=0;class k{constructor(t,e,n="mat-dialog-"+x++){this._overlayRef=t,this._containerInstance=e,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new l.a,this._afterClosed=new l.a,this._beforeClosed=new l.a,this._state=0,e._id=n,e._animationStateChanged.pipe(Object(d.a)(t=>"done"===t.phaseName&&"enter"===t.toState),Object(p.a)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Object(d.a)(t=>"done"===t.phaseName&&"exit"===t.toState),Object(p.a)(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(Object(d.a)(t=>t.keyCode===b.g&&!this.disableClose&&!Object(b.s)(t))).subscribe(t=>{t.preventDefault(),O(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():O(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Object(d.a)(t=>"start"===t.phaseName),Object(p.a)(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._containerInstance._startExitAnimation(),this._state=1}afterOpened(){return this._afterOpened.asObservable()}afterClosed(){return this._afterClosed.asObservable()}beforeClosed(){return this._beforeClosed.asObservable()}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._getPositionStrategy().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 O(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}const S=new s.r("MatDialogData"),E=new s.r("mat-dialog-default-options"),T=new s.r("mat-dialog-scroll-strategy"),A={provide:T,deps:[i.a],useFactory:function(t){return()=>t.scrollStrategies.block()}};let I=(()=>{class t{constructor(t,e,n,i,r,s,o){this._overlay=t,this._injector=e,this._defaultOptions=i,this._parentDialog=s,this._overlayContainer=o,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new l.a,this._afterOpenedAtThisLevel=new l.a,this._ariaHiddenElements=new Map,this.afterAllClosed=Object(u.a)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Object(m.a)(void 0))),this._scrollStrategy=r}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){if((e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new v)).id&&this.getDialogById(e.id))throw Error(`Dialog with id "${e.id}" exists already. The dialog id must be unique.`);const n=this._createOverlay(e),i=this._attachDialogContainer(n,e),r=this._attachDialogContent(t,i,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe(()=>this._removeOpenDialog(r)),this.afterOpened.next(r),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new i.b({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const n=s.s.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:v,useValue:e}]}),i=new r.d(C,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}_attachDialogContent(t,e,n,i){const o=new k(n,e,i.id);if(t instanceof s.N)e.attachTemplatePortal(new r.i(t,null,{$implicit:i.data,dialogRef:o}));else{const n=this._createInjector(i,o,e),s=e.attachComponentPortal(new r.d(t,i.viewContainerRef,n));o.componentInstance=s.instance}return o.updateSize(i.width,i.height).updatePosition(i.position),o}_createInjector(t,e,n){const i=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=[{provide:C,useValue:n},{provide:S,useValue:t.data},{provide:k,useValue:e}];return!t.direction||i&&i.get(a.c,null)||r.push({provide:a.c,useValue:{value:t.direction,change:Object(h.a)()}}),s.s.create({parent:i||this._injector,providers:r})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let n=e.length-1;n>-1;n--){let i=e[n];i===t||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(i.a),s.Xb(s.s),s.Xb(c.n,8),s.Xb(E,8),s.Xb(T),s.Xb(t,12),s.Xb(i.c))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})(),D=0,P=(()=>{class t{constructor(t,e,n){this.dialogRef=t,this._elementRef=e,this._dialog=n,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=R(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){const e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}_onButtonClick(t){O(this.dialogRef,0===t.screenX&&0===t.screenY?"keyboard":"mouse",this.dialogResult)}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(k,8),s.Nb(s.l),s.Nb(I))},t.\u0275dir=s.Ib({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.ac("click",(function(t){return e._onButtonClick(t)})),2&t&&s.Cb("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[s.zb]}),t})(),j=(()=>{class t{constructor(t,e,n){this._dialogRef=t,this._elementRef=e,this._dialog=n,this.id="mat-dialog-title-"+D++}ngOnInit(){this._dialogRef||(this._dialogRef=R(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(k,8),s.Nb(s.l),s.Nb(I))},t.\u0275dir=s.Ib({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&s.Wb("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Ib({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),M=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Ib({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})();function R(t,e){let n=t.nativeElement.parentElement;for(;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find(t=>t.id===n.id):null}let N=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)},providers:[I,A],imports:[[i.d,r.h,o.h],o.h]}),t})()},"0MNC":function(t,e,n){"use strict";n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return C}));var i=n("fXoL"),r=n("nLfN"),s=n("XNiG"),o=n("itXk"),a=n("GyhO"),c=n("HDdC"),l=n("IzEk"),u=n("zP0r"),h=n("Kj3r"),d=n("lJxs"),p=n("JX91"),m=n("1G5W"),f=n("8LU1");const b=new Set;let g,_=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):v}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!b.has(t))try{g||(g=document.createElement("style"),g.setAttribute("type","text/css"),document.head.appendChild(g)),g.sheet&&(g.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),b.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(r.a))},t.\u0275prov=Object(i.Jb)({factory:function(){return new t(Object(i.Xb)(r.a))},token:t,providedIn:"root"}),t})();function v(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let y=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new s.a}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return w(Object(f.b)(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=w(Object(f.b)(t)).map(t=>this._registerQuery(t).observable);let n=Object(o.a)(e);return n=Object(a.a)(n.pipe(Object(l.a)(1)),n.pipe(Object(u.a)(1),Object(h.a)(0))),n.pipe(Object(d.a)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(t=>{e.matches=e.matches||t.matches,e.breakpoints[t.query]=t.matches}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),n={observable:new c.a(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe(Object(p.a)(e),Object(d.a)(e=>({query:t,matches:e.matches})),Object(m.a)(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(_),i.Xb(i.A))},t.\u0275prov=Object(i.Jb)({factory:function(){return new t(Object(i.Xb)(_),Object(i.Xb)(i.A))},token:t,providedIn:"root"}),t})();function w(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const C={XSmall:"(max-width: 599.99px)",Small:"(min-width: 600px) and (max-width: 959.99px)",Medium:"(min-width: 960px) and (max-width: 1279.99px)",Large:"(min-width: 1280px) and (max-width: 1919.99px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.99px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.99px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},"0QyJ":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("fXoL"),r=n("twBr"),s=n("tyNb");let o=(()=>{class t{constructor(t,e){this.currentUser=t,this.router=e}canActivate(t,e){return this.handle(e.url)}canActivateChild(t,e){return this.handle(e.url)}canLoad(t){return this.handle(t.path)}handle(t){return!!this.currentUser.isLoggedIn()||(this.currentUser.redirectUri=t,this.router.navigate(["/login"]),!1)}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(r.a),i.Xb(s.d))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},"1G5W":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("zx2A");function r(t){return e=>e.lift(new s(t))}class s{constructor(t){this.notifier=t}call(t,e){const n=new o(t),r=Object(i.c)(this.notifier,new i.a(n));return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n}}class o extends i.b{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},"1ImS":function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var i=n("ofXK"),r=n("NFeN"),s=n("6rvT"),o=n("bSwM"),a=n("3Pt+"),c=n("bTqV"),l=n("A5z7"),u=n("bv9b"),h=n("0Gur"),d=n("Iysn"),p=n("fXoL");let m=(()=>{class t{}return t.\u0275mod=p.Lb({type:t}),t.\u0275inj=p.Kb({factory:function(e){return new(e||t)},imports:[[i.c,s.a,a.E,a.o,h.a,d.a,c.c,r.b,o.b,l.e,u.b],o.b]}),t})()},"1MND":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));class i{passes(t){return!this.fails(t)}}},"1jcm":function(t,e,n){"use strict";n.d(e,"a",(function(){return w})),n.d(e,"b",(function(){return x}));var i=n("GU7r"),r=n("fXoL"),s=n("FKr1"),o=n("8LU1"),a=n("3Pt+"),c=n("R1ws"),l=n("u47x");const u=["thumbContainer"],h=["toggleBar"],d=["input"],p=function(){return{enterDuration:150}},m=["*"],f=new r.r("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let b=0;const g={provide:a.s,useExisting:Object(r.V)(()=>w),multi:!0};class _{constructor(t,e){this.source=t,this.checked=e}}class v{constructor(t){this._elementRef=t}}const y=Object(s.z)(Object(s.v)(Object(s.w)(Object(s.x)(v)),"accent"));let w=(()=>{class t extends y{constructor(t,e,n,i,s,o){super(t),this._focusMonitor=e,this._changeDetectorRef=n,this.defaults=s,this._animationMode=o,this._onChange=t=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++b,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new r.n,this.toggleChange=new r.n,this.tabIndex=parseInt(i)||0}get required(){return this._required}set required(t){this._required=Object(o.c)(t)}get checked(){return this._checked}set checked(t){this._checked=Object(o.c)(t),this._changeDetectorRef.markForCheck()}get inputId(){return(this.id||this._uniqueId)+"-input"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{"keyboard"===t||"program"===t?this._inputElement.nativeElement.focus():t||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(t){t.stopPropagation()}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck()}focus(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new _(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.l),r.Nb(l.h),r.Nb(r.h),r.Yb("tabindex"),r.Nb(f),r.Nb(c.a,8))},t.\u0275cmp=r.Hb({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var n;1&t&&(r.Nc(u,!0),r.Nc(h,!0),r.Nc(d,!0)),2&t&&(r.rc(n=r.bc())&&(e._thumbEl=n.first),r.rc(n=r.bc())&&(e._thumbBarEl=n.first),r.rc(n=r.bc())&&(e._inputElement=n.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(r.Wb("id",e.id),r.Cb("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),r.Fb("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[r.Ab([g]),r.yb],ngContentSelectors:m,decls:16,vars:18,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,e){if(1&t&&(r.jc(),r.Tb(0,"label",0,1),r.Tb(2,"div",2,3),r.Tb(4,"input",4,5),r.ac("change",(function(t){return e._onChangeEvent(t)}))("click",(function(t){return e._onInputClick(t)})),r.Sb(),r.Tb(6,"div",6,7),r.Ob(8,"div",8),r.Tb(9,"div",9),r.Ob(10,"div",10),r.Sb(),r.Sb(),r.Sb(),r.Tb(11,"span",11,12),r.ac("cdkObserveContent",(function(){return e._onLabelTextChange()})),r.Tb(13,"span",13),r.Hc(14,"\xa0"),r.Sb(),r.ic(15),r.Sb(),r.Sb()),2&t){const t=r.sc(1),n=r.sc(12);r.Cb("for",e.inputId),r.Bb(2),r.Fb("mat-slide-toggle-bar-no-side-margin",!n.textContent||!n.textContent.trim()),r.Bb(2),r.kc("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),r.Cb("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),r.Bb(5),r.kc("matRippleTrigger",t)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",r.nc(17,p))}},directives:[s.q,i.a],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),t})(),C=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)}}),t})(),x=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[C,s.r,s.h,i.c],C,s.h]}),t})()},"20SG":function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("nYR2"),r=n("fXoL"),s=n("LRXf"),o=n("kmQS"),a=n("uHcB"),c=n("VaLf");let l=(()=>{class t{constructor(t,e,n,i){this.http=t,this.settings=e,this.subscriptions=n,this.i18n=i,this.popupWidth=450,this.popupHeight=650,this.popupParams={menubar:0,location:0,locationbar:0,toolbar:0,titlebar:0,status:0,scrollbars:1,width:this.popupWidth,height:this.popupHeight},this.subscriptionPending=!1,this.executingAgreement=!1}subscribe(t){return this.subscriptionPending=!0,this.popup=this.openPaypalPopup(this.settings.getBaseUrl(!0)+"billing/paypal/loading"),new Promise((e,n)=>{this.rejectSubscribe=n,this.resolveSubscribe=e,this.createPaypalAgreement(t).subscribe(e=>{this.listenForMessages(t.plan_id),this.popup.location.href=e.urls.approve},t=>this.rejectSubscriptionPromise(t))})}changePlan(t,e){return new Promise(n=>{this.subscriptions.cancel(t.id,{delete:!0}).subscribe(()=>{this.subscribe({plan_id:e.id,start_date:t.renews_at}).then(t=>n(t))})})}listenForMessages(t){window.addEventListener("message",e=>{if(-1!==this.settings.getBaseUrl().indexOf(e.origin)){if("success"!==e.data.status)return this.rejectSubscriptionPromise();this.executingAgreement=!0,this.executePaypalAgreement(e.data.token,t).pipe(Object(i.a)(()=>this.executingAgreement=!1)).subscribe(t=>this.resolveSubscriptionPromise(t.user),t=>this.rejectSubscriptionPromise())}},!1)}openPaypalPopup(t){const e=Object.assign({},this.popupParams,{left:screen.width/2-this.popupWidth/2,top:screen.height/2-this.popupHeight/2}),n=window.open(t,"PayPal",Object.keys(e).map(t=>t+"="+e[t]).join(", ")),i=setInterval(()=>{(null==n||n.closed)&&(window.clearInterval(i),this.subscriptionPending&&!this.executingAgreement&&this.rejectSubscriptionPromise())},1e3);return n}createPaypalAgreement(t){return this.http.post("billing/subscriptions/paypal/agreement/create",{plan_id:t.plan_id,start_date:t.start_date})}executePaypalAgreement(t,e){return this.http.post("billing/subscriptions/paypal/agreement/execute",{agreement_id:t,plan_id:e})}rejectSubscriptionPromise(t){this.rejectSubscribe(this.i18n.t((null==t?void 0:t.message)||"Payment failed. Please try again later.")),this.subscriptionPending=!1,this.popup&&this.popup.close()}resolveSubscriptionPromise(t){this.resolveSubscribe(t),this.subscriptionPending=!1}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(s.a),r.Xb(o.a),r.Xb(a.a),r.Xb(c.a))},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},"2QA8":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Vo4":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("XNiG"),r=n("9ppp");class s extends i.a{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 r.a;return this._value}next(t){super.next(this._value=t)}}},"2fFW":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));let i=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}}},"2yAJ":function(t,e){function n(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function i(t,e,i,r,s,o){return n((a=n(n(e,t),n(r,o)))<<(c=s)|a>>>32-c,i);var a,c}function r(t,e,n,r,s,o,a){return i(e&n|~e&r,t,e,s,o,a)}function s(t,e,n,r,s,o,a){return i(e&r|n&~r,t,e,s,o,a)}function o(t,e,n,r,s,o,a){return i(e^n^r,t,e,s,o,a)}function a(t,e,n,r,s,o,a){return i(n^(e|~r),t,e,s,o,a)}function c(t,e){var i,c,l,u,h;t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;var d=1732584193,p=-271733879,m=-1732584194,f=271733878;for(i=0;i<t.length;i+=16)c=d,l=p,u=m,h=f,d=r(d,p,m,f,t[i],7,-680876936),f=r(f,d,p,m,t[i+1],12,-389564586),m=r(m,f,d,p,t[i+2],17,606105819),p=r(p,m,f,d,t[i+3],22,-1044525330),d=r(d,p,m,f,t[i+4],7,-176418897),f=r(f,d,p,m,t[i+5],12,1200080426),m=r(m,f,d,p,t[i+6],17,-1473231341),p=r(p,m,f,d,t[i+7],22,-45705983),d=r(d,p,m,f,t[i+8],7,1770035416),f=r(f,d,p,m,t[i+9],12,-1958414417),m=r(m,f,d,p,t[i+10],17,-42063),p=r(p,m,f,d,t[i+11],22,-1990404162),d=r(d,p,m,f,t[i+12],7,1804603682),f=r(f,d,p,m,t[i+13],12,-40341101),m=r(m,f,d,p,t[i+14],17,-1502002290),d=s(d,p=r(p,m,f,d,t[i+15],22,1236535329),m,f,t[i+1],5,-165796510),f=s(f,d,p,m,t[i+6],9,-1069501632),m=s(m,f,d,p,t[i+11],14,643717713),p=s(p,m,f,d,t[i],20,-373897302),d=s(d,p,m,f,t[i+5],5,-701558691),f=s(f,d,p,m,t[i+10],9,38016083),m=s(m,f,d,p,t[i+15],14,-660478335),p=s(p,m,f,d,t[i+4],20,-405537848),d=s(d,p,m,f,t[i+9],5,568446438),f=s(f,d,p,m,t[i+14],9,-1019803690),m=s(m,f,d,p,t[i+3],14,-187363961),p=s(p,m,f,d,t[i+8],20,1163531501),d=s(d,p,m,f,t[i+13],5,-1444681467),f=s(f,d,p,m,t[i+2],9,-51403784),m=s(m,f,d,p,t[i+7],14,1735328473),d=o(d,p=s(p,m,f,d,t[i+12],20,-1926607734),m,f,t[i+5],4,-378558),f=o(f,d,p,m,t[i+8],11,-2022574463),m=o(m,f,d,p,t[i+11],16,1839030562),p=o(p,m,f,d,t[i+14],23,-35309556),d=o(d,p,m,f,t[i+1],4,-1530992060),f=o(f,d,p,m,t[i+4],11,1272893353),m=o(m,f,d,p,t[i+7],16,-155497632),p=o(p,m,f,d,t[i+10],23,-1094730640),d=o(d,p,m,f,t[i+13],4,681279174),f=o(f,d,p,m,t[i],11,-358537222),m=o(m,f,d,p,t[i+3],16,-722521979),p=o(p,m,f,d,t[i+6],23,76029189),d=o(d,p,m,f,t[i+9],4,-640364487),f=o(f,d,p,m,t[i+12],11,-421815835),m=o(m,f,d,p,t[i+15],16,530742520),d=a(d,p=o(p,m,f,d,t[i+2],23,-995338651),m,f,t[i],6,-198630844),f=a(f,d,p,m,t[i+7],10,1126891415),m=a(m,f,d,p,t[i+14],15,-1416354905),p=a(p,m,f,d,t[i+5],21,-57434055),d=a(d,p,m,f,t[i+12],6,1700485571),f=a(f,d,p,m,t[i+3],10,-1894986606),m=a(m,f,d,p,t[i+10],15,-1051523),p=a(p,m,f,d,t[i+1],21,-2054922799),d=a(d,p,m,f,t[i+8],6,1873313359),f=a(f,d,p,m,t[i+15],10,-30611744),m=a(m,f,d,p,t[i+6],15,-1560198380),p=a(p,m,f,d,t[i+13],21,1309151649),d=a(d,p,m,f,t[i+4],6,-145523070),f=a(f,d,p,m,t[i+11],10,-1120210379),m=a(m,f,d,p,t[i+2],15,718787259),p=a(p,m,f,d,t[i+9],21,-343485551),d=n(d,c),p=n(p,l),m=n(m,u),f=n(f,h);return[d,p,m,f]}function l(t){var e,n="",i=32*t.length;for(e=0;e<i;e+=8)n+=String.fromCharCode(t[e>>5]>>>e%32&255);return n}function u(t){var e,n=[];for(n[(t.length>>2)-1]=void 0,e=0;e<n.length;e+=1)n[e]=0;var i=8*t.length;for(e=0;e<i;e+=8)n[e>>5]|=(255&t.charCodeAt(e/8))<<e%32;return n}function h(t){var e,n,i="";for(n=0;n<t.length;n+=1)e=t.charCodeAt(n),i+="0123456789abcdef".charAt(e>>>4&15)+"0123456789abcdef".charAt(15&e);return i}function d(t){return unescape(encodeURIComponent(t))}function p(t){return function(t){return l(c(u(t),8*t.length))}(d(t))}function m(t,e){return function(t,e){var n,i,r=u(t),s=[],o=[];for(s[15]=o[15]=void 0,r.length>16&&(r=c(r,8*t.length)),n=0;n<16;n+=1)s[n]=909522486^r[n],o[n]=1549556828^r[n];return i=c(s.concat(u(e)),512+8*e.length),l(c(o.concat(i),640))}(d(t),d(e))}t.exports=function(t,e,n){return e?n?m(e,t):h(m(e,t)):n?p(t):h(p(t))}},"3E0/":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("D0XW"),r=n("7o/Q"),s=n("WMd4");function o(t,e=i.a){var n;const r=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return t=>t.lift(new a(r,e))}class a{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new c(t,this.delay,this.scheduler))}}class c extends r.a{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,i=t.scheduler,r=t.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){const e=Math.max(0,n[0].time-i.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(c.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new l(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(s.a.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(s.a.createComplete()),this.unsubscribe()}}class l{constructor(t,e){this.time=t,this.notification=e}}},"3N8a":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("quSY");class r extends i.a{constructor(t,e){super()}schedule(t,e=0){return this}}class s extends r{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,i=void 0;try{this.work(t)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},"3Pt+":function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return qt})),n.d(e,"c",(function(){return f})),n.d(e,"d",(function(){return p})),n.d(e,"e",(function(){return Kt})),n.d(e,"f",(function(){return _t})),n.d(e,"g",(function(){return Bt})),n.d(e,"h",(function(){return ie})),n.d(e,"i",(function(){return bt})),n.d(e,"j",(function(){return jt})),n.d(e,"k",(function(){return zt})),n.d(e,"l",(function(){return gt})),n.d(e,"m",(function(){return Mt})),n.d(e,"n",(function(){return Nt})),n.d(e,"o",(function(){return re})),n.d(e,"p",(function(){return Zt})),n.d(e,"q",(function(){return Jt})),n.d(e,"r",(function(){return k})),n.d(e,"s",(function(){return c})),n.d(e,"t",(function(){return _})),n.d(e,"u",(function(){return y})),n.d(e,"v",(function(){return w})),n.d(e,"w",(function(){return wt})),n.d(e,"x",(function(){return At})),n.d(e,"y",(function(){return St})),n.d(e,"z",(function(){return W})),n.d(e,"A",(function(){return F})),n.d(e,"B",(function(){return ee})),n.d(e,"C",(function(){return N})),n.d(e,"D",(function(){return B})),n.d(e,"E",(function(){return se})),n.d(e,"F",(function(){return Xt})),n.d(e,"G",(function(){return q})),n.d(e,"H",(function(){return Y})),n.d(e,"I",(function(){return E})),n.d(e,"J",(function(){return J})),n.d(e,"K",(function(){return It}));var i=n("fXoL"),r=n("ofXK"),s=n("cp0P"),o=n("Cfvw"),a=n("lJxs");const c=new i.r("NgValueAccessor"),l={provide:c,useExisting:Object(i.V)(()=>u),multi:!0};let u=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.G),i.Nb(i.l))},t.\u0275dir=i.Ib({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&i.ac("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[i.Ab([l])]}),t})();const h={provide:c,useExisting:Object(i.V)(()=>p),multi:!0},d=new i.r("CompositionEventMode");let p=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Object(r.L)()?Object(r.L)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.G),i.Nb(i.l),i.Nb(d,8))},t.\u0275dir=i.Ib({type:t,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(t,e){1&t&&i.ac("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[i.Ab([h])]}),t})(),m=(()=>{class t{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}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}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Ib({type:t}),t})(),f=(()=>{class t extends m{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return b(e||t)},t.\u0275dir=i.Ib({type:t,features:[i.yb]}),t})();const b=i.Vb(f);function g(){throw new Error("unimplemented")}class _ extends m{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return g()}get asyncValidator(){return g()}}class v{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let y=(()=>{class t extends v{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(_,2))},t.\u0275dir=i.Ib({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.Fb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[i.yb]}),t})(),w=(()=>{class t extends v{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(f,2))},t.\u0275dir=i.Ib({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.Fb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[i.yb]}),t})();function C(t){return null==t||0===t.length}function x(t){return null!=t&&"number"==typeof t.length}const k=new i.r("NgValidators"),O=new i.r("NgAsyncValidators"),S=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class E{static min(t){return e=>{if(C(e.value)||C(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}static max(t){return e=>{if(C(e.value)||C(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return C(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return C(t.value)||S.test(t.value)?null:{email:!0}}static minLength(t){return e=>C(e.value)||!x(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}static maxLength(t){return e=>x(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return E.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(C(t.value))return null;const i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(T);return 0==e.length?null:function(t){return I(D(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(T);return 0==e.length?null:function(t){const n=D(t,e).map(A);return Object(s.a)(n).pipe(Object(a.a)(I))}}}function T(t){return null!=t}function A(t){const e=Object(i.tb)(t)?Object(o.a)(t):t;if(!Object(i.sb)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function I(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function D(t,e){return e.map(e=>e(t))}function P(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}const j={provide:c,useExisting:Object(i.V)(()=>F),multi:!0};let F=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.G),i.Nb(i.l))},t.\u0275dir=i.Ib({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&i.ac("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[i.Ab([j])]}),t})();const M={provide:c,useExisting:Object(i.V)(()=>N),multi:!0};let R=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac}),t})(),N=(()=>{class t{constructor(t,e,n,i){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=i,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(_),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n      If you define both a name and a formControlName attribute on your radio button, their values\n      must match. Ex: <input type="radio" formControlName="food" name="food">\n    ')}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.G),i.Nb(i.l),i.Nb(R),i.Nb(i.s))},t.\u0275dir=i.Ib({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&i.ac("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[i.Ab([M])]}),t})();const L={provide:c,useExisting:Object(i.V)(()=>B),multi:!0};let B=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.G),i.Nb(i.l))},t.\u0275dir=i.Ib({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&i.ac("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[i.Ab([L])]}),t})();const H='\n    <div [formGroup]="myGroup">\n      <input formControlName="firstName">\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       firstName: new FormControl()\n    });',V='\n    <div [formGroup]="myGroup">\n       <div formGroupName="person">\n          <input formControlName="firstName">\n       </div>\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });',z='\n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>';class U{static controlParentException(){throw new Error("formControlName must be used with a parent formGroup directive.  You'll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      "+H)}static ngModelGroupException(){throw new Error(`formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n       that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n       Option 1:  Update the parent to be formGroupName (reactive form strategy)\n\n        ${V}\n\n        Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n        ${z}`)}static missingFormException(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n       Example:\n\n       "+H)}static groupParentException(){throw new Error("formGroupName must be used with a parent formGroup directive.  You'll want to add a formGroup\n      directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      "+V)}static arrayParentException(){throw new Error('formArrayName must be used with a parent formGroup directive.  You\'ll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n        Example:\n\n        \n    <div [formGroup]="myGroup">\n      <div formArrayName="cities">\n        <div *ngFor="let city of cityArray.controls; index as i">\n          <input [formControlName]="i">\n        </div>\n      </div>\n    </div>\n\n    In your class:\n\n    this.cityArray = new FormArray([new FormControl(\'SF\')]);\n    this.myGroup = new FormGroup({\n      cities: this.cityArray\n    });')}static disabledAttrWarning(){console.warn("\n      It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n      when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n      you. We recommend using this approach to avoid 'changed after checked' errors.\n\n      Example:\n      form = new FormGroup({\n        first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n        last: new FormControl('Drew', Validators.required)\n      });\n    ")}static ngModelWarning(t){console.warn(`\n    It looks like you're using ngModel on the same form field as ${t}.\n    Support for using the ngModel input property and ngModelChange event with\n    reactive form directives has been deprecated in Angular v6 and will be removed\n    in a future version of Angular.\n\n    For more information on this, see our API docs here:\n    https://angular.io/api/forms/${"formControl"===t?"FormControlDirective":"FormControlName"}#use-with-ngmodel\n    `)}}const $={provide:c,useExisting:Object(i.V)(()=>q),multi:!0};function X(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let q=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=X(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.G),i.Nb(i.l))},t.\u0275dir=i.Ib({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&i.ac("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[i.Ab([$])]}),t})(),W=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(X(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.l),i.Nb(i.G),i.Nb(q,9))},t.\u0275dir=i.Ib({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const G={provide:c,useExisting:Object(i.V)(()=>Y),multi:!0};function K(t,e){return null==t?""+e:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let Y=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e<t.length;e++){const i=t.item(e),r=this._getOptionValue(i.value);n.push(r)}}else{const t=e.options;for(let e=0;e<t.length;e++){const i=t.item(e);if(i.selected){const t=this._getOptionValue(i.value);n.push(t)}}}this.value=n,t(n)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(t){const e=(this._idCounter++).toString();return this._optionMap.set(e,t),e}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e)._value,t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.G),i.Nb(i.l))},t.\u0275dir=i.Ib({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&i.ac("change",(function(t){return e.onChange(t.target)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[i.Ab([G])]}),t})(),J=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(K(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(K(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.l),i.Nb(i.G),i.Nb(Y,9))},t.\u0275dir=i.Ib({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function Q(t,e){return[...e.path,t]}function Z(t,e){t||it(e,"Cannot find control with"),e.valueAccessor||it(e,"No value accessor for form control with"),t.validator=E.compose([t.validator,e.validator]),t.asyncValidator=E.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&tt(t,e)})}(t,e),function(t,e){t.registerOnChange((t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&tt(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function tt(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function et(t,e){null==t&&it(e,"Cannot find control with"),t.validator=E.compose([t.validator,e.validator]),t.asyncValidator=E.composeAsync([t.asyncValidator,e.asyncValidator])}function nt(t){return it(t,"There is no FormControl instance attached to form control element with")}function it(t,e){let n;throw n=t.path.length>1?`path: '${t.path.join(" -> ")}'`:t.path[0]?`name: '${t.path}'`:"unspecified name attribute",new Error(`${e} ${n}`)}function rt(t){return null!=t?E.compose(P(t)):null}function st(t){return null!=t?E.composeAsync(P(t)):null}function ot(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}const at=[u,B,F,q,Y,N];function ct(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function lt(t,e){if(!e)return null;Array.isArray(e)||it(t,"Value accessor was not provided as an array for form control with");let n=void 0,i=void 0,r=void 0;return e.forEach(e=>{var s;e.constructor===p?n=e:(s=e,at.some(t=>s.constructor===t)?(i&&it(t,"More than one built-in value accessor matches form control with"),i=e):(r&&it(t,"More than one custom value accessor matches form control with"),r=e))}),r||i||n||(it(t,"No valid value accessor for form control with"),null)}function ut(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function ht(t,e,n,r){Object(i.X)()&&"never"!==r&&((null!==r&&"once"!==r||e._ngModelWarningSentOnce)&&("always"!==r||n._ngModelWarningSent)||(U.ngModelWarning(t),e._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}function dt(t){const e=mt(t)?t.validators:t;return Array.isArray(e)?rt(e):e||null}function pt(t,e){const n=mt(e)?e.asyncValidators:t;return Array.isArray(n)?st(n):n||null}function mt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class ft{constructor(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}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.validator=dt(t)}setAsyncValidators(t){this.asyncValidator=pt(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(t=>{t.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(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!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="DISABLED",this.errors=null,this._forEachChild(e=>{e.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(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.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(t=>t(!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(),"VALID"!==this.status&&"PENDING"!==this.status||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()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING";const e=A(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>this.setErrors(e,{emitEvent:t}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let i=t;return e.forEach(t=>{i=i instanceof gt?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof _t&&i.at(t)||null}),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.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 i.n,this.statusChanges=new i.n}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_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){mt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class bt extends ft{constructor(t=null,e,n){super(dt(e),pt(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,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)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(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 gt extends ft{constructor(t,e,n){super(dt(e),pt(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}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){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof bt?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],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 n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),n}_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}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class _t extends ft{constructor(t,e,n){super(dt(e),pt(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof bt?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_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))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_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 vt={provide:f,useExisting:Object(i.V)(()=>wt)},yt=(()=>Promise.resolve(null))();let wt=(()=>{class t extends f{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.n,this.form=new gt({},rt(t),st(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){yt.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),Z(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){yt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),ut(this._directives,t)})}addFormGroup(t){yt.then(()=>{const e=this._findContainer(t.path),n=new gt({});et(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){yt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){yt.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,ct(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(k,10),i.Nb(O,10))},t.\u0275dir=i.Ib({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&i.ac("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Ab([vt]),i.yb]}),t})(),Ct=(()=>{class t extends f{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Q(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return rt(this._validators)}get asyncValidator(){return st(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return xt(e||t)},t.\u0275dir=i.Ib({type:t,features:[i.yb]}),t})();const xt=i.Vb(Ct);class kt{static modelParentException(){throw new Error(`\n      ngModel cannot be used to register form controls with a parent formGroup directive.  Try using\n      formGroup's partner directive "formControlName" instead.  Example:\n\n      ${H}\n\n      Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n      Example:\n\n      \n    <div [formGroup]="myGroup">\n       <input formControlName="firstName">\n       <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n    </div>\n  `)}static formGroupNameException(){throw new Error(`\n      ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n      Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n      ${V}\n\n      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n      ${z}`)}static missingNameException(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n      control must be defined as \'standalone\' in ngModelOptions.\n\n      Example 1: <input [(ngModel)]="person.firstName" name="first">\n      Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')}static modelGroupParentException(){throw new Error(`\n      ngModelGroup cannot be used with a parent formGroup directive.\n\n      Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n      ${V}\n\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n      ${z}`)}}const Ot={provide:f,useExisting:Object(i.V)(()=>St)};let St=(()=>{class t extends Ct{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){this._parent instanceof t||this._parent instanceof wt||kt.modelGroupParentException()}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(f,5),i.Nb(k,10),i.Nb(O,10))},t.\u0275dir=i.Ib({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[i.Ab([Ot]),i.yb]}),t})();const Et={provide:_,useExisting:Object(i.V)(()=>At)},Tt=(()=>Promise.resolve(null))();let At=(()=>{class t extends _{constructor(t,e,n,r){super(),this.control=new bt,this._registered=!1,this.update=new i.n,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=lt(this,r)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),ot(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Q(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return rt(this._rawValidators)}get asyncValidator(){return st(this._rawAsyncValidators)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_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(){Z(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof St)&&this._parent instanceof Ct?kt.formGroupNameException():this._parent instanceof St||this._parent instanceof wt||kt.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||kt.missingNameException()}_updateValue(t){Tt.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;Tt.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(f,9),i.Nb(k,10),i.Nb(O,10),i.Nb(c,10))},t.\u0275dir=i.Ib({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i.Ab([Et]),i.yb,i.zb]}),t})(),It=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Ib({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const Dt=new i.r("NgModelWithFormControlWarning"),Pt={provide:_,useExisting:Object(i.V)(()=>jt)};let jt=(()=>{class t extends _{constructor(t,e,n,r){super(),this._ngModelWarningConfig=r,this.update=new i.n,this._ngModelWarningSent=!1,this._rawValidators=t||[],this._rawAsyncValidators=e||[],this.valueAccessor=lt(this,n)}set isDisabled(t){U.disabledAttrWarning()}ngOnChanges(e){this._isControlChanged(e)&&(Z(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),ot(e,this.viewModel)&&(ht("formControl",t,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get validator(){return rt(this._rawValidators)}get asyncValidator(){return st(this._rawAsyncValidators)}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(k,10),i.Nb(O,10),i.Nb(c,10),i.Nb(Dt,8))},t.\u0275dir=i.Ib({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i.Ab([Pt]),i.yb,i.zb]}),t._ngModelWarningSentOnce=!1,t})();const Ft={provide:f,useExisting:Object(i.V)(()=>Mt)};let Mt=(()=>{class t extends f{constructor(t,e){super(),this._validators=t,this._asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new i.n}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return Z(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){ut(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);et(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);et(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,ct(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(function(t,e){e.valueAccessor.registerOnChange(()=>nt(e)),e.valueAccessor.registerOnTouched(()=>nt(e)),e._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(t.control,t),e&&Z(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const t=rt(this._validators);this.form.validator=E.compose([this.form.validator,t]);const e=st(this._asyncValidators);this.form.asyncValidator=E.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){this.form||U.missingFormException()}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(k,10),i.Nb(O,10))},t.\u0275dir=i.Ib({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&i.ac("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Ab([Ft]),i.yb,i.zb]}),t})();const Rt={provide:f,useExisting:Object(i.V)(()=>Nt)};let Nt=(()=>{class t extends Ct{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){Ht(this._parent)&&U.groupParentException()}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(f,13),i.Nb(k,10),i.Nb(O,10))},t.\u0275dir=i.Ib({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[i.Ab([Rt]),i.yb]}),t})();const Lt={provide:f,useExisting:Object(i.V)(()=>Bt)};let Bt=(()=>{class t extends f{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Q(null==this.name?this.name:this.name.toString(),this._parent)}get validator(){return rt(this._validators)}get asyncValidator(){return st(this._asyncValidators)}_checkParentType(){Ht(this._parent)&&U.arrayParentException()}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(f,13),i.Nb(k,10),i.Nb(O,10))},t.\u0275dir=i.Ib({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[i.Ab([Lt]),i.yb]}),t})();function Ht(t){return!(t instanceof Nt||t instanceof Mt||t instanceof Bt)}const Vt={provide:_,useExisting:Object(i.V)(()=>zt)};let zt=(()=>{class t extends _{constructor(t,e,n,r,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new i.n,this._ngModelWarningSent=!1,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=lt(this,r)}set isDisabled(t){U.disabledAttrWarning()}ngOnChanges(e){this._added||this._setUpControl(),ot(e,this.viewModel)&&(ht("formControlName",t,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return Q(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return rt(this._rawValidators)}get asyncValidator(){return st(this._rawAsyncValidators)}_checkParentType(){!(this._parent instanceof Nt)&&this._parent instanceof Ct?U.ngModelGroupException():this._parent instanceof Nt||this._parent instanceof Mt||this._parent instanceof Bt||U.controlParentException()}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(f,13),i.Nb(k,10),i.Nb(O,10),i.Nb(c,10),i.Nb(Dt,8))},t.\u0275dir=i.Ib({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i.Ab([Vt]),i.yb,i.zb]}),t._ngModelWarningSentOnce=!1,t})();const Ut={provide:k,useExisting:Object(i.V)(()=>Xt),multi:!0},$t={provide:k,useExisting:Object(i.V)(()=>qt),multi:!0};let Xt=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()}validate(t){return this.required?E.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Ib({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&i.Cb("required",e.required?"":null)},inputs:{required:"required"},features:[i.Ab([Ut])]}),t})(),qt=(()=>{class t extends Xt{validate(t){return this.required?E.requiredTrue(t):null}}return t.\u0275fac=function(e){return Wt(e||t)},t.\u0275dir=i.Ib({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.Cb("required",e.required?"":null)},features:[i.Ab([$t]),i.yb]}),t})();const Wt=i.Vb(qt),Gt={provide:k,useExisting:Object(i.V)(()=>Kt),multi:!0};let Kt=(()=>{class t{constructor(){this._enabled=!1}set email(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()}validate(t){return this._enabled?E.email(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Ib({type:t,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[i.Ab([Gt])]}),t})();const Yt={provide:k,useExisting:Object(i.V)(()=>Jt),multi:!0};let Jt=(()=>{class t{constructor(){this._validator=E.nullValidator}ngOnChanges(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null==this.minlength?null:this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=E.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Ib({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.Cb("minlength",e.minlength?e.minlength:null)},inputs:{minlength:"minlength"},features:[i.Ab([Yt]),i.zb]}),t})();const Qt={provide:k,useExisting:Object(i.V)(()=>Zt),multi:!0};let Zt=(()=>{class t{constructor(){this._validator=E.nullValidator}ngOnChanges(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null!=this.maxlength?this._validator(t):null}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=E.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Ib({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.Cb("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[i.Ab([Qt]),i.zb]}),t})();const te={provide:k,useExisting:Object(i.V)(()=>ee),multi:!0};let ee=(()=>{class t{constructor(){this._validator=E.nullValidator}ngOnChanges(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=E.pattern(this.pattern)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Ib({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.Cb("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[i.Ab([te]),i.zb]}),t})(),ne=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)}}),t})(),ie=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let i=null,r=null,s=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(i=null!=e.validators?e.validators:null,r=null!=e.asyncValidators?e.asyncValidators:null,s=null!=e.updateOn?e.updateOn:void 0):(i=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null)),new gt(n,{asyncValidators:r,updateOn:s,validators:i})}control(t,e,n){return new bt(t,e,n)}array(t,e,n){const i=t.map(t=>this._createControl(t));return new _t(i,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof bt||t instanceof gt||t instanceof _t?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac}),t})(),re=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)},providers:[R],imports:[ne]}),t})(),se=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Dt,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)},providers:[ie,R],imports:[ne]}),t})()},"3UWI":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("D0XW"),r=n("zx2A");class s{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new o(t,this.durationSelector))}}class o extends r.b{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const i=Object(r.c)(n,new r.a(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var a=n("PqYM");function c(t,e=i.a){return n=()=>Object(a.a)(t,e),function(t){return t.lift(new s(n))};var n}},"4Ait":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("6wUX");function r(t,e){if(isNaN(parseFloat(String(t)))||!isFinite(t))return null;let n=0;for(;t>=1024;)t/=1024,n++;let r=i.a[n];return e||(e=function(t){switch(t){case"MB":return 1;case"GB":case"TB":case"PB":return 2;default:return 0}}(r)),"bytes"===r&&t<2&&(r="byte"),parseFloat(t.toFixed(+e).toString()).toString()+" "+r}},"4I5i":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},"4af/":function(t,e,n){var i=n("vYjF"),r={collectWindowErrors:!0,debug:!1},s="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},o=[].slice,a=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function c(){return"undefined"==typeof document||null==document.location?"":document.location.href}r.report=function(){var t,e,n=[],l=null,u=null,h=null;function d(t,e){var i=null;if(!e||r.collectWindowErrors){for(var s in n)if(n.hasOwnProperty(s))try{n[s].apply(null,[t].concat(o.call(arguments,2)))}catch(a){i=a}if(i)throw i}}function p(e,n,s,o,l){var u=i.isErrorEvent(l)?l.error:l,p=i.isErrorEvent(e)?e.message:e;if(h)r.computeStackTrace.augmentStackTraceWithInitialElement(h,n,s,p),m();else if(u&&i.isError(u))d(r.computeStackTrace(u),!0);else{var f,b={url:n,line:s,column:o},g=void 0;"[object String]"==={}.toString.call(p)&&(f=p.match(a))&&(g=f[1],p=f[2]),b.func="?",d({name:g,message:p,url:c(),stack:[b]},!0)}return!!t&&t.apply(this,arguments)}function m(){var t=h,e=l;l=null,h=null,u=null,d.apply(null,[t,!1].concat(e))}function f(t,e){var n=o.call(arguments,1);if(h){if(u===t)return;m()}var i=r.computeStackTrace(t);if(h=i,u=t,l=n,setTimeout((function(){u===t&&m()}),i.incomplete?2e3:0),!1!==e)throw t}return f.subscribe=function(i){e||(t=s.onerror,s.onerror=p,e=!0),n.push(i)},f.unsubscribe=function(t){for(var e=n.length-1;e>=0;--e)n[e]===t&&n.splice(e,1)},f.uninstall=function(){e&&(s.onerror=t,e=!1,t=void 0),n=[]},f}(),r.computeStackTrace=function(){function t(t){if(void 0!==t.stack&&t.stack){for(var e,n,i,r=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,s=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx(?:-web)|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,o=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,a=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,l=/\((\S*)(?::(\d+))(?::(\d+))\)/,u=t.stack.split("\n"),h=[],d=(/^(.*) is undefined$/.exec(t.message),0),p=u.length;d<p;++d){if(n=r.exec(u[d])){var m=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(e=l.exec(n[2]))&&(n[2]=e[1],n[3]=e[2],n[4]=e[3]),i={url:m?null:n[2],func:n[1]||"?",args:m?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=s.exec(u[d]))i={url:n[2],func:n[1]||"?",args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=o.exec(u[d])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(e=a.exec(n[3]))?(n[3]=e[1],n[4]=e[2],n[5]=null):0!==d||n[5]||void 0===t.columnNumber||(h[0].column=t.columnNumber+1),i={url:n[3],func:n[1]||"?",args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}if(!i.func&&i.line&&(i.func="?"),i.url&&"blob:"===i.url.substr(0,5)){var f=new XMLHttpRequest;if(f.open("GET",i.url,!1),f.send(null),200===f.status){var b=f.responseText||"",g=(b=b.slice(-300)).match(/\/\/# sourceMappingURL=(.*)$/);if(g){var _=g[1];"~"===_.charAt(0)&&(_=("undefined"==typeof document||null==document.location?"":document.location.origin?document.location.origin:document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:""))+_.slice(1)),i.url=_.slice(0,-4)}}}h.push(i)}return h.length?{name:t.name,message:t.message,url:c(),stack:h}:null}}function e(t,e,n,i){var r={url:e,line:n};if(r.url&&r.line){if(t.incomplete=!1,r.func||(r.func="?"),t.stack.length>0&&t.stack[0].url===r.url){if(t.stack[0].line===r.line)return!1;if(!t.stack[0].line&&t.stack[0].func===r.func)return t.stack[0].line=r.line,!1}return t.stack.unshift(r),t.partial=!0,!0}return t.incomplete=!0,!1}function n(t,s){for(var o,a,l=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,u=[],h={},d=!1,p=n.caller;p&&!d;p=p.caller)if(p!==i&&p!==r.report){if(a={url:null,func:"?",line:null,column:null},p.name?a.func=p.name:(o=l.exec(p.toString()))&&(a.func=o[1]),void 0===a.func)try{a.func=o.input.substring(0,o.input.indexOf("{"))}catch(f){}h[""+p]?d=!0:h[""+p]=!0,u.push(a)}s&&u.splice(0,s);var m={name:t.name,message:t.message,url:c(),stack:u};return e(m,t.sourceURL||t.fileName,t.line||t.lineNumber),m}function i(e,i){var s=null;i=null==i?0:+i;try{if(s=t(e))return s}catch(o){if(r.debug)throw o}try{if(s=n(e,i+1))return s}catch(o){if(r.debug)throw o}return{name:e.name,message:e.message,url:c()}}return i.augmentStackTraceWithInitialElement=e,i.computeStackTraceFromStackProp=t,i}(),t.exports=r},"4vkA":function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("2Vo4"),r=n("fXoL"),s=n("LRXf"),o=n("twBr"),a=n("tyNb"),c=n("i2dy"),l=n("kmQS");let u=(()=>{class t{constructor(t,e,n,r,s,o,a){this.httpClient=t,this.currentUser=e,this.router=n,this.route=r,this.toast=s,this.zone=o,this.config=a,this.forcedEmail$=new i.a(null)}login(t){return this.httpClient.post("auth/login",t)}register(t){return this.httpClient.post("auth/register",t)}logOut(){this.httpClient.post("auth/logout").subscribe(()=>{this.currentUser.assignCurrent(),this.router.navigate(["/login"])})}sendPasswordResetLink(t){return this.httpClient.post("auth/password/email",t)}resetPassword(t){return this.httpClient.post("auth/password/reset",t)}resendEmailConfirmation(t){return this.httpClient.post("auth/email/verify/resend",{email:t})}getRedirectUri(){if(this.currentUser.redirectUri){const t=this.currentUser.redirectUri;return this.currentUser.redirectUri=null,t}return this.currentUser.isAdmin()?this.config.get("vebto.auth.adminRedirectUri"):this.config.get("vebto.auth.redirectUri")}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(s.a),r.Xb(o.a),r.Xb(a.d),r.Xb(a.a),r.Xb(c.b),r.Xb(r.A),r.Xb(l.a))},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},"5+tZ":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("lJxs"),r=n("Cfvw"),s=n("zx2A");function o(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?s=>s.pipe(o((n,s)=>Object(r.a)(t(n,s)).pipe(Object(i.a)((t,i)=>e(n,t,s,i))),n)):("number"==typeof e&&(n=e),e=>e.lift(new a(t,n)))}class a{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new c(t,this.project,this.concurrent))}}class c extends s.b{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(e)}_innerSub(t){const e=new s.a(this),n=this.destination;n.add(e);const i=Object(s.c)(t,e);i!==e&&n.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"5o4b":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("XFMS"),r=n("fXoL");let s=(()=>{class t{constructor(){this.loadedAssets={}}loadAsset(t,e={type:"js"}){return"loaded"!==this.loadedAssets[t]||e.force?!this.loadedAssets[t]||e.force&&"loaded"===this.loadedAssets[t]?(this.loadedAssets[t]=new Promise((n,r)=>{const s=Object(i.a)(t)?t:"client/assets/"+t,o=e.id||t.split("/").pop();"css"===e.type?this.loadStyleAsset(s,o,n):this.loadScriptAsset(s,o,n)}),this.loadedAssets[t]):this.loadedAssets[t]:new Promise(t=>t())}loadStyleAsset(t,e,n){const i=document.createElement("link");i.rel="stylesheet",i.id=e||t.split("/").pop(),i.href=t,i.onload=()=>{this.loadedAssets[t]="loaded",n()},document.head.appendChild(i)}loadScriptAsset(t,e,n){const i=document.createElement("script");i.async=!0,i.id=e||t.split("/").pop(),i.src=t,i.onload=()=>{this.loadedAssets[t]="loaded",n()},document.body.appendChild(i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},"6JYt":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("ofXK"),r=n("tyNb"),s=n("NFeN"),o=n("6rvT"),a=n("fXoL");let c=(()=>{class t{}return t.\u0275mod=a.Lb({type:t}),t.\u0275inj=a.Kb({factory:function(e){return new(e||t)},imports:[[i.c,r.h,s.b,o.a]]}),t})()},"6rvT":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("fXoL");let r=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)}}),t})()},"6wUX":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=["bytes","KB","MB","GB","TB","PB"]},"7+OI":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("HDdC");function r(t){return!!t&&(t instanceof i.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},"7Hc7":function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));let i=1;const r=(()=>Promise.resolve())(),s={};function o(t){return t in s&&(delete s[t],!0)}const a={setImmediate(t){const e=i++;return s[e]=!0,r.then(()=>o(e)&&t()),e},clearImmediate(t){o(t)}};var c=n("3N8a");class l extends c.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=a.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(a.clearImmediate(e),t.scheduled=void 0)}}var u=n("IjjT");class h extends u.a{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,r=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i<r&&(t=e.shift()));if(this.active=!1,n){for(;++i<r&&(t=e.shift());)t.unsubscribe();throw n}}}const d=new h(l)},"7o/Q":function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("n6bG"),r=n("gRHU"),s=n("quSY"),o=n("2QA8"),a=n("2fFW"),c=n("NJ4a");class l extends s.a{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=r.a;break;case 1:if(!t){this.destination=r.a;break}if("object"==typeof t){t instanceof l?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,e,n)}}[o.a](){return this}static create(t,e,n){const i=new l(t,e,n);return i.syncErrorThrowable=!1,i}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 u extends l{constructor(t,e,n,s){let o;super(),this._parentSubscriber=t;let a=this;Object(i.a)(e)?o=e:e&&(o=e.next,n=e.error,s=e.complete,e!==r.a&&(a=Object.create(e),Object(i.a)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=n,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.a.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:n}=a.a;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(c.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(c.a)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.a.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(n){if(this.unsubscribe(),a.a.useDeprecatedSynchronousErrorHandling)throw n;Object(c.a)(n)}}__tryOrSetError(t,e,n){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return a.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(Object(c.a)(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},"7s5j":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("2Vo4"),r=n("fXoL"),s=n("twBr");let o=(()=>{class t{constructor(t){this.currentUser=t,this.plans=[],this.initialPlan$=new i.a(null),this.selectedPlan$=new i.a(null),this.mode=this.currentUser.isSubscribed()&&"none"!==this.currentUser.getSubscription().gateway?"changePlan":"subscribe"}selectInitialPlan(t){this.initialPlan$.next(t);const e=this.getChildPlans(t);e&&e[0]?(this.radioGroupModel=e[0].id,this.selectedPlan$.next(e[0])):(this.selectedPlan$.next(t),this.radioGroupModel=t.id)}selectPlanById(t){this.selectedPlan$.next(this.plans.find(e=>e.id===t))}getChildPlans(t){return this.plans.filter(e=>e.parent_id===t.id&&!e.hidden)}setPlans(t){this.plans=t}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(s.a))},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},"83W4":function(t,e,n){"use strict";n.d(e,"a",(function(){return _}));var i=n("fXoL"),r=n("JYI4"),s=n("+cHU"),o=n("R0Ic");const a=Object(o.m)("bellAnimation",[Object(o.l)("* => true",[Object(o.e)("1000ms 0ms",Object(o.g)([Object(o.k)({visibility:o.a,transform:"scale3d(1, 1, 1)",easing:"ease",offset:0}),Object(o.k)({transform:"scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)",easing:"ease",offset:.1}),Object(o.k)({transform:"scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)",easing:"ease",offset:.2}),Object(o.k)({transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)",easing:"ease",offset:.3}),Object(o.k)({transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)",easing:"ease",offset:.4}),Object(o.k)({transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)",easing:"ease",offset:.5}),Object(o.k)({transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)",easing:"ease",offset:.6}),Object(o.k)({transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)",easing:"ease",offset:.7}),Object(o.k)({transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)",easing:"ease",offset:.8}),Object(o.k)({transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)",easing:"ease",offset:.9}),Object(o.k)({transform:"scale3d(1, 1, 1)",easing:"ease",offset:1})]))])]);var c=n("/uUt"),l=n("zP0r"),u=n("2Vo4"),h=n("dz5c"),d=n("f+iI"),p=n("bTqV"),m=n("NFeN"),f=n("TU8p"),b=n("ofXK");const g=["notifButton"];let _=(()=>{class t{constructor(t,e){this.overlay=t,this.notifications=e,this.animationTrigger$=new u.a(!1)}ngOnInit(){this.notifications.unreadCount$.pipe(Object(c.a)(),Object(l.a)(1)).subscribe(()=>{this.animationTrigger$.next(!0)})}openNotificationPanel(){this.overlay.open(s.a,{position:r.a,mobilePosition:"center",origin:this.notifButton})}stopAnimation(){this.animationTrigger$.next(!1)}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(h.a),i.Nb(d.a))},t.\u0275cmp=i.Hb({type:t,selectors:[["notification-button"]],viewQuery:function(t,e){var n;1&t&&i.Bc(g,!0,i.l),2&t&&i.rc(n=i.bc())&&(e.notifButton=n.first)},decls:6,vars:9,consts:[["type","button","mat-icon-button","",1,"notification-button",3,"click"],["notifButton",""],["svgIcon","notifications","matBadgeColor","warn","matBadgeSize","small",3,"matBadge","matBadgeHidden"]],template:function(t,e){1&t&&(i.Tb(0,"button",0,1),i.ac("click",(function(){return e.openNotificationPanel()})),i.Tb(2,"mat-icon",2),i.ac("@bellAnimation.done",(function(){return e.stopAnimation()})),i.fc(3,"async"),i.fc(4,"async"),i.fc(5,"async"),i.Sb(),i.Sb()),2&t&&(i.Bb(2),i.kc("matBadge",i.gc(3,3,e.notifications.unreadCount$))("matBadgeHidden",i.gc(4,5,e.notifications.unreadCount$)<1)("@bellAnimation",i.gc(5,7,e.animationTrigger$)))},directives:[p.b,m.a,f.a],pipes:[b.b],styles:[".mat-icon[_ngcontent-%COMP%]{-webkit-backface-visibility:hidden;backface-visibility:hidden}"],data:{animation:[a]},changeDetection:0}),t})()},"8LU1":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return r})),n.d(e,"d",(function(){return c})),n.d(e,"e",(function(){return l})),n.d(e,"f",(function(){return s}));var i=n("fXoL");function r(t){return null!=t&&""+t!="false"}function s(t,e=0){return o(t)?Number(t):e}function o(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function a(t){return Array.isArray(t)?t:[t]}function c(t){return null==t?"":"string"==typeof t?t:t+"px"}function l(t){return t instanceof i.l?t.nativeElement:t}},"90az":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("fXoL"),r=n("sPnx");let s=(()=>{class t{constructor(t){this.http=t}getAll(e={}){return this.http.getWithCache(""+t.BASE_URI,e)}get(e){return this.http.getWithCache(`${t.BASE_URI}/${e}`)}create(e,n){return this.http.post(""+(n||t.BASE_URI),e)}update(e,n,i){return this.http.put(`${i||t.BASE_URI}/${e}`,n)}delete(e){return this.http.delete(`${t.BASE_URI}/${e}`)}}return t.BASE_URI="page",t.\u0275fac=function(e){return new(e||t)(i.Xb(r.a))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},"9ppp":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},A5z7:function(t,e,n){"use strict";n.d(e,"a",(function(){return S})),n.d(e,"b",(function(){return M})),n.d(e,"c",(function(){return j})),n.d(e,"d",(function(){return E})),n.d(e,"e",(function(){return N}));var i=n("FtGj"),r=n("fXoL"),s=n("FKr1"),o=n("8LU1"),a=n("ofXK"),c=n("R1ws"),l=n("XNiG"),u=n("VRyK"),h=n("IzEk"),d=n("1G5W"),p=n("JX91"),m=n("u47x"),f=n("0EQZ"),b=n("kmnG"),g=n("nLfN"),_=n("cH1L"),v=n("3Pt+");const y=["*"],w=new r.r("MatChipRemove"),C=new r.r("MatChipAvatar"),x=new r.r("MatChipTrailingIcon");class k{constructor(t){this._elementRef=t}}const O=Object(s.z)(Object(s.v)(Object(s.w)(k),"primary"),-1);let S=(()=>{class t extends O{constructor(t,e,n,i,o,a,c,u){super(t),this._elementRef=t,this._ngZone=e,this._changeDetectorRef=a,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new l.a,this._onBlur=new l.a,this.selectionChange=new r.n,this.destroyed=new r.n,this.removed=new r.n,this._addHostClassName(),this._chipRippleTarget=(u||document).createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new s.s(this,e,this._chipRippleTarget,n),this._chipRipple.setupTriggerEvents(t),this.rippleConfig=i||{},this._animationsDisabled="NoopAnimations"===o,this.tabIndex=null!=c&&parseInt(c)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(t){const e=Object(o.c)(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(t){this._value=t}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=Object(o.c)(t)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(t){this._disabled=Object(o.c)(t)}get removable(){return this._removable}set removable(t){this._removable=Object(o.c)(t)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const t=this._elementRef.nativeElement;t.hasAttribute("mat-basic-chip")||"mat-basic-chip"===t.tagName.toLowerCase()?t.classList.add("mat-basic-chip"):t.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._markForCheck())}toggleSelected(t=!1){return this._selected=!this.selected,this._dispatchSelectionChange(t),this._markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(t){this.disabled?t.preventDefault():t.stopPropagation()}_handleKeydown(t){if(!this.disabled)switch(t.keyCode){case i.c:case i.b:this.remove(),t.preventDefault();break;case i.n:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}_blur(){this._ngZone.onStable.asObservable().pipe(Object(h.a)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(t=!1){this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}_markForCheck(){this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.l),r.Nb(r.A),r.Nb(g.a),r.Nb(s.g,8),r.Nb(c.a,8),r.Nb(r.h),r.Yb("tabindex"),r.Nb(a.e,8))},t.\u0275dir=r.Ib({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,n){var i;1&t&&(r.Gb(n,C,!0),r.Gb(n,x,!0),r.Gb(n,w,!0)),2&t&&(r.rc(i=r.bc())&&(e.avatar=i.first),r.rc(i=r.bc())&&(e.trailingIcon=i.first),r.rc(i=r.bc())&&(e.removeIcon=i.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&r.ac("click",(function(t){return e._handleClick(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e.focus()}))("blur",(function(){return e._blur()})),2&t&&(r.Cb("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),r.Fb("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[r.yb]}),t})(),E=(()=>{class t{constructor(t,e){this._parentChip=t,e&&"BUTTON"===e.nativeElement.nodeName&&e.nativeElement.setAttribute("type","button")}_handleClick(t){const e=this._parentChip;e.removable&&!e.disabled&&e.remove(),t.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(S),r.Nb(r.l))},t.\u0275dir=r.Ib({type:t,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(t,e){1&t&&r.ac("click",(function(t){return e._handleClick(t)}))},features:[r.Ab([{provide:w,useExisting:t}])]}),t})();const T=new r.r("mat-chips-default-options");class A{constructor(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}}const I=Object(s.y)(A);let D=0;class P{constructor(t,e){this.source=t,this.value=e}}let j=(()=>{class t extends I{constructor(t,e,n,i,s,o,a){super(o,i,s,a),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this.ngControl=a,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new l.a,this._uid="mat-chip-list-"+D++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(t,e)=>t===e,this._required=!1,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new r.n,this.valueChange=new r.n,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(t){this._multiple=Object(o.c)(t),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required}set required(t){this._required=Object(o.c)(t),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=Object(o.c)(t),this._syncChipsState()}get selectable(){return this._selectable}set selectable(t){this._selectable=Object(o.c)(t),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(t){this._userTabIndex=t,this._tabIndex=t}get chipSelectionChanges(){return Object(u.a)(...this.chips.map(t=>t.selectionChange))}get chipFocusChanges(){return Object(u.a)(...this.chips.map(t=>t._onFocus))}get chipBlurChanges(){return Object(u.a)(...this.chips.map(t=>t._onBlur))}get chipRemoveChanges(){return Object(u.a)(...this.chips.map(t=>t.destroyed))}ngAfterContentInit(){this._keyManager=new m.g(this.chips).withWrap().withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Object(d.a)(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.tabOut.pipe(Object(d.a)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(Object(p.a)(null),Object(d.a)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new f.b(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(t){this._chipInput=t}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}writeValue(t){this.chips&&this._setSelectionByValue(t,!1)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}onContainerClick(t){this._originatesFromChip(t)||this.focus()}focus(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}_focusInput(t){this._chipInput&&this._chipInput.focus(t)}_keydown(t){const e=t.target;t.keyCode===i.b&&this._isInputEmpty(e)?(this._keyManager.setLastItemActive(),t.preventDefault()):e&&e.classList.contains("mat-chip")&&(t.keyCode===i.h?(this._keyManager.setFirstItemActive(),t.preventDefault()):t.keyCode===i.e?(this._keyManager.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(t){return t>=0&&t<this.chips.length}_isInputEmpty(t){return!(!t||"input"!==t.nodeName.toLowerCase()||t.value)}_setSelectionByValue(t,e=!0){if(this._clearSelection(),this.chips.forEach(t=>t.deselect()),Array.isArray(t))t.forEach(t=>this._selectValue(t,e)),this._sortValues();else{const n=this._selectValue(t,e);n&&e&&this._keyManager.setActiveItem(n)}}_selectValue(t,e=!0){const n=this.chips.find(e=>null!=e.value&&this._compareWith(e.value,t));return n&&(e?n.selectViaInteraction():n.select(),this._selectionModel.select(n)),n}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(t){this._selectionModel.clear(),this.chips.forEach(e=>{e!==t&&e.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(t=>{t.selected&&this._selectionModel.select(t)}),this.stateChanges.next())}_propagateChanges(t){let e=null;e=Array.isArray(this.selected)?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.change.emit(new P(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(t=>{t.source.selected?this._selectionModel.select(t.source):this._selectionModel.deselect(t.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(t=>{let e=this.chips.toArray().indexOf(t.chip);this._isValidIndex(e)&&this._keyManager.updateActiveItem(e),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(t=>{const e=t.chip,n=this.chips.toArray().indexOf(t.chip);this._isValidIndex(n)&&e._hasFocus&&(this._lastDestroyedChipIndex=n)})}_originatesFromChip(t){let e=t.target;for(;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(t=>t._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(t=>{t._chipListDisabled=this._disabled,t._chipListMultiple=this.multiple})}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.l),r.Nb(r.h),r.Nb(_.c,8),r.Nb(v.w,8),r.Nb(v.m,8),r.Nb(s.b),r.Nb(v.t,10))},t.\u0275cmp=r.Hb({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,n){var i;1&t&&r.Gb(n,S,!0),2&t&&r.rc(i=r.bc())&&(e.chips=i)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&r.ac("focus",(function(){return e.focus()}))("blur",(function(){return e._blur()}))("keydown",(function(t){return e._keydown(t)})),2&t&&(r.Wb("id",e._uid),r.Cb("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),r.Fb("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[r.Ab([{provide:b.c,useExisting:t}]),r.yb],ngContentSelectors:y,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(r.jc(),r.Tb(0,"div",0),r.ic(1),r.Sb())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t})(),F=0,M=(()=>{class t{constructor(t,e){this._elementRef=t,this._defaultOptions=e,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new r.n,this.placeholder="",this.id="mat-chip-list-input-"+F++,this._disabled=!1,this._inputElement=this._elementRef.nativeElement}set chipList(t){t&&(this._chipList=t,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(t){this._addOnBlur=Object(o.c)(t)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(t){this._disabled=Object(o.c)(t)}get empty(){return!this._inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}_keydown(t){t&&t.keyCode===i.o&&!Object(i.s)(t,"shiftKey")&&this._chipList._allowFocusEscape(),this._emitChipEnd(t)}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._chipList.stateChanges.next()}_emitChipEnd(t){!this._inputElement.value&&t&&this._chipList._keydown(t),t&&!this._isSeparatorKey(t)||(this.chipEnd.emit({input:this._inputElement,value:this._inputElement.value}),t&&t.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(t){this._inputElement.focus(t)}_isSeparatorKey(t){if(Object(i.s)(t))return!1;const e=this.separatorKeyCodes,n=t.keyCode;return Array.isArray(e)?e.indexOf(n)>-1:e.has(n)}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.l),r.Nb(T))},t.\u0275dir=r.Ib({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,e){1&t&&r.ac("keydown",(function(t){return e._keydown(t)}))("blur",(function(){return e._blur()}))("focus",(function(){return e._focus()}))("input",(function(){return e._onInput()})),2&t&&(r.Wb("id",e.id),r.Cb("disabled",e.disabled||null)("placeholder",e.placeholder||null)("aria-invalid",e._chipList&&e._chipList.ngControl?e._chipList.ngControl.invalid:null)("aria-required",e._chipList&&e._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[r.zb]}),t})();const R={separatorKeyCodes:[i.f]};let N=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},providers:[s.b,{provide:T,useValue:R}]}),t})()},AKyF:function(t,e,n){var i=n("vYjF");t.exports={wrapMethod:function(t,e,n){var r=t[e],s=t;if(e in t){var o="warn"===e?"warning":e;t[e]=function(){var t=[].slice.call(arguments),a=i.safeJoin(t," "),c={level:o,logger:"console",extra:{arguments:t}};"assert"===e?!1===t[0]&&(a="Assertion failed: "+(i.safeJoin(t.slice(1)," ")||"console.assert"),c.extra.arguments=t.slice(1),n&&n(a,c)):n&&n(a,c),r&&Function.prototype.apply.call(r,s,t)}}}}},AUIZ:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("WAq7"),r=n("fXoL"),s=n("kmQS"),o=n("twBr");let a=(()=>{class t{constructor(t,e){this.settings=t,this.currentUser=e}getBaseUrl(t,e=!1){const n="projects/"+this.getProjectUserId(t)+"/"+t.uuid+"/";return e?n:this.settings.getBaseUrl()+"storage/"+n}getProjectUserId(t){return t.users&&t.users.length?t.users[0].id:this.currentUser.get("id")}getSiteUrl(t){const e=this.settings.getBaseUrl(!0),n=Object(i.a)(t.name);let r;if(t.domain)return t.domain.host;if(this.settings.get("builder.enable_subdomains")){const t=new URL(e);r=`${t.protocol}//${n}.${t.host}`}else r=e+"sites/"+n;return r.replace(/\/$/,"")}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(s.a),r.Xb(o.a))},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},BjAV:function(t,e){function n(t,e){for(var n=0;n<t.length;++n)if(t[n]===e)return n;return-1}function i(t,e){var i=[],r=[];return null==e&&(e=function(t,e){return i[0]===e?"[Circular ~]":"[Circular ~."+r.slice(0,n(i,e)).join(".")+"]"}),function(s,o){if(i.length>0){var a=n(i,this);~a?i.splice(a+1):i.push(this),~a?r.splice(a,1/0,s):r.push(s),~n(i,o)&&(o=e.call(this,s,o))}else i.push(o);return null==t?o instanceof Error?function(t){var e={stack:t.stack,message:t.message,name:t.name};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}(o):o:t.call(this,s,o)}}(t.exports=function(t,e,n,r){return JSON.stringify(t,i(e,r),n)}).getSerialize=i},CH4Q:function(t,e,n){"use strict";n.d(e,"a",(function(){return w}));var i=n("fXoL"),r=n("kmQS"),s=n("ofXK"),o=n("NFeN"),a=n("IzEk"),c=n("lJxs"),l=n("vkgz"),u=n("nYR2"),h=n("w1tV"),d=n("LRne"),p=n("tk/3");let m=(()=>{class t{constructor(t,e){this.http=t,this.document=e,this.cache=new Map,this.inProgressUrlFetches=new Map}get(t){const e=t.endsWith(".svg")?t:t+".svg";return this.cache.get(e)?Object(d.a)(f(this.cache.get(e))):this.fetchIcon(e).pipe(Object(c.a)(t=>this.svgElementFromString(t,e)),Object(l.a)(t=>this.cache.set(e,t)),Object(c.a)(t=>f(t)))}fetchIcon(t){const e=this.inProgressUrlFetches.get(t);if(e)return e;const n=this.http.get("client/assets/images/illustrations/"+t,{responseType:"text"}).pipe(Object(u.a)(()=>this.inProgressUrlFetches.delete(t)),Object(h.a)());return this.inProgressUrlFetches.set(t,n),n}svgElementFromString(t,e=""){const n=this.document.createElement("DIV");n.innerHTML=t;const i=n.querySelector("svg");if(!i)throw Error("<svg> tag not found for "+e);return i}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(p.b),i.Xb(s.e,8))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function f(t){return t.cloneNode(!0)}let b=(()=>{class t{constructor(t,e){this.cache=t,this.el=e}ngOnChanges(t){var e;const n=t.name;n?(null===(e=this.currentSvgFetch)||void 0===e||e.unsubscribe(),this.name&&(this.currentSvgFetch=this.cache.get(this.name).pipe(Object(a.a)(1)).subscribe(t=>this.setSvgElement(t)))):n.previousValue&&this.clearSvgElement()}ngOnDestroy(){var t;null===(t=this.currentSvgFetch)||void 0===t||t.unsubscribe()}setSvgElement(t){this.clearSvgElement();const e=t.querySelectorAll("style");for(let n=0;n<e.length;n++)e[n].textContent+=" ";this.el.nativeElement.appendChild(t)}clearSvgElement(){const t=this.el.nativeElement;let e=t.childNodes.length;for(;e--;){const n=t.childNodes[e];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||t.removeChild(n)}}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(m),i.Nb(i.l))},t.\u0275cmp=i.Hb({type:t,selectors:[["svg-image"]],hostAttrs:["role","img"],inputs:{name:"name"},features:[i.zb],decls:0,vars:0,template:function(t,e){},styles:["svg-image{display:inline-block;background-repeat:no-repeat}svg-image svg{width:inherit;height:inherit}"],encapsulation:2,changeDetection:0}),t})();function g(t,e){if(1&t&&i.Ob(0,"mat-icon",5),2&t){const t=i.ec();i.kc("svgIcon",t.svgIcon)}}function _(t,e){if(1&t&&i.Ob(0,"svg-image",6),2&t){const t=i.ec();i.kc("name",t.svgImage)}}const v=[[["","primary-text",""]],[["","secondary-text",""]]],y=["[primary-text]","[secondary-text]"];let w=(()=>{class t{constructor(t){this.settings=t,this.svgImage="no-results.svg",this.horizontal=!1}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(r.a))},t.\u0275cmp=i.Hb({type:t,selectors:[["no-results-message"]],hostAttrs:[1,"no-results-message"],hostVars:2,hostBindings:function(t,e){2&t&&i.Fb("horizontal",e.horizontal)},inputs:{svgImage:"svgImage",svgIcon:"svgIcon",horizontal:"horizontal"},ngContentSelectors:y,decls:8,vars:2,consts:[["class","icon",3,"svgIcon",4,"ngIf","ngIfElse"],["svgImageRef",""],[1,"text"],[1,"main"],[1,"secondary"],[1,"icon",3,"svgIcon"],[1,"icon",3,"name"]],template:function(t,e){if(1&t&&(i.jc(v),i.Fc(0,g,1,1,"mat-icon",0),i.Fc(1,_,1,1,"ng-template",null,1,i.Gc),i.Tb(3,"div",2),i.Tb(4,"div",3),i.ic(5),i.Sb(),i.Tb(6,"div",4),i.ic(7,1),i.Sb(),i.Sb()),2&t){const t=i.sc(2);i.kc("ngIf",e.svgIcon)("ngIfElse",t)}},directives:[s.t,o.a,b],styles:[""],changeDetection:0}),t})()},CHUN:function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var i=n("ofXK"),r=n("bTqV"),s=n("NFeN"),o=n("STbY"),a=n("6rvT"),c=n("3Pt+"),l=n("X3pI"),u=n("fXoL");let h=(()=>{class t{}return t.\u0275mod=u.Lb({type:t}),t.\u0275inj=u.Kb({factory:function(e){return new(e||t)},imports:[[i.c,r.c,o.b,a.a,c.E,s.b,l.a]]}),t})()},CXWK:function(t,e,n){"use strict";n.d(e,"a",(function(){return C}));var i=n("ofXK"),r=n("WWJw"),s=n("MKyN"),o=n("TU8p"),a=n("bTqV"),c=n("NFeN"),l=n("bv9b"),u=n("X3pI"),h=n("83W4"),d=n("6rvT"),p=n("tyNb"),m=n("+cHU"),f=n("fXoL"),b=n("gA0O"),g=n("cH1L"),_=n("FBzJ"),v=n("DB1O"),y=n("Rd8u"),w=n("zW5C");let C=(()=>{class t{}return t.\u0275mod=f.Lb({type:t}),t.\u0275inj=f.Kb({factory:function(e){return new(e||t)},imports:[[i.c,p.h,s.a,c.b,a.c,o.b,u.a,d.a,l.b]]}),t})();f.yc(m.a,[i.q,i.r,i.s,i.t,i.A,i.w,i.x,i.y,i.z,i.u,i.v,p.i,p.e,p.g,p.f,p.j,b.a,c.a,g.b,a.b,a.a,o.a,_.a,v.a,y.a,l.a,r.a,h.a,m.a],[i.b,i.G,i.p,i.k,i.E,i.g,i.C,i.F,i.d,i.f,i.i,i.j,i.l,w.a])},Cfvw:function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var i=n("HDdC"),r=n("SeVD"),s=n("quSY"),o=n("kJWO"),a=n("jZKg"),c=n("Lhse"),l=n("c2HN"),u=n("I55L");function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.a]}(t))return function(t,e){return new i.a(n=>{const i=new s.a;return i.add(e.schedule(()=>{const r=t[o.a]();i.add(r.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if(Object(l.a)(t))return function(t,e){return new i.a(n=>{const i=new s.a;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if(Object(u.a)(t))return Object(a.a)(t,e);if(function(t){return t&&"function"==typeof t[c.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new i.a(n=>{const i=new s.a;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=t[c.a](),i.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=r.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())})))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof i.a?t:new i.a(Object(r.a)(t))}},D0XW:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("3N8a");const r=new(n("IjjT").a)(i.a)},DB1O:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("fXoL"),r=n("FBzJ");let s=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Hb({type:t,selectors:[["loading-page"]],decls:1,vars:1,consts:[[1,"overlay",3,"isVisible"]],template:function(t,e){1&t&&i.Ob(0,"loading-indicator",0),2&t&&i.kc("isVisible",!0)},directives:[r.a],styles:["loading-indicator.overlay[_ngcontent-%COMP%]{background-color:transparent}"],changeDetection:0}),t})()},DH7j:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},EBs8:function(t,e,n){"use strict";function i(t,e){return Math.floor(100*t/e)}n.d(e,"a",(function(){return i}))},EY2u:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return s}));var i=n("HDdC");const r=new i.a(t=>t.complete());function s(t){return t?function(t){return new i.a(e=>t.schedule(()=>e.complete()))}(t):r}},FBzJ:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("R0Ic"),r=n("fXoL");let s=(()=>{class t{constructor(){this.isVisible=!1}show(){this.isVisible=!0}hide(){this.isVisible=!1}toggle(){this.isVisible=!this.isVisible}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Hb({type:t,selectors:[["loading-indicator"]],hostVars:1,hostBindings:function(t,e){2&t&&r.Ec("@visibility",e.isVisible)},inputs:{isVisible:"isVisible"},decls:9,vars:0,consts:[[1,"la-ball-spin-clockwise","spinner"]],template:function(t,e){1&t&&(r.Tb(0,"div",0),r.Ob(1,"div"),r.Ob(2,"div"),r.Ob(3,"div"),r.Ob(4,"div"),r.Ob(5,"div"),r.Ob(6,"div"),r.Ob(7,"div"),r.Ob(8,"div"),r.Sb())},styles:[".overlay[_nghost-%COMP%], .overlay   [_nghost-%COMP%]{position:fixed;width:100vw;height:100vh;top:0;left:0;z-index:10;background-color:hsla(0,0%,98%,.7)}.overlay[_nghost-%COMP%]   .spinner[_ngcontent-%COMP%], .overlay   [_nghost-%COMP%]   .spinner[_ngcontent-%COMP%]{position:absolute;top:calc(50% - 32px);left:calc(50% - 32px)}.overlay-partial[_nghost-%COMP%], .overlay-partial   [_nghost-%COMP%]{position:absolute;width:100%;height:100%}.small[_nghost-%COMP%], .small   [_nghost-%COMP%], .small[_nghost-%COMP%]   .spinner[_ngcontent-%COMP%], .small   [_nghost-%COMP%]   .spinner[_ngcontent-%COMP%]{width:22.8571428571px;height:22.8571428571px}.small[_nghost-%COMP%]   .spinner[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .small   [_nghost-%COMP%]   .spinner[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:5.7142857143px;height:5.7142857143px;margin-top:-2.8571428571px;margin-left:-2.8571428571px}.inline[_nghost-%COMP%], .inline   [_nghost-%COMP%]{position:relative;width:100%}.inline[_nghost-%COMP%]   .spinner[_ngcontent-%COMP%], .inline   [_nghost-%COMP%]   .spinner[_ngcontent-%COMP%]{margin:auto}[_nghost-%COMP%]{opacity:0;position:absolute;width:64px;height:64px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:transparent}[_nghost-%COMP%], [_nghost-%COMP%]:empty{display:none}.spinner[_ngcontent-%COMP%]{width:64px;height:64px;color:var(--be-accent-default)}.spinner[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:16px;height:16px;margin-top:-8px;margin-left:-8px}.be-dark-mode.overlay[_nghost-%COMP%], .be-dark-mode   .overlay[_nghost-%COMP%]{background-color:rgba(0,0,0,.4)}.center[_nghost-%COMP%], .center   [_nghost-%COMP%]{top:calc(50% - 32px);left:calc(50% - 32px)}.overlay-light[_nghost-%COMP%], .overlay-light   [_nghost-%COMP%]{background-color:hsla(0,0%,100%,.9)}.overlay-dark[_nghost-%COMP%], .overlay-dark   [_nghost-%COMP%]{background-color:rgba(0,0,0,.1)}.overlay-transparent[_nghost-%COMP%], .overlay-transparent   [_nghost-%COMP%]{background-color:transparent}.la-ball-spin-clockwise[_ngcontent-%COMP%], .la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{position:relative;box-sizing:border-box}.la-ball-spin-clockwise[_ngcontent-%COMP%]{display:block;font-size:0}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:inline-block;float:none;background-color:currentColor;border:0 solid;position:absolute;top:50%;left:50%;border-radius:100%;-webkit-animation:ball-spin-clockwise 1s ease-in-out infinite;animation:ball-spin-clockwise 1s ease-in-out infinite}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{top:5%;left:50%;-webkit-animation-delay:-.875s;animation-delay:-.875s}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){top:18.1801948466%;left:81.8198051534%;-webkit-animation-delay:-.75s;animation-delay:-.75s}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){top:50%;left:95%;-webkit-animation-delay:-.625s;animation-delay:-.625s}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){top:81.8198051534%;left:81.8198051534%;-webkit-animation-delay:-.5s;animation-delay:-.5s}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){top:94.9999999966%;left:50.0000000005%;-webkit-animation-delay:-.375s;animation-delay:-.375s}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){top:81.8198046966%;left:18.1801949248%;-webkit-animation-delay:-.25s;animation-delay:-.25s}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){top:49.9999750815%;left:5.0000051215%;-webkit-animation-delay:-.125s;animation-delay:-.125s}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){top:18.179464974%;left:18.1803700518%;-webkit-animation-delay:0s;animation-delay:0s}@-webkit-keyframes ball-spin-clockwise{0%,to{opacity:1;transform:scale(1)}20%{opacity:1}80%{opacity:0;transform:scale(0)}}@keyframes ball-spin-clockwise{0%,to{opacity:1;transform:scale(1)}20%{opacity:1}80%{opacity:0;transform:scale(0)}}"],data:{animation:[Object(i.m)("visibility",[Object(i.j)("true",Object(i.k)({opacity:"1",display:"block"})),Object(i.j)("false",Object(i.k)({opacity:"0",display:"none"})),Object(i.l)("true <=> false",Object(i.e)("125ms cubic-bezier(.4,0,.2,1)"))])]},changeDetection:0}),t})()},FKr1:function(t,e,n){"use strict";n.d(e,"a",(function(){return O})),n.d(e,"b",(function(){return N})),n.d(e,"c",(function(){return S})),n.d(e,"d",(function(){return pt})),n.d(e,"e",(function(){return rt})),n.d(e,"f",(function(){return at})),n.d(e,"g",(function(){return G})),n.d(e,"h",(function(){return _})),n.d(e,"i",(function(){return L})),n.d(e,"j",(function(){return V})),n.d(e,"k",(function(){return R})),n.d(e,"l",(function(){return lt})),n.d(e,"m",(function(){return dt})),n.d(e,"n",(function(){return ot})),n.d(e,"o",(function(){return J})),n.d(e,"p",(function(){return Q})),n.d(e,"q",(function(){return K})),n.d(e,"r",(function(){return Y})),n.d(e,"s",(function(){return W})),n.d(e,"t",(function(){return ut})),n.d(e,"u",(function(){return ht})),n.d(e,"v",(function(){return y})),n.d(e,"w",(function(){return w})),n.d(e,"x",(function(){return v})),n.d(e,"y",(function(){return x})),n.d(e,"z",(function(){return C})),n.d(e,"A",(function(){return B}));var i=n("fXoL"),r=n("u47x"),s=n("cH1L");const o=new i.Q("10.1.3");var a=n("ofXK"),c=n("8LU1"),l=n("XNiG"),u=(n("HDdC"),n("nLfN")),h=n("JX91"),d=n("R1ws"),p=n("FtGj");function m(t,e){if(1&t&&i.Ob(0,"mat-pseudo-checkbox",3),2&t){const t=i.ec();i.kc("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const f=["*"],b=new i.Q("10.1.3"),g=new i.r("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let _=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getDocument(){const t=this._document||document;return"object"==typeof t&&t?t:null}_getWindow(){const t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e:null}_checksAreEnabled(){return Object(i.X)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){const t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){const t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(t||!e||!e.body||"function"!=typeof getComputedStyle)return;const n=e.createElement("div");n.classList.add("mat-theme-loaded-marker"),e.body.appendChild(n);const i=getComputedStyle(n);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"),e.body.removeChild(n)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&b.full!==o.full&&console.warn("The Angular Material version ("+b.full+") does not match the Angular CDK version ("+o.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)(i.Xb(r.j),i.Xb(g,8),i.Xb(a.e,8))},imports:[[s.a],s.a]}),t})();function v(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(c.c)(t)}}}function y(t,e){return class extends t{constructor(...t){super(...t),this.color=e}get color(){return this._color}set color(t){const n=t||e;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),n&&this._elementRef.nativeElement.classList.add("mat-"+n),this._color=n)}}}function w(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Object(c.c)(t)}}}function C(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?Object(c.f)(t):e}}}function x(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new l.a}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}const k=new i.r("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Object(i.W)(i.v)}});class O{constructor(){this._localeChanges=new l.a}get localeChanges(){return this._localeChanges}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let n=this.isValid(t),i=this.isValid(e);return n&&i?!this.compareDate(t,e):n==i}return t==e}clampDate(t,e,n){return e&&this.compareDate(t,e)<0?e:n&&this.compareDate(t,n)>0?n:t}}const S=new i.r("mat-date-formats");let E;try{E="undefined"!=typeof Intl}catch(mt){E=!1}const T={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},A=P(31,t=>String(t+1)),I={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},D=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function P(t,e){const n=Array(t);for(let i=0;i<t;i++)n[i]=e(i);return n}let j=(()=>{class t extends O{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(E){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return P(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return T[t]}getDateNames(){if(E){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return P(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return A}getDayOfWeekNames(t){if(E){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return P(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return I[t]}getYearName(t){if(E){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,n){if(e<0||e>11)throw Error(`Invalid month index "${e}". Month index has to be between 0 and 11.`);if(n<1)throw Error(`Invalid date "${n}". Date has to be greater than 0.`);let i=this._createDateWithOverflow(t,e,n);if(i.getMonth()!=e)throw Error(`Invalid date "${n}" for month with index "${e}".`);return i}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(E){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(n,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let n=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(n)!=((this.getMonth(t)+e)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(D.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,n){const i=new Date(t,e,n);return t>=0&&t<100&&i.setFullYear(this.getYear(i)-1900),i}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.format(n)}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(k,8),i.Xb(u.a))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac}),t})(),F=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)},providers:[{provide:O,useClass:j}],imports:[[u.b]]}),t})();const M={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let R=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)},providers:[{provide:S,useValue:M}],imports:[[F]]}),t})(),N=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Jb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),L=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Ib({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function B(t,e,n="mat"){t.changes.pipe(Object(h.a)(t)).subscribe(({length:t})=>{H(e,n+"-2-line",!1),H(e,n+"-3-line",!1),H(e,n+"-multi-line",!1),2===t||3===t?H(e,`${n}-${t}-line`,!0):t>3&&H(e,n+"-multi-line",!0)})}function H(t,e,n){const i=t.nativeElement.classList;n?i.add(e):i.remove(e)}let V=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)},imports:[[_],_]}),t})();class z{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const U={enterDuration:450,exitDuration:400},$=Object(u.f)({passive:!0}),X=["mousedown","touchstart"],q=["mouseup","mouseleave","touchend","touchcancel"];class W{constructor(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=Object(c.e)(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},U),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const s=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),r=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+r*r)}(t,e,i),o=t-i.left,a=e-i.top,c=r.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=o-s+"px",l.style.top=a-s+"px",l.style.height=2*s+"px",l.style.width=2*s+"px",null!=n.color&&(l.style.backgroundColor=n.color),l.style.transitionDuration=c+"ms",this._containerElement.appendChild(l),window.getComputedStyle(l).getPropertyValue("opacity"),l.style.transform="scale(1)";const u=new z(this,l,n);return u.state=0,this._activeRipples.add(u),n.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const t=u===this._mostRecentTransientRipple;u.state=1,n.persistent||t&&this._isPointerDown||u.fadeOut()},c),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,i=Object.assign(Object.assign({},U),t.config.animation);n.style.transitionDuration=i.exitDuration+"ms",n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=Object(c.e)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(X))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(q),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Object(r.l)(t),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||e||n||(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let t=0;t<e.length;t++)this.fadeInRipple(e[t].clientX,e[t].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!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(t=>{this._triggerElement.addEventListener(t,this,$)})})}_removeTriggerEvents(){this._triggerElement&&(X.forEach(t=>{this._triggerElement.removeEventListener(t,this,$)}),this._pointerUpEventsRegistered&&q.forEach(t=>{this._triggerElement.removeEventListener(t,this,$)}))}}const G=new i.r("mat-ripple-global-options");let K=(()=>{class t{constructor(t,e,n,i,r){this._elementRef=t,this._animationMode=r,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new W(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}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(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.l),i.Nb(i.A),i.Nb(u.a),i.Nb(G,8),i.Nb(d.a,8))},t.\u0275dir=i.Ib({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&i.Fb("mat-ripple-unbounded",e.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"]}),t})(),Y=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)},imports:[[_,u.b],_]}),t})(),J=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(d.a,8))},t.\u0275cmp=i.Hb({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&i.Fb("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},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}),t})(),Q=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)}}),t})();class Z{}const tt=v(Z);let et=0,nt=(()=>{class t extends tt{constructor(){super(...arguments),this._labelId="mat-optgroup-label-"+et++}}return t.\u0275fac=function(e){return it(e||t)},t.\u0275dir=i.Ib({type:t,inputs:{label:"label"},features:[i.yb]}),t})();const it=i.Vb(nt),rt=new i.r("MatOptgroup");let st=0;class ot{constructor(t,e=!1){this.source=t,this.isUserInput=e}}const at=new i.r("MAT_OPTION_PARENT_COMPONENT");let ct=(()=>{class t{constructor(t,e,n,r){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+st++,this.onSelectionChange=new i.n,this._stateChanges=new l.a}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(t){this._disabled=Object(c.c)(t)}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(t,e){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){t.keyCode!==p.f&&t.keyCode!==p.n||Object(p.s)(t)||(this._selectViaInteraction(),t.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 t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new ot(this,t))}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.l),i.Nb(i.h),i.Nb(void 0),i.Nb(nt))},t.\u0275dir=i.Ib({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),lt=(()=>{class t extends ct{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.l),i.Nb(i.h),i.Nb(at,8),i.Nb(rt,8))},t.\u0275cmp=i.Hb({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&i.ac("click",(function(){return e._selectViaInteraction()}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&(i.Wb("id",e.id),i.Cb("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),i.Fb("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[i.yb],ngContentSelectors:f,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(t,e){1&t&&(i.jc(),i.Fc(0,m,1,2,"mat-pseudo-checkbox",0),i.Tb(1,"span",1),i.ic(2),i.Sb(),i.Ob(3,"div",2)),2&t&&(i.kc("ngIf",e.multiple),i.Bb(3),i.kc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[a.t,K,J],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}.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}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function ut(t,e,n){if(n.length){let i=e.toArray(),r=n.toArray(),s=0;for(let e=0;e<t+1;e++)i[e].group&&i[e].group===r[s]&&s++;return s}return 0}function ht(t,e,n,i){const r=t*e;return r<n?r:r+e>n+i?Math.max(0,r-i+e):n}let dt=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)},imports:[[Y,a.c,Q]]}),t})();const pt=new i.r("mat-label-global-options")},FtGj:function(t,e,n){"use strict";n.d(e,"a",(function(){return v})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return b})),n.d(e,"d",(function(){return f})),n.d(e,"e",(function(){return u})),n.d(e,"f",(function(){return s})),n.d(e,"g",(function(){return o})),n.d(e,"h",(function(){return h})),n.d(e,"i",(function(){return d})),n.d(e,"j",(function(){return _})),n.d(e,"k",(function(){return l})),n.d(e,"l",(function(){return c})),n.d(e,"m",(function(){return m})),n.d(e,"n",(function(){return a})),n.d(e,"o",(function(){return r})),n.d(e,"p",(function(){return p})),n.d(e,"q",(function(){return y})),n.d(e,"r",(function(){return g})),n.d(e,"s",(function(){return w}));const i=8,r=9,s=13,o=27,a=32,c=33,l=34,u=35,h=36,d=37,p=38,m=39,f=40,b=46,g=48,_=57,v=65,y=90;function w(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}},GU7r:function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return h}));var i=n("8LU1"),r=n("fXoL"),s=n("HDdC"),o=n("XNiG"),a=n("Kj3r");let c=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Jb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),l=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=Object(i.e)(t);return new s.a(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new o.a,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(c))},t.\u0275prov=Object(r.Jb)({factory:function(){return new t(Object(r.Xb)(c))},token:t,providedIn:"root"}),t})(),u=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new r.n,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(i.c)(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Object(i.f)(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(Object(a.a)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){this._currentSubscription&&this._currentSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(l),r.Nb(r.l),r.Nb(r.A))},t.\u0275dir=r.Ib({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),h=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},providers:[c]}),t})()},GyhO:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("LRne"),r=n("0EUg");function s(...t){return Object(r.a)()(Object(i.a)(...t))}},HDdC:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("7o/Q"),r=n("2QA8"),s=n("gRHU"),o=n("kJWO"),a=n("SpAZ"),c=n("2fFW");let l=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:o}=this,a=function(t,e,n){if(t){if(t instanceof i.a)return t;if(t[r.a])return t[r.a]()}return t||e||n?new i.a(t,e,n):new i.a(s.a)}(t,e,n);if(a.add(o?o.call(a,this.source):this.source||c.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),c.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){c.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof i.a?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=u(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(r){n(r),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[o.a](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?a.a:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=u(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function u(t){if(t||(t=c.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},HMnk:function(t,e,n){"use strict";function i(t){return t.replace(/(^\w+:|^)\/\//,"")}n.d(e,"a",(function(){return i}))},I55L:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>t&&"number"==typeof t.length&&"function"!=typeof t},INnT:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return AdHostComponent}));var _common_core_utils_random_string__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("oJgS"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("fXoL"),_common_core_config_settings_service__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("kmQS"),_common_auth_current_user__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("twBr"),_common_core_utils_lazy_loader_service__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("5o4b");let AdHostComponent=(()=>{class AdHostComponent{constructor(t,e,n,i,r){this.el=t,this.renderer=e,this.settings=n,this.currentUser=i,this.lazyLoader=r}ngOnInit(){this.settings.get("ads.disable")||this.currentUser.isSubscribed()||(this.randomId=Object(_common_core_utils_random_string__WEBPACK_IMPORTED_MODULE_0__.a)(),this.adCode=this.settings.get(this.slot),this.adCode&&(this.addClassToHost(),this.appendAdHtml(),this.loadAdScripts().then(()=>{this.executeAdJavascript()})))}addClassToHost(){const t=this.slot.replace(/\./g,"-")+"-host";this.el.nativeElement.classList.add(t)}ngOnDestroy(){delete window.google_ad_modifications}appendAdHtml(){const t=this.adCode.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"").trim();t&&(this.el.nativeElement.innerHTML=t)}executeAdJavascript(){const pattern=/<script\b[^>]*>([\s\S]*?)<\/script>/g;let content;for(;content=pattern.exec(this.adCode);)if(content[1]){const r="var d = document.createElement('div'); d.innerHTML = $1; document.getElementById('"+this.randomId+"').appendChild(d.firstChild);",toEval=content[1].replace(/document.write\((.+?)\);/,r);eval(toEval)}}loadAdScripts(){const t=[],e=/<script.*?src=['"](.*?)['"]/g;let n;for(;n=e.exec(this.adCode);)n[1]&&t.push(this.lazyLoader.loadAsset(n[1],{type:"js"}));return Promise.all(t)}}return AdHostComponent.\u0275fac=function(t){return new(t||AdHostComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.Nb(_angular_core__WEBPACK_IMPORTED_MODULE_1__.l),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Nb(_angular_core__WEBPACK_IMPORTED_MODULE_1__.G),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Nb(_common_core_config_settings_service__WEBPACK_IMPORTED_MODULE_2__.a),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Nb(_common_auth_current_user__WEBPACK_IMPORTED_MODULE_3__.a),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Nb(_common_core_utils_lazy_loader_service__WEBPACK_IMPORTED_MODULE_4__.a))},AdHostComponent.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Hb({type:AdHostComponent,selectors:[["ad-host"]],hostVars:1,hostBindings:function(t,e){2&t&&_angular_core__WEBPACK_IMPORTED_MODULE_1__.Wb("id",e.randomId)},inputs:{slot:"slot"},decls:0,vars:0,template:function(t,e){},styles:["ad-host{display:flex;align-items:center;justify-content:center;width:100%;max-width:100%;overflow:hidden;min-height:90px;max-height:600px}ad-host:empty{display:none}ad-host.margin-bottom{margin-bottom:15px}ad-host.margin-top{margin-top:15px}ad-host>:not(img){width:100%;height:100%;max-width:1200px;min-height:90px;max-height:600px}@media only screen and (max-width:599.99px){ad-host>:not(img){max-width:370px}}"],encapsulation:2,changeDetection:0}),AdHostComponent})()},IjjT:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));let i=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class r extends i{constructor(t,e=i.now){super(t,()=>r.delegate&&r.delegate!==this?r.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return r.delegate&&r.delegate!==this?r.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}},IuoX:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("tU2R"),r=n("sJvS"),s=n("PCqb"),o=n("JWVf"),a=n("fXoL");let c=(()=>{class t extends r.a{constructor(){super(...arguments),this.DEFAULT_MAX_SIZE_MB=1.5}initValidations(){const t=[new i.a({maxSize:Object(s.a)(this.DEFAULT_MAX_SIZE_MB,"MB")},this.i18n),new o.a({types:["image"]},this.i18n)];this.validations.push(...t)}}return t.\u0275fac=function(e){return l(e||t)},t.\u0275prov=a.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const l=a.Vb(c)},Iysn:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("ofXK"),r=n("fXoL");let s=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[i.c]]}),t})();var o=n("NFeN");let a=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[i.c,s,o.b]]}),t})()},IzEk:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("7o/Q"),r=n("4I5i"),s=n("EY2u");function o(t){return e=>0===t?Object(s.b)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new r.a}call(t,e){return e.subscribe(new c(t,this.total))}}class c extends i.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}},JIr8:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("zx2A");function r(t){return function(e){const n=new s(t),i=e.lift(n);return n.caught=i}}class s{constructor(t){this.selector=t}call(t,e){return e.subscribe(new o(t,this.selector,this.caught))}}class o extends i.b{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const r=new i.a(this);this.add(r);const s=Object(i.c)(n,r);s!==r&&this.add(s)}}}},JWVf:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("1MND");class r extends i.a{constructor(t,e){super(),this.params=t,this.i18n=e,this.errorMessage=this.params.types.length>1?this.getPluralMessage():this.getSingularMessage()}fails(t){return!this.params.types.some(e=>e===(t.mime&&t.mime.split("/")[0]))}getSingularMessage(){return this.i18n.t("File must be a :type.",{type:this.i18n.t(this.params.types[0])})}getPluralMessage(){return this.i18n.t("File must be one of these types: :types.",{types:this.i18n.t(this.params.types.join(", "))})}}},JX91:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("GyhO"),r=n("z+Ro");function s(...t){const e=t[t.length-1];return Object(r.a)(e)?(t.pop(),n=>Object(i.a)(t,n,e)):e=>Object(i.a)(t,e)}},JYI4:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=[{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:5,offsetX:5},{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom"}]},JfjL:function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return u}));var i=n("tk/3"),r=n("EBs8");function s(t,e){const n=t.initiallyLoaded?t.loaded-t.initiallyLoaded:t.loaded;return n?n/((new Date-e)/1e3):0}function o(t,e){if(!t.loaded)return 0;const n=s(t,e);let i=t.total-t.loaded;return i<0&&(i=0),Math.round(i/n*10)/10}function a(t){const e=(n=t,{hours:Math.floor(n/3600)%24,minutes:Math.floor(n/60)%60,seconds:Math.floor(n%60)});var n;e.seconds||(e.seconds=1);const i=e.hours?e.hours+"h ":"",r=e.hours?("0"+e.minutes).substr(-2):e.minutes;return`${i}${r?r+"m ":""}${(r?("0"+e.seconds).substr(-2):e.seconds)+"s"}`}var c=n("4Ait"),l=function(t){return t.STARTED="uploadStarted",t.PROGRESS="uploadProgress",t.COMPLETED="uploadCompleted",t.OTHER="unrecognizedEvent",t}({});function u(t,e){switch(t.type){case i.d.Sent:return{type:t.type,name:l.STARTED,time:e};case i.d.UploadProgress:return{type:t.type,name:l.PROGRESS,totalBytes:t.total,completedBytes:t.loaded,progress:Object(r.a)(t.loaded,t.total),speed:Object(c.a)(s(t,e)),eta:a(o(t,e))};case i.d.Response:return{type:t.type,name:l.COMPLETED,body:t.body};default:return null}}},Kj3r:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("7o/Q"),r=n("D0XW");function s(t,e=r.a){return n=>n.lift(new o(t,e))}class o{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends i.a{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,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(c,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 c(t){t.debouncedNext()}},L317:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("2Vo4"),r=n("fXoL"),s=n("WAq7"),o=n("kmQS");let a=(()=>{class t{constructor(t){this.settings=t}get(t){const e=this.getCookieRegExp(this.prefixCookieName(t)).exec(document.cookie);return e&&e[1]}set(t,e,n=30){const i=new Date;i.setDate(i.getDate()+n),document.cookie=`${this.prefixCookieName(t)}=${e}; expires=${i.toUTCString()}; path=/;`}getCookieRegExp(t){const e=t.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+e+"|;\\s*"+e+")=(.*?)(?:;|$)","g")}prefixCookieName(t){return`${Object(s.a)(this.settings.get("branding.site_name"))}_${t}`}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(o.a))},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),c=(()=>{class t{constructor(t,e){this.cookie=t,this.settings=e,this.selectedTheme$=new i.a(null),this.rootEl=document.documentElement}registerThemes(t){this.registeredThemes=t||{},this.select(this.getPreferredTheme())}select(t){const e=this.registeredThemes[t];e&&(this.selectedTheme$.next(e),this.setPreferredTheme(t),e.is_dark?(this.rootEl.classList.remove("be-light-mode"),this.rootEl.classList.add("be-dark-mode")):(this.rootEl.classList.remove("be-dark-mode"),this.rootEl.classList.add("be-light-mode")),Object.entries(e.colors).forEach(([t,e])=>{this.rootEl.style.setProperty(t,e)}))}toggle(){this.select(this.selectedTheme$.value.is_dark?"light":"dark")}isDarkMode(){return this.selectedTheme$.value&&this.selectedTheme$.value.is_dark}setRootEl(t){this.rootEl=t}getPreferredTheme(){const t=this.settings.get("themes.default_mode","light");return this.settings.get("themes.user_change")&&this.cookie.get("theme")||t}setPreferredTheme(t){this.cookie.set("theme",t,90)}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(a),r.Xb(o.a))},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},LFZc:function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return u}));var i=n("fKqa"),r=n("pLZG"),s=n("fXoL"),o=n("i2dy"),a=n("tyNb"),c=n("kmQS");const l="t50b4BT5hWsvJMr7";let u=(()=>{class t{constructor(t,e,n){this.toast=t,this.router=e,this.settings=n,this.active=!1,this.dom={}}init(){this.active=window.location.search.includes("be-preview-mode="+l),this.active&&(this.listenForMessages(),this.blockNotAllowedRoutes(),this.createDomNodes(),window.parent.postMessage(l,"*"))}listenForMessages(){window.addEventListener("message",t=>{this.isAppearanceEvent(t)&&this.eventIsTrusted(t)&&this.handleCommand(t.data)})}handleCommand(t){switch(t.type){case i.a.Navigate:return this.router.navigate([t.route],{queryParams:t.queryParams});case i.a.SetConfig:return this.settings.set(t.key,t.value);case i.a.Select:return function(t,e=0,n){const i=document.querySelectorAll(t)[e];if(!i)return;const r=i.getBoundingClientRect();r.height&&(i.scrollIntoView({block:"center",inline:"center",behavior:"smooth"}),n.style.width=r.width+"px",n.style.height=r.height+"px",n.style.top=document.documentElement.scrollTop+r.top+"px",n.style.left=r.left+"px",n.style.borderRadius=i.style.borderRadius)}(t.selector,t.index,this.dom.selectBox);case i.a.Deselect:return(e=this.dom.selectBox).style.width="0px",e.style.height="0px",e.style.left="-15px",void(e.style.top="-15px");case i.a.SetColors:return this.dom.colors.setProperty(t.key,t.value);case i.a.SetCustomCss:return this.renderCustomCode("css",t.content);case i.a.SetCustomHtml:return this.renderCustomCode("html",t.content)}var e}renderCustomCode(t,e){const n="html"===t?document.body:document.head,i="html"===t?"div":"style";let r=n.querySelector("#be-custom-css");return r||(r=document.createElement(i),r.id="be-custom-css",n.appendChild(r)),r.innerHTML=e}eventIsTrusted(t){return new URL(t.origin).hostname===window.location.hostname}isAppearanceEvent(t){const e=t.data;return e&&e.type in i.a}createDomNodes(){this.dom.selectBox=function(){const t=document.createElement("div");return t.classList.add("selected-el-box"),document.body.appendChild(t),t}(),this.dom.colors=document.documentElement.style}blockNotAllowedRoutes(){const t=[];this.router.events.pipe(Object(r.a)(t=>0===t.toString().indexOf("NavigationStart"))).subscribe(e=>{if(t.find(t=>e.url.indexOf(t)>-1)){const t=this.router.url.split("?")[0];this.router.navigate([t],{queryParamsHandling:"preserve"}),setTimeout(()=>this.toast.open("That page is not supported by the editor."))}})}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(o.b),s.Xb(a.d),s.Xb(c.a))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},LRXf:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("tk/3"),r=n("JIr8"),s=n("pLZG"),o=n("fXoL"),a=n("ObYb");let c=(()=>{class t{constructor(t,e){this.httpClient=t,this.errorHandler=e}get(t,e={},n={}){const i=this.transformQueryParams(e);return this.httpClient.get(this.prefixUri(t),Object.assign({params:i},n)).pipe(Object(r.a)(e=>this.errorHandler.handle(e,t,n)))}post(t,e=null){return this.httpClient.post(this.prefixUri(t),e).pipe(Object(r.a)(e=>this.errorHandler.handle(e,t)))}put(t,e={}){return e=this.spoofHttpMethod(e,"PUT"),this.httpClient.post(this.prefixUri(t),e).pipe(Object(r.a)(e=>this.errorHandler.handle(e,t)))}delete(t,e={}){return e=this.spoofHttpMethod(e,"DELETE"),this.httpClient.post(this.prefixUri(t),e).pipe(Object(r.a)(e=>this.errorHandler.handle(e,t)))}postWithProgress(t,e){const n=new i.f("POST",this.prefixUri(t),e,{reportProgress:!0});return this.httpClient.request(n).pipe(Object(r.a)(e=>this.errorHandler.handle(e,t)),Object(s.a)(t=>[i.d.Sent,i.d.UploadProgress,i.d.Response].includes(t.type)))}prefixUri(e){return e.indexOf("://")>-1||e.startsWith(t.prefix)?e:`${t.prefix}/${e}`}transformQueryParams(t){let e=new i.e;return t&&Object.entries(t).forEach(([t,n])=>{e=e.append(t,null==n?"":n)}),e}spoofHttpMethod(t,e){return t instanceof FormData?t.append("_method",e):t._method=e,t}}return t.prefix="secure",t.\u0275fac=function(e){return new(e||t)(o.Xb(i.b),o.Xb(a.a))},t.\u0275prov=o.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},LRne:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("z+Ro"),r=n("yCtX"),s=n("jZKg");function o(...t){let e=t[t.length-1];return Object(i.a)(e)?(t.pop(),Object(s.a)(t,e)):Object(r.a)(t)}},Lhse:function(t,e,n){"use strict";function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",(function(){return r}));const r=i()},Lm4C:function(t,e,n){"use strict";function i(t){return/(?:\.([^.]+))?$/.exec(t)[1]}n.d(e,"a",(function(){return s}));class r{constructor(t,e){this.url=null,this.name=t.name,this.size=t.size,this.mime=function(t){const e={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",yaml:"text/yaml",yml:"text/yaml"},n=t.name?i(t.name):null;return t.type?t.type:n&&e[n]?e[n]:null}(t),this.lastModified=t.lastModified,this.extension=i(t.name),this.native=t,this.relativePath=e||t.webkitRelativePath||null}getData(){return new Promise(t=>{const e=new FileReader;e.addEventListener("load",()=>{t(e.result)}),"json"===this.extension?e.readAsText(this.native):e.readAsDataURL(this.native)})}}function s(t={}){return new Promise(e=>{const n=function(t={}){const e=document.querySelector("#hidden-file-upload-input");e&&e.remove();const n=document.createElement("input");n.type="file",n.multiple=t.multiple,n.classList.add("hidden"),n.style.display="none",n.style.visibility="hidden",n.id="hidden-file-upload-input";const i=[];return t.extensions&&(t.extensions=t.extensions.map(t=>t.startsWith(".")?t:"."+t),i.push(t.extensions.join(","))),t.types&&i.push(t.types.join(",")),i.length&&(n.accept=i.join(",")),t.directory&&(n.webkitdirectory=!0),document.body.appendChild(n),n}(t);n.onchange=t=>{const i=Array.from(t.target.files).map(t=>new r(t));e(i),n.remove()},document.body.appendChild(n),n.click()})}},MKyN:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("ofXK"),r=n("NFeN"),s=n("fXoL");let o=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)},imports:[[i.c,r.b]]}),t})()},MNfM:function(t,e,n){"use strict";n.d(e,"a",(function(){return O}));var i=n("Kj3r"),r=n("/uUt"),s=n("eIep"),o=n("JIr8"),a=n("nYR2"),c=n("3Pt+"),l=n("2Vo4"),u=n("LRne"),h=n("fXoL"),d=n("mWN8"),p=n("Rd8u"),m=n("STbY"),f=n("ofXK"),b=n("FBzJ"),g=n("bTqV"),_=n("NFeN");const v=["searchInput"];function y(t,e){if(1&t&&(h.Tb(0,"span"),h.Ob(1,"img",20),h.Hc(2),h.Sb()),2&t){const t=e.ngIf;h.Bb(1),h.kc("src",t.avatar,h.xc),h.Bb(1),h.Jc("",t.display_name," ")}}function w(t,e){1&t&&(h.Tb(0,"span",21),h.Hc(1,"Any"),h.Sb())}function C(t,e){if(1&t){const t=h.Ub();h.Tb(0,"button",22),h.ac("click",(function(){return h.vc(t),h.ec().clearSearchInput()})),h.Ob(1,"mat-icon",23),h.Sb()}}function x(t,e){if(1&t){const t=h.Ub();h.Tb(0,"div",14),h.ac("click",(function(){h.vc(t);const n=e.$implicit;return h.ec().selectUser(n)})),h.Ob(1,"img",24),h.Tb(2,"div",25),h.Tb(3,"div",26),h.Hc(4),h.Sb(),h.Tb(5,"div",27),h.Hc(6),h.Sb(),h.Sb(),h.Sb()}if(2&t){const t=e.$implicit;h.Bb(1),h.kc("src",t.avatar,h.xc),h.Bb(3),h.Ic(t.display_name),h.Bb(2),h.Ic(t.email)}}function k(t,e){1&t&&(h.Tb(0,"div",28),h.Hc(1,"No users found."),h.Sb())}let O=(()=>{class t{constructor(t){this.users=t,this.searchFormControl=new c.i,this.loading$=new l.a(!1),this.users$=new l.a([]),this.selectedUser$=new l.a(null),this.searchedOnce=!1}ngOnInit(){this.bindToSearchControl()}writeValue(t){"object"==typeof t&&this.selectedUser$.next(t)}registerOnChange(t){this.propagateChange=t}registerOnTouched(){}bindToSearchControl(){this.searchFormControl.valueChanges.pipe(Object(i.a)(150),Object(r.a)(),Object(s.a)(t=>this.searchUsers(t)),Object(o.a)(()=>Object(u.a)([]))).subscribe(t=>{this.searchedOnce=!0,this.users$.next(t)})}searchUsers(t){return this.loading$.next(!0),this.users.getAll({query:t,perPage:7}).pipe(Object(a.a)(()=>this.loading$.next(!1)))}onMenuOpened(){this.searchedOnce||this.clearSearchInput(),setTimeout(()=>{this.searchInput.nativeElement.focus()})}selectUser(t){this.selectedUser$.next(t),this.propagateChange(t)}clearSearchInput(){this.searchFormControl.setValue("")}onMenuClosed(){this.loading$.next(!1),this.clearSearchInput()}}return t.\u0275fac=function(e){return new(e||t)(h.Nb(d.a))},t.\u0275cmp=h.Hb({type:t,selectors:[["select-user-input"]],viewQuery:function(t,e){var n;1&t&&h.Bc(v,!0),2&t&&h.rc(n=h.bc())&&(e.searchInput=n.first)},features:[h.Ab([{provide:c.s,useExisting:t,multi:!0}])],decls:28,vars:16,consts:[[1,"input-container"],["trans","",1,"fake-label"],["tabindex","0",1,"fake-input",3,"matMenuTriggerFor","menuOpened","menuClosed"],[4,"ngIf","ngIfElse"],["anyUser",""],[1,"arrow-container"],[1,"arrow"],["menu","matMenu"],[1,"input-container","search-input-container",3,"click"],[1,"search-input-wrapper"],["type","text","placeholder","Search...","trans-placeholder","",3,"formControl","blur"],["searchInput",""],["class","clear-search-input-button","mat-icon-button","",3,"click",4,"ngIf"],[1,"small",3,"isVisible"],["mat-menu-item","",3,"click"],["src","client/assets/images/anonymous-user.png","alt",""],[1,"info","any-user-info"],["trans","",1,"name"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["class","nothing-found-item","aria-disabled","true","mat-menu-item","","disabled","","trans","",4,"ngIf"],[3,"src"],["trans",""],["mat-icon-button","",1,"clear-search-input-button",3,"click"],["svgIcon","close"],["alt","",3,"src"],[1,"user-info"],[1,"name"],[1,"email"],["aria-disabled","true","mat-menu-item","","disabled","","trans","",1,"nothing-found-item"]],template:function(t,e){if(1&t){const t=h.Ub();h.Tb(0,"div",0),h.Tb(1,"div",1),h.Hc(2,"User"),h.Sb(),h.Tb(3,"div",2),h.ac("menuOpened",(function(){return e.onMenuOpened()}))("menuClosed",(function(){return e.onMenuClosed()})),h.Fc(4,y,3,2,"span",3),h.fc(5,"async"),h.Fc(6,w,2,0,"ng-template",null,4,h.Gc),h.Tb(8,"div",5),h.Ob(9,"div",6),h.Sb(),h.Sb(),h.Sb(),h.Tb(10,"mat-menu",null,7),h.Tb(12,"div",8),h.ac("click",(function(t){return t.stopPropagation()})),h.Tb(13,"div",9),h.Tb(14,"input",10,11),h.ac("blur",(function(){return h.vc(t),h.sc(15).focus()})),h.Sb(),h.Fc(16,C,2,0,"button",12),h.Ob(17,"loading-indicator",13),h.fc(18,"async"),h.Sb(),h.Sb(),h.Tb(19,"div",14),h.ac("click",(function(){return e.selectUser(null)})),h.Ob(20,"img",15),h.Tb(21,"div",16),h.Tb(22,"div",17),h.Hc(23,"Any User"),h.Sb(),h.Sb(),h.Sb(),h.Fc(24,x,7,3,"div",18),h.fc(25,"async"),h.Fc(26,k,2,0,"div",19),h.fc(27,"async"),h.Sb()}if(2&t){const t=h.sc(7),n=h.sc(11);h.Bb(3),h.kc("matMenuTriggerFor",n),h.Bb(1),h.kc("ngIf",h.gc(5,8,e.selectedUser$))("ngIfElse",t),h.Bb(10),h.kc("formControl",e.searchFormControl),h.Bb(2),h.kc("ngIf",e.searchFormControl.value),h.Bb(1),h.kc("isVisible",h.gc(18,10,e.loading$)),h.Bb(7),h.kc("ngForOf",h.gc(25,12,e.users$)),h.Bb(2),h.kc("ngIf",e.searchedOnce&&!h.gc(27,14,e.users$).length)}},directives:[p.a,m.c,f.t,m.d,c.d,c.u,c.j,b.a,m.a,f.s,g.b,_.a],pipes:[f.b],styles:["[_nghost-%COMP%]{display:block;min-width:280px;max-width:100%}.fake-input[_ngcontent-%COMP%]{position:relative}.fake-label[_ngcontent-%COMP%]{text-transform:capitalize}img[_ngcontent-%COMP%]{display:inline-block;margin-right:8px;width:25px;height:25px;-o-object-fit:cover;object-fit:cover;border-radius:4px;vertical-align:middle}.arrow-container[_ngcontent-%COMP%]{height:100%;position:absolute;top:1px;right:1px;width:20px}.arrow[_ngcontent-%COMP%]{position:absolute;border-color:#000 transparent transparent;border-style:solid;border-width:5px 4px 0;height:0;width:0;left:50%;top:50%;margin-left:-4px;margin-top:-2px}.search-input-container[_ngcontent-%COMP%]{padding:0 8px;min-width:280px;max-width:100%;margin-bottom:10px}.search-input-wrapper[_ngcontent-%COMP%]{position:relative}.clear-search-input-button[_ngcontent-%COMP%]{position:absolute;top:4px;right:0;color:var(--be-secondary-text)}.mat-menu-item[_ngcontent-%COMP%]{display:flex;vertical-align:middle;line-height:normal}.mat-menu-item.selected[_ngcontent-%COMP%]{background-color:var(--be-accent-emphasis)}.mat-menu-item[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:35px;height:35px;align-self:center}.mat-menu-item[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{text-transform:capitalize}.mat-menu-item[_ngcontent-%COMP%]   .email[_ngcontent-%COMP%]{color:var(--be-secondary-text);font-size:1.3rem}.any-user-info[_ngcontent-%COMP%], .user-info[_ngcontent-%COMP%]{align-self:center}loading-indicator[_ngcontent-%COMP%]{position:absolute;top:12px;right:40px}.nothing-found-item[_ngcontent-%COMP%]{color:var(--be-hint-text);line-height:48px}"],changeDetection:0}),t})()},MutI:function(t,e,n){"use strict";n.d(e,"a",(function(){return v})),n.d(e,"b",(function(){return C})),n.d(e,"c",(function(){return x}));var i=n("ofXK"),r=n("fXoL"),s=n("FKr1"),o=n("8LU1"),a=n("XNiG"),c=n("1G5W");n("JX91"),n("u47x"),n("0EQZ"),n("FtGj"),n("3Pt+");let l=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[s.h],s.h]}),t})();const u=["*"],h=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],d=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"];class p{}const m=Object(s.x)(Object(s.w)(p));class f{}const b=Object(s.w)(f),g=new r.r("MatList"),_=new r.r("MatNavList");let v=(()=>{class t extends m{constructor(t){super(),this._elementRef=t,this._stateChanges=new a.a,"action-list"===this._getListType()&&t.nativeElement.classList.add("mat-action-list")}_getListType(){const t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.l))},t.\u0275cmp=r.Hb({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[r.Ab([{provide:g,useExisting:t}]),r.yb,r.zb],ngContentSelectors:u,decls:1,vars:0,template:function(t,e){1&t&&(r.jc(),r.ic(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),t})(),y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Ib({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),w=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Ib({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),C=(()=>{class t extends b{constructor(t,e,n,i){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new a.a,this._disabled=!1,this._isInteractiveList=!!(n||i&&"action-list"===i._getListType()),this._list=n||i;const r=this._getHostElement();"button"!==r.nodeName.toLowerCase()||r.hasAttribute("type")||r.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Object(c.a)(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=Object(o.c)(t)}ngAfterContentInit(){Object(s.A)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.l),r.Nb(r.h),r.Nb(_,8),r.Nb(g,8))},t.\u0275cmp=r.Hb({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,n){var i;1&t&&(r.Gb(n,y,!0),r.Gb(n,w,!0),r.Gb(n,s.i,!0)),2&t&&(r.rc(i=r.bc())&&(e._avatar=i.first),r.rc(i=r.bc())&&(e._icon=i.first),r.rc(i=r.bc())&&(e._lines=i))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&r.Fb("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[r.yb],ngContentSelectors:d,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,e){1&t&&(r.jc(h),r.Tb(0,"div",0),r.Ob(1,"div",1),r.ic(2),r.Tb(3,"div",2),r.ic(4,1),r.Sb(),r.ic(5,2),r.Sb()),2&t&&(r.Bb(1),r.kc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[s.q],encapsulation:2,changeDetection:0}),t})(),x=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[s.j,s.r,s.h,s.p,i.c],s.j,s.h,s.p,l]}),t})()},N2vX:function(t,e,n){"use strict";n.d(e,"a",(function(){return N}));var i=n("fXoL"),r=n("2Vo4"),s=n("itXk"),o=n("lJxs"),a=n("kmQS"),c=n("twBr"),l=n("OnlV"),u=n("L317"),h=n("ofXK"),d=n("tyNb"),p=n("bTqV"),m=n("NFeN"),f=n("STbY"),b=n("nQeM"),g=n("/zh3"),_=n("Rd8u");function v(t,e){if(1&t&&(i.Rb(0),i.Tb(1,"div",2),i.Ob(2,"img",3),i.Tb(3,"div",4),i.Hc(4),i.Sb(),i.Ob(5,"mat-icon",5),i.Tb(6,"button",6),i.Ob(7,"mat-icon",7),i.Sb(),i.Sb(),i.Tb(8,"mat-menu",8,9),i.Ob(10,"logged-in-user-menu"),i.Sb(),i.Qb()),2&t){const t=i.sc(9),e=i.ec();i.Bb(1),i.kc("matMenuTriggerFor",t),i.Bb(1),i.kc("src",e.currentUser.get("avatar"),i.xc),i.Bb(2),i.Ic(e.currentUser.get("email")),i.Bb(4),i.kc("overlapTrigger",!1)}}function y(t,e){1&t&&(i.Tb(0,"a",12),i.Hc(1,"Register"),i.Sb())}function w(t,e){if(1&t&&(i.Fc(0,y,2,0,"a",10),i.Tb(1,"a",11),i.Hc(2,"Login"),i.Sb()),2&t){const t=i.ec();i.kc("ngIf",!t.config.get("registration.disable")&&!t.hideRegisterButton)}}let C=(()=>{class t{constructor(t,e,n){this.currentUser=t,this.config=e,this.breakpoints=n,this.hideRegisterButton=!1}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(c.a),i.Nb(a.a),i.Nb(l.a))},t.\u0275cmp=i.Hb({type:t,selectors:[["logged-in-user-widget"]],inputs:{hideRegisterButton:"hideRegisterButton"},decls:5,vars:6,consts:[[4,"ngIf","ngIfElse"],["authButtons",""],[1,"menu-trigger",3,"matMenuTriggerFor"],[1,"avatar",3,"src"],[1,"email"],["svgIcon","arrow-drop-down",1,"dropdown-icon"],["aria-label","Show logged in user options",1,"no-style","mobile-toggle"],["svgIcon","person"],[1,"logged-in-user-widget-menu",3,"overlapTrigger"],["menu","matMenu"],["class","register-btn","routerLink","/register","mat-button","","trans","",4,"ngIf"],["routerLink","/login","mat-raised-button","","color","accent","trans","",1,"login-btn"],["routerLink","/register","mat-button","","trans","",1,"register-btn"]],template:function(t,e){if(1&t&&(i.Fc(0,v,11,4,"ng-container",0),i.fc(1,"async"),i.fc(2,"async"),i.Fc(3,w,3,1,"ng-template",null,1,i.Gc)),2&t){const t=i.sc(4);i.kc("ngIf",i.gc(1,2,e.currentUser.isLoggedIn$)||i.gc(2,4,e.breakpoints.isMobile$))("ngIfElse",t)}},directives:[h.t,f.c,m.a,f.d,g.a,d.g,p.a,_.a],pipes:[h.b],styles:["[_nghost-%COMP%]{display:block;font-weight:400;position:relative;cursor:pointer;white-space:nowrap}[_nghost-%COMP%]:empty{display:none}.menu-trigger[_ngcontent-%COMP%]{display:flex;align-items:center;max-width:250px;overflow:hidden}.email[_ngcontent-%COMP%]{margin-left:10px;overflow:hidden;text-overflow:ellipsis}.avatar[_ngcontent-%COMP%]{height:40px;width:40px;flex-shrink:0;-o-object-fit:cover;object-fit:cover;border-radius:4px}.mobile-toggle[_ngcontent-%COMP%]{display:none}.mobile-toggle[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{display:block}@media only screen and (max-width:1550px){.email[_ngcontent-%COMP%]{display:none}}@media only screen and (max-width:1000px){.avatar[_ngcontent-%COMP%], .dropdown-icon[_ngcontent-%COMP%], .email[_ngcontent-%COMP%]{display:none}.mobile-toggle[_ngcontent-%COMP%]{display:block}}.logout-item[_ngcontent-%COMP%]{color:#f44336}.logout-item[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{color:inherit}a[_ngcontent-%COMP%]{text-transform:capitalize}"],changeDetection:0}),t})();var x=n("83W4"),k=n("zW5C");function O(t,e){if(1&t&&(i.Tb(0,"a",7),i.Ob(1,"img",8),i.fc(2,"trans"),i.Sb()),2&t){const t=i.ec();i.Bb(1),i.kc("alt",i.gc(2,2,"Site logo"))("src",t.config.get("branding.logo_light"),i.xc)}}function S(t,e){if(1&t&&(i.Tb(0,"a",9),i.Tb(1,"div",10),i.Hc(2),i.Sb(),i.Sb()),2&t){const t=i.ec();i.Bb(2),i.Ic(t.config.get("branding.site_name"))}}function E(t,e){if(1&t){const t=i.Ub();i.Tb(0,"button",11),i.ac("click",(function(){return i.vc(t),i.ec().toggleButtonClick.emit()})),i.Ob(1,"mat-icon",12),i.Sb()}}function T(t,e){if(1&t&&(i.Rb(0),i.Tb(1,"button",13),i.Ob(2,"mat-icon",12),i.Sb(),i.Tb(3,"mat-menu",14,15),i.Ob(5,"custom-menu",16),i.Sb(),i.Qb()),2&t){const t=i.sc(4),e=i.ec();i.Bb(1),i.kc("matMenuTriggerFor",t),i.Bb(2),i.kc("overlapTrigger",!1),i.Bb(2),i.kc("position",e.menuPosition)}}function A(t,e){if(1&t&&i.Ob(0,"custom-menu",17),2&t){const t=i.ec();i.Fb("color-accent","accent"===t.color),i.kc("position",t.menuPosition)("horizontal",!0)}}function I(t,e){1&t&&i.Ob(0,"notification-button")}function D(t,e){if(1&t){const t=i.Ub();i.Tb(0,"button",22),i.ac("click",(function(){return i.vc(t),i.ec(3).openMobileSearch()})),i.Ob(1,"mat-icon",23),i.Sb()}}function P(t,e){if(1&t){const t=i.Ub();i.Tb(0,"button",22),i.ac("click",(function(){return i.vc(t),i.ec(3).closeMobileSearch()})),i.Ob(1,"mat-icon",24),i.Sb()}}function j(t,e){if(1&t&&(i.Rb(0),i.Fc(1,D,2,0,"button",20),i.fc(2,"async"),i.Fc(3,P,2,0,"ng-template",null,21,i.Gc),i.Qb()),2&t){const t=i.sc(4),e=i.ec(2);i.Bb(1),i.kc("ngIf",!i.gc(2,2,e.mobileSearchActive$))("ngIfElse",t)}}function F(t,e){if(1&t&&(i.Tb(0,"div",18),i.ic(1,1),i.Fc(2,I,1,0,"notification-button",4),i.fc(3,"async"),i.Fc(4,j,5,4,"ng-container",4),i.fc(5,"async"),i.Ob(6,"logged-in-user-widget",19),i.Sb()),2&t){const t=i.ec();i.Bb(2),i.kc("ngIf",i.gc(3,3,!t.isMobile()&&t.config.get("notifications.integrated")&&t.currentUser.isLoggedIn$)),i.Bb(2),i.kc("ngIf",t.searchInput&&i.gc(5,5,t.mobileOrTablet$)),i.Bb(2),i.kc("hideRegisterButton",t.hideRegisterButton)}}const M=["*",[["","rightContent",""]]],R=["*","[rightContent]"];let N=(()=>{class t{constructor(t,e,n,a,c){this.config=t,this.currentUser=e,this.breakpoints=n,this.el=a,this.themes=c,this.showToggleButton=!1,this.hideToggleBtnOnDesktop=!1,this.container=!1,this.hideRightSideActions=!1,this.hideRegisterButton=!1,this.toggleButtonClick=new i.n,this.transparent=!1,this.color=this.config.get("vebto.navbar.defaultColor","primary"),this.mobileSearchActive$=new r.a(!1),this.mobileOrTablet$=Object(s.a)([this.breakpoints.isTablet$,this.breakpoints.isMobile$]).pipe(Object(o.a)(t=>t[0]||t[1]))}get isPrimary(){return this.themes.isDarkMode()||"primary"===this.color}get isAccent(){return!this.themes.isDarkMode()&&"accent"===this.color}ngOnInit(){this.searchInput=this.el.nativeElement.querySelector(".nav-searchbar input"),this.searchInput&&this.searchInput.addEventListener("blur",()=>{this.closeMobileSearch()})}openMobileSearch(){this.mobileSearchActive$.next(!0),this.el.nativeElement.classList.add("mobile-search-active"),setTimeout(()=>this.searchInput.focus())}closeMobileSearch(){return this.el.nativeElement.classList.remove("mobile-search-active"),this.mobileSearchActive$.next(!1)}isMobile(){return this.breakpoints.isMobile$.value}shouldShowToggleBtn(){return this.showToggleButton&&(this.mobileOrTablet()||!this.hideToggleBtnOnDesktop)}mobileOrTablet(){return this.breakpoints.isMobile$.value||this.breakpoints.isTablet$.value}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(a.a),i.Nb(c.a),i.Nb(l.a),i.Nb(i.l),i.Nb(u.a))},t.\u0275cmp=i.Hb({type:t,selectors:[["material-navbar"]],hostVars:6,hostBindings:function(t,e){2&t&&i.Fb("transparent",e.transparent)("primary",e.isPrimary)("accent",e.isAccent)},inputs:{menuPosition:"menuPosition",showToggleButton:"showToggleButton",hideToggleBtnOnDesktop:"hideToggleBtnOnDesktop",container:"container",hideRightSideActions:"hideRightSideActions",hideRegisterButton:"hideRegisterButton",transparent:"transparent",color:"color"},outputs:{toggleButtonClick:"toggleButtonClick"},ngContentSelectors:R,decls:10,vars:12,consts:[[1,"navbar-container"],["routerLink","/","class","logo-container img-logo-container",4,"ngIf"],["routerLink","/","class","logo-container",4,"ngIf"],["class","toggle-sidebar-button","mat-icon-button","","aria-label","Toggle sidebar visibility",3,"click",4,"ngIf"],[4,"ngIf"],[3,"position","horizontal","color-accent",4,"ngIf"],["class","right-side-actions",4,"ngIf"],["routerLink","/",1,"logo-container","img-logo-container"],[1,"logo",3,"alt","src"],["routerLink","/",1,"logo-container"],[1,"text-logo"],["mat-icon-button","","aria-label","Toggle sidebar visibility",1,"toggle-sidebar-button",3,"click"],["svgIcon","menu"],["mat-icon-button","",1,"toggle-sidebar-button",3,"matMenuTriggerFor"],[3,"overlapTrigger"],["menu","matMenu"],["itemClass","mat-menu-item",3,"position"],[3,"position","horizontal"],[1,"right-side-actions"],[3,"hideRegisterButton"],["mat-icon-button","","class","mobile-search-toggle",3,"click",4,"ngIf","ngIfElse"],["closeToggle",""],["mat-icon-button","",1,"mobile-search-toggle",3,"click"],["svgIcon","search"],["svgIcon","close"]],template:function(t,e){1&t&&(i.jc(M),i.Tb(0,"div",0),i.Fc(1,O,3,4,"a",1),i.Fc(2,S,3,1,"a",2),i.Fc(3,E,2,0,"button",3),i.ic(4),i.Fc(5,T,6,3,"ng-container",4),i.fc(6,"async"),i.Fc(7,A,1,4,"custom-menu",5),i.fc(8,"async"),i.Fc(9,F,7,7,"div",6),i.Sb()),2&t&&(i.Fb("container",e.container),i.Bb(1),i.kc("ngIf",e.config.get("branding.logo_light")),i.Bb(1),i.kc("ngIf",!e.config.get("branding.logo_light")),i.Bb(1),i.kc("ngIf",e.shouldShowToggleBtn()),i.Bb(2),i.kc("ngIf",i.gc(6,8,e.mobileOrTablet$)&&e.menuPosition&&!e.shouldShowToggleBtn()),i.Bb(2),i.kc("ngIf",!i.gc(8,10,e.mobileOrTablet$)),i.Bb(2),i.kc("ngIf",!e.hideRightSideActions))},directives:[h.t,d.g,p.b,m.a,f.c,f.d,b.a,C,x.a],pipes:[h.b,k.a],styles:["material-navbar{display:block;color:var(--be-accent-contrast);position:relative;z-index:2;height:70px;width:100%}material-navbar:not(.transparent).primary{background-color:var(--be-primary-default)}material-navbar:not(.transparent).primary .nav-searchbar input{background-color:var(--be-primary-lighter)}material-navbar:not(.transparent).accent{background-color:var(--be-accent-default)}material-navbar:not(.transparent).accent .nav-searchbar input{background-color:var(--be-accent-emphasis)}material-navbar.box-shadow{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}material-navbar .navbar-container{display:flex;align-items:center;padding:0 20px;margin:0 auto;width:100%;height:100%}material-navbar .logo-container{display:flex;align-items:center;justify-content:center;height:55%;width:auto;overflow:hidden}material-navbar .img-logo-container{flex-shrink:0}material-navbar .logo{display:block;max-height:100%;max-width:100%;width:auto;min-width:120px}material-navbar .text-logo{font-size:2.2rem;color:var(--be-accent-contrast);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}material-navbar .toggle-sidebar-button{display:block;margin:0 10px}material-navbar custom-menu{display:block;margin-left:15px;flex-shrink:0}material-navbar .mobile-search-toggle{position:relative;z-index:3;margin-right:10px}material-navbar.accent .nav-searchbar,material-navbar.primary .nav-searchbar{height:65%;max-height:48px;max-width:650px;margin-left:30px;margin-right:30px}material-navbar.accent .nav-searchbar form,material-navbar.accent .nav-searchbar input,material-navbar.primary .nav-searchbar form,material-navbar.primary .nav-searchbar input{height:100%}material-navbar.accent .nav-searchbar input,material-navbar.primary .nav-searchbar input{transition:background-color,color .1s ease-in-out;outline:none;border:none}material-navbar.accent .nav-searchbar input::-moz-placeholder,material-navbar.primary .nav-searchbar input::-moz-placeholder{color:hsla(0,0%,100%,.7)}material-navbar.accent .nav-searchbar input:-ms-input-placeholder,material-navbar.primary .nav-searchbar input:-ms-input-placeholder{color:hsla(0,0%,100%,.7)}material-navbar.accent .nav-searchbar input::-ms-input-placeholder,material-navbar.primary .nav-searchbar input::-ms-input-placeholder{color:hsla(0,0%,100%,.7)}material-navbar.accent .nav-searchbar input::placeholder,material-navbar.primary .nav-searchbar input::placeholder{color:hsla(0,0%,100%,.7)}material-navbar.accent .nav-searchbar input[aria-expanded=true],material-navbar.primary .nav-searchbar input[aria-expanded=true]{border-bottom-right-radius:0;border-bottom-left-radius:0;border-bottom:1px solid var(--be-divider-lighter)}material-navbar.accent .nav-searchbar input.always-white,material-navbar.primary .nav-searchbar input.always-white{background-color:var(--be-background);color:var(--be-secondary-text)}material-navbar.accent .nav-searchbar input.always-white::-moz-placeholder,material-navbar.primary .nav-searchbar input.always-white::-moz-placeholder{color:var(--be-secondary-text)}material-navbar.accent .nav-searchbar input.always-white:-ms-input-placeholder,material-navbar.primary .nav-searchbar input.always-white:-ms-input-placeholder{color:var(--be-secondary-text)}material-navbar.accent .nav-searchbar input.always-white::-ms-input-placeholder,material-navbar.primary .nav-searchbar input.always-white::-ms-input-placeholder{color:var(--be-secondary-text)}material-navbar.accent .nav-searchbar input.always-white::placeholder,material-navbar.primary .nav-searchbar input.always-white::placeholder{color:var(--be-secondary-text)}material-navbar.accent .nav-searchbar input:active,material-navbar.accent .nav-searchbar input:focus,material-navbar.primary .nav-searchbar input:active,material-navbar.primary .nav-searchbar input:focus{background-color:var(--be-background);color:var(--be-text)}material-navbar.accent .nav-searchbar input:active::-moz-placeholder,material-navbar.accent .nav-searchbar input:focus::-moz-placeholder,material-navbar.primary .nav-searchbar input:active::-moz-placeholder,material-navbar.primary .nav-searchbar input:focus::-moz-placeholder{color:var(--be-text)}material-navbar.accent .nav-searchbar input:active:-ms-input-placeholder,material-navbar.accent .nav-searchbar input:focus:-ms-input-placeholder,material-navbar.primary .nav-searchbar input:active:-ms-input-placeholder,material-navbar.primary .nav-searchbar input:focus:-ms-input-placeholder{color:var(--be-text)}material-navbar.accent .nav-searchbar input:active::-ms-input-placeholder,material-navbar.accent .nav-searchbar input:focus::-ms-input-placeholder,material-navbar.primary .nav-searchbar input:active::-ms-input-placeholder,material-navbar.primary .nav-searchbar input:focus::-ms-input-placeholder{color:var(--be-text)}material-navbar.accent .nav-searchbar input:active::placeholder,material-navbar.accent .nav-searchbar input:focus::placeholder,material-navbar.primary .nav-searchbar input:active::placeholder,material-navbar.primary .nav-searchbar input:focus::placeholder{color:var(--be-text)}material-navbar.accent .nav-searchbar input:active+.mat-icon-button,material-navbar.accent .nav-searchbar input:focus+.mat-icon-button,material-navbar.primary .nav-searchbar input:active+.mat-icon-button,material-navbar.primary .nav-searchbar input:focus+.mat-icon-button{color:var(--be-text)}material-navbar.mobile-search-active .nav-searchbar{display:block;position:absolute;top:0;left:0;width:100%;height:100%;margin:0;max-height:100%;max-width:100%;z-index:2}material-navbar.mobile-search-active .nav-searchbar .mat-icon{display:none}material-navbar.mobile-search-active .nav-searchbar input{border-radius:0;background-color:var(--be-background);color:var(--be-text)}material-navbar.mobile-search-active .mobile-search-toggle{color:var(--be-text);left:35px}material-navbar.mobile-search-active .search-button{display:none}material-navbar .push-right{margin-left:auto}material-navbar .notification-button{margin:0 18px}material-navbar .right-side-actions{margin-left:auto;display:flex;align-items:center;padding-left:30px}material-navbar:not(.login-button-accent) .login-btn{background:#fff;color:rgba(0,0,0,.87)}@media only screen and (max-width:1000px){material-navbar .custom-menu,material-navbar .nav-searchbar{display:none}}.be-dark-mode material-navbar.primary:not(.mobile-search-active) .nav-searchbar input{border:1px solid var(--be-divider-default);background-color:transparent}"],encapsulation:2,changeDetection:0}),t})()},NFeN:function(t,e,n){"use strict";n.d(e,"a",(function(){return j})),n.d(e,"b",(function(){return F})),n.d(e,"c",(function(){return k}));var i=n("fXoL"),r=n("FKr1"),s=n("8LU1"),o=n("ofXK"),a=n("LRne"),c=n("z6cu"),l=n("cp0P"),u=n("quSY"),h=n("vkgz"),d=n("lJxs"),p=n("JIr8"),m=n("nYR2"),f=n("w1tV"),b=n("IzEk"),g=n("tk/3"),_=n("jhN1");const v=["*"];function y(t){return Error(`Unable to find icon with the name "${t}"`)}function w(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function C(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class x{constructor(t,e){this.options=e,t.nodeName?this.svgElement=t:this.url=t}}let k=(()=>{class t{constructor(t,e,n,i){this._httpClient=t,this._sanitizer=e,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=n}addSvgIcon(t,e,n){return this.addSvgIconInNamespace("",t,e,n)}addSvgIconLiteral(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)}addSvgIconInNamespace(t,e,n,i){return this._addSvgIconConfig(t,e,new x(n,i))}addSvgIconLiteralInNamespace(t,e,n,r){const s=this._sanitizer.sanitize(i.K.HTML,n);if(!s)throw C(n);const o=this._createSvgElementForSingleIcon(s,r);return this._addSvgIconConfig(t,e,new x(o,r))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,n){return this._addSvgIconSetConfig(t,new x(e,n))}addSvgIconSetLiteralInNamespace(t,e,n){const r=this._sanitizer.sanitize(i.K.HTML,e);if(!r)throw C(e);const s=this._svgElementFromString(r);return this._addSvgIconSetConfig(t,new x(s,n))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(i.K.RESOURCE_URL,t);if(!e)throw w(t);const n=this._cachedIconsByUrl.get(e);return n?Object(a.a)(O(n)):this._loadSvgIconFromConfig(new x(t)).pipe(Object(h.a)(t=>this._cachedIconsByUrl.set(e,t)),Object(d.a)(t=>O(t)))}getNamedSvgIcon(t,e=""){const n=S(e,t),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);const r=this._iconSetConfigs.get(e);return r?this._getSvgFromIconSetConfigs(t,r):Object(c.a)(y(n))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgElement?Object(a.a)(O(t.svgElement)):this._loadSvgIconFromConfig(t).pipe(Object(h.a)(e=>t.svgElement=e),Object(d.a)(t=>O(t)))}_getSvgFromIconSetConfigs(t,e){const n=this._extractIconWithNameFromAnySet(t,e);if(n)return Object(a.a)(n);const r=e.filter(t=>!t.svgElement).map(t=>this._loadSvgIconSetFromConfig(t).pipe(Object(p.a)(e=>{const n=this._sanitizer.sanitize(i.K.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${n} failed: ${e.message}`)),Object(a.a)(null)})));return Object(l.a)(r).pipe(Object(d.a)(()=>{const n=this._extractIconWithNameFromAnySet(t,e);if(!n)throw y(t);return n}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.svgElement){const e=this._extractSvgIconFromSet(i.svgElement,t,i.options);if(e)return e}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(Object(d.a)(e=>this._createSvgElementForSingleIcon(e,t.options)))}_loadSvgIconSetFromConfig(t){return t.svgElement?Object(a.a)(t.svgElement):this._fetchIcon(t).pipe(Object(d.a)(e=>(t.svgElement||(t.svgElement=this._svgElementFromString(e)),t.svgElement)))}_createSvgElementForSingleIcon(t,e){const n=this._svgElementFromString(t);return this._setSvgAttributes(n,e),n}_extractSvgIconFromSet(t,e,n){const i=t.querySelector(`[id="${e}"]`);if(!i)return null;const r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);const s=this._svgElementFromString("<svg></svg>");return s.appendChild(r),this._setSvgAttributes(s,n)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const n=e.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}_toSvgElement(t){const e=this._svgElementFromString("<svg></svg>"),n=t.attributes;for(let i=0;i<n.length;i++){const{name:t,value:r}=n[i];"id"!==t&&e.setAttribute(t,r)}for(let i=0;i<t.childNodes.length;i++)t.childNodes[i].nodeType===this._document.ELEMENT_NODE&&e.appendChild(t.childNodes[i].cloneNode(!0));return e}_setSvgAttributes(t,e){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),e&&e.viewBox&&t.setAttribute("viewBox",e.viewBox),t}_fetchIcon(t){var e;const{url:n,options:r}=t,s=null!==(e=null==r?void 0:r.withCredentials)&&void 0!==e&&e;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==n)throw Error(`Cannot fetch icon from URL "${n}".`);const o=this._sanitizer.sanitize(i.K.RESOURCE_URL,n);if(!o)throw w(n);const a=this._inProgressUrlFetches.get(o);if(a)return a;const c=this._httpClient.get(o,{responseType:"text",withCredentials:s}).pipe(Object(m.a)(()=>this._inProgressUrlFetches.delete(o)),Object(f.a)());return this._inProgressUrlFetches.set(o,c),c}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(S(t,e),n),this}_addSvgIconSetConfig(t,e){const n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(g.b,8),i.Xb(_.b),i.Xb(o.e,8),i.Xb(i.m))},t.\u0275prov=Object(i.Jb)({factory:function(){return new t(Object(i.Xb)(g.b,8),Object(i.Xb)(_.b),Object(i.Xb)(o.e,8),Object(i.Xb)(i.m))},token:t,providedIn:"root"}),t})();function O(t){return t.cloneNode(!0)}function S(t,e){return t+":"+e}class E{constructor(t){this._elementRef=t}}const T=Object(r.v)(E),A=new i.r("mat-icon-location",{providedIn:"root",factory:function(){const t=Object(i.W)(o.e),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),I=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],D=I.map(t=>`[${t}]`).join(", "),P=/^url\(['"]?#(.*?)['"]?\)$/;let j=(()=>{class t extends T{constructor(t,e,n,i,r){super(t),this._iconRegistry=e,this._location=i,this._errorHandler=r,this._inline=!1,this._currentIconFetch=u.a.EMPTY,n||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=Object(s.c)(t)}get fontSet(){return this._fontSet}set fontSet(t){this._fontSet=this._cleanupFontValue(t)}get fontIcon(){return this._fontIcon}set fontIcon(t){this._fontIcon=this._cleanupFontValue(t)}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnChanges(t){const e=t.svgIcon;if(e)if(this._currentIconFetch.unsubscribe(),this.svgIcon){const[t,e]=this._splitIconName(this.svgIcon);this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(e,t).pipe(Object(b.a)(1)).subscribe(t=>this._setSvgElement(t),n=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${e}! ${n.message}`))})}else e.previousValue&&this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()}ngOnInit(){this._usingFontIcon()&&this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let i=0;i<e.length;i++)e[i].textContent+=" ";const n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let e=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();e--;){const n=t.childNodes[e];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||t.removeChild(n)}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,e=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();e!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),e&&t.classList.add(e),this._previousFontSetClass=e),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const e=this._elementsWithExternalReferences;e&&e.forEach((e,n)=>{e.forEach(e=>{n.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(D),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i<e.length;i++)I.forEach(t=>{const r=e[i],s=r.getAttribute(t),o=s?s.match(P):null;if(o){let e=n.get(r);e||(e=[],n.set(r,e)),e.push({name:t,value:o[1]})}})}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.l),i.Nb(k),i.Yb("aria-hidden"),i.Nb(A),i.Nb(i.m))},t.\u0275cmp=i.Hb({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:4,hostBindings:function(t,e){2&t&&i.Fb("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color)},inputs:{color:"color",inline:"inline",fontSet:"fontSet",fontIcon:"fontIcon",svgIcon:"svgIcon"},exportAs:["matIcon"],features:[i.yb,i.zb],ngContentSelectors:v,decls:1,vars:0,template:function(t,e){1&t&&(i.jc(),i.ic(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),F=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)},imports:[[r.h],r.h]}),t})()},NJ4a:function(t,e,n){"use strict";function i(t){setTimeout(()=>{throw t},0)}n.d(e,"a",(function(){return i}))},NXyV:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("HDdC"),r=n("Cfvw"),s=n("EY2u");function o(t){return new i.a(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?Object(r.a)(n):Object(s.b)()).subscribe(e)})}},NlKi:function(t,e,n){var i=n("jT1Q"),r="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=r.Raven,o=new i;o.noConflict=function(){return r.Raven=s,o},o.afterLoad(),t.exports=o,t.exports.Client=i},NmYn:function(t,e,n){var i;t.exports=(i=function(){var t=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xa2":"cent","\xa3":"pound","\xa4":"currency","\xa5":"yen","\xa9":"(c)","\xaa":"a","\xae":"(r)","\xba":"o","\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xc6":"AE","\xc7":"C","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xd0":"D","\xd1":"N","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xdd":"Y","\xde":"TH","\xdf":"ss","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xe6":"ae","\xe7":"c","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xf0":"d","\xf1":"n","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xfd":"y","\xfe":"th","\xff":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u010c":"C","\u010d":"c","\u010e":"D","\u010f":"d","\u0110":"DJ","\u0111":"dj","\u0112":"E","\u0113":"e","\u0116":"E","\u0117":"e","\u0118":"e","\u0119":"e","\u011a":"E","\u011b":"e","\u011e":"G","\u011f":"g","\u0122":"G","\u0123":"g","\u0128":"I","\u0129":"i","\u012a":"i","\u012b":"i","\u012e":"I","\u012f":"i","\u0130":"I","\u0131":"i","\u0136":"k","\u0137":"k","\u013b":"L","\u013c":"l","\u013d":"L","\u013e":"l","\u0141":"L","\u0142":"l","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u014c":"O","\u014d":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","\u0154":"R","\u0155":"r","\u0158":"R","\u0159":"r","\u015a":"S","\u015b":"s","\u015e":"S","\u015f":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u0164":"T","\u0165":"t","\u0168":"U","\u0169":"u","\u016a":"u","\u016b":"u","\u016e":"U","\u016f":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017a":"z","\u017b":"Z","\u017c":"z","\u017d":"Z","\u017e":"z","\u0192":"f","\u01a0":"O","\u01a1":"o","\u01af":"U","\u01b0":"u","\u01c8":"LJ","\u01c9":"lj","\u01cb":"NJ","\u01cc":"nj","\u0218":"S","\u0219":"s","\u021a":"T","\u021b":"t","\u02da":"o","\u0386":"A","\u0388":"E","\u0389":"H","\u038a":"I","\u038c":"O","\u038e":"Y","\u038f":"W","\u0390":"i","\u0391":"A","\u0392":"B","\u0393":"G","\u0394":"D","\u0395":"E","\u0396":"Z","\u0397":"H","\u0398":"8","\u0399":"I","\u039a":"K","\u039b":"L","\u039c":"M","\u039d":"N","\u039e":"3","\u039f":"O","\u03a0":"P","\u03a1":"R","\u03a3":"S","\u03a4":"T","\u03a5":"Y","\u03a6":"F","\u03a7":"X","\u03a8":"PS","\u03a9":"W","\u03aa":"I","\u03ab":"Y","\u03ac":"a","\u03ad":"e","\u03ae":"h","\u03af":"i","\u03b0":"y","\u03b1":"a","\u03b2":"b","\u03b3":"g","\u03b4":"d","\u03b5":"e","\u03b6":"z","\u03b7":"h","\u03b8":"8","\u03b9":"i","\u03ba":"k","\u03bb":"l","\u03bc":"m","\u03bd":"n","\u03be":"3","\u03bf":"o","\u03c0":"p","\u03c1":"r","\u03c2":"s","\u03c3":"s","\u03c4":"t","\u03c5":"y","\u03c6":"f","\u03c7":"x","\u03c8":"ps","\u03c9":"w","\u03ca":"i","\u03cb":"y","\u03cc":"o","\u03cd":"y","\u03ce":"w","\u0401":"Yo","\u0402":"DJ","\u0404":"Ye","\u0406":"I","\u0407":"Yi","\u0408":"J","\u0409":"LJ","\u040a":"NJ","\u040b":"C","\u040f":"DZ","\u0410":"A","\u0411":"B","\u0412":"V","\u0413":"G","\u0414":"D","\u0415":"E","\u0416":"Zh","\u0417":"Z","\u0418":"I","\u0419":"J","\u041a":"K","\u041b":"L","\u041c":"M","\u041d":"N","\u041e":"O","\u041f":"P","\u0420":"R","\u0421":"S","\u0422":"T","\u0423":"U","\u0424":"F","\u0425":"H","\u0426":"C","\u0427":"Ch","\u0428":"Sh","\u0429":"Sh","\u042a":"U","\u042b":"Y","\u042c":"","\u042d":"E","\u042e":"Yu","\u042f":"Ya","\u0430":"a","\u0431":"b","\u0432":"v","\u0433":"g","\u0434":"d","\u0435":"e","\u0436":"zh","\u0437":"z","\u0438":"i","\u0439":"j","\u043a":"k","\u043b":"l","\u043c":"m","\u043d":"n","\u043e":"o","\u043f":"p","\u0440":"r","\u0441":"s","\u0442":"t","\u0443":"u","\u0444":"f","\u0445":"h","\u0446":"c","\u0447":"ch","\u0448":"sh","\u0449":"sh","\u044a":"u","\u044b":"y","\u044c":"","\u044d":"e","\u044e":"yu","\u044f":"ya","\u0451":"yo","\u0452":"dj","\u0454":"ye","\u0456":"i","\u0457":"yi","\u0458":"j","\u0459":"lj","\u045a":"nj","\u045b":"c","\u045d":"u","\u045f":"dz","\u0490":"G","\u0491":"g","\u0492":"GH","\u0493":"gh","\u049a":"KH","\u049b":"kh","\u04a2":"NG","\u04a3":"ng","\u04ae":"UE","\u04af":"ue","\u04b0":"U","\u04b1":"u","\u04ba":"H","\u04bb":"h","\u04d8":"AE","\u04d9":"ae","\u04e8":"OE","\u04e9":"oe","\u0e3f":"baht","\u10d0":"a","\u10d1":"b","\u10d2":"g","\u10d3":"d","\u10d4":"e","\u10d5":"v","\u10d6":"z","\u10d7":"t","\u10d8":"i","\u10d9":"k","\u10da":"l","\u10db":"m","\u10dc":"n","\u10dd":"o","\u10de":"p","\u10df":"zh","\u10e0":"r","\u10e1":"s","\u10e2":"t","\u10e3":"u","\u10e4":"f","\u10e5":"k","\u10e6":"gh","\u10e7":"q","\u10e8":"sh","\u10e9":"ch","\u10ea":"ts","\u10eb":"dz","\u10ec":"ts","\u10ed":"ch","\u10ee":"kh","\u10ef":"j","\u10f0":"h","\u1e80":"W","\u1e81":"w","\u1e82":"W","\u1e83":"w","\u1e84":"W","\u1e85":"w","\u1e9e":"SS","\u1ea0":"A","\u1ea1":"a","\u1ea2":"A","\u1ea3":"a","\u1ea4":"A","\u1ea5":"a","\u1ea6":"A","\u1ea7":"a","\u1ea8":"A","\u1ea9":"a","\u1eaa":"A","\u1eab":"a","\u1eac":"A","\u1ead":"a","\u1eae":"A","\u1eaf":"a","\u1eb0":"A","\u1eb1":"a","\u1eb2":"A","\u1eb3":"a","\u1eb4":"A","\u1eb5":"a","\u1eb6":"A","\u1eb7":"a","\u1eb8":"E","\u1eb9":"e","\u1eba":"E","\u1ebb":"e","\u1ebc":"E","\u1ebd":"e","\u1ebe":"E","\u1ebf":"e","\u1ec0":"E","\u1ec1":"e","\u1ec2":"E","\u1ec3":"e","\u1ec4":"E","\u1ec5":"e","\u1ec6":"E","\u1ec7":"e","\u1ec8":"I","\u1ec9":"i","\u1eca":"I","\u1ecb":"i","\u1ecc":"O","\u1ecd":"o","\u1ece":"O","\u1ecf":"o","\u1ed0":"O","\u1ed1":"o","\u1ed2":"O","\u1ed3":"o","\u1ed4":"O","\u1ed5":"o","\u1ed6":"O","\u1ed7":"o","\u1ed8":"O","\u1ed9":"o","\u1eda":"O","\u1edb":"o","\u1edc":"O","\u1edd":"o","\u1ede":"O","\u1edf":"o","\u1ee0":"O","\u1ee1":"o","\u1ee2":"O","\u1ee3":"o","\u1ee4":"U","\u1ee5":"u","\u1ee6":"U","\u1ee7":"u","\u1ee8":"U","\u1ee9":"u","\u1eea":"U","\u1eeb":"u","\u1eec":"U","\u1eed":"u","\u1eee":"U","\u1eef":"u","\u1ef0":"U","\u1ef1":"u","\u1ef2":"Y","\u1ef3":"y","\u1ef4":"Y","\u1ef5":"y","\u1ef6":"Y","\u1ef7":"y","\u1ef8":"Y","\u1ef9":"y","\u2018":"\'","\u2019":"\'","\u201c":"\\"","\u201d":"\\"","\u2020":"+","\u2022":"*","\u2026":"...","\u20a0":"ecu","\u20a2":"cruzeiro","\u20a3":"french franc","\u20a4":"lira","\u20a5":"mill","\u20a6":"naira","\u20a7":"peseta","\u20a8":"rupee","\u20a9":"won","\u20aa":"new shequel","\u20ab":"dong","\u20ac":"euro","\u20ad":"kip","\u20ae":"tugrik","\u20af":"drachma","\u20b0":"penny","\u20b1":"peso","\u20b2":"guarani","\u20b3":"austral","\u20b4":"hryvnia","\u20b5":"cedi","\u20b8":"kazakhstani tenge","\u20b9":"indian rupee","\u20ba":"turkish lira","\u20bd":"russian ruble","\u20bf":"bitcoin","\u2120":"sm","\u2122":"tm","\u2202":"d","\u2206":"delta","\u2211":"sum","\u221e":"infinity","\u2665":"love","\u5143":"yuan","\u5186":"yen","\ufdfc":"rial"}'),e=JSON.parse('{"de":{"\xc4":"AE","\xe4":"ae","\xd6":"OE","\xf6":"oe","\xdc":"UE","\xfc":"ue"},"vi":{"\u0110":"D","\u0111":"d"}}');function n(n,i){if("string"!=typeof n)throw new Error("slugify: string argument expected");var r=e[(i="string"==typeof i?{replacement:i}:i||{}).locale]||{},s=void 0===i.replacement?"-":i.replacement,o=n.split("").reduce((function(e,n){return e+(r[n]||t[n]||n).replace(i.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")}),"").trim().replace(new RegExp("[\\s"+s+"]+","g"),s);return i.lower&&(o=o.toLowerCase()),i.strict&&(o=o.replace(new RegExp("[^a-zA-Z0-9"+s+"]","g"),"").replace(new RegExp("[\\s"+s+"]+","g"),s)),o}return n.extend=function(e){for(var n in e)t[n]=e[n]},n})(),t.exports.default=i()},ObYb:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("z6cu"),r=n("VfAk"),s=n("fXoL"),o=n("VaLf"),a=n("i2dy");let c=(()=>{class t{constructor(t,e){this.i18n=t,this.toast=e}handle(t,e,n={}){const s=t.error||{};if(s.status=t.status,s.type="http",s.errors||(s.errors={}),Object.keys(s.errors).forEach(t=>{const e=s.errors[t];s.errors[t]=Array.isArray(e)?e[0]:e}),n.suppressAuthToast||403!==s.status&&401!==s.status){if(422===s.status&&s.message&&!Object.keys(s.errors).length)this.toast.open(s.message,{duration:15e3});else if(500===s.status){const t=((null==s?void 0:s.message)||r.a.Default).substring(0,200);this.toast.open(t,{duration:15e3})}}else this.handle403Error(s);return Object(i.a)(s)}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(o.a),s.Xb(a.b))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},OnlV:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("0MNC"),r=n("2Vo4"),s=n("fXoL");let o=(()=>{class t{constructor(t){this.breakpointObserver=t,this.isMobile$=new r.a(!1),this.isTablet$=new r.a(!1),this.breakpointObserver.observe(i.b.Handset).subscribe(t=>{this.isMobile$.next(t.matches)}),this.breakpointObserver.observe(i.b.Tablet).subscribe(t=>{this.isTablet$.next(t.matches)})}observe(t){return this.breakpointObserver.observe(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(i.a))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},PCNd:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("vvyD"),r=n("ofXK"),s=n("3Pt+"),o=n("6rvT"),a=n("CHUN"),c=n("fXoL");let l=(()=>{class t{}return t.\u0275mod=c.Lb({type:t}),t.\u0275inj=c.Kb({factory:function(e){return new(e||t)},imports:[[r.c,s.o,i.a,o.a,a.a,s.E]]}),t})()},PCqb:function(t,e,n){"use strict";function i(t,e){if(null===t)return null;switch(e){case"KB":return 1024*t;case"MB":return t*Math.pow(1024,2);case"GB":return t*Math.pow(1024,3);case"TB":return t*Math.pow(1024,4);case"PB":return t*Math.pow(1024,5);default:return t}}n.d(e,"a",(function(){return i}))},PE4B:function(t,e,n){"use strict";var i=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===r}(t)}(t)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(t,e){return!1!==e.clone&&e.isMergeableObject(t)?l(Array.isArray(t)?[]:{},t,e):t}function o(t,e,n){return t.concat(e).map((function(t){return s(t,n)}))}function a(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}(t))}function c(t,e){try{return e in t}catch(n){return!1}}function l(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||o,n.isMergeableObject=n.isMergeableObject||i,n.cloneUnlessOtherwiseSpecified=s;var r=Array.isArray(e);return r===Array.isArray(t)?r?n.arrayMerge(t,e,n):function(t,e,n){var i={};return n.isMergeableObject(t)&&a(t).forEach((function(e){i[e]=s(t[e],n)})),a(e).forEach((function(r){(function(t,e){return c(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,r)||(i[r]=c(t,r)&&n.isMergeableObject(e[r])?function(t,e){if(!e.customMerge)return l;var n=e.customMerge(t);return"function"==typeof n?n:l}(r,n)(t[r],e[r],n):s(e[r],n))})),i}(t,e,n):s(e,n)}l.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return l(t,n,e)}),{})},t.exports=l},PPuo:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("fXoL"),r=n("LRXf"),s=n("kmQS");let o=(()=>{class t{constructor(t,e){this.http=t,this.settings=e}all(){return this.http.get("localizations")}get(t){return this.http.get("localizations/"+t)}create(t){return this.http.post("localizations",t)}update(t,e){return this.http.put("localizations/"+t,e)}delete(t){return this.http.delete("localizations/"+t)}setDefault(t){return this.settings.save({server:{app_locale:t.language}})}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(r.a),i.Xb(s.a))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},PqYM:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("HDdC"),r=n("D0XW"),s=n("Y7HM"),o=n("z+Ro");function a(t=0,e,n){let a=-1;return Object(s.a)(e)?a=Number(e)<1?1:Number(e):Object(o.a)(e)&&(n=e),Object(o.a)(n)||(n=r.a),new i.a(e=>{const i=Object(s.a)(t)?t:+t-n.now();return n.schedule(c,i,{index:0,period:a,subscriber:e})})}function c(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}},QGXG:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("fXoL"),r=n("0IaG");let s=(()=>{class t{constructor(t){this.dialog=t}open(t,e={},n={}){return e||(e={}),Array.isArray(n.panelClass)||(n.panelClass=[n.panelClass]),void 0===n.restoreFocus&&(n.restoreFocus=!1),n.panelClass.push("be-modal"),this.dialog.open(t,Object.assign(Object.assign({},n),{data:e}))}show(t,e={}){return this.open(t,e)}anyDialogOpen(){return this.dialog.openDialogs.length>0}closeAll(){this.dialog.closeAll()}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(r.b))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},QWvX:function(t,e){Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|(?:get|set)(?=\s*[\[$\w\xA0-\uFFFF])|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,function:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|(?!\${)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}}}),Prism.languages.markup&&Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.js=Prism.languages.javascript},QeDF:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i=function(t){return t.image="image/*",t.audio="audio/*",t.video="video/mp4,video/mpeg,video/x-m4v,video/*",t}({})},Qu3c:function(t,e,n){"use strict";n.d(e,"a",(function(){return O})),n.d(e,"b",(function(){return E})),n.d(e,"c",(function(){return S}));var i=n("rDax"),r=n("u47x"),s=n("ofXK"),o=n("fXoL"),a=n("FKr1"),c=n("vxfF"),l=n("8LU1"),u=n("FtGj"),h=n("0MNC"),d=n("nLfN"),p=n("+rOU"),m=n("XNiG"),f=n("1G5W"),b=n("IzEk"),g=n("R0Ic"),_=n("cH1L");const v={tooltipState:Object(g.m)("state",[Object(g.j)("initial, void, hidden",Object(g.k)({opacity:0,transform:"scale(0)"})),Object(g.j)("visible",Object(g.k)({transform:"scale(1)"})),Object(g.l)("* => visible",Object(g.e)("200ms cubic-bezier(0, 0, 0.2, 1)",Object(g.g)([Object(g.k)({opacity:0,transform:"scale(0)",offset:0}),Object(g.k)({opacity:.5,transform:"scale(0.99)",offset:.5}),Object(g.k)({opacity:1,transform:"scale(1)",offset:1})]))),Object(g.l)("* => hidden",Object(g.e)("100ms cubic-bezier(0, 0, 0.2, 1)",Object(g.k)({opacity:0})))])},y=Object(d.f)({passive:!0});function w(t){return Error(`Tooltip position "${t}" is invalid.`)}const C=new o.r("mat-tooltip-scroll-strategy"),x={provide:C,deps:[i.a],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},k=new o.r("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let O=(()=>{class t{constructor(t,e,n,i,r,s,o,a,c,l,h){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=r,this._platform=s,this._ariaDescriber=o,this._focusMonitor=a,this._dir=l,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new m.a,this._handleKeydown=t=>{this._isTooltipVisible()&&t.keyCode===u.g&&!Object(u.s)(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=c,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),r.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(l.c)(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?(""+t).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)})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Object(f.a)(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,n])=>{t.removeEventListener(e,n,y)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new p.d(S,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Object(f.a)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return e.positionChanges.pipe(Object(f.a)(this._destroyed)).subscribe(t=>{this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Object(f.a)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),n.main),Object.assign(Object.assign({},e.fallback),n.fallback)])}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;if("above"==e||"below"==e)n={originX:"center",originY:"above"==e?"top":"bottom"};else if("before"==e||"left"==e&&t||"right"==e&&!t)n={originX:"start",originY:"center"};else{if(!("after"==e||"right"==e&&t||"left"==e&&!t))throw w(e);n={originX:"end",originY:"center"}}const{x:i,y:r}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:i,originY:r}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;if("above"==e)n={overlayX:"center",overlayY:"bottom"};else if("below"==e)n={overlayX:"center",overlayY:"top"};else if("before"==e||"left"==e&&t||"right"==e&&!t)n={overlayX:"end",overlayY:"center"};else{if(!("after"==e||"right"==e&&t||"left"==e&&!t))throw w(e);n={overlayX:"start",overlayY:"center"}}const{x:i,y:r}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:i,overlayY:r}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(Object(b.a)(1),Object(f.a)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_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 t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,y)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==t&&e.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(o.Nb(i.a),o.Nb(o.l),o.Nb(c.c),o.Nb(o.R),o.Nb(o.A),o.Nb(d.a),o.Nb(r.c),o.Nb(r.h),o.Nb(C),o.Nb(_.c,8),o.Nb(k,8))},t.\u0275dir=o.Ib({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t})(),S=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new m.a,this._isHandset=this._breakpointObserver.observe(h.b.Handset)}show(t){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},t)}hide(t){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},t)}afterHidden(){return this._onHide.asObservable()}isVisible(){return"visible"===this._visibility}ngOnDestroy(){this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(o.Nb(o.h),o.Nb(h.a))},t.\u0275cmp=o.Hb({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&o.ac("click",(function(){return e._handleBodyInteraction()}),!1,o.tc),2&t&&o.Cc("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var n;1&t&&(o.Tb(0,"div",0),o.ac("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),o.fc(1,"async"),o.Hc(2),o.Sb()),2&t&&(o.Fb("mat-tooltip-handset",null==(n=o.gc(1,5,e._isHandset))?null:n.matches),o.kc("ngClass",e.tooltipClass)("@state",e._visibility),o.Bb(2),o.Ic(e.message))},directives:[s.q],pipes:[s.b],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:[v.tooltipState]},changeDetection:0}),t})(),E=(()=>{class t{}return t.\u0275mod=o.Lb({type:t}),t.\u0275inj=o.Kb({factory:function(e){return new(e||t)},providers:[x],imports:[[r.a,s.c,i.d,a.h],a.h,c.b]}),t})()},R0Ic:function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"d",(function(){return b})),n.d(e,"e",(function(){return a})),n.d(e,"f",(function(){return c})),n.d(e,"g",(function(){return d})),n.d(e,"h",(function(){return m})),n.d(e,"i",(function(){return l})),n.d(e,"j",(function(){return h})),n.d(e,"k",(function(){return u})),n.d(e,"l",(function(){return p})),n.d(e,"m",(function(){return o})),n.d(e,"n",(function(){return g})),n.d(e,"o",(function(){return _}));class i{}class r{}const s="*";function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e=null){return{type:4,styles:e,timings:t}}function c(t,e=null){return{type:3,steps:t,options:e}}function l(t,e=null){return{type:2,steps:t,options:e}}function u(t){return{type:6,styles:t,offset:null}}function h(t,e,n){return{type:0,name:t,styles:e,options:n}}function d(t){return{type:5,steps:t}}function p(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function m(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function f(t){Promise.resolve(null).then(t)}class b{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,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(){f(()=>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(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class g{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,n=0,i=0;const r=this.players.length;0==r?f(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==r&&this._onFinish()}),t.onDestroy(()=>{++n==r&&this._onDestroy()}),t.onStart(()=>{++i==r&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.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(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){let t=0;return this.players.forEach(e=>{const n=e.getPosition();t=Math.min(n,t)}),t}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const _="!"},R1ws:function(t,e,n){"use strict";n.d(e,"a",(function(){return fe})),n.d(e,"b",(function(){return ge}));var i=n("fXoL"),r=n("jhN1"),s=n("R0Ic");function o(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function a(t){switch(t.length){case 0:return new s.d;case 1:return t[0];default:return new s.n(t)}}function c(t,e,n,i,r={},o={}){const a=[],c=[];let l=-1,u=null;if(i.forEach(t=>{const n=t.offset,i=n==l,h=i&&u||{};Object.keys(t).forEach(n=>{let i=n,c=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,a),c){case s.o:c=r[n];break;case s.a:c=o[n];break;default:c=e.normalizeStyleValue(n,i,c,a)}h[i]=c}),i||c.push(h),u=h,l=n}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return c}function l(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&u(n,"start",t)));break;case"done":t.onDone(()=>i(n&&u(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&u(n,"destroy",t)))}}function u(t,e,n){const i=n.totalTime,r=h(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),s=t._data;return null!=s&&(r._data=s),r}function h(t,e,n,i,r="",s=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function d(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function p(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let m=(t,e)=>!1,f=(t,e)=>!1,b=(t,e,n)=>[];const g=o();(g||"undefined"!=typeof Element)&&(m=(t,e)=>t.contains(e),f=(()=>{if(g||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):f}})(),b=(t,e,n)=>{let i=[];if(n)i.push(...t.querySelectorAll(e));else{const n=t.querySelector(e);n&&i.push(n)}return i});let _=null,v=!1;function y(t){_||(_=("undefined"!=typeof document?document.body:null)||{},v=!!_.style&&"WebkitAppearance"in _.style);let e=!0;return _.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in _.style,!e&&v)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in _.style),e}const w=f,C=m,x=b;function k(t){const e={};return Object.keys(t).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let O=(()=>{class t{validateStyleProperty(t){return y(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return x(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,r,o=[],a){return new s.d(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac}),t})(),S=(()=>{class t{}return t.NOOP=new O,t})();function E(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:T(parseFloat(e[1]),e[2])}function T(t,e){switch(e){case"s":return 1e3*t;default:return t}}function A(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,r=0,s="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};i=T(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(r=T(parseFloat(o),n[4]));const a=n[5];a&&(s=a)}else i=t;if(!n){let n=!1,s=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(s,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:r,easing:s}}(t,e,n)}function I(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function D(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else I(t,n);return n}function P(t,e,n){return n?e+":"+n+";":""}function j(t){let e="";for(let n=0;n<t.style.length;n++){const i=t.style.item(n);e+=P(0,i,t.style.getPropertyValue(i))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=P(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function F(t,e,n){t.style&&(Object.keys(e).forEach(i=>{const r=z(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[r]),t.style[r]=e[i]}),o()&&j(t))}function M(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=z(e);t.style[n]=""}),o()&&j(t))}function R(t){return Array.isArray(t)?1==t.length?t[0]:Object(s.i)(t):t}const N=new RegExp("{{\\s*(.+?)\\s*}}","g");function L(t){let e=[];if("string"==typeof t){let n;for(;n=N.exec(t);)e.push(n[1]);N.lastIndex=0}return e}function B(t,e,n){const i=t.toString(),r=i.replace(N,(t,i)=>{let r=e[i];return e.hasOwnProperty(i)||(n.push("Please provide a value for the animation param "+i),r=""),r.toString()});return r==i?t:r}function H(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const V=/-+([a-z0-9])/g;function z(t){return t.replace(V,(...t)=>t[1].toUpperCase())}function U(t,e){return 0===t||0===e}function $(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let s=e[0],o=[];if(i.forEach(t=>{s.hasOwnProperty(t)||o.push(t),s[t]=n[t]}),o.length)for(var r=1;r<e.length;r++){let n=e[r];o.forEach((function(e){n[e]=q(t,e)}))}}return e}function X(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error("Unable to resolve animation metadata node #"+e.type)}}function q(t,e){return window.getComputedStyle(t)[e]}function W(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e)<parseFloat(t);default:return e.push(`The transition alias value "${t}" is not supported`),"* => *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const r=i[1],s=i[2],o=i[3];e.push(Y(r,o)),"<"!=s[0]||"*"==r&&"*"==o||e.push(Y(o,r))}(t,n,e)):n.push(t),n}const G=new Set(["true","1"]),K=new Set(["false","0"]);function Y(t,e){const n=G.has(t)||K.has(t),i=G.has(e)||K.has(e);return(r,s)=>{let o="*"==t||t==r,a="*"==e||e==s;return!o&&n&&"boolean"==typeof r&&(o=r?G.has(t):K.has(t)),!a&&i&&"boolean"==typeof s&&(a=s?G.has(e):K.has(e)),o&&a}}const J=new RegExp("s*:selfs*,?","g");function Q(t,e,n){return new Z(t).build(e,n)}class Z{constructor(t){this._driver=t}build(t,e){const n=new tt(e);return this._resetContextStyleTimingState(n),X(this,R(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const r=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,r.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const r=this.visitTransition(t,e);n+=r.queryCount,i+=r.depCount,s.push(r)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:r,transitions:s,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const r=new Set,s=i||{};if(n.styles.forEach(t=>{if(et(t)){const e=t;Object.keys(e).forEach(t=>{L(e[t]).forEach(t=>{s.hasOwnProperty(t)||r.add(t)})})}}),r.size){const n=H(r.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=X(this,R(t.animation),e);return{type:1,matchers:W(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:nt(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>X(this,t,e)),options:nt(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const r=t.steps.map(t=>{e.currentTime=n;const r=X(this,t,e);return i=Math.max(i,e.currentTime),r});return e.currentTime=i,{type:3,steps:r,options:nt(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return it(A(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=it(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||A(i,e),it(n.duration,n.delay,n.easing)}(t.timings,e.errors);let i;e.currentAnimateTimings=n;let r=t.styles?t.styles:Object(s.k)({});if(5==r.type)i=this.visitKeyframes(r,e);else{let r=t.styles,o=!1;if(!r){o=!0;const t={};n.easing&&(t.easing=n.easing),r=Object(s.k)(t)}e.currentTime+=n.duration+n.delay;const a=this.visitStyle(r,e);a.isEmptyStep=o,i=a}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==s.a?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,r=null;return n.forEach(t=>{if(et(t)){const e=t,n=e.easing;if(n&&(r=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const s=e.collectedStyles[e.currentQuerySelector],o=s[n];let a=!0;o&&(r!=i&&r>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${i}ms"`),a=!1),r=o.startTime),a&&(s[n]={startTime:r,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},r=L(t);r.length&&r.forEach(t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const r=[];let s=!1,o=!1,a=0;const c=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let c=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(et(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(et(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),l=0;return null!=c&&(i++,l=n.offset=c),o=o||l<0||l>1,s=s||l<a,a=l,r.push(l),n});o&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),s&&e.errors.push("Please ensure that all keyframe offsets are in order");const l=t.steps.length;let u=0;i>0&&i<l?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(u=1/(l-1));const h=l-1,d=e.currentTime,p=e.currentAnimateTimings,m=p.duration;return c.forEach((t,i)=>{const s=u>0?i==h?1:u*i:r[i],o=s*m;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=s,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:X(this,R(t.animation),e),options:nt(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:nt(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:nt(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[r,s]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(J,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+r:r,d(e.collectedStyles,e.currentQuerySelector,{});const o=X(this,R(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:o,originalSelector:t.selector,options:nt(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:A(t.timings,e.errors,!0);return{type:12,animation:X(this,R(t.animation),e),timings:n,options:null}}}class tt{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}}function et(t){return!Array.isArray(t)&&"object"==typeof t}function nt(t){var e;return t?(t=I(t)).params&&(t.params=(e=t.params)?I(e):null):t={},t}function it(t,e,n){return{duration:t,delay:e,easing:n}}function rt(t,e,n,i,r,s,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class st{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const ot=new RegExp(":enter","g"),at=new RegExp(":leave","g");function ct(t,e,n,i,r,s={},o={},a,c,l=[]){return(new lt).buildKeyframes(t,e,n,i,r,s,o,a,c,l)}class lt{buildKeyframes(t,e,n,i,r,s,o,a,c,l=[]){c=c||new st;const u=new ht(t,e,c,i,r,l,[]);u.options=a,u.currentTimeline.setStyles([s],null,u.errors,a),X(this,n,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,u.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[rt(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),r=e.currentTimeline.currentTime,s=this._visitSubInstructions(n,i,i.options);r!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const r=null!=n.duration?E(n.duration):null,s=null!=n.delay?E(n.delay):null;return 0!==r&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,r,s);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),X(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const r=t.options;if(r&&(r.params||r.delay)&&(i=e.createSubContext(r),i.transformIntoNewTimeline(),null!=r.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ut);const t=E(r.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>X(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const r=t.options&&t.options.delay?E(t.options.delay):0;t.steps.forEach(s=>{const o=e.createSubContext(t.options);r&&o.delayNextStep(r),X(this,s,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return A(e.params?B(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,r=n.duration,s=e.createSubContext().currentTimeline;s.easing=n.easing,t.styles.forEach(t=>{s.forwardTime((t.offset||0)*r),s.setStyles(t.styles,t.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(i+r),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},r=i.delay?E(i.delay):0;r&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ut);let s=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);r&&o.delayNextStep(r),n===e.element&&(a=o.currentTimeline),X(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,r=t.timings,s=Math.abs(r.duration),o=s*(e.currentQueryTotal-1);let a=s*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const c=e.currentTimeline;a&&c.delayNextStep(a);const l=c.currentTime;X(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-l+(i.startTime-n.currentTimeline.startTime)}}const ut={};class ht{constructor(t,e,n,i,r,s,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=s,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ut,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new dt(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=E(n.duration)),null!=n.delay&&(i.delay=E(n.delay));const r=n.params;if(r){let t=i.params;t||(t=this.options.params={}),Object.keys(r).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=B(r[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const i=e||this.element,r=new ht(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(t){return this.previousNode=ut,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},r=new pt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,r,s){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(ot,"."+this._enterClassName)).replace(at,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return r||0!=o.length||s.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class dt{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,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 dt(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(t=>{this._backFill[t]=this._globalTimelineStyles[t]||s.a,this._currentKeyframe[t]=s.a}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const r=i&&i.params||{},o=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]=s.a})):D(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=B(o[t],r,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:s.a),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}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 n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((r,o)=>{const a=D(r,!0);Object.keys(a).forEach(n=>{const i=a[n];i==s.o?t.add(n):i==s.a&&e.add(n)}),n||(a.offset=o/this.duration),i.push(a)});const r=t.size?H(t.values()):[],o=e.size?H(e.values()):[];if(n){const t=i[0],e=I(t);t.offset=0,e.offset=1,i=[t,e]}return rt(this.element,i,r,o,this.duration,this.startTime,this.easing,!1)}}class pt extends dt{constructor(t,e,n,i,r,s,o=!1){super(t,e,s.delay),this.element=e,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,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:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],s=n+e,o=e/s,a=D(t[0],!1);a.offset=0,r.push(a);const c=D(t[0],!1);c.offset=mt(o),r.push(c);const l=t.length-1;for(let i=1;i<=l;i++){let o=D(t[i],!1);o.offset=mt((e+o.offset*n)/s),r.push(o)}n=s,e=0,i="",t=r}return rt(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function mt(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class ft{}class bt extends ft{normalizePropertyName(t,e){return z(t)}normalizeStyleValue(t,e,n,i){let r="";const s=n.toString().trim();if(gt[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return s+r}}const gt=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("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 _t(t,e,n,i,r,s,o,a,c,l,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:h,errors:d}}const vt={};class yt{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,r){return t.some(t=>t(e,n,i,r))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],r=this._stateStyles[t],s=i?i.buildStyles(e,n):{};return r?r.buildStyles(e,n):s}build(t,e,n,i,r,s,o,a,c,l){const u=[],h=this.ast.options&&this.ast.options.params||vt,p=this.buildStyles(n,o&&o.params||vt,u),m=a&&a.params||vt,f=this.buildStyles(i,m,u),b=new Set,g=new Map,_=new Map,v="void"===i,y={params:Object.assign(Object.assign({},h),m)},w=l?[]:ct(t,e,this.ast.animation,r,s,p,f,y,c,u);let C=0;if(w.forEach(t=>{C=Math.max(t.duration+t.delay,C)}),u.length)return _t(e,this._triggerName,n,i,v,p,f,[],[],g,_,C,u);w.forEach(t=>{const n=t.element,i=d(g,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const r=d(_,n,{});t.postStyleProps.forEach(t=>r[t]=!0),n!==e&&b.add(n)});const x=H(b.values());return _t(e,this._triggerName,n,i,v,p,f,w,x,g,_,C)}}class wt{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},i=I(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const r=t;Object.keys(r).forEach(t=>{let s=r[t];s.length>1&&(s=B(s,i,e)),n[t]=s})}}),n}}class Ct{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new wt(t.style,t.options&&t.options.params||{})}),xt(this.states,"true","1"),xt(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new yt(t,e,this.states))}),this.fallbackTransition=new yt(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(r=>r.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function xt(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const kt=new st;class Ot{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=Q(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,r=c(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,r,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],r=this._animations[t];let o;const c=new Map;if(r?(o=ct(this._driver,e,r,"ng-enter","ng-leave",{},{},n,kt,i),o.forEach(t=>{const e=d(c,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),o=[]),i.length)throw new Error("Unable to create the animation due to the following errors: "+i.join("\n"));c.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,s.a)})});const l=a(o.map(t=>{const e=c.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=l,l.onDestroy(()=>this.destroy(t)),this.players.push(l),l}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e}listen(t,e,n,i){const r=h(e,"","","");return l(this._getPlayer(t),n,r,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const r=this._getPlayer(t);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const St=[],Et={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Tt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class At{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=I(t);delete e.value,this.options=e}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const It=new At("void");class Dt{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Lt(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(r=n)&&"done"!=r)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var r;const s=d(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};s.push(o);const a=d(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Lt(t,"ng-trigger"),Lt(t,"ng-trigger-"+e),a[e]=It),()=>{this._engine.afterFlush(()=>{const t=s.indexOf(o);t>=0&&s.splice(t,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 new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const r=this._getTrigger(e),s=new jt(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Lt(t,"ng-trigger"),Lt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const c=new At(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),o[e]=c,a||(a=It),"void"!==c.value&&a.value===c.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let r=0;r<n.length;r++){const i=n[r];if(!e.hasOwnProperty(i)||t[i]!==e[i])return!1}return!0}(a.params,c.params)){const e=[],n=r.matchStyles(a.value,a.params,e),i=r.matchStyles(c.value,c.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{M(t,n),F(t,i)})}return}const l=d(this._engine.playersByElement,t,[]);l.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=r.matchTransition(a.value,c.value,t,c.params),h=!1;if(!u){if(!i)return;u=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:c,player:s,isFallbackTransition:h}),h||(Lt(t,"ng-animate-queued"),s.onStart(()=>{Bt(t,"ng-animate-queued")})),s.onDone(()=>{let e=this.players.indexOf(s);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(s);t>=0&&n.splice(t,1)}}),this.players.push(s),l.push(s),s}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,".ng-trigger",!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,i){const r=this._engine.statesByElement.get(t);if(r){const s=[];if(Object.keys(r).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,"void",i);n&&s.push(n)}}),s.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&a(s).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const i=e.name;if(n.has(i))return;n.add(i);const r=this._triggers[i].fallbackTransition,s=this._engine.statesByElement.get(t)[i]||It,o=new At("void"),a=new jt(this.id,i,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:i,transition:r,fromState:s,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t.__ng_removed;i&&i!==Et||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Lt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const r=n.element,s=this._elementListeners.get(r);s&&s.forEach(e=>{if(e.name==n.triggerName){const i=h(r,n.triggerName,n.fromState.value,n.toState.value);i._data=t,l(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Pt{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new Dt(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i<t.length;i++){const r=n[t[i]].namespaceId;if(r){const t=this._fetchNamespace(r);t&&e.add(t)}}}return e}trigger(t,e,n,i){if(Ft(e)){const r=this._fetchNamespace(t);if(r)return r.trigger(e,n,i),!0}return!1}insertNode(t,e,n,i){if(!Ft(e))return;const r=e.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Lt(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Bt(t,"ng-animate-disabled"))}removeNode(t,e,n,i){if(Ft(e)){const r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,r){return Ft(e)?this._fetchNamespace(t).listen(e,n,i,r):()=>{}}_buildInstruction(t,e,n,i,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,r)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return a(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Et,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Lt(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{e=this._flushAnimations(n,t)}finally{for(let t=0;t<n.length;t++)n[t]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?a(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))}_flushAnimations(t,e){const n=new st,i=[],r=new Map,o=[],c=new Map,l=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(t=>{h.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)h.add(e[n])});const p=this.bodyNode,m=Array.from(this.statesByElement.keys()),f=Nt(m,this.collectedEnterElements),b=new Map;let g=0;f.forEach((t,e)=>{const n="ng-enter"+g++;b.set(e,n),t.forEach(t=>Lt(t,n))});const _=[],v=new Set,y=new Set;for(let s=0;s<this.collectedLeaveElements.length;s++){const t=this.collectedLeaveElements[s],e=t.__ng_removed;e&&e.setForRemoval&&(_.push(t),v.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>v.add(t)):y.add(t))}const w=new Map,C=Nt(m,Array.from(v));C.forEach((t,e)=>{const n="ng-leave"+g++;w.set(e,n),t.forEach(t=>Lt(t,n))}),t.push(()=>{f.forEach((t,e)=>{const n=b.get(e);t.forEach(t=>Bt(t,n))}),C.forEach((t,e)=>{const n=w.get(e);t.forEach(t=>Bt(t,n))}),_.forEach(t=>{this.processLeaveNode(t)})});const x=[],k=[];for(let s=this._namespaceList.length-1;s>=0;s--)this._namespaceList[s].drainQueuedTransitions(e).forEach(t=>{const e=t.player,r=t.element;if(x.push(e),this.collectedEnterElements.length){const t=r.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const s=!p||!this.driver.containsElement(p,r),a=w.get(r),h=b.get(r),m=this._buildInstruction(t,n,h,a,s);if(m.errors&&m.errors.length)k.push(m);else{if(s)return e.onStart(()=>M(r,m.fromStyles)),e.onDestroy(()=>F(r,m.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>M(r,m.fromStyles)),e.onDestroy(()=>F(r,m.toStyles)),void i.push(e);m.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(r,m.timelines),o.push({instruction:m,player:e,element:r}),m.queriedElements.forEach(t=>d(c,t,[]).push(e)),m.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=l.get(e);t||l.set(e,t=new Set),n.forEach(e=>t.add(e))}}),m.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=u.get(e);i||u.set(e,i=new Set),n.forEach(t=>i.add(t))})}});if(k.length){const t=[];k.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),x.forEach(t=>t.destroy()),this.reportError(t)}const O=new Map,S=new Map;o.forEach(t=>{const e=t.element;n.has(e)&&(S.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,O))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{d(O,e,[]).push(t),t.destroy()})});const E=_.filter(t=>Vt(t,l,u)),T=new Map;Rt(T,this.driver,y,u,s.a).forEach(t=>{Vt(t,l,u)&&E.push(t)});const A=new Map;f.forEach((t,e)=>{Rt(A,this.driver,new Set(t),l,s.o)}),E.forEach(t=>{const e=T.get(t),n=A.get(t);T.set(t,Object.assign(Object.assign({},e),n))});const I=[],D=[],P={};o.forEach(t=>{const{element:e,player:s,instruction:o}=t;if(n.has(e)){if(h.has(e))return s.onDestroy(()=>F(e,o.toStyles)),s.disabled=!0,s.overrideTotalTime(o.totalTime),void i.push(s);let t=P;if(S.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=S.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>S.set(e,t))}const n=this._buildAnimation(s.namespaceId,o,O,r,A,T);if(s.setRealPlayer(n),t===P)I.push(s);else{const e=this.playersByElement.get(t);e&&e.length&&(s.parentPlayer=a(e)),i.push(s)}}else M(e,o.fromStyles),s.onDestroy(()=>F(e,o.toStyles)),D.push(s),h.has(e)&&i.push(s)}),D.forEach(t=>{const e=r.get(t.element);if(e&&e.length){const n=a(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let s=0;s<_.length;s++){const t=_[s],e=t.__ng_removed;if(Bt(t,"ng-leave"),e&&e.hasAnimation)continue;let n=[];if(c.size){let e=c.get(t);e&&e.length&&n.push(...e);let i=this.driver.query(t,".ng-animating",!0);for(let t=0;t<i.length;t++){let e=c.get(i[t]);e&&e.length&&n.push(...e)}}const i=n.filter(t=>!t.destroyed);i.length?Ht(this,t,i):this.processLeaveNode(t)}return _.length=0,I.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),I}elementContainsData(t,e){let n=!1;const i=e.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,r){let s=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(s=e)}else{const e=this.playersByElement.get(t);if(e){const t=!r||"void"==r;e.forEach(e=>{e.queued||(t||e.triggerName==i)&&s.push(e)})}}return(n||i)&&(s=s.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),s}_beforeAnimationBuild(t,e,n){const i=e.element,r=e.isRemovalTransition?void 0:t,s=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,c=d(n,t,[]);this._getPreviousPlayers(t,a,r,s,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),c.push(t)})}M(i,e.fromStyles)}_buildAnimation(t,e,n,i,r,o){const l=e.triggerName,u=e.element,h=[],p=new Set,m=new Set,f=e.timelines.map(e=>{const a=e.element;p.add(a);const d=a.__ng_removed;if(d&&d.removedBeforeQueried)return new s.d(e.duration,e.delay);const f=a!==u,b=function(t){const e=[];return function t(e,n){for(let i=0;i<e.length;i++){const r=e[i];r instanceof s.n?t(r.players,n):n.push(r)}}(t,e),e}((n.get(a)||St).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===a),g=r.get(a),_=o.get(a),v=c(0,this._normalizer,0,e.keyframes,g,_),y=this._buildPlayer(e,v,b);if(e.subTimeline&&i&&m.add(a),f){const e=new jt(t,l,a);e.setRealPlayer(y),h.push(e)}return y});h.forEach(t=>{d(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),p.forEach(t=>Lt(t,"ng-animating"));const b=a(f);return b.onDestroy(()=>{p.forEach(t=>Bt(t,"ng-animating")),F(u,e.toStyles)}),m.forEach(t=>{d(i,t,[]).push(b)}),b}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new s.d(t.duration,t.delay)}}class jt{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new s.d,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(n=>l(t,e,void 0,n))}),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){d(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 Ft(t){return t&&1===t.nodeType}function Mt(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Rt(t,e,n,i,r){const s=[];n.forEach(t=>s.push(Mt(t)));const o=[];i.forEach((n,i)=>{const s={};n.forEach(t=>{const n=s[t]=e.computeStyle(i,t,r);n&&0!=n.length||(i.__ng_removed=Tt,o.push(i))}),t.set(i,s)});let a=0;return n.forEach(t=>Mt(t,s[a++])),o}function Nt(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),r=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let s=r.get(e);if(s)return s;const o=e.parentNode;return s=n.has(o)?o:i.has(o)?1:t(o),r.set(e,s),s}(t);1!==e&&n.get(e).push(t)}),n}function Lt(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Bt(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Ht(t,e,n){a(n).onDone(()=>t.processLeaveNode(e))}function Vt(t,e,n){const i=n.get(t);if(!i)return!1;let r=e.get(t);return r?i.forEach(t=>r.add(t)):e.set(t,i),n.delete(t),!0}class zt{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Pt(t,e,n),this._timelineEngine=new Ot(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,r){const s=t+"-"+i;let o=this._triggerCache[s];if(!o){const t=[],e=Q(this._driver,r,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new Ct(t,e)}(i,e),this._triggerCache[s]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,r]=p(n);this._timelineEngine.command(t,e,r,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,r){if("@"==n.charAt(0)){const[t,i]=p(n);return this._timelineEngine.listen(t,e,i,r)}return this._transitionEngine.listen(t,e,n,i,r)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Ut(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=Xt(e[0]),e.length>1&&(i=Xt(e[e.length-1]))):e&&(n=Xt(e)),n||i?new $t(t,n,i):null}let $t=(()=>{class t{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&F(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(F(this._element,this._initialStyles),this._endStyles&&(F(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(M(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(M(this._element,this._endStyles),this._endStyles=null),F(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Xt(t){let e=null;const n=Object.keys(t);for(let i=0;i<n.length;i++){const r=n[i];qt(r)&&(e=e||{},e[r]=t[r])}return e}function qt(t){return"display"===t||"position"===t}class Wt{constructor(t,e,n,i,r,s,o){this._element=t,this._name=e,this._duration=n,this._delay=i,this._easing=r,this._fillMode=s,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const n=Zt(t,"").trim();n.length&&(function(t,e){let n=0;for(let i=0;i<t.length;i++)","===t.charAt(i)&&n++}(n),e=`${n}, ${e}`),Qt(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Jt(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Gt(this._element,this._name,"paused")}resume(){Gt(this._element,this._name,"running")}setPosition(t){const e=Kt(this._element,this._name);this._position=t*this._duration,Qt(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Jt(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=Zt(t,"").split(","),i=Yt(n,e);i>=0&&(n.splice(i,1),Qt(t,"",n.join(",")))}(this._element,this._name))}}function Gt(t,e,n){Qt(t,"PlayState",n,Kt(t,e))}function Kt(t,e){const n=Zt(t,"");return n.indexOf(",")>0?Yt(n.split(","),e):Yt([n],e)}function Yt(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function Jt(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function Qt(t,e,n,i){const r="animation"+e;if(null!=i){const e=t.style[r];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[r]=n}function Zt(t,e){return t.style["animation"+e]}class te{constructor(t,e,n,i,r,s,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=r,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=i+r,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Wt(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:q(this.element,n))})}this.currentSnapshot=t}}class ee extends s.d{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=k(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class ne{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return y(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return x(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>k(t));let i=`@keyframes ${e} {\n`,r="";n.forEach(t=>{r=" ";const e=parseFloat(t.offset);i+=`${r}${100*e}% {\n`,r+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${r}animation-timing-function: ${n};\n`));default:return void(i+=`${r}${e}: ${n};\n`)}}),i+=r+"}\n"}),i+="}\n";const s=document.createElement("style");return s.innerHTML=i,s}animate(t,e,n,i,r,s=[],o){o&&this._notifyFaultyScrubber();const a=s.filter(t=>t instanceof te),c={};U(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const l=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=$(t,e,c));if(0==n)return new ee(t,l);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(h);const d=Ut(t,e),p=new te(t,e,u,n,i,r,l,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n","  visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class ie{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}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){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:q(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class re{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(se().toString()),this._cssKeyframesDriver=new ne}validateStyleProperty(t){return y(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return x(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,r,s=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,r,s);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(a.easing=r);const c={},l=s.filter(t=>t instanceof ie);U(n,i)&&l.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const u=Ut(t,e=$(t,e=e.map(t=>D(t,!1)),c));return new ie(t,e,a,u)}}function se(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var oe=n("ofXK");let ae=(()=>{class t extends s.b{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:i.S.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Object(s.i)(t):t;return ue(this._renderer,null,e,"register",[n]),new ce(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(i.H),i.Xb(oe.e))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac}),t})();class ce extends s.c{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new le(this._id,t,e||{},this._renderer)}}class le{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return ue(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")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function ue(t,e,n,i,r){return t.setProperty(e,`@@${n}:${i}`,r)}let he=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new de("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,r=e.id+"-"+this._currentId;this._currentId++,this.engine.register(r,t);const s=e=>{Array.isArray(e)?e.forEach(s):this.engine.registerTrigger(i,r,t,e.name,e)};return e.data.animation.forEach(s),new pe(this,r,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&t<this._microtaskId?this._zone.run(()=>e(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}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 t.\u0275fac=function(e){return new(e||t)(i.Xb(i.H),i.Xb(zt),i.Xb(i.A))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac}),t})();class de{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):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,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}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,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class pe extends de{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let r=e.substr(1),s="";return"@"!=r.charAt(0)&&([r,s]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(r)),this.engine.listen(this.namespaceId,i,r,s,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let me=(()=>{class t extends zt{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(oe.e),i.Xb(S),i.Xb(ft))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac}),t})();const fe=new i.r("AnimationModuleType"),be=[{provide:S,useFactory:function(){return"function"==typeof se()?new re:new ne}},{provide:fe,useValue:"BrowserAnimations"},{provide:s.b,useClass:ae},{provide:ft,useFactory:function(){return new bt}},{provide:zt,useClass:me},{provide:i.H,useFactory:function(t,e,n){return new he(t,e,n)},deps:[r.e,zt,i.A]}];let ge=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)},providers:be,imports:[r.a]}),t})()},Rd8u:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("fXoL"),r=n("VaLf"),s=n("kmQS");let o=(()=>{class t{constructor(t,e,n){this.el=t,this.i18n=e,this.settings=n,this.subscriptions=[]}ngAfterViewInit(){const t=this.i18n.localizationChange.subscribe(()=>this.translate());this.subscriptions.push(t),this.translate()}ngOnChanges(t){t.firstChange||this.translate()}translate(){if(!this.settings.get("i18n.enable")&&!this.transValues)return;const t=this.el.nativeElement;if(t.getAttribute("placeholder")){const e=t.getAttribute("placeholder");t.setAttribute("placeholder",this.i18n.t(e))}else if(t.getAttribute("title")){const e=t.getAttribute("title");t.setAttribute("title",this.i18n.t(e))}else this.translateTextContent(t)}translateTextContent(t){const e=Array.from(t.childNodes);e.sort((t,e)=>t.nodeType===Node.TEXT_NODE?-1:1);for(let n=0;n<e.length;n++){const t=e[n],i=t.textContent.trim();if(t.nodeType===Node.TEXT_NODE&&i.length>1)return this.originalValue||(this.originalValue=i),t.nodeValue=this.i18n.t(this.originalValue,this.transValues);if(this.translateTextContent(t))return}}ngOnDestroy(){this.subscriptions.filter(t=>!!t).forEach(t=>t.unsubscribe()),this.subscriptions=[]}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.l),i.Nb(r.a),i.Nb(s.a))},t.\u0275dir=i.Ib({type:t,selectors:[["","trans",""],["","trans-placeholder",""],["","trans-title",""]],inputs:{transValues:"transValues"},features:[i.zb]}),t})()},STbY:function(t,e,n){"use strict";n.d(e,"a",(function(){return F})),n.d(e,"b",(function(){return q})),n.d(e,"c",(function(){return $})),n.d(e,"d",(function(){return H}));var i=n("u47x"),r=n("8LU1"),s=n("FtGj"),o=n("fXoL"),a=n("XNiG"),c=n("quSY"),l=n("VRyK"),u=n("LRne"),h=n("7Hc7"),d=n("JX91"),p=n("eIep"),m=n("IzEk"),f=n("pLZG"),b=n("1G5W"),g=n("3E0/"),_=n("R0Ic"),v=n("+rOU"),y=n("ofXK"),w=n("FKr1"),C=n("rDax"),x=n("nLfN"),k=n("vxfF"),O=n("cH1L");const S=["mat-menu-item",""],E=["*"];function T(t,e){if(1&t){const t=o.Ub();o.Tb(0,"div",0),o.ac("keydown",(function(e){return o.vc(t),o.ec()._handleKeydown(e)}))("click",(function(){return o.vc(t),o.ec().closed.emit("click")}))("@transformMenu.start",(function(e){return o.vc(t),o.ec()._onAnimationStart(e)}))("@transformMenu.done",(function(e){return o.vc(t),o.ec()._onAnimationDone(e)})),o.Tb(1,"div",1),o.ic(2),o.Sb(),o.Sb()}if(2&t){const t=o.ec();o.kc("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),o.Cb("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const A={transformMenu:Object(_.m)("transformMenu",[Object(_.j)("void",Object(_.k)({opacity:0,transform:"scale(0.8)"})),Object(_.l)("void => enter",Object(_.f)([Object(_.h)(".mat-menu-content, .mat-mdc-menu-content",Object(_.e)("100ms linear",Object(_.k)({opacity:1}))),Object(_.e)("120ms cubic-bezier(0, 0, 0.2, 1)",Object(_.k)({transform:"scale(1)"}))])),Object(_.l)("* => void",Object(_.e)("100ms 25ms linear",Object(_.k)({opacity:0})))]),fadeInItems:Object(_.m)("fadeInItems",[Object(_.j)("showing",Object(_.k)({opacity:1})),Object(_.l)("void => *",[Object(_.k)({opacity:0}),Object(_.e)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},I=new o.r("MatMenuContent"),D=new o.r("MAT_MENU_PANEL");class P{}const j=Object(w.w)(Object(w.x)(P));let F=(()=>{class t extends j{constructor(t,e,n,i){super(),this._elementRef=t,this._focusMonitor=n,this._parentMenu=i,this.role="menuitem",this._hovered=new a.a,this._focused=new a.a,this._highlighted=!1,this._triggersSubmenu=!1,i&&i.addItem&&i.addItem(this),this._document=e}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const t=this._elementRef.nativeElement,e=this._document?this._document.TEXT_NODE:3;let n="";if(t.childNodes){const i=t.childNodes.length;for(let r=0;r<i;r++)t.childNodes[r].nodeType===e&&(n+=t.childNodes[r].textContent)}return n.trim()}}return t.\u0275fac=function(e){return new(e||t)(o.Nb(o.l),o.Nb(y.e),o.Nb(i.h),o.Nb(D,8))},t.\u0275cmp=o.Hb({type:t,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(t,e){1&t&&o.ac("click",(function(t){return e._checkDisabled(t)}))("mouseenter",(function(){return e._handleMouseEnter()})),2&t&&(o.Cb("role",e.role)("tabindex",e._getTabIndex())("aria-disabled",e.disabled.toString())("disabled",e.disabled||null),o.Fb("mat-menu-item",!0)("mat-menu-item-highlighted",e._highlighted)("mat-menu-item-submenu-trigger",e._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[o.yb],attrs:S,ngContentSelectors:E,decls:2,vars:2,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"]],template:function(t,e){1&t&&(o.jc(),o.ic(0),o.Ob(1,"div",0)),2&t&&(o.Bb(1),o.kc("matRippleDisabled",e.disableRipple||e.disabled)("matRippleTrigger",e._getHostElement()))},directives:[w.q],encapsulation:2,changeDetection:0}),t})();const M=new o.r("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let R=0,N=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._ngZone=e,this._defaultOptions=n,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new o.E,this._tabSubscription=c.a.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new a.a,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new o.n,this.close=this.closed,this.panelId="mat-menu-panel-"+R++}get xPosition(){return this._xPosition}set xPosition(t){Object(o.X)()&&"before"!==t&&"after"!==t&&function(){throw Error('xPosition value must be either \'before\' or after\'.\n      Example: <mat-menu xPosition="before" #menu="matMenu"></mat-menu>')}(),this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){Object(o.X)()&&"above"!==t&&"below"!==t&&function(){throw Error('yPosition value must be either \'above\' or below\'.\n      Example: <mat-menu yPosition="above" #menu="matMenu"></mat-menu>')}(),this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=Object(r.c)(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=Object(r.c)(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new i.g(this._directDescendantItems).withWrap().withTypeAhead(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Object(d.a)(this._directDescendantItems),Object(p.a)(t=>Object(l.a)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Object(d.a)(this._directDescendantItems),Object(p.a)(t=>Object(l.a)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,n=this._keyManager;switch(e){case s.g:Object(s.s)(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case s.i:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case s.m:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;case s.h:case s.e:Object(s.s)(t)||(e===s.h?n.setFirstItemActive():n.setLastItemActive(),t.preventDefault());break;default:e!==s.p&&e!==s.d||n.setFocusOrigin("keyboard"),n.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.asObservable().pipe(Object(m.a)(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e="mat-elevation-z"+Math.min(4+t,24),n=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Object(d.a)(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(o.Nb(o.l),o.Nb(o.A),o.Nb(M))},t.\u0275dir=o.Ib({type:t,contentQueries:function(t,e,n){var i;1&t&&(o.Gb(n,I,!0),o.Gb(n,F,!0),o.Gb(n,F,!1)),2&t&&(o.rc(i=o.bc())&&(e.lazyContent=i.first),o.rc(i=o.bc())&&(e._allItems=i),o.rc(i=o.bc())&&(e.items=i))},viewQuery:function(t,e){var n;1&t&&o.Nc(o.N,!0),2&t&&o.rc(n=o.bc())&&(e.templateRef=n.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),L=(()=>{class t extends N{}return t.\u0275fac=function(e){return B(e||t)},t.\u0275dir=o.Ib({type:t,features:[o.yb]}),t})();const B=o.Vb(L);let H=(()=>{class t extends L{constructor(t,e,n){super(t,e,n)}}return t.\u0275fac=function(e){return new(e||t)(o.Nb(o.l),o.Nb(o.A),o.Nb(M))},t.\u0275cmp=o.Hb({type:t,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[o.Ab([{provide:D,useExisting:L},{provide:L,useExisting:t}]),o.yb],ngContentSelectors:E,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(o.jc(),o.Fc(0,T,3,6,"ng-template"))},directives:[y.q],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-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;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}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[A.transformMenu,A.fadeInItems]},changeDetection:0}),t})();const V=new o.r("mat-menu-scroll-strategy"),z={provide:V,deps:[C.a],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},U=Object(x.f)({passive:!0});let $=(()=>{class t{constructor(t,e,n,i,r,s,a,l){this._overlay=t,this._element=e,this._viewContainerRef=n,this._parentMenu=r,this._menuItemInstance=s,this._dir=a,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=c.a.EMPTY,this._hoverSubscription=c.a.EMPTY,this._menuCloseSubscription=c.a.EMPTY,this._handleTouchStart=()=>this._openedBy="touch",this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new o.n,this.onMenuOpen=this.menuOpened,this.menuClosed=new o.n,this.onMenuClose=this.menuClosed,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,U),s&&(s._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=i}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(Object(o.X)()&&t===this._parentMenu&&function(){throw Error("matMenuTriggerFor: menu cannot contain its own trigger. Assign a menu that is not a parent of the trigger or move the trigger outside of the menu.")}(),this._menuCloseSubscription=t.close.asObservable().subscribe(t=>{this._destroyMenu(),"click"!==t&&"tab"!==t||!this._parentMenu||this._parentMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,U),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof L&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}_destroyMenu(){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),t instanceof L?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(Object(f.a)(t=>"void"===t.toState),Object(m.a)(1),Object(b.a)(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_restoreFocus(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){Object(o.X)()&&!this.menu&&function(){throw Error('matMenuTriggerFor: must pass in an mat-menu instance.\n\n    Example:\n      <mat-menu #menu="matMenu"></mat-menu>\n      <button [matMenuTriggerFor]="menu"></button>')}()}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new C.b({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,n]="before"===this.menu.xPosition?["end","start"]:["start","end"],[i,r]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[s,o]=[i,r],[a,c]=[e,n],l=0;this.triggersSubmenu()?(c=e="before"===this.menu.xPosition?"start":"end",n=a="end"===e?"start":"end",l="bottom"===i?8:-8):this.menu.overlapTrigger||(s="top"===i?"bottom":"top",o="top"===r?"bottom":"top"),t.withPositions([{originX:e,originY:s,overlayX:a,overlayY:i,offsetY:l},{originX:n,originY:s,overlayX:c,overlayY:i,offsetY:l},{originX:e,originY:o,overlayX:a,overlayY:r,offsetY:-l},{originX:n,originY:o,overlayX:c,overlayY:r,offsetY:-l}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),n=this._parentMenu?this._parentMenu.closed:Object(u.a)(),i=this._parentMenu?this._parentMenu._hovered().pipe(Object(f.a)(t=>t!==this._menuItemInstance),Object(f.a)(()=>this._menuOpen)):Object(u.a)();return Object(l.a)(t,n,i,e)}_handleMousedown(t){Object(i.l)(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;this.triggersSubmenu()&&(e===s.m&&"ltr"===this.dir||e===s.i&&"rtl"===this.dir)&&this.openMenu()}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(Object(f.a)(t=>t===this._menuItemInstance&&!t.disabled),Object(g.a)(0,h.a)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof L&&this.menu._isAnimating?this.menu._animationDone.pipe(Object(m.a)(1),Object(g.a)(0,h.a),Object(b.a)(this._parentMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new v.i(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(o.Nb(C.a),o.Nb(o.l),o.Nb(o.R),o.Nb(V),o.Nb(L,8),o.Nb(F,10),o.Nb(O.c,8),o.Nb(i.h))},t.\u0275dir=o.Ib({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&o.ac("mousedown",(function(t){return e._handleMousedown(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("click",(function(t){return e._handleClick(t)})),2&t&&o.Cb("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),X=(()=>{class t{}return t.\u0275mod=o.Lb({type:t}),t.\u0275inj=o.Kb({factory:function(e){return new(e||t)},providers:[z],imports:[w.h]}),t})(),q=(()=>{class t{}return t.\u0275mod=o.Lb({type:t}),t.\u0275inj=o.Kb({factory:function(e){return new(e||t)},providers:[z],imports:[[y.c,w.h,w.r,C.d,X],k.b,w.h,X]}),t})()},SW18:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("fXoL"),r=n("LRXf");let s=(()=>{class t{constructor(t){this.http=t}all(t={}){return this.http.get("templates",t)}get(t){return this.http.get("templates/"+t)}create(t){return this.http.post("templates",t)}update(t,e){return this.http.put("templates/"+t,e)}delete(t){return this.http.delete("templates",{names:t})}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(r.a))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},SeVD:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("ngJS"),r=n("NJ4a"),s=n("Lhse"),o=n("kJWO"),a=n("I55L"),c=n("c2HN"),l=n("XoHu");const u=t=>{if(t&&"function"==typeof t[o.a])return u=t,t=>{const e=u[o.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(a.a)(t))return Object(i.a)(t);if(Object(c.a)(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,r.a),t);if(t&&"function"==typeof t[s.a])return e=t,t=>{const n=e[s.a]();for(;;){let e;try{e=n.next()}catch(i){return t.error(i),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=Object(l.a)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,u}},SpAZ:function(t,e,n){"use strict";function i(t){return t}n.d(e,"a",(function(){return i}))},TU8p:function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return d}));var i=n("fXoL"),r=n("FKr1"),s=n("u47x"),o=n("8LU1"),a=n("R1ws");let c=0;class l{}const u=Object(r.x)(l);let h=(()=>{class t extends u{constructor(t,e,n,r,s){if(super(),this._ngZone=t,this._elementRef=e,this._ariaDescriber=n,this._renderer=r,this._animationMode=s,this._hasContent=!1,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=c++,Object(i.X)()){const t=e.nativeElement;if(t.nodeType!==t.ELEMENT_NODE)throw Error("matBadge must be attached to an element node.")}}get color(){return this._color}set color(t){this._setColor(t),this._color=t}get overlap(){return this._overlap}set overlap(t){this._overlap=Object(o.c)(t)}get description(){return this._description}set description(t){if(t!==this._description){const e=this._badgeElement;this._updateHostAriaDescription(t,this._description),this._description=t,e&&(t?e.setAttribute("aria-label",t):e.removeAttribute("aria-label"))}}get hidden(){return this._hidden}set hidden(t){this._hidden=Object(o.c)(t)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}ngOnChanges(t){const e=t.content;if(e){const t=e.currentValue;this._hasContent=null!=t&&(""+t).trim().length>0,this._updateTextContent()}}ngOnDestroy(){const t=this._badgeElement;t&&(this.description&&this._ariaDescriber.removeDescription(t,this.description),this._renderer.destroyNode&&this._renderer.destroyNode(t))}getBadgeElement(){return this._badgeElement}_updateTextContent(){return this._badgeElement?this._badgeElement.textContent=this.content:this._badgeElement=this._createBadgeElement(),this._badgeElement}_createBadgeElement(){const t=this._renderer.createElement("span");return this._clearExistingBadges("mat-badge-content"),t.setAttribute("id","mat-badge-content-"+this._id),t.classList.add("mat-badge-content"),t.textContent=this.content,"NoopAnimations"===this._animationMode&&t.classList.add("_mat-animation-noopable"),this.description&&t.setAttribute("aria-label",this.description),this._elementRef.nativeElement.appendChild(t),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{t.classList.add("mat-badge-active")})}):t.classList.add("mat-badge-active"),t}_updateHostAriaDescription(t,e){const n=this._updateTextContent();e&&this._ariaDescriber.removeDescription(n,e),t&&this._ariaDescriber.describe(n,t)}_setColor(t){t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-badge-"+this._color),t&&this._elementRef.nativeElement.classList.add("mat-badge-"+t))}_clearExistingBadges(t){const e=this._elementRef.nativeElement;let n=e.children.length;for(;n--;){const i=e.children[n];i.classList.contains(t)&&e.removeChild(i)}}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.A),i.Nb(i.l),i.Nb(s.c),i.Nb(i.G),i.Nb(a.a,8))},t.\u0275dir=i.Ib({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(t,e){2&t&&i.Fb("mat-badge-overlap",e.overlap)("mat-badge-above",e.isAbove())("mat-badge-below",!e.isAbove())("mat-badge-before",!e.isAfter())("mat-badge-after",e.isAfter())("mat-badge-small","small"===e.size)("mat-badge-medium","medium"===e.size)("mat-badge-large","large"===e.size)("mat-badge-hidden",e.hidden||!e._hasContent)("mat-badge-disabled",e.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],position:["matBadgePosition","position"],size:["matBadgeSize","size"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],description:["matBadgeDescription","description"],hidden:["matBadgeHidden","hidden"],content:["matBadge","content"]},features:[i.yb,i.zb]}),t})(),d=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)},imports:[[s.a,r.h],r.h]}),t})()},VRyK:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("HDdC"),r=n("z+Ro"),s=n("bHdf"),o=n("yCtX");function a(...t){let e=Number.POSITIVE_INFINITY,n=null,a=t[t.length-1];return Object(r.a)(a)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof i.a?t[0]:Object(s.a)(e)(Object(o.a)(t,n))}},VaLf:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("fXoL");class r{constructor(t={}){for(const e in t)this[e]=t[e]}}var s=n("kmQS");let o=(()=>{class t{constructor(t){this.settings=t,this.localizationChange=new i.n,this.localization={model:new r,name:"",lines:{}}}t(t,e){if(!t)return"";if(!this.translationsEnabled())return this.replacePlaceholders(t,e);const n=this.localization.lines[t.toLowerCase().trim()]||t;return this.replacePlaceholders(n,e)}replacePlaceholders(t,e){return e?(Object.keys(e).forEach(n=>{const i=new RegExp(":"+n,"g");t=t.replace(i,e[n])}),t):t}getActive(){return this.localization}setLocalization(t){t&&t.lines&&t.model&&this.localization.model.name!==t.model.name&&(t.lines=this.objectKeysToLowerCase(t.lines),this.localization=t,this.localizationChange.emit())}objectKeysToLowerCase(t){const e={};return Object.keys(t).forEach(n=>{e[n.toLowerCase()]=t[n]}),e}translationsEnabled(){return this.settings.get("i18n.enable")}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(s.a))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},VfAk:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r}));var i=function(t){return t.Default="There was an issue. Please try again later.",t.DefaultUpload="Could not upload file. Please try again later.",t}({});const r="https://support.vebto.com/help-center/articles/180/how-to-increase-file-maximum-upload-size"},WAq7:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("NmYn"),r=n.n(i);function s(t,e="-",n=!1){if(!t)return t;let i=r()(t,{lower:!0,replacement:e,strict:n,remove:/[*+~.()'"!:@?/]/g});return i||(i=t.replace(/\s+/g,"-").toLowerCase()),i}},WMd4:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("EY2u"),r=n("LRne"),s=n("z6cu");let o=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,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,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Object(r.a)(this.value);case"E":return Object(s.a)(this.error);case"C":return Object(i.b)()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})()},WWJw:function(t,e,n){"use strict";n.d(e,"a",(function(){return k}));var i=n("fXoL"),r=n("XFMS"),s=n("kmQS"),o=n("tyNb"),a=n("f+iI"),c=n("twBr"),l=n("ZfYz"),u=n("ofXK"),h=n("NFeN"),d=n("Rd8u"),p=n("gA0O"),m=n("bTqV");function f(t,e){if(1&t){const t=i.Ub();i.Tb(0,"a",8),i.ac("click",(function(){return i.vc(t),i.ec(2).closePanel()})),i.Hc(1,"Notification Settings"),i.Sb()}}function b(t,e){if(1&t&&(i.Tb(0,"div",2),i.Ob(1,"mat-icon",3),i.Tb(2,"div",4),i.Tb(3,"div",5),i.Hc(4,"Hang tight!"),i.Sb(),i.Tb(5,"div",6),i.Hc(6,"Notifications will start showing up here soon."),i.Sb(),i.Fc(7,f,2,0,"a",7),i.Sb(),i.Sb()),2&t){const t=i.ec();i.Bb(7),i.kc("ngIf",t.settings.get("notif.subs.integrated")&&t.currentUser.hasPermission("notifications.subscribe"))}}function g(t,e){if(1&t&&(i.Tb(0,"div",16),i.Hc(1),i.Sb()),2&t){const t=i.ec().$implicit;i.Bb(1),i.Ic(t.time_period)}}function _(t,e){if(1&t&&i.Ob(0,"mat-icon",20),2&t){const t=i.ec().$implicit;i.kc("svgIcon",t.icon)}}function v(t,e){if(1&t){const t=i.Ub();i.Tb(0,"div",17),i.ac("click",(function(n){i.vc(t);const r=e.$implicit,s=i.ec().$implicit;return i.ec().performAction(r.action,s,n)})),i.Fc(1,_,1,1,"mat-icon",18),i.Ob(2,"span",19),i.Sb()}if(2&t){const t=e.$implicit,n=e.index;i.Fb("has-action",t.action),i.kc("ngClass",t.type?t.type:0===n?"primary":"secondary")("title",(null==t.action?null:t.action.label)||""),i.Bb(1),i.kc("ngIf",t.icon),i.Bb(1),i.kc("innerHTML",t.content,i.wc)}}function y(t,e){if(1&t){const t=i.Ub();i.Tb(0,"button",23),i.ac("click",(function(){i.vc(t);const n=e.$implicit,r=i.ec(2).$implicit;return i.ec().emitAction(n,r)})),i.Hc(1),i.Sb()}if(2&t){const t=e.$implicit;i.kc("color",t.color||"accent"),i.Bb(1),i.Ic(t.label)}}function w(t,e){if(1&t&&(i.Tb(0,"div",21),i.Fc(1,y,2,2,"button",22),i.Sb()),2&t){const t=i.ec().$implicit;i.Bb(1),i.kc("ngForOf",t.data.buttonActions)}}function C(t,e){if(1&t&&(i.Tb(0,"div",24),i.Hc(1),i.Sb()),2&t){const t=i.ec().$implicit;i.Bb(1),i.Ic(t.relative_created_at)}}function x(t,e){if(1&t){const t=i.Ub();i.Rb(0),i.Fc(1,g,2,1,"div",9),i.Tb(2,"div",10),i.ac("click",(function(n){i.vc(t);const r=e.$implicit;return i.ec().performAction(r.data.mainAction,r,n)})),i.Ob(3,"image-or-icon",11),i.Tb(4,"div",12),i.Fc(5,v,3,6,"div",13),i.Fc(6,w,2,1,"div",14),i.Sb(),i.Fc(7,C,2,1,"div",15),i.Sb(),i.Qb()}if(2&t){const t=e.$implicit,n=e.index,r=i.ec();i.Bb(1),i.kc("ngIf",(null==r.notifications[n-1]?null:r.notifications[n-1].time_period)!==t.time_period),i.Bb(1),i.Fb("compact",r.compact)("unread",!t.read_at)("has-action",t.data.mainAction)("warning",t.data.warning),i.kc("title",(null==t.data.mainAction?null:t.data.mainAction.label)||""),i.Bb(1),i.kc("src",t.data.image),i.Bb(2),i.kc("ngForOf",t.data.lines),i.Bb(1),i.kc("ngIf",t.data.buttonActions),i.Bb(1),i.kc("ngIf",!r.compact)}}let k=(()=>{class t{constructor(t,e,n,r,s,o){this.settings=t,this.zone=e,this.router=n,this.api=r,this.currentUser=s,this.overlayPanelRef=o,this.compact=!1,this.markedAsRead=new i.n,this.trackByFn=(t,e)=>e.id}haveNotifications(){return this.notifications&&Object.keys(this.notifications).length}performAction(t,e,n){t&&(n.stopPropagation(),n.preventDefault(),this.overlayPanelRef&&this.overlayPanelRef.close(),e.read_at||this.api.markAsRead([e.id]).subscribe(t=>{e.read_at=t.date,this.markedAsRead.emit(e)}),this.emitAction(t,e),t.emitOnly||(Object(r.a)(t.action)?window.open(t.action):this.router.navigate([t.action])))}closePanel(){this.overlayPanelRef&&this.overlayPanelRef.close()}emitAction(t,e){this.api.clickedOnNotification$.next({notification:e,action:t}),this.closePanel()}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(s.a),i.Nb(i.A),i.Nb(o.d),i.Nb(a.a),i.Nb(c.a),i.Nb(l.a,8))},t.\u0275cmp=i.Hb({type:t,selectors:[["notification-list"]],hostVars:2,hostBindings:function(t,e){2&t&&i.Fb("compact",e.compact)},inputs:{compact:"compact",notifications:"notifications"},outputs:{markedAsRead:"markedAsRead"},decls:3,vars:3,consts:[["class","no-results-message",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"no-results-message"],["svgIcon","notifications",1,"icon"],[1,"text"],["trans","",1,"main"],["trans","",1,"secondary"],["routerLink","/notifications/settings","class","notif-settings-link","trans","",3,"click",4,"ngIf"],["routerLink","/notifications/settings","trans","",1,"notif-settings-link",3,"click"],["class","group-header","trans","",4,"ngIf"],[1,"notification",3,"title","click"],[1,"inherit-size",3,"src"],[1,"middle-column"],["class","line",3,"ngClass","title","has-action","click",4,"ngFor","ngForOf"],["class","line button-actions",4,"ngIf"],["class","right-column",4,"ngIf"],["trans","",1,"group-header"],[1,"line",3,"ngClass","title","click"],[3,"svgIcon",4,"ngIf"],[3,"innerHTML"],[3,"svgIcon"],[1,"line","button-actions"],["type","button","mat-stroked-button","",3,"color","click",4,"ngFor","ngForOf"],["type","button","mat-stroked-button","",3,"color","click"],[1,"right-column"]],template:function(t,e){1&t&&(i.Fc(0,b,8,1,"div",0),i.Pb(1),i.Fc(2,x,8,14,"ng-container",1)),2&t&&(i.kc("ngIf",!e.haveNotifications()),i.Bb(2),i.kc("ngForOf",e.notifications)("ngForTrackBy",e.trackByFn))},directives:[u.t,u.s,h.a,d.a,o.g,p.a,u.q,m.b],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block}h1[_ngcontent-%COMP%]{font-weight:300;font-size:3.5rem;margin:0 0 20px}.notifications-wrapper[_ngcontent-%COMP%]{max-width:1200px;margin-left:auto;margin-right:auto;padding:0 25px}.group-header[_ngcontent-%COMP%]{padding:10px 20px;background-color:var(--be-background-alternative);color:var(--be-secondary-text);text-transform:uppercase;border-bottom:1px solid var(--be-divider-default);font-size:1.1rem;font-weight:500;letter-spacing:.5px;line-height:1}.notification[_ngcontent-%COMP%]{padding:20px;display:flex;background:var(--be-background)}.notification.compact[_ngcontent-%COMP%]{border-bottom:1px solid var(--be-divider-default)}.notification.compact[_ngcontent-%COMP%]   image-or-icon[_ngcontent-%COMP%]{width:32px;height:32px;margin-right:14px}.notification.compact[_ngcontent-%COMP%]   .secondary[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.notification[_ngcontent-%COMP%]:not(.compact){margin:10px 0;border:1px solid var(--be-divider-default);border-radius:4px}.notification.unread[_ngcontent-%COMP%]{background-color:var(--be-accent-emphasis)}.notification[_ngcontent-%COMP%]:hover:not(.unread){background-color:var(--be-hover)}.notification.warning.unread[_ngcontent-%COMP%]{background-color:#fff8f9}.notification.warning[_ngcontent-%COMP%]   image-or-icon[_ngcontent-%COMP%]{color:#f44336}.notification[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]:not(:last-of-type){margin-bottom:2px}.notification[_ngcontent-%COMP%]   .secondary[_ngcontent-%COMP%]{font-size:1.4rem;color:var(--be-secondary-text)}.notification[_ngcontent-%COMP%]   .primary[_ngcontent-%COMP%]{font-size:1.5rem;color:var(--be-text)}.notification[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{vertical-align:middle;color:var(--be-secondary-text);width:18px;height:18px;line-height:18px;margin-right:5px}.notification[_ngcontent-%COMP%]   image-or-icon[_ngcontent-%COMP%]{display:block;width:55px;height:55px;flex-shrink:0;margin-right:12px;border-radius:4px;overflow:hidden}.has-action[_ngcontent-%COMP%]{cursor:pointer}.button-actions[_ngcontent-%COMP%]{margin-top:10px}.button-actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-right:5px}.line.has-action[_ngcontent-%COMP%]:hover{text-decoration:underline}.middle-column[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0}.right-column[_ngcontent-%COMP%]{margin-left:auto;padding-left:25px;color:var(--be-secondary-text);align-self:flex-start;white-space:nowrap}.track[_ngcontent-%COMP%], .username[_ngcontent-%COMP%]{color:var(--be-secondary-text);font-size:1.3rem}.quote[_ngcontent-%COMP%]:after, .quote[_ngcontent-%COMP%]:before{content:"\u201c"}.no-results-message[_ngcontent-%COMP%]{margin:30px 0}.no-results-message[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{width:70px;height:70px;margin-bottom:15px;color:var(--be-secondary-text)}.no-results-message[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:block;text-align:center;margin-top:10px}loading-indicator[_ngcontent-%COMP%]{margin-top:30px}'],changeDetection:0}),t})()},Wf9w:function(t,e,n){"use strict";function i(t){return t.replace(/\s/g,"_").replace(/\.?([A-Z]+)/g,(t,e)=>"_"+e).replace(/^_/,"").toLowerCase()}n.d(e,"a",(function(){return i}))},WmcL:function(t,e,n){"use strict";function i(t){return t?t.charAt(0).toUpperCase()+t.slice(1):""}n.d(e,"a",(function(){return i}))},X3pI:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("ofXK"),r=n("fXoL");let s=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[i.c]]}),t})()},XFMS:function(t,e,n){"use strict";function i(t){return!!t&&!/^[a-z]:\\/.test(t)&&/^[a-z][a-z\d+\-.]*:/.test(t)}n.d(e,"a",(function(){return i}))},XIHC:function(t,e){!function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},keyword:/\b(?:abstract|as|asserts|async|await|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|is|keyof|let|module|namespace|new|null|of|package|private|protected|public|readonly|return|require|set|static|super|switch|this|throw|try|type|typeof|undefined|var|void|while|with|yield)\b/,builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),delete t.languages.typescript.parameter;var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.languages.insertBefore("typescript","function",{"generic-function":{pattern:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),t.languages.ts=t.languages.typescript}(Prism)},XNiG:function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return u}));var i=n("HDdC"),r=n("7o/Q"),s=n("quSY"),o=n("9ppp"),a=n("Ylt2"),c=n("2QA8");class l extends r.a{constructor(t){super(t),this.destination=t}}let u=(()=>{class t extends i.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[c.a](){return new l(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new o.a;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let r=0;r<n;r++)i[r].next(t)}}error(t){if(this.closed)throw new o.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,i=e.slice();for(let r=0;r<n;r++)i[r].error(t);this.observers.length=0}complete(){if(this.closed)throw new o.a;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let i=0;i<e;i++)n[i].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new o.a;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new o.a;return this.hasError?(t.error(this.thrownError),s.a.EMPTY):this.isStopped?(t.complete(),s.a.EMPTY):(this.observers.push(t),new a.a(this,t))}asObservable(){const t=new i.a;return t.source=this,t}}return t.create=(t,e)=>new h(t,e),t})();class h extends u{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):s.a.EMPTY}}},XPQg:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i='<div class="container">\n    <div class="row">\n        <div class="col-sm-4"></div>\n        <div class="col-sm-4"></div>\n        <div class="col-sm-4"></div>\n    </div>\n</div>'},XoHu:function(t,e,n){"use strict";function i(t){return null!==t&&"object"==typeof t}n.d(e,"a",(function(){return i}))},Y7HM:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("DH7j");function r(t){return!Object(i.a)(t)&&t-parseFloat(t)+1>=0}},Yhcd:function(t,e){!function(t){function e(t,e){return"___"+t.toUpperCase()+e+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,i,r,s){if(n.language===i){var o=n.tokenStack=[];n.code=n.code.replace(r,(function(t){if("function"==typeof s&&!s(t))return t;for(var r,a=o.length;-1!==n.code.indexOf(r=e(i,a));)++a;return o[a]=t,r})),n.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(n,i){if(n.language===i&&n.tokenStack){n.grammar=t.languages[i];var r=0,s=Object.keys(n.tokenStack);!function o(a){for(var c=0;c<a.length&&!(r>=s.length);c++){var l=a[c];if("string"==typeof l||l.content&&"string"==typeof l.content){var u=s[r],h=n.tokenStack[u],d="string"==typeof l?l:l.content,p=e(i,u),m=d.indexOf(p);if(m>-1){++r;var f=d.substring(0,m),b=new t.Token(i,t.tokenize(h,n.grammar),"language-"+i,h),g=d.substring(m+p.length),_=[];f&&_.push.apply(_,o([f])),_.push(b),g&&_.push.apply(_,o([g])),"string"==typeof l?a.splice.apply(a,[c,1].concat(_)):l.content=_}}else l.content&&o(l.content)}return a}(n.tokens)}}}})}(Prism)},Ylt2:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("quSY");class r extends i.a{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 n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},ZfYz:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("XNiG"),r=n("IzEk"),s=n("oJgS");class o{constructor(t){this.overlayRef=t,this.id=Object(s.a)(15),this.value=new i.a}isOpen(){return this.overlayRef&&this.overlayRef.hasAttached()}close(){this.overlayRef&&this.overlayRef.dispose()}emitValue(t){this.value.next(t)}valueChanged(){return this.value.asObservable()}getPanelEl(){return this.overlayRef.overlayElement}updatePosition(){return this.overlayRef.updatePosition()}afterClosed(){return this.overlayRef.detachments().pipe(Object(r.a)(1))}}},Zy1z:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("7o/Q");function r(){return t=>t.lift(new s)}class s{call(t,e){return e.subscribe(new o(t))}}class o extends i.a{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)}}},agwZ:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("fXoL"),r=n("LRXf");let s=(()=>{class t{constructor(t){this.http=t}all(e){return this.http.get(t.BASE_URI,e)}get(e){return this.http.get(`${t.BASE_URI}/${e}`)}create(e){return this.http.post(t.BASE_URI,e)}update(e,n){return this.http.put(`${t.BASE_URI}/${e}`,n)}toggleState(e,n){return this.http.put(`${t.BASE_URI}/${e}`,{published:n})}delete(e){return this.http.delete(t.BASE_URI,e)}generateThumbnail(e,n){return this.http.post(`${t.BASE_URI}/${e}/generate-thumbnail`,{dataUrl:n})}publish(e,n){return this.http.post(`${t.BASE_URI}/${e}/publish`,n)}}return t.BASE_URI="projects",t.\u0275fac=function(e){return new(e||t)(i.Xb(r.a))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},ahrr:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("fXoL");let r=(()=>{class t{constructor(){this.storage=this.localStorageAvailable()?localStorage:null}get(t,e){if(!this.storage)return e;let n;try{n=JSON.parse(this.storage.getItem(t))}catch(i){}return null==n?e:n}set(t,e){if(!this.storage)return null;e=JSON.stringify(e),this.storage.setItem(t,e)}remove(t){if(!this.storage)return null;this.storage.removeItem(t)}localStorageAvailable(){try{return localStorage.setItem("test","test"),localStorage.removeItem("test"),!0}catch(t){return!1}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},bHdf:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("5+tZ"),r=n("SpAZ");function s(t=Number.POSITIVE_INFINITY){return Object(i.a)(r.a,t)}},bOdf:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("5+tZ");function r(t,e){return Object(i.a)(t,e,1)}},bPOv:function(t,e){Prism.languages.markup={comment:/<!--[\s\S]*?-->/,prolog:/<\?[\s\S]+?\?>/,doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/,name:/[^\s<>'"]+/}},cdata:/<!\[CDATA\[[\s\S]*?]]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(t){"entity"===t.type&&(t.attributes.title=t.content.replace(/&amp;/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,e){var n={};n["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[e]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};i["language-"+e]={pattern:/[\s\S]+/,inside:Prism.languages[e]};var r={};r[t]={pattern:RegExp(/(<__[\s\S]*?>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return t})),"i"),lookbehind:!0,greedy:!0,inside:i},Prism.languages.insertBefore("markup","cdata",r)}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml},bSwM:function(t,e,n){"use strict";n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return O})),n.d(e,"c",(function(){return C}));var i=n("8LU1"),r=n("fXoL"),s=n("3Pt+"),o=n("FKr1"),a=n("R1ws"),c=n("GU7r"),l=n("u47x");const u=["input"],h=function(){return{enterDuration:150}},d=["*"],p=new r.r("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),m=new r.r("mat-checkbox-click-action");let f=0;const b={provide:s.s,useExisting:Object(r.V)(()=>y),multi:!0};class g{}class _{constructor(t){this._elementRef=t}}const v=Object(o.z)(Object(o.v)(Object(o.w)(Object(o.x)(_))));let y=(()=>{class t extends v{constructor(t,e,n,i,s,o,a,c){super(t),this._changeDetectorRef=e,this._focusMonitor=n,this._ngZone=i,this._clickAction=o,this._animationMode=a,this._options=c,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++f,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new r.n,this.indeterminateChange=new r.n,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||{},this._options.color&&(this.color=this._options.color),this.tabIndex=parseInt(s)||0,this._clickAction=this._clickAction||this._options.clickAction}get inputId(){return(this.id||this._uniqueId)+"-input"}get required(){return this._required}set required(t){this._required=Object(i.c)(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t||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(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=Object(i.c)(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=Object(i.c)(t),e&&(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(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,n=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{n.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new g;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)}toggle(){this.checked=!this.checked}_onInputClick(t){t.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t="keyboard",e){this._focusMonitor.focusVia(this._inputElement,t,e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let n="";switch(t){case 0:if(1===e)n="unchecked-checked";else{if(3!=e)return"";n="unchecked-indeterminate"}break;case 2:n=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===e?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-"+n}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.l),r.Nb(r.h),r.Nb(l.h),r.Nb(r.A),r.Yb("tabindex"),r.Nb(m,8),r.Nb(a.a,8),r.Nb(p,8))},t.\u0275cmp=r.Hb({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var n;1&t&&(r.Nc(u,!0),r.Nc(o.q,!0)),2&t&&(r.rc(n=r.bc())&&(e._inputElement=n.first),r.rc(n=r.bc())&&(e.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(r.Wb("id",e.id),r.Cb("tabindex",null),r.Fb("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._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:[r.Ab([b]),r.yb],ngContentSelectors:d,decls:17,vars:20,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",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(t,e){if(1&t&&(r.jc(),r.Tb(0,"label",0,1),r.Tb(2,"div",2),r.Tb(3,"input",3,4),r.ac("change",(function(t){return e._onInteractionEvent(t)}))("click",(function(t){return e._onInputClick(t)})),r.Sb(),r.Tb(5,"div",5),r.Ob(6,"div",6),r.Sb(),r.Ob(7,"div",7),r.Tb(8,"div",8),r.dc(),r.Tb(9,"svg",9),r.Ob(10,"path",10),r.Sb(),r.cc(),r.Ob(11,"div",11),r.Sb(),r.Sb(),r.Tb(12,"span",12,13),r.ac("cdkObserveContent",(function(){return e._onLabelTextChange()})),r.Tb(14,"span",14),r.Hc(15,"\xa0"),r.Sb(),r.ic(16),r.Sb(),r.Sb()),2&t){const t=r.sc(1),n=r.sc(13);r.Cb("for",e.inputId),r.Bb(2),r.Fb("mat-checkbox-inner-container-no-side-margin",!n.textContent||!n.textContent.trim()),r.Bb(1),r.kc("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),r.Cb("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),r.Bb(2),r.kc("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",r.nc(19,h))}},directives:[o.q,c.a],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{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-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}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-frame{border-style:dotted}.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)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{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%}.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}\n"],encapsulation:2,changeDetection:0}),t})();const w={provide:s.r,useExisting:Object(r.V)(()=>C),multi:!0};let C=(()=>{class t extends s.b{}return t.\u0275fac=function(e){return x(e||t)},t.\u0275dir=r.Ib({type:t,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[r.Ab([w]),r.yb]}),t})();const x=r.Vb(C);let k=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)}}),t})(),O=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[o.r,o.h,c.c,k],o.h,k]}),t})()},bTMO:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("ohrG"),r=n("LFZc"),s=n("fXoL"),o=n("tyNb"),a=n("kmQS"),c=n("twBr");let l=(()=>{class t{constructor(t,e,n){this.router=t,this.settings=e,this.currentUser=n,this.defaultComponents=[{name:"Login Page",guestOnly:!0,routeConfig:{redirectTo:"/login",pathMatch:"full"}},{name:"Register Page",guestOnly:!0,routeConfig:{redirectTo:"/register",pathMatch:"full"}}],this.menuCategories=[{name:"Custom Page",route:{component:i.a}}]}select(t={}){this.defaultComponents=this.defaultComponents.concat(t.routes||[]),this.menuCategories=this.menuCategories.concat(t.menuCategories||[]);const e=this.settings.get("homepage.type")||"default",n=this.settings.get("homepage.value");if("default"!==e&&null!=e){if("component"===e)return this.setComponentAsHomepage(n);{const t=this.menuCategories.find(t=>t.name===e);if(t){const e=Object.assign(Object.assign({},t.route),{data:{id:n}});this.addRoute(e)}}}}getComponents(){return this.defaultComponents}setComponentAsHomepage(t){const e=this.defaultComponents.find(e=>e.name===t);if(!e||e.ignore)return;let n=Object.assign({},e.routeConfig);if(e.guestOnly&&this.currentUser.isLoggedIn()&&!this.isPreviewMode()){if(!this.originalRoute)return;n=this.originalRoute}this.addRoute(n,e.makeRoot)}addRoute(t,e=!1){const n=e?null:this.getParentHomeRoute();t=this.prepareRoute(t);const i=n?n.children:this.router.config,r=i.findIndex(t=>""===t.path);r>-1?(this.originalRoute=this.originalRoute||i[r],i[r]=t):i.unshift(t)}getParentHomeRoute(){return this.router.config.find(t=>t.data&&t.data.parentHomeRoute)}prepareRoute(t){return t.path="",t.data||(t.data={}),t.data.name||(t.data.name="home"),t}isPreviewMode(){return window.location.search.includes("be-preview-mode="+r.a)}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(o.d),s.Xb(a.a),s.Xb(c.a))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},bTqV:function(t,e,n){"use strict";n.d(e,"a",(function(){return m})),n.d(e,"b",(function(){return p})),n.d(e,"c",(function(){return f}));var i=n("FKr1"),r=n("R1ws"),s=n("fXoL"),o=n("u47x");const a=["mat-button",""],c=["*"],l=".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}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.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:block;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}\n",u=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class h{constructor(t){this._elementRef=t}}const d=Object(i.v)(Object(i.x)(Object(i.w)(h)));let p=(()=>{class t extends d{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of u)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);t.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(t="program",e){this._focusMonitor.focusVia(this._getHostElement(),t,e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.l),s.Nb(o.h),s.Nb(r.a,8))},t.\u0275cmp=s.Hb({type:t,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(t,e){var n;1&t&&s.Nc(i.q,!0),2&t&&s.rc(n=s.bc())&&(e.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(s.Cb("disabled",e.disabled||null),s.Fb("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[s.yb],attrs:a,ngContentSelectors:c,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(t,e){1&t&&(s.jc(),s.Tb(0,"span",0),s.ic(1),s.Sb(),s.Ob(2,"div",1),s.Ob(3,"div",2)),2&t&&(s.Bb(2),s.Fb("mat-button-ripple-round",e.isRoundButton||e.isIconButton),s.kc("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[i.q],styles:[l],encapsulation:2,changeDetection:0}),t})(),m=(()=>{class t extends p{constructor(t,e,n){super(e,t,n)}_haltDisabledEvents(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(o.h),s.Nb(s.l),s.Nb(r.a,8))},t.\u0275cmp=s.Hb({type:t,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(t,e){1&t&&s.ac("click",(function(t){return e._haltDisabledEvents(t)})),2&t&&(s.Cb("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),s.Fb("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[s.yb],attrs:a,ngContentSelectors:c,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(t,e){1&t&&(s.jc(),s.Tb(0,"span",0),s.ic(1),s.Sb(),s.Ob(2,"div",1),s.Ob(3,"div",2)),2&t&&(s.Bb(2),s.Fb("mat-button-ripple-round",e.isRoundButton||e.isIconButton),s.kc("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[i.q],styles:[l],encapsulation:2,changeDetection:0}),t})(),f=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)},imports:[[i.r,i.h],i.h]}),t})()},bv9b:function(t,e,n){"use strict";n.d(e,"a",(function(){return b})),n.d(e,"b",(function(){return _}));var i=n("fXoL"),r=n("ofXK"),s=n("FKr1"),o=n("8LU1"),a=n("R1ws"),c=n("quSY"),l=n("xgIS"),u=n("pLZG");const h=["primaryValueBar"];class d{constructor(t){this._elementRef=t}}const p=Object(s.v)(d,"primary"),m=new i.r("mat-progress-bar-location",{providedIn:"root",factory:function(){const t=Object(i.W)(r.e),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}});let f=0,b=(()=>{class t extends p{constructor(t,e,n,r){super(t),this._elementRef=t,this._ngZone=e,this._animationMode=n,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new i.n,this._animationEndSubscription=c.a.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+f++;const s=r?r.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${s}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===n}get value(){return this._value}set value(t){this._value=g(Object(o.f)(t)||0)}get bufferValue(){return this._bufferValue}set bufferValue(t){this._bufferValue=g(t||0)}_primaryTransform(){return{transform:`scaleX(${this.value/100})`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scaleX(${this.bufferValue/100})`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const t=this._primaryValueBar.nativeElement;this._animationEndSubscription=Object(l.a)(t,"transitionend").pipe(Object(u.a)(e=>e.target===t)).subscribe(()=>{"determinate"!==this.mode&&"buffer"!==this.mode||this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.l),i.Nb(i.A),i.Nb(a.a,8),i.Nb(m,8))},t.\u0275cmp=i.Hb({type:t,selectors:[["mat-progress-bar"]],viewQuery:function(t,e){var n;1&t&&i.Nc(h,!0),2&t&&i.rc(n=i.bc())&&(e._primaryValueBar=n.first)},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"mat-progress-bar"],hostVars:4,hostBindings:function(t,e){2&t&&(i.Cb("aria-valuenow","indeterminate"===e.mode||"query"===e.mode?null:e.value)("mode",e.mode),i.Fb("_mat-animation-noopable",e._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[i.yb],decls:9,vars:4,consts:[["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(t,e){1&t&&(i.dc(),i.Tb(0,"svg",0),i.Tb(1,"defs"),i.Tb(2,"pattern",1),i.Ob(3,"circle",2),i.Sb(),i.Sb(),i.Ob(4,"rect",3),i.Sb(),i.cc(),i.Ob(5,"div",4),i.Ob(6,"div",5,6),i.Ob(8,"div",7)),2&t&&(i.Bb(2),i.kc("id",e.progressbarId),i.Bb(2),i.Cb("fill",e._rectangleFillValue),i.Bb(1),i.kc("ngStyle",e._bufferTransform()),i.Bb(1),i.kc("ngStyle",e._primaryTransform()))},directives:[r.w],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),t})();function g(t,e=0,n=100){return Math.max(e,Math.min(n,t))}let _=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)},imports:[[r.c,s.h],s.h]}),t})()},c2HN:function(t,e,n){"use strict";function i(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",(function(){return i}))},cH1L:function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o}));var i=n("fXoL"),r=n("ofXK");const s=new i.r("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(i.W)(r.e)}});let o=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new i.n,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(s,8))},t.\u0275prov=Object(i.Jb)({factory:function(){return new t(Object(i.Xb)(s,8))},token:t,providedIn:"root"}),t})(),a=(()=>{class t{constructor(){this._dir="ltr",this._isInitialized=!1,this.change=new i.n}get dir(){return this._dir}set dir(t){const e=this._dir,n=t?t.toLowerCase():t;this._rawDir=t,this._dir="ltr"===n||"rtl"===n?n:"ltr",e!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}get value(){return this.dir}ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Ib({type:t,selectors:[["","dir",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.Cb("dir",e._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[i.Ab([{provide:o,useExisting:t}])]}),t})(),c=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)}}),t})()},cp0P:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("HDdC"),r=n("DH7j"),s=n("lJxs"),o=n("XoHu"),a=n("Cfvw");function c(...t){if(1===t.length){const e=t[0];if(Object(r.a)(e))return l(e,null);if(Object(o.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return l(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return l(t=1===t.length&&Object(r.a)(t[0])?t[0]:t,null).pipe(Object(s.a)(t=>e(...t)))}return l(t,null)}function l(t,e){return new i.a(n=>{const i=t.length;if(0===i)return void n.complete();const r=new Array(i);let s=0,o=0;for(let c=0;c<i;c++){const l=Object(a.a)(t[c]);let u=!1;n.add(l.subscribe({next:t=>{u||(u=!0,o++),r[c]=t},error:t=>n.error(t),complete:()=>{s++,s!==i&&u||(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=r[n],t),{}):r),n.complete())}}))}})}},dNgK:function(t,e,n){"use strict";n.d(e,"a",(function(){return S})),n.d(e,"b",(function(){return x})),n.d(e,"c",(function(){return k}));var i=n("rDax"),r=n("+rOU"),s=n("ofXK"),o=n("fXoL"),a=n("FKr1"),c=n("bTqV"),l=n("XNiG"),u=n("IzEk"),h=n("1G5W"),d=n("R0Ic"),p=n("u47x"),m=n("0MNC");function f(t,e){if(1&t){const t=o.Ub();o.Tb(0,"div",1),o.Tb(1,"button",2),o.ac("click",(function(){return o.vc(t),o.ec().action()})),o.Hc(2),o.Sb(),o.Sb()}if(2&t){const t=o.ec();o.Bb(2),o.Ic(t.data.action)}}function b(t,e){}const g=new o.r("MatSnackBarData");class _{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const v=Math.pow(2,31)-1;class y{constructor(t,e){this._overlayRef=e,this._afterDismissed=new l.a,this._afterOpened=new l.a,this._onAction=new l.a,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe(()=>this.dismiss()),t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,v))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed.asObservable()}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction.asObservable()}}let w=(()=>{class t{constructor(t,e){this.snackBarRef=t,this.data=e}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(e){return new(e||t)(o.Nb(y),o.Nb(g))},t.\u0275cmp=o.Hb({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,e){1&t&&(o.Tb(0,"span"),o.Hc(1),o.Sb(),o.Fc(2,f,3,1,"div",0)),2&t&&(o.Bb(1),o.Ic(e.data.message),o.Bb(1),o.kc("ngIf",e.hasAction))},directives:[s.t,c.b],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),t})();const C={snackBarState:Object(d.m)("state",[Object(d.j)("void, hidden",Object(d.k)({transform:"scale(0.8)",opacity:0})),Object(d.j)("visible",Object(d.k)({transform:"scale(1)",opacity:1})),Object(d.l)("* => visible",Object(d.e)("150ms cubic-bezier(0, 0, 0.2, 1)")),Object(d.l)("* => void, * => hidden",Object(d.e)("75ms cubic-bezier(0.4, 0.0, 1, 1)",Object(d.k)({opacity:0})))])};let x=(()=>{class t extends r.a{constructor(t,e,n,i){super(),this._ngZone=t,this._elementRef=e,this._changeDetectorRef=n,this.snackBarConfig=i,this._destroyed=!1,this._onExit=new l.a,this._onEnter=new l.a,this._animationState="void",this.attachDomPortal=t=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(t)),this._role="assertive"!==i.politeness||i.announcementMessage?"off"===i.politeness?null:"status":"alert"}attachComponentPortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}onAnimationEnd(t){const{fromState:e,toState:n}=t;if(("void"===n&&"void"!==e||"hidden"===n)&&this._completeExit(),"visible"===n){const t=this._onEnter;this._ngZone.run(()=>{t.next(),t.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}exit(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.asObservable().pipe(Object(u.a)(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(e=>t.classList.add(e)):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")}_assertNotAttached(){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached")}}return t.\u0275fac=function(e){return new(e||t)(o.Nb(o.A),o.Nb(o.l),o.Nb(o.h),o.Nb(_))},t.\u0275cmp=o.Hb({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var n;1&t&&o.Bc(r.c,!0),2&t&&o.rc(n=o.bc())&&(e._portalOutlet=n.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(t,e){1&t&&o.Dc("@state.done",(function(t){return e.onAnimationEnd(t)})),2&t&&(o.Cb("role",e._role),o.Ec("@state",e._animationState))},features:[o.yb],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&o.Fc(0,b,0,0,"ng-template",0)},directives:[r.c],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[C.snackBarState]}}),t})(),k=(()=>{class t{}return t.\u0275mod=o.Lb({type:t}),t.\u0275inj=o.Kb({factory:function(e){return new(e||t)},imports:[[i.d,r.h,s.c,c.c,a.h],a.h]}),t})();const O=new o.r("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new _}});let S=(()=>{class t{constructor(t,e,n,i,r,s){this._overlay=t,this._live=e,this._injector=n,this._breakpointObserver=i,this._parentSnackBar=r,this._defaultConfig=s,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=w,this.snackBarContainerComponent=x,this.handsetCssClass="mat-snack-bar-handset"}get _openedSnackBarRef(){const t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}openFromComponent(t,e){return this._attach(t,e)}openFromTemplate(t,e){return this._attach(t,e)}open(t,e="",n){const i=Object.assign(Object.assign({},this._defaultConfig),n);return i.data={message:t,action:e},i.announcementMessage===t&&(i.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,i)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,e){const n=new r.g(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[_,e]])),i=new r.d(this.snackBarContainerComponent,e.viewContainerRef,n),s=t.attach(i);return s.instance.snackBarConfig=e,s.instance}_attach(t,e){const n=Object.assign(Object.assign(Object.assign({},new _),this._defaultConfig),e),i=this._createOverlay(n),s=this._attachSnackBarContainer(i,n),a=new y(s,i);if(t instanceof o.N){const e=new r.i(t,null,{$implicit:n.data,snackBarRef:a});a.instance=s.attachTemplatePortal(e)}else{const e=this._createInjector(n,a),i=new r.d(t,void 0,e),o=s.attachComponentPortal(i);a.instance=o.instance}return this._breakpointObserver.observe(m.b.HandsetPortrait).pipe(Object(h.a)(i.detachments())).subscribe(t=>{const e=i.overlayElement.classList;t.matches?e.add(this.handsetCssClass):e.remove(this.handsetCssClass)}),this._animateSnackBar(a,n),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(t,e){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),e.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(e.duration)),e.announcementMessage&&this._live.announce(e.announcementMessage,e.politeness)}_createOverlay(t){const e=new i.b;e.direction=t.direction;let n=this._overlay.position().global();const r="rtl"===t.direction,s="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!r||"end"===t.horizontalPosition&&r,o=!s&&"center"!==t.horizontalPosition;return s?n.left("0"):o?n.right("0"):n.centerHorizontally(),"top"===t.verticalPosition?n.top("0"):n.bottom("0"),e.positionStrategy=n,this._overlay.create(e)}_createInjector(t,e){return new r.g(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[y,e],[g,t.data]]))}}return t.\u0275fac=function(e){return new(e||t)(o.Xb(i.a),o.Xb(p.k),o.Xb(o.s),o.Xb(m.a),o.Xb(t,12),o.Xb(O))},t.\u0275prov=Object(o.Jb)({factory:function(){return new t(Object(o.Xb)(i.a),Object(o.Xb)(p.k),Object(o.Xb)(o.o),Object(o.Xb)(m.a),Object(o.Xb)(t,12),Object(o.Xb)(O))},token:t,providedIn:k}),t})()},dz5c:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var i=n("fXoL"),r=n("+rOU"),s=n("ZfYz"),o=n("nPOm");class a{attach(){}enable(){document.documentElement.classList.add("be-fullscreen-overlay-scrollblock")}disable(){document.documentElement.classList.remove("be-fullscreen-overlay-scrollblock")}}var c=n("pLZG"),l=n("FtGj"),u=n("rDax"),h=n("OnlV");const d={hasBackdrop:!0,closeOnBackdropClick:!0,panelClass:"overlay-panel"};let p=(()=>{class t{constructor(t,e,n){this.overlay=t,this.breakpoints=e,this.injector=n}open(t,e){const n=Object.assign({},d,e),o={positionStrategy:this.getPositionStrategy(n),hasBackdrop:n.hasBackdrop,panelClass:n.panelClass,backdropClass:n.backdropClass,scrollStrategy:this.getScrollStrategy(n),disposeOnNavigation:!0};n.width&&(o.width=n.width),n.height&&(o.height=n.height),n.maxHeight&&(o.maxHeight=n.maxHeight),n.maxWidth&&(o.maxWidth=n.maxWidth);const a=this.overlay.create(o),u=new s.a(a),h=t instanceof i.N?new r.i(t,n.viewContainerRef,n.data):new r.d(t,n.viewContainerRef,this.createInjector(n,u));return u.componentRef=a.attach(h),n.closeOnBackdropClick&&(a.backdropClick().subscribe(()=>u.close()),a.keydownEvents().pipe(Object(c.a)(t=>t.keyCode===l.g)).subscribe(()=>u.close())),u}getScrollStrategy(t){return t.fullScreen?new a:"close"===t.scrollStrategy?this.overlay.scrollStrategies.close():null}createInjector(t,e){const n=new WeakMap;return n.set(s.a,e),n.set(o.a,t.data||null),new r.g(this.injector,n)}getPositionStrategy(t){if(t.positionStrategy)return t.positionStrategy;const e=this.breakpoints.isMobile$.value&&t.mobilePosition||t.position;return"global"===t.origin||this.positionIsGlobal(e)?this.getGlobalPositionStrategy(e):this.getConnectedPositionStrategy(e,t.origin)}positionIsGlobal(t){return"center"===t||!Array.isArray(t)}getGlobalPositionStrategy(t){if("center"===t)return this.overlay.position().global().centerHorizontally().centerVertically();{const e=this.overlay.position().global();return Object.keys(t).forEach(n=>{e[n](t[n])}),e}}getConnectedPositionStrategy(t,e){return this.overlay.position().flexibleConnectedTo(e).withPositions(t).withPush(!0).withViewportMargin(5)}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(u.a),i.Xb(h.a),i.Xb(i.s))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},eIep:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("lJxs"),r=n("Cfvw"),s=n("zx2A");function o(t,e){return"function"==typeof e?n=>n.pipe(o((n,s)=>Object(r.a)(t(n,s)).pipe(Object(i.a)((t,i)=>e(n,t,s,i))))):e=>e.lift(new a(t))}class a{constructor(t){this.project=t}call(t,e){return e.subscribe(new c(t,this.project))}}class c extends s.b{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new s.a(this),i=this.destination;i.add(n),this.innerSubscription=Object(s.c)(t,n),this.innerSubscription!==n&&i.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)}}},eNwd:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("3N8a");class r extends i.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}var s=n("IjjT");class o extends s.a{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,r=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i<r&&(t=e.shift()));if(this.active=!1,n){for(;++i<r&&(t=e.shift());)t.unsubscribe();throw n}}}const a=new o(r)},"f+iI":function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var i=n("2Vo4"),r=n("XNiG"),s=n("pLZG"),o=n("IzEk"),a=n("vkgz"),c=n("nYR2"),l=n("fXoL"),u=n("LRXf"),h=n("twBr");let d=(()=>{class t{constructor(t,e){this.http=t,this.currentUser=e,this.all$=new i.a(null),this.loading$=new i.a(!1),this.canLoadMore=new i.a(!1),this.unreadCount$=new i.a(null),this.clickedOnNotification$=new r.a,this.currentUser.model$.pipe(Object(s.a)(t=>!!t&&null!==t.unread_notifications_count),Object(o.a)(1)).subscribe(t=>{this.unreadCount$.next(t.unread_notifications_count)})}markAsRead(t){return this.http.post("notifications/mark-as-read",{ids:t}).pipe(Object(a.a)(e=>{this.unreadCount$.next(this.unreadCount$.value-t.length||0),this.all$.value&&this.all$.next(this.all$.value.map(n=>(t.includes(n.id)&&(n.read_at=e.date),n)))}))}markAllAsRead(){const t=this.all$.value.map(t=>t.id);return this.markAsRead(t)}load(t={}){return this.loading$.next(!0),this.http.get("notifications",t).pipe(Object(c.a)(()=>this.loading$.next(!1)),Object(a.a)(t=>{1===t.pagination.current_page&&(this.all$.next(t.pagination.data),this.canLoadMore.next(t.pagination.current_page<t.pagination.last_page))}))}add(t){this.unreadCount$.next(this.unreadCount$.value+1),this.all$.value&&this.all$.next([t,...this.all$.value])}delete(t){const e=t.filter(t=>!t.read_at).length,n=t.map(t=>t.id);return this.http.delete("notifications/"+n).pipe(Object(a.a)(()=>{this.unreadCount$.next(this.unreadCount$.value-e),this.all$.next(this.all$.value.filter(t=>!n.includes(t.id)))}))}}return t.\u0275fac=function(e){return new(e||t)(l.Xb(u.a),l.Xb(h.a))},t.\u0275prov=l.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},f9yG:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));class i{constructor(t={}){this.position="header",this.items=[];for(const e in t)this[e]=t[e]}}},fKqa:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i=function(t){return t[t.Navigate=0]="Navigate",t[t.SetConfig=1]="SetConfig",t[t.Select=2]="Select",t[t.Deselect=3]="Deselect",t[t.SetColors=4]="SetColors",t[t.SetCustomCss=5]="SetCustomCss",t[t.SetCustomHtml=6]="SetCustomHtml",t}({})},fXoL:function(t,e,n){"use strict";n.d(e,"a",(function(){return uo})),n.d(e,"b",(function(){return Sl})),n.d(e,"c",(function(){return wl})),n.d(e,"d",(function(){return vl})),n.d(e,"e",(function(){return yl})),n.d(e,"f",(function(){return bu})),n.d(e,"g",(function(){return ou})),n.d(e,"h",(function(){return gs})),n.d(e,"i",(function(){return Nl})),n.d(e,"j",(function(){return za})),n.d(e,"k",(function(){return Al})),n.d(e,"l",(function(){return Ua})),n.d(e,"m",(function(){return Pn})),n.d(e,"n",(function(){return Kc})),n.d(e,"o",(function(){return W})),n.d(e,"p",(function(){return h})),n.d(e,"q",(function(){return f})),n.d(e,"r",(function(){return q})),n.d(e,"s",(function(){return zs})),n.d(e,"t",(function(){return cc})),n.d(e,"u",(function(){return lc})),n.d(e,"v",(function(){return Tl})),n.d(e,"w",(function(){return ct})),n.d(e,"x",(function(){return cu})),n.d(e,"y",(function(){return at})),n.d(e,"z",(function(){return eu})),n.d(e,"A",(function(){return Hl})),n.d(e,"B",(function(){return d})),n.d(e,"C",(function(){return Ol})),n.d(e,"D",(function(){return kl})),n.d(e,"E",(function(){return Jc})),n.d(e,"F",(function(){return co})),n.d(e,"G",(function(){return Wa})),n.d(e,"H",(function(){return Xa})),n.d(e,"I",(function(){return qa})),n.d(e,"J",(function(){return Ka})),n.d(e,"K",(function(){return yi})),n.d(e,"L",(function(){return m})),n.d(e,"M",(function(){return hu})),n.d(e,"N",(function(){return pc})),n.d(e,"O",(function(){return Gl})),n.d(e,"P",(function(){return vs})),n.d(e,"Q",(function(){return Ya})),n.d(e,"R",(function(){return fc})),n.d(e,"S",(function(){return gt})),n.d(e,"T",(function(){return nu})),n.d(e,"U",(function(){return Yn})),n.d(e,"V",(function(){return D})),n.d(e,"W",(function(){return it})),n.d(e,"X",(function(){return Kn})),n.d(e,"Y",(function(){return mu})),n.d(e,"Z",(function(){return Jl})),n.d(e,"ab",(function(){return El})),n.d(e,"bb",(function(){return Ts})),n.d(e,"cb",(function(){return Dc})),n.d(e,"db",(function(){return _i})),n.d(e,"eb",(function(){return ei})),n.d(e,"fb",(function(){return Hn})),n.d(e,"gb",(function(){return zn})),n.d(e,"hb",(function(){return qn})),n.d(e,"ib",(function(){return $n})),n.d(e,"jb",(function(){return Un})),n.d(e,"kb",(function(){return Xn})),n.d(e,"lb",(function(){return Ec})),n.d(e,"mb",(function(){return pu})),n.d(e,"nb",(function(){return Tc})),n.d(e,"ob",(function(){return Ac})),n.d(e,"pb",(function(){return Vn})),n.d(e,"qb",(function(){return L})),n.d(e,"rb",(function(){return bo})),n.d(e,"sb",(function(){return Lo})),n.d(e,"tb",(function(){return No})),n.d(e,"ub",(function(){return Sc})),n.d(e,"vb",(function(){return Gt})),n.d(e,"wb",(function(){return T})),n.d(e,"xb",(function(){return Bn})),n.d(e,"yb",(function(){return Ea})),n.d(e,"zb",(function(){return zt})),n.d(e,"Ab",(function(){return Ba})),n.d(e,"Bb",(function(){return Ui})),n.d(e,"Cb",(function(){return Co})),n.d(e,"Db",(function(){return sa})),n.d(e,"Eb",(function(){return xa})),n.d(e,"Fb",(function(){return ra})),n.d(e,"Gb",(function(){return ul})),n.d(e,"Hb",(function(){return wt})),n.d(e,"Ib",(function(){return At})),n.d(e,"Jb",(function(){return _})),n.d(e,"Kb",(function(){return v})),n.d(e,"Lb",(function(){return St})),n.d(e,"Mb",(function(){return It})),n.d(e,"Nb",(function(){return So})),n.d(e,"Ob",(function(){return Po})),n.d(e,"Pb",(function(){return Mo})),n.d(e,"Qb",(function(){return Fo})),n.d(e,"Rb",(function(){return jo})),n.d(e,"Sb",(function(){return Do})),n.d(e,"Tb",(function(){return Io})),n.d(e,"Ub",(function(){return Ro})),n.d(e,"Vb",(function(){return Tn})),n.d(e,"Wb",(function(){return ka})),n.d(e,"Xb",(function(){return nt})),n.d(e,"Yb",(function(){return Eo})),n.d(e,"Zb",(function(){return _l})),n.d(e,"ac",(function(){return Bo})),n.d(e,"bc",(function(){return pl})),n.d(e,"cc",(function(){return Ve})),n.d(e,"dc",(function(){return He})),n.d(e,"ec",(function(){return $o})),n.d(e,"fc",(function(){return $c})),n.d(e,"gc",(function(){return Xc})),n.d(e,"hc",(function(){return qc})),n.d(e,"ic",(function(){return Wo})),n.d(e,"jc",(function(){return qo})),n.d(e,"kc",(function(){return To})),n.d(e,"lc",(function(){return Go})),n.d(e,"mc",(function(){return Ko})),n.d(e,"nc",(function(){return Nc})),n.d(e,"oc",(function(){return Lc})),n.d(e,"pc",(function(){return Bc})),n.d(e,"qc",(function(){return Hc})),n.d(e,"rc",(function(){return ol})),n.d(e,"sc",(function(){return Oo})),n.d(e,"tc",(function(){return ln})),n.d(e,"uc",(function(){return cn})),n.d(e,"vc",(function(){return me})),n.d(e,"wc",(function(){return wi})),n.d(e,"xc",(function(){return Ci})),n.d(e,"yc",(function(){return Ct})),n.d(e,"zc",(function(){return Et})),n.d(e,"Ac",(function(){return hl})),n.d(e,"Bc",(function(){return al})),n.d(e,"Cc",(function(){return ia})),n.d(e,"Dc",(function(){return Ho})),n.d(e,"Ec",(function(){return Oa})),n.d(e,"Fc",(function(){return ko})),n.d(e,"Gc",(function(){return gl})),n.d(e,"Hc",(function(){return ga})),n.d(e,"Ic",(function(){return _a})),n.d(e,"Jc",(function(){return va})),n.d(e,"Kc",(function(){return ya})),n.d(e,"Lc",(function(){return wa})),n.d(e,"Mc",(function(){return Ca})),n.d(e,"Nc",(function(){return cl}));var i=n("XNiG"),r=n("quSY"),s=n("HDdC"),o=n("VRyK"),a=n("w1tV");function c(t){return{toString:t}.toString()}const l="__parameters__";function u(t,e,n){return c(()=>{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function r(...t){if(this instanceof r)return i.apply(this,t),this;const e=new r(...t);return n.annotation=e,n;function n(t,n,i){const r=t.hasOwnProperty(l)?t[l]:Object.defineProperty(t,l,{value:[]})[l];for(;r.length<=i;)r.push(null);return(r[i]=r[i]||[]).push(e),t}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}const h=u("Inject",t=>({token:t})),d=u("Optional"),p=u("Self"),m=u("SkipSelf");var f=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function b(t){for(let e in t)if(t[e]===b)return e;throw Error("Could not find renamed property on target object.")}function g(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function _(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function v(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function y(t){return w(t,t[x])||w(t,t[S])}function w(t,e){return e&&e.token===t?e:null}function C(t){return t&&(t.hasOwnProperty(k)||t.hasOwnProperty(E))?t[k]:null}const x=b({\u0275prov:b}),k=b({\u0275inj:b}),O=b({\u0275provFallback:b}),S=b({ngInjectableDef:b}),E=b({ngInjectorDef:b});function T(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(T).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function A(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const I=b({__forward_ref__:b});function D(t){return t.__forward_ref__=D,t.toString=function(){return T(this())},t}function P(t){return j(t)?t():t}function j(t){return"function"==typeof t&&t.hasOwnProperty(I)&&t.__forward_ref__===D}const F="undefined"!=typeof globalThis&&globalThis,M="undefined"!=typeof window&&window,R="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,N="undefined"!=typeof global&&global,L=F||N||M||R,B=b({\u0275cmp:b}),H=b({\u0275dir:b}),V=b({\u0275pipe:b}),z=b({\u0275mod:b}),U=b({\u0275loc:b}),$=b({\u0275fac:b}),X=b({__NG_ELEMENT_ID__:b});class q{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=_({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const W=new q("INJECTOR",-1),G={},K=/\n/gm,Y=b({provide:String,useValue:b});let J,Q=void 0;function Z(t){const e=Q;return Q=t,e}function tt(t){const e=J;return J=t,e}function et(t,e=f.Default){if(void 0===Q)throw new Error("inject() must be called from an injection context");return null===Q?rt(t,void 0,e):Q.get(t,e&f.Optional?null:void 0,e)}function nt(t,e=f.Default){return(J||et)(P(t),e)}const it=nt;function rt(t,e,n){const i=y(t);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&f.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${T(t)}]`)}function st(t){const e=[];for(let n=0;n<t.length;n++){const i=P(t[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let t=void 0,n=f.Default;for(let e=0;e<i.length;e++){const r=i[e];r instanceof d||"Optional"===r.ngMetadataName||r===d?n|=f.Optional:r instanceof m||"SkipSelf"===r.ngMetadataName||r===m?n|=f.SkipSelf:r instanceof p||"Self"===r.ngMetadataName||r===p?n|=f.Self:t=r instanceof h||r===h?r.token:r}e.push(nt(t,n))}else e.push(nt(i))}return e}class ot{get(t,e=G){if(e===G){const e=new Error(`NullInjectorError: No provider for ${T(t)}!`);throw e.name="NullInjectorError",e}return e}}class at{}class ct{}function lt(t,e){t.forEach(t=>Array.isArray(t)?lt(t,e):e(t))}function ut(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ht(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function dt(t,e){const n=[];for(let i=0;i<t;i++)n.push(e);return n}function pt(t,e,n){let i=ft(t,e);return i>=0?t[1|i]=n:(i=~i,function(t,e,n,i){let r=t.length;if(r==e)t.push(n,i);else if(1===r)t.push(i,t[0]),t[0]=n;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function mt(t,e){const n=ft(t,e);if(n>=0)return t[1|n]}function ft(t,e){return function(t,e,n){let i=0,r=t.length>>1;for(;r!==i;){const n=i+(r-i>>1),s=t[n<<1];if(e===s)return n<<1;s>e?r=n:i=n+1}return~(r<<1)}(t,e)}var bt=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),gt=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const _t={},vt=[];let yt=0;function wt(t){return c(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===bt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||vt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||gt.Emulated,id:"c",styles:t.styles||vt,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,r=t.features,s=t.pipes;return n.id+=yt++,n.inputs=Tt(t.inputs,e),n.outputs=Tt(t.outputs),r&&r.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(xt):null,n.pipeDefs=s?()=>("function"==typeof s?s():s).map(kt):null,n})}function Ct(t,e,n){const i=t.\u0275cmp;i.directiveDefs=()=>e.map(xt),i.pipeDefs=()=>n.map(kt)}function xt(t){return Dt(t)||function(t){return t[H]||null}(t)}function kt(t){return function(t){return t[V]||null}(t)}const Ot={};function St(t){const e={type:t.type,bootstrap:t.bootstrap||vt,declarations:t.declarations||vt,imports:t.imports||vt,exports:t.exports||vt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&c(()=>{Ot[t.id]=t.type}),e}function Et(t,e){return c(()=>{const n=jt(t,!0);n.declarations=e.declarations||vt,n.imports=e.imports||vt,n.exports=e.exports||vt})}function Tt(t,e){if(null==t)return _t;const n={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=i,e&&(e[r]=s)}return n}const At=wt;function It(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Dt(t){return t[B]||null}function Pt(t,e){return t.hasOwnProperty($)?t[$]:null}function jt(t,e){const n=t[z]||null;if(!n&&!0===e)throw new Error(`Type ${T(t)} does not have '\u0275mod' property.`);return n}function Ft(t){return Array.isArray(t)&&"object"==typeof t[1]}function Mt(t){return Array.isArray(t)&&!0===t[1]}function Rt(t){return 0!=(8&t.flags)}function Nt(t){return 2==(2&t.flags)}function Lt(t){return 1==(1&t.flags)}function Bt(t){return null!==t.template}function Ht(t){return 0!=(512&t[2])}class Vt{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function zt(){return Ut}function Ut(t){return t.type.prototype.ngOnChanges&&(t.setInput=Xt),$t}function $t(){const t=qt(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===_t)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Xt(t,e,n,i){const r=qt(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:_t,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[n],c=o[a];s[a]=new Vt(c&&c.currentValue,e,o===_t),t[i]=e}function qt(t){return t.__ngSimpleChanges__||null}zt.ngInherit=!0;let Wt=void 0;function Gt(t){Wt=t}function Kt(){return void 0!==Wt?Wt:"undefined"!=typeof document?document:void 0}function Yt(t){return!!t.listen}const Jt={createRenderer:(t,e)=>Kt()};function Qt(t){for(;Array.isArray(t);)t=t[0];return t}function Zt(t,e){return Qt(e[t+20])}function te(t,e){return Qt(e[t.index])}function ee(t,e){return t.data[e+20]}function ne(t,e){return t[e+20]}function ie(t,e){const n=e[t];return Ft(n)?n:n[0]}function re(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function se(t){return 4==(4&t[2])}function oe(t){return 128==(128&t[2])}function ae(t,e){return null===t||null==e?null:t[e]}function ce(t){t[18]=0}function le(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const ue={lFrame:je(null),bindingsEnabled:!0,checkNoChangesMode:!1};function he(){return ue.bindingsEnabled}function de(){return ue.lFrame.lView}function pe(){return ue.lFrame.tView}function me(t){ue.lFrame.contextLView=t}function fe(){return ue.lFrame.previousOrParentTNode}function be(t,e){ue.lFrame.previousOrParentTNode=t,ue.lFrame.isParent=e}function ge(){return ue.lFrame.isParent}function _e(){ue.lFrame.isParent=!1}function ve(){return ue.checkNoChangesMode}function ye(t){ue.checkNoChangesMode=t}function we(){const t=ue.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Ce(){return ue.lFrame.bindingIndex}function xe(){return ue.lFrame.bindingIndex++}function ke(t){const e=ue.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Oe(t,e){const n=ue.lFrame;n.bindingIndex=n.bindingRootIndex=t,Se(e)}function Se(t){ue.lFrame.currentDirectiveIndex=t}function Ee(t){const e=ue.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function Te(){return ue.lFrame.currentQueryIndex}function Ae(t){ue.lFrame.currentQueryIndex=t}function Ie(t,e){const n=Pe();ue.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function De(t,e){const n=Pe(),i=t[1];ue.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=i,n.contextLView=t,n.bindingIndex=i.bindingStartIndex}function Pe(){const t=ue.lFrame,e=null===t?null:t.child;return null===e?je(t):e}function je(t){const e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function Fe(){const t=ue.lFrame;return ue.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const Me=Fe;function Re(){const t=Fe();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Ne(){return ue.lFrame.selectedIndex}function Le(t){ue.lFrame.selectedIndex=t}function Be(){const t=ue.lFrame;return ee(t.tView,t.selectedIndex)}function He(){ue.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Ve(){ue.lFrame.currentNamespace=null}function ze(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n<i;n++){const e=t.data[n].type.prototype,{ngAfterContentInit:i,ngAfterContentChecked:r,ngAfterViewInit:s,ngAfterViewChecked:o,ngOnDestroy:a}=e;i&&(t.contentHooks||(t.contentHooks=[])).push(-n,i),r&&((t.contentHooks||(t.contentHooks=[])).push(n,r),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,r)),s&&(t.viewHooks||(t.viewHooks=[])).push(-n,s),o&&((t.viewHooks||(t.viewHooks=[])).push(n,o),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,o)),null!=a&&(t.destroyHooks||(t.destroyHooks=[])).push(n,a)}}function Ue(t,e,n){qe(t,e,3,n)}function $e(t,e,n,i){(3&t[2])===n&&qe(t,e,n,i)}function Xe(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function qe(t,e,n,i){const r=null!=i?i:-1;let s=0;for(let o=void 0!==i?65535&t[18]:0;o<e.length;o++)if("number"==typeof e[o+1]){if(s=e[o],null!=i&&s>=i)break}else e[o]<0&&(t[18]+=65536),(s<r||-1==r)&&(We(t,n,e,o),t[18]=(4294901760&t[18])+o+2),o++}function We(t,e,n,i){const r=n[i]<0,s=n[i+1],o=t[r?-n[i]:n[i]];r?t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,s.call(o)):s.call(o)}class Ge{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Ke(t,e,n){const i=Yt(t);let r=0;for(;r<n.length;){const s=n[r];if("number"==typeof s){if(0!==s)break;r++;const o=n[r++],a=n[r++],c=n[r++];i?t.setAttribute(e,a,c,o):e.setAttributeNS(o,a,c)}else{const o=s,a=n[++r];Je(o)?i&&t.setProperty(e,o,a):i?t.setAttribute(e,o,a):e.setAttribute(o,a),r++}}return r}function Ye(t){return 3===t||4===t||6===t}function Je(t){return 64===t.charCodeAt(0)}function Qe(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let i=0;i<e.length;i++){const r=e[i];"number"==typeof r?n=r:0===n||Ze(t,n,r,null,-1===n||2===n?e[++i]:null)}}return t}function Ze(t,e,n,i,r){let s=0,o=t.length;if(-1===e)o=-1;else for(;s<t.length;){const n=t[s++];if("number"==typeof n){if(n===e){o=-1;break}if(n>e){o=s-1;break}}}for(;s<t.length;){const e=t[s];if("number"==typeof e)break;if(e===n){if(null===i)return void(null!==r&&(t[s+1]=r));if(i===t[s+1])return void(t[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(t.splice(o,0,e),s=o+1),t.splice(s++,0,n),null!==i&&t.splice(s++,0,i),null!==r&&t.splice(s++,0,r)}function tn(t){return-1!==t}function en(t){return 32767&t}function nn(t){return t>>16}function rn(t,e){let n=nn(t),i=e;for(;n>0;)i=i[15],n--;return i}function sn(t){return"string"==typeof t?t:null==t?"":""+t}function on(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():sn(t)}const an=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(L))();function cn(t){return{name:"document",target:t.ownerDocument}}function ln(t){return{name:"body",target:t.ownerDocument.body}}function un(t){return t instanceof Function?t():t}let hn=!0;function dn(t){const e=hn;return hn=t,e}let pn=0;function mn(t,e){const n=bn(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,fn(i.data,t),fn(e,null),fn(i.blueprint,null));const r=gn(t,e),s=t.injectorIndex;if(tn(r)){const t=en(r),n=rn(r,e),i=n[1].data;for(let r=0;r<8;r++)e[s+r]=n[t+r]|i[t+r]}return e[s+8]=r,s}function fn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function bn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function gn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=e[6],i=1;for(;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,i++;return n?n.injectorIndex|i<<16:-1}function _n(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(X)&&(i=n[X]),null==i&&(i=n[X]=pn++);const r=255&i,s=1<<r,o=64&r,a=32&r,c=e.data;128&r?o?a?c[t+7]|=s:c[t+6]|=s:a?c[t+5]|=s:c[t+4]|=s:o?a?c[t+3]|=s:c[t+2]|=s:a?c[t+1]|=s:c[t]|=s}(t,e,n)}function vn(t,e,n,i=f.Default,r){if(null!==t){const r=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(X)?t[X]:void 0;return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof r){Ie(e,t);try{const t=r();if(null!=t||i&f.Optional)return t;throw new Error(`No provider for ${on(n)}!`)}finally{Me()}}else if("number"==typeof r){if(-1===r)return new Sn(t,e);let s=null,o=bn(t,e),a=-1,c=i&f.Host?e[16][6]:null;for((-1===o||i&f.SkipSelf)&&(a=-1===o?gn(t,e):e[o+8],On(i,!1)?(s=e[1],o=en(a),e=rn(a,e)):o=-1);-1!==o;){a=e[o+8];const t=e[1];if(kn(r,o,t.data)){const t=wn(o,e,n,s,i,c);if(t!==yn)return t}On(i,e[1].data[o+8]===c)&&kn(r,o,e)?(s=t,o=en(a),e=rn(a,e)):o=-1}}}if(i&f.Optional&&void 0===r&&(r=null),0==(i&(f.Self|f.Host))){const t=e[9],s=tt(void 0);try{return t?t.get(n,r,i&f.Optional):rt(n,r,i&f.Optional)}finally{tt(s)}}if(i&f.Optional)return r;throw new Error(`NodeInjector: NOT_FOUND [${on(n)}]`)}const yn={};function wn(t,e,n,i,r,s){const o=e[1],a=o.data[t+8],c=Cn(a,o,n,null==i?Nt(a)&&hn:i!=o&&3===a.type,r&f.Host&&s===a);return null!==c?xn(e,o,c,a):yn}function Cn(t,e,n,i,r){const s=t.providerIndexes,o=e.data,a=1048575&s,c=t.directiveStart,l=s>>20,u=r?a+l:t.directiveEnd;for(let h=i?a:a+l;h<u;h++){const t=o[h];if(h<c&&n===t||h>=c&&t.type===n)return h}if(r){const t=o[c];if(t&&Bt(t)&&t.type===n)return c}return null}function xn(t,e,n,i){let r=t[n];const s=e.data;if(r instanceof Ge){const o=r;if(o.resolving)throw new Error("Circular dep for "+on(s[n]));const a=dn(o.canSeeViewProviders);let c;o.resolving=!0,o.injectImpl&&(c=tt(o.injectImpl)),Ie(t,i);try{r=t[n]=o.factory(void 0,s,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const i=Ut(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s))}(n,s[n],e)}finally{o.injectImpl&&tt(c),dn(a),o.resolving=!1,Me()}}return r}function kn(t,e,n){const i=64&t,r=32&t;let s;return s=128&t?i?r?n[e+7]:n[e+6]:r?n[e+5]:n[e+4]:i?r?n[e+3]:n[e+2]:r?n[e+1]:n[e],!!(s&1<<t)}function On(t,e){return!(t&f.Self||t&f.Host&&e)}class Sn{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return vn(this._tNode,this._lView,t,void 0,e)}}function En(t){const e=t;if(j(t))return()=>{const t=En(P(e));return t?t():null};let n=Pt(e);if(null===n){const t=C(e);n=t&&t.factory}return n||null}function Tn(t){return c(()=>{const e=t.prototype.constructor,n=e[$]||En(e),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const t=r[$]||En(r);if(t&&t!==n)return t;r=Object.getPrototypeOf(r)}return t=>new t})}function An(t){return t.ngDebugContext}function In(t){return t.ngOriginalError}function Dn(t,...e){t.error(...e)}class Pn{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||Dn}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?An(t)?An(t):this._findContext(In(t)):null}_findOriginalError(t){let e=In(t);for(;e&&In(e);)e=In(e);return e}}class jn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class Fn extends jn{getTypeName(){return"HTML"}}class Mn extends jn{getTypeName(){return"Style"}}class Rn extends jn{getTypeName(){return"Script"}}class Nn extends jn{getTypeName(){return"URL"}}class Ln extends jn{getTypeName(){return"ResourceURL"}}function Bn(t){return t instanceof jn?t.changingThisBreaksApplicationSecurity:t}function Hn(t,e){const n=Vn(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function Vn(t){return t instanceof jn&&t.getTypeName()||null}function zn(t){return new Fn(t)}function Un(t){return new Mn(t)}function $n(t){return new Rn(t)}function Xn(t){return new Nn(t)}function qn(t){return new Ln(t)}let Wn=!0,Gn=!1;function Kn(){return Gn=!0,Wn}function Yn(){if(Gn)throw new Error("Cannot enable prod mode after platform setup.");Wn=!1}class Jn{getInertBodyElement(t){t="<body><remove></remove>"+t+"</body>";try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class Qn{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0<i;i--){const n=e.item(i).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const Zn=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,ti=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function ei(t){return(t=String(t)).match(Zn)||t.match(ti)?t:(Kn()&&console.warn(`WARNING: sanitizing unsafe URL value ${t} (see http://g.co/ng/security#xss)`),"unsafe:"+t)}function ni(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function ii(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const ri=ni("area,br,col,hr,img,wbr"),si=ni("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),oi=ni("rp,rt"),ai=ii(oi,si),ci=ii(ri,ii(si,ni("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")),ii(oi,ni("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")),ai),li=ni("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ui=ni("srcset"),hi=ii(li,ui,ni("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"),ni("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")),di=ni("script,style,template");class pi{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!ci.hasOwnProperty(e))return this.sanitizedSomething=!0,!di.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let r=0;r<n.length;r++){const t=n.item(r),e=t.name,s=e.toLowerCase();if(!hi.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let o=t.value;li[s]&&(o=ei(o)),ui[s]&&(i=o,o=(i=String(i)).split(",").map(t=>ei(t.trim())).join(", ")),this.buf.push(" ",e,'="',bi(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();ci.hasOwnProperty(e)&&!ri.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(bi(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 mi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,fi=/([^\#-~ |!])/g;function bi(t){return t.replace(/&/g,"&amp;").replace(mi,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(fi,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let gi;function _i(t,e){let n=null;try{gi=gi||function(t){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(t){return!1}}()?new Jn:new Qn(t)}(t);let i=e?String(e):"";n=gi.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=n.innerHTML,n=gi.getInertBodyElement(i)}while(i!==s);const o=new pi,a=o.sanitizeChildren(vi(n)||n);return Kn()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=vi(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function vi(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var yi=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function wi(t){const e=xi();return e?e.sanitize(yi.HTML,t)||"":Hn(t,"HTML")?Bn(t):_i(Kt(),sn(t))}function Ci(t){const e=xi();return e?e.sanitize(yi.URL,t)||"":Hn(t,"URL")?Bn(t):ei(sn(t))}function xi(){const t=de();return t&&t[12]}function ki(t,e){t.__ngContext__=e}function Oi(t){throw new Error("Multiple components match node with tagname "+t.tagName)}function Si(){throw new Error("Cannot mix multi providers and regular providers")}function Ei(t,e,n){let i=t.length;for(;;){const r=t.indexOf(e,n);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const n=e.length;if(r+n===i||t.charCodeAt(r+n)<=32)return r}n=r+1}}function Ti(t,e,n){let i=0;for(;i<t.length;){let r=t[i++];if(n&&"class"===r){if(r=t[i],-1!==Ei(r.toLowerCase(),e,0))return!0}else if(1===r){for(;i<t.length&&"string"==typeof(r=t[i++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function Ai(t){return 0===t.type&&"ng-template"!==t.tagName}function Ii(t,e,n){return e===(0!==t.type||n?t.tagName:"ng-template")}function Di(t,e,n){let i=4;const r=t.attrs||[],s=function(t){for(let e=0;e<t.length;e++)if(Ye(t[e]))return e;return t.length}(r);let o=!1;for(let a=0;a<e.length;a++){const c=e[a];if("number"!=typeof c){if(!o)if(4&i){if(i=2|1&i,""!==c&&!Ii(t,c,n)||""===c&&1===e.length){if(Pi(i))return!1;o=!0}}else{const l=8&i?c:e[++a];if(8&i&&null!==t.attrs){if(!Ti(t.attrs,l,n)){if(Pi(i))return!1;o=!0}continue}const u=ji(8&i?"class":c,r,Ai(t),n);if(-1===u){if(Pi(i))return!1;o=!0;continue}if(""!==l){let t;t=u>s?"":r[u+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==Ei(e,l,0)||2&i&&l!==t){if(Pi(i))return!1;o=!0}}}}else{if(!o&&!Pi(i)&&!Pi(c))return!1;if(o&&Pi(c))continue;o=!1,i=c|1&i}}return Pi(i)||o}function Pi(t){return 0==(1&t)}function ji(t,e,n,i){if(null===e)return-1;let r=0;if(i||!n){let n=!1;for(;r<e.length;){const i=e[r];if(i===t)return r;if(3===i||6===i)n=!0;else{if(1===i||2===i){let t=e[++r];for(;"string"==typeof t;)t=e[++r];continue}if(4===i)break;if(0===i){r+=4;continue}}r+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const i=t[n];if("number"==typeof i)return-1;if(i===e)return n;n++}return-1}(e,t)}function Fi(t,e,n=!1){for(let i=0;i<e.length;i++)if(Di(t,e[i],n))return!0;return!1}function Mi(t,e){t:for(let n=0;n<e.length;n++){const i=e[n];if(t.length===i.length){for(let e=0;e<t.length;e++)if(t[e]!==i[e])continue t;return!0}}return!1}function Ri(t,e){return t?":not("+e.trim()+")":e}function Ni(t){let e=t[0],n=1,i=2,r="",s=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&i){const e=t[++n];r+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""===r||Pi(o)||(e+=Ri(s,r),r=""),i=o,s=s||!Pi(i);n++}return""!==r&&(e+=Ri(s,r)),e}const Li={};function Bi(t){const e=t[3];return Mt(e)?e[3]:e}function Hi(t){return zi(t[13])}function Vi(t){return zi(t[4])}function zi(t){for(;null!==t&&!Mt(t);)t=t[4];return t}function Ui(t){$i(pe(),de(),Ne()+t,ve())}function $i(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&Ue(e,i,n)}else{const i=t.preOrderHooks;null!==i&&$e(e,i,0,n)}Le(n)}function Xi(t,e){return t<<17|e<<2}function qi(t){return t>>17&32767}function Wi(t){return 2|t}function Gi(t){return(131068&t)>>2}function Ki(t,e){return-131069&t|e<<2}function Yi(t){return 1|t}function Ji(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const r=n[i],s=n[i+1];if(-1!==s){const n=t.data[s];Ae(r),n.contentQueries(2,e[s],s)}}}function Qi(t,e,n){return Yt(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Zi(t,e,n,i,r,s,o,a,c,l){const u=e.blueprint.slice();return u[0]=r,u[2]=140|i,ce(u),u[3]=u[15]=t,u[8]=n,u[10]=o||t&&t[10],u[11]=a||t&&t[11],u[12]=c||t&&t[12]||null,u[9]=l||t&&t[9]||null,u[6]=s,u[16]=2==e.type?t[16]:u,u}function tr(t,e,n,i,r,s){const o=n+20,a=t.data[o]||function(t,e,n,i,r,s){const o=fe(),a=ge(),c=a?o:o&&o.parent,l=t.data[n]=hr(0,c&&c!==e?c:null,i,n,r,s);return null===t.firstChild&&(t.firstChild=l),o&&(!a||null!=o.child||null===l.parent&&2!==o.type?a||(o.next=l):o.child=l),l}(t,e,o,i,r,s);return be(a,!0),a}function er(t,e,n){De(e,e[6]);try{const i=t.viewQuery;null!==i&&jr(1,i,n);const r=t.template;null!==r&&rr(t,e,r,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Ji(t,e),t.staticViewQueries&&jr(2,t.viewQuery,n);const s=t.components;null!==s&&function(t,e){for(let n=0;n<e.length;n++)Tr(t,e[n])}(e,s)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),i}finally{e[2]&=-5,Re()}}function nr(t,e,n,i){const r=e[2];if(256==(256&r))return;De(e,e[6]);const s=ve();try{ce(e),ue.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&rr(t,e,n,2,i);const o=3==(3&r);if(!s)if(o){const n=t.preOrderCheckHooks;null!==n&&Ue(e,n,null)}else{const n=t.preOrderHooks;null!==n&&$e(e,n,0,null),Xe(e,0)}if(function(t){for(let e=Hi(t);null!==e;e=Vi(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],i=n[3];0==(1024&n[2])&&le(i,1),n[2]|=1024}}}(e),function(t){for(let e=Hi(t);null!==e;e=Vi(e))for(let t=10;t<e.length;t++){const n=e[t],i=n[1];oe(n)&&nr(i,n,i.template,n[8])}}(e),null!==t.contentQueries&&Ji(t,e),!s)if(o){const n=t.contentCheckHooks;null!==n&&Ue(e,n)}else{const n=t.contentHooks;null!==n&&$e(e,n,1),Xe(e,1)}!function(t,e){try{const n=t.expandoInstructions;if(null!==n){let i=t.expandoStartIndex,r=-1,s=-1;for(let t=0;t<n.length;t++){const o=n[t];"number"==typeof o?o<=0?(s=0-o,Le(s),i+=9+n[++t],r=i):i+=o:(null!==o&&(Oe(i,r),o(2,e[r])),r++)}}}finally{Le(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)Er(t,e[n])}(e,a);const c=t.viewQuery;if(null!==c&&jr(2,c,i),!s)if(o){const n=t.viewCheckHooks;null!==n&&Ue(e,n)}else{const n=t.viewHooks;null!==n&&$e(e,n,2),Xe(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),s||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,le(e[3],-1))}finally{Re()}}function ir(t,e,n,i){const r=e[10],s=!ve(),o=se(e);try{s&&!o&&r.begin&&r.begin(),o&&er(t,e,i),nr(t,e,n,i)}finally{s&&!o&&r.end&&r.end()}}function rr(t,e,n,i,r){const s=Ne();try{Le(-1),2&i&&e.length>20&&$i(t,e,0,ve()),n(i,r)}finally{Le(s)}}function sr(t,e,n){if(Rt(e)){const i=e.directiveEnd;for(let r=e.directiveStart;r<i;r++){const e=t.data[r];e.contentQueries&&e.contentQueries(1,n[r],r)}}}function or(t,e,n){he()&&(function(t,e,n,i){const r=n.directiveStart,s=n.directiveEnd;t.firstCreatePass||mn(n,e),ki(i,e);const o=n.initialInputs;for(let a=r;a<s;a++){const i=t.data[a],s=Bt(i);s&&xr(e,n,i);const c=xn(e,t,a,n);ki(c,e),null!==o&&kr(0,a-r,c,i,0,o),s&&(ie(n.index,e)[8]=c)}}(t,e,n,te(n,e)),128==(128&n.flags)&&function(t,e,n){const i=n.directiveStart,r=n.directiveEnd,s=t.expandoInstructions,o=t.firstCreatePass,a=n.index-20,c=ue.lFrame.currentDirectiveIndex;try{Le(a);for(let n=i;n<r;n++){const i=t.data[n],r=e[n];Se(n),null!==i.hostBindings||0!==i.hostVars||null!==i.hostAttrs?gr(i,r):o&&s.push(null)}}finally{Le(-1),Se(c)}}(t,e,n))}function ar(t,e,n=te){const i=e.localNames;if(null!==i){let r=e.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?n(e,t):t[o];t[r++]=a}}}function cr(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=lr(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function lr(t,e,n,i,r,s,o,a,c,l){const u=20+i,h=u+r,d=function(t,e){const n=[];for(let i=0;i<e;i++)n.push(i<t?null:Li);return n}(u,h);return d[1]={type:t,id:e,blueprint:d,template:n,queries:null,viewQuery:a,node:null,data:d.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:h,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:c,consts:l,incompleteFirstPass:!1}}function ur(t,e,n,i){const r=Mr(e);r.push(n),t.firstCreatePass&&function(t){return t.cleanup||(t.cleanup=[])}(t).push(i,r.length-1)}function hr(t,e,n,i,r,s){return{type:n,index:i,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function dr(t,e,n){for(let i in t)if(t.hasOwnProperty(i)){const r=t[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(e,r):n[i]=[e,r]}return n}function pr(t,e,n,i,r,s,o,a){const c=te(e,n);let l,u=e.inputs;var h;!a&&null!=u&&(l=u[i])?(Lr(t,n,l,i,r),Nt(e)&&function(t,e){const n=ie(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3===e.type&&(i="class"===(h=i)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h,r=null!=o?o(r,e.tagName||"",i):r,Yt(s)?s.setProperty(c,i,r):Je(i)||(c.setProperty?c.setProperty(i,r):c[i]=r))}function mr(t,e,n,i){let r=!1;if(he()){const s=function(t,e,n){const i=t.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];Fi(n,o.selectors,!1)&&(r||(r=[]),_n(mn(n,e),t,o.type),Bt(o)?(2&n.flags&&Oi(n),vr(t,n),r.unshift(o)):r.push(o))}return r}(t,e,n),o=null===i?null:{"":-1};if(null!==s){let i=0;r=!0,wr(n,t.data.length,s.length);for(let t=0;t<s.length;t++){const e=s[t];e.providersResolver&&e.providersResolver(e)}_r(t,n,s.length);let a=!1,c=!1;for(let r=0;r<s.length;r++){const l=s[r];n.mergedAttrs=Qe(n.mergedAttrs,l.hostAttrs),Cr(t,e,l),yr(t.data.length-1,l,o),null!==l.contentQueries&&(n.flags|=8),null===l.hostBindings&&null===l.hostAttrs&&0===l.hostVars||(n.flags|=128);const u=l.type.prototype;!a&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-20),a=!0),c||!u.ngOnChanges&&!u.ngDoCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-20),c=!0),fr(t,l),i+=l.hostVars}!function(t,e){const n=e.directiveEnd,i=t.data,r=e.attrs,s=[];let o=null,a=null;for(let c=e.directiveStart;c<n;c++){const t=i[c],n=t.inputs,l=null===r||Ai(e)?null:Or(n,r);s.push(l),o=dr(n,c,o),a=dr(t.outputs,c,a)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=s,e.inputs=o,e.outputs=a}(t,n),br(t,e,i)}o&&function(t,e,n){if(e){const i=t.localNames=[];for(let t=0;t<e.length;t+=2){const r=n[e[t+1]];if(null==r)throw new Error(`Export of name '${e[t+1]}' not found!`);i.push(e[t],r)}}}(n,i,o)}return n.mergedAttrs=Qe(n.mergedAttrs,n.attrs),r}function fr(t,e){const n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function br(t,e,n){for(let i=0;i<n;i++)e.push(Li),t.blueprint.push(Li),t.data.push(null)}function gr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function _r(t,e,n){const i=20-e.index,r=t.data.length-(1048575&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(i,r,n)}function vr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function yr(t,e,n){if(n){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)n[e.exportAs[i]]=t;Bt(e)&&(n[""]=t)}}function wr(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Cr(t,e,n){t.data.push(n);const i=n.factory||(n.factory=Pt(n.type)),r=new Ge(i,Bt(n),null);t.blueprint.push(r),e.push(r)}function xr(t,e,n){const i=te(e,t),r=cr(n),s=t[10],o=Ar(t,Zi(t,r,null,n.onPush?64:16,i,e,s,s.createRenderer(i,n)));t[e.index]=o}function kr(t,e,n,i,r,s){const o=s[e];if(null!==o){const t=i.setInput;for(let e=0;e<o.length;){const r=o[e++],s=o[e++],a=o[e++];null!==t?i.setInput(n,a,r,s):n[s]=a}}}function Or(t,e){let n=null,i=0;for(;i<e.length;){const r=e[i];if(0!==r)if(5!==r){if("number"==typeof r)break;t.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,t[r],e[i+1])),i+=2}else i+=2;else i+=4}return n}function Sr(t,e,n,i){return new Array(t,!0,!1,e,null,0,i,n,null,null)}function Er(t,e){const n=ie(e,t);if(oe(n)){const t=n[1];80&n[2]?nr(t,n,t.template,n[8]):n[5]>0&&function t(e){for(let i=Hi(e);null!==i;i=Vi(i))for(let e=10;e<i.length;e++){const n=i[e];if(1024&n[2]){const t=n[1];nr(t,n,t.template,n[8])}else n[5]>0&&t(n)}const n=e[1].components;if(null!==n)for(let i=0;i<n.length;i++){const r=ie(n[i],e);oe(r)&&r[5]>0&&t(r)}}(n)}}function Tr(t,e){const n=ie(e,t),i=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(i,n),er(i,n,n[8])}function Ar(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function Ir(t){for(;t;){t[2]|=64;const e=Bi(t);if(Ht(t)&&!e)return t;t=e}return null}function Dr(t,e,n){const i=e[10];i.begin&&i.begin();try{nr(t,e,t.template,n)}catch(r){throw Nr(e,r),r}finally{i.end&&i.end()}}function Pr(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],i=re(n),r=i[1];ir(r,i,r.template,n)}}(t[8])}function jr(t,e,n){Ae(0),e(t,n)}const Fr=(()=>Promise.resolve(null))();function Mr(t){return t[7]||(t[7]=[])}function Rr(t,e,n){return(null===t||Bt(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}function Nr(t,e){const n=t[9],i=n?n.get(Pn,null):null;i&&i.handleError(e)}function Lr(t,e,n,i,r){for(let s=0;s<n.length;){const o=n[s++],a=n[s++],c=e[o],l=t.data[o];null!==l.setInput?l.setInput(c,r,i,a):c[a]=r}}function Br(t,e,n){const i=Zt(e,t),r=t[11];Yt(r)?r.setValue(i,n):i.textContent=n}function Hr(t,e){const n=e[3];return-1===t.index?Mt(n)?n:null:n}function Vr(t,e){const n=Hr(t,e);return n?Zr(e[11],n[7]):null}function zr(t,e,n,i,r){if(null!=i){let s,o=!1;Mt(i)?s=i:Ft(i)&&(o=!0,i=i[0]);const a=Qt(i);0===t&&null!==n?null==r?Jr(e,n,a):Yr(e,n,a,r||null):1===t&&null!==n?Yr(e,n,a,r||null):2===t?function(t,e,n){const i=Zr(t,e);i&&function(t,e,n,i){Yt(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=s&&function(t,e,n,i,r){const s=n[7];s!==Qt(n)&&zr(e,t,i,s,r);for(let o=10;o<n.length;o++){const r=n[o];rs(r[1],r,t,e,i,s)}}(e,t,s,n,r)}}function Ur(t,e,n,i){const r=Vr(t.node,e);r&&rs(t,e,e[11],n?1:2,r,i)}function $r(t,e){const n=t[9],i=n.indexOf(e);1024&e[2]&&le(e[3],-1),n.splice(i,1)}function Xr(t,e){if(t.length<=10)return;const n=10+e,i=t[n];if(i){const r=i[17];null!==r&&r!==t&&$r(r,i),e>0&&(t[n-1][4]=i[4]);const s=ht(t,10+e);Ur(i[1],i,!1,null);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function qr(t,e){if(!(256&e[2])){const n=e[11];Yt(n)&&n.destroyNode&&rs(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Gr(t[1],t);for(;e;){let n=null;if(Ft(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Ft(e)&&Gr(e[1],e),e=Wr(e,t);null===e&&(e=t),Ft(e)&&Gr(e[1],e),n=e&&e[4]}e=n}}(e)}}function Wr(t,e){let n;return Ft(t)&&(n=t[6])&&2===n.type?Hr(n,t):t[3]===e?null:t[3]}function Gr(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i<n.length;i+=2){const t=e[n[i]];if(!(t instanceof Ge)){const e=n[i+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2)e[n+1].call(t[e[n]]);else e.call(t)}}}(t,e),function(t,e){const n=t.cleanup;if(null!==n){const t=e[7];for(let i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){const r=n[i+1],s="function"==typeof r?r(e):Qt(e[r]),o=t[n[i+2]],a=n[i+3];"boolean"==typeof a?s.removeEventListener(n[i],o,a):a>=0?t[a]():t[-a].unsubscribe(),i+=2}else n[i].call(t[n[i+1]]);e[7]=null}}(t,e);const n=e[6];n&&3===n.type&&Yt(e[11])&&e[11].destroy();const i=e[17];if(null!==i&&Mt(e[3])){i!==e[3]&&$r(i,e);const n=e[19];null!==n&&n.detachView(t)}}}function Kr(t,e,n){let i=e.parent;for(;null!=i&&(4===i.type||5===i.type);)i=(e=i).parent;if(null==i){const t=n[6];return 2===t.type?Vr(t,n):n[0]}if(e&&5===e.type&&4&e.flags)return te(e,n).parentNode;if(2&i.flags){const e=t.data,n=e[e[i.index].directiveStart].encapsulation;if(n!==gt.ShadowDom&&n!==gt.Native)return null}return te(i,n)}function Yr(t,e,n,i){Yt(t)?t.insertBefore(e,n,i):e.insertBefore(n,i,!0)}function Jr(t,e,n){Yt(t)?t.appendChild(e,n):e.appendChild(n)}function Qr(t,e,n,i){null!==i?Yr(t,e,n,i):Jr(t,e,n)}function Zr(t,e){return Yt(t)?t.parentNode(e):e.parentNode}function ts(t,e){if(2===t.type){const n=Hr(t,e);return null===n?null:ns(n.indexOf(e,10)-10,n)}return 4===t.type||5===t.type?te(t,e):null}function es(t,e,n,i){const r=Kr(t,i,e);if(null!=r){const t=e[11],s=ts(i.parent||e[6],e);if(Array.isArray(n))for(let e=0;e<n.length;e++)Qr(t,r,n[e],s);else Qr(t,r,n,s)}}function ns(t,e){const n=10+t+1;if(n<e.length){const t=e[n],i=t[1].firstChild;if(null!==i)return function t(e,n){if(null!==n){const i=n.type;if(3===i)return te(n,e);if(0===i)return ns(-1,e[n.index]);if(4===i||5===i){const i=n.child;if(null!==i)return t(e,i);{const t=e[n.index];return Mt(t)?ns(-1,t):Qt(t)}}{const i=e[16],r=i[6],s=Bi(i),o=r.projection[n.projection];return null!=o?t(s,o):t(e,n.next)}}return null}(t,i)}return e[7]}function is(t,e,n,i,r,s,o){for(;null!=n;){const a=i[n.index],c=n.type;o&&0===e&&(a&&ki(Qt(a),i),n.flags|=4),64!=(64&n.flags)&&(4===c||5===c?(is(t,e,n.child,i,r,s,!1),zr(e,t,r,a,s)):1===c?ss(t,e,i,n,r,s):zr(e,t,r,a,s)),n=o?n.projectionNext:n.next}}function rs(t,e,n,i,r,s){is(n,i,t.node.child,e,r,s,!1)}function ss(t,e,n,i,r,s){const o=n[16],a=o[6].projection[i.projection];if(Array.isArray(a))for(let c=0;c<a.length;c++)zr(e,t,r,a[c],s);else is(t,e,a,o[3],r,s,!0)}function os(t,e,n){Yt(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function as(t,e,n){Yt(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}class cs{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const t=this._lView;return null==t[0]?function t(e,n,i,r,s=!1){for(;null!==i;){const o=n[i.index];if(null!==o&&r.push(Qt(o)),Mt(o))for(let e=10;e<o.length;e++){const n=o[e],i=n[1].firstChild;null!==i&&t(n[1],n,i,r)}const a=i.type;if(4===a||5===a)t(e,n,i.child,r);else if(1===a){const e=n[16],s=e[6].projection[i.projection];if(Array.isArray(s))r.push(...s);else{const n=Bi(e);t(n[1],n,s,r,!0)}}i=s?i.projectionNext:i.next}return r}(t[1],t,t[6].child,[]):[]}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const t=this._viewContainerRef.indexOf(this);t>-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}qr(this._lView[1],this._lView)}onDestroy(t){ur(this._lView[1],this._lView,null,t)}markForCheck(){Ir(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Dr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){ye(!0);try{Dr(t,e,n)}finally{ye(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,rs(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class ls extends cs{constructor(t){super(t),this._view=t}detectChanges(){Pr(this._view)}checkNoChanges(){!function(t){ye(!0);try{Pr(t)}finally{ye(!1)}}(this._view)}get context(){return null}}let us,hs,ds;function ps(t,e,n){return us||(us=class extends t{}),new us(te(e,n))}function ms(t,e,n,i){return hs||(hs=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Zi(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];const i=this._declarationView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),er(e,n,t),new cs(n)}}),0===n.type?new hs(i,n,ps(e,n,i)):null}function fs(t,e,n,i){let r;ds||(ds=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return ps(e,this._hostTNode,this._hostView)}get injector(){return new Sn(this._hostTNode,this._hostView)}get parentInjector(){const t=gn(this._hostTNode,this._hostView),e=rn(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){const t=n.parent.injectorIndex;let e=n.parent;for(;null!=e.parent&&t==e.parent.injectorIndex;)e=e.parent;return e}let i=nn(t),r=e,s=e[6];for(;i>1;)r=r[15],s=r[6],i--;return s}(t,this._hostView,this._hostTNode);return tn(t)&&null!=n?new Sn(n,e):new Sn(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,r){const s=n||this.parentInjector;if(!r&&null==t.ngModule&&s){const t=s.get(at,null);t&&(r=t)}const o=t.create(s,i,void 0,r);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Mt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new ds(e,e[6],e[3]);i.detach(i.indexOf(t))}}const r=this._adjustIndex(e);return function(t,e,n,i){const r=10+i,s=n.length;i>0&&(n[r-1][4]=e),i<s-10?(e[4]=n[r],ut(n,10+i,e)):(n.push(e),e[4]=null),e[3]=n;const o=e[17];null!==o&&n!==o&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(i,n,this._lContainer,r),Ur(i,n,!0,ns(r,this._lContainer)),t.attachToViewContainerRef(this),ut(this._lContainer[8],r,t),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)}indexOf(t){const e=this._lContainer[8];return null!==e?e.indexOf(t):-1}remove(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1);!function(t,e){const n=Xr(t,e);n&&qr(n[1],n)}(this._lContainer,e),ht(this._lContainer[8],e)}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=Xr(this._lContainer,e);return n&&null!=ht(this._lContainer[8],e)?new cs(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const s=i[n.index];if(Mt(s))r=s;else{let t;if(4===n.type)t=Qt(s);else if(t=i[11].createComment(""),Ht(i)){const e=i[11],r=te(n,i);Yr(e,Zr(e,r),t,function(t,e){return Yt(t)?t.nextSibling(e):e.nextSibling}(e,r))}else es(i[1],i,t,n);i[n.index]=r=Sr(s,i,t,n),Ar(i,r)}return new ds(r,n,i)}function bs(t=!1){return function(t,e,n){if(!n&&Nt(t)){const n=ie(t.index,e);return new cs(n,n)}return 3===t.type||0===t.type||4===t.type||5===t.type?new cs(e[16],e):null}(fe(),de(),t)}let gs=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>_s(),t})();const _s=bs,vs=Function;function ys(t){return"function"==typeof t}const ws=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,Cs=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,xs=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,ks=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s*super\(\.\.\.arguments\)/;class Os{constructor(t){this._reflect=t||L.Reflect}isReflectionEnabled(){return!0}factory(t){return(...e)=>new t(...e)}_zipTypesAndAnnotations(t,e){let n;n=dt(void 0===t?e.length:t.length);for(let i=0;i<n.length;i++)n[i]=void 0===t?[]:t[i]&&t[i]!=Object?[t[i]]:[],e&&null!=e[i]&&(n[i]=n[i].concat(e[i]));return n}_ownParameters(t,e){if(n=t.toString(),ws.test(n)||ks.test(n)||Cs.test(n)&&!xs.test(n))return null;var n;if(t.parameters&&t.parameters!==e.parameters)return t.parameters;const i=t.ctorParameters;if(i&&i!==e.ctorParameters){const t="function"==typeof i?i():i,e=t.map(t=>t&&t.type),n=t.map(t=>t&&Ss(t.decorators));return this._zipTypesAndAnnotations(e,n)}const r=t.hasOwnProperty(l)&&t[l],s=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return s||r?this._zipTypesAndAnnotations(s,r):dt(t.length)}parameters(t){if(!ys(t))return[];const e=Es(t);let n=this._ownParameters(t,e);return n||e===Object||(n=this.parameters(e)),n||[]}_ownAnnotations(t,e){if(t.annotations&&t.annotations!==e.annotations){let e=t.annotations;return"function"==typeof e&&e.annotations&&(e=e.annotations),e}return t.decorators&&t.decorators!==e.decorators?Ss(t.decorators):t.hasOwnProperty("__annotations__")?t.__annotations__:null}annotations(t){if(!ys(t))return[];const e=Es(t),n=this._ownAnnotations(t,e)||[];return(e!==Object?this.annotations(e):[]).concat(n)}_ownPropMetadata(t,e){if(t.propMetadata&&t.propMetadata!==e.propMetadata){let e=t.propMetadata;return"function"==typeof e&&e.propMetadata&&(e=e.propMetadata),e}if(t.propDecorators&&t.propDecorators!==e.propDecorators){const e=t.propDecorators,n={};return Object.keys(e).forEach(t=>{n[t]=Ss(e[t])}),n}return t.hasOwnProperty("__prop__metadata__")?t.__prop__metadata__:null}propMetadata(t){if(!ys(t))return{};const e=Es(t),n={};if(e!==Object){const t=this.propMetadata(e);Object.keys(t).forEach(e=>{n[e]=t[e]})}const i=this._ownPropMetadata(t,e);return i&&Object.keys(i).forEach(t=>{const e=[];n.hasOwnProperty(t)&&e.push(...n[t]),e.push(...i[t]),n[t]=e}),n}ownPropMetadata(t){return ys(t)&&this._ownPropMetadata(t,Es(t))||{}}hasLifecycleHook(t,e){return t instanceof vs&&e in t.prototype}guards(t){return{}}getter(t){return new Function("o","return o."+t+";")}setter(t){return new Function("o","v","return o."+t+" = v;")}method(t){return new Function("o","args",`if (!o.${t}) throw new Error('"${t}" is undefined');\n        return o.${t}.apply(o, args);`)}importUri(t){return"object"==typeof t&&t.filePath?t.filePath:"./"+T(t)}resourceUri(t){return"./"+T(t)}resolveIdentifier(t,e,n,i){return i}resolveEnum(t,e){return t[e]}}function Ss(t){return t?t.map(t=>new(0,t.type.annotationCls)(...t.args?t.args:[])):[]}function Es(t){const e=t.prototype?Object.getPrototypeOf(t.prototype):null;return(e?e.constructor:null)||Object}const Ts=new q("Set Injector scope."),As={},Is={},Ds=[];let Ps=void 0;function js(){return void 0===Ps&&(Ps=new ot),Ps}function Fs(t,e=null,n=null,i){return new Ms(t,n,e||js(),i)}class Ms{constructor(t,e,n,i=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];e&&lt(e,n=>this.processProvider(n,t,e)),lt([t],t=>this.processInjectorType(t,[],r)),this.records.set(W,Ls(void 0,this));const s=this.records.get(Ts);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof t?null:T(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=G,n=f.Default){this.assertNotDestroyed();const i=Z(this);try{if(!(n&f.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(r=t)||"object"==typeof r&&r instanceof q)&&y(t);e=n&&this.injectableDefInScope(n)?Ls(Rs(t),As):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&f.Self?js():this.parent).get(t,e=n&f.Optional&&e===G?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(T(t)),i)throw s;return function(t,e,n,i){const r=t.ngTempTokenPath;throw e.__source&&r.unshift(e.__source),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let r=T(e);if(Array.isArray(e))r=e.map(T).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):T(i)))}r=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${t.replace(K,"\n  ")}`}("\n"+t.message,r,n,i),t.ngTokenPath=r,t.ngTempTokenPath=null,t}(s,t,"R3InjectorError",this.source)}throw s}finally{Z(i)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(T(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=P(t)))return!1;let i=C(t);const r=null==i&&t.ngModule||void 0,s=void 0===r?t:r,o=-1!==n.indexOf(s);if(void 0!==r&&(i=C(r)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(s);try{lt(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:i}=t[e];lt(i,t=>this.processProvider(t,n,i||Ds))}}this.injectorDefTypes.add(s),this.records.set(s,Ls(i.factory,As));const a=i.providers;if(null!=a&&!o){const e=t;lt(a,t=>this.processProvider(t,e,a))}return void 0!==r&&void 0!==t.providers}processProvider(t,e,n){let i=Hs(t=P(t))?t:P(t&&t.provide);const r=function(t,e,n){return Bs(t)?Ls(void 0,t.useValue):Ls(Ns(t,e,n),As)}(t,e,n);if(Hs(t)||!0!==t.multi){const t=this.records.get(i);t&&void 0!==t.multi&&Si()}else{let e=this.records.get(i);e?void 0===e.multi&&Si():(e=Ls(void 0,As,!0),e.factory=()=>st(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,r)}hydrate(t,e){var n;return e.value===Is?function(t){throw new Error("Cannot instantiate cyclic dependency! "+t)}(T(t)):e.value===As&&(e.value=Is,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function Rs(t){const e=y(t),n=null!==e?e.factory:Pt(t);if(null!==n)return n;const i=C(t);if(null!==i)return i.factory;if(t instanceof q)throw new Error(`Token ${T(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=dt(e,"?");throw new Error(`Can't resolve all parameters for ${T(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[x]||t[S]||t[O]&&t[O]());if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" 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 "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function Ns(t,e,n){let i=void 0;if(Hs(t)){const e=P(t);return Pt(e)||Rs(e)}if(Bs(t))i=()=>P(t.useValue);else if((r=t)&&r.useFactory)i=()=>t.useFactory(...st(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>nt(P(t.useExisting));else{const r=P(t&&(t.useClass||t.provide));if(r||function(t,e,n){let i="";throw t&&e&&(i=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${T(t)}'`+i)}(e,n,t),!function(t){return!!t.deps}(t))return Pt(r)||Rs(r);i=()=>new r(...st(t.deps))}var r;return i}function Ls(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Bs(t){return null!==t&&"object"==typeof t&&Y in t}function Hs(t){return"function"==typeof t}const Vs=function(t,e,n){return function(t,e=null,n=null,i){const r=Fs(t,e,n,i);return r._resolveInjectorDefTypes(),r}({name:n},e,t,n)};let zs=(()=>{class t{static create(t,e){return Array.isArray(t)?Vs(t,e,""):Vs(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=G,t.NULL=new ot,t.\u0275prov=_({token:t,providedIn:"any",factory:()=>nt(W)}),t.__NG_ELEMENT_ID__=-1,t})();function Us(t){return t.length>1?" ("+function(t){const e=[];for(let n=0;n<t.length;++n){if(e.indexOf(t[n])>-1)return e.push(t[n]),e;e.push(t[n])}return e}(t.slice().reverse()).map(t=>T(t.token)).join(" -> ")+")":""}function $s(t,e,n,i){const r=[e],s=n(r),o=i?function(t,e){const n=`${t} caused by: ${e instanceof Error?e.message:e}`,i=Error(n);return i.ngOriginalError=e,i}(s,i):Error(s);return o.addKey=Xs,o.keys=r,o.injectors=[t],o.constructResolvingMessage=n,o.ngOriginalError=i,o}function Xs(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)}function qs(t,e){const n=[];for(let i=0,r=e.length;i<r;i++){const t=e[i];n.push(t&&0!=t.length?t.map(T).join(" "):"?")}return Error("Cannot resolve all parameters for '"+T(t)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+T(t)+"' is decorated with Injectable.")}class Ws{constructor(t,e){if(this.token=t,this.id=e,!t)throw new Error("Token must be defined!");this.displayName=T(this.token)}static get(t){return Ks.get(P(t))}static get numberOfKeys(){return Ks.numberOfKeys}}class Gs{constructor(){this._allKeys=new Map}get(t){if(t instanceof Ws)return t;if(this._allKeys.has(t))return this._allKeys.get(t);const e=new Ws(t,Ws.numberOfKeys);return this._allKeys.set(t,e),e}get numberOfKeys(){return this._allKeys.size}}const Ks=new Gs;class Ys{constructor(t){this.reflectionCapabilities=t}updateCapabilities(t){this.reflectionCapabilities=t}factory(t){return this.reflectionCapabilities.factory(t)}parameters(t){return this.reflectionCapabilities.parameters(t)}annotations(t){return this.reflectionCapabilities.annotations(t)}propMetadata(t){return this.reflectionCapabilities.propMetadata(t)}hasLifecycleHook(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)}getter(t){return this.reflectionCapabilities.getter(t)}setter(t){return this.reflectionCapabilities.setter(t)}method(t){return this.reflectionCapabilities.method(t)}importUri(t){return this.reflectionCapabilities.importUri(t)}resourceUri(t){return this.reflectionCapabilities.resourceUri(t)}resolveIdentifier(t,e,n,i){return this.reflectionCapabilities.resolveIdentifier(t,e,n,i)}resolveEnum(t,e){return this.reflectionCapabilities.resolveEnum(t,e)}}const Js=new Ys(new Os);class Qs{constructor(t,e,n){this.key=t,this.optional=e,this.visibility=n}static fromKey(t){return new Qs(t,!1,null)}}const Zs=[];class to{constructor(t,e,n){this.key=t,this.resolvedFactories=e,this.multiProvider=n,this.resolvedFactory=this.resolvedFactories[0]}}class eo{constructor(t,e){this.factory=t,this.dependencies=e}}function no(t){let e,n;if(t.useClass){const i=P(t.useClass);e=Js.factory(i),n=ro(i)}else t.useExisting?(e=t=>t,n=[Qs.fromKey(Ws.get(t.useExisting))]):t.useFactory?(e=t.useFactory,n=function(t,e){if(e){const n=e.map(t=>[t]);return e.map(e=>so(t,e,n))}return ro(t)}(t.useFactory,t.deps)):(e=()=>t.useValue,n=Zs);return new eo(e,n)}function io(t){return new to(Ws.get(t.provide),[no(t)],t.multi||!1)}function ro(t){const e=Js.parameters(t);if(!e)return[];if(e.some(t=>null==t))throw qs(t,e);return e.map(n=>so(t,n,e))}function so(t,e,n){let i=null,r=!1;if(!Array.isArray(e))return oo(e instanceof h?e.token:e,r,null);let s=null;for(let o=0;o<e.length;++o){const t=e[o];t instanceof vs?i=t:t instanceof h?i=t.token:t instanceof d?r=!0:t instanceof p||t instanceof m?s=t:t instanceof q&&(i=t)}if(i=P(i),null!=i)return oo(i,r,s);throw qs(t,n)}function oo(t,e,n){return new Qs(Ws.get(t),e,n)}const ao={};class co{static resolve(t){return function(t){const e=function(t,e){for(let n=0;n<t.length;n++){const i=t[n],r=e.get(i.key.id);if(r){if(i.multiProvider!==r.multiProvider)throw Error(`Cannot mix multi providers and regular providers, got: ${r} ${i}`);if(i.multiProvider)for(let t=0;t<i.resolvedFactories.length;t++)r.resolvedFactories.push(i.resolvedFactories[t]);else e.set(i.key.id,i)}else{let t;t=i.multiProvider?new to(i.key,i.resolvedFactories.slice(),i.multiProvider):i,e.set(i.key.id,t)}}return e}(function t(e,n){return e.forEach(e=>{if(e instanceof vs)n.push({provide:e,useClass:e});else if(e&&"object"==typeof e&&void 0!==e.provide)n.push(e);else{if(!Array.isArray(e))throw Error("Invalid provider - only instances of Provider and Type are allowed, got: "+e);t(e,n)}}),n}(t,[]).map(io),new Map);return Array.from(e.values())}(t)}static resolveAndCreate(t,e){const n=co.resolve(t);return co.fromResolvedProviders(n,e)}static fromResolvedProviders(t,e){return new lo(t,e)}}let lo=(()=>{class t{constructor(t,e){this._constructionCounter=0,this._providers=t,this.parent=e||null;const n=t.length;this.keyIds=[],this.objs=[];for(let i=0;i<n;i++)this.keyIds[i]=t[i].key.id,this.objs[i]=ao}get(t,e=G){return this._getByKey(Ws.get(t),null,e)}resolveAndCreateChild(t){const e=co.resolve(t);return this.createChildFromResolved(e)}createChildFromResolved(e){const n=new t(e);return n.parent=this,n}resolveAndInstantiate(t){return this.instantiateResolved(co.resolve([t])[0])}instantiateResolved(t){return this._instantiateProvider(t)}getProviderAtIndex(t){if(t<0||t>=this._providers.length)throw function(t){return Error(`Index ${t} is out-of-bounds.`)}(t);return this._providers[t]}_new(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw $s(this,t.key,(function(t){return"Cannot instantiate cyclic dependency!"+Us(t)}));return this._instantiateProvider(t)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(t){if(t.multiProvider){const e=[];for(let n=0;n<t.resolvedFactories.length;++n)e[n]=this._instantiate(t,t.resolvedFactories[n]);return e}return this._instantiate(t,t.resolvedFactories[0])}_instantiate(t,e){const n=e.factory;let i,r;try{i=e.dependencies.map(t=>this._getByReflectiveDependency(t))}catch(o){throw o.addKey&&o.addKey(this,t.key),o}try{r=n(...i)}catch(o){throw $s(this,t.key,(function(t){const e=T(t[0].token);return`${s.message}: Error during instantiation of ${e}!${Us(t)}.`}),s=o)}var s;return r}_getByReflectiveDependency(t){return this._getByKey(t.key,t.visibility,t.optional?null:G)}_getByKey(e,n,i){return e===t.INJECTOR_KEY?this:n instanceof p?this._getByKeySelf(e,i):this._getByKeyDefault(e,i,n)}_getObjByKeyId(t){for(let e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===ao&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return ao}_throwOrNull(t,e){if(e!==G)return e;throw function(t,e){return $s(t,e,(function(t){return`No provider for ${T(t[0].token)}!${Us(t)}`}))}(this,t)}_getByKeySelf(t,e){const n=this._getObjByKeyId(t.id);return n!==ao?n:this._throwOrNull(t,e)}_getByKeyDefault(e,n,i){let r;for(r=i instanceof m?this.parent:this;r instanceof t;){const t=r,n=t._getObjByKeyId(e.id);if(n!==ao)return n;r=t.parent}return null!==r?r.get(e.token,n):this._throwOrNull(e,n)}get displayName(){return`ReflectiveInjector(providers: [${function(t,e){const n=[];for(let i=0;i<t._providers.length;++i)n[i]=' "'+t.getProviderAtIndex(i).key.displayName+'" ';return n}(this).join(", ")}])`}toString(){return this.displayName}}return t.INJECTOR_KEY=Ws.get(zs),t})();const uo=new q("AnalyzeForEntryComponents");function ho(t,e,n){let i=n?t.styles:null,r=n?t.classes:null,s=0;if(null!==e)for(let o=0;o<e.length;o++){const t=e[o];"number"==typeof t?s=t:1==s?r=A(r,t):2==s&&(i=A(i,t+": "+e[++o]+";"))}n?t.styles=i:t.stylesWithoutHost=i,n?t.classes=r:t.classesWithoutHost=r}let po=null;function mo(){if(!po){const t=L.Symbol;if(t&&t.iterator)po=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(po=n)}}}return po}class fo{constructor(t){this.wrapped=t}static wrap(t){return new fo(t)}static unwrap(t){return fo.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof fo}}function bo(t){return!!go(t)&&(Array.isArray(t)||!(t instanceof Map)&&mo()in t)}function go(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function _o(t,e,n){return t[e]=n}function vo(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function yo(t,e,n,i){const r=vo(t,e,n);return vo(t,e+1,i)||r}function wo(t,e,n,i,r){const s=yo(t,e,n,i);return vo(t,e+2,r)||s}function Co(t,e,n,i){const r=de();return vo(r,xe(),e)&&(pe(),function(t,e,n,i,r,s){const o=te(t,e),a=e[11];if(null==i)Yt(a)?a.removeAttribute(o,n,s):o.removeAttribute(n);else{const e=null==r?sn(i):r(i,t.tagName||"",n);Yt(a)?a.setAttribute(o,n,e,s):s?o.setAttributeNS(s,n,e):o.setAttribute(n,e)}}(Be(),r,t,e,n,i)),Co}function xo(t,e,n,i){return vo(t,xe(),n)?e+sn(n)+i:Li}function ko(t,e,n,i,r,s,o,a){const c=de(),l=pe(),u=t+20,h=l.firstCreatePass?function(t,e,n,i,r,s,o,a,c){const l=e.consts,u=tr(e,n[6],t,0,o||null,ae(l,a));mr(e,n,u,ae(l,c)),ze(e,u);const h=u.tViews=lr(2,-1,i,r,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,l),d=hr(0,null,2,-1,null,null);return d.injectorIndex=u.injectorIndex,h.node=d,null!==e.queries&&(e.queries.template(e,u),h.queries=e.queries.embeddedTView(u)),u}(t,l,c,e,n,i,r,s,o):l.data[u];be(h,!1);const d=c[11].createComment("");es(l,c,d,h),ki(d,c),Ar(c,c[u]=Sr(d,c,d,h)),Lt(h)&&or(l,c,h),null!=o&&ar(c,h,a)}function Oo(t){return ne(ue.lFrame.contextLView,t)}function So(t,e=f.Default){const n=de();return null==n?nt(t,e):vn(fe(),n,P(t),e)}function Eo(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let i=0;for(;i<t;){const r=n[i];if(Ye(r))break;if(0===r)i+=2;else if("number"==typeof r)for(i++;i<t&&"string"==typeof n[i];)i++;else{if(r===e)return n[i+1];i+=2}}}return null}(fe(),t)}function To(t,e,n){const i=de();return vo(i,xe(),e)&&pr(pe(),Be(),i,t,e,i[11],n,!1),To}function Ao(t,e,n,i,r){const s=r?"class":"style";Lr(t,n,e.inputs[s],s,i)}function Io(t,e,n,i){const r=de(),s=pe(),o=20+t,a=r[11],c=r[o]=Qi(e,a,ue.lFrame.currentNamespace),l=s.firstCreatePass?function(t,e,n,i,r,s,o){const a=e.consts,c=ae(a,s),l=tr(e,n[6],t,3,r,c);return mr(e,n,l,ae(a,o)),null!==l.attrs&&ho(l,l.attrs,!1),null!==l.mergedAttrs&&ho(l,l.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,l),l}(t,s,r,0,e,n,i):s.data[o];be(l,!0);const u=l.mergedAttrs;null!==u&&Ke(a,c,u);const h=l.classes;null!==h&&as(a,c,h);const d=l.styles;null!==d&&os(a,c,d),es(s,r,c,l),0===ue.lFrame.elementDepthCount&&ki(c,r),ue.lFrame.elementDepthCount++,Lt(l)&&(or(s,r,l),sr(s,l,r)),null!==i&&ar(r,l)}function Do(){let t=fe();ge()?_e():(t=t.parent,be(t,!1));const e=t;ue.lFrame.elementDepthCount--;const n=pe();n.firstCreatePass&&(ze(n,t),Rt(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&Ao(n,e,de(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&Ao(n,e,de(),e.stylesWithoutHost,!1)}function Po(t,e,n,i){Io(t,e,n,i),Do()}function jo(t,e,n){const i=de(),r=pe(),s=t+20,o=r.firstCreatePass?function(t,e,n,i,r){const s=e.consts,o=ae(s,i),a=tr(e,n[6],t,4,"ng-container",o);return null!==o&&ho(a,o,!0),mr(e,n,a,ae(s,r)),null!==e.queries&&e.queries.elementStart(e,a),a}(t,r,i,e,n):r.data[s];be(o,!0);const a=i[s]=i[11].createComment("");es(r,i,a,o),ki(a,i),Lt(o)&&(or(r,i,o),sr(r,o,i)),null!=n&&ar(i,o)}function Fo(){let t=fe();const e=pe();ge()?_e():(t=t.parent,be(t,!1)),e.firstCreatePass&&(ze(e,t),Rt(t)&&e.queries.elementEnd(t))}function Mo(t,e,n){jo(t,e,n),Fo()}function Ro(){return de()}function No(t){return!!t&&"function"==typeof t.then}function Lo(t){return!!t&&"function"==typeof t.subscribe}function Bo(t,e,n=!1,i){const r=de(),s=pe(),o=fe();return Vo(s,r,r[11],o,t,e,n,i),Bo}function Ho(t,e,n=!1,i){const r=fe(),s=de(),o=pe();return Vo(o,s,Rr(Ee(o.data),r,s),r,t,e,n,i),Ho}function Vo(t,e,n,i,r,s,o=!1,a){const c=Lt(i),l=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),u=Mr(e);let h=!0;if(3===i.type){const d=te(i,e),p=a?a(d):_t,m=p.target||d,f=u.length,b=a?t=>a(Qt(t[i.index])).target:i.index;if(Yt(n)){let o=null;if(!a&&c&&(o=function(t,e,n,i){const r=t.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const t=r[s];if(t===n&&r[s+1]===i){const t=e[7],n=r[s+2];return t.length>n?t[n]:null}"string"==typeof t&&(s+=2)}return null}(t,e,r,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=s,o.__ngLastListenerFn__=s,h=!1;else{s=Uo(i,e,s,!1);const t=n.listen(p.name||m,r,s);u.push(s,t),l&&l.push(r,b,f,f+1)}}else s=Uo(i,e,s,!0),m.addEventListener(r,s,o),u.push(s),l&&l.push(r,b,f,o)}const d=i.outputs;let p;if(h&&null!==d&&(p=d[r])){const t=p.length;if(t)for(let n=0;n<t;n+=2){const t=e[p[n]][p[n+1]].subscribe(s),o=u.length;u.push(s,t),l&&l.push(r,i.index,o,-(o+1))}}}function zo(t,e,n){try{return!1!==e(n)}catch(i){return Nr(t,i),!1}}function Uo(t,e,n,i){return function r(s){if(s===Function)return n;const o=2&t.flags?ie(t.index,e):e;0==(32&e[2])&&Ir(o);let a=zo(e,n,s),c=r.__ngNextListenerFn__;for(;c;)a=zo(e,c,s)&&a,c=c.__ngNextListenerFn__;return i&&!1===a&&(s.preventDefault(),s.returnValue=!1),a}}function $o(t=1){return function(t){return(ue.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,ue.lFrame.contextLView))[8]}(t)}function Xo(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let r=0;r<e.length;r++){const s=e[r];if("*"!==s){if(null===i?Fi(t,s,!0):Mi(i,s))return r}else n=r}return n}function qo(t){const e=de()[16][6];if(!e.projection){const n=e.projection=dt(t?t.length:1,null),i=n.slice();let r=e.child;for(;null!==r;){const e=t?Xo(r,t):0;null!==e&&(i[e]?i[e].projectionNext=r:n[e]=r,i[e]=r),r=r.next}}}function Wo(t,e=0,n){const i=de(),r=pe(),s=tr(r,i[6],t,1,null,n||null);null===s.projection&&(s.projection=e),_e(),function(t,e,n){ss(e[11],0,e,n,Kr(t,n,e),ts(n.parent||e[6],e))}(r,i,s)}function Go(t,e,n){return Ko(t,"",e,"",n),Go}function Ko(t,e,n,i,r){const s=de(),o=xo(s,e,n,i);return o!==Li&&pr(pe(),Be(),s,t,o,s[11],r,!1),Ko}const Yo=[];function Jo(t,e,n,i,r){const s=t[n+1],o=null===e;let a=i?qi(s):Gi(s),c=!1;for(;0!==a&&(!1===c||o);){const n=t[a+1];Qo(t[a],e)&&(c=!0,t[a+1]=i?Yi(n):Wi(n)),a=i?qi(n):Gi(n)}c&&(t[n+1]=i?Wi(s):Yi(s))}function Qo(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&ft(t,e)>=0}const Zo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ta(t){return t.substring(Zo.key,Zo.keyEnd)}function ea(t,e){const n=Zo.textEnd;return n===e?-1:(e=Zo.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,Zo.key=e,n),na(t,e,n))}function na(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function ia(t,e,n){return aa(t,e,n,!1),ia}function ra(t,e){return aa(t,e,null,!0),ra}function sa(t){ca(pt,oa,t,!0)}function oa(t,e){for(let n=function(t){return function(t){Zo.key=0,Zo.keyEnd=0,Zo.value=0,Zo.valueEnd=0,Zo.textEnd=t.length}(t),ea(t,na(t,0,Zo.textEnd))}(e);n>=0;n=ea(e,n))pt(t,ta(e),!0)}function aa(t,e,n,i){const r=de(),s=pe(),o=ke(2);s.firstUpdatePass&&ua(s,t,o,i),e!==Li&&vo(r,o,e)&&pa(s,s.data[Ne()+20],r,r[11],t,r[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=T(Bn(t)))),t}(e,n),i,o)}function ca(t,e,n,i){const r=pe(),s=ke(2);r.firstUpdatePass&&ua(r,null,s,i);const o=de();if(n!==Li&&vo(o,s,n)){const a=r.data[Ne()+20];if(ba(a,i)&&!la(r,s)){let t=i?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=A(t,n||"")),Ao(r,a,o,n,i)}else!function(t,e,n,i,r,s,o,a){r===Li&&(r=Yo);let c=0,l=0,u=0<r.length?r[0]:null,h=0<s.length?s[0]:null;for(;null!==u||null!==h;){const d=c<r.length?r[c+1]:void 0,p=l<s.length?s[l+1]:void 0;let m=null,f=void 0;u===h?(c+=2,l+=2,d!==p&&(m=h,f=p)):null===h||null!==u&&u<h?(c+=2,m=u):(l+=2,m=h,f=p),null!==m&&pa(t,e,n,i,m,f,o,a),u=c<r.length?r[c]:null,h=l<s.length?s[l]:null}}(r,a,o,o[11],o[s+1],o[s+1]=function(t,e,n){if(null==n||""===n)return Yo;const i=[],r=Bn(n);if(Array.isArray(r))for(let s=0;s<r.length;s++)t(i,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&t(i,s,r[s]);else"string"==typeof r&&e(i,r);return i}(t,e,n),i,s)}}function la(t,e){return e>=t.expandoStartIndex}function ua(t,e,n,i){const r=t.data;if(null===r[n+1]){const s=r[Ne()+20],o=la(t,n);ba(s,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const r=Ee(t);let s=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=da(n=ha(null,t,e,n,i),e.attrs,i),s=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==r)if(n=ha(r,t,e,n,i),null===s){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==Gi(i))return t[qi(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=ha(null,t,e,n[1],i),n=da(n,e.attrs,i),function(t,e,n,i){t[qi(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else s=function(t,e,n){let i=void 0;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<r;s++)i=da(i,t[s].hostAttrs,n);return da(i,e.attrs,n)}(t,e,i)}return void 0!==s&&(i?e.residualClasses=s:e.residualStyles=s),n}(r,s,e,i),function(t,e,n,i,r,s){let o=s?e.classBindings:e.styleBindings,a=qi(o),c=Gi(o);t[i]=n;let l,u=!1;if(Array.isArray(n)){const t=n;l=t[1],(null===l||ft(t,l)>0)&&(u=!0)}else l=n;if(r)if(0!==c){const e=qi(t[a+1]);t[i+1]=Xi(e,a),0!==e&&(t[e+1]=Ki(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=Xi(a,0),0!==a&&(t[a+1]=Ki(t[a+1],i)),a=i;else t[i+1]=Xi(c,0),0===a?a=i:t[c+1]=Ki(t[c+1],i),c=i;u&&(t[i+1]=Wi(t[i+1])),Jo(t,l,i,!0),Jo(t,l,i,!1),function(t,e,n,i,r){const s=r?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof e&&ft(s,e)>=0&&(n[i+1]=Yi(n[i+1]))}(e,l,t,i,s),o=Xi(a,c),s?e.classBindings=o:e.styleBindings=o}(r,s,e,n,o,i)}}function ha(t,e,n,i,r){let s=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(s=e[a],i=da(i,s.hostAttrs,r),s!==t);)a++;return null!==t&&(n.directiveStylingLast=a),i}function da(t,e,n){const i=n?1:2;let r=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?r=o:r===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),pt(t,o,!!n||e[++s]))}return void 0===t?null:t}function pa(t,e,n,i,r,s,o,a){if(3!==e.type)return;const c=t.data,l=c[a+1];fa(1==(1&l)?ma(c,e,n,r,Gi(l),o):void 0)||(fa(s)||function(t){return 2==(2&t)}(l)&&(s=ma(c,null,n,r,a,o)),function(t,e,n,i,r){const s=Yt(t);if(e)r?s?t.addClass(n,i):n.classList.add(i):s?t.removeClass(n,i):n.classList.remove(i);else{const e=-1==i.indexOf("-")?void 0:2;null==r?s?t.removeStyle(n,i,e):n.style.removeProperty(i):s?t.setStyle(n,i,r,e):n.style.setProperty(i,r)}}(i,o,Zt(Ne(),n),r,s))}function ma(t,e,n,i,r,s){const o=null===e;let a=void 0;for(;r>0;){const e=t[r],s=Array.isArray(e),c=s?e[1]:e,l=null===c;let u=n[r+1];u===Li&&(u=l?Yo:void 0);let h=l?mt(u,i):c===i?u:void 0;if(s&&!fa(h)&&(h=mt(e,i)),fa(h)&&(a=h,o))return a;const d=t[r+1];r=o?qi(d):Gi(d)}if(null!==e){let t=s?e.residualClasses:e.residualStyles;null!=t&&(a=mt(t,i))}return a}function fa(t){return void 0!==t}function ba(t,e){return 0!=(t.flags&(e?16:32))}function ga(t,e=""){const n=de(),i=pe(),r=t+20,s=i.firstCreatePass?tr(i,n[6],t,3,null,null):i.data[r],o=n[r]=function(t,e){return Yt(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);es(i,n,o,s),be(s,!1)}function _a(t){return va("",t,""),_a}function va(t,e,n){const i=de(),r=xo(i,t,e,n);return r!==Li&&Br(i,Ne(),r),va}function ya(t,e,n,i,r){const s=de(),o=function(t,e,n,i,r,s){const o=yo(t,Ce(),n,r);return ke(2),o?e+sn(n)+i+sn(r)+s:Li}(s,t,e,n,i,r);return o!==Li&&Br(s,Ne(),o),ya}function wa(t,e,n,i,r,s,o){const a=de(),c=function(t,e,n,i,r,s,o,a){const c=wo(t,Ce(),n,r,o);return ke(3),c?e+sn(n)+i+sn(r)+s+sn(o)+a:Li}(a,t,e,n,i,r,s,o);return c!==Li&&Br(a,Ne(),c),wa}function Ca(t,e,n,i,r,s,o,a,c){const l=de(),u=function(t,e,n,i,r,s,o,a,c,l){const u=function(t,e,n,i,r,s){const o=yo(t,e,n,i);return yo(t,e+2,r,s)||o}(t,Ce(),n,r,o,c);return ke(4),u?e+sn(n)+i+sn(r)+s+sn(o)+a+sn(c)+l:Li}(l,t,e,n,i,r,s,o,a,c);return u!==Li&&Br(l,Ne(),u),Ca}function xa(t,e,n){ca(pt,oa,xo(de(),t,e,n),!0)}function ka(t,e,n){const i=de();return vo(i,xe(),e)&&pr(pe(),Be(),i,t,e,i[11],n,!0),ka}function Oa(t,e,n){const i=de();if(vo(i,xe(),e)){const r=pe(),s=Be();pr(r,s,i,t,e,Rr(Ee(r.data),s,i),n,!0)}return Oa}function Sa(t,e){const n=re(t)[1],i=n.data.length-1;ze(n,{directiveStart:i,directiveEnd:i+1})}function Ea(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const i=[t];for(;e;){let r=void 0;if(Bt(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(n){i.push(r);const e=t;e.inputs=Ta(t.inputs),e.declaredInputs=Ta(t.declaredInputs),e.outputs=Ta(t.outputs);const n=r.hostBindings;n&&Da(t,n);const s=r.viewQuery,o=r.contentQueries;if(s&&Aa(t,s),o&&Ia(t,o),g(t.inputs,r.inputs),g(t.declaredInputs,r.declaredInputs),g(t.outputs,r.outputs),Bt(r)&&r.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(r.data.animation)}}const e=r.features;if(e)for(let i=0;i<e.length;i++){const r=e[i];r&&r.ngInherit&&r(t),r===Ea&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let i=t.length-1;i>=0;i--){const r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=Qe(r.hostAttrs,n=Qe(n,r.hostAttrs))}}(i)}function Ta(t){return t===_t?{}:t===vt?[]:t}function Aa(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function Ia(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,r)=>{e(t,i,r),n(t,i,r)}:e}function Da(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}function Pa(t,e,n,i,r){if(t=P(t),Array.isArray(t))for(let s=0;s<t.length;s++)Pa(t[s],e,n,i,r);else{const s=pe(),o=de();let a=Hs(t)?t:P(t.provide),c=Ns(t);const l=fe(),u=1048575&l.providerIndexes,h=l.directiveStart,d=l.providerIndexes>>20;if(Hs(t)||!t.multi){const i=new Ge(c,r,So),p=Ma(a,e,r?u:u+d,h);-1===p?(_n(mn(l,o),s,a),ja(s,t,e.length),e.push(a),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=Ma(a,e,u+d,h),m=Ma(a,e,u,u+d),f=p>=0&&n[p],b=m>=0&&n[m];if(r&&!b||!r&&!f){_n(mn(l,o),s,a);const u=function(t,e,n,i,r){const s=new Ge(t,n,So);return s.multi=[],s.index=e,s.componentProviders=0,Fa(s,r,i&&!n),s}(r?Na:Ra,n.length,r,i,c);!r&&b&&(n[m].providerFactory=u),ja(s,t,e.length,0),e.push(a),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(u),o.push(u)}else ja(s,t,p>-1?p:m,Fa(n[r?m:p],c,!r&&i));!r&&i&&b&&n[m].componentProviders++}}}function ja(t,e,n,i){const r=Hs(e);if(r||e.useClass){const s=(e.useClass||e).prototype.ngOnDestroy;if(s){const o=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,s]):o[t+1].push(i,s)}else o.push(n,s)}}}function Fa(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Ma(t,e,n,i){for(let r=n;r<i;r++)if(e[r]===t)return r;return-1}function Ra(t,e,n,i){return La(this.multi,[])}function Na(t,e,n,i){const r=this.multi;let s;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=xn(n,n[1],this.providerFactory.index,i);s=e.slice(0,t),La(r,s);for(let n=t;n<e.length;n++)s.push(e[n])}else s=[],La(r,s);return s}function La(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function Ba(t,e=[]){return n=>{n.providersResolver=(n,i)=>function(t,e,n){const i=pe();if(i.firstCreatePass){const r=Bt(t);Pa(n,i.data,i.blueprint,r,!0),Pa(e,i.data,i.blueprint,r,!1)}}(n,i?i(t):t,e)}}class Ha{}class Va{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${T(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let za=(()=>{class t{}return t.NULL=new Va,t})(),Ua=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>$a(t),t})();const $a=function(t){return ps(t,fe(),de())};class Xa{}var qa=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});let Wa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ga(),t})();const Ga=function(){const t=de(),e=ie(fe().index,t);return function(t){const e=t[11];if(Yt(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Ft(e)?e:t)};let Ka=(()=>{class t{}return t.\u0275prov=_({token:t,providedIn:"root",factory:()=>null}),t})();class Ya{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ja=new Ya("10.0.9");class Qa{constructor(){}supports(t){return bo(t)}create(t){return new tc(t)}}const Za=(t,e)=>e;class tc{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Za}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,r=null;for(;e||n;){const s=!n||e&&e.currentIndex<rc(n,i,r)?e:n,o=rc(s,i,r),a=s.currentIndex;if(s===n)i--,n=n._nextRemoved;else if(e=e._next,null==s.previousIndex)i++;else{r||(r=[]);const t=o-i,e=a-i;if(t!=e){for(let n=0;n<t;n++){const i=n<r.length?r[n]:r[n]=0,s=i+n;e<=s&&s<t&&(r[n]=i+1)}r[s.previousIndex]=e-t}}o!==a&&t(s,o,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!bo(t))throw new Error(`Error trying to diff '${T(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,i,r=this._itHead,s=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],i=this._trackByFn(e,n),null!==r&&Object.is(r.trackById,i)?(s&&(r=this._verifyReinsertion(r,n,i,e)),Object.is(r.item,n)||this._addIdentityChange(r,n)):(r=this._mismatch(r,n,i,e),s=!0),r=r._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[mo()]();let i;for(;!(i=n.next()).done;)e(i.value)}}(t,t=>{i=this._trackByFn(e,t),null!==r&&Object.is(r.trackById,i)?(s&&(r=this._verifyReinsertion(r,t,i,e)),Object.is(r.item,t)||this._addIdentityChange(r,t)):(r=this._mismatch(r,t,i,e),s=!0),r=r._next,e++}),this.length=e;return this._truncate(r),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,e;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=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,r,i)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,r,i)):t=this._addAfter(new ec(e,n),r,i),t}_verifyReinsertion(t,e,n,i){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?t=this._reinsertAfter(r,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),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,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,r=t._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new ic),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._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 ic),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 ec{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 nc{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 n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class ic{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new nc,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.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 rc(t,e,n){const i=t.previousIndex;if(null===i)return i;let r=0;return n&&i<n.length&&(r=n[i]),i+e+r}class sc{constructor(){}supports(t){return t instanceof Map||go(t)}create(){return new oc}}class oc{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||go(t)))throw new Error(`Error trying to diff '${T(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._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 n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}const n=new ac(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_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(n=>e(t[n],n))}}class ac{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}}let cc=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new m,new d]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=_({token:t,providedIn:"root",factory:()=>new t([new Qa])}),t})(),lc=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new m,new d]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=_({token:t,providedIn:"root",factory:()=>new t([new sc])}),t})();const uc=[new sc],hc=new cc([new Qa]),dc=new lc(uc);let pc=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>mc(t,Ua),t})();const mc=function(t,e){return ms(t,e,fe(),de())};let fc=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>bc(t,Ua),t})();const bc=function(t,e){return fs(t,e,fe(),de())},gc={};class _c extends za{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Dt(t);return new wc(e,this.ngModule)}}function vc(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const yc=new q("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>an});class wc extends Ha{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(Ni).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return vc(this.componentDef.inputs)}get outputs(){return vc(this.componentDef.outputs)}create(t,e,n,i){const r=(i=i||this.ngModule)?function(t,e){return{get:(n,i,r)=>{const s=t.get(n,gc,r);return s!==gc||i===gc?s:e.get(n,i,r)}}}(t,i.injector):t,s=r.get(Xa,Jt),o=r.get(Ka,null),a=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",l=n?function(t,e,n){if(Yt(t))return t.selectRootElement(e,n===gt.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Qi(c,s.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:an,clean:Fr,playerHandler:null,flags:0},d=lr(0,-1,null,1,0,null,null,null,null,null),p=Zi(null,d,h,u,null,null,s,a,o,r);let m,f;De(p,null);try{const t=function(t,e,n,i,r,s){const o=n[1];n[20]=t;const a=tr(o,null,0,3,null,null),c=a.mergedAttrs=e.hostAttrs;null!==c&&(ho(a,c,!0),null!==t&&(Ke(r,t,c),null!==a.classes&&as(r,t,a.classes),null!==a.styles&&os(r,t,a.styles)));const l=i.createRenderer(t,e),u=Zi(n,cr(e),null,e.onPush?64:16,n[20],a,i,l,void 0);return o.firstCreatePass&&(_n(mn(a,n),o,e.type),vr(o,a),wr(a,n.length,1)),Ar(n,u),n[20]=u}(l,this.componentDef,p,s,a);if(l)if(n)Ke(a,l,["ng-version",Ja.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,r=2;for(;i<t.length;){let s=t[i];if("string"==typeof s)2===r?""!==s&&e.push(s,t[++i]):8===r&&n.push(s);else{if(!Pi(r))break;r=s}i++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&Ke(a,l,t),e&&e.length>0&&as(a,l,e.join(" "))}if(f=ee(d,0),void 0!==e){const t=f.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const i=e[n];t.push(null!=i?Array.from(i):null)}}m=function(t,e,n,i,r){const s=n[1],o=function(t,e,n){const i=fe();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),_r(t,i,1),Cr(t,e,n));const r=xn(e,t,e.length-1,i);ki(r,e);const s=te(i,e);return s&&ki(s,e),r}(s,n,e);i.components.push(o),t[8]=o,r&&r.forEach(t=>t(o,e)),e.contentQueries&&e.contentQueries(1,o,n.length-1);const a=fe();if(s.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){Le(a.index-20);const t=n[1];fr(t,e),br(t,n,e.hostVars),gr(e,o)}return o}(t,this.componentDef,p,h,[Sa]),er(d,p,null)}finally{Re()}const b=new Cc(this.componentType,m,ps(Ua,f,p),p,f);return d.node.child=f,b}}class Cc extends class{}{constructor(t,e,n,i,r){super(),this.location=n,this._rootLView=i,this._tNode=r,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new ls(i),function(t,e,n,i){let r=t.node;null==r&&(t.node=r=hr(0,null,2,-1,null,null)),i[6]=r}(i[1],0,0,i),this.componentType=t}get injector(){return new Sn(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const xc=void 0;var kc=["en",[["a","p"],["AM","PM"],xc],[["AM","PM"],xc,xc],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],xc,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],xc,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",xc,"{1} 'at' {0}",xc],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Oc={};function Sc(t,e,n){"string"!=typeof e&&(n=e,e=t[Dc.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),Oc[e]=t,n&&(Oc[e][Dc.ExtraData]=n)}function Ec(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=Ic(e);if(n)return n;const i=e.split("-")[0];if(n=Ic(i),n)return n;if("en"===i)return kc;throw new Error(`Missing locale data for the locale "${t}".`)}function Tc(t){return Ec(t)[Dc.CurrencyCode]||null}function Ac(t){return Ec(t)[Dc.PluralCase]}function Ic(t){return t in Oc||(Oc[t]=L.ng&&L.ng.common&&L.ng.common.locales&&L.ng.common.locales[t]),Oc[t]}var Dc=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});let Pc="en-US";function jc(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(Pc=t.toLowerCase().replace(/_/g,"-"))}const Fc=new Map;class Mc extends at{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new _c(this);const n=jt(t),i=t[U]||null;i&&jc(i),this._bootstrapComponents=un(n.bootstrap),this._r3Injector=Fs(t,e,[{provide:at,useValue:this},{provide:za,useValue:this.componentFactoryResolver}],T(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=zs.THROW_IF_NOT_FOUND,n=f.Default){return t===zs||t===at||t===W?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Rc extends ct{constructor(t){super(),this.moduleType=t,null!==jt(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${T(e)} vs ${T(e.name)}`)})(t,Fc.get(t),e),Fc.set(t,e)}let n=e.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(e=>t(e))}(t)}create(t){return new Mc(this.moduleType,t)}}function Nc(t,e,n){const i=we()+t,r=de();return r[i]===Li?_o(r,i,n?e.call(n):e()):function(t,e){return t[e]}(r,i)}function Lc(t,e,n,i){return zc(de(),we(),t,e,n,i)}function Bc(t,e,n,i,r){return Uc(de(),we(),t,e,n,i,r)}function Hc(t,e,n,i,r,s){return function(t,e,n,i,r,s,o,a){const c=e+n;return wo(t,c,r,s,o)?_o(t,c+3,a?i.call(a,r,s,o):i(r,s,o)):Vc(t,c+3)}(de(),we(),t,e,n,i,r,s)}function Vc(t,e){const n=t[e];return n===Li?void 0:n}function zc(t,e,n,i,r,s){const o=e+n;return vo(t,o,r)?_o(t,o+1,s?i.call(s,r):i(r)):Vc(t,o+1)}function Uc(t,e,n,i,r,s,o){const a=e+n;return yo(t,a,r,s)?_o(t,a+2,o?i.call(o,r,s):i(r,s)):Vc(t,a+2)}function $c(t,e){const n=pe();let i;const r=t+20;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new Error(`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];const s=i.factory||(i.factory=Pt(i.type)),o=tt(So),a=dn(!1),c=s();return dn(a),tt(o),function(t,e,n,i){const r=n+20;r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=i}(n,de(),t,c),c}function Xc(t,e,n){const i=de(),r=ne(i,t);return Gc(i,Wc(i,t)?zc(i,we(),e,r.transform,n,r):r.transform(n))}function qc(t,e,n,i){const r=de(),s=ne(r,t);return Gc(r,Wc(r,t)?Uc(r,we(),e,s.transform,n,i,s):s.transform(n,i))}function Wc(t,e){return t[1].data[e+20].pure}function Gc(t,e){return fo.isWrapped(e)&&(e=fo.unwrap(e),t[Ce()]=Li),e}const Kc=class extends i.a{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let i,s=t=>null,o=()=>null;t&&"object"==typeof t?(i=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(s=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(o=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(i=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const a=super.subscribe(i,s,o);return t instanceof r.a&&t.add(a),a}};function Yc(){return this._results[mo()]()}class Jc{constructor(){this.dirty=!0,this._results=[],this.changes=new Kc,this.length=0;const t=mo(),e=Jc.prototype;e[t]||(e[t]=Yc)}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){this._results=function t(e,n){void 0===n&&(n=e);for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?(n===e&&(n=e.slice(0,i)),t(r,n)):n!==e&&n.push(r)}return n}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class Qc{constructor(t){this.queryList=t,this.matches=null}clone(){return new Qc(this.queryList)}setDirty(){this.queryList.setDirty()}}class Zc{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,i=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);i.push(this.queries[n.indexInDeclarationView].clone())}return new Zc(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==bl(t,e).matches&&this.queries[e].setDirty()}}class tl{constructor(t,e,n,i=null){this.predicate=t,this.descendants=e,this.isStatic=n,this.read=i}}class el{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const i=null!==e?e.length:0,r=this.getByIndex(n).embeddedTView(t,i);r&&(r.indexInDeclarationView=n,null!==e?e.push(r):e=[r])}return null!==e?new el(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class nl{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new nl(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&4===n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const n=this.metadata.predicate;if(Array.isArray(n))for(let i=0;i<n.length;i++){const r=n[i];this.matchTNodeWithReadOption(t,e,il(e,r)),this.matchTNodeWithReadOption(t,e,Cn(e,t,r,!1,!1))}else n===pc?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,Cn(e,t,n,!1,!1))}matchTNodeWithReadOption(t,e,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===Ua||i===fc||i===pc&&0===e.type)this.addMatch(e.index,-2);else{const n=Cn(e,t,i,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function il(t,e){const n=t.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===e)return n[i+1];return null}function rl(t,e,n,i){return-1===n?function(t,e){return 3===t.type||4===t.type?ps(Ua,t,e):0===t.type?ms(pc,Ua,t,e):null}(e,t):-2===n?function(t,e,n){return n===Ua?ps(Ua,e,t):n===pc?ms(pc,Ua,e,t):n===fc?fs(fc,Ua,e,t):void 0}(t,e,i):xn(t,t[1],n,e)}function sl(t,e,n,i){const r=e[19].queries[i];if(null===r.matches){const i=t.data,s=n.matches,o=[];for(let t=0;t<s.length;t+=2){const r=s[t];o.push(r<0?null:rl(e,i[r],s[t+1],n.metadata.read))}r.matches=o}return r.matches}function ol(t){const e=de(),n=pe(),i=Te();Ae(i+1);const r=bl(n,i);if(t.dirty&&se(e)===r.metadata.isStatic){if(null===r.matches)t.reset([]);else{const s=r.crossesNgTemplate?function t(e,n,i,r){const s=e.queries.getByIndex(i),o=s.matches;if(null!==o){const a=sl(e,n,s,i);for(let e=0;e<o.length;e+=2){const i=o[e];if(i>0)r.push(a[e/2]);else{const s=o[e+1],a=n[-i];for(let e=10;e<a.length;e++){const n=a[e];n[17]===n[3]&&t(n[1],n,s,r)}if(null!==a[9]){const e=a[9];for(let n=0;n<e.length;n++){const i=e[n];t(i[1],i,s,r)}}}}}return r}(n,e,i,[]):sl(n,e,r,i);t.reset(s),t.notifyOnChanges()}return!0}return!1}function al(t,e,n){ll(pe(),de(),t,e,n,!0)}function cl(t,e,n){ll(pe(),de(),t,e,n,!1)}function ll(t,e,n,i,r,s){t.firstCreatePass&&(fl(t,new tl(n,i,s,r),-1),s&&(t.staticViewQueries=!0)),ml(t,e)}function ul(t,e,n,i){dl(pe(),de(),e,n,i,!1,fe(),t)}function hl(t,e,n,i){dl(pe(),de(),e,n,i,!0,fe(),t)}function dl(t,e,n,i,r,s,o,a){t.firstCreatePass&&(fl(t,new tl(n,i,s,r),o.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(t.contentQueries.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(t,a),s&&(t.staticContentQueries=!0)),ml(t,e)}function pl(){return t=de(),e=Te(),t[19].queries[e].queryList;var t,e}function ml(t,e){const n=new Jc;ur(t,e,n,n.destroy),null===e[19]&&(e[19]=new Zc),e[19].queries.push(new Qc(n))}function fl(t,e,n){null===t.queries&&(t.queries=new el),t.queries.track(new nl(e,n))}function bl(t,e){return t.queries.getByIndex(e)}function gl(t,e){return ms(pc,Ua,t,e)}function _l(t=f.Default){const e=bs(!0);if(null!=e||t&f.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}const vl=new q("Application Initializer");let yl=(()=>{class t{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();No(e)&&t.push(e)}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(nt(vl,8))},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})();const wl=new q("AppId"),Cl={provide:wl,useFactory:function(){return`${xl()}${xl()}${xl()}`},deps:[]};function xl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const kl=new q("Platform Initializer"),Ol=new q("Platform ID"),Sl=new q("appBootstrapListener");let El=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})();const Tl=new q("LocaleId"),Al=new q("DefaultCurrencyCode");class Il{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Dl=function(t){return new Rc(t)},Pl=Dl,jl=function(t){return Promise.resolve(Dl(t))},Fl=function(t){const e=Dl(t),n=un(jt(t).declarations).reduce((t,e)=>{const n=Dt(e);return n&&t.push(new wc(n)),t},[]);return new Il(e,n)},Ml=Fl,Rl=function(t){return Promise.resolve(Fl(t))};let Nl=(()=>{class t{constructor(){this.compileModuleSync=Pl,this.compileModuleAsync=jl,this.compileModuleAndAllComponentsSync=Ml,this.compileModuleAndAllComponentsAsync=Rl}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})();const Ll=(()=>Promise.resolve(0))();function Bl(t){"undefined"==typeof Zone?Ll.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Hl{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Kc(!1),this.onMicrotaskEmpty=new Kc(!1),this.onStable=new Kc(!1),this.onError=new Kc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=e,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=L.requestAnimationFrame,e=L.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(L,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,$l(t),Ul(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),$l(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,i,r,s,o,a)=>{try{return Xl(t),n.invokeTask(r,s,o,a)}finally{e&&"eventTask"===s.type&&e(),ql(t)}},onInvoke:(e,n,i,r,s,o,a)=>{try{return Xl(t),e.invoke(i,r,s,o,a)}finally{ql(t)}},onHasTask:(e,n,i,r)=>{e.hasTask(i,r),n===i&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,$l(t),Ul(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,n,i,r)=>(e.handleError(i,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Hl.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Hl.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+i,t,zl,Vl,Vl);try{return r.runTask(s,e,n)}finally{r.cancelTask(s)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function Vl(){}const zl={};function Ul(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function $l(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Xl(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function ql(t){t._nesting--,Ul(t)}class Wl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Kc,this.onMicrotaskEmpty=new Kc,this.onStable=new Kc,this.onError=new Kc}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let Gl=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.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:()=>{Hl.assertNotInAngularZone(),Bl(()=>{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())Bl(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(nt(Hl))},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})(),Kl=(()=>{class t{constructor(){this._applications=new Map,Zl.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Zl.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})();class Yl{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function Jl(t){Zl=t}let Ql,Zl=new Yl;const tu=new q("AllowMultipleToken");class eu{constructor(t,e){this.name=t,this.token=e}}function nu(t,e,n=[]){const i="Platform: "+e,r=new q(i);return(e=[])=>{let s=iu();if(!s||s.injector.get(tu,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{const t=n.concat(e).concat({provide:r,useValue:!0},{provide:Ts,useValue:"platform"});!function(t){if(Ql&&!Ql.destroyed&&!Ql.injector.get(tu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ql=t.get(ru);const e=t.get(kl,null);e&&e.forEach(t=>t())}(zs.create({providers:t,name:i}))}return function(t){const e=iu();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(r)}}function iu(){return Ql&&!Ql.destroyed?Ql:null}let ru=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new Wl:("zone.js"===t?void 0:t)||new Hl({enableLongStackTrace:Kn(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),i=[{provide:Hl,useValue:n}];return n.run(()=>{const e=zs.create({providers:i,parent:this.injector,name:t.moduleType.name}),r=t.create(e),s=r.injector.get(Pn,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return r.onDestroy(()=>au(this._modules,r)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{s.handleError(t)}})),function(t,e,n){try{const i=n();return No(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(s,n,()=>{const t=r.injector.get(yl);return t.runInitializers(),t.donePromise.then(()=>(jc(r.injector.get(Tl,"en-US")||"en-US"),this._moduleDoBootstrap(r),r))})})}bootstrapModule(t,e=[]){const n=su({},e);return function(t,e,n){const i=new Rc(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(ou);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${T(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(nt(zs))},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})();function su(t,e){return Array.isArray(e)?e.reduce(su,t):Object.assign(Object.assign({},t),e)}let ou=(()=>{class t{constructor(t,e,n,i,r,c){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Kn(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const l=new s.a(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),u=new s.a(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Hl.assertNotInAngularZone(),Bl(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Hl.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(l,u.pipe(Object(a.a)()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof Ha?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(at),r=n.create(zs.NULL,[],e||n.selector,i);r.onDestroy(()=>{this._unloadComponent(r)});const s=r.injector.get(Gl,null);return s&&r.injector.get(Kl).registerApplication(r.location.nativeElement,s),this._loadComponent(r),Kn()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;au(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Sl,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),au(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(nt(Hl),nt(El),nt(zs),nt(Pn),nt(za),nt(yl))},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})();function au(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class cu{}class lu{}const uu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let hu=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||uu}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n("zn8P")(e).then(t=>t[i]).then(t=>du(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),r="NgFactory";return void 0===i&&(i="default",r=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+r]).then(t=>du(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(nt(Nl),nt(lu,8))},t.\u0275prov=_({token:t,factory:t.\u0275fac}),t})();function du(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const pu=function(t){return null},mu=nu(null,"core",[{provide:Ol,useValue:"unknown"},{provide:ru,deps:[zs]},{provide:Kl,deps:[]},{provide:El,deps:[]}]),fu=[{provide:ou,useClass:ou,deps:[Hl,El,zs,Pn,za,yl]},{provide:yc,deps:[Hl],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:yl,useClass:yl,deps:[[new d,vl]]},{provide:Nl,useClass:Nl,deps:[]},Cl,{provide:cc,useFactory:function(){return hc},deps:[]},{provide:lc,useFactory:function(){return dc},deps:[]},{provide:Tl,useFactory:function(t){return jc(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new h(Tl),new d,new m]]},{provide:Al,useValue:"USD"}];let bu=(()=>{class t{constructor(t){}}return t.\u0275mod=St({type:t}),t.\u0275inj=v({factory:function(e){return new(e||t)(nt(ou))},providers:fu}),t})()},gA0O:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var i=n("2Vo4"),r=n("XFMS"),s=n("fXoL"),o=n("kmQS"),a=n("ofXK"),c=n("NFeN");function l(t,e){if(1&t&&s.Ob(0,"img",3),2&t){const t=s.ec();s.kc("src",t.src,s.xc)("alt",t.alt)("ngClass",t.className)}}function u(t,e){if(1&t&&s.Ob(0,"img",3),2&t){const t=s.ec();s.kc("src",t.src,s.xc)("alt",t.alt)("ngClass",t.className)}}function h(t,e){if(1&t&&s.Ob(0,"mat-icon",4),2&t){const t=s.ec();s.kc("svgIcon",t.src)("ngClass",t.className)}}let d=(()=>{class t{constructor(t,e){this.settings=t,this.el=e,this.alt="",this.className="",this.type$=new i.a(null)}ngOnInit(){this.type$.subscribe(t=>{this.el.nativeElement.classList.remove("image"),this.el.nativeElement.classList.remove("icon"),this.el.nativeElement.classList.add("absolute"===t||"relative"===t?"image":"icon")})}ngOnChanges(){this.src&&(Object(r.a)(this.src)?this.type$.next("absolute"):this.src.indexOf(".")>-1?this.type$.next("relative"):this.type$.next("icon"))}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(o.a),s.Nb(s.l))},t.\u0275cmp=s.Hb({type:t,selectors:[["image-or-icon"]],inputs:{src:"src",alt:"alt",className:"className"},features:[s.zb],decls:5,vars:6,consts:[[3,"ngSwitch"],[3,"src","alt","ngClass",4,"ngSwitchCase"],[3,"svgIcon","ngClass",4,"ngSwitchCase"],[3,"src","alt","ngClass"],[3,"svgIcon","ngClass"]],template:function(t,e){1&t&&(s.Rb(0,0),s.fc(1,"async"),s.Fc(2,l,1,3,"img",1),s.Fc(3,u,1,3,"img",1),s.Fc(4,h,1,2,"mat-icon",2),s.Qb()),2&t&&(s.kc("ngSwitch",s.gc(1,4,e.type$)),s.Bb(2),s.kc("ngSwitchCase","absolute"),s.Bb(1),s.kc("ngSwitchCase","relative"),s.Bb(1),s.kc("ngSwitchCase","icon"))},directives:[a.x,a.y,a.q,c.a],pipes:[a.b],styles:[".inherit-size[_nghost-%COMP%]   img[_ngcontent-%COMP%], .inherit-size   [_nghost-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%}.icon[_nghost-%COMP%], .icon   [_nghost-%COMP%]{display:inline-block;width:24px;height:24px}.mat-icon[_ngcontent-%COMP%]{width:100%;height:100%}img[_ngcontent-%COMP%]{max-width:100%;max-height:100%;height:auto;-o-object-fit:cover;object-fit:cover;margin:auto}"],changeDetection:0}),t})()},gFpt:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var i=n("ofXK"),r=n("tyNb"),s=n("bTqV"),o=n("NFeN"),a=n("STbY"),c=n("6JYt"),l=n("CXWK"),u=n("6rvT"),h=n("fXoL");let d=(()=>{class t{}return t.\u0275mod=h.Lb({type:t}),t.\u0275inj=h.Kb({factory:function(e){return new(e||t)},imports:[[i.c,r.h,o.b,s.c,a.b,c.a,u.a,l.a],c.a]}),t})()},gHDK:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("oJgS"),r=n("yLCO");function s(t="",e={includeBootstrap:!0}){return"<!DOCTYPE html>"+function(t="",e={includeBootstrap:!0}){const n=(new DOMParser).parseFromString(null==t?void 0:t.trim(),"text/html");return o.forEach(t=>{const e=n.querySelectorAll(t);for(let n=0;n<e.length;n++)e[n].parentElement.removeChild(e[n])}),n.querySelectorAll("[contenteditable]").forEach(t=>t.removeAttribute("contenteditable")),function(t,e){var n,i;e&&((null===(n=e.nodesToRestore)||void 0===n?void 0:n.length)&&e.nodesToRestore.forEach(e=>{const n=t.createRange().createContextualFragment(e).childNodes[0];n.id&&t.getElementById(n.id)||t.body.appendChild(n)}),(null===(i=e.classesToRemove)||void 0===i?void 0:i.length)&&e.classesToRemove.forEach(e=>{t.body.querySelectorAll("."+e).forEach(t=>{t.classList.remove(e)})}))}(n,e),function(t){t.head.appendChild(r.a.createLink("css/custom_elements.css?"+Object(i.a)(8),"custom-elements-css")),t.head.appendChild(r.a.createLink("css/code_editor_styles.css?"+Object(i.a)(8),"custom-css")),t.body.appendChild(r.a.createScript("js/code_editor_scripts.js?"+Object(i.a)(8),"custom-js"))}(n),(null==e?void 0:e.includeTheme)&&n.head.appendChild(r.a.createLink("css/theme.css?"+Object(i.a)(8),"theme-css")),(null==e?void 0:e.includeBootstrap)&&function(t){t.head.appendChild(r.a.createLink("bootstrap/bootstrap.min.css?"+Object(i.a)(8),"bootstrap-css")),t.body.appendChild(r.a.createScript("bootstrap/jquery.min.js?"+Object(i.a)(8),"jquery")),t.body.appendChild(r.a.createScript("bootstrap/bootstrap.min.js?"+Object(i.a)(8),"bootstrap-js"))}(n),((null==e?void 0:e.includeBootstrap)||(null==e?void 0:e.includeFontawesome))&&function(t){t.head.appendChild(r.a.createLink("font-awesome/font-awesome.min.css?"+Object(i.a)(8),"font-awesome"))}(n),n}(t,e).documentElement.outerHTML}const o=["base","#jquery","#custom-css","#custom-js","#template-js","[id^=library]","#theme-css","#template-css","#framework-css","#framework-js","#preview-css","#font-awesome","#custom-elements-css","#bootstrap-css","#bootstrap-js",".html2canvas-container"]},gRHU:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("2fFW"),r=n("NJ4a");const s={closed:!0,next(t){},error(t){if(i.a.useDeprecatedSynchronousErrorHandling)throw t;Object(r.a)(t)},complete(){}}},"gdh/":function(t,e,n){"use strict";n.d(e,"a",(function(){return S}));var i=n("0IaG"),r=n("HMnk"),s=n("nYR2"),o=n("fXoL"),a=n("agwZ"),c=n("AUIZ"),l=n("kmQS"),u=n("i2dy"),h=n("Rd8u"),d=n("NFeN"),p=n("3Pt+"),m=n("1jcm"),f=n("ofXK"),b=n("bTqV"),g=n("bv9b");function _(t,e){if(1&t&&(o.Tb(0,"p",29),o.Hc(1),o.Sb()),2&t){const t=o.ec(2);o.Bb(1),o.Ic(t.errors.host)}}function v(t,e){if(1&t&&(o.Tb(0,"p",29),o.Hc(1),o.Sb()),2&t){const t=o.ec(2);o.Bb(1),o.Ic(t.errors.username)}}function y(t,e){if(1&t&&(o.Tb(0,"p",29),o.Hc(1),o.Sb()),2&t){const t=o.ec(2);o.Bb(1),o.Ic(t.errors.password)}}function w(t,e){if(1&t&&(o.Tb(0,"p",29),o.Hc(1),o.Sb()),2&t){const t=o.ec(2);o.Bb(1),o.Ic(t.errors.directory)}}function C(t,e){if(1&t&&(o.Tb(0,"p",29),o.Hc(1),o.Sb()),2&t){const t=o.ec(2);o.Bb(1),o.Ic(t.errors.port)}}function x(t,e){if(1&t){const t=o.Ub();o.Rb(0),o.Tb(1,"div",15),o.Tb(2,"label",16),o.Hc(3,"Host"),o.Sb(),o.Tb(4,"input",17),o.ac("ngModelChange",(function(e){return o.vc(t),o.ec().ftpDetails.host=e})),o.Sb(),o.Fc(5,_,2,1,"p",18),o.Sb(),o.Tb(6,"div",15),o.Tb(7,"label",19),o.Hc(8,"Username"),o.Sb(),o.Tb(9,"input",20),o.ac("ngModelChange",(function(e){return o.vc(t),o.ec().ftpDetails.username=e})),o.Sb(),o.Fc(10,v,2,1,"p",18),o.Sb(),o.Tb(11,"div",15),o.Tb(12,"label",21),o.Hc(13,"Password"),o.Sb(),o.Tb(14,"input",22),o.ac("ngModelChange",(function(e){return o.vc(t),o.ec().ftpDetails.password=e})),o.Sb(),o.Fc(15,y,2,1,"p",18),o.Sb(),o.Tb(16,"div",15),o.Tb(17,"label",23),o.Hc(18,"Directory"),o.Sb(),o.Tb(19,"input",24),o.ac("ngModelChange",(function(e){return o.vc(t),o.ec().ftpDetails.directory=e})),o.Sb(),o.Fc(20,w,2,1,"p",18),o.Sb(),o.Tb(21,"div",25),o.Tb(22,"div",15),o.Tb(23,"label",26),o.Hc(24,"Port"),o.Sb(),o.Tb(25,"input",27),o.ac("ngModelChange",(function(e){return o.vc(t),o.ec().ftpDetails.port=e})),o.Sb(),o.Fc(26,C,2,1,"p",18),o.Sb(),o.Tb(27,"mat-slide-toggle",28),o.ac("ngModelChange",(function(e){return o.vc(t),o.ec().ftpDetails.ssl=e})),o.Hc(28,"SSL"),o.Sb(),o.Sb(),o.Qb()}if(2&t){const t=o.ec();o.Bb(4),o.kc("ngModel",t.ftpDetails.host),o.Bb(1),o.kc("ngIf",t.errors.host),o.Bb(4),o.kc("ngModel",t.ftpDetails.username),o.Bb(1),o.kc("ngIf",t.errors.username),o.Bb(4),o.kc("ngModel",t.ftpDetails.password),o.Bb(1),o.kc("ngIf",t.errors.password),o.Bb(4),o.kc("ngModel",t.ftpDetails.directory),o.Bb(1),o.kc("ngIf",t.errors.directory),o.Bb(5),o.kc("ngModel",t.ftpDetails.port),o.Bb(1),o.kc("ngIf",t.errors.port),o.Bb(1),o.kc("ngModel",t.ftpDetails.ssl)}}function k(t,e){1&t&&o.Ob(0,"mat-progress-bar",30)}function O(t,e){if(1&t&&(o.Tb(0,"div",31),o.Hc(1),o.Sb()),2&t){const t=o.ec();o.Bb(1),o.Ic(t.errors["*"])}}let S=(()=>{class t{constructor(t,e,n,i,r,s){this.dialogRef=t,this.data=e,this.projects=n,this.projectUrl=i,this.settings=r,this.toast=s,this.errors={},this.loading=!1}ngOnInit(){this.ftpDetails=this.settings.getJson("publish.default_credentials",{port:21,ssl:!1})}confirm(){this.loading=!0,this.projects.publish(this.data.project.id,this.ftpDetails).subscribe(()=>{this.loading=!1,this.toast.open("Project published"),this.close()},t=>{this.errors=t.errors,this.loading=!1})}close(){this.dialogRef.close(this.data.project)}getProjectUrl(t=!1){let e=this.projectUrl.getSiteUrl(this.data.project);return t&&(e=Object(r.a)(e)),e}toggleProjectState(t){this.loading=!0,this.stateToggleRequest&&(this.stateToggleRequest.unsubscribe(),this.stateToggleRequest=null),this.stateToggleRequest=this.projects.toggleState(this.data.project.id,t.checked).pipe(Object(s.a)(()=>this.loading=!1)).subscribe(t=>{this.data.project.published=t.project.model.published,this.toast.open(t.project.model.published?"This project is now public.":"This project is now private.")})}}return t.\u0275fac=function(e){return new(e||t)(o.Nb(i.h),o.Nb(i.a),o.Nb(a.a),o.Nb(c.a),o.Nb(l.a),o.Nb(u.b))},t.\u0275cmp=o.Hb({type:t,selectors:[["publish-project-modal"]],decls:20,vars:8,consts:[[1,"modal-header"],["mat-dialog-title","","trans","",1,"modal-title"],["type","button",1,"close-button","no-style","icon-button",3,"click"],["svgIcon","close"],["ngNativeValidate","",3,"ngSubmit"],[1,"project-url"],["target","_blank",3,"href"],["color","accent","name","ssl","trans","",3,"checked","disabled","change"],["mat-dialog-content","",1,"mat-dialog-content","many-inputs"],[4,"ngIf"],["mode","indeterminate","color","accent",4,"ngIf"],["class","error no-input-error",4,"ngIf"],["mat-dialog-actions","",1,"buttons","right","mat-dialog-actions"],["type","button","mat-button","","trans","",1,"button","cancel","cancel-button",3,"click"],["type","submit","mat-raised-button","","color","accent","trans","",1,"button","primary","submit-button",3,"disabled"],[1,"input-container"],["for","host","trans",""],["type","text","name","host","id","host","required","",3,"ngModel","ngModelChange"],["class","error",4,"ngIf"],["for","username","trans",""],["type","text","name","username","id","username","required","",3,"ngModel","ngModelChange"],["for","password","trans",""],["type","password","name","password","id","password","required","",3,"ngModel","ngModelChange"],["for","directory","trans",""],["type","text","name","directory","id","directory","placeholder","(Optional)","trans-placeholder","",3,"ngModel","ngModelChange"],[1,"inline-inputs"],["for","port","trans",""],["type","number","name","port","id","port","required","",3,"ngModel","ngModelChange"],["color","accent","name","ssl",3,"ngModel","ngModelChange"],[1,"error"],["mode","indeterminate","color","accent"],[1,"error","no-input-error"]],template:function(t,e){1&t&&(o.Tb(0,"div",0),o.Tb(1,"h2",1),o.Hc(2,"Publish Project"),o.Sb(),o.Tb(3,"button",2),o.ac("click",(function(){return e.close()})),o.Ob(4,"mat-icon",3),o.Sb(),o.Sb(),o.Tb(5,"form",4),o.ac("ngSubmit",(function(){return e.confirm()})),o.Tb(6,"div",5),o.Tb(7,"a",6),o.Hc(8),o.Sb(),o.Tb(9,"mat-slide-toggle",7),o.ac("change",(function(t){return e.toggleProjectState(t)})),o.Hc(10,"Public"),o.Sb(),o.Sb(),o.Tb(11,"div",8),o.Fc(12,x,29,11,"ng-container",9),o.Sb(),o.Fc(13,k,1,0,"mat-progress-bar",10),o.Fc(14,O,2,1,"div",11),o.Tb(15,"div",12),o.Tb(16,"button",13),o.ac("click",(function(){return e.close()})),o.Hc(17,"Cancel"),o.Sb(),o.Tb(18,"button",14),o.Hc(19,"Publish"),o.Sb(),o.Sb(),o.Sb()),2&t&&(o.Bb(7),o.kc("href",e.getProjectUrl(),o.xc),o.Bb(1),o.Ic(e.getProjectUrl(!0)),o.Bb(1),o.kc("checked",!!e.data.project.published)("disabled",e.loading),o.Bb(3),o.kc("ngIf",e.settings.get("publish.allow_credential_change")),o.Bb(1),o.kc("ngIf",e.loading),o.Bb(1),o.kc("ngIf",e.errors["*"]),o.Bb(4),o.kc("disabled",e.loading))},directives:[i.i,h.a,d.a,p.v,p.w,m.a,i.f,f.t,i.c,b.b,p.d,p.F,p.u,p.x,p.A,g.a],styles:["[_nghost-%COMP%]{display:block;width:400px;max-width:100%}.project-url[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:40px;padding-bottom:15px;border-bottom:1px solid var(--be-divider-lighter)}.project-url[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500;font-size:1.5rem}.project-url[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:hover{text-decoration:underline}.project-url[_ngcontent-%COMP%] > mat-slide-toggle[_ngcontent-%COMP%]{margin-left:auto}.inline-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;margin-bottom:20px}.inline-inputs[_ngcontent-%COMP%]   .input-container[_ngcontent-%COMP%]{max-width:200px}.inline-inputs[_ngcontent-%COMP%]   .mat-slide-toggle[_ngcontent-%COMP%]{margin-left:auto}"]}),t})()},hLX6:function(t,e,n){"use strict";function i(t,e){var n,i;if("function"==typeof e)void 0!==(i=e(t))&&(t=i);else if(Array.isArray(e))for(n=0;n<e.length;n++)void 0!==(i=e[n](t))&&(t=i);return t}function r(t,e){return"-"===t[0]&&Array.isArray(e)&&/^-\d+$/.test(t)?e.length+parseInt(t,10):t}function s(t){return"[object Object]"===Object.prototype.toString.call(t)}function o(t){return Object(t)===t}function a(t){return 0===Object.keys(t).length}var c=["__proto__","prototype","constructor"],l=function(t){return-1===c.indexOf(t)};function u(t,e){t.indexOf("[")>=0&&(t=t.replace(/\[/g,".").replace(/]/g,""));var n=t.split(e);if(n.filter(l).length!==n.length)throw Error("Refusing to update blacklisted property "+t);return n}var h=Object.prototype.hasOwnProperty;function d(t,e,n,i){if(!(this instanceof d))return new d(t,e,n,i);void 0===e&&(e=!1),void 0===n&&(n=!0),void 0===i&&(i=!0),this.separator=t||".",this.override=e,this.useArray=n,this.useBrackets=i,this.keepArray=!1,this.cleanup=[]}var p=new d(".",!1,!0,!0);function m(t){return function(){return p[t].apply(p,arguments)}}d.prototype._fill=function(t,e,n,r){var s=t.shift();if(t.length>0){if(e[s]=e[s]||(this.useArray&&function(t){return/^\d+$/.test(t)}(t[0])?[]:{}),!o(e[s])){if(!this.override){if(!o(n)||!a(n))throw new Error("Trying to redefine `"+s+"` which is a "+typeof e[s]);return}e[s]={}}this._fill(t,e[s],n,r)}else{if(!this.override&&o(e[s])&&!a(e[s])){if(!o(n)||!a(n))throw new Error("Trying to redefine non-empty obj['"+s+"']");return}e[s]=i(n,r)}},d.prototype.object=function(t,e){var n=this;return Object.keys(t).forEach((function(r){var s=void 0===e?null:e[r],o=u(r,n.separator).join(n.separator);-1!==o.indexOf(n.separator)?(n._fill(o.split(n.separator),t,t[r],s),delete t[r]):t[r]=i(t[r],s)})),t},d.prototype.str=function(t,e,n,r){var s=u(t,this.separator).join(this.separator);return-1!==t.indexOf(this.separator)?this._fill(s.split(this.separator),n,e,r):n[t]=i(e,r),n},d.prototype.pick=function(t,e,n,i){var s,o,a,c,l;for(o=u(t,this.separator),s=0;s<o.length;s++){if(c=r(o[s],e),!e||"object"!=typeof e||!(c in e))return;if(s===o.length-1)return n?(a=e[c],i&&Array.isArray(e)?e.splice(c,1):delete e[c],Array.isArray(e)&&(l=o.slice(0,-1).join("."),-1===this.cleanup.indexOf(l)&&this.cleanup.push(l)),a):e[c];e=e[c]}return n&&Array.isArray(e)&&(e=e.filter((function(t){return void 0!==t}))),e},d.prototype.delete=function(t,e){return this.remove(t,e,!0)},d.prototype.remove=function(t,e,n){var i;if(this.cleanup=[],Array.isArray(t)){for(i=0;i<t.length;i++)this.pick(t[i],e,!0,n);return n||this._cleanup(e),e}return this.pick(t,e,!0,n)},d.prototype._cleanup=function(t){var e,n,i,r;if(this.cleanup.length){for(n=0;n<this.cleanup.length;n++)e=(e=(r=(i=this.cleanup[n].split(".")).splice(0,-1).join("."))?this.pick(r,t):t)[i[0]].filter((function(t){return void 0!==t})),this.set(this.cleanup[n],e,t);this.cleanup=[]}},d.prototype.del=d.prototype.remove,d.prototype.move=function(t,e,n,r,s){return"function"==typeof r||Array.isArray(r)?this.set(e,i(this.pick(t,n,!0),r),n,s):(s=r,this.set(e,this.pick(t,n,!0),n,s)),n},d.prototype.transfer=function(t,e,n,r,s,o){return"function"==typeof s||Array.isArray(s)?this.set(e,i(this.pick(t,n,!0),s),r,o):(o=s,this.set(e,this.pick(t,n,!0),r,o)),r},d.prototype.copy=function(t,e,n,r,s,o){return"function"==typeof s||Array.isArray(s)?this.set(e,i(JSON.parse(JSON.stringify(this.pick(t,n,!1))),s),r,o):(o=s,this.set(e,this.pick(t,n,!1),r,o)),r},d.prototype.set=function(t,e,n,i){var r,o,a,c;if(void 0===e)return n;for(a=u(t,this.separator),r=0;r<a.length;r++){if(c=a[r],r===a.length-1)if(i&&s(e)&&s(n[c]))for(o in e)h.call(e,o)&&(n[c][o]=e[o]);else if(i&&Array.isArray(n[c])&&Array.isArray(e))for(var l=0;l<e.length;l++)n[a[r]].push(e[l]);else n[c]=e;else h.call(n,c)&&(s(n[c])||Array.isArray(n[c]))||(n[c]=/^\d+$/.test(a[r+1])?[]:{});n=n[c]}return n},d.prototype.transform=function(t,e,n){return e=e||{},n=n||{},Object.keys(t).forEach((function(i){this.set(t[i],this.pick(i,e),n)}).bind(this)),n},d.prototype.dot=function(t,e,n){e=e||{},n=n||[];var i=Array.isArray(t);return Object.keys(t).forEach((function(r){var c=i&&this.useBrackets?"["+r+"]":r;if(o(t[r])&&(s(t[r])&&!a(t[r])||Array.isArray(t[r])&&!this.keepArray&&0!==t[r].length)){if(i&&this.useBrackets){var l=n[n.length-1]||"";return this.dot(t[r],e,n.slice(0,-1).concat(l+c))}return this.dot(t[r],e,n.concat(c))}i&&this.useBrackets?e[n.join(this.separator).concat("["+r+"]")]=t[r]:e[n.concat(c).join(this.separator)]=t[r]}).bind(this)),e},d.pick=m("pick"),d.move=m("move"),d.transfer=m("transfer"),d.transform=m("transform"),d.copy=m("copy"),d.object=m("object"),d.str=m("str"),d.set=m("set"),d.delete=m("delete"),d.del=d.remove=m("remove"),d.dot=m("dot"),["override","overwrite"].forEach((function(t){Object.defineProperty(d,t,{get:function(){return p.override},set:function(t){p.override=!!t}})})),["useArray","keepArray","useBrackets"].forEach((function(t){Object.defineProperty(d,t,{get:function(){return p[t]},set:function(e){p[t]=e}})})),d._process=i,t.exports=d},i2dy:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return c}));var i=n("fXoL"),r=n("kmQS"),s=n("VaLf"),o=n("dNgK");const a=15e3;let c=(()=>{class t{constructor(t,e,n){this.settings=t,this.i18n=e,this.snackbar=n}open(t,e={}){e.duration||0===e.duration||(e.duration=e.action?a:3e3);const n="string"==typeof t?this.i18n.t(t):this.i18n.t(t.message,t.replacements);return this.snackbar.open(this.i18n.t(n),this.i18n.t(e.action),{duration:e.duration})}openComponent(t,e){return this.snackbar.openFromComponent(t,e)}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(r.a),i.Xb(s.a),i.Xb(o.a))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},iB19:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("fXoL"),r=n("ofXK"),s=n("kmQS");let o=(()=>{class t{constructor(t,e){this.settings=t,this._locale=e,this.format=this.settings.get("dates.format","yyyy-MM-dd"),this.angularPipe=new r.f(e)}transform(t,e,n,i){return t=t&&"string"==typeof t?t.replace(/\//g,"-"):t,this.angularPipe.transform(t,e||this.format,n,i)}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(s.a),i.Nb(i.v))},t.\u0275pipe=i.Mb({name:"formattedDate",type:t,pure:!0}),t})()},itXk:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var i=n("z+Ro"),r=n("DH7j"),s=n("7o/Q");class o extends s.a{notifyNext(t,e,n,i,r){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class a extends s.a{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,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()}}var c=n("SeVD"),l=n("HDdC");function u(t,e,n,i,r=new a(t,n,i)){if(!r.closed)return e instanceof l.a?e.subscribe(r):Object(c.a)(e)(r)}var h=n("yCtX");const d={};function p(...t){let e=void 0,n=void 0;return Object(i.a)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(r.a)(t[0])&&(t=t[0]),Object(h.a)(t,n).lift(new m(e))}class m{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new f(t,this.resultSelector))}}class f extends o{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(d),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 n=0;n<e;n++)this.add(u(this,t[n],void 0,n))}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n){const i=this.values,r=this.toRespond?i[n]===d?--this.toRespond:this.toRespond:0;i[n]=e,0===r&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},jT1Q:function(t,e,n){var i=n("4af/"),r=n("BjAV"),s=n("2yAJ"),o=n("v9aN"),a=n("vYjF"),c=a.isErrorEvent,l=a.isDOMError,u=a.isDOMException,h=a.isError,d=a.isObject,p=a.isPlainObject,m=a.isUndefined,f=a.isFunction,b=a.isString,g=a.isArray,_=a.isEmptyObject,v=a.each,y=a.objectMerge,w=a.truncate,C=a.objectFrozen,x=a.hasKey,k=a.joinRegExp,O=a.urlencode,S=a.uuid4,E=a.htmlTreeAsString,T=a.isSameException,A=a.isSameStacktrace,I=a.parseUrl,D=a.fill,P=a.supportsFetch,j=a.supportsReferrerPolicy,F=a.serializeKeysForMessage,M=a.serializeException,R=a.sanitize,N=n("AKyF").wrapMethod,L="source protocol user pass host port path".split(" "),B=/^(?:(\w+):)?\/\/(?:(\w+)(:\w+)?@)?([\w\.-]+)(?::(\d+))?(\/.*)/;function H(){return+new Date}var V="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},z=V.document,U=V.navigator;function $(t,e){return f(e)?function(n){return e(n,t)}:e}function X(){for(var t in this._hasJSON=!("object"!=typeof JSON||!JSON.stringify),this._hasDocument=!m(z),this._hasNavigator=!m(U),this._lastCapturedException=null,this._lastData=null,this._lastEventId=null,this._globalServer=null,this._globalKey=null,this._globalProject=null,this._globalContext={},this._globalOptions={release:V.SENTRY_RELEASE&&V.SENTRY_RELEASE.id,logger:"javascript",ignoreErrors:[],ignoreUrls:[],whitelistUrls:[],includePaths:[],headers:null,collectWindowErrors:!0,captureUnhandledRejections:!0,maxMessageLength:0,maxUrlLength:250,stackTraceLimit:50,autoBreadcrumbs:!0,instrument:!0,sampleRate:1,sanitizeKeys:[]},this._fetchDefaults={method:"POST",referrerPolicy:j()?"origin":""},this._ignoreOnError=0,this._isRavenInstalled=!1,this._originalErrorStackTraceLimit=Error.stackTraceLimit,this._originalConsole=V.console||{},this._originalConsoleMethods={},this._plugins=[],this._startTime=H(),this._wrappedBuiltIns=[],this._breadcrumbs=[],this._lastCapturedEvent=null,this._location=V.location,this._lastHref=this._location&&this._location.href,this._resetBackoff(),this._originalConsole)this._originalConsoleMethods[t]=this._originalConsole[t]}(X.prototype={VERSION:"3.27.2",debug:!1,TraceKit:i,config:function(t,e){var n=this;if(n._globalServer)return this._logDebug("error","Error: Raven has already been configured"),n;if(!t)return n;var r=n._globalOptions;e&&v(e,(function(t,e){"tags"===t||"extra"===t||"user"===t?n._globalContext[t]=e:r[t]=e})),n.setDSN(t),r.ignoreErrors.push(/^Script error\.?$/),r.ignoreErrors.push(/^Javascript error: Script error\.? on line 0$/),r.ignoreErrors=k(r.ignoreErrors),r.ignoreUrls=!!r.ignoreUrls.length&&k(r.ignoreUrls),r.whitelistUrls=!!r.whitelistUrls.length&&k(r.whitelistUrls),r.includePaths=k(r.includePaths),r.maxBreadcrumbs=Math.max(0,Math.min(r.maxBreadcrumbs||100,100));var s={xhr:!0,console:!0,dom:!0,location:!0,sentry:!0},o=r.autoBreadcrumbs;"[object Object]"==={}.toString.call(o)?o=y(s,o):!1!==o&&(o=s),r.autoBreadcrumbs=o;var a={tryCatch:!0},c=r.instrument;return"[object Object]"==={}.toString.call(c)?c=y(a,c):!1!==c&&(c=a),r.instrument=c,i.collectWindowErrors=!!r.collectWindowErrors,n},install:function(){var t=this;return t.isSetup()&&!t._isRavenInstalled&&(i.report.subscribe((function(){t._handleOnErrorStackInfo.apply(t,arguments)})),t._globalOptions.captureUnhandledRejections&&t._attachPromiseRejectionHandler(),t._patchFunctionToString(),t._globalOptions.instrument&&t._globalOptions.instrument.tryCatch&&t._instrumentTryCatch(),t._globalOptions.autoBreadcrumbs&&t._instrumentBreadcrumbs(),t._drainPlugins(),t._isRavenInstalled=!0),Error.stackTraceLimit=t._globalOptions.stackTraceLimit,this},setDSN:function(t){var e=this._parseDSN(t),n=e.path.lastIndexOf("/"),i=e.path.substr(1,n);this._dsn=t,this._globalKey=e.user,this._globalSecret=e.pass&&e.pass.substr(1),this._globalProject=e.path.substr(n+1),this._globalServer=this._getGlobalServer(e),this._globalEndpoint=this._globalServer+"/"+i+"api/"+this._globalProject+"/store/",this._resetBackoff()},context:function(t,e,n){return f(t)&&(n=e||[],e=t,t={}),this.wrap(t,e).apply(this,n)},wrap:function(t,e,n){var i=this;if(m(e)&&!f(t))return t;if(f(t)&&(e=t,t=void 0),!f(e))return e;try{if(e.__raven__)return e;if(e.__raven_wrapper__)return e.__raven_wrapper__}catch(o){return e}function r(){var r=[],s=arguments.length,a=!t||t&&!1!==t.deep;for(n&&f(n)&&n.apply(this,arguments);s--;)r[s]=a?i.wrap(t,arguments[s]):arguments[s];try{return e.apply(this,r)}catch(o){throw i._ignoreNextOnError(),i.captureException(o,t),o}}for(var s in e)x(e,s)&&(r[s]=e[s]);return r.prototype=e.prototype,e.__raven_wrapper__=r,r.__raven__=!0,r.__orig__=e,r},uninstall:function(){return i.report.uninstall(),this._detachPromiseRejectionHandler(),this._unpatchFunctionToString(),this._restoreBuiltIns(),this._restoreConsole(),Error.stackTraceLimit=this._originalErrorStackTraceLimit,this._isRavenInstalled=!1,this},_promiseRejectionHandler:function(t){this._logDebug("debug","Raven caught unhandled promise rejection:",t),this.captureException(t.reason,{mechanism:{type:"onunhandledrejection",handled:!1}})},_attachPromiseRejectionHandler:function(){return this._promiseRejectionHandler=this._promiseRejectionHandler.bind(this),V.addEventListener&&V.addEventListener("unhandledrejection",this._promiseRejectionHandler),this},_detachPromiseRejectionHandler:function(){return V.removeEventListener&&V.removeEventListener("unhandledrejection",this._promiseRejectionHandler),this},captureException:function(t,e){if(e=y({trimHeadFrames:0},e||{}),c(t)&&t.error)t=t.error;else{if(l(t)||u(t)){var n=t.name||(l(t)?"DOMError":"DOMException");return this.captureMessage(t.message?n+": "+t.message:n,y(e,{stacktrace:!0,trimHeadFrames:e.trimHeadFrames+1}))}if(h(t))t=t;else{if(!p(t))return this.captureMessage(t,y(e,{stacktrace:!0,trimHeadFrames:e.trimHeadFrames+1}));e=this._getCaptureExceptionOptionsFromPlainObject(e,t),t=new Error(e.message)}}this._lastCapturedException=t;try{var r=i.computeStackTrace(t);this._handleStackInfo(r,e)}catch(s){if(t!==s)throw s}return this},_getCaptureExceptionOptionsFromPlainObject:function(t,e){var n=Object.keys(e).sort(),i=y(t,{message:"Non-Error exception captured with keys: "+F(n),fingerprint:[s(n)],extra:t.extra||{}});return i.extra.__serialized__=M(e),i},captureMessage:function(t,e){if(!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(t)){var n,r=y({message:t+=""},e=e||{});try{throw new Error(t)}catch(l){n=l}n.name=null;var s=i.computeStackTrace(n),o=g(s.stack)&&s.stack[1];o&&"Raven.captureException"===o.func&&(o=s.stack[2]);var a=o&&o.url||"";if((!this._globalOptions.ignoreUrls.test||!this._globalOptions.ignoreUrls.test(a))&&(!this._globalOptions.whitelistUrls.test||this._globalOptions.whitelistUrls.test(a))){if(this._globalOptions.stacktrace||e.stacktrace||""===r.message){r.fingerprint=null==r.fingerprint?t:r.fingerprint,(e=y({trimHeadFrames:0},e)).trimHeadFrames+=1;var c=this._prepareFrames(s,e);r.stacktrace={frames:c.reverse()}}return r.fingerprint&&(r.fingerprint=g(r.fingerprint)?r.fingerprint:[r.fingerprint]),this._send(r),this}}},captureBreadcrumb:function(t){var e=y({timestamp:H()/1e3},t);if(f(this._globalOptions.breadcrumbCallback)){var n=this._globalOptions.breadcrumbCallback(e);if(d(n)&&!_(n))e=n;else if(!1===n)return this}return this._breadcrumbs.push(e),this._breadcrumbs.length>this._globalOptions.maxBreadcrumbs&&this._breadcrumbs.shift(),this},addPlugin:function(t){var e=[].slice.call(arguments,1);return this._plugins.push([t,e]),this._isRavenInstalled&&this._drainPlugins(),this},setUserContext:function(t){return this._globalContext.user=t,this},setExtraContext:function(t){return this._mergeContext("extra",t),this},setTagsContext:function(t){return this._mergeContext("tags",t),this},clearContext:function(){return this._globalContext={},this},getContext:function(){return JSON.parse(r(this._globalContext))},setEnvironment:function(t){return this._globalOptions.environment=t,this},setRelease:function(t){return this._globalOptions.release=t,this},setDataCallback:function(t){return this._globalOptions.dataCallback=$(this._globalOptions.dataCallback,t),this},setBreadcrumbCallback:function(t){return this._globalOptions.breadcrumbCallback=$(this._globalOptions.breadcrumbCallback,t),this},setShouldSendCallback:function(t){return this._globalOptions.shouldSendCallback=$(this._globalOptions.shouldSendCallback,t),this},setTransport:function(t){return this._globalOptions.transport=t,this},lastException:function(){return this._lastCapturedException},lastEventId:function(){return this._lastEventId},isSetup:function(){return!(!this._hasJSON||!this._globalServer&&(this.ravenNotConfiguredError||(this.ravenNotConfiguredError=!0,this._logDebug("error","Error: Raven has not been configured.")),1))},afterLoad:function(){var t=V.RavenConfig;t&&this.config(t.dsn,t.config).install()},showReportDialog:function(t){if(z){if(!(t=y({eventId:this.lastEventId(),dsn:this._dsn,user:this._globalContext.user||{}},t)).eventId)throw new o("Missing eventId");if(!t.dsn)throw new o("Missing DSN");var e=encodeURIComponent,n=[];for(var i in t)if("user"===i){var r=t.user;r.name&&n.push("name="+e(r.name)),r.email&&n.push("email="+e(r.email))}else n.push(e(i)+"="+e(t[i]));var s=this._getGlobalServer(this._parseDSN(t.dsn)),a=z.createElement("script");a.async=!0,a.src=s+"/api/embed/error-page/?"+n.join("&"),(z.head||z.body).appendChild(a)}},_ignoreNextOnError:function(){var t=this;this._ignoreOnError+=1,setTimeout((function(){t._ignoreOnError-=1}))},_triggerEvent:function(t,e){var n,i;if(this._hasDocument){for(i in e=e||{},t="raven"+t.substr(0,1).toUpperCase()+t.substr(1),z.createEvent?(n=z.createEvent("HTMLEvents")).initEvent(t,!0,!0):(n=z.createEventObject()).eventType=t,e)x(e,i)&&(n[i]=e[i]);if(z.createEvent)z.dispatchEvent(n);else try{z.fireEvent("on"+n.eventType.toLowerCase(),n)}catch(r){}}},_breadcrumbEventHandler:function(t){var e=this;return function(n){if(e._keypressTimeout=null,e._lastCapturedEvent!==n){var i;e._lastCapturedEvent=n;try{i=E(n.target)}catch(r){i="<unknown>"}e.captureBreadcrumb({category:"ui."+t,message:i})}}},_keypressEventHandler:function(){var t=this;return function(e){var n;try{n=e.target}catch(s){return}var i=n&&n.tagName;if(i&&("INPUT"===i||"TEXTAREA"===i||n.isContentEditable)){var r=t._keypressTimeout;r||t._breadcrumbEventHandler("input")(e),clearTimeout(r),t._keypressTimeout=setTimeout((function(){t._keypressTimeout=null}),1e3)}}},_captureUrlChange:function(t,e){var n=I(this._location.href),i=I(e),r=I(t);this._lastHref=e,n.protocol===i.protocol&&n.host===i.host&&(e=i.relative),n.protocol===r.protocol&&n.host===r.host&&(t=r.relative),this.captureBreadcrumb({category:"navigation",data:{to:e,from:t}})},_patchFunctionToString:function(){var t=this;t._originalFunctionToString=Function.prototype.toString,Function.prototype.toString=function(){return t._originalFunctionToString.apply("function"==typeof this&&this.__raven__?this.__orig__:this,arguments)}},_unpatchFunctionToString:function(){this._originalFunctionToString&&(Function.prototype.toString=this._originalFunctionToString)},_instrumentTryCatch:function(){var t=this,e=t._wrappedBuiltIns;function n(e){return function(n,i){for(var r=new Array(arguments.length),s=0;s<r.length;++s)r[s]=arguments[s];var o=r[0];return f(o)&&(r[0]=t.wrap({mechanism:{type:"instrument",data:{function:e.name||"<anonymous>"}}},o)),e.apply?e.apply(this,r):e(r[0],r[1])}}var i=this._globalOptions.autoBreadcrumbs;function r(n){var r=V[n]&&V[n].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(D(r,"addEventListener",(function(e){return function(r,s,o,a){try{s&&s.handleEvent&&(s.handleEvent=t.wrap({mechanism:{type:"instrument",data:{target:n,function:"handleEvent",handler:s&&s.name||"<anonymous>"}}},s.handleEvent))}catch(h){}var c,l,u;return i&&i.dom&&("EventTarget"===n||"Node"===n)&&(l=t._breadcrumbEventHandler("click"),u=t._keypressEventHandler(),c=function(t){if(t){var e;try{e=t.type}catch(n){return}return"click"===e?l(t):"keypress"===e?u(t):void 0}}),e.call(this,r,t.wrap({mechanism:{type:"instrument",data:{target:n,function:"addEventListener",handler:s&&s.name||"<anonymous>"}}},s,c),o,a)}}),e),D(r,"removeEventListener",(function(t){return function(e,n,i,r){try{n=n&&(n.__raven_wrapper__?n.__raven_wrapper__:n)}catch(s){}return t.call(this,e,n,i,r)}}),e))}D(V,"setTimeout",n,e),D(V,"setInterval",n,e),V.requestAnimationFrame&&D(V,"requestAnimationFrame",(function(e){return function(n){return e(t.wrap({mechanism:{type:"instrument",data:{function:"requestAnimationFrame",handler:e&&e.name||"<anonymous>"}}},n))}}),e);for(var s=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],o=0;o<s.length;o++)r(s[o])},_instrumentBreadcrumbs:function(){var t=this,e=this._globalOptions.autoBreadcrumbs,n=t._wrappedBuiltIns;function i(e,n){e in n&&f(n[e])&&D(n,e,(function(n){return t.wrap({mechanism:{type:"instrument",data:{function:e,handler:n&&n.name||"<anonymous>"}}},n)}))}if(e.xhr&&"XMLHttpRequest"in V){var r=V.XMLHttpRequest&&V.XMLHttpRequest.prototype;D(r,"open",(function(e){return function(n,i){return b(i)&&-1===i.indexOf(t._globalKey)&&(this.__raven_xhr={method:n,url:i,status_code:null}),e.apply(this,arguments)}}),n),D(r,"send",(function(e){return function(){var n=this;function r(){if(n.__raven_xhr&&4===n.readyState){try{n.__raven_xhr.status_code=n.status}catch(e){}t.captureBreadcrumb({type:"http",category:"xhr",data:n.__raven_xhr})}}for(var s=["onload","onerror","onprogress"],o=0;o<s.length;o++)i(s[o],n);return"onreadystatechange"in n&&f(n.onreadystatechange)?D(n,"onreadystatechange",(function(e){return t.wrap({mechanism:{type:"instrument",data:{function:"onreadystatechange",handler:e&&e.name||"<anonymous>"}}},e,r)})):n.onreadystatechange=r,e.apply(this,arguments)}}),n)}e.xhr&&P()&&D(V,"fetch",(function(e){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;++i)n[i]=arguments[i];var r,s=n[0],o="GET";if("string"==typeof s?r=s:"Request"in V&&s instanceof V.Request?(r=s.url,s.method&&(o=s.method)):r=""+s,-1!==r.indexOf(t._globalKey))return e.apply(this,n);n[1]&&n[1].method&&(o=n[1].method);var a={method:o,url:r,status_code:null};return e.apply(this,n).then((function(e){return a.status_code=e.status,t.captureBreadcrumb({type:"http",category:"fetch",data:a}),e})).catch((function(e){throw t.captureBreadcrumb({type:"http",category:"fetch",data:a,level:"error"}),e}))}}),n),e.dom&&this._hasDocument&&(z.addEventListener?(z.addEventListener("click",t._breadcrumbEventHandler("click"),!1),z.addEventListener("keypress",t._keypressEventHandler(),!1)):z.attachEvent&&(z.attachEvent("onclick",t._breadcrumbEventHandler("click")),z.attachEvent("onkeypress",t._keypressEventHandler())));var s=V.chrome;if(e.location&&!(s&&s.app&&s.app.runtime)&&V.history&&V.history.pushState&&V.history.replaceState){var o=V.onpopstate;V.onpopstate=function(){var e=t._location.href;if(t._captureUrlChange(t._lastHref,e),o)return o.apply(this,arguments)};var a=function(e){return function(){var n=arguments.length>2?arguments[2]:void 0;return n&&t._captureUrlChange(t._lastHref,n+""),e.apply(this,arguments)}};D(V.history,"pushState",a,n),D(V.history,"replaceState",a,n)}if(e.console&&"console"in V&&console.log){var c=function(e,n){t.captureBreadcrumb({message:e,level:n.level,category:"console"})};v(["debug","info","warn","error","log"],(function(t,e){N(console,e,c)}))}},_restoreBuiltIns:function(){for(var t;this._wrappedBuiltIns.length;)(t=this._wrappedBuiltIns.shift())[0][t[1]]=t[2]},_restoreConsole:function(){for(var t in this._originalConsoleMethods)this._originalConsole[t]=this._originalConsoleMethods[t]},_drainPlugins:function(){var t=this;v(this._plugins,(function(e,n){n[0].apply(t,[t].concat(n[1]))}))},_parseDSN:function(t){var e=B.exec(t),n={},i=7;try{for(;i--;)n[L[i]]=e[i]||""}catch(r){throw new o("Invalid DSN: "+t)}if(n.pass&&!this._globalOptions.allowSecretKey)throw new o("Do not specify your secret key in the DSN. See: http://bit.ly/raven-secret-key");return n},_getGlobalServer:function(t){var e="//"+t.host+(t.port?":"+t.port:"");return t.protocol&&(e=t.protocol+":"+e),e},_handleOnErrorStackInfo:function(t,e){(e=e||{}).mechanism=e.mechanism||{type:"onerror",handled:!1},this._ignoreOnError||this._handleStackInfo(t,e)},_handleStackInfo:function(t,e){var n=this._prepareFrames(t,e);this._triggerEvent("handle",{stackInfo:t,options:e}),this._processException(t.name,t.message,t.url,t.lineno,n,e)},_prepareFrames:function(t,e){var n=this,i=[];if(t.stack&&t.stack.length&&(v(t.stack,(function(e,r){var s=n._normalizeFrame(r,t.url);s&&i.push(s)})),e&&e.trimHeadFrames))for(var r=0;r<e.trimHeadFrames&&r<i.length;r++)i[r].in_app=!1;return i=i.slice(0,this._globalOptions.stackTraceLimit)},_normalizeFrame:function(t,e){var n={filename:t.url,lineno:t.line,colno:t.column,function:t.func||"?"};return t.url||(n.filename=e),n.in_app=!(this._globalOptions.includePaths.test&&!this._globalOptions.includePaths.test(n.filename)||/(Raven|TraceKit)\./.test(n.function)||/raven\.(min\.)?js$/.test(n.filename)),n},_processException:function(t,e,n,i,r,s){var o,a=(t?t+": ":"")+(e||"");if((!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(e)&&!this._globalOptions.ignoreErrors.test(a))&&(r&&r.length?(n=r[0].filename||n,r.reverse(),o={frames:r}):n&&(o={frames:[{filename:n,lineno:i,in_app:!0}]}),(!this._globalOptions.ignoreUrls.test||!this._globalOptions.ignoreUrls.test(n))&&(!this._globalOptions.whitelistUrls.test||this._globalOptions.whitelistUrls.test(n)))){var c=y({exception:{values:[{type:t,value:e,stacktrace:o}]},transaction:n},s),l=c.exception.values[0];null==l.type&&""===l.value&&(l.value="Unrecoverable error caught"),!c.exception.mechanism&&c.mechanism&&(c.exception.mechanism=c.mechanism,delete c.mechanism),c.exception.mechanism=y({type:"generic",handled:!0},c.exception.mechanism||{}),this._send(c)}},_trimPacket:function(t){var e=this._globalOptions.maxMessageLength;if(t.message&&(t.message=w(t.message,e)),t.exception){var n=t.exception.values[0];n.value=w(n.value,e)}var i=t.request;return i&&(i.url&&(i.url=w(i.url,this._globalOptions.maxUrlLength)),i.Referer&&(i.Referer=w(i.Referer,this._globalOptions.maxUrlLength))),t.breadcrumbs&&t.breadcrumbs.values&&this._trimBreadcrumbs(t.breadcrumbs),t},_trimBreadcrumbs:function(t){for(var e,n,i,r=["to","from","url"],s=0;s<t.values.length;++s)if((n=t.values[s]).hasOwnProperty("data")&&d(n.data)&&!C(n.data)){i=y({},n.data);for(var o=0;o<r.length;++o)i.hasOwnProperty(e=r[o])&&i[e]&&(i[e]=w(i[e],this._globalOptions.maxUrlLength));t.values[s].data=i}},_getHttpData:function(){if(this._hasNavigator||this._hasDocument){var t={};return this._hasNavigator&&U.userAgent&&(t.headers={"User-Agent":U.userAgent}),V.location&&V.location.href&&(t.url=V.location.href),this._hasDocument&&z.referrer&&(t.headers||(t.headers={}),t.headers.Referer=z.referrer),t}},_resetBackoff:function(){this._backoffDuration=0,this._backoffStart=null},_shouldBackoff:function(){return this._backoffDuration&&H()-this._backoffStart<this._backoffDuration},_isRepeatData:function(t){var e=this._lastData;return!(!e||t.message!==e.message||t.transaction!==e.transaction)&&(t.stacktrace||e.stacktrace?A(t.stacktrace,e.stacktrace):t.exception||e.exception?T(t.exception,e.exception):!t.fingerprint&&!e.fingerprint||Boolean(t.fingerprint&&e.fingerprint)&&JSON.stringify(t.fingerprint)===JSON.stringify(e.fingerprint))},_setBackoffState:function(t){if(!this._shouldBackoff()){var e=t.status;if(400===e||401===e||429===e){var n;try{n=P()?t.headers.get("Retry-After"):t.getResponseHeader("Retry-After"),n=1e3*parseInt(n,10)}catch(i){}this._backoffDuration=n||2*this._backoffDuration||1e3,this._backoffStart=H()}}},_send:function(t){var e=this._globalOptions,n={project:this._globalProject,logger:e.logger,platform:"javascript"},i=this._getHttpData();i&&(n.request=i),t.trimHeadFrames&&delete t.trimHeadFrames,(t=y(n,t)).tags=y(y({},this._globalContext.tags),t.tags),t.extra=y(y({},this._globalContext.extra),t.extra),t.extra["session:duration"]=H()-this._startTime,this._breadcrumbs&&this._breadcrumbs.length>0&&(t.breadcrumbs={values:[].slice.call(this._breadcrumbs,0)}),this._globalContext.user&&(t.user=this._globalContext.user),e.environment&&(t.environment=e.environment),e.release&&(t.release=e.release),e.serverName&&(t.server_name=e.serverName),t=this._sanitizeData(t),Object.keys(t).forEach((function(e){(null==t[e]||""===t[e]||_(t[e]))&&delete t[e]})),f(e.dataCallback)&&(t=e.dataCallback(t)||t),t&&!_(t)&&(f(e.shouldSendCallback)&&!e.shouldSendCallback(t)||(this._shouldBackoff()?this._logDebug("warn","Raven dropped error due to backoff: ",t):"number"==typeof e.sampleRate?Math.random()<e.sampleRate&&this._sendProcessedPayload(t):this._sendProcessedPayload(t)))},_sanitizeData:function(t){return R(t,this._globalOptions.sanitizeKeys)},_getUuid:function(){return S()},_sendProcessedPayload:function(t,e){var n=this,i=this._globalOptions;if(this.isSetup())if(t=this._trimPacket(t),this._globalOptions.allowDuplicates||!this._isRepeatData(t)){this._lastEventId=t.event_id||(t.event_id=this._getUuid()),this._lastData=t,this._logDebug("debug","Raven about to send:",t);var r={sentry_version:"7",sentry_client:"raven-js/"+this.VERSION,sentry_key:this._globalKey};this._globalSecret&&(r.sentry_secret=this._globalSecret);var s=t.exception&&t.exception.values[0];this._globalOptions.autoBreadcrumbs&&this._globalOptions.autoBreadcrumbs.sentry&&this.captureBreadcrumb({category:"sentry",message:s?(s.type?s.type+": ":"")+s.value:t.message,event_id:t.event_id,level:t.level||"error"});var o=this._globalEndpoint;(i.transport||this._makeRequest).call(this,{url:o,auth:r,data:t,options:i,onSuccess:function(){n._resetBackoff(),n._triggerEvent("success",{data:t,src:o}),e&&e()},onError:function(i){n._logDebug("error","Raven transport failed to send: ",i),i.request&&n._setBackoffState(i.request),n._triggerEvent("failure",{data:t,src:o}),i=i||new Error("Raven send failed (no additional details provided)"),e&&e(i)}})}else this._logDebug("warn","Raven dropped repeat event: ",t)},_makeRequest:function(t){var e=t.url+"?"+O(t.auth),n=null,i={};if(t.options.headers&&(n=this._evaluateHash(t.options.headers)),t.options.fetchParameters&&(i=this._evaluateHash(t.options.fetchParameters)),P()){i.body=r(t.data);var s=y({},this._fetchDefaults),o=y(s,i);return n&&(o.headers=n),V.fetch(e,o).then((function(e){if(e.ok)t.onSuccess&&t.onSuccess();else{var n=new Error("Sentry error code: "+e.status);n.request=e,t.onError&&t.onError(n)}})).catch((function(){t.onError&&t.onError(new Error("Sentry error code: network unavailable"))}))}var a=V.XMLHttpRequest&&new V.XMLHttpRequest;a&&("withCredentials"in a||"undefined"!=typeof XDomainRequest)&&("withCredentials"in a?a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)t.onSuccess&&t.onSuccess();else if(t.onError){var e=new Error("Sentry error code: "+a.status);e.request=a,t.onError(e)}}:(a=new XDomainRequest,e=e.replace(/^https?:/,""),t.onSuccess&&(a.onload=t.onSuccess),t.onError&&(a.onerror=function(){var e=new Error("Sentry error code: XDomainRequest");e.request=a,t.onError(e)})),a.open("POST",e),n&&v(n,(function(t,e){a.setRequestHeader(t,e)})),a.send(r(t.data)))},_evaluateHash:function(t){var e={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];e[n]="function"==typeof i?i():i}return e},_logDebug:function(t){this._originalConsoleMethods[t]&&(this.debug||this._globalOptions.debug)&&Function.prototype.apply.call(this._originalConsoleMethods[t],this._originalConsole,[].slice.call(arguments,1))},_mergeContext:function(t,e){m(e)?delete this._globalContext[t]:this._globalContext[t]=y(this._globalContext[t]||{},e)}}).setUser=X.prototype.setUserContext,X.prototype.setReleaseContext=X.prototype.setRelease,t.exports=X},jZKg:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("HDdC"),r=n("quSY");function s(t,e){return new i.a(n=>{const i=new r.a;let s=0;return i.add(e.schedule((function(){s!==t.length?(n.next(t[s++]),n.closed||i.add(this.schedule())):n.complete()}))),i})}},jhN1:function(t,e,n){"use strict";n.d(e,"a",(function(){return N})),n.d(e,"b",(function(){return D})),n.d(e,"c",(function(){return B})),n.d(e,"d",(function(){return M})),n.d(e,"e",(function(){return w}));var i=n("ofXK"),r=n("fXoL");class s extends i.J{constructor(){super()}supportsDOMEvents(){return!0}}class o extends s{static makeCurrent(){Object(i.N)(new o)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}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}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=c||(c=document.querySelector("base"),c)?c.getAttribute("href"):null;return null==e?null:(n=e,a||(a=document.createElement("a")),a.setAttribute("href",n),"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname);var n}resetBaseElement(){c=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return Object(i.M)(document.cookie,t)}}let a,c=null;const l=new r.r("TRANSITION_ID"),u=[{provide:r.d,useFactory:function(t,e,n){return()=>{n.get(r.e).donePromise.then(()=>{const n=Object(i.L)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[l,i.e,r.s],multi:!0}];class h{static init(){Object(r.Z)(new h)}addToWindow(t){r.qb.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},r.qb.getAllAngularTestabilities=()=>t.getAllTestabilities(),r.qb.getAllAngularRootElements=()=>t.getAllRootElements(),r.qb.frameworkStabilizers||(r.qb.frameworkStabilizers=[]),r.qb.frameworkStabilizers.push(t=>{const e=r.qb.getAllAngularTestabilities();let n=e.length,i=!1;const s=function(e){i=i||e,n--,0==n&&t(i)};e.forEach((function(t){t.whenStable(s)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?Object(i.L)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const d=new r.r("EventManagerPlugins");let p=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i<n.length;i++){const e=n[i];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error("No event manager plugin found for event "+t)}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(d),r.Xb(r.A))},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac}),t})();class m{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const r=Object(i.L)().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,n)}}let f=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac}),t})(),b=(()=>{class t extends f{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Object(i.L)().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(i.e))},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac}),t})();const g={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/"},_=/%COMP%/g;function v(t,e,n){for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?v(t,r,n):(r=r.replace(_,t),n.push(r))}return n}function y(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let w=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new C(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case r.S.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new x(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case r.S.Native:case r.S.ShadowDom:return new k(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=v(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(p),r.Xb(b),r.Xb(r.c))},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac}),t})();class C{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(g[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,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const r=g[i];r?t.setAttributeNS(r,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=g[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&r.I.DashCase?t.style.setProperty(e,n,i&r.I.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&r.I.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,y(n)):this.eventManager.addEventListener(t,e,y(n))}}class x extends C{constructor(t,e,n,i){super(t),this.component=n;const r=v(i+"-"+n.id,n.styles,[]);e.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(_,i+"-"+n.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(_,t)}(i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class k extends C{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=i,this.shadowRoot=i.encapsulation===r.S.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=v(i.id,i.styles,[]);for(let r=0;r<s.length;r++){const t=document.createElement("style");t.textContent=s[r],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let O=(()=>{class t extends m{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(i.e))},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac}),t})();const S=["alt","control","meta","shift"],E={"\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"},T={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"},A={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let I=(()=>{class t extends m{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const s=t.parseEventName(n),o=t.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(i.L)().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const r=t._normalizeKey(n.pop());let s="";if(S.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),s+=t+".")}),s+=r,0!=n.length||0===r.length)return null;const o={};return o.domEventName=i,o.fullKey=s,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&T.hasOwnProperty(e)&&(e=T[e]))}return E[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),S.forEach(i=>{i!=n&&(0,A[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return r=>{t.getEventFullKey(r)===e&&i.runGuarded(()=>n(r))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(i.e))},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac}),t})(),D=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Jb)({factory:function(){return Object(r.Xb)(j)},token:t,providedIn:"root"}),t})();function P(t){return new j(t.get(i.e))}let j=(()=>{class t extends D{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case r.K.NONE:return e;case r.K.HTML:return Object(r.fb)(e,"HTML")?Object(r.xb)(e):Object(r.db)(this._doc,String(e));case r.K.STYLE:return Object(r.fb)(e,"Style")?Object(r.xb)(e):e;case r.K.SCRIPT:if(Object(r.fb)(e,"Script"))return Object(r.xb)(e);throw new Error("unsafe value used in a script context");case r.K.URL:return Object(r.pb)(e),Object(r.fb)(e,"URL")?Object(r.xb)(e):Object(r.eb)(String(e));case r.K.RESOURCE_URL:if(Object(r.fb)(e,"ResourceURL"))return Object(r.xb)(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return Object(r.gb)(t)}bypassSecurityTrustStyle(t){return Object(r.jb)(t)}bypassSecurityTrustScript(t){return Object(r.ib)(t)}bypassSecurityTrustUrl(t){return Object(r.kb)(t)}bypassSecurityTrustResourceUrl(t){return Object(r.hb)(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(i.e))},t.\u0275prov=Object(r.Jb)({factory:function(){return P(Object(r.Xb)(r.o))},token:t,providedIn:"root"}),t})();const F=[{provide:r.C,useValue:i.K},{provide:r.D,useValue:function(){o.makeCurrent(),h.init()},multi:!0},{provide:i.e,useFactory:function(){return Object(r.vb)(document),document},deps:[]}],M=Object(r.T)(r.Y,"browser",F),R=[[],{provide:r.bb,useValue:"root"},{provide:r.m,useFactory:function(){return new r.m},deps:[]},{provide:d,useClass:O,multi:!0,deps:[i.e,r.A,r.C]},{provide:d,useClass:I,multi:!0,deps:[i.e]},[],{provide:w,useClass:w,deps:[p,b,r.c]},{provide:r.H,useExisting:w},{provide:f,useExisting:b},{provide:b,useClass:b,deps:[i.e]},{provide:r.O,useClass:r.O,deps:[r.A]},{provide:p,useClass:p,deps:[d,r.A]},[]];let N=(()=>{class t{constructor(t){if(t)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:t,providers:[{provide:r.c,useValue:e.appId},{provide:l,useExisting:r.c},u]}}}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)(r.Xb(t,12))},providers:R,imports:[i.c,r.f]}),t})();function L(){return new B(Object(r.Xb)(i.e))}let B=(()=>{class t{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(i.e))},t.\u0275prov=Object(r.Jb)({factory:L,token:t,providedIn:"root"}),t})();"undefined"!=typeof window&&window},jpss:function(t,e){!function(t){t.languages.php=t.languages.extend("clike",{keyword:/\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|class|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|eval|exit|extends|final|finally|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|new|or|parent|print|private|protected|public|require|require_once|return|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,boolean:{pattern:/\b(?:false|true)\b/i,alias:"constant"},constant:[/\b[A-Z_][A-Z0-9_]*\b/,/\b(?:null)\b/i],comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0}}),t.languages.insertBefore("php","string",{"shell-comment":{pattern:/(^|[^\\])#.*/,lookbehind:!0,alias:"comment"}}),t.languages.insertBefore("php","comment",{delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"}}),t.languages.insertBefore("php","keyword",{variable:/\$+(?:\w+\b|(?={))/i,package:{pattern:/(\\|namespace\s+|use\s+)[\w\\]+/,lookbehind:!0,inside:{punctuation:/\\/}}}),t.languages.insertBefore("php","operator",{property:{pattern:/(->)[\w]+/,lookbehind:!0}});var e={pattern:/{\$(?:{(?:{[^{}]+}|[^{}]+)}|[^{}])+}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)*)/,lookbehind:!0,inside:t.languages.php};t.languages.insertBefore("php","string",{"nowdoc-string":{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,greedy:!0,alias:"string",inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},"heredoc-string":{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,greedy:!0,alias:"string",inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:e}},"single-quoted-string":{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,alias:"string",inside:{interpolation:e}}}),delete t.languages.php.string,t.hooks.add("before-tokenize",(function(e){/<\?/.test(e.code)&&t.languages["markup-templating"].buildPlaceholders(e,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#)(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|\/\*[\s\S]*?(?:\*\/|$))*?(?:\?>|$)/gi)})),t.hooks.add("after-tokenize",(function(e){t.languages["markup-templating"].tokenizePlaceholders(e,"php")}))}(Prism)},jtHE:function(t,e,n){"use strict";n.d(e,"a",(function(){return b}));var i=n("XNiG"),r=n("3N8a");class s extends r.a{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,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}var o=n("IjjT");class a extends o.a{}const c=new a(s);var l=n("quSY"),u=n("7o/Q"),h=n("WMd4");class d extends u.a{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(d.dispatch,this.delay,new p(t,this.destination)))}_next(t){this.scheduleMessage(h.a.createNext(t))}_error(t){this.scheduleMessage(h.a.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(h.a.createComplete()),this.unsubscribe()}}class p{constructor(t,e){this.notification=t,this.destination=e}}var m=n("9ppp"),f=n("Ylt2");class b extends i.a{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,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){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new g(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,r=n.length;let s;if(this.closed)throw new m.a;if(this.isStopped||this.hasError?s=l.a.EMPTY:(this.observers.push(t),s=new f.a(this,t)),i&&t.add(t=new d(t,i)),e)for(let o=0;o<r&&!t.closed;o++)t.next(n[o]);else for(let o=0;o<r&&!t.closed;o++)t.next(n[o].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),s}_getNow(){return(this.scheduler||c).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,i=this._events,r=i.length;let s=0;for(;s<r&&!(t-i[s].time<n);)s++;return r>e&&(s=Math.max(s,r-e)),s>0&&i.splice(0,s),i}}class g{constructor(t,e){this.time=t,this.value=e}}},k3xQ:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("ofXK"),r=n("fXoL");let s=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[i.c]]}),t})()},kJWO:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},kmQS:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("hLX6"),r=n("PE4B"),s=n.n(r);const o={showLeafArrayIndexes:!0,includeNullValues:!0,mapping:function(t){return"boolean"==typeof t?+t?"1":"0":t}};function a(t){return!(Array.isArray(t)||"object"!=typeof t||!t||t instanceof Blob)}var c=n("2Vo4"),l=n("fXoL");let u=(()=>{class t{constructor(){this.config$=new c.a({})}setMultiple(t){if(!t)return;const e=Object.assign({},this.config$.value);Object.entries(t).forEach(([t,n])=>{"0"!==n&&"1"!==n||(n=parseInt(n)),i.set(t,n,e)}),this.config$.next(e)}merge(t){this.config$.next(s()(this.config$.value,t))}set(t,e){const n=Object.assign({},this.config$.value);i.set(t,e,n),this.config$.next(n)}replace(t){this.config$.next(t)}get(t,e=null){const n=i.pick(t,this.config$.value);return null==n?e:n}getFlat(t){return i.dot(t?this.config$.value[t]:this.config$.value)}all$(){return this.config$.asObservable()}getAll(){return this.config$.value}has(t){return!!i.pick(t,this.config$.value)}getJson(t,e=null){const n=this.get(t,e);return"string"!=typeof n?n:JSON.parse(n)}getBaseUrl(t=!1){return this.has("base_url")&&("production"===this.get("vebto.environment")||t)?this.get("base_url")+"/":document.querySelector("base")?document.querySelector("base").href:window.location.href.split("?")[0].replace(/([^\/]+\.\w+($|\/$))/,"")}getAssetUrl(t,e=!1){let n=this.get("vebto.assetsUrl")||this.getBaseUrl(e);const i=this.get("vebto.assetsPrefix");return"production"===this.get("vebto.environment")&&i&&(n+=i+"/"),n+="assets/",t&&(n+=t),n}save(t){this.setMultiple(t.client);const e={files:t.files};e.client=JSON.stringify(t.client),e.server=JSON.stringify(t.server);const n=function(t,e={}){return function t(e,n,i,r){const s=r||new FormData;let o=0;for(const c in e){if(e.hasOwnProperty(c)){let r=i||c;const l=n.mapping(e[c]);if(i&&a(e)&&(r=i+"["+c+"]"),i&&Array.isArray(e)&&(r=Array.isArray(l)||n.showLeafArrayIndexes?i+"["+o+"]":i+"[]"),Array.isArray(l)||a(l))t(l,n,r,s);else if(l instanceof FileList)for(let t=0;t<l.length;t++)s.append(r+"["+t+"]",l.item(t));else l instanceof Blob?s.append(r,l,l.name):(null===l&&n.includeNullValues||null!==l)&&void 0!==l&&s.append(r,l)}o++}return s}(t,Object.assign(Object.assign({},o),e))}(e);return this.http.post("settings",n)}anySocialLoginEnabled(){return["facebook","google","twitter"].filter(t=>this.get("social."+t+".enable")).length>-1}setHttpClient(t){this.http=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=l.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},kmnG:function(t,e,n){"use strict";n.d(e,"a",(function(){return G})),n.d(e,"b",(function(){return K})),n.d(e,"c",(function(){return N})),n.d(e,"d",(function(){return Y}));var i=n("GU7r"),r=n("ofXK"),s=n("fXoL"),o=n("FKr1"),a=n("8LU1"),c=n("XNiG"),l=n("VRyK"),u=n("xgIS"),h=n("JX91"),d=n("1G5W"),p=n("IzEk"),m=n("R0Ic"),f=n("R1ws"),b=n("cH1L"),g=n("nLfN");const _=["underline"],v=["connectionContainer"],y=["inputContainer"],w=["label"];function C(t,e){1&t&&(s.Rb(0),s.Tb(1,"div",14),s.Ob(2,"div",15),s.Ob(3,"div",16),s.Ob(4,"div",17),s.Sb(),s.Tb(5,"div",18),s.Ob(6,"div",15),s.Ob(7,"div",16),s.Ob(8,"div",17),s.Sb(),s.Qb())}function x(t,e){1&t&&(s.Tb(0,"div",19),s.ic(1,1),s.Sb())}function k(t,e){if(1&t&&(s.Rb(0),s.ic(1,2),s.Tb(2,"span"),s.Hc(3),s.Sb(),s.Qb()),2&t){const t=s.ec(2);s.Bb(3),s.Ic(t._control.placeholder)}}function O(t,e){1&t&&s.ic(0,3,["*ngSwitchCase","true"])}function S(t,e){1&t&&(s.Tb(0,"span",23),s.Hc(1," *"),s.Sb())}function E(t,e){if(1&t){const t=s.Ub();s.Tb(0,"label",20,21),s.ac("cdkObserveContent",(function(){return s.vc(t),s.ec().updateOutlineGap()})),s.Fc(2,k,4,1,"ng-container",12),s.Fc(3,O,1,0,"ng-content",12),s.Fc(4,S,2,0,"span",22),s.Sb()}if(2&t){const t=s.ec();s.Fb("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),s.kc("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),s.Cb("for",t._control.id)("aria-owns",t._control.id),s.Bb(2),s.kc("ngSwitchCase",!1),s.Bb(1),s.kc("ngSwitchCase",!0),s.Bb(1),s.kc("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function T(t,e){1&t&&(s.Tb(0,"div",24),s.ic(1,4),s.Sb())}function A(t,e){if(1&t&&(s.Tb(0,"div",25,26),s.Ob(2,"span",27),s.Sb()),2&t){const t=s.ec();s.Bb(2),s.Fb("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function I(t,e){if(1&t&&(s.Tb(0,"div"),s.ic(1,5),s.Sb()),2&t){const t=s.ec();s.kc("@transitionMessages",t._subscriptAnimationState)}}function D(t,e){if(1&t&&(s.Tb(0,"div",31),s.Hc(1),s.Sb()),2&t){const t=s.ec(2);s.kc("id",t._hintLabelId),s.Bb(1),s.Ic(t.hintLabel)}}function P(t,e){if(1&t&&(s.Tb(0,"div",28),s.Fc(1,D,2,2,"div",29),s.ic(2,6),s.Ob(3,"div",30),s.ic(4,7),s.Sb()),2&t){const t=s.ec();s.kc("@transitionMessages",t._subscriptAnimationState),s.Bb(1),s.kc("ngIf",t.hintLabel)}}const j=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],F=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],M=new s.r("MatError"),R={transitionMessages:Object(m.m)("transitionMessages",[Object(m.j)("enter",Object(m.k)({opacity:1,transform:"translateY(0%)"})),Object(m.l)("void => enter",[Object(m.k)({opacity:0,transform:"translateY(-100%)"}),Object(m.e)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let N=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Ib({type:t}),t})();function L(t){return Error(`A hint was already declared for 'align="${t}"'.`)}const B=new s.r("MatHint");let H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Ib({type:t,selectors:[["mat-label"]]}),t})(),V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Ib({type:t,selectors:[["mat-placeholder"]]}),t})();const z=new s.r("MatPrefix"),U=new s.r("MatSuffix");let $=0;class X{constructor(t){this._elementRef=t}}const q=Object(o.v)(X,"primary"),W=new s.r("MAT_FORM_FIELD_DEFAULT_OPTIONS"),G=new s.r("MatFormField");let K=(()=>{class t extends q{constructor(t,e,n,i,r,s,o,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this._defaults=r,this._platform=s,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new c.a,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+$++,this._labelId="mat-form-field-label-"+$++,this._labelOptions=n||{},this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=r&&r.appearance?r.appearance:"legacy",this._hideRequiredMarker=!(!r||null==r.hideRequiredMarker)&&r.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=Object(a.c)(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+t.controlType),t.stateChanges.pipe(Object(h.a)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Object(d.a)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe(Object(d.a)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Object(l.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Object(h.a)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Object(h.a)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Object(d.a)(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(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_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,Object(u.a)(this._label.nativeElement,"transitionend").pipe(Object(p.a)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){if(this._hintChildren){let t,e;this._hintChildren.forEach(n=>{if("start"===n.align){if(t||this.hintLabel)throw L("start");t=n}else if("end"===n.align){if(e)throw L("end");e=n}})}}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if("hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,n=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&(t=this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,n=0;const i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),s=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const r=i.getBoundingClientRect();if(0===r.width&&0===r.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const s=this._getStartEnd(r),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let c=0;for(let t=0;t<o.length;t++)c+=o[t].offsetWidth;e=Math.abs(a-s)-5,n=c>0?.75*c+10:0}for(let o=0;o<r.length;o++)r[o].style.width=e+"px";for(let o=0;o<s.length;o++)s[o].style.width=n+"px";this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(t){return this._dir&&"rtl"===this._dir.value?t.right:t.left}_isAttachedToDOM(){const t=this._elementRef.nativeElement;if(t.getRootNode){const e=t.getRootNode();return e&&e!==t}return document.documentElement.contains(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.l),s.Nb(s.h),s.Nb(o.d,8),s.Nb(b.c,8),s.Nb(W,8),s.Nb(g.a),s.Nb(s.A),s.Nb(f.a,8))},t.\u0275cmp=s.Hb({type:t,selectors:[["mat-form-field"]],contentQueries:function(t,e,n){var i;1&t&&(s.Gb(n,N,!0),s.Ac(n,N,!0),s.Gb(n,H,!0),s.Ac(n,H,!0),s.Gb(n,V,!0),s.Gb(n,M,!0),s.Gb(n,B,!0),s.Gb(n,z,!0),s.Gb(n,U,!0)),2&t&&(s.rc(i=s.bc())&&(e._controlNonStatic=i.first),s.rc(i=s.bc())&&(e._controlStatic=i.first),s.rc(i=s.bc())&&(e._labelChildNonStatic=i.first),s.rc(i=s.bc())&&(e._labelChildStatic=i.first),s.rc(i=s.bc())&&(e._placeholderChild=i.first),s.rc(i=s.bc())&&(e._errorChildren=i),s.rc(i=s.bc())&&(e._hintChildren=i),s.rc(i=s.bc())&&(e._prefixChildren=i),s.rc(i=s.bc())&&(e._suffixChildren=i))},viewQuery:function(t,e){var n;1&t&&(s.Nc(_,!0),s.Bc(v,!0),s.Nc(y,!0),s.Nc(w,!0)),2&t&&(s.rc(n=s.bc())&&(e.underlineRef=n.first),s.rc(n=s.bc())&&(e._connectionContainerRef=n.first),s.rc(n=s.bc())&&(e._inputContainerRef=n.first),s.rc(n=s.bc())&&(e._label=n.first))},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(t,e){2&t&&s.Fb("mat-form-field-appearance-standard","standard"==e.appearance)("mat-form-field-appearance-fill","fill"==e.appearance)("mat-form-field-appearance-outline","outline"==e.appearance)("mat-form-field-appearance-legacy","legacy"==e.appearance)("mat-form-field-invalid",e._control.errorState)("mat-form-field-can-float",e._canLabelFloat())("mat-form-field-should-float",e._shouldLabelFloat())("mat-form-field-has-label",e._hasFloatingLabel())("mat-form-field-hide-placeholder",e._hideControlPlaceholder())("mat-form-field-disabled",e._control.disabled)("mat-form-field-autofilled",e._control.autofilled)("mat-focused",e._control.focused)("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)("ng-untouched",e._shouldForward("untouched"))("ng-touched",e._shouldForward("touched"))("ng-pristine",e._shouldForward("pristine"))("ng-dirty",e._shouldForward("dirty"))("ng-valid",e._shouldForward("valid"))("ng-invalid",e._shouldForward("invalid"))("ng-pending",e._shouldForward("pending"))("_mat-animation-noopable",!e._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[s.Ab([{provide:G,useExisting:t}]),s.yb],ngContentSelectors:F,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(t,e){1&t&&(s.jc(j),s.Tb(0,"div",0),s.Tb(1,"div",1,2),s.ac("click",(function(t){return e._control.onContainerClick&&e._control.onContainerClick(t)})),s.Fc(3,C,9,0,"ng-container",3),s.Fc(4,x,2,0,"div",4),s.Tb(5,"div",5,6),s.ic(7),s.Tb(8,"span",7),s.Fc(9,E,5,16,"label",8),s.Sb(),s.Sb(),s.Fc(10,T,2,0,"div",9),s.Sb(),s.Fc(11,A,3,4,"div",10),s.Tb(12,"div",11),s.Fc(13,I,2,1,"div",12),s.Fc(14,P,5,2,"div",13),s.Sb(),s.Sb()),2&t&&(s.Bb(3),s.kc("ngIf","outline"==e.appearance),s.Bb(1),s.kc("ngIf",e._prefixChildren.length),s.Bb(5),s.kc("ngIf",e._hasFloatingLabel()),s.Bb(1),s.kc("ngIf",e._suffixChildren.length),s.Bb(1),s.kc("ngIf","outline"!=e.appearance),s.Bb(1),s.kc("ngSwitch",e._getDisplayedMessages()),s.Bb(1),s.kc("ngSwitchCase","error"),s.Bb(1),s.kc("ngSwitchCase","hint"))},directives:[r.t,r.x,r.y,i.a],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:scaleX(1);transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[R.transitionMessages]},changeDetection:0}),t})(),Y=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)},imports:[[r.c,o.h,i.c],o.h]}),t})()},lJxs:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("7o/Q");function r(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new s(t,e))}}class s{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.project,this.thisArg))}}class o extends i.a{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},mWN8:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("lJxs"),r=n("fXoL"),s=n("LRXf");let o=(()=>{class t{constructor(t){this.http=t}get(t,e){return this.http.get("users/"+t,e)}getAll(e={}){return this.http.get(t.BASE_URI,e).pipe(Object(i.a)(t=>t.pagination.data))}create(t){return this.http.post("users",t)}update(e,n){return this.http.put(`${t.BASE_URI}/${e}`,n)}changePassword(e,n){return this.http.post(`${t.BASE_URI}/${e}/password/change`,n)}attachRoles(e,n={}){return this.http.post(`${t.BASE_URI}/${e}/roles/attach`,n)}detachRoles(e,n={}){return this.http.post(`${t.BASE_URI}/${e}/roles/detach`,n)}addPermissions(e,n={}){return this.http.post(`${t.BASE_URI}/${e}/permissions/add`,n)}removePermissions(e,n={}){return this.http.post(`${t.BASE_URI}/${e}/permissions/remove`,n)}uploadAvatar(e,n){const i=new FormData;return i.append("file",n[0].native),this.http.post(`${t.BASE_URI}/${e}/avatar`,i)}deleteAvatar(e){return this.http.delete(`${t.BASE_URI}/${e}/avatar`)}delete(e){return this.http.delete(`${t.BASE_URI}/${e}`)}syncTags(t,e){return this.http.post("users/"+t+"/tags/sync",e)}updateDetails(t,e){return this.http.put("users/"+t+"/details",e)}addEmail(t,e){return this.http.post("users/"+t+"/emails/attach",e)}removeEmail(t,e){return this.http.post("users/"+t+"/emails/detach",e)}}return t.BASE_URI="users",t.\u0275fac=function(e){return new(e||t)(r.Xb(s.a))},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},mrSG:function(t,e,n){"use strict";function i(t,e,n,i){return new(n||(n=Promise))((function(r,s){function o(t){try{c(i.next(t))}catch(e){s(e)}}function a(t){try{c(i.throw(t))}catch(e){s(e)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,a)}c((i=i.apply(t,e||[])).next())}))}n.d(e,"a",(function(){return i}))},n6bG:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.d(e,"a",(function(){return i}))},nLfN:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return g})),n.d(e,"d",(function(){return b})),n.d(e,"e",(function(){return u})),n.d(e,"f",(function(){return m})),n.d(e,"g",(function(){return f}));var i=n("fXoL"),r=n("ofXK");let s;try{s="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(_){s=!1}let o,a=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Object(r.I)(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&&!s)&&"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 t.\u0275fac=function(e){return new(e||t)(i.Xb(i.C))},t.\u0275prov=Object(i.Jb)({factory:function(){return new t(Object(i.Xb)(i.C))},token:t,providedIn:"root"}),t})(),c=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)}}),t})();const l=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function u(){if(o)return o;if("object"!=typeof document||!document)return o=new Set(l),o;let t=document.createElement("input");return o=new Set(l.filter(e=>(t.setAttribute("type",e),t.type===e))),o}let h,d,p;function m(t){return function(){if(null==h&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>h=!0}))}finally{h=h||!1}return h}()?t:!!t.capture}function f(){return!("object"!=typeof document||!("scrollBehavior"in document.documentElement.style))}function b(){if("object"!=typeof document||!document)return 0;if(null==d){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",t.appendChild(n),document.body.appendChild(t),d=0,0===t.scrollLeft&&(t.scrollLeft=1,d=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return d}function g(t){if(function(){if(null==p){const t="undefined"!=typeof document?document.head:null;p=!(!t||!t.createShadowRoot&&!t.attachShadow)}return p}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}},nPOm:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=new(n("fXoL").r)("OVERLAY_PANEL_DATA")},nQeM:function(t,e,n){"use strict";n.d(e,"a",(function(){return T}));var i=n("f9yG"),r=n("Wf9w");function s(t){if(-1===t.indexOf("?"))return;-1===t.indexOf("//")&&(t="https://"+t);const e=new URL(t).searchParams,n={};return e.forEach((t,e)=>{n[e]=t}),n}var o=n("zP0r"),a=n("/uUt"),c=n("fXoL"),l=n("kmQS"),u=n("twBr"),h=n("LFZc"),d=n("ofXK"),p=n("Rd8u"),m=n("NFeN"),f=n("tyNb");function b(t,e){if(1&t&&(c.Tb(0,"div",2),c.Hc(1),c.Sb()),2&t){const t=c.ec();c.Bb(1),c.Ic(t.menu.name)}}function g(t,e){if(1&t&&c.Ob(0,"mat-icon",10),2&t){const t=c.ec(3).$implicit;c.kc("svgIcon",t.icon)}}function _(t,e){if(1&t&&(c.Tb(0,"a",7),c.Fc(1,g,1,1,"mat-icon",8),c.Tb(2,"span",9),c.Hc(3),c.Sb(),c.Sb()),2&t){const t=c.ec(2).$implicit,e=c.ec();c.Eb("nav-item custom-menu-item link-nav-item ",e.itemClass,""),c.kc("href",t.action,c.xc)("ngClass",e.toSnakeCase(t.label))("target",t.target),c.Bb(1),c.kc("ngIf",t.icon),c.Bb(2),c.Ic(t.label)}}function v(t,e){if(1&t&&c.Ob(0,"mat-icon",10),2&t){const t=c.ec(4).$implicit;c.kc("svgIcon",t.icon)}}const y=function(t){return{exact:t}};function w(t,e){if(1&t&&(c.Tb(0,"a",12),c.Fc(1,v,1,1,"mat-icon",8),c.Tb(2,"span",9),c.Hc(3),c.Sb(),c.Sb()),2&t){const t=c.ec().ngIf,e=c.ec(2).$implicit,n=c.ec();c.Eb("nav-item custom-menu-item route-nav-item ",n.itemClass,""),c.kc("routerLink","/"+t.link)("queryParams",t.queryParams)("ngClass",n.toSnakeCase(e.label))("routerLinkActiveOptions",c.oc(10,y,"/"===e.action||!1!==e.activeExact))("target",e.target),c.Bb(1),c.kc("ngIf",e.icon),c.Bb(2),c.Ic(e.label)}}function C(t,e){1&t&&(c.Rb(0),c.Fc(1,w,4,12,"a",11),c.Qb()),2&t&&(c.Bb(1),c.kc("ngSwitchCase","route"))}function x(t,e){if(1&t&&c.Ob(0,"mat-icon",10),2&t){const t=c.ec(3).$implicit;c.kc("svgIcon",t.icon)}}function k(t,e){if(1&t&&(c.Tb(0,"a",13),c.Fc(1,x,1,1,"mat-icon",8),c.Tb(2,"span",9),c.Hc(3),c.Sb(),c.Sb()),2&t){const t=c.ec(2).$implicit,e=c.ec();c.Eb("nav-item custom-menu-item page-nave-item ",e.itemClass,""),c.kc("routerLink","/pages/"+t.action)("ngClass",e.toSnakeCase(t.label))("routerLinkActiveOptions",c.oc(9,y,!1!==t.activeExact))("target",t.target),c.Bb(1),c.kc("ngIf",t.icon),c.Bb(2),c.Ic(t.label)}}function O(t,e){if(1&t&&(c.Rb(0),c.Rb(1,4),c.Fc(2,_,4,8,"a",5),c.Fc(3,C,2,1,"ng-container",3),c.Fc(4,k,4,11,"a",6),c.Qb(),c.Qb()),2&t){const t=c.ec().$implicit,e=c.ec();c.Bb(1),c.kc("ngSwitch",e.getItemType(t)),c.Bb(1),c.kc("ngSwitchCase","link"),c.Bb(1),c.kc("ngIf",e.parseRoute(t.action)),c.Bb(1),c.kc("ngSwitchCase","page")}}function S(t,e){if(1&t&&(c.Rb(0),c.Fc(1,O,5,4,"ng-container",3),c.Qb()),2&t){const t=e.$implicit,n=c.ec();c.Bb(1),c.kc("ngIf",n.shouldShow(null==t?null:t.condition))}}const E=["*"];let T=(()=>{class t{constructor(t,e,n,r,s){this.settings=t,this.currentUser=e,this.changeDetector=n,this.appearance=r,this.cd=s,this.shouldHide=!1,this.vertical=!1,this.horizontal=!1,this.compact=!1,this.showTitle=!1,this.menu=new i.a,this.subscriptions=[]}ngOnInit(){if(this.initMenu(),this.appearance.active){const t=this.settings.all$().pipe(Object(o.a)(1),("menus",Object(a.a)((t,e)=>t.menus===e.menus))).subscribe(()=>{this.initMenu(),this.cd.markForCheck()});this.subscriptions.push(t)}}ngOnDestroy(){this.subscriptions.forEach(t=>{t&&t.unsubscribe()})}toSnakeCase(t){return Object(r.a)(t)}shouldShow(t){if(!t)return!0;if(Array.isArray(t))return t.every(t=>this.shouldShow(t));if("function"==typeof t)return t(this.currentUser,this.settings);switch(t){case"auth":return this.currentUser.isLoggedIn();case"guest":return!this.currentUser.isLoggedIn();case"admin":return this.currentUser.hasPermission("admin");default:let e=!1;return t.startsWith("!")&&(t=t.substr(1),e=!0),!t.startsWith("permission:")||e!==this.currentUser.hasPermission(t.split(":")[1])}}getItemType(t){return"link"===t.type&&-1===t.action.indexOf("//")||t.action.indexOf(this.settings.getBaseUrl(!0))>-1?"route":t.type}parseRoute(t){return{link:t.split("?")[0],queryParams:s(t)}}initMenu(){if("string"!=typeof this.position)return void(this.menu=new i.a({items:this.position}));const t=this.settings.get("menus"),e=JSON.parse(t);if(!e)return this.shouldHide=!0;const n=e.find(t=>t.position===this.position);if(!n)return this.shouldHide=!0;this.menu=new i.a(n),this.shouldHide=!1}}return t.\u0275fac=function(e){return new(e||t)(c.Nb(l.a),c.Nb(u.a),c.Nb(c.h),c.Nb(h.b),c.Nb(c.h))},t.\u0275cmp=c.Hb({type:t,selectors:[["custom-menu"]],hostVars:8,hostBindings:function(t,e){2&t&&c.Fb("hidden",e.shouldHide)("vertical",e.vertical)("horizontal",e.horizontal)("compact",e.compact)},inputs:{vertical:"vertical",horizontal:"horizontal",compact:"compact",position:"position",showTitle:"showTitle",itemClass:"itemClass"},ngContentSelectors:E,decls:3,vars:2,consts:[["class","menu-title",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"menu-title"],[4,"ngIf"],[3,"ngSwitch"],[3,"class","href","ngClass","target",4,"ngSwitchCase"],["routerLinkActive","active",3,"class","routerLink","ngClass","routerLinkActiveOptions","target",4,"ngSwitchCase"],[3,"href","ngClass","target"],[3,"svgIcon",4,"ngIf"],["trans","",1,"text"],[3,"svgIcon"],["routerLinkActive","active",3,"class","routerLink","queryParams","ngClass","routerLinkActiveOptions","target",4,"ngSwitchCase"],["routerLinkActive","active",3,"routerLink","queryParams","ngClass","routerLinkActiveOptions","target"],["routerLinkActive","active",3,"routerLink","ngClass","routerLinkActiveOptions","target"]],template:function(t,e){1&t&&(c.jc(),c.Fc(0,b,2,1,"div",0),c.Fc(1,S,2,1,"ng-container",1),c.ic(2)),2&t&&(c.kc("ngIf",e.showTitle),c.Bb(1),c.kc("ngForOf",e.menu.items))},directives:[d.t,d.s,d.x,d.y,d.q,p.a,m.a,f.g,f.f],styles:["[_nghost-%COMP%]{white-space:nowrap;max-width:100%}.mat-icon[_ngcontent-%COMP%]{vertical-align:middle;margin-right:8px}.custom-menu-item[_ngcontent-%COMP%]{white-space:nowrap;border-radius:4px;outline:none}.vertical[_nghost-%COMP%]   .custom-menu-item[_ngcontent-%COMP%], .vertical   [_nghost-%COMP%]   .custom-menu-item[_ngcontent-%COMP%]{display:block;color:var(--be-secondary-text);padding:12px 16px;border-left:4px solid transparent;margin-bottom:8px}.vertical[_nghost-%COMP%]   .active[_ngcontent-%COMP%], .vertical   [_nghost-%COMP%]   .active[_ngcontent-%COMP%]{background-color:var(--be-accent-emphasis);border-color:var(--be-accent-default);color:var(--be-text)}.vertical[_nghost-%COMP%]   .text[_ngcontent-%COMP%], .vertical   [_nghost-%COMP%]   .text[_ngcontent-%COMP%]{font-weight:500;text-transform:capitalize}.horizontal[_nghost-%COMP%], .horizontal   [_nghost-%COMP%]{overflow:hidden}.horizontal[_nghost-%COMP%]   .custom-menu-item[_ngcontent-%COMP%], .horizontal   [_nghost-%COMP%]   .custom-menu-item[_ngcontent-%COMP%]{display:inline-block;padding:5px 15px;color:inherit}.horizontal[_nghost-%COMP%]   .custom-menu-item[_ngcontent-%COMP%]:hover, .horizontal   [_nghost-%COMP%]   .custom-menu-item[_ngcontent-%COMP%]:hover{text-decoration:underline}.horizontal[_nghost-%COMP%]   .active[_ngcontent-%COMP%], .horizontal   [_nghost-%COMP%]   .active[_ngcontent-%COMP%], .horizontal[_nghost-%COMP%]   .router-link-active[_ngcontent-%COMP%], .horizontal   [_nghost-%COMP%]   .router-link-active[_ngcontent-%COMP%]{color:var(--be-accent-contrast);background-color:var(--be-primary-lighter)}.color-accent[_nghost-%COMP%]   .active[_ngcontent-%COMP%], .color-accent   [_nghost-%COMP%]   .active[_ngcontent-%COMP%], .color-accent[_nghost-%COMP%]   .router-link-active[_ngcontent-%COMP%], .color-accent   [_nghost-%COMP%]   .router-link-active[_ngcontent-%COMP%]{color:var(--be-accent-contrast);background-color:var(--be-accent-emphasis)}.compact[_nghost-%COMP%]   .text[_ngcontent-%COMP%], .compact   [_nghost-%COMP%]   .text[_ngcontent-%COMP%]{display:none}"],changeDetection:0}),t})()},nYR2:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("7o/Q"),r=n("quSY");function s(t){return e=>e.lift(new o(t))}class o{constructor(t){this.callback=t}call(t,e){return e.subscribe(new a(t,this.callback))}}class a extends i.a{constructor(t,e){super(t),this.add(new r.a(e))}}},ngJS:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>e=>{for(let n=0,i=t.length;n<i&&!e.closed;n++)e.next(t[n]);e.complete()}},oJgS:function(t,e,n){"use strict";function i(t=36){let e="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let i=0;i<t;i++)e+=n.charAt(Math.floor(Math.random()*n.length));return e}n.d(e,"a",(function(){return i}))},oVOl:function(t,e,n){"use strict";function i(t,e){const n=new FormData;return e&&Object.keys(e).forEach(t=>{let i=e[t];null===i&&(i=""),r(n,t,i)}),r(n,"file",t),n}function r(t,e,n){t.set?t.set(e,n):t.append(e,n)}n.d(e,"a",(function(){return w}));var s=n("JfjL"),o=n("lJxs"),a=n("fXoL"),c=n("LRXf"),l=n("LRne"),u=n("Cfvw"),h=n("eIep"),d=n("5+tZ"),p=n("vkgz"),m=n("pLZG"),f=n("JX91"),b=n("tk/3"),g=n("EBs8"),_=n("WAq7"),v=n("kmQS");let y=(()=>{class t{constructor(t,e){this.http=t,this.settings=e,this.uploadedChunksCount=0,this.sliceSize=this.settings.get("uploads.chunk_size",5242880)}start(t,e={}){return this.reset(t,e).pipe(Object(h.a)(e=>{const n=Date.now(),i=e.uploadedChunks.reduce((t,e)=>t+e.size,0);let r=i;return e.fileEntry?Object(l.a)(this.transformUploadSessionResponse(e)):Object(u.a)(this.chunks).pipe(Object(d.a)(e=>{let n=0;return this.http.postWithProgress("uploads/sessions/chunks",e).pipe(Object(o.a)(e=>{if(e.type===b.d.UploadProgress){e.initiallyLoaded=i,e.total=t.size;const s=e.loaded-n;n=e.loaded,e.loaded=r+=s,e.loaded>e.total&&(e.loaded=e.total-1)}return e}))},3),Object(o.a)(t=>Object(s.b)(t,n)),Object(p.a)(t=>{t.name===s.a.COMPLETED&&this.uploadedChunksCount++}),Object(m.a)(t=>t.name===s.a.PROGRESS||this.isLastChunkCompletedEvent(t)),Object(h.a)(t=>this.isLastChunkCompletedEvent(t)?this.fetchUploadSession().pipe(Object(o.a)(t=>this.transformUploadSessionResponse(t))):Object(l.a)(t)),Object(f.a)(this.getInitialUploadProgressEvent()))}))}getInitialUploadProgressEvent(){const t=this.uploadedChunksCount*this.sliceSize;return{type:b.d.UploadProgress,name:s.a.PROGRESS,totalBytes:this.file.size,completedBytes:t,progress:Object(g.a)(t,this.file.size),speed:null,eta:null}}isLastChunkCompletedEvent(t){return t.name===s.a.COMPLETED&&this.uploadedChunksCount===this.totalChunks}transformUploadSessionResponse(t){return{type:b.d.Response,name:s.a.COMPLETED,body:t}}reset(t,e){return this.file=t,this.httParams=e,this.chunks=[],this.uploadedChunksCount=0,this.totalChunks=Math.ceil(this.file.size/this.sliceSize),this.generateFingerprint(),this.generateHttpParams(),this.loadExistingChunks().pipe(Object(p.a)(t=>{this.uploadedChunksCount=t.uploadedChunks.length,this.generateChunks(t.uploadedChunks)}))}loadExistingChunks(){return this.settings.get("uploads.resume")?this.fetchUploadSession():Object(l.a)({uploadedChunks:[],fileEntry:null})}fetchUploadSession(){return this.http.post("uploads/sessions/load",this.httParams)}generateChunks(t=[]){let e=0;for(let n=0;n<this.file.size;n+=this.sliceSize){if(!t.find(t=>t.number===e)){const t=n+this.sliceSize,r=Object.assign(Object.assign({},this.httParams),{_chunkStart:n,_chunkEnd:t,_chunkNumber:e});this.chunks.push(i(this.file.native.slice(n,t),r))}e++}}generateFingerprint(){this.fingerprint=btoa(["be-upload",Object(_.a)(this.file.name,"-",!0),this.file.mime,this.file.size,this.file.lastModified,Object(_.a)(this.file.relativePath,"-",!0)].join("|"))}generateHttpParams(){this.httParams=Object.assign(Object.assign({},this.httParams),{_chunkCount:this.totalChunks,_originalFileName:this.file.name,_originalFileSize:this.file.size,_fingerprint:this.fingerprint})}}return t.\u0275fac=function(e){return new(e||t)(a.Xb(c.a),a.Xb(v.a))},t.\u0275prov=a.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),w=(()=>{class t{constructor(t,e,n){this.http=t,this.chunkedUpload=e,this.settings=n}getFileContents(e){return this.http.get(`${t.BASE_URI}/${e.id}}`,null,{responseType:"text"})}delete(e){return this.http.delete(t.BASE_URI,e)}upload(e,n={}){if(e.relativePath&&(n.httpParams.relativePath=e.relativePath),this.settings.get("uploads.chunk")&&e.size>this.chunkedUpload.sliceSize)return this.chunkedUpload.start(e,n.httpParams);{const r=Date.now();return this.http.postWithProgress(n.uri||t.BASE_URI,i(e.native,n.httpParams)).pipe(Object(o.a)(t=>Object(s.b)(t,r)))}}}return t.BASE_URI="uploads",t.\u0275fac=function(e){return new(e||t)(a.Xb(c.a),a.Xb(y),a.Xb(v.a))},t.\u0275prov=a.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},ofXK:function(t,e,n){"use strict";n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return Pt})),n.d(e,"c",(function(){return Yt})),n.d(e,"d",(function(){return qt})),n.d(e,"e",(function(){return c})),n.d(e,"f",(function(){return Nt})),n.d(e,"g",(function(){return $t})),n.d(e,"h",(function(){return C})),n.d(e,"i",(function(){return Bt})),n.d(e,"j",(function(){return Ht})),n.d(e,"k",(function(){return Vt})),n.d(e,"l",(function(){return zt})),n.d(e,"m",(function(){return h})),n.d(e,"n",(function(){return x})),n.d(e,"o",(function(){return _})),n.d(e,"p",(function(){return jt})),n.d(e,"q",(function(){return ht})),n.d(e,"r",(function(){return dt})),n.d(e,"s",(function(){return mt})),n.d(e,"t",(function(){return bt})),n.d(e,"u",(function(){return xt})),n.d(e,"v",(function(){return kt})),n.d(e,"w",(function(){return Ot})),n.d(e,"x",(function(){return yt})),n.d(e,"y",(function(){return wt})),n.d(e,"z",(function(){return Ct})),n.d(e,"A",(function(){return St})),n.d(e,"B",(function(){return w})),n.d(e,"C",(function(){return Xt})),n.d(e,"D",(function(){return l})),n.d(e,"E",(function(){return Kt})),n.d(e,"F",(function(){return Mt})),n.d(e,"G",(function(){return Rt})),n.d(e,"H",(function(){return Zt})),n.d(e,"I",(function(){return Qt})),n.d(e,"J",(function(){return a})),n.d(e,"K",(function(){return Jt})),n.d(e,"L",(function(){return s})),n.d(e,"M",(function(){return ut})),n.d(e,"N",(function(){return o}));var i=n("fXoL");let r=null;function s(){return r}function o(t){r||(r=t)}class a{}const c=new i.r("DocumentToken");let l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Jb)({factory:u,token:t,providedIn:"platform"}),t})();function u(){return Object(i.Xb)(d)}const h=new i.r("Location Initialized");let d=(()=>{class t extends l{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=s().getLocation(),this._history=s().getHistory()}getBaseHrefFromDOM(){return s().getBaseHref(this._doc)}onPopState(t){s().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){s().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}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(t){this.location.pathname=t}pushState(t,e,n){p()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){p()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(c))},t.\u0275prov=Object(i.Jb)({factory:m,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function m(){return new d(Object(i.Xb)(c))}function f(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function b(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function g(t){return t&&"?"!==t[0]?"?"+t:t}let _=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Jb)({factory:v,token:t,providedIn:"root"}),t})();function v(t){const e=Object(i.Xb)(c).location;return new w(Object(i.Xb)(l),e&&e.origin||"")}const y=new i.r("appBaseHref");let w=(()=>{class t extends _{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)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=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return f(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+g(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const r=this.prepareExternalUrl(n+g(i));this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){const r=this.prepareExternalUrl(n+g(i));this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(l),i.Xb(y,8))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t extends _{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=f(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let r=this.prepareExternalUrl(n+g(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){let r=this.prepareExternalUrl(n+g(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(l),i.Xb(y,8))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac}),t})(),x=(()=>{class t{constructor(t,e){this._subject=new i.n,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=b(O(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+g(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,O(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+g(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+g(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(_),i.Xb(l))},t.normalizeQueryParams=g,t.joinWithSlash=f,t.stripTrailingSlash=b,t.\u0275prov=Object(i.Jb)({factory:k,token:t,providedIn:"root"}),t})();function k(){return new x(Object(i.Xb)(_),Object(i.Xb)(l))}function O(t){return t.replace(/\/index.html$/,"")}const S={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var E=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),T=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),A=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),I=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),D=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),P=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function j(t,e){return H(Object(i.lb)(t)[i.cb.DateFormat],e)}function F(t,e){return H(Object(i.lb)(t)[i.cb.TimeFormat],e)}function M(t,e){return H(Object(i.lb)(t)[i.cb.DateTimeFormat],e)}function R(t,e){const n=Object(i.lb)(t),r=n[i.cb.NumberSymbols][e];if(void 0===r){if(e===P.CurrencyDecimal)return n[i.cb.NumberSymbols][P.Decimal];if(e===P.CurrencyGroup)return n[i.cb.NumberSymbols][P.Group]}return r}function N(t,e){return Object(i.lb)(t)[i.cb.NumberFormats][e]}const L=i.ob;function B(t){if(!t[i.cb.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[i.cb.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function H(t,e){for(let n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function V(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const z=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,U={},$=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var X=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),q=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),W=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function G(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,(function(t,n){return null!=e&&n in e?e[n]:t}))),t}function K(t,e,n="-",i,r){let s="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,s=n));let o=String(t);for(;o.length<e;)o="0"+o;return i&&(o=o.substr(o.length-e)),s+o}function Y(t,e,n=0,i=!1,r=!1){return function(s,o){let a=function(t,e){switch(t){case q.FullYear:return e.getFullYear();case q.Month:return e.getMonth();case q.Date:return e.getDate();case q.Hours:return e.getHours();case q.Minutes:return e.getMinutes();case q.Seconds:return e.getSeconds();case q.FractionalSeconds:return e.getMilliseconds();case q.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,s);if((n>0||a>-n)&&(a+=n),t===q.Hours)0===a&&-12===n&&(a=12);else if(t===q.FractionalSeconds)return c=e,K(a,3).substr(0,c);var c;const l=R(o,P.MinusSign);return K(a,e,l,i,r)}}function J(t,e,n=A.Format,r=!1){return function(s,o){return function(t,e,n,r,s,o){switch(n){case W.Months:return function(t,e,n){const r=Object(i.lb)(t),s=H([r[i.cb.MonthsFormat],r[i.cb.MonthsStandalone]],e);return H(s,n)}(e,s,r)[t.getMonth()];case W.Days:return function(t,e,n){const r=Object(i.lb)(t),s=H([r[i.cb.DaysFormat],r[i.cb.DaysStandalone]],e);return H(s,n)}(e,s,r)[t.getDay()];case W.DayPeriods:const a=t.getHours(),c=t.getMinutes();if(o){const t=function(t){const e=Object(i.lb)(t);return B(e),(e[i.cb.ExtraData][2]||[]).map(t=>"string"==typeof t?V(t):[V(t[0]),V(t[1])])}(e),n=function(t,e,n){const r=Object(i.lb)(t);B(r);const s=H([r[i.cb.ExtraData][0],r[i.cb.ExtraData][1]],e)||[];return H(s,n)||[]}(e,s,r),o=t.findIndex(t=>{if(Array.isArray(t)){const[e,n]=t,i=a>=e.hours&&c>=e.minutes,r=a<n.hours||a===n.hours&&c<n.minutes;if(e.hours<n.hours){if(i&&r)return!0}else if(i||r)return!0}else if(t.hours===a&&t.minutes===c)return!0;return!1});if(-1!==o)return n[o]}return function(t,e,n){const r=Object(i.lb)(t),s=H([r[i.cb.DayPeriodsFormat],r[i.cb.DayPeriodsStandalone]],e);return H(s,n)}(e,s,r)[a<12?0:1];case W.Eras:return function(t,e){return H(Object(i.lb)(t)[i.cb.Eras],e)}(e,r)[t.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type "+n)}}(s,o,t,e,n,r)}}function Q(t){return function(e,n,i){const r=-1*i,s=R(n,P.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(t){case X.Short:return(r>=0?"+":"")+K(o,2,s)+K(Math.abs(r%60),2,s);case X.ShortGMT:return"GMT"+(r>=0?"+":"")+K(o,1,s);case X.Long:return"GMT"+(r>=0?"+":"")+K(o,2,s)+":"+K(Math.abs(r%60),2,s);case X.Extended:return 0===i?"Z":(r>=0?"+":"")+K(o,2,s)+":"+K(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${t}"`)}}}function Z(t,e=!1){return function(n,i){let r;if(e){const t=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,e=n.getDate();r=1+Math.floor((e+t)/7)}else{const t=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,1+(e<=4?4:11)-e)}(n.getFullYear()),e=(s=n,new Date(s.getFullYear(),s.getMonth(),s.getDate()+(4-s.getDay()))).getTime()-t.getTime();r=1+Math.round(e/6048e5)}var s;return K(r,t,R(i,P.MinusSign))}}const tt={};function et(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function nt(t){return t instanceof Date&&!isNaN(t.valueOf())}const it=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function rt(t,e,n,i,r,s,o=!1){let a="",c=!1;if(isFinite(t)){let l=function(t){let e,n,i,r,s,o=Math.abs(t)+"",a=0;for((n=o.indexOf("."))>-1&&(o=o.replace(".","")),(i=o.search(/e/i))>0?(n<0&&(n=i),n+=+o.slice(i+1),o=o.substring(0,i)):n<0&&(n=o.length),i=0;"0"===o.charAt(i);i++);if(i===(s=o.length))e=[0],n=1;else{for(s--;"0"===o.charAt(s);)s--;for(n-=i,e=[],r=0;i<=s;i++,r++)e[r]=Number(o.charAt(i))}return n>22&&(e=e.splice(0,21),a=n-1,n=1),{digits:e,exponent:a,integerLen:n}}(t);o&&(l=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(l));let u=e.minInt,h=e.minFrac,d=e.maxFrac;if(s){const t=s.match(it);if(null===t)throw new Error(s+" is not a valid digit info");const e=t[1],n=t[3],i=t[5];null!=e&&(u=ot(e)),null!=n&&(h=ot(n)),null!=i?d=ot(i):null!=n&&h>d&&(d=h)}!function(t,e,n){if(e>n)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${n}).`);let i=t.digits,r=i.length-t.integerLen;const s=Math.min(Math.max(e,r),n);let o=s+t.integerLen,a=i[o];if(o>0){i.splice(Math.max(t.integerLen,o));for(let t=o;t<i.length;t++)i[t]=0}else{r=Math.max(0,r),t.integerLen=1,i.length=Math.max(1,o=s+1),i[0]=0;for(let t=1;t<o;t++)i[t]=0}if(a>=5)if(o-1<0){for(let e=0;e>o;e--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[o-1]++;for(;r<Math.max(0,s);r++)i.push(0);let c=0!==s;const l=e+t.integerLen,u=i.reduceRight((function(t,e,n,i){return i[n]=(e+=t)<10?e:e-10,c&&(0===i[n]&&n>=l?i.pop():c=!1),e>=10?1:0}),0);u&&(i.unshift(u),t.integerLen++)}(l,h,d);let p=l.digits,m=l.integerLen;const f=l.exponent;let b=[];for(c=p.every(t=>!t);m<u;m++)p.unshift(0);for(;m<0;m++)p.unshift(0);m>0?b=p.splice(m,p.length):(b=p,p=[0]);const g=[];for(p.length>=e.lgSize&&g.unshift(p.splice(-e.lgSize,p.length).join(""));p.length>e.gSize;)g.unshift(p.splice(-e.gSize,p.length).join(""));p.length&&g.unshift(p.join("")),a=g.join(R(n,i)),b.length&&(a+=R(n,r)+b.join("")),f&&(a+=R(n,P.Exponential)+"+"+f)}else a=R(n,P.Infinity);return a=t<0&&!c?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}function st(t,e="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),r=i[0],s=i[1],o=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],a=o[0],c=o[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let u=0;u<c.length;u++){const t=c.charAt(u);"0"===t?n.minFrac=n.maxFrac=u+1:"#"===t?n.maxFrac=u+1:n.posSuf+=t}const l=a.split(",");if(n.gSize=l[1]?l[1].length:0,n.lgSize=l[2]||l[1]?(l[2]||l[1]).length:0,s){const t=r.length-n.posPre.length-n.posSuf.length,e=s.indexOf("#");n.negPre=s.substr(0,e).replace(/'/g,""),n.negSuf=s.substr(e+t).replace(/'/g,"")}else n.negPre=e+n.posPre,n.negSuf=n.posSuf;return n}function ot(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class at{}function ct(t,e,n,i){let r="="+t;if(e.indexOf(r)>-1)return r;if(r=n.getPluralCategory(t,i),e.indexOf(r)>-1)return r;if(e.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${t}"`)}let lt=(()=>{class t extends at{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(L(e||this.locale)(t)){case T.Zero:return"zero";case T.One:return"one";case T.Two:return"two";case T.Few:return"few";case T.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(i.v))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac}),t})();function ut(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,r]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(r)}return null}let ht=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Object(i.rb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(i.wb)(t.item));this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.t),i.Nb(i.u),i.Nb(i.l),i.Nb(i.G))},t.\u0275dir=i.Ib({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})(),dt=(()=>{class t{constructor(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}ngOnChanges(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const e=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const t=e.get(i.y);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(t.injector)}else this._moduleRef=null;const n=(this._moduleRef?this._moduleRef.componentFactoryResolver:e.get(i.j)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(n,this._viewContainerRef.length,e,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.R))},t.\u0275dir=i.Ib({type:t,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[i.zb]}),t})();class pt{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}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 mt=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){Object(i.X)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new pt(null,this._ngForOf,-1,-1),null===i?void 0:i),r=new ft(t,n);e.push(r)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const r=this._viewContainer.get(n);this._viewContainer.move(r,i);const s=new ft(t,r);e.push(s)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,i=this._viewContainer.length;n<i;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=i,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.R),i.Nb(i.N),i.Nb(i.t))},t.\u0275dir=i.Ib({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class ft{constructor(t,e){this.record=t,this.view=e}}let bt=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new gt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){_t("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){_t("ngIfElse",t),this._elseTemplateRef=t,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(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.R),i.Nb(i.N))},t.\u0275dir=i.Ib({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class gt{constructor(){this.$implicit=null,this.ngIf=null}}function _t(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Object(i.wb)(e)}'.`)}class vt{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 yt=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Ib({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),wt=(()=>{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new vt(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.R),i.Nb(i.N),i.Nb(yt,1))},t.\u0275dir=i.Ib({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),Ct=(()=>{class t{constructor(t,e,n){n._addDefault(new vt(t,e))}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.R),i.Nb(i.N),i.Nb(yt,1))},t.\u0275dir=i.Ib({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),xt=(()=>{class t{constructor(t){this._localization=t,this._caseViews={}}set ngPlural(t){this._switchValue=t,this._updateView()}addCase(t,e){this._caseViews[t]=e}_updateView(){this._clearViews();const t=Object.keys(this._caseViews),e=ct(this._switchValue,t,this._localization);this._activateView(this._caseViews[e])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(t){t&&(this._activeView=t,this._activeView.create())}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(at))},t.\u0275dir=i.Ib({type:t,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),t})(),kt=(()=>{class t{constructor(t,e,n,i){this.value=t;const r=!isNaN(Number(t));i.addCase(r?"="+t:t,new vt(n,e))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb("ngPluralCase"),i.Nb(i.N),i.Nb(i.R),i.Nb(xt,1))},t.\u0275dir=i.Ib({type:t,selectors:[["","ngPluralCase",""]]}),t})(),Ot=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,i]=t.split(".");null!=(e=null!=e&&i?`${e}${i}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.l),i.Nb(i.u),i.Nb(i.G))},t.\u0275dir=i.Ib({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),St=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.R))},t.\u0275dir=i.Ib({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[i.zb]}),t})();function Et(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${Object(i.wb)(t)}'`)}class Tt{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class At{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const It=new At,Dt=new Tt;let Pt=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(Object(i.tb)(e))return It;if(Object(i.sb)(e))return Dt;throw Et(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(i.Zb())},t.\u0275pipe=i.Mb({name:"async",type:t,pure:!1}),t})(),jt=(()=>{class t{transform(e){if(!e)return e;if("string"!=typeof e)throw Et(t,e);return e.toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Mb({name:"lowercase",type:t,pure:!0}),t})();const Ft=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g;let Mt=(()=>{class t{transform(e){if(!e)return e;if("string"!=typeof e)throw Et(t,e);return e.replace(Ft,t=>t[0].toUpperCase()+t.substr(1).toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Mb({name:"titlecase",type:t,pure:!0}),t})(),Rt=(()=>{class t{transform(e){if(!e)return e;if("string"!=typeof e)throw Et(t,e);return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Mb({name:"uppercase",type:t,pure:!0}),t})(),Nt=(()=>{class t{constructor(t){this.locale=t}transform(e,n="mediumDate",r,s){if(null==e||""===e||e!=e)return null;try{return function(t,e,n,r){let s=function(t){if(nt(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){const[e,n,i]=t.split("-").map(t=>+t);return new Date(e,n-1,i)}let n;if(n=t.match(z))return function(t){const e=new Date(0);let n=0,i=0;const r=t[8]?e.setUTCFullYear:e.setFullYear,s=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-n,a=Number(t[5]||0)-i,c=Number(t[6]||0),l=Math.round(1e3*parseFloat("0."+(t[7]||0)));return s.call(e,o,a,c,l),e}(n)}const e=new Date(t);if(!nt(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=function t(e,n){const r=function(t){return Object(i.lb)(t)[i.cb.LocaleId]}(e);if(U[r]=U[r]||{},U[r][n])return U[r][n];let s="";switch(n){case"shortDate":s=j(e,D.Short);break;case"mediumDate":s=j(e,D.Medium);break;case"longDate":s=j(e,D.Long);break;case"fullDate":s=j(e,D.Full);break;case"shortTime":s=F(e,D.Short);break;case"mediumTime":s=F(e,D.Medium);break;case"longTime":s=F(e,D.Long);break;case"fullTime":s=F(e,D.Full);break;case"short":const n=t(e,"shortTime"),i=t(e,"shortDate");s=G(M(e,D.Short),[n,i]);break;case"medium":const r=t(e,"mediumTime"),o=t(e,"mediumDate");s=G(M(e,D.Medium),[r,o]);break;case"long":const a=t(e,"longTime"),c=t(e,"longDate");s=G(M(e,D.Long),[a,c]);break;case"full":const l=t(e,"fullTime"),u=t(e,"fullDate");s=G(M(e,D.Full),[l,u])}return s&&(U[r][n]=s),s}(n,e)||e;let o,a=[];for(;e;){if(o=$.exec(e),!o){a.push(e);break}{a=a.concat(o.slice(1));const t=a.pop();if(!t)break;e=t}}let c=s.getTimezoneOffset();r&&(c=et(r,c),s=function(t,e,n){const i=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(et(e,i)-i))}(s,r));let l="";return a.forEach(t=>{const e=function(t){if(tt[t])return tt[t];let e;switch(t){case"G":case"GG":case"GGG":e=J(W.Eras,I.Abbreviated);break;case"GGGG":e=J(W.Eras,I.Wide);break;case"GGGGG":e=J(W.Eras,I.Narrow);break;case"y":e=Y(q.FullYear,1,0,!1,!0);break;case"yy":e=Y(q.FullYear,2,0,!0,!0);break;case"yyy":e=Y(q.FullYear,3,0,!1,!0);break;case"yyyy":e=Y(q.FullYear,4,0,!1,!0);break;case"M":case"L":e=Y(q.Month,1,1);break;case"MM":case"LL":e=Y(q.Month,2,1);break;case"MMM":e=J(W.Months,I.Abbreviated);break;case"MMMM":e=J(W.Months,I.Wide);break;case"MMMMM":e=J(W.Months,I.Narrow);break;case"LLL":e=J(W.Months,I.Abbreviated,A.Standalone);break;case"LLLL":e=J(W.Months,I.Wide,A.Standalone);break;case"LLLLL":e=J(W.Months,I.Narrow,A.Standalone);break;case"w":e=Z(1);break;case"ww":e=Z(2);break;case"W":e=Z(1,!0);break;case"d":e=Y(q.Date,1);break;case"dd":e=Y(q.Date,2);break;case"E":case"EE":case"EEE":e=J(W.Days,I.Abbreviated);break;case"EEEE":e=J(W.Days,I.Wide);break;case"EEEEE":e=J(W.Days,I.Narrow);break;case"EEEEEE":e=J(W.Days,I.Short);break;case"a":case"aa":case"aaa":e=J(W.DayPeriods,I.Abbreviated);break;case"aaaa":e=J(W.DayPeriods,I.Wide);break;case"aaaaa":e=J(W.DayPeriods,I.Narrow);break;case"b":case"bb":case"bbb":e=J(W.DayPeriods,I.Abbreviated,A.Standalone,!0);break;case"bbbb":e=J(W.DayPeriods,I.Wide,A.Standalone,!0);break;case"bbbbb":e=J(W.DayPeriods,I.Narrow,A.Standalone,!0);break;case"B":case"BB":case"BBB":e=J(W.DayPeriods,I.Abbreviated,A.Format,!0);break;case"BBBB":e=J(W.DayPeriods,I.Wide,A.Format,!0);break;case"BBBBB":e=J(W.DayPeriods,I.Narrow,A.Format,!0);break;case"h":e=Y(q.Hours,1,-12);break;case"hh":e=Y(q.Hours,2,-12);break;case"H":e=Y(q.Hours,1);break;case"HH":e=Y(q.Hours,2);break;case"m":e=Y(q.Minutes,1);break;case"mm":e=Y(q.Minutes,2);break;case"s":e=Y(q.Seconds,1);break;case"ss":e=Y(q.Seconds,2);break;case"S":e=Y(q.FractionalSeconds,1);break;case"SS":e=Y(q.FractionalSeconds,2);break;case"SSS":e=Y(q.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Q(X.Short);break;case"ZZZZZ":e=Q(X.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Q(X.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Q(X.Long);break;default:return null}return tt[t]=e,e}(t);l+=e?e(s,n,c):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}(e,n,s||this.locale,r)}catch(o){throw Et(t,o.message)}}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.v))},t.\u0275pipe=i.Mb({name:"date",type:t,pure:!0}),t})();const Lt=/#/g;let Bt=(()=>{class t{constructor(t){this._localization=t}transform(e,n,i){if(null==e)return"";if("object"!=typeof n||null===n)throw Et(t,n);return n[ct(e,Object.keys(n),this._localization,i)].replace(Lt,e.toString())}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(at))},t.\u0275pipe=i.Mb({name:"i18nPlural",type:t,pure:!0}),t})(),Ht=(()=>{class t{transform(e,n){if(null==e)return"";if("object"!=typeof n||"string"!=typeof e)throw Et(t,n);return n.hasOwnProperty(e)?n[e]:n.hasOwnProperty("other")?n.other:""}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Mb({name:"i18nSelect",type:t,pure:!0}),t})(),Vt=(()=>{class t{transform(t){return JSON.stringify(t,null,2)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Mb({name:"json",type:t,pure:!1}),t})(),zt=(()=>{class t{constructor(t){this.differs=t,this.keyValues=[]}transform(t,e=Ut){if(!t||!(t instanceof Map)&&"object"!=typeof t)return null;this.differ||(this.differ=this.differs.find(t).create());const n=this.differ.diff(t);return n&&(this.keyValues=[],n.forEachItem(t=>{this.keyValues.push({key:t.key,value:t.currentValue})}),this.keyValues.sort(e)),this.keyValues}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.u))},t.\u0275pipe=i.Mb({name:"keyvalue",type:t,pure:!1}),t})();function Ut(t,e){const n=t.key,i=e.key;if(n===i)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(null===n)return 1;if(null===i)return-1;if("string"==typeof n&&"string"==typeof i)return n<i?-1:1;if("number"==typeof n&&"number"==typeof i)return n-i;if("boolean"==typeof n&&"boolean"==typeof i)return n<i?-1:1;const r=String(n),s=String(i);return r==s?0:r<s?-1:1}let $t=(()=>{class t{constructor(t){this._locale=t}transform(e,n,i){if(Wt(e))return null;i=i||this._locale;try{return function(t,e,n){return rt(t,st(N(e,E.Decimal),R(e,P.MinusSign)),e,P.Group,P.Decimal,n)}(Gt(e),i,n)}catch(r){throw Et(t,r.message)}}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.v))},t.\u0275pipe=i.Mb({name:"number",type:t,pure:!0}),t})(),Xt=(()=>{class t{constructor(t){this._locale=t}transform(e,n,i){if(Wt(e))return null;i=i||this._locale;try{return function(t,e,n){return rt(t,st(N(e,E.Percent),R(e,P.MinusSign)),e,P.Group,P.Decimal,n,!0).replace(new RegExp("%","g"),R(e,P.PercentSign))}(Gt(e),i,n)}catch(r){throw Et(t,r.message)}}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.v))},t.\u0275pipe=i.Mb({name:"percent",type:t,pure:!0}),t})(),qt=(()=>{class t{constructor(t,e="USD"){this._locale=t,this._defaultCurrencyCode=e}transform(e,n,r="symbol",s,o){if(Wt(e))return null;o=o||this._locale,"boolean"==typeof r&&(console&&console.warn&&console.warn('Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".'),r=r?"symbol":"code");let a=n||this._defaultCurrencyCode;"code"!==r&&(a="symbol"===r||"symbol-narrow"===r?function(t,e,n="en"){const r=function(t){return Object(i.lb)(t)[i.cb.Currencies]}(n)[t]||S[t]||[],s=r[1];return"narrow"===e&&"string"==typeof s?s:r[0]||t}(a,"symbol"===r?"wide":"narrow",o):r);try{return function(t,e,n,i,r){const s=st(N(e,E.Currency),R(e,P.MinusSign));return s.minFrac=function(t){let e;const n=S[t];return n&&(e=n[2]),"number"==typeof e?e:2}(i),s.maxFrac=s.minFrac,rt(t,s,e,P.CurrencyGroup,P.CurrencyDecimal,r).replace("\xa4",n).replace("\xa4","").trim()}(Gt(e),o,a,n,s)}catch(c){throw Et(t,c.message)}}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.v),i.Nb(i.k))},t.\u0275pipe=i.Mb({name:"currency",type:t,pure:!0}),t})();function Wt(t){return null==t||""===t||t!=t}function Gt(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error(t+" is not a number");return t}let Kt=(()=>{class t{transform(e,n,i){if(null==e)return e;if(!this.supports(e))throw Et(t,e);return e.slice(n,i)}supports(t){return"string"==typeof t||Array.isArray(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Mb({name:"slice",type:t,pure:!1}),t})(),Yt=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)},providers:[{provide:at,useClass:lt}]}),t})();const Jt="browser";function Qt(t){return t===Jt}let Zt=(()=>{class t{}return t.\u0275prov=Object(i.Jb)({token:t,providedIn:"root",factory:()=>new te(Object(i.Xb)(c),window,Object(i.Xb)(i.m))}),t})();class te{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportScrollRestoration()){const e=this.document.getElementById(t)||this.document.getElementsByName(t)[0];e&&this.scrollToElement(e)}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}supportScrollRestoration(){try{if(!this.window||!this.window.scrollTo)return!1;const t=ee(this.window.history)||ee(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}}function ee(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}},ohrG:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var i=n("2Vo4"),r=n("wZee"),s=(n("bPOv"),n("Yhcd"),n("jpss"),n("XIHC"),n("QWvX"),n("pLZG")),o=n("3E0/"),a=n("fXoL"),c=n("90az"),l=n("tyNb"),u=n("jhN1"),h=n("kmQS"),d=n("ofXK"),p=n("N2vX");function m(t,e){if(1&t&&a.Ob(0,"material-navbar",2),2&t){const t=a.ec();a.kc("menuPosition",t.settings.get("vebto.navbar.defaultPosition","custom-page-navbar"))}}let f=(()=>{class t{constructor(t,e,n,r,s){this.pages=t,this.route=e,this.sanitizer=n,this.router=r,this.settings=s,this.page$=new i.a(null),this.body$=new i.a(null),this.showNavbar=!0}set page(t){this.page$.next(t),this.body$.next(this.sanitizer.bypassSecurityTrustHtml(t.body))}ngOnInit(){this.page$.value||(this.route.params.subscribe(t=>{this.pages.get(t.id||this.route.snapshot.data.id).subscribe(t=>{this.page=t.page},()=>{this.router.navigate(["/404"],{skipLocationChange:!0})})}),this.body$.pipe(Object(s.a)(t=>!!t),Object(o.a)(0)).subscribe(()=>{r.highlightAll()}))}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(c.a),a.Nb(l.a),a.Nb(u.b),a.Nb(l.d),a.Nb(h.a))},t.\u0275cmp=a.Hb({type:t,selectors:[["custom-page"]],inputs:{showNavbar:"showNavbar",page:"page"},decls:4,vars:6,consts:[[3,"menuPosition",4,"ngIf"],[1,"page-body","container","article-body",3,"innerHTML"],[3,"menuPosition"]],template:function(t,e){var n;1&t&&(a.Fc(0,m,1,1,"material-navbar",0),a.fc(1,"async"),a.Ob(2,"div",1),a.fc(3,"async")),2&t&&(a.kc("ngIf",!(null!=(n=a.gc(1,2,e.page$))&&n.hide_nav)&&!e.settings.get("vebto.customPages.hideNavbar")&&e.showNavbar),a.Bb(2),a.kc("innerHTML",a.gc(3,4,e.body$),a.wc))},directives:[d.t,p.a],pipes:[d.b],styles:['custom-page{display:block;min-height:100vh;flex:1 1 auto}custom-page .page-body{padding:25px;word-break:break-all;font-size:1.6rem;line-height:24px}custom-page h2{font-size:2.4rem;font-weight:400;line-height:normal}custom-page h2:not(:first-of-type){border-top:1px solid var(--be-divider-default);margin-top:45px;padding-top:30px}custom-page h4{font-size:1.6rem;margin:35px 0 10px;font-weight:500}custom-page ol,custom-page ul{font-size:inherit;font-weight:inherit;margin-top:10px;padding-left:40px;position:relative}custom-page ol li,custom-page ul li{margin-bottom:8px}custom-page ul{padding-left:40px;position:relative}custom-page ul li{list-style-type:disc;margin-bottom:7px}custom-page ol{counter-reset:custom-counter;list-style:none}custom-page ol li:before{content:counter(custom-counter,decimal) ".";counter-increment:custom-counter;font-weight:500;position:absolute;left:-10px;width:40px;text-align:right}custom-page p{word-break:break-word}custom-page .widget{background-color:#f3fbf7;max-width:100%;padding:14px;margin:35px 0;border-radius:3px;overflow-wrap:break-word;border-left:5px solid #5ac891;font-size:1.7rem}custom-page .widget .title{font-weight:500;color:#43484d}custom-page .widget.widget-important{background-color:#fef7ed;border-left:5px solid #f3a12c}custom-page .widget.widget-warning{background-color:#f2564d;border-left:5px solid #6b0d08}'],encapsulation:2,changeDetection:0}),t})()},pLZG:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("7o/Q");function r(t,e){return function(n){return n.lift(new s(t,e))}}class s{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.predicate,this.thisArg))}}class o extends i.a{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}},qnHw:function(t,e,n){"use strict";n.d(e,"a",(function(){return P}));var i=n("mrSG"),r=n("0IaG"),s=n("cp0P"),o=n("oJgS"),a=n("WAq7"),c=n("gHDK"),l=n("XPQg"),u=n("fXoL"),h=n("agwZ"),d=n("i2dy"),p=n("+JQf"),m=n("SW18"),f=n("ofXK"),b=n("bTqV"),g=n("NFeN"),_=n("3Pt+"),v=n("Rd8u"),y=n("MNfM");function w(t,e){1&t&&(u.Tb(0,"h2",15),u.Hc(1,"Update Project"),u.Sb())}function C(t,e){1&t&&(u.Tb(0,"h2",15),u.Hc(1,"Create Project"),u.Sb())}function x(t,e){if(1&t&&(u.Tb(0,"div",16),u.Hc(1),u.Sb()),2&t){const t=u.ec();u.Bb(1),u.Ic(t.errors.name)}}function k(t,e){if(1&t&&(u.Tb(0,"option",26),u.Hc(1),u.Sb()),2&t){const t=e.$implicit;u.kc("ngValue",t.name),u.Bb(1),u.Ic((null==t.config?null:t.config.name)||t.name)}}function O(t,e){if(1&t&&(u.Tb(0,"div",16),u.Hc(1),u.Sb()),2&t){const t=u.ec(2);u.Bb(1),u.Ic(t.errors.template)}}function S(t,e){if(1&t&&(u.Tb(0,"div",16),u.Hc(1),u.Sb()),2&t){const t=u.ec(2);u.Bb(1),u.Ic(t.errors.published)}}function E(t,e){if(1&t&&(u.Tb(0,"option",26),u.Hc(1),u.Sb()),2&t){const t=e.$implicit;u.kc("ngValue",t.name),u.Bb(1),u.Ic(t.name)}}function T(t,e){if(1&t&&(u.Tb(0,"div",16),u.Hc(1),u.Sb()),2&t){const t=u.ec(2);u.Bb(1),u.Ic(t.errors.theme)}}function A(t,e){if(1&t){const t=u.Ub();u.Rb(0),u.Tb(1,"div",6),u.Tb(2,"select-user-input",17),u.ac("ngModelChange",(function(e){return u.vc(t),u.ec().model.users[0]=e})),u.Sb(),u.Sb(),u.Tb(3,"div",6),u.Tb(4,"label",18),u.Hc(5,"Template"),u.Sb(),u.Tb(6,"select",19),u.ac("ngModelChange",(function(e){return u.vc(t),u.ec().model.template=e})),u.Tb(7,"option",20),u.Hc(8,"None"),u.Sb(),u.Fc(9,k,2,2,"option",21),u.Sb(),u.Fc(10,O,2,1,"div",9),u.Sb(),u.Tb(11,"div",6),u.Tb(12,"label",22),u.Hc(13,"Published"),u.Sb(),u.Tb(14,"select",23),u.ac("ngModelChange",(function(e){return u.vc(t),u.ec().model.published=e})),u.Tb(15,"option",20),u.Hc(16,"Yes"),u.Sb(),u.Tb(17,"option",20),u.Hc(18,"No"),u.Sb(),u.Sb(),u.Fc(19,S,2,1,"div",9),u.Sb(),u.Tb(20,"div",6),u.Tb(21,"label",24),u.Hc(22,"Theme"),u.Sb(),u.Tb(23,"select",25),u.ac("ngModelChange",(function(e){return u.vc(t),u.ec().model.theme=e})),u.Tb(24,"option",20),u.Hc(25,"None"),u.Sb(),u.Fc(26,E,2,2,"option",21),u.Sb(),u.Fc(27,T,2,1,"div",9),u.Sb(),u.Qb()}if(2&t){const t=u.ec();u.Bb(2),u.kc("ngModel",t.model.users[0]),u.Bb(4),u.kc("ngModel",t.model.template),u.Bb(1),u.kc("ngValue",null),u.Bb(2),u.kc("ngForOf",t.templates),u.Bb(1),u.kc("ngIf",t.errors.template),u.Bb(4),u.kc("ngModel",t.model.published),u.Bb(1),u.kc("ngValue",!0),u.Bb(2),u.kc("ngValue",!1),u.Bb(2),u.kc("ngIf",t.errors.published),u.Bb(4),u.kc("ngModel",t.model.theme),u.Bb(1),u.kc("ngValue",null),u.Bb(2),u.kc("ngForOf",t.themes),u.Bb(1),u.kc("ngIf",t.errors.theme)}}function I(t,e){1&t&&(u.Tb(0,"span",27),u.Hc(1,"Update"),u.Sb())}function D(t,e){1&t&&(u.Tb(0,"span",27),u.Hc(1,"Create"),u.Sb())}let P=(()=>{class t{constructor(t,e,n,i,r,s){this.dialogRef=t,this.data=e,this.projects=n,this.toast=i,this.themesApi=r,this.templatesApi=s,this.themes=[],this.templates=[],this.loading=!1,this.model={users:[]},this.updating=!1,this.errors={}}ngOnInit(){this.data.showExtraConfig&&this.getThemesAndTemplates(),this.hydrateModel(),this.updating=!!this.data.project}confirm(){return Object(i.a)(this,void 0,void 0,(function*(){let t;this.loading=!0,this.model.slug=Object(a.a)(this.model.name),t=this.updating?this.projects.update(this.data.project.id,this.model):this.projects.create(yield this.getNewProjectPayload()),t.subscribe(t=>{this.close(t.project),this.toast.open("Project has been "+(this.updating?"updated":"created")),this.loading=!1},t=>{this.errors=t.errors,this.loading=!1})}))}close(t){this.dialogRef.close(t)}hydrateModel(){var t,e;this.errors={},this.model={pages:[],published:!0,template:this.data.templateName||null,theme:(null===(e=null===(t=this.data)||void 0===t?void 0:t.project)||void 0===e?void 0:e.theme)||null,uuid:Object(o.a)(36),users:[]},this.data.project&&(this.model.name=this.data.project.name,this.model.theme=this.data.project.theme,this.model.users=this.data.project.users,this.model.template=this.data.project.template,this.model.slug=this.data.project.slug)}getThemesAndTemplates(){Object(s.a)([this.themesApi.all(),this.templatesApi.all()]).subscribe(t=>{this.themes=t[0].themes,this.templates=t[1].pagination.data})}getNewProjectPayload(){const t=this.data.templateName||this.model.template;return t?this.createProjectFromTemplate(t):this.createBlankProject()}createProjectFromTemplate(t){return new Promise(e=>{const n=this.model;this.templatesApi.get(t).subscribe(t=>{n.template=t.template,n.pages=this.transformTemplatePages(t.template),e(n)})})}createBlankProject(){const t=this.model;return t.pages.push({name:"index",html:Object(c.a)(l.a)}),t}transformTemplatePages(t){return t.pages.map(e=>({name:e.name,html:Object(c.a)(e.html,t.config)}))}}return t.\u0275fac=function(e){return new(e||t)(u.Nb(r.h),u.Nb(r.a),u.Nb(h.a),u.Nb(d.b),u.Nb(p.a),u.Nb(m.a))},t.\u0275cmp=u.Hb({type:t,selectors:[["crupdate-project-modal"]],decls:19,vars:8,consts:[[1,"modal-header"],["class","modal-title","mat-dialog-title","","trans","",4,"ngIf"],["type","button","mat-icon-button","","tabindex","-1",1,"close-button",3,"click"],["svgIcon","close"],["autocomplete","off","ngNativeValidate","",3,"ngSubmit"],[1,"many-inputs"],[1,"input-container"],["for","name","trans",""],["type","text","id","name","name","name","minlength","3","required","",3,"ngModel","ngModelChange"],["class","error",4,"ngIf"],[4,"ngIf"],[1,"buttons","right"],["type","button","mat-button","","trans","",1,"cancel-button",3,"click"],["type","submit","mat-raised-button","","color","accent",1,"button","primary",3,"disabled"],["trans","",4,"ngIf"],["mat-dialog-title","","trans","",1,"modal-title"],[1,"error"],["name","project-owner",3,"ngModel","ngModelChange"],["for","template","trans",""],["id","template","name","template",3,"ngModel","ngModelChange"],["trans","",3,"ngValue"],[3,"ngValue",4,"ngFor","ngForOf"],["for","published","trans",""],["id","published","name","published",3,"ngModel","ngModelChange"],["for","theme","trans",""],["id","theme","name","theme",3,"ngModel","ngModelChange"],[3,"ngValue"],["trans",""]],template:function(t,e){1&t&&(u.Tb(0,"div",0),u.Fc(1,w,2,0,"h2",1),u.Fc(2,C,2,0,"h2",1),u.Tb(3,"button",2),u.ac("click",(function(){return e.close()})),u.Ob(4,"mat-icon",3),u.Sb(),u.Sb(),u.Tb(5,"form",4),u.ac("ngSubmit",(function(){return e.confirm()})),u.Tb(6,"mat-dialog-content",5),u.Tb(7,"div",6),u.Tb(8,"label",7),u.Hc(9,"Name"),u.Sb(),u.Tb(10,"input",8),u.ac("ngModelChange",(function(t){return e.model.name=t})),u.Sb(),u.Fc(11,x,2,1,"div",9),u.Sb(),u.Fc(12,A,28,13,"ng-container",10),u.Sb(),u.Tb(13,"mat-dialog-actions",11),u.Tb(14,"button",12),u.ac("click",(function(){return e.close()})),u.Hc(15,"Cancel"),u.Sb(),u.Tb(16,"button",13),u.Fc(17,I,2,0,"span",14),u.Fc(18,D,2,0,"span",14),u.Sb(),u.Sb(),u.Sb()),2&t&&(u.Bb(1),u.kc("ngIf",e.updating),u.Bb(1),u.kc("ngIf",!e.updating),u.Bb(8),u.kc("ngModel",e.model.name),u.Bb(1),u.kc("ngIf",e.errors.name),u.Bb(1),u.kc("ngIf",e.data.showExtraConfig),u.Bb(4),u.kc("disabled",e.loading),u.Bb(1),u.kc("ngIf",e.updating),u.Bb(1),u.kc("ngIf",!e.updating))},directives:[f.t,b.b,g.a,_.v,_.w,r.f,v.a,_.d,_.q,_.F,_.u,_.x,r.c,r.i,y.a,_.G,_.z,_.J,f.s],styles:["[_nghost-%COMP%]{display:block;width:400px;max-width:100%}"]}),t})()},quSY:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("DH7j"),r=n("XoHu"),s=n("n6bG");const o=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let a=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:a,_unsubscribe:l,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;t<n.length;++t)n[t].remove(this);if(Object(s.a)(l)){a&&(this._unsubscribe=void 0);try{l.call(this)}catch(h){e=h instanceof o?c(h.errors):[h]}}if(Object(i.a)(u)){let t=-1,n=u.length;for(;++t<n;){const n=u[t];if(Object(r.a)(n))try{n.unsubscribe()}catch(h){e=e||[],h instanceof o?e=e.concat(c(h.errors)):e.push(h)}}}if(e)throw new o(e)}add(e){let n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){const e=n;n=new t,n._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:i}=n;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[n]:r.push(n),n}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}var e;return t.EMPTY=((e=new t).closed=!0,e),t})();function c(t){return t.reduce((t,e)=>t.concat(e instanceof o?e.errors:e),[])}},rDax:function(t,e,n){"use strict";n.d(e,"a",(function(){return z})),n.d(e,"b",(function(){return x})),n.d(e,"c",(function(){return P})),n.d(e,"d",(function(){return $}));var i=n("vxfF"),r=n("fXoL"),s=n("nLfN"),o=n("cH1L"),a=n("ofXK"),c=n("8LU1"),l=n("+rOU"),u=n("XNiG"),h=n("quSY"),d=n("VRyK"),p=n("IzEk"),m=n("1G5W");n("7o/Q"),n("FtGj");class f{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=Object(c.d)(-this._previousScrollPosition.left),t.style.top=Object(c.d)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=i,n.scrollBehavior=r}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}function b(){return Error("Scroll strategy has already been attached.")}class g{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){if(this._overlayRef)throw b();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 t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-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 _{enable(){}disable(){}attach(){}}function v(t,e){return e.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function y(t,e){return e.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class w{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(t){if(this._overlayRef)throw b();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 t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();v(t,[{width:e,height:n,bottom:n,right:e,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 C=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new _,this.close=t=>new g(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new f(this._viewportRuler,this._document),this.reposition=t=>new w(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(i.c),r.Xb(i.e),r.Xb(r.A),r.Xb(a.e))},t.\u0275prov=Object(r.Jb)({factory:function(){return new t(Object(r.Xb)(i.c),Object(r.Xb)(i.e),Object(r.Xb)(r.A),Object(r.Xb)(a.e))},token:t,providedIn:"root"}),t})();class x{constructor(t){if(this.scrollStrategy=new _,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,this.excludeFromOutsideClick=[],t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class k{constructor(t,e,n,i,r){this.offsetX=n,this.offsetY=i,this.panelClass=r,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class O{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}function S(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". Expected "top", "bottom" or "center".`)}function E(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". Expected "start", "end" or "center".`)}let T=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(a.e))},t.\u0275prov=Object(r.Jb)({factory:function(){return new t(Object(r.Xb)(a.e))},token:t,providedIn:"root"}),t})(),A=(()=>{class t extends T{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}}}add(t){super.add(t),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 t.\u0275fac=function(e){return new(e||t)(r.Xb(a.e))},t.\u0275prov=Object(r.Jb)({factory:function(){return new t(Object(r.Xb)(a.e))},token:t,providedIn:"root"}),t})(),I=(()=>{class t extends T{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,n=this._attachedOverlays;for(let i=n.length-1;i>-1;i--){const r=n[i];if(!(r._outsidePointerEvents.observers.length<1)){if([...r.getConfig().excludeFromOutsideClick,r.overlayElement].some(t=>t.contains(e)))break;r._outsidePointerEvents.next(t)}}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(a.e),r.Xb(s.a))},t.\u0275prov=Object(r.Jb)({factory:function(){return new t(Object(r.Xb)(a.e),Object(r.Xb)(s.a))},token:t,providedIn:"root"}),t})();const D=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let P=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(t||D){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;e<t.length;e++)t[e].parentNode.removeChild(t[e])}const e=this._document.createElement("div");e.classList.add("cdk-overlay-container"),D?e.setAttribute("platform","test"):t||e.setAttribute("platform","server"),this._document.body.appendChild(e),this._containerElement=e}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(a.e),r.Xb(s.a))},t.\u0275prov=Object(r.Jb)({factory:function(){return new t(Object(r.Xb)(a.e),Object(r.Xb)(s.a))},token:t,providedIn:"root"}),t})();class j{constructor(t,e,n,i,r,s,o,a,c){this._portalOutlet=t,this._host=e,this._pane=n,this._config=i,this._ngZone=r,this._keyboardDispatcher=s,this._document=o,this._location=a,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new u.a,this._attachments=new u.a,this._detachments=new u.a,this._locationChanges=h.a.EMPTY,this._backdropClickHandler=t=>this._backdropClick.next(t),this._keydownEvents=new u.a,this._outsidePointerEvents=new u.a,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.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.asObservable().pipe(Object(p.a)(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._location&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher&&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&&this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher&&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.asObservable()}attachments(){return this._attachments.asObservable()}detachments(){return this._detachments.asObservable()}keydownEvents(){return this._keydownEvents.asObservable()}outsidePointerEvents(){return this._outsidePointerEvents.asObservable()}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=Object(c.d)(this._config.width),t.height=Object(c.d)(this._config.height),t.minWidth=Object(c.d)(this._config.minWidth),t.minHeight=Object(c.d)(this._config.minHeight),t.maxWidth=Object(c.d)(this._config.maxWidth),t.maxHeight=Object(c.d)(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){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("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;Object(c.b)(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.asObservable().pipe(Object(m.a)(Object(d.a)(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())}}const F=/([A-Za-z%]+)$/;class M{constructor(t,e,n,i,r){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=r,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 u.a,this._resizeSubscription=h.a.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges.asObservable(),this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){if(this._overlayRef&&t!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),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,n=this._viewportRect,i=[];let r;for(let s of this._preferredPositions){let o=this._getOriginPoint(t,s),a=this._getOverlayPoint(o,e,s),c=this._getOverlayFit(a,e,n,s);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,o);this._canFitWithFlexibleDimensions(c,a,n)?i.push({position:s,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,s)}):(!r||r.overlayFit.visibleArea<c.visibleArea)&&(r={overlayFit:c,overlayPoint:a,originPoint:o,position:s,overlayRect:e})}if(i.length){let t=null,e=-1;for(const n of i){const i=n.boundingBoxRect.width*n.boundingBoxRect.height*(n.position.weight||1);i>e&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(r.position,r.originPoint);this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&R(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),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 n,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;n="start"==e.originX?i:r}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,r;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+r}}_getOverlayFit(t,e,n,i){let{x:r,y:s}=t,o=this._getOffset(i,"x"),a=this._getOffset(i,"y");o&&(r+=o),a&&(s+=a);let c=0-s,l=s+e.height-n.height,u=this._subtractOverflows(e.width,0-r,r+e.width-n.width),h=this._subtractOverflows(e.height,c,l),d=u*h;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:h===e.height,fitsInViewportHorizontally:u==e.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,r=n.right-e.x,s=N(this._overlayRef.getConfig().minHeight),o=N(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=r;return(t.fitsInViewportVertically||null!=s&&s<=i)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const i=this._viewportRect,r=Math.max(t.x+e.width-i.width,0),s=Math.max(t.y+e.height-i.height,0),o=Math.max(i.top-n.top-t.y,0),a=Math.max(i.left-n.left-t.x,0);let c=0,l=0;return c=e.width<=i.width?a||-r:t.x<this._viewportMargin?i.left-n.left-t.x:0,l=e.height<=i.height?o||-s:t.y<this._viewportMargin?i.top-n.top-t.y:0,this._previousPushAmount={x:c,y:l},{x:t.x+c,y:t.y+l}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const e=this._getScrollVisibility(),n=new O(t,e);this._positionChanges.next(n)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let n,i=t.overlayY;n="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let r=0;r<e.length;r++)e[r].style.transformOrigin=`${n} ${i}`}_calculateBoundingBoxRect(t,e){const n=this._viewportRect,i=this._isRtl();let r,s,o,a,c,l;if("top"===e.overlayY)s=t.y,r=n.height-s+this._viewportMargin;else if("bottom"===e.overlayY)o=n.height-t.y+2*this._viewportMargin,r=n.height-o+this._viewportMargin;else{const e=Math.min(n.bottom-t.y+n.top,t.y),i=this._lastBoundingBoxSize.height;r=2*e,s=t.y-e,r>i&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)l=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)c=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;a=2*e,c=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(c=t.x-i/2)}return{top:s,left:c,bottom:o,right:l,width:a,height:r}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;i.height=Object(c.d)(n.height),i.top=Object(c.d)(n.top),i.bottom=Object(c.d)(n.bottom),i.width=Object(c.d)(n.width),i.left=Object(c.d)(n.left),i.right=Object(c.d)(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=Object(c.d)(t)),r&&(i.maxWidth=Object(c.d)(r))}this._lastBoundingBoxSize=n,R(this._boundingBox.style,i)}_resetBoundingBoxStyles(){R(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){R(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();R(n,this._getExactOverlayY(e,t,i)),R(n,this._getExactOverlayX(e,t,i))}else n.position="static";let o="",a=this._getOffset(e,"x"),l=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),l&&(o+=`translateY(${l}px)`),n.transform=o.trim(),s.maxHeight&&(i?n.maxHeight=Object(c.d)(s.maxHeight):r&&(n.maxHeight="")),s.maxWidth&&(i?n.maxWidth=Object(c.d)(s.maxWidth):r&&(n.maxWidth="")),R(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let s=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=s,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=Object(c.d)(r.y),i}_getExactOverlayX(t,e,n){let i,r={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=Object(c.d)(s.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:y(t,n),isOriginOutsideView:v(t,n),isOverlayClipped:y(e,n),isOverlayOutsideView:v(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.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(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach(t=>{E("originX",t.originX),S("originY",t.originY),E("overlayX",t.overlayX),S("overlayY",t.overlayY)})}_addPanelClasses(t){this._pane&&Object(c.b)(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof r.l)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function R(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function N(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(F);return n&&"px"!==n?null:parseFloat(e)}return t||null}class L{constructor(t,e,n,i,r,s,o){this._preferredPositions=[],this._positionStrategy=new M(n,i,r,s,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e)}get onPositionChange(){return 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,n,i){const r=new k(t,e,n,i);return this._preferredPositions.push(r),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}}class B{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("cdk-global-overlay-wrapper"),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,n=this._overlayRef.getConfig(),{width:i,height:r,maxWidth:s,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==r&&"100vh"!==r||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?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,n=e.style;e.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let H=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new B}connectedTo(t,e,n){return new L(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new M(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(i.e),r.Xb(a.e),r.Xb(s.a),r.Xb(P))},t.\u0275prov=Object(r.Jb)({factory:function(){return new t(Object(r.Xb)(i.e),Object(r.Xb)(a.e),Object(r.Xb)(s.a),Object(r.Xb)(P))},token:t,providedIn:"root"}),t})(),V=0,z=(()=>{class t{constructor(t,e,n,i,r,s,o,a,c,l,u){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=r,this._injector=s,this._ngZone=o,this._document=a,this._directionality=c,this._location=l,this._outsideClickDispatcher=u}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),r=new x(t);return r.direction=r.direction||this._directionality.value,new j(i,e,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+V++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(r.g)),new l.e(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(C),r.Xb(P),r.Xb(r.j),r.Xb(H),r.Xb(A),r.Xb(r.s),r.Xb(r.A),r.Xb(a.e),r.Xb(o.c),r.Xb(a.n,8),r.Xb(I,8))},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac}),t})();const U={provide:new r.r("cdk-connected-overlay-scroll-strategy"),deps:[z],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let $=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},providers:[z,U],imports:[[o.a,l.h,i.d],i.d]}),t})()},re4b:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var i=n("2Vo4"),r=n("LRne"),s=n("lJxs"),o=n("eIep"),a=n("vkgz"),c=n("fXoL"),l=n("tyNb"),u=n("LRXf"),h=n("ahrr");let d=(()=>{class t{constructor(t,e,n){this.router=t,this.http=e,this.localStorage=n,this.params$=new i.a({}),this.paginatedOnce$=new i.a(!1),this.loading$=new i.a(!1),this.response$=new i.a(null),this.dontUpdateQueryParams=!1,this.perPageCacheKey=null,this.noResults$=this.response$.pipe(Object(s.a)(t=>this.paginatedOnce$.value&&0===t.pagination.data.length))}get params(){return this.params$.value}get currentPage(){var t,e;return null===(e=null===(t=this.response$.value)||void 0===t?void 0:t.pagination)||void 0===e?void 0:e.current_page}paginate(t={},e,n){const i=this.subscription?{}:this.currentQueryParams();this.params$.next(Object.assign(Object.assign(Object.assign({},this.response$.value?{perPage:this.response$.value.pagination.per_page,page:this.response$.value.pagination.current_page}:{}),i),t)),this.subscription||this.init(e,n)}nextPage(){const t=this.response$.value.pagination.current_page,e=this.response$.value.pagination.total,n=t+1;this.paginate(Object.assign(Object.assign({},this.params$.value),{page:!t||n>e?t:n}))}previousPage(){const t=this.response$.value.pagination.current_page;this.paginate(Object.assign(Object.assign({},this.params$.value),{page:t-1||1}))}changePerPage(t){var e;t!==(null===(e=this.params$.value)||void 0===e?void 0:e.perPage)&&(this.perPageCacheKey&&this.localStorage.set(this.perPageCacheKey,t),this.paginate(Object.assign(Object.assign({},this.params$.value),{perPage:t})))}currentQueryParams(){return this.router.routerState.root.snapshot.queryParams}init(t,e){this.subscription=this.params$.pipe(Object(o.a)(n=>{this.loading$.next(!0);const i=!this.paginatedOnce$.value;return i&&this.perPageCacheKey&&this.localStorage.get(this.perPageCacheKey)&&(n=Object.assign({perPage:this.localStorage.get(this.perPageCacheKey)},n)),(i&&e?Object(r.a)({pagination:e}):this.http.get(t,n)).pipe(Object(a.a)(()=>{this.updateQueryParams(n),this.loading$.next(!1),this.paginatedOnce$.next(!0)},()=>{this.loading$.next(!1),this.paginatedOnce$.next(!0)}))})).subscribe(t=>{this.response$.next(t)})}updateQueryParams(t={}){if(!this.dontUpdateQueryParams){for(const e in t)Array.isArray(t[e])&&(t[e]=t[e].join(","));this.router.navigate([],{queryParams:t,replaceUrl:!0})}}canLoadNextPage(){var t,e;return this.response$.value&&this.currentPage<(null===(e=null===(t=this.response$.value)||void 0===t?void 0:t.pagination)||void 0===e?void 0:e.last_page)}}return t.\u0275fac=function(e){return new(e||t)(c.Xb(l.d),c.Xb(u.a),c.Xb(h.a))},t.\u0275prov=c.Jb({token:t,factory:t.\u0275fac}),t})()},sJvS:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("fXoL"),r=n("kmQS"),s=n("i2dy"),o=n("VaLf");let a=(()=>{class t{constructor(t,e,n){this.settings=t,this.toast=e,this.i18n=n,this.validations=[]}validate(t){this.validations.length||this.initValidations();const e=this.validations.find(e=>e.fails(t));return e&&this.showToast&&this.openErrorToast(e.errorMessage),{failed:!!e,errorMessage:e?e.errorMessage:null}}validateWithToast(t){const e=this.validate(t);return e.failed&&this.openErrorToast(e.errorMessage),e}openErrorToast(t){this.toast.open(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(r.a),i.Xb(s.b),i.Xb(o.a))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},sPnx:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("HDdC"),r=n("LRne"),s=n("w1tV"),o=n("LRXf"),a=n("fXoL"),c=n("tk/3"),l=n("ObYb");let u=(()=>{class t extends o.a{constructor(t,e){super(t,e),this.http=t,this.errorHandler=e,this.cache={}}getWithCache(t,e={}){const n=this.makeCacheKey(t,e);if(this.cache[n]instanceof i.a)return this.cache[n];if(this.cache[n])return Object(r.a)(this.cache[n]);{const i=this.get(t,e).pipe(Object(s.a)());return i.subscribe(t=>this.cache[n]=t,()=>{}),this.cache[n]=i}}post(t,e,n){return this.clearCache(),super.post(t,e)}put(t,e={},n){return this.clearCache(),super.put(t,e)}delete(t,e={},n){return this.clearCache(),super.delete(t,e)}clearCache(){this.cache={}}makeCacheKey(t,e){return t+JSON.stringify(e)}}return t.\u0275fac=function(e){return new(e||t)(a.Xb(c.b),a.Xb(l.a))},t.\u0275prov=a.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},tU2R:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("1MND"),r=n("4Ait");class s extends i.a{constructor(t,e){super(),this.params=t,this.i18n=e,this.errorMessage=this.i18n.t("Maximum file size is :number",{number:Object(r.a)(+this.params.maxSize)})}fails(t){return this.params.maxSize<t.size}}},thmi:function(t,e,n){"use strict";n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return w}));var i=n("xHqg"),r=n("7s5j"),s=n("2Vo4"),o=n("nYR2"),a=n("fXoL"),c=n("uHcB"),l=n("tyNb"),u=n("kmQS"),h=n("i2dy"),d=n("ahrr"),p=n("twBr"),m=n("20SG");function f(t,e){1&t&&a.Ob(0,"mat-icon",9)}const b=function(t,e,n){return{siteName:t,intervalCount:e,intervalName:n}};function g(t,e){if(1&t&&(a.Tb(0,"p",15),a.Hc(1," You authorise :siteName to charge you automatically every :intervalCount :intervalName, until you cancel your subscription. You consent to get access to your :siteName subscription immediately, and acknowledge that refunds are only available within 14 days and provided you haven't accessed :siteName. You will be able to cancel your subscription at any time from your profile page. "),a.Sb()),2&t){const t=e.ngIf,n=a.ec(2);a.kc("transValues",a.qc(1,b,n.settings.get("branding.site_name"),t.interval_count>1?t.interval_count:"",t.interval_count>1?t.interval+"s":t.interval))}}function _(t,e){if(1&t){const t=a.Ub();a.Tb(0,"mat-step",4),a.fc(1,"trans"),a.Tb(2,"div",10),a.Tb(3,"div",11),a.Tb(4,"create-subscription-panel",12),a.ac("loading",(function(e){return a.vc(t),a.ec().loading$.next(e)}))("completed",(function(){return a.vc(t),a.ec().onCompleted()})),a.fc(5,"async"),a.Sb(),a.Sb(),a.Ob(6,"upgrade-page-aside",13),a.fc(7,"async"),a.Sb(),a.Fc(8,g,2,5,"p",14),a.fc(9,"async"),a.Sb()}if(2&t){const t=a.ec();a.kc("label",a.gc(1,5,"Payment"))("completed",!1),a.Bb(4),a.kc("plan",a.gc(5,7,t.state.selectedPlan$)),a.Bb(2),a.kc("plan",a.gc(7,9,t.state.selectedPlan$)),a.Bb(2),a.kc("ngIf",a.gc(9,11,t.state.selectedPlan$))}}var v=function(t){return t[t.Plans=0]="Plans",t[t.Period=1]="Period",t[t.Payment=2]="Payment",t}({});const y="be.onboarding.selected";let w=(()=>{class t{constructor(t,e,n,i,r,o,a,c,l){this.subscriptions=t,this.route=e,this.settings=n,this.router=i,this.toast=r,this.state=o,this.localStorage=a,this.currentUser=c,this.paypalSubscriptions=l,this.loading$=new s.a(!1)}set mode(t){this.state.mode=t}ngOnInit(){this.route.data.subscribe(t=>{this.state.setPlans(t.plans),"subscribe"===this.state.mode&&this.hydrateStateFromLocalStorage()})}hydrateStateFromLocalStorage(){const t=this.localStorage.get(y);if(t&&t.initial&&t.final){const e=this.state.plans.find(e=>e.id===t.initial),n=this.state.plans.find(e=>e.id===t.final);e&&n&&(this.state.selectInitialPlan(e),this.state.selectPlanById(n.id),this.stepper.selectedIndex=v.Payment)}}nextStep(){"changePlan"===this.state.mode&&this.stepper.selectedIndex===v.Period?this.changePlan():"pricing"===this.state.mode&&this.state.selectedPlan$.value.free&&this.stepper.selectedIndex===v.Plans?this.router.navigate(["register"]):"pricing"===this.state.mode&&this.stepper.selectedIndex===v.Period?(this.localStorage.set(y,{initial:this.state.initialPlan$.value.id,final:this.state.selectedPlan$.value.id}),this.router.navigate(["register"])):this.stepper.next()}onCompleted(){this.loading$.next(!1),this.router.navigate(["/"]),this.localStorage.remove(y),this.toast.open({message:'Subscribed to ":planName" plan successfully.',replacements:{planName:this.getSelectedOrParentPlanName()}})}changePlan(){const t=this.state.selectedPlan$.value,e=this.currentUser.getSubscription();this.currentUser.getSubscription({planId:t.id})||(this.loading$.next(!0),"paypal"===e.gateway?this.paypalSubscriptions.changePlan(e,t).then(t=>{this.loading$.next(!1),this.currentUser.assignCurrent(t),this.router.navigate(["/billing/subscription"]),this.toast.open("Subscription plan changed.")}):this.subscriptions.changePlan(e.id,t).pipe(Object(o.a)(()=>this.loading$.next(!1))).subscribe(t=>{this.currentUser.assignCurrent(t.user),this.router.navigate(["/billing/subscription"]),this.toast.open("Subscription plan changed.")}))}getSelectedOrParentPlanName(){const t=this.state.selectedPlan$.value;return(t.parent?t.parent:t).name}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(c.a),a.Nb(l.a),a.Nb(u.a),a.Nb(l.d),a.Nb(h.b),a.Nb(r.a),a.Nb(d.a),a.Nb(p.a),a.Nb(m.a))},t.\u0275cmp=a.Hb({type:t,selectors:[["upgrade-page"]],viewQuery:function(t,e){var n;1&t&&a.Bc(i.e,!0),2&t&&a.rc(n=a.bc())&&(e.stepper=n.first)},inputs:{mode:"mode"},features:[a.Ab([r.a])],decls:16,vars:19,consts:[[3,"hideRegisterButton"],[1,"bg-wrapper"],[1,"container","main-content",3,"linear"],["matStepperIcon","edit"],[3,"label","completed"],[3,"selected"],[3,"showSidebar","selected"],[3,"label","completed",4,"ngIf"],[1,"overlay",3,"isVisible"],["svgIcon","edit",1,"size-16"],[1,"step-container","payment-step"],[1,"left-col"],[3,"plan","loading","completed"],[1,"right-col",3,"plan"],["class","legal-info","trans","",3,"transValues",4,"ngIf"],["trans","",1,"legal-info",3,"transValues"]],template:function(t,e){1&t&&(a.Ob(0,"material-navbar",0),a.Tb(1,"div",1),a.Tb(2,"mat-horizontal-stepper",2),a.Fc(3,f,1,0,"ng-template",3),a.Tb(4,"mat-step",4),a.fc(5,"trans"),a.fc(6,"async"),a.Tb(7,"select-plan-panel",5),a.ac("selected",(function(){return e.nextStep()})),a.Sb(),a.Ob(8,"contact-widget"),a.Sb(),a.Tb(9,"mat-step",4),a.fc(10,"trans"),a.fc(11,"async"),a.Tb(12,"select-plan-period-panel",6),a.ac("selected",(function(){return e.nextStep()})),a.Sb(),a.Sb(),a.Fc(13,_,10,13,"mat-step",7),a.Sb(),a.Sb(),a.Ob(14,"loading-indicator",8),a.fc(15,"async")),2&t&&(a.kc("hideRegisterButton","pricing"===e.state.mode),a.Bb(2),a.kc("linear",!0),a.Bb(2),a.kc("label",a.gc(5,9,"Subscription plan"))("completed",!!a.gc(6,11,e.state.initialPlan$)),a.Bb(5),a.kc("label",a.gc(10,13,"Subscription interval"))("completed",!!a.gc(11,15,e.state.selectedPlan$)),a.Bb(3),a.kc("showSidebar",!0),a.Bb(1),a.kc("ngIf","subscribe"===e.state.mode),a.Bb(1),a.kc("isVisible",a.gc(15,17,e.loading$)))},styles:[".be-dark-mode[_nghost-%COMP%]   .bg-wrapper[_ngcontent-%COMP%], .be-dark-mode   [_nghost-%COMP%]   .bg-wrapper[_ngcontent-%COMP%]{background-image:none}[_nghost-%COMP%]{display:block;min-height:100vh;background-color:var(--be-background-alternative)}.bg-wrapper[_ngcontent-%COMP%]{background-repeat:no-repeat;background-position:50%;background-size:cover;background-image:url(/client/assets/images/pricing-plans-bg.svg)}.main-content[_ngcontent-%COMP%]{padding-top:60px;padding-bottom:60px;background-color:inherit;min-height:calc(100vh - 70px)}.step-container[_ngcontent-%COMP%]{display:flex;position:relative;background-color:var(--be-background);border-radius:4px;margin-top:25px;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.step-container[_ngcontent-%COMP%]   .left-col[_ngcontent-%COMP%]{flex:1 1 auto}select-plan-panel[_ngcontent-%COMP%]{margin-top:25px}.legal-info[_ngcontent-%COMP%]{margin-top:20px;color:var(--be-secondary-text)}@media only screen and (max-width:768px){upgrade-page-aside[_ngcontent-%COMP%]{display:none}}"],changeDetection:0}),t})()},"tk/3":function(t,e,n){"use strict";n.d(e,"a",(function(){return T})),n.d(e,"b",(function(){return S})),n.d(e,"c",(function(){return V})),n.d(e,"d",(function(){return y})),n.d(e,"e",(function(){return f})),n.d(e,"f",(function(){return v})),n.d(e,"g",(function(){return x}));var i=n("fXoL"),r=n("LRne"),s=n("HDdC"),o=n("bOdf"),a=n("pLZG"),c=n("lJxs"),l=n("ofXK");class u{}class h{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),r=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(r):this.headers.set(i,[r])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}: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 d?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 d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?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 n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const r=t.value;if(r){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===r.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}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 p{encodeKey(t){return m(t)}encodeValue(t){return m(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function m(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class f{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const i=t.indexOf("="),[r,s]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(r)||[];o.push(s),n.set(r,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):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"})}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(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new f({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(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function b(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function g(t){return"undefined"!=typeof Blob&&t instanceof Blob}function _(t){return"undefined"!=typeof FormData&&t instanceof FormData}class v{constructor(t,e,n,i){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,r=i):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new d),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":n<e.length-1?"&":"")+t}}else this.params=new f,this.urlWithParams=e}serializeBody(){return null===this.body?null:b(this.body)||g(this.body)||_(this.body)||"string"==typeof this.body?this.body:this.body instanceof f?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||_(this.body)?null:g(this.body)?this.body.type||null:b(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof f?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(t={}){const e=t.method||this.method,n=t.url||this.url,i=t.responseType||this.responseType,r=void 0!==t.body?t.body:this.body,s=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,o=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let a=t.headers||this.headers,c=t.params||this.params;return void 0!==t.setHeaders&&(a=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),a)),t.setParams&&(c=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),c)),new v(e,n,r,{params:c,headers:a,reportProgress:o,responseType:i,withCredentials:s})}}var y=function(t){return 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 w{constructor(t,e=200,n="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class C extends w{constructor(t={}){super(t),this.type=y.ResponseHeader}clone(t={}){return new C({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 x extends w{constructor(t={}){super(t),this.type=y.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new x({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 k extends w{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 O(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let S=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof v)i=t;else{let r=void 0;r=n.headers instanceof d?n.headers:new d(n.headers);let s=void 0;n.params&&(s=n.params instanceof f?n.params:new f({fromObject:n.params})),i=new v(t,e,void 0!==n.body?n.body:null,{headers:r,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=Object(r.a)(i).pipe(Object(o.a)(t=>this.handler.handle(t)));if(t instanceof v||"events"===n.observe)return s;const l=s.pipe(Object(a.a)(t=>t instanceof x));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return l.pipe(Object(c.a)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return l.pipe(Object(c.a)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return l.pipe(Object(c.a)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return l.pipe(Object(c.a)(t=>t.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new f).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,O(n,e))}post(t,e,n={}){return this.request("POST",t,O(n,e))}put(t,e,n={}){return this.request("PUT",t,O(n,e))}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(u))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac}),t})();class E{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const T=new i.r("HTTP_INTERCEPTORS");let A=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac}),t})();const I=/^\)\]\}',?\n/;class D{}let P=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac}),t})(),j=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new s.a(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let r=null;const s=()=>{if(null!==r)return r;const e=1223===n.status?204:n.status,i=n.statusText||"OK",s=new d(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return r=new C({headers:s,status:e,statusText:i,url:o}),r},o=()=>{let{headers:i,status:r,statusText:o,url:a}=s(),c=null;204!==r&&(c=void 0===n.response?n.responseText:n.response),0===r&&(r=c?200:0);let l=r>=200&&r<300;if("json"===t.responseType&&"string"==typeof c){const t=c;c=c.replace(I,"");try{c=""!==c?JSON.parse(c):null}catch(u){c=t,l&&(l=!1,c={error:u,text:c})}}l?(e.next(new x({body:c,headers:i,status:r,statusText:o,url:a||void 0})),e.complete()):e.error(new k({error:c,headers:i,status:r,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=s(),r=new k({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(r)};let c=!1;const l=i=>{c||(e.next(s()),c=!0);let r={type:y.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(r.total=i.total),"text"===t.responseType&&n.responseText&&(r.partialText=n.responseText),e.next(r)},u=t=>{let n={type:y.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",l),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),e.next({type:y.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),t.reportProgress&&(n.removeEventListener("progress",l),null!==i&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(D))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac}),t})();const F=new i.r("XSRF_COOKIE_NAME"),M=new i.r("XSRF_HEADER_NAME");class R{}let N=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(l.M)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(l.e),i.Xb(i.C),i.Xb(F))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac}),t})(),L=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(R),i.Xb(M))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(T,[]);this.chain=t.reduceRight((t,e)=>new E(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(h),i.Xb(i.s))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac}),t})(),H=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:L,useClass:A}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:F,useValue:e.cookieName}:[],e.headerName?{provide:M,useValue:e.headerName}:[]]}}}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)},providers:[L,{provide:T,useExisting:L,multi:!0},{provide:R,useClass:N},{provide:F,useValue:"XSRF-TOKEN"},{provide:M,useValue:"X-XSRF-TOKEN"}]}),t})(),V=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)},providers:[S,{provide:u,useClass:B},j,{provide:h,useExisting:j},P,{provide:D,useExisting:P}],imports:[[H.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},twBr:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("2Vo4"),r=n("lJxs"),s=n("fXoL");let o=(()=>{class t{constructor(){this.model$=new i.a(null),this.isLoggedIn$=this.model$.pipe(Object(r.a)(t=>!!t.id)),this.permissions={}}get(t){return this.model$.value&&this.model$.value[t]}getModel(){return Object.assign({},this.model$.value)}set(t,e){this.model$.next(Object.assign(Object.assign({},this.model$.value),{[t]:e}))}assignCurrent(t){t||(t={roles:[this.guestsRole],permissions:this.guestsRole.permissions}),this.setPermissions(t),this.model$.next(t)}hasPermissions(t){return 0===t.filter(t=>!this.hasPermission(t)).length}hasPermission(t){return!!this.permissions.admin||!!this.permissions[t]}hasRole(t){return this.model$.value.roles&&!!this.model$.value.roles.find(e=>e.name===t)}getRestrictionValue(t,e){const n=this.permissions[t];let i=null;if(n){const t=n.restrictions.find(t=>t.name===e);i=t?t.value:null}return i}isLoggedIn(){return this.get("id")>0}isSubscribed(){var t;return!!(null===(t=this.model$.value)||void 0===t?void 0:t.subscriptions)&&void 0!==this.model$.value.subscriptions.find(t=>t.valid)}subscriptionIsActive(){return this.isSubscribed()&&!this.onTrial()}onTrial(){const t=this.getSubscription();return t&&t.on_trial}onGracePeriod(){const t=this.getSubscription();return t&&t.on_grace_period}getSubscription(t={}){if(!this.isSubscribed())return null;let e=this.model$.value.subscriptions.slice();return t.gateway&&(e=e.filter(e=>e.gateway===t.gateway)),t.planId&&(e=e.filter(e=>e.plan_id===t.planId)),e[0]}setSubscription(t){const e=this.model$.value.subscriptions.findIndex(e=>e.id===t.id);e>-1?this.model$.value.subscriptions[e]=t:this.model$.value.subscriptions.push(t)}isAdmin(){return this.hasPermission("admin")}init(t){this.guestsRole=t.guestsRole||{},this.assignCurrent(t.user)}setPermissions(t){this.permissions={},(t.permissions||[]).forEach(t=>{this.permissions[t.name]=t})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},tyNb:function(t,e,n){"use strict";n.d(e,"a",(function(){return Xt})),n.d(e,"b",(function(){return q})),n.d(e,"c",(function(){return X})),n.d(e,"d",(function(){return an})),n.d(e,"e",(function(){return cn})),n.d(e,"f",(function(){return hn})),n.d(e,"g",(function(){return ln})),n.d(e,"h",(function(){return Cn})),n.d(e,"i",(function(){return dn})),n.d(e,"j",(function(){return We}));var i=n("ofXK"),r=n("fXoL"),s=n("LRne"),o=n("Cfvw"),a=n("2Vo4"),c=n("HDdC");const l=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();var u=n("itXk"),h=n("NXyV"),d=n("EY2u"),p=n("XNiG"),m=n("lJxs"),f=n("0EUg"),b=n("pLZG"),g=n("7o/Q"),_=n("4I5i");function v(t){return function(e){return 0===t?Object(d.b)():e.lift(new y(t))}}class y{constructor(t){if(this.total=t,this.total<0)throw new _.a}call(t,e){return e.subscribe(new w(t,this.total))}}class w extends g.a{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length<n?e.push(t):e[i%n]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let r=0;r<n;r++){const r=e++%n;t.next(i[r])}}t.complete()}}function C(t=O){return e=>e.lift(new x(t))}class x{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new k(t,this.errorFactory))}}class k extends g.a{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function O(){return new l}function S(t=null){return e=>e.lift(new E(t))}class E{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new T(t,this.defaultValue))}}class T extends g.a{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()}}var A=n("SpAZ"),I=n("JIr8"),D=n("IzEk");function P(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Object(b.a)((e,n)=>t(e,n,i)):A.a,Object(D.a)(1),n?S(e):C(()=>new l))}var j=n("5+tZ"),F=n("vkgz");class M{constructor(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}call(t,e){return e.subscribe(new R(t,this.predicate,this.thisArg,this.source))}}class R extends g.a{constructor(t,e,n,i){super(t),this.predicate=e,this.thisArg=n,this.source=i,this.index=0,this.thisArg=n||this}notifyComplete(t){this.destination.next(t),this.destination.complete()}_next(t){let e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}var N=n("eIep"),L=n("JX91");class B{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new H(t,this.accumulator,this.seed,this.hasSeed))}}class H extends g.a{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}var V=n("bOdf"),z=n("nYR2"),U=n("bHdf");class ${constructor(t,e){this.id=t,this.url=e}}class X extends ${constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class q extends ${constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class W extends ${constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class G extends ${constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class K extends ${constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Y extends ${constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class J extends ${constructor(t,e,n,i,r){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Q extends ${constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Z extends ${constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tt{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class et{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class nt{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class it{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rt{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class st{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ot{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class at{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function ct(t){return new at(t)}function lt(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function ut(t,e,n){const i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.length<t.length))return null;const r={};for(let s=0;s<i.length;s++){const e=i[s],n=t[s];if(e.startsWith(":"))r[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,i.length),posParams:r}}function ht(t,e){const n=Object.keys(t),i=Object.keys(e);if(!n||!i||n.length!=i.length)return!1;let r;for(let s=0;s<n.length;s++)if(r=n[s],!dt(t[r],e[r]))return!1;return!0}function dt(t,e){return Array.isArray(t)&&Array.isArray(e)?t.length==e.length&&t.every(t=>e.indexOf(t)>-1):t===e}function pt(t){return Array.prototype.concat.apply([],t)}function mt(t){return t.length>0?t[t.length-1]:null}function ft(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function bt(t){return Object(r.sb)(t)?t:Object(r.tb)(t)?Object(o.a)(Promise.resolve(t)):Object(s.a)(t)}function gt(t,e,n){return n?function(t,e){return ht(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!wt(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children){if(!e.children[i])return!1;if(!t(e.children[i],n.children[i]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>dt(t[n],e[n]))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,i,r){if(n.segments.length>r.length)return!!wt(n.segments.slice(0,r.length),r)&&!i.hasChildren();if(n.segments.length===r.length){if(!wt(n.segments,r))return!1;for(const e in i.children){if(!n.children[e])return!1;if(!t(n.children[e],i.children[e]))return!1}return!0}{const t=r.slice(0,n.segments.length),s=r.slice(n.segments.length);return!!wt(n.segments,t)&&!!n.children.primary&&e(n.children.primary,i,s)}}(e,n,n.segments)}(t.root,e.root)}class _t{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ct(this.queryParams)),this._queryParamMap}toString(){return Ot.serialize(this)}}class vt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,ft(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return St(this)}}class yt{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=ct(this.parameters)),this._parameterMap}toString(){return Pt(this)}}function wt(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function Ct(t,e){let n=[];return ft(t.children,(t,i)=>{"primary"===i&&(n=n.concat(e(t,i)))}),ft(t.children,(t,i)=>{"primary"!==i&&(n=n.concat(e(t,i)))}),n}class xt{}class kt{parse(t){const e=new Nt(t);return new _t(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+function t(e,n){if(!e.hasChildren())return St(e);if(n){const n=e.children.primary?t(e.children.primary,!1):"",i=[];return ft(e.children,(e,n)=>{"primary"!==n&&i.push(`${n}:${t(e,!1)}`)}),i.length>0?`${n}(${i.join("//")})`:n}{const n=Ct(e,(n,i)=>"primary"===i?[t(e.children.primary,!1)]:[`${i}:${t(n,!1)}`]);return`${St(e)}/(${n.join("//")})`}}(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${Tt(e)}=${Tt(t)}`).join("&"):`${Tt(e)}=${Tt(n)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const Ot=new kt;function St(t){return t.segments.map(t=>Pt(t)).join("/")}function Et(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Tt(t){return Et(t).replace(/%3B/gi,";")}function At(t){return Et(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function It(t){return decodeURIComponent(t)}function Dt(t){return It(t.replace(/\+/g,"%20"))}function Pt(t){return`${At(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${At(t)}=${At(e[t])}`).join("")}`;var e}const jt=/^[^\/()?;=#]+/;function Ft(t){const e=t.match(jt);return e?e[0]:""}const Mt=/^[^=?&#]+/,Rt=/^[^?&#]+/;class Nt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new vt([],{}):new vt([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new vt(t,e)),n}parseSegment(){const t=Ft(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new yt(It(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Ft(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Ft(this.remaining);t&&(n=t,this.capture(n))}t[It(e)]=It(n)}parseQueryParam(t){const e=function(t){const e=t.match(Mt);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Rt);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=Dt(e),r=Dt(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(r)}else t[i]=r}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Ft(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r="primary");const s=this.parseChildren();e[r]=1===Object.keys(s).length?s.primary:new vt([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Lt{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Bt(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Bt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Ht(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Ht(t,this._root).map(t=>t.value)}}function Bt(t,e){if(t===e.value)return e;for(const n of e.children){const e=Bt(t,n);if(e)return e}return null}function Ht(t,e){if(t===e.value)return[e];for(const n of e.children){const i=Ht(t,n);if(i.length)return i.unshift(e),i}return[]}class Vt{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function zt(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Ut extends Lt{constructor(t,e){super(t),this.snapshot=e,Kt(this,t)}toString(){return this.snapshot.toString()}}function $t(t,e){const n=function(t,e){const n=new Wt([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Gt("",new Vt(n,[]))}(t,e),i=new a.a([new yt("",{})]),r=new a.a({}),s=new a.a({}),o=new a.a({}),c=new a.a(""),l=new Xt(i,r,o,c,s,"primary",e,n.root);return l.snapshot=n.root,new Ut(new Vt(l,[]),n)}class Xt{constructor(t,e,n,i,r,s,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Object(m.a)(t=>ct(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(m.a)(t=>ct(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function qt(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class Wt{constructor(t,e,n,i,r,s,o,a,c,l,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,this.component=o,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=l,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ct(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ct(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Gt extends Lt{constructor(t,e){super(e),this.url=t,Kt(this,e)}toString(){return Yt(this._root)}}function Kt(t,e){e.value._routerState=t,e.children.forEach(e=>Kt(t,e))}function Yt(t){const e=t.children.length>0?` { ${t.children.map(Yt).join(", ")} } `:"";return`${t.value}${e}`}function Jt(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,ht(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),ht(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!ht(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),ht(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Qt(t,e){var n,i;return ht(t.params,e.params)&&wt(n=t.url,i=e.url)&&n.every((t,e)=>ht(t.parameters,i[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Qt(t.parent,e.parent))}function Zt(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function te(t,e,n,i,r){let s={};return i&&ft(i,(t,e)=>{s[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new _t(n.root===t?e:function t(e,n,i){const r={};return ft(e.children,(e,s)=>{r[s]=e===n?i:t(e,n,i)}),new vt(e.segments,r)}(n.root,t,e),s,r)}class ee{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Zt(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(i&&i!==mt(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ne{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function ie(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:""+t}function re(t,e,n){if(t||(t=new vt([],{})),0===t.segments.length&&t.hasChildren())return se(t,e,n);const i=function(t,e,n){let i=0,r=e;const s={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(i>=n.length)return s;const e=t.segments[r],o=ie(n[i]),a=i<n.length-1?n[i+1]:null;if(r>0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!le(o,a,e))return s;i+=2}else{if(!le(o,{},e))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){const e=new vt(t.segments.slice(0,i.pathIndex),{});return e.children.primary=new vt(t.segments.slice(i.pathIndex),t.children),se(e,0,r)}return i.match&&0===r.length?new vt(t.segments,{}):i.match&&!t.hasChildren()?oe(t,e,n):i.match?se(t,0,r):oe(t,e,n)}function se(t,e,n){if(0===n.length)return new vt(t.segments,{});{const i=function(t){return"object"==typeof t[0]&&null!==t[0]&&t[0].outlets?t[0].outlets:{primary:t}}(n),r={};return ft(i,(n,i)=>{null!==n&&(r[i]=re(t.children[i],e,n))}),ft(t.children,(t,e)=>{void 0===i[e]&&(r[e]=t)}),new vt(t.segments,r)}}function oe(t,e,n){const i=t.segments.slice(0,e);let r=0;for(;r<n.length;){if("object"==typeof n[r]&&null!==n[r]&&void 0!==n[r].outlets){const t=ae(n[r].outlets);return new vt(i,t)}if(0===r&&Zt(n[0])){i.push(new yt(t.segments[e].path,n[0])),r++;continue}const s=ie(n[r]),o=r<n.length-1?n[r+1]:null;s&&o&&Zt(o)?(i.push(new yt(s,ce(o))),r+=2):(i.push(new yt(s,{})),r++)}return new vt(i,{})}function ae(t){const e={};return ft(t,(t,n)=>{null!==t&&(e[n]=oe(new vt([],{}),0,t))}),e}function ce(t){const e={};return ft(t,(t,n)=>e[n]=""+t),e}function le(t,e,n){return t==n.path&&ht(e,n.parameters)}class ue{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Jt(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=zt(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),ft(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(i===r)if(i.component){const r=n.getContext(i.outlet);r&&this.deactivateChildRoutes(t,e,r.children)}else this.deactivateChildRoutes(t,e,n);else r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet);if(n){const i=zt(t),r=t.value.component?n.children:e;ft(i,(t,e)=>this.deactivateRouteAndItsChildren(t,r)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const i=zt(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new st(t.value.snapshot))}),t.children.length&&this.forwardEvent(new it(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(Jt(i),i===r)if(i.component){const r=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,r.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),he(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),r=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=r,e.outlet&&e.outlet.activateWith(i,r),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function he(t){Jt(t.value),t.children.forEach(he)}class de{constructor(t,e){this.routes=t,this.module=e}}function pe(t){return"function"==typeof t}function me(t){return t instanceof _t}class fe{constructor(t){this.segmentGroup=t||null}}class be{constructor(t){this.urlTree=t}}function ge(t){return new c.a(e=>e.error(new fe(t)))}function _e(t){return new c.a(e=>e.error(new be(t)))}function ve(t){return new c.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class ye{constructor(t,e,n,i,s){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(r.y)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(Object(m.a)(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(I.a)(t=>{if(t instanceof be)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof fe)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(Object(m.a)(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(Object(I.a)(t=>{if(t instanceof fe)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new vt([],{primary:t}):t;return new _t(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(m.a)(t=>new vt([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return Object(s.a)({});const n=[],i=[],r={};return ft(t,(t,s)=>{const o=e(s,t).pipe(Object(m.a)(t=>r[s]=t));"primary"===s?n.push(o):i.push(o)}),s.a.apply(null,n.concat(i)).pipe(Object(f.a)(),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Object(b.a)((e,n)=>t(e,n,i)):A.a,v(1),n?S(e):C(()=>new l))}(),Object(m.a)(()=>r))}(n.children,(n,i)=>this.expandSegmentGroup(t,e,i,n))}expandSegment(t,e,n,i,r,o){return Object(s.a)(...n).pipe(Object(m.a)(a=>this.expandSegmentAgainstRoute(t,e,n,a,i,r,o).pipe(Object(I.a)(t=>{if(t instanceof fe)return Object(s.a)(null);throw t}))),Object(f.a)(),P(t=>!!t),Object(I.a)((t,n)=>{if(t instanceof l||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,i,r))return Object(s.a)(new vt([],{}));throw new fe(e)}throw t}))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,i,r,s,o){return ke(i)!==s?ge(e):void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s):ge(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?_e(r):this.lineralizeSegments(n,r).pipe(Object(j.a)(n=>{const r=new vt(n,{});return this.expandSegment(t,r,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s){const{matched:o,consumedSegments:a,lastChild:c,positionalParamSegments:l}=we(e,i,r);if(!o)return ge(e);const u=this.applyRedirectCommands(a,i.redirectTo,l);return i.redirectTo.startsWith("/")?_e(u):this.lineralizeSegments(i,u).pipe(Object(j.a)(i=>this.expandSegment(t,e,n,i.concat(r.slice(c)),s,!1)))}matchSegmentAgainstRoute(t,e,n,i){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Object(m.a)(t=>(n._loadedConfig=t,new vt(i,{})))):Object(s.a)(new vt(i,{}));const{matched:r,consumedSegments:o,lastChild:a}=we(e,n,i);if(!r)return ge(e);const c=i.slice(a);return this.getChildConfig(t,n,i).pipe(Object(j.a)(t=>{const n=t.module,i=t.routes,{segmentGroup:r,slicedSegments:a}=function(t,e,n,i){return n.length>0&&function(t,e,n){return n.some(n=>xe(t,e,n)&&"primary"!==ke(n))}(t,n,i)?{segmentGroup:Ce(new vt(e,function(t,e){const n={};n.primary=e;for(const i of t)""===i.path&&"primary"!==ke(i)&&(n[ke(i)]=new vt([],{}));return n}(i,new vt(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>xe(t,e,n))}(t,n,i)?{segmentGroup:Ce(new vt(t.segments,function(t,e,n,i){const r={};for(const s of n)xe(t,e,s)&&!i[ke(s)]&&(r[ke(s)]=new vt([],{}));return Object.assign(Object.assign({},i),r)}(t,n,i,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,o,c,i);return 0===a.length&&r.hasChildren()?this.expandChildren(n,i,r).pipe(Object(m.a)(t=>new vt(o,t))):0===i.length&&0===a.length?Object(s.a)(new vt(o,{})):this.expandSegment(n,r,i,a,"primary",!0).pipe(Object(m.a)(t=>new vt(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Object(s.a)(new de(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(s.a)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(Object(j.a)(n=>n?this.configLoader.load(t.injector,e).pipe(Object(m.a)(t=>(e._loadedConfig=t,t))):function(t){return new c.a(e=>e.error(lt(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Object(s.a)(new de([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;return i&&0!==i.length?Object(o.a)(i).pipe(Object(m.a)(i=>{const r=t.get(i);let s;if(function(t){return t&&pe(t.canLoad)}(r))s=r.canLoad(e,n);else{if(!pe(r))throw new Error("Invalid CanLoad guard");s=r(e,n)}return bt(s)})).pipe(Object(f.a)(),Object(F.a)(t=>{if(!me(t))return;const e=lt(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(r=t=>!0===t,t=>t.lift(new M(r,void 0,t)))):Object(s.a)(!0);var r}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Object(s.a)(n);if(i.numberOfChildren>1||!i.children.primary)return ve(t.redirectTo);i=i.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const r=this.createSegmentGroup(t,e.root,n,i);return new _t(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return ft(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const r=t.substring(1);n[i]=e[r]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const r=this.createSegments(t,e.segments,n,i);let s={};return ft(e.children,(e,r)=>{s[r]=this.createSegmentGroup(t,e,n,i)}),new vt(r,s)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function we(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const i=(e.matcher||ut)(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Ce(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new vt(t.segments.concat(e.segments),e.children)}return t}function xe(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function ke(t){return t.outlet||"primary"}class Oe{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Se{constructor(t,e){this.component=t,this.route=e}}function Ee(t,e,n){const i=t._root;return function t(e,n,i,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=zt(n);return e.children.forEach(e=>{!function(e,n,i,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,a=n?n.value:null,c=i?i.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!wt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!wt(t.url,e.url)||!ht(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Qt(t,e)||!ht(t.queryParams,e.queryParams);case"paramsChange":default:return!Qt(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new Oe(r)):(o.data=a.data,o._resolvedData=a._resolvedData),t(e,n,o.component?c?c.children:null:i,r,s),l&&s.canDeactivateChecks.push(new Se(c&&c.outlet&&c.outlet.component||null,a))}else a&&Ae(n,c,s),s.canActivateChecks.push(new Oe(r)),t(e,null,o.component?c?c.children:null:i,r,s)}(e,o[e.value.outlet],i,r.concat([e.value]),s),delete o[e.value.outlet]}),ft(o,(t,e)=>Ae(t,i.getContext(e),s)),s}(i,e?e._root:null,n,[i.value])}function Te(t,e,n){const i=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function Ae(t,e,n){const i=zt(t),r=t.value;ft(i,(t,i)=>{Ae(t,r.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new Se(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}const Ie=Symbol("INITIAL_VALUE");function De(){return Object(N.a)(t=>Object(u.a)(...t.map(t=>t.pipe(Object(D.a)(1),Object(L.a)(Ie)))).pipe(function(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new B(t,e,n))}}((t,e)=>{let n=!1;return e.reduce((t,i,r)=>{if(t!==Ie)return t;if(i===Ie&&(n=!0),!n){if(!1===i)return i;if(r===e.length-1||me(i))return i}return t},t)},Ie),Object(b.a)(t=>t!==Ie),Object(m.a)(t=>me(t)?t:!0===t),Object(D.a)(1)))}function Pe(t,e){return null!==t&&e&&e(new rt(t)),Object(s.a)(!0)}function je(t,e){return null!==t&&e&&e(new nt(t)),Object(s.a)(!0)}function Fe(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return Object(s.a)(!0);const r=i.map(i=>Object(h.a)(()=>{const r=Te(i,e,n);let s;if(function(t){return t&&pe(t.canActivate)}(r))s=bt(r.canActivate(e,t));else{if(!pe(r))throw new Error("Invalid CanActivate guard");s=bt(r(e,t))}return s.pipe(P())}));return Object(s.a)(r).pipe(De())}function Me(t,e,n){const i=e[e.length-1],r=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>Object(h.a)(()=>{const r=e.guards.map(r=>{const s=Te(r,e.node,n);let o;if(function(t){return t&&pe(t.canActivateChild)}(s))o=bt(s.canActivateChild(i,t));else{if(!pe(s))throw new Error("Invalid CanActivateChild guard");o=bt(s(i,t))}return o.pipe(P())});return Object(s.a)(r).pipe(De())}));return Object(s.a)(r).pipe(De())}class Re{}class Ne{constructor(t,e,n,i,r,s){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=s}recognize(){try{const t=He(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new Wt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Vt(n,e),r=new Gt(this.url,i);return this.inheritParamsAndData(r._root),Object(s.a)(r)}catch(t){return new c.a(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=qt(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=Ct(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),i=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${i}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,i){for(const s of t)try{return this.processSegmentAgainstRoute(s,e,n,i)}catch(r){if(!(r instanceof Re))throw r}if(this.noLeftoversInUrl(e,n,i))return[];throw new Re}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo)throw new Re;if((t.outlet||"primary")!==i)throw new Re;let r,s=[],o=[];if("**"===t.path){const s=n.length>0?mt(n).parameters:{};r=new Wt(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ue(t),i,t.component,t,Le(e),Be(e)+n.length,$e(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Re;return{consumedSegments:[],lastChild:0,parameters:{}}}const i=(e.matcher||ut)(n,t,e);if(!i)throw new Re;const r={};ft(i.posParams,(t,e)=>{r[e]=t.path});const s=i.consumed.length>0?Object.assign(Object.assign({},r),i.consumed[i.consumed.length-1].parameters):r;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:s}}(e,t,n);s=a.consumedSegments,o=n.slice(a.lastChild),r=new Wt(s,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ue(t),i,t.component,t,Le(e),Be(e)+s.length,$e(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:l}=He(e,s,o,a,this.relativeLinkResolution);if(0===l.length&&c.hasChildren()){const t=this.processChildren(a,c);return[new Vt(r,t)]}if(0===a.length&&0===l.length)return[new Vt(r,[])];const u=this.processSegment(a,c,l,"primary");return[new Vt(r,u)]}}function Le(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Be(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function He(t,e,n,i,r){if(n.length>0&&function(t,e,n){return n.some(n=>Ve(t,e,n)&&"primary"!==ze(n))}(t,n,i)){const r=new vt(e,function(t,e,n,i){const r={};r.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const s of n)if(""===s.path&&"primary"!==ze(s)){const n=new vt([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,r[ze(s)]=n}return r}(t,e,i,new vt(n,t.children)));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>Ve(t,e,n))}(t,n,i)){const s=new vt(t.segments,function(t,e,n,i,r,s){const o={};for(const a of i)if(Ve(t,n,a)&&!r[ze(a)]){const n=new vt([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===s?t.segments.length:e.length,o[ze(a)]=n}return Object.assign(Object.assign({},r),o)}(t,e,n,i,t.children,r));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}const s=new vt(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function Ve(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function ze(t){return t.outlet||"primary"}function Ue(t){return t.data||{}}function $e(t){return t.resolve||{}}function Xe(t){return function(e){return e.pipe(Object(N.a)(e=>{const n=t(e);return n?Object(o.a)(n).pipe(Object(m.a)(()=>e)):Object(o.a)([e])}))}}class qe{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}let We=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Hb({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&r.Ob(0,"router-outlet")},directives:function(){return[dn]},encapsulation:2}),t})();function Ge(t,e=""){for(let n=0;n<t.length;n++){const i=t[n];Ke(i,Ye(e,i))}}function Ke(t,e){if(!t)throw new Error(`\n      Invalid configuration of route '${e}': Encountered undefined route.\n      The reason might be an extra comma.\n\n      Example:\n      const routes: Routes = [\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\n        { path: 'detail/:id', component: HeroDetailComponent }\n      ];\n    `);if(Array.isArray(t))throw new Error(`Invalid configuration of route '${e}': Array cannot be specified`);if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&"primary"!==t.outlet)throw new Error(`Invalid configuration of route '${e}': a componentless route without children or loadChildren cannot have a named outlet set`);if(t.redirectTo&&t.children)throw new Error(`Invalid configuration of route '${e}': redirectTo and children cannot be used together`);if(t.redirectTo&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': redirectTo and loadChildren cannot be used together`);if(t.children&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': children and loadChildren cannot be used together`);if(t.redirectTo&&t.component)throw new Error(`Invalid configuration of route '${e}': redirectTo and component cannot be used together`);if(t.path&&t.matcher)throw new Error(`Invalid configuration of route '${e}': path and matcher cannot be used together`);if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error(`Invalid configuration of route '${e}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===t.path&&void 0===t.matcher)throw new Error(`Invalid configuration of route '${e}': routes must have either a path or a matcher specified`);if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error(`Invalid configuration of route '${e}': path cannot start with a slash`);if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch)throw new Error(`Invalid configuration of route '{path: "${e}", redirectTo: "${t.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error(`Invalid configuration of route '${e}': pathMatch can only be set to 'prefix' or 'full'`);t.children&&Ge(t.children,e)}function Ye(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:`${t}/${e.path}`:"":t}function Je(t){const e=t.children&&t.children.map(Je),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=We),n}const Qe=new r.r("ROUTES");class Ze{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(m.a)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new de(pt(i.injector.get(Qe)).map(Je),i)}))}loadModuleFactory(t){return"string"==typeof t?Object(o.a)(this.loader.load(t)):bt(t()).pipe(Object(j.a)(t=>t instanceof r.w?Object(s.a)(t):Object(o.a)(this.compiler.compileModuleAsync(t))))}}class tn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new en,this.attachRef=null}}class en{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new tn,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class nn{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function rn(t){throw t}function sn(t,e,n){return e.parse("/")}function on(t,e){return Object(s.a)(null)}let an=(()=>{class t{constructor(t,e,n,i,s,o,c,l){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new p.a,this.errorHandler=rn,this.malformedUriErrorHandler=sn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:on,afterPreactivation:on},this.urlHandlingStrategy=new nn,this.routeReuseStrategy=new qe,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=s.get(r.y),this.console=s.get(r.ab);const u=s.get(r.A);this.isNgZoneEnabled=u instanceof r.A,this.resetConfig(l),this.currentUrlTree=new _t(new vt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Ze(o,c,t=>this.triggerEvent(new tt(t)),t=>this.triggerEvent(new et(t))),this.routerState=$t(this.currentUrlTree,this.rootComponentType),this.transitions=new a.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(Object(b.a)(t=>0!==t.id),Object(m.a)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Object(N.a)(t=>{let n=!1,i=!1;return Object(s.a)(t).pipe(Object(F.a)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(N.a)(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(s.a)(t).pipe(Object(N.a)(t=>{const n=this.transitions.getValue();return e.next(new X(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?d.a:[t]}),Object(N.a)(t=>Promise.resolve(t)),(i=this.ngModule.injector,r=this.configLoader,o=this.urlSerializer,a=this.config,function(t){return t.pipe(Object(N.a)(t=>function(t,e,n,i,r){return new ye(t,e,n,i,r).apply()}(i,r,o,t.extractedUrl,a).pipe(Object(m.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),Object(F.a)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,i,r){return function(s){return s.pipe(Object(j.a)(s=>function(t,e,n,i,r="emptyOnly",s="legacy"){return new Ne(t,e,n,i,r,s).recognize()}(t,e,s.urlAfterRedirects,n(s.urlAfterRedirects),i,r).pipe(Object(m.a)(t=>Object.assign(Object.assign({},s),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(F.a)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),Object(F.a)(t=>{const n=new K(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var i,r,o,a;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:r,restoredState:o,extras:a}=t,c=new X(n,this.serializeUrl(i),r,o);e.next(c);const l=$t(i,this.rootComponentType).snapshot;return Object(s.a)(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:i,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),d.a}),Xe(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),Object(F.a)(t=>{const e=new Y(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(m.a)(t=>Object.assign(Object.assign({},t),{guards:Ee(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(Object(j.a)(n=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:a,canDeactivateChecks:c}}=n;return 0===c.length&&0===a.length?Object(s.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return Object(o.a)(t).pipe(Object(j.a)(t=>function(t,e,n,i,r){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(s.a)(!0);const a=o.map(s=>{const o=Te(s,e,r);let a;if(function(t){return t&&pe(t.canDeactivate)}(o))a=bt(o.canDeactivate(t,e,n,i));else{if(!pe(o))throw new Error("Invalid CanDeactivate guard");a=bt(o(t,e,n,i))}return a.pipe(P())});return Object(s.a)(a).pipe(De())}(t.component,t.route,n,e,i)),P(t=>!0!==t,!0))}(c,i,r,t).pipe(Object(j.a)(n=>n&&"boolean"==typeof n?function(t,e,n,i){return Object(o.a)(e).pipe(Object(V.a)(e=>Object(o.a)([je(e.route.parent,i),Pe(e.route,i),Me(t,e.path,n),Fe(t,e.route,n)]).pipe(Object(f.a)(),P(t=>!0!==t,!0))),P(t=>!0!==t,!0))}(i,a,t,e):Object(s.a)(n)),Object(m.a)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),Object(F.a)(t=>{if(me(t.guardsResult)){const e=lt(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),Object(F.a)(t=>{const e=new J(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Object(b.a)(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new W(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),Xe(t=>{if(t.guards.canActivateChecks.length)return Object(s.a)(t).pipe(Object(F.a)(t=>{const e=new Q(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(N.a)(t=>{let n=!1;return Object(s.a)(t).pipe((i=this.paramsInheritanceStrategy,r=this.ngModule.injector,function(t){return t.pipe(Object(j.a)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return Object(s.a)(t);let a=0;return Object(o.a)(n).pipe(Object(V.a)(t=>function(t,e,n,i){return function(t,e,n,i){const r=Object.keys(t);if(0===r.length)return Object(s.a)({});const a={};return Object(o.a)(r).pipe(Object(j.a)(r=>function(t,e,n,i){const r=Te(t,e,i);return bt(r.resolve?r.resolve(e,n):r(e,n))}(t[r],e,n,i).pipe(Object(F.a)(t=>{a[r]=t}))),v(1),Object(j.a)(()=>Object.keys(a).length===r.length?Object(s.a)(a):d.a))}(t._resolve,t,e,i).pipe(Object(m.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),qt(t,n).resolve),null)))}(t.route,e,i,r)),Object(F.a)(()=>a++),v(1),Object(j.a)(e=>a===n.length?Object(s.a)(t):d.a))}))}),Object(F.a)({next:()=>n=!0,complete:()=>{if(!n){const n=new W(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(n),t.resolve(!1)}}}));var i,r}),Object(F.a)(t=>{const e=new Z(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Xe(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),Object(m.a)(t=>{const e=function(t,e,n){const i=function t(e,n,i){if(i&&e.shouldReuseRoute(n.value,i.value.snapshot)){const r=i.value;r._futureSnapshot=n.value;const s=function(e,n,i){return n.children.map(n=>{for(const r of i.children)if(e.shouldReuseRoute(r.value.snapshot,n.value))return t(e,n,r);return t(e,n)})}(e,n,i);return new Vt(r,s)}{const i=e.retrieve(n.value);if(i){const t=i.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(let i=0;i<e.children.length;++i)t(e.children[i],n.children[i])}(n,t),t}{const i=new Xt(new a.a((r=n.value).url),new a.a(r.params),new a.a(r.queryParams),new a.a(r.fragment),new a.a(r.data),r.outlet,r.component,r),s=n.children.map(n=>t(e,n));return new Vt(i,s)}}var r}(t,e._root,n?n._root:void 0);return new Ut(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Object(F.a)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(r=this.rootContexts,c=this.routeReuseStrategy,l=t=>this.triggerEvent(t),Object(m.a)(t=>(new ue(c,t.targetRouterState,t.currentRouterState,l).activate(r),t))),Object(F.a)({next(){n=!0},complete(){n=!0}}),Object(z.a)(()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new W(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null}),Object(I.a)(n=>{if(i=!0,(r=n)&&r.ngNavigationCancelingError){const i=me(n.url);i||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const r=new W(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(r),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const i=new G(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(s){t.reject(s)}}var r;return d.a}));var r,c,l}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{let e=this.parseUrl(t.url);const n="popstate"===t.type?"popstate":"hashchange",i=t.state&&t.state.navigationId?t.state:null;setTimeout(()=>{this.scheduleNavigation(e,n,i,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Ge(t),this.config=t.map(Je),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:i,fragment:s,preserveQueryParams:o,queryParamsHandling:a,preserveFragment:c}=e;Object(r.X)()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=n||this.routerState.root,u=c?this.currentUrlTree.fragment:s;let h=null;if(a)switch(a){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=i||null}else h=o?this.currentUrlTree.queryParams:i||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,n,i,r){if(0===n.length)return te(e.root,e.root,e,i,r);const s=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ee(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,r)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return ft(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===r?(i.split("/").forEach((i,r)=>{0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new ee(n,e,i)}(n);if(s.toRoot())return te(e.root,new vt([],{}),e,i,r);const o=function(t,e,n){if(t.isAbsolute)return new ne(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new ne(t,t===e.root,0)}const i=Zt(t.commands[0])?0:1;return function(t,e,n){let i=t,r=e,s=n;for(;s>r;){if(s-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new ne(i,!1,r-s)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(s,e,t),a=o.processChildren?se(o.segmentGroup,o.index,s.commands):re(o.segmentGroup,o.index,s.commands);return te(o.segmentGroup,a,e,i,r)}(l,this.currentUrlTree,t,h,u)}navigateByUrl(t,e={skipLocationChange:!1}){Object(r.X)()&&this.isNgZoneEnabled&&!r.A.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=me(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const n=t[e];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${e}`)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}isActive(t,e){if(me(t))return gt(this.currentUrlTree,t,e);const n=this.parseUrl(t);return gt(this.currentUrlTree,n,e)}removeEmptyProps(t){return Object.keys(t).reduce((e,n)=>{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new q(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,r){const s=this.getTransition();if(s&&"imperative"!==e&&"imperative"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(s&&"hashchange"==e&&"popstate"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(s&&"popstate"==e&&"hashchange"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);let o,a,c;r?(o=r.resolve,a=r.reject,c=r.promise):c=new Promise((t,e)=>{o=t,a=e});const l=++this.navigationId;return this.setTransition({id:l,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:o,reject:a,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,i){const r=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(r)||e?this.location.replaceState(r,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},i),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(r.P),r.Xb(xt),r.Xb(en),r.Xb(i.n),r.Xb(r.s),r.Xb(r.x),r.Xb(r.i),r.Xb(void 0))},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac}),t})(),cn=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.route=e,this.commands=[],null==n&&i.setAttribute(r.nativeElement,"tabindex","0")}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(r.X)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}onClick(){const t={skipLocationChange:un(this.skipLocationChange),replaceUrl:un(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:un(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:un(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(an),r.Nb(Xt),r.Yb("tabindex"),r.Nb(r.G),r.Nb(r.l))},t.\u0275dir=r.Ib({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&r.ac("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"}}),t})(),ln=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(t=>{t instanceof q&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(r.X)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}ngOnChanges(t){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,i){if(0!==t||e||n||i)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:un(this.skipLocationChange),replaceUrl:un(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:un(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:un(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(an),r.Nb(Xt),r.Nb(i.o))},t.\u0275dir=r.Ib({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&r.ac("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)})),2&t&&(r.Wb("href",e.href,r.xc),r.Cb("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[r.zb]}),t})();function un(t){return""===t||!!t}let hn=(()=>{class t{constructor(t,e,n,i,r,s){this.router=t,this.element=e,this.renderer=n,this.cdr=i,this.link=r,this.linkWithHref=s,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(t=>{t instanceof q&&this.update()})}ngAfterContentInit(){this.links.changes.subscribe(t=>this.update()),this.linksWithHrefs.changes.subscribe(t=>this.update()),this.update()}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){this.subscription.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){return e=>t.isActive(e.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(an),r.Nb(r.l),r.Nb(r.G),r.Nb(r.h),r.Nb(cn,8),r.Nb(ln,8))},t.\u0275dir=r.Ib({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){var i;1&t&&(r.Gb(n,cn,!0),r.Gb(n,ln,!0)),2&t&&(r.rc(i=r.bc())&&(e.links=i),r.rc(i=r.bc())&&(e.linksWithHrefs=i))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[r.zb]}),t})(),dn=(()=>{class t{constructor(t,e,n,i,s){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.n,this.deactivateEvents=new r.n,this.name=i||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new pn(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(en),r.Nb(r.R),r.Nb(r.j),r.Yb("name"),r.Nb(r.h))},t.\u0275dir=r.Ib({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class pn{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Xt?this.route:t===en?this.childContexts:this.parent.get(t,e)}}class mn{}class fn{preload(t,e){return Object(s.a)(null)}}let bn=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.injector=i,this.preloadingStrategy=r,this.loader=new Ze(e,n,e=>t.triggerEvent(new tt(e)),e=>t.triggerEvent(new et(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(b.a)(t=>t instanceof q),Object(V.a)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(r.y);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return Object(o.a)(n).pipe(Object(U.a)(),Object(m.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Object(j.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(an),r.Xb(r.x),r.Xb(r.i),r.Xb(r.s),r.Xb(mn))},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac}),t})(),gn=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof X?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof q&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof ot&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new ot(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(an),r.Xb(i.H),r.Xb(void 0))},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac}),t})();const _n=new r.r("ROUTER_CONFIGURATION"),vn=new r.r("ROUTER_FORROOT_GUARD"),yn=[i.n,{provide:xt,useClass:kt},{provide:an,useFactory:function(t,e,n,r,s,o,a,c={},l,u){const h=new an(null,t,e,n,r,s,o,pt(a));if(l&&(h.urlHandlingStrategy=l),u&&(h.routeReuseStrategy=u),c.errorHandler&&(h.errorHandler=c.errorHandler),c.malformedUriErrorHandler&&(h.malformedUriErrorHandler=c.malformedUriErrorHandler),c.enableTracing){const t=Object(i.L)();h.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return c.onSameUrlNavigation&&(h.onSameUrlNavigation=c.onSameUrlNavigation),c.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=c.paramsInheritanceStrategy),c.urlUpdateStrategy&&(h.urlUpdateStrategy=c.urlUpdateStrategy),c.relativeLinkResolution&&(h.relativeLinkResolution=c.relativeLinkResolution),h},deps:[xt,en,i.n,r.s,r.x,r.i,Qe,_n,[class{},new r.B],[class{},new r.B]]},en,{provide:Xt,useFactory:function(t){return t.routerState.root},deps:[an]},{provide:r.x,useClass:r.M},bn,fn,class{preload(t,e){return e().pipe(Object(I.a)(()=>Object(s.a)(null)))}},{provide:_n,useValue:{enableTracing:!1}}];function wn(){return new r.z("Router",an)}let Cn=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[yn,Sn(e),{provide:vn,useFactory:On,deps:[[an,new r.B,new r.L]]},{provide:_n,useValue:n||{}},{provide:i.o,useFactory:kn,deps:[i.D,[new r.p(i.a),new r.B],_n]},{provide:gn,useFactory:xn,deps:[an,i.H,_n]},{provide:mn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:fn},{provide:r.z,multi:!0,useFactory:wn},[En,{provide:r.d,multi:!0,useFactory:Tn,deps:[En]},{provide:In,useFactory:An,deps:[En]},{provide:r.b,multi:!0,useExisting:In}]]}}static forChild(e){return{ngModule:t,providers:[Sn(e)]}}}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)(r.Xb(vn,8),r.Xb(an,8))}}),t})();function xn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new gn(t,e,n)}function kn(t,e,n={}){return n.useHash?new i.h(t,e):new i.B(t,e)}function On(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Sn(t){return[{provide:r.a,multi:!0,useValue:t},{provide:Qe,multi:!0,useValue:t}]}let En=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new p.a}appInitializer(){return this.injector.get(i.m,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(an),i=this.injector.get(_n);if(this.isLegacyDisabled(i)||this.isLegacyEnabled(i))t(!0);else if("disabled"===i.initialNavigation)n.setUpLocationChangeListener(),t(!0);else{if("enabled"!==i.initialNavigation)throw new Error(`Invalid initialNavigation options: '${i.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?Object(s.a)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(_n),n=this.injector.get(bn),i=this.injector.get(gn),s=this.injector.get(an),o=this.injector.get(r.g);t===o.components[0]&&(this.isLegacyEnabled(e)?s.initialNavigation():this.isLegacyDisabled(e)&&s.setUpLocationChangeListener(),n.setUpPreloading(),i.init(),s.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(r.s))},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac}),t})();function Tn(t){return t.appInitializer.bind(t)}function An(t){return t.bootstrapListener.bind(t)}const In=new r.r("Router Initializer")},u47x:function(t,e,n){"use strict";n.d(e,"a",(function(){return z})),n.d(e,"b",(function(){return x})),n.d(e,"c",(function(){return w})),n.d(e,"d",(function(){return F})),n.d(e,"e",(function(){return H})),n.d(e,"f",(function(){return I})),n.d(e,"g",(function(){return k})),n.d(e,"h",(function(){return L})),n.d(e,"i",(function(){return A})),n.d(e,"j",(function(){return V})),n.d(e,"k",(function(){return j})),n.d(e,"l",(function(){return M}));var i=n("ofXK"),r=n("fXoL"),s=n("nLfN"),o=n("XNiG"),a=n("quSY"),c=n("LRne"),l=n("FtGj"),u=n("vkgz"),h=n("Kj3r"),d=n("pLZG"),p=n("lJxs"),m=n("IzEk"),f=n("8LU1"),b=n("GU7r");function g(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let _=0;const v=new Map;let y=null,w=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}describe(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),v.set(e,{messageElement:e,referenceCount:0})):v.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}removeDescription(t,e){if(e&&this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){const t=v.get(e);t&&0===t.referenceCount&&this._deleteMessageElement(e)}y&&0===y.childNodes.length&&this._deleteMessagesContainer()}}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e<t.length;e++)this._removeCdkDescribedByReferenceIds(t[e]),t[e].removeAttribute("cdk-describedby-host");y&&this._deleteMessagesContainer(),v.clear()}_createMessageElement(t){const e=this._document.createElement("div");this._setMessageId(e),e.textContent=t,this._createMessagesContainer(),y.appendChild(e),v.set(t,{messageElement:e,referenceCount:0})}_setMessageId(t){t.id||(t.id="cdk-describedby-message-"+_++)}_deleteMessageElement(t){const e=v.get(t),n=e&&e.messageElement;y&&n&&y.removeChild(n),v.delete(t)}_createMessagesContainer(){if(!y){const t=!this._platform||!this._platform.EDGE&&!this._platform.TRIDENT,e=this._document.getElementById("cdk-describedby-message-container");e&&e.parentNode.removeChild(e),y=this._document.createElement("div"),y.id="cdk-describedby-message-container",y.classList.add("cdk-visually-hidden"),y.setAttribute("aria-hidden",t+""),this._document.body.appendChild(y)}}_deleteMessagesContainer(){y&&y.parentNode&&(y.parentNode.removeChild(y),y=null)}_removeCdkDescribedByReferenceIds(t){const e=g(t,"aria-describedby").filter(t=>0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=v.get(e);!function(t,e,n){const i=g(t,e);i.some(t=>t.trim()==n.trim())||(i.push(n.trim()),t.setAttribute(e,i.join(" ")))}(t,"aria-describedby",n.messageElement.id),t.setAttribute("cdk-describedby-host",""),n.referenceCount++}_removeMessageReference(t,e){const n=v.get(e);n.referenceCount--,function(t,e,n){const i=g(t,e).filter(t=>t!=n.trim());i.length?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(t,e){const n=g(t,"aria-describedby"),i=v.get(e),r=i&&i.messageElement.id;return!!r&&-1!=n.indexOf(r)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":(""+e).trim(),i=t.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(i.e),r.Xb(s.a))},t.\u0275prov=Object(r.Jb)({factory:function(){return new t(Object(r.Xb)(i.e),Object(r.Xb)(s.a))},token:t,providedIn:"root"}),t})();class C{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new o.a,this._typeaheadSubscription=a.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new o.a,this.change=new o.a,t instanceof r.E&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}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){if(this._items.length&&this._items.some(t=>"function"!=typeof t.getLabel))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Object(u.a)(t=>this._pressedLetters.push(t)),Object(h.a)(t),Object(d.a)(()=>this._pressedLetters.length>0),Object(p.a)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let n=1;n<e.length+1;n++){const i=(this._activeItemIndex+n)%e.length,r=e[i];if(!this._skipPredicateFn(r)&&0===r.getLabel().toUpperCase().trim().indexOf(t)){this.setActiveItem(i);break}}this._pressedLetters=[]}),this}withHomeAndEnd(){return this._homeAndEnd=!0,this}setActiveItem(t){const e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}onKeydown(t){const e=t.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(e=>!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case l.o:return void this.tabOut.next();case l.d:if(this._vertical&&n){this.setNextItemActive();break}return;case l.p:if(this._vertical&&n){this.setPreviousItemActive();break}return;case l.m:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case l.i:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case l.h:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case l.e:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||Object(l.s)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=l.a&&e<=l.q||e>=l.r&&e<=l.j)&&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(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof r.E?this._items.toArray():this._items}}class x extends C{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class k extends C{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let O=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(e){return null}}((n=t).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(e){if(-1===E(e))return!1;if(!this.isVisible(e))return!1}let i=t.nodeName.toLowerCase(),r=E(t);return t.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===i?!!t.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||S(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(s.a))},t.\u0275prov=Object(r.Jb)({factory:function(){return new t(Object(r.Xb)(s.a))},token:t,providedIn:"root"}),t})();function S(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function E(t){if(!S(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class T{constructor(t,e,n,i,r=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||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(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let n=0;n<e.length;n++)e[n].hasAttribute("cdk-focus-"+t)?console.warn(`Found use of deprecated attribute 'cdk-focus-${t}', use 'cdkFocusRegion${t}' instead. The deprecated attribute will be removed in 8.0.0.`,e[n]):e[n].hasAttribute("cdk-focus-region-"+t)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${t}', use 'cdkFocusRegion${t}' instead. The deprecated attribute will be removed in 8.0.0.`,e[n]);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(){const t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");return t?(t.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",t),Object(r.X)()&&!this._checker.isFocusable(t)&&console.warn("Element matching '[cdkFocusInitial]' is not focusable.",t),t.focus(),!0):this.focusFirstTabbableElement()}focusFirstTabbableElement(){const t=this._getRegionBoundary("start");return t&&t.focus(),!!t}focusLastTabbableElement(){const t=this._getRegionBoundary("end");return t&&t.focus(),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let n=0;n<e.length;n++){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[n]):null;if(t)return t}return null}_getLastTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let n=e.length-1;n>=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}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.asObservable().pipe(Object(m.a)(1)).subscribe(t)}}let A=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new T(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(O),r.Xb(r.A),r.Xb(i.e))},t.\u0275prov=Object(r.Jb)({factory:function(){return new t(Object(r.Xb)(O),Object(r.Xb)(r.A),Object(r.Xb)(i.e))},token:t,providedIn:"root"}),t})(),I=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this._document=n,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=Object(f.c)(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=Object(f.c)(t)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(t){const e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady()}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.l),r.Nb(A),r.Nb(i.e))},t.\u0275dir=r.Ib({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[r.zb]}),t})();"undefined"!=typeof Element&&Element;const D=new r.r("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),P=new r.r("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let j=(()=>{class t{constructor(t,e,n,i){this._ngZone=e,this._defaultOptions=i,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let i,r;return 1===e.length&&"number"==typeof e[0]?r=e[0]:[i,r]=e,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==r&&n&&(r=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof r&&(this._previousTimeout=setTimeout(()=>this.clear(),r))},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 t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let n=0;n<t.length;n++)t[n].parentNode.removeChild(t[n]);return e.classList.add("cdk-live-announcer-element"),e.classList.add("cdk-visually-hidden"),e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),e}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(D,8),r.Xb(r.A),r.Xb(i.e),r.Xb(P,8))},t.\u0275prov=Object(r.Jb)({factory:function(){return new t(Object(r.Xb)(D,8),Object(r.Xb)(r.A),Object(r.Xb)(i.e),Object(r.Xb)(P,8))},token:t,providedIn:"root"}),t})(),F=(()=>{class t{constructor(t,e,n,i){this._elementRef=t,this._liveAnnouncer=e,this._contentObserver=n,this._ngZone=i,this._politeness="off"}get politeness(){return this._politeness}set politeness(t){this._politeness="polite"===t||"assertive"===t?t:"off","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.l),r.Nb(j),r.Nb(b.b),r.Nb(r.A))},t.\u0275dir=r.Ib({type:t,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),t})();function M(t){return 0===t.buttons}const R=new r.r("cdk-focus-monitor-default-options"),N=Object(s.f)({passive:!0,capture:!0});let L=(()=>{class t{constructor(t,e,n,i){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=M(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=B(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=B(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=n,this._detectionMode=(null==i?void 0:i.detectionMode)||0}monitor(t,e=!1){if(!this._platform.isBrowser)return Object(c.a)(null);const n=Object(f.e)(t),i=Object(s.c)(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return e&&(r.checkChildren=!0),r.subject.asObservable();const a={checkChildren:e,subject:new o.a,rootNode:i};return this._elementInfo.set(n,a),this._registerGlobalListeners(a),a.subject.asObservable()}stopMonitoring(t){const e=Object(f.e)(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const i=Object(f.e)(t);this._setOriginForCurrentEventQueue(e),"function"==typeof i.focus&&i.focus(n)}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=B(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const n=this._elementInfo.get(e);if(!n||!n.checkChildren&&e!==B(t))return;const i=this._getFocusOrigin(t);this._setClasses(e,i),this._emitOrigin(n.subject,i),this._lastFocusOrigin=i}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,N),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,N)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,N),t.addEventListener("mousedown",this._documentMousedownListener,N),t.addEventListener("touchstart",this._documentTouchstartListener,N),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,N),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,N),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,N),t.removeEventListener("mousedown",this._documentMousedownListener,N),t.removeEventListener("touchstart",this._documentTouchstartListener,N),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(r.A),r.Xb(s.a),r.Xb(i.e,8),r.Xb(R,8))},t.\u0275prov=Object(r.Jb)({factory:function(){return new t(Object(r.Xb)(r.A),Object(r.Xb)(s.a),Object(r.Xb)(i.e,8),Object(r.Xb)(R,8))},token:t,providedIn:"root"}),t})();function B(t){return t.composedPath?t.composedPath()[0]:t.target}let H=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new r.n}ngAfterViewInit(){this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.l),r.Nb(L))},t.\u0275dir=r.Ib({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})(),V=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(s.a),r.Xb(i.e))},t.\u0275prov=Object(r.Jb)({factory:function(){return new t(Object(r.Xb)(s.a),Object(r.Xb)(i.e))},token:t,providedIn:"root"}),t})(),z=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)(r.Xb(V))},imports:[[s.b,b.c]]}),t})()},uHcB:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("fXoL"),r=n("LRXf");let s=(()=>{class t{constructor(t){this.http=t}all(e){return this.http.get(t.BASE_URI,e)}get(e){return this.http.get(`${t.BASE_URI}/${e}`)}createOnStripe(e){return this.http.post(t.BASE_URI+"/stripe",e)}update(e,n){return this.http.put(`${t.BASE_URI}/${e}`,n)}create(e){return this.http.post(t.BASE_URI,e)}cancel(e,n){return this.http.delete(`${t.BASE_URI}/${e}`,n)}resume(e){return this.http.post(`${t.BASE_URI}/${e}/resume`)}changePlan(e,n){return this.http.post(`${t.BASE_URI}/${e}/change-plan`,{newPlanId:n.id})}addCard(t){return this.http.post("billing/stripe/cards/add",{token:t})}finalizeOnStripe(e,n){return this.http.post(t.BASE_URI+"/stripe/finalize",{reference:e,userId:n})}}return t.BASE_URI="billing/subscriptions",t.\u0275fac=function(e){return new(e||t)(i.Xb(r.a))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},v9aN:function(t,e){function n(t){this.name="RavenConfigError",this.message=t}(n.prototype=new Error).constructor=n,t.exports=n},vYjF:function(t,e,n){var i=n("BjAV"),r="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(t){return void 0===t}function o(t){return"[object Object]"===Object.prototype.toString.call(t)}function a(t){return"[object String]"===Object.prototype.toString.call(t)}function c(t){return"[object Array]"===Object.prototype.toString.call(t)}function l(){if(!("fetch"in r))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function u(t,e){var n,i;if(s(t.length))for(n in t)d(t,n)&&e.call(null,n,t[n]);else if(i=t.length)for(n=0;n<i;n++)e.call(null,n,t[n])}function h(t,e){if("number"!=typeof e)throw new Error("2nd argument to `truncate` function should be a number");return"string"!=typeof t||0===e||t.length<=e?t:t.substr(0,e)+"\u2026"}function d(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function p(t){for(var e,n=[],i=0,r=t.length;i<r;i++)a(e=t[i])?n.push(e.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")):e&&e.source&&n.push(e.source);return new RegExp(n.join("|"),"i")}function m(t){var e,n,i,r,s,o=[];if(!t||!t.tagName)return"";if(o.push(t.tagName.toLowerCase()),t.id&&o.push("#"+t.id),(e=t.className)&&a(e))for(n=e.split(/\s+/),s=0;s<n.length;s++)o.push("."+n[s]);var c=["type","name","title","alt"];for(s=0;s<c.length;s++)(r=t.getAttribute(i=c[s]))&&o.push("["+i+'="'+r+'"]');return o.join("")}function f(t,e){return!!(!!t^!!e)}function b(t,e){if(f(t,e))return!1;var n,i,r=t.frames,s=e.frames;if(void 0===r||void 0===s)return!1;if(r.length!==s.length)return!1;for(var o=0;o<r.length;o++)if((n=r[o]).filename!==(i=s[o]).filename||n.lineno!==i.lineno||n.colno!==i.colno||n.function!==i.function)return!1;return!0}function g(t){if("string"==typeof t)return h(t,40);if("number"==typeof t||"boolean"==typeof t||void 0===t)return t;var e=Object.prototype.toString.call(t);return"[object Object]"===e?"[Object]":"[object Array]"===e?"[Array]":"[object Function]"===e?t.name?"[Function: "+t.name+"]":"[Function]":t}t.exports={isObject:function(t){return"object"==typeof t&&null!==t},isError:function(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}},isErrorEvent:function(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)},isDOMError:function(t){return"[object DOMError]"===Object.prototype.toString.call(t)},isDOMException:function(t){return"[object DOMException]"===Object.prototype.toString.call(t)},isUndefined:s,isFunction:function(t){return"function"==typeof t},isPlainObject:o,isString:a,isArray:c,isEmptyObject:function(t){if(!o(t))return!1;for(var e in t)if(t.hasOwnProperty(e))return!1;return!0},supportsErrorEvent:function(){try{return new ErrorEvent(""),!0}catch(t){return!1}},supportsDOMError:function(){try{return new DOMError(""),!0}catch(t){return!1}},supportsDOMException:function(){try{return new DOMException(""),!0}catch(t){return!1}},supportsFetch:l,supportsReferrerPolicy:function(){if(!l())return!1;try{return new Request("pickleRick",{referrerPolicy:"origin"}),!0}catch(t){return!1}},supportsPromiseRejectionEvent:function(){return"function"==typeof PromiseRejectionEvent},wrappedCallback:function(t){return function(e,n){var i=t(e)||e;return n&&n(i)||i}},each:u,objectMerge:function(t,e){return e?(u(e,(function(e,n){t[e]=n})),t):t},truncate:h,objectFrozen:function(t){return!!Object.isFrozen&&Object.isFrozen(t)},hasKey:d,joinRegExp:p,urlencode:function(t){var e=[];return u(t,(function(t,n){e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))})),e.join("&")},uuid4:function(){var t=r.crypto||r.msCrypto;if(!s(t)&&t.getRandomValues){var e=new Uint16Array(8);t.getRandomValues(e),e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;var n=function(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return e};return n(e[0])+n(e[1])+n(e[2])+n(e[3])+n(e[4])+n(e[5])+n(e[6])+n(e[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))},htmlTreeAsString:function(t){for(var e,n=[],i=0,r=0,s=" > ".length;t&&i++<5&&!("html"===(e=m(t))||i>1&&r+n.length*s+e.length>=80);)n.push(e),r+=e.length,t=t.parentNode;return n.reverse().join(" > ")},htmlElementAsString:m,isSameException:function(t,e){return!f(t,e)&&(t=t.values[0]).type===(e=e.values[0]).type&&t.value===e.value&&(n=e.stacktrace,(!s(t.stacktrace)||!s(n))&&b(t.stacktrace,e.stacktrace));var n},isSameStacktrace:b,parseUrl:function(t){if("string"!=typeof t)return{};var e=t.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);return{protocol:e[2],host:e[4],path:e[5],relative:e[5]+(e[6]||"")+(e[8]||"")}},fill:function(t,e,n,i){if(null!=t){var r=t[e];t[e]=n(r),t[e].__raven__=!0,t[e].__orig__=r,i&&i.push([t,e,r])}},safeJoin:function(t,e){if(!c(t))return"";for(var n=[],i=0;i<t.length;i++)try{n.push(String(t[i]))}catch(r){n.push("[value cannot be serialized]")}return n.join(e)},serializeException:function t(e,n,r){if(!o(e))return e;r="number"!=typeof(n="number"!=typeof n?3:n)?51200:r;var s,a=function t(e,n){return 0===n?g(e):o(e)?Object.keys(e).reduce((function(i,r){return i[r]=t(e[r],n-1),i}),{}):Array.isArray(e)?e.map((function(e){return t(e,n-1)})):g(e)}(e,n);return s=i(a),function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(s))>r?t(e,n-1):a},serializeKeysForMessage:function(t,e){if("number"==typeof t||"string"==typeof t)return t.toString();if(!Array.isArray(t))return"";if(0===(t=t.filter((function(t){return"string"==typeof t}))).length)return"[object has no keys]";if(t[0].length>=(e="number"!=typeof e?40:e))return t[0];for(var n=t.length;n>0;n--){var i=t.slice(0,n).join(", ");if(!(i.length>e))return n===t.length?i:i+"\u2026"}return""},sanitize:function(t,e){if(!c(e)||c(e)&&0===e.length)return t;var n,r=p(e);try{n=JSON.parse(i(t))}catch(s){return t}return function t(e){return c(e)?e.map((function(e){return t(e)})):o(e)?Object.keys(e).reduce((function(n,i){return n[i]=r.test(i)?"********":t(e[i]),n}),{}):e}(n)}}},vhtE:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("fXoL"),r=n("twBr"),s=n("tyNb"),o=n("4vkA"),a=n("kmQS");let c=(()=>{class t{constructor(t,e,n,i){this.currentUser=t,this.router=e,this.auth=n,this.settings=i}canActivate(t,e){return this.runAuthCheck(t,e)}canActivateChild(t,e){return this.runAuthCheck(t,e)}runAuthCheck(t,e){return this.checkPermissions(t,e)}getActiveRoute(t){for(;t.firstChild;)t=t.firstChild;return t}checkPermissions(t,e){let n=!0;if(t.data.permissions&&(n=this.currentUser.hasPermissions(t.data.permissions)),n)return!0;if(this.currentUser.isLoggedIn()){const e=this.shouldRedirectToUpgrade(t.data.permissions)?"/billing/upgrade":this.auth.getRedirectUri();this.router.navigate([e])}else this.currentUser.redirectUri=e.url,this.router.navigate(["login"]);return n}shouldRedirectToUpgrade(t){return!(t.length&&t[0].includes("admin"))&&this.settings.get("billing.enable")}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(r.a),i.Xb(s.d),i.Xb(o.a),i.Xb(a.a))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},vkgz:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("7o/Q");function r(){}var s=n("n6bG");function o(t,e,n){return function(i){return i.lift(new a(t,e,n))}}class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))}}class c extends i.a{constructor(t,e,n,i){super(t),this._tapNext=r,this._tapError=r,this._tapComplete=r,this._tapError=n||r,this._tapComplete=i||r,Object(s.a)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||r,this._tapError=e.error||r,this._tapComplete=e.complete||r)}_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(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},vvyD:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var i=n("bTqV"),r=n("bSwM"),s=n("0IaG"),o=n("MutI"),a=n("STbY"),c=n("bv9b"),l=n("1jcm"),u=n("Qu3c"),h=n("NFeN"),d=n("fXoL");let p=(()=>{class t{}return t.\u0275mod=d.Lb({type:t}),t.\u0275inj=d.Kb({factory:function(e){return new(e||t)},imports:[[i.c,r.b,u.b,s.g,a.b,o.c,l.b,c.b,h.b],i.c,r.b,u.b,s.g,a.b,o.c,c.b,l.b,h.b]}),t})()},vxfF:function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return g})),n.d(e,"c",(function(){return m})),n.d(e,"d",(function(){return _})),n.d(e,"e",(function(){return b})),n("8LU1");var i=n("fXoL"),r=n("XNiG"),s=n("LRne"),o=n("HDdC"),a=n("xgIS"),c=(n("eNwd"),n("7Hc7"),n("quSY"),n("7+OI"),n("/uUt"),n("3UWI")),l=n("pLZG"),u=n("1G5W");n("JX91"),n("Zy1z"),n("eIep"),n("jtHE");var h=n("nLfN"),d=n("ofXK"),p=n("cH1L");n("0EQZ");let m=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new r.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new o.a(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(Object(c.a)(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Object(s.a)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Object(l.a)(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollableContainsElement(t,e){let n=e.nativeElement,i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();return Object(a.a)(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(i.A),i.Xb(h.a),i.Xb(d.e,8))},t.\u0275prov=Object(i.Jb)({factory:function(){return new t(Object(i.Xb)(i.A),Object(i.Xb)(h.a),Object(i.Xb)(d.e,8))},token:t,providedIn:"root"}),t})(),f=(()=>{class t{constructor(t,e,n,i){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=n,this.dir=i,this._destroyed=new r.a,this._elementScrolled=new o.a(t=>this.ngZone.runOutsideAngular(()=>Object(a.a)(this.elementRef.nativeElement,"scroll").pipe(Object(u.a)(this._destroyed)).subscribe(t)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){const e=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=n?t.end:t.start),null==t.right&&(t.right=n?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),n&&0!=Object(h.d)()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Object(h.d)()?t.left=t.right:1==Object(h.d)()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;Object(h.g)()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;const n=this.dir&&"rtl"==this.dir.value;return"start"==t?t=n?"right":"left":"end"==t&&(t=n?"left":"right"),n&&2==Object(h.d)()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:n&&1==Object(h.d)()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(i.l),i.Nb(m),i.Nb(i.A),i.Nb(p.c,8))},t.\u0275dir=i.Ib({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),b=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new r.a,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._getDocument(),e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Object(c.a)(t)):this._change}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(h.a),i.Xb(i.A),i.Xb(d.e,8))},t.\u0275prov=Object(i.Jb)({factory:function(){return new t(Object(i.Xb)(h.a),Object(i.Xb)(i.A),Object(i.Xb)(d.e,8))},token:t,providedIn:"root"}),t})(),g=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)}}),t})(),_=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)},imports:[[p.a,h.b,g],p.a,g]}),t})()},w1tV:function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var i=n("XNiG"),r=n("HDdC"),s=n("7o/Q"),o=n("quSY");function a(){return function(t){return t.lift(new c(t))}}class c{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new l(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r}}class l extends s.a{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:n}=this,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}class u extends r.a{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 o.a,t.add(this.source.subscribe(new d(this.getSubject(),this))),t.closed&&(this._connection=null,t=o.a.EMPTY)),t}refCount(){return a()(this)}}const h=(()=>{const t=u.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class d extends i.b{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()}}}function p(){return new i.a}function m(){return t=>{return a()((e=p,function(t){let n;n="function"==typeof e?e:function(){return e};const i=Object.create(t,h);return i.source=t,i.subjectFactory=n,i})(t));var e}}},wZee:function(t,e,n){var i=function(t){var e=/\blang(?:uage)?-([\w-]+)\b/i,n=0,i={manual:t.Prism&&t.Prism.manual,disableWorkerMessageHandler:t.Prism&&t.Prism.disableWorkerMessageHandler,util:{encode:function t(e){return e instanceof r?new r(e.type,t(e.content),e.alias):Array.isArray(e)?e.map(t):e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(t){return Object.prototype.toString.call(t).slice(8,-1)},objId:function(t){return t.__id||Object.defineProperty(t,"__id",{value:++n}),t.__id},clone:function t(e,n){var r,s;switch(n=n||{},i.util.type(e)){case"Object":if(s=i.util.objId(e),n[s])return n[s];for(var o in n[s]=r={},e)e.hasOwnProperty(o)&&(r[o]=t(e[o],n));return r;case"Array":return s=i.util.objId(e),n[s]?n[s]:(n[s]=r=[],e.forEach((function(e,i){r[i]=t(e,n)})),r);default:return e}},getLanguage:function(t){for(;t&&!e.test(t.className);)t=t.parentElement;return t?(t.className.match(e)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(i){var t=(/at [^(\r\n]*\((.*):.+:.+\)$/i.exec(i.stack)||[])[1];if(t){var e=document.getElementsByTagName("script");for(var n in e)if(e[n].src==t)return e[n]}return null}},isActive:function(t,e,n){for(var i="no-"+e;t;){var r=t.classList;if(r.contains(e))return!0;if(r.contains(i))return!1;t=t.parentElement}return!!n}},languages:{extend:function(t,e){var n=i.util.clone(i.languages[t]);for(var r in e)n[r]=e[r];return n},insertBefore:function(t,e,n,r){var s=(r=r||i.languages)[t],o={};for(var a in s)if(s.hasOwnProperty(a)){if(a==e)for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c]);n.hasOwnProperty(a)||(o[a]=s[a])}var l=r[t];return r[t]=o,i.languages.DFS(i.languages,(function(e,n){n===l&&e!=t&&(this[e]=o)})),o},DFS:function t(e,n,r,s){s=s||{};var o=i.util.objId;for(var a in e)if(e.hasOwnProperty(a)){n.call(e,a,e[a],r||a);var c=e[a],l=i.util.type(c);"Object"!==l||s[o(c)]?"Array"!==l||s[o(c)]||(s[o(c)]=!0,t(c,n,a,s)):(s[o(c)]=!0,t(c,n,null,s))}}},plugins:{},highlightAll:function(t,e){i.highlightAllUnder(document,t,e)},highlightAllUnder:function(t,e,n){var r={callback:n,container:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run("before-all-elements-highlight",r);for(var s,o=0;s=r.elements[o++];)i.highlightElement(s,!0===e,r.callback)},highlightElement:function(n,r,s){var o=i.util.getLanguage(n),a=i.languages[o];n.className=n.className.replace(e,"").replace(/\s+/g," ")+" language-"+o;var c=n.parentElement;c&&"pre"===c.nodeName.toLowerCase()&&(c.className=c.className.replace(e,"").replace(/\s+/g," ")+" language-"+o);var l={element:n,language:o,grammar:a,code:n.textContent};function u(t){l.highlightedCode=t,i.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,i.hooks.run("after-highlight",l),i.hooks.run("complete",l),s&&s.call(l.element)}if(i.hooks.run("before-sanity-check",l),!l.code)return i.hooks.run("complete",l),void(s&&s.call(l.element));if(i.hooks.run("before-highlight",l),l.grammar)if(r&&t.Worker){var h=new Worker(i.filename);h.onmessage=function(t){u(t.data)},h.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else u(i.highlight(l.code,l.grammar,l.language));else u(i.util.encode(l.code))},highlight:function(t,e,n){var s={code:t,grammar:e,language:n};return i.hooks.run("before-tokenize",s),s.tokens=i.tokenize(s.code,s.grammar),i.hooks.run("after-tokenize",s),r.stringify(i.util.encode(s.tokens),s.language)},tokenize:function(t,e){var n=e.rest;if(n){for(var c in n)e[c]=n[c];delete e.rest}var l=new s;return o(l,l.head,t),function t(e,n,s,c,l,u){for(var h in s)if(s.hasOwnProperty(h)&&s[h]){var d=s[h];d=Array.isArray(d)?d:[d];for(var p=0;p<d.length;++p){if(u&&u.cause==h+","+p)return;var m=d[p],f=m.inside,b=!!m.lookbehind,g=!!m.greedy,_=0,v=m.alias;if(g&&!m.pattern.global){var y=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,y+"g")}for(var w=m.pattern||m,C=c.next,x=l;C!==n.tail&&!(u&&x>=u.reach);x+=C.value.length,C=C.next){var k=C.value;if(n.length>e.length)return;if(!(k instanceof r)){var O=1;if(g&&C!=n.tail.prev){if(w.lastIndex=x,!(I=w.exec(e)))break;var S=I.index+(b&&I[1]?I[1].length:0),E=I.index+I[0].length,T=x;for(T+=C.value.length;S>=T;)T+=(C=C.next).value.length;if(x=T-=C.value.length,C.value instanceof r)continue;for(var A=C;A!==n.tail&&(T<E||"string"==typeof A.value);A=A.next)O++,T+=A.value.length;O--,k=e.slice(x,T),I.index-=x}else{w.lastIndex=0;var I=w.exec(k)}if(I){b&&(_=I[1]?I[1].length:0),S=I.index+_;var D=I[0].slice(_),P=(E=S+D.length,k.slice(0,S)),j=k.slice(E),F=x+k.length;u&&F>u.reach&&(u.reach=F);var M=C.prev;P&&(M=o(n,M,P),x+=P.length),a(n,M,O),C=o(n,M,new r(h,f?i.tokenize(D,f):D,v,D)),j&&o(n,C,j),O>1&&t(e,n,s,C.prev,x,{cause:h+","+p,reach:F})}}}}}}(t,l,e,l.head,0),function(t){for(var e=[],n=t.head.next;n!==t.tail;)e.push(n.value),n=n.next;return e}(l)},hooks:{all:{},add:function(t,e){var n=i.hooks.all;n[t]=n[t]||[],n[t].push(e)},run:function(t,e){var n=i.hooks.all[t];if(n&&n.length)for(var r,s=0;r=n[s++];)r(e)}},Token:r};function r(t,e,n,i){this.type=t,this.content=e,this.alias=n,this.length=0|(i||"").length}function s(){var t={value:null,prev:null,next:null},e={value:null,prev:t,next:null};t.next=e,this.head=t,this.tail=e,this.length=0}function o(t,e,n){var i=e.next,r={value:n,prev:e,next:i};return e.next=r,i.prev=r,t.length++,r}function a(t,e,n){for(var i=e.next,r=0;r<n&&i!==t.tail;r++)i=i.next;e.next=i,i.prev=e,t.length-=r}if(t.Prism=i,r.stringify=function t(e,n){if("string"==typeof e)return e;if(Array.isArray(e)){var r="";return e.forEach((function(e){r+=t(e,n)})),r}var s={type:e.type,content:t(e.content,n),tag:"span",classes:["token",e.type],attributes:{},language:n},o=e.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(s.classes,o):s.classes.push(o)),i.hooks.run("wrap",s);var a="";for(var c in s.attributes)a+=" "+c+'="'+(s.attributes[c]||"").replace(/"/g,"&quot;")+'"';return"<"+s.tag+' class="'+s.classes.join(" ")+'"'+a+">"+s.content+"</"+s.tag+">"},!t.document)return t.addEventListener?(i.disableWorkerMessageHandler||t.addEventListener("message",(function(e){var n=JSON.parse(e.data),r=n.language,s=n.immediateClose;t.postMessage(i.highlight(n.code,i.languages[r],r)),s&&t.close()}),!1),i):i;var c=i.util.currentScript();function l(){i.manual||i.highlightAll()}if(c&&(i.filename=c.src,c.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var u=document.readyState;"loading"===u||"interactive"===u&&c&&c.defer?document.addEventListener("DOMContentLoaded",l):window.requestAnimationFrame?window.requestAnimationFrame(l):window.setTimeout(l,16)}return i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});t.exports&&(t.exports=i),"undefined"!=typeof global&&(global.Prism=i),i.languages.markup={comment:/<!--[\s\S]*?-->/,prolog:/<\?[\s\S]+?\?>/,doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/,name:/[^\s<>'"]+/}},cdata:/<!\[CDATA\[[\s\S]*?]]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},i.languages.markup.tag.inside["attr-value"].inside.entity=i.languages.markup.entity,i.languages.markup.doctype.inside["internal-subset"].inside=i.languages.markup,i.hooks.add("wrap",(function(t){"entity"===t.type&&(t.attributes.title=t.content.replace(/&amp;/,"&"))})),Object.defineProperty(i.languages.markup.tag,"addInlined",{value:function(t,e){var n={};n["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:i.languages[e]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+e]={pattern:/[\s\S]+/,inside:i.languages[e]};var s={};s[t]={pattern:RegExp(/(<__[\s\S]*?>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return t})),"i"),lookbehind:!0,greedy:!0,inside:r},i.languages.insertBefore("markup","cdata",s)}}),i.languages.html=i.languages.markup,i.languages.mathml=i.languages.markup,i.languages.svg=i.languages.markup,i.languages.xml=i.languages.extend("markup",{}),i.languages.ssml=i.languages.xml,i.languages.atom=i.languages.xml,i.languages.rss=i.languages.xml,function(t){var e=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+[\s\S]*?(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\((?!\s*\))\s*)(?:[^()]|\((?:[^()]|\([^()]*\))*\))+?(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:RegExp("[^{}\\s](?:[^{};\"']|"+e.source+")*?(?=\\s*\\{)"),string:{pattern:e,greedy:!0},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),t.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:n.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:t.languages.css}},alias:"language-css"}},n.tag))}(i),i.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},i.languages.javascript=i.languages.extend("clike",{"class-name":[i.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|(?:get|set)(?=\s*[\[$\w\xA0-\uFFFF])|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,function:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),i.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,i.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,lookbehind:!0,inside:i.languages.javascript},{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,inside:i.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,lookbehind:!0,inside:i.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/,lookbehind:!0,inside:i.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),i.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|(?!\${)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:i.languages.javascript}},string:/[\s\S]+/}}}),i.languages.markup&&i.languages.markup.tag.addInlined("script","javascript"),i.languages.js=i.languages.javascript,function(){if("undefined"!=typeof self&&self.Prism&&self.document){var t=window.Prism,e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',i=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",(function(t){t.selector+=", "+n})),t.hooks.add("before-sanity-check",(function(i){var r=i.element;if(r.matches(n)){i.code="",r.setAttribute("data-src-status","loading");var o=r.appendChild(document.createElement("CODE"));o.textContent="Loading\u2026";var a=r.getAttribute("data-src"),c=i.language;if("none"===c){var l=(/\.(\w+)$/.exec(a)||[,"none"])[1];c=e[l]||l}s(o,c),s(r,c);var u=t.plugins.autoloader;u&&u.loadLanguages(c);var h=new XMLHttpRequest;h.open("GET",a,!0),h.onreadystatechange=function(){4==h.readyState&&(h.status<400&&h.responseText?(r.setAttribute("data-src-status","loaded"),o.textContent=h.responseText,t.highlightElement(o)):(r.setAttribute("data-src-status","failed"),o.textContent=h.status>=400?"\u2716 Error "+h.status+" while fetching file: "+h.statusText:"\u2716 Error: File does not exist or is empty"))},h.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var i,r=(e||document).querySelectorAll(n),s=0;i=r[s++];)t.highlightElement(i)}};var r=!1;t.fileHighlight=function(){r||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),r=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function s(t,e){var n=t.className;n=n.replace(i," ")+" language-"+e,t.className=n.replace(/\s+/g," ").trim()}}()},wZkO:function(t,e,n){"use strict";n.d(e,"a",(function(){return Q})),n.d(e,"b",(function(){return X})),n.d(e,"c",(function(){return lt})),n.d(e,"d",(function(){return W})),n.d(e,"e",(function(){return Ct})),n.d(e,"f",(function(){return _t})),n.d(e,"g",(function(){return xt}));var i=n("u47x"),r=n("GU7r"),s=n("+rOU"),o=n("ofXK"),a=n("fXoL"),c=n("FKr1"),l=n("R1ws"),u=n("XNiG"),h=n("quSY"),d=n("VRyK"),p=n("xgIS"),m=n("LRne"),f=n("PqYM"),b=n("R0Ic"),g=n("JX91"),_=n("/uUt"),v=n("1G5W"),y=n("8LU1"),w=n("nLfN"),C=n("FtGj"),x=n("cH1L"),k=n("vxfF");function O(t,e){1&t&&a.ic(0)}const S=["*"];function E(t,e){}const T=function(t){return{animationDuration:t}},A=function(t,e){return{value:t,params:e}},I=["tabBodyWrapper"],D=["tabHeader"];function P(t,e){}function j(t,e){if(1&t&&a.Fc(0,P,0,0,"ng-template",9),2&t){const t=a.ec().$implicit;a.kc("cdkPortalOutlet",t.templateLabel)}}function F(t,e){if(1&t&&a.Hc(0),2&t){const t=a.ec().$implicit;a.Ic(t.textLabel)}}function M(t,e){if(1&t){const t=a.Ub();a.Tb(0,"div",6),a.ac("click",(function(){a.vc(t);const n=e.$implicit,i=e.index,r=a.ec(),s=a.sc(1);return r._handleClick(n,s,i)})),a.Tb(1,"div",7),a.Fc(2,j,1,1,"ng-template",8),a.Fc(3,F,1,1,"ng-template",8),a.Sb(),a.Sb()}if(2&t){const t=e.$implicit,n=e.index,i=a.ec();a.Fb("mat-tab-label-active",i.selectedIndex==n),a.kc("id",i._getTabLabelId(n))("disabled",t.disabled)("matRippleDisabled",t.disabled||i.disableRipple),a.Cb("tabIndex",i._getTabIndex(t,n))("aria-posinset",n+1)("aria-setsize",i._tabs.length)("aria-controls",i._getTabContentId(n))("aria-selected",i.selectedIndex==n)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),a.Bb(2),a.kc("ngIf",t.templateLabel),a.Bb(1),a.kc("ngIf",!t.templateLabel)}}function R(t,e){if(1&t){const t=a.Ub();a.Tb(0,"mat-tab-body",10),a.ac("_onCentered",(function(){return a.vc(t),a.ec()._removeTabBodyWrapperHeight()}))("_onCentering",(function(e){return a.vc(t),a.ec()._setTabBodyWrapperHeight(e)})),a.Sb()}if(2&t){const t=e.$implicit,n=e.index,i=a.ec();a.Fb("mat-tab-body-active",i.selectedIndex==n),a.kc("id",i._getTabContentId(n))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",i.animationDuration),a.Cb("aria-labelledby",i._getTabLabelId(n))}}const N=["tabListContainer"],L=["tabList"],B=["nextPaginator"],H=["previousPaginator"],V=["mat-tab-nav-bar",""],z=new a.r("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let U=(()=>{class t{constructor(t,e,n,i){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=n,this._animationMode=i}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),n=this._elementRef.nativeElement;n.style.left=e.left,n.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(a.l),a.Nb(a.A),a.Nb(z),a.Nb(l.a,8))},t.\u0275dir=a.Ib({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&a.Fb("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})();const $=new a.r("MatTabContent");let X=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(a.N))},t.\u0275dir=a.Ib({type:t,selectors:[["","matTabContent",""]],features:[a.Ab([{provide:$,useExisting:t}])]}),t})();const q=new a.r("MatTabLabel");let W=(()=>{class t extends s.b{}return t.\u0275fac=function(e){return G(e||t)},t.\u0275dir=a.Ib({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[a.Ab([{provide:q,useExisting:t}]),a.yb]}),t})();const G=a.Vb(W);class K{}const Y=Object(c.x)(K),J=new a.r("MAT_TAB_GROUP");let Q=(()=>{class t extends Y{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new u.a,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){t&&(this._templateLabel=t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new s.i(this._explicitContent||this._implicitContent,this._viewContainerRef)}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(a.R),a.Nb(J,8))},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,n){var i;1&t&&(a.Gb(n,q,!0),a.Ac(n,$,!0,a.N)),2&t&&(a.rc(i=a.bc())&&(e.templateLabel=i.first),a.rc(i=a.bc())&&(e._explicitContent=i.first))},viewQuery:function(t,e){var n;1&t&&a.Bc(a.N,!0),2&t&&a.rc(n=a.bc())&&(e._implicitContent=n.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[a.yb,a.zb],ngContentSelectors:S,decls:1,vars:0,template:function(t,e){1&t&&(a.jc(),a.Fc(0,O,1,0,"ng-template"))},encapsulation:2}),t})();const Z={translateTab:Object(b.m)("translateTab",[Object(b.j)("center, void, left-origin-center, right-origin-center",Object(b.k)({transform:"none"})),Object(b.j)("left",Object(b.k)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Object(b.j)("right",Object(b.k)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Object(b.l)("* => left, * => right, left => center, right => center",Object(b.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Object(b.l)("void => left-origin-center",[Object(b.k)({transform:"translate3d(-100%, 0, 0)"}),Object(b.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Object(b.l)("void => right-origin-center",[Object(b.k)({transform:"translate3d(100%, 0, 0)"}),Object(b.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let tt=(()=>{class t extends s.c{constructor(t,e,n,i){super(t,e,i),this._host=n,this._centeringSub=h.a.EMPTY,this._leavingSub=h.a.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Object(g.a)(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(a.j),a.Nb(a.R),a.Nb(Object(a.V)(()=>nt)),a.Nb(o.e))},t.\u0275dir=a.Ib({type:t,selectors:[["","matTabBodyHost",""]],features:[a.yb]}),t})(),et=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._dir=e,this._dirChangeSubscription=h.a.EMPTY,this._translateTabComplete=new u.a,this._onCentering=new a.n,this._beforeCentering=new a.n,this._afterLeavingCenter=new a.n,this._onCentered=new a.n(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),n.markForCheck()})),this._translateTabComplete.pipe(Object(_.a)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(a.l),a.Nb(x.c,8),a.Nb(a.h))},t.\u0275dir=a.Ib({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),nt=(()=>{class t extends et{constructor(t,e,n){super(t,e,n)}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(a.l),a.Nb(x.c,8),a.Nb(a.h))},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var n;1&t&&a.Nc(s.f,!0),2&t&&a.rc(n=a.bc())&&(e._portalHost=n.first)},hostAttrs:[1,"mat-tab-body"],features:[a.yb],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(a.Tb(0,"div",0,1),a.ac("@translateTab.start",(function(t){return e._onTranslateTabStarted(t)}))("@translateTab.done",(function(t){return e._translateTabComplete.next(t)})),a.Fc(2,E,0,0,"ng-template",2),a.Sb()),2&t&&a.kc("@translateTab",a.pc(3,A,e._position,a.oc(1,T,e.animationDuration)))},directives:[tt],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Z.translateTab]}}),t})();const it=new a.r("MAT_TABS_CONFIG");let rt=0;class st{}class ot{constructor(t){this._elementRef=t}}const at=Object(c.v)(Object(c.w)(ot),"primary");let ct=(()=>{class t extends at{constructor(t,e,n,i){super(t),this._changeDetectorRef=e,this._animationMode=i,this._tabs=new a.E,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=h.a.EMPTY,this._tabLabelSubscription=h.a.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new a.n,this.focusChange=new a.n,this.animationDone=new a.n,this.selectedTabChange=new a.n(!0),this._groupId=rt++,this.animationDuration=n&&n.animationDuration?n.animationDuration:"500ms",this.disablePagination=!(!n||null==n.disablePagination)&&n.disablePagination}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=Object(y.c)(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=Object(y.f)(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove("mat-background-"+this.backgroundColor),t&&e.classList.add("mat-background-"+t),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;e||this.selectedTabChange.emit(this._createChangeEvent(t)),Promise.resolve().then(()=>{this._tabs.forEach((e,n)=>e.isActive=n===t),e||this.selectedIndexChange.emit(t)})}this._tabs.forEach((e,n)=>{e.position=n-t,null==this._selectedIndex||0!=e.position||e.origin||(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e<t.length;e++)if(t[e].isActive){this._indexToSelect=this._selectedIndex=e;break}}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Object(g.a)(this._allTabs)).subscribe(t=>{this._tabs.reset(t.filter(t=>!t._closestTabGroup||t._closestTabGroup===this)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new st;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Object(d.a)(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,n){t.disabled||(this.selectedIndex=e.focusIndex=n)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(a.l),a.Nb(a.h),a.Nb(it,8),a.Nb(l.a,8))},t.\u0275dir=a.Ib({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[a.yb]}),t})(),lt=(()=>{class t extends ct{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(a.l),a.Nb(a.h),a.Nb(it,8),a.Nb(l.a,8))},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,n){var i;1&t&&a.Gb(n,Q,!0),2&t&&a.rc(i=a.bc())&&(e._allTabs=i)},viewQuery:function(t,e){var n;1&t&&(a.Nc(I,!0),a.Nc(D,!0)),2&t&&(a.rc(n=a.bc())&&(e._tabBodyWrapper=n.first),a.rc(n=a.bc())&&(e._tabHeader=n.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&a.Fb("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[a.Ab([{provide:J,useExisting:t}]),a.yb],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(a.Tb(0,"mat-tab-header",0,1),a.ac("indexFocused",(function(t){return e._focusChanged(t)}))("selectFocusedIndex",(function(t){return e.selectedIndex=t})),a.Fc(2,M,4,14,"div",2),a.Sb(),a.Tb(3,"div",3,4),a.Fc(5,R,1,8,"mat-tab-body",5),a.Sb()),2&t&&(a.kc("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),a.Bb(2),a.kc("ngForOf",e._tabs),a.Bb(1),a.Fb("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.Bb(2),a.kc("ngForOf",e._tabs))},directives:function(){return[bt,o.s,dt,c.q,i.e,o.t,s.c,nt]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t})();class ut{}const ht=Object(c.x)(ut);let dt=(()=>{class t extends ht{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(a.l))},t.\u0275dir=a.Ib({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(a.Cb("aria-disabled",!!e.disabled),a.Fb("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[a.yb]}),t})();const pt=Object(w.f)({passive:!0});let mt=(()=>{class t{constructor(t,e,n,i,r,s,o){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=n,this._dir=i,this._ngZone=r,this._platform=s,this._animationMode=o,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new u.a,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new u.a,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new a.n,this.indexFocused=new a.n,r.runOutsideAngular(()=>{Object(p.a)(t.nativeElement,"mouseleave").pipe(Object(v.a)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=Object(y.f)(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){Object(p.a)(this._previousPaginator.nativeElement,"touchstart",pt).pipe(Object(v.a)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Object(p.a)(this._nextPaginator.nativeElement,"touchstart",pt).pipe(Object(v.a)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:Object(m.a)(null),e=this._viewportRuler.change(150),n=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new i.g(this._items).withHorizontalOrientation(this._getLayoutDirection()).withWrap(),this._keyManager.updateActiveItem(0),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(n):n(),Object(d.a)(t,e,this._items.changes).pipe(Object(v.a)(this._destroyed)).subscribe(()=>{Promise.resolve().then(n),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Object(v.a)(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!Object(C.s)(t))switch(t.keyCode){case C.h:this._keyManager.setFirstItemActive(),t.preventDefault();break;case C.e:this._keyManager.setLastItemActive(),t.preventDefault();break;case C.f:case C.n:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,n=this._getLayoutDirection();e.scrollLeft="ltr"==n?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e=this._platform,n="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(n)}px)`,e&&(e.TRIDENT||e.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const n=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:i,offsetWidth:r}=e.elementRef.nativeElement;let s,o;"ltr"==this._getLayoutDirection()?(s=i,o=s+r):(o=this._tabList.nativeElement.offsetWidth-i,s=o-r);const a=this.scrollDistance,c=this.scrollDistance+n;s<a?this.scrollDistance-=a-s+60:o>c&&(this.scrollDistance+=o-c+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),Object(f.a)(650,100).pipe(Object(v.a)(Object(d.a)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:n}=this._scrollHeader(t);(0===n||n>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(a.l),a.Nb(a.h),a.Nb(k.e),a.Nb(x.c,8),a.Nb(a.A),a.Nb(w.a),a.Nb(l.a,8))},t.\u0275dir=a.Ib({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),ft=(()=>{class t extends mt{constructor(t,e,n,i,r,s,o){super(t,e,n,i,r,s,o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Object(y.c)(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(a.l),a.Nb(a.h),a.Nb(k.e),a.Nb(x.c,8),a.Nb(a.A),a.Nb(w.a),a.Nb(l.a,8))},t.\u0275dir=a.Ib({type:t,inputs:{disableRipple:"disableRipple"},features:[a.yb]}),t})(),bt=(()=>{class t extends ft{constructor(t,e,n,i,r,s,o){super(t,e,n,i,r,s,o)}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(a.l),a.Nb(a.h),a.Nb(k.e),a.Nb(x.c,8),a.Nb(a.A),a.Nb(w.a),a.Nb(l.a,8))},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,n){var i;1&t&&a.Gb(n,dt,!1),2&t&&a.rc(i=a.bc())&&(e._items=i)},viewQuery:function(t,e){var n;1&t&&(a.Bc(U,!0),a.Bc(N,!0),a.Bc(L,!0),a.Nc(B,!0),a.Nc(H,!0)),2&t&&(a.rc(n=a.bc())&&(e._inkBar=n.first),a.rc(n=a.bc())&&(e._tabListContainer=n.first),a.rc(n=a.bc())&&(e._tabList=n.first),a.rc(n=a.bc())&&(e._nextPaginator=n.first),a.rc(n=a.bc())&&(e._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&a.Fb("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[a.yb],ngContentSelectors:S,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(a.jc(),a.Tb(0,"div",0,1),a.ac("click",(function(){return e._handlePaginatorClick("before")}))("mousedown",(function(t){return e._handlePaginatorPress("before",t)}))("touchend",(function(){return e._stopInterval()})),a.Ob(2,"div",2),a.Sb(),a.Tb(3,"div",3,4),a.ac("keydown",(function(t){return e._handleKeydown(t)})),a.Tb(5,"div",5,6),a.ac("cdkObserveContent",(function(){return e._onContentChanges()})),a.Tb(7,"div",7),a.ic(8),a.Sb(),a.Ob(9,"mat-ink-bar"),a.Sb(),a.Sb(),a.Tb(10,"div",8,9),a.ac("mousedown",(function(t){return e._handlePaginatorPress("after",t)}))("click",(function(){return e._handlePaginatorClick("after")}))("touchend",(function(){return e._stopInterval()})),a.Ob(12,"div",2),a.Sb()),2&t&&(a.Fb("mat-tab-header-pagination-disabled",e._disableScrollBefore),a.kc("matRippleDisabled",e._disableScrollBefore||e.disableRipple),a.Bb(5),a.Fb("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.Bb(5),a.Fb("mat-tab-header-pagination-disabled",e._disableScrollAfter),a.kc("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[c.q,r.a,U],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t})(),gt=(()=>{class t extends mt{constructor(t,e,n,i,r,s,o){super(t,i,r,e,n,s,o),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement.classList;e.remove("mat-background-"+this.backgroundColor),t&&e.add("mat-background-"+t),this._backgroundColor=t}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Object(y.c)(t)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe(Object(g.a)(null),Object(v.a)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(t){if(!this._items)return;const e=this._items.toArray();for(let n=0;n<e.length;n++)if(e[n].active)return this.selectedIndex=n,void this._changeDetectorRef.markForCheck();this.selectedIndex=-1,this._inkBar.hide()}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(a.l),a.Nb(x.c,8),a.Nb(a.A),a.Nb(a.h),a.Nb(k.e),a.Nb(w.a,8),a.Nb(l.a,8))},t.\u0275dir=a.Ib({type:t,inputs:{color:"color",backgroundColor:"backgroundColor",disableRipple:"disableRipple"},features:[a.yb]}),t})(),_t=(()=>{class t extends gt{constructor(t,e,n,i,r,s,o){super(t,e,n,i,r,s,o)}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(a.l),a.Nb(x.c,8),a.Nb(a.A),a.Nb(a.h),a.Nb(k.e),a.Nb(w.a,8),a.Nb(l.a,8))},t.\u0275cmp=a.Hb({type:t,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(t,e,n){var i;1&t&&a.Gb(n,Ct,!0),2&t&&a.rc(i=a.bc())&&(e._items=i)},viewQuery:function(t,e){var n;1&t&&(a.Bc(U,!0),a.Bc(N,!0),a.Bc(L,!0),a.Nc(B,!0),a.Nc(H,!0)),2&t&&(a.rc(n=a.bc())&&(e._inkBar=n.first),a.rc(n=a.bc())&&(e._tabListContainer=n.first),a.rc(n=a.bc())&&(e._tabList=n.first),a.rc(n=a.bc())&&(e._nextPaginator=n.first),a.rc(n=a.bc())&&(e._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(t,e){2&t&&a.Fb("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())("mat-primary","warn"!==e.color&&"accent"!==e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[a.yb],attrs:V,ngContentSelectors:S,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(a.jc(),a.Tb(0,"div",0,1),a.ac("click",(function(){return e._handlePaginatorClick("before")}))("mousedown",(function(t){return e._handlePaginatorPress("before",t)}))("touchend",(function(){return e._stopInterval()})),a.Ob(2,"div",2),a.Sb(),a.Tb(3,"div",3,4),a.ac("keydown",(function(t){return e._handleKeydown(t)})),a.Tb(5,"div",5,6),a.ac("cdkObserveContent",(function(){return e._onContentChanges()})),a.Tb(7,"div",7),a.ic(8),a.Sb(),a.Ob(9,"mat-ink-bar"),a.Sb(),a.Sb(),a.Tb(10,"div",8,9),a.ac("mousedown",(function(t){return e._handlePaginatorPress("after",t)}))("click",(function(){return e._handlePaginatorClick("after")}))("touchend",(function(){return e._stopInterval()})),a.Ob(12,"div",2),a.Sb()),2&t&&(a.Fb("mat-tab-header-pagination-disabled",e._disableScrollBefore),a.kc("matRippleDisabled",e._disableScrollBefore||e.disableRipple),a.Bb(5),a.Fb("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.Bb(5),a.Fb("mat-tab-header-pagination-disabled",e._disableScrollAfter),a.kc("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[c.q,r.a,U],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n'],encapsulation:2}),t})();class vt{}const yt=Object(c.z)(Object(c.w)(Object(c.x)(vt)));let wt=(()=>{class t extends yt{constructor(t,e,n,i,r,s){super(),this._tabNavBar=t,this.elementRef=e,this._focusMonitor=r,this._isActive=!1,this.rippleConfig=n||{},this.tabIndex=parseInt(i)||0,"NoopAnimations"===s&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(t){t!==this._isActive&&(this._isActive=t,this._tabNavBar.updateActiveLink(this.elementRef))}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(gt),a.Nb(a.l),a.Nb(c.g,8),a.Yb("tabindex"),a.Nb(i.h),a.Nb(l.a,8))},t.\u0275dir=a.Ib({type:t,inputs:{active:"active"},features:[a.yb]}),t})(),Ct=(()=>{class t extends wt{constructor(t,e,n,i,r,s,o,a){super(t,e,r,s,o,a),this._tabLinkRipple=new c.s(this,n,e,i),this._tabLinkRipple.setupTriggerEvents(e.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(_t),a.Nb(a.l),a.Nb(a.A),a.Nb(w.a),a.Nb(c.g,8),a.Yb("tabindex"),a.Nb(i.h),a.Nb(l.a,8))},t.\u0275dir=a.Ib({type:t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){2&t&&(a.Cb("aria-current",e.active?"page":null)("aria-disabled",e.disabled)("tabIndex",e.tabIndex),a.Fb("mat-tab-disabled",e.disabled)("mat-tab-label-active",e.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[a.yb]}),t})(),xt=(()=>{class t{}return t.\u0275mod=a.Lb({type:t}),t.\u0275inj=a.Kb({factory:function(e){return new(e||t)},imports:[[o.c,c.h,s.h,c.r,r.c,i.a],c.h]}),t})()},xHqg:function(t,e,n){"use strict";n.d(e,"a",(function(){return et})),n.d(e,"b",(function(){return Q})),n.d(e,"c",(function(){return K})),n.d(e,"d",(function(){return X})),n.d(e,"e",(function(){return Z})),n.d(e,"f",(function(){return J})),n.d(e,"g",(function(){return ct})),n.d(e,"h",(function(){return rt})),n.d(e,"i",(function(){return ot})),n.d(e,"j",(function(){return it}));var i=n("+rOU"),r=n("u47x"),s=n("cH1L"),o=n("8LU1"),a=n("FtGj"),c=n("ofXK"),l=n("fXoL"),u=n("XNiG"),h=n("LRne"),d=n("JX91"),p=n("1G5W");function m(t,e){1&t&&l.ic(0)}const f=["*"];let b=(()=>{class t{constructor(t){this._elementRef=t}focus(){this._elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(l.Nb(l.l))},t.\u0275dir=l.Ib({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),t})(),g=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(l.Nb(l.N))},t.\u0275dir=l.Ib({type:t,selectors:[["","cdkStepLabel",""]]}),t})(),_=0;const v=new l.r("STEPPER_GLOBAL_OPTIONS");let y=(()=>{class t{constructor(t,e){this._stepper=t,this.interacted=!1,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=e||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType,this._showError=!!this._stepperOptions.showError}get editable(){return this._editable}set editable(t){this._editable=Object(o.c)(t)}get optional(){return this._optional}set optional(t){this._optional=Object(o.c)(t)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(t){this._completedOverride=Object(o.c)(t)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(t){this._customError=Object(o.c)(t)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}}return t.\u0275fac=function(e){return new(e||t)(l.Nb(Object(l.V)(()=>w)),l.Nb(v,8))},t.\u0275cmp=l.Hb({type:t,selectors:[["cdk-step"]],contentQueries:function(t,e,n){var i;1&t&&l.Gb(n,g,!0),2&t&&l.rc(i=l.bc())&&(e.stepLabel=i.first)},viewQuery:function(t,e){var n;1&t&&l.Bc(l.N,!0),2&t&&l.rc(n=l.bc())&&(e.content=n.first)},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},exportAs:["cdkStep"],features:[l.zb],ngContentSelectors:f,decls:1,vars:0,template:function(t,e){1&t&&(l.jc(),l.Fc(0,m,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t})(),w=(()=>{class t{constructor(t,e,n,i){this._dir=t,this._changeDetectorRef=e,this._elementRef=n,this._destroyed=new u.a,this._linear=!1,this._selectedIndex=0,this.selectionChange=new l.n,this._orientation="horizontal",this._groupId=_++,this._document=i}get steps(){return this._steps}get linear(){return this._linear}set linear(t){this._linear=Object(o.c)(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){const e=Object(o.f)(t);if(this.steps){if(e<0||e>this.steps.length-1)throw Error("cdkStepper: Cannot assign out-of-bounds value to `selectedIndex`.");this._selectedIndex!=e&&!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(t)}else this._selectedIndex=e}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(t){this.selectedIndex=this.steps?this.steps.toArray().indexOf(t):-1}ngAfterViewInit(){this._keyManager=new r.g(this._stepHeader).withWrap().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:Object(h.a)()).pipe(Object(d.a)(this._layoutDirection()),Object(p.a)(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.pipe(Object(p.a)(this._destroyed)).subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))})}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(t=>t.reset()),this._stateChanged()}_getStepLabelId(t){return`cdk-step-label-${this._groupId}-${t}`}_getStepContentId(t){return`cdk-step-content-${this._groupId}-${t}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(t){const e=t-this._selectedIndex;return e<0?"rtl"===this._layoutDirection()?"next":"previous":e>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(t,e="number"){const n=this.steps.toArray()[t],i=this._isCurrentStep(t);return n._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(n,i):this._getGuidelineLogic(n,i,e)}_getDefaultIndicatorLogic(t,e){return t._showError&&t.hasError&&!e?"error":!t.completed||e?"number":t.editable?"edit":"done"}_getGuidelineLogic(t,e,n="number"){return t._showError&&t.hasError&&!e?"error":t.completed&&!e?"done":t.completed&&e?n:t.editable&&e?"edit":n}_isCurrentStep(t){return this._selectedIndex===t}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(t){const e=this.steps.toArray();this.selectionChange.emit({selectedIndex:t,previouslySelectedIndex:this._selectedIndex,selectedStep:e[t],previouslySelectedStep:e[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(t):this._keyManager.updateActiveItem(t),this._selectedIndex=t,this._stateChanged()}_onKeydown(t){const e=Object(a.s)(t),n=t.keyCode,i=this._keyManager;null==i.activeItemIndex||e||n!==a.n&&n!==a.f?n===a.h?(i.setFirstItemActive(),t.preventDefault()):n===a.e?(i.setLastItemActive(),t.preventDefault()):i.onKeydown(t):(this.selectedIndex=i.activeItemIndex,t.preventDefault())}_anyControlsInvalidOrPending(t){const e=this.steps.toArray();return e[this._selectedIndex].interacted=!0,!!(this._linear&&t>=0)&&e.slice(0,t).some(t=>{const e=t.stepControl;return(e?e.invalid||e.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){if(!this._document||!this._elementRef)return!1;const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(l.Nb(s.c,8),l.Nb(l.h),l.Nb(l.l),l.Nb(c.e))},t.\u0275dir=l.Ib({type:t,selectors:[["","cdkStepper",""]],contentQueries:function(t,e,n){var i;1&t&&(l.Gb(n,y,!0),l.Gb(n,b,!0)),2&t&&(l.rc(i=l.bc())&&(e._steps=i),l.rc(i=l.bc())&&(e._stepHeader=i))},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),t})(),C=(()=>{class t{constructor(t){this._stepper=t,this.type="submit"}_handleClick(){this._stepper.next()}}return t.\u0275fac=function(e){return new(e||t)(l.Nb(w))},t.\u0275dir=l.Ib({type:t,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(t,e){1&t&&l.ac("click",(function(){return e._handleClick()})),2&t&&l.Wb("type",e.type)},inputs:{type:"type"}}),t})(),x=(()=>{class t{constructor(t){this._stepper=t,this.type="button"}_handleClick(){this._stepper.previous()}}return t.\u0275fac=function(e){return new(e||t)(l.Nb(w))},t.\u0275dir=l.Ib({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,e){1&t&&l.ac("click",(function(){return e._handleClick()})),2&t&&l.Wb("type",e.type)},inputs:{type:"type"}}),t})(),k=(()=>{class t{}return t.\u0275mod=l.Lb({type:t}),t.\u0275inj=l.Kb({factory:function(e){return new(e||t)},imports:[[s.a]]}),t})();var O=n("bTqV"),S=n("FKr1"),E=n("NFeN"),T=n("/uUt"),A=n("R0Ic");function I(t,e){if(1&t&&l.Pb(0,9),2&t){const t=l.ec();l.kc("ngTemplateOutlet",t.iconOverrides[t.state])("ngTemplateOutletContext",t._getIconContext())}}function D(t,e){if(1&t&&(l.Tb(0,"span"),l.Hc(1),l.Sb()),2&t){const t=l.ec(2);l.Bb(1),l.Ic(t._getDefaultTextForState(t.state))}}function P(t,e){if(1&t&&(l.Tb(0,"mat-icon"),l.Hc(1),l.Sb()),2&t){const t=l.ec(2);l.Bb(1),l.Ic(t._getDefaultTextForState(t.state))}}function j(t,e){if(1&t&&(l.Rb(0,10),l.Fc(1,D,2,1,"span",11),l.Fc(2,P,2,1,"mat-icon",12),l.Qb()),2&t){const t=l.ec();l.kc("ngSwitch",t.state),l.Bb(1),l.kc("ngSwitchCase","number")}}function F(t,e){if(1&t&&l.Pb(0,13),2&t){const t=l.ec();l.kc("ngTemplateOutlet",t._templateLabel().template)}}function M(t,e){if(1&t&&(l.Tb(0,"div",14),l.Hc(1),l.Sb()),2&t){const t=l.ec();l.Bb(1),l.Ic(t.label)}}function R(t,e){if(1&t&&(l.Tb(0,"div",15),l.Hc(1),l.Sb()),2&t){const t=l.ec();l.Bb(1),l.Ic(t._intl.optionalLabel)}}function N(t,e){if(1&t&&(l.Tb(0,"div",16),l.Hc(1),l.Sb()),2&t){const t=l.ec();l.Bb(1),l.Ic(t.errorMessage)}}function L(t,e){1&t&&l.ic(0)}const B=["*"];function H(t,e){1&t&&l.Ob(0,"div",6)}function V(t,e){if(1&t){const t=l.Ub();l.Rb(0),l.Tb(1,"mat-step-header",4),l.ac("click",(function(){return e.$implicit.select()}))("keydown",(function(e){return l.vc(t),l.ec()._onKeydown(e)})),l.Sb(),l.Fc(2,H,1,0,"div",5),l.Qb()}if(2&t){const t=e.$implicit,n=e.index,i=e.last,r=l.ec();l.Bb(1),l.kc("tabIndex",r._getFocusIndex()===n?0:-1)("id",r._getStepLabelId(n))("index",n)("state",r._getIndicatorType(n,t.state))("label",t.stepLabel||t.label)("selected",r.selectedIndex===n)("active",t.completed||r.selectedIndex===n||!r.linear)("optional",t.optional)("errorMessage",t.errorMessage)("iconOverrides",r._iconOverrides)("disableRipple",r.disableRipple),l.Cb("aria-posinset",n+1)("aria-setsize",r.steps.length)("aria-controls",r._getStepContentId(n))("aria-selected",r.selectedIndex==n)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),l.Bb(1),l.kc("ngIf",!i)}}function z(t,e){if(1&t){const t=l.Ub();l.Tb(0,"div",7),l.ac("@stepTransition.done",(function(e){return l.vc(t),l.ec()._animationDone.next(e)})),l.Pb(1,8),l.Sb()}if(2&t){const t=e.$implicit,n=e.index,i=l.ec();l.kc("@stepTransition",i._getAnimationDirection(n))("id",i._getStepContentId(n)),l.Cb("aria-labelledby",i._getStepLabelId(n))("aria-expanded",i.selectedIndex===n),l.Bb(1),l.kc("ngTemplateOutlet",t.content)}}function U(t,e){if(1&t){const t=l.Ub();l.Tb(0,"div",1),l.Tb(1,"mat-step-header",2),l.ac("click",(function(){return e.$implicit.select()}))("keydown",(function(e){return l.vc(t),l.ec()._onKeydown(e)})),l.Sb(),l.Tb(2,"div",3),l.Tb(3,"div",4),l.ac("@stepTransition.done",(function(e){return l.vc(t),l.ec()._animationDone.next(e)})),l.Tb(4,"div",5),l.Pb(5,6),l.Sb(),l.Sb(),l.Sb(),l.Sb()}if(2&t){const t=e.$implicit,n=e.index,i=e.last,r=l.ec();l.Bb(1),l.kc("tabIndex",r._getFocusIndex()==n?0:-1)("id",r._getStepLabelId(n))("index",n)("state",r._getIndicatorType(n,t.state))("label",t.stepLabel||t.label)("selected",r.selectedIndex===n)("active",t.completed||r.selectedIndex===n||!r.linear)("optional",t.optional)("errorMessage",t.errorMessage)("iconOverrides",r._iconOverrides)("disableRipple",r.disableRipple),l.Cb("aria-posinset",n+1)("aria-setsize",r.steps.length)("aria-controls",r._getStepContentId(n))("aria-selected",r.selectedIndex===n)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),l.Bb(1),l.Fb("mat-stepper-vertical-line",!i),l.Bb(1),l.kc("@stepTransition",r._getAnimationDirection(n))("id",r._getStepContentId(n)),l.Cb("aria-labelledby",r._getStepLabelId(n))("aria-expanded",r.selectedIndex===n),l.Bb(2),l.kc("ngTemplateOutlet",t.content)}}const $='.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n';let X=(()=>{class t extends g{}return t.\u0275fac=function(e){return q(e||t)},t.\u0275dir=l.Ib({type:t,selectors:[["","matStepLabel",""]],features:[l.yb]}),t})();const q=l.Vb(X);let W=(()=>{class t{constructor(){this.changes=new u.a,this.optionalLabel="Optional"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(l.Jb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const G={provide:W,deps:[[new l.B,new l.L,W]],useFactory:function(t){return t||new W}};let K=(()=>{class t extends b{constructor(t,e,n,i){super(n),this._intl=t,this._focusMonitor=e,this._intlSubscription=t.changes.subscribe(()=>i.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(){this._focusMonitor.focusVia(this._elementRef,"program")}_stringLabel(){return this.label instanceof X?null:this.label}_templateLabel(){return this.label instanceof X?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(t){return"number"==t?""+(this.index+1):"edit"==t?"create":"error"==t?"warning":t}}return t.\u0275fac=function(e){return new(e||t)(l.Nb(W),l.Nb(r.h),l.Nb(l.l),l.Nb(l.h))},t.\u0275cmp=l.Hb({type:t,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header","mat-focus-indicator"],inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[l.yb],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],[3,"ngTemplateOutlet",4,"ngIf"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"ngTemplateOutlet"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(t,e){1&t&&(l.Ob(0,"div",0),l.Tb(1,"div"),l.Tb(2,"div",1),l.Fc(3,I,1,2,"ng-container",2),l.Fc(4,j,3,2,"ng-container",3),l.Sb(),l.Sb(),l.Tb(5,"div",4),l.Fc(6,F,1,1,"ng-container",5),l.Fc(7,M,2,1,"div",6),l.Fc(8,R,2,1,"div",7),l.Fc(9,N,2,1,"div",8),l.Sb()),2&t&&(l.kc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disableRipple),l.Bb(1),l.Eb("mat-step-icon-state-",e.state," mat-step-icon"),l.Fb("mat-step-icon-selected",e.selected),l.Bb(1),l.kc("ngSwitch",!(!e.iconOverrides||!e.iconOverrides[e.state])),l.Bb(1),l.kc("ngSwitchCase",!0),l.Bb(2),l.Fb("mat-step-label-active",e.active)("mat-step-label-selected",e.selected)("mat-step-label-error","error"==e.state),l.Bb(1),l.kc("ngIf",e._templateLabel()),l.Bb(1),l.kc("ngIf",e._stringLabel()),l.Bb(1),l.kc("ngIf",e.optional&&"error"!=e.state),l.Bb(1),l.kc("ngIf","error"==e.state))},directives:[S.q,c.x,c.y,c.z,c.t,c.A,E.a],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t})();const Y={horizontalStepTransition:Object(A.m)("stepTransition",[Object(A.j)("previous",Object(A.k)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),Object(A.j)("current",Object(A.k)({transform:"none",visibility:"visible"})),Object(A.j)("next",Object(A.k)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),Object(A.l)("* => *",Object(A.e)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:Object(A.m)("stepTransition",[Object(A.j)("previous",Object(A.k)({height:"0px",visibility:"hidden"})),Object(A.j)("next",Object(A.k)({height:"0px",visibility:"hidden"})),Object(A.j)("current",Object(A.k)({height:"*",visibility:"visible"})),Object(A.l)("* <=> current",Object(A.e)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let J=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(l.Nb(l.N))},t.\u0275dir=l.Ib({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),t})(),Q=(()=>{class t extends y{constructor(t,e,n){super(t,n),this._errorStateMatcher=e}isErrorState(t,e){return this._errorStateMatcher.isErrorState(t,e)||!!(t&&t.invalid&&this.interacted)}}return t.\u0275fac=function(e){return new(e||t)(l.Nb(Object(l.V)(()=>Z)),l.Nb(S.b,4),l.Nb(v,8))},t.\u0275cmp=l.Hb({type:t,selectors:[["mat-step"]],contentQueries:function(t,e,n){var i;1&t&&l.Gb(n,X,!0),2&t&&l.rc(i=l.bc())&&(e.stepLabel=i.first)},exportAs:["matStep"],features:[l.Ab([{provide:S.b,useExisting:t},{provide:y,useExisting:t}]),l.yb],ngContentSelectors:B,decls:1,vars:0,template:function(t,e){1&t&&(l.jc(),l.Fc(0,L,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t})(),Z=(()=>{class t extends w{constructor(){super(...arguments),this.animationDone=new l.n,this._iconOverrides={},this._animationDone=new u.a}ngAfterContentInit(){this._icons.forEach(({name:t,templateRef:e})=>this._iconOverrides[t]=e),this._steps.changes.pipe(Object(p.a)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(Object(T.a)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState),Object(p.a)(this._destroyed)).subscribe(t=>{"current"===t.toState&&this.animationDone.emit()})}}return t.\u0275fac=function(e){return tt(e||t)},t.\u0275dir=l.Ib({type:t,selectors:[["","matStepper",""]],contentQueries:function(t,e,n){var i;1&t&&(l.Gb(n,Q,!0),l.Gb(n,J,!0)),2&t&&(l.rc(i=l.bc())&&(e._steps=i),l.rc(i=l.bc())&&(e._icons=i))},viewQuery:function(t,e){var n;1&t&&l.Nc(K,!0),2&t&&l.rc(n=l.bc())&&(e._stepHeader=n)},inputs:{disableRipple:"disableRipple"},outputs:{animationDone:"animationDone"},features:[l.Ab([{provide:w,useExisting:t}]),l.yb]}),t})();const tt=l.Vb(Z);let et=(()=>{class t extends Z{constructor(){super(...arguments),this.labelPosition="end"}}return t.\u0275fac=function(e){return nt(e||t)},t.\u0275cmp=l.Hb({type:t,selectors:[["mat-horizontal-stepper"]],hostAttrs:["aria-orientation","horizontal","role","tablist",1,"mat-stepper-horizontal"],hostVars:4,hostBindings:function(t,e){2&t&&l.Fb("mat-stepper-label-position-end","end"==e.labelPosition)("mat-stepper-label-position-bottom","bottom"==e.labelPosition)},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition"},exportAs:["matHorizontalStepper"],features:[l.Ab([{provide:Z,useExisting:t},{provide:w,useExisting:t}]),l.yb],decls:4,vars:2,consts:[[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[1,"mat-horizontal-stepper-header",3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","click","keydown"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(l.Tb(0,"div",0),l.Fc(1,V,3,18,"ng-container",1),l.Sb(),l.Tb(2,"div",2),l.Fc(3,z,2,5,"div",3),l.Sb()),2&t&&(l.Bb(1),l.kc("ngForOf",e.steps),l.Bb(2),l.kc("ngForOf",e.steps))},directives:[c.s,K,c.t,c.A],styles:[$],encapsulation:2,data:{animation:[Y.horizontalStepTransition]},changeDetection:0}),t})();const nt=l.Vb(et);let it=(()=>{class t extends Z{constructor(t,e,n,i){super(t,e,n,i),this._orientation="vertical"}}return t.\u0275fac=function(e){return new(e||t)(l.Nb(s.c,8),l.Nb(l.h),l.Nb(l.l),l.Nb(c.e))},t.\u0275cmp=l.Hb({type:t,selectors:[["mat-vertical-stepper"]],hostAttrs:["aria-orientation","vertical","role","tablist",1,"mat-stepper-vertical"],inputs:{selectedIndex:"selectedIndex"},exportAs:["matVerticalStepper"],features:[l.Ab([{provide:Z,useExisting:t},{provide:w,useExisting:t}]),l.yb],decls:1,vars:1,consts:[["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-stepper-header",3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","click","keydown"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&l.Fc(0,U,6,24,"div",0),2&t&&l.kc("ngForOf",e.steps)},directives:[c.s,K,c.A],styles:[$],encapsulation:2,data:{animation:[Y.verticalStepTransition]},changeDetection:0}),t})(),rt=(()=>{class t extends C{}return t.\u0275fac=function(e){return st(e||t)},t.\u0275dir=l.Ib({type:t,selectors:[["button","matStepperNext",""]],hostVars:1,hostBindings:function(t,e){2&t&&l.Wb("type",e.type)},inputs:{type:"type"},features:[l.yb]}),t})();const st=l.Vb(rt);let ot=(()=>{class t extends x{}return t.\u0275fac=function(e){return at(e||t)},t.\u0275dir=l.Ib({type:t,selectors:[["button","matStepperPrevious",""]],hostVars:1,hostBindings:function(t,e){2&t&&l.Wb("type",e.type)},inputs:{type:"type"},features:[l.yb]}),t})();const at=l.Vb(ot);let ct=(()=>{class t{}return t.\u0275mod=l.Lb({type:t}),t.\u0275inj=l.Kb({factory:function(e){return new(e||t)},providers:[G,S.b],imports:[[S.h,c.c,i.h,O.c,k,E.b,S.r],S.h]}),t})()},xgIS:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("HDdC"),r=n("DH7j"),s=n("n6bG"),o=n("lJxs");function a(t,e,n,c){return Object(s.a)(n)&&(c=n,n=void 0),c?a(t,e,n).pipe(Object(o.a)(t=>Object(r.a)(t)?c(...t):c(t))):new i.a(i=>{!function t(e,n,i,r,s){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(n,i,s),o=()=>t.removeEventListener(n,i,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(n,i),o=()=>t.off(n,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(n,i),o=()=>t.removeListener(n,i)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,a=e.length;o<a;o++)t(e[o],n,i,r,s)}r.add(o)}(t,e,(function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),i,n)})}},yCtX:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("HDdC"),r=n("ngJS"),s=n("jZKg");function o(t,e){return e?Object(s.a)(t,e):new i.a(Object(r.a)(t))}},yLCO:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));class i{static removeBaseUrl(t,e){let n=t.replace(/<base id="base" href=".+?">/,"");return e&&(n=n.replace(new RegExp(e,"g"),""),n=n.replace(/<link rel="stylesheet" href="[a-z:\/0-9\.]+" id="preview-css">/,"")),n}static createLink(t,e){const n=document.createElement("link");return n.rel="stylesheet",n.href=t,e&&(n.id=e),n}static createScript(t,e){const n=document.createElement("script");return e&&(n.id=e),n.src=t,n}static nodeIsEditable(t){if(t.nodeType!==Node.ELEMENT_NODE)return!1;if(t.hasAttribute("contenteditable"))return!0;const e=t.parentElement;return!(!e||e.nodeType!==Node.ELEMENT_NODE)&&e.hasAttribute("contenteditable")}static coordinatesAboveNode(t,e,n){if("#text"===t.nodeName)return;const i=t.getBoundingClientRect(),r=t.offsetWidth,s=t.offsetHeight;let o=[[i.left,i.top],[i.left+r,i.top],[i.left+r,i.top+s],[i.left,i.top+s]];return n<o[2][1]&&(n<o[0][1]||e<o[0][0])}static swapNodes(t,e){if(t.contains(e)||e.contains(t))return;const n=e.parentElement,i=e.nextElementSibling;if(i===t)n.insertBefore(t,e);else{if(!t.parentElement)return;t.parentElement.insertBefore(e,t),i?n.insertBefore(t,i):n.appendChild(t)}}static reorderDom(t,e){let n=[];t.forEach((t,r)=>{const s=e[r];e[r]===t||n.indexOf(s)>-1||n.indexOf(t)>-1||(i.swapNodes(s,t),n.push(t))})}}},yLV6:function(t,e,n){var i;!function(r,s,o,a){"use strict";var c,l=["","webkit","Moz","MS","ms","o"],u=s.createElement("div"),h=Math.round,d=Math.abs,p=Date.now;function m(t,e,n){return setTimeout(w(t,n),e)}function f(t,e,n){return!!Array.isArray(t)&&(b(t,n[e],n),!0)}function b(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function g(t,e,n){var i="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",s=r.console&&(r.console.warn||r.console.log);return s&&s.call(r.console,i,n),t.apply(this,arguments)}}c="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign;var _=g((function(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&void 0===t[i[r]])&&(t[i[r]]=e[i[r]]),r++;return t}),"extend","Use `assign`."),v=g((function(t,e){return _(t,e,!0)}),"merge","Use `assign`.");function y(t,e,n){var i,r=e.prototype;(i=t.prototype=Object.create(r)).constructor=t,i._super=r,n&&c(i,n)}function w(t,e){return function(){return t.apply(e,arguments)}}function C(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function x(t,e){return void 0===t?e:t}function k(t,e,n){b(T(e),(function(e){t.addEventListener(e,n,!1)}))}function O(t,e,n){b(T(e),(function(e){t.removeEventListener(e,n,!1)}))}function S(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function E(t,e){return t.indexOf(e)>-1}function T(t){return t.trim().split(/\s+/g)}function A(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function I(t){return Array.prototype.slice.call(t,0)}function D(t,e,n){for(var i=[],r=[],s=0;s<t.length;){var o=e?t[s][e]:t[s];A(r,o)<0&&i.push(t[s]),r[s]=o,s++}return n&&(i=e?i.sort((function(t,n){return t[e]>n[e]})):i.sort()),i}function P(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),s=0;s<l.length;){if((i=(n=l[s])?n+r:e)in t)return i;s++}}var j=1;function F(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||r}var M="ontouchstart"in r,R=void 0!==P(r,"PointerEvent"),N=M&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),L=["x","y"],B=["clientX","clientY"];function H(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){C(t.options.enable,[t])&&n.handler(e)},this.init()}function V(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,s=1&e&&i-r==0,o=12&e&&i-r==0;n.isFirst=!!s,n.isFinal=!!o,s&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=z(e)),r>1&&!n.firstMultiple?n.firstMultiple=z(e):1===r&&(n.firstMultiple=!1);var s=n.firstInput,o=n.firstMultiple,a=o?o.center:s.center,c=e.center=U(i);e.timeStamp=p(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=W(a,c),e.distance=q(a,c),function(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},s=t.prevInput||{};1!==e.eventType&&4!==s.eventType||(r=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}(n,e),e.offsetDirection=X(e.deltaX,e.deltaY);var l,u,h=$(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=h.x,e.overallVelocityY=h.y,e.overallVelocity=d(h.x)>d(h.y)?h.x:h.y,e.scale=o?(l=o.pointers,q((u=i)[0],u[1],B)/q(l[0],l[1],B)):1,e.rotation=o?function(t,e){return W(e[1],e[0],B)+W(t[1],t[0],B)}(o.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,i,r,s,o=t.lastInterval||e,a=e.timeStamp-o.timeStamp;if(8!=e.eventType&&(a>25||void 0===o.velocity)){var c=e.deltaX-o.deltaX,l=e.deltaY-o.deltaY,u=$(a,c,l);i=u.x,r=u.y,n=d(u.x)>d(u.y)?u.x:u.y,s=X(c,l),t.lastInterval=e}else n=o.velocity,i=o.velocityX,r=o.velocityY,s=o.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=s}(n,e);var m=t.element;S(e.srcEvent.target,m)&&(m=e.srcEvent.target),e.target=m}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function z(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:h(t.pointers[n].clientX),clientY:h(t.pointers[n].clientY)},n++;return{timeStamp:p(),pointers:e,center:U(e),deltaX:t.deltaX,deltaY:t.deltaY}}function U(t){var e=t.length;if(1===e)return{x:h(t[0].clientX),y:h(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:h(n/e),y:h(i/e)}}function $(t,e,n){return{x:e/t||0,y:n/t||0}}function X(t,e){return t===e?1:d(t)>=d(e)?t<0?2:4:e<0?8:16}function q(t,e,n){n||(n=L);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function W(t,e,n){return n||(n=L),180*Math.atan2(e[n[1]]-t[n[1]],e[n[0]]-t[n[0]])/Math.PI}H.prototype={handler:function(){},init:function(){this.evEl&&k(this.element,this.evEl,this.domHandler),this.evTarget&&k(this.target,this.evTarget,this.domHandler),this.evWin&&k(F(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&O(this.element,this.evEl,this.domHandler),this.evTarget&&O(this.target,this.evTarget,this.domHandler),this.evWin&&O(F(this.element),this.evWin,this.domHandler)}};var G={mousedown:1,mousemove:2,mouseup:4};function K(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,H.apply(this,arguments)}y(K,H,{handler:function(t){var e=G[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var Y={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},J={2:"touch",3:"pen",4:"mouse",5:"kinect"},Q="pointerdown",Z="pointermove pointerup pointercancel";function tt(){this.evEl=Q,this.evWin=Z,H.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}r.MSPointerEvent&&!r.PointerEvent&&(Q="MSPointerDown",Z="MSPointerMove MSPointerUp MSPointerCancel"),y(tt,H,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=Y[i],s=J[t.pointerType]||t.pointerType,o="touch"==s,a=A(e,t.pointerId,"pointerId");1&r&&(0===t.button||o)?a<0&&(e.push(t),a=e.length-1):12&r&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:s,srcEvent:t}),n&&e.splice(a,1))}});var et={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function nt(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,H.apply(this,arguments)}function it(t,e){var n=I(t.touches),i=I(t.changedTouches);return 12&e&&(n=D(n.concat(i),"identifier",!0)),[n,i]}y(nt,H,{handler:function(t){var e=et[t.type];if(1===e&&(this.started=!0),this.started){var n=it.call(this,t,e);12&e&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var rt={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function st(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},H.apply(this,arguments)}function ot(t,e){var n=I(t.touches),i=this.targetIds;if(3&e&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,s,o=I(t.changedTouches),a=[],c=this.target;if(s=n.filter((function(t){return S(t.target,c)})),1===e)for(r=0;r<s.length;)i[s[r].identifier]=!0,r++;for(r=0;r<o.length;)i[o[r].identifier]&&a.push(o[r]),12&e&&delete i[o[r].identifier],r++;return a.length?[D(s.concat(a),"identifier",!0),a]:void 0}function at(){H.apply(this,arguments);var t=w(this.handler,this);this.touch=new st(this.manager,t),this.mouse=new K(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function ct(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,lt.call(this,e)):12&t&&lt.call(this,e)}function lt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout((function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)}),2500)}}function ut(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],s=Math.abs(e-r.x),o=Math.abs(n-r.y);if(s<=25&&o<=25)return!0}return!1}y(st,H,{handler:function(t){var e=rt[t.type],n=ot.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}),y(at,H,{handler:function(t,e,n){var i="mouse"==n.pointerType;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if("touch"==n.pointerType)ct.call(this,e,n);else if(i&&ut.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ht=P(u.style,"touchAction"),dt=void 0!==ht,pt=function(){if(!dt)return!1;var t={},e=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){t[n]=!e||r.CSS.supports("touch-action",n)})),t}();function mt(t,e){this.manager=t,this.set(e)}function ft(t){this.options=c({},this.defaults,t||{}),this.id=j++,this.manager=null,this.options.enable=x(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function bt(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function gt(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function _t(t,e){var n=e.manager;return n?n.get(t):t}function vt(){ft.apply(this,arguments)}function yt(){vt.apply(this,arguments),this.pX=null,this.pY=null}function wt(){vt.apply(this,arguments)}function Ct(){ft.apply(this,arguments),this._timer=null,this._input=null}function xt(){vt.apply(this,arguments)}function kt(){vt.apply(this,arguments)}function Ot(){ft.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function St(t,e){return(e=e||{}).recognizers=x(e.recognizers,St.defaults.preset),new Et(t,e)}function Et(t,e){var n;this.options=c({},St.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(R?tt:N?st:M?at:K))(n,V),this.touchAction=new mt(this,this.options.touchAction),Tt(this,!0),b(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function Tt(t,e){var n,i=t.element;i.style&&(b(t.options.cssProps,(function(r,s){n=P(i.style,s),e?(t.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}mt.prototype={set:function(t){"compute"==t&&(t=this.compute()),dt&&this.manager.element.style&&pt[t]&&(this.manager.element.style[ht]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return b(this.manager.recognizers,(function(e){C(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(E(t,"none"))return"none";var e=E(t,"pan-x"),n=E(t,"pan-y");return e&&n?"none":e||n?e?"pan-x":"pan-y":E(t,"manipulation")?"manipulation":"auto"}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,r=E(i,"none")&&!pt.none,s=E(i,"pan-y")&&!pt["pan-y"],o=E(i,"pan-x")&&!pt["pan-x"];if(r&&1===t.pointers.length&&t.distance<2&&t.deltaTime<250)return;if(!o||!s)return r||s&&6&n||o&&24&n?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}},ft.prototype={defaults:{},set:function(t){return c(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(f(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=_t(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return f(t,"dropRecognizeWith",this)||(t=_t(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(f(t,"requireFailure",this))return this;var e=this.requireFail;return-1===A(e,t=_t(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(f(t,"dropRequireFailure",this))return this;t=_t(t,this);var e=A(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n<8&&i(e.options.event+bt(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=8&&i(e.options.event+bt(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},recognize:function(t){var e=c({},t);if(!C(this.options.enable,[this,e]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},y(vt,ft,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=6&e,r=this.attrTest(t);return i&&(8&n||!r)?16|e:i||r?4&n?8|e:2&e?4|e:2:32}}),y(yt,vt,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push("pan-y"),24&t&&e.push("pan-x"),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,s=t.deltaX,o=t.deltaY;return r&e.direction||(6&e.direction?(r=0===s?1:s<0?2:4,n=s!=this.pX,i=Math.abs(t.deltaX)):(r=0===o?1:o<0?8:16,n=o!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return vt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=gt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),y(wt,vt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){1!==t.scale&&(t.additionalEvent=this.options.event+(t.scale<1?"in":"out")),this._super.emit.call(this,t)}}),y(Ct,ft,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||12&t.eventType&&!r)this.reset();else if(1&t.eventType)this.reset(),this._timer=m((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&t.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),y(xt,vt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),y(kt,vt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return yt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return 30&n?e=t.overallVelocity:6&n?e=t.overallVelocityX:24&n&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&d(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=gt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),y(Ot,ft,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(i&&r&&n){if(4!=t.eventType)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<e.interval,o=!this.pCenter||q(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,o&&s?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=m((function(){this.state=8,this.tryEmit()}),e.interval,this),2):8}return 32},failTimeout:function(){return this._timer=m((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),St.VERSION="2.0.7",St.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[xt,{enable:!1}],[wt,{enable:!1},["rotate"]],[kt,{direction:6}],[yt,{direction:6},["swipe"]],[Ot],[Ot,{event:"doubletap",taps:2},["tap"]],[Ct]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Et.prototype={set:function(t){return c(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,r=e.curRecognizer;(!r||r&&8&r.state)&&(r=e.curRecognizer=null);for(var s=0;s<i.length;)n=i[s],2===e.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&14&n.state&&(r=e.curRecognizer=n),s++}},get:function(t){if(t instanceof ft)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(f(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(f(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=A(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(void 0!==t&&void 0!==e){var n=this.handlers;return b(T(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(void 0!==t){var n=this.handlers;return b(T(t),(function(t){e?n[t]&&n[t].splice(A(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=s.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},destroy:function(){this.element&&Tt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},c(St,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Et,Input:H,TouchAction:mt,TouchInput:st,MouseInput:K,PointerEventInput:tt,TouchMouseInput:at,SingleTouchInput:nt,Recognizer:ft,AttrRecognizer:vt,Tap:Ot,Pan:yt,Swipe:kt,Pinch:wt,Rotate:xt,Press:Ct,on:k,off:O,each:b,merge:v,extend:_,assign:c,inherit:y,bindFn:w,prefixed:P}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=St,void 0===(i=(function(){return St}).call(e,n,e,t))||(t.exports=i)}(window,document)},"z+Ro":function(t,e,n){"use strict";function i(t){return t&&"function"==typeof t.schedule}n.d(e,"a",(function(){return i}))},z6cu:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("HDdC");function r(t,e){return new i.a(e?n=>e.schedule(s,0,{error:t,subscriber:n}):e=>e.error(t))}function s({error:t,subscriber:e}){e.error(t)}},zP0r:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("7o/Q");function r(t){return e=>e.lift(new s(t))}class s{constructor(t){this.total=t}call(t,e){return e.subscribe(new o(t,this.total))}}class o extends i.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}},zUnb:function(t,e,n){"use strict";n.r(e);var i=n("fXoL");n("yLV6");var r=n("jhN1"),s=n("tyNb"),o=n("pLZG");function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function c(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return l(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,void 0):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={mimeType:e.mimeType||null,onBeforeSend:e.onBeforeSend||Function.prototype,onSuccess:e.onSuccess||Function.prototype,onError:e.onError||Function.prototype,onComplete:e.onComplete||Function.prototype},i=Array.isArray(t)?t:[t],r=Array.apply(null,Array(i.length)).map((function(t){return null}));function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e="<"===t.trim().charAt(0);return!e}function o(t,e){n.onError(t,i[e],e)}function a(t,e){var s=n.onSuccess(t,i[e],e);r[e]=t=!1===s?"":s||t,-1===r.indexOf(null)&&n.onComplete(r)}var c=document.createElement("a");i.forEach((function(t,e){if(c.setAttribute("href",t),c.href=String(c.href),Boolean(document.all&&!window.atob)&&c.host.split(":")[0]!==location.host.split(":")[0])if(c.protocol===location.protocol){var i=new XDomainRequest;i.open("GET",t),i.timeout=0,i.onprogress=Function.prototype,i.ontimeout=Function.prototype,i.onload=function(){s(i.responseText)?a(i.responseText,e):o(i,e)},i.onerror=function(t){o(i,e)},setTimeout((function(){i.send()}),0)}else console.warn("Internet Explorer 9 Cross-Origin (CORS) requests must use the same protocol (".concat(t,")")),o(null,e);else{var r=new XMLHttpRequest;r.open("GET",t),n.mimeType&&r.overrideMimeType&&r.overrideMimeType(n.mimeType),n.onBeforeSend(r,t,e),r.onreadystatechange=function(){4===r.readyState&&(200===r.status&&s(r.responseText)?a(r.responseText,e):o(r,e))},r.send()}}))}function h(t){var e=/\/\*[\s\S]+?\*\//g,n=/(?:@import\s*)(?:url\(\s*)?(?:['"])([^'"]*)(?:['"])(?:\s*\))?(?:[^;]*;)/g,i={rootElement:t.rootElement||document,include:t.include||'style,link[rel="stylesheet"]',exclude:t.exclude||null,filter:t.filter||null,skipDisabled:!1!==t.skipDisabled,useCSSOM:t.useCSSOM||!1,onBeforeSend:t.onBeforeSend||Function.prototype,onSuccess:t.onSuccess||Function.prototype,onError:t.onError||Function.prototype,onComplete:t.onComplete||Function.prototype},r=Array.apply(null,i.rootElement.querySelectorAll(i.include)).filter((function(t){return!((e=t).matches||e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector).call(e,i.exclude);var e})),s=Array.apply(null,Array(r.length)).map((function(t){return null}));function o(){if(-1===s.indexOf(null)){var t=s.join("");i.onComplete(t,s,r)}}function a(t,e,n,r){var a=i.onSuccess(t,n,r);!function t(e,n,r,s){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],l=c(e,r,a);l.rules.length?u(l.absoluteUrls,{onBeforeSend:function(t,e,r){i.onBeforeSend(t,n,e)},onSuccess:function(t,e,r){var s=i.onSuccess(t,n,e),o=c(t=!1===s?"":s||t,e,a);return o.rules.forEach((function(e,n){t=t.replace(e,o.absoluteRules[n])})),t},onError:function(i,c,u){o.push({xhr:i,url:c}),a.push(l.rules[u]),t(e,n,r,s,o,a)},onComplete:function(i){i.forEach((function(t,n){e=e.replace(l.rules[n],t)})),t(e,n,r,s,o,a)}}):s(e,o)}(t=void 0!==a&&!1===Boolean(a)?"":a||t,n,r,(function(t,r){null===s[e]&&(r.forEach((function(t){return i.onError(t.xhr,n,t.url)})),s[e]=!i.filter||i.filter.test(t)?t:"",o())}))}function c(t,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],s={};return s.rules=(t.replace(e,"").match(n)||[]).filter((function(t){return-1===r.indexOf(t)})),s.urls=s.rules.map((function(t){return t.replace(n,"$1")})),s.absoluteUrls=s.urls.map((function(t){return d(t,i)})),s.absoluteRules=s.rules.map((function(t,e){var n=s.urls[e],r=d(s.absoluteUrls[e],i);return t.replace(n,r)})),s}r.length?r.forEach((function(t,e){var n=t.getAttribute("href"),r=t.getAttribute("rel"),c="LINK"===t.nodeName&&n&&r&&-1!==r.toLowerCase().indexOf("stylesheet"),l=!1!==i.skipDisabled&&t.disabled,h="STYLE"===t.nodeName;if(c&&!l)u(n,{mimeType:"text/css",onBeforeSend:function(e,n,r){i.onBeforeSend(e,t,n)},onSuccess:function(i,r,s){var o=d(n);a(i,e,t,o)},onError:function(n,r,a){s[e]="",i.onError(n,t,r),o()}});else if(h&&!l){var p=t.textContent;i.useCSSOM&&(p=Array.apply(null,t.sheet.cssRules).map((function(t){return t.cssText})).join("")),a(p,e,t,location.href)}else s[e]="",o()})):i.onComplete("",[])}function d(t,e){var n=document.implementation.createHTMLDocument(""),i=n.createElement("base"),r=n.createElement("a");return n.head.appendChild(i),n.body.appendChild(r),i.href=e||document.baseURI||(document.querySelector("base")||{}).href||location.href,r.href=t,r.href}var p=m;function m(t,e,n){t instanceof RegExp&&(t=f(t,n)),e instanceof RegExp&&(e=f(e,n));var i=b(t,e,n);return i&&{start:i[0],end:i[1],pre:n.slice(0,i[0]),body:n.slice(i[0]+t.length,i[1]),post:n.slice(i[1]+e.length)}}function f(t,e){var n=e.match(t);return n?n[0]:null}function b(t,e,n){var i,r,s,o,a,c=n.indexOf(t),l=n.indexOf(e,c+1),u=c;if(c>=0&&l>0){for(i=[],s=n.length;u>=0&&!a;)u==c?(i.push(u),c=n.indexOf(t,u+1)):1==i.length?a=[i.pop(),l]:((r=i.pop())<s&&(s=r,o=l),l=n.indexOf(e,u+1)),u=c<l&&c>=0?c:l;i.length&&(a=[s,o])}return a}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={preserveStatic:!0,removeComments:!1},i=a({},n,e),r=[];function s(t){throw new Error("CSS parse error: ".concat(t))}function o(e){var n=e.exec(t);if(n)return t=t.slice(n[0].length),n}function c(){return o(/^{\s*/)}function l(){return o(/^}/)}function u(){o(/^\s*/)}function h(){if(u(),"/"===t[0]&&"*"===t[1]){for(var e=2;t[e]&&("*"!==t[e]||"/"!==t[e+1]);)e++;if(!t[e])return s("end of comment is missing");var n=t.slice(2,e);return t=t.slice(e+2),{type:"comment",comment:n}}}function d(){for(var t,e=[];t=h();)e.push(t);return i.removeComments?[]:e}function m(){for(u();"}"===t[0];)s("extra closing bracket");var e=o(/^(("(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[^{])+)/);if(e)return e[0].trim().replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(t){return t.replace(/,/g,"\u200c")})).split(/\s*(?![^(]*\)),\s*/).map((function(t){return t.replace(/\u200C/g,",")}))}function f(){if("@"===t[0])return T();o(/^([;\s]*)+/);var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=o(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(n){if(n=n[0].trim(),!o(/^:\s*/))return s("property missing ':'");var i=o(/^((?:\/\*.*?\*\/|'(?:\\'|.)*?'|"(?:\\"|.)*?"|\((\s*'(?:\\'|.)*?'|"(?:\\"|.)*?"|[^)]*?)\s*\)|[^};])+)/),r={type:"declaration",property:n.replace(e,""),value:i?i[0].replace(e,"").trim():""};return o(/^[;\s]*/),r}}function b(){if(!c())return s("missing '{'");for(var t,e=d();t=f();)e.push(t),e=e.concat(d());return l()?e:s("missing '}'")}function g(){u();for(var t,e=[];t=o(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)e.push(t[1]),o(/^,\s*/);if(e.length)return{type:"keyframe",values:e,declarations:b()}}function _(){var t=o(/^@([-\w]+)?keyframes\s*/);if(t){var e=t[1];if(!(t=o(/^([-\w]+)\s*/)))return s("@keyframes missing name");var n,i=t[1];if(!c())return s("@keyframes missing '{'");for(var r=d();n=g();)r.push(n),r=r.concat(d());return l()?{type:"keyframes",name:i,vendor:e,keyframes:r}:s("@keyframes missing '}'")}}function v(){if(o(/^@page */))return{type:"page",selectors:m()||[],declarations:b()}}function y(){var t=o(/@(top|bottom|left|right)-(left|center|right|top|middle|bottom)-?(corner)?\s*/);if(t)return{type:"page-margin-box",name:"".concat(t[1],"-").concat(t[2])+(t[3]?"-".concat(t[3]):""),declarations:b()}}function w(){if(o(/^@font-face\s*/))return{type:"font-face",declarations:b()}}function C(){var t=o(/^@supports *([^{]+)/);if(t)return{type:"supports",supports:t[1].trim(),rules:I()}}function x(){if(o(/^@host\s*/))return{type:"host",rules:I()}}function k(){var t=o(/^@media([^{]+)*/);if(t)return{type:"media",media:(t[1]||"").trim(),rules:I()}}function O(){var t=o(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return{type:"custom-media",name:t[1].trim(),media:t[2].trim()}}function S(){var t=o(/^@([-\w]+)?document *([^{]+)/);if(t)return{type:"document",document:t[2].trim(),vendor:t[1]?t[1].trim():null,rules:I()}}function E(){var t=o(/^@(import|charset|namespace)\s*([^;]+);/);if(t)return{type:t[1],name:t[2].trim()}}function T(){if(u(),"@"===t[0]){var e=E()||w()||k()||_()||C()||S()||O()||x()||v()||y();return e&&!i.preserveStatic?(e.declarations?e.declarations.some((function(t){return/var\(/.test(t.value)})):(e.keyframes||e.rules||[]).some((function(t){return(t.declarations||[]).some((function(t){return/var\(/.test(t.value)}))})))?e:{}:e}}function A(){if(!i.preserveStatic){var e=p("{","}",t);if(e){var n=/:(?:root|host)(?![.:#(])/.test(e.pre)&&/--\S*\s*:/.test(e.body),r=/var\(/.test(e.body);if(!n&&!r)return t=t.slice(e.end+1),{}}}var o=m()||[],a=i.preserveStatic?b():b().filter((function(t){var e=o.some((function(t){return/:(?:root|host)(?![.:#(])/.test(t)}))&&/^--\S/.test(t.property),n=/var\(/.test(t.value);return e||n}));return o.length||s("selector missing"),{type:"rule",selectors:o,declarations:a}}function I(e){if(!e&&!c())return s("missing '{'");for(var n,i=d();t.length&&(e||"}"!==t[0])&&(n=T()||A());)n.type&&i.push(n),i=i.concat(d());return e||l()?i:s("missing '}'")}return{type:"stylesheet",stylesheet:{rules:I(!0),errors:r}}}function _(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={parseHost:!1,store:{},onWarning:function(){}},i=a({},n,e),r=new RegExp(":".concat(i.parseHost?"host":"root","$"));return"string"==typeof t&&(t=g(t,i)),t.stylesheet.rules.forEach((function(t){"rule"===t.type&&t.selectors.some((function(t){return r.test(t)}))&&t.declarations.forEach((function(t,e){var n=t.property,r=t.value;n&&0===n.indexOf("--")&&(i.store[n]=r)}))})),i.store}function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i={charset:function(t){return"@charset "+t.name+";"},comment:function(t){return 0===t.comment.indexOf("__CSSVARSPONYFILL")?"/*"+t.comment+"*/":""},"custom-media":function(t){return"@custom-media "+t.name+" "+t.media+";"},declaration:function(t){return t.property+":"+t.value+";"},document:function(t){return"@"+(t.vendor||"")+"document "+t.document+"{"+r(t.rules)+"}"},"font-face":function(t){return"@font-face{"+r(t.declarations)+"}"},host:function(t){return"@host{"+r(t.rules)+"}"},import:function(t){return"@import "+t.name+";"},keyframe:function(t){return t.values.join(",")+"{"+r(t.declarations)+"}"},keyframes:function(t){return"@"+(t.vendor||"")+"keyframes "+t.name+"{"+r(t.keyframes)+"}"},media:function(t){return"@media "+t.media+"{"+r(t.rules)+"}"},namespace:function(t){return"@namespace "+t.name+";"},page:function(t){return"@page "+(t.selectors.length?t.selectors.join(", "):"")+"{"+r(t.declarations)+"}"},"page-margin-box":function(t){return"@"+t.name+"{"+r(t.declarations)+"}"},rule:function(t){var e=t.declarations;if(e.length)return t.selectors.join(",")+"{"+r(e)+"}"},supports:function(t){return"@supports "+t.supports+"{"+r(t.rules)+"}"}};function r(t){for(var r="",s=0;s<t.length;s++){var o=t[s];n&&n(o);var a=i[o.type](o);a&&(r+=a,a.length&&o.selectors&&(r+=e))}return r}return r(t.stylesheet.rules)}function y(t,e){t.rules.forEach((function(n){n.rules?y(n,e):n.keyframes?n.keyframes.forEach((function(t){"keyframe"===t.type&&e(t.declarations,n)})):n.declarations&&e(n.declarations,t)}))}function w(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={preserveStatic:!0,preserveVars:!1,variables:{},onWarning:function(){}},i=a({},n,e);return"string"==typeof t&&(t=g(t,i)),y(t.stylesheet,(function(t,e){for(var n=0;n<t.length;n++){var r=t[n],s=r.type,o=r.property,a=r.value;if("declaration"===s)if(i.preserveVars||!o||0!==o.indexOf("--")){if(-1!==a.indexOf("var(")){var c=x(a,i);c!==r.value&&(c=C(c),i.preserveVars?(t.splice(n,0,{type:s,property:o,value:c}),n++):r.value=c)}}else t.splice(n,1),n--}})),v(t)}function C(t){return(t.match(/calc\(([^)]+)\)/g)||[]).forEach((function(e){var n="calc".concat(e.split("calc").join(""));t=t.replace(e,n)})),t}function x(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(-1===t.indexOf("var("))return t;var i=p("(",")",t);function r(t){var i=t.split(",")[0].replace(/[\s\n\t]/g,""),r=(t.match(/(?:\s*,\s*){1}(.*)?/)||[])[1],s=Object.prototype.hasOwnProperty.call(e.variables,i)?String(e.variables[i]):void 0,o=s||(r?String(r):void 0),a=n||t;return s||e.onWarning('variable "'.concat(i,'" is undefined')),o&&"undefined"!==o&&o.length>0?x(o,e,a):"var(".concat(a,")")}if(i){if("var"===i.pre.slice(-3)){var s=0===i.body.trim().length;return s?(e.onWarning("var() must contain a non-whitespace string"),t):i.pre.slice(0,-3)+r(i.body)+x(i.post,e)}return i.pre+"(".concat(x(i.body,e),")")+x(i.post,e)}return-1!==t.indexOf("var(")&&e.onWarning('missing closing ")" in the value "'.concat(t,'"')),t}m.range=b;var k="undefined"!=typeof window,O=k&&window.CSS&&window.CSS.supports&&window.CSS.supports("(--a: 0)"),S={group:0,job:0},E={rootElement:k?document:null,shadowDOM:!1,include:"style,link[rel=stylesheet]",exclude:"",variables:{},onlyLegacy:!0,preserveStatic:!0,preserveVars:!1,silent:!1,updateDOM:!0,updateURLs:!0,watch:null,onBeforeSend:function(){},onError:function(){},onWarning:function(){},onSuccess:function(){},onComplete:function(){},onFinally:function(){}},T={cssComments:/\/\*[\s\S]+?\*\//g,cssKeyframes:/@(?:-\w*-)?keyframes/,cssMediaQueries:/@media[^{]+\{([\s\S]+?})\s*}/g,cssUrls:/url\((?!['"]?(?:data|http|\/\/):)['"]?([^'")]*)['"]?\)/g,cssVarDeclRules:/(?::(?:root|host)(?![.:#(])[\s,]*[^{]*{\s*[^}]*})/g,cssVarDecls:/(?:[\s;]*)(-{2}\w[\w-]*)(?:\s*:\s*)([^;]*);/g,cssVarFunc:/var\(\s*--[\w-]/,cssVars:/(?:(?::(?:root|host)(?![.:#(])[\s,]*[^{]*{\s*[^;]*;*\s*)|(?:var\(\s*))(--[^:)]+)(?:\s*[:)])/},A={dom:{},job:{},user:{}},I=!1,D=null,P=0,j=null,F=!1;function M(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e="cssVars(): ",n=a({},E,t);function i(t,i,r,s){!n.silent&&window.console&&console.error("".concat(e).concat(t,"\n"),i),n.onError(t,i,r,s)}function r(t){!n.silent&&window.console&&console.warn("".concat(e).concat(t)),n.onWarning(t)}function s(t){n.onFinally(Boolean(t),O,z()-n.__benchmark)}if(k){if(n.watch)return n.watch=E.watch,R(n),void M(n);if(!1===n.watch&&D&&(D.disconnect(),D=null),!n.__benchmark){if(I===n.rootElement)return void N(t);if(n.__benchmark=z(),n.exclude=[D?'[data-cssvars]:not([data-cssvars=""])':'[data-cssvars="out"]',n.exclude].filter((function(t){return t})).join(","),n.variables=H(n.variables),!D){var o=Array.apply(null,n.rootElement.querySelectorAll('[data-cssvars="out"]'));if(o.forEach((function(t){var e=t.getAttribute("data-cssvars-group");e&&n.rootElement.querySelector('[data-cssvars="src"][data-cssvars-group="'.concat(e,'"]'))||t.parentNode.removeChild(t)})),P){var l=n.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])');l.length<P&&(P=l.length,A.dom={})}}}if("loading"!==document.readyState)if(O&&n.onlyLegacy){var u=!1;if(n.updateDOM){var d=n.rootElement.host||(n.rootElement===document?document.documentElement:n.rootElement);Object.keys(n.variables).forEach((function(t){var e=n.variables[t];u=u||e!==getComputedStyle(d).getPropertyValue(t),d.style.setProperty(t,e)}))}s(u)}else!F&&(n.shadowDOM||n.rootElement.shadowRoot||n.rootElement.host)?h({rootElement:E.rootElement,include:E.include,exclude:n.exclude,skipDisabled:!1,onSuccess:function(t,e,n){return(t=((t=t.replace(T.cssComments,"").replace(T.cssMediaQueries,"")).match(T.cssVarDeclRules)||[]).join(""))||!1},onComplete:function(t,e,i){_(t,{store:A.dom,onWarning:r}),F=!0,M(n)}}):(I=n.rootElement,h({rootElement:n.rootElement,include:n.include,exclude:n.exclude,skipDisabled:!1,onBeforeSend:n.onBeforeSend,onError:function(t,e,n){var r=t.responseURL||V(n,location.href),s=t.statusText?"(".concat(t.statusText,")"):"Unspecified Error"+(0===t.status?" (possibly CORS related)":"");i("CSS XHR Error: ".concat(r," ").concat(t.status," ").concat(s),e,t,r)},onSuccess:function(t,e,i){var r="LINK"===e.tagName,s="STYLE"===e.tagName&&t!==e.textContent,o=n.onSuccess(t,e,i);return t=void 0!==o&&!1===Boolean(o)?"":o||t,n.updateURLs&&(r||s)&&(t=B(t,i)),t},onComplete:function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],l=a({},A.dom,A.user);if(A.job={},o.forEach((function(t,s){var o=e[s];if(T.cssVars.test(o))try{var a=g(o,{preserveStatic:n.preserveStatic,removeComments:!0});_(a,{parseHost:Boolean(n.rootElement.host),store:A.dom,onWarning:r}),t.__cssVars={tree:a}}catch(c){i(c.message,t)}})),a(A.job,A.dom),n.updateDOM?(a(A.user,n.variables),a(A.job,A.user)):(a(A.job,A.user,n.variables),a(l,n.variables)),S.job>0&&Boolean(Object.keys(A.job).length>Object.keys(l).length||Boolean(Object.keys(l).length&&Object.keys(A.job).some((function(t){return A.job[t]!==l[t]})))))U(n.rootElement),M(n);else{var u=[],h=[],d=!1;if(n.updateDOM&&S.job++,o.forEach((function(t,s){var o=!t.__cssVars;if(t.__cssVars)try{w(t.__cssVars.tree,a({},n,{variables:A.job,onWarning:r}));var c=v(t.__cssVars.tree);if(n.updateDOM){var l=T.cssVarFunc.test(e[s]);if(t.getAttribute("data-cssvars")||t.setAttribute("data-cssvars","src"),c.length&&l){var p=t.getAttribute("data-cssvars-group")||++S.group,m=c.replace(/\s/g,""),f=n.rootElement.querySelector('[data-cssvars="out"][data-cssvars-group="'.concat(p,'"]'))||document.createElement("style");d=d||T.cssKeyframes.test(c),n.preserveStatic&&(t.sheet.disabled=!0),f.hasAttribute("data-cssvars")||f.setAttribute("data-cssvars","out"),m===t.textContent.replace(/\s/g,"")?(o=!0,f&&f.parentNode&&(t.removeAttribute("data-cssvars-group"),f.parentNode.removeChild(f))):m!==f.textContent.replace(/\s/g,"")&&([t,f].forEach((function(t){t.setAttribute("data-cssvars-job",S.job),t.setAttribute("data-cssvars-group",p)})),f.textContent=c,u.push(c),h.push(f),f.parentNode||t.parentNode.insertBefore(f,t.nextSibling))}}else t.textContent.replace(/\s/g,"")!==c&&u.push(c)}catch(b){i(b.message,t)}o&&t.setAttribute("data-cssvars","skip"),t.hasAttribute("data-cssvars-job")||t.setAttribute("data-cssvars-job",S.job)})),P=n.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])').length,n.shadowDOM)for(var p,m=[n.rootElement].concat(c(n.rootElement.querySelectorAll("*"))),f=0;p=m[f];++f)if(p.shadowRoot&&p.shadowRoot.querySelector("style")){var b=a({},n,{rootElement:p.shadowRoot});M(b)}n.updateDOM&&d&&L(n.rootElement),I=!1,n.onComplete(u.join(""),h,JSON.parse(JSON.stringify(A.job)),z()-n.__benchmark),s(h.length)}}}));else document.addEventListener("DOMContentLoaded",(function e(n){M(t),document.removeEventListener("DOMContentLoaded",e)}))}}function R(t){function e(t){return t.hasAttribute("disabled")||(t.sheet||{}).disabled}function n(t){return"LINK"===t.tagName&&-1!==(t.getAttribute("rel")||"").indexOf("stylesheet")&&!e(t)}window.MutationObserver&&(D&&(D.disconnect(),D=null),(D=new MutationObserver((function(i){i.some((function(i){var r=!1;return"attributes"===i.type?r=n(i.target):"childList"===i.type&&(r=function(t){return Array.apply(null,t).some((function(t){var i=1===t.nodeType&&t.hasAttribute("data-cssvars"),r=function(t){return"STYLE"===t.tagName&&!e(t)}(t)&&T.cssVars.test(t.textContent);return!i&&(n(t)||r)}))}(i.addedNodes)||Array.apply(null,i.removedNodes).some((function(e){var n=1===e.nodeType,i=n&&"out"===e.getAttribute("data-cssvars"),r=n&&"src"===e.getAttribute("data-cssvars"),s=r;if(r||i){var o=e.getAttribute("data-cssvars-group"),a=t.rootElement.querySelector('[data-cssvars-group="'.concat(o,'"]'));r&&(U(t.rootElement),A.dom={}),a&&a.parentNode.removeChild(a)}return s}))),r}))&&M(t)}))).observe(document.documentElement,{attributes:!0,attributeFilter:["disabled","href"],childList:!0,subtree:!0}))}function N(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;clearTimeout(j),j=setTimeout((function(){t.__benchmark=null,M(t)}),e)}function L(t){var e=["animation-name","-moz-animation-name","-webkit-animation-name"].filter((function(t){return getComputedStyle(document.body)[t]}))[0];if(e){for(var n=t.getElementsByTagName("*"),i=[],r=0,s=n.length;r<s;r++){var o=n[r];"none"!==getComputedStyle(o)[e]&&(o.style[e]+="__CSSVARSPONYFILL-KEYFRAMES__",i.push(o))}document;for(var a=0,c=i.length;a<c;a++){var l=i[a].style;l[e]=l[e].replace("__CSSVARSPONYFILL-KEYFRAMES__","")}}}function B(t,e){return(t.replace(T.cssComments,"").match(T.cssUrls)||[]).forEach((function(n){var i=n.replace(T.cssUrls,"$1"),r=V(i,e);t=t.replace(n,n.replace(i,r))})),t}function H(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=/^-{2}/;return Object.keys(t).reduce((function(n,i){return n[e.test(i)?i:"--".concat(i.replace(/^-+/,""))]=t[i],n}),{})}function V(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location.href,n=document.implementation.createHTMLDocument(""),i=n.createElement("base"),r=n.createElement("a");return n.head.appendChild(i),n.body.appendChild(r),i.href=e,r.href=t,r.href}function z(){return k&&(window.performance||{}).now?window.performance.now():(new Date).getTime()}function U(t){Array.apply(null,t.querySelectorAll('[data-cssvars="skip"],[data-cssvars="src"]')).forEach((function(t){return t.setAttribute("data-cssvars","")}))}M.reset=function(){for(var t in S.job=0,S.group=0,I=!1,D&&(D.disconnect(),D=null),P=0,j=null,F=!1,A)A[t]={}};var $=M,X=n("+41h"),q=n("bTMO"),W=n("kmQS"),G=n("LRXf"),K=n("mrSG"),Y=n("ZfYz"),J=n("Rd8u"),Q=n("ofXK"),Z=n("bTqV");function tt(t,e){1&t&&(i.Tb(0,"a",3),i.Hc(1,"Learn More"),i.Sb()),2&t&&i.kc("routerLink",e.ngIf)}let et=(()=>{class t{constructor(t,e){this.settings=t,this.overlayRef=e}hideNotice(){const t=new Date,e=new Date,n=e.setDate(e.getDate()+30);e.setTime(t.getTime()+n),document.cookie=`${this.settings.get("branding.site_name")}_cookie_notice=1; expires=${e.toUTCString()}; path=/;`,this.overlayRef.close()}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(W.a),i.Nb(Y.a))},t.\u0275cmp=i.Hb({type:t,selectors:[["cookie-notice"]],decls:5,vars:1,consts:[["trans","",1,"message"],["trans","",3,"routerLink",4,"ngIf"],["mat-flat-button","","color","accent","trans","",3,"click"],["trans","",3,"routerLink"]],template:function(t,e){1&t&&(i.Tb(0,"div",0),i.Hc(1,"We use cookies to optimize site functionality and provide you with the best possible experience."),i.Sb(),i.Fc(2,tt,2,1,"a",1),i.Tb(3,"button",2),i.ac("click",(function(){return e.hideNotice()})),i.Hc(4,"OK"),i.Sb()),2&t&&(i.Bb(2),i.kc("ngIf",e.settings.get("cookie_notice.learn_more")))},directives:[J.a,Q.t,Z.b,s.g],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:center;background-color:#323232;color:#fff;padding:15px;width:100%;box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12)}a[_ngcontent-%COMP%]{display:block;margin-left:15px;color:var(--be-accent-lighter)}.mat-flat-button[_ngcontent-%COMP%]{margin-left:15px;line-height:28px;min-width:50px;font-size:1.3rem}.mat-flat-button[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{flex-shrink:0}"],changeDetection:0}),t})();var nt=n("lJxs"),it=n("JIr8");const rt=["AT","BE","BG","BR","CY","CZ","DE","DK","EE","EL","ES","FI","FR","GB","HR","HU","IE","IT","LT","LU","LV","MT","NL","NO","PL","PT","RO","SE","SI","SK"];var st=n("LRne"),ot=n("dz5c"),at=n("LFZc");let ct=(()=>{class t{constructor(t,e,n,i){this.panel=t,this.settings=e,this.http=n,this.appearance=i}maybeShow(){return Object(K.a)(this,void 0,void 0,(function*(){if(!(yield this.shouldShow()))return;const t=this.settings.get("cookie-notice.position","bottom");this.panel.open(et,{origin:"global",position:{[t]:0,left:0},width:"100%",hasBackdrop:!1})}))}shouldShow(){return this.settings.get("cookie_notice.enable")&&!this.appearance.active&&!this.alreadyAccepted()&&this.userIsFromEu()}alreadyAccepted(){return document.cookie.includes(this.settings.get("branding.site_name")+"_cookie_notice")}userIsFromEu(){return this.http.get("https://freegeoip.app/json/").pipe(Object(nt.a)(t=>rt.includes(t.country_code)),Object(it.a)(()=>Object(st.a)(!0))).toPromise()}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(ot.a),i.Xb(W.a),i.Xb(G.a),i.Xb(at.b))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var lt=n("IzEk"),ut=n("2Vo4"),ht=n("WmcL"),dt=n("VaLf");let pt=(()=>{class t{constructor(t,e,n,i,r,s){this.document=t,this.router=e,this.settings=n,this.i18n=i,this.route=r,this.title=s,this.latestMetaTags$=new ut.a(null)}set staticTitle(t){this._staticTitle=t,this.title.setTitle(t||this.getDefaultTitle())}init(){this.router.events.pipe(Object(o.a)(t=>t instanceof s.c)).subscribe(()=>{this.latestMetaTags$.next(null)}),this.activeRoute$().subscribe(t=>{this.latestMetaTags$.value?this.addTags(this.latestMetaTags$.value):t.data.willSetSeo?this.latestMetaTags$.pipe(Object(o.a)(t=>!!t),Object(lt.a)(1)).subscribe(t=>{this.addTags(t)}):t.routeConfig.path&&this.addTags(this.getDefaultTags(t.data))})}addTags(t){this.removeOldTags();const e=this.document.head.firstChild;t.forEach(t=>{const n=document.createElement(t.nodeName);n.classList.add("dst"),"title"===t.nodeName&&this._staticTitle&&(t=Object.assign(Object.assign({},t),{_text:this._staticTitle})),Object.keys(t).forEach(e=>{"nodeName"!==e&&("_text"===e?n.textContent="string"==typeof t[e]?t[e]:JSON.stringify(t[e]):n.setAttribute(e,t[e]))}),this.document.head.insertBefore(n,e)})}removeOldTags(){const t=Array.from(this.document.head.getElementsByClassName("dst"));for(let e=0;e<t.length;e++)this.document.head.removeChild(t[e])}activeRoute$(){return this.router.events.pipe(Object(o.a)(t=>t instanceof s.b),Object(nt.a)(()=>this.route),Object(nt.a)(t=>{for(;t.firstChild;)t=t.firstChild;return t}),Object(o.a)(t=>"primary"===t.outlet),Object(nt.a)(t=>t.snapshot))}getDefaultTags(t={}){const e={nodeName:"title",_text:this.settings.get("branding.site_name")},n=t.title||t.name;if(n){const t=this.i18n.t(n.replace(/-/g," "));e._text=t+" - "+e._text}return e._text=Object(ht.a)(e._text),[e]}getDefaultTitle(){return(this.latestMetaTags$.value||this.getDefaultTags()).find(t=>"title"===t.nodeName)._text}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(Q.e),i.Xb(s.d),i.Xb(W.a),i.Xb(dt.a),i.Xb(s.a),i.Xb(r.c))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const mt=["contextMenuViewRef"],ft=["contextMenuOrigin"];let bt=(()=>{class t{constructor(t,e,n,i,r,s,o){this.contextMenu=t,this.customHomepage=e,this.settings=n,this.httpClient=i,this.router=r,this.cookieNotice=s,this.meta=o}ngOnInit(){this.settings.setHttpClient(this.httpClient),this.meta.init(),this.settings.get("analytics.tracking_code")&&this.triggerAnalyticsPageView(),this.customHomepage.select(),this.loadCssVariablesPolyfill(),this.cookieNotice.maybeShow()}triggerAnalyticsPageView(){this.router.events.pipe(Object(o.a)(t=>t instanceof s.b)).subscribe(t=>{window.ga&&(window.ga("set","page",t.urlAfterRedirects),window.ga("send","pageview"))})}loadCssVariablesPolyfill(){"undefined"!=typeof window&&window.CSS&&window.CSS.supports&&window.CSS.supports("(--a: 0)")||$()}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(X.a),i.Nb(q.a),i.Nb(W.a),i.Nb(G.a),i.Nb(s.d),i.Nb(ct),i.Nb(pt))},t.\u0275cmp=i.Hb({type:t,selectors:[["app-root"]],viewQuery:function(t,e){var n;1&t&&(i.Bc(mt,!0,i.R),i.Bc(ft,!0)),2&t&&(i.rc(n=i.bc())&&(e.contextMenuViewRef=n.first),i.rc(n=i.bc())&&(e.contextMenuOrigin=n.first))},decls:5,vars:0,consts:[["contextMenuViewRef",""],[1,"context-menu-origin"],["contextMenuOrigin",""]],template:function(t,e){1&t&&(i.Ob(0,"router-outlet"),i.Tb(1,"div",null,0),i.Ob(3,"div",1,2),i.Sb())},directives:[s.i],styles:["app-root{display:block}app-root .be-container,app-root .container{margin:0 auto;padding-left:15px;padding-right:15px}@media screen and (min-width:768px){app-root .be-container,app-root .container{max-width:750px}}@media screen and (min-width:992px){app-root .be-container,app-root .container{max-width:970px}}@media screen and (min-width:1200px){app-root .be-container,app-root .container{max-width:1170px}}"],encapsulation:2}),t})();var gt=n("twBr"),_t=n("4vkA");let vt=(()=>{class t{constructor(t,e,n,i,r){this.currentUser=t,this.auth=e,this.router=n,this.settings=i,this.listener=r}canActivate(t,e){return!!this.listener.active||!this.currentUser.isLoggedIn()||(this.router.navigate([this.auth.getRedirectUri()]),!1)}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(gt.a),i.Xb(_t.a),i.Xb(s.d),i.Xb(W.a),i.Xb(at.b))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var yt=n("3Pt+"),wt=n("nYR2"),Ct=n("i2dy"),xt=n("5o4b");let kt=(()=>{class t{constructor(t,e,n,i,r){this.settings=t,this.http=e,this.lazyLoader=n,this.router=i,this.toast=r}enabledFor(t){return!this.router.url.includes("admin")&&this.settings.get("recaptcha.site_key")&&this.settings.get("recaptcha.secret_key")&&this.settings.get("recaptcha.enable_for_"+t)}loadIfEnableFor(t){if(this.enabledFor(t))return this.load()}load(){return this.lazyLoader.loadAsset("https://www.google.com/recaptcha/api.js?render="+this.settings.get("recaptcha.site_key"),{type:"js"})}verify(t){return Object(K.a)(this,void 0,void 0,(function*(){if(!window.grecaptcha||!this.enabledFor(t))return!0;const e=yield this.callRecaptcha(t);return e||this.toast.open("Could not verify you are human."),e}))}callRecaptcha(t){return new Promise(e=>Object(K.a)(this,void 0,void 0,(function*(){yield this.load(),window.grecaptcha.ready(()=>Object(K.a)(this,void 0,void 0,(function*(){const n=yield grecaptcha.execute(this.settings.get("recaptcha.site_key"),{action:t});this.http.post("recaptcha/verify",{token:n}).subscribe(t=>e(t.success))})))})))}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(W.a),i.Xb(G.a),i.Xb(xt.a),i.Xb(s.d),i.Xb(Ct.b))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Ot=n("N2vX");function St(t,e){if(1&t&&(i.Tb(0,"p",14),i.Hc(1),i.Sb()),2&t){const t=i.ec().ngIf;i.Bb(1),i.Ic(t.name)}}function Et(t,e){if(1&t&&(i.Tb(0,"p",14),i.Hc(1),i.Sb()),2&t){const t=i.ec().ngIf;i.Bb(1),i.Ic(t.email)}}function Tt(t,e){if(1&t&&(i.Tb(0,"p",14),i.Hc(1),i.Sb()),2&t){const t=i.ec().ngIf;i.Bb(1),i.Ic(t.message)}}function At(t,e){if(1&t){const t=i.Ub();i.Tb(0,"form",3),i.ac("ngSubmit",(function(){return i.vc(t),i.ec().submitMessage()})),i.Tb(1,"h1",4),i.Hc(2,"Contact Us"),i.Sb(),i.Tb(3,"p",4),i.Hc(4,"Please use the form below to send us a message and we'll get back to you as soon as possible."),i.Sb(),i.Tb(5,"div",5),i.Tb(6,"label",6),i.Hc(7,"Name"),i.Sb(),i.Ob(8,"input",7),i.Fc(9,St,2,1,"p",8),i.Sb(),i.Tb(10,"div",5),i.Tb(11,"label",9),i.Hc(12,"Email"),i.Sb(),i.Ob(13,"input",10),i.Fc(14,Et,2,1,"p",8),i.Sb(),i.Tb(15,"div",5),i.Tb(16,"label",11),i.Hc(17,"Message"),i.Sb(),i.Ob(18,"textarea",12),i.Fc(19,Tt,2,1,"p",8),i.Sb(),i.Tb(20,"button",13),i.fc(21,"async"),i.Hc(22,"Send"),i.Sb(),i.Sb()}if(2&t){const t=e.ngIf,n=i.ec();i.kc("formGroup",n.form),i.Bb(9),i.kc("ngIf",t.name),i.Bb(5),i.kc("ngIf",t.email),i.Bb(5),i.kc("ngIf",t.message),i.Bb(1),i.kc("disabled",i.gc(21,5,n.loading$))}}let It=(()=>{class t{constructor(t,e,n,i,r){this.settings=t,this.http=e,this.toast=n,this.router=i,this.recaptcha=r,this.loading$=new ut.a(!1),this.form=new yt.l({name:new yt.i,email:new yt.i,message:new yt.i}),this.errors$=new ut.a({})}ngOnInit(){this.recaptcha.enabledFor("contact")&&this.recaptcha.load()}submitMessage(){return Object(K.a)(this,void 0,void 0,(function*(){if(this.loading$.next(!0),this.recaptcha.enabledFor("contact")&&!(yield this.recaptcha.verify("contact")))return this.toast.open("Could not verify you are human.");this.http.post("contact-page",this.form.value).pipe(Object(wt.a)(()=>{this.loading$.next(!1)})).subscribe(()=>{this.errors$.next({}),this.toast.open("Your message has been submitted."),this.router.navigate(["/"])},t=>this.errors$.next(t.errors))}))}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(W.a),i.Nb(G.a),i.Nb(Ct.b),i.Nb(s.d),i.Nb(kt))},t.\u0275cmp=i.Hb({type:t,selectors:[["contact"]],decls:4,vars:4,consts:[["menuPosition","custom-page-navbar",3,"container"],[1,"form-container"],["class","many-inputs","ngNativeValidate","",3,"formGroup","ngSubmit",4,"ngIf"],["ngNativeValidate","",1,"many-inputs",3,"formGroup","ngSubmit"],["trans",""],[1,"input-container"],["for","name","trans",""],["type","text","id","name","formControlName","name","required",""],["class","error",4,"ngIf"],["for","email","trans",""],["type","email","id","email","formControlName","email","required",""],["for","message","trans",""],["id","message","formControlName","message","rows","10","required",""],["type","submit","mat-raised-button","","color","accent","trans","",3,"disabled"],[1,"error"]],template:function(t,e){1&t&&(i.Ob(0,"material-navbar",0),i.Tb(1,"div",1),i.Fc(2,At,23,7,"form",2),i.fc(3,"async"),i.Sb()),2&t&&(i.kc("container",!0),i.Bb(2),i.kc("ngIf",i.gc(3,2,e.errors$)))},directives:[Ot.a,Q.t,yt.v,yt.m,J.a,yt.d,yt.u,yt.k,yt.F,Z.b],pipes:[Q.b],styles:[".form-container[_ngcontent-%COMP%]{min-height:calc(100vh - 70px);background:var(--be-background-alternative);padding:25px;display:flex}form[_ngcontent-%COMP%]{background-color:var(--be-background);box-shadow:none;border:1px solid var(--be-divider-default);width:675px;max-width:100%;padding:25px;margin:auto}form[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-weight:300;margin:0}form[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:5px 0 35px}"],changeDetection:0}),t})();var Dt=n("nQeM"),Pt=n("INnT");function jt(t,e){if(1&t&&(i.Tb(0,"a",24),i.Hc(1),i.Sb()),2&t){const t=i.ec();i.Bb(1),i.Ic(t.content.actions.cta1)}}function Ft(t,e){if(1&t){const t=i.Ub();i.Tb(0,"button",25),i.ac("click",(function(){return i.vc(t),i.ec().scrollToFeatures()})),i.Hc(1),i.Sb()}if(2&t){const t=i.ec();i.Bb(1),i.Ic(t.content.actions.cta2)}}function Mt(t,e){if(1&t&&(i.Tb(0,"li",29),i.Ob(1,"img",30),i.Tb(2,"h3"),i.Hc(3),i.Sb(),i.Tb(4,"p"),i.Hc(5),i.Sb(),i.Sb()),2&t){const t=e.$implicit;i.Bb(1),i.kc("src",t.image,i.xc),i.Bb(2),i.Ic(t.title),i.Bb(2),i.Ic(t.subtitle)}}function Rt(t,e){if(1&t&&(i.Rb(0),i.Tb(1,"div",7),i.Ob(2,"ad-host",26),i.Tb(3,"ul",27),i.Fc(4,Mt,6,3,"li",28),i.Sb(),i.Sb(),i.Ob(5,"div",16),i.Qb()),2&t){const t=i.ec();i.Bb(4),i.kc("ngForOf",t.content.primaryFeatures)}}function Nt(t,e){1&t&&i.Ob(0,"div",16)}function Lt(t,e){if(1&t&&(i.Rb(0),i.Tb(1,"li",31),i.Ob(2,"img",30),i.Tb(3,"section",32),i.Tb(4,"small"),i.Hc(5),i.Sb(),i.Tb(6,"h2"),i.Hc(7),i.Sb(),i.Ob(8,"div",33),i.Tb(9,"p"),i.Hc(10),i.Sb(),i.Sb(),i.Sb(),i.Fc(11,Nt,1,0,"div",34),i.Qb()),2&t){const t=e.$implicit,n=e.first,r=e.last,s=e.even;i.Bb(1),i.Fb("first-secondary-feature",n)("reverse",s),i.Bb(1),i.kc("src",t.image+"?v2",i.xc),i.Bb(3),i.Ic(t.subtitle),i.Bb(2),i.Ic(t.title),i.Bb(3),i.Ic(t.description),i.Bb(1),i.kc("ngIf",!r)}}function Bt(t,e){if(1&t&&(i.Tb(0,"a",35),i.Hc(1),i.Sb()),2&t){const t=i.ec();i.Bb(1),i.Ic(t.content.actions.cta1)}}let Ht=(()=>{class t{constructor(t,e,n,i,r){this.settings=t,this.i18n=e,this.router=n,this.cd=i,this.sanitizer=r}ngOnInit(){this.settings.all$().subscribe(()=>{this.content=this.settings.getJson("homepage.appearance"),this.overlayBackground=this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(45deg, ${this.content.headerOverlayColor1} 0%, ${this.content.headerOverlayColor2} 100%)`),this.cd.markForCheck()})}scrollToFeatures(){document.querySelector(".first-secondary-feature").scrollIntoView({block:"center",inline:"center",behavior:"smooth"})}copyrightText(){const t=(new Date).getFullYear();return this.i18n.t("Copyright \xa9 :year, All Rights Reserved",{year:t})}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(W.a),i.Nb(dt.a),i.Nb(s.d),i.Nb(i.h),i.Nb(r.b))},t.\u0275cmp=i.Hb({type:t,selectors:[["landing"]],decls:34,vars:24,consts:[[1,"hero","header-overlay"],[1,"background-image"],["viewBox","0 0 100 15",2,"position","absolute","bottom","0","left","0","z-index","2"],["fill","#fff","opacity","0.1","d","M0 30 V15 Q30 3 60 15 V30z"],["d","M0 30 V12 Q30 17 55 12 T100 11 V30z",1,"wave-fill"],[1,"hero-content"],[1,"login-button-white",3,"transparent","container","menuPosition"],[1,"be-container"],[1,"header-title"],[1,"header-description"],[1,"action-buttons"],["class","get-started-button","mat-raised-button","","color","accent","routerLink","/login",4,"ngIf"],["class","learn-more-button","mat-button","",3,"click",4,"ngIf"],[4,"ngIf"],[1,"big-features"],[4,"ngFor","ngForOf"],[1,"spacer"],[1,"bottom-cta"],[1,"footer-title"],[1,"footer-description"],["mat-stroked-button","","routerLink","/login",4,"ngIf"],[1,"meta"],[3,"routerLink"],["position","footer",3,"horizontal"],["mat-raised-button","","color","accent","routerLink","/login",1,"get-started-button"],["mat-button","",1,"learn-more-button",3,"click"],["slot","ads.landing.top"],[1,"inline-features"],["class","inline-feature",4,"ngFor","ngForOf"],[1,"inline-feature"],["alt","",3,"src"],[1,"big-feature","be-container"],[1,"info"],[1,"feature-border"],["class","spacer",4,"ngIf"],["mat-stroked-button","","routerLink","/login"]],template:function(t,e){1&t&&(i.Tb(0,"div",0),i.Ob(1,"div",1),i.dc(),i.Tb(2,"svg",2),i.Ob(3,"path",3),i.Ob(4,"path",4),i.Sb(),i.cc(),i.Tb(5,"div",5),i.Ob(6,"material-navbar",6),i.Tb(7,"div",7),i.Tb(8,"h1",8),i.Hc(9),i.Sb(),i.Tb(10,"p",9),i.Hc(11),i.Sb(),i.Tb(12,"div",10),i.Fc(13,jt,2,1,"a",11),i.Fc(14,Ft,2,1,"button",12),i.Sb(),i.Sb(),i.Sb(),i.Sb(),i.Fc(15,Rt,6,1,"ng-container",13),i.Tb(16,"ul",14),i.Fc(17,Lt,12,9,"ng-container",15),i.Sb(),i.Ob(18,"div",16),i.Tb(19,"div",17),i.Tb(20,"div",7),i.Tb(21,"h2",18),i.Hc(22),i.Sb(),i.Tb(23,"p",19),i.Hc(24),i.Sb(),i.Fc(25,Bt,2,1,"a",20),i.Sb(),i.Sb(),i.Tb(26,"footer"),i.Tb(27,"div",7),i.Tb(28,"div",21),i.Tb(29,"span"),i.Hc(30),i.Sb(),i.Tb(31,"a",22),i.Hc(32),i.Sb(),i.Sb(),i.Ob(33,"custom-menu",23),i.Sb(),i.Sb()),2&t&&(i.Cc("background",e.overlayBackground),i.Bb(1),i.Cc("background-image","url("+e.content.headerImage+")")("opacity",e.content.headerImageOpacity),i.Bb(5),i.kc("transparent",!0)("container",!0)("menuPosition",e.settings.get("vebto.navbar.defaultPosition")),i.Bb(3),i.Ic(e.content.headerTitle),i.Bb(2),i.Ic(e.content.headerSubtitle),i.Bb(2),i.kc("ngIf",null==e.content||null==e.content.actions?null:e.content.actions.cta1),i.Bb(1),i.kc("ngIf",null==e.content||null==e.content.actions?null:e.content.actions.cta2),i.Bb(1),i.kc("ngIf",e.content.primaryFeatures.length),i.Bb(2),i.kc("ngForOf",e.content.secondaryFeatures),i.Bb(2),i.Cc("background-image","url("+e.content.footerImage+")"),i.Bb(3),i.Ic(e.content.footerTitle),i.Bb(2),i.Ic(e.content.footerSubtitle),i.Bb(1),i.kc("ngIf",null==e.content.actions?null:e.content.actions.cta1),i.Bb(5),i.Jc("",e.copyrightText(),", "),i.Bb(1),i.kc("routerLink","/"),i.Bb(1),i.Ic(e.settings.get("branding.site_name")),i.Bb(1),i.kc("horizontal",!0))},directives:[Ot.a,Q.t,Q.s,s.g,Dt.a,Z.a,Z.b,Pt.a],styles:['.hero[_ngcontent-%COMP%]{text-align:center;position:relative;padding-bottom:140px;margin-bottom:60px}@media only screen and (max-width:768px){.hero[_ngcontent-%COMP%]{padding-bottom:30px}}.hero-content[_ngcontent-%COMP%]{position:relative;z-index:3}svg[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%}.wave-fill[_ngcontent-%COMP%]{fill:var(--be-background)}material-navbar[_ngcontent-%COMP%]{box-shadow:none;margin-bottom:40px}h1[_ngcontent-%COMP%]{font-size:4.4rem;margin:0 0 10px}.header-description[_ngcontent-%COMP%], h1[_ngcontent-%COMP%]{font-weight:300;text-shadow:1px 1px 5px rgba(0,0,0,.1)}.header-description[_ngcontent-%COMP%]{margin:0 auto;font-size:1.8rem;max-width:600px}.action-buttons[_ngcontent-%COMP%]{margin:50px 0}.get-started-button[_ngcontent-%COMP%]{min-width:180px;height:50px;border-radius:30px;line-height:50px;margin-right:15px;font-size:1.7rem;background:var(--be-accent-contrast);color:rgba(0,0,0,.87)}.learn-more-button[_ngcontent-%COMP%]{font-size:1.6rem}.inline-features[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));justify-content:space-between;text-align:center}@media only screen and (max-width:768px){.inline-features[_ngcontent-%COMP%]{display:block}.inline-features[_ngcontent-%COMP%]   .inline-feature[_ngcontent-%COMP%]{min-width:auto}}.inline-feature[_ngcontent-%COMP%]{max-width:360px}.inline-feature[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:150px;height:120px;margin:0 auto 30px}.inline-feature[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1.8rem;margin-bottom:15px}.inline-feature[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:1.5rem;color:var(--be-secondary-text)}.spacer[_ngcontent-%COMP%]{border-bottom:1px solid var(--be-divider-lighter);margin-bottom:40px;margin-top:40px}.big-feature[_ngcontent-%COMP%]{display:flex;padding:15px 0}.big-feature.reverse[_ngcontent-%COMP%]{flex-direction:row-reverse}.big-feature[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-radius:10px;width:580px;max-width:100%;margin-right:auto;box-shadow:0 0 80px 10px rgba(0,0,0,.08)}.big-feature[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]{margin-left:30px;margin-right:auto;max-width:350px;padding-top:30px}.big-feature[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{text-transform:uppercase;margin:0 0 15px;letter-spacing:1px;font-weight:500;font-size:1.2rem;color:var(--be-secondary-text)}.big-feature[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:15px 0;font-size:3.1rem;font-weight:400}.big-feature[_ngcontent-%COMP%]   .feature-border[_ngcontent-%COMP%]{width:50px;height:2px;background-color:var(--be-primary-default)}.big-feature[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:1.5rem;margin:20px 0}@media only screen and (max-width:768px){.big-feature[_ngcontent-%COMP%]{display:block;padding:0 15px}.big-feature[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]{margin-left:0}}.stats[_ngcontent-%COMP%]{margin:90px auto}@media only screen and (max-width:768px){.stats[_ngcontent-%COMP%]{display:none}}.bottom-cta[_ngcontent-%COMP%]{padding:70px 0;color:var(--be-accent-contrast);background-repeat:no-repeat;background-color:#2b2b2b;background-attachment:fixed;text-align:center}.bottom-cta[_ngcontent-%COMP%], .bottom-cta[_ngcontent-%COMP%]   .be-container[_ngcontent-%COMP%]{position:relative}.bottom-cta[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:3.4rem;margin:0 auto;max-width:600px;font-weight:400}.bottom-cta[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:2.6rem;margin:8px auto 50px;font-weight:300;max-width:600px}.bottom-cta[_ngcontent-%COMP%]   .mat-stroked-button[_ngcontent-%COMP%]{min-width:185px;height:50px;line-height:50px;font-size:1.7rem;font-weight:500;border-color:var(--be-accent-contrast)}@media only screen and (max-width:768px){.bottom-cta[_ngcontent-%COMP%]{display:none}}footer[_ngcontent-%COMP%]{padding:50px 0;font-size:1.5rem}footer[_ngcontent-%COMP%]   .be-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}footer[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:inherit}@media only screen and (max-width:768px){footer[_ngcontent-%COMP%]{padding:25px 0;text-align:center}footer[_ngcontent-%COMP%]   .be-container[_ngcontent-%COMP%]{display:block}}.ads-landing-top-host[_ngcontent-%COMP%]{margin-top:60px}.header-overlay[_ngcontent-%COMP%]{color:var(--be-accent-contrast)}.background-image[_ngcontent-%COMP%]{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;background-size:cover;background-repeat:no-repeat;background-position:50%}'],changeDetection:0}),t})();var Vt=n("0QyJ");const zt=[{path:"",component:Ht,canActivate:[vt]},{path:"builder",canLoad:[Vt.a],loadChildren:()=>n.e(6).then(n.bind(null,"9PQV")).then(t=>t.HtmlBuilderModule)},{path:"admin",loadChildren:()=>n.e(7).then(n.bind(null,"Jidy")).then(t=>t.AppAdminModule)},{path:"billing",loadChildren:()=>n.e(8).then(n.bind(null,"OqQL")).then(t=>t.BillingModule)},{path:"notifications",loadChildren:()=>n.e(11).then(n.bind(null,"cPR9")).then(t=>t.NotificationsModule)},{path:"contact",component:It}];let Ut=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)},imports:[[s.h.forRoot(zt)],s.h]}),t})();var $t=n("L317");const Xt=function(){return["/register"]};function qt(t,e){1&t&&(i.Rb(0),i.Tb(1,"span",9),i.Hc(2,"Don't have an account?"),i.Sb(),i.Hc(3," "),i.Tb(4,"a",10),i.Hc(5,"Sign up."),i.Sb(),i.Qb()),2&t&&(i.Bb(4),i.kc("routerLink",i.nc(1,Xt)))}const Wt=function(){return["/login"]};function Gt(t,e){1&t&&(i.Rb(0),i.Tb(1,"span",9),i.Hc(2,"Already have an account?"),i.Sb(),i.Hc(3," "),i.Tb(4,"a",11),i.Hc(5,"Sign in."),i.Sb(),i.Qb()),2&t&&(i.Bb(4),i.kc("routerLink",i.nc(1,Wt)))}const Kt=function(){return["/"]},Yt=["*"];let Jt=(()=>{class t{constructor(t,e,n,i){this.settings=t,this.theme=e,this.route=n,this.auth=i,this.infoRowTarget="signup"}ngOnInit(){this.route.snapshot.queryParams.email&&this.auth.forcedEmail$.next(this.route.snapshot.queryParams.email)}logoUrl(){return this.settings.get("branding.logo_"+(this.theme.isDarkMode()?"light":"dark"))}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(W.a),i.Nb($t.a),i.Nb(s.a),i.Nb(_t.a))},t.\u0275cmp=i.Hb({type:t,selectors:[["auth-page"]],inputs:{infoRowTarget:"infoRowTarget"},ngContentSelectors:Yt,decls:12,vars:7,consts:[[1,"auth-page-content"],[1,"logo",3,"routerLink"],["alt","logo",3,"src"],[1,"auth-panel"],[1,"info-row"],[4,"ngIf"],[1,"custom-menu-container"],["routerLink","/",1,"copyright"],["position","auth-page-footer",3,"horizontal"],["trans",""],["trans","",1,"register-link",3,"routerLink"],["trans","",3,"routerLink"]],template:function(t,e){1&t&&(i.jc(),i.Tb(0,"div",0),i.Tb(1,"a",1),i.Ob(2,"img",2),i.Sb(),i.Tb(3,"div",3),i.ic(4),i.Sb(),i.Tb(5,"div",4),i.Fc(6,qt,6,2,"ng-container",5),i.Fc(7,Gt,6,2,"ng-container",5),i.Sb(),i.Sb(),i.Tb(8,"div",6),i.Tb(9,"a",7),i.Hc(10),i.Sb(),i.Ob(11,"custom-menu",8),i.Sb()),2&t&&(i.Bb(1),i.kc("routerLink",i.nc(6,Kt)),i.Bb(1),i.kc("src",e.logoUrl(),i.xc),i.Bb(4),i.kc("ngIf","signup"===e.infoRowTarget&&!e.settings.get("registration.disable")),i.Bb(1),i.kc("ngIf","signin"===e.infoRowTarget),i.Bb(3),i.Jc("\xa9 ",e.settings.get("branding.site_name"),""),i.Bb(1),i.kc("horizontal",!0))},directives:[s.g,Q.t,Dt.a,J.a],styles:[".be-dark-mode auth-page{background-image:none}.be-dark-mode auth-page .auth-panel{box-shadow:none}auth-page{display:flex;flex-direction:column;background-color:var(--be-background-alternative);min-height:100vh;padding-top:72px;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 304 304' width='304' height='304'%3E%3Cpath fill='%23e2e9f1' fill-opacity='0.4' d='M44.1 224a5 5 0 1 1 0 2H0v-2h44.1zm160 48a5 5 0 1 1 0 2H82v-2h122.1zm57.8-46a5 5 0 1 1 0-2H304v2h-42.1zm0 16a5 5 0 1 1 0-2H304v2h-42.1zm6.2-114a5 5 0 1 1 0 2h-86.2a5 5 0 1 1 0-2h86.2zm-256-48a5 5 0 1 1 0 2H0v-2h12.1zm185.8 34a5 5 0 1 1 0-2h86.2a5 5 0 1 1 0 2h-86.2zM258 12.1a5 5 0 1 1-2 0V0h2v12.1zm-64 208a5 5 0 1 1-2 0v-54.2a5 5 0 1 1 2 0v54.2zm48-198.2V80h62v2h-64V21.9a5 5 0 1 1 2 0zm16 16V64h46v2h-48V37.9a5 5 0 1 1 2 0zm-128 96V208h16v12.1a5 5 0 1 1-2 0V210h-16v-76.1a5 5 0 1 1 2 0zm-5.9-21.9a5 5 0 1 1 0 2H114v48H85.9a5 5 0 1 1 0-2H112v-48h12.1zm-6.2 130a5 5 0 1 1 0-2H176v-74.1a5 5 0 1 1 2 0V242h-60.1zm-16-64a5 5 0 1 1 0-2H114v48h10.1a5 5 0 1 1 0 2H112v-48h-10.1zM66 284.1a5 5 0 1 1-2 0V274H50v30h-2v-32h18v12.1zM236.1 176a5 5 0 1 1 0 2H226v94h48v32h-2v-30h-48v-98h12.1zm25.8-30a5 5 0 1 1 0-2H274v44.1a5 5 0 1 1-2 0V146h-10.1zm-64 96a5 5 0 1 1 0-2H208v-80h16v-14h-42.1a5 5 0 1 1 0-2H226v18h-16v80h-12.1zm86.2-210a5 5 0 1 1 0 2H272V0h2v32h10.1zM98 101.9V146H53.9a5 5 0 1 1 0-2H96v-42.1a5 5 0 1 1 2 0zM53.9 34a5 5 0 1 1 0-2H80V0h2v34H53.9zm60.1 3.9V66H82v64H69.9a5 5 0 1 1 0-2H80V64h32V37.9a5 5 0 1 1 2 0zM101.9 82a5 5 0 1 1 0-2H128V37.9a5 5 0 1 1 2 0V82h-28.1zm16-64a5 5 0 1 1 0-2H146v44.1a5 5 0 1 1-2 0V18h-26.1zm102.2 270a5 5 0 1 1 0 2H98v14h-2v-16h124.1zM242 149.9V160h16v34h-16v62h48v48h-2v-46h-48v-66h16v-30h-16v-12.1a5 5 0 1 1 2 0zM53.9 18a5 5 0 1 1 0-2H64V2H48V0h18v18H53.9zm112 32a5 5 0 1 1 0-2H192V0h50v2h-48v48h-28.1zm-48-48a5 5 0 0 1-9.8-2h2.07a3 3 0 1 0 5.66 0H178v34h-18V21.9a5 5 0 1 1 2 0V32h14V2h-58.1zm0 96a5 5 0 1 1 0-2H137l32-32h39V21.9a5 5 0 1 1 2 0V66h-40.17l-32 32H117.9zm28.1 90.1a5 5 0 1 1-2 0v-76.51L175.59 80H224V21.9a5 5 0 1 1 2 0V82h-49.59L146 112.41v75.69zm16 32a5 5 0 1 1-2 0v-99.51L184.59 96H300.1a5 5 0 0 1 3.9-3.9v2.07a3 3 0 0 0 0 5.66v2.07a5 5 0 0 1-3.9-3.9H185.41L162 121.41v98.69zm-144-64a5 5 0 1 1-2 0v-3.51l48-48V48h32V0h2v50H66v55.41l-48 48v2.69zM50 53.9v43.51l-48 48V208h26.1a5 5 0 1 1 0 2H0v-65.41l48-48V53.9a5 5 0 1 1 2 0zm-16 16V89.41l-34 34v-2.82l32-32V69.9a5 5 0 1 1 2 0zM12.1 32a5 5 0 1 1 0 2H9.41L0 43.41V40.6L8.59 32h3.51zm265.8 18a5 5 0 1 1 0-2h18.69l7.41-7.41v2.82L297.41 50H277.9zm-16 160a5 5 0 1 1 0-2H288v-71.41l16-16v2.82l-14 14V210h-28.1zm-208 32a5 5 0 1 1 0-2H64v-22.59L40.59 194H21.9a5 5 0 1 1 0-2H41.41L66 216.59V242H53.9zm150.2 14a5 5 0 1 1 0 2H96v-56.6L56.6 162H37.9a5 5 0 1 1 0-2h19.5L98 200.6V256h106.1zm-150.2 2a5 5 0 1 1 0-2H80v-46.59L48.59 178H21.9a5 5 0 1 1 0-2H49.41L82 208.59V258H53.9zM34 39.8v1.61L9.41 66H0v-2h8.59L32 40.59V0h2v39.8zM2 300.1a5 5 0 0 1 3.9 3.9H3.83A3 3 0 0 0 0 302.17V256h18v48h-2v-46H2v42.1zM34 241v63h-2v-62H0v-2h34v1zM17 18H0v-2h16V0h2v18h-1zm273-2h14v2h-16V0h2v16zm-32 273v15h-2v-14h-14v14h-2v-16h18v1zM0 92.1A5.02 5.02 0 0 1 6 97a5 5 0 0 1-6 4.9v-2.07a3 3 0 1 0 0-5.66V92.1zM80 272h2v32h-2v-32zm37.9 32h-2.07a3 3 0 0 0-5.66 0h-2.07a5 5 0 0 1 9.8 0zM5.9 0A5.02 5.02 0 0 1 0 5.9V3.83A3 3 0 0 0 3.83 0H5.9zm294.2 0h2.07A3 3 0 0 0 304 3.83V5.9a5 5 0 0 1-3.9-5.9zm3.9 300.1v2.07a3 3 0 0 0-1.83 1.83h-2.07a5 5 0 0 1 3.9-3.9zM97 100a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-48 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 96a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-144a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-96 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm96 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-32 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM49 36a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-32 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM33 68a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 240a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm80-176a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm112 176a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM17 180a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM17 84a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6z'%3E%3C/path%3E%3C/svg%3E\")}auth-page .header{font-size:2rem;margin-bottom:20px;opacity:.85}auth-page .input-container{position:relative}auth-page .input-container label{padding-bottom:8px;line-height:20px;color:inherit}auth-page .input-container .label-with-action{display:flex;align-items:center;padding-bottom:8px}auth-page .input-container .label-with-action label{padding-bottom:0}auth-page .input-container input{font-size:1.5rem;letter-spacing:.5px;height:44px;padding:6px 12px;background-color:var(--be-background);color:inherit}auth-page .input-container .error.big-error{font-size:1.4rem;font-weight:500;margin-top:12px}auth-page .input-container .error .mat-icon{width:12px;height:12px;margin-right:6px;transform:translateY(1.1px)}auth-page .many-inputs .input-container{margin-bottom:32px}auth-page .many-inputs .input-container:last-of-type{margin-bottom:0}auth-page .logo{display:block;width:100%;margin:0 auto 40px;min-height:41px;flex-shrink:0}auth-page .logo img{display:block;margin:auto;width:180px}auth-page .forgot-password{margin-left:auto}auth-page .remember-me{display:block;margin-top:32px}auth-page .primary-button{width:100%;line-height:48px;margin-top:32px;font-weight:500;font-size:1.6rem}auth-page .social-icons{margin-top:32px;text-align:center}auth-page .alternative-signin-method{display:block;margin-top:32px;text-align:center;font-weight:500;width:100%;color:#82b541}auth-page .alternative-signin-method .mat-icon{vertical-align:middle;margin-right:5px}auth-page .auth-panel{position:relative;width:90%;max-width:448px;padding:44px 44px 32px;background-color:var(--be-background);box-shadow:0 7px 14px 0 rgba(60,66,87,.12),0 3px 6px 0 rgba(0,0,0,.12);border-radius:4px;margin:0 auto}auth-page .info-row{margin-top:36px;text-align:center}auth-page .custom-menu-container{text-align:center;padding:42px 0 32px;flex-shrink:0;margin-top:auto;color:var(--be-secondary-text)}auth-page .copyright{padding:5px 15px;color:inherit}"],encapsulation:2,changeDetection:0}),t})();var Qt=n("NFeN");function Zt(t,e){if(1&t&&(i.Tb(0,"p",9),i.Ob(1,"mat-icon",10),i.Tb(2,"span"),i.Hc(3),i.Sb(),i.Sb()),2&t){const t=i.ec().ngIf;i.Bb(3),i.Ic(t.email)}}function te(t,e){if(1&t){const t=i.Ub();i.Tb(0,"form",1),i.ac("ngSubmit",(function(){return i.vc(t),i.ec().sendPasswordResetLink()})),i.Tb(1,"div",2),i.Hc(2,"Enter your email address below and we will send you a link to reset or create your password."),i.Sb(),i.Tb(3,"div",3),i.Tb(4,"div",4),i.Tb(5,"label",5),i.Hc(6,"Email"),i.Sb(),i.Ob(7,"input",6),i.Fc(8,Zt,4,1,"p",7),i.Sb(),i.Tb(9,"button",8),i.fc(10,"async"),i.Hc(11,"Continue"),i.Sb(),i.Sb(),i.Sb()}if(2&t){const t=e.ngIf,n=i.ec();i.kc("formGroup",n.form),i.Bb(8),i.kc("ngIf",t.email),i.Bb(1),i.kc("disabled",i.gc(10,3,n.loading$))}}let ee=(()=>{class t{constructor(t,e,n,i,r){this.auth=t,this.settings=e,this.toast=n,this.router=i,this.fb=r,this.loading$=new ut.a(!1),this.form=this.fb.group({email:[""]}),this.errors$=new ut.a({})}ngOnInit(){this.auth.forcedEmail$.pipe(Object(o.a)(t=>!!t)).subscribe(t=>{this.form.get("email").setValue(t),this.form.get("email").disable()})}sendPasswordResetLink(){this.loading$.next(!0),this.auth.sendPasswordResetLink(this.form.value).subscribe(t=>{this.router.navigate(["/login"]).then(()=>{this.loading$.next(!1),this.toast.open(t.data)})},t=>{this.errors$.next(t.errors),this.loading$.next(!1)})}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(_t.a),i.Nb(W.a),i.Nb(Ct.b),i.Nb(s.d),i.Nb(yt.h))},t.\u0275cmp=i.Hb({type:t,selectors:[["forgot-password"]],decls:3,vars:3,consts:[["ngNativeValidate","",3,"formGroup","ngSubmit",4,"ngIf"],["ngNativeValidate","",3,"formGroup","ngSubmit"],["trans","",1,"page-header"],[1,"page-content"],[1,"input-container"],["for","email","trans",""],["type","email","formControlName","email","id","email","required",""],["class","error big-error",4,"ngIf"],["mat-raised-button","","color","accent","type","submit","trans","",1,"primary-button",3,"disabled"],[1,"error","big-error"],["svgIcon","warning"]],template:function(t,e){1&t&&(i.Tb(0,"auth-page"),i.Fc(1,te,12,5,"form",0),i.fc(2,"async"),i.Sb()),2&t&&(i.Bb(1),i.kc("ngIf",i.gc(2,1,e.errors$)))},directives:[Jt,Q.t,yt.v,yt.m,J.a,yt.d,yt.u,yt.k,yt.F,Z.b,Qt.a],pipes:[Q.b],styles:[".page-header[_ngcontent-%COMP%]{margin-bottom:32px}"],changeDetection:0}),t})();var ne=n("0IaG"),ie=n("XNiG");function re(t,e){if(1&t&&(i.Tb(0,"div",16),i.Hc(1),i.Sb()),2&t){const t=i.ec(2).ngIf;i.Bb(1),i.Ic(t.email)}}function se(t,e){if(1&t&&(i.Tb(0,"div",11),i.Tb(1,"label",12),i.Hc(2,"Email Address"),i.Sb(),i.Ob(3,"input",13),i.Fc(4,re,2,1,"div",14),i.Tb(5,"p",15),i.Hc(6,"We need your email address to create an account for you, please enter it above."),i.Sb(),i.Sb()),2&t){const t=i.ec().ngIf;i.Bb(4),i.kc("ngIf",t.email)}}function oe(t,e){if(1&t&&(i.Tb(0,"div",16),i.Hc(1),i.Sb()),2&t){const t=i.ec(2).ngIf;i.Bb(1),i.Ic(t.password)}}function ae(t,e){if(1&t&&(i.Tb(0,"div",17),i.Tb(1,"label",18),i.Hc(2,"Password"),i.Sb(),i.Ob(3,"input",19),i.Fc(4,oe,2,1,"div",14),i.Tb(5,"p",15),i.Hc(6,"An account with this email address already exists, if you want to connect the two account's please enter existing accounts password above."),i.Sb(),i.Sb()),2&t){const t=i.ec().ngIf;i.Bb(4),i.kc("ngIf",t.password)}}function ce(t,e){if(1&t){const t=i.Ub();i.Tb(0,"form",5),i.ac("ngSubmit",(function(){return i.vc(t),i.ec().confirm()})),i.Tb(1,"mat-dialog-content"),i.Tb(2,"div",6),i.Fc(3,se,7,1,"div",7),i.Fc(4,ae,7,1,"div",8),i.Sb(),i.Sb(),i.Tb(5,"mat-dialog-actions"),i.Tb(6,"button",9),i.ac("click",(function(){return i.vc(t),i.ec().close()})),i.Hc(7,"Cancel"),i.Sb(),i.Tb(8,"button",10),i.Hc(9,"Connect"),i.Sb(),i.Sb(),i.Sb()}if(2&t){const t=i.ec();i.kc("formGroup",t.form),i.Bb(3),i.kc("ngIf",t.shouldCredentialBeRequested("email")),i.Bb(1),i.kc("ngIf",t.shouldCredentialBeRequested("password"))}}let le=(()=>{class t{constructor(t,e,n,i,r){this.dialogRef=t,this.data=e,this.zone=n,this.settings=i,this.fb=r,this.form=this.fb.group({email:[""],password:[""]}),this.errors$=new ut.a({}),this.onSubmit$=new ie.a}ngOnInit(){this.zone.run(()=>{this.credentialsToRequest=this.data.credentials})}shouldCredentialBeRequested(t){return this.credentialsToRequest.indexOf(t)>-1}confirm(){this.onSubmit$.next(Object.assign({},this.form.value))}close(){this.onSubmit$.complete(),this.dialogRef.close()}handleErrors(t){t.errors.email&&this.credentialsToRequest.push("password"),this.zone.run(()=>{this.errors$.next(t.errors)})}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(ne.h),i.Nb(ne.a),i.Nb(i.A),i.Nb(W.a),i.Nb(yt.h))},t.\u0275cmp=i.Hb({type:t,selectors:[["request-extra-credentials-modal"]],decls:7,vars:3,consts:[[1,"modal-header"],["mat-dialog-title","","trans","",1,"modal-title"],["type","button","tabindex","-1",1,"close-button","no-style",3,"click"],["svgIcon","close"],["ngNativeValidate","",3,"formGroup","ngSubmit",4,"ngIf"],["ngNativeValidate","",3,"formGroup","ngSubmit"],[1,"many-inputs"],["class","input-container email-address-container",4,"ngIf"],["class","input-container password-container",4,"ngIf"],["type","button","mat-button","","trans","",3,"click"],["type","submit","mat-raised-button","","color","accent","trans",""],[1,"input-container","email-address-container"],["for","email","trans",""],["type","email","id","email","formControlName","email","required",""],["class","error",4,"ngIf"],["trans",""],[1,"error"],[1,"input-container","password-container"],["for","password","trans",""],["type","password","id","password","formControlName","password","required",""]],template:function(t,e){1&t&&(i.Tb(0,"div",0),i.Tb(1,"h2",1),i.Hc(2,"Credentials Required"),i.Sb(),i.Tb(3,"button",2),i.ac("click",(function(){return e.close()})),i.Ob(4,"mat-icon",3),i.Sb(),i.Sb(),i.Fc(5,ce,10,3,"form",4),i.fc(6,"async")),2&t&&(i.Bb(5),i.kc("ngIf",i.gc(6,1,e.errors$)))},directives:[ne.i,J.a,Qt.a,Q.t,yt.v,yt.m,ne.f,ne.c,Z.b,yt.d,yt.u,yt.k,yt.F],pipes:[Q.b],styles:["[_nghost-%COMP%]{display:block;width:400px;max-width:100%}"],changeDetection:0}),t})();var ue=n("QGXG");let he=(()=>{class t{constructor(t,e,n,i,r,s,o,a){this.httpClient=t,this.currentUser=e,this.router=n,this.settings=i,this.toast=r,this.auth=s,this.i18n=o,this.modal=a,this.windowHeight=550,this.windowWidth=650,this.listenForMessageFromPopup()}loginWith(t){return this.openNewSocialAuthWindow("secure/auth/social/"+t+"/login")}connect(t){return this.openNewSocialAuthWindow("secure/auth/social/"+t+"/connect")}disconnect(t){return this.httpClient.post("auth/social/"+t+"/disconnect")}socialLoginCallback(t,e=null){if(t)switch(t.toUpperCase()){case"SUCCESS":this.currentUser.assignCurrent(e.user),this.router.navigate([this.auth.getRedirectUri()]);break;case"SUCCESS_CONNECTED":this.resolve&&this.resolve(e.user);break;case"ALREADY_LOGGED_IN":this.router.navigate([this.auth.getRedirectUri()]);break;case"REQUEST_EXTRA_CREDENTIALS":this.showRequestExtraCredentialsModal({credentials:e});break;case"ERROR":const t=e||this.i18n.t("An error occurred. Please try again later");this.toast.open(t,{duration:6e3})}}showRequestExtraCredentialsModal(t){this.extraCredentialsModal=this.modal.open(le,t),this.extraCredentialsModal.componentInstance.onSubmit$.subscribe(t=>{t&&this.sendExtraCredentialsToBackend(t)})}sendExtraCredentialsToBackend(t){this.httpClient.post("auth/social/extra-credentials",t).subscribe(t=>{this.currentUser.assignCurrent(t.data),this.extraCredentialsModal.close(),this.router.navigate([this.auth.getRedirectUri()]).then(()=>{this.toast.open("Accounts connected")})},this.extraCredentialsModal.componentInstance.handleErrors.bind(this.extraCredentialsModal.componentInstance))}openNewSocialAuthWindow(t){const e=screen.width/2-this.windowWidth/2,n=screen.height/2-this.windowHeight/2;return new Promise(i=>{this.resolve=i,window.open(t,"Authenticate Account","menubar=0, location=0, toolbar=0, titlebar=0, status=0, scrollbars=1, width="+this.windowWidth+", height="+this.windowHeight+", left="+e+", top="+n)})}listenForMessageFromPopup(){window.addEventListener("message",t=>{"social-auth"===t.data.type&&-1!==this.settings.getBaseUrl().indexOf(t.origin)&&this.socialLoginCallback(t.data.status,t.data.callbackData)},!1)}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(G.a),i.Xb(gt.a),i.Xb(s.d),i.Xb(W.a),i.Xb(Ct.b),i.Xb(_t.a),i.Xb(dt.a),i.Xb(ue.a))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const de=new i.r("APP_CONFIG");let pe=(()=>{class t{constructor(t){this.injector=t,this.settings=this.injector.get(W.a),this.currentUser=this.injector.get(gt.a),this.i18n=this.injector.get(dt.a),this.injector.get(de).forEach(t=>this.settings.merge({vebto:t})),this.registerIcons()}bootstrap(t){return t||(t=window.bootstrapData),t?(this.handleData(t),new Promise(t=>t())):new Promise((t,e)=>{const n=encodeURIComponent(window.location.href);this.injector.get(G.a).get("bootstrap-data?original_url="+n).subscribe(e=>{this.handleData(e.data),t()},t=>{console.log("bootstrap error",t),e()})})}handleData(t){const e=JSON.parse(atob(t));return this.settings.setMultiple(e.settings),e.i18n&&this.i18n.setLocalization(e.i18n),this.currentUser.init({guestsRole:e.guests_role,user:e.user}),this.data=e,this.settings.csrfToken=e.csrf_token,this.injector.get($t.a).registerThemes(this.data.themes),this.injector.get(at.b).init(),e}registerIcons(){const t=this.settings.getAssetUrl("icons/merged.svg?v3");this.injector.get(Qt.c).addSvgIconSet(this.injector.get(r.b).bypassSecurityTrustResourceUrl(t))}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(i.s))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var me=n("bSwM"),fe=n("Qu3c"),be=n("zW5C");function ge(t,e){if(1&t&&(i.Tb(0,"p",15),i.Ob(1,"mat-icon",16),i.Tb(2,"span"),i.Hc(3),i.Sb(),i.Sb()),2&t){const t=i.ec().ngIf;i.Bb(3),i.Ic(t.email)}}function _e(t,e){if(1&t&&(i.Tb(0,"p",15),i.Ob(1,"mat-icon",16),i.Tb(2,"span"),i.Hc(3),i.Sb(),i.Sb()),2&t){const t=i.ec().ngIf;i.Bb(3),i.Ic(t.password)}}function ve(t,e){if(1&t){const t=i.Ub();i.Tb(0,"button",19),i.ac("click",(function(){return i.vc(t),i.ec(3).socialAuth.loginWith("envato")})),i.Ob(1,"mat-icon",20),i.Tb(2,"span",21),i.Hc(3,"Sign in with Envato instead"),i.Sb(),i.Sb()}}function ye(t,e){if(1&t){const t=i.Ub();i.Tb(0,"button",26),i.ac("click",(function(){return i.vc(t),i.ec(4).socialAuth.loginWith("facebook")})),i.fc(1,"trans"),i.Ob(2,"mat-icon",27),i.Sb()}2&t&&i.kc("matTooltip",i.gc(1,1,"Login with facebook"))}function we(t,e){if(1&t){const t=i.Ub();i.Tb(0,"button",28),i.ac("click",(function(){return i.vc(t),i.ec(4).socialAuth.loginWith("google")})),i.fc(1,"trans"),i.Ob(2,"mat-icon",29),i.Sb()}2&t&&i.kc("matTooltip",i.gc(1,1,"Login with google"))}function Ce(t,e){if(1&t){const t=i.Ub();i.Tb(0,"button",30),i.ac("click",(function(){return i.vc(t),i.ec(4).socialAuth.loginWith("twitter")})),i.fc(1,"trans"),i.Ob(2,"mat-icon",31),i.Sb()}2&t&&i.kc("matTooltip",i.gc(1,1,"Login with twitter"))}function xe(t,e){if(1&t&&(i.Tb(0,"div",22),i.Fc(1,ye,3,3,"button",23),i.Fc(2,we,3,3,"button",24),i.Fc(3,Ce,3,3,"button",25),i.Sb()),2&t){const t=i.ec(3);i.Bb(1),i.kc("ngIf",t.settings.get("social.facebook.enable")),i.Bb(1),i.kc("ngIf",t.settings.get("social.google.enable")),i.Bb(1),i.kc("ngIf",t.settings.get("social.twitter.enable"))}}function ke(t,e){if(1&t&&(i.Rb(0),i.Fc(1,ve,4,0,"button",17),i.Fc(2,xe,4,3,"ng-template",null,18,i.Gc),i.Qb()),2&t){const t=i.sc(3),e=i.ec(2);i.Bb(1),i.kc("ngIf",e.settings.get("social.envato.enable"))("ngIfElse",t)}}const Oe=function(t){return{siteName:t}},Se=function(){return["/forgot-password"]};function Ee(t,e){if(1&t){const t=i.Ub();i.Tb(0,"form",1),i.ac("ngSubmit",(function(){return i.vc(t),i.ec().login()})),i.Tb(1,"div",2),i.Hc(2),i.Sb(),i.Tb(3,"div",3),i.Tb(4,"div",4),i.Tb(5,"label",5),i.Hc(6,"Email"),i.Sb(),i.Ob(7,"input",6),i.Fc(8,ge,4,1,"p",7),i.Sb(),i.Tb(9,"div",4),i.Tb(10,"div",8),i.Tb(11,"label",9),i.Hc(12,"Password"),i.Sb(),i.Tb(13,"a",10),i.Hc(14,"Forgot your password?"),i.Sb(),i.Sb(),i.Ob(15,"input",11),i.Fc(16,_e,4,1,"p",7),i.Sb(),i.Sb(),i.Tb(17,"mat-checkbox",12),i.Hc(18,"Stay signed in for a month"),i.Sb(),i.Tb(19,"button",13),i.fc(20,"async"),i.Hc(21,"Continue"),i.Sb(),i.Fc(22,ke,4,2,"ng-container",14),i.Sb()}if(2&t){const t=e.ngIf,n=i.ec();i.kc("formGroup",n.form),i.Bb(1),i.kc("transValues",i.oc(10,Oe,n.settings.get("branding.site_name"))),i.Bb(1),i.Jc(" ",n.route.snapshot.data.message||"Sign in to your account"," "),i.Bb(6),i.kc("ngIf",t.email),i.Bb(5),i.kc("routerLink",i.nc(12,Se)),i.Bb(3),i.kc("ngIf",t.password),i.Bb(3),i.kc("disabled",i.gc(20,8,n.loading$)),i.Bb(3),i.kc("ngIf",!n.settings.get("registration.disable"))}}let Te=(()=>{class t{constructor(t,e,n,i,r,s,o,a,c){this.auth=t,this.socialAuth=e,this.settings=n,this.route=i,this.router=r,this.user=s,this.bootstrapper=o,this.fb=a,this.toast=c,this.loading$=new ut.a(!1),this.form=this.fb.group({email:[""],password:[""],remember:[!0]}),this.errResponse$=new ut.a({}),this.hydrateModel()}ngOnInit(){this.auth.forcedEmail$.pipe(Object(o.a)(t=>!!t)).subscribe(t=>{this.form.get("email").setValue(t),this.form.get("email").disable()})}login(){this.loading$.next(!0),this.auth.login(this.form.value).subscribe(t=>{this.bootstrapper.bootstrap(t.data),this.router.navigate([this.auth.getRedirectUri()]).then(()=>{this.loading$.next(!1)})},t=>this.handleLoginError(t))}hydrateModel(){if(this.settings.get("common.site.demo"))if(this.settings.get("vebto.demo.email"))this.form.patchValue({email:this.settings.get("vebto.demo.email"),password:this.settings.get("vebto.demo.password")});else{let t=""+Math.floor(100*Math.random());t=("0000"+t).substr(-3,3),this.form.patchValue({email:"admin@demo"+t+".com",password:"admin"})}}handleLoginError(t){var e;this.loading$.next(!1),"validation.email_confirmed"===(null===(e=t.errors)||void 0===e?void 0:e.email)?this.toast.open("Please confirm your email address.",{action:"Resend Email",duration:6e3}).onAction().subscribe(()=>{this.loading$.next(!0),this.auth.resendEmailConfirmation(this.form.value.email).pipe(Object(wt.a)(()=>this.loading$.next(!1))).subscribe(()=>{this.toast.open("Confirmation email sent.")})}):this.errResponse$.next(t.errors)}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(_t.a),i.Nb(he),i.Nb(W.a),i.Nb(s.a),i.Nb(s.d),i.Nb(gt.a),i.Nb(pe),i.Nb(yt.h),i.Nb(Ct.b))},t.\u0275cmp=i.Hb({type:t,selectors:[["login"]],decls:3,vars:3,consts:[["ngNativeValidate","",3,"formGroup","ngSubmit",4,"ngIf"],["ngNativeValidate","",3,"formGroup","ngSubmit"],["trans","",1,"header",3,"transValues"],[1,"many-inputs"],[1,"input-container"],["for","login-email","trans",""],["type","email","formControlName","email","id","login-email","required",""],["class","error big-error",4,"ngIf"],[1,"label-with-action"],["for","login-password","trans",""],["tabindex","-1","trans","",1,"forgot-password",3,"routerLink"],["type","password","formControlName","password","id","login-password","required",""],["name","remember-me","color","accent","formControlName","remember","trans","",1,"remember-me"],["mat-raised-button","","color","accent","type","submit","trans","",1,"primary-button",3,"disabled"],[4,"ngIf"],[1,"error","big-error"],["svgIcon","warning"],["type","button","class","no-style alternative-signin-method",3,"click",4,"ngIf","ngIfElse"],["defaultSocialAuth",""],["type","button",1,"no-style","alternative-signin-method",3,"click"],["svgIcon","envato-custom"],["trans",""],[1,"social-icons","center"],["type","button","mat-icon-button","","class","social-icon no-style facebook",3,"matTooltip","click",4,"ngIf"],["type","button","mat-icon-button","","class","social-icon no-style google",3,"matTooltip","click",4,"ngIf"],["type","button","mat-icon-button","","class","social-icon no-style twitter",3,"matTooltip","click",4,"ngIf"],["type","button","mat-icon-button","",1,"social-icon","no-style","facebook",3,"matTooltip","click"],["svgIcon","facebook"],["type","button","mat-icon-button","",1,"social-icon","no-style","google",3,"matTooltip","click"],["svgIcon","google"],["type","button","mat-icon-button","",1,"social-icon","no-style","twitter",3,"matTooltip","click"],["svgIcon","twitter"]],template:function(t,e){1&t&&(i.Tb(0,"auth-page"),i.Fc(1,Ee,23,13,"form",0),i.fc(2,"async"),i.Sb()),2&t&&(i.Bb(1),i.kc("ngIf",i.gc(2,1,e.errResponse$)))},directives:[Jt,Q.t,yt.v,yt.m,J.a,yt.d,yt.u,yt.k,yt.F,s.g,me.a,Z.b,Qt.a,fe.a],pipes:[Q.b,be.a],styles:[""],changeDetection:0}),t})();var Ae=n("WAq7");function Ie(t,e){if(1&t&&(i.Tb(0,"p",17),i.Ob(1,"mat-icon",18),i.Tb(2,"span"),i.Hc(3),i.Sb(),i.Sb()),2&t){const t=i.ec().ngIf;i.Bb(3),i.Ic(t.email)}}function De(t,e){if(1&t&&(i.Tb(0,"p",17),i.Ob(1,"mat-icon",18),i.Tb(2,"span"),i.Hc(3),i.Sb(),i.Sb()),2&t){const t=i.ec().ngIf;i.Bb(3),i.Ic(t.password)}}function Pe(t,e){if(1&t&&(i.Tb(0,"p",17),i.Ob(1,"mat-icon",18),i.Tb(2,"span"),i.Hc(3),i.Sb(),i.Sb()),2&t){const t=i.ec(2).ngIf;i.Bb(3),i.Ic(t.purchase_code)}}function je(t,e){if(1&t&&(i.Tb(0,"div",5),i.Tb(1,"label",19),i.Hc(2,"Envato Purchase Code"),i.Sb(),i.Ob(3,"input",20),i.Fc(4,Pe,4,1,"p",8),i.Sb()),2&t){const t=i.ec().ngIf;i.Bb(4),i.kc("ngIf",t.purchase_code)}}function Fe(t,e){if(1&t&&(i.Tb(0,"a",26),i.Tb(1,"strong"),i.Hc(2),i.Sb(),i.Sb()),2&t){const t=i.ec().$implicit,e=i.ec(3);i.kc("href","link"===t.type?t.action:e.settings.getBaseUrl()+t.action,i.xc),i.Bb(2),i.Ic(t.label)}}function Me(t,e){if(1&t&&(i.Tb(0,"strong"),i.Hc(1),i.Sb()),2&t){const t=i.ec().$implicit;i.Bb(1),i.Ic(t.label)}}function Re(t,e){if(1&t&&(i.Tb(0,"mat-checkbox",23),i.Tb(1,"span",24),i.Hc(2,"I accept the"),i.Sb(),i.Hc(3," "),i.Fc(4,Fe,3,2,"a",25),i.Fc(5,Me,2,1,"strong",16),i.Sb()),2&t){const t=e.$implicit;i.kc("formControlName",t.id),i.Bb(4),i.kc("ngIf",t.action),i.Bb(1),i.kc("ngIf",!t.action)}}function Ne(t,e){if(1&t&&(i.Tb(0,"div",21),i.Fc(1,Re,6,3,"mat-checkbox",22),i.Sb()),2&t){const t=i.ec(2);i.Bb(1),i.kc("ngForOf",t.registerPolicies)}}function Le(t,e){if(1&t){const t=i.Ub();i.Tb(0,"button",29),i.ac("click",(function(){return i.vc(t),i.ec(3).socialAuth.loginWith("envato")})),i.Ob(1,"mat-icon",30),i.Tb(2,"span",24),i.Hc(3,"Sign in with Envato instead"),i.Sb(),i.Sb()}}function Be(t,e){if(1&t){const t=i.Ub();i.Tb(0,"button",35),i.ac("click",(function(){return i.vc(t),i.ec(4).socialAuth.loginWith("facebook")})),i.fc(1,"trans"),i.Ob(2,"mat-icon",36),i.Sb()}2&t&&i.kc("matTooltip",i.gc(1,1,"Login with facebook"))}function He(t,e){if(1&t){const t=i.Ub();i.Tb(0,"button",37),i.ac("click",(function(){return i.vc(t),i.ec(4).socialAuth.loginWith("google")})),i.fc(1,"trans"),i.Ob(2,"mat-icon",38),i.Sb()}2&t&&i.kc("matTooltip",i.gc(1,1,"Login with google"))}function Ve(t,e){if(1&t){const t=i.Ub();i.Tb(0,"button",39),i.ac("click",(function(){return i.vc(t),i.ec(4).socialAuth.loginWith("twitter")})),i.fc(1,"trans"),i.Ob(2,"mat-icon",40),i.Sb()}2&t&&i.kc("matTooltip",i.gc(1,1,"Login with twitter"))}function ze(t,e){if(1&t&&(i.Tb(0,"div",31),i.Fc(1,Be,3,3,"button",32),i.Fc(2,He,3,3,"button",33),i.Fc(3,Ve,3,3,"button",34),i.Sb()),2&t){const t=i.ec(3);i.Bb(1),i.kc("ngIf",t.settings.get("social.facebook.enable")),i.Bb(1),i.kc("ngIf",t.settings.get("social.google.enable")),i.Bb(1),i.kc("ngIf",t.settings.get("social.twitter.enable"))}}function Ue(t,e){if(1&t&&(i.Rb(0),i.Fc(1,Le,4,0,"button",27),i.Fc(2,ze,4,3,"ng-template",null,28,i.Gc),i.Qb()),2&t){const t=i.sc(3),e=i.ec(2);i.Bb(1),i.kc("ngIf",e.settings.get("social.envato.enable"))("ngIfElse",t)}}const $e=function(t){return{siteName:t}};function Xe(t,e){if(1&t){const t=i.Ub();i.Tb(0,"form",2),i.ac("ngSubmit",(function(){return i.vc(t),i.ec().register()})),i.Tb(1,"div",3),i.Hc(2),i.Sb(),i.Tb(3,"div",4),i.Tb(4,"div",5),i.Tb(5,"label",6),i.Hc(6,"Email"),i.Sb(),i.Ob(7,"input",7),i.Fc(8,Ie,4,1,"p",8),i.Sb(),i.Tb(9,"div",5),i.Tb(10,"label",9),i.Hc(11,"Password"),i.Sb(),i.Ob(12,"input",10),i.Fc(13,De,4,1,"p",8),i.Sb(),i.Tb(14,"div",5),i.Tb(15,"label",11),i.Hc(16,"Confirm Password"),i.Sb(),i.Ob(17,"input",12),i.Sb(),i.Fc(18,je,5,1,"div",13),i.Sb(),i.Fc(19,Ne,2,1,"div",14),i.Tb(20,"button",15),i.fc(21,"async"),i.Hc(22,"Create Account"),i.Sb(),i.Fc(23,Ue,4,2,"ng-container",16),i.Sb()}if(2&t){const t=e.ngIf,n=i.ec();i.kc("formGroup",n.form),i.Bb(1),i.kc("transValues",i.oc(11,$e,n.settings.get("branding.site_name"))),i.Bb(1),i.Jc(" ",n.route.snapshot.data.message||"Create a new account"," "),i.Bb(6),i.kc("ngIf",t.email),i.Bb(5),i.kc("ngIf",t.password),i.Bb(5),i.kc("ngIf",n.settings.get("envato.enable")&&n.settings.get("envato.require_purchase_code")),i.Bb(1),i.kc("ngIf",n.registerPolicies.length),i.Bb(1),i.kc("disabled",i.gc(21,9,n.loading$)),i.Bb(3),i.kc("ngIf",!n.settings.get("registration.disable"))}}let qe=(()=>{class t{constructor(t,e,n,i,r,s,o,a,c,l){this.auth=t,this.socialAuth=e,this.settings=n,this.route=i,this.user=r,this.router=s,this.toast=o,this.bootstrapper=a,this.recaptcha=c,this.fb=l,this.loading$=new ut.a(!1),this.registerPolicies=[],this.form=this.fb.group({email:[""],password:[""],password_confirmation:[""],purchase_code:[""]}),this.errors$=new ut.a({})}ngOnInit(){this.registerPolicies=this.settings.getJson("register_policies",[]),this.registerPolicies.forEach(t=>{t.id=Object(Ae.a)(t.label,"_"),this.form.addControl(t.id,new yt.i(!1))}),this.recaptcha.enabledFor("registration")&&this.recaptcha.load(),this.auth.forcedEmail$.pipe(Object(o.a)(t=>!!t)).subscribe(t=>{this.form.get("email").setValue(t),this.form.get("email").disable()})}register(){return Object(K.a)(this,void 0,void 0,(function*(){if(this.loading$.next(!0),this.recaptcha.enabledFor("registration")&&!(yield this.recaptcha.verify("registration")))return this.loading$.next(!1),this.toast.open("Could not verify you are human.");this.auth.register(this.form.getRawValue()).subscribe(t=>{"needs_email_verification"===t.status?this.router.navigate(["/login"]).then(()=>{this.loading$.next(!1),this.toast.open(t.message,{duration:6e3})}):(this.bootstrapper.bootstrap(t.bootstrapData),this.router.navigate([this.auth.getRedirectUri()]).then(()=>{this.loading$.next(!1),this.toast.open("Registered successfully.")}))},t=>{this.errors$.next(t.errors),this.loading$.next(!1)})}))}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(_t.a),i.Nb(he),i.Nb(W.a),i.Nb(s.a),i.Nb(gt.a),i.Nb(s.d),i.Nb(Ct.b),i.Nb(pe),i.Nb(kt),i.Nb(yt.h))},t.\u0275cmp=i.Hb({type:t,selectors:[["register"]],decls:3,vars:3,consts:[["infoRowTarget","signin"],["ngNativeValidate","",3,"formGroup","ngSubmit",4,"ngIf"],["ngNativeValidate","",3,"formGroup","ngSubmit"],["trans","",1,"header",3,"transValues"],[1,"many-inputs"],[1,"input-container"],["for","email","trans",""],["type","email","formControlName","email","id","email","required",""],["class","error",4,"ngIf"],["for","register_password","trans",""],["type","password","formControlName","password","id","register_password","required",""],["for","register_password_confirmation","trans",""],["type","password","formControlName","password_confirmation","id","register_password_confirmation","required",""],["class","input-container",4,"ngIf"],["class","policies",4,"ngIf"],["mat-raised-button","","color","accent","type","submit","trans","",1,"primary-button",3,"disabled"],[4,"ngIf"],[1,"error"],["svgIcon","warning"],["for","purchase_code","trans",""],["type","text","formControlName","purchase_code","id","purchase_code","required",""],[1,"policies"],["name","remember-me","class","policy-checkbox","color","accent","required","","trans","",3,"formControlName",4,"ngFor","ngForOf"],["name","remember-me","color","accent","required","","trans","",1,"policy-checkbox",3,"formControlName"],["trans",""],["target","_blank",3,"href",4,"ngIf"],["target","_blank",3,"href"],["type","button","class","no-style alternative-signin-method",3,"click",4,"ngIf","ngIfElse"],["defaultSocialAuth",""],["type","button",1,"no-style","alternative-signin-method",3,"click"],["svgIcon","envato-custom"],[1,"social-icons","center"],["type","button","mat-icon-button","","class","social-icon no-style facebook",3,"matTooltip","click",4,"ngIf"],["type","button","mat-icon-button","","class","social-icon no-style google",3,"matTooltip","click",4,"ngIf"],["type","button","mat-icon-button","","class","social-icon no-style twitter",3,"matTooltip","click",4,"ngIf"],["type","button","mat-icon-button","",1,"social-icon","no-style","facebook",3,"matTooltip","click"],["svgIcon","facebook"],["type","button","mat-icon-button","",1,"social-icon","no-style","google",3,"matTooltip","click"],["svgIcon","google"],["type","button","mat-icon-button","",1,"social-icon","no-style","twitter",3,"matTooltip","click"],["svgIcon","twitter"]],template:function(t,e){1&t&&(i.Tb(0,"auth-page",0),i.Fc(1,Xe,24,13,"form",1),i.fc(2,"async"),i.Sb()),2&t&&(i.Bb(1),i.kc("ngIf",i.gc(2,1,e.errors$)))},directives:[Jt,Q.t,yt.v,yt.m,J.a,yt.d,yt.u,yt.k,yt.F,Z.b,Qt.a,Q.s,me.a,me.c,fe.a],pipes:[Q.b,be.a],styles:[".policies[_ngcontent-%COMP%]{margin-top:32px}.policy-checkbox[_ngcontent-%COMP%]{display:block;margin-bottom:3px}"],changeDetection:0}),t})();var We=n("thmi"),Ge=n("ahrr");function Ke(t,e){if(1&t&&(i.Tb(0,"p",14),i.Hc(1),i.Sb()),2&t){const t=i.ec().ngIf;i.Bb(1),i.Ic(t.email)}}function Ye(t,e){if(1&t&&(i.Tb(0,"p",15),i.Hc(1),i.Sb()),2&t){const t=i.ec().ngIf;i.Bb(1),i.Ic(t.password)}}function Je(t,e){if(1&t){const t=i.Ub();i.Tb(0,"form",1),i.ac("ngSubmit",(function(){return i.vc(t),i.ec().resetPassword()})),i.Tb(1,"div",2),i.Hc(2,"Reset your account password"),i.Sb(),i.Tb(3,"div",3),i.Tb(4,"div",4),i.Tb(5,"label",5),i.Hc(6,"Email"),i.Sb(),i.Ob(7,"input",6),i.Fc(8,Ke,2,1,"p",7),i.Sb(),i.Tb(9,"div",4),i.Tb(10,"label",8),i.Hc(11,"New Password"),i.Sb(),i.Ob(12,"input",9),i.Fc(13,Ye,2,1,"p",10),i.Sb(),i.Tb(14,"div",4),i.Tb(15,"label",11),i.Hc(16,"Confirm New Password"),i.Sb(),i.Ob(17,"input",12),i.Sb(),i.Sb(),i.Tb(18,"button",13),i.fc(19,"async"),i.Hc(20,"Reset Password"),i.Sb(),i.Sb()}if(2&t){const t=e.ngIf,n=i.ec();i.kc("formGroup",n.form),i.Bb(8),i.kc("ngIf",t.email),i.Bb(5),i.kc("ngIf",t.password),i.Bb(5),i.kc("disabled",i.gc(19,4,n.loading$))}}const Qe=[{path:"login",component:Te,canActivate:[vt]},{path:"register",component:qe,canActivate:[vt,(()=>{class t{constructor(t,e,n){this.settings=t,this.router=e,this.localStorage=n}canActivate(t,e){return!(this.settings.get("registration.disable")&&!this.localStorage.get(We.a)&&(this.router.navigate(["/login"]),1))}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(W.a),i.Xb(s.d),i.Xb(Ge.a))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()]},{path:"forgot-password",component:ee,canActivate:[vt]},{path:"password/reset/:token",component:(()=>{class t{constructor(t,e,n,i,r,s,o){this.auth=t,this.settings=e,this.route=n,this.router=i,this.toast=r,this.currentUser=s,this.fb=o,this.loading$=new ut.a(!1),this.form=this.fb.group({email:[""],password:[""],password_confirmation:[""],token:[""]}),this.errors$=new ut.a({})}resetPassword(){this.loading$.next(!0),this.form.patchValue({token:this.route.snapshot.params.token}),this.auth.resetPassword(this.form.value).subscribe(t=>{this.currentUser.assignCurrent(t.data),this.router.navigate([this.auth.getRedirectUri()]).then(()=>{this.loading$.next(!1),this.toast.open("Your password has been reset.")})},t=>{this.errors$.next(t.errors),this.loading$.next(!1)})}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(_t.a),i.Nb(W.a),i.Nb(s.a),i.Nb(s.d),i.Nb(Ct.b),i.Nb(gt.a),i.Nb(yt.h))},t.\u0275cmp=i.Hb({type:t,selectors:[["reset-password"]],hostAttrs:[1,"auth-page"],decls:3,vars:3,consts:[["ngNativeValidate","",3,"formGroup","ngSubmit",4,"ngIf"],["ngNativeValidate","",3,"formGroup","ngSubmit"],["trans","",1,"header"],[1,"many-inputs"],[1,"input-container"],["for","email","trans",""],["type","email","formControlName","email","id","email","required",""],["class","error email-error",4,"ngIf"],["for","password","trans",""],["type","password","formControlName","password","id","password","required",""],["class","error password-error",4,"ngIf"],["for","password_confirmation","trans",""],["type","password","formControlName","password_confirmation","name","password_confirmation","id","password_confirmation","required",""],["mat-raised-button","","color","accent","type","submit","trans","",1,"primary-button",3,"disabled"],[1,"error","email-error"],[1,"error","password-error"]],template:function(t,e){1&t&&(i.Tb(0,"auth-page"),i.Fc(1,Je,21,6,"form",0),i.fc(2,"async"),i.Sb()),2&t&&(i.Bb(1),i.kc("ngIf",i.gc(2,1,e.errors$)))},directives:[Jt,Q.t,yt.v,yt.m,J.a,yt.d,yt.u,yt.k,yt.F,Z.b],pipes:[Q.b],styles:[""],changeDetection:0}),t})(),canActivate:[vt]}];let Ze=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)},imports:[[s.h.forChild(Qe)],s.h]}),t})();var tn=n("6rvT"),en=n("X3pI"),nn=n("6JYt");let rn=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)},imports:[[Ze,Q.c,yt.o,yt.E,s.h,en.a,tn.a,nn.a,ne.g,Qt.b,Z.c,fe.b,me.b]]}),t})();var sn=n("5+tZ"),on=n("cp0P"),an=n("EY2u"),cn=n("mWN8"),ln=n("0Ej5");let un=(()=>{class t{constructor(t,e,n,i,r){this.users=t,this.router=e,this.currentUser=n,this.values=i,this.auth=r}resolve(t){return Object(on.a)([this.users.get(this.currentUser.get("id")).pipe(Object(nt.a)(t=>t.user)),this.values.get(["timezones","countries","localizations"])]).pipe(Object(it.a)(()=>(this.router.navigate([this.auth.getRedirectUri()]),an.a)),Object(sn.a)(t=>t?Object(st.a)({user:t[0],selects:t[1]}):(this.router.navigate([this.auth.getRedirectUri()]),an.a)))}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(cn.a),i.Xb(s.d),i.Xb(gt.a),i.Xb(ln.a),i.Xb(_t.a))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var hn=n("Lm4C"),dn=n("QeDF");const pn=new i.r("ACCOUNT_SETTINGS_PANELS");var mn=n("oVOl"),fn=n("PPuo"),bn=n("IuoX"),gn=n("OnlV"),_n=n("STbY"),vn=n("/zh3");function yn(t,e){if(1&t){const t=i.Ub();i.Rb(0),i.Tb(1,"span",10),i.Hc(2),i.Sb(),i.Tb(3,"button",11),i.ac("click",(function(){return i.vc(t),i.ec(2).disconnectSocialAccount("envato")})),i.Hc(4,"Disable"),i.Sb(),i.Qb()}if(2&t){const t=e.ngIf;i.Bb(2),i.Ic(t)}}function wn(t,e){if(1&t){const t=i.Ub();i.Tb(0,"button",12),i.ac("click",(function(){return i.vc(t),i.ec(2).connectSocialAccount("envato")})),i.Hc(1,"Enable"),i.Sb()}}function Cn(t,e){if(1&t&&(i.Tb(0,"div",4),i.Tb(1,"div",5),i.Ob(2,"mat-icon",6),i.Sb(),i.Tb(3,"div",7),i.Hc(4,"Envato Account"),i.Sb(),i.Fc(5,yn,5,1,"ng-container",8),i.Fc(6,wn,2,0,"ng-template",null,9,i.Gc),i.Sb()),2&t){const t=i.sc(7),e=i.ec();i.Bb(5),i.kc("ngIf",e.getSocialAccountUsername("envato"))("ngIfElse",t)}}function xn(t,e){if(1&t){const t=i.Ub();i.Rb(0),i.Tb(1,"span",10),i.Hc(2),i.Sb(),i.Tb(3,"button",11),i.ac("click",(function(){return i.vc(t),i.ec(2).disconnectSocialAccount("google")})),i.Hc(4,"Disable"),i.Sb(),i.Qb()}if(2&t){const t=e.ngIf;i.Bb(2),i.Ic(t)}}function kn(t,e){if(1&t){const t=i.Ub();i.Tb(0,"button",12),i.ac("click",(function(){return i.vc(t),i.ec(2).connectSocialAccount("google")})),i.Hc(1,"Enable"),i.Sb()}}function On(t,e){if(1&t&&(i.Tb(0,"div",13),i.Tb(1,"div",14),i.Ob(2,"mat-icon",15),i.Sb(),i.Tb(3,"div",7),i.Hc(4,"Google+ Account"),i.Sb(),i.Fc(5,xn,5,1,"ng-container",8),i.Fc(6,kn,2,0,"ng-template",null,16,i.Gc),i.Sb()),2&t){const t=i.sc(7),e=i.ec();i.Bb(5),i.kc("ngIf",e.getSocialAccountUsername("google"))("ngIfElse",t)}}function Sn(t,e){if(1&t){const t=i.Ub();i.Rb(0),i.Tb(1,"span",10),i.Hc(2),i.Sb(),i.Tb(3,"button",11),i.ac("click",(function(){return i.vc(t),i.ec(2).disconnectSocialAccount("facebook")})),i.Hc(4,"Disable"),i.Sb(),i.Qb()}if(2&t){const t=e.ngIf;i.Bb(2),i.Ic(t)}}function En(t,e){if(1&t){const t=i.Ub();i.Tb(0,"button",12),i.ac("click",(function(){return i.vc(t),i.ec(2).connectSocialAccount("facebook")})),i.Hc(1,"Enable"),i.Sb()}}function Tn(t,e){if(1&t&&(i.Tb(0,"div",17),i.Tb(1,"div",18),i.Ob(2,"mat-icon",19),i.Sb(),i.Tb(3,"div",7),i.Hc(4,"Facebook Account"),i.Sb(),i.Fc(5,Sn,5,1,"ng-container",8),i.Fc(6,En,2,0,"ng-template",null,20,i.Gc),i.Sb()),2&t){const t=i.sc(7),e=i.ec();i.Bb(5),i.kc("ngIf",e.getSocialAccountUsername("facebook"))("ngIfElse",t)}}function An(t,e){if(1&t){const t=i.Ub();i.Rb(0),i.Tb(1,"span",10),i.Hc(2),i.Sb(),i.Tb(3,"button",11),i.ac("click",(function(){return i.vc(t),i.ec(2).disconnectSocialAccount("twitter")})),i.Hc(4,"Disable"),i.Sb(),i.Qb()}if(2&t){const t=e.ngIf;i.Bb(2),i.Ic(t)}}function In(t,e){if(1&t){const t=i.Ub();i.Tb(0,"button",12),i.ac("click",(function(){return i.vc(t),i.ec(2).connectSocialAccount("twitter")})),i.Hc(1,"Enable"),i.Sb()}}function Dn(t,e){if(1&t&&(i.Tb(0,"div",21),i.Tb(1,"div",22),i.Ob(2,"mat-icon",23),i.Sb(),i.Tb(3,"div",7),i.Hc(4,"Twitter Account"),i.Sb(),i.Fc(5,An,5,1,"ng-container",8),i.Fc(6,In,2,0,"ng-template",null,24,i.Gc),i.Sb()),2&t){const t=i.sc(7),e=i.ec();i.Bb(5),i.kc("ngIf",e.getSocialAccountUsername("twitter"))("ngIfElse",t)}}let Pn=(()=>{class t{constructor(t,e,n,i){this.social=t,this.toast=e,this.settings=n,this.cd=i}connectSocialAccount(t){this.social.connect(t).then(e=>{this.user.social_profiles=e.social_profiles,this.toast.open("Connected: "+t),this.cd.markForCheck()})}disconnectSocialAccount(t){this.social.disconnect(t).subscribe(()=>{this.toast.open("Disconnected: "+t);const e=this.user.social_profiles.findIndex(e=>e.service_name===t);this.user.social_profiles.splice(e,1),this.cd.markForCheck()})}getSocialAccountUsername(t){if(!this.user.social_profiles)return;const e=this.user.social_profiles.find(e=>e.service_name===t);return e&&e.username}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(he),i.Nb(Ct.b),i.Nb(W.a),i.Nb(i.h))},t.\u0275cmp=i.Hb({type:t,selectors:[["connect-social-accounts-panel"]],inputs:{user:"user"},decls:4,vars:4,consts:[["class","social-login-row envato-row",4,"ngIf"],["class","social-login-row google-row",4,"ngIf"],["class","social-login-row facebook-row",4,"ngIf"],["class","social-login-row twitter-row last",4,"ngIf"],[1,"social-login-row","envato-row"],[1,"icon-container","envato"],["svgIcon","envato-custom"],["trans","",1,"name"],[4,"ngIf","ngIfElse"],["envatoBlock",""],[1,"social-account-username"],["mat-raised-button","","color","accent","trans","",1,"button","primary","disable-button",3,"click"],["mat-raised-button","","color","accent","trans","",1,"button","primary","enable-button",3,"click"],[1,"social-login-row","google-row"],[1,"icon-container","google"],["svgIcon","google"],["googleBlock",""],[1,"social-login-row","facebook-row"],[1,"icon-container","facebook"],["svgIcon","facebook"],["facebookBlock",""],[1,"social-login-row","twitter-row","last"],[1,"icon-container","twitter"],["svgIcon","twitter"],["twitterBlock",""]],template:function(t,e){1&t&&(i.Fc(0,Cn,8,2,"div",0),i.Fc(1,On,8,2,"div",1),i.Fc(2,Tn,8,2,"div",2),i.Fc(3,Dn,8,2,"div",3)),2&t&&(i.kc("ngIf",e.settings.get("social.envato.enable")),i.Bb(1),i.kc("ngIf",e.settings.get("social.google.enable")),i.Bb(1),i.kc("ngIf",e.settings.get("social.facebook.enable")),i.Bb(1),i.kc("ngIf",e.settings.get("social.twitter.enable")))},directives:[Q.t,Qt.a,J.a,Z.b],styles:["[_nghost-%COMP%]{display:block}.social-login-row[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:15px;padding-bottom:15px;border-bottom:1px solid var(--be-divider-default)}.social-login-row.last[_ngcontent-%COMP%]{border-bottom:none;margin-bottom:0}.social-login-row[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{display:inline-block;margin-left:15px;flex:1 1 auto}.social-login-row[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]{margin-left:auto}.social-login-row[_ngcontent-%COMP%]   .button.disable-button[_ngcontent-%COMP%]{background-color:#f44336;border-color:#f44336}.social-account-username[_ngcontent-%COMP%]{margin-left:auto;margin-right:10px;color:var(--be-link);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.icon-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;border-radius:3px}.icon-container.facebook[_ngcontent-%COMP%]{color:#3b5998;background-color:#3b5998}.icon-container.facebook[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{background-color:#fff}.icon-container.twitter[_ngcontent-%COMP%]{background-color:#1da1f2;color:#fff}.icon-container.google[_ngcontent-%COMP%]{background-color:#d34836;color:#fff}.icon-container.envato[_ngcontent-%COMP%]{background-color:#82b541;color:#fff}"],changeDetection:0}),t})();const jn=["extraPanelRef"];function Fn(t,e){if(1&t&&i.Ob(0,"material-navbar",2),2&t){const t=i.ec();i.kc("menuPosition",t.settings.get("vebto.navbar.defaultPosition"))}}function Mn(t,e){if(1&t&&(i.Rb(0),i.Tb(1,"button",46),i.Ob(2,"mat-icon",47),i.Sb(),i.Tb(3,"mat-menu",null,48),i.Ob(5,"logged-in-user-menu"),i.Sb(),i.Qb()),2&t){const t=i.sc(4);i.Bb(1),i.kc("matMenuTriggerFor",t)}}function Rn(t,e){}function Nn(t,e){if(1&t&&(i.Tb(0,"div",49),i.Hc(1),i.Sb()),2&t){const t=i.ec().ngIf;i.Bb(1),i.Ic(t.first_name)}}function Ln(t,e){if(1&t&&(i.Tb(0,"div",50),i.Hc(1),i.Sb()),2&t){const t=i.ec().ngIf;i.Bb(1),i.Ic(t.last_name)}}function Bn(t,e){if(1&t&&(i.Tb(0,"div",51),i.Tb(1,"div",10),i.Hc(2,"Manage Social Login"),i.Sb(),i.Tb(3,"div",11),i.Tb(4,"div",23),i.Hc(5,"Enable or disable connected social services"),i.Sb(),i.Ob(6,"connect-social-accounts-panel",52),i.fc(7,"async"),i.Sb(),i.Sb()),2&t){const t=i.ec(2);i.Bb(6),i.kc("user",i.gc(7,1,t.initialUser$))}}function Hn(t,e){if(1&t&&(i.Tb(0,"div",65),i.Hc(1),i.Sb()),2&t){const t=i.ec(2).ngIf;i.Bb(1),i.Ic(t.current_password)}}function Vn(t,e){if(1&t&&(i.Tb(0,"div",12),i.Tb(1,"label",62),i.Hc(2,"Current Password"),i.Sb(),i.Ob(3,"input",63),i.Fc(4,Hn,2,1,"div",64),i.Sb()),2&t){const t=i.ec().ngIf;i.Bb(4),i.kc("ngIf",t.current_password)}}function zn(t,e){if(1&t&&(i.Tb(0,"div",66),i.Hc(1),i.Sb()),2&t){const t=i.ec().ngIf;i.Bb(1),i.Ic(t.new_password)}}function Un(t,e){if(1&t&&(i.Tb(0,"div",67),i.Hc(1),i.Sb()),2&t){const t=i.ec().ngIf;i.Bb(1),i.Ic(t.new_password_confirmation)}}function $n(t,e){if(1&t&&(i.Tb(0,"div",68),i.Tb(1,"label",69),i.Hc(2,"Api Token"),i.Sb(),i.Ob(3,"input",70),i.fc(4,"async"),i.Sb()),2&t){const t=i.ec(3);i.Bb(3),i.kc("value",i.gc(4,1,t.initialUser$).api_token)}}function Xn(t,e){if(1&t){const t=i.Ub();i.Tb(0,"form",53),i.ac("ngSubmit",(function(){return i.vc(t),i.ec(2).changeUserPassword()})),i.Tb(1,"div",10),i.Hc(2,"Update Password"),i.Sb(),i.Tb(3,"div",11),i.Fc(4,Vn,5,1,"div",54),i.Tb(5,"div",12),i.Tb(6,"label",55),i.Hc(7,"New Password"),i.Sb(),i.Ob(8,"input",56),i.Fc(9,zn,2,1,"div",57),i.Sb(),i.Tb(10,"div",12),i.Tb(11,"label",58),i.Hc(12,"Confirm Password"),i.Sb(),i.Ob(13,"input",59),i.Fc(14,Un,2,1,"div",60),i.Sb(),i.Fc(15,$n,5,3,"div",61),i.Sb(),i.Tb(16,"div",26),i.Tb(17,"button",27),i.fc(18,"async"),i.Hc(19,"Update"),i.Sb(),i.Sb(),i.Sb()}if(2&t){const t=e.ngIf,n=i.ec(2);i.kc("formGroup",n.passwordForm),i.Bb(4),i.kc("ngIf",n.currentUser.get("has_password")),i.Bb(5),i.kc("ngIf",t.new_password),i.Bb(5),i.kc("ngIf",t.new_password_confirmation),i.Bb(1),i.kc("ngIf",n.apiEnabled()),i.Bb(2),i.kc("disabled",i.gc(18,6,n.loading$))}}function qn(t,e){if(1&t&&(i.Tb(0,"option",71),i.Hc(1),i.Sb()),2&t){const t=e.$implicit;i.kc("value",t.language),i.Bb(1),i.Ic(t.name)}}function Wn(t,e){if(1&t&&(i.Tb(0,"div",72),i.Hc(1),i.Sb()),2&t){const t=i.ec().ngIf;i.Bb(1),i.Ic(t.language)}}function Gn(t,e){if(1&t&&(i.Tb(0,"option",71),i.Hc(1),i.Sb()),2&t){const t=e.$implicit;i.lc("value",t.code),i.Bb(1),i.Ic(t.name)}}function Kn(t,e){if(1&t&&(i.Tb(0,"div",73),i.Hc(1),i.Sb()),2&t){const t=i.ec().ngIf;i.Bb(1),i.Ic(t.country)}}function Yn(t,e){if(1&t&&(i.Tb(0,"option",71),i.Hc(1),i.Sb()),2&t){const t=e.$implicit;i.kc("value",t.value),i.Bb(1),i.Ic(t.text)}}function Jn(t,e){if(1&t&&(i.Tb(0,"optgroup",74),i.Fc(1,Yn,2,2,"option",33),i.Sb()),2&t){const t=e.$implicit;i.kc("label",t.key),i.Bb(1),i.kc("ngForOf",t.value)}}function Qn(t,e){if(1&t&&(i.Tb(0,"div",75),i.Hc(1),i.Sb()),2&t){const t=i.ec().ngIf;i.Bb(1),i.Ic(t.timezone)}}function Zn(t,e){if(1&t){const t=i.Ub();i.Tb(0,"div",3),i.Tb(1,"h1",4),i.Tb(2,"span",5),i.Hc(3,"Account Settings"),i.Sb(),i.Fc(4,Mn,6,1,"ng-container",6),i.fc(5,"async"),i.Sb(),i.Tb(6,"div",7),i.Fc(7,Rn,0,0,"ng-template",null,8,i.Gc),i.Tb(9,"form",9),i.ac("ngSubmit",(function(){return i.vc(t),i.ec().updateAccountSettings()})),i.Tb(10,"div",10),i.Hc(11,"Update Name or Profile Image"),i.Sb(),i.Tb(12,"div",11),i.Tb(13,"div",12),i.Tb(14,"label",13),i.Hc(15,"First Name"),i.Sb(),i.Ob(16,"input",14),i.Fc(17,Nn,2,1,"div",15),i.Sb(),i.Tb(18,"div",12),i.Tb(19,"label",16),i.Hc(20,"Last Name"),i.Sb(),i.Ob(21,"input",17),i.Fc(22,Ln,2,1,"div",18),i.Sb(),i.Tb(23,"div",19),i.Tb(24,"label",16),i.Hc(25,"Profile image"),i.Sb(),i.Tb(26,"div",20),i.Ob(27,"img",21),i.fc(28,"async"),i.Tb(29,"div",22),i.Tb(30,"div",23),i.Hc(31,"For best results, upload a high resolution image."),i.Sb(),i.Tb(32,"button",24),i.ac("click",(function(){return i.vc(t),i.ec().openAvatarUploadDialog()})),i.Hc(33,"Upload Image"),i.Sb(),i.Tb(34,"button",25),i.ac("click",(function(){return i.vc(t),i.ec().deleteAvatar()})),i.Hc(35,"Remove Image"),i.Sb(),i.Sb(),i.Sb(),i.Sb(),i.Sb(),i.Tb(36,"div",26),i.Tb(37,"button",27),i.fc(38,"async"),i.Hc(39,"Save Changes"),i.Sb(),i.Sb(),i.Sb(),i.Fc(40,Bn,8,3,"div",28),i.Fc(41,Xn,20,8,"form",29),i.fc(42,"async"),i.Tb(43,"form",30),i.ac("ngSubmit",(function(){return i.vc(t),i.ec().updateAccountSettings()})),i.Tb(44,"div",10),i.Hc(45,"Update Account Preferences"),i.Sb(),i.Tb(46,"div",11),i.Tb(47,"div",12),i.Tb(48,"label",31),i.Hc(49,"Language"),i.Sb(),i.Tb(50,"select",32),i.ac("ngModelChange",(function(e){return i.vc(t),i.ec().changeLanguage(e)})),i.Fc(51,qn,2,2,"option",33),i.Sb(),i.Fc(52,Wn,2,1,"div",34),i.Sb(),i.Tb(53,"div",12),i.Tb(54,"label",35),i.Hc(55,"Country"),i.Sb(),i.Tb(56,"select",36),i.Fc(57,Gn,2,2,"option",33),i.Sb(),i.Fc(58,Kn,2,1,"div",37),i.Sb(),i.Tb(59,"div",12),i.Tb(60,"label",38),i.Hc(61,"Timezone"),i.Sb(),i.Tb(62,"select",39),i.Fc(63,Jn,2,2,"optgroup",40),i.fc(64,"keyvalue"),i.Sb(),i.Fc(65,Qn,2,1,"div",41),i.Sb(),i.Sb(),i.Tb(66,"div",26),i.Tb(67,"button",27),i.fc(68,"async"),i.Hc(69,"Save Changes"),i.Sb(),i.Sb(),i.Sb(),i.Sb(),i.Tb(70,"div",42),i.Tb(71,"button",43),i.ac("click",(function(){return i.vc(t),i.ec().auth.logOut()})),i.Ob(72,"mat-icon",44),i.Tb(73,"span",45),i.Hc(74,"Logout"),i.Sb(),i.Sb(),i.Sb(),i.Sb()}if(2&t){const t=e.ngIf,n=i.ec();i.Bb(4),i.kc("ngIf",i.gc(5,16,n.breakpoints.isMobile$)),i.Bb(5),i.kc("formGroup",n.userForm),i.Bb(8),i.kc("ngIf",t.first_name),i.Bb(5),i.kc("ngIf",t.last_name),i.Bb(5),i.kc("src",i.gc(28,18,n.avatar$),i.xc),i.Bb(10),i.kc("disabled",i.gc(38,20,n.loading$)),i.Bb(3),i.kc("ngIf",n.settings.anySocialLoginEnabled()),i.Bb(1),i.kc("ngIf",i.gc(42,22,n.passwordErrors$)),i.Bb(2),i.kc("formGroup",n.userForm),i.Bb(8),i.kc("ngForOf",n.selects.localizations),i.Bb(1),i.kc("ngIf",t.language),i.Bb(5),i.kc("ngForOf",n.selects.countries),i.Bb(1),i.kc("ngIf",t.country),i.Bb(5),i.kc("ngForOf",i.gc(64,24,n.selects.timezones)),i.Bb(2),i.kc("ngIf",t.timezone),i.Bb(2),i.kc("disabled",i.gc(68,26,n.loading$))}}let ti=(()=>{class t{constructor(t,e,n,i,r,s,o,a,c,l,u,h,d,p,m){this.settings=t,this.route=e,this.users=n,this.currentUser=i,this.toast=r,this.uploads=s,this.i18n=o,this.localizations=a,this.auth=c,this.avatarValidator=l,this.fb=u,this.componentFactoryResolver=h,this.breakpoints=d,this.cd=p,this.extraPanels=m,this.loading$=new ut.a(!1),this.avatar$=new ut.a(null),this.initialUser$=new ut.a(null),this.userErrors$=new ut.a({}),this.passwordErrors$=new ut.a({}),this.userForm=this.fb.group({first_name:[""],last_name:[""],language:[""],timezone:[""],country:[""]}),this.passwordForm=this.fb.group({current_password:[""],new_password:[""],new_password_confirmation:[""]}),this.selects={timezones:{},countries:[],localizations:[]}}ngOnInit(){this.route.data.subscribe(t=>{this.initialUser$.next(t.api.user),this.userForm.patchValue(t.api.user),this.avatar$.next(t.api.user.avatar),this.selects=t.api.selects})}ngAfterViewInit(){this.loadExtraPanels()}updateAccountSettings(){this.loading$.next(!0),this.users.update(this.currentUser.get("id"),this.userForm.value).pipe(Object(wt.a)(()=>this.loading$.next(!1))).subscribe(()=>{this.toast.open("Account settings updated"),this.userErrors$.next({})},t=>this.userErrors$.next(t.errors))}openAvatarUploadDialog(){this.loading$.next(!0),Object(hn.a)({types:[dn.a.image]}).then(t=>{this.avatarValidator.validateWithToast(t[0]).failed||this.users.uploadAvatar(this.currentUser.get("id"),t).pipe(Object(wt.a)(()=>this.loading$.next(!1))).subscribe(t=>{this.userForm.patchValue({avatar:t.user.avatar}),this.currentUser.set("avatar",t.user.avatar),this.avatar$.next(t.user.avatar),this.toast.open("Avatar updated")},t=>{const e=Object.keys(t.errors)[0];this.toast.open(t.errors[e])})})}deleteAvatar(){this.loading$.next(!0),this.users.deleteAvatar(this.currentUser.get("id")).pipe(Object(wt.a)(()=>this.loading$.next(!1))).subscribe(t=>{this.userForm.patchValue({avatar:t.avatar}),this.currentUser.set("avatar",t.avatar),this.avatar$.next(t.avatar),this.toast.open("Avatar removed")})}changeUserPassword(){this.loading$.next(!0),this.users.changePassword(this.currentUser.get("id"),this.passwordForm.value).pipe(Object(wt.a)(()=>this.loading$.next(!1))).subscribe(()=>{this.toast.open("Password updated"),this.passwordErrors$.next({}),this.passwordForm.reset(),this.currentUser.set("has_password",!0)},t=>this.passwordErrors$.next(t.errors))}changeLanguage(t){this.loading$.next(!0),this.localizations.get(t).pipe(Object(wt.a)(()=>this.loading$.next(!1))).subscribe(t=>{this.i18n.setLocalization(t.localization)})}loadExtraPanels(){this.extraPanels&&this.extraPanels.length&&this.extraPanels.forEach(t=>{const e=this.componentFactoryResolver.resolveComponentFactory(t.component);this.extraPanelRef.clear(),this.extraPanelRef.createComponent(e).instance.user=this.initialUser$.value,this.cd.detectChanges()})}apiEnabled(){return this.settings.get("api.integrated")&&this.currentUser.hasPermission("api.access")}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(W.a),i.Nb(s.a),i.Nb(cn.a),i.Nb(gt.a),i.Nb(Ct.b),i.Nb(mn.a),i.Nb(dt.a),i.Nb(fn.a),i.Nb(_t.a),i.Nb(bn.a),i.Nb(yt.h),i.Nb(i.j),i.Nb(gn.a),i.Nb(i.h),i.Nb(pn,8))},t.\u0275cmp=i.Hb({type:t,selectors:[["account-settings"]],viewQuery:function(t,e){var n;1&t&&i.Nc(jn,!0,i.R),2&t&&i.rc(n=i.bc())&&(e.extraPanelRef=n.first)},decls:3,vars:4,consts:[[3,"menuPosition",4,"ngIf"],["class","content container",4,"ngIf"],[3,"menuPosition"],[1,"content","container"],[1,"header"],["trans","",1,"header-text"],[4,"ngIf"],[1,"panels"],["extraPanelRef",""],["ngNativeValidate","",1,"panel","account-settings-panel",3,"formGroup","ngSubmit"],["trans","",1,"panel-header"],[1,"panel-body"],[1,"input-container","input-inline"],["for","first_name","trans",""],["type","text","id","first_name","name","first_name","formControlName","first_name"],["class","error first-name-error",4,"ngIf"],["for","last_name","trans",""],["type","text","id","last_name","name","last_name","formControlName","last_name"],["class","error last-name-error",4,"ngIf"],[1,"input-container","input-inline","avatar-input-container"],[1,"avatar-input"],["alt","User avatar",3,"src"],[1,"avatar-actions-container"],["trans","",1,"info"],["type","button","mat-flat-button","","color","accent","trans","",1,"button","flat","avatar-upload-button",3,"click"],["type","button","mat-stroked-button","","color","warn","trans","",1,"avatar-remove-button",3,"click"],[1,"panel-footer"],["type","submit","mat-raised-button","","color","accent","trans","",3,"disabled"],["class","panel account-settings-panel social-login-panel",4,"ngIf"],["class","panel account-settings-panel change-password-panel","ngNativeValidate","",3,"formGroup","ngSubmit",4,"ngIf"],["ngNativeValidate","",1,"panel","account-settings-panel","preferences-panel",3,"formGroup","ngSubmit"],["for","language","trans",""],["name","language","id","language","formControlName","language",3,"ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["class","error language-error",4,"ngIf"],["for","country","trans",""],["name","country","id","country","formControlName","country"],["class","error country-error",4,"ngIf"],["for","timezone","trans",""],["name","timezone","id","timezone","formControlName","timezone"],[3,"label",4,"ngFor","ngForOf"],["class","error timezone-error",4,"ngIf"],[1,"logout-button-container"],["mat-raised-button","","color","warn","type","button",1,"logout-button",3,"click"],["svgIcon","exit-to-app"],["trans",""],["mat-icon-button","",1,"mobile-toggle-button",3,"matMenuTriggerFor"],["svgIcon","settings"],["navSidebarMenu","matMenu"],[1,"error","first-name-error"],[1,"error","last-name-error"],[1,"panel","account-settings-panel","social-login-panel"],[3,"user"],["ngNativeValidate","",1,"panel","account-settings-panel","change-password-panel",3,"formGroup","ngSubmit"],["class","input-container input-inline",4,"ngIf"],["for","new_password","trans",""],["type","password","id","new_password","name","new_password","formControlName","new_password","required",""],["class","error new-password-error",4,"ngIf"],["for","new_password_confirmation","trans",""],["type","password","id","new_password_confirmation","name","new_password_confirmation","formControlName","new_password_confirmation","required",""],["class","error new-password-confirmation-error",4,"ngIf"],["class","input-container input-inline api-input-container",4,"ngIf"],["for","current_password","trans",""],["type","password","id","current_password","name","current_password","formControlName","current_password","required",""],["class","error current-password-error",4,"ngIf"],[1,"error","current-password-error"],[1,"error","new-password-error"],[1,"error","new-password-confirmation-error"],[1,"input-container","input-inline","api-input-container"],["for","api_token","trans",""],["type","text","id","api_token","name","api_token","readonly","",3,"value"],[3,"value"],[1,"error","language-error"],[1,"error","country-error"],[3,"label"],[1,"error","timezone-error"]],template:function(t,e){1&t&&(i.Fc(0,Fn,1,1,"material-navbar",0),i.Fc(1,Zn,75,28,"div",1),i.fc(2,"async")),2&t&&(i.kc("ngIf",!e.settings.get("vebto.accountSettings.hideNavbar")),i.Bb(1),i.kc("ngIf",i.gc(2,2,e.userErrors$)))},directives:[Q.t,Ot.a,J.a,yt.v,yt.m,yt.d,yt.u,yt.k,Z.b,yt.G,Q.s,Qt.a,_n.c,_n.d,vn.a,Pn,yt.F,yt.z,yt.J],pipes:[Q.b,Q.l],styles:["[_nghost-%COMP%]{display:block;min-height:100vh;flex:1 1 auto}.content[_ngcontent-%COMP%]{margin:0 auto}.header[_ngcontent-%COMP%]{font-size:3.5rem;margin:25px 0;font-weight:300;display:flex;align-items:center}.header-text[_ngcontent-%COMP%]{white-space:nowrap;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis}.mobile-toggle-button[_ngcontent-%COMP%]{flex-shrink:0;margin-left:30px}.panels[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:-15px}  .account-settings-panel{box-shadow:none;border:1px solid var(--be-divider-default);border-radius:4px;width:calc(50% - 30px);margin:15px;padding:15px;background-color:var(--be-background)}  .account-settings-panel .panel-header{background-color:transparent;font-size:1.8rem;font-weight:300;padding:0 0 10px;border-bottom:1px solid var(--be-divider-default)}  .account-settings-panel .panel-body{padding:25px 0 0;min-height:314px}  .account-settings-panel .panel-footer{padding:10px 0 0;margin-top:35px;border-top:1px solid var(--be-divider-default);text-align:right}.input-inline[_ngcontent-%COMP%]{display:flex;margin-bottom:26px;align-items:center;position:relative}.input-inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{flex:0 0 30%;min-width:200px;line-height:42px;vertical-align:middle}.input-inline[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .input-inline[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{flex:1 1 auto;height:48px;border-radius:3px;border-color:var(--be-divider-default);background-color:var(--be-background)}.input-inline[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{text-transform:capitalize}.input-inline[_ngcontent-%COMP%]   .error[_ngcontent-%COMP%]{color:#f44336;font-size:1.3rem;position:absolute;bottom:-20px;right:0}.avatar-input[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.avatar-input[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{flex:0 0 90px;width:90px;height:90px;-o-object-fit:cover;object-fit:cover;margin-right:15px}.avatar-input[_ngcontent-%COMP%]   .avatar-actions-container[_ngcontent-%COMP%]{flex:1 1 auto;max-width:130px}.avatar-input[_ngcontent-%COMP%]   .avatar-actions-container[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]{padding-top:5px;color:var(--be-secondary-text);font-size:1.2rem;margin-bottom:10px}.avatar-input[_ngcontent-%COMP%]   .avatar-actions-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{display:block;margin-bottom:10px}.social-login-panel[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]{margin-bottom:35px}.logout-button-container[_ngcontent-%COMP%]{padding:20px 0 15px;display:none}.logout-button-container[_ngcontent-%COMP%]   .logout-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle}.api-input-container[_ngcontent-%COMP%]{border-top:1px solid var(--be-divider-lighter);padding-top:25px;margin-top:20px}@media only screen and (max-width:1024px){.panel[_ngcontent-%COMP%]   .input-inline[_ngcontent-%COMP%]{display:block}.panel[_ngcontent-%COMP%]   .input-inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{line-height:normal}}@media only screen and (max-width:768px){.logout-button-container[_ngcontent-%COMP%], .panels[_ngcontent-%COMP%]{display:block}.panels[_ngcontent-%COMP%]   .panel[_ngcontent-%COMP%]{width:auto}.panels[_ngcontent-%COMP%]   .input-inline[_ngcontent-%COMP%]{display:block}.panels[_ngcontent-%COMP%]   .input-inline[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .panels[_ngcontent-%COMP%]   .input-inline[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{width:100%}}@media only screen and (max-width:375px){.social-account-username[_ngcontent-%COMP%]{display:none}}"],changeDetection:0}),t})();var ei=n("vhtE");const ni=[{path:"account/settings",component:ti,resolve:{api:un},canActivate:[Vt.a,ei.a],data:{name:"account-settings"}}];let ii=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)},imports:[[s.h.forChild(ni)],s.h]}),t})();var ri=n("gFpt");let si=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)},providers:[un],imports:[[Q.c,yt.o,yt.E,ri.a,ii,tn.a,Z.c,Qt.b,_n.b],ii]}),t})();var oi=n("PCNd"),ai=n("vvyD"),ci=n("zP0r"),li=n("Kj3r"),ui=n("/uUt"),hi=n("re4b");let di=(()=>{class t{constructor(t){this.http=t}index(e={}){return this.http.get(""+t.BASE_URI,e)}create(e){return this.http.post(t.BASE_URI,e)}update(e,n){return this.http.put(`${t.BASE_URI}/${e}`,n)}delete(e){return this.http.delete(`${t.BASE_URI}/${e}`)}validate(e){return this.http.post(t.BASE_URI+"/validate/2BrM45vvfS/api",{host:e})}authorizeCrupdate(e){return this.http.post(t.BASE_URI+"/authorize/store",e)}}return t.BASE_URI="custom-domain",t.\u0275fac=function(e){return new(e||t)(i.Xb(G.a))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var pi=n("1jcm"),mi=n("FBzJ");function fi(t,e){if(1&t&&(i.Tb(0,"div",23),i.Hc(1),i.Sb()),2&t){const t=i.ec(3).ngIf;i.Bb(1),i.Ic(t.host)}}function bi(t,e){1&t&&(i.Tb(0,"div",24),i.Tb(1,"mat-slide-toggle",25),i.Hc(2,"Global"),i.Sb(),i.Tb(3,"p",20),i.Hc(4,"Whether all users should be able to select this domain."),i.Sb(),i.Sb())}function gi(t,e){if(1&t&&(i.Tb(0,"div",16),i.Tb(1,"div",17),i.Tb(2,"label",18),i.Hc(3,"Host"),i.Sb(),i.Ob(4,"input",19),i.Tb(5,"p",20),i.Hc(6),i.Sb(),i.Fc(7,fi,2,1,"div",21),i.Sb(),i.Fc(8,bi,5,0,"div",22),i.Sb()),2&t){const t=i.ec(2).ngIf,e=i.ec();i.Bb(6),i.Jc("Enter the exact domain name you want your ",e.data.resourceName||"links"," to be accessible with. It can be a subdomain (example.yourdomain.com) or root domain (yourdomain.com)."),i.Bb(1),i.kc("ngIf",t.host),i.Bb(1),i.kc("ngIf",e.insideAdmin())}}function _i(t,e){if(1&t&&(i.Rb(0),i.Tb(1,"p",20),i.Hc(2,"Add this CNAME record to your domain by visiting your DNS provider or registrar."),i.Sb(),i.Tb(3,"div",27),i.Tb(4,"div",28),i.Tb(5,"strong"),i.Hc(6,"CNAME"),i.Sb(),i.Hc(7),i.Sb(),i.Sb(),i.Qb()),2&t){const t=i.ec(4);i.Bb(7),i.Jc(" ",t.baseUrl(),"")}}function vi(t,e){if(1&t&&(i.Rb(0),i.Tb(1,"p",20),i.Hc(2,"Add this A record to your domain by visiting your DNS provider or registrar."),i.Sb(),i.Tb(3,"div",27),i.Tb(4,"div",28),i.Tb(5,"strong"),i.Hc(6,"A"),i.Sb(),i.Hc(7),i.Sb(),i.Sb(),i.Qb()),2&t){const t=i.ec(4);i.Bb(7),i.Jc(" ",t.serverIp,"")}}function yi(t,e){if(1&t&&(i.Tb(0,"div",26),i.Fc(1,_i,8,1,"ng-container",6),i.Fc(2,vi,8,1,"ng-container",6),i.Sb()),2&t){const t=i.ec(3);i.Bb(1),i.kc("ngIf",t.isSubdomain()),i.Bb(1),i.kc("ngIf",!t.isSubdomain())}}function wi(t,e){1&t&&(i.Tb(0,"div",27),i.Ob(1,"loading-indicator",32),i.Tb(2,"div",33),i.Hc(3,"Checking DNS configuration..."),i.Sb(),i.Sb()),2&t&&(i.Bb(1),i.kc("isVisible",!0))}function Ci(t,e){if(1&t){const t=i.Ub();i.Tb(0,"div",34),i.Ob(1,"mat-icon",35),i.Tb(2,"div",33),i.Hc(3),i.Sb(),i.Sb(),i.Tb(4,"p"),i.Hc(5),i.fc(6,"trans"),i.Tb(7,"button",36),i.ac("click",(function(){return i.vc(t),i.ec(4).validateCname()})),i.fc(8,"async"),i.Hc(9,"refresh"),i.Sb(),i.Sb()}if(2&t){const t=i.ec(4);i.Bb(3),i.Kc("The domain is missing ",t.isSubdomain()?"CNAME":"A"," record pointing to ",t.baseUrl()," or the changes haven't propagated yet."),i.Bb(2),i.Jc("",i.gc(6,4,"You can wait and try again later or")," "),i.Bb(2),i.kc("disabled",i.gc(8,6,t.loading$))}}function xi(t,e){if(1&t&&(i.Tb(0,"div",29),i.Fc(1,wi,4,1,"div",30),i.fc(2,"async"),i.Fc(3,Ci,10,8,"ng-template",null,31,i.Gc),i.Sb()),2&t){const t=i.sc(4),e=i.ec(3);i.Bb(1),i.kc("ngIf",i.gc(2,2,e.loading$))("ngIfElse",t)}}function ki(t,e){1&t&&(i.Tb(0,"div",37),i.Tb(1,"div",27),i.Ob(2,"loading-indicator",32),i.Tb(3,"div",33),i.Hc(4,"Connecting domain..."),i.Sb(),i.Sb(),i.Tb(5,"p",20),i.Hc(6,"Don't close this window until domain is connected."),i.Sb(),i.Sb()),2&t&&(i.Bb(2),i.kc("isVisible",!0))}function Oi(t,e){if(1&t){const t=i.Ub();i.Tb(0,"button",38),i.ac("click",(function(){return i.vc(t),i.ec(3).previousStep()})),i.Ob(1,"mat-icon",39),i.Hc(2," Previous "),i.Sb()}}function Si(t,e){if(1&t){const t=i.Ub();i.Rb(0),i.Tb(1,"mat-dialog-content"),i.Fc(2,gi,9,3,"div",7),i.Fc(3,yi,3,2,"div",8),i.Fc(4,xi,5,4,"div",9),i.Fc(5,ki,7,1,"div",10),i.Sb(),i.Tb(6,"mat-dialog-actions"),i.Tb(7,"button",11),i.ac("click",(function(){return i.vc(t),i.ec(2).close()})),i.Hc(8,"Cancel"),i.Sb(),i.Tb(9,"div",12),i.Fc(10,Oi,3,0,"button",13),i.Tb(11,"button",14),i.fc(12,"async"),i.fc(13,"async"),i.Hc(14," Next "),i.Ob(15,"mat-icon",15),i.Sb(),i.Sb(),i.Sb(),i.Qb()}if(2&t){const t=e.ngIf,n=i.ec(2);i.Bb(2),i.kc("ngIf",t===n.Steps.Host),i.Bb(1),i.kc("ngIf",t===n.Steps.Info),i.Bb(1),i.kc("ngIf",t===n.Steps.Validate),i.Bb(1),i.kc("ngIf",t===n.Steps.Finalize),i.Bb(5),i.kc("ngIf",t>1),i.Bb(1),i.kc("disabled",i.gc(12,6,n.loading$)||i.gc(13,8,n.disabled$))}}function Ei(t,e){if(1&t){const t=i.Ub();i.Tb(0,"form",5),i.ac("ngSubmit",(function(){return i.vc(t),i.ec().nextStep()})),i.Fc(1,Si,16,10,"ng-container",6),i.fc(2,"async"),i.Sb()}if(2&t){const t=i.ec();i.kc("formGroup",t.form),i.Bb(1),i.kc("ngIf",i.gc(2,2,t.currentStep$))}}var Ti=function(t){return t[t.Host=1]="Host",t[t.Info=2]="Info",t[t.Validate=3]="Validate",t[t.Finalize=4]="Finalize",t}({});let Ai=(()=>{class t{constructor(t,e,n,i,r,s){this.dialogRef=t,this.data=e,this.customDomains=n,this.toast=i,this.settings=r,this.router=s,this.Steps=Ti,this.currentStep$=new ut.a(1),this.loading$=new ut.a(!1),this.disabled$=new ut.a(!1),this.updating$=new ut.a(!1),this.errors$=new ut.a({}),this.form=new yt.l({host:new yt.i,global:new yt.i(!1)}),this.updating$.next(!!e.domain),e.domain&&this.form.patchValue(e.domain)}connectDomain(){this.loading$.next(!0),(this.updating$.value?this.customDomains.update(this.data.domain.id,this.form.value):this.customDomains.create(this.form.value)).pipe(Object(wt.a)(()=>this.loading$.next(!1))).subscribe(t=>{this.toast.open("Domain connected"),this.close(t.domain)},t=>this.errors$.next(t.errors))}validateCname(){this.disabled$.next(!0),this.loading$.next(!0),this.customDomains.validate(this.form.value.host).pipe(Object(wt.a)(()=>this.loading$.next(!1))).subscribe(t=>{t&&"connected"===t.result&&this.nextStep()},()=>{})}authorizeCrupdate(){this.loading$.next(!0);const t=Object.assign({},this.form.value);this.data.domain&&(t.domainId=this.data.domain.id),this.customDomains.authorizeCrupdate(t).pipe(Object(wt.a)(()=>this.loading$.next(!1))).subscribe(t=>{this.serverIp=t.serverIp,this.nextStep(!0)},t=>this.errors$.next(t.errors))}close(t){this.dialogRef.close(t)}previousStep(){this.currentStep$.value>Ti.Host&&this.currentStep$.next(this.currentStep$.value-1)}nextStep(t=!1){if(this.currentStep$.value===Ti.Host&&!t)return this.authorizeCrupdate();this.currentStep$.next(this.currentStep$.value+1),this.currentStep$.value===Ti.Validate?this.data.domain&&this.form.value.host===this.data.domain.host?this.connectDomain():this.validateCname():this.currentStep$.value===Ti.Finalize&&this.connectDomain()}baseUrl(){return this.settings.getBaseUrl().replace(/\/$/,"")}isSubdomain(){return(this.form.controls.host.value.match(/\./g)||[]).length>1}insideAdmin(){return this.router.url.indexOf("admin")>-1}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(ne.h),i.Nb(ne.a),i.Nb(di),i.Nb(Ct.b),i.Nb(W.a),i.Nb(s.d))},t.\u0275cmp=i.Hb({type:t,selectors:[["crupdate-custom-domain-modal"]],decls:7,vars:3,consts:[[1,"modal-header"],["mat-dialog-title","","trans",""],["type","button","tabindex","-1",1,"close-button","no-style",3,"click"],["svgIcon","close"],["ngNativeValidate","",3,"formGroup","ngSubmit",4,"ngIf"],["ngNativeValidate","",3,"formGroup","ngSubmit"],[4,"ngIf"],["class","host-step",4,"ngIf"],["class","info-step",4,"ngIf"],["class","validate-step",4,"ngIf"],["class","finalize-step",4,"ngIf"],["type","button","mat-button","","trans","",1,"cancel-button",3,"click"],[1,"submit-btns"],["mat-button","","color","accent","class","step-btn","type","button","trans","",3,"click",4,"ngIf"],["type","submit","mat-raised-button","","color","accent","trans","",1,"step-btn",3,"disabled"],["svgIcon","keyboard-arrow-right",1,"step-icon"],[1,"host-step"],[1,"input-container"],["for","host","trans",""],["type","text","id","host","formControlName","host","placeholder","https://example.com","maxlength","100","required","",1,"host-input"],["trans",""],["class","error",4,"ngIf"],["class","setting-toggle-container global-toggle",4,"ngIf"],[1,"error"],[1,"setting-toggle-container","global-toggle"],["id","global","formControlName","global","trans",""],[1,"info-step"],[1,"message-widget"],[1,"message"],[1,"validate-step"],["class","message-widget",4,"ngIf","ngIfElse"],["notLoading",""],[1,"small","icon",3,"isVisible"],["trans","",1,"message"],[1,"message-widget","warning-color"],["svgIcon","warning",1,"icon"],["type","button","trans","",1,"no-style","refresh-btn",3,"disabled","click"],[1,"finalize-step"],["mat-button","","color","accent","type","button","trans","",1,"step-btn",3,"click"],["svgIcon","keyboard-arrow-left",1,"step-icon"]],template:function(t,e){1&t&&(i.Tb(0,"div",0),i.Tb(1,"h2",1),i.Hc(2,"Connect Domain"),i.Sb(),i.Tb(3,"button",2),i.ac("click",(function(){return e.close()})),i.Ob(4,"mat-icon",3),i.Sb(),i.Sb(),i.Fc(5,Ei,3,4,"form",4),i.fc(6,"async")),2&t&&(i.Bb(5),i.kc("ngIf",i.gc(6,1,e.errors$)))},directives:[ne.i,J.a,Qt.a,Q.t,yt.v,yt.m,ne.f,ne.c,Z.b,yt.d,yt.u,yt.k,yt.p,yt.F,pi.a,mi.a],pipes:[Q.b,be.a],styles:["[_nghost-%COMP%]{display:block;width:400px;max-width:100%}.host-input[_ngcontent-%COMP%]{font-size:1.6rem}.mat-dialog-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding-top:25px;margin-top:25px;border-top:1px solid var(--be-divider-lighter)}.modal-header[_ngcontent-%COMP%]{border-bottom:1px solid var(--be-divider-lighter);margin-bottom:20px;padding-bottom:25px}.message-widget[_ngcontent-%COMP%]{display:flex;align-items:center;padding:15px;border-radius:4px;background-color:#ecf3ff;color:var(--be-accent-default);font-size:1.6rem}.message-widget[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.message-widget.warning-color[_ngcontent-%COMP%]{background-color:#fef0e2;color:#f77d05}.message-widget[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{flex-shrink:0;position:static;margin-right:15px}p[_ngcontent-%COMP%]{font-size:1.3rem;color:var(--be-secondary-text);margin:8px 0}.mat-button[_ngcontent-%COMP%], .mat-raised-button[_ngcontent-%COMP%]{min-width:105px;line-height:40px}.refresh-btn[_ngcontent-%COMP%]{color:var(--be-accent-default);text-decoration:underline}.step-icon[_ngcontent-%COMP%]{vertical-align:middle;margin-right:5px}.global-toggle[_ngcontent-%COMP%]{border-top:1px solid var(--be-divider-lighter);margin-top:20px;padding-top:20px;margin-bottom:0}@media only screen and (max-width:768px){.cancel-button[_ngcontent-%COMP%]{display:none}}"],changeDetection:0}),t})();var Ii=n("gdh/"),Di=n("/RwR"),Pi=n("HMnk"),ji=n("agwZ"),Fi=n("AUIZ"),Mi=n("wZkO"),Ri=n("CH4Q"),Ni=n("iB19");function Li(t,e){1&t&&(i.Tb(0,"a",32),i.Ob(1,"mat-icon",33),i.Tb(2,"span",34),i.Hc(3,"Manage Subscription"),i.Sb(),i.Sb())}function Bi(t,e){1&t&&(i.Tb(0,"a",35),i.Ob(1,"mat-icon",33),i.Tb(2,"span",34),i.Hc(3,"Upgrade to Premium"),i.Sb(),i.Sb())}function Hi(t,e){if(1&t&&(i.Rb(0),i.Fc(1,Li,4,0,"a",30),i.Fc(2,Bi,4,0,"a",31),i.Qb()),2&t){const t=i.ec();i.Bb(1),i.kc("ngIf",t.currentUser.isSubscribed()),i.Bb(1),i.kc("ngIf",!t.currentUser.isSubscribed())}}function Vi(t,e){if(1&t){const t=i.Ub();i.Tb(0,"div",36),i.Tb(1,"img",37),i.ac("click",(function(){i.vc(t);const n=e.$implicit;return i.ec().openBuilder(n)})),i.Sb(),i.Tb(2,"div",38),i.Tb(3,"div",39),i.Tb(4,"div",40),i.ac("click",(function(){i.vc(t);const n=e.$implicit;return i.ec().openBuilder(n)})),i.Hc(5),i.Sb(),i.Tb(6,"a",41),i.Hc(7),i.Sb(),i.Tb(8,"div",42),i.Hc(9),i.fc(10,"formattedDate"),i.Sb(),i.Sb(),i.Tb(11,"div",17),i.Tb(12,"button",43),i.Ob(13,"mat-icon",44),i.Sb(),i.Tb(14,"mat-menu",null,45),i.Tb(16,"button",46),i.ac("click",(function(){i.vc(t);const n=e.$implicit;return i.ec().openBuilder(n)})),i.Hc(17,"Edit"),i.Sb(),i.Tb(18,"a",47),i.Hc(19,"Preview"),i.Sb(),i.Tb(20,"button",48),i.ac("click",(function(){i.vc(t);const n=e.$implicit;return i.ec().openPublishProjectModal(n)})),i.Hc(21,"Publish"),i.Sb(),i.Tb(22,"button",46),i.ac("click",(function(){i.vc(t);const n=e.$implicit;return i.ec().deleteProjectWithConfirmation(n)})),i.Hc(23,"Delete"),i.Sb(),i.Sb(),i.Sb(),i.Sb(),i.Sb()}if(2&t){const t=e.$implicit,n=i.sc(15),r=i.ec();i.Bb(1),i.mc("alt","",t.name," image"),i.kc("src",r.getProjectImage(t),i.xc),i.Bb(4),i.Ic(t.name),i.Bb(1),i.kc("href",r.getProjectUrl(t),i.xc),i.Bb(1),i.Ic(r.getProjectUrl(t,!0)),i.Bb(2),i.Ic(i.gc(10,9,t.created_at)),i.Bb(3),i.kc("matMenuTriggerFor",n),i.Bb(6),i.kc("href",r.getProjectUrl(t),i.xc),i.Bb(2),i.kc("disabled",!r.currentUser.hasPermission("projects.publish"))}}function zi(t,e){1&t&&(i.Tb(0,"span",51),i.Hc(1,"Not matching projects found."),i.Sb())}function Ui(t,e){1&t&&(i.Tb(0,"span",51),i.Hc(1,"You have not created any projects yet."),i.Sb())}function $i(t,e){if(1&t&&(i.Tb(0,"no-results-message",49),i.Fc(1,zi,2,0,"span",50),i.Fc(2,Ui,2,0,"span",50),i.Sb()),2&t){const t=i.ec();i.Bb(1),i.kc("ngIf",t.models.controls.query.value),i.Bb(1),i.kc("ngIf",!t.models.controls.query.value)}}function Xi(t,e){if(1&t&&(i.Tb(0,"div",67),i.Ob(1,"img",68),i.Tb(2,"div",69),i.Hc(3),i.Sb(),i.Sb()),2&t){const t=i.ec().$implicit,e=i.ec(2);i.Bb(1),i.kc("src",e.getProjectImage(t.resource),i.xc),i.Bb(2),i.Ic(t.resource.name)}}function qi(t,e){1&t&&(i.Tb(0,"div",70),i.Hc(1," This domain is not attached to any project. "),i.Sb())}function Wi(t,e){if(1&t){const t=i.Ub();i.Tb(0,"div",71),i.ac("click",(function(){i.vc(t);const n=e.$implicit,r=i.ec().$implicit;return i.ec(2).attachDomainToProject(n,r)})),i.Ob(1,"img",68),i.Tb(2,"div",72),i.Hc(3),i.Sb(),i.Sb()}if(2&t){const t=e.$implicit,n=i.ec(3);i.Bb(1),i.kc("src",n.getProjectImage(t),i.xc),i.Bb(2),i.Ic(t.name)}}function Gi(t,e){if(1&t){const t=i.Ub();i.Tb(0,"li",57),i.Tb(1,"div",58),i.Tb(2,"div",59),i.Hc(3),i.Sb(),i.Tb(4,"div",60),i.Hc(5),i.fc(6,"formattedDate"),i.Sb(),i.Fc(7,Xi,4,2,"div",61),i.Fc(8,qi,2,0,"div",62),i.Sb(),i.Tb(9,"div",63),i.Tb(10,"button",43),i.Ob(11,"mat-icon",44),i.Sb(),i.Tb(12,"mat-menu",null,45),i.Tb(14,"button",64),i.Hc(15,"Change Project"),i.Sb(),i.Tb(16,"button",46),i.ac("click",(function(){i.vc(t);const n=e.$implicit;return i.ec(2).maybeRemoveDomain(n)})),i.Hc(17,"Remove"),i.Sb(),i.Sb(),i.Tb(18,"mat-menu",null,65),i.Fc(20,Wi,4,2,"div",66),i.fc(21,"async"),i.Sb(),i.Sb(),i.Sb()}if(2&t){const t=e.$implicit,n=i.sc(13),r=i.sc(19),s=i.ec(2);i.Bb(3),i.Ic(t.host),i.Bb(2),i.Ic(i.gc(6,7,t.created_at)),i.Bb(2),i.kc("ngIf",t.resource),i.Bb(1),i.kc("ngIf",!t.resource),i.Bb(2),i.kc("matMenuTriggerFor",n),i.Bb(4),i.kc("matMenuTriggerFor",r),i.Bb(6),i.kc("ngForOf",i.gc(21,9,s.projects$))}}function Ki(t,e){1&t&&(i.Tb(0,"no-results-message",73),i.Tb(1,"span",51),i.Hc(2,"You have not attached any domains yet."),i.Sb(),i.Sb())}function Yi(t,e){if(1&t){const t=i.Ub();i.Tb(0,"mat-tab",23),i.fc(1,"trans"),i.Tb(2,"div",52),i.Tb(3,"button",53),i.ac("click",(function(){return i.vc(t),i.ec().openConnectDomainModal()})),i.Hc(4,"Connect Domain"),i.Sb(),i.Tb(5,"ul",54),i.Fc(6,Gi,22,11,"li",55),i.fc(7,"async"),i.Sb(),i.Fc(8,Ki,3,0,"no-results-message",56),i.fc(9,"async"),i.Sb(),i.Sb()}if(2&t){const t=i.ec();i.kc("label",i.gc(1,3,"Domains")),i.Bb(6),i.kc("ngForOf",i.gc(7,5,t.domains$)),i.Bb(2),i.kc("ngIf",!i.gc(9,7,t.domains$).length)}}let Ji=(()=>{class t{constructor(t,e,n,i,r,s,o,a,c,l){this.route=t,this.router=e,this.settings=n,this.currentUser=i,this.projectsApi=r,this.toast=s,this.modal=o,this.projectUrl=a,this.customDomains=c,this.http=l,this.loading$=new ut.a(!1),this.projects$=new ut.a([]),this.domains$=new ut.a([]),this.models=new yt.l({query:new yt.i(""),order:new yt.i("created_at|desc"),published:new yt.i("all")})}ngOnInit(){this.route.data.subscribe(t=>{var e;this.projects$.next((null===(e=t.api)||void 0===e?void 0:e.projects)||[]),this.domains$.next(t.api.domains)}),this.bindToProjectFilters()}openBuilder(t){this.loading$.next(!0),this.router.navigate(["/builder",t.id]).then(()=>{this.loading$.next(!0)})}getProjectImage(t){return this.projectUrl.getBaseUrl(t)+"thumbnail.png"}getProjectUrl(t,e=!1){let n=this.projectUrl.getSiteUrl(t);return e&&(n=Object(Pi.a)(n)),n}openPublishProjectModal(t){this.modal.open(Ii.a,{project:t}).afterClosed().subscribe(t=>{if(!t||!t.model)return;const e=[...this.projects$.value],n=e.findIndex(e=>e.id===t.model.id);e[n]=t.model,this.projects$.next(e)})}deleteProjectWithConfirmation(t){this.modal.open(Di.a,{title:"Delete Project",body:"Are you sure you want to delete this project?",ok:"Delete"}).afterClosed().subscribe(e=>{e&&this.projectsApi.delete({ids:[t.id]}).subscribe(()=>{this.toast.open("Project deleted");const e=[...this.projects$.value];e.splice(e.indexOf(t),1),this.projects$.next(e)})})}openConnectDomainModal(){this.modal.open(Ai,{resourceName:"projects"}).afterClosed().subscribe(t=>{t&&this.domains$.next([...this.domains$.value,t])})}attachDomainToProject(t,e){this.customDomains.update(e.id,{resource_id:t.id,resource_type:"App\\Project"}).subscribe(()=>{const n=[...this.domains$.value],i=n.findIndex(t=>t.id===e.id);n[i].resource=t,this.domains$.next(n),this.toast.open("Domain attached.")})}maybeRemoveDomain(t){this.modal.show(Di.a,{title:"Remove Domain",body:"Are you sure you want to permanently remove this domain from your account?",ok:"Remove"}).afterClosed().subscribe(e=>{e&&this.removeDomain(t)})}removeDomain(t){this.customDomains.delete([t.id]).subscribe(()=>{const e=this.domains$.value.filter(e=>e.id!==t.id);this.domains$.next(e),this.toast.open("Domain removed.")})}bindToProjectFilters(){this.projectPaginator=new hi.a(this.router,this.http),this.projectPaginator.dontUpdateQueryParams=!0,this.projectPaginator.response$.pipe(Object(ci.a)(1)).subscribe(t=>{this.loading$.next(!1),this.projects$.next(t.pagination.data)},()=>this.loading$.next(!1)),this.models.valueChanges.pipe(Object(li.a)(250),Object(ui.a)()).subscribe(t=>{this.loading$.next(!0);const e=Object.assign(Object.assign({},t),{user_id:this.currentUser.get("id"),per_page:20});this.projectPaginator.paginate(e,"projects")})}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(s.a),i.Nb(s.d),i.Nb(W.a),i.Nb(gt.a),i.Nb(ji.a),i.Nb(Ct.b),i.Nb(ue.a),i.Nb(Fi.a),i.Nb(di),i.Nb(G.a))},t.\u0275cmp=i.Hb({type:t,selectors:[["dashboard"]],decls:48,vars:18,consts:[[1,"page-header"],["menuPosition","dashboard",3,"container"],[1,"header-body","container"],[1,"inputs",3,"formGroup"],[1,"input-container"],["for","search-query","trans",""],["type","text","formControlName","query","id","search-query"],["for","project-status","trans",""],["formControlName","published","id","project-status"],["value","all","trans",""],["trans","",3,"ngValue"],["for","project-order","trans",""],["formControlName","order","id","project-order"],["value","created_at|desc","trans",""],["value","created_at|asc","trans",""],["value","name|desc","trans",""],["value","name|asc","trans",""],[1,"actions"],[4,"ngIf"],["mat-raised-button","","color","accent","routerLink","/dashboard/projects/new","trans","",1,"new-project-button"],[1,"be-container"],["slot","ads.dashboard_top",1,"ad-host-top"],["color","accent","animationDuration","0"],[3,"label"],[1,"projects","template-grid","tab-content"],["class","project template-grid-item",4,"ngFor","ngForOf"],["svgImage","website-builder.svg",4,"ngIf"],[3,"label",4,"ngIf"],["slot","ads.dashboard_bottom",1,"ad-host-bottom"],[1,"overlay",3,"isVisible"],["class","upgrade-button","mat-raised-button","","color","accent","routerLink","/billing/subscription",4,"ngIf"],["class","upgrade-button","mat-raised-button","","color","accent","routerLink","/billing/upgrade",4,"ngIf"],["mat-raised-button","","color","accent","routerLink","/billing/subscription",1,"upgrade-button"],["svgIcon","flash-on"],["trans",""],["mat-raised-button","","color","accent","routerLink","/billing/upgrade",1,"upgrade-button"],[1,"project","template-grid-item"],[3,"src","alt","click"],[1,"footer"],[1,"title"],[1,"name",3,"click"],["target","_blank",1,"url",3,"href"],[1,"updated"],["type","button","mat-icon-button","",3,"matMenuTriggerFor"],["svgIcon","more-vert"],["menu","matMenu"],["mat-menu-item","","trans","",3,"click"],["target","_blank","mat-menu-item","","trans","",3,"href"],["mat-menu-item","","trans","",3,"disabled","click"],["svgImage","website-builder.svg"],["primary-text","","trans","",4,"ngIf"],["primary-text","","trans",""],[1,"domains-tab","tab-content"],["type","button","mat-raised-button","","color","accent","trans","",3,"click"],[1,"domains"],["class","domain",4,"ngFor","ngForOf"],["svgImage","custom-domain.svg",4,"ngIf"],[1,"domain"],[1,"domain-content"],[1,"host"],[1,"date"],["class","domain-project",4,"ngIf"],["class","domain-project","trans","",4,"ngIf"],[1,"domain-actions"],["mat-menu-item","","trans","",3,"matMenuTriggerFor"],["projects","matMenu"],["mat-menu-item","","class","project-menu-item",3,"click",4,"ngFor","ngForOf"],[1,"domain-project"],["alt","",3,"src"],[1,"name"],["trans","",1,"domain-project"],["mat-menu-item","",1,"project-menu-item",3,"click"],[1,"project-name"],["svgImage","custom-domain.svg"]],template:function(t,e){1&t&&(i.Tb(0,"div",0),i.Ob(1,"material-navbar",1),i.Tb(2,"div",2),i.Tb(3,"form",3),i.Tb(4,"div",4),i.Tb(5,"label",5),i.Hc(6,"Search"),i.Sb(),i.Ob(7,"input",6),i.Sb(),i.Tb(8,"div",4),i.Tb(9,"label",7),i.Hc(10,"Status"),i.Sb(),i.Tb(11,"select",8),i.Tb(12,"option",9),i.Hc(13,"All"),i.Sb(),i.Tb(14,"option",10),i.Hc(15,"Published"),i.Sb(),i.Tb(16,"option",10),i.Hc(17,"Unpublished"),i.Sb(),i.Sb(),i.Sb(),i.Tb(18,"div",4),i.Tb(19,"label",11),i.Hc(20,"Sort"),i.Sb(),i.Tb(21,"select",12),i.Tb(22,"option",13),i.Hc(23,"Newest"),i.Sb(),i.Tb(24,"option",14),i.Hc(25,"Oldest"),i.Sb(),i.Tb(26,"option",15),i.Hc(27,"A-Z"),i.Sb(),i.Tb(28,"option",16),i.Hc(29,"Z-A"),i.Sb(),i.Sb(),i.Sb(),i.Sb(),i.Tb(30,"div",17),i.Fc(31,Hi,3,2,"ng-container",18),i.Tb(32,"a",19),i.Hc(33,"New Project"),i.Sb(),i.Sb(),i.Sb(),i.Sb(),i.Tb(34,"section",20),i.Ob(35,"ad-host",21),i.Tb(36,"mat-tab-group",22),i.Tb(37,"mat-tab",23),i.fc(38,"trans"),i.Tb(39,"div",24),i.Fc(40,Vi,24,11,"div",25),i.fc(41,"async"),i.Sb(),i.Fc(42,$i,3,2,"no-results-message",26),i.fc(43,"async"),i.Sb(),i.Fc(44,Yi,10,9,"mat-tab",27),i.Sb(),i.Ob(45,"ad-host",28),i.Sb(),i.Ob(46,"loading-indicator",29),i.fc(47,"async")),2&t&&(i.Bb(1),i.kc("container",!0),i.Bb(2),i.kc("formGroup",e.models),i.Bb(11),i.kc("ngValue",1),i.Bb(2),i.kc("ngValue",0),i.Bb(15),i.kc("ngIf",e.settings.get("billing.enable")),i.Bb(6),i.kc("label",i.gc(38,10,"Projects")),i.Bb(3),i.kc("ngForOf",i.gc(41,12,e.projects$)),i.Bb(2),i.kc("ngIf",!i.gc(43,14,e.projects$).length),i.Bb(2),i.kc("ngIf",e.settings.get("builder.enable_custom_domains")&&e.currentUser.hasPermission("custom_domains.create")),i.Bb(2),i.kc("isVisible",i.gc(47,16,e.loading$)))},directives:[Ot.a,yt.K,yt.v,yt.m,J.a,yt.d,yt.u,yt.k,yt.G,yt.z,yt.J,Q.t,Z.a,s.g,Pt.a,Mi.c,Mi.a,Q.s,mi.a,Qt.a,Z.b,_n.c,_n.d,_n.a,Ri.a],pipes:[be.a,Q.b,Ni.a],styles:["[_nghost-%COMP%]{display:block;min-height:100vh;background-color:var(--be-background-alternative)}.be-dark-mode[_nghost-%COMP%]   .page-header[_ngcontent-%COMP%], .be-dark-mode   [_nghost-%COMP%]   .page-header[_ngcontent-%COMP%]{background-color:var(--be-background)}.page-header[_ngcontent-%COMP%]{background-color:var(--be-primary-default);color:#fff}.page-header[_ngcontent-%COMP%]   material-navbar[_ngcontent-%COMP%]{background-color:transparent}.page-header[_ngcontent-%COMP%]   material-navbar[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]{max-height:48%;margin-right:20px}.page-header[_ngcontent-%COMP%]   .input-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{color:inherit}.header-body[_ngcontent-%COMP%]{padding-top:50px;padding-bottom:50px}.header-body[_ngcontent-%COMP%], .header-body[_ngcontent-%COMP%]   .inputs[_ngcontent-%COMP%]{display:flex;align-items:center}.header-body[_ngcontent-%COMP%]   .input-container[_ngcontent-%COMP%]{margin-right:20px}.header-body[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .header-body[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{background-color:#fff;color:rgba(0,0,0,.87)}.header-body[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{margin-left:auto}.header-body[_ngcontent-%COMP%]   .upgrade-button[_ngcontent-%COMP%]{margin-right:20px}@media only screen and (max-width:768px){.header-body[_ngcontent-%COMP%]{padding:25px 0}.header-body[_ngcontent-%COMP%]   .inputs[_ngcontent-%COMP%]{display:none}.header-body[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{margin:0 auto}}.ad-host-top[_ngcontent-%COMP%]{margin-top:35px}.ad-host-bottom[_ngcontent-%COMP%]{margin-bottom:35px}.mat-tab-group[_ngcontent-%COMP%]{margin-top:40px}.projects[_ngcontent-%COMP%]{padding-top:25px;padding-bottom:25px;overflow:hidden;width:100%}.projects[_ngcontent-%COMP%]   .project[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]{display:flex;align-items:center;padding:22px;border-top:1px solid var(--be-divider-lighter)}.projects[_ngcontent-%COMP%]   .project[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:15px}.projects[_ngcontent-%COMP%]   .project[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:500}.projects[_ngcontent-%COMP%]   .project[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]   .updated[_ngcontent-%COMP%]{font-size:1rem;color:var(--be-secondary-text)}.projects[_ngcontent-%COMP%]   .project[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]   .url[_ngcontent-%COMP%]{display:block;font-size:1.3rem;margin-bottom:10px;color:var(--be-secondary-text)}.projects[_ngcontent-%COMP%]   .project[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]   .url[_ngcontent-%COMP%]:hover{text-decoration:underline}.projects[_ngcontent-%COMP%]   .project[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{margin-left:auto;color:var(--be-secondary-text)}.domains[_ngcontent-%COMP%], .domains-tab[_ngcontent-%COMP%]{margin-top:25px}.domain[_ngcontent-%COMP%]{display:flex;align-items:center;padding:15px;border-radius:4px;margin-bottom:10px;background-color:var(--be-background);box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.domain[_ngcontent-%COMP%]   .host[_ngcontent-%COMP%]{font-size:1.7rem}.domain[_ngcontent-%COMP%]   .date[_ngcontent-%COMP%]{color:var(--be-secondary-text)}.domain-project[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:15px;font-size:1.5rem}.domain-project[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:50px;height:50px;border-radius:4px;margin-right:10px;flex-shrink:0}.domain-content[_ngcontent-%COMP%]{flex:1 1 auto}.domain-actions[_ngcontent-%COMP%]{flex-shrink:0}.project-menu-item[_ngcontent-%COMP%]{display:flex;align-items:center;line-height:50px;height:50px;padding-top:5px;padding-bottom:5px}.project-menu-item[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:4px;margin-right:10px;flex-shrink:0}"],changeDetection:0}),t})();var Qi=n("qnHw"),Zi=n("xgIS");let tr=(()=>{class t{constructor(){this.threshold=50}ngOnInit(){this.el||(this.el=new i.l(document)),this.zone.runOutsideAngular(()=>{this.scrollSub=Object(Zi.a)(this.getScrollContainer(),"scroll",{capture:!0,passive:!0}).pipe(Object(li.a)(20)).subscribe(t=>this.onScroll(t.target))})}ngOnDestroy(){this.scrollSub&&this.scrollSub.unsubscribe()}getScrollContainer(){return this.el?this.el.nativeElement:document}onScroll(t){if(!t||t!==this.el.nativeElement||!this.canLoadMore()||this.isLoading())return;const e=parseInt(this.threshold),n=this.el&&void 0!==t.scrollTop;(n?t.scrollTop+t.offsetHeight:window.scrollY+window.innerHeight)>=(n?t.scrollHeight-e:document.documentElement.scrollHeight-e)&&this.zone.run(()=>{this.loadMoreItems()})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Ib({type:t}),t})();var er=n("SW18");function nr(t,e){if(1&t&&(i.Tb(0,"option",22),i.Hc(1),i.Sb()),2&t){const t=e.$implicit;i.kc("value",t),i.Bb(1),i.Ic(t)}}function ir(t,e){if(1&t){const t=i.Ub();i.Tb(0,"figure",23),i.ac("click",(function(){i.vc(t);const n=e.$implicit;return i.ec().openNewProjectModal(n.name)})),i.Ob(1,"img",24),i.Tb(2,"figcaption",25),i.Hc(3),i.Sb(),i.Sb()}if(2&t){const t=e.$implicit,n=i.ec();i.Bb(1),i.kc("src",n.getTemplateThumbnail(t),i.xc),i.Bb(2),i.Ic((null==t||null==t.config?null:t.config.name)||t.name)}}let rr=(()=>{class t extends tr{constructor(t,e,n,i,r,s){super(),this.route=t,this.settings=e,this.modal=n,this.router=i,this.zone=r,this.templates=s,this.allCategories=[],this.filteredTemplates=[],this.loading=!1,this.filterForm=new yt.l({search:new yt.i,category:new yt.i(null)})}ngOnInit(){this.allCategories=this.settings.getJson("builder.template_categories",[]),this.filterForm.valueChanges.subscribe(t=>{this.applyFilters(t)}),this.route.data.subscribe(t=>{this.templatePagination=t.templates,this.filteredTemplates=t.templates.data}),super.ngOnInit()}openNewProjectModal(t){this.modal.open(Qi.a,{templateName:t}).afterClosed().subscribe(t=>{t&&this.router.navigate(["/builder",t.model.id])})}getTemplateThumbnail(t){return this.settings.getBaseUrl(!0)+t.thumbnail}applyFilters(t){this.filteredTemplates=this.templatePagination.data.filter(e=>{const n=!t.category||e.config.category===t.category,i=!t.search||(e.name||e.config.name||"").toLowerCase().indexOf(t.search.toLowerCase())>-1;return n&&i})}canLoadMore(){return this.templatePagination.current_page<this.templatePagination.last_page}isLoading(){return this.loading}loadMoreItems(){this.loading=!0,this.templates.all({page:this.templatePagination.current_page+1,perPage:25}).pipe(Object(wt.a)(()=>this.loading=!1)).subscribe(t=>{const e=[...this.templatePagination.data,...t.pagination.data];this.templatePagination=Object.assign(Object.assign({},t.pagination),{data:e}),this.filteredTemplates=e})}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(s.a),i.Nb(W.a),i.Nb(ue.a),i.Nb(s.d),i.Nb(i.A),i.Nb(er.a))},t.\u0275cmp=i.Hb({type:t,selectors:[["new-project-page"]],features:[i.yb],decls:28,vars:6,consts:[["menuPosition","dashboard",3,"container"],[1,"content"],["slot","ads.dashboard_top",1,"ad-host-top"],[1,"container"],[1,"page-header"],["trans","",1,"title"],["trans","",1,"subtitle"],[1,"controls",3,"formGroup"],[1,"input-container","search-input-container"],["svgIcon","search"],["for","search-input","trans","",1,"hidden"],["type","text","id","search-input","formControlName","search","placeholder","Search...","trans-placeholder",""],[1,"input-container","category-input-container"],["for","category-input","trans","",1,"hidden"],["id","category-input","formControlName","category"],["trans","",3,"ngValue"],[3,"value",4,"ngFor","ngForOf"],["type","button","mat-raised-button","","color","accent","trans","",1,"blank-page-button",3,"click"],[1,"template-grid"],["class","template-grid-item",3,"click",4,"ngFor","ngForOf"],["slot","ads.dashboard_bottom",1,"ad-host-bottom"],[1,"inline",3,"isVisible"],[3,"value"],[1,"template-grid-item",3,"click"],[3,"src"],[1,"template-grid-item-footer"]],template:function(t,e){1&t&&(i.Ob(0,"material-navbar",0),i.Tb(1,"div",1),i.Ob(2,"ad-host",2),i.Tb(3,"div",3),i.Tb(4,"header",4),i.Tb(5,"h1",5),i.Hc(6,"Choose a template for your project"),i.Sb(),i.Tb(7,"p",6),i.Hc(8,"All templates are 100% customizable so choose one then make it your own."),i.Sb(),i.Tb(9,"div",7),i.Tb(10,"div",8),i.Ob(11,"mat-icon",9),i.Tb(12,"label",10),i.Hc(13,"Search"),i.Sb(),i.Ob(14,"input",11),i.Sb(),i.Tb(15,"div",12),i.Tb(16,"label",13),i.Hc(17,"Category"),i.Sb(),i.Tb(18,"select",14),i.Tb(19,"option",15),i.Hc(20,"All Categories"),i.Sb(),i.Fc(21,nr,2,2,"option",16),i.Sb(),i.Sb(),i.Tb(22,"button",17),i.ac("click",(function(){return e.openNewProjectModal()})),i.Hc(23,"Start with Blank Page"),i.Sb(),i.Sb(),i.Sb(),i.Tb(24,"div",18),i.Fc(25,ir,4,2,"figure",19),i.Sb(),i.Sb(),i.Ob(26,"ad-host",20),i.Sb(),i.Ob(27,"loading-indicator",21)),2&t&&(i.kc("container",!0),i.Bb(9),i.kc("formGroup",e.filterForm),i.Bb(10),i.kc("ngValue",null),i.Bb(2),i.kc("ngForOf",e.allCategories),i.Bb(4),i.kc("ngForOf",e.filteredTemplates),i.Bb(2),i.kc("isVisible",e.loading))},directives:[Ot.a,Pt.a,J.a,yt.v,yt.m,Qt.a,yt.d,yt.u,yt.k,yt.G,yt.z,yt.J,Q.s,Z.b,mi.a],styles:["new-project-page{display:block;background-color:var(--be-background-alternative);min-height:100vh}new-project-page .page-header{margin-top:40px}new-project-page .page-header .title{margin:0}new-project-page .page-header .subtitle{color:var(--be-secondary-text);margin:4px 0 0}new-project-page .page-header .controls{display:flex;align-items:center;margin-bottom:40px;margin-top:30px}@media only screen and (max-width:768px){new-project-page .page-header .controls{display:block}new-project-page .page-header .controls .input-container{margin-bottom:10px}}new-project-page .page-header .input-container{flex:1 1 auto;position:relative;max-width:300px}new-project-page .page-header .input-container .mat-icon{position:absolute;left:8px;top:15px;color:var(--be-secondary-text);z-index:2}new-project-page .page-header .input-container input,new-project-page .page-header .input-container select{background-color:var(--be-background);height:52px}new-project-page .page-header .search-input-container{margin-right:10px}new-project-page .page-header .search-input-container input{padding-left:38px}new-project-page .page-header .category-input-container{margin-right:40px}new-project-page .page-header .blank-page-button{flex:0 0 auto;line-height:48px;margin-right:10px}new-project-page .content .ad-host-top{margin-top:60px}new-project-page .content .ad-host-bottom{margin-bottom:60px}new-project-page .template-grid{padding-bottom:60px}new-project-page .template-grid-item-footer{padding:18px;text-align:center;text-transform:capitalize}new-project-page loading-indicator{margin-bottom:30px}"],encapsulation:2}),t})(),sr=(()=>{class t{constructor(t,e){this.router=t,this.templates=e}resolve(t,e){return this.templates.all({perPage:25}).pipe(Object(it.a)(()=>(this.router.navigate(["/dashboard"]),an.a)),Object(sn.a)(t=>t?Object(st.a)(t.pagination):(this.router.navigate(["/dashboard"]),an.a)))}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(s.d),i.Xb(er.a))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),or=(()=>{class t{constructor(t,e,n,i){this.router=t,this.projects=e,this.currentUser=n,this.domains=i}resolve(t,e){return Object(on.a)([this.projects.all({user_id:this.currentUser.get("id"),per_page:30}),this.domains.index({userId:this.currentUser.get("id"),with:["resource"]})]).pipe(Object(it.a)(()=>[]),Object(nt.a)(t=>({projects:t[0].pagination.data,domains:t[1].pagination.data})))}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(s.d),i.Xb(ji.a),i.Xb(gt.a),i.Xb(di))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ar=(()=>{class t{constructor(t){this.config=t}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(W.a))},t.\u0275cmp=i.Hb({type:t,selectors:[["not-found-page"]],decls:5,vars:0,consts:[["src","client/assets/images/404.png","alt",""],["trans",""],["routerLink","/","mat-raised-button","","color","accent","trans",""]],template:function(t,e){1&t&&(i.Ob(0,"img",0),i.Tb(1,"h1",1),i.Hc(2,"Opps! We can't find the page you're looking for."),i.Sb(),i.Tb(3,"a",2),i.Hc(4,"Home"),i.Sb())},directives:[J.a,s.g,Z.a],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100vh;color:#597996}img[_ngcontent-%COMP%]{display:block;margin:0 auto;height:auto}h1[_ngcontent-%COMP%], img[_ngcontent-%COMP%]{max-width:90%}h1[_ngcontent-%COMP%]{font-size:4rem;font-weight:300;margin-top:50px;text-align:center}.mat-raised-button.mat-accent[_ngcontent-%COMP%]{color:#fff;background-color:#597996;min-width:220px;line-height:46px;max-width:90%}"],changeDetection:0}),t})();var cr=n("DB1O");const lr=[{path:"dashboard",canActivate:[Vt.a,ei.a],children:[{path:"",component:Ji,resolve:{api:or},data:{permissions:["projects.view"]}},{path:"projects",redirectTo:"",pathMatch:"full"},{path:"projects/new",component:rr,resolve:{templates:sr},data:{permissions:["projects.create","templates.view"]}}]},{path:"loading",component:cr.a},{path:"**",pathMatch:"full",component:ar},{path:"404",pathMatch:"full",component:ar}];let ur=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)},imports:[[s.h.forRoot(lr)],s.h]}),t})();var hr=n("Iysn"),dr=n("k3xQ"),pr=n("1ImS");let mr=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)},imports:[[Q.c,tn.a,hr.a,dr.a,yt.o,yt.E,pr.a,en.a,Qt.b,Z.c,fe.b,ne.g,pi.b]]}),t})(),fr=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)},imports:[[Q.c]]}),t})(),br=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)},imports:[[Q.c,yt.o,yt.E,ur,oi.a,mr,ri.a,fr,tn.a,dr.a,hr.a,en.a,ai.a,Mi.g,Qt.b,Z.c]]}),t})();const gr={assetsPrefix:"client",environment:"production",navbar:{defaultPosition:"dashboard",defaultColor:"primary",dropdownItems:[{route:"/dashboard",name:"Dashboard",icon:"web-design-custom"}]},auth:{color:"primary",redirectUri:"dashboard",adminRedirectUri:"dashboard"},translations:{uploads_disk_driver_description:"Where public uploads (builder images, user avatars etc.) should be stored."},admin:{pages:[{name:"templates",icon:"web-design-custom",route:"templates",permission:"templates.view"},{name:"projects",icon:"dashboard",route:"projects",permission:"projects.view"}],settingsPages:[{name:"builder",route:"builder"}],ads:[{slot:"ads.dashboard_top",description:"This will appear at the top of user dashboard."},{slot:"ads.dashboard_bottom",description:"This will appear at the bottom of user dashboard."}]}};var _r=n("R1ws"),vr=n("tk/3");let yr=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)},imports:[[Q.c,tn.a,s.h,Z.c]]}),t})();var wr=n("ObYb"),Cr=function(t){return t.NoPermissions="You don't have required permissions to do that.",t}({});let xr=(()=>{class t extends wr.a{constructor(t,e,n,i,r,s,o){super(t,i),this.i18n=t,this.currentUser=e,this.router=n,this.toast=i,this.zone=r,this.settings=s,this.modal=o}handle403Error(t){this.currentUser.isLoggedIn()||t.message.includes("demo site")?this.showToast(t):this.router.navigate(["/login"])}showToast(t){const e={};t.action&&(e.action=t.action.label,e.duration=Ct.a),this.toast.open(t.message||Cr.NoPermissions,e).onAction().subscribe(()=>{this.router.navigateByUrl(t.action.action),this.modal.closeAll()})}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(dt.a),i.Xb(gt.a),i.Xb(s.d),i.Xb(Ct.b),i.Xb(i.A),i.Xb(W.a),i.Xb(ue.a))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var kr=n("NlKi"),Or=n.n(kr);const Sr=["Uncaught (in promise): [object Object]","Uncaught (in promise): [object Undefined]","[object Object]",'{"isTrusted"\n true}',"Uncaught (in promise): ChunkLoadError: Loading chunk","Http failure response for","Http failure during parsing for","Non-Error exception captured with keys: messages, originalError, status, type\u2026","Uncaught (in promise): TypeError: Cannot read property 'setAttribute' of undefined","Uncaught (in promise): TypeError: Cannot read property 'getRng' of undefined","Cannot assign to read only property 'className' of object '[object SVGSVGElement]'",'The animation trigger "transform" has failed to build due to the following errors',"NotSupportedError: Failed to execute 'animate' on 'Element': Partial keyframes are not supported.","Cannot call method 'split' of undefined","Cannot call method 'trim' of undefined","undefined is not a function","has no method 'closest'","Object doesn't support property or method 'closest'","Object doesn't support property or method 'setPrototypeOf'","requestAnimationFrame is not defined","Object [object DOMWindow] has no method 'cancelAnimationFrame'","'block' member of ScrollIntoViewOptions 'center' is not a valid value for enumeration ScrollLogicalPosition.","Setting the playback rate is not enabled for this video."];class Er extends i.m{constructor(t){super(),this.settings=t,this.installed=!1}handleError(t,e){t&&(super.handleError(t),this.installSentry()&&kr.captureException(t.originalError||t,e))}installSentry(){return!!this.installed||!!this.settings.has("logging.sentry_public")&&(kr.config(this.settings.get("logging.sentry_public"),{release:this.settings.get("version"),ignoreErrors:Sr}).install(),this.installed=!0)}}class Tr extends Er{constructor(t,e){super(t),this.settings=t,this.currentUser=e,this.setUserContext()}handleError(t){t&&"http"!==t.type&&super.handleError(t,{extra:{user:this.currentUser.getModel()}})}setUserContext(){this.currentUser.isLoggedIn()&&Or.a.setUserContext({id:this.currentUser.get("id"),username:this.currentUser.get("display_name"),email:this.currentUser.get("email")})}}var Ar=n("vkgz");let Ir=(()=>{class t{constructor(t){this.metaTags=t}intercept(t,e){return e.handle(t).pipe(Object(Ar.a)(t=>(t instanceof vr.g&&t.body&&t.body.seo&&this.metaTags.latestMetaTags$.next(t.body.seo),t)))}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(pt))},t.\u0275prov=i.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Dr=[{provide:de,useValue:{environment:"production",assetsPrefix:null,auth:{redirectUri:"/",adminRedirectUri:"/"},accountSettings:{hideNavbar:!1},demo:{email:"admin@admin.com",password:"admin"},customPages:{hideNavbar:!1},translations:{public_disk_driver_description:"Where public uploads (like user avatars) should be stored."}},multi:!0},{provide:wr.a,useClass:xr},{provide:i.d,useFactory:function(t){return()=>t.bootstrap()},deps:[pe],multi:!0},{provide:i.m,useFactory:function(t,e){return new Tr(t,e)},deps:[W.a,gt.a]},{provide:vr.a,useClass:Ir,multi:!0}];var Pr=n("dNgK");let jr=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)},imports:[[Q.c,ri.a,yt.o,yt.E,tn.a,Z.c]]}),t})();const Fr=[{path:"pages/:id/:slug",component:n("ohrG").a,data:{permissions:["custom_pages.view"],willSetSeo:!0}}];let Mr=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)},imports:[[s.h.forChild(Fr)],s.h]}),t})(),Rr=(()=>{class t{}return t.\u0275mod=i.Lb({type:t}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)},imports:[[Q.c,s.h,Mr,ri.a,tn.a,Z.c]]}),t})(),Nr=(()=>{class t{}return t.\u0275mod=i.Lb({type:t,bootstrap:[bt]}),t.\u0275inj=i.Kb({factory:function(e){return new(e||t)},providers:[...Dr,{provide:de,useValue:gr,multi:!0}],imports:[[Q.c,r.a,_r.b,vr.c,s.h,rn,si,Ut,Rr,br,oi.a,yr,ri.a,jr,Pr.c]]}),t})();Object(i.U)(),r.d().bootstrapModule(Nr).catch(t=>console.error(t))},zW5C:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("fXoL"),r=n("VaLf");let s=(()=>{class t{constructor(t){this.i18n=t}transform(t,e){return this.i18n.t(t,e)}}return t.\u0275fac=function(e){return new(e||t)(i.Nb(r.a))},t.\u0275pipe=i.Mb({name:"trans",type:t,pure:!0}),t})()},zn8P:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"},zx2A:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return c}));var i=n("7o/Q"),r=n("HDdC"),s=n("SeVD");class o extends i.a{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 a extends i.a{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function c(t,e){if(!e.closed)return t instanceof r.a?t.subscribe(e):Object(s.a)(t)(e)}}},[[0,0]]]);
//# sourceMappingURL=main-es2015.ec5d0f3c273738031d73.js.map

Youez - 2016 - github.com/yon3zu
LinuXploit