/** * @ag-grid-enterprise/all-modules - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v31.3.1 * @link https://www.ag-grid.com/ * @license Commercial */ // @ag-grid-enterprise/all-modules v31.3.1 !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.agGrid=t():e.agGrid=t()}(self,(function(){return function(){var e={7886:function(e,t,n){var a,i=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,l=(e,t,n,a)=>{for(var o,s=a>1?void 0:a?r(t,n):t,l=e.length-1;l>=0;l--)(o=e[l])&&(s=(a?o(t,n,s):o(s))||s);return a&&s&&i(t,n,s),s},d={};((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})(d,{ClientSideRowModelModule:()=>D}),e.exports=(a=d,((e,t,n,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of o(t))s.call(e,l)||l===n||i(e,l,{get:()=>t[l],enumerable:!(a=r(t,l))||a.enumerable});return e})(i({},"__esModule",{value:!0}),a));var c=n(3423),g=n(3423),h=n(3423),u=class e{constructor(t,n,a,i,r,o){this.nextId=0,this.rowCountReady=!1,this.allNodesMap={},this.rootNode=t,this.gos=n,this.eventService=a,this.columnModel=i,this.beans=o,this.selectionService=r,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=e.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterAggFilter=[],this.rootNode.childrenAfterFilter=[]}getCopyOfNodesMap(){return h._.cloneObject(this.allNodesMap)}getRowNode(e){return this.allNodesMap[e]}setRowData(t){if("string"==typeof t)return void console.warn("AG Grid: rowData must be an array.");this.rowCountReady=!0,this.dispatchRowDataUpdateStartedEvent(t);const n=this.rootNode,a=this.rootNode.sibling;n.childrenAfterFilter=null,n.childrenAfterGroup=null,n.childrenAfterAggFilter=null,n.childrenAfterSort=null,n.childrenMapped=null,n.updateHasChildren(),this.nextId=0,this.allNodesMap={},t?n.allLeafChildren=t.map((t=>this.createNode(t,this.rootNode,e.TOP_LEVEL))):(n.allLeafChildren=[],n.childrenAfterGroup=[]),a&&(a.childrenAfterFilter=n.childrenAfterFilter,a.childrenAfterGroup=n.childrenAfterGroup,a.childrenAfterAggFilter=n.childrenAfterAggFilter,a.childrenAfterSort=n.childrenAfterSort,a.childrenMapped=n.childrenMapped,a.allLeafChildren=n.allLeafChildren)}updateRowData(e,t){this.rowCountReady=!0,this.dispatchRowDataUpdateStartedEvent(e.add);const n={remove:[],update:[],add:[]},a=[];return this.executeRemove(e,n,a),this.executeUpdate(e,n,a),this.executeAdd(e,n),this.updateSelection(a,"rowDataChanged"),t&&h._.sortRowNodesByOrder(this.rootNode.allLeafChildren,t),n}isRowCountReady(){return this.rowCountReady}dispatchRowDataUpdateStartedEvent(e){const t={type:h.Events.EVENT_ROW_DATA_UPDATE_STARTED,firstRowData:(null==e?void 0:e.length)?e[0]:null};this.eventService.dispatchEvent(t)}updateSelection(e,t){const n=e.length>0;if(n&&this.selectionService.setNodesSelected({newValue:!1,nodes:e,suppressFinishActions:!0,source:t}),this.selectionService.updateGroupsFromChildrenSelections(t),n){const e={type:h.Events.EVENT_SELECTION_CHANGED,source:t};this.eventService.dispatchEvent(e)}}executeAdd(t,n){var a;const{add:i,addIndex:r}=t;if(h._.missingOrEmpty(i))return;const o=i.map((t=>this.createNode(t,this.rootNode,e.TOP_LEVEL)));if("number"==typeof r&&r>=0){const{allLeafChildren:e}=this.rootNode,t=e.length;let n=r;if(this.gos.get("treeData")&&r>0&&t>0)for(let i=0;i{const a=this.lookupRowNode(e);a&&(a.isSelected()&&n.push(a),a.clearRowTopAndRowIndex(),i[a.id]=!0,delete this.allNodesMap[a.id],t.remove.push(a))})),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter((e=>!i[e.id])),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren)}executeUpdate(t,n,a){const{update:i}=t;h._.missingOrEmpty(i)||i.forEach((t=>{const i=this.lookupRowNode(t);i&&(i.updateData(t),!i.selectable&&i.isSelected()&&a.push(i),this.setMasterForRow(i,t,e.TOP_LEVEL,!1),n.update.push(i))}))}lookupRowNode(e){const t=this.gos.getCallback("getRowId");let n;if(t){const a=t({data:e,level:0});if(n=this.allNodesMap[a],!n)return console.error(`AG Grid: could not find row id=${a}, data item was not found for this id`),null}else if(n=this.rootNode.allLeafChildren.find((t=>t.data===e)),!n)return console.error("AG Grid: could not find data item as object was not found",e),console.error("Consider using getRowId to help the Grid find matching row data"),null;return n||null}createNode(e,t,n){const a=new h.RowNode(this.beans);a.group=!1,this.setMasterForRow(a,e,n,!0);const i=this.gos.get("suppressParentsInRowNodes");return t&&!i&&(a.parent=t),a.level=n,a.setDataAndId(e,this.nextId.toString()),this.allNodesMap[a.id]&&console.warn(`AG Grid: duplicate node id '${a.id}' detected from getRowId callback, this could cause issues in your grid.`),this.allNodesMap[a.id]=a,this.nextId++,a}setMasterForRow(e,t,n,a){if(this.gos.get("treeData"))e.setMaster(!1),a&&(e.expanded=!1);else{if(this.gos.get("masterDetail")){const n=this.gos.get("isRowMaster");n?e.setMaster(n(t)):e.setMaster(!0)}else e.setMaster(!1);if(a){const t=this.columnModel.getRowGroupColumns(),a=n+(t?t.length:0);e.expanded=!!e.master&&this.isExpanded(a)}}}isExpanded(e){const t=this.gos.get("groupDefaultExpanded");return-1===t||ethis.onGridReady())),this.addPropertyListeners(),this.rootNode=new g.RowNode(this.beans),this.nodeManager=new p(this.rootNode,this.gos,this.eventService,this.columnModel,this.selectionService,this.beans)}addPropertyListeners(){const e=new Set(["treeData","masterDetail"]),t=new Set(["suppressParentsInRowNodes","groupDefaultExpanded","groupAllowUnbalanced","initialGroupOrderComparator","groupHideOpenParents","groupDisplayType"]),n=new Set(["excludeChildrenWhenTreeDataFiltering"]),a=new Set(["removePivotHeaderRowWhenSingleValueColumn","pivotRowTotals","pivotColumnGroupTotals","suppressExpandablePivotGroups"]),i=new Set(["getGroupRowAgg","alwaysAggregateAtRootLevel","groupIncludeTotalFooter","suppressAggFilteredOnly","grandTotalRow"]),r=new Set(["postSortRows","groupDisplayType","accentedSort"]),o=new Set([]),s=new Set(["groupRemoveSingleChildren","groupRemoveLowestSingleChildren","groupIncludeFooter","groupTotalRow"]),l=[...e,...t,...n,...a,...a,...i,...r,...o,...s];this.addManagedPropertyListeners(l,(l=>{var d;const c=null==(d=l.changeSet)?void 0:d.properties;if(!c)return;const h=e=>c.some((t=>e.has(t)));h(e)?this.setRowData(this.rootNode.allLeafChildren.map((e=>e.data))):h(t)?this.refreshModel({step:g.ClientSideRowModelSteps.EVERYTHING}):h(n)?this.refreshModel({step:g.ClientSideRowModelSteps.FILTER}):h(a)?this.refreshModel({step:g.ClientSideRowModelSteps.PIVOT}):h(i)?this.refreshModel({step:g.ClientSideRowModelSteps.AGGREGATE}):h(r)?this.refreshModel({step:g.ClientSideRowModelSteps.SORT}):h(o)?this.refreshModel({step:g.ClientSideRowModelSteps.FILTER_AGGREGATES}):h(s)&&this.refreshModel({step:g.ClientSideRowModelSteps.MAP})})),this.addManagedPropertyListener("rowHeight",(()=>this.resetRowHeights()))}start(){this.hasStarted=!0,this.shouldSkipSettingDataOnStart?this.dispatchUpdateEventsAndRefresh():this.setInitialData()}setInitialData(){const e=this.gos.get("rowData");e&&(this.shouldSkipSettingDataOnStart=!0,this.setRowData(e))}ensureRowHeightsValid(e,t,n,a){let i,r=!1;do{i=!1;const o=this.getRowIndexAtPixel(e),s=this.getRowIndexAtPixel(t),l=Math.max(o,n),d=Math.min(s,a);for(let e=l;e<=d;e++){const t=this.getRow(e);if(t.rowHeightEstimated){const e=this.gos.getRowHeightForNode(t);t.setRowHeight(e.height),i=!0,r=!0}}i&&this.setRowTopAndRowIndex()}while(i);return r}setRowTopAndRowIndex(){const e=this.environment.getDefaultRowHeight();let t=0;const n=new Set,a=this.gos.isDomLayout("normal");for(let i=0;i{e&&null!=e.id&&!t.has(e.id)&&e.clearRowTopAndRowIndex()},i=e=>{if(a(e),a(e.detailNode),a(e.sibling),e.hasChildren()&&e.childrenAfterGroup){const t=-1==e.level;n&&!t&&!e.expanded||e.childrenAfterGroup.forEach(i)}};i(this.rootNode)}ensureRowsAtPixel(e,t,n=0){const a=this.getRowIndexAtPixel(t),i=this.getRow(a),r=!this.gos.get("suppressAnimationFrame");return i!==e[0]&&(e.forEach((e=>{g._.removeFromArray(this.rootNode.allLeafChildren,e)})),e.forEach(((e,t)=>{g._.insertIntoArray(this.rootNode.allLeafChildren,e,Math.max(a+n,0)+t)})),this.refreshModel({step:g.ClientSideRowModelSteps.EVERYTHING,keepRenderedRows:!0,keepEditingRows:!0,animate:r}),!0)}highlightRowAtPixel(e,t){const n=null!=t?this.getRowIndexAtPixel(t):null,a=null!=n?this.getRow(n):null;if(!a||!e||a===e||null==t)return void(this.lastHighlightedRow&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null));const i=this.getHighlightPosition(t,a);this.lastHighlightedRow&&this.lastHighlightedRow!==a&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null),a.setHighlighted(i),this.lastHighlightedRow=a}getHighlightPosition(e,t){if(!t){const n=this.getRowIndexAtPixel(e);if(!(t=this.getRow(n||0)))return g.RowHighlightPosition.Below}const{rowTop:n,rowHeight:a}=t;return e-n0;)t=t.childrenAfterSort[0];return t.rowIndex}getRowBounds(e){if(g._.missing(this.rowsToDisplay))return null;const t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null}onRowGroupOpened(){const e=this.gos.isAnimateRows();this.refreshModel({step:g.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,animate:e})}onFilterChanged(e){if(e.afterDataChange)return;const t=this.gos.isAnimateRows(),n=0===e.columns.length||e.columns.some((e=>e.isPrimary()))?g.ClientSideRowModelSteps.FILTER:g.ClientSideRowModelSteps.FILTER_AGGREGATES;this.refreshModel({step:n,keepRenderedRows:!0,animate:t})}onSortChanged(){const e=this.gos.isAnimateRows();this.refreshModel({step:g.ClientSideRowModelSteps.SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})}getType(){return"clientSide"}onValueChanged(){this.columnModel.isPivotActive()?this.refreshModel({step:g.ClientSideRowModelSteps.PIVOT}):this.refreshModel({step:g.ClientSideRowModelSteps.AGGREGATE})}createChangePath(e){const t=g._.missingOrEmpty(e),n=new g.ChangedPath(!1,this.rootNode);return(t||this.gos.get("treeData"))&&n.setInactive(),n}isSuppressModelUpdateAfterUpdateTransaction(e){if(!this.gos.get("suppressModelUpdateAfterUpdateTransaction"))return!1;if(null==e.rowNodeTransactions)return!1;const t=e.rowNodeTransactions.filter((e=>null!=e.add&&e.add.length>0||null!=e.remove&&e.remove.length>0));return null==t||0==t.length}buildRefreshModelParams(e){let t=g.ClientSideRowModelSteps.EVERYTHING;const n={everything:g.ClientSideRowModelSteps.EVERYTHING,group:g.ClientSideRowModelSteps.EVERYTHING,filter:g.ClientSideRowModelSteps.FILTER,map:g.ClientSideRowModelSteps.MAP,aggregate:g.ClientSideRowModelSteps.AGGREGATE,sort:g.ClientSideRowModelSteps.SORT,pivot:g.ClientSideRowModelSteps.PIVOT};if(g._.exists(e)&&(t=n[e]),g._.missing(t))return void console.error(`AG Grid: invalid step ${e}, available steps are ${Object.keys(n).join(", ")}`);return{step:t,keepRenderedRows:!0,keepEditingRows:!0,animate:!this.gos.get("suppressAnimationFrame")}}refreshModel(e){if(!this.hasStarted||this.isRefreshingModel||this.columnModel.shouldRowModelIgnoreRefresh())return;let t="object"==typeof e&&"step"in e?e:this.buildRefreshModelParams(e);if(!t)return;if(this.isSuppressModelUpdateAfterUpdateTransaction(t))return;const n=this.createChangePath(t.rowNodeTransactions);switch(this.isRefreshingModel=!0,t.step){case g.ClientSideRowModelSteps.EVERYTHING:this.doRowGrouping(t.rowNodeTransactions,t.rowNodeOrder,n,!!t.afterColumnsChanged);case g.ClientSideRowModelSteps.FILTER:this.doFilter(n);case g.ClientSideRowModelSteps.PIVOT:this.doPivot(n);case g.ClientSideRowModelSteps.AGGREGATE:this.doAggregate(n);case g.ClientSideRowModelSteps.FILTER_AGGREGATES:this.doFilterAggregates(n);case g.ClientSideRowModelSteps.SORT:this.doSort(t.rowNodeTransactions,n);case g.ClientSideRowModelSteps.MAP:this.doRowsToDisplay()}const a=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(n,a),this.isRefreshingModel=!1;const i={type:g.Events.EVENT_MODEL_UPDATED,animate:t.animate,keepRenderedRows:t.keepRenderedRows,newData:t.newData,newPage:!1,keepUndoRedoStack:t.keepUndoRedoStack};this.eventService.dispatchEvent(i)}isEmpty(){const e=g._.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length;return g._.missing(this.rootNode)||e||!this.columnModel.isReady()}isRowsToRender(){return g._.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0}getNodesInRangeForSelection(e,t){let n=!t,a=!1;const i=[],r=this.gos.get("groupSelectsChildren");return this.forEachNodeAfterFilterAndSort((o=>{if(a)return;if(n&&(o===t||o===e)&&(a=!0,o.group&&r))return void i.push(...o.allLeafChildren);if(!n){if(o!==t&&o!==e)return;n=!0}(!o.group||!r)&&i.push(o)})),i}setDatasource(e){console.error("AG Grid: should never call setDatasource on clientSideRowController")}getTopLevelNodes(){return this.rootNode?this.rootNode.childrenAfterGroup:null}getRootNode(){return this.rootNode}getRow(e){return this.rowsToDisplay[e]}isRowPresent(e){return this.rowsToDisplay.indexOf(e)>=0}getRowIndexAtPixel(e){if(this.isEmpty()||0===this.rowsToDisplay.length)return-1;let t=0,n=this.rowsToDisplay.length-1;if(e<=0)return 0;if(g._.last(this.rowsToDisplay).rowTop<=e)return this.rowsToDisplay.length-1;let a=-1,i=-1;for(;;){const r=Math.floor((t+n)/2),o=this.rowsToDisplay[r];if(this.isRowInPixel(o,e))return r;o.rowTope&&(n=r-1);if(a===t&&i===n)return r;a=t,i=n}}isRowInPixel(e,t){const n=e.rowTop,a=e.rowTop+e.rowHeight;return n<=t&&a>t}forEachLeafNode(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach(((t,n)=>e(t,n)))}forEachNode(e,t=!1){this.recursivelyWalkNodesAndCallback({nodes:[...this.rootNode.childrenAfterGroup||[]],callback:e,recursionType:0,index:0,includeFooterNodes:t})}forEachNodeAfterFilter(e,t=!1){this.recursivelyWalkNodesAndCallback({nodes:[...this.rootNode.childrenAfterAggFilter||[]],callback:e,recursionType:1,index:0,includeFooterNodes:t})}forEachNodeAfterFilterAndSort(e,t=!1){this.recursivelyWalkNodesAndCallback({nodes:[...this.rootNode.childrenAfterSort||[]],callback:e,recursionType:2,index:0,includeFooterNodes:t})}forEachPivotNode(e,t=!1){this.recursivelyWalkNodesAndCallback({nodes:[this.rootNode],callback:e,recursionType:3,index:0,includeFooterNodes:t})}recursivelyWalkNodesAndCallback(e){const{nodes:t,callback:n,recursionType:a,includeFooterNodes:i}=e;let{index:r}=e;const o=e=>{var a;const o=null==(a=t[0])?void 0:a.parent;if(!o)return;const s=i&&this.gos.getGrandTotalRow(),l=this.gos.getGroupTotalRowCallback(),d=i&&l({node:o});o===this.rootNode?s===e&&(o.createFooter(),n(o.sibling,r++)):d===e&&(o.createFooter(),n(o.sibling,r++))};o("top");for(let e=0;e{i&&i.forEach((i=>{const r=()=>{i.expanded=e,a(i.childrenAfterGroup)};if(t){return void(g._.exists(i.childrenAfterGroup)&&r())}if(n){return void(!i.leafGroup&&r())}i.group&&r()}))};this.rootNode&&a(this.rootNode.childrenAfterGroup),this.refreshModel({step:g.ClientSideRowModelSteps.MAP});const i=e?"expandAll":"collapseAll",r={type:g.Events.EVENT_EXPAND_COLLAPSE_ALL,source:i};this.eventService.dispatchEvent(r)}doSort(e,t){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:t})}doRowGrouping(e,t,n,a){if(this.groupStage){if(e?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,rowNodeOrder:t,changedPath:n}):this.groupStage.execute({rowNode:this.rootNode,changedPath:n,afterColumnsChanged:a}),this.gos.get("groupSelectsChildren")){if(this.selectionService.updateGroupsFromChildrenSelections("rowGroupChanged",n)){const e={type:g.Events.EVENT_SELECTION_CHANGED,source:"rowGroupChanged"};this.eventService.dispatchEvent(e)}}}else this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren,this.rootNode.sibling&&(this.rootNode.sibling.childrenAfterGroup=this.rootNode.childrenAfterGroup),this.rootNode.updateHasChildren();this.nodeManager.isRowCountReady()&&(this.rowCountReady=!0,this.eventService.dispatchEventOnce({type:g.Events.EVENT_ROW_COUNT_READY}))}doFilter(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})}doPivot(e){var t;null==(t=this.pivotStage)||t.execute({rowNode:this.rootNode,changedPath:e})}getCopyOfNodesMap(){return this.nodeManager.getCopyOfNodesMap()}getRowNode(e){if("string"==typeof e&&0==e.indexOf(g.RowNode.ID_PREFIX_ROW_GROUP)){let t;return this.forEachNode((n=>{n.id===e&&(t=n)})),t}return this.nodeManager.getRowNode(e)}setRowData(e){this.selectionService.reset("rowDataChanged"),this.nodeManager.setRowData(e),this.hasStarted&&this.dispatchUpdateEventsAndRefresh()}dispatchUpdateEventsAndRefresh(){const e={type:g.Events.EVENT_ROW_DATA_UPDATED};this.eventService.dispatchEvent(e),this.refreshModel({step:g.ClientSideRowModelSteps.EVERYTHING,newData:!0})}batchUpdateRowData(e,t){if(null==this.applyAsyncTransactionsTimeout){this.rowDataTransactionBatch=[];const e=this.gos.getAsyncTransactionWaitMillis();this.applyAsyncTransactionsTimeout=window.setTimeout((()=>{this.executeBatchUpdateRowData()}),e)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:t})}flushAsyncTransactions(){null!=this.applyAsyncTransactionsTimeout&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())}executeBatchUpdateRowData(){this.valueCache.onDataChanged();const e=[],t=[];let n=!1;if(this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach((a=>{const i=this.nodeManager.updateRowData(a.rowDataTransaction,void 0);t.push(i),a.callback&&e.push(a.callback.bind(null,i)),"number"==typeof a.rowDataTransaction.addIndex&&(n=!0)})),this.commonUpdateRowData(t,void 0,n),e.length>0&&window.setTimeout((()=>{e.forEach((e=>e()))}),0),t.length>0){const e={type:g.Events.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:t};this.eventService.dispatchEvent(e)}this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0}updateRowData(e,t){this.valueCache.onDataChanged();const n=this.nodeManager.updateRowData(e,t),a="number"==typeof e.addIndex;return this.commonUpdateRowData([n],t,a),n}createRowNodeOrder(){if(this.gos.get("suppressMaintainUnsortedOrder"))return;const e={};if(this.rootNode&&this.rootNode.allLeafChildren)for(let t=0;t{t.setRowHeight(t.rowHeight,!0);const n=t.detailNode;n&&n.setRowHeight(n.rowHeight,!0),t.sibling&&t.sibling.setRowHeight(t.sibling.rowHeight,!0),e=!0})),e}onGridStylesChanges(){this.columnModel.isAutoRowHeightActive()||this.resetRowHeights()}onGridReady(){this.hasStarted||this.setInitialData()}isRowDataLoaded(){return this.rowCountReady}};l([(0,g.Autowired)("columnModel")],m.prototype,"columnModel",2),l([(0,g.Autowired)("selectionService")],m.prototype,"selectionService",2),l([(0,g.Autowired)("valueCache")],m.prototype,"valueCache",2),l([(0,g.Autowired)("beans")],m.prototype,"beans",2),l([(0,g.Autowired)("filterStage")],m.prototype,"filterStage",2),l([(0,g.Autowired)("sortStage")],m.prototype,"sortStage",2),l([(0,g.Autowired)("flattenStage")],m.prototype,"flattenStage",2),l([(0,g.Optional)("groupStage")],m.prototype,"groupStage",2),l([(0,g.Optional)("aggregationStage")],m.prototype,"aggregationStage",2),l([(0,g.Optional)("pivotStage")],m.prototype,"pivotStage",2),l([(0,g.Optional)("filterAggregatesStage")],m.prototype,"filterAggregatesStage",2),l([g.PostConstruct],m.prototype,"init",1),m=l([(0,g.Bean)("rowModel")],m);var v=n(3423),f=class extends v.BeanStub{execute(e){const{changedPath:t}=e;this.filterService.filter(t)}};l([(0,v.Autowired)("filterService")],f.prototype,"filterService",2),f=l([(0,v.Bean)("filterStage")],f);var y=n(3423),b=class extends y.BeanStub{execute(e){const t=this.sortController.getSortOptions(),n=y._.exists(t)&&t.length>0,a=n&&y._.exists(e.rowNodeTransactions)&&this.gos.get("deltaSort"),i=t.some((e=>this.gos.isColumnsSortingCoupledToGroup()?e.column.isPrimary()&&e.column.isRowGroupActive():!!e.column.getColDef().showRowGroup));this.sortService.sort(t,n,a,e.rowNodeTransactions,e.changedPath,i)}};l([(0,y.Autowired)("sortService")],b.prototype,"sortService",2),l([(0,y.Autowired)("sortController")],b.prototype,"sortController",2),b=l([(0,y.Bean)("sortStage")],b);var w=n(3423),C=class extends w.BeanStub{execute(e){const t=e.rowNode,n=[],a=this.beans.columnModel.isPivotMode(),i=a&&t.leafGroup,r=i?[t]:t.childrenAfterSort,o=this.getFlattenDetails();this.recursivelyAddToRowsToDisplay(o,r,n,a,0);if(!i&&n.length>0&&o.grandTotalRow){t.createFooter();const e="top"===o.grandTotalRow;this.addRowNodeToRowsToDisplay(o,t.sibling,n,0,e)}return n}getFlattenDetails(){const e=this.gos.get("groupRemoveSingleChildren");return{groupRemoveLowestSingleChildren:!e&&this.gos.get("groupRemoveLowestSingleChildren"),groupRemoveSingleChildren:e,isGroupMultiAutoColumn:this.gos.isGroupMultiAutoColumn(),hideOpenParents:this.gos.get("groupHideOpenParents"),grandTotalRow:this.gos.getGrandTotalRow(),groupTotalRow:this.gos.getGroupTotalRowCallback()}}recursivelyAddToRowsToDisplay(e,t,n,a,i){if(!w._.missingOrEmpty(t))for(let r=0;re.isRowGroupActive()));let l={};n&&a&&(l=this.calculateDirtyNodes(a));const d=this.columnModel.isPivotMode(),c=this.gos.getCallback("postSortRows"),g=a=>{var g;this.pullDownGroupDataForHideOpenParents(a.childrenAfterAggFilter,!0);const h=d&&a.leafGroup;if(o&&s&&!a.leafGroup&&!r){const e=null==(g=this.columnModel.getRowGroupColumns())?void 0:g[a.level+1],t=null===(null==e?void 0:e.getSort()),n=a.childrenAfterAggFilter.slice(0);if(a.childrenAfterSort&&!t){const e={};a.childrenAfterSort.forEach(((t,n)=>{e[t.id]=n})),n.sort(((t,n)=>{var a,i;return(null!=(a=e[t.id])?a:0)-(null!=(i=e[n.id])?i:0)}))}a.childrenAfterSort=n}else a.childrenAfterSort=!t||h?a.childrenAfterAggFilter.slice(0):n?this.doDeltaSort(a,l,i,e):this.rowNodeSorter.doFullSort(a.childrenAfterAggFilter,e);if(a.sibling&&(a.sibling.childrenAfterSort=a.childrenAfterSort),this.updateChildIndexes(a),c){const e={nodes:a.childrenAfterSort};c(e)}};i&&i.forEachChangedNodeDepthFirst(g),this.updateGroupDataForHideOpenParents(i)}calculateDirtyNodes(e){const t={},n=e=>{e&&e.forEach((e=>t[e.id]=!0))};return e&&e.forEach((e=>{n(e.add),n(e.update),n(e.remove)})),t}doDeltaSort(e,t,n,a){const i=e.childrenAfterAggFilter,r=e.childrenAfterSort;if(!r)return this.rowNodeSorter.doFullSort(i,a);const o={},s=[];i.forEach((e=>{t[e.id]||!n.canSkip(e)?s.push(e):o[e.id]=!0}));const l=r.filter((e=>o[e.id])),d=(e,t)=>({currentPos:t,rowNode:e}),c=s.map(d).sort(((e,t)=>this.rowNodeSorter.compareRowNodes(a,e,t)));return this.mergeSortedArrays(a,c,l.map(d)).map((({rowNode:e})=>e))}mergeSortedArrays(e,t,n){const a=[];let i=0,r=0;for(;i{this.pullDownGroupDataForHideOpenParents(e.childrenAfterSort,!1),e.childrenAfterSort.forEach((e=>{e.hasChildren()&&t(e)}))};e&&e.executeFromRootNode((e=>t(e)))}pullDownGroupDataForHideOpenParents(e,t){this.gos.get("groupHideOpenParents")&&!S._.missing(e)&&e.forEach((e=>{this.columnModel.getGroupDisplayColumns().forEach((n=>{const a=n.getColDef().showRowGroup;if("string"!=typeof a)return void console.error("AG Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup");const i=a,r=this.columnModel.getPrimaryColumn(i);if(!(r===e.rowGroupColumn))if(t)e.setGroupValue(n.getId(),void 0);else{const t=e.getFirstChildOfFirstChild(r);t&&e.setGroupValue(n.getId(),t.key)}}))}))}};l([(0,S.Autowired)("columnModel")],x.prototype,"columnModel",2),l([(0,S.Autowired)("rowNodeSorter")],x.prototype,"rowNodeSorter",2),x=l([(0,S.Bean)("sortService")],x);var E=n(3423),k=class extends E.BeanStub{filter(e){const t=this.filterManager.isChildFilterPresent();this.filterNodes(t,e)}filterNodes(e,t){const n=(t,n)=>{t.hasChildren()?t.childrenAfterFilter=e&&!n?t.childrenAfterGroup.filter((e=>{const t=e.childrenAfterFilter&&e.childrenAfterFilter.length>0,n=e.data&&this.filterManager.doesRowPassFilter({rowNode:e});return t||n})):t.childrenAfterGroup:t.childrenAfterFilter=t.childrenAfterGroup,t.sibling&&(t.sibling.childrenAfterFilter=t.childrenAfterFilter)};if(this.doingTreeDataFiltering()){const e=(t,a)=>{if(t.childrenAfterGroup)for(let i=0;ie(t,!1);t.executeFromRootNode(a)}else{const e=e=>n(e,!1);t.forEachChangedNodeDepthFirst(e,!0)}}doingTreeDataFiltering(){return this.gos.get("treeData")&&!this.gos.get("excludeChildrenWhenTreeDataFiltering")}};l([(0,E.Autowired)("filterManager")],k.prototype,"filterManager",2),k=l([(0,E.Bean)("filterService")],k);var T=n(3423),A=class extends T.BeanStub{postConstruct(){"clientSide"===this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel,this.addManagedPropertyListener("rowData",(()=>this.onRowDataUpdated())))}isActive(){const e=this.gos.exists("getRowId");return!this.gos.get("resetRowDataOnUpdate")&&e}setRowData(e){const t=this.createTransactionForRowData(e);if(!t)return;const[n,a]=t;this.clientSideRowModel.updateRowData(n,a)}createTransactionForRowData(e){if(T._.missing(this.clientSideRowModel))return void console.error("AG Grid: ImmutableService only works with ClientSideRowModel");const t=this.gos.getCallback("getRowId");if(null==t)return void console.error("AG Grid: ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!");const n={remove:[],update:[],add:[]},a=this.clientSideRowModel.getCopyOfNodesMap(),i=this.gos.get("suppressMaintainUnsortedOrder")?void 0:{};return T._.exists(e)&&e.forEach(((e,r)=>{const o=t({data:e,level:0}),s=a[o];if(i&&(i[o]=r),s){s.data!==e&&n.update.push(e),a[o]=void 0}else n.add.push(e)})),T._.iterateObject(a,((e,t)=>{t&&n.remove.push(t.data)})),[n,i]}onRowDataUpdated(){const e=this.gos.get("rowData");e&&(this.isActive()?this.setRowData(e):(this.selectionService.reset("rowDataChanged"),this.clientSideRowModel.setRowData(e)))}};l([(0,T.Autowired)("rowModel")],A.prototype,"rowModel",2),l([(0,T.Autowired)("rowRenderer")],A.prototype,"rowRenderer",2),l([(0,T.Autowired)("selectionService")],A.prototype,"selectionService",2),l([T.PostConstruct],A.prototype,"postConstruct",1),A=l([(0,T.Bean)("immutableService")],A);var D={version:"31.3.1",moduleName:c.ModuleNames.ClientSideRowModelModule,rowModel:"clientSide",beans:[m,f,b,C,x,k,A]}},3423:function(e,t,n){var a,i=Object.defineProperty,r=Object.defineProperties,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,h=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u=(e,t)=>{for(var n in t||(t={}))c.call(t,n)&&h(e,n,t[n]);if(d)for(var n of d(t))g.call(t,n)&&h(e,n,t[n]);return e},p=(e,t)=>r(e,s(t)),m=(e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})},v=(e,t,n,a)=>{for(var r,s=a>1?void 0:a?o(t,n):t,l=e.length-1;l>=0;l--)(r=e[l])&&(s=(a?r(t,n,s):r(s))||s);return a&&s&&i(t,n,s),s},f=(e,t)=>(n,a)=>t(n,a,e),y={};m(y,{ALWAYS_SYNC_GLOBAL_EVENTS:()=>gt,AbstractHeaderCellCtrl:()=>sl,AgAbstractField:()=>Ui,AgAbstractLabel:()=>Hi,AgAutocomplete:()=>kd,AgCheckbox:()=>Xi,AgDialog:()=>yd,AgGroupComponent:()=>ld,AgInputDateField:()=>Jl,AgInputNumberField:()=>cr,AgInputRange:()=>ed,AgInputTextArea:()=>Ql,AgInputTextField:()=>dr,AgMenuItemComponent:()=>md,AgMenuItemRenderer:()=>bo,AgMenuList:()=>hd,AgMenuPanel:()=>ud,AgPanel:()=>fd,AgPickerField:()=>Wi,AgPromise:()=>bi,AgPromiseStatus:()=>yi,AgRadioButton:()=>Zi,AgRichSelect:()=>id,AgSelect:()=>Yi,AgSlider:()=>od,AgStackComponentsRegistry:()=>Ot,AgToggleButton:()=>Zl,AlignedGridsService:()=>Id,AnimateShowChangeCellRenderer:()=>Gr,AnimateSlideCellRenderer:()=>_r,AnimationFrameService:()=>Nl,AutoScrollService:()=>Wo,AutoWidthCalculator:()=>_l,Autowired:()=>he,BarColumnLabelPlacement:()=>Qc,BaseComponentWrapper:()=>$c,Bean:()=>ge,BeanStub:()=>rt,Beans:()=>ms,BodyDropPivotTarget:()=>$s,BodyDropTarget:()=>Qs,CellComp:()=>Ks,CellCtrl:()=>Ss,CellNavigationService:()=>Ld,CellPositionUtils:()=>oc,CellRangeType:()=>cs,ChangedPath:()=>ql,ChartMappings:()=>Xc,CheckboxCellEditor:()=>yo,CheckboxCellRenderer:()=>fo,CheckboxSelectionComponent:()=>Hr,ClientSideRowModelSteps:()=>Ol,Column:()=>xe,ColumnApi:()=>Nd,ColumnFactory:()=>ot,ColumnGroup:()=>dt,ColumnKeyCreator:()=>P,ColumnModel:()=>At,Component:()=>Ai,ComponentUtil:()=>Nt,Context:()=>se,CssClassApplier:()=>bs,CssClassManager:()=>Ci,CtrlsService:()=>vc,DataTypeService:()=>Nc,DateCellEditor:()=>uo,DateFilter:()=>rr,DateStringCellEditor:()=>mo,DisplayedGroupCreator:()=>Rt,DragAndDropService:()=>Kr,DragService:()=>Ko,DragSourceType:()=>qr,Environment:()=>Jd,EventService:()=>fe,Events:()=>ct,ExcelFactoryMode:()=>Ho,ExpansionService:()=>zl,ExpressionService:()=>zd,FilterManager:()=>Qo,FilterWrapperComp:()=>Jo,FloatingFilterMapper:()=>Vo,FocusService:()=>Ud,GROUP_AUTO_COLUMN_ID:()=>ut,Grid:()=>Kc,GridApi:()=>Xo,GridBodyComp:()=>Vs,GridBodyCtrl:()=>ls,GridComp:()=>Bd,GridCoreCreator:()=>Yc,GridCtrl:()=>Vd,GridHeaderComp:()=>Tl,GridHeaderCtrl:()=>El,GridOptionsService:()=>Mc,GroupCellRenderer:()=>Jr,GroupCellRendererCtrl:()=>Zr,GroupInstanceIdCreator:()=>ht,HeaderCellCtrl:()=>ul,HeaderFilterCellComp:()=>ns,HeaderFilterCellCtrl:()=>cl,HeaderGroupCellCtrl:()=>vl,HeaderNavigationDirection:()=>Sl,HeaderNavigationService:()=>xl,HeaderPositionUtils:()=>hc,HeaderRowComp:()=>il,HeaderRowContainerComp:()=>Cl,HeaderRowContainerCtrl:()=>bl,HeaderRowCtrl:()=>yl,HeaderRowType:()=>al,HorizontalDirection:()=>Wr,HorizontalResizeService:()=>Al,KeyCode:()=>Qa,LargeTextCellEditor:()=>Ir,LayoutCssClasses:()=>as,LocaleService:()=>Rc,Logger:()=>_d,LoggerFactory:()=>Gd,ManagedFocusFeature:()=>Oi,MenuService:()=>Gl,ModuleNames:()=>ie,ModuleRegistry:()=>oe,MouseEventService:()=>Hs,MoveColumnFeature:()=>Zs,NavigationService:()=>Us,NumberCellEditor:()=>go,NumberFilter:()=>pr,NumberSequence:()=>fi,Optional:()=>ue,PaginationProxy:()=>$l,PillDragComp:()=>Ad,PillDropZonePanel:()=>Md,PinnedRowModel:()=>Ul,PopupComponent:()=>Pr,PopupEditorWrapper:()=>qs,PopupService:()=>wd,PositionableFeature:()=>_i,PostConstruct:()=>de,PreConstruct:()=>le,PreDestroy:()=>ce,PropertyKeys:()=>It,ProvidedColumnGroup:()=>ke,ProvidedFilter:()=>Bi,Qualifier:()=>me,QuerySelector:()=>Di,RefSelector:()=>Mi,ResizeObserverService:()=>Fl,RowAnimationCssClasses:()=>os,RowContainerComp:()=>Ys,RowContainerCtrl:()=>_s,RowContainerName:()=>Is,RowContainerType:()=>Fs,RowCtrl:()=>ks,RowHighlightPosition:()=>Uo,RowNode:()=>Br,RowNodeBlock:()=>jl,RowNodeBlockLoader:()=>Yl,RowNodeSorter:()=>mc,RowPositionUtils:()=>rc,RowRenderer:()=>Bl,ScalarFilter:()=>tr,ScrollVisibleService:()=>Bs,SelectCellEditor:()=>Fr,SelectableService:()=>tc,SelectionHandleType:()=>ds,ServerSideTransactionResultStatus:()=>Wl,SetLeftFeature:()=>ll,SimpleFilter:()=>er,SortController:()=>Hd,SortIndicatorComp:()=>Tr,StandardMenuFactory:()=>Dl,StylingService:()=>Xl,TabGuardClassNames:()=>Ml,TabGuardComp:()=>Pl,TabGuardCtrl:()=>Rl,TabbedLayout:()=>Il,TextCellEditor:()=>zr,TextFilter:()=>fr,TextFloatingFilter:()=>Sr,Timer:()=>wi,TooltipFeature:()=>Ei,TooltipStateManager:()=>xi,TouchListener:()=>Er,UserComponentFactory:()=>Bo,UserComponentRegistry:()=>wo,ValueCache:()=>jd,ValueService:()=>Od,VanillaFrameworkOverrides:()=>Pd,VerticalDirection:()=>Ur,VirtualList:()=>ad,VirtualListDragFeature:()=>Yo,_:()=>vi,__FORCE_MODULE_DETECTION:()=>Zc,createGrid:()=>qc,getRowContainerTypeForName:()=>Ns,provideGlobalGridOptions:()=>Wc}),e.exports=(a=y,((e,t,n,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of l(t))c.call(e,r)||r===n||i(e,r,{get:()=>t[r],enumerable:!(a=o(t,r))||a.enumerable});return e})(i({},"__esModule",{value:!0}),a));var b={};function w(e){return null==e||""===e?null:e}function C(e,t=!1){return null!=e&&(""!==e||t)}function S(e){return!C(e)}function x(e){return null==e||0===e.length}function E(e){return null!=e&&"function"==typeof e.toString?e.toString():null}function k(e){if(void 0===e)return;if(null===e||""===e)return null;if("number"==typeof e)return isNaN(e)?void 0:e;const t=parseInt(e,10);return isNaN(t)?void 0:t}function T(e){if(void 0!==e)return null!==e&&""!==e&&("boolean"==typeof e?e:/true/i.test(e))}function A(e){if(null!=e&&""!==e)return e}function D(e,t){return(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null)}function M(e,t,n=!1){const a=null==e,i=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),a&&i)return 0;if(a)return-1;if(i)return 1;function r(e,t){return e>t?1:et.push(e))),t}return Object.values(e)}m(b,{attrToBoolean:()=>T,attrToNumber:()=>k,attrToString:()=>A,defaultComparator:()=>M,exists:()=>C,jsonEquals:()=>D,makeNull:()=>w,missing:()=>S,missingOrEmpty:()=>x,toStringOrNull:()=>E,values:()=>R});var P=class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;t{if(t&&t.indexOf(e)>=0)return;const i=n[e],r=V(i)&&i.constructor===Object;a[e]=r?N(i):i})),a}function O(e){if(!e)return[];const t=Object;if("function"==typeof t.values)return t.values(e);const n=[];for(const t in e)e.hasOwnProperty(t)&&e.propertyIsEnumerable(t)&&n.push(e[t]);return n}function z(e,t,n=!0,a=!1){C(t)&&I(t,((t,i)=>{let r=e[t];if(r!==i){if(a){if(null==r&&null!=i){"object"==typeof i&&i.constructor===Object&&(r={},e[t]=r)}}V(i)&&V(r)&&!Array.isArray(r)?z(r,i,n,a):(n||void 0!==i)&&(e[t]=i)}}))}function G(e,t,n){if(!t||!e)return;if(!n)return e[t];const a=t.split(".");let i=e;for(let e=0;e{"object"!=typeof e[n]||t.includes(n)||(e[n]=void 0)}));const a=Object.getPrototypeOf(e),i={};Object.getOwnPropertyNames(a).forEach((e=>{if("function"==typeof a[e]&&!t.includes(e)){const t=()=>{console.warn((e=>`AG Grid: Grid API function ${e}() cannot be called as the grid has been destroyed.\n It is recommended to remove local references to the grid api. Alternatively, check gridApi.isDestroyed() to avoid calling methods against a destroyed grid.\n To run logic when the grid is about to be destroyed use the gridPreDestroy event. See: ${n}`)(e))};i[e]={value:t,writable:!0}}})),Object.defineProperties(e,i)}function V(e){return"object"==typeof e&&null!==e}m(L,{cloneObject:()=>F,deepCloneDefinition:()=>N,getAllValuesInObject:()=>O,getValueUsingField:()=>G,isNonNullObject:()=>V,iterateObject:()=>I,mergeDeep:()=>z,removeAllReferences:()=>_});var B={};m(B,{compose:()=>ne,debounce:()=>J,doOnce:()=>U,errorOnce:()=>q,executeAfter:()=>Q,executeInAWhile:()=>Y,executeNextVMTurn:()=>Z,getFunctionName:()=>K,isFunction:()=>j,noop:()=>ae,throttle:()=>ee,waitUntil:()=>te,warnOnce:()=>W});var H={};function U(e,t){H[t]||(e(),H[t]=!0)}function W(e){U((()=>console.warn("AG Grid: "+e)),e)}function q(e){U((()=>console.error("AG Grid: "+e)),e)}function K(e){if(e.name)return e.name;const t=/function\s+([^\(]+)/.exec(e.toString());return t&&2===t.length?t[1].trim():null}function j(e){return!!(e&&e.constructor&&e.call&&e.apply)}function Y(e){Q(e,400)}var $=[],X=!1;function Z(e){$.push(e),X||(X=!0,window.setTimeout((()=>{const e=$.slice();$.length=0,X=!1,e.forEach((e=>e()))}),0))}function Q(e,t=0){e.length>0&&window.setTimeout((()=>e.forEach((e=>e()))),t)}function J(e,t){let n;return function(...a){const i=this;window.clearTimeout(n),n=window.setTimeout((function(){e.apply(i,a)}),t)}}function ee(e,t){let n=0;return function(...a){const i=(new Date).getTime();i-n{const s=(new Date).getTime()-i>n;(e()||s)&&(t(),o=!0,null!=r&&(window.clearInterval(r),r=null),s&&a&&console.warn(a))};s(),o||(r=window.setInterval(s,10))}function ne(...e){return t=>e.reduce(((e,t)=>t(e)),t)}var ae=()=>{},ie=(e=>(e.CommunityCoreModule="@ag-grid-community/core",e.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",e.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",e.CsvExportModule="@ag-grid-community/csv-export",e.EnterpriseCoreModule="@ag-grid-enterprise/core",e.RowGroupingModule="@ag-grid-enterprise/row-grouping",e.ColumnsToolPanelModule="@ag-grid-enterprise/column-tool-panel",e.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",e.MenuModule="@ag-grid-enterprise/menu",e.SetFilterModule="@ag-grid-enterprise/set-filter",e.MultiFilterModule="@ag-grid-enterprise/multi-filter",e.StatusBarModule="@ag-grid-enterprise/status-bar",e.SideBarModule="@ag-grid-enterprise/side-bar",e.RangeSelectionModule="@ag-grid-enterprise/range-selection",e.MasterDetailModule="@ag-grid-enterprise/master-detail",e.RichSelectModule="@ag-grid-enterprise/rich-select",e.GridChartsModule="@ag-grid-enterprise/charts",e.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",e.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",e.ExcelExportModule="@ag-grid-enterprise/excel-export",e.ClipboardModule="@ag-grid-enterprise/clipboard",e.SparklinesModule="@ag-grid-enterprise/sparklines",e.AdvancedFilterModule="@ag-grid-enterprise/advanced-filter",e.AngularModule="@ag-grid-community/angular",e.ReactModule="@ag-grid-community/react",e.VueModule="@ag-grid-community/vue",e))(ie||{}),re=class e{static register(t){e.__register(t,!0,void 0)}static registerModules(t){e.__registerModules(t,!0,void 0)}static __register(t,n,a){e.runVersionChecks(t),void 0!==a?(e.areGridScopedModules=!0,void 0===e.gridModulesMap[a]&&(e.gridModulesMap[a]={}),e.gridModulesMap[a][t.moduleName]=t):e.globalModulesMap[t.moduleName]=t,e.setModuleBased(n)}static __unRegisterGridModules(t){delete e.gridModulesMap[t]}static __registerModules(t,n,a){e.setModuleBased(n),t&&t.forEach((t=>e.__register(t,n,a)))}static isValidModuleVersion(t){const[n,a]=t.version.split(".")||[],[i,r]=e.currentModuleVersion.split(".")||[];return n===i&&a===r}static runVersionChecks(t){if(e.currentModuleVersion||(e.currentModuleVersion=t.version),t.version?e.isValidModuleVersion(t)||console.error(`AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '${t.moduleName}' is version ${t.version} but the other modules are version ${this.currentModuleVersion}. Please update all modules to the same version.`):console.error(`AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '${t.moduleName}' is incompatible. Please update all modules to the same version.`),t.validate){const e=t.validate();if(!e.isValid){const t=e;console.error(`AG Grid: ${t.message}`)}}}static setModuleBased(t){void 0===e.moduleBased?e.moduleBased=t:e.moduleBased!==t&&U((()=>{console.warn("AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms."),console.warn("Please see https://www.ag-grid.com/javascript-grid/modules/ for more information.")}),"ModulePackageCheck")}static __setIsBundled(){e.isBundled=!0}static __assertRegistered(t,n,a){var i;if(this.__isRegistered(t,a))return!0;const r=n+t;let o;if(e.isBundled)o=`AG Grid: unable to use ${n} as 'ag-grid-enterprise' has not been loaded. Check you are using the Enterprise bundle:\n \n