!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,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,s=(e,t,n,a)=>{for(var o,l=a>1?void 0:a?i(t,n):t,s=e.length-1;s>=0;s--)(o=e[s])&&(l=(a?o(t,n,l):o(l))||l);return a&&l&&r(t,n,l),l},g={};((e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})})(g,{ClientSideRowModelModule:()=>D}),e.exports=(a=g,((e,t,n,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of o(t))l.call(e,s)||s===n||r(e,s,{get:()=>t[s],enumerable:!(a=i(t,s))||a.enumerable});return e})(r({},"__esModule",{value:!0}),a));var d=n(3423),c=n(3423),u=n(3423),p=class e{constructor(t,n,a,r,i,o){this.nextId=0,this.rowCountReady=!1,this.allNodesMap={},this.rootNode=t,this.gridOptionsService=n,this.eventService=a,this.columnModel=r,this.beans=o,this.selectionService=i,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 u._.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, however you passed in a string. If you are loading JSON, make sure you convert the JSON string to JavaScript objects first");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&&u._.sortRowNodesByOrder(this.rootNode.allLeafChildren,t),n}isRowCountReady(){return this.rowCountReady}dispatchRowDataUpdateStartedEvent(e){const t={type:u.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:u.Events.EVENT_SELECTION_CHANGED,source:t};this.eventService.dispatchEvent(e)}}executeAdd(t,n){var a;const{add:r,addIndex:i}=t;if(u._.missingOrEmpty(r))return;const o=r.map((t=>this.createNode(t,this.rootNode,e.TOP_LEVEL)));if("number"==typeof i&&i>=0){const{allLeafChildren:e}=this.rootNode,t=e.length;let n=i;if(this.gridOptionsService.get("treeData")&&i>0&&t>0)for(let r=0;r{const a=this.lookupRowNode(e);a&&(a.isSelected()&&n.push(a),a.clearRowTopAndRowIndex(),r[a.id]=!0,delete this.allNodesMap[a.id],t.remove.push(a))})),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter((e=>!r[e.id])),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren)}executeUpdate(t,n,a){const{update:r}=t;u._.missingOrEmpty(r)||r.forEach((t=>{const r=this.lookupRowNode(t);r&&(r.updateData(t),!r.selectable&&r.isSelected()&&a.push(r),this.setMasterForRow(r,t,e.TOP_LEVEL,!1),n.update.push(r))}))}lookupRowNode(e){const t=this.gridOptionsService.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 u.RowNode(this.beans);a.group=!1,this.setMasterForRow(a,e,n,!0);const r=this.gridOptionsService.get("suppressParentsInRowNodes");return t&&!r&&(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.gridOptionsService.get("treeData"))e.setMaster(!1),a&&(e.expanded=!1);else{if(this.gridOptionsService.get("masterDetail")){const n=this.gridOptionsService.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.gridOptionsService.get("groupDefaultExpanded");return-1===t||ethis.onGridReady())),this.addPropertyListeners(),this.rootNode=new c.RowNode(this.beans),this.nodeManager=new h(this.rootNode,this.gridOptionsService,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"]),r=new Set(["getGroupRowAgg","alwaysAggregateAtRootLevel","groupIncludeTotalFooter","suppressAggFilteredOnly"]),i=new Set(["postSortRows","groupDisplayType","accentedSort"]),o=new Set([]),l=new Set(["groupRemoveSingleChildren","groupRemoveLowestSingleChildren","groupIncludeFooter"]),s=[...e,...t,...n,...a,...a,...r,...i,...o,...l];this.addManagedPropertyListeners(s,(s=>{var g;const d=null==(g=s.changeSet)?void 0:g.properties;if(!d)return;const u=e=>d.some((t=>e.has(t)));u(e)?this.setRowData(this.rootNode.allLeafChildren.map((e=>e.data))):u(t)?this.refreshModel({step:c.ClientSideRowModelSteps.EVERYTHING}):u(n)?this.refreshModel({step:c.ClientSideRowModelSteps.FILTER}):u(a)?this.refreshModel({step:c.ClientSideRowModelSteps.PIVOT}):u(r)?this.refreshModel({step:c.ClientSideRowModelSteps.AGGREGATE}):u(i)?this.refreshModel({step:c.ClientSideRowModelSteps.SORT}):u(o)?this.refreshModel({step:c.ClientSideRowModelSteps.FILTER_AGGREGATES}):u(l)&&this.refreshModel({step:c.ClientSideRowModelSteps.MAP})})),this.addManagedPropertyListener("rowHeight",(()=>this.resetRowHeights()))}start(){this.hasStarted=!0,this.shouldSkipSettingDataOnStart?this.dispatchUpdateEventsAndRefresh():this.setInitialData()}setInitialData(){const e=this.gridOptionsService.get("rowData");e&&(this.shouldSkipSettingDataOnStart=!0,this.setRowData(e))}ensureRowHeightsValid(e,t,n,a){let r,i=!1;do{r=!1;const o=this.getRowIndexAtPixel(e),l=this.getRowIndexAtPixel(t),s=Math.max(o,n),g=Math.min(l,a);for(let e=s;e<=g;e++){const t=this.getRow(e);if(t.rowHeightEstimated){const e=this.gridOptionsService.getRowHeightForNode(t);t.setRowHeight(e.height),r=!0,i=!0}}r&&this.setRowTopAndRowIndex()}while(r);return i}setRowTopAndRowIndex(){const e=this.environment.getDefaultRowHeight();let t=0;const n=new Set,a=this.gridOptionsService.isDomLayout("normal");for(let r=0;r{e&&null!=e.id&&!t.has(e.id)&&e.clearRowTopAndRowIndex()},r=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(r)}};r(this.rootNode)}ensureRowsAtPixel(e,t,n=0){const a=this.getRowIndexAtPixel(t),r=this.getRow(a),i=!this.gridOptionsService.get("suppressAnimationFrame");return r!==e[0]&&(e.forEach((e=>{c._.removeFromArray(this.rootNode.allLeafChildren,e)})),e.forEach(((e,t)=>{c._.insertIntoArray(this.rootNode.allLeafChildren,e,Math.max(a+n,0)+t)})),this.refreshModel({step:c.ClientSideRowModelSteps.EVERYTHING,keepRenderedRows:!0,keepEditingRows:!0,animate:i}),!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 r=this.getHighlightPosition(t,a);this.lastHighlightedRow&&this.lastHighlightedRow!==a&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null),a.setHighlighted(r),this.lastHighlightedRow=a}getHighlightPosition(e,t){if(!t){const n=this.getRowIndexAtPixel(e);if(!(t=this.getRow(n||0)))return c.RowHighlightPosition.Below}const{rowTop:n,rowHeight:a}=t;return e-n0;)t=t.childrenAfterSort[0];return t.rowIndex}getRowBounds(e){if(c._.missing(this.rowsToDisplay))return null;const t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null}onRowGroupOpened(){const e=this.gridOptionsService.isAnimateRows();this.refreshModel({step:c.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,animate:e})}onFilterChanged(e){if(e.afterDataChange)return;const t=this.gridOptionsService.isAnimateRows(),n=0===e.columns.length||e.columns.some((e=>e.isPrimary()))?c.ClientSideRowModelSteps.FILTER:c.ClientSideRowModelSteps.FILTER_AGGREGATES;this.refreshModel({step:n,keepRenderedRows:!0,animate:t})}onSortChanged(){const e=this.gridOptionsService.isAnimateRows();this.refreshModel({step:c.ClientSideRowModelSteps.SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})}getType(){return"clientSide"}onValueChanged(){this.columnModel.isPivotActive()?this.refreshModel({step:c.ClientSideRowModelSteps.PIVOT}):this.refreshModel({step:c.ClientSideRowModelSteps.AGGREGATE})}createChangePath(e){const t=c._.missingOrEmpty(e),n=new c.ChangedPath(!1,this.rootNode);return(t||this.gridOptionsService.get("treeData"))&&n.setInactive(),n}isSuppressModelUpdateAfterUpdateTransaction(e){if(!this.gridOptionsService.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=c.ClientSideRowModelSteps.EVERYTHING;const n={everything:c.ClientSideRowModelSteps.EVERYTHING,group:c.ClientSideRowModelSteps.EVERYTHING,filter:c.ClientSideRowModelSteps.FILTER,map:c.ClientSideRowModelSteps.MAP,aggregate:c.ClientSideRowModelSteps.AGGREGATE,sort:c.ClientSideRowModelSteps.SORT,pivot:c.ClientSideRowModelSteps.PIVOT};if(c._.exists(e)&&(t=n[e]),c._.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.gridOptionsService.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 c.ClientSideRowModelSteps.EVERYTHING:this.doRowGrouping(t.rowNodeTransactions,t.rowNodeOrder,n,!!t.afterColumnsChanged);case c.ClientSideRowModelSteps.FILTER:this.doFilter(n);case c.ClientSideRowModelSteps.PIVOT:this.doPivot(n);case c.ClientSideRowModelSteps.AGGREGATE:this.doAggregate(n);case c.ClientSideRowModelSteps.FILTER_AGGREGATES:this.doFilterAggregates(n);case c.ClientSideRowModelSteps.SORT:this.doSort(t.rowNodeTransactions,n);case c.ClientSideRowModelSteps.MAP:this.doRowsToDisplay()}const a=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(n,a),this.isRefreshingModel=!1;const r={type:c.Events.EVENT_MODEL_UPDATED,animate:t.animate,keepRenderedRows:t.keepRenderedRows,newData:t.newData,newPage:!1,keepUndoRedoStack:t.keepUndoRedoStack};this.eventService.dispatchEvent(r)}isEmpty(){const e=c._.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length;return c._.missing(this.rootNode)||e||!this.columnModel.isReady()}isRowsToRender(){return c._.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0}getNodesInRangeForSelection(e,t){let n=!t,a=!1;const r=[],i=this.gridOptionsService.get("groupSelectsChildren");return this.forEachNodeAfterFilterAndSort((o=>{if(a)return;if(n&&(o===t||o===e)&&(a=!0,o.group&&i))return void r.push(...o.allLeafChildren);if(!n){if(o!==t&&o!==e)return;n=!0}(!o.group||!i)&&r.push(o)})),r}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(c._.last(this.rowsToDisplay).rowTop<=e)return this.rowsToDisplay.length-1;let a=-1,r=-1;for(;;){const i=Math.floor((t+n)/2),o=this.rowsToDisplay[i];if(this.isRowInPixel(o,e))return i;o.rowTope&&(n=i-1);if(a===t&&r===n)return i;a=t,r=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){var t;const{nodes:n,callback:a,recursionType:r,includeFooterNodes:i}=e;let{index:o}=e;for(let e=0;e{r&&r.forEach((r=>{const i=()=>{r.expanded=e,a(r.childrenAfterGroup)};if(t){return void(c._.exists(r.childrenAfterGroup)&&i())}if(n){return void(!r.leafGroup&&i())}r.group&&i()}))};this.rootNode&&a(this.rootNode.childrenAfterGroup),this.refreshModel({step:c.ClientSideRowModelSteps.MAP});const r=e?"expandAll":"collapseAll",i={type:c.Events.EVENT_EXPAND_COLLAPSE_ALL,source:r};this.eventService.dispatchEvent(i)}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.gridOptionsService.get("groupSelectsChildren")){if(this.selectionService.updateGroupsFromChildrenSelections("rowGroupChanged",n)){const e={type:c.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:c.Events.EVENT_ROW_COUNT_READY}))}doFilter(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})}doPivot(e){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:e})}getCopyOfNodesMap(){return this.nodeManager.getCopyOfNodesMap()}getRowNode(e){if("string"==typeof e&&0==e.indexOf(c.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:c.Events.EVENT_ROW_DATA_UPDATED};this.eventService.dispatchEvent(e),this.refreshModel({step:c.ClientSideRowModelSteps.EVERYTHING,newData:!0})}batchUpdateRowData(e,t){if(null==this.applyAsyncTransactionsTimeout){this.rowDataTransactionBatch=[];const e=this.gridOptionsService.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 r=this.nodeManager.updateRowData(a.rowDataTransaction,void 0);t.push(r),a.callback&&e.push(a.callback.bind(null,r)),"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:c.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.gridOptionsService.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}};s([(0,c.Autowired)("columnModel")],m.prototype,"columnModel",2),s([(0,c.Autowired)("selectionService")],m.prototype,"selectionService",2),s([(0,c.Autowired)("filterManager")],m.prototype,"filterManager",2),s([(0,c.Autowired)("valueCache")],m.prototype,"valueCache",2),s([(0,c.Autowired)("beans")],m.prototype,"beans",2),s([(0,c.Autowired)("filterStage")],m.prototype,"filterStage",2),s([(0,c.Autowired)("sortStage")],m.prototype,"sortStage",2),s([(0,c.Autowired)("flattenStage")],m.prototype,"flattenStage",2),s([(0,c.Optional)("groupStage")],m.prototype,"groupStage",2),s([(0,c.Optional)("aggregationStage")],m.prototype,"aggregationStage",2),s([(0,c.Optional)("pivotStage")],m.prototype,"pivotStage",2),s([(0,c.Optional)("filterAggregatesStage")],m.prototype,"filterAggregatesStage",2),s([c.PostConstruct],m.prototype,"init",1),m=s([(0,c.Bean)("rowModel")],m);var v=n(3423),f=class extends v.BeanStub{execute(e){const{changedPath:t}=e;this.filterService.filter(t)}};s([(0,v.Autowired)("filterService")],f.prototype,"filterService",2),f=s([(0,v.Bean)("filterStage")],f);var w=n(3423),b=class extends w.BeanStub{execute(e){const t=this.sortController.getSortOptions(),n=w._.exists(t)&&t.length>0,a=n&&w._.exists(e.rowNodeTransactions)&&this.gridOptionsService.get("deltaSort"),r=t.some((e=>this.gridOptionsService.isColumnsSortingCoupledToGroup()?e.column.isPrimary()&&e.column.isRowGroupActive():!!e.column.getColDef().showRowGroup));this.sortService.sort(t,n,a,e.rowNodeTransactions,e.changedPath,r)}};s([(0,w.Autowired)("sortService")],b.prototype,"sortService",2),s([(0,w.Autowired)("sortController")],b.prototype,"sortController",2),b=s([(0,w.Bean)("sortStage")],b);var C=n(3423),y=class extends C.BeanStub{execute(e){const t=e.rowNode,n=[],a=this.columnModel.isPivotMode(),r=a&&t.leafGroup,i=r?[t]:t.childrenAfterSort,o=this.getFlattenDetails();this.recursivelyAddToRowsToDisplay(o,i,n,a,0);return!r&&n.length>0&&o.groupIncludeTotalFooter&&(t.createFooter(),this.addRowNodeToRowsToDisplay(o,t.sibling,n,0)),n}getFlattenDetails(){const e=this.gridOptionsService.get("groupRemoveSingleChildren");return{groupRemoveLowestSingleChildren:!e&&this.gridOptionsService.get("groupRemoveLowestSingleChildren"),groupRemoveSingleChildren:e,isGroupMultiAutoColumn:this.gridOptionsService.isGroupMultiAutoColumn(),hideOpenParents:this.gridOptionsService.get("groupHideOpenParents"),groupIncludeTotalFooter:this.gridOptionsService.get("groupIncludeTotalFooter"),getGroupIncludeFooter:this.gridOptionsService.getGroupIncludeFooter()}}recursivelyAddToRowsToDisplay(e,t,n,a,r){if(!C._.missingOrEmpty(t))for(let i=0;ie.isRowGroupActive()));let s={};n&&a&&(s=this.calculateDirtyNodes(a));const g=this.columnModel.isPivotMode(),d=this.gridOptionsService.getCallback("postSortRows"),c=a=>{var c;this.pullDownGroupDataForHideOpenParents(a.childrenAfterAggFilter,!0);const u=g&&a.leafGroup;if(o&&l&&!a.leafGroup&&!i){const e=null==(c=this.columnModel.getRowGroupColumns())?void 0:c[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,r;return(null!=(a=e[t.id])?a:0)-(null!=(r=e[n.id])?r:0)}))}a.childrenAfterSort=n}else a.childrenAfterSort=!t||u?a.childrenAfterAggFilter.slice(0):n?this.doDeltaSort(a,s,r,e):this.rowNodeSorter.doFullSort(a.childrenAfterAggFilter,e);if(a.sibling&&(a.sibling.childrenAfterSort=a.childrenAfterSort),this.updateChildIndexes(a),d){const e={nodes:a.childrenAfterSort};d(e)}};r&&r.forEachChangedNodeDepthFirst(c),this.updateGroupDataForHideOpenParents(r)}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 r=e.childrenAfterAggFilter,i=e.childrenAfterSort;if(!i)return this.rowNodeSorter.doFullSort(r,a);const o={},l=[];r.forEach((e=>{t[e.id]||!n.canSkip(e)?l.push(e):o[e.id]=!0}));const s=i.filter((e=>o[e.id])),g=(e,t)=>({currentPos:t,rowNode:e}),d=l.map(g).sort(((e,t)=>this.rowNodeSorter.compareRowNodes(a,e,t)));return this.mergeSortedArrays(a,d,s.map(g)).map((({rowNode:e})=>e))}mergeSortedArrays(e,t,n){const a=[];let r=0,i=0;for(;r{this.pullDownGroupDataForHideOpenParents(e.childrenAfterSort,!1),e.childrenAfterSort.forEach((e=>{e.hasChildren()&&t(e)}))};e&&e.executeFromRootNode((e=>t(e)))}pullDownGroupDataForHideOpenParents(e,t){this.gridOptionsService.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 r=a,i=this.columnModel.getPrimaryColumn(r);if(!(i===e.rowGroupColumn))if(t)e.setGroupValue(n.getId(),void 0);else{const t=e.getFirstChildOfFirstChild(i);t&&e.setGroupValue(n.getId(),t.key)}}))}))}};s([(0,S.Autowired)("columnModel")],E.prototype,"columnModel",2),s([(0,S.Autowired)("rowNodeSorter")],E.prototype,"rowNodeSorter",2),E=s([(0,S.Bean)("sortService")],E);var k=n(3423),x=class extends k.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 r=0;re(t,!1);t.executeFromRootNode(a)}else{const e=e=>n(e,!1);t.forEachChangedNodeDepthFirst(e,!0)}}doingTreeDataFiltering(){return this.gridOptionsService.get("treeData")&&!this.gridOptionsService.get("excludeChildrenWhenTreeDataFiltering")}};s([(0,k.Autowired)("filterManager")],x.prototype,"filterManager",2),x=s([(0,k.Bean)("filterService")],x);var z=n(3423),R=class extends z.BeanStub{postConstruct(){"clientSide"===this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel,this.addManagedPropertyListener("rowData",(()=>this.onRowDataUpdated())))}isActive(){const e=this.gridOptionsService.exists("getRowId");return!this.gridOptionsService.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(z._.missing(this.clientSideRowModel))return void console.error("AG Grid: ImmutableService only works with ClientSideRowModel");const t=this.gridOptionsService.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(),r=this.gridOptionsService.get("suppressMaintainUnsortedOrder")?void 0:{};return z._.exists(e)&&e.forEach(((e,i)=>{const o=t({data:e,level:0}),l=a[o];if(r&&(r[o]=i),l){l.data!==e&&n.update.push(e),a[o]=void 0}else n.add.push(e)})),z._.iterateObject(a,((e,t)=>{t&&n.remove.push(t.data)})),[n,r]}onRowDataUpdated(){const e=this.gridOptionsService.get("rowData");e&&(this.isActive()?this.setRowData(e):(this.selectionService.reset("rowDataChanged"),this.clientSideRowModel.setRowData(e)))}};s([(0,z.Autowired)("rowModel")],R.prototype,"rowModel",2),s([(0,z.Autowired)("rowRenderer")],R.prototype,"rowRenderer",2),s([(0,z.Autowired)("selectionService")],R.prototype,"selectionService",2),s([z.PostConstruct],R.prototype,"postConstruct",1),R=s([(0,z.Bean)("immutableService")],R);var D={version:"31.2.0",moduleName:d.ModuleNames.ClientSideRowModelModule,rowModel:"clientSide",beans:[m,f,b,y,E,x,R]}},3423:function(e,t,n){var a,r=Object.defineProperty,i=Object.defineProperties,o=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,u=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,p=(e,t)=>{for(var n in t||(t={}))d.call(t,n)&&u(e,n,t[n]);if(g)for(var n of g(t))c.call(t,n)&&u(e,n,t[n]);return e},h=(e,t)=>i(e,l(t)),m=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},v=(e,t,n,a)=>{for(var i,l=a>1?void 0:a?o(t,n):t,s=e.length-1;s>=0;s--)(i=e[s])&&(l=(a?i(t,n,l):i(l))||l);return a&&l&&r(t,n,l),l},f=(e,t)=>(n,a)=>t(n,a,e),w={};m(w,{ALWAYS_SYNC_GLOBAL_EVENTS:()=>dt,AbstractHeaderCellCtrl:()=>rs,AgAbstractField:()=>Br,AgAbstractLabel:()=>Hr,AgAutocomplete:()=>Sg,AgCheckbox:()=>Qr,AgDialog:()=>mg,AgGroupComponent:()=>og,AgInputDateField:()=>Zs,AgInputNumberField:()=>gi,AgInputRange:()=>Js,AgInputTextArea:()=>Xs,AgInputTextField:()=>si,AgMenuItemComponent:()=>ug,AgMenuItemRenderer:()=>vo,AgMenuList:()=>gg,AgMenuPanel:()=>dg,AgPanel:()=>hg,AgPickerField:()=>qr,AgPromise:()=>wr,AgPromiseStatus:()=>fr,AgRadioButton:()=>Xr,AgRichSelect:()=>ng,AgSelect:()=>Kr,AgSlider:()=>rg,AgStackComponentsRegistry:()=>Lt,AgToggleButton:()=>Qs,AlignedGridsService:()=>Ag,AnimateShowChangeCellRenderer:()=>Ni,AnimateSlideCellRenderer:()=>Gi,AnimationFrameService:()=>Ps,AutoScrollService:()=>Bo,AutoWidthCalculator:()=>Is,Autowired:()=>ue,BarColumnLabelPlacement:()=>Yd,BaseComponentWrapper:()=>jd,Bean:()=>ce,BeanStub:()=>it,Beans:()=>ul,BodyDropPivotTarget:()=>jl,BodyDropTarget:()=>Ql,CellComp:()=>ql,CellCtrl:()=>bl,CellNavigationService:()=>Tg,CellPositionUtils:()=>rd,CellRangeType:()=>ll,ChangedPath:()=>qs,CheckboxCellEditor:()=>mo,CheckboxCellRenderer:()=>ho,CheckboxSelectionComponent:()=>Hi,ClientSideRowModelSteps:()=>Os,ColDefUtil:()=>Vo,Column:()=>Ee,ColumnApi:()=>Pg,ColumnFactory:()=>ot,ColumnGroup:()=>st,ColumnKeyCreator:()=>M,ColumnModel:()=>zt,ColumnUtils:()=>Dt,Component:()=>zr,ComponentUtil:()=>Ft,Context:()=>le,CssClassApplier:()=>vl,CssClassManager:()=>Cr,CtrlsService:()=>hd,DataTypeService:()=>Od,DateCellEditor:()=>go,DateFilter:()=>ri,DateStringCellEditor:()=>uo,DisplayedGroupCreator:()=>Tt,DragAndDropService:()=>Ui,DragService:()=>Wo,DragSourceType:()=>Wi,Environment:()=>Zg,EventService:()=>fe,Events:()=>gt,ExcelFactoryMode:()=>_o,ExpansionService:()=>Fs,ExpressionService:()=>Fg,FilterManager:()=>Xo,FloatingFilterMapper:()=>Io,FocusService:()=>Hg,GROUP_AUTO_COLUMN_ID:()=>ut,Grid:()=>qd,GridApi:()=>Yo,GridBodyComp:()=>Nl,GridBodyCtrl:()=>il,GridComp:()=>Vg,GridCoreCreator:()=>Ud,GridCtrl:()=>Gg,GridHeaderComp:()=>Es,GridHeaderCtrl:()=>ys,GridOptionsService:()=>Rd,GroupCellRenderer:()=>Ji,GroupCellRendererCtrl:()=>Xi,GroupInstanceIdCreator:()=>ct,HeaderCellCtrl:()=>ds,HeaderFilterCellComp:()=>$o,HeaderFilterCellCtrl:()=>ls,HeaderGroupCellCtrl:()=>ps,HeaderNavigationDirection:()=>bs,HeaderNavigationService:()=>Cs,HeaderPositionUtils:()=>dd,HeaderRowComp:()=>ts,HeaderRowContainerComp:()=>ws,HeaderRowContainerCtrl:()=>vs,HeaderRowCtrl:()=>ms,HeaderRowType:()=>es,HorizontalDirection:()=>qi,HorizontalResizeService:()=>ks,KeyCode:()=>Za,LargeTextCellEditor:()=>Pi,LayoutCssClasses:()=>el,LocaleService:()=>Dd,Logger:()=>Ng,LoggerFactory:()=>Ig,ManagedFocusFeature:()=>Lr,MenuService:()=>Ls,ModuleNames:()=>re,ModuleRegistry:()=>oe,MouseEventService:()=>Vl,MoveColumnFeature:()=>Yl,NavigationService:()=>_l,NumberCellEditor:()=>lo,NumberFilter:()=>pi,NumberSequence:()=>vr,Optional:()=>pe,PaginationProxy:()=>Ks,PillDragComp:()=>kg,PillDropZonePanel:()=>zg,PinnedRowModel:()=>Hs,PopupComponent:()=>Ai,PopupEditorWrapper:()=>Bl,PopupService:()=>fg,PositionableFeature:()=>Gr,PostConstruct:()=>ge,PreConstruct:()=>se,PreDestroy:()=>de,PropertyKeys:()=>Pt,ProvidedColumnGroup:()=>xe,ProvidedFilter:()=>_r,Qualifier:()=>me,QuerySelector:()=>Rr,RefSelector:()=>Dr,ResizeObserverService:()=>Ms,RowAnimationCssClasses:()=>al,RowContainerComp:()=>Ul,RowContainerCtrl:()=>Il,RowContainerName:()=>Al,RowContainerType:()=>Ml,RowCtrl:()=>Sl,RowHighlightPosition:()=>Ho,RowNode:()=>_i,RowNodeBlock:()=>Us,RowNodeBlockLoader:()=>js,RowNodeSorter:()=>pd,RowPositionUtils:()=>ad,RowRenderer:()=>Gs,ScalarFilter:()=>ei,ScrollVisibleService:()=>Gl,SelectCellEditor:()=>Oi,SelectableService:()=>$g,SelectionHandleType:()=>ol,ServerSideTransactionResultStatus:()=>Bs,SetLeftFeature:()=>is,SimpleFilter:()=>$r,SortController:()=>_g,SortIndicatorComp:()=>xi,StandardMenuFactory:()=>xs,StylingService:()=>Ys,TabGuardClassNames:()=>zs,TabGuardComp:()=>Ds,TabGuardCtrl:()=>Rs,TabbedLayout:()=>As,TemplateService:()=>Lg,TextCellEditor:()=>Ii,TextFilter:()=>vi,TextFloatingFilter:()=>yi,Timer:()=>br,TooltipFeature:()=>Er,TooltipStateManager:()=>Sr,TouchListener:()=>Ei,UserComponentFactory:()=>No,UserComponentRegistry:()=>fo,ValueCache:()=>Ug,ValueFormatterService:()=>_s,ValueParserService:()=>Fd,ValueService:()=>Og,VanillaFrameworkOverrides:()=>Dg,VerticalDirection:()=>Bi,VirtualList:()=>tg,VirtualListDragFeature:()=>jo,_:()=>mr,__FORCE_MODULE_DETECTION:()=>Kd,createGrid:()=>Bd,getRowContainerTypeForName:()=>Pl}),e.exports=(a=w,((e,t,n,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))d.call(e,i)||i===n||r(e,i,{get:()=>t[i],enumerable:!(a=o(t,i))||a.enumerable});return e})(r({},"__esModule",{value:!0}),a));var b={};function C(e){return null==e||""===e?null:e}function y(e,t=!1){return null!=e&&(""!==e||t)}function S(e){return!y(e)}function E(e){return null==e||0===e.length}function k(e){return null!=e&&"function"==typeof e.toString?e.toString():null}function x(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 z(e){if(void 0!==e)return null!==e&&""!==e&&("boolean"==typeof e?e:/true/i.test(e))}function R(e){if(null!=e&&""!==e)return e}function D(e,t){return(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null)}function T(e,t,n=!1){const a=null==e,r=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),a&&r)return 0;if(a)return-1;if(r)return 1;function i(e,t){return e>t?1:et.push(e))),t}return Object.values(e)}m(b,{attrToBoolean:()=>z,attrToNumber:()=>x,attrToString:()=>R,defaultComparator:()=>T,exists:()=>y,jsonEquals:()=>D,makeNull:()=>C,missing:()=>S,missingOrEmpty:()=>E,toStringOrNull:()=>k,values:()=>A});var M=class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;t{if(t&&t.indexOf(e)>=0)return;const r=n[e],i=_(r)&&r.constructor===Object;a[e]=i?L(r):r})),a}function I(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 N(e,t,n=!0,a=!1){y(t)&&O(t,((t,r)=>{let i=e[t];if(i!==r){if(a){if(null==i&&null!=r){"object"==typeof r&&r.constructor===Object&&(i={},e[t]=i)}}_(r)&&_(i)&&!Array.isArray(i)?N(i,r,n,a):(n||void 0!==r)&&(e[t]=r)}}))}function G(e,t,n){if(!t||!e)return;if(!n)return e[t];const a=t.split(".");let r=e;for(let e=0;e{"object"!=typeof e[n]||t.includes(n)||(e[n]=void 0)}));const a=Object.getPrototypeOf(e),r={};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))};r[e]={value:t,writable:!0}}})),Object.defineProperties(e,r)}function _(e){return"object"==typeof e&&null!==e}m(P,{cloneObject:()=>F,deepCloneDefinition:()=>L,getAllValuesInObject:()=>I,getValueUsingField:()=>G,isNonNullObject:()=>_,iterateObject:()=>O,mergeDeep:()=>N,removeAllReferences:()=>V});var H={};m(H,{compose:()=>ne,debounce:()=>$,doOnce:()=>q,errorOnce:()=>U,executeAfter:()=>J,executeInAWhile:()=>Y,executeNextVMTurn:()=>Z,getFunctionName:()=>j,isFunction:()=>K,noop:()=>ae,throttle:()=>ee,waitUntil:()=>te,warnOnce:()=>W});var B={};function q(e,t){B[t]||(e(),B[t]=!0)}function W(e){q((()=>console.warn("AG Grid: "+e)),e)}function U(e){q((()=>console.error("AG Grid: "+e)),e)}function j(e){if(e.name)return e.name;const t=/function\s+([^\(]+)/.exec(e.toString());return t&&2===t.length?t[1].trim():null}function K(e){return!!(e&&e.constructor&&e.call&&e.apply)}function Y(e){J(e,400)}var Q=[],X=!1;function Z(e){Q.push(e),X||(X=!0,window.setTimeout((()=>{const e=Q.slice();Q.length=0,X=!1,e.forEach((e=>e()))}),0))}function J(e,t=0){e.length>0&&window.setTimeout((()=>e.forEach((e=>e()))),t)}function $(e,t){let n;return function(...a){const r=this;window.clearTimeout(n),n=window.setTimeout((function(){e.apply(r,a)}),t)}}function ee(e,t){let n=0;return function(...a){const r=(new Date).getTime();r-n{const l=(new Date).getTime()-r>n;(e()||l)&&(t(),o=!0,null!=i&&(window.clearInterval(i),i=null),l&&a&&console.warn(a))};l(),o||(i=window.setInterval(l,10))}function ne(...e){return t=>e.reduce(((e,t)=>t(e)),t)}var ae=()=>{},re=(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))(re||{}),ie=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(".")||[],[r,i]=e.currentModuleVersion.split(".")||[];return n===r&&a===i}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&&q((()=>{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/packages-modules/ for more information.")}),"ModulePackageCheck")}static __setIsBundled(){e.isBundled=!0}static __assertRegistered(t,n,a){var r;if(this.__isRegistered(t,a))return!0;const i=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