p3x-redis-ui-material
Version:
💿 The p3x-redis-ui-material web interface that connects to the p3x-redis-ui-server via http and socket.io
1 lines • 98.1 kB
JavaScript
"use strict";(self.webpackChunkp3x_redis_ui_material=self.webpackChunkp3x_redis_ui_material||[]).push([[975],{30975(t,a,e){e.d(a,{RI:()=>It,T8:()=>yt,mq:()=>dt});var n=e(66522),i=e(33074),o=e(86311),r=e(42864),s=e(39545),d=e(76079),c=e(30592),l=e(72089),m=e(35740),b=e(197),p=e(51218),h=e(24698),g=e(11228),u=e(22512),_=e(56805),v=e(30372),f=e(15376),y=e(28539),x=e(31430),k=e(87661),C=e(90889),w=e(39419),I=e(90756),T=e(71872),D=e(62641),L=e(40528),B=e(99258),R=e(3677),P=e(22712),A=e(8832),E=e(77056),M=e(79614),S=e(47651),W=e(35412);const z=["*"];function Q(t,a){1&t&&p.SdG(0)}const N=["tabListContainer"],G=["tabList"],F=["tabListInner"],j=["nextPaginator"],H=["previousPaginator"],X=["content"];function $(t,a){}const V=["tabBodyWrapper"],O=["tabHeader"];function U(t,a){}function K(t,a){if(1&t&&p.DNE(0,U,0,0,"ng-template",12),2&t){const t=p.XpG().$implicit;p.Y8G("cdkPortalOutlet",t.templateLabel)}}function Z(t,a){if(1&t&&p.EFF(0),2&t){const t=p.XpG().$implicit;p.JRh(t.textLabel)}}function Y(t,a){if(1&t){const t=p.RV6();p.j41(0,"div",7,2),p.bIt("click",(function(){const a=h.eBV(t),e=a.$implicit,n=a.$index,i=p.XpG(),o=p.sdS(1);return h.Njj(i._handleClick(e,o,n))}))("cdkFocusChange",(function(a){const e=h.eBV(t).$index,n=p.XpG();return h.Njj(n._tabFocusChanged(a,e))})),p.nrm(2,"span",8)(3,"div",9),p.j41(4,"span",10)(5,"span",11),p.nVh(6,K,1,1,null,12)(7,Z,1,1),p.k0s()()()}if(2&t){const t=a.$implicit,e=a.$index,n=p.sdS(1),i=p.XpG();p.HbH(t.labelClass),p.AVh("mdc-tab--active",i.selectedIndex===e),p.Y8G("id",i._getTabLabelId(t,e))("disabled",t.disabled)("fitInkBarToContent",i.fitInkBarToContent),p.BMQ("tabIndex",i._getTabIndex(e))("aria-posinset",e+1)("aria-setsize",i._tabs.length)("aria-controls",i._getTabContentId(e))("aria-selected",i.selectedIndex===e)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),p.R7$(3),p.Y8G("matRippleTrigger",n)("matRippleDisabled",t.disabled||i.disableRipple),p.R7$(3),p.vxM(t.templateLabel?6:7)}}function q(t,a){1&t&&p.SdG(0)}function J(t,a){if(1&t){const t=p.RV6();p.j41(0,"mat-tab-body",13),p.bIt("_onCentered",(function(){h.eBV(t);const a=p.XpG();return h.Njj(a._removeTabBodyWrapperHeight())}))("_onCentering",(function(a){h.eBV(t);const e=p.XpG();return h.Njj(e._setTabBodyWrapperHeight(a))}))("_beforeCentering",(function(a){h.eBV(t);const e=p.XpG();return h.Njj(e._bodyCentered(a))})),p.k0s()}if(2&t){const t=a.$implicit,e=a.$index,n=p.XpG();p.HbH(t.bodyClass),p.Y8G("id",n._getTabContentId(e))("content",t.content)("position",t.position)("animationDuration",n.animationDuration)("preserveContent",n.preserveContent),p.BMQ("tabindex",null!=n.contentTabIndex&&n.selectedIndex===e?n.contentTabIndex:null)("aria-labelledby",n._getTabLabelId(t,e))("aria-hidden",n.selectedIndex!==e)}}const tt=["mat-tab-nav-bar",""],at=["mat-tab-link",""],et=new h.nKC("MatTabContent");class nt{template=(0,h.WQX)(p.C4Q);constructor(){}static ɵfac=function(t){return new(t||nt)};static ɵdir=p.FsC({type:nt,selectors:[["","matTabContent",""]],features:[p.Jv_([{provide:et,useExisting:nt}])]})}("undefined"==typeof ngDevMode||ngDevMode)&&p.cDI(nt,[{type:p.WLR,args:[{selector:"[matTabContent]",providers:[{provide:et,useExisting:nt}]}]}],(()=>[]),null);const it=new h.nKC("MatTabLabel"),ot=new h.nKC("MAT_TAB");class rt extends A.bV{_closestTab=(0,h.WQX)(ot,{optional:!0});static ɵfac=(()=>{let t;return function(a){return(t||(t=p.xGo(rt)))(a||rt)}})();static ɵdir=p.FsC({type:rt,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[p.Jv_([{provide:it,useExisting:rt}]),p.Vt3]})}("undefined"==typeof ngDevMode||ngDevMode)&&p.cDI(rt,[{type:p.WLR,args:[{selector:"[mat-tab-label], [matTabLabel]",providers:[{provide:it,useExisting:rt}]}]}],null,null);const st=new h.nKC("MAT_TAB_GROUP");class dt{_viewContainerRef=(0,h.WQX)(p.c1b);_closestTabGroup=(0,h.WQX)(st,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;id=null;_contentPortal=null;get content(){return this._contentPortal}_stateChanges=new v.B;position=null;origin=null;isActive=!1;constructor(){(0,h.WQX)(E.l).load(M.A)}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new A.VA(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&t._closestTab===this&&(this._templateLabel=t)}static ɵfac=function(t){return new(t||dt)};static ɵcmp=p.VBU({type:dt,selectors:[["mat-tab"]],contentQueries:function(t,a,e){if(1&t&&p.wni(e,rt,5)(e,nt,7,p.C4Q),2&t){let t;p.mGM(t=p.lsd())&&(a.templateLabel=t.first),p.mGM(t=p.lsd())&&(a._explicitContent=t.first)}},viewQuery:function(t,a){if(1&t&&p.GBs(p.C4Q,7),2&t){let t;p.mGM(t=p.lsd())&&(a._implicitContent=t.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(t,a){2&t&&p.BMQ("id",null)},inputs:{disabled:[2,"disabled","disabled",g.L39],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[p.Jv_([{provide:ot,useExisting:dt}]),p.OA$],ngContentSelectors:z,decls:1,vars:0,template:function(t,a){1&t&&(p.NAR(),p.PeT(0,Q,1,0,"ng-template"))},encapsulation:2})}("undefined"==typeof ngDevMode||ngDevMode)&&p.cDI(dt,[{type:p.uAl,args:[{selector:"mat-tab",changeDetection:p.Ngq.Default,encapsulation:p.gXe.None,exportAs:"matTab",providers:[{provide:ot,useExisting:dt}],host:{hidden:"","[attr.id]":"null"},template:"\x3c!-- Create a template for the content of the <mat-tab> so that we can grab a reference to this\n TemplateRef and use it in a Portal to render the tab content in the appropriate place in the\n tab-group. --\x3e\n<ng-template><ng-content></ng-content></ng-template>\n"}]}],(()=>[]),{disabled:[{type:p.pde,args:[{transform:g.L39}]}],templateLabel:[{type:g.kDq,args:[rt]}],_explicitContent:[{type:g.kDq,args:[nt,{read:p.C4Q,static:!0}]}],_implicitContent:[{type:g.Uct,args:[p.C4Q,{static:!0}]}],textLabel:[{type:p.pde,args:["label"]}],ariaLabel:[{type:p.pde,args:["aria-label"]}],ariaLabelledby:[{type:p.pde,args:["aria-labelledby"]}],labelClass:[{type:p.pde}],bodyClass:[{type:p.pde}],id:[{type:p.pde}]});const ct="mdc-tab-indicator--active",lt="mdc-tab-indicator--no-transition";class mt{_items;_currentItem;constructor(t){this._items=t}hide(){this._items.forEach((t=>t.deactivateInkBar())),this._currentItem=void 0}alignToElement(t){const a=this._items.find((a=>a.elementRef.nativeElement===t)),e=this._currentItem;if(a!==e&&(e?.deactivateInkBar(),a)){const t=e?.elementRef.nativeElement.getBoundingClientRect?.();a.activateInkBar(t),this._currentItem=a}}}class bt{_elementRef=(0,h.WQX)(p.aKT);_inkBarElement=null;_inkBarContentElement=null;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(t){this._fitToContent!==t&&(this._fitToContent=t,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(t){const a=this._elementRef.nativeElement;if(!t||!a.getBoundingClientRect||!this._inkBarContentElement)return void a.classList.add(ct);const e=a.getBoundingClientRect(),n=t.width/e.width,i=t.left-e.left;a.classList.add(lt),this._inkBarContentElement.style.setProperty("transform",`translateX(${i}px) scaleX(${n})`),a.getBoundingClientRect(),a.classList.remove(lt),a.classList.add(ct),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(ct)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const t=this._elementRef.nativeElement.ownerDocument||document,a=this._inkBarElement=t.createElement("span"),e=this._inkBarContentElement=t.createElement("span");a.className="mdc-tab-indicator",e.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",a.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){if(!this._inkBarElement&&("undefined"==typeof ngDevMode||ngDevMode))throw Error("Ink bar element has not been created and cannot be appended");const t=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;if(!t&&("undefined"==typeof ngDevMode||ngDevMode))throw Error("Missing element to host the ink bar");t.appendChild(this._inkBarElement)}static ɵfac=function(t){return new(t||bt)};static ɵdir=p.FsC({type:bt,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",g.L39]}})}("undefined"==typeof ngDevMode||ngDevMode)&&p.cDI(bt,[{type:p.WLR}],null,{fitInkBarToContent:[{type:p.pde,args:[{transform:g.L39}]}]});new h.nKC("MatInkBarPositioner",{providedIn:"root",factory:()=>t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})});class pt extends bt{elementRef=(0,h.WQX)(p.aKT);disabled=!1;focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static ɵfac=(()=>{let t;return function(a){return(t||(t=p.xGo(pt)))(a||pt)}})();static ɵdir=p.FsC({type:pt,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,a){2&t&&(p.BMQ("aria-disabled",!!a.disabled),p.AVh("mat-mdc-tab-disabled",a.disabled))},inputs:{disabled:[2,"disabled","disabled",g.L39]},features:[p.Vt3]})}("undefined"==typeof ngDevMode||ngDevMode)&&p.cDI(pt,[{type:p.WLR,args:[{selector:"[matTabLabelWrapper]",host:{"[class.mat-mdc-tab-disabled]":"disabled","[attr.aria-disabled]":"!!disabled"}}]}],null,{disabled:[{type:p.pde,args:[{transform:g.L39}]}]});const ht={passive:!0};class gt{_elementRef=(0,h.WQX)(p.aKT);_changeDetectorRef=(0,h.WQX)(g.gRc);_viewportRuler=(0,h.WQX)(b.Xj);_dir=(0,h.WQX)(s.dS,{optional:!0});_ngZone=(0,h.WQX)(h.SKi);_platform=(0,h.WQX)(m.O);_sharedResizeObserver=(0,h.WQX)(l.a);_injector=(0,h.WQX)(h.zZn);_renderer=(0,h.WQX)(p.sFG);_animationsDisabled=(0,P.Rc)();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new v.B;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged=!1;_keyManager;_currentTextContent;_stopScrolling=new v.B;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(t){const a=isNaN(t)?0:t;this._selectedIndex!=a&&(this._selectedIndexChanged=!0,this._selectedIndex=a,this._keyManager&&this._keyManager.updateActiveItem(a))}_selectedIndex=0;selectFocusedIndex=new h.bkB;indexFocused=new h.bkB;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular((()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",(()=>this._stopInterval()))]))}ngAfterViewInit(){this._eventCleanups.push(this._renderer.listen(this._previousPaginator.nativeElement,"touchstart",(()=>this._handlePaginatorPress("before")),ht),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",(()=>this._handlePaginatorPress("after")),ht))}ngAfterContentInit(){const t=this._dir?this._dir.change:(0,k.of)("ltr"),a=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe((0,I.B)(32),(0,R.Q)(this._destroyed)),e=this._viewportRuler.change(150).pipe((0,R.Q)(this._destroyed)),n=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new o.B(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate((()=>!1)),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),(0,p.mal)(n,{injector:this._injector}),(0,x.h)(t,e,a,this._items.changes,this._itemsResized()).pipe((0,R.Q)(this._destroyed)).subscribe((()=>{this._ngZone.run((()=>{Promise.resolve().then((()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),n()}))})),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())})),this._keyManager.change.subscribe((t=>{this.indexFocused.emit(t),this._setTabFocus(t)}))}_itemsResized(){return"function"!=typeof ResizeObserver?w.w:this._items.changes.pipe((0,L.Z)(this._items),(0,B.n)((t=>new _.c((a=>this._ngZone.runOutsideAngular((()=>{const e=new ResizeObserver((t=>a.next(t)));return t.forEach((t=>e.observe(t.elementRef.nativeElement))),()=>{e.disconnect()}})))))),(0,D.i)(1),(0,T.p)((t=>t.some((t=>t.contentRect.width>0&&t.contentRect.height>0)))))}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._eventCleanups.forEach((t=>t())),this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!(0,d.rp)(t))switch(t.keyCode){case c.Fm:case c.t6:if(this.focusIndex!==this.selectedIndex){const a=this._items.get(this.focusIndex);a&&!a.disabled&&(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){return!this._items||!!this._items.toArray()[t]}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const a=this._tabListContainer.nativeElement,e=this._getLayoutDirection();a.scrollLeft="ltr"==e?0:a.scrollWidth-a.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,a="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(a)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){const a=("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3;return this._scrollTo(this._scrollDistance+a)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const a=this._items?this._items.toArray()[t]:null;if(!a)return;const e=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:n,offsetWidth:i}=a.elementRef.nativeElement;let o,r;"ltr"==this._getLayoutDirection()?(o=n,r=o+i):(r=this._tabListInner.nativeElement.offsetWidth-n,o=r-i);const s=this.scrollDistance,d=this.scrollDistance+e;o<s?this.scrollDistance-=s-o:r>d&&(this.scrollDistance+=Math.min(r-d,o-s))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabListInner.nativeElement.scrollWidth-this._elementRef.nativeElement.offsetWidth>=5;t||(this.scrollDistance=0),t!==this._showPaginationControls&&(this._showPaginationControls=t,this._changeDetectorRef.markForCheck())}}_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._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,a=t?t.elementRef.nativeElement:null;a?this._inkBar.alignToElement(a):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,a){a&&null!=a.button&&0!==a.button||(this._stopInterval(),(0,C.O)(650,100).pipe((0,R.Q)((0,x.h)(this._stopScrolling,this._destroyed))).subscribe((()=>{const{maxScrollDistance:a,distance:e}=this._scrollHeader(t);(0===e||e>=a)&&this._stopInterval()})))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const a=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(a,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:a,distance:this._scrollDistance}}static ɵfac=function(t){return new(t||gt)};static ɵdir=p.FsC({type:gt,inputs:{disablePagination:[2,"disablePagination","disablePagination",g.L39],selectedIndex:[2,"selectedIndex","selectedIndex",g.Udg]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}("undefined"==typeof ngDevMode||ngDevMode)&&p.cDI(gt,[{type:p.WLR}],(()=>[]),{disablePagination:[{type:p.pde,args:[{transform:g.L39}]}],selectedIndex:[{type:p.pde,args:[{transform:g.Udg}]}],selectFocusedIndex:[{type:p.k7i}],indexFocused:[{type:p.k7i}]});class ut extends gt{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new mt(this._items),super.ngAfterContentInit()}_itemSelected(t){t.preventDefault()}static ɵfac=(()=>{let t;return function(a){return(t||(t=p.xGo(ut)))(a||ut)}})();static ɵcmp=p.VBU({type:ut,selectors:[["mat-tab-header"]],contentQueries:function(t,a,e){if(1&t&&p.wni(e,pt,4),2&t){let t;p.mGM(t=p.lsd())&&(a._items=t)}},viewQuery:function(t,a){if(1&t&&p.GBs(N,7)(G,7)(F,7)(j,5)(H,5),2&t){let t;p.mGM(t=p.lsd())&&(a._tabListContainer=t.first),p.mGM(t=p.lsd())&&(a._tabList=t.first),p.mGM(t=p.lsd())&&(a._tabListInner=t.first),p.mGM(t=p.lsd())&&(a._nextPaginator=t.first),p.mGM(t=p.lsd())&&(a._previousPaginator=t.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(t,a){2&t&&p.AVh("mat-mdc-tab-header-pagination-controls-enabled",a._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==a._getLayoutDirection())},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",g.L39]},features:[p.Vt3],ngContentSelectors:z,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(t,a){1&t&&(p.NAR(),p.j41(0,"div",5,0),p.bIt("click",(function(){return a._handlePaginatorClick("before")}))("mousedown",(function(t){return a._handlePaginatorPress("before",t)}))("touchend",(function(){return a._stopInterval()})),p.nrm(2,"div",6),p.k0s(),p.j41(3,"div",7,1),p.bIt("keydown",(function(t){return a._handleKeydown(t)})),p.j41(5,"div",8,2),p.bIt("cdkObserveContent",(function(){return a._onContentChanges()})),p.j41(7,"div",9,3),p.SdG(9),p.k0s()()(),p.j41(10,"div",10,4),p.bIt("mousedown",(function(t){return a._handlePaginatorPress("after",t)}))("click",(function(){return a._handlePaginatorClick("after")}))("touchend",(function(){return a._stopInterval()})),p.nrm(12,"div",6),p.k0s()),2&t&&(p.AVh("mat-mdc-tab-header-pagination-disabled",a._disableScrollBefore),p.Y8G("matRippleDisabled",a._disableScrollBefore||a.disableRipple),p.R7$(3),p.AVh("_mat-animation-noopable",a._animationsDisabled),p.R7$(2),p.BMQ("aria-label",a.ariaLabel||null)("aria-labelledby",a.ariaLabelledby||null),p.R7$(5),p.AVh("mat-mdc-tab-header-pagination-disabled",a._disableScrollAfter),p.Y8G("matRippleDisabled",a._disableScrollAfter||a.disableRipple))},dependencies:[W.r6,S.Wv],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-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:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-pagination-icon-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-divider-height, 1px);border-top-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab::before{margin:5px}@media(forced-colors: active){.mat-mdc-tab[aria-disabled=true]{color:GrayText}}\n"],encapsulation:2})}("undefined"==typeof ngDevMode||ngDevMode)&&p.cDI(ut,[{type:p.uAl,args:[{selector:"mat-tab-header",encapsulation:p.gXe.None,changeDetection:p.Ngq.Default,host:{class:"mat-mdc-tab-header","[class.mat-mdc-tab-header-pagination-controls-enabled]":"_showPaginationControls","[class.mat-mdc-tab-header-rtl]":"_getLayoutDirection() == 'rtl'"},imports:[W.r6,S.Wv],template:'\x3c!--\n Note that this intentionally uses a `div` instead of a `button`, because it\'s not part of\n the regular tabs flow and is only here to support mouse users. It should also not be focusable.\n--\x3e\n<div class="mat-mdc-tab-header-pagination mat-mdc-tab-header-pagination-before"\n #previousPaginator\n mat-ripple\n [matRippleDisabled]="_disableScrollBefore || disableRipple"\n [class.mat-mdc-tab-header-pagination-disabled]="_disableScrollBefore"\n (click)="_handlePaginatorClick(\'before\')"\n (mousedown)="_handlePaginatorPress(\'before\', $event)"\n (touchend)="_stopInterval()">\n <div class="mat-mdc-tab-header-pagination-chevron"></div>\n</div>\n\n<div\n class="mat-mdc-tab-label-container"\n #tabListContainer\n (keydown)="_handleKeydown($event)"\n [class._mat-animation-noopable]="_animationsDisabled">\n <div\n #tabList\n class="mat-mdc-tab-list"\n role="tablist"\n [attr.aria-label]="ariaLabel || null"\n [attr.aria-labelledby]="ariaLabelledby || null"\n (cdkObserveContent)="_onContentChanges()">\n <div class="mat-mdc-tab-labels" #tabListInner>\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n\n<div class="mat-mdc-tab-header-pagination mat-mdc-tab-header-pagination-after"\n #nextPaginator\n mat-ripple\n [matRippleDisabled]="_disableScrollAfter || disableRipple"\n [class.mat-mdc-tab-header-pagination-disabled]="_disableScrollAfter"\n (mousedown)="_handlePaginatorPress(\'after\', $event)"\n (click)="_handlePaginatorClick(\'after\')"\n (touchend)="_stopInterval()">\n <div class="mat-mdc-tab-header-pagination-chevron"></div>\n</div>\n',styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-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:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-pagination-icon-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-divider-height, 1px);border-top-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab::before{margin:5px}@media(forced-colors: active){.mat-mdc-tab[aria-disabled=true]{color:GrayText}}\n"]}]}],null,{_items:[{type:g.F8v,args:[pt,{descendants:!1}]}],_tabListContainer:[{type:g.Uct,args:["tabListContainer",{static:!0}]}],_tabList:[{type:g.Uct,args:["tabList",{static:!0}]}],_tabListInner:[{type:g.Uct,args:["tabListInner",{static:!0}]}],_nextPaginator:[{type:g.Uct,args:["nextPaginator"]}],_previousPaginator:[{type:g.Uct,args:["previousPaginator"]}],ariaLabel:[{type:p.pde,args:["aria-label"]}],ariaLabelledby:[{type:p.pde,args:["aria-labelledby"]}],disableRipple:[{type:p.pde,args:[{transform:g.L39}]}]});const _t=new h.nKC("MAT_TABS_CONFIG");class vt extends A.I3{_host=(0,h.WQX)(ft);_ngZone=(0,h.WQX)(h.SKi);_centeringSub=y.yU.EMPTY;_leavingSub=y.yU.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,L.Z)(this._host._isCenterPosition())).subscribe((t=>{this._host._content&&t&&!this.hasAttached()&&this._ngZone.run((()=>{Promise.resolve().then(),this.attach(this._host._content)}))})),this._leavingSub=this._host._afterLeavingCenter.subscribe((()=>{this._host.preserveContent||this._ngZone.run((()=>this.detach()))}))}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static ɵfac=function(t){return new(t||vt)};static ɵdir=p.FsC({type:vt,selectors:[["","matTabBodyHost",""]],features:[p.Vt3]})}("undefined"==typeof ngDevMode||ngDevMode)&&p.cDI(vt,[{type:p.WLR,args:[{selector:"[matTabBodyHost]"}]}],(()=>[]),null);class ft{_elementRef=(0,h.WQX)(p.aKT);_dir=(0,h.WQX)(s.dS,{optional:!0});_ngZone=(0,h.WQX)(h.SKi);_injector=(0,h.WQX)(h.zZn);_renderer=(0,h.WQX)(p.sFG);_diAnimationsDisabled=(0,P.Rc)();_eventCleanups;_initialized=!1;_fallbackTimer;_positionIndex;_dirChangeSubscription=y.yU.EMPTY;_position;_previousPosition;_onCentering=new h.bkB;_beforeCentering=new h.bkB;_afterLeavingCenter=new h.bkB;_onCentered=new h.bkB(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(t){this._positionIndex=t,this._computePositionAnimationState()}constructor(){if(this._dir){const t=(0,h.WQX)(g.gRc);this._dirChangeSubscription=this._dir.change.subscribe((a=>{this._computePositionAnimationState(a),t.markForCheck()}))}}ngOnInit(){this._bindTransitionEvents(),"center"===this._position&&(this._setActiveClass(!0),(0,p.mal)((()=>this._onCentering.emit(this._elementRef.nativeElement.clientHeight)),{injector:this._injector})),this._initialized=!0}ngOnDestroy(){clearTimeout(this._fallbackTimer),this._eventCleanups?.forEach((t=>t())),this._dirChangeSubscription.unsubscribe()}_bindTransitionEvents(){this._ngZone.runOutsideAngular((()=>{const t=this._elementRef.nativeElement,a=t=>{t.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),"transitionend"===t.type&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(t,"transitionstart",(t=>{t.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())})),this._renderer.listen(t,"transitionend",a),this._renderer.listen(t,"transitioncancel",a)]}))}_transitionStarted(){clearTimeout(this._fallbackTimer);const t="center"===this._position;this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_transitionDone(){"center"===this._position?this._onCentered.emit():"center"===this._previousPosition&&this._afterLeavingCenter.emit()}_setActiveClass(t){this._elementRef.nativeElement.classList.toggle("mat-mdc-tab-body-active",t)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(){return 0===this._positionIndex}_computePositionAnimationState(t=this._getLayoutDirection()){this._previousPosition=this._position,this._positionIndex<0?this._position="ltr"==t?"left":"right":this._positionIndex>0?this._position="ltr"==t?"right":"left":this._position="center",this._animationsDisabled()?this._simulateTransitionEvents():!this._initialized||"center"!==this._position&&"center"!==this._previousPosition||(clearTimeout(this._fallbackTimer),this._fallbackTimer=this._ngZone.runOutsideAngular((()=>setTimeout((()=>this._simulateTransitionEvents()),100))))}_simulateTransitionEvents(){this._transitionStarted(),(0,p.mal)((()=>this._transitionDone()),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||"0ms"===this.animationDuration||"0s"===this.animationDuration}static ɵfac=function(t){return new(t||ft)};static ɵcmp=p.VBU({type:ft,selectors:[["mat-tab-body"]],viewQuery:function(t,a){if(1&t&&p.GBs(vt,5)(X,5),2&t){let t;p.mGM(t=p.lsd())&&(a._portalHost=t.first),p.mGM(t=p.lsd())&&(a._contentElement=t.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(t,a){2&t&&p.BMQ("inert","center"===a._position?null:"")},inputs:{_content:[0,"content","_content"],animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(t,a){1&t&&(p.j41(0,"div",1,0),p.DNE(2,$,0,0,"ng-template",2),p.k0s()),2&t&&p.AVh("mat-tab-body-content-left","left"===a._position)("mat-tab-body-content-right","right"===a._position)("mat-tab-body-content-can-animate","center"===a._position||"center"===a._previousPosition)},dependencies:[vt,b.uv],styles:[".mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto;transform:none;visibility:hidden}.mat-tab-body-animating>.mat-mdc-tab-body-content,.mat-mdc-tab-body-active>.mat-mdc-tab-body-content{visibility:visible}.mat-tab-body-animating>.mat-mdc-tab-body-content{min-height:1px}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-tab-body-content-can-animate{transition:transform var(--mat-tab-animation-duration) 1ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable .mat-tab-body-content-can-animate{transition:none}.mat-tab-body-content-left{transform:translate3d(-100%, 0, 0)}.mat-tab-body-content-right{transform:translate3d(100%, 0, 0)}\n"],encapsulation:2})}("undefined"==typeof ngDevMode||ngDevMode)&&p.cDI(ft,[{type:p.uAl,args:[{selector:"mat-tab-body",encapsulation:p.gXe.None,changeDetection:p.Ngq.Default,host:{class:"mat-mdc-tab-body","[attr.inert]":'_position === "center" ? null : ""'},imports:[vt,b.uv],template:"<div\n class=\"mat-mdc-tab-body-content\"\n #content\n cdkScrollable\n [class.mat-tab-body-content-left]=\"_position === 'left'\"\n [class.mat-tab-body-content-right]=\"_position === 'right'\"\n [class.mat-tab-body-content-can-animate]=\"_position === 'center' || _previousPosition === 'center'\">\n <ng-template matTabBodyHost></ng-template>\n</div>\n",styles:[".mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto;transform:none;visibility:hidden}.mat-tab-body-animating>.mat-mdc-tab-body-content,.mat-mdc-tab-body-active>.mat-mdc-tab-body-content{visibility:visible}.mat-tab-body-animating>.mat-mdc-tab-body-content{min-height:1px}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-tab-body-content-can-animate{transition:transform var(--mat-tab-animation-duration) 1ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable .mat-tab-body-content-can-animate{transition:none}.mat-tab-body-content-left{transform:translate3d(-100%, 0, 0)}.mat-tab-body-content-right{transform:translate3d(100%, 0, 0)}\n"]}]}],(()=>[]),{_onCentering:[{type:p.k7i}],_beforeCentering:[{type:p.k7i}],_onCentered:[{type:p.k7i}],_portalHost:[{type:g.Uct,args:[vt]}],_contentElement:[{type:g.Uct,args:["content"]}],_content:[{type:p.pde,args:["content"]}],animationDuration:[{type:p.pde}],preserveContent:[{type:p.pde}],position:[{type:p.pde}]});class yt{_elementRef=(0,h.WQX)(p.aKT);_changeDetectorRef=(0,h.WQX)(g.gRc);_ngZone=(0,h.WQX)(h.SKi);_tabsSubscription=y.yU.EMPTY;_tabLabelSubscription=y.yU.EMPTY;_tabBodySubscription=y.yU.EMPTY;_diAnimationsDisabled=(0,P.Rc)();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new p.rOR;_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;color;get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(t){this._fitInkBarToContent=t,this._changeDetectorRef.markForCheck()}_fitInkBarToContent=!1;stretchTabs=!0;alignTabs=null;dynamicHeight=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=isNaN(t)?null:t}_selectedIndex=null;headerPosition="above";get animationDuration(){return this._animationDuration}set animationDuration(t){const a=t+"";this._animationDuration=/^\d+$/.test(a)?t+"ms":a}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(t){this._contentTabIndex=isNaN(t)?null:t}_contentTabIndex=null;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const a=this._elementRef.nativeElement.classList;a.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),t&&a.add("mat-tabs-with-background",`mat-background-${t}`),this._backgroundColor=t}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new h.bkB;focusChange=new h.bkB;animationDone=new h.bkB;selectedTabChange=new h.bkB(!0);_groupId;_isServer=!(0,h.WQX)(m.O).isBrowser;constructor(){const t=(0,h.WQX)(_t,{optional:!0});this._groupId=(0,h.WQX)(i.g).getId("mat-tab-group-"),this.animationDuration=t&&t.animationDuration?t.animationDuration:"500ms",this.disablePagination=!(!t||null==t.disablePagination)&&t.disablePagination,this.dynamicHeight=!(!t||null==t.dynamicHeight)&&t.dynamicHeight,null!=t?.contentTabIndex&&(this.contentTabIndex=t.contentTabIndex),this.preserveContent=!!t?.preserveContent,this.fitInkBarToContent=!(!t||null==t.fitInkBarToContent)&&t.fitInkBarToContent,this.stretchTabs=!t||null==t.stretchTabs||t.stretchTabs,this.alignTabs=t&&null!=t.alignTabs?t.alignTabs:null}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const a=null==this._selectedIndex;if(!a){this.selectedTabChange.emit(this._createChangeEvent(t));const a=this._tabBodyWrapper.nativeElement;a.style.minHeight=a.clientHeight+"px"}Promise.resolve().then((()=>{this._tabs.forEach(((a,e)=>a.isActive=e===t)),a||(this.selectedIndexChange.emit(t),this._tabBodyWrapper.nativeElement.style.minHeight="")}))}this._tabs.forEach(((a,e)=>{a.position=e-t,null==this._selectedIndex||0!=a.position||a.origin||(a.origin=t-this._selectedIndex)})),this._selectedIndex!==t&&(this._selectedIndex=t,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe((()=>{const t=this._clampTabIndex(this._indexToSelect);if(t===this._selectedIndex){const a=this._tabs.toArray();let e;for(let t=0;t<a.length;t++)if(a[t].isActive){this._indexToSelect=this._selectedIndex=t,this._lastFocusedTabIndex=null,e=a[t];break}!e&&a[t]&&Promise.resolve().then((()=>{a[t].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(t))}))}this._changeDetectorRef.markForCheck()}))}ngAfterViewInit(){this._tabBodySubscription=this._tabBodies.changes.subscribe((()=>this._bodyCentered(!0)))}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,L.Z)(this._allTabs)).subscribe((t=>{this._tabs.reset(t.filter((t=>t._closestTabGroup===this||!t._closestTabGroup))),this._tabs.notifyOnChanges()}))}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe(),this._tabBodySubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(t){const a=this._tabHeader;a&&(a.focusIndex=t)}_focusChanged(t){this._lastFocusedTabIndex=t,this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const a=new xt;return a.index=t,this._tabs&&this._tabs.length&&(a.tab=this._tabs.toArray()[t]),a}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,x.h)(...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,a){return t.id||`${this._groupId}-label-${a}`}_getTabContentId(t){return`${this._groupId}-content-${t}`}_setTabBodyWrapperHeight(t){if(!this.dynamicHeight||!this._tabBodyWrapperHeight)return void(this._tabBodyWrapperHeight=t);const a=this._tabBodyWrapper.nativeElement;a.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(a.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this._ngZone.run((()=>this.animationDone.emit()))}_handleClick(t,a,e){a.focusIndex=e,t.disabled||(this.selectedIndex=e)}_getTabIndex(t){return t===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(t,a){t&&"mouse"!==t&&"touch"!==t&&(this._tabHeader.focusIndex=a)}_bodyCentered(t){t&&this._tabBodies?.forEach(((t,a)=>t._setActiveClass(a===this._selectedIndex)))}_animationsDisabled(){return this._diAnimationsDisabled||"0"===this.animationDuration||"0ms"===this.animationDuration}static ɵfac=function(t){return new(t||yt)};static ɵcmp=p.VBU({type:yt,selectors:[["mat-tab-group"]],contentQueries:function(t,a,e){if(1&t&&p.wni(e,dt,5),2&t){let t;p.mGM(t=p.lsd())&&(a._allTabs=t)}},viewQuery:function(t,a){if(1&t&&p.GBs(V,5)(O,5)(ft,5),2&t){let t;p.mGM(t=p.lsd())&&(a._tabBodyWrapper=t.first),p.mGM(t=p.lsd())&&(a._tabHeader=t.first),p.mGM(t=p.lsd())&&(a._tabBodies=t)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(t,a){2&t&&(p.BMQ("mat-align-tabs",a.alignTabs),p.HbH("mat-"+(a.color||"primary")),p.xc7("--mat-tab-animation-duration",a.animationDuration),p.AVh("mat-mdc-tab-group-dynamic-height",a.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===a.headerPosition)("mat-mdc-tab-group-stretch-tabs",a.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",g.L39],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",g.L39],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",g.L39],selectedIndex:[2,"selectedIndex","selectedIndex",g.Udg],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",g.Udg],disablePagination:[2,"disablePagination","disablePagination",g.L39],disableRipple:[2,"disableRipple","disableRipple",g.L39],preserveContent:[2,"preserveContent","preserveContent",g.L39],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[p.Jv_([{provide:st,useExisting:yt}])],ngContentSelectors:z,decls:9,vars:8,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination","aria-label","aria-labelledby"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","class","content","position","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","_beforeCentering","id","content","position","animationDuration","preserveContent"]],template:function(t,a){1&t&&(p.NAR(),p.j41(0,"mat-tab-header",3,0),p.bIt("indexFocused",(function(t){return a._focusChanged(t)}))("selectFocusedIndex",(function(t){return a.selectedIndex=t})),p.Z7z(2,Y,8,17,"div",4,p.fX1),p.k0s(),p.nVh(4,q,1,0),p.j41(5,"div",5,1),p.Z7z(7,J,1,10,"mat-tab-body",6,p.fX1),p.k0s()),2&t&&(p.Y8G("selectedIndex",a.selectedIndex||0)("disableRipple",a.disableRipple)("disablePagination",a.disablePagination),p.jOp("aria-label",a.ariaLabel)("aria-labelledby",a.ariaLabelledby),p.R7$(2),p.Dyx(a._tabs),p.R7$(2),p.vxM(a._isServer?4:-1),p.R7$(),p.AVh("_mat-animation-noopable",a._animationsDisabled()),p.R7$(2),p.Dyx(a._tabs))},dependencies:[ut,pt,n.vR,W.r6,A.I3,ft],styles:['.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1;touch-action:manipulation}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-inactive-labe