-
Notifications
You must be signed in to change notification settings - Fork 0
/
9-es2015.2c00901db1251c62dca0.js
1 lines (1 loc) · 73.3 KB
/
9-es2015.2c00901db1251c62dca0.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{"4ezY":function(t,e,i){"use strict";i.r(e),i.d(e,"SiteHomeModule",(function(){return Pe}));var s=i("ofXK"),n=i("YUcS"),o=i("bTqV"),r=i("R1ws"),a=i("FKr1"),c=i("fXoL");const h=["*",[["mat-card-footer"]]],l=["*","mat-card-footer"],d=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],p=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=c.Pb({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t})(),g=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=c.Pb({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t})(),_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=c.Pb({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),t})(),f=(()=>{class t{constructor(){this.align="start"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=c.Pb({type:t,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(t,e){2&t&&c.Lb("mat-card-actions-align-end","end"===e.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),t})(),m=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=c.Pb({type:t,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),t})(),b=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=c.Pb({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),t})(),y=(()=>{class t{constructor(t){this._animationMode=t}}return t.\u0275fac=function(e){return new(e||t)(c.Ub(r.a,8))},t.\u0275cmp=c.Ob({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&c.Lb("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:l,decls:2,vars:0,template:function(t,e){1&t&&(c.pc(h),c.oc(0),c.oc(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),t})(),v=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=c.Ob({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:p,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(c.pc(d),c.oc(0),c.ac(1,"div",0),c.oc(2,1),c.Zb(),c.oc(3,2))},encapsulation:2,changeDetection:0}),t})(),w=(()=>{class t{}return t.\u0275mod=c.Sb({type:t}),t.\u0275inj=c.Rb({factory:function(e){return new(e||t)},imports:[[a.c],a.c]}),t})();var x=i("NFeN"),O=i("vxfF"),P=i("nLfN"),C=i("cH1L"),k=i("8LU1");function R(){throw Error("Host already has a portal attached")}class S{attach(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&R(),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 j extends S{constructor(t,e,i,s){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=s}}class E extends S{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class I extends S{constructor(t){super(),this.element=t instanceof c.p?t.nativeElement:t}}class L extends class{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()&&R(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof j?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof E?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof I?(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)}}{constructor(t,e,i,s,n){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=s,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 i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=n}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),i}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.detectChanges(),i.rootNodes.forEach(t=>this.outletElement.appendChild(t)),this.setDisposeFn(()=>{let t=e.indexOf(i);-1!==t&&e.remove(t)}),i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let D=(()=>{class t{}return t.\u0275mod=c.Sb({type:t}),t.\u0275inj=c.Rb({factory:function(e){return new(e||t)}}),t})();var T=i("XNiG"),A=i("quSY"),B=i("VRyK"),F=i("IzEk"),H=i("1G5W"),M=i("FtGj");class Z{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(k.c)(-this._previousScrollPosition.left),t.style.top=Object(k.c)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,i=this._document.body.style,s=e.scrollBehavior||"",n=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=i.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=s,i.scrollBehavior=n}}_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 z(){return Error("Scroll strategy has already been attached.")}class V{constructor(t,e,i,s){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=s,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){if(this._overlayRef)throw z();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 X{enable(){}disable(){}attach(){}}function Y(t,e){return e.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function N(t,e){return e.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class G{constructor(t,e,i,s){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=s,this._scrollSubscription=null}attach(t){if(this._overlayRef)throw z();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:i}=this._viewportRuler.getViewportSize();Y(t,[{width:e,height:i,bottom:i,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 J=(()=>{class t{constructor(t,e,i,s){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=()=>new X,this.close=t=>new V(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new Z(this._viewportRuler,this._document),this.reposition=t=>new G(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=s}}return t.\u0275fac=function(e){return new(e||t)(c.ec(O.c),c.ec(O.e),c.ec(c.F),c.ec(s.d))},t.\u0275prov=Object(c.Qb)({factory:function(){return new t(Object(c.ec)(O.c),Object(c.ec)(O.e),Object(c.ec)(c.F),Object(c.ec)(s.d))},token:t,providedIn:"root"}),t})();class q{constructor(t){if(this.scrollStrategy=new X,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class U{constructor(t,e,i,s,n){this.offsetX=i,this.offsetY=s,this.panelClass=n,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}let W=(()=>class{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}})();function $(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". Expected "top", "bottom" or "center".`)}function Q(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". Expected "start", "end" or "center".`)}let K=(()=>{class t{constructor(t){this._attachedOverlays=[],this._keydownListener=t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEvents.observers.length>0){e[i]._keydownEvents.next(t);break}},this._document=t}ngOnDestroy(){this._detach()}add(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),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()}_detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(c.ec(s.d))},t.\u0275prov=Object(c.Qb)({factory:function(){return new t(Object(c.ec)(s.d))},token:t,providedIn:"root"}),t})();const tt=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let et=(()=>{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||tt){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"),tt?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)(c.ec(s.d),c.ec(P.a))},t.\u0275prov=Object(c.Qb)({factory:function(){return new t(Object(c.ec)(s.d),Object(c.ec)(P.a))},token:t,providedIn:"root"}),t})();class it{constructor(t,e,i,s,n,o,r,a){this._portalOutlet=t,this._host=e,this._pane=i,this._config=s,this._ngZone=n,this._keyboardDispatcher=o,this._document=r,this._location=a,this._backdropElement=null,this._backdropClick=new T.a,this._attachments=new T.a,this._detachments=new T.a,this._locationChanges=A.a.EMPTY,this._backdropClickHandler=t=>this._backdropClick.next(t),this._keydownEvents=new T.a,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.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(F.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())),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(),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._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()}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(k.c)(this._config.width),t.height=Object(k.c)(this._config.height),t.minWidth=Object(k.c)(this._config.minWidth),t.minHeight=Object(k.c)(this._config.minHeight),t.maxWidth=Object(k.c)(this._config.maxWidth),t.maxHeight=Object(k.c)(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 i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),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",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const s=t.classList;Object(k.a)(e).forEach(t=>{t&&(i?s.add(t):s.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.asObservable().pipe(Object(H.a)(Object(B.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 st=/([A-Za-z%]+)$/;class nt{constructor(t,e,i,s,n){this._viewportRuler=e,this._document=i,this._platform=s,this._overlayContainer=n,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 T.a,this._resizeSubscription=A.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,i=this._viewportRect,s=[];let n;for(let o of this._preferredPositions){let r=this._getOriginPoint(t,o),a=this._getOverlayPoint(r,e,o),c=this._getOverlayFit(a,e,i,o);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,r);this._canFitWithFlexibleDimensions(c,a,i)?s.push({position:o,origin:r,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(r,o)}):(!n||n.overlayFit.visibleArea<c.visibleArea)&&(n={overlayFit:c,overlayPoint:a,originPoint:r,position:o,overlayRect:e})}if(s.length){let t=null,e=-1;for(const i of s){const s=i.boundingBoxRect.width*i.boundingBoxRect.height*(i.position.weight||1);s>e&&(e=s,t=i)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(n.position,n.originPoint);this._applyPosition(n.position,n.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ot(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 i,s;if("center"==e.originX)i=t.left+t.width/2;else{const s=this._isRtl()?t.right:t.left,n=this._isRtl()?t.left:t.right;i="start"==e.originX?s:n}return s="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:s}}_getOverlayPoint(t,e,i){let s,n;return s="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,n="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+s,y:t.y+n}}_getOverlayFit(t,e,i,s){let{x:n,y:o}=t,r=this._getOffset(s,"x"),a=this._getOffset(s,"y");r&&(n+=r),a&&(o+=a);let c=0-o,h=o+e.height-i.height,l=this._subtractOverflows(e.width,0-n,n+e.width-i.width),d=this._subtractOverflows(e.height,c,h),p=l*d;return{visibleArea:p,isCompletelyWithinViewport:e.width*e.height===p,fitsInViewportVertically:d===e.height,fitsInViewportHorizontally:l==e.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const s=i.bottom-e.y,n=i.right-e.x,o=rt(this._overlayRef.getConfig().minHeight),r=rt(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=r&&r<=n;return(t.fitsInViewportVertically||null!=o&&o<=s)&&a}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const s=this._viewportRect,n=Math.max(t.x+e.width-s.right,0),o=Math.max(t.y+e.height-s.bottom,0),r=Math.max(s.top-i.top-t.y,0),a=Math.max(s.left-i.left-t.x,0);let c=0,h=0;return c=e.width<=s.width?a||-n:t.x<this._viewportMargin?s.left-i.left-t.x:0,h=e.height<=s.height?r||-o:t.y<this._viewportMargin?s.top-i.top-t.y:0,this._previousPushAmount={x:c,y:h},{x:t.x+c,y:t.y+h}}_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(),i=new W(t,e);this._positionChanges.next(i)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,s=t.overlayY;i="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let n=0;n<e.length;n++)e[n].style.transformOrigin=`${i} ${s}`}_calculateBoundingBoxRect(t,e){const i=this._viewportRect,s=this._isRtl();let n,o,r,a,c,h;if("top"===e.overlayY)o=t.y,n=i.height-o+this._viewportMargin;else if("bottom"===e.overlayY)r=i.height-t.y+2*this._viewportMargin,n=i.height-r+this._viewportMargin;else{const e=Math.min(i.bottom-t.y+i.top,t.y),s=this._lastBoundingBoxSize.height;n=2*e,o=t.y-e,n>s&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-s/2)}if("end"===e.overlayX&&!s||"start"===e.overlayX&&s)h=i.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!s||"end"===e.overlayX&&s)c=t.x,a=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),s=this._lastBoundingBoxSize.width;a=2*e,c=t.x-e,a>s&&!this._isInitialRender&&!this._growAfterOpen&&(c=t.x-s/2)}return{top:o,left:c,bottom:r,right:h,width:a,height:n}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,n=this._overlayRef.getConfig().maxWidth;s.height=Object(k.c)(i.height),s.top=Object(k.c)(i.top),s.bottom=Object(k.c)(i.bottom),s.width=Object(k.c)(i.width),s.left=Object(k.c)(i.left),s.right=Object(k.c)(i.right),s.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",s.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(s.maxHeight=Object(k.c)(t)),n&&(s.maxWidth=Object(k.c)(n))}this._lastBoundingBoxSize=i,ot(this._boundingBox.style,s)}_resetBoundingBoxStyles(){ot(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ot(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},s=this._hasExactPosition(),n=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(s){const s=this._viewportRuler.getViewportScrollPosition();ot(i,this._getExactOverlayY(e,t,s)),ot(i,this._getExactOverlayX(e,t,s))}else i.position="static";let r="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(r+=`translateX(${a}px) `),c&&(r+=`translateY(${c}px)`),i.transform=r.trim(),o.maxHeight&&(s?i.maxHeight=Object(k.c)(o.maxHeight):n&&(i.maxHeight="")),o.maxWidth&&(s?i.maxWidth=Object(k.c)(o.maxWidth):n&&(i.maxWidth="")),ot(this._pane.style,i)}_getExactOverlayY(t,e,i){let s={top:"",bottom:""},n=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(n=this._pushOverlayOnScreen(n,this._overlayRect,i));let o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return n.y-=o,"bottom"===t.overlayY?s.bottom=this._document.documentElement.clientHeight-(n.y+this._overlayRect.height)+"px":s.top=Object(k.c)(n.y),s}_getExactOverlayX(t,e,i){let s,n={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),s=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===s?n.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":n.left=Object(k.c)(o.x),n}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:N(t,i),isOriginOutsideView:Y(t,i),isOverlayClipped:N(e,i),isOverlayOutsideView:Y(e,i)}}_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,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach(t=>{Q("originX",t.originX),$("originY",t.originY),Q("overlayX",t.overlayX),$("overlayY",t.overlayY)})}_addPanelClasses(t){this._pane&&Object(k.a)(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 c.p)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function ot(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function rt(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(st);return i&&"px"!==i?null:parseFloat(e)}return t||null}class at{constructor(t,e,i,s,n,o,r){this._preferredPositions=[],this._positionStrategy=new nt(i,s,n,o,r).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e)}get _isRtl(){return"rtl"===this._overlayRef.getDirection()}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,i,s){const n=new U(t,e,i,s);return this._preferredPositions.push(n),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 ct{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,i=this._overlayRef.getConfig(),{width:s,height:n,maxWidth:o,maxHeight:r}=i,a=!("100%"!==s&&"100vw"!==s||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==n&&"100vh"!==n||r&&"100%"!==r&&"100vh"!==r);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,i=e.style;e.classList.remove("cdk-global-overlay-wrapper"),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let ht=(()=>{class t{constructor(t,e,i,s){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=s}global(){return new ct}connectedTo(t,e,i){return new at(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new nt(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(c.ec(O.e),c.ec(s.d),c.ec(P.a),c.ec(et))},t.\u0275prov=Object(c.Qb)({factory:function(){return new t(Object(c.ec)(O.e),Object(c.ec)(s.d),Object(c.ec)(P.a),Object(c.ec)(et))},token:t,providedIn:"root"}),t})(),lt=0,dt=(()=>{class t{constructor(t,e,i,s,n,o,r,a,c,h){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=s,this._keyboardDispatcher=n,this._injector=o,this._ngZone=r,this._document=a,this._directionality=c,this._location=h}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),s=this._createPortalOutlet(i),n=new q(t);return n.direction=n.direction||this._directionality.value,new it(s,e,i,n,this._ngZone,this._keyboardDispatcher,this._document,this._location)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+lt++,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(c.g)),new L(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(c.ec(J),c.ec(et),c.ec(c.m),c.ec(ht),c.ec(K),c.ec(c.v),c.ec(c.F),c.ec(s.d),c.ec(C.b),c.ec(s.h,8))},t.\u0275prov=c.Qb({token:t,factory:function(e){return t.\u0275fac(e)}}),t})();const pt={provide:new c.u("cdk-connected-overlay-scroll-strategy"),deps:[dt],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let ut=(()=>{class t{}return t.\u0275mod=c.Sb({type:t}),t.\u0275inj=c.Rb({factory:function(e){return new(e||t)},providers:[dt,pt],imports:[[C.a,D,O.d],O.d]}),t})();var gt=i("u47x"),_t=i("itXk"),ft=i("GyhO"),mt=i("HDdC"),bt=i("7o/Q");class yt{constructor(t){this.total=t}call(t,e){return e.subscribe(new vt(t,this.total))}}class vt extends bt.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}var wt=i("Kj3r"),xt=i("lJxs"),Ot=i("JX91");const Pt=new Set;let Ct,kt=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Rt}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!Pt.has(t))try{Ct||(Ct=document.createElement("style"),Ct.setAttribute("type","text/css"),document.head.appendChild(Ct)),Ct.sheet&&(Ct.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),Pt.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(c.ec(P.a))},t.\u0275prov=Object(c.Qb)({factory:function(){return new t(Object(c.ec)(P.a))},token:t,providedIn:"root"}),t})();function Rt(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let St=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new T.a}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return jt(Object(k.a)(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=jt(Object(k.a)(t)).map(t=>this._registerQuery(t).observable);let i=Object(_t.a)(e);return i=Object(ft.a)(i.pipe(Object(F.a)(1)),i.pipe(t=>t.lift(new yt(1)),Object(wt.a)(0))),i.pipe(Object(xt.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),i={observable:new mt.a(t=>{const i=e=>this._zone.run(()=>t.next(e));return e.addListener(i),()=>{e.removeListener(i)}}).pipe(Object(Ot.a)(e),Object(xt.a)(e=>({query:t,matches:e.matches})),Object(H.a)(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(c.ec(kt),c.ec(c.F))},t.\u0275prov=Object(c.Qb)({factory:function(){return new t(Object(c.ec)(kt),Object(c.ec)(c.F))},token:t,providedIn:"root"}),t})();function jt(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}var Et=i("R0Ic");const It={tooltipState:Object(Et.k)("state",[Object(Et.h)("initial, void, hidden",Object(Et.i)({opacity:0,transform:"scale(0)"})),Object(Et.h)("visible",Object(Et.i)({transform:"scale(1)"})),Object(Et.j)("* => visible",Object(Et.e)("200ms cubic-bezier(0, 0, 0.2, 1)",Object(Et.f)([Object(Et.i)({opacity:0,transform:"scale(0)",offset:0}),Object(Et.i)({opacity:.5,transform:"scale(0.99)",offset:.5}),Object(Et.i)({opacity:1,transform:"scale(1)",offset:1})]))),Object(Et.j)("* => hidden",Object(Et.e)("100ms cubic-bezier(0, 0, 0.2, 1)",Object(Et.i)({opacity:0})))])},Lt=Object(P.f)({passive:!0});function Dt(t){return Error(`Tooltip position "${t}" is invalid.`)}const Tt=new c.u("mat-tooltip-scroll-strategy"),At={provide:Tt,deps:[dt],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},Bt=new c.u("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Ft=(()=>{class t{constructor(t,e,i,s,n,o,r,a,c,h,l){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=s,this._ngZone=n,this._platform=o,this._ariaDescriber=r,this._focusMonitor=a,this._dir=h,this._defaultOptions=l,this._position="below",this._disabled=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=new Map,this._destroyed=new T.a,this._handleKeydown=t=>{this._isTooltipVisible()&&t.keyCode===M.d&&!Object(M.m)(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=c,l&&(l.position&&(this.position=l.position),l.touchGestures&&(this.touchGestures=l.touchGestures)),n.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(k.b)(t),this._disabled&&this.hide(0)}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._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._setupPointerEvents(),this._focusMonitor.monitor(this._elementRef).pipe(Object(H.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,i)=>{t.removeEventListener(i,e,Lt)}),this._passiveListeners.clear(),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 j(Ht,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Object(H.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(H.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(H.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(),i=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),i.main),Object.assign(Object.assign({},e.fallback),i.fallback)])}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;if("above"==e||"below"==e)i={originX:"center",originY:"above"==e?"top":"bottom"};else if("before"==e||"left"==e&&t||"right"==e&&!t)i={originX:"start",originY:"center"};else{if(!("after"==e||"right"==e&&t||"left"==e&&!t))throw Dt(e);i={originX:"end",originY:"center"}}const{x:s,y:n}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:s,originY:n}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;if("above"==e)i={overlayX:"center",overlayY:"bottom"};else if("below"==e)i={overlayX:"center",overlayY:"top"};else if("before"==e||"left"==e&&t||"right"==e&&!t)i={overlayX:"end",overlayY:"center"};else{if(!("after"==e||"right"==e&&t||"left"==e&&!t))throw Dt(e);i={overlayX:"start",overlayY:"center"}}const{x:s,y:n}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:s,overlayY:n}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(Object(F.a)(1),Object(H.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}}_setupPointerEvents(){if(this._platform.IOS||this._platform.ANDROID){if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};this._passiveListeners.set("touchend",t).set("touchcancel",t).set("touchstart",()=>{clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)})}}else this._passiveListeners.set("mouseenter",()=>this.show()).set("mouseleave",()=>this.hide());this._passiveListeners.forEach((t,e)=>{this._elementRef.nativeElement.addEventListener(e,t,Lt)})}_disableNativeGesturesIfNecessary(){const t=this._elementRef.nativeElement,e=t.style,i=this.touchGestures;"off"!==i&&(("on"===i||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(e.userSelect=e.msUserSelect=e.webkitUserSelect=e.MozUserSelect="none"),"on"!==i&&t.draggable||(e.webkitUserDrag="none"),e.touchAction="none",e.webkitTapHighlightColor="transparent")}}return t.\u0275fac=function(e){return new(e||t)(c.Ub(dt),c.Ub(c.p),c.Ub(O.c),c.Ub(c.X),c.Ub(c.F),c.Ub(P.a),c.Ub(gt.b),c.Ub(gt.c),c.Ub(Tt),c.Ub(C.b,8),c.Ub(Bt,8))},t.\u0275dir=c.Pb({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})(),Ht=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new T.a,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}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)(c.Ub(c.j),c.Ub(St))},t.\u0275cmp=c.Ob({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&c.ic("click",(function(){return e._handleBodyInteraction()}),!1,c.wc),2&t&&c.Dc("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(c.ac(0,"div",0),c.ic("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),c.lc(1,"async"),c.Gc(2),c.Zb()),2&t){var i;const t=null==(i=c.mc(1,5,e._isHandset))?null:i.matches;c.Lb("mat-tooltip-handset",t),c.qc("ngClass",e.tooltipClass)("@state",e._visibility),c.Jb(2),c.Hc(e.message)}},directives:[s.j],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:[It.tooltipState]},changeDetection:0}),t})(),Mt=(()=>{class t{}return t.\u0275mod=c.Sb({type:t}),t.\u0275inj=c.Rb({factory:function(e){return new(e||t)},providers:[At],imports:[[gt.a,s.c,ut,a.c],a.c,O.b]}),t})();function Zt(t,e){if(1&t){var i=c.bc();c.ac(0,"a",11),c.ic("keyup.enter",(function(){return c.yc(i),c.kc(3),c.vc(1).previous()}))("click",(function(){return c.yc(i),c.kc(3),c.vc(1).previous()})),c.Gc(1),c.ac(2,"span",12),c.Gc(3),c.Zb(),c.Zb()}if(2&t){var s=c.kc(3);c.Kb("aria-label",s.previousLabel+" "+s.screenReaderPageLabel),c.Jb(1),c.Ic(" ",s.previousLabel," "),c.Jb(2),c.Hc(s.screenReaderPageLabel)}}function zt(t,e){if(1&t&&(c.ac(0,"span"),c.Gc(1),c.ac(2,"span",12),c.Gc(3),c.Zb(),c.Zb()),2&t){var i=c.kc(3);c.Jb(1),c.Ic(" ",i.previousLabel," "),c.Jb(2),c.Hc(i.screenReaderPageLabel)}}function Vt(t,e){if(1&t&&(c.ac(0,"li",8),c.Ec(1,Zt,4,3,"a",9),c.Ec(2,zt,4,2,"span",10),c.Zb()),2&t){c.kc(2);var i=c.vc(1);c.Lb("disabled",i.isFirstPage()),c.Jb(1),c.qc("ngIf",1<i.getCurrent()),c.Jb(1),c.qc("ngIf",i.isFirstPage())}}function Xt(t,e){if(1&t){var i=c.bc();c.ac(0,"a",11),c.ic("keyup.enter",(function(){c.yc(i);var t=c.kc().$implicit;return c.kc(2),c.vc(1).setCurrent(t.value)}))("click",(function(){c.yc(i);var t=c.kc().$implicit;return c.kc(2),c.vc(1).setCurrent(t.value)})),c.ac(1,"span",12),c.Gc(2),c.Zb(),c.ac(3,"span"),c.Gc(4),c.lc(5,"number"),c.Zb(),c.Zb()}if(2&t){var s=c.kc().$implicit,n=c.kc(2);c.Jb(2),c.Ic("",n.screenReaderPageLabel," "),c.Jb(2),c.Hc("..."===s.label?s.label:c.nc(5,2,s.label,""))}}function Yt(t,e){if(1&t&&(c.Yb(0),c.ac(1,"span",12),c.Gc(2),c.Zb(),c.ac(3,"span"),c.Gc(4),c.lc(5,"number"),c.Zb(),c.Xb()),2&t){var i=c.kc().$implicit,s=c.kc(2);c.Jb(2),c.Ic("",s.screenReaderCurrentLabel," "),c.Jb(2),c.Hc("..."===i.label?i.label:c.nc(5,2,i.label,""))}}function Nt(t,e){if(1&t&&(c.ac(0,"li"),c.Ec(1,Xt,6,5,"a",9),c.Ec(2,Yt,6,5,"ng-container",10),c.Zb()),2&t){var i=e.$implicit;c.kc(2);var s=c.vc(1);c.Lb("current",s.getCurrent()===i.value)("ellipsis","..."===i.label),c.Jb(1),c.qc("ngIf",s.getCurrent()!==i.value),c.Jb(1),c.qc("ngIf",s.getCurrent()===i.value)}}function Gt(t,e){if(1&t){var i=c.bc();c.ac(0,"a",11),c.ic("keyup.enter",(function(){return c.yc(i),c.kc(3),c.vc(1).next()}))("click",(function(){return c.yc(i),c.kc(3),c.vc(1).next()})),c.Gc(1),c.ac(2,"span",12),c.Gc(3),c.Zb(),c.Zb()}if(2&t){var s=c.kc(3);c.Kb("aria-label",s.nextLabel+" "+s.screenReaderPageLabel),c.Jb(1),c.Ic(" ",s.nextLabel," "),c.Jb(2),c.Hc(s.screenReaderPageLabel)}}function Jt(t,e){if(1&t&&(c.ac(0,"span"),c.Gc(1),c.ac(2,"span",12),c.Gc(3),c.Zb(),c.Zb()),2&t){var i=c.kc(3);c.Jb(1),c.Ic(" ",i.nextLabel," "),c.Jb(2),c.Hc(i.screenReaderPageLabel)}}function qt(t,e){if(1&t&&(c.ac(0,"li",13),c.Ec(1,Gt,4,3,"a",9),c.Ec(2,Jt,4,2,"span",10),c.Zb()),2&t){c.kc(2);var i=c.vc(1);c.Lb("disabled",i.isLastPage()),c.Jb(1),c.qc("ngIf",!i.isLastPage()),c.Jb(1),c.qc("ngIf",i.isLastPage())}}function Ut(t,e){if(1&t&&(c.ac(0,"ul",3),c.Ec(1,Vt,3,4,"li",4),c.ac(2,"li",5),c.Gc(3),c.Zb(),c.Ec(4,Nt,3,6,"li",6),c.Ec(5,qt,3,4,"li",7),c.Zb()),2&t){var i=c.kc(),s=c.vc(1);c.Lb("responsive",i.responsive),c.Kb("aria-label",i.screenReaderPaginationLabel),c.Jb(1),c.qc("ngIf",i.directionLinks),c.Jb(2),c.Jc(" ",s.getCurrent()," / ",s.getLastPage()," "),c.Jb(1),c.qc("ngForOf",s.pages),c.Jb(1),c.qc("ngIf",i.directionLinks)}}var Wt=function(){function t(){this.change=new c.r,this.instances={},this.DEFAULT_ID="DEFAULT_PAGINATION_ID"}return t.prototype.defaultId=function(){return this.DEFAULT_ID},t.prototype.register=function(t){return null==t.id&&(t.id=this.DEFAULT_ID),this.instances[t.id]?this.updateInstance(t):(this.instances[t.id]=t,!0)},t.prototype.updateInstance=function(t){var e=!1;for(var i in this.instances[t.id])t[i]!==this.instances[t.id][i]&&(this.instances[t.id][i]=t[i],e=!0);return e},t.prototype.getCurrentPage=function(t){if(this.instances[t])return this.instances[t].currentPage},t.prototype.setCurrentPage=function(t,e){if(this.instances[t]){var i=this.instances[t];e<=Math.ceil(i.totalItems/i.itemsPerPage)&&1<=e&&(this.instances[t].currentPage=e,this.change.emit(t))}},t.prototype.setTotalItems=function(t,e){this.instances[t]&&0<=e&&(this.instances[t].totalItems=e,this.change.emit(t))},t.prototype.setItemsPerPage=function(t,e){this.instances[t]&&(this.instances[t].itemsPerPage=e,this.change.emit(t))},t.prototype.getInstance=function(t){return void 0===t&&(t=this.DEFAULT_ID),this.instances[t]?this.clone(this.instances[t]):{}},t.prototype.clone=function(t){var e={};for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=c.Qb({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),$t=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Qt=Number.MAX_SAFE_INTEGER,Kt=function(){function t(t){this.service=t,this.state={}}return t.prototype.transform=function(t,e){if(!(t instanceof Array)){var i=e.id||this.service.defaultId();return this.state[i]?this.state[i].slice:t}var s,n,o=e.totalItems&&e.totalItems!==t.length,r=this.createInstance(t,e),a=r.id,c=r.itemsPerPage,h=this.service.register(r);if(!o&&t instanceof Array){if(this.stateIsIdentical(a,t,s=(r.currentPage-1)*(c=+c||Qt),n=s+c))return this.state[a].slice;var l=t.slice(s,n);return this.saveState(a,t,l,s,n),this.service.change.emit(a),l}return h&&this.service.change.emit(a),this.saveState(a,t,t,s,n),t},t.prototype.createInstance=function(t,e){return this.checkConfig(e),{id:null!=e.id?e.id:this.service.defaultId(),itemsPerPage:+e.itemsPerPage||0,currentPage:+e.currentPage||1,totalItems:+e.totalItems||t.length}},t.prototype.checkConfig=function(t){var e=["itemsPerPage","currentPage"].filter((function(e){return!(e in t)}));if(0<e.length)throw new Error("PaginatePipe: Argument is missing the following required properties: "+e.join(", "))},t.prototype.saveState=function(t,e,i,s,n){this.state[t]={collection:e,size:e.length,slice:i,start:s,end:n}},t.prototype.stateIsIdentical=function(t,e,i,s){var n=this.state[t];return!!n&&!(n.size!==e.length||n.start!==i||n.end!==s)&&n.slice.every((function(t,s){return t===e[i+s]}))},(t=function(t,e,i,s){var n,o=arguments.length,r=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r}([$t("design:paramtypes",[Wt])],t)).\u0275fac=function(e){return new(e||t)(c.Ub(Wt))},t.\u0275pipe=c.Tb({name:"paginate",type:t,pure:!1}),t}(),te=function(t,e,i,s){var n,o=arguments.length,r=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r},ee=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};function ie(t){return!!t&&"false"!==t}var se=function(){function t(){this.maxSize=7,this.previousLabel="Previous",this.nextLabel="Next",this.screenReaderPaginationLabel="Pagination",this.screenReaderPageLabel="page",this.screenReaderCurrentLabel="You're on page",this.pageChange=new c.r,this.pageBoundsCorrection=new c.r,this._directionLinks=!0,this._autoHide=!1,this._responsive=!1}return Object.defineProperty(t.prototype,"directionLinks",{get:function(){return this._directionLinks},set:function(t){this._directionLinks=ie(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autoHide",{get:function(){return this._autoHide},set:function(t){this._autoHide=ie(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"responsive",{get:function(){return this._responsive},set:function(t){this._responsive=ie(t)},enumerable:!0,configurable:!0}),te([Object(c.w)(),ee("design:type",String)],t.prototype,"id",void 0),te([Object(c.w)(),ee("design:type",Number)],t.prototype,"maxSize",void 0),te([Object(c.w)(),ee("design:type",Boolean),ee("design:paramtypes",[Boolean])],t.prototype,"directionLinks",null),te([Object(c.w)(),ee("design:type",Boolean),ee("design:paramtypes",[Boolean])],t.prototype,"autoHide",null),te([Object(c.w)(),ee("design:type",Boolean),ee("design:paramtypes",[Boolean])],t.prototype,"responsive",null),te([Object(c.w)(),ee("design:type",String)],t.prototype,"previousLabel",void 0),te([Object(c.w)(),ee("design:type",String)],t.prototype,"nextLabel",void 0),te([Object(c.w)(),ee("design:type",String)],t.prototype,"screenReaderPaginationLabel",void 0),te([Object(c.w)(),ee("design:type",String)],t.prototype,"screenReaderPageLabel",void 0),te([Object(c.w)(),ee("design:type",String)],t.prototype,"screenReaderCurrentLabel",void 0),te([Object(c.H)(),ee("design:type",c.r)],t.prototype,"pageChange",void 0),te([Object(c.H)(),ee("design:type",c.r)],t.prototype,"pageBoundsCorrection",void 0),t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=c.Ob({type:t,selectors:[["pagination-controls"]],inputs:{maxSize:"maxSize",previousLabel:"previousLabel",nextLabel:"nextLabel",screenReaderPaginationLabel:"screenReaderPaginationLabel",screenReaderPageLabel:"screenReaderPageLabel",screenReaderCurrentLabel:"screenReaderCurrentLabel",directionLinks:"directionLinks",autoHide:"autoHide",responsive:"responsive",id:"id"},outputs:{pageChange:"pageChange",pageBoundsCorrection:"pageBoundsCorrection"},decls:3,vars:3,consts:[[3,"id","maxSize","pageChange","pageBoundsCorrection"],["p","paginationApi"],["class","ngx-pagination","role","navigation",3,"responsive",4,"ngIf"],["role","navigation",1,"ngx-pagination"],["class","pagination-previous",3,"disabled",4,"ngIf"],[1,"small-screen"],[3,"current","ellipsis",4,"ngFor","ngForOf"],["class","pagination-next",3,"disabled",4,"ngIf"],[1,"pagination-previous"],["tabindex","0",3,"keyup.enter","click",4,"ngIf"],[4,"ngIf"],["tabindex","0",3,"keyup.enter","click"],[1,"show-for-sr"],[1,"pagination-next"]],template:function(t,e){if(1&t&&(c.ac(0,"pagination-template",0,1),c.ic("pageChange",(function(t){return e.pageChange.emit(t)}))("pageBoundsCorrection",(function(t){return e.pageBoundsCorrection.emit(t)})),c.Ec(2,Ut,6,8,"ul",2),c.Zb()),2&t){var i=c.vc(1);c.qc("id",e.id)("maxSize",e.maxSize),c.Jb(2),c.qc("ngIf",!(e.autoHide&&i.pages.length<=1))}},directives:function(){return[re,s.l,s.k]},pipes:function(){return[s.e]},styles:["\n.ngx-pagination {\n margin-left: 0;\n margin-bottom: 1rem; }\n .ngx-pagination::before, .ngx-pagination::after {\n content: ' ';\n display: table; }\n .ngx-pagination::after {\n clear: both; }\n .ngx-pagination li {\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n margin-right: 0.0625rem;\n border-radius: 0; }\n .ngx-pagination li {\n display: inline-block; }\n .ngx-pagination a,\n .ngx-pagination button {\n color: #0a0a0a; \n display: block;\n padding: 0.1875rem 0.625rem;\n border-radius: 0; }\n .ngx-pagination a:hover,\n .ngx-pagination button:hover {\n background: #e6e6e6; }\n .ngx-pagination .current {\n padding: 0.1875rem 0.625rem;\n background: #2199e8;\n color: #fefefe;\n cursor: default; }\n .ngx-pagination .disabled {\n padding: 0.1875rem 0.625rem;\n color: #cacaca;\n cursor: default; } \n .ngx-pagination .disabled:hover {\n background: transparent; }\n .ngx-pagination a, .ngx-pagination button {\n cursor: pointer; }\n\n.ngx-pagination .pagination-previous a::before,\n.ngx-pagination .pagination-previous.disabled::before { \n content: '\xab';\n display: inline-block;\n margin-right: 0.5rem; }\n\n.ngx-pagination .pagination-next a::after,\n.ngx-pagination .pagination-next.disabled::after {\n content: '\xbb';\n display: inline-block;\n margin-left: 0.5rem; }\n\n.ngx-pagination .show-for-sr {\n position: absolute !important;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0); }\n.ngx-pagination .small-screen {\n display: none; }\n@media screen and (max-width: 601px) {\n .ngx-pagination.responsive .small-screen {\n display: inline-block; } \n .ngx-pagination.responsive li:not(.small-screen):not(.pagination-previous):not(.pagination-next) {\n display: none; }\n}\n "],encapsulation:2,changeDetection:0}),t}(),ne=function(t,e,i,s){var n,o=arguments.length,r=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r},oe=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},re=function(){function t(t,e){var i=this;this.service=t,this.changeDetectorRef=e,this.maxSize=7,this.pageChange=new c.r,this.pageBoundsCorrection=new c.r,this.pages=[],this.changeSub=this.service.change.subscribe((function(t){i.id===t&&(i.updatePageLinks(),i.changeDetectorRef.markForCheck(),i.changeDetectorRef.detectChanges())}))}return t.prototype.ngOnInit=function(){void 0===this.id&&(this.id=this.service.defaultId()),this.updatePageLinks()},t.prototype.ngOnChanges=function(t){this.updatePageLinks()},t.prototype.ngOnDestroy=function(){this.changeSub.unsubscribe()},t.prototype.previous=function(){this.checkValidId(),this.setCurrent(this.getCurrent()-1)},t.prototype.next=function(){this.checkValidId(),this.setCurrent(this.getCurrent()+1)},t.prototype.isFirstPage=function(){return 1===this.getCurrent()},t.prototype.isLastPage=function(){return this.getLastPage()===this.getCurrent()},t.prototype.setCurrent=function(t){this.pageChange.emit(t)},t.prototype.getCurrent=function(){return this.service.getCurrentPage(this.id)},t.prototype.getLastPage=function(){var t=this.service.getInstance(this.id);return t.totalItems<1?1:Math.ceil(t.totalItems/t.itemsPerPage)},t.prototype.getTotalItems=function(){return this.service.getInstance(this.id).totalItems},t.prototype.checkValidId=function(){null==this.service.getInstance(this.id).id&&console.warn('PaginationControlsDirective: the specified id "'+this.id+'" does not match any registered PaginationInstance')},t.prototype.updatePageLinks=function(){var t=this,e=this.service.getInstance(this.id),i=this.outOfBoundCorrection(e);i!==e.currentPage?setTimeout((function(){t.pageBoundsCorrection.emit(i),t.pages=t.createPageArray(e.currentPage,e.itemsPerPage,e.totalItems,t.maxSize)})):this.pages=this.createPageArray(e.currentPage,e.itemsPerPage,e.totalItems,this.maxSize)},t.prototype.outOfBoundCorrection=function(t){var e=Math.ceil(t.totalItems/t.itemsPerPage);return e<t.currentPage&&0<e?e:t.currentPage<1?1:t.currentPage},t.prototype.createPageArray=function(t,e,i,s){s=+s;for(var n=[],o=Math.ceil(i/e),r=Math.ceil(s/2),a=t<=r,c=o-r<t,h=!a&&!c,l=s<o,d=1;d<=o&&d<=s;){var p=this.calculatePageNumber(d,t,s,o);n.push({label:l&&(2===d&&(h||c)||d===s-1&&(h||a))?"...":p,value:p}),d++}return n},t.prototype.calculatePageNumber=function(t,e,i,s){var n=Math.ceil(i/2);return t===i?s:1===t?t:i<s?s-n<e?s-i+t:n<e?e-n+t:t:t},ne([Object(c.w)(),oe("design:type",String)],t.prototype,"id",void 0),ne([Object(c.w)(),oe("design:type",Number)],t.prototype,"maxSize",void 0),ne([Object(c.H)(),oe("design:type",c.r)],t.prototype,"pageChange",void 0),ne([Object(c.H)(),oe("design:type",c.r)],t.prototype,"pageBoundsCorrection",void 0),(t=ne([oe("design:paramtypes",[Wt,c.j])],t)).\u0275fac=function(e){return new(e||t)(c.Ub(Wt),c.Ub(c.j))},t.\u0275dir=c.Pb({type:t,selectors:[["pagination-template"],["","pagination-template",""]],inputs:{maxSize:"maxSize",id:"id"},outputs:{pageChange:"pageChange",pageBoundsCorrection:"pageBoundsCorrection"},exportAs:["paginationApi"],features:[c.Hb]}),t}(),ae=function(){function t(){}return t.\u0275mod=c.Sb({type:t}),t.\u0275inj=c.Rb({factory:function(e){return new(e||t)},providers:[Wt],imports:[[s.c]]}),t}(),ce=i("tyNb"),he=i("ljj1"),le=i("9lff"),de=i("AcyG"),pe=i("XiUz");const ue=["top2"],ge=["old"],_e=function(t){return{post:t}};function fe(t,e){if(1&t&&(c.ac(0,"mat-card",14),c.Wb(1,15),c.Zb()),2&t){const t=e.$implicit;c.kc();const i=c.vc(17);c.Jb(1),c.qc("ngTemplateOutlet",i)("ngTemplateOutletContext",c.tc(2,_e,t))}}function me(t,e){if(1&t&&(c.ac(0,"span",16),c.ac(1,"mat-card",17),c.Wb(2,15),c.Zb(),c.Zb()),2&t){const t=e.$implicit;c.kc();const i=c.vc(17);c.Jb(2),c.qc("ngTemplateOutlet",i)("ngTemplateOutletContext",c.tc(2,_e,t))}}function be(t,e){if(1&t&&(c.ac(0,"a",24),c.Vb(1,"mat-icon",25),c.Zb()),2&t){const t=c.kc().post;c.qc("href",t.github,c.zc)}}function ye(t,e){1&t&&(c.ac(0,"button",26),c.Vb(1,"mat-icon",27),c.Zb())}function ve(t,e){if(1&t){const t=c.bc();c.Vb(0,"img",18),c.ac(1,"mat-card-header"),c.Vb(2,"mat-icon",19),c.ac(3,"mat-card-title"),c.Gc(4),c.Zb(),c.ac(5,"mat-card-subtitle"),c.Gc(6),c.Zb(),c.Zb(),c.ac(7,"mat-card-content"),c.ac(8,"p"),c.Gc(9),c.Zb(),c.Zb(),c.ac(10,"mat-card-actions"),c.ac(11,"button",20),c.ic("click",(function(){c.yc(t);const i=e.post;return c.kc().onPost(i)})),c.Gc(12,"Continue reading"),c.Zb(),c.Vb(13,"span",21),c.Ec(14,be,2,1,"a",22),c.Ec(15,ye,2,0,"button",23),c.Zb()}if(2&t){const t=e.post;c.qc("src",t.image,c.zc),c.Jb(2),c.rc("svgIcon","app:",t.icon,""),c.Jb(2),c.Hc(t.title),c.Jb(2),c.Hc(t.subTitle),c.Jb(3),c.Ic(" ",t.description," "),c.Jb(5),c.qc("ngIf",t.github),c.Jb(1),c.qc("ngIf",t.youtube)}}const we=function(t){return{itemsPerPage:6,currentPage:t}},xe=[{path:"",component:(()=>{class t{constructor(t,e){this.router=t,this.store=e,this.p=1}ngOnInit(){let t=[...Object(le.a)().values()];this.featured=t.slice(0,2),this.all=t.slice(2)}onPost(t){this.store.dispatch(new he.b(t)),this.router.navigate(["post/"+t.url])}onPageChange(t){this.p=t,this.old.nativeElement.scrollIntoView({behavior:"smooth"})}onScroll(t){}}return t.\u0275fac=function(e){return new(e||t)(c.Ub(ce.b),c.Ub(de.i))},t.\u0275cmp=c.Ob({type:t,selectors:[["app-home"]],viewQuery:function(t,e){var i;1&t&&(c.Cc(ue,!0),c.Cc(ge,!0)),2&t&&(c.uc(i=c.jc())&&(e.el=i.first),c.uc(i=c.jc())&&(e.old=i.first))},decls:18,vars:7,consts:[[1,"tint-image"],["fxLayoutAlign","center center","fxLayout","column",2,"width","100%","height","80vh"],[1,"mat-display-4","white"],[1,"mat-display-2","white"],["fxLayout","column","fxLayoutGap","2vh",1,"posts","page"],["top2",""],["fxLayout","row","fxLayout.xs","column","fxLayoutGap","1vw"],["class","scale-in-center","fxFlex.xs","100","fxFlex","49",4,"ngFor","ngForOf"],["fxLayout","row wrap","fxLayoutAlign","space-between center"],["old",""],["fxFlex.xs","100","fxFlex","32","fxLayout.xs","column","class","slide-in-top",4,"ngFor","ngForOf"],["fxLayoutAlign","center center"],[3,"pageChange"],["cardContent",""],["fxFlex.xs","100","fxFlex","49",1,"scale-in-center"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["fxFlex.xs","100","fxFlex","32","fxLayout.xs","column",1,"slide-in-top"],[1,"small-cards"],["mat-card-image","","alt","Photo of somewhere",1,"first-post-img",3,"src"],["mat-card-avatar","",3,"svgIcon"],["mat-button","",3,"click"],["fxFlex",""],["mat-icon-button","","target","_blank","matTooltip","Source code in Githuub",3,"href",4,"ngIf"],["mat-icon-button","","matTooltip","Youtube video",4,"ngIf"],["mat-icon-button","","target","_blank","matTooltip","Source code in Githuub",3,"href"],["svgIcon","app:github"],["mat-icon-button","","matTooltip","Youtube video"],["svgIcon","app:youtube"]],template:function(t,e){1&t&&(c.ac(0,"div",0),c.ac(1,"div",1),c.ac(2,"h1",2),c.Gc(3,"Technology as a service"),c.Zb(),c.ac(4,"h2",3),c.Gc(5," Sharing our knowledge "),c.Zb(),c.Zb(),c.Zb(),c.ac(6,"div",4,5),c.ac(8,"div",6),c.Ec(9,fe,2,4,"mat-card",7),c.Zb(),c.ac(10,"div",8,9),c.Ec(12,me,3,4,"span",10),c.lc(13,"paginate"),c.Zb(),c.ac(14,"div",11),c.ac(15,"pagination-controls",12),c.ic("pageChange",(function(t){return e.onPageChange(t)})),c.Zb(),c.Zb(),c.Zb(),c.Ec(16,ve,16,7,"ng-template",null,13,c.Fc)),2&t&&(c.Jb(9),c.qc("ngForOf",e.featured),c.Jb(3),c.qc("ngForOf",c.nc(13,2,e.all,c.tc(5,we,e.p))))},directives:[pe.b,pe.c,pe.d,s.k,se,y,pe.a,s.p,m,v,x.a,b,g,_,u,f,o.b,s.l,o.a,Ft],pipes:[Kt],styles:[".posts[_ngcontent-%COMP%]{padding-top:72px}.profile[_ngcontent-%COMP%]{border-radius:50%;width:15%;margin-bottom:2vh}.small-cards[_ngcontent-%COMP%]{margin-top:2vh}.tint-image[_ngcontent-%COMP%]{background:linear-gradient(rgba(0,0,0,.45),rgba(0,0,0,.45)),url(/assets/img/alessandro-pacilio-x-8qGCHJMGQ-unsplash.jpg);background-size:cover;min-height:80vh;background-repeat:no-repeat}.first-post-img[_ngcontent-%COMP%]{height:40vh;-o-object-fit:cover;object-fit:cover}.scale-in-center[_ngcontent-%COMP%]{-webkit-animation:scale-in-center .5s cubic-bezier(.25,.46,.45,.94) both;animation:scale-in-center .5s cubic-bezier(.25,.46,.45,.94) both}@-webkit-keyframes scale-in-center{0%{transform:scale(0);opacity:1}to{transform:scale(1);opacity:1}}@keyframes scale-in-center{0%{transform:scale(0);opacity:1}to{transform:scale(1);opacity:1}}.slide-in-top[_ngcontent-%COMP%]{-webkit-animation:slide-in-top .6s cubic-bezier(.25,.46,.45,.94) both;animation:slide-in-top .6s cubic-bezier(.25,.46,.45,.94) both}@-webkit-keyframes slide-in-top{0%{transform:translateY(-50%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes slide-in-top{0%{transform:translateY(-50%);opacity:0}to{transform:translateY(0);opacity:1}}@media screen and (min-width:0px) and (max-width:599.99px){.mat-display-4[_ngcontent-%COMP%]{font-size:40px}.mat-display-2[_ngcontent-%COMP%]{font-size:30px}.posts[_ngcontent-%COMP%]{padding-top:2vh}.small-cards[_ngcontent-%COMP%]{margin-top:1vh}}"]}),t})()}];let Oe=(()=>{class t{}return t.\u0275mod=c.Sb({type:t}),t.\u0275inj=c.Rb({factory:function(e){return new(e||t)},imports:[[ce.e.forChild(xe)],ce.e]}),t})(),Pe=(()=>{class t{}return t.\u0275mod=c.Sb({type:t}),t.\u0275inj=c.Rb({factory:function(e){return new(e||t)},imports:[[s.c,Oe,ae,n.a,w,x.b,o.c,Mt]]}),t})()}}]);