-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path1122.5f25746a138bf695.js
1 lines (1 loc) · 143 KB
/
1122.5f25746a138bf695.js
1
"use strict";(self.webpackChunkmaterial_angular_io=self.webpackChunkmaterial_angular_io||[]).push([[1122],{7588:(wt,We,C)=>{C.d(We,{Lt:()=>ft,EN:()=>Je,pd:()=>H,ZW:()=>ht,vg:()=>f,A5:()=>N,Yz:()=>pe,bZ:()=>B,k4:()=>Q,wA:()=>Ie,$w:()=>Qe,U:()=>ce,nx:()=>W});var e=C(4438),v=C(5286),J=C(8167),le=C(9776),he=C(5817),l=C(3586),Ue=C(7354),$=C(8099),z=C(5006);function De(_,R,d){return d?De(_,R).pipe((0,z.T)(m=>(0,Ue.c)(m)?d(...m):d(m))):new he.c(m=>{const y=(...j)=>m.next(1===j.length?j[0]:j);let V;try{V=_(y)}catch(j){return void m.error(j)}if((0,$.T)(R))return()=>R(y,V)})}var Y=C(4670),Ne=C(522),Fe=C(3176),we=C(8712),q=C(8728),de=C(8542),Ge=C(8667),L=C(3020),I=C(7753),G=C(7605),ee=C(8979),ge=C(762),Ve=C(1080);C(3004);const fe={leading:!0,trailing:!1};class X{constructor(R,d,m,y){this.duration=R,this.scheduler=d,this.leading=m,this.trailing=y}call(R,d){return d.subscribe(new se(R,this.duration,this.scheduler,this.leading,this.trailing))}}class se extends ge.v{constructor(R,d,m,y,V){super(R),this.duration=d,this.scheduler=m,this.leading=y,this.trailing=V,this._hasTrailingValue=!1,this._trailingValue=null}_next(R){this.throttled?this.trailing&&(this._trailingValue=R,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Re,this.duration,{subscriber:this})),this.leading?this.destination.next(R):this.trailing&&(this._trailingValue=R,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const R=this.throttled;R&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),R.unsubscribe(),this.remove(R),this.throttled=null)}}function Re(_){const{subscriber:R}=_;R.clearThrottle()}var Z=C(7763),oe=C(611),ke=C(3948);class ve{constructor(R,d){this.observables=R,this.project=d}call(R,d){return d.subscribe(new Ce(R,this.observables,this.project))}}class Ce extends oe.E{constructor(R,d,m){super(R),this.observables=d,this.project=m,this.toRespond=[];const y=d.length;this.values=new Array(y);for(let V=0;V<y;V++)this.toRespond.push(V);for(let V=0;V<y;V++)this.add((0,ke.F)(this,d[V],void 0,V))}notifyNext(R,d,m){this.values[m]=d;const y=this.toRespond;if(y.length>0){const V=y.indexOf(m);-1!==V&&y.splice(V,1)}}notifyComplete(){}_next(R){if(0===this.toRespond.length){const d=[R,...this.values];this.project?this._tryProject(d):this.destination.next(d)}}_tryProject(R){let d;try{d=this.project.apply(this,R)}catch(m){return void this.destination.error(m)}this.destination.next(d)}}var He=C(9417),Me=C(8203),g=C(7336),O=C(2753),w=C(6939),F=C(8617),M=C(5478),_e=C(177);const ce=".cdk-cell, .mat-cell, td",te=".cdk-popover-edit-cell, .mat-popover-edit-cell",U=".cdk-row, .mat-row, tr",ie="table, cdk-table, mat-table",Xe="cdk-edit-pane",xe=`.${Xe}, .mat-edit-pane`;function W(_,R){if(!(_ instanceof Node))return null;let d=_;for(;null!=d&&!(d instanceof Element);)d=d.parentNode;return d?.closest(R)??null}var me=function(_){return _[_.OFF=0]="OFF",_[_.FOCUSABLE=1]="FOCUSABLE",_[_.ON=2]="ON",_}(me||{});let ue=(()=>{class _{get editRef(){return this._editRef}constructor(d){this._ngZone=d,this.editing=new v.B7,this.hovering=new v.B7,this.focused=new v.B7,this.allRows=new v.B7,this.mouseMove=new v.B7,this.disabledCells=new WeakMap,this._editRef=null,this._distinctUntilChanged=(0,Ne.F)(),this._startWithNull=(0,Fe.Z)(null),this._distinctShare=(0,J.F)(this._distinctUntilChanged,(0,we.t)(1)),this._startWithNullDistinct=(0,J.F)(this._startWithNull,this._distinctUntilChanged),this.editingAndEnabled=this.editing.pipe((0,q.p)(m=>null==m||!this.disabledCells.has(m)),(0,we.t)(1)),this.editingOrFocused=(0,le.zV)([this.editingAndEnabled.pipe((0,z.T)(m=>W(m,U)),this._startWithNull),this.focused.pipe(this._startWithNull)]).pipe((0,z.T)(([m,y])=>y||m),this._distinctUntilChanged,(0,de.Z)(0),this._distinctUntilChanged,(0,we.t)(1)),this._rowsWithHoverContent=new WeakMap,this._currentlyEditing=null,this._hoveredContentStateDistinct=(0,le.zV)([this._getFirstRowWithHoverContent(),this._getLastRowWithHoverContent(),this.editingOrFocused,this.hovering.pipe((0,Ne.F)(),(0,Ge.s)(m=>this.mouseMove.pipe((0,q.p)(y=>m===y),this._startWithNull,(0,L.B)(40))),this._startWithNullDistinct)]).pipe((0,I.i)(1),(0,z.T)(et),(0,Ne.F)(tt),this._enterZone(),(0,we.t)(1)),this._editingAndEnabledDistinct=this.editingAndEnabled.pipe((0,Ne.F)(),this._enterZone(),(0,we.t)(1)),this._lastSeenRow=null,this._lastSeenRowHoverOrFocus=null,this._editingAndEnabledDistinct.subscribe(m=>{this._currentlyEditing=m})}editingCell(d){let m=null;return this._editingAndEnabledDistinct.pipe((0,z.T)(y=>y===(m||(m=W(d,ce)))),this._distinctUntilChanged)}doneEditingCell(d){const m=W(d,ce);this._currentlyEditing===m&&this.editing.next(null)}setActiveEditRef(d){this._editRef=d}unsetActiveEditRef(d){this._editRef===d&&(this._editRef=null)}registerRowWithHoverContent(d){this._rowsWithHoverContent.set(d,(this._rowsWithHoverContent.get(d)||0)+1)}deregisterRowWithHoverContent(d){const m=this._rowsWithHoverContent.get(d)||0;m<=1?this._rowsWithHoverContent.delete(d):this._rowsWithHoverContent.set(d,m-1)}hoverOrFocusOnRow(d){return d!==this._lastSeenRow&&(this._lastSeenRow=d,this._lastSeenRowHoverOrFocus=this._hoveredContentStateDistinct.pipe((0,z.T)(m=>m.get(d)||me.OFF),this._distinctShare)),this._lastSeenRowHoverOrFocus}_enterZone(){return d=>new he.c(m=>d.subscribe({next:y=>this._ngZone.run(()=>m.next(y)),error:y=>m.error(y),complete:()=>m.complete()}))}_getFirstRowWithHoverContent(){return this._mapAllRowsToSingleRow(d=>{for(let y,m=0;y=d[m];m++)if(this._rowsWithHoverContent.has(y))return y;return null})}_getLastRowWithHoverContent(){return this._mapAllRowsToSingleRow(d=>{for(let y,m=d.length-1;y=d[m];m--)if(this._rowsWithHoverContent.has(y))return y;return null})}_mapAllRowsToSingleRow(d){return this.allRows.pipe((0,z.T)(d),this._startWithNullDistinct)}static#e=this.\u0275fac=function(m){return new(m||_)(e.KVO(e.SKi))};static#t=this.\u0275prov=e.jDH({token:_,factory:_.\u0275fac})}return _})();function et([_,R,d,m]){const y=new Map;for(const V of[_,R,d&&d.previousElementSibling,d&&d.nextElementSibling])V&&y.set(V,me.FOCUSABLE);for(const V of[d,m])V&&y.set(V,me.ON);return y}function tt(_,R){if(_.size!==R.size)return!1;for(const d of Array.from(_.keys()))if(R.get(d)!==_.get(d))return!1;return!0}let Ie=(()=>{class _{constructor(d,m){this._form=d,this._editEventDispatcher=m,this._finalValueSubject=new v.B7,this.finalValue=this._finalValueSubject,this._blurredSubject=new v.B7,this.blurred=this._blurredSubject,this._injector=(0,e.WQX)(e.zZn),this._editEventDispatcher.setActiveEditRef(this)}init(d){(0,e.mal)(()=>{this.updateRevertValue(),d&&this.reset(d)},{injector:this._injector})}ngOnDestroy(){this._editEventDispatcher.unsetActiveEditRef(this),this._finalValueSubject.next(this._form.value),this._finalValueSubject.complete()}isValid(){return this._form.valid}updateRevertValue(){this._revertFormValue=this._form.value}close(){this._editEventDispatcher.editing.next(null)}blur(){this._blurredSubject.next()}reset(d){this._form.reset(d||this._revertFormValue)}static#e=this.\u0275fac=function(m){return new(m||_)(e.KVO(He.ZU,2),e.KVO(ue))};static#t=this.\u0275prov=e.jDH({token:_,factory:_.\u0275fac})}return _})(),Ke=(()=>{class _{constructor(d){this.directionality=d,this.keyObserver={next:m=>this.handleKeyboardEvent(m)}}moveFocusHorizontally(d,m){const y=Array.from(W(d,ie).querySelectorAll(te)),j=y.indexOf(d)+m;y[j]&&y[j].focus()}moveFocusVertically(d,m){const y=W(d,U),V=Array.from(W(y,ie).querySelectorAll(U)),j=V.indexOf(y),Ze=Array.from(y.querySelectorAll(te)).indexOf(d),it=j+m;if(V[it]){const Le=Array.from(V[it].querySelectorAll(te));Le[Ze]&&Le[Ze].focus()}}handleKeyboardEvent(d){const m=W(d.target,te);if(m){switch(d.keyCode){case g.i7:this.moveFocusVertically(m,-1);break;case g.n6:this.moveFocusVertically(m,1);break;case g.UQ:this.moveFocusHorizontally(m,"ltr"===this.directionality.value?-1:1);break;case g.LE:this.moveFocusHorizontally(m,"ltr"===this.directionality.value?1:-1);break;default:return}d.preventDefault()}}static#e=this.\u0275fac=function(m){return new(m||_)(e.KVO(Me.dS))};static#t=this.\u0275prov=e.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}return _})();class Qe{constructor(){this._formValues=new WeakMap}for(R){const d=this._formValues;let m=d.get(R);return m||(m={},d.set(R,m)),m}}let Je=(()=>{class _{constructor(d,m){this.elementRef=d,this.editRef=m,this.destroyed=new v.B7,this.clickOutBehavior="close",this.preservedFormValueChange=new e.bkB,this.ignoreSubmitUnlessValid=!0}ngOnInit(){this.editRef.init(this.preservedFormValue),this.editRef.finalValue.subscribe(this.preservedFormValueChange),this.editRef.blurred.subscribe(()=>this._handleBlur())}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}handleFormSubmit(){this.ignoreSubmitUnlessValid&&!this.editRef.isValid()||(this.editRef.updateRevertValue(),this.editRef.close())}close(){this.editRef.close()}handlePossibleClickOut(d){if(!W(d.target,xe))switch(this.clickOutBehavior){case"submit":this._triggerFormSubmit(),this.editRef.close();break;case"close":this.editRef.close()}}_handleKeydown(d){"Escape"===d.key&&!(0,g.rp)(d)&&(this.close(),d.preventDefault())}_handleBlur(){"submit"===this.clickOutBehavior&&this._triggerFormSubmit()}_triggerFormSubmit(){this.elementRef.nativeElement.dispatchEvent(new Event("submit"))}static#e=this.\u0275fac=function(m){return new(m||_)(e.rXU(e.aKT),e.rXU(Ie))};static#t=this.\u0275dir=e.FsC({type:_,selectors:[["form","cdkEditControl",""]],hostBindings:function(m,y){1&m&&e.bIt("ngSubmit",function(){return y.handleFormSubmit()})("click",function(j){return y.handlePossibleClickOut(j)},!1,e.EBC)("keydown",function(j){return y._handleKeydown(j)})},inputs:{clickOutBehavior:[0,"cdkEditControlClickOutBehavior","clickOutBehavior"],preservedFormValue:[0,"cdkEditControlPreservedFormValue","preservedFormValue"],ignoreSubmitUnlessValid:[0,"cdkEditControlIgnoreSubmitUnlessValid","ignoreSubmitUnlessValid"]},outputs:{preservedFormValueChange:"cdkEditControlPreservedFormValueChange"},standalone:!0,features:[e.Jv_([Ie])]})}return _})(),ht=(()=>{class _{constructor(d){this.editRef=d,this.type="button"}revertEdit(){this.editRef.reset()}static#e=this.\u0275fac=function(m){return new(m||_)(e.rXU(Ie))};static#t=this.\u0275dir=e.FsC({type:_,selectors:[["button","cdkEditRevert",""]],hostAttrs:["type","button"],hostBindings:function(m,y){1&m&&e.bIt("click",function(){return y.revertEdit()})},inputs:{type:"type"},standalone:!0})}return _})(),ft=(()=>{class _{constructor(d,m){this.elementRef=d,this.editRef=m;const y=d.nativeElement;"BUTTON"===y.nodeName&&!y.getAttribute("type")&&y.setAttribute("type","button")}closeEdit(){this.editRef.close()}static#e=this.\u0275fac=function(m){return new(m||_)(e.rXU(e.aKT),e.rXU(Ie))};static#t=this.\u0275dir=e.FsC({type:_,selectors:[["","cdkEditClose",""]],hostBindings:function(m,y){1&m&&e.bIt("click",function(){return y.closeEdit()})("keydown.enter",function(){return y.closeEdit()})("keydown.space",function(){return y.closeEdit()})},standalone:!0})}return _})(),rt=(()=>{class _{constructor(d,m,y,V,j,Ze,it,Le){this.directionality=d,this.editEventDispatcher=m,this.focusDispatcher=y,this.focusTrapFactory=V,this.ngZone=j,this.overlay=Ze,this.scrollDispatcher=it,this.viewportRuler=Le}static#e=this.\u0275fac=function(m){return new(m||_)(e.KVO(Me.dS),e.KVO(ue),e.KVO(Ke),e.KVO(F.GX),e.KVO(e.SKi),e.KVO(O.hJ),e.KVO(M.R),e.KVO(M.Xj))};static#t=this.\u0275prov=e.jDH({token:_,factory:_.\u0275fac})}return _})();var h=function(_){return _[_.START=0]="START",_[_.END=1]="END",_}(h||{});class S extends F.sp{constructor(R,d,m,y){super(R,d,m,y,!0),this._escapeSubject=new v.B7,this.startAnchorListener=()=>(this._escapeSubject.next(h.START),!0),this.endAnchorListener=()=>(this._escapeSubject.next(h.END),!0),this.attachAnchors()}escapes(){return this._escapeSubject}}let o=(()=>{class _{constructor(d,m,y){this._checker=d,this._ngZone=m,this._document=y}create(d){return new S(d,this._checker,this._ngZone,this._document)}static#e=this.\u0275fac=function(m){return new(m||_)(e.KVO(F.Z7),e.KVO(e.SKi),e.KVO(_e.qQ))};static#t=this.\u0275prov=e.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}return _})(),f=(()=>{class _{constructor(d,m,y,V){this.elementRef=d,this.editEventDispatcher=m,this.focusDispatcher=y,this.ngZone=V,this.destroyed=new v.B7,this._rendered=new v.B7,(0,e.Tzd)(()=>{this._rendered.next()})}ngAfterViewInit(){this._listenForTableEvents()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this._rendered.complete()}_listenForTableEvents(){const d=this.elementRef.nativeElement,m=y=>(0,z.T)(V=>W(V.target,y));this.ngZone.runOutsideAngular(()=>{(0,l.R)(d,"mouseover").pipe(m(U),(0,G.Q)(this.destroyed)).subscribe(this.editEventDispatcher.hovering),(0,l.R)(d,"mouseleave").pipe((0,ee.u)(null),(0,G.Q)(this.destroyed)).subscribe(this.editEventDispatcher.hovering),(0,l.R)(d,"mousemove").pipe(function Pe(_,R=Ve.b,d=fe){return m=>m.lift(new X(_,R,d.leading,d.trailing))}(10),m(U),(0,G.Q)(this.destroyed)).subscribe(this.editEventDispatcher.mouseMove),De(y=>d.addEventListener("focus",y,!0),y=>d.removeEventListener("focus",y,!0)).pipe(m(U),(0,Z.u)(),(0,G.Q)(this.destroyed)).subscribe(this.editEventDispatcher.focused),(0,Y.h)(De(y=>d.addEventListener("blur",y,!0),y=>d.removeEventListener("blur",y,!0)),(0,l.R)(d,"keydown").pipe((0,q.p)(y=>"Escape"===y.key))).pipe((0,ee.u)(null),(0,Z.u)(),(0,G.Q)(this.destroyed)).subscribe(this.editEventDispatcher.focused),this._rendered.pipe(function Ee(..._){return R=>{let d;return"function"==typeof _[_.length-1]&&(d=_.pop()),R.lift(new ve(_,d))}}(this.editEventDispatcher.editingOrFocused),(0,q.p)(([y,V])=>null==V),(0,z.T)(()=>d.querySelectorAll(U)),(0,Z.u)(),(0,G.Q)(this.destroyed)).subscribe(this.editEventDispatcher.allRows),(0,l.R)(d,"keydown").pipe((0,q.p)(y=>"Enter"===y.key),m(ce),(0,G.Q)(this.destroyed)).subscribe(this.editEventDispatcher.editing),(0,l.R)(d,"keydown").pipe((0,G.Q)(this.destroyed)).subscribe(this.focusDispatcher.keyObserver)})}static#e=this.\u0275fac=function(m){return new(m||_)(e.rXU(e.aKT),e.rXU(ue),e.rXU(Ke),e.rXU(e.SKi))};static#t=this.\u0275dir=e.FsC({type:_,selectors:[["table","editable",""],["cdk-table","editable",""],["mat-table","editable",""]],standalone:!0,features:[e.Jv_([ue,rt])]})}return _})(),N=(()=>{class _{get colspan(){return this._colspan}set colspan(d){this._colspan=d,this.overlayRef&&(this.overlayRef.updatePositionStrategy(this._getPositionStrategy()),this.overlayRef.hasAttached()&&this._updateOverlaySize())}get disabled(){return this._disabled}set disabled(d){this._disabled=d,d?(this.services.editEventDispatcher.doneEditingCell(this.elementRef.nativeElement),this.services.editEventDispatcher.disabledCells.set(this.elementRef.nativeElement,!0)):this.services.editEventDispatcher.disabledCells.delete(this.elementRef.nativeElement)}constructor(d,m,y){this.services=d,this.elementRef=m,this.viewContainerRef=y,this.template=null,this._colspan={},this._disabled=!1,this.destroyed=new v.B7}ngAfterViewInit(){this._startListeningToEditEvents()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.focusTrap&&(this.focusTrap.destroy(),this.focusTrap=void 0),this.overlayRef&&this.overlayRef.dispose()}initFocusTrap(){this.focusTrap=this.services.focusTrapFactory.create(this.overlayRef.overlayElement)}closeEditOverlay(){this.services.editEventDispatcher.doneEditingCell(this.elementRef.nativeElement)}panelClass(){return Xe}_startListeningToEditEvents(){this.services.editEventDispatcher.editingCell(this.elementRef.nativeElement).pipe((0,G.Q)(this.destroyed)).subscribe(d=>{d&&this.template?(this.overlayRef||this._createEditOverlay(),this._showEditOverlay()):this.overlayRef&&(this._maybeReturnFocusToCell(),this.overlayRef.detach())})}_createEditOverlay(){this.overlayRef=this.services.overlay.create({disposeOnNavigation:!0,panelClass:this.panelClass(),positionStrategy:this._getPositionStrategy(),scrollStrategy:this.services.overlay.scrollStrategies.reposition(),direction:this.services.directionality}),this.initFocusTrap(),this.overlayRef.overlayElement.setAttribute("aria-role","dialog"),this.overlayRef.detachments().subscribe(()=>this.closeEditOverlay())}_showEditOverlay(){this.overlayRef.attach(new w.VA(this.template,this.viewContainerRef,{$implicit:this.context})),this.services.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.focusTrap.focusInitialElement()})}),(0,Y.h)(this.services.scrollDispatcher.scrolled(),this.services.viewportRuler.change()).pipe((0,Fe.Z)(null),(0,G.Q)((0,Y.h)(this.overlayRef.detachments(),this.destroyed))).subscribe(()=>{this._updateOverlaySize()})}_getOverlayCells(){const d=W(this.elementRef.nativeElement,ce);if(!this._colspan.before&&!this._colspan.after)return[d];const m=W(this.elementRef.nativeElement,U),y=Array.from(m.querySelectorAll(ce)),V=y.indexOf(d);return y.slice(V-(this._colspan.before||0),V+(this._colspan.after||0)+1)}_getPositionStrategy(){const d=this._getOverlayCells();return this.services.overlay.position().flexibleConnectedTo(d[0]).withGrowAfterOpen().withPush().withViewportMargin(16).withPositions([{originX:"start",originY:"top",overlayX:"start",overlayY:"top"}])}_updateOverlaySize(){this.overlayRef.updateSize(this._sizeConfigForCells(this._getOverlayCells()))}_maybeReturnFocusToCell(){W(document.activeElement,xe)===this.overlayRef.overlayElement&&this.elementRef.nativeElement.focus()}_sizeConfigForCells(d){if(0===d.length)return{};if(1===d.length)return{width:d[0].getBoundingClientRect().width};let m,y;return"ltr"===this.services.directionality.value?(m=d[0],y=d[d.length-1]):(y=d[0],m=d[d.length-1]),{width:y.getBoundingClientRect().right-m.getBoundingClientRect().left}}static#e=this.\u0275fac=function(m){return new(m||_)(e.rXU(rt),e.rXU(e.aKT),e.rXU(e.c1b))};static#t=this.\u0275dir=e.FsC({type:_,selectors:[["","cdkPopoverEdit","",3,"cdkPopoverEditTabOut",""]],hostAttrs:[1,"cdk-popover-edit-cell"],hostVars:2,hostBindings:function(m,y){2&m&&e.BMQ("tabindex",y.disabled?null:0)("aria-haspopup",!y.disabled)},inputs:{template:[0,"cdkPopoverEdit","template"],context:[0,"cdkPopoverEditContext","context"],colspan:[0,"cdkPopoverEditColspan","colspan"],disabled:[0,"cdkPopoverEditDisabled","disabled"]},standalone:!0})}return _})(),B=(()=>{class _ extends N{constructor(d,m,y,V){super(y,d,m),this.focusEscapeNotifierFactory=V,this.focusTrap=void 0}initFocusTrap(){this.focusTrap=this.focusEscapeNotifierFactory.create(this.overlayRef.overlayElement),this.focusTrap.escapes().pipe((0,G.Q)(this.destroyed)).subscribe(d=>{this.services.editEventDispatcher.editRef?.blur(),this.services.focusDispatcher.moveFocusHorizontally(W(this.elementRef.nativeElement,ce),d===h.START?-1:1),this.closeEditOverlay()})}static#e=this.\u0275fac=function(m){return new(m||_)(e.rXU(e.aKT),e.rXU(e.c1b),e.rXU(rt),e.rXU(o))};static#t=this.\u0275dir=e.FsC({type:_,selectors:[["","cdkPopoverEdit","","cdkPopoverEditTabOut",""]],hostAttrs:[1,"cdk-popover-edit-cell"],hostVars:2,hostBindings:function(m,y){2&m&&e.BMQ("tabindex",y.disabled?null:0)("aria-haspopup",!y.disabled)},inputs:{template:[0,"cdkPopoverEdit","template"],context:[0,"cdkPopoverEditContext","context"],colspan:[0,"cdkPopoverEditColspan","colspan"],disabled:[0,"cdkPopoverEditDisabled","disabled"]},standalone:!0,features:[e.Vt3]})}return _})(),Q=(()=>{class _{constructor(d,m,y,V){this.services=d,this.elementRef=m,this.templateRef=y,this.viewContainerRef=V,this.destroyed=new v.B7,this.viewRef=null}ngAfterViewInit(){this._row=W(this.elementRef.nativeElement,U),this.services.editEventDispatcher.registerRowWithHoverContent(this._row),this._listenForHoverAndFocusEvents()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.viewRef&&this.viewRef.destroy(),this._row&&this.services.editEventDispatcher.deregisterRowWithHoverContent(this._row)}initElement(d){}makeElementHiddenButFocusable(d){d.style.opacity="0"}makeElementVisible(d){d.style.opacity=""}_listenForHoverAndFocusEvents(){this.services.editEventDispatcher.hoverOrFocusOnRow(this._row).pipe((0,G.Q)(this.destroyed)).subscribe(d=>{d===me.ON||d===me.FOCUSABLE?(this.viewRef?-1===this.viewContainerRef.indexOf(this.viewRef)&&(this.viewContainerRef.insert(this.viewRef),this.viewRef.markForCheck()):(this.viewRef=this.viewContainerRef.createEmbeddedView(this.templateRef,{}),this.initElement(this.viewRef.rootNodes[0]),this.viewRef.markForCheck()),d===me.ON?this.makeElementVisible(this.viewRef.rootNodes[0]):this.makeElementHiddenButFocusable(this.viewRef.rootNodes[0])):this.viewRef&&this.viewContainerRef.detach(this.viewContainerRef.indexOf(this.viewRef))})}static#e=this.\u0275fac=function(m){return new(m||_)(e.rXU(rt),e.rXU(e.aKT),e.rXU(e.C4Q),e.rXU(e.c1b))};static#t=this.\u0275dir=e.FsC({type:_,selectors:[["","cdkRowHoverContent",""]],standalone:!0})}return _})(),H=(()=>{class _{constructor(d,m){this.elementRef=d,this.editEventDispatcher=m;const y=d.nativeElement;"BUTTON"===y.nodeName&&!y.getAttribute("type")&&y.setAttribute("type","button")}openEdit(d){this.editEventDispatcher.editing.next(W(this.elementRef.nativeElement,ce)),d.stopPropagation()}static#e=this.\u0275fac=function(m){return new(m||_)(e.rXU(e.aKT),e.rXU(ue))};static#t=this.\u0275dir=e.FsC({type:_,selectors:[["","cdkEditOpen",""]],hostBindings:function(m,y){1&m&&e.bIt("click",function(j){return y.openEdit(j)})},standalone:!0})}return _})(),pe=(()=>{class _{static#e=this.\u0275fac=function(m){return new(m||_)};static#t=this.\u0275mod=e.$C({type:_});static#i=this.\u0275inj=e.G2t({imports:[O.z_]})}return _})()},5887:(wt,We,C)=>{C.d(We,{AL:()=>K,EZ:()=>I,F6:()=>W,I8:()=>ve,L_:()=>Ve,N0:()=>ft,RT:()=>ue,Rk:()=>Ie,To:()=>X,VP:()=>Be,Y$:()=>He,ZM:()=>xe,c7:()=>be,cO:()=>ee,df:()=>ke,hc:()=>Me,hi:()=>oe,ki:()=>Je,lH:()=>me,lQ:()=>se,n5:()=>ge,oh:()=>Ee,pe:()=>$e,sY:()=>ze,u4:()=>g,wA:()=>Ce,yT:()=>je});var e=C(8203),v=C(5024),J=C(6860),le=C(5478),he=C(177),l=C(4438),Ue=C(5286),$=C(9928),z=C(8982),De=C(4421),Y=C(7605);const Ne=[[["caption"]],[["colgroup"],["col"]],"*"],Fe=["caption","colgroup, col","*"];function we(h,S){1&h&&l.SdG(0,2)}function q(h,S){1&h&&(l.j41(0,"thead",0),l.eu8(1,1),l.k0s(),l.j41(2,"tbody",0),l.eu8(3,2)(4,3),l.k0s(),l.j41(5,"tfoot",0),l.eu8(6,4),l.k0s())}function de(h,S){1&h&&l.eu8(0,1)(1,2)(2,3)(3,4)}function Ge(h,S){if(1&h&&(l.j41(0,"th",3),l.EFF(1),l.k0s()),2&h){const o=l.XpG();l.xc7("text-align",o.justify),l.R7$(),l.SpI(" ",o.headerText," ")}}function L(h,S){if(1&h&&(l.j41(0,"td",4),l.EFF(1),l.k0s()),2&h){const o=S.$implicit,r=l.XpG();l.xc7("text-align",r.justify),l.R7$(),l.SpI(" ",r.dataAccessor(o,r.name)," ")}}const I=new l.nKC("CDK_TABLE"),G=new l.nKC("text-column-options");let ee=(()=>{class h{constructor(o){this.template=o}static#e=this.\u0275fac=function(r){return new(r||h)(l.rXU(l.C4Q))};static#t=this.\u0275dir=l.FsC({type:h,selectors:[["","cdkCellDef",""]],standalone:!0})}return h})(),ge=(()=>{class h{constructor(o){this.template=o}static#e=this.\u0275fac=function(r){return new(r||h)(l.rXU(l.C4Q))};static#t=this.\u0275dir=l.FsC({type:h,selectors:[["","cdkHeaderCellDef",""]],standalone:!0})}return h})(),Ve=(()=>{class h{constructor(o){this.template=o}static#e=this.\u0275fac=function(r){return new(r||h)(l.rXU(l.C4Q))};static#t=this.\u0275dir=l.FsC({type:h,selectors:[["","cdkFooterCellDef",""]],standalone:!0})}return h})(),K=(()=>{class h{get name(){return this._name}set name(o){this._setNameInput(o)}get sticky(){return this._sticky}set sticky(o){o!==this._sticky&&(this._sticky=o,this._hasStickyChanged=!0)}get stickyEnd(){return this._stickyEnd}set stickyEnd(o){o!==this._stickyEnd&&(this._stickyEnd=o,this._hasStickyChanged=!0)}constructor(o){this._table=o,this._hasStickyChanged=!1,this._sticky=!1,this._stickyEnd=!1}hasStickyChanged(){const o=this._hasStickyChanged;return this.resetStickyChanged(),o}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(o){o&&(this._name=o,this.cssClassFriendlyName=o.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static#e=this.\u0275fac=function(r){return new(r||h)(l.rXU(I,8))};static#t=this.\u0275dir=l.FsC({type:h,selectors:[["","cdkColumnDef",""]],contentQueries:function(r,f,D){if(1&r&&(l.wni(D,ee,5),l.wni(D,ge,5),l.wni(D,Ve,5)),2&r){let E;l.mGM(E=l.lsd())&&(f.cell=E.first),l.mGM(E=l.lsd())&&(f.headerCell=E.first),l.mGM(E=l.lsd())&&(f.footerCell=E.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",l.L39],stickyEnd:[2,"stickyEnd","stickyEnd",l.L39]},standalone:!0,features:[l.Jv_([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:h}]),l.GFd]})}return h})();class fe{constructor(S,o){o.nativeElement.classList.add(...S._columnCssClassName)}}let ze=(()=>{class h extends fe{constructor(o,r){super(o,r)}static#e=this.\u0275fac=function(r){return new(r||h)(l.rXU(K),l.rXU(l.aKT))};static#t=this.\u0275dir=l.FsC({type:h,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],standalone:!0,features:[l.Vt3]})}return h})(),be=(()=>{class h extends fe{constructor(o,r){super(o,r);const f=o._table?._getCellRole();f&&r.nativeElement.setAttribute("role",f)}static#e=this.\u0275fac=function(r){return new(r||h)(l.rXU(K),l.rXU(l.aKT))};static#t=this.\u0275dir=l.FsC({type:h,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],standalone:!0,features:[l.Vt3]})}return h})(),Be=(()=>{class h extends fe{constructor(o,r){super(o,r);const f=o._table?._getCellRole();f&&r.nativeElement.setAttribute("role",f)}static#e=this.\u0275fac=function(r){return new(r||h)(l.rXU(K),l.rXU(l.aKT))};static#t=this.\u0275dir=l.FsC({type:h,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],standalone:!0,features:[l.Vt3]})}return h})();class Pe{constructor(){this.tasks=[],this.endTasks=[]}}const X=new l.nKC("_COALESCED_STYLE_SCHEDULER");let se=(()=>{class h{constructor(o){this._currentSchedule=null,this._ngZone=(0,l.WQX)(l.SKi)}schedule(o){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(o)}scheduleEnd(o){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(o)}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Pe,this._ngZone.runOutsideAngular(()=>queueMicrotask(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const o=this._currentSchedule;this._currentSchedule=new Pe;for(const r of o.tasks)r();for(const r of o.endTasks)r()}this._currentSchedule=null})))}static#e=this.\u0275fac=function(r){return new(r||h)(l.KVO(l.SKi))};static#t=this.\u0275prov=l.jDH({token:h,factory:h.\u0275fac})}return h})(),Z=(()=>{class h{constructor(o,r){this.template=o,this._differs=r}ngOnChanges(o){if(!this._columnsDiffer){const r=o.columns&&o.columns.currentValue||[];this._columnsDiffer=this._differs.find(r).create(),this._columnsDiffer.diff(r)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(o){return this instanceof oe?o.headerCell.template:this instanceof ke?o.footerCell.template:o.cell.template}static#e=this.\u0275fac=function(r){return new(r||h)(l.rXU(l.C4Q),l.rXU(l._q3))};static#t=this.\u0275dir=l.FsC({type:h,features:[l.OA$]})}return h})(),oe=(()=>{class h extends Z{get sticky(){return this._sticky}set sticky(o){o!==this._sticky&&(this._sticky=o,this._hasStickyChanged=!0)}constructor(o,r,f){super(o,r),this._table=f,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(o){super.ngOnChanges(o)}hasStickyChanged(){const o=this._hasStickyChanged;return this.resetStickyChanged(),o}resetStickyChanged(){this._hasStickyChanged=!1}static#e=this.\u0275fac=function(r){return new(r||h)(l.rXU(l.C4Q),l.rXU(l._q3),l.rXU(I,8))};static#t=this.\u0275dir=l.FsC({type:h,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",l.L39]},standalone:!0,features:[l.GFd,l.Vt3,l.OA$]})}return h})(),ke=(()=>{class h extends Z{get sticky(){return this._sticky}set sticky(o){o!==this._sticky&&(this._sticky=o,this._hasStickyChanged=!0)}constructor(o,r,f){super(o,r),this._table=f,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(o){super.ngOnChanges(o)}hasStickyChanged(){const o=this._hasStickyChanged;return this.resetStickyChanged(),o}resetStickyChanged(){this._hasStickyChanged=!1}static#e=this.\u0275fac=function(r){return new(r||h)(l.rXU(l.C4Q),l.rXU(l._q3),l.rXU(I,8))};static#t=this.\u0275dir=l.FsC({type:h,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",l.L39]},standalone:!0,features:[l.GFd,l.Vt3,l.OA$]})}return h})(),Ee=(()=>{class h extends Z{constructor(o,r,f){super(o,r),this._table=f}static#e=this.\u0275fac=function(r){return new(r||h)(l.rXU(l.C4Q),l.rXU(l._q3),l.rXU(I,8))};static#t=this.\u0275dir=l.FsC({type:h,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},standalone:!0,features:[l.Vt3]})}return h})(),ve=(()=>{class h{static#e=this.mostRecentCellOutlet=null;constructor(o){this._viewContainer=o,h.mostRecentCellOutlet=this}ngOnDestroy(){h.mostRecentCellOutlet===this&&(h.mostRecentCellOutlet=null)}static#t=this.\u0275fac=function(r){return new(r||h)(l.rXU(l.c1b))};static#i=this.\u0275dir=l.FsC({type:h,selectors:[["","cdkCellOutlet",""]],standalone:!0})}return h})(),Ce=(()=>{class h{static#e=this.\u0275fac=function(r){return new(r||h)};static#t=this.\u0275cmp=l.VBU({type:h,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],standalone:!0,features:[l.aNF],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,f){1&r&&l.eu8(0,0)},dependencies:[ve],encapsulation:2})}return h})(),He=(()=>{class h{static#e=this.\u0275fac=function(r){return new(r||h)};static#t=this.\u0275cmp=l.VBU({type:h,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],standalone:!0,features:[l.aNF],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,f){1&r&&l.eu8(0,0)},dependencies:[ve],encapsulation:2})}return h})(),Me=(()=>{class h{static#e=this.\u0275fac=function(r){return new(r||h)};static#t=this.\u0275cmp=l.VBU({type:h,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],standalone:!0,features:[l.aNF],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,f){1&r&&l.eu8(0,0)},dependencies:[ve],encapsulation:2})}return h})(),g=(()=>{class h{constructor(o){this.templateRef=o,this._contentClassName="cdk-no-data-row"}static#e=this.\u0275fac=function(r){return new(r||h)(l.rXU(l.C4Q))};static#t=this.\u0275dir=l.FsC({type:h,selectors:[["ng-template","cdkNoDataRow",""]],standalone:!0})}return h})();const O=["top","bottom","left","right"];class w{constructor(S,o,r,f,D=!0,E=!0,N){this._isNativeHtmlTable=S,this._stickCellCss=o,this.direction=r,this._coalescedStyleScheduler=f,this._isBrowser=D,this._needsPositionStickyOnElement=E,this._positionListener=N,this._cachedCellWidths=[],this._borderCellCss={top:`${o}-border-elem-top`,bottom:`${o}-border-elem-bottom`,left:`${o}-border-elem-left`,right:`${o}-border-elem-right`}}clearStickyPositioning(S,o){const r=[];for(const f of S)if(f.nodeType===f.ELEMENT_NODE){r.push(f);for(let D=0;D<f.children.length;D++)r.push(f.children[D])}this._coalescedStyleScheduler.schedule(()=>{for(const f of r)this._removeStickyStyle(f,o)})}updateStickyColumns(S,o,r,f=!0){S.length&&this._isBrowser&&(o.some(D=>D)||r.some(D=>D))?this._coalescedStyleScheduler.schedule(()=>{const D=S[0],E=D.children.length,N=this._getCellWidths(D,f),B=this._getStickyStartColumnPositions(N,o),Q=this._getStickyEndColumnPositions(N,r),H=o.lastIndexOf(!0),re=r.indexOf(!0),pe="rtl"===this.direction,_=pe?"right":"left",R=pe?"left":"right";for(const d of S)for(let m=0;m<E;m++){const y=d.children[m];o[m]&&this._addStickyStyle(y,_,B[m],m===H),r[m]&&this._addStickyStyle(y,R,Q[m],m===re)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===H?[]:N.slice(0,H+1).map((d,m)=>o[m]?d:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===re?[]:N.slice(re).map((d,m)=>r[m+re]?d:null).reverse()}))}):this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}))}stickRows(S,o,r){this._isBrowser&&this._coalescedStyleScheduler.schedule(()=>{const f="bottom"===r?S.slice().reverse():S,D="bottom"===r?o.slice().reverse():o,E=[],N=[],B=[];for(let H=0,re=0;H<f.length;H++){if(!D[H])continue;E[H]=re;const pe=f[H];B[H]=this._isNativeHtmlTable?Array.from(pe.children):[pe];const _=pe.getBoundingClientRect().height;re+=_,N[H]=_}const Q=D.lastIndexOf(!0);for(let H=0;H<f.length;H++){if(!D[H])continue;const re=E[H],pe=H===Q;for(const _ of B[H])this._addStickyStyle(_,r,re,pe)}"top"===r?this._positionListener?.stickyHeaderRowsUpdated({sizes:N,offsets:E,elements:B}):this._positionListener?.stickyFooterRowsUpdated({sizes:N,offsets:E,elements:B})})}updateStickyFooterContainer(S,o){this._isNativeHtmlTable&&this._coalescedStyleScheduler.schedule(()=>{const r=S.querySelector("tfoot");r&&(o.some(f=>!f)?this._removeStickyStyle(r,["bottom"]):this._addStickyStyle(r,"bottom",0,!1))})}_removeStickyStyle(S,o){for(const f of o)S.style[f]="",S.classList.remove(this._borderCellCss[f]);O.some(f=>-1===o.indexOf(f)&&S.style[f])?S.style.zIndex=this._getCalculatedZIndex(S):(S.style.zIndex="",this._needsPositionStickyOnElement&&(S.style.position=""),S.classList.remove(this._stickCellCss))}_addStickyStyle(S,o,r,f){S.classList.add(this._stickCellCss),f&&S.classList.add(this._borderCellCss[o]),S.style[o]=`${r}px`,S.style.zIndex=this._getCalculatedZIndex(S),this._needsPositionStickyOnElement&&(S.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(S){const o={top:100,bottom:10,left:1,right:1};let r=0;for(const f of O)S.style[f]&&(r+=o[f]);return r?`${r}`:""}_getCellWidths(S,o=!0){if(!o&&this._cachedCellWidths.length)return this._cachedCellWidths;const r=[],f=S.children;for(let D=0;D<f.length;D++)r.push(f[D].getBoundingClientRect().width);return this._cachedCellWidths=r,r}_getStickyStartColumnPositions(S,o){const r=[];let f=0;for(let D=0;D<S.length;D++)o[D]&&(r[D]=f,f+=S[D]);return r}_getStickyEndColumnPositions(S,o){const r=[];let f=0;for(let D=S.length;D>0;D--)o[D]&&(r[D]=f,f+=S[D]);return r}}const xe=new l.nKC("CDK_SPL");let W=(()=>{class h{static#e=this.\u0275fac=function(r){return new(r||h)};static#t=this.\u0275dir=l.FsC({type:h,selectors:[["cdk-table","recycleRows",""],["table","cdk-table","","recycleRows",""]],standalone:!0,features:[l.Jv_([{provide:v.sL,useClass:v.DQ}])]})}return h})(),je=(()=>{class h{constructor(o,r){this.viewContainer=o,this.elementRef=r;const f=(0,l.WQX)(I);f._rowOutlet=this,f._outletAssigned()}static#e=this.\u0275fac=function(r){return new(r||h)(l.rXU(l.c1b),l.rXU(l.aKT))};static#t=this.\u0275dir=l.FsC({type:h,selectors:[["","rowOutlet",""]],standalone:!0})}return h})(),$e=(()=>{class h{constructor(o,r){this.viewContainer=o,this.elementRef=r;const f=(0,l.WQX)(I);f._headerRowOutlet=this,f._outletAssigned()}static#e=this.\u0275fac=function(r){return new(r||h)(l.rXU(l.c1b),l.rXU(l.aKT))};static#t=this.\u0275dir=l.FsC({type:h,selectors:[["","headerRowOutlet",""]],standalone:!0})}return h})(),me=(()=>{class h{constructor(o,r){this.viewContainer=o,this.elementRef=r;const f=(0,l.WQX)(I);f._footerRowOutlet=this,f._outletAssigned()}static#e=this.\u0275fac=function(r){return new(r||h)(l.rXU(l.c1b),l.rXU(l.aKT))};static#t=this.\u0275dir=l.FsC({type:h,selectors:[["","footerRowOutlet",""]],standalone:!0})}return h})(),ue=(()=>{class h{constructor(o,r){this.viewContainer=o,this.elementRef=r;const f=(0,l.WQX)(I);f._noDataRowOutlet=this,f._outletAssigned()}static#e=this.\u0275fac=function(r){return new(r||h)(l.rXU(l.c1b),l.rXU(l.aKT))};static#t=this.\u0275dir=l.FsC({type:h,selectors:[["","noDataRowOutlet",""]],standalone:!0})}return h})(),Ie=(()=>{class h{_getCellRole(){if(void 0===this._cellRoleInternal){const o=this._elementRef.nativeElement.getAttribute("role"),r="grid"===o||"treegrid"===o?"gridcell":"cell";this._cellRoleInternal=this._isNativeHtmlTable&&"cell"===r?null:r}return this._cellRoleInternal}get trackBy(){return this._trackByFn}set trackBy(o){this._trackByFn=o}get dataSource(){return this._dataSource}set dataSource(o){this._dataSource!==o&&this._switchDataSource(o)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(o){this._multiTemplateDataRows=o,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(o){this._fixedLayout=o,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(o,r,f,D,E,N,B,Q,H,re,pe,_){this._differs=o,this._changeDetectorRef=r,this._elementRef=f,this._dir=E,this._platform=B,this._viewRepeater=Q,this._coalescedStyleScheduler=H,this._viewportRuler=re,this._stickyPositioningListener=pe,this._onDestroy=new Ue.B7,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._hasAllOutlets=!1,this._hasInitialized=!1,this._cellRoleInternal=void 0,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new l.bkB,this.viewChange=new $.t({start:0,end:Number.MAX_VALUE}),this._injector=(0,l.WQX)(l.zZn),D||f.nativeElement.setAttribute("role","table"),this._document=N,this._isServer=!B.isBrowser,this._isNativeHtmlTable="TABLE"===f.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((o,r)=>this.trackBy?this.trackBy(r.dataIndex,r.data):r),this._viewportRuler.change().pipe((0,Y.Q)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(o=>{o?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,v.y4)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const o=this._dataDiffer.diff(this._renderRows);if(!o)return this._updateNoDataRow(),void this.contentChanged.next();const r=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(o,r,(f,D,E)=>this._getEmbeddedViewArgs(f.item,E),f=>f.item.data,f=>{f.operation===v.Q3.INSERTED&&f.context&&this._renderCellTemplateForItem(f.record.item.rowDef,f.context)}),this._updateRowIndexContext(),o.forEachIdentityChange(f=>{r.get(f.currentIndex).context.$implicit=f.item.data}),this._updateNoDataRow(),(0,l.mal)(()=>{this.updateStickyColumnStyles()},{injector:this._injector}),this.contentChanged.next()}addColumnDef(o){this._customColumnDefs.add(o)}removeColumnDef(o){this._customColumnDefs.delete(o)}addRowDef(o){this._customRowDefs.add(o)}removeRowDef(o){this._customRowDefs.delete(o)}addHeaderRowDef(o){this._customHeaderRowDefs.add(o),this._headerRowDefChanged=!0}removeHeaderRowDef(o){this._customHeaderRowDefs.delete(o),this._headerRowDefChanged=!0}addFooterRowDef(o){this._customFooterRowDefs.add(o),this._footerRowDefChanged=!0}removeFooterRowDef(o){this._customFooterRowDefs.delete(o),this._footerRowDefChanged=!0}setNoDataRow(o){this._customNoDataRow=o}updateStickyHeaderRowStyles(){const o=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){const f=Qe(this._headerRowOutlet,"thead");f&&(f.style.display=o.length?"":"none")}const r=this._headerRowDefs.map(f=>f.sticky);this._stickyStyler.clearStickyPositioning(o,["top"]),this._stickyStyler.stickRows(o,r,"top"),this._headerRowDefs.forEach(f=>f.resetStickyChanged())}updateStickyFooterRowStyles(){const o=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){const f=Qe(this._footerRowOutlet,"tfoot");f&&(f.style.display=o.length?"":"none")}const r=this._footerRowDefs.map(f=>f.sticky);this._stickyStyler.clearStickyPositioning(o,["bottom"]),this._stickyStyler.stickRows(o,r,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,r),this._footerRowDefs.forEach(f=>f.resetStickyChanged())}updateStickyColumnStyles(){const o=this._getRenderedRows(this._headerRowOutlet),r=this._getRenderedRows(this._rowOutlet),f=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...o,...r,...f],["left","right"]),this._stickyColumnStylesNeedReset=!1),o.forEach((D,E)=>{this._addStickyColumnStyles([D],this._headerRowDefs[E])}),this._rowDefs.forEach(D=>{const E=[];for(let N=0;N<r.length;N++)this._renderRows[N].rowDef===D&&E.push(r[N]);this._addStickyColumnStyles(E,D)}),f.forEach((D,E)=>{this._addStickyColumnStyles([D],this._footerRowDefs[E])}),Array.from(this._columnDefsByName.values()).forEach(D=>D.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs();const r=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||r,this._forceRecalculateCellWidths=r,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){const o=[],r=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let f=0;f<this._data.length;f++){let D=this._data[f];const E=this._getRenderRowsForData(D,f,r.get(D));this._cachedRenderRowsMap.has(D)||this._cachedRenderRowsMap.set(D,new WeakMap);for(let N=0;N<E.length;N++){let B=E[N];const Q=this._cachedRenderRowsMap.get(B.data);Q.has(B.rowDef)?Q.get(B.rowDef).push(B):Q.set(B.rowDef,[B]),o.push(B)}}return o}_getRenderRowsForData(o,r,f){return this._getRowDefs(o,r).map(E=>{const N=f&&f.has(E)?f.get(E):[];if(N.length){const B=N.shift();return B.dataIndex=r,B}return{data:o,rowDef:E,dataIndex:r}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Ke(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(r=>{this._columnDefsByName.has(r.name),this._columnDefsByName.set(r.name,r)})}_cacheRowDefs(){this._headerRowDefs=Ke(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Ke(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Ke(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const o=this._rowDefs.filter(r=>!r.when);this._defaultRowDef=o[0]}_renderUpdatedColumns(){const o=(E,N)=>E||!!N.getColumnsDiff(),r=this._rowDefs.reduce(o,!1);r&&this._forceRenderDataRows();const f=this._headerRowDefs.reduce(o,!1);f&&this._forceRenderHeaderRows();const D=this._footerRowDefs.reduce(o,!1);return D&&this._forceRenderFooterRows(),r||f||D}_switchDataSource(o){this._data=[],(0,v.y4)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),o||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=o}_observeRenderChanges(){if(!this.dataSource)return;let o;(0,v.y4)(this.dataSource)?o=this.dataSource.connect(this):(0,z.A)(this.dataSource)?o=this.dataSource:Array.isArray(this.dataSource)&&(o=(0,De.of)(this.dataSource)),this._renderChangeSubscription=o.pipe((0,Y.Q)(this._onDestroy)).subscribe(r=>{this._data=r||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((o,r)=>this._renderRow(this._headerRowOutlet,o,r)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((o,r)=>this._renderRow(this._footerRowOutlet,o,r)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(o,r){const f=Array.from(r.columns||[]).map(N=>this._columnDefsByName.get(N)),D=f.map(N=>N.sticky),E=f.map(N=>N.stickyEnd);this._stickyStyler.updateStickyColumns(o,D,E,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(o){const r=[];for(let f=0;f<o.viewContainer.length;f++){const D=o.viewContainer.get(f);r.push(D.rootNodes[0])}return r}_getRowDefs(o,r){if(1==this._rowDefs.length)return[this._rowDefs[0]];let f=[];if(this.multiTemplateDataRows)f=this._rowDefs.filter(D=>!D.when||D.when(r,o));else{let D=this._rowDefs.find(E=>E.when&&E.when(r,o))||this._defaultRowDef;D&&f.push(D)}return f}_getEmbeddedViewArgs(o,r){return{templateRef:o.rowDef.template,context:{$implicit:o.data},index:r}}_renderRow(o,r,f,D={}){const E=o.viewContainer.createEmbeddedView(r.template,D,f);return this._renderCellTemplateForItem(r,D),E}_renderCellTemplateForItem(o,r){for(let f of this._getCellTemplates(o))ve.mostRecentCellOutlet&&ve.mostRecentCellOutlet._viewContainer.createEmbeddedView(f,r);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const o=this._rowOutlet.viewContainer;for(let r=0,f=o.length;r<f;r++){const E=o.get(r).context;E.count=f,E.first=0===r,E.last=r===f-1,E.even=r%2==0,E.odd=!E.even,this.multiTemplateDataRows?(E.dataIndex=this._renderRows[r].dataIndex,E.renderIndex=r):E.index=this._renderRows[r].dataIndex}}_getCellTemplates(o){return o&&o.columns?Array.from(o.columns,r=>{const f=this._columnDefsByName.get(r);return o.extractCellTemplate(f)}):[]}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const o=(r,f)=>r||f.hasStickyChanged();this._headerRowDefs.reduce(o,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(o,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(o,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new w(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,De.of)()).pipe((0,Y.Q)(this._onDestroy)).subscribe(r=>{this._stickyStyler.direction=r,this.updateStickyColumnStyles()})}_getOwnDefs(o){return o.filter(r=>!r._table||r._table===this)}_updateNoDataRow(){const o=this._customNoDataRow||this._noDataRow;if(!o)return;const r=0===this._rowOutlet.viewContainer.length;if(r===this._isShowingNoDataRow)return;const f=this._noDataRowOutlet.viewContainer;if(r){const D=f.createEmbeddedView(o.templateRef),E=D.rootNodes[0];1===D.rootNodes.length&&E?.nodeType===this._document.ELEMENT_NODE&&(E.setAttribute("role","row"),E.classList.add(o._contentClassName))}else f.clear();this._isShowingNoDataRow=r,this._changeDetectorRef.markForCheck()}static#e=this.\u0275fac=function(r){return new(r||h)(l.rXU(l._q3),l.rXU(l.gRc),l.rXU(l.aKT),l.kS0("role"),l.rXU(e.dS,8),l.rXU(he.qQ),l.rXU(J.OD),l.rXU(v.sL),l.rXU(X),l.rXU(le.Xj),l.rXU(xe,12),l.rXU(l.SKi,8))};static#t=this.\u0275cmp=l.VBU({type:h,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(r,f,D){if(1&r&&(l.wni(D,g,5),l.wni(D,K,5),l.wni(D,Ee,5),l.wni(D,oe,5),l.wni(D,ke,5)),2&r){let E;l.mGM(E=l.lsd())&&(f._noDataRow=E.first),l.mGM(E=l.lsd())&&(f._contentColumnDefs=E),l.mGM(E=l.lsd())&&(f._contentRowDefs=E),l.mGM(E=l.lsd())&&(f._contentHeaderRowDefs=E),l.mGM(E=l.lsd())&&(f._contentFooterRowDefs=E)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(r,f){2&r&&l.AVh("cdk-table-fixed-layout",f.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",l.L39],fixedLayout:[2,"fixedLayout","fixedLayout",l.L39]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],standalone:!0,features:[l.Jv_([{provide:I,useExisting:h},{provide:v.sL,useClass:v.xn},{provide:X,useClass:se},{provide:xe,useValue:null}]),l.GFd,l.aNF],ngContentSelectors:Fe,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(r,f){1&r&&(l.NAR(Ne),l.SdG(0),l.SdG(1,1),l.DNE(2,we,1,0)(3,q,7,0)(4,de,4,0)),2&r&&(l.R7$(2),l.vxM(f._isServer?2:-1),l.R7$(),l.vxM(f._isNativeHtmlTable?3:4))},dependencies:[$e,je,ue,me],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}return h})();function Ke(h,S){return h.concat(Array.from(S))}function Qe(h,S){const o=S.toUpperCase();let r=h.viewContainer.element.nativeElement;for(;r;){const f=1===r.nodeType?r.nodeName:null;if(f===o)return r;if("TABLE"===f)break;r=r.parentNode}return null}let Je=(()=>{class h{get name(){return this._name}set name(o){this._name=o,this._syncColumnDefName()}constructor(o,r){this._table=o,this._options=r,this.justify="start",this._options=r||{}}ngOnInit(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((o,r)=>o[r])),this._table&&(this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef))}ngOnDestroy(){this._table&&this._table.removeColumnDef(this.columnDef)}_createDefaultHeaderText(){const o=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(o):o[0].toUpperCase()+o.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}static#e=this.\u0275fac=function(r){return new(r||h)(l.rXU(Ie,8),l.rXU(G,8))};static#t=this.\u0275cmp=l.VBU({type:h,selectors:[["cdk-text-column"]],viewQuery:function(r,f){if(1&r&&(l.GBs(K,7),l.GBs(ee,7),l.GBs(ge,7)),2&r){let D;l.mGM(D=l.lsd())&&(f.columnDef=D.first),l.mGM(D=l.lsd())&&(f.cell=D.first),l.mGM(D=l.lsd())&&(f.headerCell=D.first)}},inputs:{name:"name",headerText:"headerText",dataAccessor:"dataAccessor",justify:"justify"},standalone:!0,features:[l.aNF],decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(r,f){1&r&&(l.qex(0,0),l.DNE(1,Ge,2,3,"th",1)(2,L,2,3,"td",2),l.bVm())},dependencies:[K,ge,ze,ee,Be],encapsulation:2})}return h})(),ft=(()=>{class h{static#e=this.\u0275fac=function(r){return new(r||h)};static#t=this.\u0275mod=l.$C({type:h});static#i=this.\u0275inj=l.G2t({imports:[le.E9]})}return h})()},1122:(wt,We,C)=>{C.r(We),C.d(We,{DefaultEnabledColumnResizeExample:()=>Pt,DefaultEnabledColumnResizeFlexExample:()=>ii,OptInColumnResizeExample:()=>Dt});var e=C(4438),v=C(6450),J=C(5286),le=C(3586),he=C(4670),l=C(9776),Ue=C(5817),$=C(5006),z=C(7605),De=C(8728),Y=C(8979),Ne=C(9493),Fe=C(3176),we=C(7414),q=C(522),de=C(7763),Ge=C(7753),L=C(7588),I=C(5887),G=C(177),ee=C(4085),ge=C(6939),Ve=C(7336);const K=".cdk-header-cell, .mat-header-cell",fe=".cdk-header-row, .mat-header-row",be="cdk-column-resize-hover-or-active";let Pe=0,X=(()=>{class c{constructor(){this.destroyed=new J.B7,this.selectorId=""+ ++Pe}ngAfterViewInit(){this.elementRef.nativeElement.classList.add(this.getUniqueCssClass()),this._listenForRowHoverEvents(),this._listenForResizeActivity(),this._listenForHoverActivity()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}getUniqueCssClass(){return`cdk-column-resize-${this.selectorId}`}setResized(){this.elementRef.nativeElement.classList.add("cdk-column-resize-with-resized-column")}_listenForRowHoverEvents(){this.ngZone.runOutsideAngular(()=>{const u=this.elementRef.nativeElement;(0,le.R)(u,"mouseover").pipe((0,$.T)(p=>(0,L.nx)(p.target,K)),(0,z.Q)(this.destroyed)).subscribe(this.eventDispatcher.headerCellHovered),(0,le.R)(u,"mouseleave").pipe((0,De.p)(p=>!!p.relatedTarget&&!p.relatedTarget.matches(".mat-column-resize-overlay-thumb")),(0,Y.u)(null),(0,z.Q)(this.destroyed)).subscribe(this.eventDispatcher.headerCellHovered)})}_listenForResizeActivity(){(0,he.h)(this.eventDispatcher.overlayHandleActiveForCell.pipe((0,Y.u)(void 0)),this.notifier.triggerResize.pipe((0,Y.u)(void 0)),this.notifier.resizeCompleted.pipe((0,Y.u)(void 0))).pipe((0,Ne.s)(1),(0,z.Q)(this.destroyed)).subscribe(()=>{this.setResized()})}_listenForHoverActivity(){this.eventDispatcher.headerRowHoveredOrActiveDistinct.pipe((0,Fe.Z)(null),(0,we.J)(),(0,z.Q)(this.destroyed)).subscribe(([u,p])=>{p&&p.classList.add(be),u&&u.classList.remove(be)})}static#e=this.\u0275fac=function(p){return new(p||c)};static#t=this.\u0275dir=e.FsC({type:c})}return c})(),se=(()=>{class c{constructor(){this.resizeCanceled=new J.B7,this.resizeCompleted=new J.B7,this.triggerResize=new J.B7}static#e=this.\u0275fac=function(p){return new(p||c)};static#t=this.\u0275prov=e.jDH({token:c,factory:c.\u0275fac})}return c})(),Re=(()=>{class c{constructor(u){this._source=u,this.resizeCompleted=this._source.resizeCompleted}resize(u,p){this._source.triggerResize.next({columnId:u,size:p,completeImmediately:!0,isStickyColumn:!0})}static#e=this.\u0275fac=function(p){return new(p||c)(e.KVO(se))};static#t=this.\u0275prov=e.jDH({token:c,factory:c.\u0275fac})}return c})(),Z=(()=>{class c{constructor(u){this._ngZone=u,this.headerCellHovered=new J.B7,this.overlayHandleActiveForCell=new J.B7,this.headerCellHoveredDistinct=this.headerCellHovered.pipe((0,q.F)(),(0,de.u)()),this.headerRowHoveredOrActiveDistinct=(0,l.zV)([this.headerCellHoveredDistinct.pipe((0,$.T)(p=>(0,L.nx)(p,fe)),(0,Fe.Z)(null),(0,q.F)()),this.overlayHandleActiveForCell.pipe((0,$.T)(p=>(0,L.nx)(p,fe)),(0,Fe.Z)(null),(0,q.F)())]).pipe((0,Ge.i)(1),(0,$.T)(([p,b])=>b||p),(0,q.F)(),(0,de.u)()),this._headerRowHoveredOrActiveDistinctReenterZone=this.headerRowHoveredOrActiveDistinct.pipe(this._enterZone(),(0,de.u)()),this._lastSeenRow=null,this._lastSeenRowHover=null}resizeOverlayVisibleForHeaderRow(u){return u!==this._lastSeenRow&&(this._lastSeenRow=u,this._lastSeenRowHover=this._headerRowHoveredOrActiveDistinctReenterZone.pipe((0,$.T)(p=>p===u),(0,q.F)(),(0,de.u)())),this._lastSeenRowHover}_enterZone(){return u=>new Ue.c(p=>u.subscribe({next:b=>this._ngZone.run(()=>p.next(b)),error:b=>p.error(b),complete:()=>p.complete()}))}static#e=this.\u0275fac=function(p){return new(p||c)(e.KVO(e.SKi))};static#t=this.\u0275prov=e.jDH({token:c,factory:c.\u0275fac})}return c})(),oe=(()=>{class c{constructor(){this._pendingResizeDelta=null}updateTableWidthAndStickyColumns(u){if(null===this._pendingResizeDelta){const p=this.columnResize.elementRef.nativeElement,b=Ce(p);this.styleScheduler.schedule(()=>{p.style.width=(0,ee.a1)(b+this._pendingResizeDelta),this._pendingResizeDelta=null}),this.styleScheduler.scheduleEnd(()=>{this.table.updateStickyColumnStyles()})}this._pendingResizeDelta=(this._pendingResizeDelta??0)+u}static#e=this.\u0275fac=function(p){return new(p||c)};static#t=this.\u0275prov=e.jDH({token:c,factory:c.\u0275fac})}return c})(),ke=(()=>{class c extends oe{constructor(u,p,b){super(),this.columnResize=u,this.styleScheduler=p,this.table=b}applyColumnSize(u,p,b,A){const T=b-(A??Ce(p));0!==T&&(this.styleScheduler.schedule(()=>{p.style.width=(0,ee.a1)(b)}),this.updateTableWidthAndStickyColumns(T))}applyMinColumnSize(u,p,b){const A=Ce(p),T=Math.max(A,b);this.applyColumnSize(u,p,T,A)}applyMaxColumnSize(u,p,b){const A=Ce(p),T=Math.min(A,b);this.applyColumnSize(u,p,T,A)}static#e=this.\u0275fac=function(p){return new(p||c)(e.KVO(X),e.KVO(I.To),e.KVO(I.Rk))};static#t=this.\u0275prov=e.jDH({token:c,factory:c.\u0275fac})}return c})(),Ee=(()=>{class c extends oe{constructor(u,p,b,A,T){super(),this.columnResize=u,this.styleScheduler=p,this.table=b,this._nonce=T,this._columnIndexes=new Map,this._columnProperties=new Map,this._indexSequence=0,this.defaultMinSize=0,this.defaultMaxSize=Number.MAX_SAFE_INTEGER,this._document=A}applyColumnSize(u,p,b,A){const T=b-(A??(this._getAppliedWidth(u)||p.offsetWidth));if(0===T)return;const ae=(0,ee.a1)(b);this._applyProperty(u,"flex",`0 0.01 ${ae}`),this.updateTableWidthAndStickyColumns(T)}applyMinColumnSize(u,p,b){const A=(0,ee.a1)(b);this._applyProperty(u,"min-width",A,b!==this.defaultMinSize),this.updateTableWidthAndStickyColumns(0)}applyMaxColumnSize(u,p,b){const A=(0,ee.a1)(b);this._applyProperty(u,"max-width",A,b!==this.defaultMaxSize),this.updateTableWidthAndStickyColumns(0)}getColumnCssClass(u){return`cdk-column-${u}`}ngOnDestroy(){this._styleElement?.remove(),this._styleElement=void 0}_getPropertyValue(u,p){return this._getColumnPropertiesMap(u).get(p)}_getAppliedWidth(u){return function He(c){return Number(c?.match(/0 0\.01 (\d+)px/)?.[1])}(this._getPropertyValue(u,"flex"))}_applyProperty(u,p,b,A=!0){const T=this._getColumnPropertiesMap(u);this.styleScheduler.schedule(()=>{A?T.set(p,b):T.delete(p),this._applySizeCss(u)})}_getStyleSheet(){return this._styleElement||(this._styleElement=this._document.createElement("style"),this._nonce&&this._styleElement.setAttribute("nonce",this._nonce),this._styleElement.appendChild(this._document.createTextNode("")),this._document.head.appendChild(this._styleElement)),this._styleElement.sheet}_getColumnPropertiesMap(u){let p=this._columnProperties.get(u);return void 0===p&&(p=new Map,this._columnProperties.set(u,p)),p}_applySizeCss(u){const p=this._getColumnPropertiesMap(u),b=Array.from(p.keys());let A=this._columnIndexes.get(u);if(void 0===A){if(!b.length)return;A=this._indexSequence++,this._columnIndexes.set(u,A)}else this._getStyleSheet().deleteRule(A);const T=this.getColumnCssClass(u),Ae=`.${this.columnResize.getUniqueCssClass()} .${T}`,Oe=b.map(ne=>`${ne}:${p.get(ne)}`).join(";");this._getStyleSheet().insertRule(`${Ae} {${Oe}}`,A)}static#e=this.\u0275fac=function(p){return new(p||c)(e.KVO(X),e.KVO(I.To),e.KVO(I.Rk),e.KVO(G.qQ),e.KVO(e.BIS,8))};static#t=this.\u0275prov=e.jDH({token:c,factory:c.\u0275fac})}return c})();function Ce(c){return function ve(c){return Number(c.match(/(\d+)px/)?.[1])}(c.style.width)||c.offsetWidth}const Me={provide:oe,useClass:ke};class xe{constructor(k,u,p,b){this.origin=k,this.overlayRef=u,this.minWidthPx=p,this.maxWidthPx=b}}const W="cdk-resizable-overlay-thumb-active";let je=(()=>{class c{constructor(){this.minWidthPxInternal=0,this.maxWidthPxInternal=Number.MAX_SAFE_INTEGER,this.destroyed=new J.B7,this._viewInitialized=!1,this._isDestroyed=!1}get minWidthPx(){return this.minWidthPxInternal}set minWidthPx(u){this.minWidthPxInternal=u,this.columnResize.setResized(),this.elementRef.nativeElement&&this._viewInitialized&&this._applyMinWidthPx()}get maxWidthPx(){return this.maxWidthPxInternal}set maxWidthPx(u){this.maxWidthPxInternal=u,this.columnResize.setResized(),this.elementRef.nativeElement&&this._viewInitialized&&this._applyMaxWidthPx()}ngAfterViewInit(){this._listenForRowHoverEvents(),this._listenForResizeEvents(),this._appendInlineHandle(),this.styleScheduler.scheduleEnd(()=>{this._isDestroyed||(this._viewInitialized=!0,this._applyMinWidthPx(),this._applyMaxWidthPx())})}ngOnDestroy(){this._isDestroyed=!0,this.destroyed.next(),this.destroyed.complete(),this.inlineHandle?.remove(),this.overlayRef?.dispose()}_createOverlayForHandle(){const u="rtl"===this.directionality.value,p=this.overlay.position().flexibleConnectedTo(this.elementRef.nativeElement).withFlexibleDimensions(!1).withGrowAfterOpen(!1).withPush(!1).withDefaultOffsetX(u?1:0).withPositions([{originX:u?"start":"end",originY:"top",overlayX:"center",overlayY:"top"}]);return this.overlay.create({direction:"ltr",disposeOnNavigation:!0,positionStrategy:p,scrollStrategy:this.overlay.scrollStrategies.reposition(),width:"16px"})}_listenForRowHoverEvents(){const u=this.elementRef.nativeElement,p=(0,z.Q)(this.destroyed);this.eventDispatcher.resizeOverlayVisibleForHeaderRow((0,L.nx)(u,fe)).pipe(p).subscribe(b=>{b?(this.overlayRef||(this.overlayRef=this._createOverlayForHandle()),this._showHandleOverlay()):this.overlayRef&&this.overlayRef.detach()})}_listenForResizeEvents(){const u=(0,z.Q)(this.destroyed);(0,he.h)(this.resizeNotifier.resizeCanceled,this.resizeNotifier.triggerResize).pipe(u,(0,De.p)(p=>p.columnId===this.columnDef.name)).subscribe(({size:p,previousSize:b,completeImmediately:A})=>{this.elementRef.nativeElement.classList.add(W),this._applySize(p,b),A&&this._completeResizeOperation()}),(0,he.h)(this.resizeNotifier.resizeCanceled,this.resizeNotifier.resizeCompleted).pipe(u).subscribe(p=>{this._cleanUpAfterResize(p)})}_completeResizeOperation(){this.ngZone.run(()=>{this.resizeNotifier.resizeCompleted.next({columnId:this.columnDef.name,size:this.elementRef.nativeElement.offsetWidth})})}_cleanUpAfterResize(u){this.elementRef.nativeElement.classList.remove(W),this.overlayRef&&this.overlayRef.hasAttached()&&(this._updateOverlayHandleHeight(),this.overlayRef.updatePosition(),u.columnId===this.columnDef.name&&this.inlineHandle.focus())}_createHandlePortal(){const u=e.zZn.create({parent:this.injector,providers:[{provide:xe,useValue:new xe(this.elementRef,this.overlayRef,this.minWidthPx,this.maxWidthPx)}]});return new ge.A8(this.getOverlayHandleComponentType(),this.viewContainerRef,u)}_showHandleOverlay(){this._updateOverlayHandleHeight(),this.overlayRef.attach(this._createHandlePortal()),this.changeDetectorRef.markForCheck()}_updateOverlayHandleHeight(){this.overlayRef.updateSize({height:this.elementRef.nativeElement.offsetHeight})}_applySize(u,p){const b=Math.min(Math.max(u,this.minWidthPx,0),this.maxWidthPx);this.resizeStrategy.applyColumnSize(this.columnDef.cssClassFriendlyName,this.elementRef.nativeElement,b,p)}_applyMinWidthPx(){this.resizeStrategy.applyMinColumnSize(this.columnDef.cssClassFriendlyName,this.elementRef.nativeElement,this.minWidthPx)}_applyMaxWidthPx(){this.resizeStrategy.applyMaxColumnSize(this.columnDef.cssClassFriendlyName,this.elementRef.nativeElement,this.maxWidthPx)}_appendInlineHandle(){this.styleScheduler.schedule(()=>{this.inlineHandle=this.document.createElement("div"),this.inlineHandle.tabIndex=0,this.inlineHandle.className=this.getInlineHandleCssClassName(),this.elementRef.nativeElement.appendChild(this.inlineHandle)})}static#e=this.\u0275fac=function(p){return new(p||c)};static#t=this.\u0275dir=e.FsC({type:c})}return c})(),$e=(()=>{class c{constructor(){this.destroyed=new J.B7}ngAfterViewInit(){this._listenForMouseEvents()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}_listenForMouseEvents(){this.ngZone.runOutsideAngular(()=>{(0,le.R)(this.elementRef.nativeElement,"mouseenter").pipe((0,Y.u)(this.resizeRef.origin.nativeElement),(0,z.Q)(this.destroyed)).subscribe(u=>this.eventDispatcher.headerCellHovered.next(u)),(0,le.R)(this.elementRef.nativeElement,"mouseleave").pipe((0,$.T)(u=>u.relatedTarget&&(0,L.nx)(u.relatedTarget,K)),(0,z.Q)(this.destroyed)).subscribe(u=>this.eventDispatcher.headerCellHovered.next(u)),(0,le.R)(this.elementRef.nativeElement,"mousedown").pipe((0,z.Q)(this.destroyed)).subscribe(u=>{this._dragStarted(u)})})}_dragStarted(u){if(0!==u.button)return;const p=(0,le.R)(this.document,"mouseup"),b=(0,le.R)(this.document,"mousemove"),A=(0,le.R)(this.document,"keyup").pipe((0,De.p)(Te=>Te.keyCode===Ve._f)),T=u.screenX,ae=this._getOriginWidth();let Ae=0,Oe=this._getOriginOffset(),ne=ae,ye=0;this.updateResizeActive(!0),p.pipe((0,z.Q)((0,he.h)(A,this.destroyed))).subscribe(({screenX:Te})=>{this.styleScheduler.scheduleEnd(()=>{this._notifyResizeEnded(ne,Te!==T)})}),A.pipe((0,z.Q)((0,he.h)(p,this.destroyed))).subscribe(()=>{this._notifyResizeEnded(ae)}),b.pipe((0,$.T)(({screenX:Te})=>Te),(0,Fe.Z)(T),(0,q.F)(),(0,we.J)(),(0,z.Q)((0,he.h)(p,A,this.destroyed))).subscribe(([Te,st])=>{let Se=st-Te;if(0!==ye){if(ye<0&&Se<0||ye>0&&Se>0)return void(ye+=Se);{const ct=ye+Se;if(ye=ye>0?Math.max(ct,0):Math.min(ct,0),Se=ct-ye,0===Se)return}}let ot=ne+(this._isLtr()?Se:-Se);ot=Math.min(Math.max(ot,this.resizeRef.minWidthPx,0),this.resizeRef.maxWidthPx),this.resizeNotifier.triggerResize.next({columnId:this.columnDef.name,size:ot,previousSize:ne,isStickyColumn:this.columnDef.sticky||this.columnDef.stickyEnd}),this.styleScheduler.scheduleEnd(()=>{const ct=this._getOriginWidth(),It=this._getOriginOffset(),Ut=It-Oe,yt=ct-ne;ne=ct,Oe=It,ye+=Se+(this._isLtr()?-yt:yt),Ae+=Ut+(this._isLtr()?yt:0),this._updateOverlayOffset(Ae)})})}updateResizeActive(u){this.eventDispatcher.overlayHandleActiveForCell.next(u?this.resizeRef.origin.nativeElement:null)}_getOriginWidth(){return this.resizeRef.origin.nativeElement.offsetWidth}_getOriginOffset(){return this.resizeRef.origin.nativeElement.offsetLeft}_updateOverlayOffset(u){this.resizeRef.overlayRef.overlayElement.style.transform=`translateX(${(0,ee.a1)(u)})`}_isLtr(){return"ltr"===this.directionality.value}_notifyResizeEnded(u,p=!1){this.updateResizeActive(!1),this.ngZone.run(()=>{const b={columnId:this.columnDef.name,size:u};p?this.resizeNotifier.resizeCompleted.next(b):this.resizeNotifier.resizeCanceled.next(b)})}static#e=this.\u0275fac=function(p){return new(p||c)};static#t=this.\u0275dir=e.FsC({type:c})}return c})();var me=C(6600),ue=C(2753),et=C(8203);const tt=["top"],Ke={provide:oe,useClass:(()=>{class c extends Ee{constructor(u,p,b,A,T){super(u,p,b,A,T)}getColumnCssClass(u){return`mat-column-${u}`}static#e=this.\u0275fac=function(p){return new(p||c)(e.KVO(X),e.KVO(I.To),e.KVO(I.Rk),e.KVO(G.qQ),e.KVO(e.BIS,8))};static#t=this.\u0275prov=e.jDH({token:c,factory:c.\u0275fac})}return c})()},Qe=[Re,Z,se],Je=[...Qe,Me],ht=[...Qe,Ke];class h extends X{getTableHeight(){return this.elementRef.nativeElement.offsetHeight}}let S=(()=>{class c extends h{constructor(u,p,b,A,T){super(),this.columnResizeNotifier=u,this.elementRef=p,this.eventDispatcher=b,this.ngZone=A,this.notifier=T}static#e=this.\u0275fac=function(p){return new(p||c)(e.rXU(Re),e.rXU(e.aKT),e.rXU(Z),e.rXU(e.SKi),e.rXU(se))};static#t=this.\u0275dir=e.FsC({type:c,selectors:[["table","mat-table","","columnResize",""]],hostAttrs:[1,"mat-column-resize-table"],standalone:!0,features:[e.Jv_([...Je,{provide:X,useExisting:c}]),e.Vt3]})}return c})(),r=(()=>{class c extends h{constructor(u,p,b,A,T){super(),this.columnResizeNotifier=u,this.elementRef=p,this.eventDispatcher=b,this.ngZone=A,this.notifier=T}static#e=this.\u0275fac=function(p){return new(p||c)(e.rXU(Re),e.rXU(e.aKT),e.rXU(Z),e.rXU(e.SKi),e.rXU(se))};static#t=this.\u0275dir=e.FsC({type:c,selectors:[["table","mat-table",""]],hostAttrs:[1,"mat-column-resize-table"],standalone:!0,features:[e.Jv_([...Je,{provide:X,useExisting:c}]),e.Vt3]})}return c})(),f=(()=>{class c extends h{constructor(u,p,b,A,T){super(),this.columnResizeNotifier=u,this.elementRef=p,this.eventDispatcher=b,this.ngZone=A,this.notifier=T}static#e=this.\u0275fac=function(p){return new(p||c)(e.rXU(Re),e.rXU(e.aKT),e.rXU(Z),e.rXU(e.SKi),e.rXU(se))};static#t=this.\u0275dir=e.FsC({type:c,selectors:[["mat-table"]],hostAttrs:[1,"mat-column-resize-flex"],standalone:!0,features:[e.Jv_([...ht,{provide:X,useExisting:c}]),e.Vt3]})}return c})(),D=(()=>{class c extends $e{constructor(u,p,b,A,T,ae,Ae,Oe,ne,ye){super(),this.columnDef=u,this.columnResize=p,this.directionality=b,this.elementRef=A,this.eventDispatcher=T,this.ngZone=ae,this.resizeNotifier=Ae,this.resizeRef=Oe,this.styleScheduler=ne,this.document=ye}updateResizeActive(u){super.updateResizeActive(u);const p=this.resizeRef.origin.nativeElement.offsetHeight;this.topElement.nativeElement.style.height=`${p}px`,this.resizeRef.overlayRef.updateSize({height:u?this.columnResize.getTableHeight():p})}static#e=this.\u0275fac=function(p){return new(p||c)(e.rXU(I.AL),e.rXU(X),e.rXU(et.dS),e.rXU(e.aKT),e.rXU(Z),e.rXU(e.SKi),e.rXU(se),e.rXU(xe),e.rXU(I.To),e.rXU(G.qQ))};static#t=this.\u0275cmp=e.VBU({type:c,selectors:[["ng-component"]],viewQuery:function(p,b){if(1&p&&e.GBs(tt,7),2&p){let A;e.mGM(A=e.lsd())&&(b.topElement=A.first)}},hostAttrs:[1,"mat-column-resize-overlay-thumb"],standalone:!0,features:[e.Vt3,e.aNF],decls:2,vars:0,consts:[["top",""],[1,"mat-column-resize-overlay-thumb-top"]],template:function(p,b){1&p&&e.nrm(0,"div",1,0)},encapsulation:2,changeDetection:0})}return c})();class E extends je{constructor(){super(...arguments),this.minWidthPxInternal=32}getInlineHandleCssClassName(){return"mat-resizable-handle"}getOverlayHandleComponentType(){return D}}let Q=(()=>{class c extends E{constructor(u,p,b,A,T,ae,Ae,Oe,ne,ye,Te,st,Se,ot){super(),this.columnDef=u,this.columnResize=p,this.directionality=b,this.elementRef=T,this.eventDispatcher=ae,this.injector=Ae,this.ngZone=Oe,this.overlay=ne,this.resizeNotifier=ye,this.resizeStrategy=Te,this.styleScheduler=st,this.viewContainerRef=Se,this.changeDetectorRef=ot,this.document=A}static#e=this.\u0275fac=function(p){return new(p||c)(e.rXU(I.AL),e.rXU(X),e.rXU(et.dS),e.rXU(G.qQ),e.rXU(e.aKT),e.rXU(Z),e.rXU(e.zZn),e.rXU(e.SKi),e.rXU(ue.hJ),e.rXU(se),e.rXU(oe),e.rXU(I.To),e.rXU(e.c1b),e.rXU(e.gRc))};static#t=this.\u0275dir=e.FsC({type:c,selectors:[["mat-header-cell",3,"disableResize",""],["th","mat-header-cell","",3,"disableResize",""]],hostAttrs:[1,"mat-resizable"],inputs:{minWidthPx:[0,"matResizableMinWidthPx","minWidthPx"],maxWidthPx:[0,"matResizableMaxWidthPx","maxWidthPx"]},standalone:!0,features:[e.Vt3]})}return c})(),H=(()=>{class c extends E{constructor(u,p,b,A,T,ae,Ae,Oe,ne,ye,Te,st,Se,ot){super(),this.columnDef=u,this.columnResize=p,this.directionality=b,this.elementRef=T,this.eventDispatcher=ae,this.injector=Ae,this.ngZone=Oe,this.overlay=ne,this.resizeNotifier=ye,this.resizeStrategy=Te,this.styleScheduler=st,this.viewContainerRef=Se,this.changeDetectorRef=ot,this.document=A}static#e=this.\u0275fac=function(p){return new(p||c)(e.rXU(I.AL),e.rXU(X),e.rXU(et.dS),e.rXU(G.qQ),e.rXU(e.aKT),e.rXU(Z),e.rXU(e.zZn),e.rXU(e.SKi),e.rXU(ue.hJ),e.rXU(se),e.rXU(oe),e.rXU(I.To),e.rXU(e.c1b),e.rXU(e.gRc))};static#t=this.\u0275dir=e.FsC({type:c,selectors:[["mat-header-cell","resizable",""],["th","mat-header-cell","","resizable",""]],hostAttrs:[1,"mat-resizable"],inputs:{minWidthPx:[0,"matResizableMinWidthPx","minWidthPx"],maxWidthPx:[0,"matResizableMaxWidthPx","maxWidthPx"]},standalone:!0,features:[e.Vt3]})}return c})();const _=[me.yE,ue.z_,(()=>{class c{static#e=this.\u0275fac=function(p){return new(p||c)};static#t=this.\u0275mod=e.$C({type:c});static#i=this.\u0275inj=e.G2t({})}return c})()];let R=(()=>{class c{static#e=this.\u0275fac=function(p){return new(p||c)};static#t=this.\u0275mod=e.$C({type:c});static#i=this.\u0275inj=e.G2t({imports:[_]})}return c})(),d=(()=>{class c{static#e=this.\u0275fac=function(p){return new(p||c)};static#t=this.\u0275mod=e.$C({type:c});static#i=this.\u0275inj=e.G2t({imports:[_]})}return c})();function m(c,k){1&c&&(e.j41(0,"th",12),e.EFF(1," No. "),e.k0s()),2&c&&e.Y8G("matResizableMaxWidthPx",100)}function y(c,k){if(1&c&&(e.j41(0,"td",13),e.EFF(1),e.k0s()),2&c){const u=k.$implicit;e.R7$(),e.SpI(" ",u.position," ")}}function V(c,k){1&c&&(e.j41(0,"th",14),e.EFF(1," Name "),e.k0s()),2&c&&e.Y8G("matResizableMinWidthPx",150)}function j(c,k){if(1&c&&(e.j41(0,"td",13),e.EFF(1),e.k0s()),2&c){const u=k.$implicit;e.R7$(),e.SpI(" ",u.name," ")}}function Ze(c,k){1&c&&(e.j41(0,"th",15),e.EFF(1," Weight (Not resizable) "),e.k0s())}function it(c,k){if(1&c&&(e.j41(0,"td",13),e.EFF(1),e.k0s()),2&c){const u=k.$implicit;e.R7$(),e.SpI(" ",u.weight," ")}}function Le(c,k){1&c&&(e.j41(0,"th",16),e.EFF(1," Symbol "),e.k0s())}function bt(c,k){if(1&c&&(e.j41(0,"td",13),e.EFF(1),e.k0s()),2&c){const u=k.$implicit;e.R7$(),e.SpI(" ",u.symbol," ")}}function Rt(c,k){1&c&&e.nrm(0,"tr",17)}function mt(c,k){1&c&&e.nrm(0,"tr",18)}function nt(c,k){1&c&&(e.j41(0,"mat-header-cell",12),e.EFF(1," No. "),e.k0s()),2&c&&e.Y8G("matResizableMaxWidthPx",100)}function Jt(c,k){if(1&c&&(e.j41(0,"mat-cell"),e.EFF(1),e.k0s()),2&c){const u=k.$implicit;e.R7$(),e.SpI(" ",u.position," ")}}function Yt(c,k){1&c&&(e.j41(0,"mat-header-cell",13),e.EFF(1," Name "),e.k0s()),2&c&&e.Y8G("matResizableMinWidthPx",150)}function qt(c,k){if(1&c&&(e.j41(0,"mat-cell"),e.EFF(1),e.k0s()),2&c){const u=k.$implicit;e.R7$(),e.SpI(" ",u.name," ")}}function Et(c,k){1&c&&(e.j41(0,"mat-header-cell",14),e.EFF(1," Weight (Not resizable) "),e.k0s())}function ei(c,k){if(1&c&&(e.j41(0,"mat-cell"),e.EFF(1),e.k0s()),2&c){const u=k.$implicit;e.R7$(),e.SpI(" ",u.weight," ")}}function Ye(c,k){1&c&&(e.j41(0,"mat-header-cell"),e.EFF(1," Symbol "),e.k0s())}function at(c,k){if(1&c&&(e.j41(0,"mat-cell"),e.EFF(1),e.k0s()),2&c){const u=k.$implicit;e.R7$(),e.SpI(" ",u.symbol," ")}}function pt(c,k){1&c&&e.nrm(0,"mat-header-row")}function lt(c,k){1&c&&e.nrm(0,"mat-row")}const dt="[_nghost-%COMP%] {\n display: block;\n overflow: auto;\n}";function gt(c,k){1&c&&(e.j41(0,"th",12),e.EFF(1," No. "),e.k0s()),2&c&&e.Y8G("matResizableMaxWidthPx",100)}function At(c,k){if(1&c&&(e.j41(0,"td",13),e.EFF(1),e.k0s()),2&c){const u=k.$implicit;e.R7$(),e.SpI(" ",u.position," ")}}function vt(c,k){1&c&&(e.j41(0,"th",14),e.EFF(1," Name "),e.k0s()),2&c&&e.Y8G("matResizableMinWidthPx",150)}function _t(c,k){if(1&c&&(e.j41(0,"td",13),e.EFF(1),e.k0s()),2&c){const u=k.$implicit;e.R7$(),e.SpI(" ",u.name," ")}}function Ot(c,k){1&c&&(e.j41(0,"th",15),e.EFF(1," Weight (Not resizable) "),e.k0s())}function Tt(c,k){if(1&c&&(e.j41(0,"td",13),e.EFF(1),e.k0s()),2&c){const u=k.$implicit;e.R7$(),e.SpI(" ",u.weight," ")}}function Mt(c,k){1&c&&(e.j41(0,"th",16),e.EFF(1," Symbol "),e.k0s())}function Nt(c,k){if(1&c&&(e.j41(0,"td",13),e.EFF(1),e.k0s()),2&c){const u=k.$implicit;e.R7$(),e.SpI(" ",u.symbol," ")}}function xt(c,k){1&c&&e.nrm(0,"tr",17)}function zt(c,k){1&c&&e.nrm(0,"tr",18)}const ti=[{position:1,name:"Hydrogen",weight:1.0079,symbol:"H"},{position:2,name:"Helium",weight:4.0026,symbol:"He"},{position:3,name:"Lithium",weight:6.941,symbol:"Li"},{position:4,name:"Beryllium",weight:9.0122,symbol:"Be"},{position:5,name:"Boron",weight:10.811,symbol:"B"},{position:6,name:"Carbon",weight:12.0107,symbol:"C"},{position:7,name:"Nitrogen",weight:14.0067,symbol:"N"},{position:8,name:"Oxygen",weight:15.9994,symbol:"O"},{position:9,name:"Fluorine",weight:18.9984,symbol:"F"},{position:10,name:"Neon",weight:20.1797,symbol:"Ne"},{position:11,name:"Sodium",weight:22.9897,symbol:"Na"},{position:12,name:"Magnesium",weight:24.305,symbol:"Mg"},{position:13,name:"Aluminum",weight:26.9815,symbol:"Al"},{position:14,name:"Silicon",weight:28.0855,symbol:"Si"},{position:15,name:"Phosphorus",weight:30.9738,symbol:"P"},{position:16,name:"Sulfur",weight:32.065,symbol:"S"},{position:17,name:"Chlorine",weight:35.453,symbol:"Cl"},{position:18,name:"Argon",weight:39.948,symbol:"Ar"},{position:19,name:"Potassium",weight:39.0983,symbol:"K"},{position:20,name:"Calcium",weight:40.078,symbol:"Ca"}];let Pt=(()=>{class c{constructor(){this.displayedColumns=["position","name","weight","symbol"],this.dataSource=ti}static#e=this.\u0275fac=function(p){return new(p||c)};static#t=this.\u0275cmp=e.VBU({type:c,selectors:[["default-enabled-column-resize-example"]],standalone:!0,features:[e.aNF],decls:15,vars:3,consts:[["mat-table","",1,"mat-elevation-z8","example-table",3,"dataSource"],["matColumnDef","position","sticky",""],["mat-header-cell","",3,"matResizableMaxWidthPx",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name","sticky",""],["mat-header-cell","",3,"matResizableMinWidthPx",4,"matHeaderCellDef"],["matColumnDef","weight"],["mat-header-cell","","disableResize","",4,"matHeaderCellDef"],["matColumnDef","symbol"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","",3,"matResizableMaxWidthPx"],["mat-cell",""],["mat-header-cell","",3,"matResizableMinWidthPx"],["mat-header-cell","","disableResize",""],["mat-header-cell",""],["mat-header-row",""],["mat-row",""]],template:function(p,b){1&p&&(e.j41(0,"table",0),e.qex(1,1),e.DNE(2,m,2,1,"th",2)(3,y,2,1,"td",3),e.bVm(),e.qex(4,4),e.DNE(5,V,2,1,"th",5)(6,j,2,1,"td",3),e.bVm(),e.qex(7,6),e.DNE(8,Ze,2,0,"th",7)(9,it,2,1,"td",3),e.bVm(),e.qex(10,8),e.DNE(11,Le,2,0,"th",9)(12,bt,2,1,"td",3),e.bVm(),e.DNE(13,Rt,1,0,"tr",10)(14,mt,1,0,"tr",11),e.k0s()),2&p&&(e.Y8G("dataSource",b.dataSource),e.R7$(13),e.Y8G("matHeaderRowDef",b.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",b.displayedColumns))},dependencies:[R,r,Q,v.tP,v.Zl,v.tL,v.ji,v.cC,v.YV,v.iL,v.KS,v.$R,v.YZ,v.NB],styles:["[_nghost-%COMP%] {\n display: block;\n overflow: auto;\n}"]})}return c})();const Ct=[{position:1,name:"Hydrogen",weight:1.0079,symbol:"H"},{position:2,name:"Helium",weight:4.0026,symbol:"He"},{position:3,name:"Lithium",weight:6.941,symbol:"Li"},{position:4,name:"Beryllium",weight:9.0122,symbol:"Be"},{position:5,name:"Boron",weight:10.811,symbol:"B"},{position:6,name:"Carbon",weight:12.0107,symbol:"C"},{position:7,name:"Nitrogen",weight:14.0067,symbol:"N"},{position:8,name:"Oxygen",weight:15.9994,symbol:"O"},{position:9,name:"Fluorine",weight:18.9984,symbol:"F"},{position:10,name:"Neon",weight:20.1797,symbol:"Ne"},{position:11,name:"Sodium",weight:22.9897,symbol:"Na"},{position:12,name:"Magnesium",weight:24.305,symbol:"Mg"},{position:13,name:"Aluminum",weight:26.9815,symbol:"Al"},{position:14,name:"Silicon",weight:28.0855,symbol:"Si"},{position:15,name:"Phosphorus",weight:30.9738,symbol:"P"},{position:16,name:"Sulfur",weight:32.065,symbol:"S"},{position:17,name:"Chlorine",weight:35.453,symbol:"Cl"},{position:18,name:"Argon",weight:39.948,symbol:"Ar"},{position:19,name:"Potassium",weight:39.0983,symbol:"K"},{position:20,name:"Calcium",weight:40.078,symbol:"Ca"}];let ii=(()=>{class c{constructor(){this.displayedColumns=["position","name","weight","symbol"],this.dataSource=Ct}static#e=this.\u0275fac=function(p){return new(p||c)};static#t=this.\u0275cmp=e.VBU({type:c,selectors:[["default-enabled-column-resize-flex-example"]],standalone:!0,features:[e.aNF],decls:15,vars:3,consts:[[1,"mat-elevation-z8","example-table",3,"dataSource"],["matColumnDef","position","sticky",""],[3,"matResizableMaxWidthPx",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","name","sticky",""],[3,"matResizableMinWidthPx",4,"matHeaderCellDef"],["matColumnDef","weight"],["disableResize","",4,"matHeaderCellDef"],["matColumnDef","symbol"],[4,"matHeaderCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[3,"matResizableMaxWidthPx"],[3,"matResizableMinWidthPx"],["disableResize",""]],template:function(p,b){1&p&&(e.j41(0,"mat-table",0),e.qex(1,1),e.DNE(2,nt,2,1,"mat-header-cell",2)(3,Jt,2,1,"mat-cell",3),e.bVm(),e.qex(4,4),e.DNE(5,Yt,2,1,"mat-header-cell",5)(6,qt,2,1,"mat-cell",3),e.bVm(),e.qex(7,6),e.DNE(8,Et,2,0,"mat-header-cell",7)(9,ei,2,1,"mat-cell",3),e.bVm(),e.qex(10,8),e.DNE(11,Ye,2,0,"mat-header-cell",9)(12,at,2,1,"mat-cell",3),e.bVm(),e.DNE(13,pt,1,0,"mat-header-row",10)(14,lt,1,0,"mat-row",11),e.k0s()),2&p&&(e.Y8G("dataSource",b.dataSource),e.R7$(13),e.Y8G("matHeaderRowDef",b.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",b.displayedColumns))},dependencies:[R,f,Q,v.tP,v.Zl,v.tL,v.ji,v.cC,v.YV,v.iL,v.KS,v.$R,v.YZ,v.NB],styles:[dt]})}return c})();const ni=[{position:1,name:"Hydrogen",weight:1.0079,symbol:"H"},{position:2,name:"Helium",weight:4.0026,symbol:"He"},{position:3,name:"Lithium",weight:6.941,symbol:"Li"},{position:4,name:"Beryllium",weight:9.0122,symbol:"Be"},{position:5,name:"Boron",weight:10.811,symbol:"B"},{position:6,name:"Carbon",weight:12.0107,symbol:"C"},{position:7,name:"Nitrogen",weight:14.0067,symbol:"N"},{position:8,name:"Oxygen",weight:15.9994,symbol:"O"},{position:9,name:"Fluorine",weight:18.9984,symbol:"F"},{position:10,name:"Neon",weight:20.1797,symbol:"Ne"},{position:11,name:"Sodium",weight:22.9897,symbol:"Na"},{position:12,name:"Magnesium",weight:24.305,symbol:"Mg"},{position:13,name:"Aluminum",weight:26.9815,symbol:"Al"},{position:14,name:"Silicon",weight:28.0855,symbol:"Si"},{position:15,name:"Phosphorus",weight:30.9738,symbol:"P"},{position:16,name:"Sulfur",weight:32.065,symbol:"S"},{position:17,name:"Chlorine",weight:35.453,symbol:"Cl"},{position:18,name:"Argon",weight:39.948,symbol:"Ar"},{position:19,name:"Potassium",weight:39.0983,symbol:"K"},{position:20,name:"Calcium",weight:40.078,symbol:"Ca"}];let Dt=(()=>{class c{constructor(){this.displayedColumns=["position","name","weight","symbol"],this.dataSource=ni}static#e=this.\u0275fac=function(p){return new(p||c)};static#t=this.\u0275cmp=e.VBU({type:c,selectors:[["opt-in-column-resize-example"]],standalone:!0,features:[e.aNF],decls:15,vars:3,consts:[["mat-table","","columnResize","",1,"mat-elevation-z8","example-table",3,"dataSource"],["matColumnDef","position","sticky",""],["mat-header-cell","","resizable","",3,"matResizableMaxWidthPx",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name","sticky",""],["mat-header-cell","","resizable","",3,"matResizableMinWidthPx",4,"matHeaderCellDef"],["matColumnDef","weight"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","symbol"],["mat-header-cell","","resizable","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","resizable","",3,"matResizableMaxWidthPx"],["mat-cell",""],["mat-header-cell","","resizable","",3,"matResizableMinWidthPx"],["mat-header-cell",""],["mat-header-cell","","resizable",""],["mat-header-row",""],["mat-row",""]],template:function(p,b){1&p&&(e.j41(0,"table",0),e.qex(1,1),e.DNE(2,gt,2,1,"th",2)(3,At,2,1,"td",3),e.bVm(),e.qex(4,4),e.DNE(5,vt,2,1,"th",5)(6,_t,2,1,"td",3),e.bVm(),e.qex(7,6),e.DNE(8,Ot,2,0,"th",7)(9,Tt,2,1,"td",3),e.bVm(),e.qex(10,8),e.DNE(11,Mt,2,0,"th",9)(12,Nt,2,1,"td",3),e.bVm(),e.DNE(13,xt,1,0,"tr",10)(14,zt,1,0,"tr",11),e.k0s()),2&p&&(e.Y8G("dataSource",b.dataSource),e.R7$(13),e.Y8G("matHeaderRowDef",b.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",b.displayedColumns))},dependencies:[v.tP,v.Zl,v.tL,v.ji,v.cC,v.YV,v.iL,v.KS,v.$R,v.YZ,v.NB,d,S,H],styles:[dt]})}return c})()},9417:(wt,We,C)=>{C.d(We,{BC:()=>je,JD:()=>$t,MJ:()=>ne,MR:()=>Lt,Q0:()=>Ht,X1:()=>$i,YN:()=>ji,YS:()=>Vt,ZU:()=>U,Zm:()=>Y,cV:()=>ae,cb:()=>$e,cz:()=>L,gE:()=>nt,j4:()=>St,k0:()=>ee,kq:()=>z,l_:()=>Gt,me:()=>q,ok:()=>Xi,qT:()=>oi,vO:()=>ie,vS:()=>Bt,wz:()=>Ft,xH:()=>di,xq:()=>Zt,y7:()=>ui});var e=C(4438),v=C(177),J=C(4787),le=C(696),he=C(5286),l=C(5006);let Ue=(()=>{class i{constructor(t,s){this._renderer=t,this._elementRef=s,this.onChange=a=>{},this.onTouched=()=>{}}setProperty(t,s){this._renderer.setProperty(this._elementRef.nativeElement,t,s)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static#e=this.\u0275fac=function(s){return new(s||i)(e.rXU(e.sFG),e.rXU(e.aKT))};static#t=this.\u0275dir=e.FsC({type:i})}return i})(),$=(()=>{class i extends Ue{static#e=this.\u0275fac=(()=>{let t;return function(a){return(t||(t=e.xGo(i)))(a||i)}})();static#t=this.\u0275dir=e.FsC({type:i,features:[e.Vt3]})}return i})();const z=new e.nKC(""),De={provide:z,useExisting:(0,e.Rfq)(()=>Y),multi:!0};let Y=(()=>{class i extends ${writeValue(t){this.setProperty("checked",t)}static#e=this.\u0275fac=(()=>{let t;return function(a){return(t||(t=e.xGo(i)))(a||i)}})();static#t=this.\u0275dir=e.FsC({type:i,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(s,a){1&s&&e.bIt("change",function(P){return a.onChange(P.target.checked)})("blur",function(){return a.onTouched()})},features:[e.Jv_([De]),e.Vt3]})}return i})();const Ne={provide:z,useExisting:(0,e.Rfq)(()=>q),multi:!0},we=new e.nKC("");let q=(()=>{class i extends Ue{constructor(t,s,a){super(t,s),this._compositionMode=a,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Fe(){const i=(0,v.QT)()?(0,v.QT)().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static#e=this.\u0275fac=function(s){return new(s||i)(e.rXU(e.sFG),e.rXU(e.aKT),e.rXU(we,8))};static#t=this.\u0275dir=e.FsC({type:i,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(s,a){1&s&&e.bIt("input",function(P){return a._handleInput(P.target.value)})("blur",function(){return a.onTouched()})("compositionstart",function(){return a._compositionStart()})("compositionend",function(P){return a._compositionEnd(P.target.value)})},features:[e.Jv_([Ne]),e.Vt3]})}return i})();function de(i){return null==i||("string"==typeof i||Array.isArray(i))&&0===i.length}function Ge(i){return null!=i&&"number"==typeof i.length}const L=new e.nKC(""),I=new e.nKC(""),G=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class ee{static min(n){return function ge(i){return n=>{if(de(n.value)||de(i))return null;const t=parseFloat(n.value);return!isNaN(t)&&t<i?{min:{min:i,actual:n.value}}:null}}(n)}static max(n){return function Ve(i){return n=>{if(de(n.value)||de(i))return null;const t=parseFloat(n.value);return!isNaN(t)&&t>i?{max:{max:i,actual:n.value}}:null}}(n)}static required(n){return K(n)}static requiredTrue(n){return fe(n)}static email(n){return function ze(i){return de(i.value)||G.test(i.value)?null:{email:!0}}(n)}static minLength(n){return function be(i){return n=>de(n.value)||!Ge(n.value)?null:n.value.length<i?{minlength:{requiredLength:i,actualLength:n.value.length}}:null}(n)}static maxLength(n){return function Be(i){return n=>Ge(n.value)&&n.value.length>i?{maxlength:{requiredLength:i,actualLength:n.value.length}}:null}(n)}static pattern(n){return function Pe(i){if(!i)return X;let n,t;return"string"==typeof i?(t="","^"!==i.charAt(0)&&(t+="^"),t+=i,"$"!==i.charAt(i.length-1)&&(t+="$"),n=new RegExp(t)):(t=i.toString(),n=i),s=>{if(de(s.value))return null;const a=s.value;return n.test(a)?null:{pattern:{requiredPattern:t,actualValue:a}}}}(n)}static nullValidator(n){return null}static compose(n){return ve(n)}static composeAsync(n){return He(n)}}function K(i){return de(i.value)?{required:!0}:null}function fe(i){return!0===i.value?null:{required:!0}}function X(i){return null}function se(i){return null!=i}function Re(i){return(0,e.jNT)(i)?(0,J.H)(i):i}function Z(i){let n={};return i.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function oe(i,n){return n.map(t=>t(i))}function Ee(i){return i.map(n=>function ke(i){return!i.validate}(n)?n:t=>n.validate(t))}function ve(i){if(!i)return null;const n=i.filter(se);return 0==n.length?null:function(t){return Z(oe(t,n))}}function Ce(i){return null!=i?ve(Ee(i)):null}function He(i){if(!i)return null;const n=i.filter(se);return 0==n.length?null:function(t){const s=oe(t,n).map(Re);return(0,le.p)(s).pipe((0,l.T)(Z))}}function Me(i){return null!=i?He(Ee(i)):null}function g(i,n){return null===i?[n]:Array.isArray(i)?[...i,n]:[i,n]}function O(i){return i._rawValidators}function w(i){return i._rawAsyncValidators}function F(i){return i?Array.isArray(i)?i:[i]:[]}function M(i,n){return Array.isArray(i)?i.includes(n):i===n}function _e(i,n){const t=F(n);return F(i).forEach(a=>{M(t,a)||t.push(a)}),t}function ce(i,n){return F(n).filter(t=>!M(i,t))}class te{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=Ce(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Me(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class U extends te{get formDirective(){return null}get path(){return null}}class ie extends te{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Xe{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let je=(()=>{class i extends Xe{constructor(t){super(t)}static#e=this.\u0275fac=function(s){return new(s||i)(e.rXU(ie,2))};static#t=this.\u0275dir=e.FsC({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(s,a){2&s&&e.AVh("ng-untouched",a.isUntouched)("ng-touched",a.isTouched)("ng-pristine",a.isPristine)("ng-dirty",a.isDirty)("ng-valid",a.isValid)("ng-invalid",a.isInvalid)("ng-pending",a.isPending)},features:[e.Vt3]})}return i})(),$e=(()=>{class i extends Xe{constructor(t){super(t)}static#e=this.\u0275fac=function(s){return new(s||i)(e.rXU(U,10))};static#t=this.\u0275dir=e.FsC({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(s,a){2&s&&e.AVh("ng-untouched",a.isUntouched)("ng-touched",a.isTouched)("ng-pristine",a.isPristine)("ng-dirty",a.isDirty)("ng-valid",a.isValid)("ng-invalid",a.isInvalid)("ng-pending",a.isPending)("ng-submitted",a.isSubmitted)},features:[e.Vt3]})}return i})();const N="VALID",B="INVALID",Q="PENDING",H="DISABLED";class re{}class pe extends re{constructor(n,t){super(),this.value=n,this.source=t}}class _ extends re{constructor(n,t){super(),this.pristine=n,this.source=t}}class R extends re{constructor(n,t){super(),this.touched=n,this.source=t}}class d extends re{constructor(n,t){super(),this.status=n,this.source=t}}class m extends re{constructor(n){super(),this.source=n}}class y extends re{constructor(n){super(),this.source=n}}function V(i){return(Le(i)?i.validators:i)||null}function Ze(i,n){return(Le(n)?n.asyncValidators:i)||null}function Le(i){return null!=i&&!Array.isArray(i)&&"object"==typeof i}function bt(i,n,t){const s=i.controls;if(!(n?Object.keys(s):s).length)throw new e.wOt(1e3,"");if(!s[t])throw new e.wOt(1001,"")}function Rt(i,n,t){i._forEachChild((s,a)=>{if(void 0===t[a])throw new e.wOt(1002,"")})}class mt{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._events=new he.B7,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===N}get invalid(){return this.status===B}get pending(){return this.status==Q}get disabled(){return this.status===H}get enabled(){return this.status!==H}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(_e(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(_e(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(ce(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(ce(n,this._rawAsyncValidators))}hasValidator(n){return M(this._rawValidators,n)}hasAsyncValidator(n){return M(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){const t=!1===this.touched;this.touched=!0;const s=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched({...n,sourceControl:s}),t&&!1!==n.emitEvent&&this._events.next(new R(!0,s))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(n))}markAsUntouched(n={}){const t=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const s=n.sourceControl??this;this._forEachChild(a=>{a.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:s})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,s),t&&!1!==n.emitEvent&&this._events.next(new R(!1,s))}markAsDirty(n={}){const t=!0===this.pristine;this.pristine=!1;const s=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty({...n,sourceControl:s}),t&&!1!==n.emitEvent&&this._events.next(new _(!1,s))}markAsPristine(n={}){const t=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const s=n.sourceControl??this;this._forEachChild(a=>{a.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,s),t&&!1!==n.emitEvent&&this._events.next(new _(!0,s))}markAsPending(n={}){this.status=Q;const t=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new d(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending({...n,sourceControl:t})}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=H,this.errors=null,this._forEachChild(a=>{a.disable({...n,onlySelf:!0})}),this._updateValue();const s=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new pe(this.value,s)),this._events.next(new d(this.status,s)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t},this),this._onDisabledChange.forEach(a=>a(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=N,this._forEachChild(s=>{s.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t},this),this._onDisabledChange.forEach(s=>s(!1))}_updateAncestors(n,t){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const s=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===N||this.status===Q)&&this._runAsyncValidator(s,n.emitEvent)}const t=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new pe(this.value,t)),this._events.next(new d(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity({...n,sourceControl:t})}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?H:N}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,t){if(this.asyncValidator){this.status=Q,this._hasOwnPendingAsyncValidator={emitEvent:!1!==t};const s=Re(this.asyncValidator(this));this._asyncValidationSubscription=s.subscribe(a=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(a,{emitEvent:t,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const n=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent,this,t.shouldHaveEmitted)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((s,a)=>s&&s._find(a),this)}getError(n,t){const s=t?this.get(t):this;return s&&s.errors?s.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,t,s){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||s)&&this._events.next(new d(this.status,t)),this._parent&&this._parent._updateControlsErrors(n,t,s)}_initObservables(){this.valueChanges=new e.bkB,this.statusChanges=new e.bkB}_calculateStatus(){return this._allControlsDisabled()?H:this.errors?B:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Q)?Q:this._anyControlsHaveStatus(B)?B:N}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,t){const s=!this._anyControlsDirty(),a=this.pristine!==s;this.pristine=s,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,t),a&&this._events.next(new _(this.pristine,t))}_updateTouched(n={},t){this.touched=this._anyControlsTouched(),this._events.next(new R(this.touched,t)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,t)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Le(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function j(i){return Array.isArray(i)?Ce(i):i||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function it(i){return Array.isArray(i)?Me(i):i||null}(this._rawAsyncValidators)}}class nt extends mt{constructor(n,t,s){super(V(t),Ze(s,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,t){return this.controls[n]?this.controls[n]:(this.controls[n]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(n,t,s={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:s.emitEvent}),this._onCollectionChange()}removeControl(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(n,t,s={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:s.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){Rt(this,0,n),Object.keys(n).forEach(s=>{bt(this,!0,s),this.controls[s].setValue(n[s],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(s=>{const a=this.controls[s];a&&a.patchValue(n[s],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((s,a)=>{s.reset(n?n[a]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,s)=>(n[s]=t.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,s)=>!!s._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const s=this.controls[t];s&&n(s,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[t,s]of Object.entries(this.controls))if(this.contains(t)&&n(s))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,s,a)=>((s.enabled||this.disabled)&&(t[a]=s.value),t))}_reduceChildren(n,t){let s=n;return this._forEachChild((a,x)=>{s=t(s,a,x)}),s}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class Et extends nt{}const Ye=new e.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>at}),at="always";function pt(i,n){return[...n.path,i]}function lt(i,n,t=at){vt(i,n),n.valueAccessor.writeValue(i.value),(i.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(i.disabled),function Ot(i,n){n.valueAccessor.registerOnChange(t=>{i._pendingValue=t,i._pendingChange=!0,i._pendingDirty=!0,"change"===i.updateOn&&Mt(i,n)})}(i,n),function Nt(i,n){const t=(s,a)=>{n.valueAccessor.writeValue(s),a&&n.viewToModelUpdate(s)};i.registerOnChange(t),n._registerOnDestroy(()=>{i._unregisterOnChange(t)})}(i,n),function Tt(i,n){n.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,"blur"===i.updateOn&&i._pendingChange&&Mt(i,n),"submit"!==i.updateOn&&i.markAsTouched()})}(i,n),function At(i,n){if(n.valueAccessor.setDisabledState){const t=s=>{n.valueAccessor.setDisabledState(s)};i.registerOnDisabledChange(t),n._registerOnDestroy(()=>{i._unregisterOnDisabledChange(t)})}}(i,n)}function dt(i,n,t=!0){const s=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(s),n.valueAccessor.registerOnTouched(s)),_t(i,n),i&&(n._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function gt(i,n){i.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function vt(i,n){const t=O(i);null!==n.validator?i.setValidators(g(t,n.validator)):"function"==typeof t&&i.setValidators([t]);const s=w(i);null!==n.asyncValidator?i.setAsyncValidators(g(s,n.asyncValidator)):"function"==typeof s&&i.setAsyncValidators([s]);const a=()=>i.updateValueAndValidity();gt(n._rawValidators,a),gt(n._rawAsyncValidators,a)}function _t(i,n){let t=!1;if(null!==i){if(null!==n.validator){const a=O(i);if(Array.isArray(a)&&a.length>0){const x=a.filter(P=>P!==n.validator);x.length!==a.length&&(t=!0,i.setValidators(x))}}if(null!==n.asyncValidator){const a=w(i);if(Array.isArray(a)&&a.length>0){const x=a.filter(P=>P!==n.asyncValidator);x.length!==a.length&&(t=!0,i.setAsyncValidators(x))}}}const s=()=>{};return gt(n._rawValidators,s),gt(n._rawAsyncValidators,s),t}function Mt(i,n){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function xt(i,n){vt(i,n)}function Dt(i,n){if(!i.hasOwnProperty("model"))return!1;const t=i.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}function k(i,n){i._syncPendingControls(),n.forEach(t=>{const s=t.control;"submit"===s.updateOn&&s._pendingChange&&(t.viewToModelUpdate(s._pendingValue),s._pendingChange=!1)})}function u(i,n){if(!n)return null;let t,s,a;return Array.isArray(n),n.forEach(x=>{x.constructor===q?t=x:function c(i){return Object.getPrototypeOf(i.constructor)===$}(x)?s=x:a=x}),a||s||t||null}const A={provide:U,useExisting:(0,e.Rfq)(()=>ae)},T=Promise.resolve();let ae=(()=>{class i extends U{constructor(t,s,a){super(),this.callSetDisabledState=a,this.submitted=!1,this._directives=new Set,this.ngSubmit=new e.bkB,this.form=new nt({},Ce(t),Me(s))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){T.then(()=>{const s=this._findContainer(t.path);t.control=s.registerControl(t.name,t.control),lt(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){T.then(()=>{const s=this._findContainer(t.path);s&&s.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){T.then(()=>{const s=this._findContainer(t.path),a=new nt({});xt(a,t),s.registerControl(t.name,a),a.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){T.then(()=>{const s=this._findContainer(t.path);s&&s.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,s){T.then(()=>{this.form.get(t.path).setValue(s)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,k(this.form,this._directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}static#e=this.\u0275fac=function(s){return new(s||i)(e.rXU(L,10),e.rXU(I,10),e.rXU(Ye,8))};static#t=this.\u0275dir=e.FsC({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(s,a){1&s&&e.bIt("submit",function(P){return a.onSubmit(P)})("reset",function(){return a.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e.Jv_([A]),e.Vt3]})}return i})();function Ae(i,n){const t=i.indexOf(n);t>-1&&i.splice(t,1)}function Oe(i){return"object"==typeof i&&null!==i&&2===Object.keys(i).length&&"value"in i&&"disabled"in i}const ne=class extends mt{constructor(n=null,t,s){super(V(t),Ze(s,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Le(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=Oe(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(s=>s(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){Ae(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){Ae(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){Oe(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},bi={provide:ie,useExisting:(0,e.Rfq)(()=>Bt)},si=Promise.resolve();let Bt=(()=>{class i extends ie{constructor(t,s,a,x,P,qe){super(),this._changeDetectorRef=P,this.callSetDisabledState=qe,this.control=new ne,this._registered=!1,this.name="",this.update=new e.bkB,this._parent=t,this._setValidators(s),this._setAsyncValidators(a),this.valueAccessor=u(0,x)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const s=t.name.previousValue;this.formDirective.removeControl({name:s,path:this._getPath(s)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),Dt(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){lt(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){si.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const s=t.isDisabled.currentValue,a=0!==s&&(0,e.L39)(s);si.then(()=>{a&&!this.control.disabled?this.control.disable():!a&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?pt(t,this._parent):[t]}static#e=this.\u0275fac=function(s){return new(s||i)(e.rXU(U,9),e.rXU(L,10),e.rXU(I,10),e.rXU(z,10),e.rXU(e.gRc,8),e.rXU(Ye,8))};static#t=this.\u0275dir=e.FsC({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[e.Jv_([bi]),e.Vt3,e.OA$]})}return i})(),oi=(()=>{class i{static#e=this.\u0275fac=function(s){return new(s||i)};static#t=this.\u0275dir=e.FsC({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return i})();const Ri={provide:z,useExisting:(0,e.Rfq)(()=>Ht),multi:!0};let Ht=(()=>{class i extends ${writeValue(t){this.setProperty("value",t??"")}registerOnChange(t){this.onChange=s=>{t(""==s?null:parseFloat(s))}}static#e=this.\u0275fac=(()=>{let t;return function(a){return(t||(t=e.xGo(i)))(a||i)}})();static#t=this.\u0275dir=e.FsC({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(s,a){1&s&&e.bIt("input",function(P){return a.onChange(P.target.value)})("blur",function(){return a.onTouched()})},features:[e.Jv_([Ri]),e.Vt3]})}return i})();const xi={provide:z,useExisting:(0,e.Rfq)(()=>Lt),multi:!0};let Lt=(()=>{class i extends ${writeValue(t){this.setProperty("value",parseFloat(t))}registerOnChange(t){this.onChange=s=>{t(""==s?null:parseFloat(s))}}static#e=this.\u0275fac=(()=>{let t;return function(a){return(t||(t=e.xGo(i)))(a||i)}})();static#t=this.\u0275dir=e.FsC({type:i,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(s,a){1&s&&e.bIt("change",function(P){return a.onChange(P.target.value)})("input",function(P){return a.onChange(P.target.value)})("blur",function(){return a.onTouched()})},features:[e.Jv_([xi]),e.Vt3]})}return i})();const Wt=new e.nKC(""),Si={provide:ie,useExisting:(0,e.Rfq)(()=>Gt)};let Gt=(()=>{class i extends ie{set isDisabled(t){}static#e=this._ngModelWarningSentOnce=!1;constructor(t,s,a,x,P){super(),this._ngModelWarningConfig=x,this.callSetDisabledState=P,this.update=new e.bkB,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(s),this.valueAccessor=u(0,a)}ngOnChanges(t){if(this._isControlChanged(t)){const s=t.form.previousValue;s&&dt(s,this,!1),lt(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Dt(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&dt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}static#t=this.\u0275fac=function(s){return new(s||i)(e.rXU(L,10),e.rXU(I,10),e.rXU(z,10),e.rXU(Wt,8),e.rXU(Ye,8))};static#i=this.\u0275dir=e.FsC({type:i,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e.Jv_([Si]),e.Vt3,e.OA$]})}return i})();const Fi={provide:U,useExisting:(0,e.Rfq)(()=>St)};let St=(()=>{class i extends U{constructor(t,s,a){super(),this.callSetDisabledState=a,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.bkB,this._setValidators(t),this._setAsyncValidators(s)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(_t(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const s=this.form.get(t.path);return lt(s,t,this.callSetDisabledState),s.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),s}getControl(t){return this.form.get(t.path)}removeControl(t){dt(t.control||null,t,!1),function p(i,n){const t=i.indexOf(n);t>-1&&i.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,s){this.form.get(t.path).setValue(s)}onSubmit(t){return this.submitted=!0,k(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new m(this.control)),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1,this.form._events.next(new y(this.form))}_updateDomValue(){this.directives.forEach(t=>{const s=t.control,a=this.form.get(t.path);s!==a&&(dt(s||null,t),(i=>i instanceof ne)(a)&&(lt(a,t,this.callSetDisabledState),t.control=a))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const s=this.form.get(t.path);xt(s,t),s.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const s=this.form.get(t.path);s&&function zt(i,n){return _t(i,n)}(s,t)&&s.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){vt(this.form,this),this._oldForm&&_t(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(s){return new(s||i)(e.rXU(L,10),e.rXU(I,10),e.rXU(Ye,8))};static#t=this.\u0275dir=e.FsC({type:i,selectors:[["","formGroup",""]],hostBindings:function(s,a){1&s&&e.bIt("submit",function(P){return a.onSubmit(P)})("reset",function(){return a.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e.Jv_([Fi]),e.Vt3,e.OA$]})}return i})();const Ai={provide:ie,useExisting:(0,e.Rfq)(()=>$t)};let $t=(()=>{class i extends ie{set isDisabled(t){}static#e=this._ngModelWarningSentOnce=!1;constructor(t,s,a,x,P){super(),this._ngModelWarningConfig=P,this._added=!1,this.name=null,this.update=new e.bkB,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(s),this._setAsyncValidators(a),this.valueAccessor=u(0,x)}ngOnChanges(t){this._added||this._setUpControl(),Dt(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return pt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function(s){return new(s||i)(e.rXU(U,13),e.rXU(L,10),e.rXU(I,10),e.rXU(z,10),e.rXU(Wt,8))};static#i=this.\u0275dir=e.FsC({type:i,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[e.Jv_([Ai]),e.Vt3,e.OA$]})}return i})();const Oi={provide:z,useExisting:(0,e.Rfq)(()=>Ft),multi:!0};function li(i,n){return null==i?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${i}: ${n}`.slice(0,50))}let Ft=(()=>{class i extends ${constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const a=li(this._getOptionId(t),t);this.setProperty("value",a)}registerOnChange(t){this.onChange=s=>{this.value=this._getOptionValue(s),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const s of this._optionMap.keys())if(this._compareWith(this._optionMap.get(s),t))return s;return null}_getOptionValue(t){const s=function Ti(i){return i.split(":")[0]}(t);return this._optionMap.has(s)?this._optionMap.get(s):t}static#e=this.\u0275fac=(()=>{let t;return function(a){return(t||(t=e.xGo(i)))(a||i)}})();static#t=this.\u0275dir=e.FsC({type:i,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(s,a){1&s&&e.bIt("change",function(P){return a.onChange(P.target.value)})("blur",function(){return a.onTouched()})},inputs:{compareWith:"compareWith"},features:[e.Jv_([Oi]),e.Vt3]})}return i})(),di=(()=>{class i{constructor(t,s,a){this._element=t,this._renderer=s,this._select=a,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(li(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(s){return new(s||i)(e.rXU(e.aKT),e.rXU(e.sFG),e.rXU(Ft,9))};static#t=this.\u0275dir=e.FsC({type:i,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return i})();const Ni={provide:z,useExisting:(0,e.Rfq)(()=>Kt),multi:!0};function ci(i,n){return null==i?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${i}: ${n}`.slice(0,50))}let Kt=(()=>{class i extends ${constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let s;if(this.value=t,Array.isArray(t)){const a=t.map(x=>this._getOptionId(x));s=(x,P)=>{x._setSelected(a.indexOf(P.toString())>-1)}}else s=(a,x)=>{a._setSelected(!1)};this._optionMap.forEach(s)}registerOnChange(t){this.onChange=s=>{const a=[],x=s.selectedOptions;if(void 0!==x){const P=x;for(let qe=0;qe<P.length;qe++){const Qt=this._getOptionValue(P[qe].value);a.push(Qt)}}else{const P=s.options;for(let qe=0;qe<P.length;qe++){const kt=P[qe];if(kt.selected){const Qt=this._getOptionValue(kt.value);a.push(Qt)}}}this.value=a,t(a)}}_registerOption(t){const s=(this._idCounter++).toString();return this._optionMap.set(s,t),s}_getOptionId(t){for(const s of this._optionMap.keys())if(this._compareWith(this._optionMap.get(s)._value,t))return s;return null}_getOptionValue(t){const s=function zi(i){return i.split(":")[0]}(t);return this._optionMap.has(s)?this._optionMap.get(s)._value:t}static#e=this.\u0275fac=(()=>{let t;return function(a){return(t||(t=e.xGo(i)))(a||i)}})();static#t=this.\u0275dir=e.FsC({type:i,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(s,a){1&s&&e.bIt("change",function(P){return a.onChange(P.target)})("blur",function(){return a.onTouched()})},inputs:{compareWith:"compareWith"},features:[e.Jv_([Ni]),e.Vt3]})}return i})(),ui=(()=>{class i{constructor(t,s,a){this._element=t,this._renderer=s,this._select=a,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(ci(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(ci(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(s){return new(s||i)(e.rXU(e.aKT),e.rXU(e.sFG),e.rXU(Kt,9))};static#t=this.\u0275dir=e.FsC({type:i,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return i})(),ut=(()=>{class i{constructor(){this._validator=X}ngOnChanges(t){if(this.inputName in t){const s=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(s),this._validator=this._enabled?this.createValidator(s):X,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}static#e=this.\u0275fac=function(s){return new(s||i)};static#t=this.\u0275dir=e.FsC({type:i,features:[e.OA$]})}return i})();const Ui={provide:L,useExisting:(0,e.Rfq)(()=>Vt),multi:!0},Bi={provide:L,useExisting:(0,e.Rfq)(()=>Zt),multi:!0};let Vt=(()=>{class i extends ut{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e.L39,this.createValidator=t=>K}enabled(t){return t}static#e=this.\u0275fac=(()=>{let t;return function(a){return(t||(t=e.xGo(i)))(a||i)}})();static#t=this.\u0275dir=e.FsC({type:i,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(s,a){2&s&&e.BMQ("required",a._enabled?"":null)},inputs:{required:"required"},features:[e.Jv_([Ui]),e.Vt3]})}return i})(),Zt=(()=>{class i extends Vt{constructor(){super(...arguments),this.createValidator=t=>fe}static#e=this.\u0275fac=(()=>{let t;return function(a){return(t||(t=e.xGo(i)))(a||i)}})();static#t=this.\u0275dir=e.FsC({type:i,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(s,a){2&s&&e.BMQ("required",a._enabled?"":null)},features:[e.Jv_([Bi]),e.Vt3]})}return i})(),Ci=(()=>{class i{static#e=this.\u0275fac=function(s){return new(s||i)};static#t=this.\u0275mod=e.$C({type:i});static#i=this.\u0275inj=e.G2t({})}return i})();class Di extends mt{constructor(n,t,s){super(V(t),Ze(s,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,t={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(n,t,s={}){this.controls.splice(n,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:s.emitEvent})}removeAt(n,t={}){let s=this._adjustIndex(n);s<0&&(s=0),this.controls[s]&&this.controls[s]._registerOnCollectionChange(()=>{}),this.controls.splice(s,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(n,t,s={}){let a=this._adjustIndex(n);a<0&&(a=0),this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),this.controls.splice(a,1),t&&(this.controls.splice(a,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:s.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,t={}){Rt(this,0,n),n.forEach((s,a)=>{bt(this,!1,a),this.at(a).setValue(s,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(n.forEach((s,a)=>{this.at(a)&&this.at(a).patchValue(s,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n=[],t={}){this._forEachChild((s,a)=>{s.reset(n[a],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((t,s)=>!!s._syncPendingControls()||t,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((t,s)=>{n(t,s)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(t=>t.enabled&&n(t))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function wi(i){return!!i&&(void 0!==i.asyncValidators||void 0!==i.validators||void 0!==i.updateOn)}let Xi=(()=>{class i{constructor(){this.useNonNullable=!1}get nonNullable(){const t=new i;return t.useNonNullable=!0,t}group(t,s=null){const a=this._reduceControls(t);let x={};return wi(s)?x=s:null!==s&&(x.validators=s.validator,x.asyncValidators=s.asyncValidator),new nt(a,x)}record(t,s=null){const a=this._reduceControls(t);return new Et(a,s)}control(t,s,a){let x={};return this.useNonNullable?(wi(s)?x=s:(x.validators=s,x.asyncValidators=a),new ne(t,{...x,nonNullable:!0})):new ne(t,s,a)}array(t,s,a){const x=t.map(P=>this._createControl(P));return new Di(x,s,a)}_reduceControls(t){const s={};return Object.keys(t).forEach(a=>{s[a]=this._createControl(t[a])}),s}_createControl(t){return t instanceof ne||t instanceof mt?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}static#e=this.\u0275fac=function(s){return new(s||i)};static#t=this.\u0275prov=e.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),ji=(()=>{class i{static withConfig(t){return{ngModule:i,providers:[{provide:Ye,useValue:t.callSetDisabledState??at}]}}static#e=this.\u0275fac=function(s){return new(s||i)};static#t=this.\u0275mod=e.$C({type:i});static#i=this.\u0275inj=e.G2t({imports:[Ci]})}return i})(),$i=(()=>{class i{static withConfig(t){return{ngModule:i,providers:[{provide:Wt,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Ye,useValue:t.callSetDisabledState??at}]}}static#e=this.\u0275fac=function(s){return new(s||i)};static#t=this.\u0275mod=e.$C({type:i});static#i=this.\u0275inj=e.G2t({imports:[Ci]})}return i})()},6450:(wt,We,C)=>{C.d(We,{$R:()=>be,Ez:()=>Ee,I6:()=>Me,KS:()=>fe,NB:()=>oe,Qo:()=>ze,XW:()=>I,YV:()=>ee,YZ:()=>Re,Zl:()=>G,Zq:()=>Ve,cC:()=>K,iF:()=>Z,iL:()=>se,ji:()=>Pe,ky:()=>ke,tL:()=>ge,tP:()=>Ce,xW:()=>X});var e=C(4438),v=C(5887),J=C(5024),le=C(6600),he=C(9928),l=C(5286),Ue=C(4670),$=C(4421),z=C(9776),De=C(4085),Y=C(5006);const Ne=[[["caption"]],[["colgroup"],["col"]],"*"],Fe=["caption","colgroup, col","*"];function we(g,O){1&g&&e.SdG(0,2)}function q(g,O){1&g&&(e.j41(0,"thead",0),e.eu8(1,1),e.k0s(),e.j41(2,"tbody",2),e.eu8(3,3)(4,4),e.k0s(),e.j41(5,"tfoot",0),e.eu8(6,5),e.k0s())}function de(g,O){1&g&&e.eu8(0,1)(1,3)(2,4)(3,5)}function Ge(g,O){if(1&g&&(e.j41(0,"th",3),e.EFF(1),e.k0s()),2&g){const w=e.XpG();e.xc7("text-align",w.justify),e.R7$(),e.SpI(" ",w.headerText," ")}}function L(g,O){if(1&g&&(e.j41(0,"td",4),e.EFF(1),e.k0s()),2&g){const w=O.$implicit,F=e.XpG();e.xc7("text-align",F.justify),e.R7$(),e.SpI(" ",F.dataAccessor(w,F.name)," ")}}let I=(()=>{class g{static#e=this.\u0275fac=function(F){return new(F||g)};static#t=this.\u0275dir=e.FsC({type:g,selectors:[["mat-table","recycleRows",""],["table","mat-table","","recycleRows",""]],standalone:!0,features:[e.Jv_([{provide:J.sL,useClass:J.DQ}])]})}return g})(),G=(()=>{class g extends v.Rk{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}static#e=this.\u0275fac=(()=>{let w;return function(M){return(w||(w=e.xGo(g)))(M||g)}})();static#t=this.\u0275cmp=e.VBU({type:g,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(F,M){2&F&&e.AVh("mdc-table-fixed-layout",M.fixedLayout)},exportAs:["matTable"],standalone:!0,features:[e.Jv_([{provide:v.Rk,useExisting:g},{provide:v.EZ,useExisting:g},{provide:v.To,useClass:v.lQ},{provide:J.sL,useClass:J.xn},{provide:v.ZM,useValue:null}]),e.Vt3,e.aNF],ngContentSelectors:Fe,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(F,M){1&F&&(e.NAR(Ne),e.SdG(0),e.SdG(1,1),e.DNE(2,we,1,0)(3,q,7,0)(4,de,4,0)),2&F&&(e.R7$(2),e.vxM(M._isServer?2:-1),e.R7$(),e.vxM(M._isNativeHtmlTable?3:4))},dependencies:[v.pe,v.yT,v.RT,v.lH],styles:[".mat-mdc-table-sticky{position:sticky !important}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2})}return g})(),ee=(()=>{class g extends v.cO{static#e=this.\u0275fac=(()=>{let w;return function(M){return(w||(w=e.xGo(g)))(M||g)}})();static#t=this.\u0275dir=e.FsC({type:g,selectors:[["","matCellDef",""]],standalone:!0,features:[e.Jv_([{provide:v.cO,useExisting:g}]),e.Vt3]})}return g})(),ge=(()=>{class g extends v.n5{static#e=this.\u0275fac=(()=>{let w;return function(M){return(w||(w=e.xGo(g)))(M||g)}})();static#t=this.\u0275dir=e.FsC({type:g,selectors:[["","matHeaderCellDef",""]],standalone:!0,features:[e.Jv_([{provide:v.n5,useExisting:g}]),e.Vt3]})}return g})(),Ve=(()=>{class g extends v.L_{static#e=this.\u0275fac=(()=>{let w;return function(M){return(w||(w=e.xGo(g)))(M||g)}})();static#t=this.\u0275dir=e.FsC({type:g,selectors:[["","matFooterCellDef",""]],standalone:!0,features:[e.Jv_([{provide:v.L_,useExisting:g}]),e.Vt3]})}return g})(),K=(()=>{class g extends v.AL{get name(){return this._name}set name(w){this._setNameInput(w)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static#e=this.\u0275fac=(()=>{let w;return function(M){return(w||(w=e.xGo(g)))(M||g)}})();static#t=this.\u0275dir=e.FsC({type:g,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},standalone:!0,features:[e.Jv_([{provide:v.AL,useExisting:g},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:g}]),e.Vt3]})}return g})(),fe=(()=>{class g extends v.sY{static#e=this.\u0275fac=(()=>{let w;return function(M){return(w||(w=e.xGo(g)))(M||g)}})();static#t=this.\u0275dir=e.FsC({type:g,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],standalone:!0,features:[e.Vt3]})}return g})(),ze=(()=>{class g extends v.c7{static#e=this.\u0275fac=(()=>{let w;return function(M){return(w||(w=e.xGo(g)))(M||g)}})();static#t=this.\u0275dir=e.FsC({type:g,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:[1,"mat-mdc-footer-cell","mdc-data-table__cell"],standalone:!0,features:[e.Vt3]})}return g})(),be=(()=>{class g extends v.VP{static#e=this.\u0275fac=(()=>{let w;return function(M){return(w||(w=e.xGo(g)))(M||g)}})();static#t=this.\u0275dir=e.FsC({type:g,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],standalone:!0,features:[e.Vt3]})}return g})(),Pe=(()=>{class g extends v.hi{static#e=this.\u0275fac=(()=>{let w;return function(M){return(w||(w=e.xGo(g)))(M||g)}})();static#t=this.\u0275dir=e.FsC({type:g,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",e.L39]},standalone:!0,features:[e.Jv_([{provide:v.hi,useExisting:g}]),e.GFd,e.Vt3]})}return g})(),X=(()=>{class g extends v.df{static#e=this.\u0275fac=(()=>{let w;return function(M){return(w||(w=e.xGo(g)))(M||g)}})();static#t=this.\u0275dir=e.FsC({type:g,selectors:[["","matFooterRowDef",""]],inputs:{columns:[0,"matFooterRowDef","columns"],sticky:[2,"matFooterRowDefSticky","sticky",e.L39]},standalone:!0,features:[e.Jv_([{provide:v.df,useExisting:g}]),e.GFd,e.Vt3]})}return g})(),se=(()=>{class g extends v.oh{static#e=this.\u0275fac=(()=>{let w;return function(M){return(w||(w=e.xGo(g)))(M||g)}})();static#t=this.\u0275dir=e.FsC({type:g,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},standalone:!0,features:[e.Jv_([{provide:v.oh,useExisting:g}]),e.Vt3]})}return g})(),Re=(()=>{class g extends v.wA{static#e=this.\u0275fac=(()=>{let w;return function(M){return(w||(w=e.xGo(g)))(M||g)}})();static#t=this.\u0275cmp=e.VBU({type:g,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],standalone:!0,features:[e.Jv_([{provide:v.wA,useExisting:g}]),e.Vt3,e.aNF],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(F,M){1&F&&e.eu8(0,0)},dependencies:[v.I8],encapsulation:2})}return g})(),Z=(()=>{class g extends v.Y${static#e=this.\u0275fac=(()=>{let w;return function(M){return(w||(w=e.xGo(g)))(M||g)}})();static#t=this.\u0275cmp=e.VBU({type:g,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-mdc-footer-row","mdc-data-table__row"],exportAs:["matFooterRow"],standalone:!0,features:[e.Jv_([{provide:v.Y$,useExisting:g}]),e.Vt3,e.aNF],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(F,M){1&F&&e.eu8(0,0)},dependencies:[v.I8],encapsulation:2})}return g})(),oe=(()=>{class g extends v.hc{static#e=this.\u0275fac=(()=>{let w;return function(M){return(w||(w=e.xGo(g)))(M||g)}})();static#t=this.\u0275cmp=e.VBU({type:g,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],standalone:!0,features:[e.Jv_([{provide:v.hc,useExisting:g}]),e.Vt3,e.aNF],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(F,M){1&F&&e.eu8(0,0)},dependencies:[v.I8],encapsulation:2})}return g})(),ke=(()=>{class g extends v.u4{constructor(){super(...arguments),this._contentClassName="mat-mdc-no-data-row"}static#e=this.\u0275fac=(()=>{let w;return function(M){return(w||(w=e.xGo(g)))(M||g)}})();static#t=this.\u0275dir=e.FsC({type:g,selectors:[["ng-template","matNoDataRow",""]],standalone:!0,features:[e.Jv_([{provide:v.u4,useExisting:g}]),e.Vt3]})}return g})(),Ee=(()=>{class g extends v.ki{static#e=this.\u0275fac=(()=>{let w;return function(M){return(w||(w=e.xGo(g)))(M||g)}})();static#t=this.\u0275cmp=e.VBU({type:g,selectors:[["mat-text-column"]],standalone:!0,features:[e.Vt3,e.aNF],decls:3,vars:0,consts:[["matColumnDef",""],["mat-header-cell","",3,"text-align",4,"matHeaderCellDef"],["mat-cell","",3,"text-align",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""]],template:function(F,M){1&F&&(e.qex(0,0),e.DNE(1,Ge,2,3,"th",1)(2,L,2,3,"td",2),e.bVm())},dependencies:[K,ge,fe,ee,be],encapsulation:2})}return g})(),Ce=(()=>{class g{static#e=this.\u0275fac=function(F){return new(F||g)};static#t=this.\u0275mod=e.$C({type:g});static#i=this.\u0275inj=e.G2t({imports:[le.yE,v.N0,le.yE]})}return g})();class Me extends J.qS{get data(){return this._data.value}set data(O){O=Array.isArray(O)?O:[],this._data.next(O),this._renderChangesSubscription||this._filterData(O)}get filter(){return this._filter.value}set filter(O){this._filter.next(O),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(O){this._sort=O,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(O){this._paginator=O,this._updateChangeSubscription()}constructor(O=[]){super(),this._renderData=new he.t([]),this._filter=new he.t(""),this._internalPageChanges=new l.B7,this._renderChangesSubscription=null,this.sortingDataAccessor=(w,F)=>{const M=w[F];if((0,De.o1)(M)){const _e=Number(M);return _e<9007199254740991?_e:M}return M},this.sortData=(w,F)=>{const M=F.active,_e=F.direction;return M&&""!=_e?w.sort((ce,te)=>{let U=this.sortingDataAccessor(ce,M),ie=this.sortingDataAccessor(te,M);const Xe=typeof U,xe=typeof ie;Xe!==xe&&("number"===Xe&&(U+=""),"number"===xe&&(ie+=""));let W=0;return null!=U&&null!=ie?U>ie?W=1:U<ie&&(W=-1):null!=U?W=1:null!=ie&&(W=-1),W*("asc"==_e?1:-1)}):w},this.filterPredicate=(w,F)=>{const M=Object.keys(w).reduce((ce,te)=>ce+w[te]+"\u25ec","").toLowerCase(),_e=F.trim().toLowerCase();return-1!=M.indexOf(_e)},this._data=new he.t(O),this._updateChangeSubscription()}_updateChangeSubscription(){const O=this._sort?(0,Ue.h)(this._sort.sortChange,this._sort.initialized):(0,$.of)(null),w=this._paginator?(0,Ue.h)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,$.of)(null),M=(0,z.zV)([this._data,this._filter]).pipe((0,Y.T)(([te])=>this._filterData(te))),_e=(0,z.zV)([M,O]).pipe((0,Y.T)(([te])=>this._orderData(te))),ce=(0,z.zV)([_e,w]).pipe((0,Y.T)(([te])=>this._pageData(te)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=ce.subscribe(te=>this._renderData.next(te))}_filterData(O){return this.filteredData=null==this.filter||""===this.filter?O:O.filter(w=>this.filterPredicate(w,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(O){return this.sort?this.sortData(O.slice(),this.sort):O}_pageData(O){if(!this.paginator)return O;const w=this.paginator.pageIndex*this.paginator.pageSize;return O.slice(w,w+this.paginator.pageSize)}_updatePaginator(O){Promise.resolve().then(()=>{const w=this.paginator;if(w&&(w.length=O,w.pageIndex>0)){const F=Math.ceil(w.length/w.pageSize)-1||0,M=Math.min(w.pageIndex,F);M!==w.pageIndex&&(w.pageIndex=M,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}}}]);