1import{a as Ke,b as se,c as Ye,d as $,e as ae,k as Ge,o as Xe}from"./chunk-S7YHGA3L.js";import{L as qe,P as De,a as We,l as $e,n as Ze}from"./chunk-53C2BKEB.js";import{d as Ue}from"./chunk-ZIKHIYRB.js";import{Aa as m,Ac as g,Ba as C,C as Y,Ca as X,D as G,Da as d,Db as L,Eb as l,Gb as S,Ja as b,Jc as oe,Jd as re,Kc as O,M as ye,Ma as Be,Na as J,Ob as H,Pa as ee,Pc as k,Qb as Qe,Rc as x,Sc as F,Ub as W,V as we,Wb as B,Ya as ze,Yb as f,Za as U,Zb as _e,dc as ie,dd as w,ed as R,g as Q,h as A,hb as te,ib as y,jb as Ve,jc as ne,pa as P,qc as z,u as Pe,ua as He,v as j,vc as T,wc as M,x as Le}from"./chunk-3UDGN2PZ.js";function pt(o,e){o&1&&O(0,2)}function gt(o,e){o&1&&(T(0,"thead",0),g(1,1),M(),T(2,"tbody",0),g(3,2)(4,3),M(),T(5,"tfoot",0),g(6,4),M())}function yt(o,e){o&1&&g(0,1)(1,2)(2,3)(3,4)}var wt=[[["caption"]],[["colgroup"],["col"]],"*"],_t=["caption","colgroup, col","*"];function Se(o){return class extends o{get sticky(){return this._sticky}set sticky(e){let a=this._sticky;this._sticky=$e(e),this._hasStickyChanged=a!==this._sticky}hasStickyChanged(){let e=this._hasStickyChanged;return this._hasStickyChanged=!1,e}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...e){super(...e),this._sticky=!1,this._hasStickyChanged=!1}}}var v=new ee("CDK_TABLE");var he=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(i){return new(i||e)(l(S))},e.\u0275dir=d({type:e,selectors:[["","cdkCellDef",""]],standalone:!0});let o=e;return o})(),fe=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(i){return new(i||e)(l(S))},e.\u0275dir=d({type:e,selectors:[["","cdkHeaderCellDef",""]],standalone:!0});let o=e;return o})(),me=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(i){return new(i||e)(l(S))},e.\u0275dir=d({type:e,selectors:[["","cdkFooterCellDef",""]],standalone:!0});let o=e;return o})(),ve=class{},Dt=Se(ve),N=(()=>{let e=class e extends Dt{get name(){return this._name}set name(t){this._setNameInput(t)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){t!==this._stickyEnd&&(this._stickyEnd=t,this._hasStickyChanged=!0)}constructor(t){super(),this._table=t,this._stickyEnd=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}};e.\u0275fac=function(i){return new(i||e)(l(v,8))},e.\u0275dir=d({type:e,selectors:[["","cdkColumnDef",""]],contentQueries:function(i,n,s){if(i&1&&(k(s,he,5),k(s,fe,5),k(s,me,5)),i&2){let r;x(r=F())&&(n.cell=r.first),x(r=F())&&(n.headerCell=r.first),x(r=F())&&(n.footerCell=r.first)}},inputs:{sticky:"sticky",name:[m.None,"cdkColumnDef","name"],stickyEnd:[m.HasDecoratorInputTransform,"stickyEnd","stickyEnd",re]},standalone:!0,features:[w([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),_e,f]});let o=e;return o})(),Z=class{constructor(e,a){a.nativeElement.classList.add(...e._columnCssClassName)}},tt=(()=>{let e=class e extends Z{constructor(t,i){super(t,i)}};e.\u0275fac=function(i){return new(i||e)(l(N),l(b))},e.\u0275dir=d({type:e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],standalone:!0,features:[f]});let o=e;return o})(),it=(()=>{let e=class e extends Z{constructor(t,i){super(t,i);let n=t._table?._getCellRole();n&&i.nativeElement.setAttribute("role",n)}};e.\u0275fac=function(i){return new(i||e)(l(N),l(b))},e.\u0275dir=d({type:e,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],standalone:!0,features:[f]});let o=e;return o})(),nt=(()=>{let e=class e extends Z{constructor(t,i){super(t,i);let n=t._table?._getCellRole();n&&i.nativeElement.setAttribute("role",n)}};e.\u0275fac=function(i){return new(i||e)(l(N),l(b))},e.\u0275dir=d({type:e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],standalone:!0,features:[f]});let o=e;return o})(),ce=class{constructor(){this.tasks=[],this.endTasks=[]}},de=new ee("_COALESCED_STYLE_SCHEDULER"),ke=(()=>{let e=class e{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new Q}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new ce,this._getScheduleObservable().pipe(P(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let t=this._currentSchedule;this._currentSchedule=new ce;for(let i of t.tasks)i();for(let i of t.endTasks)i()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Pe(Promise.resolve(void 0)):this._ngZone.onStable.pipe(we(1))}};e.\u0275fac=function(i){return new(i||e)(ze(W))},e.\u0275prov=Be({token:e,factory:e.\u0275fac});let o=e;return o}
1)();var xe=(()=>{let e=class e{constructor(t,i){this.template=t,this._differs=i}ngOnChanges(t){if(!this._columnsDiffer){let i=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof q?t.headerCell.template:this instanceof K?t.footerCell.template:t.cell.template}};e.\u0275fac=function(i){return new(i||e)(l(S),l(H))},e.\u0275dir=d({type:e,features:[te]});let o=e;return o})(),Ce=class extends xe{},vt=Se(Ce),q=(()=>{let e=class e extends vt{constructor(t,i,n){super(t,i),this._table=n}ngOnChanges(t){super.ngOnChanges(t)}};e.\u0275fac=function(i){return new(i||e)(l(S),l(H),l(v,8))},e.\u0275dir=d({type:e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[m.None,"cdkHeaderRowDef","columns"],sticky:[m.None,"cdkHeaderRowDefSticky","sticky"]},standalone:!0,features:[f,te]});let o=e;return o})(),Re=class extends xe{},Ct=Se(Re),K=(()=>{let e=class e extends Ct{constructor(t,i,n){super(t,i),this._table=n}ngOnChanges(t){super.ngOnChanges(t)}};e.\u0275fac=function(i){return new(i||e)(l(S),l(H),l(v,8))},e.\u0275dir=d({type:e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[m.None,"cdkFooterRowDef","columns"],sticky:[m.None,"cdkFooterRowDefSticky","sticky"]},standalone:!0,features:[f,te]});let o=e;return o})(),pe=(()=>{let e=class e extends xe{constructor(t,i,n){super(t,i),this._table=n}};e.\u0275fac=function(i){return new(i||e)(l(S),l(H),l(v,8))},e.\u0275dir=d({type:e,selectors:[["","cdkRowDef",""]],inputs:{columns:[m.None,"cdkRowDefColumns","columns"],when:[m.None,"cdkRowDefWhen","when"]},standalone:!0,features:[f]});let o=e;return o})(),I=(()=>{let e=class e{constructor(t){this._viewContainer=t,e.mostRecentCellOutlet=this}ngOnDestroy(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)}};e.mostRecentCellOutlet=null,e.\u0275fac=function(i){return new(i||e)(l(B))},e.\u0275dir=d({type:e,selectors:[["","cdkCellOutlet",""]],standalone:!0});let o=e;return o})(),Fe=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=C({type:e,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],standalone:!0,features:[R],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,n){i&1&&g(0,0)},dependencies:[I],encapsulation:2});let o=e;return o})(),Ie=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=C({type:e,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],standalone:!0,features:[R],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,n){i&1&&g(0,0)},dependencies:[I],encapsulation:2});let o=e;return o})(),Ee=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=C({type:e,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],standalone:!0,features:[R],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,n){i&1&&g(0,0)},dependencies:[I],encapsulation:2});let o=e;return o})(),ot=(()=>{let e=class e{constructor(t){this.templateRef=t,this._contentClassName="cdk-no-data-row"}};e.\u0275fac=function(i){return new(i||e)(l(S))},e.\u0275dir=d({type:e,selectors:[["ng-template","cdkNoDataRow",""]],standalone:!0});let o=e;return o})(),Je=["top","bottom","left","right"],be=class{constructor(e,a,t,i,n=!0,s=!0,r){this._isNativeHtmlTable=e,this._stickCellCss=a,this.direction=t,this._coalescedStyleScheduler
1=i,this._isBrowser=n,this._needsPositionStickyOnElement=s,this._positionListener=r,this._cachedCellWidths=[],this._borderCellCss={top:`${a}-border-elem-top`,bottom:`${a}-border-elem-bottom`,left:`${a}-border-elem-left`,right:`${a}-border-elem-right`}}clearStickyPositioning(e,a){let t=[];for(let i of e)if(i.nodeType===i.ELEMENT_NODE){t.push(i);for(let n=0;n<i.children.length;n++)t.push(i.children[n])}this._coalescedStyleScheduler.schedule(()=>{for(let i of t)this._removeStickyStyle(i,a)})}updateStickyColumns(e,a,t,i=!0){if(!e.length||!this._isBrowser||!(a.some(n=>n)||t.some(n=>n))){this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}));return}this._coalescedStyleScheduler.schedule(()=>{let n=e[0],s=n.children.length,r=this._getCellWidths(n,i),c=this._getStickyStartColumnPositions(r,a),u=this._getStickyEndColumnPositions(r,t),h=a.lastIndexOf(!0),_=t.indexOf(!0),p=this.direction==="rtl",E=p?"right":"left",ge=p?"left":"right";for(let V of e)for(let D=0;D<s;D++){let je=V.children[D];a[D]&&this._addStickyStyle(je,E,c[D],D===h),t[D]&&this._addStickyStyle(je,ge,u[D],D===_)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:h===-1?[]:r.slice(0,h+1).map((V,D)=>a[D]?V:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:_===-1?[]:r.slice(_).map((V,D)=>t[D+_]?V:null).reverse()}))})}stickRows(e,a,t){this._isBrowser&&this._coalescedStyleScheduler.schedule(()=>{let i=t==="bottom"?e.slice().reverse():e,n=t==="bottom"?a.slice().reverse():a,s=[],r=[],c=[];for(let h=0,_=0;h<i.length;h++){if(!n[h])continue;s[h]=_;let p=i[h];c[h]=this._isNativeHtmlTable?Array.from(p.children):[p];let E=p.getBoundingClientRect().height;_+=E,r[h]=E}let u=n.lastIndexOf(!0);for(let h=0;h<i.length;h++){if(!n[h])continue;let _=s[h],p=h===u;for(let E of c[h])this._addStickyStyle(E,t,_,p)}t==="top"?this._positionListener?.stickyHeaderRowsUpdated({sizes:r,offsets:s,elements:c}):this._positionListener?.stickyFooterRowsUpdated({sizes:r,offsets:s,elements:c})})}updateStickyFooterContainer(e,a){this._isNativeHtmlTable&&this._coalescedStyleScheduler.schedule(()=>{let t=e.querySelector("tfoot");t&&(a.some(i=>!i)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1))})}_removeStickyStyle(e,a){for(let i of a)e.style[i]="",e.classList.remove(this._borderCellCss[i]);Je.some(i=>a.indexOf(i)===-1&&e.style[i])?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}_addStickyStyle(e,a,t,i){e.classList.add(this._stickCellCss),i&&e.classList.add(this._borderCellCss[a]),e.style[a]=`${t}px`,e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(e){let a={top:100,bottom:10,left:1,right:1},t=0;for(let i of Je)e.style[i]&&(t+=a[i]);return t?`${t}`:""}_getCellWidths(e,a=!0){if(!a&&this._cachedCellWidths.length)return this._cachedCellWidths;let t=[],i=e.children;for(let n=0;n<i.length;n++){let s=i[n];t.push(s.getBoundingClientRect().width)}return this._cachedCellWidths=t,t}_getStickyStartColumnPositions(e,a){let t=[],i=0;for(let n=0;n<e.length;n++)a[n]&&(t[n]=i,i+=e[n]);return t}_getStickyEndColumnPositions(e,a){let t=[],i=0;for(let n=e.length;n>0;n--)a[n]&&(t[n]=i,i+=e[n]);return t}};var ue=new ee("CDK_SPL");var Te=(()=>{let e=class e{constructor(t,i){this.viewContainer=t,this.elementRef=i;let n=U(v);n._rowOutlet=this,n._outletAssigned()}};e.\u0275fac=function(i){return new(i||e)(l(B),l(b))},e.\u0275dir=d({type:e,selectors:[["","rowOutlet",""]],standalone:!0});let o=e;return o})(),Me=(()=>{let e=class e{constructor(t,i){this.viewContainer=t,this.elementRef=i;let n=U(v);n._headerRowOutlet=this,n._outletAssigned()}};e.\u0275fac=function(i){return new(i||e)(l(B),l(b))},e.\u0275dir=d({type:e,selectors:[["","headerRowOutlet",""]],standalone:!0});let o=e;return o})(),Oe=(()=>{let e=class e{constructor(t,i){this.viewContainer=t,this.elementRef=i;let n=U(v);n._footerRowOutlet=this,n._outletAssigned()}};e.\u0275fac=function(i){return new(i||e)(l(B),l(b))},e.\u0275dir=d({type:e,selectors:[["","footerRowOutlet",""]],standalone:!0});let o=e;return o}
1)(),Ne=(()=>{let e=class e{constructor(t,i){this.viewContainer=t,this.elementRef=i;let n=U(v);n._noDataRowOutlet=this,n._outletAssigned()}};e.\u0275fac=function(i){return new(i||e)(l(B),l(b))},e.\u0275dir=d({type:e,selectors:[["","noDataRowOutlet",""]],standalone:!0});let o=e;return o})();var Ae=(()=>{let e=class e{_getCellRole(){if(this._cellRoleInternal===void 0){let t=this._elementRef.nativeElement.getAttribute("role"),i=t==="grid"||t==="treegrid"?"gridcell":"cell";this._cellRoleInternal=this._isNativeHtmlTable&&i==="cell"?null:i}return this._cellRoleInternal}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=t,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=t,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(t,i,n,s,r,c,u,h,_,p,E,ge){this._differs=t,this._changeDetectorRef=i,this._elementRef=n,this._dir=r,this._platform=u,this._viewRepeater=h,this._coalescedStyleScheduler
1=_,this._viewportRuler=p,this._stickyPositioningListener=E,this._ngZone=ge,this._onDestroy=new Q,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 He,this.viewChange=new A({start:0,end:Number.MAX_VALUE}),s||n.nativeElement.setAttribute("role","table"),this._document=c,this._isServer=!u.isBrowser,this._isNativeHtmlTable=n.nativeElement.nodeName==="TABLE"}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((t,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(P(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(t=>{t?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),se(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let t=this._dataDiffer.diff(this._renderRows);if(!t){this._updateNoDataRow(),this.contentChanged.next();return}let i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,i,(n,s,r)=>this._getEmbeddedViewArgs(n.item,r),n=>n.item.data,n=>{n.operation===Ye.INSERTED&&n.context&&this._renderCellTemplateForItem(n.record.item.rowDef,n.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(n=>{let s=i.get(n.currentIndex);s.context.$implicit=n.item.data}),this._updateNoDataRow(),this._ngZone&&W.isInAngularZone()?this._ngZone.onStable.pipe(we(1),P(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){let t=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let n=et(this._headerRowOutlet,"thead");n&&(n.style.display=t.length?"":"none")}let i=this._headerRowDefs.map(n=>n.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach(n=>n.resetStickyChanged())}updateStickyFooterRowStyles(){let t=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let n=et(this._footerRowOutlet,"tfoot");n&&(n.style.display=t.length?"":"none")}let i=this._footerRowDefs.map(n=>n.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(n=>n.resetStickyChanged())}updateStickyColumnStyles(){let t=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),n=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...i,...n],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((s,r)=>{this._addStickyColumnStyles([s],this._headerRowDefs[r])}
1),this._rowDefs.forEach(s=>{let r=[];for(let c=0;c<i.length;c++)this._renderRows[c].rowDef===s&&r.push(i[c]);this._addStickyColumnStyles(r,s)}),n.forEach((s,r)=>{this._addStickyColumnStyles([s],this._footerRowDefs[r])}),Array.from(this._columnDefsByName.values()).forEach(s=>s.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(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){let t=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let n=0;n<this._data.length;n++){let s=this._data[n],r=this._getRenderRowsForData(s,n,i.get(s));this._cachedRenderRowsMap.has(s)||this._cachedRenderRowsMap.set(s,new WeakMap);for(let c=0;c<r.length;c++){let u=r[c],h=this._cachedRenderRowsMap.get(u.data);h.has(u.rowDef)?h.get(u.rowDef).push(u):h.set(u.rowDef,[u]),t.push(u)}}return t}_getRenderRowsForData(t,i,n){return this._getRowDefs(t,i).map(r=>{let c=n&&n.has(r)?n.get(r):[];if(c.length){let u=c.shift();return u.dataIndex=i,u}else return{data:t,rowDef:r,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),le(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=le(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=le(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=le(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let t=this._rowDefs.filter(i=>!i.when);!this.multiTemplateDataRows&&t.length>1,this._defaultRowDef=t[0]}_renderUpdatedColumns(){let t=(r,c)=>r||!!c.getColumnsDiff(),i=this._rowDefs.reduce(t,!1);i&&this._forceRenderDataRows();let n=this._headerRowDefs.reduce(t,!1);n&&this._forceRenderHeaderRows();let s=this._footerRowDefs.reduce(t,!1);return s&&this._forceRenderFooterRows(),i||n||s}_switchDataSource(t){this._data=[],se(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;se(this.dataSource)?t=this.dataSource.connect(this):Le(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=j(this.dataSource)),this._renderChangeSubscription=t.pipe(P(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,i)=>this._renderRow(this._headerRowOutlet,t,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,i)=>this._renderRow(this._footerRowOutlet,t,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,i){let n=Array.from(i.columns||[]).map(c=>{let u=this._columnDefsByName.get(c);return u}),s=n.map(c=>c.sticky),r=n.map(c=>c.stickyEnd);this._stickyStyler.updateStickyColumns(t,s,r,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){let i=[];for(let n=0;n<t.viewContainer.length;n++){let s=t.viewContainer.get(n);i.push(s.rootNodes[0])}return i}_getRowDefs(t,i){if(this._rowDefs.length==1)return[this._rowDefs[0]];let n=[];if(this.multiTemplateDataRows)n=this._rowDefs.filter(s=>!s.when||s.when(i,t));else{let s=this._rowDefs.find(r=>r.when&&r.when(i,t))||this._defaultRowDef;s&&n.push(s)}return n.length,n}_getEmbeddedViewArgs(t,i){let n=t.rowDef,s={$implicit:t.data};return{templateRef:n.template,context:s,index:i}}_renderRow(t,i,n,s={}){let r=t.viewContainer.createEmbeddedView(i.template,s,n);return this._renderCellTemplateForItem(i,s),r}_renderCellTemplateForItem(t,i){for(let n of this._getCellTemplates(t))I.mostRecentCellOutlet&&I.mostRecentCellOutlet._viewContainer.createEmbeddedView(n,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let t=this._rowOutlet.viewContainer;for(let i=0,n=t.length;i<n;i++){let r=t.get(i).context;r.count=n,r.first=i===0,r.last=i===n-1,r.even=i%2===0,r.odd=!r.even,this.multiTemplateDataRows?(r.dataIndex=this._renderRows[i].dataIndex,r.renderIndex=i):r.index=this._renderRows[i].dataIndex}}_getCellTemplates(t){return!t||!t.columns?[]:Array.from(t.columns,i=>{let n=this._columnDefsByName.get(i);return t.extractCellTemplate(n)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let t=(i,n)=>i||n.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let t=this._dir?this._dir.value:"ltr";this._stickyStyler=new be(this._isNativeHtmlTable,this.stickyCssClass,t,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:j()).pipe(P(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(i=>!i._table||i._table===this)}
1_updateNoDataRow(){let t=this._customNoDataRow||this._noDataRow;if(!t)return;let i=this._rowOutlet.viewContainer.length===0;if(i===this._isShowingNoDataRow)return;let n=this._noDataRowOutlet.viewContainer;if(i){let s=n.createEmbeddedView(t.templateRef),r=s.rootNodes[0];s.rootNodes.length===1&&r?.nodeType===this._document.ELEMENT_NODE&&(r.setAttribute("role","row"),r.classList.add(t._contentClassName))}else n.clear();this._isShowingNoDataRow=i,this._changeDetectorRef.markForCheck()}};e.\u0275fac=function(i){return new(i||e)(l(H),l(Qe),l(b),Ve("role"),l(qe,8),l(Ue),l(We),l($),l(de),l(Ge),l(ue,12),l(W,8))},e.\u0275cmp=C({type:e,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(i,n,s){if(i&1&&(k(s,ot,5),k(s,N,5),k(s,pe,5),k(s,q,5),k(s,K,5)),i&2){let r;x(r=F())&&(n._noDataRow=r.first),x(r=F())&&(n._contentColumnDefs=r),x(r=F())&&(n._contentRowDefs=r),x(r=F())&&(n._contentHeaderRowDefs=r),x(r=F())&&(n._contentFooterRowDefs=r)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(i,n){i&2&&ne("cdk-table-fixed-layout",n.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[m.HasDecoratorInputTransform,"multiTemplateDataRows","multiTemplateDataRows",re],fixedLayout:[m.HasDecoratorInputTransform,"fixedLayout","fixedLayout",re]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],standalone:!0,features:[w([{provide:v,useExisting:e},{provide:$,useClass:ae},{provide:de,useClass:ke},{provide:ue,useValue:null}]),_e,R],ngContentSelectors:_t,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,n){i&1&&(oe(wt),O(0),O(1,1),ie(2,pt,1,0)(3,gt,7,0)(4,yt,4,0)),i&2&&(L(2),z(2,n._isServer?2:-1),L(),z(3,n._isNativeHtmlTable?3:4))},dependencies:[Me,Te,Ne,Oe],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2});let o=e;return o})();function le(o,e){return o.concat(Array.from(e))}function et(o,e){let a=e.toUpperCase(),t=o.viewContainer.element.nativeElement;for(;t;){let i=t.nodeType===1?t.nodeName:null;if(i===a)return t;if(i==="TABLE")break;t=t.parentNode}return null}var rt=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=X({type:e}),e.\u0275inj=J({imports:[Xe]});let o=e;return o})();function Rt(o,e){o&1&&O(0,2)}function bt(o,e){o&1&&(T(0,"thead",0),g(1,1),M(),T(2,"tbody",2),g(3,3)(4,4),M(),T(5,"tfoot",0),g(6,5),M())}function St(o,e){o&1&&g(0,1)(1,3)(2,4)(3,5)}var kt=[[["caption"]],[["colgroup"],["col"]],"*"],xt=["caption","colgroup, col","*"];var ui=(()=>{let e=class e extends Ae{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=y(e)))(n||e)}})(),e.\u0275cmp=C({type:e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(i,n){i&2&&ne("mdc-table-fixed-layout",n.fixedLayout)},exportAs:["matTable"],standalone:!0,features:[w([{provide:Ae,useExisting:e},{provide:v,useExisting:e},{provide:de,useClass:ke},{provide:$,useClass:ae},{provide:ue,useValue:null}]),f,R],ngContentSelectors:xt,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,n){i&1&&(oe(kt),O(0),O(1,1),ie(2,Rt,1,0)(3,bt,7,0)(4,St,4,0)),i&2&&(L(2),z(2,n._isServer?2:-1),L(),z(3,n._isNativeHtmlTable?3:4))},dependencies:[Me,Te,Ne,Oe],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)}
1.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});let o=e;return o})(),hi=(()=>{let e=class e extends he{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=y(e)))(n||e)}})(),e.\u0275dir=d({type:e,selectors:[["","matCellDef",""]],standalone:!0,features:[w([{provide:he,useExisting:e}]),f]});let o=e;return o})(),fi=(()=>{let e=class e extends fe{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=y(e)))(n||e)}})(),e.\u0275dir=d({type:e,selectors:[["","matHeaderCellDef",""]],standalone:!0,features:[w([{provide:fe,useExisting:e}]),f]});let o=e;return o})(),mi=(()=>{let e=class e extends me{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=y(e)))(n||e)}})(),e.\u0275dir=d({type:e,selectors:[["","matFooterCellDef",""]],standalone:!0,features:[w([{provide:me,useExisting:e}]),f]});let o=e;return o})(),pi=(()=>{let e=class e extends N{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=y(e)))(n||e)}})(),e.\u0275dir=d({type:e,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:[m.None,"matColumnDef","name"]},standalone:!0,features:[w([{provide:N,useExisting:e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),f]});let o=e;return o})(),gi=(()=>{let e=class e extends tt{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=y(e)))(n||e)}})(),e.\u0275dir=d({type:e,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],standalone:!0,features:[f]});let o=e;return o})(),yi=(()=>{let e=class e extends it{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=y(e)))(n||e)}})(),e.\u0275dir=d({type:e,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:[1,"mat-mdc-footer-cell","mdc-data-table__cell"],standalone:!0,features:[f]});let o=e;return o}
1)(),wi=(()=>{let e=class e extends nt{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=y(e)))(n||e)}})(),e.\u0275dir=d({type:e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],standalone:!0,features:[f]});let o=e;return o})();var _i=(()=>{let e=class e extends q{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=y(e)))(n||e)}})(),e.\u0275dir=d({type:e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[m.None,"matHeaderRowDef","columns"],sticky:[m.None,"matHeaderRowDefSticky","sticky"]},standalone:!0,features:[w([{provide:q,useExisting:e}]),f]});let o=e;return o})(),Di=(()=>{let e=class e extends K{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=y(e)))(n||e)}})(),e.\u0275dir=d({type:e,selectors:[["","matFooterRowDef",""]],inputs:{columns:[m.None,"matFooterRowDef","columns"],sticky:[m.None,"matFooterRowDefSticky","sticky"]},standalone:!0,features:[w([{provide:K,useExisting:e}]),f]});let o=e;return o})(),vi=(()=>{let e=class e extends pe{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=y(e)))(n||e)}})(),e.\u0275dir=d({type:e,selectors:[["","matRowDef",""]],inputs:{columns:[m.None,"matRowDefColumns","columns"],when:[m.None,"matRowDefWhen","when"]},standalone:!0,features:[w([{provide:pe,useExisting:e}]),f]});let o=e;return o})(),Ci=(()=>{let e=class e extends Fe{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=y(e)))(n||e)}})(),e.\u0275cmp=C({type:e,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:[w([{provide:Fe,useExisting:e}]),f,R],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,n){i&1&&g(0,0)},dependencies:[I],encapsulation:2});let o=e;return o})(),Ri=(()=>{let e=class e extends Ie{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=y(e)))(n||e)}})(),e.\u0275cmp=C({type:e,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:[w([{provide:Ie,useExisting:e}]),f,R],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,n){i&1&&g(0,0)},dependencies:[I],encapsulation:2});let o=e;return o})(),bi=(()=>{let e=class e extends Ee{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=y(e)))(n||e)}})(),e.\u0275cmp=C({type:e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],standalone:!0,features:[w([{provide:Ee,useExisting:e}]),f,R],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,n){i&1&&g(0,0)},dependencies:[I],encapsulation:2});let o=e;return o})();var Si=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=X({type:e}),e.\u0275inj=J({imports:[De,rt,De]});let o=e;return o})(),Ft=9007199254740991,st=class extends Ke{get data(){return this._data.value}set data(e){e=Array.isArray(e)?e:[],this._data.next(e),this._renderChangesSubscription||this._filterData(e)}get filter(){return this._filter.value}set filter(e){this._filter.next(e),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(e){this._sort=e,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(e){this._paginator=e,this._updateChangeSubscription()}constructor(e=[]){super(),this._renderData=new A([]),this._filter=new A(""),this._internalPageChanges=new Q,this._renderChangesSubscription=null,this.sortingDataAccessor=(a,t)=>{let i=a[t];if(Ze(i)){let n=Number(i);return n<Ft?n:i}return i},this.sortData=(a,t)=>{let i=t.active,n=t.direction;return!i||n==""?a:a.sort((s,r)=>{let c=this.sortingDataAccessor(s,i),u=this.sortingDataAccessor(r,i),h=typeof c,_=typeof u;h!==_&&(h==="number"&&(c+=""),_==="number"&&(u+=""));let p=0;return c!=null&&u!=null?c>u?p=1:c<u&&(p=-1):c!=null?p=1:u!=null&&(p=-1),p*(n=="asc"?1:-1)})},this.filterPredicate=(a,t)=>{let i=Object.keys(a).reduce((s,r)=>s+a[r]+"\u25EC","").toLowerCase(),n=t.trim().toLowerCase();return i.indexOf(n)!=-1},this._data=new A(e),this._updateChangeSubscription()}_updateChangeSubscription(){let e=this._sort?ye(this._sort.sortChange,this._sort.initialized):j(null),a=this._paginator?ye(this._paginator.page,this._internalPageChanges,this._paginator.initialized):j(null),t=this._data,i=G([t,this._filter]).pipe(Y(([r])=>this._filterData(r))),n=G([i,e]).pipe(Y(([r])=>this._orderData(r))),s=G([n,a]).pipe(Y(([r])=>this._pageData(r)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=s.subscribe(r=>this._renderData.next(r))}_filterData(e){return this.filteredData=this.filter==null||this.filter===""?e:e.filter(a=>this.filterPredicate(a,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(e){return this.sort?this.sortData(e.slice(),this.sort):e}_pageData(e){if(!this.paginator)return e;let a=this.paginator.pageIndex*this.paginator.pageSize;return e.slice(a,a+this.paginator.pageSize)}_updatePaginator(e){Promise.resolve().then(()=>{let a=this.paginator;if(a&&(a.length=e,a.pageIndex>0)){let t=Math.ceil(a.length/a.pageSize)-1||0,i=Math.min(a.pageIndex,t);i!==a.pageIndex&&(a.pageIndex=i,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};export{ui as a,hi as b,fi as c,mi as d,pi as e,gi as f,yi as g,wi as h,_i as i,Di as j,vi as k,Ci as l,Ri as m,bi as n,Si as o,st as p};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.