@mongodb-js/compass-web 0.36.0 → 0.36.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/157.ab4998e7eb2874601f10.mjs +2 -0
- package/dist/{566.513352a4be9e2a46530b.mjs → 183.652977da27df0eb51f2b.mjs} +3 -3
- package/dist/187.761186d8e743ea68ec17.mjs +2 -0
- package/dist/{20.f2c2353886886939e128.mjs.LICENSE.txt → 187.761186d8e743ea68ec17.mjs.LICENSE.txt} +6 -0
- package/dist/503.edf8a9c8de8551ffb233.mjs +378 -0
- package/dist/811.caf23f67d965d1c56224.mjs +1 -0
- package/dist/819.a2cb944a78e8da07819a.mjs +2 -0
- package/dist/832.e3ec48107659934f74e7.mjs +2 -0
- package/dist/941.489a74e5b1130ccb5673.mjs +2 -0
- package/dist/957.77fd779cd858963de4c6.mjs +1 -0
- package/dist/965.521bb6d90f74d9a364b7.mjs +1 -0
- package/dist/assets-manifest.json +11 -11
- package/dist/compass-web.mjs +9 -9
- package/dist/index-bde52cb3.dcb93bf5aae17031a20c.mjs +1 -0
- package/package.json +39 -38
- package/dist/149.abccc0e903c0f5ea7354.mjs +0 -372
- package/dist/20.f2c2353886886939e128.mjs +0 -2
- package/dist/207.d69541eff41412663f35.mjs +0 -2
- package/dist/563.mjs +0 -1
- package/dist/68.f1ca0ed16b5fa27e2cf1.mjs +0 -1
- package/dist/69.mjs +0 -1
- package/dist/724.8aae14d079e334751961.mjs +0 -8
- package/dist/724.8aae14d079e334751961.mjs.LICENSE.txt +0 -5
- package/dist/737.mjs +0 -1
- package/dist/745.mjs +0 -1
- package/dist/832.a6fb147f7fd965a7f30c.mjs +0 -2
- package/dist/938.e127bbcdd0ce0eab8722.mjs +0 -2
- package/dist/965.3c1bdf715c3551cfe1ba.mjs +0 -1
- package/dist/995.c3bb8ac49cdffa0211da.mjs +0 -2
- package/dist/index-bde52cb3.a964d5743a224d2efb82.mjs +0 -1
- /package/dist/{995.c3bb8ac49cdffa0211da.mjs.LICENSE.txt → 157.ab4998e7eb2874601f10.mjs.LICENSE.txt} +0 -0
- /package/dist/{566.513352a4be9e2a46530b.mjs.LICENSE.txt → 183.652977da27df0eb51f2b.mjs.LICENSE.txt} +0 -0
- /package/dist/{149.abccc0e903c0f5ea7354.mjs.LICENSE.txt → 503.edf8a9c8de8551ffb233.mjs.LICENSE.txt} +0 -0
- /package/dist/{207.d69541eff41412663f35.mjs.LICENSE.txt → 819.a2cb944a78e8da07819a.mjs.LICENSE.txt} +0 -0
- /package/dist/{832.a6fb147f7fd965a7f30c.mjs.LICENSE.txt → 832.e3ec48107659934f74e7.mjs.LICENSE.txt} +0 -0
- /package/dist/{938.e127bbcdd0ce0eab8722.mjs.LICENSE.txt → 941.489a74e5b1130ccb5673.mjs.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 187.761186d8e743ea68ec17.mjs.LICENSE.txt */
|
|
2
|
+
export const __webpack_esm_id__=187;export const __webpack_esm_ids__=[187];export const __webpack_esm_modules__={663:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(55e3),a=o(44081),l=function(){function e(){}return e.prototype.postConstruct=function(){this.doingTreeData=this.gridOptionsWrapper.isTreeData()},e.prototype.filter=function(e){var t=this.filterManager.isAnyFilterPresent();this.filterNodes(t,e)},e.prototype.filterNodes=function(e,t){var o=this,i=function(t,i){t.hasChildren()?(t.childrenAfterFilter=e&&!i?t.childrenAfterGroup.filter((function(e){var t=e.childrenAfterFilter&&e.childrenAfterFilter.length>0,i=e.data&&o.filterManager.doesRowPassFilter(e);return t||i})):t.childrenAfterGroup,o.setAllChildrenCount(t)):(t.childrenAfterFilter=t.childrenAfterGroup,t.setAllChildrenCount(null))};if(this.doingTreeDataFiltering()){var n=function(e,t){if(e.childrenAfterGroup)for(var r=0;r<e.childrenAfterGroup.length;r++){var s=e.childrenAfterGroup[r],a=t||o.filterManager.doesRowPassFilter(s);s.childrenAfterGroup?n(e.childrenAfterGroup[r],a):i(s,a)}i(e,t)};t.executeFromRootNode((function(e){return n(e,!1)}))}else t.forEachChangedNodeDepthFirst((function(e){return i(e,!1)}),!0)},e.prototype.setAllChildrenCountTreeData=function(e){var t=0;e.childrenAfterFilter.forEach((function(e){t++,t+=e.allChildrenCount})),e.setAllChildrenCount(t)},e.prototype.setAllChildrenCountGridGrouping=function(e){var t=0;e.childrenAfterFilter.forEach((function(e){e.group?t+=e.allChildrenCount:t++})),e.setAllChildrenCount(t)},e.prototype.setAllChildrenCount=function(e){this.doingTreeData?this.setAllChildrenCountTreeData(e):this.setAllChildrenCountGridGrouping(e)},e.prototype.doingTreeDataFiltering=function(){return this.gridOptionsWrapper.isTreeData()&&!this.gridOptionsWrapper.isExcludeChildrenWhenTreeDataFiltering()},i([r.Autowired("filterManager"),n("design:type",s.FilterManager)],e.prototype,"filterManager",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"postConstruct",null),i([r.Bean("filterService")],e)}();t.FilterService=l},719:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r,s=o(45727),a=o(44081),l=o(44871),p=o(98239),u=o(55e3),c=o(15068),d=o(60843),h=o(63405),f=o(72493),g=o(54828),m=o(28771),y=o(68363),v=o(24463),C=o(88842),w=o(40797),E=o(83423);!function(e){e[e.Normal=0]="Normal",e[e.AfterFilter=1]="AfterFilter",e[e.AfterFilterAndSort=2]="AfterFilterAndSort",e[e.PivotNodes=3]="PivotNodes"}(r||(r={}));var _=function(){function e(){}return e.prototype.init=function(){var e=this.refreshModel.bind(this,{step:s.Constants.STEP_EVERYTHING}),t=this.refreshModel.bind(this,{step:s.Constants.STEP_EVERYTHING,afterColumnsChanged:!0});this.eventService.addModalPriorityEventListener(h.Events.EVENT_COLUMN_EVERYTHING_CHANGED,t),this.eventService.addModalPriorityEventListener(h.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.eventService.addModalPriorityEventListener(h.Events.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.eventService.addModalPriorityEventListener(h.Events.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:s.Constants.STEP_PIVOT})),this.eventService.addModalPriorityEventListener(h.Events.EVENT_ROW_GROUP_OPENED,this.onRowGroupOpened.bind(this)),this.eventService.addModalPriorityEventListener(h.Events.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.eventService.addModalPriorityEventListener(h.Events.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.eventService.addModalPriorityEventListener(h.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,e);var o=this.refreshModel.bind(this,{step:s.Constants.STEP_MAP,keepRenderedRows:!0,animate:!0});this.gridOptionsWrapper.addEventListener(a.GridOptionsWrapper.PROP_GROUP_REMOVE_SINGLE_CHILDREN,o),this.gridOptionsWrapper.addEventListener(a.GridOptionsWrapper.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,o),this.rootNode=new c.RowNode,this.nodeManager=new m.ClientSideNodeManager(this.rootNode,this.gridOptionsWrapper,this.context,this.eventService,this.columnController,this.gridApi,this.columnApi,this.selectionController),this.context.wireBean(this.rootNode)},e.prototype.ensureRowHeightsValid=function(e,t,o,i){var n,r=!1;do{n=!1;for(var s=this.getRowIndexAtPixel(e),a=this.getRowIndexAtPixel(t),l=Math.max(s,o),p=Math.min(a,i),u=l;u<=p;u++){var c=this.getRow(u);if(c.rowHeightEstimated){var d=this.gridOptionsWrapper.getRowHeightForNode(c);c.setRowHeight(d.height),n=!0,r=!0}}n&&this.setRowTops()}while(n);return r},e.prototype.setRowTops=function(){for(var e=0,t=0;t<this.rowsToDisplay.length;t++){var o=this.gridOptionsWrapper.getDomLayout()===s.Constants.DOM_LAYOUT_NORMAL,i=this.rowsToDisplay[t];if(E._.missing(i.rowHeight)){var n=this.gridOptionsWrapper.getRowHeightForNode(i,o);i.setRowHeight(n.height,n.estimated)}i.setRowTop(e),i.setRowIndex(t),e+=i.rowHeight}},e.prototype.resetRowTops=function(e,t){if(e.clearRowTop(),e.hasChildren()){if(e.childrenAfterGroup&&(!t.isActive()||e.expanded))for(var o=0;o<e.childrenAfterGroup.length;o++)this.resetRowTops(e.childrenAfterGroup[o],t);e.sibling&&e.sibling.clearRowTop()}e.detailNode&&e.detailNode.clearRowTop()},e.prototype.ensureRowAtPixel=function(e,t){var o=this.getRowIndexAtPixel(t);return this.getRow(o)!==e&&(E._.removeFromArray(this.rootNode.allLeafChildren,e),E._.insertIntoArray(this.rootNode.allLeafChildren,e,o),this.refreshModel({step:s.Constants.STEP_EVERYTHING,keepRenderedRows:!0,animate:!0,keepEditingRows:!0}),!0)},e.prototype.isLastRowFound=function(){return!0},e.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},e.prototype.getRowBounds=function(e){if(E._.missing(this.rowsToDisplay))return null;var t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null},e.prototype.onRowGroupOpened=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:s.Constants.STEP_MAP,keepRenderedRows:!0,animate:e})},e.prototype.onFilterChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:s.Constants.STEP_FILTER,keepRenderedRows:!0,animate:e})},e.prototype.onSortChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:s.Constants.STEP_SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},e.prototype.getType=function(){return s.Constants.ROW_MODEL_TYPE_CLIENT_SIDE},e.prototype.onValueChanged=function(){this.columnController.isPivotActive()?this.refreshModel({step:s.Constants.STEP_PIVOT}):this.refreshModel({step:s.Constants.STEP_AGGREGATE})},e.prototype.createChangePath=function(e){var t=E._.missingOrEmpty(e),o=new y.ChangedPath(!1,this.rootNode);return(t||this.gridOptionsWrapper.isTreeData())&&o.setInactive(),o},e.prototype.refreshModel=function(e){var t=this,o=this.createChangePath(e.rowNodeTransactions);switch(e.step){case s.Constants.STEP_EVERYTHING:this.doRowGrouping(e.groupState,e.rowNodeTransactions,e.rowNodeOrder,o,e.afterColumnsChanged);case s.Constants.STEP_FILTER:this.doFilter(o);case s.Constants.STEP_PIVOT:this.doPivot(o);case s.Constants.STEP_AGGREGATE:this.doAggregate(o);case s.Constants.STEP_SORT:this.doSort(e.rowNodeTransactions,o);case s.Constants.STEP_MAP:this.doRowsToDisplay()}this.resetRowTops(this.rootNode,o),this.setRowTops();var i={type:h.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1};this.eventService.dispatchEvent(i),this.$scope&&window.setTimeout((function(){t.$scope.$apply()}),0)},e.prototype.isEmpty=function(){var e;return e=E._.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())?E._.missing(this.rootNode.childrenAfterGroup)||0===this.rootNode.childrenAfterGroup.length:E._.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length,E._.missing(this.rootNode)||e||!this.columnController.isReady()},e.prototype.isRowsToRender=function(){return E._.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},e.prototype.getNodesInRangeForSelection=function(e,t){var o,i=!t,n=!1,r=[],s=this.gridOptionsWrapper.isGroupSelectsChildren();return this.forEachNodeAfterFilterAndSort((function(a){var l=i&&!n;if(i||a!==t&&a!==e||(i=!0),!a.group||!s){var p=i&&!n,u=a.isParentOfNode(o);(p||u)&&r.push(a)}l&&(a!==t&&a!==e||(n=!0,o=a===t?t:e))})),r},e.prototype.setDatasource=function(e){console.error("ag-Grid: should never call setDatasource on clientSideRowController")},e.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},e.prototype.getRootNode=function(){return this.rootNode},e.prototype.getRow=function(e){return this.rowsToDisplay[e]},e.prototype.isRowPresent=function(e){return this.rowsToDisplay.indexOf(e)>=0},e.prototype.getVirtualRowCount=function(){return console.warn("ag-Grid: rowModel.getVirtualRowCount() is not longer a function, use rowModel.getRowCount() instead"),this.getPageLastRow()},e.prototype.getPageFirstRow=function(){return 0},e.prototype.getPageLastRow=function(){return this.rowsToDisplay?this.rowsToDisplay.length-1:0},e.prototype.getRowIndexAtPixel=function(e){if(this.isEmpty())return-1;var t=0,o=this.rowsToDisplay.length-1;if(e<=0)return 0;if(this.rowsToDisplay[this.rowsToDisplay.length-1].rowTop<=e)return this.rowsToDisplay.length-1;for(;;){var i=Math.floor((t+o)/2),n=this.rowsToDisplay[i];if(this.isRowInPixel(n,e))return i;n.rowTop<e?t=i+1:n.rowTop>e&&(o=i-1)}},e.prototype.isRowInPixel=function(e,t){var o=e.rowTop,i=e.rowTop+e.rowHeight;return o<=t&&i>t},e.prototype.getCurrentPageHeight=function(){if(this.rowsToDisplay&&this.rowsToDisplay.length>0){var e=this.rowsToDisplay[this.rowsToDisplay.length-1];return e.rowTop+e.rowHeight}return 0},e.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach((function(t,o){return e(t,o)}))},e.prototype.forEachNode=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterGroup,e,r.Normal,0)},e.prototype.forEachNodeAfterFilter=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterFilter,e,r.AfterFilter,0)},e.prototype.forEachNodeAfterFilterAndSort=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,e,r.AfterFilterAndSort,0)},e.prototype.forEachPivotNode=function(e){this.recursivelyWalkNodesAndCallback([this.rootNode],e,r.PivotNodes,0)},e.prototype.recursivelyWalkNodesAndCallback=function(e,t,o,i){if(e)for(var n=0;n<e.length;n++){var s=e[n];if(t(s,i++),s.hasChildren()){var a=null;switch(o){case r.Normal:a=s.childrenAfterGroup;break;case r.AfterFilter:a=s.childrenAfterFilter;break;case r.AfterFilterAndSort:a=s.childrenAfterSort;break;case r.PivotNodes:a=s.leafGroup?null:s.childrenAfterSort}a&&(i=this.recursivelyWalkNodesAndCallback(a,t,o,i))}}return i},e.prototype.doAggregate=function(e){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:e})},e.prototype.expandOrCollapseAll=function(e){var t=this.gridOptionsWrapper.isTreeData();this.rootNode&&function o(i){i&&i.forEach((function(i){(t?E._.exists(i.childrenAfterGroup):i.group)&&(i.expanded=e,o(i.childrenAfterGroup))}))}(this.rootNode.childrenAfterGroup),this.refreshModel({step:s.Constants.STEP_MAP});var o=e?"expandAll":"collapseAll",i={api:this.gridApi,columnApi:this.columnApi,type:h.Events.EVENT_EXPAND_COLLAPSE_ALL,source:o};this.eventService.dispatchEvent(i)},e.prototype.doSort=function(e,t){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:t})},e.prototype.doRowGrouping=function(e,t,o,i,n){var r=this;E._.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())||(this.groupStage?(t&&E._.exists(t)?t.forEach((function(e){r.groupStage.execute({rowNode:r.rootNode,rowNodeTransaction:e,rowNodeOrder:o,changedPath:i})})):(this.selectionController.removeGroupsFromSelection(),this.groupStage.execute({rowNode:this.rootNode,changedPath:i,afterColumnsChanged:n}),this.restoreGroupState(e)),this.gridOptionsWrapper.isGroupSelectsChildren()&&this.selectionController.updateGroupsFromChildrenSelections(i)):this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren)},e.prototype.restoreGroupState=function(e){e&&E._.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,o){"boolean"==typeof e[o]&&(t.expanded=e[o])}))},e.prototype.doFilter=function(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})},e.prototype.doPivot=function(e){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:e})},e.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsWrapper.isRememberGroupStateWhenNewData())return null;var e={};return E._.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,o){return e[o]=t.expanded})),e},e.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},e.prototype.getRowNode=function(e){return this.nodeManager.getRowNode(e)},e.prototype.setRowData=function(e){var t=this.getGroupState();this.nodeManager.setRowData(e);var o={type:h.Events.EVENT_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o),this.refreshModel({step:s.Constants.STEP_EVERYTHING,groupState:t,newData:!0})},e.prototype.batchUpdateRowData=function(e,t){var o=this;if(!this.rowDataTransactionBatch){this.rowDataTransactionBatch=[];var i=this.gridOptionsWrapper.getBatchUpdateWaitMillis();window.setTimeout((function(){o.executeBatchUpdateRowData(),o.rowDataTransactionBatch=null}),i)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:t})},e.prototype.executeBatchUpdateRowData=function(){var e=this;this.valueCache.onDataChanged();var t=[],o=[];this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach((function(i){var n=e.nodeManager.updateRowData(i.rowDataTransaction,null);o.push(n),i.callback&&t.push(i.callback.bind(n))})),this.commonUpdateRowData(o),t.length>0&&window.setTimeout((function(){t.forEach((function(e){return e()}))}),0)},e.prototype.updateRowData=function(e,t){this.valueCache.onDataChanged();var o=this.nodeManager.updateRowData(e,t);return this.commonUpdateRowData([o],t),o},e.prototype.commonUpdateRowData=function(e,t){this.refreshModel({step:s.Constants.STEP_EVERYTHING,rowNodeTransactions:e,rowNodeOrder:t,keepRenderedRows:!0,animate:!0,keepEditingRows:!0});var o={type:h.Events.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)},e.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},e.prototype.onRowHeightChanged=function(){this.refreshModel({step:s.Constants.STEP_MAP,keepRenderedRows:!0,keepEditingRows:!0})},e.prototype.resetRowHeights=function(){this.forEachNode((function(e){return e.setRowHeight(null)})),this.onRowHeightChanged()},i([f.Autowired("gridOptionsWrapper"),n("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([f.Autowired("columnController"),n("design:type",p.ColumnController)],e.prototype,"columnController",void 0),i([f.Autowired("filterManager"),n("design:type",u.FilterManager)],e.prototype,"filterManager",void 0),i([f.Autowired("$scope"),n("design:type",Object)],e.prototype,"$scope",void 0),i([f.Autowired("selectionController"),n("design:type",g.SelectionController)],e.prototype,"selectionController",void 0),i([f.Autowired("eventService"),n("design:type",d.EventService)],e.prototype,"eventService",void 0),i([f.Autowired("context"),n("design:type",f.Context)],e.prototype,"context",void 0),i([f.Autowired("valueService"),n("design:type",v.ValueService)],e.prototype,"valueService",void 0),i([f.Autowired("valueCache"),n("design:type",C.ValueCache)],e.prototype,"valueCache",void 0),i([f.Autowired("columnApi"),n("design:type",l.ColumnApi)],e.prototype,"columnApi",void 0),i([f.Autowired("gridApi"),n("design:type",w.GridApi)],e.prototype,"gridApi",void 0),i([f.Autowired("filterStage"),n("design:type",Object)],e.prototype,"filterStage",void 0),i([f.Autowired("sortStage"),n("design:type",Object)],e.prototype,"sortStage",void 0),i([f.Autowired("flattenStage"),n("design:type",Object)],e.prototype,"flattenStage",void 0),i([f.Optional("groupStage"),n("design:type",Object)],e.prototype,"groupStage",void 0),i([f.Optional("aggregationStage"),n("design:type",Object)],e.prototype,"aggregationStage",void 0),i([f.Optional("pivotStage"),n("design:type",Object)],e.prototype,"pivotStage",void 0),i([f.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([f.Bean("rowModel")],e)}();t.ClientSideRowModel=_},814:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(44081),s=o(74517),a=o(72948),l=o(72493),p=o(72493),u=function(){function e(){}return e.prototype.calculateColInitialWidth=function(e){return e.width?e.width<this.gridOptionsWrapper.getMinColWidth()?this.gridOptionsWrapper.getMinColWidth():e.width:this.gridOptionsWrapper.getColWidth()},e.prototype.getOriginalPathForColumn=function(e,t){var o=[],i=!1;return function t(n,r){for(var s=0;s<n.length;s++){if(i)return;var l=n[s];l instanceof a.OriginalColumnGroup?(t(l.getChildren(),r+1),o[r]=l):l===e&&(i=!0)}}(t,0),i?o:null},e.prototype.depthFirstOriginalTreeSearch=function(e,t,o){var i=this;t&&t.forEach((function(t){t instanceof a.OriginalColumnGroup&&i.depthFirstOriginalTreeSearch(t,t.getChildren(),o),o(t,e)}))},e.prototype.depthFirstAllColumnTreeSearch=function(e,t){var o=this;e&&e.forEach((function(e){e instanceof s.ColumnGroup&&o.depthFirstAllColumnTreeSearch(e.getChildren(),t),t(e)}))},e.prototype.depthFirstDisplayedColumnTreeSearch=function(e,t){var o=this;e&&e.forEach((function(e){e instanceof s.ColumnGroup&&o.depthFirstDisplayedColumnTreeSearch(e.getDisplayedChildren(),t),t(e)}))},i([p.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([l.Bean("columnUtils")],e)}();t.ColumnUtils=u},1571:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(72493),a=o(44081),l=o(83423),p=function(){function e(){this.gridInstanceId=t.gridInstanceSequence.next()}var t;return t=e,e.prototype.init=function(){this.stampDomElementWithGridInstance()},e.prototype.stampDomElementWithGridInstance=function(){this.eGridDiv[t.GRID_DOM_KEY]=this.gridInstanceId},e.prototype.getRenderedCellForEvent=function(e){return l._.getCellCompForEvent(this.gridOptionsWrapper,e)},e.prototype.isEventFromThisGrid=function(e){for(var o=l._.getEventPath(e),i=0;i<o.length;i++){var n=o[i][t.GRID_DOM_KEY];if(l._.exists(n))return n===this.gridInstanceId}return!1},e.prototype.getGridCellForEvent=function(e){var t=this.getRenderedCellForEvent(e);return t?t.getGridCell():null},e.gridInstanceSequence=new l.NumberSequence,e.GRID_DOM_KEY="__ag_grid_instance",i([s.Autowired("gridOptionsWrapper"),n("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Autowired("eGridDiv"),n("design:type",HTMLElement)],e.prototype,"eGridDiv",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),t=i([r.Bean("mouseEventService")],e)}();t.MouseEventService=p},2102:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(96652),s=o(46410),a=o(47008),l=o(47008),p=function(e){function t(t,o){var i=e.call(this)||this;return i.reactComponent=t,i.parentComponent=o,i}return n(t,e),t.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},t.prototype.getReactComponentName=function(){return this.reactComponent.name},t.prototype.init=function(e){var t=this;return new l.Promise((function(o){t.eParentElement=document.createElement(t.parentComponent.props.componentWrappingElement||"div"),a.Utils.addCssClass(t.eParentElement,"ag-react-container"),e.reactContainer=t.eParentElement,t.createReactComponentLegacy(e,o)}))},t.prototype.getGui=function(){return this.eParentElement},t.prototype.destroy=function(){s.unmountComponentAtNode(this.eParentElement)},t.prototype.createReactComponentLegacy=function(e,t){var o=this,i=r.createElement(this.reactComponent,e);this.parentComponent?s.unstable_renderSubtreeIntoContainer(this.parentComponent,i,this.eParentElement,(function(){o.componentInstance=this,t(null)})):s.render(i,this.eParentElement,(function(){o.componentInstance=this,t(null)}))},t}(o(30844).BaseReactComponent);t.LegacyReactComponent=p},2299:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(21951),l=o(8534),p=o(72493),u=o(44871),c=o(40797),d=o(63405),h=o(60843),f=o(45727),g=o(54828),m=o(44081),y=function(e){function t(t,o){var i=e.call(this)||this;i.cbSelectAllVisible=!1,i.processingEventFromCheckbox=!1,i.cbSelectAll=t,i.column=o;var n=o.getColDef();return i.filteredOnly=!!n&&!!n.headerCheckboxSelectionFilteredOnly,i}return n(t,e),t.prototype.postConstruct=function(){this.showOrHideSelectAll(),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addDestroyableEventListener(this.cbSelectAll,a.AgCheckbox.EVENT_CHANGED,this.onCbSelectAll.bind(this))},t.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setVisible(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType(),this.updateStateOfCheckbox())},t.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.getNextCheckboxState=function(e){return(0!==e.selected||0!==e.notSelected)&&(e.selected>0&&e.notSelected>0?null:e.selected>0)},t.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.getSelectionCount(),t=this.getNextCheckboxState(e);this.cbSelectAll.setSelected(t),this.processingEventFromCheckbox=!1}},t.prototype.getSelectionCount=function(){var e=this,t=0,o=0,i=function(i){e.gridOptionsWrapper.isGroupSelectsChildren()&&i.group||(i.isSelected()?t++:i.selectable&&o++)};return this.filteredOnly?this.gridApi.forEachNodeAfterFilter(i):this.gridApi.forEachNode(i),{notSelected:o,selected:t}},t.prototype.checkRightRowModelType=function(){var e=this.rowModel.getType();e===f.Constants.ROW_MODEL_TYPE_CLIENT_SIDE||console.warn("ag-Grid: selectAllCheckbox is only available if using normal row model, you are using "+e)},t.prototype.onCbSelectAll=function(){this.processingEventFromCheckbox||this.cbSelectAllVisible&&(this.cbSelectAll.isSelected()?this.selectionController.selectAllRowNodes(this.filteredOnly):this.selectionController.deselectAllRowNodes(this.filteredOnly))},t.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;return"function"==typeof e&&(e=e({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi})),!(!e||(this.gridOptionsWrapper.isRowModelServerSide()?(console.warn("headerCheckboxSelection is not supported for Server Side Row Model"),1):this.gridOptionsWrapper.isRowModelInfinite()?(console.warn("headerCheckboxSelection is not supported for Infinite Row Model"),1):this.gridOptionsWrapper.isRowModelViewport()&&(console.warn("headerCheckboxSelection is not supported for Viewport Row Model"),1)))},r([p.Autowired("gridApi"),s("design:type",c.GridApi)],t.prototype,"gridApi",void 0),r([p.Autowired("columnApi"),s("design:type",u.ColumnApi)],t.prototype,"columnApi",void 0),r([p.Autowired("eventService"),s("design:type",h.EventService)],t.prototype,"eventService",void 0),r([p.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),r([p.Autowired("selectionController"),s("design:type",g.SelectionController)],t.prototype,"selectionController",void 0),r([p.Autowired("gridOptionsWrapper"),s("design:type",m.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([p.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(l.BeanStub);t.SelectAllFeature=y},2461:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(86608),a=o(24463),l=o(44081),p=o(98239),u=o(83423),c=function(){function e(){}return e.prototype.init=function(){this.postSortFunc=this.gridOptionsWrapper.getPostSortFunc()},e.prototype.sort=function(e,t,o,i,n,r){var s=this;n.forEachChangedNodeDepthFirst((function(a){if(s.pullDownGroupDataForHideOpenParents(a.childrenAfterFilter,!0),t){var l=o?s.doDeltaSort(a,e,i,n,r):s.doFullSort(a,e);a.childrenAfterSort=l.map((function(e){return e.rowNode}))}else a.childrenAfterSort=a.childrenAfterFilter.slice(0);s.updateChildIndexes(a),s.postSortFunc&&s.postSortFunc(a.childrenAfterSort)})),this.updateGroupDataForHiddenOpenParents(n)},e.prototype.doFullSort=function(e,t){var o=e.childrenAfterFilter.map(this.mapNodeToSortedNode.bind(this));return o.sort(this.compareRowNodes.bind(this,t)),o},e.prototype.mapNodeToSortedNode=function(e,t){return{currentPos:t,rowNode:e}},e.prototype.doDeltaSort=function(e,t,o,i,n){var r=e.childrenAfterSort.filter((function(e){var t=!o[e.id],r=n||i.canSkip(e);return t&&r})).map(this.mapNodeToSortedNode.bind(this)),s={};r.forEach((function(e){return s[e.rowNode.id]=e.rowNode}));var a=e.childrenAfterFilter.filter((function(e){return!s[e.id]})).map(this.mapNodeToSortedNode.bind(this));return a.sort(this.compareRowNodes.bind(this,t)),0===a.length?r:0===r.length?a:this.mergeSortedArrays(t,r,a)},e.prototype.mergeSortedArrays=function(e,t,o){for(var i=[],n=0,r=0;n<t.length&&r<o.length;)this.compareRowNodes(e,t[n],o[r])<0?i.push(t[n++]):i.push(o[r++]);for(;n<t.length;)i.push(t[n++]);for(;r<o.length;)i.push(o[r++]);return i},e.prototype.compareRowNodes=function(e,t,o){for(var i=t.rowNode,n=o.rowNode,r=0,s=e.length;r<s;r++){var a,l=e[r],p=-1===l.inverter,c=this.getValue(i,l.column),d=this.getValue(n,l.column);if(0!==(a=l.column.getColDef().comparator?l.column.getColDef().comparator(c,d,i,n,p):u._.defaultComparator(c,d,this.gridOptionsWrapper.isAccentedSort())))return a*l.inverter}return t.currentPos-o.currentPos},e.prototype.getValue=function(e,t){return this.valueService.getValue(t,e)},e.prototype.updateChildIndexes=function(e){if(!u._.missing(e.childrenAfterSort))for(var t=e.childrenAfterSort,o=0;o<t.length;o++){var i=t[o],n=0===o,r=o===e.childrenAfterSort.length-1;i.setFirstChild(n),i.setLastChild(r),i.setChildIndex(o)}},e.prototype.updateGroupDataForHiddenOpenParents=function(e){var t=this;if(this.gridOptionsWrapper.isGroupHideOpenParents()){var o=function(e){t.pullDownGroupDataForHideOpenParents(e.childrenAfterSort,!1),e.childrenAfterSort.forEach((function(e){e.hasChildren()&&o(e)}))};e.executeFromRootNode((function(e){return o(e)}))}},e.prototype.pullDownGroupDataForHideOpenParents=function(e,t){var o=this;u._.missing(e)||this.gridOptionsWrapper.isGroupHideOpenParents()&&e.forEach((function(e){o.columnController.getGroupDisplayColumns().forEach((function(i){var n=i.getColDef().showRowGroup;if("string"==typeof n){var r=n,s=o.columnController.getPrimaryColumn(r);if(s!==e.rowGroupColumn)if(t)e.setGroupValue(i.getId(),null);else{var a=e.getFirstChildOfFirstChild(s);a&&e.setGroupValue(i.getId(),a.key)}}else console.error("ag-Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup")}))}))},i([r.Autowired("sortController"),n("design:type",s.SortController)],e.prototype,"sortController",void 0),i([r.Autowired("columnController"),n("design:type",p.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("valueService"),n("design:type",a.ValueService)],e.prototype,"valueService",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([r.Bean("sortService")],e)}();t.SortService=c},3976:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=o(45727),n=o(34782),r=o(83423),s=function(){function e(e,t){this.rowIndex=e,this.floating=r._.makeNull(t)}return e.prototype.isFloatingTop=function(){return this.floating===i.Constants.PINNED_TOP},e.prototype.isFloatingBottom=function(){return this.floating===i.Constants.PINNED_BOTTOM},e.prototype.isNotFloating=function(){return!this.isFloatingBottom()&&!this.isFloatingTop()},e.prototype.equals=function(e){return this.rowIndex===e.rowIndex&&this.floating===e.floating},e.prototype.toString=function(){return"rowIndex = "+this.rowIndex+", floating = "+this.floating},e.prototype.getGridCell=function(e){var t={rowIndex:this.rowIndex,floating:this.floating,column:e};return new n.GridCell(t)},e.prototype.before=function(e){var t=e.floating;switch(this.floating){case i.Constants.PINNED_TOP:if(t!==i.Constants.PINNED_TOP)return!0;break;case i.Constants.PINNED_BOTTOM:if(t!==i.Constants.PINNED_BOTTOM)return!1;break;default:if(r._.exists(t))return t!==i.Constants.PINNED_TOP}return this.rowIndex<e.rowIndex},e}();t.GridRow=s},4889:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(44081),a=o(83423),l=function(){function e(){}return e.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc()},e.prototype.updateSelectableAfterGrouping=function(e){this.isRowSelectableFunc&&this.recurseDown(e.childrenAfterGroup,(function(e){return e.childrenAfterGroup}))},e.prototype.updateSelectableAfterFiltering=function(e){this.isRowSelectableFunc&&this.recurseDown(e.childrenAfterGroup,(function(e){return e.childrenAfterFilter}))},e.prototype.recurseDown=function(e,t){var o=this;e.forEach((function(e){if(e.group){var i;if(e.hasChildren()&&o.recurseDown(t(e),t),o.groupSelectsChildren){var n=a._.find(t(e),"selectable",!0);i=a._.exists(n)}else i=!!o.isRowSelectableFunc&&o.isRowSelectableFunc(e);e.setRowSelectable(i)}}))},i([r.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([r.Bean("selectableService")],e)}();t.SelectableService=l},5448:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.isPopup=function(){return!0},t}(o(71616).TextCellEditor);t.PopupTextCellEditor=r},6065:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(72493),l=o(44081),p=o(68363),u=o(10042),c=o(60843),d=o(45727),h=o(8534),f=o(63405),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.init=function(){this.rowModel.getType()===d.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},t.prototype.onCellValueChanged=function(e){this.doChangeDetection(e.node,e.column)},t.prototype.doChangeDetection=function(e,t){if(!this.gridOptionsWrapper.isSuppressChangeDetection()){if(this.clientSideRowModel&&!e.isRowPinned()){var o=this.gridOptionsWrapper.isAggregateOnlyChangedColumns(),i=new p.ChangedPath(o,this.clientSideRowModel.getRootNode());i.addParentNode(e.parent,[t]),this.clientSideRowModel.doAggregate(i)}this.rowRenderer.refreshCells()}},r([a.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),r([a.Autowired("rowRenderer"),s("design:type",u.RowRenderer)],t.prototype,"rowRenderer",void 0),r([a.Autowired("eventService"),s("design:type",c.EventService)],t.prototype,"eventService",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),r([a.Bean("changeDetectionService")],t)}(h.BeanStub);t.ChangeDetectionService=g},7760:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=o(83423);t.simpleHttpRequest=function(e){return new i.Promise((function(t){var o=new XMLHttpRequest;o.open("GET",e.url),o.send(),o.onreadystatechange=function(){if(4==o.readyState&&200==o.status){var e=JSON.parse(o.responseText);t(e)}}}))}},7897:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(44081),a=o(37132),l=o(814),p=o(69734),u=o(72948),c=o(26016),d=o(72493),h=o(99770),f=o(83423),g=function(){function e(){}return e.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},e.prototype.createColumnTree=function(e,t,o){var i=new p.ColumnKeyCreator;if(o){var n=o.map((function(e){return e.getId()}));i.addExistingKeys(n)}var r=o?o.slice():null,s=this.recursivelyCreateColumns(e,0,t,r,i,null),a=this.findMaxDept(s,0);this.logger.log("Number of levels for grouped columns is "+a);var l=this.balanceColumnTree(s,0,a,i);return this.columnUtils.depthFirstOriginalTreeSearch(null,l,(function(e,t){e instanceof u.OriginalColumnGroup&&e.setupExpandable(),e.setOriginalParent(t)})),{columnTree:l,treeDept:a}},e.prototype.createForAutoGroups=function(e,t){var o=this,i=[];return e.forEach((function(e){var n=o.createAutoGroupTreeItem(t,e);i.push(n)})),i},e.prototype.createAutoGroupTreeItem=function(e,t){for(var o=t,i=this.findDepth(e)-1;i>=0;i--){var n=new u.OriginalColumnGroup(null,"FAKE_PATH_"+t.getId()+"}_"+i,!0,i);this.context.wireBean(n),n.setChildren([o]),o.setOriginalParent(n),o=n}return o},e.prototype.findDepth=function(e){for(var t=0,o=e;o&&o[0]&&o[0]instanceof u.OriginalColumnGroup;)t++,o=o[0].getChildren();return t},e.prototype.balanceColumnTree=function(e,t,o,i){for(var n=[],r=0;r<e.length;r++){var s=e[r];if(s instanceof u.OriginalColumnGroup){var a=s,l=this.balanceColumnTree(a.getChildren(),t+1,o,i);a.setChildren(l),n.push(a)}else{for(var p=void 0,c=void 0,d=o-1;d>=t;d--){var h=i.getUniqueKey(null,null),f=this.createMergedColGroupDef(null),g=new u.OriginalColumnGroup(f,h,!0,t);this.context.wireBean(g),c&&c.setChildren([g]),c=g,p||(p=c)}if(p){n.push(p);var m=e.some((function(e){return e instanceof u.OriginalColumnGroup}));if(m){c.setChildren([s]);continue}c.setChildren(e);break}n.push(s)}}return n},e.prototype.findMaxDept=function(e,t){for(var o=t,i=0;i<e.length;i++){var n=e[i];if(n instanceof u.OriginalColumnGroup){var r=n,s=this.findMaxDept(r.getChildren(),t+1);o<s&&(o=s)}}return o},e.prototype.recursivelyCreateColumns=function(e,t,o,i,n,r){var s=this,a=[];return e?(e.forEach((function(e){var l;l=s.isColumnGroup(e)?s.createColumnGroup(o,e,t,i,n,r):s.createColumn(o,e,i,n,r),a.push(l)})),a):a},e.prototype.createColumnGroup=function(e,t,o,i,n,r){var s=this.createMergedColGroupDef(t),a=n.getUniqueKey(s.groupId,null),l=new u.OriginalColumnGroup(s,a,!1,o);this.context.wireBean(l);var p=this.recursivelyCreateColumns(s.children,o+1,e,i,n,l);return l.setChildren(p),l},e.prototype.createMergedColGroupDef=function(e){var t={};return f._.assign(t,this.gridOptionsWrapper.getDefaultColGroupDef()),f._.assign(t,e),this.checkForDeprecatedItems(t),t},e.prototype.createColumn=function(e,t,o,i,n){var r=this.mergeColDefs(t);this.checkForDeprecatedItems(r);var s=this.findExistingColumn(t,o);if(s)s.setColDef(r,t);else{var a=i.getUniqueKey(r.colId,r.field);s=new c.Column(r,t,a,e),this.context.wireBean(s)}return s},e.prototype.findExistingColumn=function(e,t){var o=f._.find(t,(function(t){var o=t.getUserProvidedColDef();return!(!o||o!==e&&(null===o.colId||void 0===o.colId||o.colId!==e.colId))}));return o&&f._.removeFromArray(t,o),o},e.prototype.mergeColDefs=function(e){var t={};return f._.assign(t,this.gridOptionsWrapper.getDefaultColDef()),e.type&&this.assignColumnTypes(e,t),f._.assign(t,e),t},e.prototype.assignColumnTypes=function(e,t){var o;if(e.type instanceof Array)e.type.some((function(e){return"string"!=typeof e}))?console.warn("ag-grid: if colDef.type is supplied an array it should be of type 'string[]'"):o=e.type;else{if("string"!=typeof e.type)return void console.warn("ag-grid: colDef.type should be of type 'string' | 'string[]'");o=e.type.split(",")}var i=f._.assign({},this.gridOptionsWrapper.getColumnTypes(),h.DefaultColumnTypes);o.forEach((function(e){var o=i[e.trim()];o?f._.assign(t,o):console.warn("ag-grid: colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes")}))},e.prototype.checkForDeprecatedItems=function(e){if(e){var t=e;void 0!==t.group&&console.warn("ag-grid: colDef.group is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroup&&console.warn("ag-grid: colDef.headerGroup is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroupShow&&console.warn("ag-grid: colDef.headerGroupShow is invalid, should be columnGroupShow, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.suppressRowGroup&&console.warn("ag-grid: colDef.suppressRowGroup is deprecated, please use colDef.type instead"),void 0!==t.suppressAggregation&&console.warn("ag-grid: colDef.suppressAggregation is deprecated, please use colDef.type instead"),(t.suppressRowGroup||t.suppressAggregation)&&console.warn("ag-grid: colDef.suppressAggregation and colDef.suppressRowGroup are deprecated, use allowRowGroup, allowPivot and allowValue instead"),t.displayName&&(console.warn("ag-grid: Found displayName "+t.displayName+", please use headerName instead, displayName is deprecated."),t.headerName=t.displayName)}},e.prototype.isColumnGroup=function(e){return void 0!==e.children},i([d.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([d.Autowired("columnUtils"),n("design:type",l.ColumnUtils)],e.prototype,"columnUtils",void 0),i([d.Autowired("context"),n("design:type",d.Context)],e.prototype,"context",void 0),i([r(0,d.Qualifier("loggerFactory")),n("design:type",Function),n("design:paramtypes",[a.LoggerFactory]),n("design:returntype",void 0)],e.prototype,"setBeans",null),i([d.Bean("columnFactory")],e)}();t.ColumnFactory=g},8534:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(60843),s=o(44081),a=o(72493),l=o(83423),p=function(){function e(){this.destroyFunctions=[],this.destroyed=!1}return e.prototype.getContext=function(){return this.context},e.prototype.destroy=function(){this.destroyFunctions.forEach((function(e){return e()})),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:e.EVENT_DESTROYED})},e.prototype.addEventListener=function(e,t){this.localEventService||(this.localEventService=new r.EventService),this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService&&this.localEventService.removeEventListener(e,t)},e.prototype.dispatchEventAsync=function(e){var t=this;window.setTimeout((function(){return t.dispatchEvent(e)}),0)},e.prototype.dispatchEvent=function(e){this.localEventService&&this.localEventService.dispatchEvent(e)},e.prototype.addDestroyableEventListener=function(e,t,o,i){this.destroyed||(e instanceof HTMLElement?l._.addSafePassiveEventListener(e,t,o,i):(e instanceof Window||s.GridOptionsWrapper,e.addEventListener(t,o)),this.destroyFunctions.push((function(){e instanceof HTMLElement||e instanceof Window||s.GridOptionsWrapper,e.removeEventListener(t,o)})))},e.prototype.isAlive=function(){return!this.destroyed},e.prototype.addDestroyFunc=function(e){this.isAlive()?this.destroyFunctions.push(e):e()},e.EVENT_DESTROYED="destroyed",i([a.Autowired("context"),n("design:type",a.Context)],e.prototype,"context",void 0),i([a.PreDestroy,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"destroy",null),e}();t.BeanStub=p},8894:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(34782),a=o(45727),l=o(1571),p=o(41451),u=o(42195),c=o(69065),d=o(98239),h=o(44081),f=o(83423),g=function(){function e(){this.timeLastPageEventProcessed=0}return e.prototype.init=function(){this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth()},e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.handlePageScrollingKey=function(e){var t=e.which||e.keyCode,o=e.altKey,i=e.ctrlKey,n=this.mouseEventService.getGridCellForEvent(e).getGridCellDef();if(!n)return!1;var r=!1;switch(t){case a.Constants.KEY_PAGE_HOME:case a.Constants.KEY_PAGE_END:i||o||(this.onHomeOrEndKey(t),r=!0);break;case a.Constants.KEY_LEFT:case a.Constants.KEY_RIGHT:i&&!o&&(this.onCtrlLeftOrRight(t,n),r=!0);break;case a.Constants.KEY_UP:case a.Constants.KEY_DOWN:i&&!o&&(this.onCtrlUpOrDown(t,n),r=!0);break;case a.Constants.KEY_PAGE_DOWN:i||o||(this.onPageDown(n),r=!0);break;case a.Constants.KEY_PAGE_UP:i||o||(this.onPageUp(n),r=!0)}return r&&e.preventDefault(),r},e.prototype.isTimeSinceLastPageEventToRecent=function(){return(new Date).getTime()-this.timeLastPageEventProcessed<100},e.prototype.setTimeLastPageEventProcessed=function(){this.timeLastPageEventProcessed=(new Date).getTime()},e.prototype.onPageDown=function(e){if(!this.isTimeSinceLastPageEventToRecent()){var t=this.gridPanel.getVScrollPosition(),o=t.bottom-t.top;this.gridPanel.isHorizontalScrollShowing()&&(o-=this.scrollWidth);var i=this.paginationProxy.getPixelOffset(),n=t.top+o,r=this.paginationProxy.getRowIndexAtPixel(n+i),s=this.paginationProxy.getRow(e.rowIndex).rowTop+o-i,a=this.paginationProxy.getRowIndexAtPixel(s+i),l=this.paginationProxy.getPageLastRow();a>l&&(a=l),r>l&&(r=l),this.navigateTo(r,"top",null,a,e.column),this.setTimeLastPageEventProcessed()}},e.prototype.onPageUp=function(e){if(!this.isTimeSinceLastPageEventToRecent()){var t=this.gridPanel.getVScrollPosition(),o=t.bottom-t.top;this.gridPanel.isHorizontalScrollShowing()&&(o-=this.scrollWidth);var i=this.paginationProxy.getPixelOffset(),n=t.top,r=this.paginationProxy.getRowIndexAtPixel(n+i),s=this.paginationProxy.getRow(e.rowIndex),a=s.rowTop+s.rowHeight-o-i,l=this.paginationProxy.getRowIndexAtPixel(a+i),p=this.paginationProxy.getPageFirstRow();l<p&&(l=p),r<p&&(r=p),this.navigateTo(r,"bottom",null,l,e.column),this.setTimeLastPageEventProcessed()}},e.prototype.navigateTo=function(e,t,o,i,n){if(f._.exists(o)&&this.gridPanel.ensureColumnVisible(o),f._.exists(e)&&this.gridPanel.ensureIndexVisible(e,t),this.animationFrameService.flushAllFrames(),this.focusedCellController.setFocusedCell(i,n,null,!0),this.rangeController){var r=new s.GridCell({rowIndex:i,floating:null,column:n});this.rangeController.setRangeToCell(r)}},e.prototype.onCtrlUpOrDown=function(e,t){var o=e===a.Constants.KEY_UP?0:this.paginationProxy.getPageLastRow();this.navigateTo(o,null,t.column,o,t.column)},e.prototype.onCtrlLeftOrRight=function(e,t){var o=e===a.Constants.KEY_LEFT,i=this.columnController.getAllDisplayedColumns(),n=o?i[0]:i[i.length-1];this.navigateTo(t.rowIndex,null,n,t.rowIndex,n)},e.prototype.onHomeOrEndKey=function(e){var t=e===a.Constants.KEY_PAGE_HOME,o=this.columnController.getAllDisplayedColumns(),i=t?o[0]:o[o.length-1],n=t?0:this.paginationProxy.getPageLastRow();this.navigateTo(n,null,i,n,i)},i([r.Autowired("mouseEventService"),n("design:type",l.MouseEventService)],e.prototype,"mouseEventService",void 0),i([r.Autowired("paginationProxy"),n("design:type",p.PaginationProxy)],e.prototype,"paginationProxy",void 0),i([r.Autowired("focusedCellController"),n("design:type",u.FocusedCellController)],e.prototype,"focusedCellController",void 0),i([r.Autowired("animationFrameService"),n("design:type",c.AnimationFrameService)],e.prototype,"animationFrameService",void 0),i([r.Optional("rangeController"),n("design:type",Object)],e.prototype,"rangeController",void 0),i([r.Autowired("columnController"),n("design:type",d.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",h.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([r.Bean("navigationService")],e)}();t.NavigationService=g},9018:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s};Object.defineProperty(t,"__esModule",{value:!0});var n=o(72493),r=o(83423),s=[0,1996959894,-301047508,-1727442502,124634137,1886057615,-379345611,-1637575261,249268274,2044508324,-522852066,-1747789432,162941995,2125561021,-407360249,-1866523247,498536548,1789927666,-205950648,-2067906082,450548861,1843258603,-187386543,-2083289657,325883990,1684777152,-43845254,-1973040660,335633487,1661365465,-99664541,-1928851979,997073096,1281953886,-715111964,-1570279054,1006888145,1258607687,-770865667,-1526024853,901097722,1119000684,-608450090,-1396901568,853044451,1172266101,-589951537,-1412350631,651767980,1373503546,-925412992,-1076862698,565507253,1454621731,-809855591,-1195530993,671266974,1594198024,-972236366,-1324619484,795835527,1483230225,-1050600021,-1234817731,1994146192,31158534,-1731059524,-271249366,1907459465,112637215,-1614814043,-390540237,2013776290,251722036,-1777751922,-519137256,2137656763,141376813,-1855689577,-429695999,1802195444,476864866,-2056965928,-228458418,1812370925,453092731,-2113342271,-183516073,1706088902,314042704,-1950435094,-54949764,1658658271,366619977,-1932296973,-69972891,1303535960,984961486,-1547960204,-725929758,1256170817,1037604311,-1529756563,-740887301,1131014506,879679996,-1385723834,-631195440,1141124467,855842277,-1442165665,-586318647,1342533948,654459306,-1106571248,-921952122,1466479909,544179635,-1184443383,-832445281,1591671054,702138776,-1328506846,-942167884,1504918807,783551873,-1212326853,-1061524307,-306674912,-1698712650,62317068,1957810842,-355121351,-1647151185,81470997,1943803523,-480048366,-1805370492,225274430,2053790376,-468791541,-1828061283,167816743,2097651377,-267414716,-2029476910,503444072,1762050814,-144550051,-2140837941,426522225,1852507879,-19653770,-1982649376,282753626,1742555852,-105259153,-1900089351,397917763,1622183637,-690576408,-1580100738,953729732,1340076626,-776247311,-1497606297,1068828381,1219638859,-670225446,-1358292148,906185462,1090812512,-547295293,-1469587627,829329135,1181335161,-882789492,-1134132454,628085408,1382605366,-871598187,-1156888829,570562233,1426400815,-977650754,-1296233688,733239954,1555261956,-1026031705,-1244606671,752459403,1541320221,-1687895376,-328994266,1969922972,40735498,-1677130071,-351390145,1913087877,83908371,-1782625662,-491226604,2075208622,213261112,-1831694693,-438977011,2094854071,198958881,-2032938284,-237706686,1759359992,534414190,-2118248755,-155638181,1873836001,414664567,-2012718362,-15766928,1711684554,285281116,-1889165569,-127750551,1634467795,376229701,-1609899400,-686959890,1308918612,956543938,-1486412191,-799009033,1231636301,1047427035,-1362007478,-640263460,1088359270,936918e3,-1447252397,-558129467,1202900863,817233897,-1111625188,-893730166,1404277552,615818150,-1160759803,-841546093,1423857449,601450431,-1285129682,-1000256840,1567103746,711928724,-1274298825,-1022587231,1510334235,755167117],a=function(){function e(){var e=this;this.folders=[],this.files=[],this.addFolder=function(t){e.folders.push({path:t,created:new Date})}}return e.prototype.addFolders=function(e){e.forEach(this.addFolder)},e.prototype.addFile=function(e,t){this.files.push({path:e,created:new Date,content:t})},e.prototype.clearStream=function(){this.folders=[],this.files=[]},e.prototype.getContent=function(e){void 0===e&&(e="application/zip");var t=this.buildFileStream(),o=this.buildUint8Array(t);return this.clearStream(),new Blob([o],{type:e})},e.prototype.buildFileStream=function(e){void 0===e&&(e="");for(var t=this.folders.concat(this.files),o=t.length,i="",n=0,r=0,s=0,a=t;s<a.length;s++){var l=a[s],p=this.getHeader(l,n),u=p.fileHeader,c=p.folderHeader,d=p.content;n+=u.length+d.length,r+=c.length,e+=u+d,i+=c}return e+i+this.buildFolderEnd(o,r,n)},e.prototype.getHeader=function(e,t){var o=e.content,i=e.path,n=e.created,s=r._.utf8_encode,a=r._.decToHex,l=s(i),p=l!==i,u=this.convertTime(n),c=this.convertDate(n),d="";if(p){var h=a(1,1)+a(this.getFromCrc32Table(l),4)+l;d="up"+a(h.length,2)+h}var f="\n\0"+(p?"\0\b":"\0\0")+"\0\0"+a(u,2)+a(c,2)+a(o?this.getFromCrc32Table(o):0,4)+a(o?o.length:0,4)+a(o?o.length:0,4)+a(l.length,2)+a(d.length,2);return{fileHeader:"PK"+f+l+d,folderHeader:"PK\0"+f+"\0\0\0\0\0\0"+(o?"\0\0\0\0":"\0\0\0")+a(t,4)+l+d,content:o||""}},e.prototype.buildFolderEnd=function(e,t,o){var i=r._.decToHex;return"PK\0\0\0\0"+i(e,2)+i(e,2)+i(t,4)+i(o,4)+"\0\0"},e.prototype.buildUint8Array=function(e){for(var t=new Uint8Array(e.length),o=0;o<t.length;o++)t[o]=e.charCodeAt(o);return t},e.prototype.getFromCrc32Table=function(e,t){if(void 0===t&&(t=0),!e.length)return 0;t^=-1;for(var o=0,i=0;i<e.length;i++)o=e.charCodeAt(i),t=t>>>8^s[255&(t^o)];return~t},e.prototype.convertTime=function(e){var t=e.getHours();return t<<=6,t|=e.getMinutes(),(t<<=5)|e.getSeconds()/2},e.prototype.convertDate=function(e){var t=e.getFullYear()-1980;return t<<=4,t|=e.getMonth()+1,(t<<=5)|e.getDate()},i([n.Bean("zipContainer")],e)}();t.ZipContainer=a},10042:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var l=o(44081),p=o(40634),u=o(92427),c=o(24463),d=o(60843),h=o(19378),f=o(63405),g=o(45727),m=o(23054),y=o(72493),v=o(44871),C=o(98239),w=o(37132),E=o(42195),_=o(38427),b=o(34782),R=o(8534),O=o(41451),S=o(40797),A=o(50580),P=o(55090),T=o(69065),D=o(51755),N=o(83423),x=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rowCompsByIndex={},t.floatingTopRowComps=[],t.floatingBottomRowComps=[],t.refreshInProgress=!1,t}return n(t,e),t.prototype.registerGridCore=function(e){this.gridCore=e},t.prototype.agWire=function(e){this.logger=e.create("RowRenderer")},t.prototype.registerGridComp=function(e){this.gridPanel=e,this.rowContainers=this.gridPanel.getRowContainers(),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_BODY_SCROLL,this.redrawAfterScroll.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_BODY_HEIGHT_CHANGED,this.redrawAfterScroll.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,l.GridOptionsWrapper.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.printLayout=this.gridOptionsWrapper.getDomLayout()===g.Constants.DOM_LAYOUT_PRINT,this.embedFullWidthRows=this.printLayout||this.gridOptionsWrapper.isEmbedFullWidthRows(),this.redrawAfterModelUpdate()},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===g.Constants.DOM_LAYOUT_PRINT,t=e||this.gridOptionsWrapper.isEmbedFullWidthRows(),o=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,o&&this.redrawAfterModelUpdate()},t.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var e=Object.keys(this.rowCompsByIndex);this.removeRowComps(e)},t.prototype.onPageLoaded=function(e){N._.missing(e)&&(e={type:f.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!1}),this.onModelUpdated(e)},t.prototype.getAllCellsForColumn=function(e){var t=[];function o(o,i){var n=i.getCellForCol(e);n&&t.push(n)}return N._.iterateObject(this.rowCompsByIndex,o),N._.iterateObject(this.floatingBottomRowComps,o),N._.iterateObject(this.floatingTopRowComps,o),t},t.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.floatingTopRowComps,this.pinnedRowModel.getPinnedTopRowData(),this.rowContainers.floatingTopPinnedLeft,this.rowContainers.floatingTopPinnedRight,this.rowContainers.floatingTop,this.rowContainers.floatingTopFullWidth),this.refreshFloatingRows(this.floatingBottomRowComps,this.pinnedRowModel.getPinnedBottomRowData(),this.rowContainers.floatingBottomPinnedLeft,this.rowContainers.floatingBottomPinnedRight,this.rowContainers.floatingBottom,this.rowContainers.floatingBottomFullWith)},t.prototype.refreshFloatingRows=function(e,t,o,i,n,r){var s=this;e.forEach((function(e){e.destroy()})),e.length=0,t&&t.forEach((function(t){var a=new h.RowComp(s.$scope,n,o,i,r,t,s.beans,!1,!1,s.printLayout,s.embedFullWidthRows);a.init(),e.push(a)})),this.flushContainers(e)},t.prototype.onPinnedRowDataChanged=function(){this.redrawAfterModelUpdate({recycleRows:!0})},t.prototype.onModelUpdated=function(e){var t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)},t.prototype.getRenderedIndexesForRowNodes=function(e){var t=[];return N._.missing(e)||N._.iterateObject(this.rowCompsByIndex,(function(o,i){var n=i.getRowNode();e.indexOf(n)>=0&&t.push(o)})),t},t.prototype.redrawRows=function(e){if(e&&0!=e.length){var t=this.getRenderedIndexesForRowNodes(e);this.removeRowComps(t),this.redrawAfterModelUpdate({recycleRows:!0})}},t.prototype.getCellToRestoreFocusToAfterRefresh=function(e){var t=e.suppressKeepFocus?null:this.focusedCellController.getFocusCellToUseAfterRefresh();if(N._.missing(t))return null;var o=document.activeElement,i=this.gridOptionsWrapper.getDomData(o,m.CellComp.DOM_DATA_KEY_CELL_COMP);return N._.missing(i)?null:t},t.prototype.redrawAfterModelUpdate=function(e){void 0===e&&(e={}),this.getLockOnRefresh();var t=this.getCellToRestoreFocusToAfterRefresh(e);this.sizeContainerToPageHeight(),this.scrollToTopIfNewData(e);var o=!this.printLayout&&e.recycleRows,i=e.animate&&this.gridOptionsWrapper.isAnimateRows(),n=this.binRowComps(o);this.redraw(n,i),e.onlyBody||this.refreshFloatingRowComps(),this.restoreFocusedCell(t),this.releaseLockOnRefresh()},t.prototype.scrollToTopIfNewData=function(e){var t=e.newData||e.newPage,o=this.gridOptionsWrapper.isSuppressScrollOnNewData();t&&!o&&this.gridPanel.scrollToTop()},t.prototype.sizeContainerToPageHeight=function(){var e=[this.rowContainers.body,this.rowContainers.fullWidth,this.rowContainers.pinnedLeft,this.rowContainers.pinnedRight];if(this.printLayout)e.forEach((function(e){return e.setHeight(null)}));else{var t=this.paginationProxy.getCurrentPageHeight();0===t&&(t=1),this.maxDivHeightScaler.setModelHeight(t);var o=this.maxDivHeightScaler.getUiContainerHeight();e.forEach((function(e){return e.setHeight(o)}))}},t.prototype.getLockOnRefresh=function(){if(this.refreshInProgress)throw new Error("ag-Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, eg instead of api.refreshView(), call setTimeout(function(){api.refreshView(),0}). To see what part of your code that caused the refresh check this stacktrace.");this.refreshInProgress=!0},t.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},t.prototype.restoreFocusedCell=function(e){e&&this.focusedCellController.setFocusedCell(e.rowIndex,e.column,e.floating,!0)},t.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.forEachRowComp((function(t,o){o.stopEditing(e)}))},t.prototype.forEachCellComp=function(e){this.forEachRowComp((function(t,o){return o.forEachCellComp(e)}))},t.prototype.forEachRowComp=function(e){N._.iterateObject(this.rowCompsByIndex,e),N._.iterateObject(this.floatingTopRowComps,e),N._.iterateObject(this.floatingBottomRowComps,e)},t.prototype.addRenderedRowListener=function(e,t,o){var i=this.rowCompsByIndex[t];i&&i.addEventListener(e,o)},t.prototype.flashCells=function(e){void 0===e&&(e={}),this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){return e.flashCell()}))},t.prototype.refreshCells=function(e){void 0===e&&(e={});var t={forceRefresh:e.force,newData:!1};this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){return e.refreshCell(t)}))},t.prototype.getCellRendererInstances=function(e){var t=[];return this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){var o=e.getCellRenderer();o&&t.push(o)})),t},t.prototype.getCellEditorInstances=function(e){var t=[];return this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){var o=e.getCellEditor();o&&t.push(o)})),t},t.prototype.getEditingCells=function(){var e=[];return this.forEachCellComp((function(t){if(t.isEditing()){var o=t.getGridCell().getGridCellDef();e.push(o)}})),e},t.prototype.forEachCellCompFiltered=function(e,t,o){var i,n,r=this;N._.exists(e)&&(i={top:{},bottom:{},normal:{}},e.forEach((function(e){e.rowPinned===g.Constants.PINNED_TOP?i.top[e.id]=!0:e.rowPinned===g.Constants.PINNED_BOTTOM?i.bottom[e.id]=!0:i.normal[e.id]=!0}))),N._.exists(t)&&(n={},t.forEach((function(e){var t=r.columnController.getGridColumn(e);N._.exists(t)&&(n[t.getId()]=!0)})));var s=function(e){var t=e.getRowNode(),r=t.id,s=t.rowPinned;if(N._.exists(i))if(s===g.Constants.PINNED_BOTTOM){if(!i.bottom[r])return}else if(s===g.Constants.PINNED_TOP){if(!i.top[r])return}else if(!i.normal[r])return;e.forEachCellComp((function(e){var t=e.getColumn().getId();n&&!n[t]||o(e)}))};N._.iterateObject(this.rowCompsByIndex,(function(e,t){s(t)})),this.floatingTopRowComps&&this.floatingTopRowComps.forEach(s),this.floatingBottomRowComps&&this.floatingBottomRowComps.forEach(s)},t.prototype.destroy=function(){e.prototype.destroy.call(this);var t=Object.keys(this.rowCompsByIndex);this.removeRowComps(t)},t.prototype.binRowComps=function(e){var t,o=this,i={};return e?(t=[],N._.iterateObject(this.rowCompsByIndex,(function(e,n){var r=n.getRowNode();N._.exists(r.id)?(i[r.id]=n,delete o.rowCompsByIndex[e]):t.push(e)}))):t=Object.keys(this.rowCompsByIndex),this.removeRowComps(t),i},t.prototype.removeRowComps=function(e){var t=this;e.forEach((function(e){t.rowCompsByIndex[e].destroy(),delete t.rowCompsByIndex[e]}))},t.prototype.redrawAfterScroll=function(){this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh()},t.prototype.removeRowCompsNotToDraw=function(e){var t={};e.forEach((function(e){return t[e]=!0}));var o=Object.keys(this.rowCompsByIndex),i=N._.filter(o,(function(e){return!t[e]}));this.removeRowComps(i)},t.prototype.calculateIndexesToDraw=function(){var e=this,t=N._.createArrayOfNumbers(this.firstRenderedRow,this.lastRenderedRow);return N._.iterateObject(this.rowCompsByIndex,(function(o,i){var n=Number(o);(n<e.firstRenderedRow||n>e.lastRenderedRow)&&e.keepRowBecauseEditingOrFocused(i)&&t.push(n)})),t.sort((function(e,t){return e-t})),t},t.prototype.redraw=function(e,t,o){var i=this;void 0===t&&(t=!1),void 0===o&&(o=!1),this.maxDivHeightScaler.updateOffset(),this.workOutFirstAndLastRowsToRender();var n=this.calculateIndexesToDraw();this.removeRowCompsNotToDraw(n),this.printLayout&&(t=!1);var r=[],s=[];n.forEach((function(n){var a=i.createOrUpdateRowComp(n,e,t,o);N._.exists(a)&&(s.push(a),N._.pushAll(r,a.getAndClearNextVMTurnFunctions()))})),this.flushContainers(s),N._.executeNextVMTurn(r),!o||this.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout?this.destroyRowComps(e,t):this.beans.taskQueue.addP2Task(this.destroyRowComps.bind(this,e,t)),this.checkAngularCompile()},t.prototype.flushContainers=function(e){N._.iterateObject(this.rowContainers,(function(e,t){t&&t.flushRowTemplates()})),e.forEach((function(e){return e.afterFlush()}))},t.prototype.onDisplayedColumnsChanged=function(){var e=this.columnController.isPinningLeft(),t=this.columnController.isPinningRight();(this.pinningLeft!==e||t!==this.pinningRight)&&(this.pinningLeft=e,this.pinningRight=t,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},t.prototype.redrawFullWidthEmbeddedRows=function(){var e=[];N._.iterateObject(this.rowCompsByIndex,(function(t,o){if(o.isFullWidth()){var i=o.getRowNode().rowIndex;e.push(i.toString())}})),this.refreshFloatingRowComps(),this.removeRowComps(e),this.redrawAfterScroll()},t.prototype.refreshFullWidthRows=function(){var e=[];N._.iterateObject(this.rowCompsByIndex,(function(t,o){if(o.isFullWidth()){var i=o.getRowNode().rowIndex;e.push(i.toString())}})),this.removeRowComps(e),this.redrawAfterScroll()},t.prototype.createOrUpdateRowComp=function(e,t,o,i){var n,r=this.rowCompsByIndex[e];if(r||(n=this.paginationProxy.getRow(e),N._.exists(n)&&N._.exists(t)&&t[n.id]&&n.alreadyRendered&&(r=t[n.id],t[n.id]=null)),r)r.ensureDomOrder();else{if(n||(n=this.paginationProxy.getRow(e)),!N._.exists(n))return;r=this.createRowComp(n,o,i)}return n&&(n.alreadyRendered=!0),this.rowCompsByIndex[e]=r,r},t.prototype.destroyRowComps=function(e,t){var o=[];N._.iterateObject(e,(function(e,i){i&&(i.destroy(t),N._.pushAll(o,i.getAndClearDelayedDestroyFunctions()))})),N._.executeInAWhile(o)},t.prototype.checkAngularCompile=function(){var e=this;this.gridOptionsWrapper.isAngularCompileRows()&&window.setTimeout((function(){e.$scope.$apply()}),0)},t.prototype.workOutFirstAndLastRowsToRender=function(){var e,t;if(this.paginationProxy.isRowsToRender())if(this.printLayout)e=this.paginationProxy.getPageFirstRow(),t=this.paginationProxy.getPageLastRow();else{var o=this.paginationProxy?this.paginationProxy.getPixelOffset():0,i=this.maxDivHeightScaler.getOffset(),n=this.gridPanel.getVScrollPosition(),r=n.top,s=n.bottom,a=this.gridOptionsWrapper.getRowBufferInPixels(),l=r+o+i-a,p=s+o+i+a;this.ensureAllRowsInRangeHaveHeightsCalculated(l,p);var u=this.paginationProxy.getRowIndexAtPixel(l),c=this.paginationProxy.getRowIndexAtPixel(p),d=this.paginationProxy.getPageFirstRow(),h=this.paginationProxy.getPageLastRow();u<d&&(u=d),c>h&&(c=h),e=u,t=c}else e=0,t=-1;var m=this.gridOptionsWrapper.getDomLayout()===g.Constants.DOM_LAYOUT_NORMAL,y=this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction();m&&!y&&t-e>500&&(t=e+500);var v=e!==this.firstRenderedRow,C=t!==this.lastRenderedRow;if(v||C){this.firstRenderedRow=e,this.lastRenderedRow=t;var w={type:f.Events.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(w)}if(this.paginationProxy.isRowsToRender()){var E={type:f.Events.EVENT_FIRST_DATA_RENDERED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEventOnce(E)}},t.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(e,t){this.paginationProxy.ensureRowHeightsValid(e,t,-1,-1)&&(this.sizeContainerToPageHeight(),this.maxDivHeightScaler.updateOffset())},t.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},t.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},t.prototype.keepRowBecauseEditingOrFocused=function(e){var t=e.getRowNode(),o=this.focusedCellController.isRowNodeFocused(t),i=e.isEditing();return(o||i)&&!!this.paginationProxy.isRowPresent(t)||!1},t.prototype.createRowComp=function(e,t,o){var i=this.gridOptionsWrapper.isSuppressAnimationFrame(),n=o&&!i&&!this.printLayout,r=new h.RowComp(this.$scope,this.rowContainers.body,this.rowContainers.pinnedLeft,this.rowContainers.pinnedRight,this.rowContainers.fullWidth,e,this.beans,t,n,this.printLayout,this.embedFullWidthRows);return r.init(),r},t.prototype.getRenderedNodes=function(){var e=this.rowCompsByIndex;return Object.keys(e).map((function(t){return e[t].getRowNode()}))},t.prototype.navigateToNextCell=function(e,t,o,i){for(var n;;){var r=this.getComponentForCell(o).getColSpanningList();if(t===g.Constants.KEY_RIGHT&&r.length>1&&(o=new b.GridCell({rowIndex:o.rowIndex,column:r[r.length-1],floating:o.floating})),n=this.cellNavigationService.getNextCellToFocus(t,o),N._.missing(n))break;if(!this.gridOptionsWrapper.isGroupUseEntireRow())break;if(!this.paginationProxy.getRow(n.rowIndex).group)break}if(n&&(n=this.getComponentForCell(n).getGridCell()),i){var s=this.gridOptionsWrapper.getNavigateToNextCellFunc();if(N._.exists(s)){var a=s({key:t,previousCellDef:o.getGridCellDef(),nextCellDef:n?n.getGridCellDef():null,event:e});n=N._.exists(a)?new b.GridCell(a):null}}if(n&&(this.ensureCellVisible(n),this.focusedCellController.setFocusedCell(n.rowIndex,n.column,n.floating,!0),this.rangeController)){var l=new b.GridCell({rowIndex:n.rowIndex,floating:n.floating,column:n.column});this.rangeController.setRangeToCell(l)}},t.prototype.ensureCellVisible=function(e){N._.missing(e.floating)&&this.gridPanel.ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridPanel.ensureColumnVisible(e.column),this.gridPanel.horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()},t.prototype.startEditingCell=function(e,t,o){var i=this.getComponentForCell(e);i&&i.startRowOrCellEdit(t,o)},t.prototype.getComponentForCell=function(e){var t;switch(e.floating){case g.Constants.PINNED_TOP:t=this.floatingTopRowComps[e.rowIndex];break;case g.Constants.PINNED_BOTTOM:t=this.floatingBottomRowComps[e.rowIndex];break;default:t=this.rowCompsByIndex[e.rowIndex]}return t?t.getRenderedCellForColumn(e.column):null},t.prototype.onTabKeyDown=function(e,t){var o=t.shiftKey;this.moveToCellAfter(e,o)&&t.preventDefault()},t.prototype.tabToNextCell=function(e){var t=this.focusedCellController.getFocusedCell();if(N._.missing(t))return!1;var o=this.getComponentForCell(t);return!N._.missing(o)&&this.moveToCellAfter(o,e)},t.prototype.moveToCellAfter=function(e,t){return e.isEditing()?this.gridOptionsWrapper.isFullRowEdit()?this.moveToNextEditingRow(e,t):this.moveToNextEditingCell(e,t):this.moveToNextCellNotEditing(e,t)},t.prototype.moveToNextEditingCell=function(e,t){var o=e.getGridCell();e.stopEditing();var i=this.findNextCellToFocusOn(o,t,!0),n=N._.exists(i);return n&&(i.startEditingIfEnabled(null,null,!0),i.focusCell(!1)),n},t.prototype.moveToNextEditingRow=function(e,t){var o=e.getGridCell(),i=this.findNextCellToFocusOn(o,t,!0),n=N._.exists(i);return n&&this.moveEditToNextCellOrRow(e,i),n},t.prototype.moveToNextCellNotEditing=function(e,t){var o=e.getGridCell(),i=this.findNextCellToFocusOn(o,t,!1),n=N._.exists(i);return n&&i.focusCell(!0),n},t.prototype.moveEditToNextCellOrRow=function(e,t){var o=e.getGridCell(),i=t.getGridCell();if(o.rowIndex===i.rowIndex&&o.floating===i.floating)e.setFocusOutOnEditor(),t.setFocusInOnEditor();else{var n=e.getRenderedRow(),r=t.getRenderedRow();e.setFocusOutOnEditor(),n.stopEditing(),r.startRowEditing(),t.setFocusInOnEditor()}t.focusCell()},t.prototype.findNextCellToFocusOn=function(e,t,o){for(var i=e;;){i=this.cellNavigationService.getNextTabbedCell(i,t);var n=this.gridOptionsWrapper.getTabToNextCellFunc();if(N._.exists(n)){var r=n({backwards:t,editing:o,previousCellDef:e.getGridCellDef(),nextCellDef:i?i.getGridCellDef():null});i=N._.exists(r)?new b.GridCell(r):null}if(!i)return null;if(o){var s=this.lookupRowNodeForCell(i);if(!i.column.isCellEditable(s))continue}N._.missing(i.floating)&&this.gridPanel.ensureIndexVisible(i.rowIndex),i.column.isPinned()||this.gridPanel.ensureColumnVisible(i.column),this.gridPanel.horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames();var a=this.getComponentForCell(i);if(!N._.missing(a)&&!a.isSuppressNavigable())return this.rangeController&&(e=new b.GridCell({rowIndex:i.rowIndex,floating:i.floating,column:i.column}),this.rangeController.setRangeToCell(e)),a}},t.prototype.lookupRowNodeForCell=function(e){return e.floating===g.Constants.PINNED_TOP?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.floating===g.Constants.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},r([y.Autowired("paginationProxy"),s("design:type",O.PaginationProxy)],t.prototype,"paginationProxy",void 0),r([y.Autowired("columnController"),s("design:type",C.ColumnController)],t.prototype,"columnController",void 0),r([y.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([y.Autowired("$scope"),s("design:type",Object)],t.prototype,"$scope",void 0),r([y.Autowired("expressionService"),s("design:type",p.ExpressionService)],t.prototype,"expressionService",void 0),r([y.Autowired("templateService"),s("design:type",u.TemplateService)],t.prototype,"templateService",void 0),r([y.Autowired("valueService"),s("design:type",c.ValueService)],t.prototype,"valueService",void 0),r([y.Autowired("eventService"),s("design:type",d.EventService)],t.prototype,"eventService",void 0),r([y.Autowired("pinnedRowModel"),s("design:type",A.PinnedRowModel)],t.prototype,"pinnedRowModel",void 0),r([y.Autowired("loggerFactory"),s("design:type",w.LoggerFactory)],t.prototype,"loggerFactory",void 0),r([y.Autowired("focusedCellController"),s("design:type",E.FocusedCellController)],t.prototype,"focusedCellController",void 0),r([y.Autowired("cellNavigationService"),s("design:type",_.CellNavigationService)],t.prototype,"cellNavigationService",void 0),r([y.Autowired("columnApi"),s("design:type",v.ColumnApi)],t.prototype,"columnApi",void 0),r([y.Autowired("gridApi"),s("design:type",S.GridApi)],t.prototype,"gridApi",void 0),r([y.Autowired("beans"),s("design:type",P.Beans)],t.prototype,"beans",void 0),r([y.Autowired("maxDivHeightScaler"),s("design:type",D.MaxDivHeightScaler)],t.prototype,"maxDivHeightScaler",void 0),r([y.Autowired("animationFrameService"),s("design:type",T.AnimationFrameService)],t.prototype,"animationFrameService",void 0),r([y.Optional("rangeController"),s("design:type",Object)],t.prototype,"rangeController",void 0),r([a(0,y.Qualifier("loggerFactory")),s("design:type",Function),s("design:paramtypes",[w.LoggerFactory]),s("design:returntype",void 0)],t.prototype,"agWire",null),r([y.Bean("rowRenderer")],t)}(R.BeanStub);t.RowRenderer=x},10190:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(44081),a=o(98239),l=o(60843),p=o(37132),u=o(63405),c=o(72493),d=o(72493),h=o(72493),f=o(72493),g=function(){function e(){this.consuming=!1}return e.prototype.setBeans=function(e){this.logger=e.create("AlignedGridsService")},e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.init=function(){this.eventService.addEventListener(u.Events.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(u.Events.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(u.Events.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(u.Events.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(u.Events.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(u.Events.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},e.prototype.fireEvent=function(e){if(!this.consuming){var t=this.gridOptionsWrapper.getAlignedGrids();t&&t.forEach((function(t){if(t.api){var o=t.api.__getAlignedGridService();e(o)}}))}},e.prototype.onEvent=function(e){this.consuming=!0,e(),this.consuming=!1},e.prototype.fireColumnEvent=function(e){this.fireEvent((function(t){t.onColumnEvent(e)}))},e.prototype.fireScrollEvent=function(e){"horizontal"===e.direction&&this.fireEvent((function(t){t.onScrollEvent(e)}))},e.prototype.onScrollEvent=function(e){var t=this;this.onEvent((function(){t.gridPanel.setHorizontalScrollPosition(e.left)}))},e.prototype.getMasterColumns=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e)})):e.column&&t.push(e.column),t},e.prototype.getColumnIds=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e.getColId())})):e.column&&t.push(e.column.getColId()),t},e.prototype.onColumnEvent=function(e){var t=this;this.onEvent((function(){switch(e.type){case u.Events.EVENT_COLUMN_MOVED:case u.Events.EVENT_COLUMN_VISIBLE:case u.Events.EVENT_COLUMN_PINNED:case u.Events.EVENT_COLUMN_RESIZED:var o=e;t.processColumnEvent(o);break;case u.Events.EVENT_COLUMN_GROUP_OPENED:var i=e;t.processGroupOpenedEvent(i);break;case u.Events.EVENT_COLUMN_PIVOT_CHANGED:console.warn("ag-Grid: pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.")}}))},e.prototype.processGroupOpenedEvent=function(e){var t,o=e.columnGroup;if(o){var i=o.getGroupId();t=this.columnController.getOriginalColumnGroup(i)}o&&!t||(this.logger.log("onColumnEvent-> processing "+e+" expanded = "+o.isExpanded()),this.columnController.setColumnGroupOpened(t,o.isExpanded(),"alignedGridChanged"))},e.prototype.processColumnEvent=function(e){var t,o=this,i=e.column;if(i&&(t=this.columnController.getPrimaryColumn(i.getColId())),!i||t){var n=this.getColumnIds(e),r=this.getMasterColumns(e);switch(e.type){case u.Events.EVENT_COLUMN_MOVED:var s=e;this.logger.log("onColumnEvent-> processing "+e.type+" toIndex = "+s.toIndex),this.columnController.moveColumns(n,s.toIndex,"alignedGridChanged");break;case u.Events.EVENT_COLUMN_VISIBLE:var a=e;this.logger.log("onColumnEvent-> processing "+e.type+" visible = "+a.visible),this.columnController.setColumnsVisible(n,a.visible,"alignedGridChanged");break;case u.Events.EVENT_COLUMN_PINNED:var l=e;this.logger.log("onColumnEvent-> processing "+e.type+" pinned = "+l.pinned),this.columnController.setColumnsPinned(n,l.pinned,"alignedGridChanged");break;case u.Events.EVENT_COLUMN_RESIZED:var p=e;r.forEach((function(t){o.logger.log("onColumnEvent-> processing "+e.type+" actualWidth = "+t.getActualWidth()),o.columnController.setColumnWidth(t.getColId(),t.getActualWidth(),!1,p.finished,"alignedGridChanged")}))}var c=this.gridPanel.isVerticalScrollShowing();this.gridOptionsWrapper.getAlignedGrids().forEach((function(e){e.api.setAlwaysShowVerticalScroll(c)}))}},i([h.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([h.Autowired("columnController"),n("design:type",a.ColumnController)],e.prototype,"columnController",void 0),i([h.Autowired("eventService"),n("design:type",l.EventService)],e.prototype,"eventService",void 0),i([r(0,d.Qualifier("loggerFactory")),n("design:type",Function),n("design:paramtypes",[p.LoggerFactory]),n("design:returntype",void 0)],e.prototype,"setBeans",null),i([f.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([c.Bean("alignedGridsService")],e)}();t.AlignedGridsService=g},12240:(e,t,o)=>{o.d(t,{Di:()=>k,M3:()=>W,Tt:()=>C,b8:()=>pe,bD:()=>c,eM:()=>ee,hL:()=>g,iM:()=>re,u1:()=>w,u6:()=>Y});var i,n,r,s,a,l,p="vercel.ai.error",u=Symbol.for(p),c=class e extends(n=Error,i=u,n){constructor({name:e,message:t,cause:o}){super(t),this[i]=!0,this.name=e,this.cause=o}static isInstance(t){return e.hasMarker(t,p)}static hasMarker(e,t){const o=Symbol.for(t);return null!=e&&"object"==typeof e&&o in e&&"boolean"==typeof e[o]&&!0===e[o]}},d="AI_APICallError",h=`vercel.ai.error.${d}`,f=Symbol.for(h),g=class extends(s=c,r=f,s){constructor({message:e,url:t,requestBodyValues:o,statusCode:i,responseHeaders:n,responseBody:s,cause:a,isRetryable:l=null!=i&&(408===i||409===i||429===i||i>=500),data:p}){super({name:d,message:e,cause:a}),this[r]=!0,this.url=t,this.requestBodyValues=o,this.statusCode=i,this.responseHeaders=n,this.responseBody=s,this.isRetryable=l,this.data=p}static isInstance(e){return c.hasMarker(e,h)}},m="AI_EmptyResponseBodyError",y=`vercel.ai.error.${m}`,v=Symbol.for(y),C=class extends(l=c,a=v,l){constructor({message:e="Empty response body"}={}){super({name:m,message:e}),this[a]=!0}static isInstance(e){return c.hasMarker(e,y)}};function w(e){return null==e?"unknown error":"string"==typeof e?e:e instanceof Error?e.message:JSON.stringify(e)}var E,_,b,R,O,S,A,P,T,D,N,x,I="AI_InvalidArgumentError",F=`vercel.ai.error.${I}`,L=Symbol.for(F),k=class extends(_=c,E=L,_){constructor({message:e,cause:t,argument:o}){super({name:I,message:e,cause:t}),this[E]=!0,this.argument=o}static isInstance(e){return c.hasMarker(e,F)}},M="AI_InvalidPromptError",G=`vercel.ai.error.${M}`,V=Symbol.for(G),W=class extends(R=c,b=V,R){constructor({prompt:e,message:t,cause:o}){super({name:M,message:`Invalid prompt: ${t}`,cause:o}),this[b]=!0,this.prompt=e}static isInstance(e){return c.hasMarker(e,G)}},H=Symbol.for("vercel.ai.error.AI_InvalidResponseDataError"),j="AI_JSONParseError",B=`vercel.ai.error.${j}`,U=Symbol.for(B),Y=class extends(S=c,O=U,S){constructor({text:e,cause:t}){super({name:j,message:`JSON parsing failed: Text: ${e}.\nError message: ${w(t)}`,cause:t}),this[O]=!0,this.text=e}static isInstance(e){return c.hasMarker(e,B)}},z=Symbol.for("vercel.ai.error.AI_LoadAPIKeyError"),q=`vercel.ai.error.${"AI_LoadSettingError"}`,K=Symbol.for(q),$=`vercel.ai.error.${"AI_NoContentGeneratedError"}`,Z=Symbol.for($),Q="AI_NoSuchModelError",X=`vercel.ai.error.${Q}`,J=Symbol.for(X),ee=class extends(P=c,A=J,P){constructor({errorName:e=Q,modelId:t,modelType:o,message:i=`No such ${o}: ${t}`}){super({name:e,message:i}),this[A]=!0,this.modelId=t,this.modelType=o}static isInstance(e){return c.hasMarker(e,X)}},te=Symbol.for("vercel.ai.error.AI_TooManyEmbeddingValuesForCallError"),oe="AI_TypeValidationError",ie=`vercel.ai.error.${oe}`,ne=Symbol.for(ie),re=class e extends(D=c,T=ne,D){constructor({value:e,cause:t,context:o}){let i="Type validation failed";if((null==o?void 0:o.field)&&(i+=` for ${o.field}`),(null==o?void 0:o.entityName)||(null==o?void 0:o.entityId)){i+=" (";const e=[];o.entityName&&e.push(o.entityName),o.entityId&&e.push(`id: "${o.entityId}"`),i+=e.join(", "),i+=")"}super({name:oe,message:`${i}: Value: ${JSON.stringify(e)}.\nError message: ${w(t)}`,cause:t}),this[T]=!0,this.value=e,this.context=o}static isInstance(e){return c.hasMarker(e,ie)}static wrap({value:t,cause:o,context:i}){var n,r,s;return e.isInstance(o)&&o.value===t&&(null==(n=o.context)?void 0:n.field)===(null==i?void 0:i.field)&&(null==(r=o.context)?void 0:r.entityName)===(null==i?void 0:i.entityName)&&(null==(s=o.context)?void 0:s.entityId)===(null==i?void 0:i.entityId)?o:new e({value:t,cause:o,context:i})}},se="AI_UnsupportedFunctionalityError",ae=`vercel.ai.error.${se}`,le=Symbol.for(ae),pe=class extends(x=c,N=le,x){constructor({functionality:e,message:t=`'${e}' functionality not supported.`}){super({name:se,message:t}),this[N]=!0,this.functionality=e}static isInstance(e){return c.hasMarker(e,ae)}}},12598:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){this.existingIds={}}return e.prototype.getInstanceIdForKey=function(e){var t,o=this.existingIds[e];return t="number"!=typeof o?0:o+1,this.existingIds[e]=t,t},e}();t.GroupInstanceIdCreator=o},13650:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a,l=o(22131),p=o(47721),u=o(72493),c=o(44081),d=o(83423);!function(e){e[e.MAIN=0]="MAIN",e[e.CONDITION=1]="CONDITION"}(a=t.FilterConditionType||(t.FilterConditionType={}));var h={loadingOoo:"Loading...",empty:"Choose One",equals:"Equals",notEqual:"Not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"In range",lessThanOrEqual:"Less than or equals",greaterThanOrEqual:"Greater than or equals",filterOoo:"Filter...",contains:"Contains",notContains:"Not contains",startsWith:"Starts with",endsWith:"Ends with",searchOoo:"Search...",selectAll:"Select All",applyFilter:"Apply Filter",clearFilter:"Clear Filter",andCondition:"AND",orCondition:"OR"},f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.customFilterOptions={},t}return n(t,e),t.prototype.init=function(e){var t=this;if(this.filterParams=e,this.defaultFilter=this.filterParams.defaultOption,e.filterOptions&&e.filterOptions.forEach((function(e){"string"!=typeof e&&(e.displayKey?e.displayName?e.test?t.customFilterOptions[e.displayKey]=e:console.warn("ag-Grid: ignoring FilterOptionDef as it doesn't contain a 'test'"):console.warn("ag-Grid: ignoring FilterOptionDef as it doesn't contain a 'displayName'"):console.warn("ag-Grid: ignoring FilterOptionDef as it doesn't contain a 'displayKey'"))})),this.filterParams.filterOptions&&!this.defaultFilter){var o=this.filterParams.filterOptions[0];"string"==typeof o?this.defaultFilter=o:o.displayKey?this.defaultFilter=o.displayKey:console.warn("ag-Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}this.customInit(),this.selectedFilter=this.defaultFilter,this.selectedFilterCondition=this.defaultFilter,this.clearActive=!0===e.clearButton,this.applyActive=!0===e.applyButton||!0===e.apply,this.newRowsActionKeep="keep"===e.newRowsAction,this.setTemplate(this.generateTemplate()),d._.setVisible(this.eApplyButton,this.applyActive),this.applyActive&&this.addDestroyableEventListener(this.eApplyButton,"click",this.filterParams.filterChangedCallback),d._.setVisible(this.eClearButton,this.clearActive),this.clearActive&&this.addDestroyableEventListener(this.eClearButton,"click",this.onClearButton.bind(this));var i=this.applyActive||this.clearActive;d._.setVisible(this.eButtonsPanel,i),this.initialiseFilterBodyUi(a.MAIN),this.refreshFilterBodyUi(a.MAIN)},t.prototype.onClearButton=function(){this.setModel(null),this.onFilterChanged()},t.prototype.floatingFilter=function(e){if(""!==e){var t=this.modelFromFloatingFilter(e);this.setModel(t)}else this.resetState();this.onFilterChanged()},t.prototype.onNewRowsLoaded=function(){this.newRowsActionKeep||this.resetState()},t.prototype.getModel=function(){return this.isFilterActive()?this.isFilterConditionActive(a.CONDITION)?{condition1:this.serialize(a.MAIN),condition2:this.serialize(a.CONDITION),operator:this.conditionValue}:this.serialize(a.MAIN):null},t.prototype.getNullableModel=function(){return this.isFilterConditionActive(a.CONDITION)?{condition1:this.serialize(a.MAIN),condition2:this.serialize(a.CONDITION),operator:this.conditionValue}:this.serialize(a.MAIN)},t.prototype.setModel=function(e){if(e)if(e.operator){var t=e;this.parse(t.condition1,a.MAIN),this.parse(t.condition2,a.CONDITION),this.conditionValue=t.operator}else this.resetState(),this.parse(e,a.MAIN);else this.resetState();this.redrawCondition(),this.refreshFilterBodyUi(a.MAIN),this.refreshFilterBodyUi(a.CONDITION)},t.prototype.doOnFilterChanged=function(e){void 0===e&&(e=!1),this.filterParams.filterModifiedCallback();var t=this.applyActive&&e,o=!this.applyActive||t;return o&&this.filterParams.filterChangedCallback(),this.refreshFilterBodyUi(a.MAIN),this.refreshFilterBodyUi(a.CONDITION),o},t.prototype.onFilterChanged=function(e){void 0===e&&(e=!1),this.doOnFilterChanged(e),this.redrawCondition(),this.refreshFilterBodyUi(a.MAIN),this.refreshFilterBodyUi(a.CONDITION)},t.prototype.redrawCondition=function(){var e=this,t=this.eFilterBodyWrapper.querySelector(".ag-filter-condition");if(!t&&this.isFilterActive()&&this.acceptsBooleanLogic()){this.eConditionWrapper=d._.loadTemplate(this.createConditionTemplate(a.CONDITION)),this.eFilterBodyWrapper.appendChild(this.eConditionWrapper),this.wireQuerySelectors();var o=this.refreshOperatorUi(),i=o.andButton,n=o.orButton;this.addDestroyableEventListener(i,"change",(function(){e.conditionValue="AND",e.onFilterChanged()})),this.addDestroyableEventListener(n,"change",(function(){e.conditionValue="OR",e.onFilterChanged()})),this.initialiseFilterBodyUi(a.CONDITION)}else t&&!this.isFilterActive()?(this.conditionValue="AND",this.resetState(!0),this.eFilterBodyWrapper.removeChild(this.eConditionWrapper),this.eConditionWrapper=null):(this.refreshFilterBodyUi(a.CONDITION),this.eConditionWrapper&&this.refreshOperatorUi())},t.prototype.refreshOperatorUi=function(){var e=this.eConditionWrapper.querySelector(".and"),t=this.eConditionWrapper.querySelector(".or");return this.conditionValue=null==this.conditionValue?"AND":this.conditionValue,e.checked="AND"===this.conditionValue,t.checked="OR"===this.conditionValue,{andButton:e,orButton:t}},t.prototype.onFloatingFilterChanged=function(e){var t=e;if(null==t)this.setModel(null);else if(this.isFilterConditionActive(a.CONDITION)){var o={condition1:t.model,condition2:this.serialize(a.CONDITION),operator:this.conditionValue};this.setModel(o)}else this.setModel(t?t.model:null);return this.doOnFilterChanged(!!t&&t.apply)},t.prototype.generateFilterHeader=function(e){return""},t.prototype.generateTemplate=function(){var e=this.translate.bind(this),t=this.createConditionBody(a.MAIN);return"<div>\n <div class='ag-filter-body-wrapper'>"+(this.acceptsBooleanLogic()?this.wrapCondition(t):t)+'</div>\n <div class="ag-filter-apply-panel" id="applyPanel">\n <button type="button" id="clearButton">'+e("clearFilter")+'</button>\n <button type="button" id="applyButton">'+e("applyFilter")+"</button>\n </div>\n </div>"},t.prototype.acceptsBooleanLogic=function(){return!1},t.prototype.wrapCondition=function(e){return this.isFilterActive()?""+e+this.createConditionTemplate(a.CONDITION):e},t.prototype.createConditionTemplate=function(e){return'<div class="ag-filter-condition">\n <input id="andId" type="radio" class="and" name="booleanLogic" value='+this.translate("AND")+'\n checked="checked" /><label style="display: inline" for="andId">'+this.translate("andCondition")+'</label>\n <input id="orId" type="radio" class="or" name="booleanLogic" value="OR" /><label style="display: inline"\n for="orId">'+this.translate("orCondition")+"</label>\n <div>"+this.createConditionBody(e)+"</div>\n </div>"},t.prototype.createConditionBody=function(e){var t=this.bodyTemplate(e);return this.generateFilterHeader(e)+t},t.prototype.translate=function(e){var t=this.gridOptionsWrapper.getLocaleTextFunc(),o=h[e];return!o&&this.customFilterOptions[e]&&(o=this.customFilterOptions[e].displayName),t(e,o)},t.prototype.getDebounceMs=function(e){return this.applyActive?(null!=e.debounceMs&&console.warn("ag-Grid: debounceMs is ignored when applyButton = true"),0):null!=e.debounceMs?e.debounceMs:500},t.prototype.doesFilterHaveHiddenInput=function(e){var t=this.customFilterOptions[e];return t&&t.hideFilterInput},t.EMPTY="empty",t.EQUALS="equals",t.NOT_EQUAL="notEqual",t.LESS_THAN="lessThan",t.LESS_THAN_OR_EQUAL="lessThanOrEqual",t.GREATER_THAN="greaterThan",t.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",t.IN_RANGE="inRange",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.STARTS_WITH="startsWith",t.ENDS_WITH="endsWith",r([p.QuerySelector("#applyPanel"),s("design:type",HTMLElement)],t.prototype,"eButtonsPanel",void 0),r([p.QuerySelector(".ag-filter-body-wrapper"),s("design:type",HTMLElement)],t.prototype,"eFilterBodyWrapper",void 0),r([p.QuerySelector("#applyButton"),s("design:type",HTMLElement)],t.prototype,"eApplyButton",void 0),r([p.QuerySelector("#clearButton"),s("design:type",HTMLElement)],t.prototype,"eClearButton",void 0),r([u.Autowired("gridOptionsWrapper"),s("design:type",c.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),t}(l.Component);t.BaseFilter=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.doesFilterPass=function(e){var t=this.individualFilterPasses(e,a.MAIN);if(null==this.eTypeConditionSelector)return t;var o=this.individualFilterPasses(e,a.CONDITION);return"AND"===this.conditionValue?t&&o:t||o},t.prototype.init=function(t){e.prototype.init.call(this,t),this.suppressAndOrCondition=t.suppressAndOrCondition},t.prototype.customInit=function(){this.defaultFilter||(this.defaultFilter=this.getDefaultType())},t.prototype.acceptsBooleanLogic=function(){return!0!==this.suppressAndOrCondition},t.prototype.generateFilterHeader=function(e){var t=this,o=this.getApplicableFilterTypes(),i=(this.filterParams.filterOptions||o).map((function(e){var o="string"==typeof e?e:e.displayKey;return'<option value="'+o+'">'+t.translate(o)+"</option>"})),n=1==i.length?"disabled":"",r=e==a.MAIN?"filterType":"filterConditionType";return i.length<=0?"":'<div>\n <select class="ag-filter-select" id="'+r+'" '+n+">\n "+i.join("")+"\n </select>\n </div>"},t.prototype.initialiseFilterBodyUi=function(e){var t=this;e===a.MAIN?(this.setFilterType(this.selectedFilter,e),this.addDestroyableEventListener(this.eTypeSelector,"change",(function(){return t.onFilterTypeChanged(e)}))):(this.setFilterType(this.selectedFilterCondition,e),this.addDestroyableEventListener(this.eTypeConditionSelector,"change",(function(){return t.onFilterTypeChanged(e)})))},t.prototype.onFilterTypeChanged=function(e){var t=this.selectedFilter;e===a.MAIN?this.selectedFilter=this.eTypeSelector.value:this.selectedFilterCondition=this.eTypeConditionSelector.value,this.refreshFilterBodyUi(e);var o=this.doesFilterHaveHiddenInput(t);(this.isFilterActive()||o)&&(this.selectedFilter===f.EMPTY&&this.resetState(),this.onFilterChanged())},t.prototype.isFilterActive=function(){if(this.doesFilterHaveHiddenInput(this.selectedFilter))return!0;var e=this.filterValues(a.MAIN);if(e&&this.selectedFilter===f.IN_RANGE){var t=e;return null!=t[0]&&null!=t[1]}return null!=e},t.prototype.setFilterType=function(e,t){if(t===a.MAIN){if(this.selectedFilter=e,!this.eTypeSelector)return;this.eTypeSelector.value=e}else{if(this.selectedFilterCondition=e,!this.eTypeConditionSelector)return;this.eTypeConditionSelector.value=e}},t.prototype.isFilterConditionActive=function(e){return null!=this.filterValues(e)},r([p.QuerySelector("#filterType"),s("design:type",HTMLSelectElement)],t.prototype,"eTypeSelector",void 0),r([p.QuerySelector("#filterConditionType"),s("design:type",HTMLSelectElement)],t.prototype,"eTypeConditionSelector",void 0),t}(f);t.ComparableBaseFilter=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.nullComparator=function(e){var t=this;return function(o,i){if(null==i){var n=t.translateNull(e);if(t.selectedFilter===f.EMPTY)return 0;if(t.selectedFilter===f.EQUALS)return n?0:1;if(t.selectedFilter===f.GREATER_THAN)return n?1:-1;if(t.selectedFilter===f.GREATER_THAN_OR_EQUAL)return n?1:-1;if(t.selectedFilter===f.LESS_THAN_OR_EQUAL)return n?-1:1;if(t.selectedFilter===f.LESS_THAN)return n?-1:1;if(t.selectedFilter===f.NOT_EQUAL)return n?1:0}return t.comparator()(o,i)}},t.prototype.getDefaultType=function(){return f.EQUALS},t.prototype.translateNull=function(e){var o=e.indexOf("greater")>-1?"greaterThan":e.indexOf("lessThan")>-1?"lessThan":"equals";return this.filterParams.nullComparator&&this.filterParams.nullComparator[o]?this.filterParams.nullComparator[o]:t.DEFAULT_NULL_COMPARATOR[o]},t.prototype.individualFilterPasses=function(e,t){return this.doIndividualFilterPasses(e,t,t===a.MAIN?this.selectedFilter:this.selectedFilterCondition)},t.prototype.doIndividualFilterPasses=function(e,t,o){var i=this.filterParams.valueGetter(e.node),n=this.filterValues(t),r=Array.isArray(n)?n[0]:n,s=this.customFilterOptions[o];if(s&&(null!=r||s.hideFilterInput))return s.test(r,i);if(null==r)return t===a.MAIN||"AND"===this.conditionValue;var l=this.nullComparator(o),p=l(r,i);if(o===f.EMPTY)return!1;if(o===f.EQUALS)return 0===p;if(o===f.GREATER_THAN)return p>0;if(o===f.GREATER_THAN_OR_EQUAL)return p>=0;if(o===f.LESS_THAN_OR_EQUAL)return p<=0;if(o===f.LESS_THAN)return p<0;if(o===f.NOT_EQUAL)return 0!=p;var u=l(n[1],i);if(o===f.IN_RANGE)return this.filterParams.inRangeInclusive?p>=0&&u<=0:p>0&&u<0;throw new Error("Unexpected type of filter: "+o)},t.DEFAULT_NULL_COMPARATOR={equals:!1,lessThan:!1,greaterThan:!1},t}(g);t.ScalarBaseFilter=m},13887:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(60843),a=o(63405),l=o(98239),p=o(44871),u=o(40797),c=o(44081),d=function(){function e(){}return e.prototype.setScrollsVisible=function(e){if(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing){this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing;var t={type:a.Events.EVENT_SCROLL_VISIBILITY_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},e.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},e.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},i([r.Autowired("eventService"),n("design:type",s.EventService)],e.prototype,"eventService",void 0),i([r.Autowired("columnController"),n("design:type",l.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("columnApi"),n("design:type",p.ColumnApi)],e.prototype,"columnApi",void 0),i([r.Autowired("gridApi"),n("design:type",u.GridApi)],e.prototype,"gridApi",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",c.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Bean("scrollVisibleService")],e)}();t.ScrollVisibleService=d},15068:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(60843),s=o(63405),a=o(44081),l=o(54828),p=o(24463),u=o(98239),c=o(44871),d=o(72493),h=o(45727),f=o(88842),g=o(40797),m=o(83423),y=function(){function e(){this.childrenMapped={},this.selectable=!0,this.__objectId=e.OBJECT_ID_SEQUENCE++,this.alreadyRendered=!1,this.selected=!1}return e.prototype.setData=function(e){var t=this.data;this.data=e,this.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable();var o=this.createDataChangedEvent(e,t,!1);this.dispatchLocalEvent(o)},e.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},e.prototype.createDataChangedEvent=function(t,o,i){return{type:e.EVENT_DATA_CHANGED,node:this,oldData:o,newData:t,update:i}},e.prototype.createLocalRowEvent=function(e){return{type:e,node:this}},e.prototype.updateData=function(e){var t=this.data;this.data=e,this.updateDataOnDetailNode(),this.checkRowSelectable(),this.updateDataOnDetailNode();var o=this.createDataChangedEvent(e,t,!0);this.dispatchLocalEvent(o)},e.prototype.getRowIndexString=function(){return this.rowPinned===h.Constants.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===h.Constants.PINNED_BOTTOM?"b-"+this.rowIndex:this.rowIndex.toString()},e.prototype.createDaemonNode=function(){var t=new e;return this.context.wireBean(t),t.id=this.id,t.data=this.data,t.daemon=!0,t.selected=this.selected,t.level=this.level,t},e.prototype.setDataAndId=function(e,t){var o=m._.exists(this.id)?this.createDaemonNode():null,i=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),this.selectionController.syncInRowNode(this,o),this.checkRowSelectable();var n=this.createDataChangedEvent(e,i,!1);this.dispatchLocalEvent(n)},e.prototype.checkRowSelectable=function(){var e=this.gridOptionsWrapper.getIsRowSelectableFunc(),t=e&&m._.exists(this);this.setRowSelectable(!t||e(this))},e.prototype.setRowSelectable=function(t){this.selectable!==t&&(this.selectable=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_SELECTABLE_CHANGED)))},e.prototype.setId=function(e){var t=this.gridOptionsWrapper.getRowNodeIdFunc();t?this.data?this.id=t(this.data):this.id=void 0:this.id=e},e.prototype.isPixelInRange=function(e){return e>=this.rowTop&&e<this.rowTop+this.rowHeight},e.prototype.clearRowTop=function(){this.oldRowTop=this.rowTop,this.setRowTop(null)},e.prototype.setFirstChild=function(t){this.firstChild!==t&&(this.firstChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_FIRST_CHILD_CHANGED)))},e.prototype.setLastChild=function(t){this.lastChild!==t&&(this.lastChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_LAST_CHILD_CHANGED)))},e.prototype.setChildIndex=function(t){this.childIndex!==t&&(this.childIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_CHILD_INDEX_CHANGED)))},e.prototype.setRowTop=function(t){this.rowTop!==t&&(this.rowTop=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_TOP_CHANGED)))},e.prototype.setDragging=function(t){this.dragging!==t&&(this.dragging=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_DRAGGING_CHANGED)))},e.prototype.setAllChildrenCount=function(t){this.allChildrenCount!==t&&(this.allChildrenCount=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ALL_CHILDREN_COUNT_CHANGED)))},e.prototype.setRowHeight=function(t,o){void 0===o&&(o=!1),this.rowHeight=t,this.rowHeightEstimated=o,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HEIGHT_CHANGED))},e.prototype.setRowIndex=function(t){this.rowIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ROW_INDEX_CHANGED))},e.prototype.setUiLevel=function(t){this.uiLevel!==t&&(this.uiLevel=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_UI_LEVEL_CHANGED)))},e.prototype.setExpanded=function(t){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_EXPANDED_CHANGED));var o=this.createGlobalRowEvent(s.Events.EVENT_ROW_GROUP_OPENED);this.mainEventService.dispatchEvent(o),this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridApi.redrawRows({rowNodes:[this]})}},e.prototype.createGlobalRowEvent=function(e){return{type:e,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},e.prototype.dispatchLocalEvent=function(e){this.eventService&&this.eventService.dispatchEvent(e)},e.prototype.setDataValue=function(e,t){var o=this.columnController.getPrimaryColumn(e);this.valueService.setValue(this,o,t),this.dispatchCellChangedEvent(o,t)},e.prototype.setGroupValue=function(e,t){var o=this.columnController.getGridColumn(e);m._.missing(this.groupData)&&(this.groupData={}),this.groupData[o.getColId()]=t,this.dispatchCellChangedEvent(o,t)},e.prototype.setAggData=function(e){var t=this,o=m._.getAllKeysInObjects([this.aggData,e]);this.aggData=e,this.eventService&&o.forEach((function(e){var o=t.columnController.getGridColumn(e),i=t.aggData?t.aggData[e]:void 0;t.dispatchCellChangedEvent(o,i)}))},e.prototype.hasChildren=function(){return this.group||this.childrenAfterGroup&&this.childrenAfterGroup.length>0},e.prototype.isEmptyFillerNode=function(){return this.group&&m._.missingOrEmpty(this.childrenAfterGroup)},e.prototype.dispatchCellChangedEvent=function(t,o){var i={type:e.EVENT_CELL_CHANGED,node:this,column:t,newValue:o};this.dispatchLocalEvent(i)},e.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},e.prototype.isExpandable=function(){return this.hasChildren()||this.master},e.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},e.prototype.depthFirstSearch=function(e){this.childrenAfterGroup&&this.childrenAfterGroup.forEach((function(t){return t.depthFirstSearch(e)})),e(this)},e.prototype.calculateSelectedFromChildren=function(){var e,t=!1,o=!1,i=!1;if(this.childrenAfterGroup)for(var n=0;n<this.childrenAfterGroup.length;n++){var r=this.childrenAfterGroup[n];if(r.selectable)switch(r.isSelected()){case!0:t=!0;break;case!1:o=!0;break;default:i=!0}}e=i?void 0:!(!t||o)||!(!t&&o)&&void 0,this.selectThisNode(e)},e.prototype.setSelectedInitialValue=function(e){this.selected=e},e.prototype.setSelected=function(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1),this.setSelectedParams({newValue:e,clearSelection:t,suppressFinishActions:o,rangeSelect:!1})},e.prototype.isRowPinned=function(){return this.rowPinned===h.Constants.PINNED_TOP||this.rowPinned===h.Constants.PINNED_BOTTOM},e.prototype.setSelectedParams=function(e){var t=this.gridOptionsWrapper.isGroupSelectsChildren(),o=!0===e.newValue,i=!0===e.clearSelection,n=!0===e.suppressFinishActions,r=!0===e.rangeSelect,a=t&&!0===e.groupSelectsFiltered;if(void 0===this.id)return console.warn("ag-Grid: cannot select node until id for node is known"),0;if(this.rowPinned)return console.warn("ag-Grid: cannot select pinned rows"),0;if(this.footer)return this.sibling.setSelectedParams(e);if(r){var l=this.selectionController.getLastSelectedNode()!==this,p=this.gridOptionsWrapper.isRowSelectionMulti();if(l&&p)return this.doRowRangeSelection()}var u=0;if(a&&this.group||this.selectThisNode(o)&&u++,t&&this.group&&(u+=this.selectChildNodes(o,a)),!n){if(o&&(i||!this.gridOptionsWrapper.isRowSelectionMulti())&&(u+=this.selectionController.clearOtherNodes(this)),u>0){this.selectionController.updateGroupsFromChildrenSelections();var c={type:s.Events.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.mainEventService.dispatchEvent(c)}o&&this.selectionController.setLastSelectedNode(this)}return u},e.prototype.doRowRangeSelection=function(){var e=0,t=this.gridOptionsWrapper.isGroupSelectsChildren(),o=this.selectionController.getLastSelectedNode();this.rowModel.getNodesInRangeForSelection(this,o).forEach((function(o){o.group&&t||o.selectThisNode(!0)&&e++})),this.selectionController.updateGroupsFromChildrenSelections();var i={type:s.Events.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};return this.mainEventService.dispatchEvent(i),e},e.prototype.isParentOfNode=function(e){for(var t=this.parent;t;){if(t===e)return!0;t=t.parent}return!1},e.prototype.selectThisNode=function(t){if(!this.selectable||this.selected===t)return!1;this.selected=t,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_ROW_SELECTED));var o=this.createGlobalRowEvent(s.Events.EVENT_ROW_SELECTED);return this.mainEventService.dispatchEvent(o),!0},e.prototype.selectChildNodes=function(e,t){var o=t?this.childrenAfterFilter:this.childrenAfterGroup,i=0;if(!m._.missing(o)){for(var n=0;n<o.length;n++)i+=o[n].setSelectedParams({newValue:e,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:t});return i}},e.prototype.addEventListener=function(e,t){this.eventService||(this.eventService=new r.EventService),this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.onMouseEnter=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_ENTER))},e.prototype.onMouseLeave=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_LEAVE))},e.prototype.getFirstChildOfFirstChild=function(e){for(var t,o=this,i=!0,n=!1;i&&!n;){var r=o.parent;m._.exists(r)&&o.firstChild?r.rowGroupColumn===e&&(n=!0,t=r):i=!1,o=r}return n?t:null},e.OBJECT_ID_SEQUENCE=0,e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_DATA_CHANGED="dataChanged",e.EVENT_CELL_CHANGED="cellChanged",e.EVENT_ALL_CHILDREN_COUNT_CHANGED="allChildrenCountChanged",e.EVENT_MOUSE_ENTER="mouseEnter",e.EVENT_MOUSE_LEAVE="mouseLeave",e.EVENT_HEIGHT_CHANGED="heightChanged",e.EVENT_TOP_CHANGED="topChanged",e.EVENT_FIRST_CHILD_CHANGED="firstChildChanged",e.EVENT_LAST_CHILD_CHANGED="lastChildChanged",e.EVENT_CHILD_INDEX_CHANGED="childIndexChanged",e.EVENT_ROW_INDEX_CHANGED="rowIndexChanged",e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_SELECTABLE_CHANGED="selectableChanged",e.EVENT_UI_LEVEL_CHANGED="uiLevelChanged",e.EVENT_DRAGGING_CHANGED="draggingChanged",i([d.Autowired("eventService"),n("design:type",r.EventService)],e.prototype,"mainEventService",void 0),i([d.Autowired("gridOptionsWrapper"),n("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([d.Autowired("selectionController"),n("design:type",l.SelectionController)],e.prototype,"selectionController",void 0),i([d.Autowired("columnController"),n("design:type",u.ColumnController)],e.prototype,"columnController",void 0),i([d.Autowired("valueService"),n("design:type",p.ValueService)],e.prototype,"valueService",void 0),i([d.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([d.Autowired("context"),n("design:type",d.Context)],e.prototype,"context",void 0),i([d.Autowired("valueCache"),n("design:type",f.ValueCache)],e.prototype,"valueCache",void 0),i([d.Autowired("columnApi"),n("design:type",c.ColumnApi)],e.prototype,"columnApi",void 0),i([d.Autowired("gridApi"),n("design:type",g.GridApi)],e.prototype,"gridApi",void 0),e}();t.RowNode=y},15724:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(46379),l=o(72493),p=o(44081),u=o(83423),c=function(e){function t(t){var o=e.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return o.getGuiCalledOnChild=!1,o.cellEditor=t,o}return n(t,e),t.prototype.onKeyDown=function(e){u._.isUserSuppressingKeyboardEvent(this.gridOptionsWrapper,e,this.params.node,this.params.column,!0)||this.params.onKeyDown(e)},t.prototype.getGui=function(){return this.getGuiCalledOnChild||(this.appendChild(this.cellEditor.getGui()),this.getGuiCalledOnChild=!0),e.prototype.getGui.call(this)},t.prototype.init=function(o){var i=this;this.params=o,this.gridOptionsWrapper.setDomData(this.getGui(),t.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addDestroyFunc((function(){i.cellEditor.destroy&&i.cellEditor.destroy()})),this.addDestroyableEventListener(e.prototype.getGui.call(this),"keydown",this.onKeyDown.bind(this))},t.prototype.afterGuiAttached=function(){this.cellEditor.afterGuiAttached&&this.cellEditor.afterGuiAttached()},t.prototype.getValue=function(){return this.cellEditor.getValue()},t.prototype.isCancelBeforeStart=function(){if(this.cellEditor.isCancelBeforeStart)return this.cellEditor.isCancelBeforeStart()},t.prototype.isCancelAfterEnd=function(){if(this.cellEditor.isCancelAfterEnd)return this.cellEditor.isCancelAfterEnd()},t.prototype.focusIn=function(){this.cellEditor.focusIn&&this.cellEditor.focusIn()},t.prototype.focusOut=function(){this.cellEditor.focusOut&&this.cellEditor.focusOut()},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",r([l.Autowired("gridOptionsWrapper"),s("design:type",p.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),t}(a.PopupComponent);t.PopupEditorWrapper=c},15774:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a,l=o(22131),p=o(72493),u=o(44081),c=o(98239),d=o(26016),h=o(60843),f=o(63405),g=o(78481),m=o(18985),y=o(55e3),v=o(40797),C=o(45727),w=o(83423),E=o(32590);!function(e){e[e.COLUMN_GROUP=0]="COLUMN_GROUP",e[e.COLUMN=1]="COLUMN",e[e.FLOATING_FILTER=2]="FLOATING_FILTER"}(a=t.HeaderRowType||(t.HeaderRowType={}));var _=function(e){function t(t,o,i,n){var r=e.call(this,'<div class="ag-header-row" role="presentation"/>')||this;return r.headerComps={},r.dept=t,r.type=o,r.pinned=i,r.dropTarget=n,r}return n(t,e),t.prototype.forEachHeaderElement=function(e){var t=this;Object.keys(this.headerComps).forEach((function(o){e(t.headerComps[o])}))},t.prototype.destroy=function(){var t=Object.keys(this.headerComps);this.removeAndDestroyChildComponents(t),e.prototype.destroy.call(this)},t.prototype.removeAndDestroyChildComponents=function(e){var t=this;e.forEach((function(e){var o=t.headerComps[e];t.getGui().removeChild(o.getGui()),o.destroy(),delete t.headerComps[e]}))},t.prototype.onRowHeightChanged=function(){var e,t,o=this.columnController.getHeaderRowCount(),i=[],n=0;this.columnController.isPivotMode()?(n=0,e=this.gridOptionsWrapper.getPivotGroupHeaderHeight(),t=this.gridOptionsWrapper.getPivotHeaderHeight()):(this.gridOptionsWrapper.isFloatingFilter()&&o++,n=this.gridOptionsWrapper.isFloatingFilter()?1:0,e=this.gridOptionsWrapper.getGroupHeaderHeight(),t=this.gridOptionsWrapper.getHeaderHeight());for(var r=o-(1+n),s=0;s<r;s++)i.push(e);for(i.push(t),s=0;s<n;s++)i.push(this.gridOptionsWrapper.getFloatingFiltersHeight());var a=0;for(s=0;s<this.dept;s++)a+=i[s];this.getGui().style.top=a+"px",this.getGui().style.height=i[this.dept]+"px"},t.prototype.init=function(){this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addDestroyableEventListener(this.gridOptionsWrapper,u.GridOptionsWrapper.PROP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,u.GridOptionsWrapper.PROP_PIVOT_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,u.GridOptionsWrapper.PROP_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,u.GridOptionsWrapper.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,u.GridOptionsWrapper.PROP_FLOATING_FILTERS_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this))},t.prototype.onColumnResized=function(){this.setWidth()},t.prototype.setWidth=function(){var e=this.getWidthForRow();this.getGui().style.width=e+"px"},t.prototype.getWidthForRow=function(){return this.gridOptionsWrapper.getDomLayout()===C.Constants.DOM_LAYOUT_PRINT?w._.missing(this.pinned)?this.columnController.getContainerWidth(d.Column.PINNED_RIGHT)+this.columnController.getContainerWidth(d.Column.PINNED_LEFT)+this.columnController.getContainerWidth(null):0:this.columnController.getContainerWidth(this.pinned)},t.prototype.onGridColumnsChanged=function(){this.removeAndDestroyAllChildComponents()},t.prototype.removeAndDestroyAllChildComponents=function(){var e=Object.keys(this.headerComps);this.removeAndDestroyChildComponents(e)},t.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth()},t.prototype.getItemsAtDept=function(){var e=this;if(this.gridOptionsWrapper.getDomLayout()===C.Constants.DOM_LAYOUT_PRINT){if(w._.missing(this.pinned)){var t=[];return[d.Column.PINNED_LEFT,null,d.Column.PINNED_RIGHT].forEach((function(o){var i=e.columnController.getVirtualHeaderGroupRow(o,e.type==a.FLOATING_FILTER?e.dept-1:e.dept);t=t.concat(i)})),t}return[]}return this.columnController.getVirtualHeaderGroupRow(this.pinned,this.type==a.FLOATING_FILTER?this.dept-1:this.dept)},t.prototype.onVirtualColumnsChanged=function(){var e,t=this,o=Object.keys(this.headerComps),i=this.getItemsAtDept(),n=this.gridOptionsWrapper.isEnsureDomOrder();i.forEach((function(i){if(!i.isEmptyGroup()){var r,s,a=i.getUniqueId(),l=t.getGui();o.indexOf(a)>=0?(w._.removeFromArray(o,a),s=(r=t.headerComps[a]).getGui(),n&&w._.ensureDomOrder(l,s,e),e=s):(r=t.createHeaderComp(i),t.headerComps[a]=r,s=r.getGui(),n?w._.insertWithDomOrder(l,s,e):l.appendChild(s),e=s)}})),this.removeAndDestroyChildComponents(o)},t.prototype.createHeaderComp=function(e){var t;switch(this.type){case a.COLUMN:t=new g.HeaderWrapperComp(e,this.dropTarget,this.pinned);break;case a.COLUMN_GROUP:t=new m.HeaderGroupWrapperComp(e,this.dropTarget,this.pinned);break;case a.FLOATING_FILTER:t=new E.FloatingFilterWrapper(e)}return this.getContext().wireBean(t),t},r([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([p.Autowired("gridApi"),s("design:type",v.GridApi)],t.prototype,"gridApi",void 0),r([p.Autowired("columnController"),s("design:type",c.ColumnController)],t.prototype,"columnController",void 0),r([p.Autowired("eventService"),s("design:type",h.EventService)],t.prototype,"eventService",void 0),r([p.Autowired("filterManager"),s("design:type",y.FilterManager)],t.prototype,"filterManager",void 0),r([p.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(l.Component);t.HeaderRowComp=_},15959:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(22131),s=o(83423),a=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.refreshCount=0,o}return n(t,e),t.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e)},t.prototype.showDelta=function(e,t){var o=Math.abs(t),i=e.formatValue(o),n=s._.exists(i)?i:o,r=t>=0;this.eDelta.innerHTML=r?"↑"+n:"↓"+n,s._.addOrRemoveCssClass(this.eDelta,"ag-value-change-delta-up",r),s._.addOrRemoveCssClass(this.eDelta,"ag-value-change-delta-down",!r)},t.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var t=this.refreshCount;window.setTimeout((function(){t===e.refreshCount&&e.hideDeltaValue()}),2e3)},t.prototype.hideDeltaValue=function(){s._.removeCssClass(this.eValue,"ag-value-change-value-highlight"),s._.clearElement(this.eDelta)},t.prototype.refresh=function(e){var t=e.value;if(t!==this.lastValue){if(s._.exists(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:s._.exists(e.value)?this.eValue.innerHTML=t:s._.clearElement(this.eValue),"number"==typeof t&&"number"==typeof this.lastValue){var o=t-this.lastValue;this.showDelta(e,o)}return this.lastValue&&s._.addCssClass(this.eValue,"ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=t,!0}},t.TEMPLATE='<span><span class="ag-value-change-delta"></span><span class="ag-value-change-value"></span></span>',t}(r.Component);t.AnimateShowChangeCellRenderer=a},18954:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(44081),a=o(2461),l=o(86608),p=o(98239),u=o(83423),c=function(){function e(){}return e.prototype.execute=function(e){var t=this.sortController.getSortForRowController(),o=u._.exists(t)&&t.length>0,i=o&&u._.exists(e.rowNodeTransactions)&&this.gridOptionsWrapper.isDeltaSort(),n=i?this.calculateDirtyNodes(e.rowNodeTransactions):null,r=this.columnController.getValueColumns(),s=u._.missingOrEmpty(r);this.sortService.sort(t,o,i,n,e.changedPath,s)},e.prototype.calculateDirtyNodes=function(e){var t={},o=function(e){e&&e.forEach((function(e){return t[e.id]=!0}))};return e.forEach((function(e){o(e.add),o(e.update),o(e.remove)})),t},i([r.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("sortService"),n("design:type",a.SortService)],e.prototype,"sortService",void 0),i([r.Autowired("sortController"),n("design:type",l.SortController)],e.prototype,"sortController",void 0),i([r.Autowired("columnController"),n("design:type",p.ColumnController)],e.prototype,"columnController",void 0),i([r.Bean("sortStage")],e)}();t.SortStage=c},18985:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(22131),l=o(26016),p=o(74517),u=o(44871),c=o(98239),d=o(44081),h=o(97177),f=o(72493),g=o(34506),m=o(58342),y=o(38152),v=o(40797),C=o(85910),w=o(55090),E=o(81604),_=o(83423),b=function(e){function t(o,i,n){var r=e.call(this,t.TEMPLATE)||this;return r.childColumnsDestroyFuncs=[],r.columnGroup=o,r.dragSourceDropTarget=i,r.pinned=n,r}return n(t,e),t.prototype.postConstruct=function(){g.CssClassApplier.addHeaderClassesFromColDef(this.getComponentHolder(),this.getGui(),this.gridOptionsWrapper,null,this.columnGroup);var e=this.columnController.getDisplayNameForColumnGroup(this.columnGroup,"header");this.appendHeaderGroupComp(e),this.setupResize(),this.addClasses(),this.setupWidth(),this.addAttributes(),this.setupMovingCss(),this.setupTooltip(),this.addFeature(this.getContext(),new E.HoverFeature(this.columnGroup.getOriginalColumnGroup().getLeafColumns(),this.getGui()));var t=new y.SetLeftFeature(this.columnGroup,this.getGui(),this.beans);t.init(),this.addDestroyFunc(t.destroy.bind(t))},t.prototype.setupMovingCss=function(){var e=this;this.columnGroup.getOriginalColumnGroup().getLeafColumns().forEach((function(t){e.addDestroyableEventListener(t,l.Column.EVENT_MOVING_CHANGED,e.onColumnMovingChanged.bind(e))})),this.onColumnMovingChanged()},t.prototype.getComponentHolder=function(){return this.columnGroup.getColGroupDef()},t.prototype.getTooltipText=function(){var e=this.getComponentHolder();return e&&e.headerTooltip},t.prototype.setupTooltip=function(){var e=this.getTooltipText();null!=e&&(this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",e):this.beans.tooltipManager.registerTooltip(this))},t.prototype.onColumnMovingChanged=function(){_._.addOrRemoveCssClass(this.getGui(),"ag-header-cell-moving",this.columnGroup.isMoving())},t.prototype.addAttributes=function(){this.getGui().setAttribute("col-id",this.columnGroup.getUniqueId())},t.prototype.appendHeaderGroupComp=function(e){var t=this,o={displayName:e,columnGroup:this.columnGroup,setExpanded:function(e){t.columnController.setColumnGroupOpened(t.columnGroup.getOriginalColumnGroup(),e,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};if(!e){for(var i=this.columnGroup,n=i.getLeafColumns();i.getParent()&&i.getParent().getLeafColumns().length===n.length;)i=i.getParent();var r=i.getColGroupDef();r&&(e=r.headerName),e||(e=n?this.columnController.getDisplayNameForColumn(n[0],"header",!0):"")}var s=this.afterHeaderCompCreated.bind(this,e);this.userComponentFactory.newHeaderGroupComponent(o).then(s)},t.prototype.afterHeaderCompCreated=function(e,t){this.appendChild(t),this.setupMove(t.getGui(),e)},t.prototype.addClasses=function(){this.columnGroup.isPadding()?this.addCssClass("ag-header-group-cell-no-group"):this.addCssClass("ag-header-group-cell-with-group")},t.prototype.setupMove=function(e,t){var o=this;if(e&&!this.isSuppressMoving()){var i=this.columnGroup.getOriginalColumnGroup().getLeafColumns();if(e){var n={type:m.DragSourceType.HeaderCell,eElement:e,dragItemName:t,dragItemCallback:this.getDragItemForGroup.bind(this),dragSourceDropTarget:this.dragSourceDropTarget,dragStarted:function(){return i.forEach((function(e){return e.setMoving(!0,"uiColumnDragged")}))},dragStopped:function(){return i.forEach((function(e){return e.setMoving(!1,"uiColumnDragged")}))}};this.dragAndDropService.addDragSource(n,!0),this.addDestroyFunc((function(){return o.dragAndDropService.removeDragSource(n)}))}}},t.prototype.getDragItemForGroup=function(){var e=this.columnGroup.getOriginalColumnGroup().getLeafColumns(),t={};e.forEach((function(e){return t[e.getId()]=e.isVisible()}));var o=[];return this.columnController.getAllDisplayedColumns().forEach((function(t){e.indexOf(t)>=0&&(o.push(t),_._.removeFromArray(e,t))})),e.forEach((function(e){return o.push(e)})),{columns:o,visibleState:t}},t.prototype.isSuppressMoving=function(){var e=!1;return this.columnGroup.getLeafColumns().forEach((function(t){(t.getColDef().suppressMovable||t.isLockPosition())&&(e=!0)})),e||this.gridOptionsWrapper.isSuppressMovableColumns()},t.prototype.setupWidth=function(){this.addListenersToChildrenColumns(),this.addDestroyableEventListener(this.columnGroup,p.ColumnGroup.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.destroyListenersOnChildrenColumns.bind(this))},t.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},t.prototype.addListenersToChildrenColumns=function(){var e=this;this.destroyListenersOnChildrenColumns();var t=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach((function(o){o.addEventListener(l.Column.EVENT_WIDTH_CHANGED,t),o.addEventListener(l.Column.EVENT_VISIBLE_CHANGED,t),e.childColumnsDestroyFuncs.push((function(){o.removeEventListener(l.Column.EVENT_WIDTH_CHANGED,t),o.removeEventListener(l.Column.EVENT_VISIBLE_CHANGED,t)}))}))},t.prototype.destroyListenersOnChildrenColumns=function(){this.childColumnsDestroyFuncs.forEach((function(e){return e()})),this.childColumnsDestroyFuncs=[]},t.prototype.onWidthChanged=function(){this.getGui().style.width=this.columnGroup.getActualWidth()+"px"},t.prototype.setupResize=function(){var e=this;if(this.eHeaderCellResize=this.getRefElement("agResize"),this.columnGroup.isResizable()){var t=this.horizontalResizeService.addResizeBar({eResizeBar:this.eHeaderCellResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});this.addDestroyFunc(t),this.gridOptionsWrapper.isSuppressAutoSize()||this.eHeaderCellResize.addEventListener("dblclick",(function(t){var o=[];e.columnGroup.getDisplayedLeafColumns().forEach((function(e){e.getColDef().suppressAutoSize||o.push(e.getColId())})),o.length>0&&e.columnController.autoSizeColumns(o,"uiColumnResized")}))}else _._.removeFromParent(this.eHeaderCellResize)},t.prototype.onResizeStart=function(e){var t=this,o=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=_._.filter(o,(function(e){return e.isResizable()})),this.resizeStartWidth=0,this.resizeCols.forEach((function(e){return t.resizeStartWidth+=e.getActualWidth()})),this.resizeRatios=[],this.resizeCols.forEach((function(e){return t.resizeRatios.push(e.getActualWidth()/t.resizeStartWidth)}));var i=null;if(e&&(i=this.columnController.getDisplayedGroupAfter(this.columnGroup)),i){var n=i.getDisplayedLeafColumns();this.resizeTakeFromCols=_._.filter(n,(function(e){return e.isResizable()})),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach((function(e){return t.resizeTakeFromStartWidth+=e.getActualWidth()})),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach((function(e){return t.resizeTakeFromRatios.push(e.getActualWidth()/t.resizeTakeFromStartWidth)}))}else this.resizeTakeFromCols=null,this.resizeTakeFromStartWidth=null,this.resizeTakeFromRatios=null;_._.addCssClass(this.getGui(),"ag-column-resizing")},t.prototype.onResizing=function(e,t){var o=[],i=this.normaliseDragChange(t);o.push({columns:this.resizeCols,ratios:this.resizeRatios,width:this.resizeStartWidth+i}),this.resizeTakeFromCols&&o.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-i}),this.columnController.resizeColumnSets(o,e,"uiColumnDragged"),e&&_._.removeCssClass(this.getGui(),"ag-column-resizing")},t.prototype.normaliseDragChange=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==l.Column.PINNED_LEFT&&(t*=-1):this.pinned===l.Column.PINNED_RIGHT&&(t*=-1),t},t.TEMPLATE='<div class="ag-header-group-cell"><div ref="agResize" class="ag-header-cell-resize"></div></div>',r([f.Autowired("gridOptionsWrapper"),s("design:type",d.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([f.Autowired("columnController"),s("design:type",c.ColumnController)],t.prototype,"columnController",void 0),r([f.Autowired("horizontalResizeService"),s("design:type",h.HorizontalResizeService)],t.prototype,"horizontalResizeService",void 0),r([f.Autowired("dragAndDropService"),s("design:type",m.DragAndDropService)],t.prototype,"dragAndDropService",void 0),r([f.Autowired("userComponentFactory"),s("design:type",C.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),r([f.Autowired("gridApi"),s("design:type",v.GridApi)],t.prototype,"gridApi",void 0),r([f.Autowired("columnApi"),s("design:type",u.ColumnApi)],t.prototype,"columnApi",void 0),r([f.Autowired("beans"),s("design:type",w.Beans)],t.prototype,"beans",void 0),r([f.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.HeaderGroupWrapperComp=b},19378:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(23054),a=o(15068),l=o(26016),p=o(63405),u=o(22131),c=o(83423),d=function(e){function t(t,o,i,n,r,s,a,l,p,u,c){var d=e.call(this)||this;return d.eAllRowContainers=[],d.active=!0,d.rowContainerReadyCount=0,d.refreshNeeded=!1,d.columnRefreshPending=!1,d.cellComps={},d.createSecondPassFuncs=[],d.removeFirstPassFuncs=[],d.removeSecondPassFuncs=[],d.initialised=!1,d.parentScope=t,d.beans=a,d.bodyContainerComp=o,d.pinnedLeftContainerComp=i,d.pinnedRightContainerComp=n,d.fullWidthContainerComp=r,d.rowNode=s,d.rowIsEven=d.rowNode.rowIndex%2==0,d.paginationPage=d.beans.paginationProxy.getCurrentPage(),d.useAnimationFrameForCreate=p,d.printLayout=u,d.embedFullWidth=c,d.setAnimateFlags(l),d}return n(t,e),t.prototype.init=function(){var e=this;this.rowFocused=this.beans.focusedCellController.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.scope=this.createChildScopeOrNull(this.rowNode.data),this.setupRowContainers(),this.addListeners(),this.slideRowIn&&this.createSecondPassFuncs.push((function(){e.onTopChanged()})),this.fadeRowIn&&this.createSecondPassFuncs.push((function(){e.eAllRowContainers.forEach((function(e){return c._.removeCssClass(e,"ag-opacity-zero")}))}))},t.prototype.createTemplate=function(e,t){void 0===t&&(t=null);var o=[],i=this.rowNode.rowHeight,n=this.getInitialRowClasses(t).join(" "),r=c._.escape(this.rowNode.id),s=this.preProcessStylesFromGridOptions(),a=this.getRowBusinessKey(),l=c._.escape(a),p=this.getInitialRowTopStyle();return o.push("<div"),o.push(' role="row"'),o.push(' row-index="'+this.rowNode.getRowIndexString()+'"'),o.push(r?' row-id="'+r+'"':""),o.push(a?' row-business-key="'+l+'"':""),o.push(' comp-id="'+this.getCompId()+'"'),o.push(' class="'+n+'"'),o.push(' style="height: '+i+"px; "+p+" "+s+'">'),o.push(e),o.push("</div>"),o.join("")},t.prototype.getCellForCol=function(e){var t=this.cellComps[e.getColId()];return t?t.getGui():null},t.prototype.afterFlush=function(){this.initialised||(this.initialised=!0,this.executeProcessRowPostCreateFunc())},t.prototype.executeProcessRowPostCreateFunc=function(){var e=this.beans.gridOptionsWrapper.getProcessRowPostCreateFunc();e&&e({eRow:this.eBodyRow,ePinnedLeftRow:this.ePinnedLeftRow,ePinnedRightRow:this.ePinnedRightRow,node:this.rowNode,api:this.beans.gridOptionsWrapper.getApi(),rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()})},t.prototype.getInitialRowTopStyle=function(){if(this.printLayout)return"";var e=this.slideRowIn?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,t=this.applyPaginationOffset(e),o=this.beans.maxDivHeightScaler.getRealPixelPosition(t);return this.beans.gridOptionsWrapper.isSuppressRowTransform()?"top: "+o+"px; ":"transform: translateY("+o+"px);"},t.prototype.getRowBusinessKey=function(){var e=this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc();if("function"==typeof e)return e(this.rowNode)},t.prototype.areAllContainersReady=function(){return 3===this.rowContainerReadyCount},t.prototype.lazyCreateCells=function(e,t){if(this.active){var o=this.createCells(e);t.innerHTML=o.template,this.callAfterRowAttachedOnCells(o.cellComps,t),this.rowContainerReadyCount++,this.areAllContainersReady()&&this.refreshNeeded&&this.refreshCells()}},t.prototype.createRowContainer=function(e,t,o){var i=this,n=this.useAnimationFrameForCreate,r=n?{cellComps:[],template:""}:this.createCells(t),s=this.createTemplate(r.template);e.appendRowTemplate(s,(function(){var s=e.getRowElement(i.getCompId());i.afterRowAttached(e,s),o(s),n?i.beans.taskQueue.addP1Task(i.lazyCreateCells.bind(i,t,s),i.rowNode.rowIndex):(i.callAfterRowAttachedOnCells(r.cellComps,s),i.rowContainerReadyCount=3)}))},t.prototype.createChildScopeOrNull=function(e){if(!this.beans.gridOptionsWrapper.isAngularCompileRows())return null;var t=this.parentScope.$new();return t.data=r({},e),t.rowNode=this.rowNode,t.context=this.beans.gridOptionsWrapper.getContext(),this.addDestroyFunc((function(){t.$destroy(),t.data=null,t.rowNode=null,t.context=null})),t},t.prototype.setupRowContainers=function(){var e=this.beans.gridOptionsWrapper.getIsFullWidthCellFunc(),o=!!e&&e(this.rowNode),i=this.beans.doingMasterDetail&&this.rowNode.detail,n=this.rowNode.group&&this.beans.gridOptionsWrapper.isGroupUseEntireRow();this.rowNode.stub?this.createFullWidthRows(t.LOADING_CELL_RENDERER,t.LOADING_CELL_RENDERER_COMP_NAME):i?this.createFullWidthRows(t.DETAIL_CELL_RENDERER,t.DETAIL_CELL_RENDERER_COMP_NAME):o?this.createFullWidthRows(t.FULL_WIDTH_CELL_RENDERER,null):n?this.createFullWidthRows(t.GROUP_ROW_RENDERER,t.GROUP_ROW_RENDERER_COMP_NAME):this.setupNormalRowContainers()},t.prototype.setupNormalRowContainers=function(){var e,t,o,i=this;this.printLayout?(e=this.beans.columnController.getAllDisplayedColumns(),t=[],o=[]):(e=this.beans.columnController.getAllDisplayedCenterVirtualColumnsForRow(this.rowNode),t=this.beans.columnController.getDisplayedLeftColumnsForRow(this.rowNode),o=this.beans.columnController.getDisplayedRightColumnsForRow(this.rowNode)),this.createRowContainer(this.bodyContainerComp,e,(function(e){return i.eBodyRow=e})),this.createRowContainer(this.pinnedRightContainerComp,o,(function(e){return i.ePinnedRightRow=e})),this.createRowContainer(this.pinnedLeftContainerComp,t,(function(e){return i.ePinnedLeftRow=e}))},t.prototype.createFullWidthRows=function(e,t){var o=this;this.fullWidthRow=!0,this.embedFullWidth?(this.createFullWidthRowContainer(this.bodyContainerComp,null,null,e,t,(function(e){o.eFullWidthRowBody=e}),(function(e){o.fullWidthRowComponentBody=e})),this.printLayout||(this.createFullWidthRowContainer(this.pinnedLeftContainerComp,l.Column.PINNED_LEFT,"ag-cell-last-left-pinned",e,t,(function(e){o.eFullWidthRowLeft=e}),(function(e){o.fullWidthRowComponentLeft=e})),this.createFullWidthRowContainer(this.pinnedRightContainerComp,l.Column.PINNED_RIGHT,"ag-cell-first-right-pinned",e,t,(function(e){o.eFullWidthRowRight=e}),(function(e){o.fullWidthRowComponentRight=e})))):this.createFullWidthRowContainer(this.fullWidthContainerComp,null,null,e,t,(function(e){o.eFullWidthRow=e}),(function(e){o.fullWidthRowComponent=e}))},t.prototype.setAnimateFlags=function(e){if(e){var t=c._.exists(this.rowNode.oldRowTop);this.slideRowIn=t,this.fadeRowIn=!t}else this.slideRowIn=!1,this.fadeRowIn=!1},t.prototype.isEditing=function(){return this.editingRow},t.prototype.stopRowEditing=function(e){this.stopEditing(e)},t.prototype.isFullWidth=function(){return this.fullWidthRow},t.prototype.addListeners=function(){this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_EXPANDED_CHANGED,this.onExpandedChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this));var e=this.beans.eventService;this.addDestroyableEventListener(e,p.Events.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this))},t.prototype.onGridColumnsChanged=function(){this.removeRenderedCells(Object.keys(this.cellComps))},t.prototype.onRowNodeDataChanged=function(e){this.forEachCellComp((function(t){return t.refreshCell({suppressFlash:!e.update,newData:!e.update})})),this.onRowSelected(),this.postProcessCss()},t.prototype.onRowNodeCellChanged=function(e){this.postProcessCss()},t.prototype.postProcessCss=function(){this.postProcessStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},t.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},t.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-dragging",e)}))},t.prototype.onExpandedChanged=function(){var e=this.rowNode;this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-group-expanded",e.expanded)})),this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-group-contracted",!e.expanded)}))},t.prototype.onDisplayedColumnsChanged=function(){this.fullWidthRow||this.refreshCells()},t.prototype.destroyFullWidthComponents=function(){this.fullWidthRowComponent&&(this.fullWidthRowComponent.destroy&&this.fullWidthRowComponent.destroy(),this.fullWidthRowComponent=null),this.fullWidthRowComponentBody&&(this.fullWidthRowComponentBody.destroy&&this.fullWidthRowComponentBody.destroy(),this.fullWidthRowComponent=null),this.fullWidthRowComponentLeft&&(this.fullWidthRowComponentLeft.destroy&&this.fullWidthRowComponentLeft.destroy(),this.fullWidthRowComponentLeft=null),this.fullWidthRowComponentRight&&(this.fullWidthRowComponentRight.destroy&&this.fullWidthRowComponentRight.destroy(),this.fullWidthRowComponent=null)},t.prototype.getContainerForCell=function(e){switch(e){case l.Column.PINNED_LEFT:return this.ePinnedLeftRow;case l.Column.PINNED_RIGHT:return this.ePinnedRightRow;default:return this.eBodyRow}},t.prototype.onVirtualColumnsChanged=function(){this.fullWidthRow||this.refreshCells()},t.prototype.onColumnResized=function(){this.fullWidthRow||this.refreshCells()},t.prototype.refreshCells=function(){if(this.areAllContainersReady())if(this.beans.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout)this.refreshCellsInAnimationFrame();else{if(this.columnRefreshPending)return;this.beans.taskQueue.addP1Task(this.refreshCellsInAnimationFrame.bind(this),this.rowNode.rowIndex)}else this.refreshNeeded=!0},t.prototype.refreshCellsInAnimationFrame=function(){if(this.active){var e,t,o;this.columnRefreshPending=!1,this.printLayout?(e=this.beans.columnController.getAllDisplayedColumns(),t=[],o=[]):(e=this.beans.columnController.getAllDisplayedCenterVirtualColumnsForRow(this.rowNode),t=this.beans.columnController.getDisplayedLeftColumnsForRow(this.rowNode),o=this.beans.columnController.getDisplayedRightColumnsForRow(this.rowNode)),this.insertCellsIntoContainer(this.eBodyRow,e),this.insertCellsIntoContainer(this.ePinnedLeftRow,t),this.insertCellsIntoContainer(this.ePinnedRightRow,o);var i=Object.keys(this.cellComps);e.forEach((function(e){return c._.removeFromArray(i,e.getId())})),t.forEach((function(e){return c._.removeFromArray(i,e.getId())})),o.forEach((function(e){return c._.removeFromArray(i,e.getId())}));var n=c._.filter(i,this.isCellEligibleToBeRemoved.bind(this));this.removeRenderedCells(n)}},t.prototype.removeRenderedCells=function(e){var t=this;e.forEach((function(e){var o=t.cellComps[e];c._.missing(o)||(o.detach(),o.destroy(),t.cellComps[e]=null)}))},t.prototype.isCellEligibleToBeRemoved=function(e){var t=this.beans.columnController.getAllDisplayedColumns(),o=!0,i=this.cellComps[e];if(!i)return o;if(this.isCellInWrongRow(i))return o;var n=i.isEditing(),r=this.beans.focusedCellController.isCellFocused(i.getGridCell());if(n||r){var s=i.getColumn();return!(t.indexOf(s)>=0)&&o}return o},t.prototype.ensureCellInCorrectContainer=function(e){if(!this.printLayout){var t=e.getGui(),o=e.getColumn().getPinned(),i=this.getContainerForCell(o),n=e.getParentRow();n!==i&&(n&&n.removeChild(t),i.appendChild(t),e.setParentRow(i))}},t.prototype.isCellInWrongRow=function(e){var t=e.getColumn(),o=this.getContainerForCell(t.getPinned());return e.getParentRow()!==o},t.prototype.insertCellsIntoContainer=function(e,t){var o=this;if(e){var i=[],n=[];t.forEach((function(t){var r=t.getId(),s=o.cellComps[r];s?o.ensureCellInCorrectContainer(s):o.createNewCell(t,e,i,n)})),i.length>0&&(c._.appendHtml(e,i.join("")),this.callAfterRowAttachedOnCells(n,e))}},t.prototype.addDomData=function(e){var o=this.beans.gridOptionsWrapper;o.setDomData(e,t.DOM_DATA_KEY_RENDERED_ROW,this),this.addDestroyFunc((function(){o.setDomData(e,t.DOM_DATA_KEY_RENDERED_ROW,null)}))},t.prototype.createNewCell=function(e,t,o,i){var n=new s.CellComp(this.scope,this.beans,e,this.rowNode,this,!1,this.printLayout),r=n.getCreateTemplate();o.push(r),i.push(n),this.cellComps[e.getId()]=n,n.setParentRow(t)},t.prototype.onMouseEvent=function(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t)}},t.prototype.createRowEvent=function(e,t){return{type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),event:t}},t.prototype.createRowEventWithSource=function(e,t){var o=this.createRowEvent(e,t);return o.source=this,o},t.prototype.onRowDblClick=function(e){if(!c._.isStopPropagationForAgGrid(e)){var t=this.createRowEventWithSource(p.Events.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)}},t.prototype.onRowClick=function(e){if(!c._.isStopPropagationForAgGrid(e)){var t=this.createRowEventWithSource(p.Events.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(t);var o=e.ctrlKey||e.metaKey,i=e.shiftKey;if(!this.rowNode.group&&this.rowNode.selectable&&!this.rowNode.rowPinned&&this.beans.gridOptionsWrapper.isRowSelection()&&!this.beans.gridOptionsWrapper.isSuppressRowClickSelection()){var n=this.beans.gridOptionsWrapper.isRowMultiSelectWithClick(),r=this.beans.gridOptionsWrapper.isRowDeselection();if(this.rowNode.isSelected())n?this.rowNode.setSelectedParams({newValue:!1}):o?r&&this.rowNode.setSelectedParams({newValue:!1}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!0});else{var s=!n&&!o;this.rowNode.setSelectedParams({newValue:!0,clearSelection:s,rangeSelect:i})}}}},t.prototype.createFullWidthRowContainer=function(e,t,o,i,n,r,s){var a=this,l=this.createTemplate("",o);e.appendRowTemplate(l,(function(){var o=e.getRowElement(a.getCompId()),l=a.createFullWidthParams(o,t),p=a.beans.userComponentFactory.newFullWidthCellRenderer(l,i,n);p?(p.then((function(e){if(a.isAlive()){var t=e.getGui();o.appendChild(t),s(e)}else e.destroy&&e.destroy()})),a.afterRowAttached(e,o),r(o),a.beans.doingMasterDetail&&a.rowNode.detail||a.angular1Compile(o)):console.error("ag-Grid: fullWidthCellRenderer not defined")}))},t.prototype.angular1Compile=function(e){this.scope&&this.beans.$compile(e)(this.scope)},t.prototype.createFullWidthParams=function(e,t){return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,$scope:this.scope?this.scope:this.parentScope,$compile:this.beans.$compile,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this)}},t.prototype.getInitialRowClasses=function(e){var t=[],o=this.beans.gridOptionsWrapper.isTreeData(),i=this.rowNode;return c._.exists(e)&&t.push(e),t.push("ag-row"),t.push(this.rowFocused?"ag-row-focus":"ag-row-no-focus"),this.fadeRowIn&&t.push("ag-opacity-zero"),t.push(this.rowIsEven?"ag-row-even":"ag-row-odd"),i.isSelected()&&t.push("ag-row-selected"),i.group?(t.push("ag-row-group"),t.push("ag-row-level-"+i.level),i.footer&&t.push("ag-row-footer")):t.push("ag-row-level-"+(i.parent?i.parent.level+1:"0")),i.stub&&t.push("ag-row-stub"),this.fullWidthRow&&t.push("ag-full-width-row"),(o?i.allChildrenCount:i.group&&!i.footer)&&t.push(i.expanded?"ag-row-group-expanded":"ag-row-group-contracted"),i.dragging&&t.push("ag-row-dragging"),c._.pushAll(t,this.processClassesFromGridOptions()),c._.pushAll(t,this.preProcessRowClassRules()),t.push(this.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),this.firstRowOnPage=this.isFirstRowOnPage(),this.lastRowOnPage=this.isLastRowOnPage(),this.firstRowOnPage&&t.push("ag-row-first"),this.lastRowOnPage&&t.push("ag-row-last"),t},t.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},t.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},t.prototype.onModelUpdated=function(){var e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-first",e)}))),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.eAllRowContainers.forEach((function(e){return c._.addOrRemoveCssClass(e,"ag-row-last",t)})))},t.prototype.preProcessRowClassRules=function(){var e=[];return this.processRowClassRules((function(t){e.push(t)}),(function(e){})),e},t.prototype.processRowClassRules=function(e,t){this.beans.stylingService.processClassRules(this.beans.gridOptionsWrapper.rowClassRules(),{value:void 0,colDef:void 0,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext()},e,t)},t.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),this.forEachCellComp((function(t){t.stopEditing(e)})),this.editingRow){if(!e){var t=this.createRowEvent(p.Events.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(t)}this.setEditingRow(!1)}},t.prototype.setEditingRow=function(e){this.editingRow=e,this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-editing",e)}));var t=e?this.createRowEvent(p.Events.EVENT_ROW_EDITING_STARTED):this.createRowEvent(p.Events.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(t)},t.prototype.startRowEditing=function(e,t,o){void 0===e&&(e=null),void 0===t&&(t=null),void 0===o&&(o=null),this.editingRow||(this.forEachCellComp((function(i){var n=i===o;n?i.startEditingIfEnabled(e,t,n):i.startEditingIfEnabled(null,null,n)})),this.setEditingRow(!0))},t.prototype.forEachCellComp=function(e){c._.iterateObject(this.cellComps,(function(t,o){o&&e(o)}))},t.prototype.postProcessClassesFromGridOptions=function(){var e=this,t=this.processClassesFromGridOptions();t&&t.length&&t.forEach((function(t){e.eAllRowContainers.forEach((function(e){return c._.addCssClass(e,t)}))}))},t.prototype.postProcessRowClassRules=function(){var e=this;this.processRowClassRules((function(t){e.eAllRowContainers.forEach((function(e){return c._.addCssClass(e,t)}))}),(function(t){e.eAllRowContainers.forEach((function(e){return c._.removeCssClass(e,t)}))}))},t.prototype.processClassesFromGridOptions=function(){var e=[],t=function(t){"string"==typeof t?e.push(t):Array.isArray(t)&&t.forEach((function(t){return e.push(t)}))},o=this.beans.gridOptionsWrapper.getRowClass();if(o){if("function"==typeof o)return void console.warn("ag-Grid: rowClass should not be a function, please use getRowClass instead");t(o)}var i=this.beans.gridOptionsWrapper.getRowClassFunc();return i&&t(i({node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi()})),e},t.prototype.preProcessStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();return c._.cssStyleObjectToMarkup(e)},t.prototype.postProcessStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();this.eAllRowContainers.forEach((function(t){return c._.addStylesToElement(t,e)}))},t.prototype.processStylesFromGridOptions=function(){var e=this.beans.gridOptionsWrapper.getRowStyle();if(!e||"function"!=typeof e){var t,o=this.beans.gridOptionsWrapper.getRowStyleFunc();return o&&(t=o({data:this.rowNode.data,node:this.rowNode,api:this.beans.gridOptionsWrapper.getApi(),context:this.beans.gridOptionsWrapper.getContext(),$scope:this.scope})),c._.assign({},e,t)}console.warn("ag-Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},t.prototype.createCells=function(e){var t=this,o=[],i=[];return e.forEach((function(e){var n=new s.CellComp(t.scope,t.beans,e,t.rowNode,t,!1,t.printLayout),r=n.getCreateTemplate();o.push(r),i.push(n),t.cellComps[e.getId()]=n})),{template:o.join(""),cellComps:i}},t.prototype.onRowSelected=function(){var e=this.rowNode.isSelected();this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-selected",e)}))},t.prototype.callAfterRowAttachedOnCells=function(e,t){var o=this;e.forEach((function(e){e.setParentRow(t),e.afterAttached(),o.editingRow&&e.startEditingIfEnabled()}))},t.prototype.afterRowAttached=function(e,t){var o=this;this.addDomData(t),this.removeSecondPassFuncs.push((function(){e.removeRowElement(t)})),this.removeFirstPassFuncs.push((function(){if(c._.exists(o.rowNode.rowTop)){var e=o.roundRowTopToBounds(o.rowNode.rowTop);o.setRowTop(e)}else c._.addCssClass(t,"ag-opacity-zero")})),this.eAllRowContainers.push(t),this.useAnimationFrameForCreate?this.beans.taskQueue.addP2Task(this.addHoverFunctionality.bind(this,t)):this.addHoverFunctionality(t)},t.prototype.addHoverFunctionality=function(e){var t=this;this.active&&(this.addDestroyableEventListener(e,"mouseenter",(function(){return t.rowNode.onMouseEnter()})),this.addDestroyableEventListener(e,"mouseleave",(function(){return t.rowNode.onMouseLeave()})),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_MOUSE_ENTER,(function(){t.beans.gridOptionsWrapper.isSuppressRowHoverHighlight()||c._.addCssClass(e,"ag-row-hover")})),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_MOUSE_LEAVE,(function(){c._.removeCssClass(e,"ag-row-hover")})))},t.prototype.roundRowTopToBounds=function(e){var t=this.beans.gridPanel.getVScrollPosition(),o=this.applyPaginationOffset(t.top,!0)-100,i=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(o,e),i)},t.prototype.onRowHeightChanged=function(){if(c._.exists(this.rowNode.rowHeight)){var e=this.rowNode.rowHeight+"px";this.eAllRowContainers.forEach((function(t){return t.style.height=e}))}},t.prototype.addEventListener=function(t,o){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=p.Events.EVENT_VIRTUAL_ROW_REMOVED,console.warn("ag-Grid: Since version 11, event renderedRowRemoved is now called "+p.Events.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.addEventListener.call(this,t,o)},t.prototype.removeEventListener=function(t,o){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=p.Events.EVENT_VIRTUAL_ROW_REMOVED,console.warn("ag-Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called "+p.Events.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.removeEventListener.call(this,t,o)},t.prototype.destroy=function(t){void 0===t&&(t=!1),e.prototype.destroy.call(this),this.active=!1,this.destroyFullWidthComponents(),t?(this.removeFirstPassFuncs.forEach((function(e){return e()})),this.removeSecondPassFuncs.push(this.destroyContainingCells.bind(this))):(this.destroyContainingCells(),this.getAndClearDelayedDestroyFunctions().forEach((function(e){return e()})));var o=this.createRowEvent(p.Events.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(o),this.beans.eventService.dispatchEvent(o)},t.prototype.destroyContainingCells=function(){this.forEachCellComp((function(e){return e.destroy()})),this.destroyFullWidthComponents()},t.prototype.getAndClearDelayedDestroyFunctions=function(){var e=this.removeSecondPassFuncs;return this.removeSecondPassFuncs=[],e},t.prototype.onCellFocusChanged=function(){var e=this.beans.focusedCellController.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-focus",e)})),this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-no-focus",!e)})),this.rowFocused=e),!e&&this.editingRow&&this.stopEditing(!1)},t.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged())},t.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},t.prototype.applyPaginationOffset=function(e,t){return void 0===t&&(t=!1),this.rowNode.isRowPinned()?e:e+this.beans.paginationProxy.getPixelOffset()*(t?1:-1)},t.prototype.setRowTop=function(e){if(!this.printLayout&&c._.exists(e)){var t=this.applyPaginationOffset(e),o=this.beans.maxDivHeightScaler.getRealPixelPosition(t)+"px";this.beans.gridOptionsWrapper.isSuppressRowTransform()?this.eAllRowContainers.forEach((function(e){return e.style.top=o})):this.eAllRowContainers.forEach((function(e){return e.style.transform="translateY("+o+")"}))}},t.prototype.getAndClearNextVMTurnFunctions=function(){var e=this.createSecondPassFuncs;return this.createSecondPassFuncs=[],e},t.prototype.getRowNode=function(){return this.rowNode},t.prototype.getRenderedCellForColumn=function(e){var t=this,o=this.cellComps[e.getColId()];if(o)return o;var i=Object.keys(this.cellComps).map((function(e){return t.cellComps[e]})).filter((function(t){return-1!==t.getColSpanningList().indexOf(e)}));return i.length?i[0]:void 0},t.prototype.onRowIndexChanged=function(){this.onCellFocusChanged(),this.updateRowIndexes()},t.prototype.updateRowIndexes=function(){var e=this.rowNode.getRowIndexString(),t=this.rowNode.rowIndex%2==0,o=this.rowIsEven!==t;o&&(this.rowIsEven=t),this.eAllRowContainers.forEach((function(i){i.setAttribute("row-index",e),o&&(c._.addOrRemoveCssClass(i,"ag-row-even",t),c._.addOrRemoveCssClass(i,"ag-row-odd",!t))}))},t.prototype.ensureDomOrder=function(){[{el:this.getBodyRowElement(),ct:this.bodyContainerComp},{el:this.getPinnedLeftRowElement(),ct:this.pinnedLeftContainerComp},{el:this.getPinnedRightRowElement(),ct:this.pinnedRightContainerComp},{el:this.getFullWidthRowElement(),ct:this.fullWidthContainerComp}].forEach((function(e){e.el&&e.ct.ensureDomOrder(e.el)}))},t.prototype.getPinnedLeftRowElement=function(){return this.ePinnedLeftRow?this.ePinnedLeftRow:this.eFullWidthRowLeft},t.prototype.getPinnedRightRowElement=function(){return this.ePinnedRightRow?this.ePinnedRightRow:this.eFullWidthRowRight},t.prototype.getBodyRowElement=function(){return this.eBodyRow?this.eBodyRow:this.eFullWidthRowBody},t.prototype.getFullWidthRowElement=function(){return this.eFullWidthRow},t.DOM_DATA_KEY_RENDERED_ROW="renderedRow",t.FULL_WIDTH_CELL_RENDERER="fullWidthCellRenderer",t.GROUP_ROW_RENDERER="groupRowRenderer",t.GROUP_ROW_RENDERER_COMP_NAME="agGroupRowRenderer",t.LOADING_CELL_RENDERER="loadingCellRenderer",t.LOADING_CELL_RENDERER_COMP_NAME="agLoadingCellRenderer",t.DETAIL_CELL_RENDERER="detailCellRenderer",t.DETAIL_CELL_RENDERER_COMP_NAME="agDetailCellRenderer",t}(u.Component);t.RowComp=d},20080:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(58342),s=o(98239),a=o(72493),l=o(44081),p=function(){function e(e){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=e}return e.prototype.onDragEnter=function(e){var t=this;this.clearColumnsList(),this.gridOptionsWrapper.isFunctionsReadOnly()||e.dragItem.columns.forEach((function(e){e.isPrimary()&&(e.isAnyFunctionActive()||(e.isAllowValue()?t.columnsToAggregate.push(e):e.isAllowRowGroup()?t.columnsToGroup.push(e):e.isAllowRowGroup()&&t.columnsToPivot.push(e)))}))},e.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?r.DragAndDropService.ICON_PINNED:r.DragAndDropService.ICON_MOVE:null},e.prototype.onDragLeave=function(e){this.clearColumnsList()},e.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},e.prototype.onDragging=function(e){},e.prototype.onDragStop=function(e){this.columnsToAggregate.length>0&&this.columnController.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnController.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnController.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},i([a.Autowired("columnController"),n("design:type",s.ColumnController)],e.prototype,"columnController",void 0),i([a.Autowired("gridOptionsWrapper"),n("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e}();t.BodyDropPivotTarget=p},20930:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},21914:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(22131),l=o(72493),p=o(44081),u=o(47721),c=o(60843),d=o(63405),h=o(10042),f=o(41451),g=o(83423),m=function(e){function t(){return e.call(this)||this}return n(t,e),t.prototype.postConstruct=function(){this.setTemplate(this.getTemplate()),this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()?(this.addDestroyableEventListener(this.eventService,d.Events.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addDestroyableEventListener(this.btFirst,"click",this.onBtFirst.bind(this)),this.addDestroyableEventListener(this.btLast,"click",this.onBtLast.bind(this)),this.addDestroyableEventListener(this.btNext,"click",this.onBtNext.bind(this)),this.addDestroyableEventListener(this.btPrevious,"click",this.onBtPrevious.bind(this)),this.onPaginationChanged()):this.setVisible(!1)},t.prototype.onPaginationChanged=function(){this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels()},t.prototype.setCurrentPageLabel=function(){var e=this.paginationProxy.getTotalPages()>0,t=this.paginationProxy.getCurrentPage(),o=e?t+1:0;this.lbCurrent.innerHTML=this.formatNumber(o)},t.prototype.formatNumber=function(e){var t=this.gridOptionsWrapper.getPaginationNumberFormatterFunc();return t?t({value:e}):g._.formatNumberCommas(e)},t.prototype.getTemplate=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=e("page","Page"),o=e("to","to"),i=e("of","of");return'<div class="ag-paging-panel ag-unselectable">\n <span ref="eSummaryPanel" class="ag-paging-row-summary-panel">\n <span ref="lbFirstRowOnPage"></span> '+o+' <span ref="lbLastRowOnPage"></span> '+i+' <span ref="lbRecordCount"></span>\n </span>\n <span class="ag-paging-page-summary-panel">\n <button type="button" class="ag-paging-button" ref="btFirst">'+e("first","First")+'</button>\n <button type="button" class="ag-paging-button" ref="btPrevious">'+e("previous","Previous")+"</button>\n "+t+' <span ref="lbCurrent"></span> '+i+' <span ref="lbTotal"></span>\n <button type="button" class="ag-paging-button" ref="btNext">'+e("next","Next")+'</button>\n <button type="button" class="ag-paging-button" ref="btLast">'+e("last","Last")+"</button>\n </span>\n </div>"},t.prototype.onBtNext=function(){this.paginationProxy.goToNextPage()},t.prototype.onBtPrevious=function(){this.paginationProxy.goToPreviousPage()},t.prototype.onBtFirst=function(){this.paginationProxy.goToFirstPage()},t.prototype.onBtLast=function(){this.paginationProxy.goToLastPage()},t.prototype.enableOrDisableButtons=function(){var e=this.paginationProxy.getCurrentPage(),t=this.paginationProxy.isLastPageFound(),o=this.paginationProxy.getTotalPages(),i=0===e;this.btPrevious.disabled=i,this.btFirst.disabled=i;var n=this.isZeroPagesToDisplay(),r=t&&e===o-1||n;this.btNext.disabled=r;var s=!t||n||e===o-1;this.btLast.disabled=s},t.prototype.updateRowLabels=function(){var e,t,o=this.paginationProxy.getCurrentPage(),i=this.paginationProxy.getPageSize(),n=this.paginationProxy.isLastPageFound(),r=this.paginationProxy.isLastPageFound()?this.paginationProxy.getTotalRowCount():null;this.isZeroPagesToDisplay()?(e=0,t=0):(t=(e=i*o+1)+i-1,n&&t>r&&(t=r)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(e),this.lbLastRowOnPage.innerHTML=this.formatNumber(t)},t.prototype.isZeroPagesToDisplay=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages();return e&&0===t},t.prototype.setTotalLabels=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages(),o=this.paginationProxy.isLastPageFound()?this.paginationProxy.getTotalRowCount():null;if(e)this.lbTotal.innerHTML=this.formatNumber(t),this.lbRecordCount.innerHTML=this.formatNumber(o);else{var i=this.gridOptionsWrapper.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=i,this.lbRecordCount.innerHTML=i}},r([l.Autowired("gridOptionsWrapper"),s("design:type",p.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([l.Autowired("eventService"),s("design:type",c.EventService)],t.prototype,"eventService",void 0),r([l.Autowired("paginationProxy"),s("design:type",f.PaginationProxy)],t.prototype,"paginationProxy",void 0),r([l.Autowired("rowRenderer"),s("design:type",h.RowRenderer)],t.prototype,"rowRenderer",void 0),r([u.RefSelector("btFirst"),s("design:type",HTMLButtonElement)],t.prototype,"btFirst",void 0),r([u.RefSelector("btPrevious"),s("design:type",HTMLButtonElement)],t.prototype,"btPrevious",void 0),r([u.RefSelector("btNext"),s("design:type",HTMLButtonElement)],t.prototype,"btNext",void 0),r([u.RefSelector("btLast"),s("design:type",HTMLButtonElement)],t.prototype,"btLast",void 0),r([u.RefSelector("lbRecordCount"),s("design:type",Object)],t.prototype,"lbRecordCount",void 0),r([u.RefSelector("lbFirstRowOnPage"),s("design:type",Object)],t.prototype,"lbFirstRowOnPage",void 0),r([u.RefSelector("lbLastRowOnPage"),s("design:type",Object)],t.prototype,"lbLastRowOnPage",void 0),r([u.RefSelector("eSummaryPanel"),s("design:type",Object)],t.prototype,"eSummaryPanel",void 0),r([u.RefSelector("lbCurrent"),s("design:type",Object)],t.prototype,"lbCurrent",void 0),r([u.RefSelector("lbTotal"),s("design:type",Object)],t.prototype,"lbTotal",void 0),r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.PaginationComp=m},21951:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(22131),l=o(47721),p=o(72493),u=o(44081),c=o(83423),d=function(e){function t(){var t=e.call(this)||this;return t.selected=!1,t.readOnly=!1,t.passive=!1,t}return n(t,e),t.prototype.preConstruct=function(){this.setTemplate(t.TEMPLATE)},t.prototype.postConstruct=function(){this.loadIcons(),this.updateIcons()},t.prototype.setLabel=function(e){this.eLabel.innerText=e},t.prototype.loadIcons=function(){c._.clearElement(this.eChecked),c._.clearElement(this.eUnchecked),c._.clearElement(this.eIndeterminate),this.readOnly?(this.eChecked.appendChild(c._.createIconNoSpan("checkboxCheckedReadOnly",this.gridOptionsWrapper,null)),this.eUnchecked.appendChild(c._.createIconNoSpan("checkboxUncheckedReadOnly",this.gridOptionsWrapper,null)),this.eIndeterminate.appendChild(c._.createIconNoSpan("checkboxIndeterminateReadOnly",this.gridOptionsWrapper,null))):(this.eChecked.appendChild(c._.createIconNoSpan("checkboxChecked",this.gridOptionsWrapper,null)),this.eUnchecked.appendChild(c._.createIconNoSpan("checkboxUnchecked",this.gridOptionsWrapper,null)),this.eIndeterminate.appendChild(c._.createIconNoSpan("checkboxIndeterminate",this.gridOptionsWrapper,null)))},t.prototype.onClick=function(e){c._.addAgGridEventPath(e),this.readOnly||this.toggle()},t.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},t.prototype.setPassive=function(e){this.passive=e},t.prototype.setReadOnly=function(e){this.readOnly=e,this.loadIcons()},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.isSelected=function(){return this.selected},t.prototype.toggle=function(){var e=this.getNextValue();if(this.passive){var o={type:t.EVENT_CHANGED,selected:e};this.dispatchEvent(o)}else this.setSelected(e)},t.prototype.setSelected=function(e){if(this.selected!==e){this.selected=!0===e||!1!==e&&void 0,this.updateIcons();var o={type:t.EVENT_CHANGED,selected:this.selected};this.dispatchEvent(o)}},t.prototype.updateIcons=function(){c._.setVisible(this.eChecked,!0===this.selected),c._.setVisible(this.eUnchecked,!1===this.selected),c._.setVisible(this.eIndeterminate,void 0===this.selected)},t.EVENT_CHANGED="change",t.TEMPLATE='<span class="ag-checkbox" role="presentation"> <span class="ag-checkbox-checked" role="presentation"></span> <span class="ag-checkbox-unchecked" role="presentation"></span> <span class="ag-checkbox-indeterminate" role="presentation"></span> <span class="ag-checkbox-label" role="presentation"></span></span>',r([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([l.QuerySelector(".ag-checkbox-checked"),s("design:type",HTMLElement)],t.prototype,"eChecked",void 0),r([l.QuerySelector(".ag-checkbox-unchecked"),s("design:type",HTMLElement)],t.prototype,"eUnchecked",void 0),r([l.QuerySelector(".ag-checkbox-indeterminate"),s("design:type",HTMLElement)],t.prototype,"eIndeterminate",void 0),r([l.QuerySelector(".ag-checkbox-label"),s("design:type",HTMLElement)],t.prototype,"eLabel",void 0),r([p.PreConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"preConstruct",null),r([p.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),r([l.Listener("click"),s("design:type",Function),s("design:paramtypes",[MouseEvent]),s("design:returntype",void 0)],t.prototype,"onClick",null),t}(a.Component);t.AgCheckbox=d},22131:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(72493),l=o(8534),p=o(83423),u=new p.NumberSequence,c=function(e){function t(t){var o=e.call(this)||this;return o.childComponents=[],o.annotatedEventListeners=[],o.visible=!0,o.compId=u.next(),t&&o.setTemplate(t),o}return n(t,e),t.prototype.getCompId=function(){return this.compId},t.prototype.createChildComponentsFromTags=function(e){var t=this;p._.copyNodeList(e.childNodes).forEach((function(o){var i=t.getContext().createComponentFromElement(o,(function(e){t.copyAttributesFromNode(o,e.getGui())}));i?t.swapComponentForNode(i,e,o):o.childNodes&&t.createChildComponentsFromTags(o)}))},t.prototype.copyAttributesFromNode=function(e,t){p._.iterateNamedNodeMap(e.attributes,(function(e,o){t.setAttribute(e,o)}))},t.prototype.swapComponentForNode=function(e,t,o){var i=e.getGui();t.replaceChild(i,o),t.insertBefore(document.createComment(o.nodeName),i),this.childComponents.push(e),this.swapInComponentForQuerySelectors(e,o)},t.prototype.swapInComponentForQuerySelectors=function(e,t){for(var o=Object.getPrototypeOf(this),i=this;null!=o;){var n=o.__agComponentMetaData,r=o.constructor.name;n&&n[r]&&n[r].querySelectors&&n[r].querySelectors.forEach((function(o){i[o.attributeName]===t&&(i[o.attributeName]=e)})),o=Object.getPrototypeOf(o)}},t.prototype.setTemplate=function(e){var t=p._.loadTemplate(e);this.setTemplateFromElement(t)},t.prototype.setTemplateFromElement=function(e){this.eGui=e,this.eGui.__agComponent=this,this.addAnnotatedEventListeners(),this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.wireQuerySelectors=function(){var e=this;if(this.eGui)for(var t=Object.getPrototypeOf(this),o=function(){var o=t.__agComponentMetaData,n=t.constructor.name;if(o&&o[n]&&o[n].querySelectors){var r=i;o[n].querySelectors.forEach((function(t){var o=e.eGui.querySelector(t.querySelector);if(o){var i=o.__agComponent;r[t.attributeName]=i||o}}))}t=Object.getPrototypeOf(t)},i=this;null!=t;)o()},t.prototype.addAnnotatedEventListeners=function(){var e=this;if(this.removeAnnotatedEventListeners(),this.eGui){var t=this.getAgComponentMetaData("listenerMethods");p._.missingOrEmpty(t)||(this.annotatedEventListeners||(this.annotatedEventListeners=[]),t.forEach((function(t){var o=e[t.methodName].bind(e);e.eGui.addEventListener(t.eventName,o),e.annotatedEventListeners.push({eventName:t.eventName,listener:o})})))}},t.prototype.getAgComponentMetaData=function(e){for(var t=[],o=Object.getPrototypeOf(this);null!=o;){var i=o.__agComponentMetaData,n=o.constructor.name;i&&i[n]&&i[n][e]&&(t=t.concat(i[n][e])),o=Object.getPrototypeOf(o)}return t},t.prototype.removeAnnotatedEventListeners=function(){var e=this;this.annotatedEventListeners&&this.eGui&&(this.annotatedEventListeners.forEach((function(t){e.eGui.removeEventListener(t.eventName,t.listener)})),this.annotatedEventListeners=[])},t.prototype.getGui=function(){return this.eGui},t.prototype.setGui=function(e){this.eGui=e},t.prototype.queryForHtmlElement=function(e){return this.eGui.querySelector(e)},t.prototype.queryForHtmlInputElement=function(e){return this.eGui.querySelector(e)},t.prototype.appendChild=function(e){if(p._.isNodeOrElement(e))this.eGui.appendChild(e);else{var t=e;this.eGui.appendChild(t.getGui()),this.childComponents.push(t)}},t.prototype.addFeature=function(e,t){e.wireBean(t),t.destroy&&this.addDestroyFunc(t.destroy.bind(t))},t.prototype.isVisible=function(){return this.visible},t.prototype.setVisible=function(e,o){var i="visibility"!==o;if(e!==this.visible){this.visible=e,p._.addOrRemoveCssClass(this.eGui,i?"ag-hidden":"ag-invisible",!e);var n={type:t.EVENT_VISIBLE_CHANGED,visible:this.visible};this.dispatchEvent(n)}},t.prototype.addOrRemoveCssClass=function(e,t){p._.addOrRemoveCssClass(this.eGui,e,t)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.childComponents.forEach((function(e){e&&e.destroy&&e.destroy()})),this.childComponents.length=0,this.removeAnnotatedEventListeners()},t.prototype.addGuiEventListener=function(e,t){var o=this;this.getGui().addEventListener(e,t),this.addDestroyFunc((function(){return o.getGui().removeEventListener(e,t)}))},t.prototype.addCssClass=function(e){p._.addCssClass(this.getGui(),e)},t.prototype.removeCssClass=function(e){p._.removeCssClass(this.getGui(),e)},t.prototype.getAttribute=function(e){var t=this.getGui();return t?t.getAttribute(e):null},t.prototype.getRefElement=function(e){return this.queryForHtmlElement('[ref="'+e+'"]')},t.EVENT_VISIBLE_CHANGED="visibleChanged",r([a.PreConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"createChildComponentsPreConstruct",null),t}(l.BeanStub);t.Component=c},22743:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(69638),a=function(){function e(){}return e.prototype.postConstruct=function(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:[]},headerComponent:{mandatoryMethodList:[],optionalMethodList:[]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},loadingCellRenderer:{mandatoryMethodList:[],optionalMethodList:[]},loadingOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},noRowsOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},floatingFilterComponent:{mandatoryMethodList:["onParentModelChanged"],optionalMethodList:["afterGuiAttached"]},floatingFilterWrapperComponent:{mandatoryMethodList:[],optionalMethodList:[]},cellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},cellEditor:{mandatoryMethodList:["getValue"],optionalMethodList:["isPopup","isCancelBeforeStart","isCancelAfterEnd","focusIn","focusOut","afterGuiAttached"]},innerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},pinnedRowCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowInnerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},filterComponent:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]}}},e.prototype.retrieve=function(e){return this.componentMetaData[e]},i([r.Autowired("agComponentUtils"),n("design:type",s.AgComponentUtils)],e.prototype,"agComponentUtils",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"postConstruct",null),i([r.Bean("componentMetadataProvider")],e)}();t.ComponentMetadataProvider=a},23054:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(26016),a=o(15068),l=o(45727),p=o(63405),u=o(34782),c=o(22131),d=o(95125),h=o(87952),f=o(15724),g=o(83423),m=function(e){function t(t,o,i,n,r,s,a){var l=e.call(this)||this;return l.editingCell=!1,l.suppressRefreshCell=!1,l.scope=null,l.cellEditorVersion=0,l.cellRendererVersion=0,l.scope=t,l.beans=o,l.column=i,l.rowNode=n,l.rowComp=r,l.autoHeightCell=s,l.printLayout=a,l.createGridCellVo(),l.rangeSelectionEnabled=o.enterprise&&o.gridOptionsWrapper.isEnableRangeSelection(),l.cellFocused=l.beans.focusedCellController.isCellFocused(l.gridCell),l.firstRightPinned=l.column.isFirstRightPinned(),l.lastLeftPinned=l.column.isLastLeftPinned(),l.rangeSelectionEnabled&&(l.rangeCount=l.beans.rangeController.getCellRangeCount(l.gridCell)),l.getValueAndFormat(),l.setUsingWrapper(),l.chooseCellRenderer(),l.setupColSpan(),l.rowSpan=l.column.getRowSpan(l.rowNode),l}return n(t,e),t.prototype.getCreateTemplate=function(){var e=this.beans.gridOptionsWrapper.isEnableCellTextSelection()?"":'unselectable="on"',t=[],o=this.column,i=this.getCellWidth(),n=this.modifyLeftForPrintLayout(o.getLeft()),r=this.getInitialValueToRender(),s=g._.get(this.column,"colDef.template",null)?r:g._.escape(r);this.tooltip=this.getToolTip();var a=g._.escape(this.tooltip),l=g._.escape(o.getId()),p="",u="",c=this.preProcessStylesFromColDef(),d=this.getInitialCssClasses(),h=this.getStylesForRowSpanning();return this.usingWrapper&&(p='<span ref="eCellWrapper" class="ag-cell-wrapper"><span ref="eCellValue" class="ag-cell-value" '+e+">",u="</span></span>"),t.push("<div"),t.push(' tabindex="-1"'),t.push(" "+e),t.push(' role="gridcell"'),t.push(' comp-id="'+this.getCompId()+'" '),t.push(' col-id="'+l+'"'),t.push(' class="'+d.join(" ")+'"'),this.beans.gridOptionsWrapper.isEnableBrowserTooltips()&&g._.exists(a)&&t.push('title="'+a+'"'),t.push(' style="width: '+i+"px; left: "+n+"px; "+c+" "+h+'" >'),t.push(p),g._.exists(s,!0)&&t.push(s),t.push(u),t.push("</div>"),t.join("")},t.prototype.getStylesForRowSpanning=function(){return 1===this.rowSpan?"":"height: "+this.beans.gridOptionsWrapper.getRowHeightAsNumber()*this.rowSpan+"px; z-index: 1;"},t.prototype.afterAttached=function(){var e='[comp-id="'+this.getCompId()+'"]',t=this.eParentRow.querySelector(e);this.setGui(t),this.addDomData(),this.populateTemplate(),this.attachCellRenderer(),this.angular1Compile(),this.addDestroyableEventListener(this.beans.eventService,p.Events.EVENT_CELL_FOCUSED,this.onCellFocused.bind(this)),this.addDestroyableEventListener(this.beans.eventService,p.Events.EVENT_FLASH_CELLS,this.onFlashCells.bind(this)),this.addDestroyableEventListener(this.beans.eventService,p.Events.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_CELL_CHANGED,this.onCellChanged.bind(this)),this.addDestroyableEventListener(this.column,s.Column.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.addDestroyableEventListener(this.column,s.Column.EVENT_WIDTH_CHANGED,this.onWidthChanged.bind(this)),this.addDestroyableEventListener(this.column,s.Column.EVENT_FIRST_RIGHT_PINNED_CHANGED,this.onFirstRightPinnedChanged.bind(this)),this.addDestroyableEventListener(this.column,s.Column.EVENT_LAST_LEFT_PINNED_CHANGED,this.onLastLeftPinnedChanged.bind(this)),this.printLayout&&this.addDestroyableEventListener(this.beans.eventService,p.Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.rangeSelectionEnabled&&this.addDestroyableEventListener(this.beans.eventService,p.Events.EVENT_RANGE_SELECTION_CHANGED,this.onRangeSelectionChanged.bind(this)),this.tooltip&&!this.beans.gridOptionsWrapper.isEnableBrowserTooltips()&&this.beans.tooltipManager.registerTooltip(this)},t.prototype.onColumnHover=function(){var e=this.beans.columnHoverService.isHovered(this.column);g._.addOrRemoveCssClass(this.getGui(),"ag-column-hover",e)},t.prototype.onCellChanged=function(e){e.column===this.column&&this.refreshCell({})},t.prototype.getCellLeft=function(){return(this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?this.colsSpanning[this.colsSpanning.length-1]:this.column).getLeft()},t.prototype.getCellWidth=function(){if(!this.colsSpanning)return this.column.getActualWidth();var e=0;return this.colsSpanning.forEach((function(t){return e+=t.getActualWidth()})),e},t.prototype.onFlashCells=function(e){var t=this.gridCell.createId();e.cells[t]&&this.animateCell("highlight")},t.prototype.setupColSpan=function(){g._.missing(this.getComponentHolder().colSpan)||(this.addDestroyableEventListener(this.beans.eventService,p.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addDestroyableEventListener(this.beans.eventService,p.Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)),this.colsSpanning=this.getColSpanningList())},t.prototype.getColSpanningList=function(){var e=this.column.getColSpan(this.rowNode),t=[];if(1===e)t.push(this.column);else for(var o=this.column,i=this.column.getPinned(),n=0;o&&n<e&&(t.push(o),(o=this.beans.columnController.getDisplayedColAfter(o))&&!g._.missing(o))&&i===o.getPinned();n++);return t},t.prototype.onDisplayColumnsChanged=function(){var e=this.getColSpanningList();g._.compareArrays(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())},t.prototype.getInitialCssClasses=function(){var e=["ag-cell","ag-cell-not-inline-editing"];return this.autoHeightCell||e.push("ag-cell-with-height"),!this.beans.gridOptionsWrapper.isSuppressCellSelection()&&this.cellFocused&&e.push("ag-cell-focus"),this.firstRightPinned&&e.push("ag-cell-first-right-pinned"),this.lastLeftPinned&&e.push("ag-cell-last-left-pinned"),this.beans.columnHoverService.isHovered(this.column)&&e.push("ag-column-hover"),g._.pushAll(e,this.preProcessClassesFromColDef()),g._.pushAll(e,this.preProcessCellClassRules()),g._.pushAll(e,this.getRangeClasses()),this.usingWrapper||e.push("ag-cell-value"),e},t.prototype.getInitialValueToRender=function(){if(this.usingCellRenderer)return"string"==typeof this.cellRendererGui?this.cellRendererGui:"";var e=this.getComponentHolder();return e.template?e.template:e.templateUrl?this.beans.templateService.getTemplate(e.templateUrl,this.refreshCell.bind(this,!0))||"":this.getValueToUse()},t.prototype.getRenderedRow=function(){return this.rowComp},t.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},t.prototype.getCellRenderer=function(){return this.cellRenderer},t.prototype.getCellEditor=function(){return this.cellEditor},t.prototype.refreshCell=function(e){if(!this.editingCell&&!this.suppressRefreshCell){var t=this.getComponentHolder(),o=e&&e.newData,i=e&&e.suppressFlash||t.suppressCellFlash,n=e&&e.forceRefresh,r=this.value;this.getValueAndFormat();var s=!this.valuesAreEqual(r,this.value);(n||s)&&(!o&&this.attemptCellRendererRefresh()||this.replaceContentsAfterRefresh(),!i&&(this.beans.gridOptionsWrapper.isEnableCellChangeFlash()||t.enableCellChangeFlash)&&this.flashCell(),this.postProcessStylesFromColDef(),this.postProcessClassesFromColDef()),this.updateAngular1ScopeAndCompile(),this.refreshToolTip(),this.postProcessCellClassRules()}},t.prototype.flashCell=function(){this.animateCell("data-changed")},t.prototype.animateCell=function(e){var t="ag-cell-"+e,o="ag-cell-"+e+"-animation",i=this.getGui();g._.addCssClass(i,t),g._.removeCssClass(i,o),window.setTimeout((function(){g._.removeCssClass(i,t),g._.addCssClass(i,o),window.setTimeout((function(){g._.removeCssClass(i,o)}),1e3)}),500)},t.prototype.replaceContentsAfterRefresh=function(){g._.clearElement(this.eParentOfValue),this.cellRenderer&&this.cellRenderer.destroy&&this.cellRenderer.destroy(),this.cellRenderer=null,this.cellRendererGui=null,this.putDataIntoCellAfterRefresh(),this.updateAngular1ScopeAndCompile()},t.prototype.updateAngular1ScopeAndCompile=function(){this.beans.gridOptionsWrapper.isAngularCompileRows()&&this.scope&&(this.scope.data=r({},this.rowNode.data),this.angular1Compile())},t.prototype.angular1Compile=function(){if(this.beans.gridOptionsWrapper.isAngularCompileRows()){var e=this.getGui();if(!e.classList.contains("ng-scope")||0===e.childElementCount){var t=this.beans.$compile(e)(this.scope);this.addDestroyFunc((function(){t.remove()}))}}},t.prototype.postProcessStylesFromColDef=function(){var e=this.processStylesFromColDef();e&&g._.addStylesToElement(this.getGui(),e)},t.prototype.preProcessStylesFromColDef=function(){var e=this.processStylesFromColDef();return g._.cssStyleObjectToMarkup(e)},t.prototype.processStylesFromColDef=function(){var e=this.getComponentHolder();if(e.cellStyle){var t=void 0;if("function"==typeof e.cellStyle){var o={value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:e,column:this.column,$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi()};t=(0,e.cellStyle)(o)}else t=e.cellStyle;return t}},t.prototype.postProcessClassesFromColDef=function(){var e=this;this.processClassesFromColDef((function(t){return g._.addCssClass(e.getGui(),t)}))},t.prototype.preProcessClassesFromColDef=function(){var e=[];return this.processClassesFromColDef((function(t){return e.push(t)})),e},t.prototype.processClassesFromColDef=function(e){var t=this.getComponentHolder();this.beans.stylingService.processStaticCellClasses(t,{value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:t,rowIndex:this.rowNode.rowIndex,$scope:this.scope,api:this.beans.gridOptionsWrapper.getApi(),context:this.beans.gridOptionsWrapper.getContext()},e)},t.prototype.putDataIntoCellAfterRefresh=function(){var e=this.getComponentHolder();if(e.template)this.eParentOfValue.innerHTML=e.template;else if(e.templateUrl){var t=this.beans.templateService.getTemplate(e.templateUrl,this.refreshCell.bind(this,!0));t&&(this.eParentOfValue.innerHTML=t)}else if(this.usingCellRenderer&&(this.attachCellRenderer()||(this.usingCellRenderer=!1)),!this.usingCellRenderer){var o=this.getValueToUse();null!=o&&(this.eParentOfValue.innerHTML=g._.escape(o))}},t.prototype.attemptCellRendererRefresh=function(){if(g._.missing(this.cellRenderer)||!this.cellRenderer||g._.missing(this.cellRenderer.refresh))return!1;var e=this.createCellRendererParams(),t=this.beans.userComponentFactory.createFinalParams(this.getComponentHolder(),this.cellRendererType,e),o=this.cellRenderer.refresh(t);return!0===o||void 0===o},t.prototype.refreshToolTip=function(){var e=this.getToolTip();if(this.tooltip!==e){if(this.tooltip=e,!this.beans.gridOptionsWrapper.isEnableBrowserTooltips())return;if(g._.exists(e)){var t=g._.escape(this.tooltip);this.eParentOfValue.setAttribute("title",t)}else this.eParentOfValue.removeAttribute("title")}},t.prototype.valuesAreEqual=function(e,t){var o=this.getComponentHolder(),i=o?o.equals:null;return i?i(e,t):e===t},t.prototype.getToolTip=function(){var e=this.getComponentHolder(),t=this.rowNode.data;if(e.tooltipField&&g._.exists(t))return g._.getValueUsingField(t,e.tooltipField,this.column.isTooltipFieldContainsDots());var o=e.tooltipValueGetter||e.tooltip;return o?o({api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),colDef:e,column:this.getColumn(),context:this.beans.gridOptionsWrapper.getContext(),value:this.value,valueFormatted:this.valueFormatted,rowIndex:this.gridCell.rowIndex,node:this.rowNode,data:this.rowNode.data,$scope:this.scope}):null},t.prototype.getTooltipText=function(e){return void 0===e&&(e=!0),e?g._.escape(this.tooltip):this.tooltip},t.prototype.processCellClassRules=function(e,t){var o=this.getComponentHolder();this.beans.stylingService.processClassRules(o.cellClassRules,{value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:o,rowIndex:this.gridCell.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext()},e,t)},t.prototype.postProcessCellClassRules=function(){var e=this;this.processCellClassRules((function(t){g._.addCssClass(e.getGui(),t)}),(function(t){g._.removeCssClass(e.getGui(),t)}))},t.prototype.preProcessCellClassRules=function(){var e=[];return this.processCellClassRules((function(t){e.push(t)}),(function(e){})),e},t.prototype.setUsingWrapper=function(){var e=this.getComponentHolder();if(this.rowNode.rowPinned)return this.usingWrapper=!1,this.includeSelectionComponent=!1,void(this.includeRowDraggingComponent=!1);var t="function"==typeof e.checkboxSelection,o="function"==typeof e.rowDrag;this.includeSelectionComponent=t||!0===e.checkboxSelection,this.includeRowDraggingComponent=o||!0===e.rowDrag,this.usingWrapper=this.includeRowDraggingComponent||this.includeSelectionComponent},t.prototype.chooseCellRenderer=function(){var e=this.getComponentHolder();if(e.template||e.templateUrl)this.usingCellRenderer=!1;else{var o=this.createCellRendererParams(),i=this.beans.userComponentFactory.lookupComponentClassDef(e,"cellRenderer",o);this.beans.userComponentFactory.lookupComponentClassDef(e,"pinnedRowCellRenderer",o)&&this.rowNode.rowPinned?(this.cellRendererType=t.CELL_RENDERER_TYPE_PINNED,this.usingCellRenderer=!0):i?(this.cellRendererType=t.CELL_RENDERER_TYPE_NORMAL,this.usingCellRenderer=!0):this.usingCellRenderer=!1}},t.prototype.createCellRendererInstance=function(){var e=this.createCellRendererParams();this.cellRendererVersion++;var o,i=this.afterCellRendererCreated.bind(this,this.cellRendererVersion);return!!(o=this.cellRendererType===t.CELL_RENDERER_TYPE_NORMAL?this.beans.userComponentFactory.newCellRenderer(this.getComponentHolder(),e):this.beans.userComponentFactory.newPinnedRowCellRenderer(this.getComponentHolder(),e))&&(o.then(i),!0)},t.prototype.afterCellRendererCreated=function(e,t){this.isAlive()&&e===this.cellRendererVersion?(this.cellRenderer=t,this.cellRendererGui=this.cellRenderer.getGui(),g._.missing(this.cellRendererGui)||this.editingCell||this.eParentOfValue.appendChild(this.cellRendererGui)):t.destroy&&t.destroy()},t.prototype.attachCellRenderer=function(){return!!this.usingCellRenderer&&this.createCellRendererInstance()},t.prototype.createCellRendererParams=function(){var e=this;return{value:this.value,valueFormatted:this.valueFormatted,getValue:this.getValue.bind(this),setValue:function(t){e.beans.valueService.setValue(e.rowNode,e.column,t)},formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,colDef:this.getComponentHolder(),column:this.column,$scope:this.scope,rowIndex:this.gridCell.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.eParentOfValue,addRowCompListener:this.rowComp?this.rowComp.addEventListener.bind(this.rowComp):null,addRenderedRowListener:function(t,o){console.warn("ag-Grid: since ag-Grid .v11, params.addRenderedRowListener() is now params.addRowCompListener()"),e.rowComp&&e.rowComp.addEventListener(t,o)}}},t.prototype.formatValue=function(e){var t=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,e);return null!=t?t:e},t.prototype.getValueToUse=function(){return null!==this.valueFormatted&&void 0!==this.valueFormatted?this.valueFormatted:this.value},t.prototype.getValueAndFormat=function(){this.value=this.getValue(),this.valueFormatted=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,this.value)},t.prototype.getValue=function(){var e=this.rowNode.leafGroup&&this.beans.columnController.isPivotMode(),t=this.rowNode.group&&this.rowNode.expanded&&!this.rowNode.footer&&!e,o=this.beans.gridOptionsWrapper.isGroupIncludeFooter(),i=this.beans.gridOptionsWrapper.isGroupSuppressBlankHeader(),n=t&&o&&!i;return this.beans.valueService.getValue(this.column,this.rowNode,!1,n)},t.prototype.onMouseEvent=function(e,t){if(!g._.isStopPropagationForAgGrid(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t)}},t.prototype.dispatchCellContextMenuEvent=function(e){var t=this.getComponentHolder(),o=this.createEvent(e,p.Events.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(o),t.onCellContextMenu&&window.setTimeout((function(){return t.onCellContextMenu(o)}),0)},t.prototype.createEvent=function(e,t){var o={node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.getComponentHolder(),context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridApi,columnApi:this.beans.columnApi,rowPinned:this.rowNode.rowPinned,event:e,type:t,rowIndex:this.rowNode.rowIndex};return this.scope&&(o.$scope=this.scope),o},t.prototype.onMouseOut=function(e){var t=this.createEvent(e,p.Events.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(e){var t=this.createEvent(e,p.Events.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.setMouseOver([this.column])},t.prototype.onCellDoubleClicked=function(e){var t=this.getComponentHolder(),o=this.createEvent(e,p.Events.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(o),"function"==typeof t.onCellDoubleClicked&&window.setTimeout((function(){return t.onCellDoubleClicked(o)}),0),!this.beans.gridOptionsWrapper.isSingleClickEdit()&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.startRowOrCellEdit()},t.prototype.startRowOrCellEdit=function(e,t){this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowComp.startRowEditing(e,t,this):this.startEditingIfEnabled(e,t,!0)},t.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},t.prototype.startEditingIfEnabled=function(e,t,o){if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===o&&(o=!1),this.isCellEditable()&&!this.editingCell){this.editingCell=!0,this.cellEditorVersion++;var i=this.afterCellEditorCreated.bind(this,this.cellEditorVersion),n=this.createCellEditorParams(e,t,o);this.createCellEditor(n).then(i),g._.missing(this.cellEditor)&&o&&this.focusCell(!0)}},t.prototype.createCellEditor=function(e){var t=this;return this.beans.userComponentFactory.newCellEditor(this.column.getColDef(),e).map((function(o){if(!o.isPopup||!o.isPopup())return o;t.beans.gridOptionsWrapper.isFullRowEdit()&&console.warn("ag-Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var i=new f.PopupEditorWrapper(o);return t.beans.context.wireBean(i),i.init(e),i}))},t.prototype.afterCellEditorCreated=function(e,t){if(e===this.cellEditorVersion&&this.editingCell){if(t.isCancelBeforeStart&&t.isCancelBeforeStart())return t.destroy&&t.destroy(),void(this.editingCell=!1);if(!t.getGui)return console.warn("ag-Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),t.render&&console.warn("ag-Grid: we found 'render' on the component, are you trying to set a React renderer but added it as colDef.cellEditor instead of colDef.cellEditorFmk?"),t.destroy&&t.destroy(),void(this.editingCell=!1);this.cellEditor=t,this.cellEditorInPopup=void 0!==t.isPopup&&t.isPopup(),this.setInlineEditingClass(),this.cellEditorInPopup?this.addPopupCellEditor():this.addInCellEditor(),t.afterGuiAttached&&t.afterGuiAttached();var o=this.createEvent(null,p.Events.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(o)}else t.destroy&&t.destroy()},t.prototype.addInCellEditor=function(){g._.clearElement(this.getGui()),this.cellEditor&&this.getGui().appendChild(this.cellEditor.getGui()),this.angular1Compile()},t.prototype.addPopupCellEditor=function(){var e=this,t=this.cellEditor?this.cellEditor.getGui():null;this.hideEditorPopup=this.beans.popupService.addAsModalPopup(t,!0,(function(){e.onPopupEditorClosed()})),this.beans.popupService.positionPopupOverComponent({column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),ePopup:t,keepWithinBounds:!0}),this.angular1Compile()},t.prototype.onPopupEditorClosed=function(){this.editingCell&&(this.stopRowOrCellEdit(),this.beans.focusedCellController.isCellFocused(this.gridCell)&&this.focusCell(!0))},t.prototype.setInlineEditingClass=function(){var e=this.editingCell&&!this.cellEditorInPopup,t=this.editingCell&&this.cellEditorInPopup;g._.addOrRemoveCssClass(this.getGui(),"ag-cell-inline-editing",e),g._.addOrRemoveCssClass(this.getGui(),"ag-cell-not-inline-editing",!e),g._.addOrRemoveCssClass(this.getGui(),"ag-cell-popup-editing",t),g._.addOrRemoveCssClass(this.getGui().parentNode,"ag-row-inline-editing",e),g._.addOrRemoveCssClass(this.getGui().parentNode,"ag-row-not-inline-editing",!e)},t.prototype.createCellEditorParams=function(e,t,o){return{value:this.getValue(),keyPress:e,charPress:t,column:this.column,colDef:this.column.getColDef(),rowIndex:this.gridCell.rowIndex,node:this.rowNode,data:this.rowNode.data,api:this.beans.gridOptionsWrapper.getApi(),cellStartedEdit:o,columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),$scope:this.scope,onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getGui(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)}},t.prototype.stopEditingAndFocus=function(e){void 0===e&&(e=!1),this.stopRowOrCellEdit(),this.focusCell(!0),e||this.navigateAfterEdit()},t.prototype.parseValue=function(e){var t=this.getComponentHolder(),o={node:this.rowNode,data:this.rowNode.data,oldValue:this.value,newValue:e,colDef:t,column:this.column,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},i=t.valueParser;return g._.exists(i)?this.beans.expressionService.evaluate(i,o):e},t.prototype.focusCell=function(e){void 0===e&&(e=!1),this.beans.focusedCellController.setFocusedCell(this.gridCell.rowIndex,this.column,this.rowNode.rowPinned,e)},t.prototype.setFocusInOnEditor=function(){this.editingCell&&(this.cellEditor&&this.cellEditor.focusIn?this.cellEditor.focusIn():this.focusCell(!0))},t.prototype.isEditing=function(){return this.editingCell},t.prototype.onKeyDown=function(e){var t=e.which||e.keyCode;switch(t){case l.Constants.KEY_ENTER:this.onEnterKeyDown();break;case l.Constants.KEY_F2:this.onF2KeyDown();break;case l.Constants.KEY_ESCAPE:this.onEscapeKeyDown();break;case l.Constants.KEY_TAB:this.onTabKeyDown(e);break;case l.Constants.KEY_BACKSPACE:case l.Constants.KEY_DELETE:this.onBackspaceOrDeleteKeyPressed(t);break;case l.Constants.KEY_DOWN:case l.Constants.KEY_UP:case l.Constants.KEY_RIGHT:case l.Constants.KEY_LEFT:this.onNavigationKeyPressed(e,t)}},t.prototype.setFocusOutOnEditor=function(){this.editingCell&&this.cellEditor&&this.cellEditor.focusOut&&this.cellEditor.focusOut()},t.prototype.onNavigationKeyPressed=function(e,t){this.editingCell||(e.shiftKey&&this.rangeSelectionEnabled?this.onShiftRangeSelect(t):this.beans.rowRenderer.navigateToNextCell(e,t,this.gridCell,!0),e.preventDefault())},t.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeController.extendRangeInDirection(this.gridCell,e)){var t=this.beans.rangeController.getCellRanges();if(!g._.missing(t)&&t&&1===t.length){var o=t[0].end;this.beans.rowRenderer.ensureCellVisible(o)}}},t.prototype.onTabKeyDown=function(e){this.beans.rowRenderer.onTabKeyDown(this,e)},t.prototype.onBackspaceOrDeleteKeyPressed=function(e){this.editingCell||this.startRowOrCellEdit(e)},t.prototype.onEnterKeyDown=function(){this.editingCell||this.rowComp.isEditing()?this.stopEditingAndFocus():this.beans.gridOptionsWrapper.isEnterMovesDown()?this.beans.rowRenderer.navigateToNextCell(null,l.Constants.KEY_DOWN,this.gridCell,!1):this.startRowOrCellEdit(l.Constants.KEY_ENTER)},t.prototype.navigateAfterEdit=function(){this.beans.gridOptionsWrapper.isFullRowEdit()||this.beans.gridOptionsWrapper.isEnterMovesDownAfterEdit()&&this.beans.rowRenderer.navigateToNextCell(null,l.Constants.KEY_DOWN,this.gridCell,!1)},t.prototype.onF2KeyDown=function(){this.editingCell||this.startRowOrCellEdit(l.Constants.KEY_F2)},t.prototype.onEscapeKeyDown=function(){this.editingCell&&(this.stopRowOrCellEdit(!0),this.focusCell(!0))},t.prototype.onKeyPress=function(e){if(g._.getTarget(e)===this.getGui()&&!this.editingCell){var t=String.fromCharCode(e.charCode);" "===t?this.onSpaceKeyPressed(e):g._.isEventFromPrintableCharacter(e)&&(this.startRowOrCellEdit(null,t),e.preventDefault())}},t.prototype.onSpaceKeyPressed=function(e){if(!this.editingCell&&this.beans.gridOptionsWrapper.isRowSelection()){var t=this.rowNode.isSelected();this.rowNode.setSelected(!t)}e.preventDefault()},t.prototype.onMouseDown=function(e){var t=!1;if(!g._.isElementChildOfClass(e.target,"ag-selection-checkbox",3)){if(g._.isBrowserIE()&&e.target.classList.contains("ag-cell")&&(t=!0),this.focusCell(t),g._.isLeftClick(e)&&this.beans.rangeController){var o=this.gridCell;if(e.shiftKey)this.beans.rangeController.extendRangeToCell(o);else{var i=e.ctrlKey||e.metaKey;this.beans.rangeController.setRangeToCell(o,i)}}var n=this.createEvent(e,p.Events.EVENT_CELL_MOUSE_DOWN);this.beans.eventService.dispatchEvent(n)}},t.prototype.isDoubleClickOnIPad=function(){if(!g._.isUserAgentIPad())return!1;var e=(new Date).getTime(),t=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,t},t.prototype.onCellClicked=function(e){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(e),void e.preventDefault();var t=this.createEvent(e,p.Events.EVENT_CELL_CLICKED);this.beans.eventService.dispatchEvent(t);var o=this.getComponentHolder();o.onCellClicked&&window.setTimeout((function(){return o.onCellClicked(t)}),0),(this.beans.gridOptionsWrapper.isSingleClickEdit()||o.singleClickEdit)&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.startRowOrCellEdit(),g._.doIeFocusHack(this.getGui())},t.prototype.createGridCellVo=function(){var e={rowIndex:this.rowNode.rowIndex,floating:this.rowNode.rowPinned,column:this.column};this.gridCell=new u.GridCell(e)},t.prototype.getGridCell=function(){return this.gridCell},t.prototype.getParentRow=function(){return this.eParentRow},t.prototype.setParentRow=function(e){this.eParentRow=e},t.prototype.getColumn=function(){return this.column},t.prototype.getComponentHolder=function(){return this.column.getColDef()},t.prototype.detach=function(){this.eParentRow.removeChild(this.getGui())},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.cellEditor&&this.cellEditor.destroy&&(this.cellEditor.destroy(),this.cellEditor=null),this.cellRenderer&&this.cellRenderer.destroy&&(this.cellRenderer.destroy(),this.cellRenderer=null)},t.prototype.onLeftChanged=function(){var e=this.modifyLeftForPrintLayout(this.getCellLeft());this.getGui().style.left=e+"px"},t.prototype.modifyLeftForPrintLayout=function(e){return this.printLayout?this.column.getPinned()===s.Column.PINNED_LEFT?e:this.column.getPinned()===s.Column.PINNED_RIGHT?this.beans.columnController.getPinnedLeftContainerWidth()+this.beans.columnController.getBodyContainerWidth()+e:this.beans.columnController.getPinnedLeftContainerWidth()+e:e},t.prototype.onWidthChanged=function(){var e=this.getCellWidth();this.getGui().style.width=e+"px"},t.prototype.getRangeClasses=function(){var e=[];return this.rangeSelectionEnabled?(0!==this.rangeCount&&e.push("ag-cell-range-selected"),1===this.rangeCount&&e.push("ag-cell-range-selected-1"),2===this.rangeCount&&e.push("ag-cell-range-selected-2"),3===this.rangeCount&&e.push("ag-cell-range-selected-3"),this.rangeCount>=4&&e.push("ag-cell-range-selected-4"),e):e},t.prototype.onRowIndexChanged=function(){this.createGridCellVo(),this.onCellFocused(),this.onRangeSelectionChanged()},t.prototype.onRangeSelectionChanged=function(){if(this.beans.enterprise){var e=this.beans.rangeController.getCellRangeCount(this.gridCell),t=this.getGui();this.rangeCount!==e&&(g._.addOrRemoveCssClass(t,"ag-cell-range-selected",0!==e),g._.addOrRemoveCssClass(t,"ag-cell-range-selected-1",1===e),g._.addOrRemoveCssClass(t,"ag-cell-range-selected-2",2===e),g._.addOrRemoveCssClass(t,"ag-cell-range-selected-3",3===e),g._.addOrRemoveCssClass(t,"ag-cell-range-selected-4",e>=4),this.rangeCount=e)}},t.prototype.onFirstRightPinnedChanged=function(){var e=this.column.isFirstRightPinned();this.firstRightPinned!==e&&(this.firstRightPinned=e,g._.addOrRemoveCssClass(this.getGui(),"ag-cell-first-right-pinned",e))},t.prototype.onLastLeftPinnedChanged=function(){var e=this.column.isLastLeftPinned();this.lastLeftPinned!==e&&(this.lastLeftPinned=e,g._.addOrRemoveCssClass(this.getGui(),"ag-cell-last-left-pinned",e))},t.prototype.populateTemplate=function(){this.usingWrapper?(this.eParentOfValue=this.getRefElement("eCellValue"),this.eCellWrapper=this.getRefElement("eCellWrapper"),this.includeRowDraggingComponent&&this.addRowDragging(),this.includeSelectionComponent&&this.addSelectionCheckbox()):this.eParentOfValue=this.getGui()},t.prototype.addRowDragging=function(){if(this.beans.gridOptionsWrapper.isRowModelDefault())if(this.beans.gridOptionsWrapper.isPagination())g._.doOnce((function(){return console.warn("ag-Grid: row dragging is not possible when doing pagination")}),"CellComp.addRowDragging");else{var e=new h.RowDragComp(this.rowNode,this.column,this.getValueToUse(),this.beans);this.addFeature(this.beans.context,e),this.eCellWrapper.insertBefore(e.getGui(),this.eParentOfValue)}else g._.doOnce((function(){return console.warn("ag-Grid: row dragging is only allowed in the In Memory Row Model")}),"CellComp.addRowDragging")},t.prototype.addSelectionCheckbox=function(){var e=new d.CheckboxSelectionComponent;this.beans.context.wireBean(e);var t=this.getComponentHolder().checkboxSelection;t="function"==typeof t?t:null,e.init({rowNode:this.rowNode,column:this.column,visibleFunc:t}),this.addDestroyFunc((function(){return e.destroy()})),this.eCellWrapper.insertBefore(e.getGui(),this.eParentOfValue)},t.prototype.addDomData=function(){var e=this,o=this.getGui();this.beans.gridOptionsWrapper.setDomData(o,t.DOM_DATA_KEY_CELL_COMP,this),this.addDestroyFunc((function(){return e.beans.gridOptionsWrapper.setDomData(o,t.DOM_DATA_KEY_CELL_COMP,null)}))},t.prototype.onCellFocused=function(e){var t=this.beans.focusedCellController.isCellFocused(this.gridCell);if(t!==this.cellFocused&&(!this.beans.gridOptionsWrapper.isSuppressCellSelection()&&g._.addOrRemoveCssClass(this.getGui(),"ag-cell-focus",t),this.cellFocused=t),t&&e&&e.forceBrowserFocus){var o=this.getGui();o.focus(),g._.doIeFocusHack(o)}var i=this.beans.gridOptionsWrapper.isFullRowEdit();t||i||!this.editingCell||this.stopRowOrCellEdit()},t.prototype.stopRowOrCellEdit=function(e){void 0===e&&(e=!1),this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowComp.stopRowEditing(e):this.stopEditing(e)},t.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),this.editingCell)if(this.cellEditor){var t,o=!1;if(e||this.cellEditor.isCancelAfterEnd&&this.cellEditor.isCancelAfterEnd()||(t=this.cellEditor.getValue(),o=!0),this.editingCell=!1,this.cellEditor.destroy&&this.cellEditor.destroy(),this.cellEditor=null,this.cellEditorInPopup&&this.hideEditorPopup)this.hideEditorPopup(),this.hideEditorPopup=null;else if(g._.clearElement(this.getGui()),this.usingWrapper)this.getGui().appendChild(this.eCellWrapper);else if(this.cellRenderer){var i=this.cellRendererGui;i&&this.getGui().appendChild(i)}this.setInlineEditingClass(),o&&(this.suppressRefreshCell=!0,this.rowNode.setDataValue(this.column,t),this.suppressRefreshCell=!1),this.refreshCell({forceRefresh:!0,suppressFlash:!0});var n=this.createEvent(null,p.Events.EVENT_CELL_EDITING_STOPPED);this.beans.eventService.dispatchEvent(n)}else this.editingCell=!1},t.DOM_DATA_KEY_CELL_COMP="cellComp",t.CELL_RENDERER_TYPE_NORMAL="cellRenderer",t.CELL_RENDERER_TYPE_PINNED="pinnedRowCellRenderer",t}(c.Component);t.CellComp=m},23801:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(55090),a=o(23054),l=o(98239),p=o(83423),u=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.getPreferredHeightForRow=function(e){var t=this;this.eDummyContainer||(this.eDummyContainer=document.createElement("div"),p._.addCssClass(this.eDummyContainer,"ag-row ag-row-no-focus"));var o=this.gridPanel.getCenterContainer();o.appendChild(this.eDummyContainer);var i=[];this.columnController.getAllAutoRowHeightCols().filter((function(e){return e.isVisible()})).forEach((function(o){var n=new a.CellComp(t.$scope,t.beans,o,e,null,!0,!1);n.setParentRow(t.eDummyContainer),i.push(n)}));var n=i.map((function(e){return e.getCreateTemplate()})).join(" ");this.eDummyContainer.innerHTML=n,i.forEach((function(e){return e.afterAttached()}));for(var r=0,s=0;s<this.eDummyContainer.children.length;s++){var l=this.eDummyContainer.children[s];l.offsetHeight>r&&(r=l.offsetHeight)}return o.removeChild(this.eDummyContainer),i.forEach((function(e){e.detach(),e.destroy()})),p._.clearElement(this.eDummyContainer),r},i([r.Autowired("beans"),n("design:type",s.Beans)],e.prototype,"beans",void 0),i([r.Autowired("$scope"),n("design:type",Object)],e.prototype,"$scope",void 0),i([r.Autowired("columnController"),n("design:type",l.ColumnController)],e.prototype,"columnController",void 0),i([r.Bean("autoHeightCalculator")],e)}();t.AutoHeightCalculator=u},24048:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(44081),a=o(663),l=o(4889),p=function(){function e(){}return e.prototype.execute=function(e){var t=e.rowNode,o=e.changedPath;this.filterService.filter(o),this.selectableService.updateSelectableAfterFiltering(t)},i([r.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("selectableService"),n("design:type",l.SelectableService)],e.prototype,"selectableService",void 0),i([r.Autowired("filterService"),n("design:type",a.FilterService)],e.prototype,"filterService",void 0),i([r.Bean("filterStage")],e)}();t.FilterStage=p},24144:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(44081),l=o(72493),p=function(e){function t(){return e.call(this)||this}return n(t,e),t.prototype.init=function(e){var o=this.gridOptionsWrapper.getOverlayLoadingTemplate()?this.gridOptionsWrapper.getOverlayLoadingTemplate():t.DEFAULT_LOADING_OVERLAY_TEMPLATE,i=this.gridOptionsWrapper.getLocaleTextFunc(),n=o.replace("[LOADING...]",i("loadingOoo","Loading..."));this.setTemplate(n)},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span class="ag-overlay-loading-center">[LOADING...]</span>',r([l.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),t}(o(22131).Component);t.LoadingOverlayComponent=p},24463:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(44081),s=o(40634),a=o(98239),l=o(72493),p=o(63405),u=o(60843),c=o(88842),d=o(83423),h=function(){function e(){this.initialised=!1}return e.prototype.init=function(){this.cellExpressions=this.gridOptionsWrapper.isEnableCellExpressions(),this.initialised=!0},e.prototype.getValue=function(e,t,o,i){if(void 0===o&&(o=!1),void 0===i&&(i=!1),this.initialised||this.init(),t){var n,r=e.getColDef(),s=r.field,a=e.getId(),l=t.data,p=t.groupData&&void 0!==t.groupData[a],u=!i&&t.aggData&&void 0!==t.aggData[a];if(o&&r.filterValueGetter?n=this.executeFilterValueGetter(r.filterValueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&u?n=t.aggData[a]:this.gridOptionsWrapper.isTreeData()&&r.valueGetter?n=this.executeValueGetter(r.valueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&s&&l?n=d._.getValueUsingField(l,s,e.isFieldContainsDots()):p?n=t.groupData[a]:u?n=t.aggData[a]:r.valueGetter?n=this.executeValueGetter(r.valueGetter,l,e,t):s&&l&&(n=d._.getValueUsingField(l,s,e.isFieldContainsDots())),this.cellExpressions&&"string"==typeof n&&0===n.indexOf("=")){var c=n.substring(1);n=this.executeValueGetter(c,l,e,t)}return n}},e.prototype.setValue=function(e,t,o){var i=this.columnController.getPrimaryColumn(t);if(e&&i){var n=e.data;d._.missing(n)&&(e.data={});var r=i.getColDef(),s=r.field,a=r.newValueHandler,l=r.valueSetter;if(d._.missing(s)&&d._.missing(a)&&d._.missing(l))console.warn("ag-Grid: you need either field or valueSetter set on colDef for editing to work");else{var u,c={node:e,data:e.data,oldValue:this.getValue(i,e),newValue:o,colDef:i.getColDef(),column:i,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};if(c.newValue=o,void 0===(u=a&&d._.exists(a)?a(c):d._.exists(l)?this.expressionService.evaluate(l,c):this.setValueUsingField(n,s,o,i.isFieldContainsDots()))&&(u=!0),u){e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),c.newValue=this.getValue(i,e);var h=i.getColDef().onCellValueChanged;"function"==typeof h&&setTimeout((function(){return h(c)}),0);var f={type:p.Events.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:c.column,api:c.api,colDef:c.colDef,columnApi:c.columnApi,context:c.context,data:e.data,node:e,oldValue:c.oldValue,newValue:c.newValue,value:c.newValue};this.eventService.dispatchEvent(f)}}}},e.prototype.setValueUsingField=function(e,t,o,i){if(!t)return!1;if(i)for(var n=t.split("."),r=e;n.length>0&&r;){var s=n.shift();0===n.length?r[s]=o:r=r[s]}else e[t]=o;return!0},e.prototype.executeFilterValueGetter=function(e,t,o,i){var n={data:t,node:i,column:o,colDef:o.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,i)};return this.expressionService.evaluate(e,n)},e.prototype.executeValueGetter=function(e,t,o,i){var n=o.getId(),r=this.valueCache.getValue(i,n);if(void 0!==r)return r;var s={data:t,node:i,column:o,colDef:o.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,i)},a=this.expressionService.evaluate(e,s);return this.valueCache.setValue(i,n,a),a},e.prototype.getValueCallback=function(e,t){var o=this.columnController.getPrimaryColumn(t);return o?this.getValue(o,e):null},e.prototype.getKeyForNode=function(e,t){var o=this.getValue(e,t),i=e.getColDef().keyCreator,n=i?i({value:o}):o;return"string"==typeof n||null==n||"[object Object]"===(n=String(n))&&d._.doOnce((function(){console.warn("ag-Grid: a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (se ag-Grid docs) or b) to toString() on the object to return a key")}),"getKeyForNode - warn about [object,object]"),n},i([l.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([l.Autowired("expressionService"),n("design:type",s.ExpressionService)],e.prototype,"expressionService",void 0),i([l.Autowired("columnController"),n("design:type",a.ColumnController)],e.prototype,"columnController",void 0),i([l.Autowired("eventService"),n("design:type",u.EventService)],e.prototype,"eventService",void 0),i([l.Autowired("valueCache"),n("design:type",c.ValueCache)],e.prototype,"valueCache",void 0),i([l.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([l.Bean("valueService")],e)}();t.ValueService=h},25157:(e,t,o)=>{var i,n=o(98437),r=o(17642);function s(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),-1===e.indexOf("-")&&-1===e.indexOf("_"))return e;{let t="",o=!1;const i=e.match(/^-+/);for(let n=i?i[0].length:0;n<e.length;n++){let i=e.charAt(n);o&&(o=!1,i=i.toUpperCase()),0===n||"-"!==i&&"_"!==i?"-"!==i&&"_"!==i&&(t+=i):o=!0}return t}}function a(e,t){const o=e.toLowerCase();t=t||"-";let i="";for(let n=0;n<e.length;n++){const r=o.charAt(n),s=e.charAt(n);i+=r!==s&&n>0?`${t}${o.charAt(n)}`:s}return i}function l(e){return null!=e&&("number"==typeof e||!!/^0x[0-9a-f]+$/i.test(e)||!/^0[^.]/.test(e)&&/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e))}let p;function u(e){return void 0!==e?e+1:1}function c(e){return"__proto__"===e?"___proto___":e}!function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"}(i||(i={}));var d,h,f,g=o(36374),m=o(65994).process;const y=m&&m.env&&m.env.YARGS_MIN_NODE_VERSION?Number(m.env.YARGS_MIN_NODE_VERSION):12,v=null!==(h=null===(d=null==m?void 0:m.versions)||void 0===d?void 0:d.node)&&void 0!==h?h:null===(f=null==m?void 0:m.version)||void 0===f?void 0:f.slice(1);if(v&&Number(v.match(/^([^.]+)/)[1])<y)throw Error(`yargs parser supports a minimum Node.js version of ${y}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);const C=m?m.env:{},w=new class{constructor(e){p=e}parse(e,t){const o=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},t),n=function(e){if(Array.isArray(e))return e.map((e=>"string"!=typeof e?e+"":e));e=e.trim();let t=0,o=null,i=null,n=null;const r=[];for(let s=0;s<e.length;s++)o=i,i=e.charAt(s)," "!==i||n?(i===n?n=null:"'"!==i&&'"'!==i||n||(n=i),r[t]||(r[t]=""),r[t]+=i):" "!==o&&t++;return r}(e),r="string"==typeof e,d=function(e){const t=[],o=Object.create(null);let i=!0;for(Object.keys(e).forEach((function(o){t.push([].concat(e[o],o))}));i;){i=!1;for(let e=0;e<t.length;e++)for(let o=e+1;o<t.length;o++)if(t[e].filter((function(e){return-1!==t[o].indexOf(e)})).length){t[e]=t[e].concat(t[o]),t.splice(o,1),i=!0;break}}return t.forEach((function(e){const t=(e=e.filter((function(e,t,o){return o.indexOf(e)===t}))).pop();void 0!==t&&"string"==typeof t&&(o[t]=e)})),o}(Object.assign(Object.create(null),o.alias)),h=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},o.configuration),f=Object.assign(Object.create(null),o.default),g=o.configObjects||[],m=o.envPrefix,y=h["populate--"],v=y?"--":"_",C=Object.create(null),w=Object.create(null),E=o.__||p.format,_={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},b=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,R=new RegExp("^--"+h["negation-prefix"]+"(.+)");[].concat(o.array||[]).filter(Boolean).forEach((function(e){const t="object"==typeof e?e.key:e,o=Object.keys(e).map((function(e){return{boolean:"bools",string:"strings",number:"numbers"}[e]})).filter(Boolean).pop();o&&(_[o][t]=!0),_.arrays[t]=!0,_.keys.push(t)})),[].concat(o.boolean||[]).filter(Boolean).forEach((function(e){_.bools[e]=!0,_.keys.push(e)})),[].concat(o.string||[]).filter(Boolean).forEach((function(e){_.strings[e]=!0,_.keys.push(e)})),[].concat(o.number||[]).filter(Boolean).forEach((function(e){_.numbers[e]=!0,_.keys.push(e)})),[].concat(o.count||[]).filter(Boolean).forEach((function(e){_.counts[e]=!0,_.keys.push(e)})),[].concat(o.normalize||[]).filter(Boolean).forEach((function(e){_.normalize[e]=!0,_.keys.push(e)})),"object"==typeof o.narg&&Object.entries(o.narg).forEach((([e,t])=>{"number"==typeof t&&(_.nargs[e]=t,_.keys.push(e))})),"object"==typeof o.coerce&&Object.entries(o.coerce).forEach((([e,t])=>{"function"==typeof t&&(_.coercions[e]=t,_.keys.push(e))})),void 0!==o.config&&(Array.isArray(o.config)||"string"==typeof o.config?[].concat(o.config).filter(Boolean).forEach((function(e){_.configs[e]=!0})):"object"==typeof o.config&&Object.entries(o.config).forEach((([e,t])=>{"boolean"!=typeof t&&"function"!=typeof t||(_.configs[e]=t)}))),function(...e){e.forEach((function(e){Object.keys(e||{}).forEach((function(e){_.aliases[e]||(_.aliases[e]=[].concat(d[e]||[]),_.aliases[e].concat(e).forEach((function(t){if(/-/.test(t)&&h["camel-case-expansion"]){const o=s(t);o!==e&&-1===_.aliases[e].indexOf(o)&&(_.aliases[e].push(o),C[o]=!0)}})),_.aliases[e].concat(e).forEach((function(t){if(t.length>1&&/[A-Z]/.test(t)&&h["camel-case-expansion"]){const o=a(t,"-");o!==e&&-1===_.aliases[e].indexOf(o)&&(_.aliases[e].push(o),C[o]=!0)}})),_.aliases[e].forEach((function(t){_.aliases[t]=[e].concat(_.aliases[e].filter((function(e){return t!==e})))})))}))}))}(o.key,d,o.default,_.arrays),Object.keys(f).forEach((function(e){(_.aliases[e]||[]).forEach((function(t){f[t]=f[e]}))}));let O=null;Object.keys(_.counts).find((e=>H(e,_.arrays)?(O=Error(E("Invalid configuration: %s, opts.count excludes opts.array.",e)),!0):!!H(e,_.nargs)&&(O=Error(E("Invalid configuration: %s, opts.count excludes opts.narg.",e)),!0)));let S=[];const A=Object.assign(Object.create(null),{_:[]}),P={};for(let e=0;e<n.length;e++){const t=n[e],o=t.replace(/^-{3,}/,"---");let i,r,s,a,l,p;if("--"!==t&&/^-/.test(t)&&B(t))T(t);else{if(o.match(/^---+(=|$)/)){T(t);continue}if(t.match(/^--.+=/)||!h["short-option-groups"]&&t.match(/^-.+=/))a=t.match(/^--?([^=]+)=([\s\S]*)$/),null!==a&&Array.isArray(a)&&a.length>=3&&(H(a[1],_.arrays)?e=N(e,a[1],n,a[2]):!1!==H(a[1],_.nargs)?e=D(e,a[1],n,a[2]):x(a[1],a[2],!0));else if(t.match(R)&&h["boolean-negation"])a=t.match(R),null!==a&&Array.isArray(a)&&a.length>=2&&(r=a[1],x(r,!!H(r,_.arrays)&&[!1]));else if(t.match(/^--.+/)||!h["short-option-groups"]&&t.match(/^-[^-]+/))a=t.match(/^--?(.+)/),null!==a&&Array.isArray(a)&&a.length>=2&&(r=a[1],H(r,_.arrays)?e=N(e,r,n):!1!==H(r,_.nargs)?e=D(e,r,n):(l=n[e+1],void 0===l||l.match(/^-/)&&!l.match(b)||H(r,_.bools)||H(r,_.counts)?/^(true|false)$/.test(l)?(x(r,l),e++):x(r,U(r)):(x(r,l),e++)));else if(t.match(/^-.\..+=/))a=t.match(/^-([^=]+)=([\s\S]*)$/),null!==a&&Array.isArray(a)&&a.length>=3&&x(a[1],a[2]);else if(t.match(/^-.\..+/)&&!t.match(b))l=n[e+1],a=t.match(/^-(.\..+)/),null!==a&&Array.isArray(a)&&a.length>=2&&(r=a[1],void 0===l||l.match(/^-/)||H(r,_.bools)||H(r,_.counts)?x(r,U(r)):(x(r,l),e++));else if(t.match(/^-[^-]+/)&&!t.match(b)){s=t.slice(1,-1).split(""),i=!1;for(let o=0;o<s.length;o++){if(l=t.slice(o+2),s[o+1]&&"="===s[o+1]){p=t.slice(o+3),r=s[o],H(r,_.arrays)?e=N(e,r,n,p):!1!==H(r,_.nargs)?e=D(e,r,n,p):x(r,p),i=!0;break}if("-"!==l){if(/[A-Za-z]/.test(s[o])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(l)&&!1===H(l,_.bools)){x(s[o],l),i=!0;break}if(s[o+1]&&s[o+1].match(/\W/)){x(s[o],l),i=!0;break}x(s[o],U(s[o]))}else x(s[o],l)}r=t.slice(-1)[0],i||"-"===r||(H(r,_.arrays)?e=N(e,r,n):!1!==H(r,_.nargs)?e=D(e,r,n):(l=n[e+1],void 0===l||/^(-|--)[^-]/.test(l)&&!l.match(b)||H(r,_.bools)||H(r,_.counts)?/^(true|false)$/.test(l)?(x(r,l),e++):x(r,U(r)):(x(r,l),e++)))}else if(t.match(/^-[0-9]$/)&&t.match(b)&&H(t.slice(1),_.bools))r=t.slice(1),x(r,U(r));else{if("--"===t){S=n.slice(e+1);break}if(h["halt-at-non-option"]){S=n.slice(e);break}T(t)}}}function T(e){const t=L("_",e);"string"!=typeof t&&"number"!=typeof t||A._.push(t)}function D(e,t,o,i){let n,r=H(t,_.nargs);if(r="number"!=typeof r||isNaN(r)?1:r,0===r)return Y(i)||(O=Error(E("Argument unexpected for: %s",t))),x(t,U(t)),e;let s=Y(i)?0:1;if(h["nargs-eats-options"])o.length-(e+1)+s<r&&(O=Error(E("Not enough arguments following: %s",t))),s=r;else{for(n=e+1;n<o.length&&(!o[n].match(/^-[^0-9]/)||o[n].match(b)||B(o[n]));n++)s++;s<r&&(O=Error(E("Not enough arguments following: %s",t)))}let a=Math.min(s,r);for(!Y(i)&&a>0&&(x(t,i),a--),n=e+1;n<a+e+1;n++)x(t,o[n]);return e+a}function N(e,t,o,i){let n=[],s=i||o[e+1];const a=H(t,_.nargs);if(H(t,_.bools)&&!/^(true|false)$/.test(s))n.push(!0);else if(Y(s)||Y(i)&&/^-/.test(s)&&!b.test(s)&&!B(s)){if(void 0!==f[t]){const e=f[t];n=Array.isArray(e)?e:[e]}}else{Y(i)||n.push(F(t,i,!0));for(let i=e+1;i<o.length&&!(!h["greedy-arrays"]&&n.length>0||a&&"number"==typeof a&&n.length>=a)&&(s=o[i],!/^-/.test(s)||b.test(s)||B(s));i++)e=i,n.push(F(t,s,r))}return"number"==typeof a&&(a&&n.length<a||isNaN(a)&&0===n.length)&&(O=Error(E("Not enough arguments following: %s",t))),x(t,n),e}function x(e,t,o=r){if(/-/.test(e)&&h["camel-case-expansion"]){const t=e.split(".").map((function(e){return s(e)})).join(".");I(e,t)}const i=F(e,t,o),n=e.split(".");W(A,n,i),_.aliases[e]&&_.aliases[e].forEach((function(e){const t=e.split(".");W(A,t,i)})),n.length>1&&h["dot-notation"]&&(_.aliases[n[0]]||[]).forEach((function(t){let o=t.split(".");const r=[].concat(n);r.shift(),o=o.concat(r),(_.aliases[e]||[]).includes(o.join("."))||W(A,o,i)})),H(e,_.normalize)&&!H(e,_.arrays)&&[e].concat(_.aliases[e]||[]).forEach((function(e){Object.defineProperty(P,e,{enumerable:!0,get:()=>t,set(e){t="string"==typeof e?p.normalize(e):e}})}))}function I(e,t){_.aliases[e]&&_.aliases[e].length||(_.aliases[e]=[t],C[t]=!0),_.aliases[t]&&_.aliases[t].length||I(t,e)}function F(e,t,o){o&&(t=function(e){return"string"!=typeof e||"'"!==e[0]&&'"'!==e[0]||e[e.length-1]!==e[0]?e:e.substring(1,e.length-1)}(t)),(H(e,_.bools)||H(e,_.counts))&&"string"==typeof t&&(t="true"===t);let i=Array.isArray(t)?t.map((function(t){return L(e,t)})):L(e,t);return H(e,_.counts)&&(Y(i)||"boolean"==typeof i)&&(i=u()),H(e,_.normalize)&&H(e,_.arrays)&&(i=Array.isArray(t)?t.map((e=>p.normalize(e))):p.normalize(t)),i}function L(e,t){return h["parse-positional-numbers"]||"_"!==e?(H(e,_.strings)||H(e,_.bools)||Array.isArray(t)||(l(t)&&h["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${t}`)))||!Y(t)&&H(e,_.numbers))&&(t=Number(t)),t):t}function k(e,t){Object.keys(e).forEach((function(o){const i=e[o],n=t?t+"."+o:o;"object"==typeof i&&null!==i&&!Array.isArray(i)&&h["dot-notation"]?k(i,n):(!V(A,n.split("."))||H(n,_.arrays)&&h["combine-arrays"])&&x(n,i)}))}function M(e,t){if(void 0===m)return;const o="string"==typeof m?m:"",i=p.env();Object.keys(i).forEach((function(n){if(""===o||0===n.lastIndexOf(o,0)){const r=n.split("__").map((function(e,t){return 0===t&&(e=e.substring(o.length)),s(e)}));(t&&_.configs[r.join(".")]||!t)&&!V(e,r)&&x(r.join("."),i[n])}}))}function G(e,t,o,i=!1){Object.keys(o).forEach((function(n){V(e,n.split("."))||(W(e,n.split("."),o[n]),i&&(w[n]=!0),(t[n]||[]).forEach((function(t){V(e,t.split("."))||W(e,t.split("."),o[n])})))}))}function V(e,t){let o=e;h["dot-notation"]||(t=[t.join(".")]),t.slice(0,-1).forEach((function(e){o=o[e]||{}}));const i=t[t.length-1];return"object"==typeof o&&i in o}function W(e,t,o){let i=e;h["dot-notation"]||(t=[t.join(".")]),t.slice(0,-1).forEach((function(e){e=c(e),"object"==typeof i&&void 0===i[e]&&(i[e]={}),"object"!=typeof i[e]||Array.isArray(i[e])?(Array.isArray(i[e])?i[e].push({}):i[e]=[i[e],{}],i=i[e][i[e].length-1]):i=i[e]}));const n=c(t[t.length-1]),r=H(t.join("."),_.arrays),s=Array.isArray(o);let a=h["duplicate-arguments-array"];!a&&H(n,_.nargs)&&(a=!0,(!Y(i[n])&&1===_.nargs[n]||Array.isArray(i[n])&&i[n].length===_.nargs[n])&&(i[n]=void 0)),o===u()?i[n]=u(i[n]):Array.isArray(i[n])?a&&r&&s?i[n]=h["flatten-duplicate-arrays"]?i[n].concat(o):(Array.isArray(i[n][0])?i[n]:[i[n]]).concat([o]):a||Boolean(r)!==Boolean(s)?i[n]=i[n].concat([o]):i[n]=o:void 0===i[n]&&r?i[n]=s?o:[o]:!a||void 0===i[n]||H(n,_.counts)||H(n,_.bools)?i[n]=o:i[n]=[i[n],o]}function H(e,t){const o=[].concat(_.aliases[e]||[],e),i=Object.keys(t),n=o.find((e=>i.includes(e)));return!!n&&t[n]}function j(e){const t=Object.keys(_);return[].concat(t.map((e=>_[e]))).some((function(t){return Array.isArray(t)?t.includes(e):t[e]}))}function B(e){return h["unknown-options-as-args"]&&function(e){return!(e=e.replace(/^-{3,}/,"--")).match(b)&&(!function(e){if(e.match(b)||!e.match(/^-[^-]+/))return!1;let t,o=!0;const i=e.slice(1).split("");for(let n=0;n<i.length;n++){if(t=e.slice(n+2),!j(i[n])){o=!1;break}if(i[n+1]&&"="===i[n+1]||"-"===t||/[A-Za-z]/.test(i[n])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(t)||i[n+1]&&i[n+1].match(/\W/))break}return o}(e)&&!function(e,...t){return[].concat(...t).some((function(t){const o=e.match(t);return o&&j(o[1])}))}(e,/^-+([^=]+?)=[\s\S]*$/,R,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/))}(e)}function U(e){return H(e,_.bools)||H(e,_.counts)||!(`${e}`in f)?(t=function(e){let t=i.BOOLEAN;return H(e,_.strings)?t=i.STRING:H(e,_.numbers)?t=i.NUMBER:H(e,_.bools)?t=i.BOOLEAN:H(e,_.arrays)&&(t=i.ARRAY),t}(e),{[i.BOOLEAN]:!0,[i.STRING]:"",[i.NUMBER]:void 0,[i.ARRAY]:[]}[t]):f[e];var t}function Y(e){return void 0===e}return M(A,!0),M(A,!1),function(e){const t=Object.create(null);G(t,_.aliases,f),Object.keys(_.configs).forEach((function(o){const i=e[o]||t[o];if(i)try{let e=null;const t=p.resolve(p.cwd(),i),n=_.configs[o];if("function"==typeof n){try{e=n(t)}catch(t){e=t}if(e instanceof Error)return void(O=e)}else e=p.require(t);k(e)}catch(t){"PermissionDenied"===t.name?O=t:e[o]&&(O=Error(E("Invalid JSON config file: %s",i)))}}))}(A),void 0!==g&&g.forEach((function(e){k(e)})),G(A,_.aliases,f,!0),function(e){let t;const o=new Set;Object.keys(e).forEach((function(i){if(!o.has(i)&&(t=H(i,_.coercions),"function"==typeof t))try{const n=L(i,t(e[i]));[].concat(_.aliases[i]||[],i).forEach((t=>{o.add(t),e[t]=n}))}catch(e){O=e}}))}(A),h["set-placeholder-key"]&&function(e){_.keys.forEach((t=>{~t.indexOf(".")||void 0===e[t]&&(e[t]=void 0)}))}(A),Object.keys(_.counts).forEach((function(e){V(A,e.split("."))||x(e,0)})),y&&S.length&&(A[v]=[]),S.forEach((function(e){A[v].push(e)})),h["camel-case-expansion"]&&h["strip-dashed"]&&Object.keys(A).filter((e=>"--"!==e&&e.includes("-"))).forEach((e=>{delete A[e]})),h["strip-aliased"]&&[].concat(...Object.keys(d).map((e=>d[e]))).forEach((e=>{h["camel-case-expansion"]&&e.includes("-")&&delete A[e.split(".").map((e=>s(e))).join(".")],delete A[e]})),{aliases:Object.assign({},_.aliases),argv:Object.assign(P,A),configuration:h,defaulted:Object.assign({},w),error:O,newAliases:Object.assign({},C)}}}({cwd:m.cwd,env:()=>C,format:n.format,normalize:r.normalize,resolve:r.resolve,require:e=>{if("undefined"!=typeof require)return require(e);if(e.match(/\.json$/))return JSON.parse((0,g.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),E=function(e,t){return w.parse(e.slice(),t).argv};E.detailed=function(e,t){return w.parse(e.slice(),t)},E.camelCase=s,E.decamelize=a,E.looksLikeNumber=l},25230:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(37132),a=o(60843),l=o(63405),p=o(44081),u=o(44871),c=o(40797),d=o(83423),h=function(){function e(){this.onMouseUpListener=this.onMouseUp.bind(this),this.onMouseMoveListener=this.onMouseMove.bind(this),this.onTouchEndListener=this.onTouchUp.bind(this),this.onTouchMoveListener=this.onTouchMove.bind(this),this.dragEndFunctions=[],this.dragSources=[]}return e.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},e.prototype.destroy=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},e.prototype.removeListener=function(e){var t=e.dragSource.eElement,o=e.mouseDownListener;if(t.removeEventListener("mousedown",o),e.touchEnabled){var i=e.touchStartListener;t.removeEventListener("touchstart",i,{passive:!0})}},e.prototype.removeDragSource=function(e){var t=d._.find(this.dragSources,(function(t){return t.dragSource===e}));t&&(this.removeListener(t),d._.removeFromArray(this.dragSources,t))},e.prototype.setNoSelectToBody=function(e){var t=this.gridOptionsWrapper.getDocument().querySelector("body");d._.exists(t)&&d._.addOrRemoveCssClass(t,"ag-unselectable",e)},e.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var o=this.onMouseDown.bind(this,e);e.eElement.addEventListener("mousedown",o);var i=null,n=this.gridOptionsWrapper.isSuppressTouch();t&&!n&&(i=this.onTouchStart.bind(this,e),e.eElement.addEventListener("touchstart",i,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:o,touchStartListener:i,touchEnabled:t})},e.prototype.onTouchStart=function(e,t){var o=this;this.currentDragParams=e,this.dragging=!1;var i=t.touches[0];this.touchLastTime=i,this.touchStart=i,t.preventDefault(),e.eElement.addEventListener("touchmove",this.onTouchMoveListener,{passive:!0}),e.eElement.addEventListener("touchend",this.onTouchEndListener,{passive:!0}),e.eElement.addEventListener("touchcancel",this.onTouchEndListener,{passive:!0}),this.dragEndFunctions.push((function(){e.eElement.removeEventListener("touchmove",o.onTouchMoveListener,{passive:!0}),e.eElement.removeEventListener("touchend",o.onTouchEndListener,{passive:!0}),e.eElement.removeEventListener("touchcancel",o.onTouchEndListener,{passive:!0})})),0===e.dragStartPixels&&this.onCommonMove(i,this.touchStart)},e.prototype.onMouseDown=function(e,t){var o=this;if(!(e.skipMouseEvent&&e.skipMouseEvent(t)||t._alreadyProcessedByDragService||(t._alreadyProcessedByDragService=!0,0!==t.button))){this.currentDragParams=e,this.dragging=!1,this.mouseEventLastTime=t,this.mouseStartEvent=t;var i=this.gridOptionsWrapper.getDocument();i.addEventListener("mousemove",this.onMouseMoveListener),i.addEventListener("mouseup",this.onMouseUpListener),this.dragEndFunctions.push((function(){i.removeEventListener("mousemove",o.onMouseMoveListener),i.removeEventListener("mouseup",o.onMouseUpListener)})),0===e.dragStartPixels&&this.onMouseMove(t)}},e.prototype.isEventNearStartEvent=function(e,t){var o=this.currentDragParams.dragStartPixels,i=d._.exists(o)?o:4;return d._.areEventsNear(e,t,i)},e.prototype.getFirstActiveTouch=function(e){for(var t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null},e.prototype.onCommonMove=function(e,t){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(e,t))return;this.dragging=!0;var o={type:l.Events.EVENT_DRAG_STARTED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o),this.currentDragParams.onDragStart(t),this.setNoSelectToBody(!0)}this.currentDragParams.onDragging(e)},e.prototype.onTouchMove=function(e){var t=this.getFirstActiveTouch(e.touches);t&&this.onCommonMove(t,this.touchStart)},e.prototype.onMouseMove=function(e){this.onCommonMove(e,this.mouseStartEvent)},e.prototype.onTouchUp=function(e){var t=this.getFirstActiveTouch(e.changedTouches);t||(t=this.touchLastTime),this.onUpCommon(t)},e.prototype.onMouseUp=function(e){this.onUpCommon(e)},e.prototype.onUpCommon=function(e){if(this.dragging){this.dragging=!1,this.currentDragParams.onDragStop(e);var t={type:l.Events.EVENT_DRAG_STOPPED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}this.setNoSelectToBody(!1),this.mouseStartEvent=null,this.mouseEventLastTime=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach((function(e){return e()})),this.dragEndFunctions.length=0},i([r.Autowired("loggerFactory"),n("design:type",s.LoggerFactory)],e.prototype,"loggerFactory",void 0),i([r.Autowired("eventService"),n("design:type",a.EventService)],e.prototype,"eventService",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",p.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("columnApi"),n("design:type",u.ColumnApi)],e.prototype,"columnApi",void 0),i([r.Autowired("gridApi"),n("design:type",c.GridApi)],e.prototype,"gridApi",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([r.PreDestroy,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"destroy",null),i([r.Bean("dragService")],e)}();t.DragService=h},25358:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(22131),l=o(26016),p=o(72493),u=o(44081),c=o(86608),d=o(66419),h=o(60843),f=o(47721),g=o(63405),m=o(83423),y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastMovingChanged=0,t}return n(t,e),t.prototype.init=function(e){var o=m._.firstExistingValue(e.template,t.TEMPLATE);o=o&&o.trim?o.trim():o,this.setTemplate(o),this.params=e,this.setupTap(),this.setupIcons(e.column),this.setupMenu(),this.setupSort(),this.setupFilterIcon(),this.setupText(e.displayName)},t.prototype.setupText=function(e){var t=m._.escape(e);this.eText&&(this.eText.innerHTML=t)},t.prototype.setupIcons=function(e){this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addInIcon("menu",this.eMenu,e),this.addInIcon("filter",this.eFilter,e)},t.prototype.addInIcon=function(e,t,o){if(null!=t){var i=m._.createIconNoSpan(e,this.gridOptionsWrapper,o);t.appendChild(i)}},t.prototype.setupTap=function(){var e=this,t=this.gridOptionsWrapper;if(!t.isSuppressTouch()){var o=t.isSuppressMenuHide(),i=new d.TouchListener(this.getGui(),!0),n=o?new d.TouchListener(this.eMenu,!0):i;if(this.params.enableMenu){var r=o?"EVENT_TAP":"EVENT_LONG_TAP";this.addDestroyableEventListener(n,d.TouchListener[r],(function(o){t.getApi().showColumnMenuAfterMouseClick(e.params.column,o.touchStart)}))}this.params.enableSorting&&this.addDestroyableEventListener(i,d.TouchListener.EVENT_TAP,(function(t){var i=t.touchStart.target;o&&e.eMenu.contains(i)||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")})),this.addDestroyFunc((function(){return i.destroy()})),n!==i&&this.addDestroyFunc((function(){return n.destroy()}))}},t.prototype.setupMenu=function(){var e=this;if(this.eMenu){var t=this.gridOptionsWrapper.isSuppressMenuHide();if(!this.params.enableMenu||m._.isUserAgentIPad()&&!t)m._.removeFromParent(this.eMenu);else{this.addDestroyableEventListener(this.eMenu,"click",(function(){return e.showMenu(e.eMenu)})),t||(this.eMenu.style.opacity="0",this.addGuiEventListener("mouseover",(function(){e.eMenu.style.opacity="1"})),this.addGuiEventListener("mouseout",(function(){e.eMenu.style.opacity="0"})));var o=this.eMenu.style;o.transition="opacity 0.2s, border 0.2s",o["-webkit-transition"]="opacity 0.2s, border 0.2s"}}},t.prototype.showMenu=function(e){this.menuFactory.showMenuAfterButtonClick(this.params.column,e)},t.prototype.removeSortIcons=function(){m._.removeFromParent(this.eSortAsc),m._.removeFromParent(this.eSortDesc),m._.removeFromParent(this.eSortNone),m._.removeFromParent(this.eSortOrder)},t.prototype.setupSort=function(){var e=this;if(this.params.enableSorting){var t=this.gridOptionsWrapper.isMultiSortKeyCtrl();this.addDestroyableEventListener(this.params.column,l.Column.EVENT_MOVING_CHANGED,(function(){e.lastMovingChanged=(new Date).getTime()})),this.eLabel&&this.addDestroyableEventListener(this.eLabel,"click",(function(o){var i=e.params.column.isMoving(),n=(new Date).getTime()-e.lastMovingChanged<50;if(!i&&!n){var r=t?o.ctrlKey||o.metaKey:o.shiftKey;e.params.progressSort(r)}})),this.addDestroyableEventListener(this.params.column,l.Column.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.onSortChanged(),this.addDestroyableEventListener(this.eventService,g.Events.EVENT_SORT_CHANGED,this.setMultiSortOrder.bind(this)),this.setMultiSortOrder()}else this.removeSortIcons()},t.prototype.onSortChanged=function(){if(m._.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-asc",this.params.column.isSortAscending()),m._.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-desc",this.params.column.isSortDescending()),m._.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-none",this.params.column.isSortNone()),this.eSortAsc&&m._.addOrRemoveCssClass(this.eSortAsc,"ag-hidden",!this.params.column.isSortAscending()),this.eSortDesc&&m._.addOrRemoveCssClass(this.eSortDesc,"ag-hidden",!this.params.column.isSortDescending()),this.eSortNone){var e=!this.params.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon();m._.addOrRemoveCssClass(this.eSortNone,"ag-hidden",e||!this.params.column.isSortNone())}},t.prototype.setMultiSortOrder=function(){if(this.eSortOrder){var e=this.params.column,t=this.sortController.getColumnsWithSortingOrdered(),o=t.indexOf(e),i=t.length>1,n=e.isSorting()&&i;m._.setVisible(this.eSortOrder,n),o>=0?this.eSortOrder.innerHTML=(o+1).toString():m._.clearElement(this.eSortOrder)}},t.prototype.setupFilterIcon=function(){this.eFilter&&(this.addDestroyableEventListener(this.params.column,l.Column.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},t.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();m._.addOrRemoveCssClass(this.eFilter,"ag-hidden",!e)},t.TEMPLATE='<div class="ag-cell-label-container" role="presentation"> <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span> <div ref="eLabel" class="ag-header-cell-label" role="presentation" unselectable="on"> <span ref="eText" class="ag-header-cell-text" role="columnheader" unselectable="on"></span> <span ref="eFilter" class="ag-header-icon ag-filter-icon" aria-hidden="true"></span> <span ref="eSortOrder" class="ag-header-icon ag-sort-order" aria-hidden="true"></span> <span ref="eSortAsc" class="ag-header-icon ag-sort-ascending-icon" aria-hidden="true"></span> <span ref="eSortDesc" class="ag-header-icon ag-sort-descending-icon" aria-hidden="true"></span> <span ref="eSortNone" class="ag-header-icon ag-sort-none-icon" aria-hidden="true"></span> </div></div>',r([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([p.Autowired("sortController"),s("design:type",c.SortController)],t.prototype,"sortController",void 0),r([p.Autowired("menuFactory"),s("design:type",Object)],t.prototype,"menuFactory",void 0),r([p.Autowired("eventService"),s("design:type",h.EventService)],t.prototype,"eventService",void 0),r([f.RefSelector("eFilter"),s("design:type",HTMLElement)],t.prototype,"eFilter",void 0),r([f.RefSelector("eSortAsc"),s("design:type",HTMLElement)],t.prototype,"eSortAsc",void 0),r([f.RefSelector("eSortDesc"),s("design:type",HTMLElement)],t.prototype,"eSortDesc",void 0),r([f.RefSelector("eSortNone"),s("design:type",HTMLElement)],t.prototype,"eSortNone",void 0),r([f.RefSelector("eSortOrder"),s("design:type",HTMLElement)],t.prototype,"eSortOrder",void 0),r([f.RefSelector("eMenu"),s("design:type",HTMLElement)],t.prototype,"eMenu",void 0),r([f.RefSelector("eLabel"),s("design:type",HTMLElement)],t.prototype,"eLabel",void 0),r([f.RefSelector("eText"),s("design:type",HTMLElement)],t.prototype,"eText",void 0),t}(a.Component);t.HeaderComp=y},25453:(e,t,o)=>{o.d(t,{JS:()=>Le,jN:()=>T});var i,n,r,s,a,l,p,u,c,d,h,f,g,m,y=o(38848),v=o(12240),C=o(8645),w=o(84340),E=o(39889),_=o(9606).URL,b=o(67787).Buffer,R=Symbol.for("vercel.ai.gateway.error"),O=class e extends(n=Error,i=R,n){constructor({message:e,statusCode:t=500,cause:o,generationId:n}){super(n?`${e} [${n}]`:e),this[i]=!0,this.statusCode=t,this.cause=o,this.generationId=n}static isInstance(t){return e.hasMarker(t)}static hasMarker(e){return"object"==typeof e&&null!==e&&R in e&&!0===e[R]}},S="GatewayAuthenticationError",A=`vercel.ai.gateway.error.${S}`,P=Symbol.for(A),T=class e extends(s=O,r=P,s){constructor({message:e="Authentication failed",statusCode:t=401,cause:o,generationId:i}={}){super({message:e,statusCode:t,cause:o,generationId:i}),this[r]=!0,this.name=S,this.type="authentication_error"}static isInstance(e){return O.hasMarker(e)&&P in e}static createContextualError({apiKeyProvided:t,oidcTokenProvided:o,message:i="Authentication failed",statusCode:n=401,cause:r,generationId:s}){let a;return a=t?"AI Gateway authentication failed: Invalid API key.\n\nCreate a new API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys\n\nProvide via 'apiKey' option or 'AI_GATEWAY_API_KEY' environment variable.":o?"AI Gateway authentication failed: Invalid OIDC token.\n\nRun 'npx vercel link' to link your project, then 'vc env pull' to fetch the token.\n\nAlternatively, use an API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys":"AI Gateway authentication failed: No authentication provided.\n\nOption 1 - API key:\nCreate an API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys\nProvide via 'apiKey' option or 'AI_GATEWAY_API_KEY' environment variable.\n\nOption 2 - OIDC token:\nRun 'npx vercel link' to link your project, then 'vc env pull' to fetch the token.",new e({message:a,statusCode:n,cause:r,generationId:s})}},D="GatewayInvalidRequestError",N=`vercel.ai.gateway.error.${D}`,x=Symbol.for(N),I=class extends(l=O,a=x,l){constructor({message:e="Invalid request",statusCode:t=400,cause:o,generationId:i}={}){super({message:e,statusCode:t,cause:o,generationId:i}),this[a]=!0,this.name=D,this.type="invalid_request_error"}static isInstance(e){return O.hasMarker(e)&&x in e}},F="GatewayRateLimitError",L=`vercel.ai.gateway.error.${F}`,k=Symbol.for(L),M=class extends(u=O,p=k,u){constructor({message:e="Rate limit exceeded",statusCode:t=429,cause:o,generationId:i}={}){super({message:e,statusCode:t,cause:o,generationId:i}),this[p]=!0,this.name=F,this.type="rate_limit_exceeded"}static isInstance(e){return O.hasMarker(e)&&k in e}},G="GatewayModelNotFoundError",V=`vercel.ai.gateway.error.${G}`,W=Symbol.for(V),H=(0,y.ID)((()=>(0,y.jN)(C.Ik({modelId:C.Yj()})))),j=class extends(d=O,c=W,d){constructor({message:e="Model not found",statusCode:t=404,modelId:o,cause:i,generationId:n}={}){super({message:e,statusCode:t,cause:i,generationId:n}),this[c]=!0,this.name=G,this.type="model_not_found",this.modelId=o}static isInstance(e){return O.hasMarker(e)&&W in e}},B="GatewayInternalServerError",U=`vercel.ai.gateway.error.${B}`,Y=Symbol.for(U),z=class extends(f=O,h=Y,f){constructor({message:e="Internal server error",statusCode:t=500,cause:o,generationId:i}={}){super({message:e,statusCode:t,cause:o,generationId:i}),this[h]=!0,this.name=B,this.type="internal_server_error"}static isInstance(e){return O.hasMarker(e)&&Y in e}},q="GatewayResponseError",K=`vercel.ai.gateway.error.${q}`,$=Symbol.for(K),Z=class extends(m=O,g=$,m){constructor({message:e="Invalid response from Gateway",statusCode:t=502,response:o,validationError:i,cause:n,generationId:r}={}){super({message:e,statusCode:t,cause:n,generationId:r}),this[g]=!0,this.name=q,this.type="response_error",this.response=o,this.validationError=i}static isInstance(e){return O.hasMarker(e)&&$ in e}};async function Q({response:e,statusCode:t,defaultMessage:o="Gateway request failed",cause:i,authMethod:n}){var r;const s=await(0,y.ZZ)({value:e,schema:ee});if(!s.success){const n="object"==typeof e&&null!==e&&"generationId"in e?e.generationId:void 0;return new Z({message:`Invalid error response format: ${o}`,statusCode:t,response:e,validationError:s.error,cause:i,generationId:n})}const a=s.value,l=a.error.type,p=a.error.message,u=null!=(r=a.generationId)?r:void 0;switch(l){case"authentication_error":return T.createContextualError({apiKeyProvided:"api-key"===n,oidcTokenProvided:"oidc"===n,statusCode:t,cause:i,generationId:u});case"invalid_request_error":return new I({message:p,statusCode:t,cause:i,generationId:u});case"rate_limit_exceeded":return new M({message:p,statusCode:t,cause:i,generationId:u});case"model_not_found":{const e=await(0,y.ZZ)({value:a.error.param,schema:H});return new j({message:p,statusCode:t,modelId:e.success?e.value.modelId:void 0,cause:i,generationId:u})}default:return new z({message:p,statusCode:t,cause:i,generationId:u})}}var X,J,ee=(0,y.ID)((()=>(0,y.jN)(C.Ik({error:C.Ik({message:C.Yj(),type:C.Yj().nullish(),param:C.L5().nullish(),code:C.KC([C.Yj(),C.ai()]).nullish()}),generationId:C.Yj().nullish()})))),te="GatewayTimeoutError",oe=`vercel.ai.gateway.error.${te}`,ie=Symbol.for(oe),ne=class e extends(J=O,X=ie,J){constructor({message:e="Request timed out",statusCode:t=408,cause:o,generationId:i}={}){super({message:e,statusCode:t,cause:o,generationId:i}),this[X]=!0,this.name=te,this.type="timeout_error"}static isInstance(e){return O.hasMarker(e)&&ie in e}static createTimeoutError({originalMessage:t,statusCode:o=408,cause:i,generationId:n}){return new e({message:`Gateway request timed out: ${t}\n\n This is a client-side timeout. To resolve this, increase your timeout configuration: https://vercel.com/docs/ai-gateway/capabilities/video-generation#extending-timeouts-for-node.js`,statusCode:o,cause:i,generationId:n})}};function re(e){if(!(e instanceof Error))return!1;const t=e.code;return"string"==typeof t&&["UND_ERR_HEADERS_TIMEOUT","UND_ERR_BODY_TIMEOUT","UND_ERR_CONNECT_TIMEOUT"].includes(t)}async function se(e,t){var o;return O.isInstance(e)?e:re(e)?ne.createTimeoutError({originalMessage:e instanceof Error?e.message:"Unknown error",cause:e}):v.hL.isInstance(e)?e.cause&&re(e.cause)?ne.createTimeoutError({originalMessage:e.message,cause:e}):await Q({response:ae(e),statusCode:null!=(o=e.statusCode)?o:500,defaultMessage:"Gateway request failed",cause:e,authMethod:t}):await Q({response:{},statusCode:500,defaultMessage:e instanceof Error?`Gateway request failed: ${e.message}`:"Unknown Gateway error",cause:e,authMethod:t})}function ae(e){if(void 0!==e.data)return e.data;if(null!=e.responseBody)try{return JSON.parse(e.responseBody)}catch(t){return e.responseBody}return{}}var le="ai-gateway-auth-method";async function pe(e){const t=await(0,y.ZZ)({value:e[le],schema:ue});return t.success?t.value:void 0}var ue=(0,y.ID)((()=>(0,y.jN)(C.KC([C.eu("api-key"),C.eu("oidc")])))),ce=class{constructor(e){this.config=e}async getAvailableModels(){try{const{value:e}=await(0,y.$b)({url:`${this.config.baseURL}/config`,headers:await(0,y.hd)(this.config.headers()),successfulResponseHandler:(0,y.cV)(de),failedResponseHandler:(0,y.sl)({errorSchema:C.bz(),errorToMessage:e=>e}),fetch:this.config.fetch});return e}catch(e){throw await se(e)}}async getCredits(){try{const e=new _(this.config.baseURL),{value:t}=await(0,y.$b)({url:`${e.origin}/v1/credits`,headers:await(0,y.hd)(this.config.headers()),successfulResponseHandler:(0,y.cV)(he),failedResponseHandler:(0,y.sl)({errorSchema:C.bz(),errorToMessage:e=>e}),fetch:this.config.fetch});return t}catch(e){throw await se(e)}}},de=(0,y.ID)((()=>(0,y.jN)(C.Ik({models:C.YO(C.Ik({id:C.Yj(),name:C.Yj(),description:C.Yj().nullish(),pricing:C.Ik({input:C.Yj(),output:C.Yj(),input_cache_read:C.Yj().nullish(),input_cache_write:C.Yj().nullish()}).transform((({input:e,output:t,input_cache_read:o,input_cache_write:i})=>({input:e,output:t,...o?{cachedInputTokens:o}:{},...i?{cacheCreationInputTokens:i}:{}}))).nullish(),specification:C.Ik({specificationVersion:C.eu("v3"),provider:C.Yj(),modelId:C.Yj()}),modelType:C.k5(["embedding","image","language","video"]).nullish()}))})))),he=(0,y.ID)((()=>(0,y.jN)(C.Ik({balance:C.Yj(),total_used:C.Yj()}).transform((({balance:e,total_used:t})=>({balance:e,totalUsed:t})))))),fe=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3",this.supportedUrls={"*/*":[/.*/]}}get provider(){return this.config.provider}async getArgs(e){const{abortSignal:t,...o}=e;return{args:this.maybeEncodeFileParts(o),warnings:[]}}async doGenerate(e){const{args:t,warnings:o}=await this.getArgs(e),{abortSignal:i}=e,n=await(0,y.hd)(this.config.headers());try{const{responseHeaders:r,value:s,rawValue:a}=await(0,y.GU)({url:this.getUrl(),headers:(0,y.m2)(n,e.headers,this.getModelConfigHeaders(this.modelId,!1),await(0,y.hd)(this.config.o11yHeaders)),body:t,successfulResponseHandler:(0,y.cV)(C.bz()),failedResponseHandler:(0,y.sl)({errorSchema:C.bz(),errorToMessage:e=>e}),...i&&{abortSignal:i},fetch:this.config.fetch});return{...s,request:{body:t},response:{headers:r,body:a},warnings:o}}catch(e){throw await se(e,await pe(n))}}async doStream(e){const{args:t,warnings:o}=await this.getArgs(e),{abortSignal:i}=e,n=await(0,y.hd)(this.config.headers());try{const{value:r,responseHeaders:s}=await(0,y.GU)({url:this.getUrl(),headers:(0,y.m2)(n,e.headers,this.getModelConfigHeaders(this.modelId,!0),await(0,y.hd)(this.config.o11yHeaders)),body:t,successfulResponseHandler:(0,y.Ds)(C.bz()),failedResponseHandler:(0,y.sl)({errorSchema:C.bz(),errorToMessage:e=>e}),...i&&{abortSignal:i},fetch:this.config.fetch});return{stream:r.pipeThrough(new TransformStream({start(e){o.length>0&&e.enqueue({type:"stream-start",warnings:o})},transform(t,o){if(t.success){const i=t.value;if("raw"===i.type&&!e.includeRawChunks)return;"response-metadata"===i.type&&i.timestamp&&"string"==typeof i.timestamp&&(i.timestamp=new Date(i.timestamp)),o.enqueue(i)}else o.error(t.error)}})),request:{body:t},response:{headers:s}}}catch(e){throw await se(e,await pe(n))}}isFilePart(e){return e&&"object"==typeof e&&"type"in e&&"file"===e.type}maybeEncodeFileParts(e){for(const t of e.prompt)for(const e of t.content)if(this.isFilePart(e)){const t=e;if(t.data instanceof Uint8Array){const e=Uint8Array.from(t.data),o=b.from(e).toString("base64");t.data=new _(`data:${t.mediaType||"application/octet-stream"};base64,${o}`)}}return e}getUrl(){return`${this.config.baseURL}/language-model`}getModelConfigHeaders(e,t){return{"ai-language-model-specification-version":"3","ai-language-model-id":e,"ai-language-model-streaming":String(t)}}},ge=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3",this.maxEmbeddingsPerCall=2048,this.supportsParallelCalls=!0}get provider(){return this.config.provider}async doEmbed({values:e,headers:t,abortSignal:o,providerOptions:i}){var n;const r=await(0,y.hd)(this.config.headers());try{const{responseHeaders:s,value:a,rawValue:l}=await(0,y.GU)({url:this.getUrl(),headers:(0,y.m2)(r,null!=t?t:{},this.getModelConfigHeaders(),await(0,y.hd)(this.config.o11yHeaders)),body:{values:e,...i?{providerOptions:i}:{}},successfulResponseHandler:(0,y.cV)(me),failedResponseHandler:(0,y.sl)({errorSchema:C.bz(),errorToMessage:e=>e}),...o&&{abortSignal:o},fetch:this.config.fetch});return{embeddings:a.embeddings,usage:null!=(n=a.usage)?n:void 0,providerMetadata:a.providerMetadata,response:{headers:s,body:l},warnings:[]}}catch(e){throw await se(e,await pe(r))}}getUrl(){return`${this.config.baseURL}/embedding-model`}getModelConfigHeaders(){return{"ai-embedding-model-specification-version":"3","ai-model-id":this.modelId}}},me=(0,y.ID)((()=>(0,y.jN)(C.Ik({embeddings:C.YO(C.YO(C.ai())),usage:C.Ik({tokens:C.ai()}).nullish(),providerMetadata:C.g1(C.Yj(),C.g1(C.Yj(),C.L5())).optional()})))),ye=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3",this.maxImagesPerCall=Number.MAX_SAFE_INTEGER}get provider(){return this.config.provider}async doGenerate({prompt:e,n:t,size:o,aspectRatio:i,seed:n,files:r,mask:s,providerOptions:a,headers:l,abortSignal:p}){var u,c,d,h;const f=await(0,y.hd)(this.config.headers());try{const{responseHeaders:g,value:m,rawValue:v}=await(0,y.GU)({url:this.getUrl(),headers:(0,y.m2)(f,null!=l?l:{},this.getModelConfigHeaders(),await(0,y.hd)(this.config.o11yHeaders)),body:{prompt:e,n:t,...o&&{size:o},...i&&{aspectRatio:i},...n&&{seed:n},...a&&{providerOptions:a},...r&&{files:r.map((e=>ve(e)))},...s&&{mask:ve(s)}},successfulResponseHandler:(0,y.cV)(_e),failedResponseHandler:(0,y.sl)({errorSchema:C.bz(),errorToMessage:e=>e}),...p&&{abortSignal:p},fetch:this.config.fetch});return{images:m.images,warnings:null!=(u=m.warnings)?u:[],providerMetadata:m.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:g},...null!=m.usage&&{usage:{inputTokens:null!=(c=m.usage.inputTokens)?c:void 0,outputTokens:null!=(d=m.usage.outputTokens)?d:void 0,totalTokens:null!=(h=m.usage.totalTokens)?h:void 0}}}}catch(e){throw await se(e,await pe(f))}}getUrl(){return`${this.config.baseURL}/image-model`}getModelConfigHeaders(){return{"ai-image-model-specification-version":"3","ai-model-id":this.modelId}}};function ve(e){return"file"===e.type&&e.data instanceof Uint8Array?{...e,data:(0,y.n_)(e.data)}:e}var Ce=C.Ik({images:C.YO(C.L5()).optional()}).catchall(C.L5()),we=C.gM("type",[C.Ik({type:C.eu("unsupported"),feature:C.Yj(),details:C.Yj().optional()}),C.Ik({type:C.eu("compatibility"),feature:C.Yj(),details:C.Yj().optional()}),C.Ik({type:C.eu("other"),message:C.Yj()})]),Ee=C.Ik({inputTokens:C.ai().nullish(),outputTokens:C.ai().nullish(),totalTokens:C.ai().nullish()}),_e=C.Ik({images:C.YO(C.Yj()),warnings:C.YO(we).optional(),providerMetadata:C.g1(C.Yj(),Ce).optional(),usage:Ee.optional()}),be=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3",this.maxVideosPerCall=Number.MAX_SAFE_INTEGER}get provider(){return this.config.provider}async doGenerate({prompt:e,n:t,aspectRatio:o,resolution:i,duration:n,fps:r,seed:s,image:a,providerOptions:l,headers:p,abortSignal:u}){var c;const d=await(0,y.hd)(this.config.headers());try{const{responseHeaders:f,value:g,rawValue:m}=await(0,y.GU)({url:this.getUrl(),headers:(0,y.m2)(d,null!=p?p:{},this.getModelConfigHeaders(),await(0,y.hd)(this.config.o11yHeaders)),body:{prompt:e,n:t,...o&&{aspectRatio:o},...i&&{resolution:i},...n&&{duration:n},...r&&{fps:r},...s&&{seed:s},...l&&{providerOptions:l},...a&&{image:(h=a,"file"===h.type&&h.data instanceof Uint8Array?{...h,data:(0,y.n_)(h.data)}:h)}},successfulResponseHandler:(0,y.cV)(Ae),failedResponseHandler:(0,y.sl)({errorSchema:C.bz(),errorToMessage:e=>e}),...u&&{abortSignal:u},fetch:this.config.fetch});return{videos:g.videos,warnings:null!=(c=g.warnings)?c:[],providerMetadata:g.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:f}}}catch(e){throw await se(e,await pe(d))}var h}getUrl(){return`${this.config.baseURL}/video-model`}getModelConfigHeaders(){return{"ai-video-model-specification-version":"3","ai-model-id":this.modelId}}};var Re=C.Ik({videos:C.YO(C.L5()).optional()}).catchall(C.L5()),Oe=C.KC([C.Ik({type:C.eu("url"),url:C.Yj(),mediaType:C.Yj()}),C.Ik({type:C.eu("base64"),data:C.Yj(),mediaType:C.Yj()})]),Se=C.gM("type",[C.Ik({type:C.eu("unsupported"),feature:C.Yj(),details:C.Yj().optional()}),C.Ik({type:C.eu("compatibility"),feature:C.Yj(),details:C.Yj().optional()}),C.Ik({type:C.eu("other"),message:C.Yj()})]),Ae=C.Ik({videos:C.YO(Oe),warnings:C.YO(Se).optional(),providerMetadata:C.g1(C.Yj(),Re).optional()}),Pe=(0,y.ID)((()=>(0,y.jN)(w.Ik({objective:w.Yj().describe("Natural-language description of the web research goal, including source or freshness guidance and broader context from the task. Maximum 5000 characters."),search_queries:w.YO(w.Yj()).optional().describe("Optional search queries to supplement the objective. Maximum 200 characters per query."),mode:w.k5(["one-shot","agentic"]).optional().describe('Mode preset: "one-shot" for comprehensive results with longer excerpts (default), "agentic" for concise, token-efficient results for multi-step workflows.'),max_results:w.ai().optional().describe("Maximum number of results to return (1-20). Defaults to 10 if not specified."),source_policy:w.Ik({include_domains:w.YO(w.Yj()).optional().describe("List of domains to include in search results."),exclude_domains:w.YO(w.Yj()).optional().describe("List of domains to exclude from search results."),after_date:w.Yj().optional().describe("Only include results published after this date (ISO 8601 format).")}).optional().describe("Source policy for controlling which domains to include/exclude and freshness."),excerpts:w.Ik({max_chars_per_result:w.ai().optional().describe("Maximum characters per result."),max_chars_total:w.ai().optional().describe("Maximum total characters across all results.")}).optional().describe("Excerpt configuration for controlling result length."),fetch_policy:w.Ik({max_age_seconds:w.ai().optional().describe("Maximum age in seconds for cached content. Set to 0 to always fetch fresh content.")}).optional().describe("Fetch policy for controlling content freshness.")})))),Te=(0,y.ID)((()=>(0,y.jN)(w.KC([w.Ik({searchId:w.Yj(),results:w.YO(w.Ik({url:w.Yj(),title:w.Yj(),excerpt:w.Yj(),publishDate:w.Yj().nullable().optional(),relevanceScore:w.ai().optional()}))}),w.Ik({error:w.k5(["api_error","rate_limit","timeout","invalid_input","configuration_error","unknown"]),statusCode:w.ai().optional(),message:w.Yj()})])))),De=(0,y.wA)({id:"gateway.parallel_search",inputSchema:Pe,outputSchema:Te}),Ne=(0,y.ID)((()=>(0,y.jN)(w.Ik({query:w.KC([w.Yj(),w.YO(w.Yj())]).describe("Search query (string) or multiple queries (array of up to 5 strings). Multi-query searches return combined results from all queries."),max_results:w.ai().optional().describe("Maximum number of search results to return (1-20, default: 10)"),max_tokens_per_page:w.ai().optional().describe("Maximum number of tokens to extract per search result page (256-2048, default: 2048)"),max_tokens:w.ai().optional().describe("Maximum total tokens across all search results (default: 25000, max: 1000000)"),country:w.Yj().optional().describe("Two-letter ISO 3166-1 alpha-2 country code for regional search results (e.g., 'US', 'GB', 'FR')"),search_domain_filter:w.YO(w.Yj()).optional().describe("List of domains to include or exclude from search results (max 20). To include: ['nature.com', 'science.org']. To exclude: ['-example.com', '-spam.net']"),search_language_filter:w.YO(w.Yj()).optional().describe("List of ISO 639-1 language codes to filter results (max 10, lowercase). Examples: ['en', 'fr', 'de']"),search_after_date:w.Yj().optional().describe("Include only results published after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),search_before_date:w.Yj().optional().describe("Include only results published before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),last_updated_after_filter:w.Yj().optional().describe("Include only results last updated after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),last_updated_before_filter:w.Yj().optional().describe("Include only results last updated before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),search_recency_filter:w.k5(["day","week","month","year"]).optional().describe("Filter results by relative time period. Cannot be used with search_after_date or search_before_date.")})))),xe=(0,y.ID)((()=>(0,y.jN)(w.KC([w.Ik({results:w.YO(w.Ik({title:w.Yj(),url:w.Yj(),snippet:w.Yj(),date:w.Yj().optional(),lastUpdated:w.Yj().optional()})),id:w.Yj()}),w.Ik({error:w.k5(["api_error","rate_limit","timeout","invalid_input","unknown"]),statusCode:w.ai().optional(),message:w.Yj()})])))),Ie=(0,y.wA)({id:"gateway.perplexity_search",inputSchema:Ne,outputSchema:xe}),Fe={parallelSearch:(e={})=>De(e),perplexitySearch:(e={})=>Ie(e)},Le=function(e={}){var t,o;let i=null,n=null;const r=null!=(t=e.metadataCacheRefreshMillis)?t:3e5;let s=0;const a=null!=(o=(0,y.ae)(e.baseURL))?o:"https://ai-gateway.vercel.sh/v3/ai",l=async()=>{try{const t=await async function(e){const t=(0,y.x3)({settingValue:e.apiKey,environmentVariableName:"AI_GATEWAY_API_KEY"});return t?{token:t,authMethod:"api-key"}:{token:await(0,E.getVercelOidcToken)(),authMethod:"oidc"}}(e);return(0,y.WZ)({Authorization:`Bearer ${t.token}`,"ai-gateway-protocol-version":"0.0.1",[le]:t.authMethod,...e.headers},"ai-sdk/gateway/3.0.46")}catch(e){throw T.createContextualError({apiKeyProvided:!1,oidcTokenProvided:!1,statusCode:401,cause:e})}},p=()=>{const e=(0,y.x3)({settingValue:void 0,environmentVariableName:"VERCEL_DEPLOYMENT_ID"}),t=(0,y.x3)({settingValue:void 0,environmentVariableName:"VERCEL_ENV"}),o=(0,y.x3)({settingValue:void 0,environmentVariableName:"VERCEL_REGION"});return async()=>{const i=await async function(){var e;return null==(e=(0,E.getContext)().headers)?void 0:e["x-vercel-id"]}();return{...e&&{"ai-o11y-deployment-id":e},...t&&{"ai-o11y-environment":t},...o&&{"ai-o11y-region":o},...i&&{"ai-o11y-request-id":i}}}},u=t=>new fe(t,{provider:"gateway",baseURL:a,headers:l,fetch:e.fetch,o11yHeaders:p()}),c=function(e){if(new.target)throw new Error("The Gateway Provider model function cannot be called with the new keyword.");return u(e)};c.specificationVersion="v3",c.getAvailableModels=async()=>{var t,o,p;const u=null!=(p=null==(o=null==(t=e._internal)?void 0:t.currentDate)?void 0:o.call(t).getTime())?p:Date.now();return(!i||u-s>r)&&(s=u,i=new ce({baseURL:a,headers:l,fetch:e.fetch}).getAvailableModels().then((e=>(n=e,e))).catch((async e=>{throw await se(e,await pe(await l()))}))),n?Promise.resolve(n):i},c.getCredits=async()=>new ce({baseURL:a,headers:l,fetch:e.fetch}).getCredits().catch((async e=>{throw await se(e,await pe(await l()))})),c.imageModel=t=>new ye(t,{provider:"gateway",baseURL:a,headers:l,fetch:e.fetch,o11yHeaders:p()}),c.languageModel=u;const d=t=>new ge(t,{provider:"gateway",baseURL:a,headers:l,fetch:e.fetch,o11yHeaders:p()});return c.embeddingModel=d,c.textEmbeddingModel=d,c.videoModel=t=>new be(t,{provider:"gateway",baseURL:a,headers:l,fetch:e.fetch,o11yHeaders:p()}),c.chat=c.languageModel,c.embedding=c.embeddingModel,c.image=c.imageModel,c.video=c.videoModel,c.tools=Fe,c}()},26016:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(60843),s=o(83423),a=o(72493),l=o(44081),p=o(814),u=o(44871),c=o(40797),d=function(){function e(e,t,o,i){this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new r.EventService,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=e,this.userProvidedColDef=t,this.visible=!e.hide,this.sort=e.sort,this.sortedAt=e.sortedAt,this.colId=o,this.primary=i,this.lockPosition=!0===e.lockPosition,this.lockPinned=!0===e.lockPinned,this.lockVisible=!0===e.lockVisible}return e.prototype.setColDef=function(e,t){this.colDef=e,this.userProvidedColDef=t},e.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},e.prototype.isLockPosition=function(){return this.lockPosition},e.prototype.isLockVisible=function(){return this.lockVisible},e.prototype.isLockPinned=function(){return this.lockPinned},e.prototype.setParent=function(e){this.parent=e},e.prototype.getParent=function(){return this.parent},e.prototype.setOriginalParent=function(e){this.originalParent=e},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.initialise=function(){this.setPinned(this.colDef.pinned);var e=this.gridOptionsWrapper.getMinColWidth(),t=this.gridOptionsWrapper.getMaxColWidth();this.colDef.minWidth?this.minWidth=this.colDef.minWidth:this.minWidth=e,this.colDef.maxWidth?this.maxWidth=this.colDef.maxWidth:this.maxWidth=t,this.actualWidth=this.columnUtils.calculateColInitialWidth(this.colDef);var o=this.gridOptionsWrapper.isSuppressFieldDotNotation();this.fieldContainsDots=s._.exists(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!o,this.tooltipFieldContainsDots=s._.exists(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!o,this.validate()},e.prototype.isEmptyGroup=function(){return!1},e.prototype.isRowGroupDisplayed=function(e){if(s._.missing(this.colDef)||s._.missing(this.colDef.showRowGroup))return!1;var t=!0===this.colDef.showRowGroup,o=this.colDef.showRowGroup===e;return t||o},e.prototype.getUniqueId=function(){return this.getId()},e.prototype.isPrimary=function(){return this.primary},e.prototype.isFilterAllowed=function(){var e=!!this.colDef.filter||!!this.colDef.filterFramework;return this.primary&&e},e.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},e.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},e.prototype.validate=function(){var e=this.colDef;this.gridOptionsWrapper.isEnterprise()||["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","pivot","pivotIndex","aggFunc"].forEach((function(t){s._.exists(e[t])&&console.warn("ag-Grid: "+t+" is only valid in ag-Grid-Enterprise, your column definition should not have "+t)})),this.gridOptionsWrapper.isTreeData()&&["rowGroup","rowGroupIndex","pivot","pivotIndex"].forEach((function(t){s._.exists(e[t])&&console.warn("ag-Grid: "+t+" is not possible when doing tree data, your column definition should not have "+t)})),s._.exists(this.colDef.width)&&"number"!=typeof this.colDef.width&&console.warn("ag-Grid: colDef.width should be a number, not "+typeof this.colDef.width),s._.get(this,"colDef.cellRendererParams.restrictToOneGroup",null)&&console.warn("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.restrictToOneGroup is deprecated. You should use showRowGroup"),s._.get(this,"colDef.cellRendererParams.keyMap",null)&&console.warn("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.keyMap is deprecated. You should use colDef.keyCreator"),s._.get(this,"colDef.cellRendererParams.keyMap",null)&&console.warn("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.keyMap is deprecated. You should use colDef.keyCreator"),e.floatingCellRenderer&&(console.warn("ag-Grid: since v11, floatingCellRenderer is now pinnedRowCellRenderer"),this.colDef.pinnedRowCellRenderer=e.floatingCellRenderer),e.floatingRendererFramework&&(console.warn("ag-Grid: since v11, floatingRendererFramework is now pinnedRowCellRendererFramework"),this.colDef.pinnedRowCellRendererFramework=e.floatingRendererFramework),e.floatingRendererParams&&(console.warn("ag-Grid: since v11, floatingRendererParams is now pinnedRowCellRendererParams"),this.colDef.pinnedRowCellRendererParams=e.floatingRendererParams),e.floatingValueFormatter&&(console.warn("ag-Grid: since v11, floatingValueFormatter is now pinnedRowValueFormatter"),this.colDef.pinnedRowValueFormatter=e.floatingValueFormatter),e.cellFormatter&&(console.warn("ag-Grid: since v12, cellFormatter is now valueFormatter"),s._.missing(this.colDef.valueFormatter)&&(this.colDef.valueFormatter=e.cellFormatter)),e.headerCellTemplate&&console.warn("ag-Grid: since v15, headerCellTemplate is gone, use header component instead."),e.headerCellRenderer&&console.warn("ag-Grid: since v15, headerCellRenderer is gone, use header component instead."),e.volatile&&console.warn("ag-Grid: since v16, colDef.volatile is gone, please check refresh docs on how to refresh specific cells."),e.suppressSorting&&(console.warn("ag-Grid: since v20, colDef.suppressSorting is gone, instead use colDef.sortable=false.",this.colDef),this.colDef.sortable=!1),e.suppressFilter&&(console.warn("ag-Grid: since v20, colDef.suppressFilter is gone, instead use colDef.filter=false.",this.colDef),this.colDef.filter=!1),e.suppressResize&&(console.warn("ag-Grid: since v20, colDef.suppressResize is gone, instead use colDef.resizable=false.",this.colDef),this.colDef.resizable=!1),e.tooltip&&(console.warn("ag-Grid: since v20.1, colDef.tooltip is gone, instead use colDef.tooltipValueGetter.",this.colDef),this.colDef.tooltipValueGetter=e.tooltip)},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.createIsColumnFuncParams=function(e){return{node:e,data:e.data,column:this,colDef:this.colDef,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},e.prototype.isSuppressNavigable=function(e){if("boolean"==typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"==typeof this.colDef.suppressNavigable){var t=this.createIsColumnFuncParams(e);return(0,this.colDef.suppressNavigable)(t)}return!1},e.prototype.isCellEditable=function(e){return!(e.group&&!this.gridOptionsWrapper.isEnableGroupEdit())&&this.isColumnFunc(e,this.colDef.editable)},e.prototype.isRowDrag=function(e){return this.isColumnFunc(e,this.colDef.rowDrag)},e.prototype.isCellCheckboxSelection=function(e){return this.isColumnFunc(e,this.colDef.checkboxSelection)},e.prototype.isSuppressPaste=function(e){return this.isColumnFunc(e,this.colDef?this.colDef.suppressPaste:null)},e.prototype.isResizable=function(){return!0===this.colDef.resizable},e.prototype.isColumnFunc=function(e,t){return"boolean"==typeof t?t:"function"==typeof t&&t(this.createIsColumnFuncParams(e))},e.prototype.setMoving=function(t,o){void 0===o&&(o="api"),this.moving=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MOVING_CHANGED,o))},e.prototype.createColumnEvent=function(e,t){return{api:this.gridApi,columnApi:this.columnApi,type:e,column:this,columns:[this],source:t}},e.prototype.isMoving=function(){return this.moving},e.prototype.getSort=function(){return this.sort},e.prototype.setSort=function(t,o){void 0===o&&(o="api"),this.sort!==t&&(this.sort=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_SORT_CHANGED,o)))},e.prototype.setMenuVisible=function(t,o){void 0===o&&(o="api"),this.menuVisible!==t&&(this.menuVisible=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MENU_VISIBLE_CHANGED,o)))},e.prototype.isMenuVisible=function(){return this.menuVisible},e.prototype.isSortAscending=function(){return this.sort===e.SORT_ASC},e.prototype.isSortDescending=function(){return this.sort===e.SORT_DESC},e.prototype.isSortNone=function(){return s._.missing(this.sort)},e.prototype.isSorting=function(){return s._.exists(this.sort)},e.prototype.getSortedAt=function(){return this.sortedAt},e.prototype.setSortedAt=function(e){this.sortedAt=e},e.prototype.setAggFunc=function(e){this.aggFunc=e},e.prototype.getAggFunc=function(){return this.aggFunc},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.getRight=function(){return this.left+this.actualWidth},e.prototype.setLeft=function(t,o){void 0===o&&(o="api"),this.oldLeft=this.left,this.left!==t&&(this.left=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LEFT_CHANGED,o)))},e.prototype.isFilterActive=function(){return this.filterActive},e.prototype.setFilterActive=function(t,o){void 0===o&&(o="api"),this.filterActive!==t&&(this.filterActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FILTER_ACTIVE_CHANGED,o))),this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FILTER_CHANGED,o))},e.prototype.setPinned=function(t){!0===t||t===e.PINNED_LEFT?this.pinned=e.PINNED_LEFT:t===e.PINNED_RIGHT?this.pinned=e.PINNED_RIGHT:this.pinned=null},e.prototype.setFirstRightPinned=function(t,o){void 0===o&&(o="api"),this.firstRightPinned!==t&&(this.firstRightPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FIRST_RIGHT_PINNED_CHANGED,o)))},e.prototype.setLastLeftPinned=function(t,o){void 0===o&&(o="api"),this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LAST_LEFT_PINNED_CHANGED,o)))},e.prototype.isFirstRightPinned=function(){return this.firstRightPinned},e.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},e.prototype.isPinned=function(){return this.pinned===e.PINNED_LEFT||this.pinned===e.PINNED_RIGHT},e.prototype.isPinnedLeft=function(){return this.pinned===e.PINNED_LEFT},e.prototype.isPinnedRight=function(){return this.pinned===e.PINNED_RIGHT},e.prototype.getPinned=function(){return this.pinned},e.prototype.setVisible=function(t,o){void 0===o&&(o="api");var i=!0===t;this.visible!==i&&(this.visible=i,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VISIBLE_CHANGED,o)))},e.prototype.isVisible=function(){return this.visible},e.prototype.getColDef=function(){return this.colDef},e.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},e.prototype.getColId=function(){return this.colId},e.prototype.getId=function(){return this.getColId()},e.prototype.getDefinition=function(){return this.colDef},e.prototype.getActualWidth=function(){return this.actualWidth},e.prototype.createBaseColDefParams=function(e){return{node:e,data:e.data,colDef:this.colDef,column:this,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}},e.prototype.getColSpan=function(e){if(s._.missing(this.colDef.colSpan))return 1;var t=this.createBaseColDefParams(e),o=this.colDef.colSpan(t);return Math.max(o,1)},e.prototype.getRowSpan=function(e){if(s._.missing(this.colDef.rowSpan))return 1;var t=this.createBaseColDefParams(e),o=this.colDef.rowSpan(t);return Math.max(o,1)},e.prototype.setActualWidth=function(t,o){void 0===o&&(o="api"),this.actualWidth!==t&&(this.actualWidth=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_WIDTH_CHANGED,o)))},e.prototype.isGreaterThanMax=function(e){return!!this.maxWidth&&e>this.maxWidth},e.prototype.getMinWidth=function(){return this.minWidth},e.prototype.getMaxWidth=function(){return this.maxWidth},e.prototype.setMinimum=function(e){void 0===e&&(e="api"),this.setActualWidth(this.minWidth,e)},e.prototype.setRowGroupActive=function(t,o){void 0===o&&(o="api"),this.rowGroupActive!==t&&(this.rowGroupActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_ROW_GROUP_CHANGED,o)))},e.prototype.isRowGroupActive=function(){return this.rowGroupActive},e.prototype.setPivotActive=function(t,o){void 0===o&&(o="api"),this.pivotActive!==t&&(this.pivotActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_PIVOT_CHANGED,o)))},e.prototype.isPivotActive=function(){return this.pivotActive},e.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},e.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},e.prototype.setValueActive=function(t,o){void 0===o&&(o="api"),this.aggregationActive!==t&&(this.aggregationActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VALUE_CHANGED,o)))},e.prototype.isValueActive=function(){return this.aggregationActive},e.prototype.isAllowPivot=function(){return!0===this.colDef.enablePivot},e.prototype.isAllowValue=function(){return!0===this.colDef.enableValue},e.prototype.isAllowRowGroup=function(){return!0===this.colDef.enableRowGroup},e.prototype.getMenuTabs=function(e){var t=this.getColDef().menuTabs;return null==t&&(t=e),t},e.EVENT_MOVING_CHANGED="movingChanged",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_WIDTH_CHANGED="widthChanged",e.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",e.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",e.EVENT_VISIBLE_CHANGED="visibleChanged",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",e.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_PIVOT_CHANGED="columnPivotChanged",e.EVENT_VALUE_CHANGED="columnValueChanged",e.PINNED_RIGHT="right",e.PINNED_LEFT="left",e.SORT_ASC="asc",e.SORT_DESC="desc",i([a.Autowired("gridOptionsWrapper"),n("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([a.Autowired("columnUtils"),n("design:type",p.ColumnUtils)],e.prototype,"columnUtils",void 0),i([a.Autowired("frameworkFactory"),n("design:type",Object)],e.prototype,"frameworkFactory",void 0),i([a.Autowired("columnApi"),n("design:type",u.ColumnApi)],e.prototype,"columnApi",void 0),i([a.Autowired("gridApi"),n("design:type",c.GridApi)],e.prototype,"gridApi",void 0),i([a.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"initialise",null),e}();t.Column=d},27887:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(37132),a=o(98239),l=o(26016),p=o(83423),u=o(58342),c=o(44081),d=function(){function e(e,t){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=e,this.eContainer=t,this.centerContainer=!p._.exists(e)}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.init=function(){this.logger=this.loggerFactory.create("MoveColumnController")},e.prototype.getIconName=function(){return this.pinned?u.DragAndDropService.ICON_PINNED:u.DragAndDropService.ICON_MOVE},e.prototype.onDragEnter=function(e){var t=e.dragItem.columns;if(e.dragSource.type===u.DragSourceType.ToolPanel)this.setColumnsVisible(t,!0,"uiColumnDragged");else{var o=e.dragItem.visibleState,i=t.filter((function(e){return o[e.getId()]}));this.setColumnsVisible(i,!0,"uiColumnDragged")}this.setColumnsPinned(t,this.pinned,"uiColumnDragged"),this.onDragging(e,!0)},e.prototype.onDragLeave=function(e){if(!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()&&!e.fromNudge){var t=e.dragSource.dragItemCallback().columns;this.setColumnsVisible(t,!1,"uiColumnDragged")}this.ensureIntervalCleared()},e.prototype.setColumnsVisible=function(e,t,o){if(void 0===o&&(o="api"),e){var i=e.filter((function(e){return!e.isLockVisible()}));this.columnController.setColumnsVisible(i,t,o)}},e.prototype.setColumnsPinned=function(e,t,o){if(void 0===o&&(o="api"),e){var i=e.filter((function(e){return!e.isLockPinned()}));this.columnController.setColumnsPinned(i,t,o)}},e.prototype.onDragStop=function(){this.ensureIntervalCleared()},e.prototype.normaliseX=function(e){return this.gridOptionsWrapper.isEnableRtl()&&(e=this.eContainer.clientWidth-e),this.centerContainer&&(e+=this.gridPanel.getCenterViewportScrollLeft()),e},e.prototype.checkCenterForScrolling=function(e){if(this.centerContainer){var t=this.gridPanel.getCenterViewportScrollLeft(),o=t+this.gridPanel.getCenterWidth();this.gridOptionsWrapper.isEnableRtl()?(this.needToMoveRight=e<t+50,this.needToMoveLeft=e>o-50):(this.needToMoveLeft=e<t+50,this.needToMoveRight=e>o-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},e.prototype.onDragging=function(e,t){var o=this;if(void 0===t&&(t=!1),this.lastDraggingEvent=e,!p._.missing(e.hDirection)){var i=this.normaliseX(e.x);t||this.checkCenterForScrolling(i);var n=this.normaliseDirection(e.hDirection),r=e.dragSource.type,s=e.dragSource.dragItemCallback().columns;s=s.filter((function(e){return!e.isLockPinned()||e.getPinned()==o.pinned})),this.attemptMoveColumns(r,s,n,i,t)}},e.prototype.normaliseDirection=function(e){if(!this.gridOptionsWrapper.isEnableRtl())return e;switch(e){case u.HDirection.Left:return u.HDirection.Right;case u.HDirection.Right:return u.HDirection.Left;default:console.error("ag-Grid: Unknown direction "+e)}},e.prototype.calculateOldIndex=function(e){var t=this.columnController.getAllGridColumns(),o=[];e.forEach((function(e){return o.push(t.indexOf(e))})),p._.sortNumberArray(o);var i=o[0];return o[o.length-1]-i!=o.length-1?null:i},e.prototype.attemptMoveColumns=function(e,t,o,i,n){for(var r=o===u.HDirection.Left,s=o===u.HDirection.Right,a=this.calculateValidMoves(t,s,i),l=this.calculateOldIndex(t),p=0;p<a.length;p++){var c=a[p],d=null!==l&&!n;if(e==u.DragSourceType.HeaderCell&&(d=null!==l),d){if(r&&c>=l)continue;if(s&&c<=l)continue}if(this.columnController.doesMovePassRules(t,c))return void this.columnController.moveColumns(t,c,"uiColumnDragged")}},e.prototype.calculateValidMoves=function(e,t,o){var i,n=this.columnController.getDisplayedColumns(this.pinned),r=this.columnController.getAllGridColumns(),s=function(t){return e.indexOf(t)<0},a=n.filter((function(t){return e.indexOf(t)>=0})),l=n.filter(s),u=r.filter(s),c=0,d=o;if(t){var h=0;a.forEach((function(e){return h+=e.getActualWidth()})),d-=h}if(d>0){for(var f=0;f<l.length&&!((d-=l[f].getActualWidth())<0);f++)c++;t&&c++}if(c>0){var g=l[c-1];i=u.indexOf(g)+1}else i=0;for(var m=[i],y=r[i];p._.exists(y)&&this.isColumnHidden(n,y);)i++,m.push(i),y=r[i];return m},e.prototype.isColumnHidden=function(e,t){return e.indexOf(t)<0},e.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.needToMoveLeft?this.dragAndDropService.setGhostIcon(u.DragAndDropService.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(u.DragAndDropService.ICON_RIGHT,!0))},e.prototype.ensureIntervalCleared=function(){this.moveInterval&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(u.DragAndDropService.ICON_MOVE))},e.prototype.moveInterval=function(){var e,t;if(this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100),this.needToMoveLeft?t=this.gridPanel.scrollHorizontally(-e):this.needToMoveRight&&(t=this.gridPanel.scrollHorizontally(e)),0!==t)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var o=this.lastDraggingEvent.dragItem.columns.filter((function(e){return!e.isLockPinned()}));if(o.length>0&&(this.dragAndDropService.setGhostIcon(u.DragAndDropService.ICON_PINNED),this.failedMoveAttempts>7)){var i=this.needToMoveLeft?l.Column.PINNED_LEFT:l.Column.PINNED_RIGHT;this.setColumnsPinned(o,i,"uiColumnDragged"),this.dragAndDropService.nudge()}}},i([r.Autowired("loggerFactory"),n("design:type",s.LoggerFactory)],e.prototype,"loggerFactory",void 0),i([r.Autowired("columnController"),n("design:type",a.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("dragAndDropService"),n("design:type",u.DragAndDropService)],e.prototype,"dragAndDropService",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",c.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),e}();t.MoveColumnController=d},28742:e=>{var t={};e.exports=function(e,o){var i=function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}(e);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(o)}},28771:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=o(15068),n=o(63405),r=o(83423),s=function(){function e(t,o,i,n,r,s,a,l){this.nextId=0,this.allNodesMap={},this.rootNode=t,this.gridOptionsWrapper=o,this.context=i,this.eventService=n,this.columnController=r,this.gridApi=s,this.columnApi=a,this.selectionController=l,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.childrenAfterFilter=[],this.postConstruct()}return e.prototype.postConstruct=function(){this.getNodeChildDetails=this.gridOptionsWrapper.getNodeChildDetailsFunc(),this.suppressParentsInRowNodes=this.gridOptionsWrapper.isSuppressParentsInRowNodes(),this.doesDataFlower=this.gridOptionsWrapper.getDoesDataFlowerFunc(),this.isRowMasterFunc=this.gridOptionsWrapper.getIsRowMasterFunc(),this.doingLegacyTreeData=r._.exists(this.getNodeChildDetails),this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},e.prototype.getCopyOfNodesMap=function(){return r._.cloneObject(this.allNodesMap)},e.prototype.getRowNode=function(e){return this.allNodesMap[e]},e.prototype.setRowData=function(t){if(this.rootNode.childrenAfterFilter=null,this.rootNode.childrenAfterGroup=null,this.rootNode.childrenAfterSort=null,this.rootNode.childrenMapped=null,this.nextId=0,this.allNodesMap={},!t)return this.rootNode.allLeafChildren=[],void(this.rootNode.childrenAfterGroup=[]);var o=this.recursiveFunction(t,this.rootNode,e.TOP_LEVEL);this.doingLegacyTreeData?(this.rootNode.childrenAfterGroup=o,this.setLeafChildren(this.rootNode)):this.rootNode.allLeafChildren=o},e.prototype.updateRowData=function(e,t){var o=this;if(this.isLegacyTreeData())return null;var i=e.add,s=e.addIndex,a=e.remove,l=e.update,p={remove:[],update:[],add:[]};if(r._.exists(i)&&("number"==typeof s&&s>=0?i.reverse().forEach((function(e){var t=o.addRowNode(e,s);p.add.push(t)})):i.forEach((function(e){var t=o.addRowNode(e);p.add.push(t)}))),r._.exists(a)){var u=!1;if(a.forEach((function(e){var t=o.lookupRowNode(e);t&&(t.isSelected()&&(u=!0),o.updatedRowNode(t,e,!1),p.remove.push(t))})),u){this.selectionController.updateGroupsFromChildrenSelections();var c={type:n.Events.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(c)}}return r._.exists(l)&&l.forEach((function(e){var t=o.lookupRowNode(e);t&&(o.updatedRowNode(t,e,!0),p.update.push(t))})),t&&r._.sortRowNodesByOrder(this.rootNode.allLeafChildren,t),p},e.prototype.addRowNode=function(t,o){var i=this.createNode(t,this.rootNode,e.TOP_LEVEL);return r._.exists(o)?r._.insertIntoArray(this.rootNode.allLeafChildren,i,o):this.rootNode.allLeafChildren.push(i),i},e.prototype.lookupRowNode=function(e){var t,o=this.gridOptionsWrapper.getRowNodeIdFunc();if(r._.exists(o)){var i=o(e);if(!(t=this.allNodesMap[i]))return console.error("ag-Grid: could not find row id="+i+", data item was not found for this id"),null}else if(!(t=r._.find(this.rootNode.allLeafChildren,(function(t){return t.data===e}))))return console.error("ag-Grid: could not find data item as object was not found",e),null;return t},e.prototype.updatedRowNode=function(e,t,o){o?e.updateData(t):(e.setSelected(!1,!1,!0),e.clearRowTop(),r._.removeFromArray(this.rootNode.allLeafChildren,e),delete this.allNodesMap[e.id])},e.prototype.recursiveFunction=function(e,t,o){var i=this;if("string"!=typeof e){var n=[];return e.forEach((function(e){var r=i.createNode(e,t,o);n.push(r)})),n}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")},e.prototype.createNode=function(e,t,o){var n=new i.RowNode;this.context.wireBean(n);var s=this.gridOptionsWrapper.isTreeData(),a=!s&&r._.exists(this.getNodeChildDetails)?this.getNodeChildDetails(e):null;if(a&&a.group)n.group=!0,n.childrenAfterGroup=this.recursiveFunction(a.children,n,o+1),n.expanded=!0===a.expanded,n.field=a.field,n.key=a.key,n.canFlower=n.master,this.setLeafChildren(n);else if(n.group=!1,s)n.master=!1,n.expanded=!1;else{this.doesDataFlower?n.master=this.doesDataFlower(e):this.doingMasterDetail?this.isRowMasterFunc?n.master=this.isRowMasterFunc(e):n.master=!0:n.master=!1;var l=this.columnController.getRowGroupColumns(),p=o+(l?l.length:0);n.expanded=!!n.master&&this.isExpanded(p)}return n.canFlower=n.master,t&&!this.suppressParentsInRowNodes&&(n.parent=t),n.level=o,n.setDataAndId(e,this.nextId.toString()),this.allNodesMap[n.id]&&console.warn("ag-grid: duplicate node id '"+n.id+"' detected from getRowNodeId callback, this could cause issues in your grid."),this.allNodesMap[n.id]=n,this.nextId++,n},e.prototype.isExpanded=function(e){var t=this.gridOptionsWrapper.getGroupDefaultExpanded();return-1===t||e<t},e.prototype.setLeafChildren=function(e){e.allLeafChildren=[],e.childrenAfterGroup&&e.childrenAfterGroup.forEach((function(t){t.group?t.allLeafChildren&&t.allLeafChildren.forEach((function(t){return e.allLeafChildren.push(t)})):e.allLeafChildren.push(t)}))},e.prototype.isLegacyTreeData=function(){return!!r._.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())&&(console.warn("ag-Grid: adding and removing rows is not supported when using nodeChildDetailsFunc, ie it is not supported for legacy tree data. Please see the docs on the new preferred way of providing tree data that works with delta updates."),!0)},e.TOP_LEVEL=0,e.ROOT_NODE_ID="ROOT_NODE_ID",e}();t.ClientSideNodeManager=s},28921:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(44081),l=o(72493),p=o(44329),u=o(10042),c=o(83423),d=function(e){function t(t,o){var i=e.call(this,t,o)||this;return i.cacheParams=o,i}return n(t,e),t.prototype.createBlankRowNode=function(t){var o=e.prototype.createBlankRowNode.call(this,t);return o.uiLevel=0,this.setIndexAndTopOnRowNode(o,t),o},t.prototype.setDataAndId=function(e,t,o){c._.exists(t)?e.setDataAndId(t,o.toString()):e.setDataAndId(void 0,void 0)},t.prototype.setRowNode=function(t,o){e.prototype.setRowNode.call(this,t,o),this.setIndexAndTopOnRowNode(o,t)},t.prototype.init=function(){e.prototype.init.call(this,{context:this.getContext(),rowRenderer:this.rowRenderer})},t.prototype.getNodeIdPrefix=function(){return null},t.prototype.getRow=function(e){return this.getRowUsingLocalIndex(e)},t.prototype.setIndexAndTopOnRowNode=function(e,t){e.setRowIndex(t),e.rowTop=this.cacheParams.rowHeight*t},t.prototype.loadFromDatasource=function(){var e=this,t={startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this),sortModel:this.cacheParams.sortModel,filterModel:this.cacheParams.filterModel,context:this.gridOptionsWrapper.getContext()};c._.missing(this.cacheParams.datasource.getRows)?console.warn("ag-Grid: datasource is missing getRows method"):(c._.getFunctionParameters(this.cacheParams.datasource.getRows).length>1&&(console.warn("ag-grid: It looks like your paging datasource is of the old type, taking more than one parameter."),console.warn("ag-grid: From ag-grid 1.9.0, now the getRows takes one parameter. See the documentation for details.")),window.setTimeout((function(){e.cacheParams.datasource.getRows(t)}),0))},r([l.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([l.Autowired("rowRenderer"),s("design:type",u.RowRenderer)],t.prototype,"rowRenderer",void 0),r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(p.RowNodeBlock);t.InfiniteBlock=d},30252:(e,t,o)=>{o.d(t,{A:()=>g});const i={strip:["script"],clobberPrefix:"user-content-",clobber:["name","id"],ancestors:{tbody:["table"],tfoot:["table"],thead:["table"],td:["table"],th:["table"],tr:["table"]},protocols:{href:["http","https","mailto","xmpp","irc","ircs"],cite:["http","https"],src:["http","https"],longDesc:["http","https"]},tagNames:["h1","h2","h3","h4","h5","h6","br","b","i","strong","em","a","pre","code","img","tt","div","ins","del","sup","sub","p","ol","ul","table","thead","tbody","tfoot","blockquote","dl","dt","dd","kbd","q","samp","var","hr","ruby","rt","rp","li","tr","td","th","s","strike","summary","details","caption","figure","figcaption","abbr","bdo","cite","dfn","mark","small","span","time","wbr","input"],attributes:{a:["href"],img:["src","longDesc"],input:[["type","checkbox"],["disabled",!0]],li:[["className","task-list-item"]],div:["itemScope","itemType"],blockquote:["cite"],del:["cite"],ins:["cite"],q:["cite"],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","ariaDescribedBy","ariaHidden","ariaLabel","ariaLabelledBy","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","cols","colSpan","color","compact","coords","dateTime","dir","disabled","encType","htmlFor","frame","headers","height","hrefLang","hSpace","isMap","id","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rel","rev","rows","rowSpan","rules","scope","selected","shape","size","span","start","summary","tabIndex","target","title","type","useMap","vAlign","value","vSpace","width","itemProp"]},required:{input:{type:"checkbox",disabled:!0}}},n={}.hasOwnProperty,r={root:{children:a},doctype:function(e){return e.allowDoctypes?{name:l}:void 0},comment:function(e){return e.allowComments?{value:u}:void 0},element:{tagName:p,properties:function(e,t,o,i){const r=p(e,o.tagName,0,i),s=e.attributes||{},a=e.required||{},l=t||{},u=Object.assign({},f(s["*"]),f(r&&n.call(s,r)?s[r]:[])),c={};let g;for(g in l)if(n.call(l,g)){let t,o=l[g];if(n.call(u,g))t=u[g];else{if(!((m=g).length>4&&"data"===m.slice(0,4).toLowerCase()&&n.call(u,"data*")))continue;t=u["data*"]}o=Array.isArray(o)?d(e,o,g,t):h(e,o,g,t),null!=o&&(c[g]=o)}var m;if(r&&n.call(a,r))for(g in a[r])n.call(c,g)||(c[g]=a[r][g]);return c},children:a},text:{value:function(e,t){return"string"==typeof t?t:""}},"*":{data:c,position:c}};function s(e,t,o){const i=t&&t.type,s={type:t.type};let a;if(n.call(r,i)){let l=r[i];if("function"==typeof l&&(l=l(e,t)),l){const i=Object.assign({},l,r["*"]);let p;for(p in a=!0,i)if(n.call(i,p)){const n=i[p](e,t[p],t,o);!1===n?(a=void 0,s[p]=t[p]):null!=n&&(s[p]=n)}}}return a?s:"element"===s.type&&e.strip&&!e.strip.includes(s.tagName)?s.children:void 0}function a(e,t,o,i){const n=[];if(Array.isArray(t)){let r=-1;for("element"===o.type&&i.push(o.tagName);++r<t.length;){const o=s(e,t[r],i);o&&(Array.isArray(o)?n.push(...o):n.push(o))}"element"===o.type&&i.pop()}return n}function l(){return"html"}function p(e,t,o,i){const r="string"==typeof t?t:"";let s=-1;if(!r||"*"===r||e.tagNames&&!e.tagNames.includes(r))return!1;if(e.ancestors&&n.call(e.ancestors,r)){for(;++s<e.ancestors[r].length;)if(i.includes(e.ancestors[r][s]))return r;return!1}return r}function u(e,t){const o="string"==typeof t?t:"",i=o.indexOf("--\x3e");return i<0?o:o.slice(0,i)}function c(e,t){return t}function d(e,t,o,i){let n=-1;const r=[];for(;++n<t.length;){const s=h(e,t[n],o,i);null!=s&&r.push(s)}return r}function h(e,t,o,i){if(("boolean"==typeof t||"number"==typeof t||"string"==typeof t)&&function(e,t,o){const i=String(t),r=i.indexOf(":"),s=i.indexOf("?"),a=i.indexOf("#"),l=i.indexOf("/"),p=e.protocols&&n.call(e.protocols,o)?e.protocols[o].concat():[];let u=-1;if(0===p.length||r<0||l>-1&&r>l||s>-1&&r>s||a>-1&&r>a)return!0;for(;++u<p.length;)if(r===p[u].length&&i.slice(0,p[u].length)===p[u])return!0;return!1}(e,t,o)&&(0===i.length||i.some((e=>e&&"object"==typeof e&&"flags"in e?e.test(String(t)):e===t))))return e.clobberPrefix&&e.clobber&&e.clobber.includes(o)?e.clobberPrefix+t:t}function f(e){const t={};let o=-1;for(;++o<e.length;){const i=e[o];Array.isArray(i)?t[i[0]]=i.slice(1):t[i]=[]}return t}function g(e=i){return t=>function(e,t){let o={type:"root",children:[]};if(e&&"object"==typeof e&&e.type){const n=s(Object.assign({},i,t||{}),e,[]);n&&(Array.isArray(n)?1===n.length?o=n[0]:o.children=n:o=n)}return o}(t,e)}},30811:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(22131),s=o(83423),a=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.refreshCount=0,o.eCurrent=o.queryForHtmlElement(".ag-value-slide-current"),o}return n(t,e),t.prototype.init=function(e){this.params=e,this.refresh(e)},t.prototype.addSlideAnimation=function(){var e=this;this.refreshCount++;var t=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=s._.loadTemplate('<span class="ag-value-slide-previous ag-value-slide-out"></span>'),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout((function(){t===e.refreshCount&&s._.addCssClass(e.ePrevious,"ag-value-slide-out-end")}),50),window.setTimeout((function(){t===e.refreshCount&&(e.getGui().removeChild(e.ePrevious),e.ePrevious=null)}),3e3)},t.prototype.refresh=function(e){var t=e.value;if(s._.missing(t)&&(t=""),t!==this.lastValue)return this.addSlideAnimation(),this.lastValue=t,s._.exists(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:s._.exists(e.value)?this.eCurrent.innerHTML=t:s._.clearElement(this.eCurrent),!0},t.TEMPLATE='<span><span class="ag-value-slide-current"></span></span>',t}(r.Component);t.AnimateSlideCellRenderer=a},30844:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.prototype.hasMethod=function(e){var t=this.getFrameworkComponentInstance();return null!=t&&null!=t[e]},e.prototype.callMethod=function(e,t){var o=this,i=this.getFrameworkComponentInstance();if(null!=i){var n=this.getFrameworkComponentInstance()[e];if(null==n)return;return n.apply(i,t)}window.setTimeout((function(){return o.callMethod(e,t)}),100)},e.prototype.addMethod=function(e,t){this[e]=t},e}();t.BaseReactComponent=o},30971:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(44081),l=o(72493),p=o(60843),u=o(54828),c=o(63405),d=o(86608),h=o(55e3),f=o(45727),g=o(99162),m=o(8534),y=o(65802),v=o(84210),C=o(40797),w=o(44871),E=o(83423),_=o(10042),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.ensureRowHeightsValid=function(e,t,o,i){return!1},t.prototype.init=function(){var e=this;this.gridOptionsWrapper.isRowModelInfinite()&&(this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.addEventListeners(),this.setDatasource(this.gridOptionsWrapper.getDatasource()),this.addDestroyFunc((function(){return e.destroyCache()})))},t.prototype.destroyDatasource=function(){this.datasource&&(this.datasource.destroy&&this.datasource.destroy(),this.rowRenderer.datasourceChanged(),this.datasource=null)},t.prototype.isLastRowFound=function(){return!!this.infiniteCache&&this.infiniteCache.isMaxRowFound()},t.prototype.addEventListeners=function(){this.addDestroyableEventListener(this.eventService,c.Events.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addDestroyableEventListener(this.eventService,c.Events.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addDestroyableEventListener(this.eventService,c.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.onColumnEverything.bind(this))},t.prototype.onFilterChanged=function(){this.reset()},t.prototype.onSortChanged=function(){this.reset()},t.prototype.onColumnEverything=function(){(!this.cacheParams||this.isSortModelDifferent())&&this.reset()},t.prototype.isSortModelDifferent=function(){return!E._.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return f.Constants.ROW_MODEL_TYPE_INFINITE},t.prototype.setDatasource=function(e){this.destroyDatasource(),this.datasource=e,e&&(this.checkForDeprecated(),this.reset())},t.prototype.checkForDeprecated=function(){var e=this.datasource;E._.exists(e.maxConcurrentRequests)&&console.error("ag-Grid: since version 5.1.x, maxConcurrentRequests is replaced with grid property maxConcurrentDatasourceRequests"),E._.exists(e.maxPagesInCache)&&console.error("ag-Grid: since version 5.1.x, maxPagesInCache is replaced with grid property maxPagesInPaginationCache"),E._.exists(e.overflowSize)&&console.error("ag-Grid: since version 5.1.x, overflowSize is replaced with grid property paginationOverflowSize"),E._.exists(e.blockSize)&&console.error("ag-Grid: since version 5.1.x, pageSize/blockSize is replaced with grid property infinitePageSize")},t.prototype.isEmpty=function(){return E._.missing(this.infiniteCache)},t.prototype.isRowsToRender=function(){return E._.exists(this.infiniteCache)},t.prototype.getNodesInRangeForSelection=function(e,t){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,t):[]},t.prototype.reset=function(){if(!E._.missing(this.datasource)){E._.exists(this.gridOptionsWrapper.getRowNodeIdFunc())||this.selectionController.reset(),this.resetCache();var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)}},t.prototype.createModelUpdatedEvent=function(){return{type:c.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,newPage:!1,newData:!1,keepRenderedRows:!1,animate:!1}},t.prototype.resetCache=function(){this.destroyCache();var e=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests(),t=this.gridOptionsWrapper.getBlockLoadDebounceMillis();this.rowNodeBlockLoader=new v.RowNodeBlockLoader(e,t),this.getContext().wireBean(this.rowNodeBlockLoader),this.cacheParams={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,maxConcurrentRequests:e,overflowSize:this.gridOptionsWrapper.getCacheOverflowSize(),initialRowCount:this.gridOptionsWrapper.getInfiniteInitialRowCount(),maxBlocksInCache:this.gridOptionsWrapper.getMaxBlocksInCache(),blockSize:this.gridOptionsWrapper.getCacheBlockSize(),rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),lastAccessedSequence:new E.NumberSequence},this.cacheParams.maxConcurrentRequests&&this.cacheParams.maxConcurrentRequests>=1||(this.cacheParams.maxConcurrentRequests=2),this.cacheParams.blockSize&&this.cacheParams.blockSize>=1||(this.cacheParams.blockSize=100),this.cacheParams.initialRowCount>=1||(this.cacheParams.initialRowCount=0),this.cacheParams.overflowSize>=1||(this.cacheParams.overflowSize=1),this.infiniteCache=new g.InfiniteCache(this.cacheParams),this.getContext().wireBean(this.infiniteCache),this.infiniteCache.addEventListener(y.RowNodeCache.EVENT_CACHE_UPDATED,this.onCacheUpdated.bind(this))},t.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache.destroy(),this.infiniteCache=null),this.rowNodeBlockLoader&&(this.rowNodeBlockLoader.destroy(),this.rowNodeBlockLoader=null)},t.prototype.onCacheUpdated=function(){var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)},t.prototype.getRow=function(e){return this.infiniteCache?this.infiniteCache.getRow(e):null},t.prototype.getRowNode=function(e){var t=null;return this.forEachNode((function(o){o.id===e&&(t=o)})),t},t.prototype.forEachNode=function(e){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(e,new E.NumberSequence)},t.prototype.getCurrentPageHeight=function(){return this.getRowCount()*this.rowHeight},t.prototype.getRowIndexAtPixel=function(e){if(0!==this.rowHeight){var t=Math.floor(e/this.rowHeight);return t>this.getPageLastRow()?this.getPageLastRow():t}return 0},t.prototype.getPageFirstRow=function(){return 0},t.prototype.getPageLastRow=function(){return this.infiniteCache?this.infiniteCache.getVirtualRowCount()-1:0},t.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getVirtualRowCount():0},t.prototype.updateRowData=function(e){E._.exists(e.remove)||E._.exists(e.update)?console.warn("ag-Grid: updateRowData for InfiniteRowModel does not support remove or update, only add"):E._.missing(e.addIndex)?console.warn("ag-Grid: updateRowData for InfiniteRowModel requires add and addIndex to be set"):this.infiniteCache&&this.infiniteCache.insertItemsAtIndex(e.addIndex,e.add)},t.prototype.isRowPresent=function(e){return!1},t.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},t.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},t.prototype.getVirtualRowCount=function(){return this.infiniteCache?this.infiniteCache.getVirtualRowCount():null},t.prototype.isMaxRowFound=function(){if(this.infiniteCache)return this.infiniteCache.isMaxRowFound()},t.prototype.setVirtualRowCount=function(e,t){this.infiniteCache&&this.infiniteCache.setVirtualRowCount(e,t)},t.prototype.getBlockState=function(){return this.rowNodeBlockLoader?this.rowNodeBlockLoader.getBlockState():null},r([l.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([l.Autowired("filterManager"),s("design:type",h.FilterManager)],t.prototype,"filterManager",void 0),r([l.Autowired("sortController"),s("design:type",d.SortController)],t.prototype,"sortController",void 0),r([l.Autowired("selectionController"),s("design:type",u.SelectionController)],t.prototype,"selectionController",void 0),r([l.Autowired("eventService"),s("design:type",p.EventService)],t.prototype,"eventService",void 0),r([l.Autowired("gridApi"),s("design:type",C.GridApi)],t.prototype,"gridApi",void 0),r([l.Autowired("columnApi"),s("design:type",w.ColumnApi)],t.prototype,"columnApi",void 0),r([l.Autowired("rowRenderer"),s("design:type",_.RowRenderer)],t.prototype,"rowRenderer",void 0),r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),r([l.PreDestroy,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"destroyDatasource",null),r([l.Bean("rowModel")],t)}(m.BeanStub);t.InfiniteRowModel=b},31887:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(814),a=o(74517),l=o(72948),p=o(72493),u=o(83423),c=function(){function e(){}return e.prototype.createDisplayedGroups=function(e,t,o,i,n){var r,s,a=this,l=[],p=this.mapOldGroupsById(n);return e.forEach((function(e){for(var n=a.getOriginalPathForColumn(t,e),u=[],c=!s,d=0;d<n.length;d++)if(c||n[d]!==s[d]){var h=a.createColumnGroup(n[d],o,p,i);u[d]=h,0==d?l.push(h):u[d-1].addChild(h)}else u[d]=r[d];0===u.length?l.push(e):u[u.length-1].addChild(e),r=u,s=n})),this.setupParentsIntoColumns(l,null),l},e.prototype.createColumnGroup=function(e,t,o,i){var n=e.getGroupId(),r=t.getInstanceIdForKey(n),s=o[a.ColumnGroup.createUniqueId(n,r)];return s&&s.getOriginalColumnGroup()!==e&&(s=null),u._.exists(s)?s.reset():(s=new a.ColumnGroup(e,n,r,i),this.context.wireBean(s)),s},e.prototype.mapOldGroupsById=function(e){var t={},o=function(e){e.forEach((function(e){if(e instanceof a.ColumnGroup){var i=e;t[e.getUniqueId()]=i,o(i.getChildren())}}))};return e&&o(e),t},e.prototype.setupParentsIntoColumns=function(e,t){var o=this;e.forEach((function(e){if(e.setParent(t),e instanceof a.ColumnGroup){var i=e;o.setupParentsIntoColumns(i.getChildren(),i)}}))},e.prototype.getOriginalPathForColumn=function(e,t){var o=[],i=!1;return function e(n,r){for(var s=0;s<n.length;s++){if(i)return;var a=n[s];a instanceof l.OriginalColumnGroup?(e(a.getChildren(),r+1),o[r]=a):a===t&&(i=!0)}}(e,0),i?o:(console.warn("could not get path"),null)},i([r.Autowired("columnUtils"),n("design:type",s.ColumnUtils)],e.prototype,"columnUtils",void 0),i([r.Autowired("context"),n("design:type",p.Context)],e.prototype,"context",void 0),i([p.Bean("displayedGroupCreator")],e)}();t.DisplayedGroupCreator=c},31923:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.isPopup=function(){return!0},t}(o(84715).SelectCellEditor);t.PopupSelectCellEditor=r},32090:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(22131),l=o(47721),p=o(72493),u=o(73575),c=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return n(t,e),t.prototype.postConstruct=function(){this.closePopup=this.popupService.addPopup(!1,this.getGui(),!1,this.destroy.bind(this)),this.addDestroyableEventListener(this.eClose,"click",this.onBtClose.bind(this))},t.prototype.setBody=function(e){this.eContentWrapper.appendChild(e)},t.prototype.setTitle=function(e){this.eTitle.innerText=e},t.prototype.onBtClose=function(){this.closePopup()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.dispatchEvent({type:t.DESTROY_EVENT})},t.TEMPLATE='<div class="ag-popup-window" style="top: 40px; left: 40px; border: 1px solid black; position: fixed; background-color: white;">\n <div class="ag-popup-window-title-bar" style="background: #00e5ff; border-bottom: 1px solid black;">\n <span ref="eClose" class="ag-popup-window-close" style="margin: 2px; border: 1px solid grey; border-radius: 2px;">X</span>\n <span ref="eTitle" class="ag-popup-window-title" style="padding: 2px;">New Chart</span>\n </div>\n <div ref="eContentWrapper" class="ag-popup-window-content-wrapper"></div>\n </div>',t.DESTROY_EVENT="destroy",r([p.Autowired("popupService"),s("design:type",u.PopupService)],t.prototype,"popupService",void 0),r([l.RefSelector("eContentWrapper"),s("design:type",HTMLElement)],t.prototype,"eContentWrapper",void 0),r([l.RefSelector("eTitle"),s("design:type",HTMLElement)],t.prototype,"eTitle",void 0),r([l.RefSelector("eClose"),s("design:type",HTMLElement)],t.prototype,"eClose",void 0),r([p.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.PopupWindow=c},32590:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(72493),l=o(26016),p=o(38152),u=o(69397),c=o(22131),d=o(47721),h=o(44081),f=o(55090),g=o(81604),m=o(63405),y=o(60843),v=o(93830),C=o(83423),w=o(85910),E=o(40797),_=o(44871),b=o(55e3),R=function(e){function t(o){var i=e.call(this,t.TEMPLATE)||this;return i.column=o,i}return n(t,e),t.prototype.postConstruct=function(){this.setupFloatingFilter(),this.setupWidth(),this.setupLeftPositioning(),this.setupColumnHover(),this.addFeature(this.getContext(),new g.HoverFeature([this.column],this.getGui())),this.addDestroyableEventListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},t.prototype.setupFloatingFilter=function(){var e=this;this.column.getColDef().filter?(this.floatingFilterCompPromise=this.getFloatingFilterInstance(),this.floatingFilterCompPromise?this.floatingFilterCompPromise.then((function(t){t?e.setupWithFloatingFilter(t):e.setupEmpty()})):this.setupEmpty(),this.setupSyncWithFilter()):this.setupEmpty()},t.prototype.setupLeftPositioning=function(){var e=new p.SetLeftFeature(this.column,this.getGui(),this.beans);e.init(),this.addDestroyFunc(e.destroy.bind(e))},t.prototype.setupSyncWithFilter=function(){var e=this,t=function(){var t=e.filterManager.getFilterComponent(e.column,"NO_UI");e.onParentModelChanged(t.resolveNow(null,(function(e){return e.getModel()})))};this.addDestroyableEventListener(this.column,l.Column.EVENT_FILTER_CHANGED,t),this.filterManager.cachedFilter(this.column)&&t()},t.prototype.showParentFilter=function(){this.menuFactory.showMenuAfterButtonClick(this.column,this.eButtonShowMainFilter,"filterMenuTab",["filterMenuTab"])},t.prototype.setupColumnHover=function(){this.addDestroyableEventListener(this.eventService,m.Events.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},t.prototype.onColumnHover=function(){var e=this.columnHoverService.isHovered(this.column);C._.addOrRemoveCssClass(this.getGui(),"ag-column-hover",e)},t.prototype.setupWidth=function(){this.addDestroyableEventListener(this.column,l.Column.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},t.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},t.prototype.setupWithFloatingFilter=function(e){var t=function(){e.destroy&&e.destroy()};if(this.isAlive()){this.addDestroyFunc(t);var o=e.getGui();C._.addOrRemoveCssClass(this.eFloatingFilterBody,"ag-floating-filter-body",!this.suppressFilterButton),C._.addOrRemoveCssClass(this.eFloatingFilterBody,"ag-floating-filter-full-body",this.suppressFilterButton),C._.setVisible(this.eButtonWrapper,!this.suppressFilterButton);var i=C._.createIconNoSpan("filter",this.gridOptionsWrapper,this.column);this.eButtonShowMainFilter.appendChild(i),this.eFloatingFilterBody.appendChild(o),e.afterGuiAttached&&e.afterGuiAttached(),this.wireQuerySelectors()}else t()},t.prototype.getFloatingFilterInstance=function(){var e,o=this,i=this.column.getColDef();"string"==typeof i.filter?e=t.filterToFloatingFilterNames[i.filter]:!0===i.filter&&(e=this.gridOptionsWrapper.isEnterprise()?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter");var n={api:this.gridApi,column:this.column,currentParentModel:this.currentParentModel.bind(this),onFloatingFilterChanged:this.onFloatingFilterChanged.bind(this),suppressFilterButton:!1};this.suppressFilterButton=!!i.floatingFilterComponentParams&&!!i.floatingFilterComponentParams.suppressFilterButton;var r=this.userComponentFactory.newFloatingFilterComponent(i,n,e);if(!r){var s=this.getFilterComponentPrototype(i);if(s&&s.prototype&&s.prototype.getModelAsString){var a=n.currentParentModel;n.currentParentModel=function(){return o.filterManager.getFilterComponent(o.column,"NO_UI").resolveNow(null,(function(e){return e.getModelAsString?e.getModelAsString(a()):null}))};var l=this.userComponentFactory.createUserComponentFromConcreteClass(u.ReadModelAsStringFloatingFilterComp,n);r=C.Promise.resolve(l)}}return r},t.prototype.createDynamicParams=function(){return{column:this.column,colDef:this.column.getColDef(),api:this.gridApi,columnApi:this.columnApi}},t.prototype.getFilterComponentPrototype=function(e){var t=this.userComponentFactory.lookupComponentClassDef(e,"filter",this.createDynamicParams());return t?t.component:null},t.prototype.setupEmpty=function(){C._.setVisible(this.eButtonWrapper,!1)},t.prototype.currentParentModel=function(){var e=this.filterManager.getFilterComponent(this.column,"NO_UI").resolveNow(null,(function(e){return e.getNullableModel?e.getNullableModel():e.getModel()}));return e&&null!=e.operator?e.condition1:e},t.prototype.onFloatingFilterChanged=function(e){var t,o=this,i=new C.Promise((function(e){t=e}));return this.filterManager.getFilterComponent(this.column,"NO_UI").then((function(i){if(i.onFloatingFilterChanged){var n=i.onFloatingFilterChanged(e);t(n)}else i.setModel(e),o.filterManager.onFilterChanged(),t(!0)})),i.resolveNow(!0,(function(e){return e}))},t.prototype.onParentModelChanged=function(e){if(this.floatingFilterCompPromise){var t,o;o=e&&e.operator?(t=e).condition1:e,this.floatingFilterCompPromise.then((function(e){e.onParentModelChanged(o,t)}))}},t.filterToFloatingFilterNames={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},t.TEMPLATE='<div class="ag-header-cell" aria-hidden="true">\n <div ref="eFloatingFilterBody" aria-hidden="true"></div>\n <div class="ag-floating-filter-button" ref="eButtonWrapper" aria-hidden="true">\n <button type="button" ref="eButtonShowMainFilter"></button>\n </div>\n </div>',r([a.Autowired("columnHoverService"),s("design:type",v.ColumnHoverService)],t.prototype,"columnHoverService",void 0),r([a.Autowired("eventService"),s("design:type",y.EventService)],t.prototype,"eventService",void 0),r([a.Autowired("beans"),s("design:type",f.Beans)],t.prototype,"beans",void 0),r([a.Autowired("gridOptionsWrapper"),s("design:type",h.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.Autowired("userComponentFactory"),s("design:type",w.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),r([a.Autowired("gridApi"),s("design:type",E.GridApi)],t.prototype,"gridApi",void 0),r([a.Autowired("columnApi"),s("design:type",_.ColumnApi)],t.prototype,"columnApi",void 0),r([a.Autowired("filterManager"),s("design:type",b.FilterManager)],t.prototype,"filterManager",void 0),r([a.Autowired("menuFactory"),s("design:type",Object)],t.prototype,"menuFactory",void 0),r([d.RefSelector("eFloatingFilterBody"),s("design:type",HTMLElement)],t.prototype,"eFloatingFilterBody",void 0),r([d.RefSelector("eButtonWrapper"),s("design:type",HTMLElement)],t.prototype,"eButtonWrapper",void 0),r([d.RefSelector("eButtonShowMainFilter"),s("design:type",HTMLElement)],t.prototype,"eButtonShowMainFilter",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(c.Component);t.FloatingFilterWrapper=R},33467:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s};Object.defineProperty(t,"__esModule",{value:!0});var n=o(72493),r=function(){function e(){}return e.prototype.download=function(e,t){if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(t,e);else{var o=document.createElement("a"),i=window.URL.createObjectURL(t);o.setAttribute("href",i),o.setAttribute("download",e),o.style.display="none",document.body.appendChild(o),o.click(),window.URL.revokeObjectURL(i),document.body.removeChild(o)}},i([n.Bean("downloader")],e)}();t.Downloader=r},34255:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(22131),l=o(47721),p=o(13650),u=o(72493),c=o(85910),d=o(83423),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.modelFromFloatingFilter=function(e){return{dateFrom:e,dateTo:this.getDateTo(),type:this.selectedFilter,filterType:"date"}},t.prototype.getApplicableFilterTypes=function(){return[p.BaseFilter.EQUALS,p.BaseFilter.GREATER_THAN,p.BaseFilter.LESS_THAN,p.BaseFilter.NOT_EQUAL,p.BaseFilter.IN_RANGE]},t.prototype.bodyTemplate=function(e){return'<div class="ag-filter-body">\n <div class="ag-filter-date-from" id="'+(e==p.FilterConditionType.MAIN?"filterDateFromPanel":"filterDateFromConditionPanel")+'">\n </div>\n <div class="ag-filter-date-to" id="'+(e==p.FilterConditionType.MAIN?"filterDateToPanel":"filterDateToConditionPanel")+'">\n </div>\n </div>'},t.prototype.initialiseFilterBodyUi=function(t){e.prototype.initialiseFilterBodyUi.call(this,t),this.createComponents(t),t===p.FilterConditionType.MAIN?(this.setDateFrom_date(this.dateFrom,p.FilterConditionType.MAIN),this.setDateTo_date(this.dateTo,p.FilterConditionType.MAIN),this.setFilterType(this.selectedFilter,p.FilterConditionType.MAIN)):(this.setDateFrom_date(this.dateFromCondition,p.FilterConditionType.CONDITION),this.setDateTo_date(this.dateToCondition,p.FilterConditionType.CONDITION),this.setFilterType(this.selectedFilterCondition,p.FilterConditionType.CONDITION))},t.prototype.createComponents=function(e){var t=this,o={onDateChanged:function(){t.onDateChanged(e)},filterParams:this.filterParams};this.userComponentFactory.newDateComponent(o).then((function(o){e===p.FilterConditionType.MAIN?t.dateToComponent=o:t.dateToConditionComponent=o;var i=o.getGui();e===p.FilterConditionType.MAIN?(t.eDateToPanel.appendChild(i),t.dateToComponent.afterGuiAttached&&t.dateToComponent.afterGuiAttached()):(t.eDateToConditionPanel.appendChild(i),t.dateToConditionComponent.afterGuiAttached&&t.dateToConditionComponent.afterGuiAttached())})),this.userComponentFactory.newDateComponent(o).then((function(o){e===p.FilterConditionType.MAIN?t.dateFromComponent=o:t.dateFromConditionComponent=o;var i=o.getGui();e===p.FilterConditionType.MAIN?(t.eDateFromPanel.appendChild(i),t.dateFromComponent.afterGuiAttached&&t.dateFromComponent.afterGuiAttached()):(t.eDateFromConditionPanel.appendChild(i),t.dateFromConditionComponent.afterGuiAttached&&t.dateFromConditionComponent.afterGuiAttached())}))},t.prototype.onDateChanged=function(e){e===p.FilterConditionType.MAIN?(this.dateFrom=t.removeTimezone(this.dateFromComponent.getDate()),this.dateTo=t.removeTimezone(this.dateToComponent.getDate())):(this.dateFromCondition=t.removeTimezone(this.dateFromComponent.getDate()),this.dateToCondition=t.removeTimezone(this.dateToComponent.getDate())),this.onFilterChanged()},t.prototype.refreshFilterBodyUi=function(e){var t,o;if(e===p.FilterConditionType.MAIN?(t=this.eDateToPanel,o=this.selectedFilter):(t=this.eDateToConditionPanel,o=this.selectedFilterCondition),t){var i=o===p.BaseFilter.IN_RANGE;d._.setVisible(t,i)}var n=e===p.FilterConditionType.MAIN?this.eDateFromPanel:this.eDateFromConditionPanel;if(n){var r=!this.doesFilterHaveHiddenInput(o)&&o!==p.BaseFilter.EMPTY;d._.setVisible(n,r)}},t.prototype.comparator=function(){return this.filterParams.comparator?this.filterParams.comparator:this.defaultComparator.bind(this)},t.prototype.defaultComparator=function(e,t){return t<e?-1:t>e?1:null!=t?0:-1},t.prototype.serialize=function(e){var t=e===p.FilterConditionType.MAIN?this.dateToComponent:this.dateToConditionComponent,o=e===p.FilterConditionType.MAIN?this.dateFromComponent:this.dateFromConditionComponent,i=e===p.FilterConditionType.MAIN?this.selectedFilter:this.selectedFilterCondition;return{dateTo:d._.serializeDateToYyyyMmDd(t.getDate(),"-"),dateFrom:d._.serializeDateToYyyyMmDd(o.getDate(),"-"),type:i||this.defaultFilter,filterType:"date"}},t.prototype.filterValues=function(e){return e===p.FilterConditionType.MAIN?this.dateFromComponent?this.selectedFilter!==p.BaseFilter.IN_RANGE?this.dateFromComponent.getDate():[this.dateFromComponent.getDate(),this.dateToComponent.getDate()]:null:this.dateFromConditionComponent?this.selectedFilterCondition!==p.BaseFilter.IN_RANGE?this.dateFromConditionComponent.getDate():[this.dateFromConditionComponent.getDate(),this.dateToConditionComponent.getDate()]:null},t.prototype.getDateFrom=function(){return d._.serializeDateToYyyyMmDd(this.dateFromComponent.getDate(),"-")},t.prototype.getDateTo=function(){return d._.serializeDateToYyyyMmDd(this.dateToComponent.getDate(),"-")},t.prototype.getFilterType=function(){return this.selectedFilter},t.prototype.setDateFrom=function(e,t){var o=d._.parseYyyyMmDdToDate(e,"-");this.setDateFrom_date(o,t)},t.prototype.setDateFrom_date=function(e,t){if(t===p.FilterConditionType.MAIN){if(this.dateFrom=e,!this.dateFromComponent)return;this.dateFromComponent.setDate(this.dateFrom)}else{if(this.dateFromCondition=e,!this.dateFromConditionComponent)return;this.dateFromConditionComponent.setDate(this.dateFromCondition)}},t.prototype.setDateTo=function(e,t){var o=d._.parseYyyyMmDdToDate(e,"-");this.setDateTo_date(o,t)},t.prototype.setDateTo_date=function(e,t){if(t===p.FilterConditionType.MAIN){if(this.dateTo=e,!this.dateToComponent)return;this.dateToComponent.setDate(this.dateTo)}else{if(this.dateToCondition=e,!this.dateToConditionComponent)return;this.dateToConditionComponent.setDate(this.dateToCondition)}},t.prototype.resetState=function(e){void 0===e&&(e=!1),e||(this.setDateFrom(null,p.FilterConditionType.MAIN),this.setDateTo(null,p.FilterConditionType.MAIN),this.setFilterType(this.defaultFilter,p.FilterConditionType.MAIN)),this.setFilterType(this.defaultFilter,p.FilterConditionType.CONDITION),this.setDateFrom(null,p.FilterConditionType.CONDITION),this.setDateTo(null,p.FilterConditionType.CONDITION)},t.prototype.parse=function(e,t){this.setDateFrom(e.dateFrom,t),this.setDateTo(e.dateTo,t),this.setFilterType(e.type,t)},t.prototype.setType=function(e,t){this.setFilterType(e,t)},t.removeTimezone=function(e){return e?new Date(e.getFullYear(),e.getMonth(),e.getDate()):null},r([u.Autowired("userComponentFactory"),s("design:type",c.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),r([l.QuerySelector("#filterDateFromPanel"),s("design:type",HTMLElement)],t.prototype,"eDateFromPanel",void 0),r([l.QuerySelector("#filterDateFromConditionPanel"),s("design:type",HTMLElement)],t.prototype,"eDateFromConditionPanel",void 0),r([l.QuerySelector("#filterDateToPanel"),s("design:type",HTMLElement)],t.prototype,"eDateToPanel",void 0),r([l.QuerySelector("#filterDateToConditionPanel"),s("design:type",HTMLElement)],t.prototype,"eDateToConditionPanel",void 0),t}(p.ScalarBaseFilter);t.DateFilter=h;var f=function(e){function t(){return e.call(this,'<div class="ag-input-text-wrapper"><input class="ag-filter-filter" type="text" placeholder="yyyy-mm-dd"></div>')||this}return n(t,e),t.prototype.init=function(e){this.eDateInput=this.getGui().querySelector("input"),(d._.isBrowserChrome()||e.filterParams.browserDatePicker)&&(d._.isBrowserIE()?console.warn("ag-grid: browserDatePicker is specified to true, but it is not supported in IE 11, reverting to plain text date picker"):this.eDateInput.type="date"),this.listener=e.onDateChanged,this.addGuiEventListener("input",this.listener)},t.prototype.getDate=function(){return d._.parseYyyyMmDdToDate(this.eDateInput.value,"-")},t.prototype.setDate=function(e){this.eDateInput.value=d._.serializeDateToYyyyMmDd(e,"-")},t}(a.Component);t.DefaultDateComponent=f},34470:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(44081),a=o(60843),l=o(40634),p=o(30811),u=o(15959),c=o(79886),d=o(83423),h=function(){function e(){this.cellRendererMap={}}var t;return t=e,e.prototype.init=function(){this.cellRendererMap[t.ANIMATE_SLIDE]=p.AnimateSlideCellRenderer,this.cellRendererMap[t.ANIMATE_SHOW_CHANGE]=u.AnimateShowChangeCellRenderer,this.cellRendererMap[t.GROUP]=c.GroupCellRenderer},e.prototype.addCellRenderer=function(e,t){this.cellRendererMap[e]=t},e.prototype.getCellRenderer=function(e){var t=this.cellRendererMap[e];return d._.missing(t)?(console.warn("ag-Grid: unable to find cellRenderer for key "+e),null):t},e.ANIMATE_SLIDE="animateSlide",e.ANIMATE_SHOW_CHANGE="animateShowChange",e.GROUP="group",i([r.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("expressionService"),n("design:type",l.ExpressionService)],e.prototype,"expressionService",void 0),i([r.Autowired("eventService"),n("design:type",a.EventService)],e.prototype,"eventService",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),t=i([r.Bean("cellRendererFactory")],e)}();t.CellRendererFactory=h},34506:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=o(83423),n=function(){function e(){}return e.addHeaderClassesFromColDef=function(e,t,o,n,r){i._.missing(e)||this.addColumnClassesFromCollDef(e.headerClass,e,t,o,n,r)},e.addToolPanelClassesFromColDef=function(e,t,o,n,r){i._.missing(e)||this.addColumnClassesFromCollDef(e.toolPanelClass,e,t,o,n,r)},e.addColumnClassesFromCollDef=function(e,t,o,n,r,s){var a;i._.missing(e)||("string"==typeof(a="function"==typeof e?e({colDef:t,column:r,columnGroup:s,context:n.getContext(),api:n.getApi()}):e)?i._.addCssClass(o,a):Array.isArray(a)&&a.forEach((function(e){i._.addCssClass(o,e)})))},e}();t.CssClassApplier=n},34782:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=o(3976),n=o(83423),r=function(){function e(e){this.rowIndex=e.rowIndex,this.column=e.column,this.floating=n._.makeNull(e.floating)}return e.prototype.getGridCellDef=function(){return{rowIndex:this.rowIndex,column:this.column,floating:this.floating}},e.prototype.getGridRow=function(){return new i.GridRow(this.rowIndex,this.floating)},e.prototype.toString=function(){return"rowIndex = "+this.rowIndex+", floating = "+this.floating+", column = "+(this.column?this.column.getId():null)},e.prototype.createId=function(){return this.rowIndex+"."+this.floating+"."+this.column.getId()},e.prototype.equals=function(e){var t=this.column===e.column,o=this.floating===e.floating,i=this.rowIndex===e.rowIndex;return t&&o&&i},e}();t.GridCell=r},34941:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(32090),l=o(72493),p=o(22131),u=o(47721),c=function(e){function t(t,o){var i=e.call(this)||this;return i.title=t,i.message=o,i}return n(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.setTitle(this.title);var o=new d;this.addFeature(this.getContext(),o),o.setMessage(this.message),this.setBody(o.getGui()),this.addDestroyableEventListener(o,"onBtOk",(function(){return t.closePopup()}))},t}(a.PopupWindow);t.PopupMessageBox=c;var d=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return n(t,e),t.prototype.setMessage=function(e){this.eCenter.innerText=e},t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.eOk,"click",this.onBtOk.bind(this))},t.prototype.onBtOk=function(){this.dispatchEvent({type:"onBtOk"})},t.TEMPLATE='<div>\n <div ref="eCenter"></div>\n <div ref="eButtons">\n <button ref="eOk">OK</button>\n </div>\n </div>',r([u.RefSelector("eCenter"),s("design:type",HTMLElement)],t.prototype,"eCenter",void 0),r([u.RefSelector("eOk"),s("design:type",HTMLElement)],t.prototype,"eOk",void 0),r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(p.Component)},36777:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r,s=o(71616),a=o(72493),l=o(34255),p=o(25358),u=o(95574),c=o(69397),d=o(79886),h=o(15959),f=o(30811),g=o(99093),m=o(84715),y=o(5448),v=o(31923),C=o(49281),w=o(99104),E=o(92378),_=o(24144),b=o(50298),R=o(75167),O=o(83423);!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.REGISTERED=1]="REGISTERED"}(r=t.RegisteredComponentSource||(t.RegisteredComponentSource={}));var S=function(){function e(){this.agGridDefaults={agDateInput:l.DefaultDateComponent,agColumnHeader:p.HeaderComp,agColumnGroupHeader:u.HeaderGroupComp,agSetColumnFloatingFilter:c.SetFloatingFilterComp,agTextColumnFloatingFilter:c.TextFloatingFilterComp,agNumberColumnFloatingFilter:c.NumberFloatingFilterComp,agDateColumnFloatingFilter:c.DateFloatingFilterComp,agAnimateShowChangeCellRenderer:h.AnimateShowChangeCellRenderer,agAnimateSlideCellRenderer:f.AnimateSlideCellRenderer,agGroupCellRenderer:d.GroupCellRenderer,agGroupRowRenderer:d.GroupCellRenderer,agLoadingCellRenderer:g.LoadingCellRenderer,agCellEditor:s.TextCellEditor,agTextCellEditor:s.TextCellEditor,agSelectCellEditor:m.SelectCellEditor,agPopupTextCellEditor:y.PopupTextCellEditor,agPopupSelectCellEditor:v.PopupSelectCellEditor,agLargeTextCellEditor:C.LargeTextCellEditor,agTextColumnFilter:w.TextFilter,agNumberColumnFilter:E.NumberFilter,agDateColumnFilter:l.DateFilter,agLoadingOverlay:_.LoadingOverlayComponent,agNoRowsOverlay:b.NoRowsOverlayComponent,agTooltipComponent:R.TooltipComponent},this.agDeprecatedNames={set:{newComponentName:"agSetColumnFilter",propertyHolder:"filter"},text:{newComponentName:"agTextColumnFilter",propertyHolder:"filter"},number:{newComponentName:"agNumberColumnFilter",propertyHolder:"filter"},date:{newComponentName:"agDateColumnFilter",propertyHolder:"filter"},group:{newComponentName:"agGroupCellRenderer",propertyHolder:"cellRenderer"},animateShowChange:{newComponentName:"agAnimateShowChangeCellRenderer",propertyHolder:"cellRenderer"},animateSlide:{newComponentName:"agAnimateSlideCellRenderer",propertyHolder:"cellRenderer"},select:{newComponentName:"agSelectCellEditor",propertyHolder:"cellEditor"},largeText:{newComponentName:"agLargeTextCellEditor",propertyHolder:"cellEditor"},popupSelect:{newComponentName:"agPopupSelectCellEditor",propertyHolder:"cellEditor"},popupText:{newComponentName:"agPopupTextCellEditor",propertyHolder:"cellEditor"},richSelect:{newComponentName:"agRichSelectCellEditor",propertyHolder:"cellEditor"},headerComponent:{newComponentName:"agColumnHeader",propertyHolder:"headerComponent"}},this.jsComponents={},this.frameworkComponents={}}return e.prototype.init=function(){var e=this,t=this.context.getEnterpriseDefaultComponents();t&&O._.forEach(t,(function(t){e.registerDefaultComponent(t.componentName,t.theClass)})),null!=this.gridOptions.components&&Object.keys(this.gridOptions.components).forEach((function(t){e.registerComponent(t,e.gridOptions.components[t])})),null!=this.gridOptions.frameworkComponents&&Object.keys(this.gridOptions.frameworkComponents).forEach((function(t){e.registerFwComponent(t,e.gridOptions.frameworkComponents[t])}))},e.prototype.registerDefaultComponent=function(e,t){var o=this.translateIfDeprecated(e);this.agGridDefaults[o]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[o]=t},e.prototype.registerComponent=function(e,t){var o=this.translateIfDeprecated(e);this.frameworkComponents[o]?console.error("Trying to register a component that you have already registered for frameworks: "+o):this.jsComponents[o]=t},e.prototype.registerFwComponent=function(e,t){var o=this.translateIfDeprecated(e);this.jsComponents[o]?console.error("Trying to register a component that you have already registered for plain javascript: "+o):this.frameworkComponents[o]=t},e.prototype.retrieve=function(e){var t=this.translateIfDeprecated(e);return this.frameworkComponents[t]?{componentFromFramework:!0,component:this.frameworkComponents[t],source:r.REGISTERED}:this.jsComponents[t]?{componentFromFramework:!1,component:this.jsComponents[t],source:r.REGISTERED}:this.agGridDefaults[t]?this.agGridDefaults[t]?{componentFromFramework:!1,component:this.agGridDefaults[t],source:r.DEFAULT}:null:(Object.keys(this.agGridDefaults).indexOf(t)<0&&console.warn("ag-grid: Looking for component ["+t+"] but it wasn't found."),null)},e.prototype.translateIfDeprecated=function(e){var t=this.agDeprecatedNames[e];return null!=t?(O._.doOnce((function(){console.warn("ag-grid. Since v15.0 component names have been renamed to be namespaced. You should rename "+t.propertyHolder+":"+e+" to "+t.propertyHolder+":"+t.newComponentName)}),"DEPRECATE_COMPONENT_"+e),t.newComponentName):e},i([a.Autowired("gridOptions"),n("design:type",Object)],e.prototype,"gridOptions",void 0),i([a.Autowired("context"),n("design:type",a.Context)],e.prototype,"context",void 0),i([a.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([a.Bean("userComponentRegistry")],e)}();t.UserComponentRegistry=S},36819:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(58342),s=o(72493),a=o(42195),l=o(44081),p=o(60843),u=o(85222),c=o(45727),d=function(){function e(e,t){this.eContainer=e,this.gridPanel=t}return e.prototype.postConstruct=function(){this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel)},e.prototype.getContainer=function(){return this.eContainer},e.prototype.isInterestedIn=function(e){return e===r.DragSourceType.RowDrag},e.prototype.getIconName=function(){return r.DragAndDropService.ICON_MOVE},e.prototype.onDragEnter=function(e){this.dispatchEvent(u.Events.EVENT_ROW_DRAG_ENTER,e),this.dragAndDropService.setGhostIcon(r.DragAndDropService.ICON_MOVE),e.dragItem.rowNode.setDragging(!0),this.onEnterOrDragging(e)},e.prototype.onDragging=function(e){this.onEnterOrDragging(e)},e.prototype.onEnterOrDragging=function(e){this.dispatchEvent(u.Events.EVENT_ROW_DRAG_MOVE,e),this.lastDraggingEvent=e;var t=this.normaliseForScroll(e.y);this.gridOptionsWrapper.isRowDragManaged()&&this.doManagedDrag(e,t),this.checkCenterForScrolling(t)},e.prototype.doManagedDrag=function(e,t){var o=e.dragItem.rowNode;this.clientSideRowModel.ensureRowAtPixel(o,t)&&(this.focusedCellController.clearFocusedCell(),this.rangeController&&this.rangeController.clearSelection())},e.prototype.normaliseForScroll=function(e){return this.gridOptionsWrapper.getDomLayout()===c.Constants.DOM_LAYOUT_NORMAL?e+this.gridPanel.getVScrollPosition().top:e},e.prototype.checkCenterForScrolling=function(e){var t=this.gridPanel.getVScrollPosition();this.needToMoveUp=e<t.top+50,this.needToMoveDown=e>t.bottom-50,this.needToMoveUp||this.needToMoveDown?this.ensureIntervalStarted():this.ensureIntervalCleared()},e.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100))},e.prototype.ensureIntervalCleared=function(){this.moveInterval&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null)},e.prototype.moveInterval=function(){var e,t;this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100),this.needToMoveDown?t=this.gridPanel.scrollVertically(e):this.needToMoveUp&&(t=this.gridPanel.scrollVertically(-e)),0!==t&&this.onDragging(this.lastDraggingEvent)},e.prototype.dispatchEvent=function(e,t){var o,i=this.normaliseForScroll(t.y),n=-1,s=null;switch(i>this.rowModel.getCurrentPageHeight()||(n=this.rowModel.getRowIndexAtPixel(i),s=this.rowModel.getRow(n)),t.vDirection){case r.VDirection.Down:o="down";break;case r.VDirection.Up:o="up";break;default:o=null}var a={type:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),event:t.event,node:t.dragItem.rowNode,overIndex:n,overNode:s,y:i,vDirection:o};this.eventService.dispatchEvent(a)},e.prototype.onDragLeave=function(e){this.dispatchEvent(u.Events.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e)},e.prototype.onDragStop=function(e){this.dispatchEvent(u.Events.EVENT_ROW_DRAG_END,e),this.stopDragging(e)},e.prototype.stopDragging=function(e){this.ensureIntervalCleared(),e.dragItem.rowNode.setDragging(!1)},i([s.Autowired("dragAndDropService"),n("design:type",r.DragAndDropService)],e.prototype,"dragAndDropService",void 0),i([s.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([s.Autowired("focusedCellController"),n("design:type",a.FocusedCellController)],e.prototype,"focusedCellController",void 0),i([s.Autowired("gridOptionsWrapper"),n("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Optional("rangeController"),n("design:type",Object)],e.prototype,"rangeController",void 0),i([s.Autowired("eventService"),n("design:type",p.EventService)],e.prototype,"eventService",void 0),i([s.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"postConstruct",null),e}();t.RowDragFeature=d},37132:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(44081),a=o(72493),l=o(72493),p=function(){function e(){}return e.prototype.setBeans=function(e){this.logging=e.isDebug()},e.prototype.create=function(e){return new u(e,this.isLogging.bind(this))},e.prototype.isLogging=function(){return this.logging},i([r(0,l.Qualifier("gridOptionsWrapper")),n("design:type",Function),n("design:paramtypes",[s.GridOptionsWrapper]),n("design:returntype",void 0)],e.prototype,"setBeans",null),i([a.Bean("loggerFactory")],e)}();t.LoggerFactory=p;var u=function(){function e(e,t){this.name=e,this.isLoggingFunc=t}return e.prototype.isLogging=function(){return this.isLoggingFunc()},e.prototype.log=function(e){this.isLoggingFunc()&&console.log("ag-Grid."+this.name+": "+e)},e}();t.Logger=u},37385:(e,t,o)=>{e.exports=function(e){var t=o.nc;t&&e.setAttribute("nonce",t)}},37789:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.STRING_PROPERTIES=["sortingOrder","rowClass","rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","quickFilterText","rowModelType","editType","domLayout","clipboardDeliminator","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow"],e.OBJECT_PROPERTIES=["components","frameworkComponents","rowStyle","context","autoGroupColumnDef","groupColumnDef","localeText","icons","datasource","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultExportParams","columnTypes","rowClassRules","detailGridOptions","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","colResizeDefault","reduxStore","statusBar","sideBar"],e.ARRAY_PROPERTIES=["slaveGrids","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData"],e.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","colWidth","headerHeight","groupHeaderHeight","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","minColWidth","maxColWidth","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","scrollbarWidth","paginationStartPage","infiniteBlockSize","batchUpdateWaitMillis","blockLoadDebounceMillis"],e.BOOLEAN_PROPERTIES=["toolPanelSuppressRowGroups","toolPanelSuppressValues","toolPanelSuppressPivots","toolPanelSuppressPivotMode","toolPanelSuppressSideButtons","toolPanelSuppressColumnFilter","toolPanelSuppressColumnSelectAll","toolPanelSuppressColumnExpandAll","suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellSelection","suppressHorizontalScroll","debug","enableBrowserTooltips","enableColResize","enableCellExpressions","enableSorting","enableServerSideSorting","enableFilter","enableServerSideFilter","angularCompileRows","angularCompileFilters","angularCompileHeaders","groupSuppressAutoColumn","groupSelectsChildren","groupIncludeFooter","groupIncludeTotalFooter","groupUseEntireRow","groupSuppressRow","groupSuppressBlankHeader","forPrint","suppressMenuHide","rowDeselection","unSortIcon","suppressMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","suppressParentsInRowNodes","showToolPanel","suppressColumnMoveAnimation","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","deltaSort","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","suppressMenuFilterPanel","suppressMenuMainPanel","suppressMenuColumnPanel","rememberGroupStateWhenNewData","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressUseColIdForGroups","suppressCopyRowsToClipboard","copyHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragManaged","suppressRowDrag","enableGroupEdit","embedFullWidthRows","deprecatedEmbedFullWidthRows","suppressTabbing","suppressPaginationPanel","floatingFilter","groupHideOpenParents","groupMultiAutoColumn","pagination","stopEditingWhenGridLosesFocus","paginationAutoPageSize","suppressScrollOnNewData","purgeClosedRowNodes","cacheQuickFilter","deltaRowDataMode","ensureDomOrder","accentedSort","pivotTotals","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","treeData","masterDetail","suppressMultiRangeSelection","enterMovesDownAfterEdit","enterMovesDown","suppressPropertyNamesCheck","rowMultiSelectWithClick","contractColumnSelection","suppressEnterpriseResetOnNewColumns","enableOldSetFilterModel","suppressRowHoverHighlight","gridAutoHeight","suppressRowTransform","suppressClipboardPaste","serverSideSortingAlwaysResets","reactNext","suppressSetColumnStateEvents","enableCharts","deltaColumnMode","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering"],e.FUNCTION_PROPERTIES=["localeTextFunc","groupRowInnerRenderer","groupRowInnerRendererFramework","dateComponent","dateComponentFramework","groupRowRenderer","groupRowRendererFramework","isExternalFilterPresent","getRowHeight","doesExternalFilterPass","getRowClass","getRowStyle","getRowClassRules","traverseNode","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getNodeChildDetails","groupRowAggNodes","getRowNodeId","isFullWidthCell","fullWidthCellRenderer","fullWidthCellRendererFramework","doesDataFlower","processSecondaryColDef","processSecondaryColGroupDef","getBusinessKeyForNode","sendToClipboard","navigateToNextCell","tabToNextCell","getDetailRowData","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","loadingCellRenderer","loadingCellRendererFramework","loadingOverlayComponent","loadingOverlayComponentFramework","noRowsOverlayComponent","noRowsOverlayComponentFramework","detailCellRenderer","detailCellRendererFramework","onGridReady","defaultGroupSortComparator","isRowMaster","isRowSelectable","postSort","processHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","suppressKeyboardEvent"],e.ALL_PROPERTIES=e.ARRAY_PROPERTIES.concat(e.OBJECT_PROPERTIES).concat(e.STRING_PROPERTIES).concat(e.NUMBER_PROPERTIES).concat(e.FUNCTION_PROPERTIES).concat(e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}();t.PropertyKeys=o},38152:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(26016),s=o(8534),a=o(45727),l=o(83423),p=function(e){function t(t,o,i,n){var r=e.call(this)||this;return r.columnOrGroup=t,r.eCell=o,r.colsSpanning=n,r.beans=i,r.printLayout=i.gridOptionsWrapper.getDomLayout()===a.Constants.DOM_LAYOUT_PRINT,r}return n(t,e),t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?this.colsSpanning[this.colsSpanning.length-1]:this.columnOrGroup},t.prototype.init=function(){this.addDestroyableEventListener(this.columnOrGroup,r.Column.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime()},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),t=l._.exists(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&t&&!e?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,t=this.getColumnOrGroup().getLeft(),o=this.getColumnOrGroup().getOldLeft();this.setLeft(o),this.actualLeft=t,this.beans.columnAnimationService.executeNextVMTurn((function(){e.actualLeft===t&&e.setLeft(t)}))},t.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)},t.prototype.modifyLeftForPrintLayout=function(e,t){return this.printLayout?e.getPinned()===r.Column.PINNED_LEFT?t:e.getPinned()===r.Column.PINNED_RIGHT?this.beans.columnController.getPinnedLeftContainerWidth()+this.beans.columnController.getBodyContainerWidth()+t:this.beans.columnController.getPinnedLeftContainerWidth()+t:t},t.prototype.setLeft=function(e){l._.exists(e)&&(this.eCell.style.left=e+"px")},t}(s.BeanStub);t.SetLeftFeature=p},38427:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(45727),a=o(98239),l=o(3976),p=o(34782),u=o(44081),c=o(50580),d=o(83423),h=function(){function e(){}return e.prototype.getNextCellToFocus=function(e,t){for(var o=t,i=!1;!i;){switch(e){case s.Constants.KEY_UP:o=this.getCellAbove(o);break;case s.Constants.KEY_DOWN:o=this.getCellBelow(o);break;case s.Constants.KEY_RIGHT:o=this.gridOptionsWrapper.isEnableRtl()?this.getCellToLeft(o):this.getCellToRight(o);break;case s.Constants.KEY_LEFT:o=this.gridOptionsWrapper.isEnableRtl()?this.getCellToRight(o):this.getCellToLeft(o);break;default:o=null,console.warn("ag-Grid: unknown key for navigation "+e)}i=!o||this.isCellGoodToFocusOn(o)}return o},e.prototype.isCellGoodToFocusOn=function(e){var t,o=e.column;switch(e.floating){case s.Constants.PINNED_TOP:t=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case s.Constants.PINNED_BOTTOM:t=this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);break;default:t=this.rowModel.getRow(e.rowIndex)}return!o.isSuppressNavigable(t)},e.prototype.getCellToLeft=function(e){if(!e)return null;var t=this.columnController.getDisplayedColBefore(e.column);if(t){var o={rowIndex:e.rowIndex,column:t,floating:e.floating};return new p.GridCell(o)}return null},e.prototype.getCellToRight=function(e){if(!e)return null;var t=this.columnController.getDisplayedColAfter(e.column);if(t){var o={rowIndex:e.rowIndex,column:t,floating:e.floating};return new p.GridCell(o)}return null},e.prototype.getRowBelow=function(e){return this.isLastRowInContainer(e)?e.isFloatingBottom()?null:e.isNotFloating()?this.pinnedRowModel.isRowsToRender(s.Constants.PINNED_BOTTOM)?new l.GridRow(0,s.Constants.PINNED_BOTTOM):null:this.rowModel.isRowsToRender()?new l.GridRow(0,null):this.pinnedRowModel.isRowsToRender(s.Constants.PINNED_BOTTOM)?new l.GridRow(0,s.Constants.PINNED_BOTTOM):null:new l.GridRow(e.rowIndex+1,e.floating)},e.prototype.getCellBelow=function(e){if(!e)return null;var t=this.getRowBelow(e.getGridRow());if(t){var o={rowIndex:t.rowIndex,column:e.column,floating:t.floating};return new p.GridCell(o)}return null},e.prototype.isLastRowInContainer=function(e){return e.isFloatingTop()?this.pinnedRowModel.getPinnedTopRowData().length-1<=e.rowIndex:e.isFloatingBottom()?this.pinnedRowModel.getPinnedBottomRowData().length-1<=e.rowIndex:this.rowModel.getPageLastRow()<=e.rowIndex},e.prototype.getRowAbove=function(e){return 0===e.rowIndex?e.isFloatingTop()?null:e.isNotFloating()?this.pinnedRowModel.isRowsToRender(s.Constants.PINNED_TOP)?this.getLastFloatingTopRow():null:this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(s.Constants.PINNED_TOP)?this.getLastFloatingTopRow():null:new l.GridRow(e.rowIndex-1,e.floating)},e.prototype.getCellAbove=function(e){if(!e)return null;var t=this.getRowAbove(e.getGridRow());if(t){var o={rowIndex:t.rowIndex,column:e.column,floating:t.floating};return new p.GridCell(o)}return null},e.prototype.getLastBodyCell=function(){var e=this.rowModel.getPageLastRow();return new l.GridRow(e,null)},e.prototype.getLastFloatingTopRow=function(){var e=this.pinnedRowModel.getPinnedTopRowData().length-1;return new l.GridRow(e,s.Constants.PINNED_TOP)},e.prototype.getNextTabbedCell=function(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)},e.prototype.getNextTabbedCellForwards=function(e){var t=this.columnController.getAllDisplayedColumns(),o=e.rowIndex,i=e.floating,n=this.columnController.getDisplayedColAfter(e.column);if(!n){n=t[0];var r=this.getRowBelow(e.getGridRow());if(d._.missing(r))return null;o=r?r.rowIndex:null,i=r?r.floating:null}var s={rowIndex:o,column:n,floating:i};return new p.GridCell(s)},e.prototype.getNextTabbedCellBackwards=function(e){var t=this.columnController.getAllDisplayedColumns(),o=e.rowIndex,i=e.floating,n=this.columnController.getDisplayedColBefore(e.column);if(!n){n=t[t.length-1];var r=this.getRowAbove(e.getGridRow());if(d._.missing(r))return null;o=r?r.rowIndex:null,i=r?r.floating:null}var s={rowIndex:o,column:n,floating:i};return new p.GridCell(s)},i([r.Autowired("columnController"),n("design:type",a.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([r.Autowired("pinnedRowModel"),n("design:type",c.PinnedRowModel)],e.prototype,"pinnedRowModel",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",u.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Bean("cellNavigationService")],e)}();t.CellNavigationService=h},38848:(e,t,o)=>{o.d(t,{$C:()=>A,$b:()=>G,Ds:()=>xe,G1:()=>I,GU:()=>Se,ID:()=>ye,N8:()=>be,R:()=>V,W:()=>R,WZ:()=>L,Z9:()=>m,ZZ:()=>_e,_Z:()=>Re,ae:()=>Fe,cS:()=>O,cV:()=>Ie,cb:()=>u,e1:()=>d,hK:()=>S,hd:()=>De,jN:()=>we,k5:()=>Ee,m2:()=>p,mD:()=>Ce,nV:()=>b,n_:()=>y,o8:()=>Le,qs:()=>W,qx:()=>F,sl:()=>Ne,u1:()=>P,wA:()=>Te,x3:()=>H,z6:()=>Pe,zf:()=>T});var i=o(12240),n=o(67299),r=o(21935),s=o(84340),a=o(29744),l=o(65994).process;function p(...e){return e.reduce(((e,t)=>({...e,...null!=t?t:{}})),{})}async function u(e,t){if(null==e)return Promise.resolve();const o=null==t?void 0:t.abortSignal;return new Promise(((t,i)=>{if(null==o?void 0:o.aborted)return void i(c());const n=setTimeout((()=>{r(),t()}),e),r=()=>{clearTimeout(n),null==o||o.removeEventListener("abort",s)},s=()=>{r(),i(c())};null==o||o.addEventListener("abort",s)}))}function c(){return new DOMException("Delay was aborted","AbortError")}var d=class{constructor(){this.status={type:"pending"},this._resolve=void 0,this._reject=void 0}get promise(){return this._promise||(this._promise=new Promise(((e,t)=>{"resolved"===this.status.type?e(this.status.value):"rejected"===this.status.type&&t(this.status.error),this._resolve=e,this._reject=t}))),this._promise}resolve(e){var t;this.status={type:"resolved",value:e},this._promise&&(null==(t=this._resolve)||t.call(this,e))}reject(e){var t;this.status={type:"rejected",error:e},this._promise&&(null==(t=this._reject)||t.call(this,e))}isResolved(){return"resolved"===this.status.type}isRejected(){return"rejected"===this.status.type}isPending(){return"pending"===this.status.type}};function h(e){return Object.fromEntries([...e.headers])}var{btoa:f,atob:g}=globalThis;function m(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),o=g(t);return Uint8Array.from(o,(e=>e.codePointAt(0)))}function y(e){let t="";for(let o=0;o<e.length;o++)t+=String.fromCodePoint(e[o]);return f(t)}var v,C,w="AI_DownloadError",E=`vercel.ai.error.${w}`,_=Symbol.for(E),b=class extends(C=i.bD,v=_,C){constructor({url:e,statusCode:t,statusText:o,cause:i,message:n=(null==i?`Failed to download ${e}: ${t} ${o}`:`Failed to download ${e}: ${i}`)}){super({name:w,message:n,cause:i}),this[v]=!0,this.url=e,this.statusCode=t,this.statusText=o}static isInstance(e){return i.bD.hasMarker(e,E)}},R=2147483648;async function O({response:e,url:t,maxBytes:o=R}){const i=e.headers.get("content-length");if(null!=i){const e=parseInt(i,10);if(!isNaN(e)&&e>o)throw new b({url:t,message:`Download of ${t} exceeded maximum size of ${o} bytes (Content-Length: ${e}).`})}const n=e.body;if(null==n)return new Uint8Array(0);const r=n.getReader(),s=[];let a=0;try{for(;;){const{done:e,value:i}=await r.read();if(e)break;if(a+=i.length,a>o)throw new b({url:t,message:`Download of ${t} exceeded maximum size of ${o} bytes.`});s.push(i)}}finally{try{await r.cancel()}finally{r.releaseLock()}}const l=new Uint8Array(a);let p=0;for(const e of s)l.set(e,p),p+=e.length;return l}var S=({prefix:e,size:t=16,alphabet:o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:n="-"}={})=>{const r=()=>{const e=o.length,i=new Array(t);for(let n=0;n<t;n++)i[n]=o[Math.random()*e|0];return i.join("")};if(null==e)return r;if(o.includes(n))throw new i.Di({argument:"separator",message:`The separator "${n}" must not be part of the alphabet "${o}".`});return()=>`${e}${n}${r()}`},A=S();function P(e){return null==e?"unknown error":"string"==typeof e?e:e instanceof Error?e.message:JSON.stringify(e)}function T(e){return(e instanceof Error||e instanceof DOMException)&&("AbortError"===e.name||"ResponseAborted"===e.name||"TimeoutError"===e.name)}var D=["fetch failed","failed to fetch"],N=["ConnectionRefused","ConnectionClosed","FailedToOpenSocket","ECONNRESET","ECONNREFUSED","ETIMEDOUT","EPIPE"];function x({error:e,url:t,requestBodyValues:o}){if(T(e))return e;if(e instanceof TypeError&&D.includes(e.message.toLowerCase())){const n=e.cause;if(null!=n)return new i.hL({message:`Cannot connect to API: ${n.message}`,cause:n,url:t,requestBodyValues:o,isRetryable:!0})}return function(e){if(!(e instanceof Error))return!1;const t=e.code;return!("string"!=typeof t||!N.includes(t))}(e)?new i.hL({message:`Cannot connect to API: ${e.message}`,cause:e,url:t,requestBodyValues:o,isRetryable:!0}):e}function I(e=globalThis){var t,o,i;return e.window?"runtime/browser":(null==(t=e.navigator)?void 0:t.userAgent)?`runtime/${e.navigator.userAgent.toLowerCase()}`:(null==(i=null==(o=e.process)?void 0:o.versions)?void 0:i.node)?`runtime/node.js/${e.process.version.substring(0)}`:e.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function F(e){if(null==e)return{};const t={};if(e instanceof Headers)e.forEach(((e,o)=>{t[o.toLowerCase()]=e}));else{Array.isArray(e)||(e=Object.entries(e));for(const[o,i]of e)null!=i&&(t[o.toLowerCase()]=i)}return t}function L(e,...t){const o=new Headers(F(e)),i=o.get("user-agent")||"";return o.set("user-agent",[i,...t].filter(Boolean).join(" ")),Object.fromEntries(o.entries())}var k="4.0.15",M=()=>globalThis.fetch,G=async({url:e,headers:t={},successfulResponseHandler:o,failedResponseHandler:n,abortSignal:r,fetch:s=M()})=>{try{const a=await s(e,{method:"GET",headers:L(t,`ai-sdk/provider-utils/${k}`,I()),signal:r}),l=h(a);if(!a.ok){let t;try{t=await n({response:a,url:e,requestBodyValues:{}})}catch(t){if(T(t)||i.hL.isInstance(t))throw t;throw new i.hL({message:"Failed to process error response",cause:t,statusCode:a.status,url:e,responseHeaders:l,requestBodyValues:{}})}throw t.value}try{return await o({response:a,url:e,requestBodyValues:{}})}catch(t){if(t instanceof Error&&(T(t)||i.hL.isInstance(t)))throw t;throw new i.hL({message:"Failed to process successful response",cause:t,statusCode:a.status,url:e,responseHeaders:l,requestBodyValues:{}})}}catch(t){throw x({error:t,url:e,requestBodyValues:{}})}};function V(e){return null!=e}function W({mediaType:e,url:t,supportedUrls:o}){return t=t.toLowerCase(),e=e.toLowerCase(),Object.entries(o).map((([e,t])=>{const o=e.toLowerCase();return"*"===o||"*/*"===o?{mediaTypePrefix:"",regexes:t}:{mediaTypePrefix:o.replace(/\*/,""),regexes:t}})).filter((({mediaTypePrefix:t})=>e.startsWith(t))).flatMap((({regexes:e})=>e)).some((e=>e.test(t)))}function H({settingValue:e,environmentVariableName:t}){return"string"==typeof e||null==e&&void 0!==l&&null!=(e=l.env[t])&&"string"==typeof e?e:void 0}var j=/"__proto__"\s*:/,B=/"constructor"\s*:/;function U(e){const t=JSON.parse(e);return null===t||"object"!=typeof t||!1===j.test(e)&&!1===B.test(e)?t:function(e){let t=[e];for(;t.length;){const e=t;t=[];for(const o of e){if(Object.prototype.hasOwnProperty.call(o,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(o,"constructor")&&Object.prototype.hasOwnProperty.call(o.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(const e in o){const i=o[e];i&&"object"==typeof i&&t.push(i)}}}return e}(t)}function Y(e){const{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch(t){return U(e)}try{return U(e)}finally{Error.stackTraceLimit=t}}function z(e){if("object"===e.type||Array.isArray(e.type)&&e.type.includes("object")){e.additionalProperties=!1;const{properties:t}=e;if(null!=t)for(const e of Object.keys(t))t[e]=q(t[e])}null!=e.items&&(e.items=Array.isArray(e.items)?e.items.map(q):q(e.items)),null!=e.anyOf&&(e.anyOf=e.anyOf.map(q)),null!=e.allOf&&(e.allOf=e.allOf.map(q)),null!=e.oneOf&&(e.oneOf=e.oneOf.map(q));const{definitions:t}=e;if(null!=t)for(const e of Object.keys(t))t[e]=q(t[e]);return e}function q(e){return"boolean"==typeof e?e:z(e)}var K=Symbol("Let zodToJsonSchema decide on which parser to use"),$={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"};function Z(e,t){return de(e.type._def,t)}function Q(e,t,o){const i=null!=o?o:t.dateStrategy;if(Array.isArray(i))return{anyOf:i.map(((o,i)=>Q(e,t,o)))};switch(i){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return X(e)}}var X=e=>{const t={type:"integer",format:"unix-time"};for(const o of e.checks)switch(o.kind){case"min":t.minimum=o.value;break;case"max":t.maximum=o.value}return t},J=void 0,ee={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(void 0===J&&(J=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),J),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function te(e,t){const o={type:"string"};if(e.checks)for(const i of e.checks)switch(i.kind){case"min":o.minLength="number"==typeof o.minLength?Math.max(o.minLength,i.value):i.value;break;case"max":o.maxLength="number"==typeof o.maxLength?Math.min(o.maxLength,i.value):i.value;break;case"email":switch(t.emailStrategy){case"format:email":ne(o,"email",i.message,t);break;case"format:idn-email":ne(o,"idn-email",i.message,t);break;case"pattern:zod":re(o,ee.email,i.message,t)}break;case"url":ne(o,"uri",i.message,t);break;case"uuid":ne(o,"uuid",i.message,t);break;case"regex":re(o,i.regex,i.message,t);break;case"cuid":re(o,ee.cuid,i.message,t);break;case"cuid2":re(o,ee.cuid2,i.message,t);break;case"startsWith":re(o,RegExp(`^${oe(i.value,t)}`),i.message,t);break;case"endsWith":re(o,RegExp(`${oe(i.value,t)}$`),i.message,t);break;case"datetime":ne(o,"date-time",i.message,t);break;case"date":ne(o,"date",i.message,t);break;case"time":ne(o,"time",i.message,t);break;case"duration":ne(o,"duration",i.message,t);break;case"length":o.minLength="number"==typeof o.minLength?Math.max(o.minLength,i.value):i.value,o.maxLength="number"==typeof o.maxLength?Math.min(o.maxLength,i.value):i.value;break;case"includes":re(o,RegExp(oe(i.value,t)),i.message,t);break;case"ip":"v6"!==i.version&&ne(o,"ipv4",i.message,t),"v4"!==i.version&&ne(o,"ipv6",i.message,t);break;case"base64url":re(o,ee.base64url,i.message,t);break;case"jwt":re(o,ee.jwt,i.message,t);break;case"cidr":"v6"!==i.version&&re(o,ee.ipv4Cidr,i.message,t),"v4"!==i.version&&re(o,ee.ipv6Cidr,i.message,t);break;case"emoji":re(o,ee.emoji(),i.message,t);break;case"ulid":re(o,ee.ulid,i.message,t);break;case"base64":switch(t.base64Strategy){case"format:binary":ne(o,"binary",i.message,t);break;case"contentEncoding:base64":o.contentEncoding="base64";break;case"pattern:zod":re(o,ee.base64,i.message,t)}break;case"nanoid":re(o,ee.nanoid,i.message,t)}return o}function oe(e,t){return"escape"===t.patternStrategy?function(e){let t="";for(let o=0;o<e.length;o++)ie.has(e[o])||(t+="\\"),t+=e[o];return t}(e):e}var ie=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function ne(e,t,o,i){var n;e.format||(null==(n=e.anyOf)?void 0:n.some((e=>e.format)))?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push({format:t,...o&&i.errorMessages&&{errorMessage:{format:o}}})):e.format=t}function re(e,t,o,i){var n;e.pattern||(null==(n=e.allOf)?void 0:n.some((e=>e.pattern)))?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push({pattern:se(t,i),...o&&i.errorMessages&&{errorMessage:{pattern:o}}})):e.pattern=se(t,i)}function se(e,t){var o;if(!t.applyRegexFlags||!e.flags)return e.source;const i=e.flags.includes("i"),n=e.flags.includes("m"),r=e.flags.includes("s"),s=i?e.source.toLowerCase():e.source;let a="",l=!1,p=!1,u=!1;for(let e=0;e<s.length;e++)if(l)a+=s[e],l=!1;else{if(i)if(p){if(s[e].match(/[a-z]/)){u?(a+=s[e],a+=`${s[e-2]}-${s[e]}`.toUpperCase(),u=!1):"-"===s[e+1]&&(null==(o=s[e+2])?void 0:o.match(/[a-z]/))?(a+=s[e],u=!0):a+=`${s[e]}${s[e].toUpperCase()}`;continue}}else if(s[e].match(/[a-z]/)){a+=`[${s[e]}${s[e].toUpperCase()}]`;continue}if(n){if("^"===s[e]){a+="(^|(?<=[\r\n]))";continue}if("$"===s[e]){a+="($|(?=[\r\n]))";continue}}r&&"."===s[e]?a+=p?`${s[e]}\r\n`:`[${s[e]}\r\n]`:(a+=s[e],"\\"===s[e]?l=!0:p&&"]"===s[e]?p=!1:p||"["!==s[e]||(p=!0))}try{new RegExp(a)}catch(o){return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return a}function ae(e,t){var o,i,n,r,a,l;const p={type:"object",additionalProperties:null!=(o=de(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))?o:t.allowedAdditionalProperties};if((null==(i=e.keyType)?void 0:i._def.typeName)===s.kY.ZodString&&(null==(n=e.keyType._def.checks)?void 0:n.length)){const{type:o,...i}=te(e.keyType._def,t);return{...p,propertyNames:i}}if((null==(r=e.keyType)?void 0:r._def.typeName)===s.kY.ZodEnum)return{...p,propertyNames:{enum:e.keyType._def.values}};if((null==(a=e.keyType)?void 0:a._def.typeName)===s.kY.ZodBranded&&e.keyType._def.type._def.typeName===s.kY.ZodString&&(null==(l=e.keyType._def.type._def.checks)?void 0:l.length)){const{type:o,...i}=Z(e.keyType._def,t);return{...p,propertyNames:i}}return p}var le={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function pe(e){try{return e.isOptional()}catch(e){return!0}}var ue=(e,t,o)=>{switch(t){case s.kY.ZodString:return te(e,o);case s.kY.ZodNumber:return function(e){const t={type:"number"};if(!e.checks)return t;for(const o of e.checks)switch(o.kind){case"int":t.type="integer";break;case"min":o.inclusive?t.minimum=o.value:t.exclusiveMinimum=o.value;break;case"max":o.inclusive?t.maximum=o.value:t.exclusiveMaximum=o.value;break;case"multipleOf":t.multipleOf=o.value}return t}(e);case s.kY.ZodObject:return function(e,t){const o={type:"object",properties:{}},i=[],n=e.shape();for(const e in n){let r=n[e];if(void 0===r||void 0===r._def)continue;const s=pe(r),a=de(r._def,{...t,currentPath:[...t.currentPath,"properties",e],propertyPath:[...t.currentPath,"properties",e]});void 0!==a&&(o.properties[e]=a,s||i.push(e))}i.length&&(o.required=i);const r=function(e,t){if("ZodNever"!==e.catchall._def.typeName)return de(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return"strict"===t.removeAdditionalStrategy?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}(e,t);return void 0!==r&&(o.additionalProperties=r),o}(e,o);case s.kY.ZodBigInt:return function(e){const t={type:"integer",format:"int64"};if(!e.checks)return t;for(const o of e.checks)switch(o.kind){case"min":o.inclusive?t.minimum=o.value:t.exclusiveMinimum=o.value;break;case"max":o.inclusive?t.maximum=o.value:t.exclusiveMaximum=o.value;break;case"multipleOf":t.multipleOf=o.value}return t}(e);case s.kY.ZodBoolean:return{type:"boolean"};case s.kY.ZodDate:return Q(e,o);case s.kY.ZodUndefined:return{not:{}};case s.kY.ZodNull:return{type:"null"};case s.kY.ZodArray:return function(e,t){var o,i,n;const r={type:"array"};return(null==(o=e.type)?void 0:o._def)&&(null==(n=null==(i=e.type)?void 0:i._def)?void 0:n.typeName)!==s.kY.ZodAny&&(r.items=de(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&(r.minItems=e.minLength.value),e.maxLength&&(r.maxItems=e.maxLength.value),e.exactLength&&(r.minItems=e.exactLength.value,r.maxItems=e.exactLength.value),r}(e,o);case s.kY.ZodUnion:case s.kY.ZodDiscriminatedUnion:return function(e,t){const o=e.options instanceof Map?Array.from(e.options.values()):e.options;if(o.every((e=>e._def.typeName in le&&(!e._def.checks||!e._def.checks.length)))){const e=o.reduce(((e,t)=>{const o=le[t._def.typeName];return o&&!e.includes(o)?[...e,o]:e}),[]);return{type:e.length>1?e:e[0]}}if(o.every((e=>"ZodLiteral"===e._def.typeName&&!e.description))){const e=o.reduce(((e,t)=>{const o=typeof t._def.value;switch(o){case"string":case"number":case"boolean":return[...e,o];case"bigint":return[...e,"integer"];case"object":if(null===t._def.value)return[...e,"null"];default:return e}}),[]);if(e.length===o.length){const t=e.filter(((e,t,o)=>o.indexOf(e)===t));return{type:t.length>1?t:t[0],enum:o.reduce(((e,t)=>e.includes(t._def.value)?e:[...e,t._def.value]),[])}}}else if(o.every((e=>"ZodEnum"===e._def.typeName)))return{type:"string",enum:o.reduce(((e,t)=>[...e,...t._def.values.filter((t=>!e.includes(t)))]),[])};return((e,t)=>{const o=(e.options instanceof Map?Array.from(e.options.values()):e.options).map(((e,o)=>de(e._def,{...t,currentPath:[...t.currentPath,"anyOf",`${o}`]}))).filter((e=>!!e&&(!t.strictUnions||"object"==typeof e&&Object.keys(e).length>0)));return o.length?{anyOf:o}:void 0})(e,t)}(e,o);case s.kY.ZodIntersection:return function(e,t){const o=[de(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),de(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter((e=>!!e)),i=[];return o.forEach((e=>{if("type"in(t=e)&&"string"===t.type||!("allOf"in t)){let t=e;if("additionalProperties"in e&&!1===e.additionalProperties){const{additionalProperties:o,...i}=e;t=i}i.push(t)}else i.push(...e.allOf);var t})),i.length?{allOf:i}:void 0}(e,o);case s.kY.ZodTuple:return function(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map(((e,o)=>de(e._def,{...t,currentPath:[...t.currentPath,"items",`${o}`]}))).reduce(((e,t)=>void 0===t?e:[...e,t]),[]),additionalItems:de(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map(((e,o)=>de(e._def,{...t,currentPath:[...t.currentPath,"items",`${o}`]}))).reduce(((e,t)=>void 0===t?e:[...e,t]),[])}}(e,o);case s.kY.ZodRecord:return ae(e,o);case s.kY.ZodLiteral:return function(e){const t=typeof e.value;return"bigint"!==t&&"number"!==t&&"boolean"!==t&&"string"!==t?{type:Array.isArray(e.value)?"array":"object"}:{type:"bigint"===t?"integer":t,const:e.value}}(e);case s.kY.ZodEnum:return function(e){return{type:"string",enum:Array.from(e.values)}}(e);case s.kY.ZodNativeEnum:return function(e){const t=e.values,o=Object.keys(e.values).filter((e=>"number"!=typeof t[t[e]])).map((e=>t[e])),i=Array.from(new Set(o.map((e=>typeof e))));return{type:1===i.length?"string"===i[0]?"string":"number":["string","number"],enum:o}}(e);case s.kY.ZodNullable:return function(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[le[e.innerType._def.typeName],"null"]};const o=de(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return o&&{anyOf:[o,{type:"null"}]}}(e,o);case s.kY.ZodOptional:return((e,t)=>{var o;if(t.currentPath.toString()===(null==(o=t.propertyPath)?void 0:o.toString()))return de(e.innerType._def,t);const i=de(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return i?{anyOf:[{not:{}},i]}:{}})(e,o);case s.kY.ZodMap:return function(e,t){return"record"===t.mapStrategy?ae(e,t):{type:"array",maxItems:125,items:{type:"array",items:[de(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||{},de(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||{}],minItems:2,maxItems:2}}}(e,o);case s.kY.ZodSet:return function(e,t){const o={type:"array",uniqueItems:!0,items:de(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&(o.minItems=e.minSize.value),e.maxSize&&(o.maxItems=e.maxSize.value),o}(e,o);case s.kY.ZodLazy:return()=>e.getter()._def;case s.kY.ZodPromise:return function(e,t){return de(e.type._def,t)}(e,o);case s.kY.ZodNaN:case s.kY.ZodNever:return{not:{}};case s.kY.ZodEffects:return function(e,t){return"input"===t.effectStrategy?de(e.schema._def,t):{}}(e,o);case s.kY.ZodAny:case s.kY.ZodUnknown:return{};case s.kY.ZodDefault:return function(e,t){return{...de(e.innerType._def,t),default:e.defaultValue()}}(e,o);case s.kY.ZodBranded:return Z(e,o);case s.kY.ZodReadonly:case s.kY.ZodCatch:return((e,t)=>de(e.innerType._def,t))(e,o);case s.kY.ZodPipeline:return((e,t)=>{if("input"===t.pipeStrategy)return de(e.in._def,t);if("output"===t.pipeStrategy)return de(e.out._def,t);const o=de(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]});return{allOf:[o,de(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",o?"1":"0"]})].filter((e=>void 0!==e))}})(e,o);case s.kY.ZodFunction:case s.kY.ZodVoid:case s.kY.ZodSymbol:default:return}},ce=(e,t)=>{let o=0;for(;o<e.length&&o<t.length&&e[o]===t[o];o++);return[(e.length-o).toString(),...t.slice(o)].join("/")};function de(e,t,o=!1){var i;const n=t.seen.get(e);if(t.override){const r=null==(i=t.override)?void 0:i.call(t,e,t,n,o);if(r!==K)return r}if(n&&!o){const e=he(n,t);if(void 0!==e)return e}const r={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,r);const s=ue(e,e.typeName,t),a="function"==typeof s?de(s(),t):s;if(a&&fe(e,t,a),t.postProcess){const o=t.postProcess(a,e,t);return r.jsonSchema=a,o}return r.jsonSchema=a,a}var he=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:ce(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every(((e,o)=>t.currentPath[o]===e))?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),{}):"seen"===t.$refStrategy?{}:void 0}},fe=(e,t,o)=>(e.description&&(o.description=e.description),o),ge=(e,t)=>{var o;const i=(e=>{const t=(e=>"string"==typeof e?{...$,name:e}:{...$,...e})(e),o=void 0!==t.name?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,currentPath:o,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map((([e,o])=>[o._def,{def:o._def,path:[...t.basePath,t.definitionPath,e],jsonSchema:void 0}])))}})(t);let n="object"==typeof t&&t.definitions?Object.entries(t.definitions).reduce(((e,[t,o])=>{var n;return{...e,[t]:null!=(n=de(o._def,{...i,currentPath:[...i.basePath,i.definitionPath,t]},!0))?n:{}}}),{}):void 0;const r="string"==typeof t?t:"title"===(null==t?void 0:t.nameStrategy)||null==t?void 0:t.name,s=null!=(o=de(e._def,void 0===r?i:{...i,currentPath:[...i.basePath,i.definitionPath,r]},!1))?o:{},a="object"==typeof t&&void 0!==t.name&&"title"===t.nameStrategy?t.name:void 0;void 0!==a&&(s.title=a);const l=void 0===r?n?{...s,[i.definitionPath]:n}:s:{$ref:[..."relative"===i.$refStrategy?[]:i.basePath,i.definitionPath,r].join("/"),[i.definitionPath]:{...n,[r]:s}};return l.$schema="http://json-schema.org/draft-07/schema#",l},me=Symbol.for("vercel.ai.schema");function ye(e){let t;return()=>(null==t&&(t=e()),t)}function ve(e,{validate:t}={}){return{[me]:!0,_type:void 0,get jsonSchema(){return"function"==typeof e&&(e=e()),e},validate:t}}function Ce(e){return null==e?ve({properties:{},additionalProperties:!1}):"object"==typeof(o=e)&&null!==o&&me in o&&!0===o[me]&&"jsonSchema"in o&&"validate"in o?e:"~standard"in e?"zod"===e["~standard"].vendor?we(e):(t=e,ve((()=>z(t["~standard"].jsonSchema.input({target:"draft-07"}))),{validate:async e=>{const o=await t["~standard"].validate(e);return"value"in o?{success:!0,value:o.value}:{success:!1,error:new i.iM({value:e,cause:o.issues})}}})):e();var t,o}function we(e,t){return function(e){return"_zod"in e}(e)?function(e,t){var o;const i=null!=(o=null==t?void 0:t.useReferences)&&o;return ve((()=>z(r.b(e,{target:"draft-7",io:"input",reused:i?"ref":"inline"}))),{validate:async t=>{const o=await n.bp(e,t);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}(e,t):function(e,t){var o;const i=null!=(o=null==t?void 0:t.useReferences)&&o;return ve((()=>ge(e,{$refStrategy:i?"root":"none"})),{validate:async t=>{const o=await e.safeParseAsync(t);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}(e,t)}async function Ee({value:e,schema:t,context:o}){const n=await _e({value:e,schema:t,context:o});if(!n.success)throw i.iM.wrap({value:e,cause:n.error,context:o});return n.value}async function _e({value:e,schema:t,context:o}){const n=Ce(t);try{if(null==n.validate)return{success:!0,value:e,rawValue:e};const t=await n.validate(e);return t.success?{success:!0,value:t.value,rawValue:e}:{success:!1,error:i.iM.wrap({value:e,cause:t.error,context:o}),rawValue:e}}catch(t){return{success:!1,error:i.iM.wrap({value:e,cause:t,context:o}),rawValue:e}}}async function be({text:e,schema:t}){try{const o=Y(e);return null==t?{success:!0,value:o,rawValue:o}:await _e({value:o,schema:t})}catch(t){return{success:!1,error:i.u6.isInstance(t)?t:new i.u6({text:e,cause:t}),rawValue:void 0}}}function Re({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new a.Z).pipeThrough(new TransformStream({async transform({data:e},o){"[DONE]"!==e&&o.enqueue(await be({text:e,schema:t}))}}))}var Oe=()=>globalThis.fetch,Se=async({url:e,headers:t,body:o,failedResponseHandler:i,successfulResponseHandler:n,abortSignal:r,fetch:s})=>Ae({url:e,headers:{"Content-Type":"application/json",...t},body:{content:JSON.stringify(o),values:o},failedResponseHandler:i,successfulResponseHandler:n,abortSignal:r,fetch:s}),Ae=async({url:e,headers:t={},body:o,successfulResponseHandler:n,failedResponseHandler:r,abortSignal:s,fetch:a=Oe()})=>{try{const l=await a(e,{method:"POST",headers:L(t,`ai-sdk/provider-utils/${k}`,I()),body:o.content,signal:s}),p=h(l);if(!l.ok){let t;try{t=await r({response:l,url:e,requestBodyValues:o.values})}catch(t){if(T(t)||i.hL.isInstance(t))throw t;throw new i.hL({message:"Failed to process error response",cause:t,statusCode:l.status,url:e,responseHeaders:p,requestBodyValues:o.values})}throw t.value}try{return await n({response:l,url:e,requestBodyValues:o.values})}catch(t){if(t instanceof Error&&(T(t)||i.hL.isInstance(t)))throw t;throw new i.hL({message:"Failed to process successful response",cause:t,statusCode:l.status,url:e,responseHeaders:p,requestBodyValues:o.values})}}catch(t){throw x({error:t,url:e,requestBodyValues:o.values})}};function Pe(e){return e}function Te({id:e,inputSchema:t,outputSchema:o,supportsDeferredResults:i}){return({execute:n,needsApproval:r,toModelOutput:s,onInputStart:a,onInputDelta:l,onInputAvailable:p,...u})=>({type:"provider",id:e,args:u,inputSchema:t,outputSchema:o,execute:n,needsApproval:r,toModelOutput:s,onInputStart:a,onInputDelta:l,onInputAvailable:p,supportsDeferredResults:i})}async function De(e){return"function"==typeof e&&(e=e()),Promise.resolve(e)}var Ne=({errorSchema:e,errorToMessage:t,isRetryable:o})=>async({response:n,url:r,requestBodyValues:s})=>{const a=await n.text(),l=h(n);if(""===a.trim())return{responseHeaders:l,value:new i.hL({message:n.statusText,url:r,requestBodyValues:s,statusCode:n.status,responseHeaders:l,responseBody:a,isRetryable:null==o?void 0:o(n)})};try{const p=await async function({text:e,schema:t}){try{const o=Y(e);return null==t?o:Ee({value:o,schema:t})}catch(t){if(i.u6.isInstance(t)||i.iM.isInstance(t))throw t;throw new i.u6({text:e,cause:t})}}({text:a,schema:e});return{responseHeaders:l,value:new i.hL({message:t(p),url:r,requestBodyValues:s,statusCode:n.status,responseHeaders:l,responseBody:a,data:p,isRetryable:null==o?void 0:o(n,p)})}}catch(e){return{responseHeaders:l,value:new i.hL({message:n.statusText,url:r,requestBodyValues:s,statusCode:n.status,responseHeaders:l,responseBody:a,isRetryable:null==o?void 0:o(n)})}}},xe=e=>async({response:t})=>{const o=h(t);if(null==t.body)throw new i.Tt({});return{responseHeaders:o,value:Re({stream:t.body,schema:e})}},Ie=e=>async({response:t,url:o,requestBodyValues:n})=>{const r=await t.text(),s=await be({text:r,schema:e}),a=h(t);if(!s.success)throw new i.hL({message:"Invalid JSON response",cause:s.error,statusCode:t.status,responseHeaders:a,responseBody:r,url:o,requestBodyValues:n});return{responseHeaders:a,value:s.value,rawValue:s.rawValue}};function Fe(e){return null==e?void 0:e.replace(/\/$/,"")}async function*Le({execute:e,input:t,options:o}){const i=e(t,o);if(null!=(n=i)&&"function"==typeof n[Symbol.asyncIterator]){let e;for await(const t of i)e=t,yield{type:"preliminary",output:t};yield{type:"final",output:e}}else yield{type:"final",output:await i};var n}},39984:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(73575),a=o(85910),l=o(44081),p=o(44871),u=o(40797),c=o(83423),d=function(){function e(){this.DEFAULT_HIDE_TOOLTIP_TIMEOUT=1e4,this.MOUSEOUT_HIDE_TOOLTIP_TIMEOUT=1e3,this.MOUSEOVER_SHOW_TOOLTIP_TIMEOUT=2e3,this.HIDE_SHOW_ONLY=!0,this.showTimeoutId=0,this.hideTimeoutId=0,this.registeredComponents={}}return e.prototype.registerTooltip=function(e){var t=this,o=e.getGui(),i=e.getCompId();e.addDestroyableEventListener(o,"mouseover",(function(o){return t.processMouseOver(o,e)})),e.addDestroyableEventListener(o,"mousemove",(function(e){return t.processMouseMove(e)})),e.addDestroyableEventListener(o,"mousedown",this.hideTooltip.bind(this)),e.addDestroyableEventListener(o,"mouseout",this.processMouseOut.bind(this)),this.registeredComponents[i]={tooltipComp:void 0,destroyFunc:void 0},e.addDestroyFunc((function(){return t.unregisterTooltip(e)}))},e.prototype.unregisterTooltip=function(e){var t=e.getCompId();this.activeComponent===e&&this.hideTooltip(),delete this.registeredComponents[t]},e.prototype.processMouseOver=function(e,t){var o=this.MOUSEOVER_SHOW_TOOLTIP_TIMEOUT;if(this.activeComponent){if(this.lastHoveredComponent===this.activeComponent)return;o=200}else if(this.showTimeoutId&&this.lastHoveredComponent===t)return;this.clearTimers(this.HIDE_SHOW_ONLY),this.lastHoveredComponent!==t&&(this.lastHoveredComponent=t,this.lastMouseEvent=e,this.showTimeoutId=window.setTimeout(this.showTooltip.bind(this),o,e))},e.prototype.processMouseOut=function(e){var t=this.activeComponent,o=e.relatedTarget;if(t){if(!t.getGui().contains(o)){var i=this.registeredComponents[t.getCompId()];c._.addCssClass(i.tooltipComp.getGui(),"ag-tooltip-hiding"),this.lastHoveredComponent=void 0,this.clearTimers(),this.hideTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.MOUSEOUT_HIDE_TOOLTIP_TIMEOUT)}}else{if(this.lastHoveredComponent){var n=this.lastHoveredComponent.getGui().contains(o);if(this.showTimeoutId&&n)return;n||(this.lastHoveredComponent=void 0)}this.clearTimers()}},e.prototype.processMouseMove=function(e){this.lastMouseEvent=e},e.prototype.showTooltip=function(e){var t=this.lastHoveredComponent,o=t,i=this.registeredComponents[t.getCompId()];this.hideTooltip();var n={api:this.gridApi,columnApi:this.columnApi,colDef:t.getComponentHolder(),column:o.getColumn&&o.getColumn(),context:this.gridOptionsWrapper.getContext(),rowIndex:o.getGridCell&&o.getGridCell().rowIndex,value:t.getTooltipText()};this.createTooltipComponent(n,i,e)},e.prototype.createTooltipComponent=function(e,t,o){var i=this;this.userComponentFactory.newTooltipComponent(e).then((function(e){if(t){t.tooltipComp=e;var o=e.getGui(),n=i.popupService.addPopup(!1,o,!1);t.destroyFunc=function(){n(),e.destroy&&e.destroy()},i.popupService.positionPopupUnderMouseEvent({type:"tooltip",mouseEvent:i.lastMouseEvent,ePopup:o,nudgeY:18}),i.activeComponent=i.lastHoveredComponent,i.hideTimeoutId=window.setTimeout(i.hideTooltip.bind(i),i.DEFAULT_HIDE_TOOLTIP_TIMEOUT)}}))},e.prototype.hideTooltip=function(){var e=this.activeComponent;if(this.clearTimers(),e){var t=e.getCompId(),o=this.registeredComponents[t];this.activeComponent=void 0,o&&(o.destroyFunc&&o.destroyFunc(),this.clearRegisteredComponent(o))}},e.prototype.clearRegisteredComponent=function(e){delete e.destroyFunc,delete e.tooltipComp},e.prototype.clearTimers=function(e){void 0===e&&(e=!1),this.hideTimeoutId&&!e&&(window.clearTimeout(this.hideTimeoutId),this.hideTimeoutId=0),this.showTimeoutId&&(window.clearTimeout(this.showTimeoutId),this.showTimeoutId=0)},i([r.Autowired("popupService"),n("design:type",s.PopupService)],e.prototype,"popupService",void 0),i([r.Autowired("userComponentFactory"),n("design:type",a.UserComponentFactory)],e.prototype,"userComponentFactory",void 0),i([r.Autowired("columnApi"),n("design:type",p.ColumnApi)],e.prototype,"columnApi",void 0),i([r.Autowired("gridApi"),n("design:type",u.GridApi)],e.prototype,"gridApi",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Bean("tooltipManager")],e)}();t.TooltipManager=d},40030:(e,t,o)=>{var i=o(65994).process;Object.defineProperty(t,"__esModule",{value:!0}),t.signals=void 0,t.signals=[],t.signals.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==i.platform&&t.signals.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===i.platform&&t.signals.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT")},40634:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(37132),a=o(72493),l=o(72493),p=function(){function e(){this.expressionToFunctionCache={}}return e.prototype.setBeans=function(e){this.logger=e.create("ExpressionService")},e.prototype.evaluate=function(e,t){if("function"==typeof e)return e(t);if("string"==typeof e){var o=e;return this.evaluateExpression(o,t)}console.error("ag-Grid: value should be either a string or a function",e)},e.prototype.evaluateExpression=function(e,t){try{return this.createExpressionFunction(e)(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.columnApi,t.getValue,t.column,t.columnGroup)}catch(t){return console.log("Processing of the expression failed"),console.log("Expression = "+e),console.log("Exception = "+t),null}},e.prototype.createExpressionFunction=function(e){if(this.expressionToFunctionCache[e])return this.expressionToFunctionCache[e];var t=this.createFunctionBody(e),o=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",t);return this.expressionToFunctionCache[e]=o,o},e.prototype.createFunctionBody=function(e){return e.indexOf("return")>=0?e:"return "+e+";"},i([r(0,l.Qualifier("loggerFactory")),n("design:type",Function),n("design:paramtypes",[s.LoggerFactory]),n("design:returntype",void 0)],e.prototype,"setBeans",null),i([a.Bean("expressionService")],e)}();t.ExpressionService=p},40706:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(44081),s=o(72493),a=o(58342),l=o(98239),p=o(60843),u=o(63405),c=o(15774),d=o(69992),h=o(26016),f=o(13887),g=o(83423),m=function(){function e(e,t,o){this.headerRowComps=[],this.eContainer=e,this.pinned=o,this.eViewport=t}return e.prototype.registerGridComp=function(e){this.setupDragAndDrop(e)},e.prototype.forEachHeaderElement=function(e){this.headerRowComps.forEach((function(t){return t.forEachHeaderElement(e)}))},e.prototype.init=function(){this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.eventService.addEventListener(u.Events.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.eventService.addEventListener(u.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.eventService.addEventListener(u.Events.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.eventService.addEventListener(u.Events.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.eventService.addEventListener(u.Events.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.eventService.addEventListener(u.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this))},e.prototype.onColumnRowGroupChanged=function(){this.onGridColumnsChanged()},e.prototype.onColumnValueChanged=function(){this.onGridColumnsChanged()},e.prototype.onColumnResized=function(){this.setWidthOfPinnedContainer()},e.prototype.onDisplayedColumnsChanged=function(){this.setWidthOfPinnedContainer()},e.prototype.onScrollVisibilityChanged=function(){this.setWidthOfPinnedContainer()},e.prototype.setWidthOfPinnedContainer=function(){var e=this.pinned===h.Column.PINNED_LEFT,t=this.pinned===h.Column.PINNED_RIGHT,o=this.columnController,i=this.gridOptionsWrapper.isEnableRtl();if(e||t){var n=o[e?"getPinnedLeftContainerWidth":"getPinnedRightContainerWidth"]();this.scrollVisibleService.isVerticalScrollShowing()&&(i&&e||!i&&t)&&(n+=this.scrollWidth),g._.setFixedWidth(this.eContainer,n)}},e.prototype.destroy=function(){this.removeHeaderRowComps()},e.prototype.onGridColumnsChanged=function(){this.removeAndCreateAllRowComps()},e.prototype.removeAndCreateAllRowComps=function(){this.removeHeaderRowComps(),this.createHeaderRowComps()},e.prototype.refresh=function(){this.removeAndCreateAllRowComps()},e.prototype.setupDragAndDrop=function(e){var t=this.eViewport?this.eViewport:this.eContainer,o=new d.BodyDropTarget(this.pinned,t);this.context.wireBean(o),o.registerGridComp(e)},e.prototype.removeHeaderRowComps=function(){this.headerRowComps.forEach((function(e){e.destroy()})),this.headerRowComps.length=0,g._.clearElement(this.eContainer)},e.prototype.createHeaderRowComps=function(){for(var e=this.columnController.getHeaderRowCount(),t=0;t<e;t++){var o=t!==e-1?c.HeaderRowType.COLUMN_GROUP:c.HeaderRowType.COLUMN,i=new c.HeaderRowComp(t,o,this.pinned,this.dropTarget);this.context.wireBean(i),this.headerRowComps.push(i),this.eContainer.appendChild(i.getGui())}this.gridOptionsWrapper.isFloatingFilter()&&!this.columnController.isPivotMode()&&(i=new c.HeaderRowComp(e,c.HeaderRowType.FLOATING_FILTER,this.pinned,this.dropTarget),this.context.wireBean(i),this.headerRowComps.push(i),this.eContainer.appendChild(i.getGui()))},i([s.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Autowired("context"),n("design:type",s.Context)],e.prototype,"context",void 0),i([s.Autowired("$scope"),n("design:type",Object)],e.prototype,"$scope",void 0),i([s.Autowired("dragAndDropService"),n("design:type",a.DragAndDropService)],e.prototype,"dragAndDropService",void 0),i([s.Autowired("columnController"),n("design:type",l.ColumnController)],e.prototype,"columnController",void 0),i([s.Autowired("eventService"),n("design:type",p.EventService)],e.prototype,"eventService",void 0),i([s.Autowired("scrollVisibleService"),n("design:type",f.ScrollVisibleService)],e.prototype,"scrollVisibleService",void 0),i([s.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),e}();t.HeaderContainer=m},40797:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(43460),s=o(10042),a=o(55e3),l=o(98239),p=o(54828),u=o(44081),c=o(24463),d=o(60843),h=o(45727),f=o(72493),g=o(86608),m=o(42195),y=o(34782),v=o(34470),C=o(41451),w=o(76133),E=o(88842),_=o(10190),b=o(50580),R=o(69065),O=o(83423),S=function(){function e(){this.detailGridInfoMap={}}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.registerGridCore=function(e){this.gridCore=e},e.prototype.registerHeaderRootComp=function(e){this.headerRootComp=e},e.prototype.init=function(){switch(this.rowModel.getType()){case h.Constants.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case h.Constants.ROW_MODEL_TYPE_INFINITE:this.infinitePageRowModel=this.rowModel;break;case h.Constants.ROW_MODEL_TYPE_SERVER_SIDE:this.serverSideRowModel=this.rowModel}},e.prototype.__getAlignedGridService=function(){return this.alignedGridsService},e.prototype.addDetailGridInfo=function(e,t){this.detailGridInfoMap[e]=t},e.prototype.removeDetailGridInfo=function(e){this.detailGridInfoMap[e]=void 0},e.prototype.getDetailGridInfo=function(e){return this.detailGridInfoMap[e]},e.prototype.forEachDetailGridInfo=function(e){var t=0;O._.iterateObject(this.detailGridInfoMap,(function(o,i){O._.exists(i)&&(e(i,t),t++)}))},e.prototype.getDataAsCsv=function(e){return this.csvCreator.getDataAsCsv(e)},e.prototype.exportDataAsCsv=function(e){this.csvCreator.exportDataAsCsv(e)},e.prototype.getDataAsExcel=function(e){return this.excelCreator||console.warn("ag-Grid: Excel export is only available in ag-Grid Enterprise"),this.excelCreator.getDataAsExcelXml(e)},e.prototype.exportDataAsExcel=function(e){this.excelCreator||console.warn("ag-Grid: Excel export is only available in ag-Grid Enterprise"),this.excelCreator.exportDataAsExcel(e)},e.prototype.setEnterpriseDatasource=function(e){console.warn("ag-grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()"),this.setServerSideDatasource(e)},e.prototype.setServerSideDatasource=function(e){this.gridOptionsWrapper.isRowModelServerSide()?this.rowModel.setDatasource(e):console.warn("ag-Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '"+h.Constants.ROW_MODEL_TYPE_SERVER_SIDE+"'")},e.prototype.setDatasource=function(e){this.gridOptionsWrapper.isRowModelInfinite()?this.rowModel.setDatasource(e):console.warn("ag-Grid: you can only use a datasource when gridOptions.rowModelType is '"+h.Constants.ROW_MODEL_TYPE_INFINITE+"'")},e.prototype.setViewportDatasource=function(e){this.gridOptionsWrapper.isRowModelViewport()?this.rowModel.setViewportDatasource(e):console.warn("ag-Grid: you can only use a viewport datasource when gridOptions.rowModelType is '"+h.Constants.ROW_MODEL_TYPE_VIEWPORT+"'")},e.prototype.setRowData=function(e){if(this.gridOptionsWrapper.isRowModelDefault())if(this.gridOptionsWrapper.isDeltaRowDataMode()){var t=this.immutableService.createTransactionForRowData(e),o=t[0],i=t[1];this.clientSideRowModel.updateRowData(o,i),this.rowRenderer.refreshFullWidthRows()}else this.selectionController.reset(),this.clientSideRowModel.setRowData(e);else console.warn("cannot call setRowData unless using normal row model")},e.prototype.setFloatingTopRowData=function(e){console.warn("ag-Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()"),this.setPinnedTopRowData(e)},e.prototype.setFloatingBottomRowData=function(e){console.warn("ag-Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()"),this.setPinnedBottomRowData(e)},e.prototype.getFloatingTopRowCount=function(){return console.warn("ag-Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()"),this.getPinnedTopRowCount()},e.prototype.getFloatingBottomRowCount=function(){return console.warn("ag-Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()"),this.getPinnedBottomRowCount()},e.prototype.getFloatingTopRow=function(e){return console.warn("ag-Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()"),this.getPinnedTopRow(e)},e.prototype.getFloatingBottomRow=function(e){return console.warn("ag-Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()"),this.getPinnedBottomRow(e)},e.prototype.setPinnedTopRowData=function(e){this.pinnedRowModel.setPinnedTopRowData(e)},e.prototype.setPinnedBottomRowData=function(e){this.pinnedRowModel.setPinnedBottomRowData(e)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},e.prototype.getPinnedTopRow=function(e){return this.pinnedRowModel.getPinnedTopRow(e)},e.prototype.getPinnedBottomRow=function(e){return this.pinnedRowModel.getPinnedBottomRow(e)},e.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api"),this.columnController.setColumnDefs(e,t)},e.prototype.expireValueCache=function(){this.valueCache.expire()},e.prototype.getVerticalPixelRange=function(){return this.gridPanel.getVScrollPosition()},e.prototype.getHorizontalPixelRange=function(){return this.gridPanel.getHScrollPosition()},e.prototype.setAlwaysShowVerticalScroll=function(e){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",e)},e.prototype.refreshToolPanel=function(){this.gridCore.refreshSideBar()},e.prototype.refreshCells=function(e){void 0===e&&(e={}),Array.isArray(e)?console.warn("since ag-Grid v11.1, refreshCells() now takes parameters, please see the documentation."):this.rowRenderer.refreshCells(e)},e.prototype.flashCells=function(e){void 0===e&&(e={}),this.rowRenderer.flashCells(e)},e.prototype.redrawRows=function(e){void 0===e&&(e={}),e&&e.rowNodes?this.rowRenderer.redrawRows(e.rowNodes):this.rowRenderer.redrawAfterModelUpdate()},e.prototype.timeFullRedraw=function(e){void 0===e&&(e=1);var t=0,o=0,i=0,n=this;!function r(){var s=(new Date).getTime();n.rowRenderer.redrawAfterModelUpdate();var a=(new Date).getTime();window.setTimeout((function(){var n=(new Date).getTime(),l=a-s,p=n-a;console.log("duration: processing = "+l+"ms, reflow = "+p+"ms"),t++,o+=l,i+=p,t<e?window.setTimeout(r,1e3):(console.log("tests complete. iteration count = "+t),console.log("average processing = "+o/t+"ms"),console.log("average reflow = "+i/t+"ms"))}),0)}()},e.prototype.refreshView=function(){console.warn("ag-Grid: since v11.1, refreshView() is deprecated, please call refreshCells() or redrawRows() instead"),this.redrawRows()},e.prototype.refreshRows=function(e){console.warn("since ag-Grid v11.1, refreshRows() is deprecated, please use refreshCells({rowNodes: rows}) or redrawRows({rowNodes: rows}) instead"),this.refreshCells({rowNodes:e})},e.prototype.rowDataChanged=function(e){console.warn("ag-Grid: rowDataChanged is deprecated, either call refreshView() to refresh everything, or call rowNode.setRowData(newData) to set value on a particular node"),this.redrawRows()},e.prototype.softRefreshView=function(){console.error("ag-Grid: since v16, softRefreshView() is no longer supported. Please check the documentation on how to refresh.")},e.prototype.refreshGroupRows=function(){console.warn("ag-Grid: since v11.1, refreshGroupRows() is no longer supported, call refreshCells() instead. Because refreshCells() now does dirty checking, it will only refresh cells that have changed, so it should not be necessary to only refresh the group rows."),this.refreshCells()},e.prototype.setFunctionsReadOnly=function(e){this.gridOptionsWrapper.setProperty("functionsReadOnly",e)},e.prototype.refreshHeader=function(){this.headerRootComp.refreshHeader(),this.gridPanel.setHeaderAndFloatingHeights()},e.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},e.prototype.isAdvancedFilterPresent=function(){return console.warn("ag-Grid: isAdvancedFilterPresent() is deprecated, please use isColumnFilterPresent()"),this.isColumnFilterPresent()},e.prototype.isColumnFilterPresent=function(){return this.filterManager.isAdvancedFilterPresent()},e.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},e.prototype.getModel=function(){return this.rowModel},e.prototype.onGroupExpandedOrCollapsed=function(e){O._.missing(this.clientSideRowModel)&&console.warn("ag-Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),O._.exists(e)&&console.warn("ag-Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows"),this.clientSideRowModel.refreshModel({step:h.Constants.STEP_MAP})},e.prototype.refreshInMemoryRowModel=function(e){console.warn("ag-grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()"),this.refreshClientSideRowModel(e)},e.prototype.refreshClientSideRowModel=function(e){O._.missing(this.clientSideRowModel)&&console.warn("cannot call refreshClientSideRowModel unless using normal row model");var t=h.Constants.STEP_EVERYTHING,o={group:h.Constants.STEP_EVERYTHING,filter:h.Constants.STEP_FILTER,map:h.Constants.STEP_MAP,aggregate:h.Constants.STEP_AGGREGATE,sort:h.Constants.STEP_SORT,pivot:h.Constants.STEP_PIVOT};if(O._.exists(e)&&(t=o[e]),O._.missing(t))console.error("ag-Grid: invalid step "+e+", available steps are "+Object.keys(o).join(", "));else{var i={step:t,keepRenderedRows:!0,animate:!0,keepEditingRows:!0};this.clientSideRowModel.refreshModel(i)}},e.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},e.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},e.prototype.expandAll=function(){O._.missing(this.clientSideRowModel)?console.warn("ag-Grid: cannot call expandAll unless using normal row model"):this.clientSideRowModel.expandOrCollapseAll(!0)},e.prototype.collapseAll=function(){O._.missing(this.clientSideRowModel)?console.warn("ag-Grid: cannot call collapseAll unless using normal row model"):this.clientSideRowModel.expandOrCollapseAll(!1)},e.prototype.addVirtualRowListener=function(e,t,o){"string"!=typeof e&&console.warn("ag-Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(e,t,o)},e.prototype.addRenderedRowListener=function(e,t,o){"virtualRowSelected"===e&&console.warn("ag-Grid: event virtualRowSelected is deprecated, to register for individual row\n selection events, add a listener directly to the row node."),this.rowRenderer.addRenderedRowListener(e,t,o)},e.prototype.setQuickFilter=function(e){this.filterManager.setQuickFilter(e)},e.prototype.selectIndex=function(e,t,o){console.warn("ag-Grid: do not use api for selection, call node.setSelected(value) instead"),o&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionController.selectIndex(e,t)},e.prototype.deselectIndex=function(e,t){void 0===t&&(t=!1),console.warn("ag-Grid: do not use api for selection, call node.setSelected(value) instead"),t&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionController.deselectIndex(e)},e.prototype.selectNode=function(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1),console.warn("ag-Grid: API for selection is deprecated, call node.setSelected(value) instead"),o&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!0,clearSelection:!t})},e.prototype.deselectNode=function(e,t){void 0===t&&(t=!1),console.warn("ag-Grid: API for selection is deprecated, call node.setSelected(value) instead"),t&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!1})},e.prototype.selectAll=function(){this.selectionController.selectAllRowNodes()},e.prototype.deselectAll=function(){this.selectionController.deselectAllRowNodes()},e.prototype.selectAllFiltered=function(){this.selectionController.selectAllRowNodes(!0)},e.prototype.deselectAllFiltered=function(){this.selectionController.deselectAllRowNodes(!0)},e.prototype.recomputeAggregates=function(){O._.missing(this.clientSideRowModel)&&console.warn("cannot call recomputeAggregates unless using normal row model"),console.warn("recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead"),this.clientSideRowModel.refreshModel({step:h.Constants.STEP_AGGREGATE})},e.prototype.sizeColumnsToFit=function(){this.gridPanel.sizeColumnsToFit()},e.prototype.showLoadingOverlay=function(){this.gridPanel.showLoadingOverlay()},e.prototype.showNoRowsOverlay=function(){this.gridPanel.showNoRowsOverlay()},e.prototype.hideOverlay=function(){this.gridPanel.hideOverlay()},e.prototype.isNodeSelected=function(e){return console.warn("ag-Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead"),e.isSelected()},e.prototype.getSelectedNodesById=function(){return console.error("ag-Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead"),null},e.prototype.getSelectedNodes=function(){return this.selectionController.getSelectedNodes()},e.prototype.getSelectedRows=function(){return this.selectionController.getSelectedRows()},e.prototype.getBestCostNodeSelection=function(){return this.selectionController.getBestCostNodeSelection()},e.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},e.prototype.ensureColIndexVisible=function(e){console.warn("ag-Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.")},e.prototype.ensureColumnVisible=function(e){this.gridPanel.ensureColumnVisible(e)},e.prototype.ensureIndexVisible=function(e,t){this.gridPanel.ensureIndexVisible(e,t)},e.prototype.ensureNodeVisible=function(e,t){this.gridCore.ensureNodeVisible(e,t)},e.prototype.forEachLeafNode=function(e){O._.missing(this.clientSideRowModel)&&console.warn("cannot call forEachNode unless using normal row model"),this.clientSideRowModel.forEachLeafNode(e)},e.prototype.forEachNode=function(e){this.rowModel.forEachNode(e)},e.prototype.forEachNodeAfterFilter=function(e){O._.missing(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilter unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilter(e)},e.prototype.forEachNodeAfterFilterAndSort=function(e){O._.missing(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilterAndSort unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilterAndSort(e)},e.prototype.getFilterApiForColDef=function(e){return console.warn("ag-grid API method getFilterApiForColDef deprecated, use getFilterApi instead"),this.getFilterInstance(e)},e.prototype.getFilterInstance=function(e){var t=this.columnController.getPrimaryColumn(e);if(t)return this.filterManager.getFilterComponent(t,"NO_UI").resolveNow(null,(function(e){return e}))},e.prototype.getFilterApi=function(e){return console.warn("ag-Grid: getFilterApi is deprecated, use getFilterInstance instead"),this.getFilterInstance(e)},e.prototype.destroyFilter=function(e){var t=this.columnController.getPrimaryColumn(e);if(t)return this.filterManager.destroyFilter(t,"filterDestroyed")},e.prototype.getStatusPanel=function(e){if(this.statusBarService)return this.statusBarService.getStatusPanel(e)},e.prototype.getColumnDef=function(e){var t=this.columnController.getPrimaryColumn(e);return t?t.getColDef():null},e.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},e.prototype.onSortChanged=function(){this.sortController.onSortChanged()},e.prototype.setSortModel=function(e,t){void 0===t&&(t="api"),this.sortController.setSortModel(e,t)},e.prototype.getSortModel=function(){return this.sortController.getSortModel()},e.prototype.setFilterModel=function(e){this.filterManager.setFilterModel(e)},e.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},e.prototype.getFocusedCell=function(){return this.focusedCellController.getFocusedCell()},e.prototype.clearFocusedCell=function(){return this.focusedCellController.clearFocusedCell()},e.prototype.setFocusedCell=function(e,t,o){this.focusedCellController.setFocusedCell(e,t,o,!0)},e.prototype.setSuppressRowDrag=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_SUPPRESS_ROW_DRAG,e)},e.prototype.setHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setGridAutoHeight=function(e){console.warn("api.setGridAutoHeight(boolean) is deprecated, please use api.setDomLayout() instead"),this.setDomLayout(e?"autoHeight":"normal")},e.prototype.setDomLayout=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_DOM_LAYOUT,e)},e.prototype.setEnableCellTextSelection=function(e){this.gridPanel.setCellTextSelection(e)},e.prototype.setGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_GROUP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setFloatingFiltersHeight=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_FLOATING_FILTERS_HEIGHT,e),this.doLayout()},e.prototype.setPivotGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_PIVOT_GROUP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setPivotHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_PIVOT_HEADER_HEIGHT,e),this.doLayout()},e.prototype.isSideBarVisible=function(){return this.gridCore.isSideBarVisible()},e.prototype.setSideBarVisible=function(e){this.gridCore.setSideBarVisible(e)},e.prototype.showToolPanel=function(e){console.warn("ag-grid: from v19 api.showToolPanel has been deprecated in favour of api.setSideBarVisible"),this.setSideBarVisible(e)},e.prototype.openToolPanel=function(e){this.gridCore.openToolPanel(e)},e.prototype.closeToolPanel=function(){this.gridCore.closeToolPanel()},e.prototype.getOpenedToolPanel=function(){return this.gridCore.getOpenedToolPanel()},e.prototype.getSideBar=function(){return this.gridCore.getSideBar()},e.prototype.setSideBar=function(e){return this.gridCore.setSideBar(e)},e.prototype.setSuppressClipboardPaste=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_SUPPRESS_CLIPBOARD_PASTE,e)},e.prototype.isToolPanelShowing=function(){return this.gridCore.isToolPanelShowing()},e.prototype.doLayout=function(){this.gridPanel.checkViewportAndScrolls()},e.prototype.resetRowHeights=function(){O._.exists(this.clientSideRowModel)&&this.clientSideRowModel.resetRowHeights()},e.prototype.setGroupRemoveSingleChildren=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_GROUP_REMOVE_SINGLE_CHILDREN,e)},e.prototype.setGroupRemoveLowestSingleChildren=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,e)},e.prototype.onRowHeightChanged=function(){O._.exists(this.clientSideRowModel)&&this.clientSideRowModel.onRowHeightChanged()},e.prototype.getValue=function(e,t){var o=this.columnController.getPrimaryColumn(e);return O._.missing(o)&&(o=this.columnController.getGridColumn(e)),O._.missing(o)?null:this.valueService.getValue(o,t)},e.prototype.addEventListener=function(e,t){var o=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addEventListener(e,t,o)},e.prototype.addGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addGlobalListener(e,t)},e.prototype.removeEventListener=function(e,t){var o=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeEventListener(e,t,o)},e.prototype.removeGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeGlobalListener(e,t)},e.prototype.dispatchEvent=function(e){this.eventService.dispatchEvent(e)},e.prototype.destroy=function(){this.gridCore.destroy(),this.context.destroy()},e.prototype.resetQuickFilter=function(){this.rowModel.forEachNode((function(e){return e.quickFilterAggregateText=null}))},e.prototype.getRangeSelections=function(){return this.rangeController?this.rangeController.getCellRanges():(console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),null)},e.prototype.camelCaseToHumanReadable=function(e){return O._.camelCaseToHumanText(e)},e.prototype.addRangeSelection=function(e){this.rangeController||console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),this.rangeController.addRange(e)},e.prototype.clearRangeSelection=function(){this.rangeController||console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),this.rangeController.clearSelection()},e.prototype.copySelectedRowsToClipboard=function(e,t){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copySelectedRowsToClipboard(e,t)},e.prototype.copySelectedRangeToClipboard=function(e){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copySelectedRangeToClipboard(e)},e.prototype.copySelectedRangeDown=function(){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copyRangeDown()},e.prototype.showColumnMenuAfterButtonClick=function(e,t){var o=this.columnController.getPrimaryColumn(e);this.menuFactory.showMenuAfterButtonClick(o,t)},e.prototype.showColumnMenuAfterMouseClick=function(e,t){var o=this.columnController.getPrimaryColumn(e);this.menuFactory.showMenuAfterMouseEvent(o,t)},e.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},e.prototype.setPopupParent=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_POPUP_PARENT,e)},e.prototype.tabToNextCell=function(){return this.rowRenderer.tabToNextCell(!1)},e.prototype.tabToPreviousCell=function(){return this.rowRenderer.tabToNextCell(!0)},e.prototype.getCellRendererInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellRendererInstances(e)},e.prototype.getCellEditorInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellEditorInstances(e)},e.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},e.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.rowRenderer.stopEditing(e)},e.prototype.startEditingCell=function(e){var t=this.columnController.getGridColumn(e.colKey);if(t){var o={rowIndex:e.rowIndex,floating:e.rowPinned,column:t},i=new y.GridCell(o);O._.missing(e.rowPinned)&&this.gridPanel.ensureIndexVisible(e.rowIndex),this.rowRenderer.startEditingCell(i,e.keyPress,e.charPress)}else console.warn("ag-Grid: no column found for "+e.colKey)},e.prototype.addAggFunc=function(e,t){this.aggFuncService&&this.aggFuncService.addAggFunc(e,t)},e.prototype.addAggFuncs=function(e){this.aggFuncService&&this.aggFuncService.addAggFuncs(e)},e.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},e.prototype.updateRowData=function(e){var t=null;return this.clientSideRowModel?t=this.clientSideRowModel.updateRowData(e):this.infinitePageRowModel?this.infinitePageRowModel.updateRowData(e):console.error("ag-Grid: updateRowData() only works with ClientSideRowModel and InfiniteRowModel."),this.rowRenderer.refreshFullWidthRows(),this.gridOptionsWrapper.isSuppressChangeDetection()||this.rowRenderer.refreshCells(),t},e.prototype.batchUpdateRowData=function(e,t){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(e,t):console.error("ag-Grid: api.batchUpdateRowData() only works with ClientSideRowModel.")},e.prototype.insertItemsAtIndex=function(e,t,o){void 0===o&&(o=!1),console.warn("ag-Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:t,addIndex:e,update:null,remove:null})},e.prototype.removeItems=function(e,t){void 0===t&&(t=!1),console.warn("ag-Grid: removeItems() is deprecated, use updateRowData(transaction) instead.");var o=e.map((function(e){return e.data}));this.updateRowData({add:null,addIndex:null,update:null,remove:o})},e.prototype.addItems=function(e,t){void 0===t&&(t=!1),console.warn("ag-Grid: addItems() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:e,addIndex:null,update:null,remove:null})},e.prototype.refreshVirtualPageCache=function(){console.warn("ag-Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfinitePageCache=function(){console.warn("ag-Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfiniteCache=function(){this.infinitePageRowModel?this.infinitePageRowModel.refreshCache():console.warn("ag-Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeVirtualPageCache=function(){console.warn("ag-Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfinitePageCache()},e.prototype.purgeInfinitePageCache=function(){console.warn("ag-Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfiniteCache()},e.prototype.purgeInfiniteCache=function(){this.infinitePageRowModel?this.infinitePageRowModel.purgeCache():console.warn("ag-Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeEnterpriseCache=function(e){console.warn("ag-grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.purgeServerSideCache()"),this.purgeServerSideCache(e)},e.prototype.purgeServerSideCache=function(e){this.serverSideRowModel?this.serverSideRowModel.purgeCache(e):console.warn("ag-Grid: api.purgeServerSideCache is only available when rowModelType='enterprise'.")},e.prototype.getVirtualRowCount=function(){return console.warn("ag-Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead"),this.getInfiniteRowCount()},e.prototype.getInfiniteRowCount=function(){if(this.infinitePageRowModel)return this.infinitePageRowModel.getVirtualRowCount();console.warn("ag-Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},e.prototype.isMaxRowFound=function(){if(this.infinitePageRowModel)return this.infinitePageRowModel.isMaxRowFound();console.warn("ag-Grid: api.isMaxRowFound is only available when rowModelType='virtual'.")},e.prototype.setVirtualRowCount=function(e,t){console.warn("ag-Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead"),this.setInfiniteRowCount(e,t)},e.prototype.setInfiniteRowCount=function(e,t){this.infinitePageRowModel?this.infinitePageRowModel.setVirtualRowCount(e,t):console.warn("ag-Grid: api.setVirtualRowCount is only available when rowModelType='virtual'.")},e.prototype.getVirtualPageState=function(){return console.warn("ag-Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getInfinitePageState=function(){return console.warn("ag-Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getCacheBlockState=function(){return this.infinitePageRowModel?this.infinitePageRowModel.getBlockState():this.serverSideRowModel?this.serverSideRowModel.getBlockState():void console.warn("ag-Grid: api.getCacheBlockState() is only available when rowModelType='infinite' or rowModelType='serverSide'.")},e.prototype.checkGridSize=function(){this.gridPanel.setHeaderAndFloatingHeights()},e.prototype.getFirstRenderedRow=function(){return console.warn("in ag-Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()"),this.getFirstDisplayedRow()},e.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},e.prototype.getLastRenderedRow=function(){return console.warn("in ag-Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()"),this.getLastDisplayedRow()},e.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},e.prototype.getDisplayedRowAtIndex=function(e){return this.rowModel.getRow(e)},e.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},e.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},e.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},e.prototype.paginationSetPageSize=function(e){this.gridOptionsWrapper.setProperty("paginationPageSize",e)},e.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},e.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},e.prototype.paginationGetRowCount=function(){return this.paginationProxy.getTotalRowCount()},e.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},e.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},e.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},e.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},e.prototype.paginationGoToPage=function(e){this.paginationProxy.goToPage(e)},i([f.Autowired("immutableService"),n("design:type",w.ImmutableService)],e.prototype,"immutableService",void 0),i([f.Autowired("csvCreator"),n("design:type",r.CsvCreator)],e.prototype,"csvCreator",void 0),i([f.Optional("excelCreator"),n("design:type",Object)],e.prototype,"excelCreator",void 0),i([f.Autowired("rowRenderer"),n("design:type",s.RowRenderer)],e.prototype,"rowRenderer",void 0),i([f.Autowired("filterManager"),n("design:type",a.FilterManager)],e.prototype,"filterManager",void 0),i([f.Autowired("columnController"),n("design:type",l.ColumnController)],e.prototype,"columnController",void 0),i([f.Autowired("selectionController"),n("design:type",p.SelectionController)],e.prototype,"selectionController",void 0),i([f.Autowired("gridOptionsWrapper"),n("design:type",u.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([f.Autowired("valueService"),n("design:type",c.ValueService)],e.prototype,"valueService",void 0),i([f.Autowired("alignedGridsService"),n("design:type",_.AlignedGridsService)],e.prototype,"alignedGridsService",void 0),i([f.Autowired("eventService"),n("design:type",d.EventService)],e.prototype,"eventService",void 0),i([f.Autowired("pinnedRowModel"),n("design:type",b.PinnedRowModel)],e.prototype,"pinnedRowModel",void 0),i([f.Autowired("context"),n("design:type",f.Context)],e.prototype,"context",void 0),i([f.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([f.Autowired("sortController"),n("design:type",g.SortController)],e.prototype,"sortController",void 0),i([f.Autowired("paginationProxy"),n("design:type",C.PaginationProxy)],e.prototype,"paginationProxy",void 0),i([f.Autowired("focusedCellController"),n("design:type",m.FocusedCellController)],e.prototype,"focusedCellController",void 0),i([f.Optional("rangeController"),n("design:type",Object)],e.prototype,"rangeController",void 0),i([f.Optional("clipboardService"),n("design:type",Object)],e.prototype,"clipboardService",void 0),i([f.Optional("aggFuncService"),n("design:type",Object)],e.prototype,"aggFuncService",void 0),i([f.Autowired("menuFactory"),n("design:type",Object)],e.prototype,"menuFactory",void 0),i([f.Optional("contextMenuFactory"),n("design:type",Object)],e.prototype,"contextMenuFactory",void 0),i([f.Autowired("cellRendererFactory"),n("design:type",v.CellRendererFactory)],e.prototype,"cellRendererFactory",void 0),i([f.Autowired("valueCache"),n("design:type",E.ValueCache)],e.prototype,"valueCache",void 0),i([f.Optional("sideBarComp"),n("design:type",Object)],e.prototype,"sideBarComp",void 0),i([f.Autowired("animationFrameService"),n("design:type",R.AnimationFrameService)],e.prototype,"animationFrameService",void 0),i([f.Optional("statusBarService"),n("design:type",Object)],e.prototype,"statusBarService",void 0),i([f.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([f.Bean("gridApi")],e)}();t.GridApi=S},41163:(e,t,o)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.unload=t.load=t.onExit=t.signals=void 0;const n=o(40030);Object.defineProperty(t,"signals",{enumerable:!0,get:function(){return n.signals}});const r=e=>!!e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on,s=Symbol.for("signal-exit emitter"),a=globalThis,l=Object.defineProperty.bind(Object);class p{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(a[s])return a[s];l(a,s,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){const o=this.listeners[e],i=o.indexOf(t);-1!==i&&(0===i&&1===o.length?o.length=0:o.splice(i,1))}emit(e,t,o){if(this.emitted[e])return!1;this.emitted[e]=!0;let i=!1;for(const n of this.listeners[e])i=!0===n(t,o)||i;return"exit"===e&&(i=this.emit("afterExit",t,o)||i),i}}class u{}const c=globalThis.process;var d;d=r(c)?new class extends u{#e="win32"===c.platform?"SIGINT":"SIGHUP";#t=new p;#o;#i;#n;#r={};#s=!1;constructor(e){super(),this.#o=e,this.#r={};for(const t of n.signals)this.#r[t]=()=>{const o=this.#o.listeners(t);let{count:i}=this.#t;const n=e;if("object"==typeof n.__signal_exit_emitter__&&"number"==typeof n.__signal_exit_emitter__.count&&(i+=n.__signal_exit_emitter__.count),o.length===i){this.unload();const o=this.#t.emit("exit",null,t),i="SIGHUP"===t?this.#e:t;o||e.kill(e.pid,i)}};this.#n=e.reallyExit,this.#i=e.emit}onExit(e,t){if(!r(this.#o))return()=>{};!1===this.#s&&this.load();const o=t?.alwaysLast?"afterExit":"exit";return this.#t.on(o,e),()=>{this.#t.removeListener(o,e),0===this.#t.listeners.exit.length&&0===this.#t.listeners.afterExit.length&&this.unload()}}load(){if(!this.#s){this.#s=!0,this.#t.count+=1;for(const e of n.signals)try{const t=this.#r[e];t&&this.#o.on(e,t)}catch(e){}this.#o.emit=(e,...t)=>this.#a(e,...t),this.#o.reallyExit=e=>this.#l(e)}}unload(){this.#s&&(this.#s=!1,n.signals.forEach((e=>{const t=this.#r[e];if(!t)throw new Error("Listener not defined for signal: "+e);try{this.#o.removeListener(e,t)}catch(e){}})),this.#o.emit=this.#i,this.#o.reallyExit=this.#n,this.#t.count-=1)}#l(e){return r(this.#o)?(this.#o.exitCode=e||0,this.#t.emit("exit",this.#o.exitCode,null),this.#n.call(this.#o,this.#o.exitCode)):0}#a(e,...t){const o=this.#i;if("exit"===e&&r(this.#o)){"number"==typeof t[0]&&(this.#o.exitCode=t[0]);const i=o.call(this.#o,e,...t);return this.#t.emit("exit",this.#o.exitCode,null),i}return o.call(this.#o,e,...t)}}(c):new class extends u{onExit(){return()=>{}}load(){}unload(){}},i={onExit:(e,t)=>d.onExit(e,t),load:()=>d.load(),unload:()=>d.unload()},t.onExit=i.onExit,t.load=i.load,t.unload=i.unload},41451:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8534),l=o(60843),p=o(63405),u=o(72493),c=o(44081),d=o(13887),h=o(54828),f=o(44871),g=o(40797),m=o(83423),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.registerGridComp=function(e){this.gridPanel=e,this.addDestroyableEventListener(this.eventService,p.Events.EVENT_BODY_HEIGHT_CHANGED,this.onBodyHeightChanged.bind(this)),this.addDestroyableEventListener(this.eventService,p.Events.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.checkPageSize()},t.prototype.notActive=function(){return!this.gridOptionsWrapper.isPaginationAutoPageSize()},t.prototype.onScrollVisibilityChanged=function(){this.checkPageSize()},t.prototype.onBodyHeightChanged=function(){this.checkPageSize()},t.prototype.checkPageSize=function(){if(!this.notActive()){var e=this.gridOptionsWrapper.getRowHeightAsNumber(),t=this.gridPanel.getBodyHeight();if(t>0){var o=Math.floor(t/e);this.gridOptionsWrapper.setProperty("paginationPageSize",o)}}},r([u.Autowired("eventService"),s("design:type",l.EventService)],t.prototype,"eventService",void 0),r([u.Autowired("gridOptionsWrapper"),s("design:type",c.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([u.Autowired("scrollVisibleService"),s("design:type",d.ScrollVisibleService)],t.prototype,"scrollVisibleService",void 0),r([u.Bean("paginationAutoPageSizeService")],t)}(a.BeanStub);t.PaginationAutoPageSizeService=y;var v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentPage=0,t.topRowIndex=0,t.bottomRowIndex=0,t.pixelOffset=0,t}return n(t,e),t.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isPagination(),this.addDestroyableEventListener(this.eventService,p.Events.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,"paginationPageSize",this.onModelUpdated.bind(this)),this.onModelUpdated()},t.prototype.ensureRowHeightsValid=function(e,t,o,i){var n=this.rowModel.ensureRowHeightsValid(e,t,this.getPageFirstRow(),this.getPageLastRow());return n&&this.setIndexesAndBounds(),n},t.prototype.isLastRowFound=function(){return this.rowModel.isLastRowFound()},t.prototype.onModelUpdated=function(e){this.setIndexesAndBounds();var t={type:p.Events.EVENT_PAGINATION_CHANGED,animate:!!e&&e.animate,newData:!!e&&e.newData,newPage:!!e&&e.newPage,keepRenderedRows:!!e&&e.keepRenderedRows,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.goToPage=function(e){if(this.active&&this.currentPage!==e){this.currentPage=e;var t={type:p.Events.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0,api:this.gridApi,columnApi:this.columnApi};this.onModelUpdated(t)}},t.prototype.getPixelOffset=function(){return this.pixelOffset},t.prototype.getRow=function(e){return this.rowModel.getRow(e)},t.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},t.prototype.getRowIndexAtPixel=function(e){return this.rowModel.getRowIndexAtPixel(e)},t.prototype.getCurrentPageHeight=function(){return m._.missing(this.topRowBounds)||m._.missing(this.bottomRowBounds)?0:this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop},t.prototype.isRowPresent=function(e){return!!this.rowModel.isRowPresent(e)&&e.rowIndex>=this.topRowIndex&&e.rowIndex<=this.bottomRowIndex},t.prototype.isEmpty=function(){return this.rowModel.isEmpty()},t.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},t.prototype.getNodesInRangeForSelection=function(e,t){return this.rowModel.getNodesInRangeForSelection(e,t)},t.prototype.forEachNode=function(e){return this.rowModel.forEachNode(e)},t.prototype.getType=function(){return this.rowModel.getType()},t.prototype.getRowBounds=function(e){return this.rowModel.getRowBounds(e)},t.prototype.getPageFirstRow=function(){return this.pageSize*this.currentPage},t.prototype.getPageLastRow=function(){var e=this.pageSize*(this.currentPage+1)-1,t=this.rowModel.getPageLastRow();return t>e?e:t},t.prototype.getRowCount=function(){return this.rowModel.getRowCount()},t.prototype.goToPageWithIndex=function(e){if(this.active){var t=Math.floor(e/this.pageSize);this.goToPage(t)}},t.prototype.getTotalRowCount=function(){return this.rowModel.getPageLastRow()+1},t.prototype.isLastPageFound=function(){return this.rowModel.isLastRowFound()},t.prototype.getCurrentPage=function(){return this.currentPage},t.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},t.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},t.prototype.goToFirstPage=function(){this.goToPage(0)},t.prototype.goToLastPage=function(){var e=this.rowModel.getPageLastRow()+1,t=Math.floor(e/this.pageSize);this.goToPage(t)},t.prototype.getPageSize=function(){return this.pageSize},t.prototype.getTotalPages=function(){return this.totalPages},t.prototype.setPageSize=function(){this.pageSize=this.gridOptionsWrapper.getPaginationPageSize(),this.pageSize>=1||(this.pageSize=100)},t.prototype.setIndexesAndBounds=function(){if(this.active){this.setPageSize();var e=this.getTotalRowCount();this.totalPages=Math.floor((e-1)/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!m._.isNumeric(this.currentPage)||this.currentPage<0)&&(this.currentPage=0),this.topRowIndex=this.pageSize*this.currentPage,this.bottomRowIndex=this.pageSize*(this.currentPage+1)-1;var t=this.rowModel.getPageLastRow();this.bottomRowIndex>t&&(this.bottomRowIndex=t)}else this.pageSize=this.rowModel.getPageLastRow()+1,this.totalPages=1,this.currentPage=0,this.topRowIndex=0,this.bottomRowIndex=this.rowModel.getPageLastRow();this.topRowBounds=this.rowModel.getRowBounds(this.topRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomRowIndex),this.pixelOffset=m._.exists(this.topRowBounds)?this.topRowBounds.rowTop:0},r([u.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),r([u.Autowired("eventService"),s("design:type",l.EventService)],t.prototype,"eventService",void 0),r([u.Autowired("gridOptionsWrapper"),s("design:type",c.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([u.Autowired("selectionController"),s("design:type",h.SelectionController)],t.prototype,"selectionController",void 0),r([u.Autowired("columnApi"),s("design:type",f.ColumnApi)],t.prototype,"columnApi",void 0),r([u.Autowired("gridApi"),s("design:type",g.GridApi)],t.prototype,"gridApi",void 0),r([u.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),r([u.Bean("paginationProxy")],t)}(a.BeanStub);t.PaginationProxy=v},41832:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(10042),s=o(72493),a=o(44081),l=o(78481),p=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.registerHeaderRootComp=function(e){this.headerRootComp=e},e.prototype.getPreferredWidthForColumn=function(e){var t=this.getHeaderCellForColumn(e);if(!t)return-1;var o=document.createElement("span");o.style.position="fixed";var i=this.gridPanel.getCenterContainer();i.appendChild(o),this.putRowCellsIntoDummyContainer(e,o),this.cloneItemIntoDummy(t,o);var n=o.offsetWidth;return i.removeChild(o),n+this.gridOptionsWrapper.getAutoSizePadding()},e.prototype.getHeaderCellForColumn=function(e){var t=null;return this.headerRootComp.forEachHeaderElement((function(o){if(o instanceof l.HeaderWrapperComp){var i=o;i.getColumn()===e&&(t=i)}})),t?t.getGui():null},e.prototype.putRowCellsIntoDummyContainer=function(e,t){var o=this;this.rowRenderer.getAllCellsForColumn(e).forEach((function(e){return o.cloneItemIntoDummy(e,t)}))},e.prototype.cloneItemIntoDummy=function(e,t){var o=e.cloneNode(!0);o.style.width="",o.style.position="static",o.style.left="";var i=document.createElement("div");i.style.display="table-row",i.appendChild(o),t.appendChild(i)},i([s.Autowired("rowRenderer"),n("design:type",r.RowRenderer)],e.prototype,"rowRenderer",void 0),i([s.Autowired("gridOptionsWrapper"),n("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Bean("autoWidthCalculator")],e)}();t.AutoWidthCalculator=p},42195:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(60843),a=o(63405),l=o(44081),p=o(44871),u=o(98239),c=o(34782),d=o(40797),h=o(23054),f=o(83423),g=function(){function e(){}return e.prototype.init=function(){this.eventService.addEventListener(a.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_GROUP_OPENED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_MOVED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_PINNED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_VISIBLE,this.clearFocusedCell.bind(this))},e.prototype.clearFocusedCell=function(){this.focusedCell=null,this.onCellFocused(!1)},e.prototype.getFocusedCell=function(){return this.focusedCell},e.prototype.getFocusCellToUseAfterRefresh=function(){return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()?null:this.focusedCell&&this.getGridCellForDomElement(document.activeElement)?this.focusedCell:null},e.prototype.getGridCellForDomElement=function(e){for(var t=e;t;){var o=this.gridOptionsWrapper.getDomData(t,h.CellComp.DOM_DATA_KEY_CELL_COMP);if(o)return o.getGridCell();t=t.parentNode}return null},e.prototype.setFocusedCell=function(e,t,o,i){void 0===i&&(i=!1);var n=f._.makeNull(this.columnController.getGridColumn(t));this.focusedCell=new c.GridCell({rowIndex:e,floating:f._.makeNull(o),column:n}),this.onCellFocused(i)},e.prototype.isCellFocused=function(e){return!f._.missing(this.focusedCell)&&this.focusedCell.column===e.column&&this.isRowFocused(e.rowIndex,e.floating)},e.prototype.isRowNodeFocused=function(e){return this.isRowFocused(e.rowIndex,e.rowPinned)},e.prototype.isAnyCellFocused=function(){return!!this.focusedCell},e.prototype.isRowFocused=function(e,t){if(f._.missing(this.focusedCell))return!1;var o=f._.makeNull(t);return this.focusedCell.rowIndex===e&&this.focusedCell.floating===o},e.prototype.onCellFocused=function(e){var t={type:a.Events.EVENT_CELL_FOCUSED,forceBrowserFocus:e,rowIndex:null,column:null,floating:null,api:this.gridApi,columnApi:this.columnApi,rowPinned:null};this.focusedCell&&(t.rowIndex=this.focusedCell.rowIndex,t.column=this.focusedCell.column,t.rowPinned=this.focusedCell.floating),this.eventService.dispatchEvent(t)},i([r.Autowired("eventService"),n("design:type",s.EventService)],e.prototype,"eventService",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("columnController"),n("design:type",u.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("columnApi"),n("design:type",p.ColumnApi)],e.prototype,"columnApi",void 0),i([r.Autowired("gridApi"),n("design:type",d.GridApi)],e.prototype,"gridApi",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([r.Bean("focusedCellController")],e)}();t.FocusedCellController=g},42664:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(98239),a=o(45727),l=o(54828),p=o(44081),u=o(31887),c=o(7897),d=o(12598),h=o(74517),f=o(50580),g=o(83423),m=function(){function e(e){var t=e.columnController,o=e.valueService,i=e.gridOptionsWrapper,n=e.processCellCallback,r=e.processHeaderCallback,s=e.cellAndHeaderEscaper;this.columnController=t,this.valueService=o,this.gridOptionsWrapper=i,this.processCellCallback=n,this.processHeaderCallback=r,this.cellAndHeaderEscaper=s}return e.prototype.extractHeaderValue=function(e){var t=this.getHeaderName(this.processHeaderCallback,e);return null==t&&(t=""),this.cellAndHeaderEscaper?this.cellAndHeaderEscaper(t):t},e.prototype.extractRowCellValue=function(e,t,o,i){var n,r=this.columnController.getRowGroupColumns().length>0;return n=i&&i.group&&r&&0===t?this.createValueForGroupNode(i):this.valueService.getValue(e,i),null==(n=this.processCell(i,e,n,this.processCellCallback,o))&&(n=""),this.cellAndHeaderEscaper?this.cellAndHeaderEscaper(n):n},e.prototype.getHeaderName=function(e,t){return e?e({column:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):this.columnController.getDisplayNameForColumn(t,"csv",!0)},e.prototype.createValueForGroupNode=function(e){for(var t=[e.key];e.parent;)e=e.parent,t.push(e.key);return t.reverse().join(" -> ")},e.prototype.processCell=function(e,t,o,i,n){return i?i({column:t,node:e,value:o,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:n}):o},e}();t.BaseGridSerializingSession=m;var y,v=function(){function e(){}return e.prototype.serialize=function(e,t){var o=t&&t.skipGroups,i=t&&t.skipHeader,n=t&&t.columnGroups,r=t&&t.skipFooters,s=t&&t.skipPinnedTop,l=t&&t.skipPinnedBottom,p=t&&t.customHeader,u=t&&t.customFooter,c=t&&t.allColumns,h=t&&t.onlySelected,f=t&&t.columnKeys,m=t&&t.onlySelectedAllPages,y=t&&t.shouldRowBeSkipped||function(){return!1},v=this.gridOptionsWrapper.getApi(),C=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),w=this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),E=this.gridOptionsWrapper.getContext(),_=this.columnController.isPivotMode(),b=this.rowModel.getType()===a.Constants.ROW_MODEL_TYPE_CLIENT_SIDE,R=!b&&h,O=[];if(O=g._.existsAndNotEmpty(f)?this.columnController.getGridColumns(f):c&&!_?(O=this.gridOptionsWrapper.isTreeData()?this.columnController.getGridColumns([a.Constants.GROUP_AUTO_COLUMN_ID]):[]).concat(this.columnController.getAllPrimaryColumns()||[]):this.columnController.getAllDisplayedColumns(),p&&e.addCustomHeader(p),e.prepare(O),n){var S=new d.GroupInstanceIdCreator,A=this.displayedGroupCreator.createDisplayedGroups(O,this.columnController.getGridBalancedTree(),S,null);this.recursivelyAddHeaderGroups(A,e)}if(!i){var P=e.onNewHeaderRow();O.forEach((function(e,t){P.onColumn(e,t,void 0)}))}function T(t){var i=w&&t.leafGroup,n=1===t.allChildrenCount&&(C||i);if((!t.group||!o&&!n)&&(!r||!t.footer)&&(!h||t.isSelected())&&(!s||"top"!==t.rowPinned)&&(!l||"bottom"!==t.rowPinned)&&(-1!==t.level||t.leafGroup)&&!y({node:t,api:v,context:E})){var a=e.onNewBodyRow();O.forEach((function(e,o){a.onColumn(e,o,t)}))}}return this.pinnedRowModel.forEachPinnedTopRow(T),_?this.rowModel.forEachPivotNode?this.rowModel.forEachPivotNode(T):this.rowModel.forEachNode(T):m||R?this.selectionController.getSelectedNodes().forEach((function(e){T(e)})):b?this.rowModel.forEachNodeAfterFilterAndSort(T):this.rowModel.forEachNode(T),this.pinnedRowModel.forEachPinnedBottomRow(T),u&&e.addCustomFooter(u),e.parse()},e.prototype.recursivelyAddHeaderGroups=function(e,t){var o=[];e.forEach((function(e){var t=e;t.getChildren&&t.getChildren().forEach((function(e){return o.push(e)}))})),e.length>0&&e[0]instanceof h.ColumnGroup&&this.doAddHeaderHeader(t,e),o&&o.length>0&&this.recursivelyAddHeaderGroups(o,t)},e.prototype.doAddHeaderHeader=function(e,t){var o=this,i=e.onNewHeaderGroupingRow(),n=0;t.forEach((function(e){var t=e,r=o.columnController.getDisplayNameForColumnGroup(t,"header");i.onColumn(r||"",n++,t.getLeafColumns().length-1)}))},i([r.Autowired("displayedGroupCreator"),n("design:type",u.DisplayedGroupCreator)],e.prototype,"displayedGroupCreator",void 0),i([r.Autowired("columnController"),n("design:type",s.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([r.Autowired("pinnedRowModel"),n("design:type",f.PinnedRowModel)],e.prototype,"pinnedRowModel",void 0),i([r.Autowired("selectionController"),n("design:type",l.SelectionController)],e.prototype,"selectionController",void 0),i([r.Autowired("columnFactory"),n("design:type",c.ColumnFactory)],e.prototype,"columnFactory",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",p.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Bean("gridSerializer")],e)}();t.GridSerializer=v,(y=t.RowType||(t.RowType={}))[y.HEADER_GROUPING=0]="HEADER_GROUPING",y[y.HEADER=1]="HEADER",y[y.BODY=2]="BODY"},42726:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(55e3),a=o(73575),l=o(44081),p=o(60843),u=o(83423),c=function(){function e(){}return e.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},e.prototype.showMenuAfterMouseEvent=function(e,t){var o=this;this.showPopup(e,(function(i){o.popupService.positionPopupUnderMouseEvent({column:e,type:"columnMenu",mouseEvent:t,ePopup:i})}))},e.prototype.showMenuAfterButtonClick=function(e,t){var o=this;this.showPopup(e,(function(i){o.popupService.positionPopupUnderComponent({type:"columnMenu",eventSource:t,ePopup:i,keepWithinBounds:!0,column:e})}))},e.prototype.showPopup=function(e,t){var o,i=this,n=this.filterManager.getOrCreateFilterWrapper(e,"COLUMN_MENU"),r=document.createElement("div");u._.addCssClass(r,"ag-menu"),n.guiPromise.promise.then((function(e){r.appendChild(e)}));var s=function(e){"horizontal"===e.direction&&o()};this.eventService.addEventListener("bodyScroll",s),o=this.popupService.addAsModalPopup(r,!0,(function(){i.eventService.removeEventListener("bodyScroll",s),e.setMenuVisible(!1,"contextMenu")})),t(r),n.filterPromise.then((function(e){if(e.afterGuiAttached){var t={hidePopup:o};e.afterGuiAttached(t)}})),this.hidePopup=o,e.setMenuVisible(!0,"contextMenu")},e.prototype.isMenuEnabled=function(e){return e.isFilterAllowed()},i([r.Autowired("eventService"),n("design:type",p.EventService)],e.prototype,"eventService",void 0),i([r.Autowired("filterManager"),n("design:type",s.FilterManager)],e.prototype,"filterManager",void 0),i([r.Autowired("popupService"),n("design:type",a.PopupService)],e.prototype,"popupService",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Bean("menuFactory")],e)}();t.StandardMenuFactory=c},43389:(e,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.IdentityCheck="IdentityCheck",e.DeepValueCheck="DeepValueCheck",e.NoCheck="NoCheck"}(o=t.ChangeDetectionStrategyType||(t.ChangeDetectionStrategyType={}));var i=function(){function e(){var e;this.strategyMap=((e={})[o.DeepValueCheck]=new r,e[o.IdentityCheck]=new n((function(e,t){return e===t})),e[o.NoCheck]=new n((function(e,t){return!0})),e)}return e.prototype.getStrategy=function(e){return this.strategyMap[e]},e}();t.ChangeDetectionService=i;var n=function(){function e(e){this.strategy=e}return e.prototype.areEqual=function(e,t){return this.strategy(e,t)},e}(),r=function(){function e(){}return e.prototype.areEqual=function(t,o){return e.areEquivalent(e.copy(t),e.copy(o))},e.unwrapStringOrNumber=function(e){return e instanceof Number||e instanceof String?e.valueOf():e},e.copy=function(e){if(!e)return e;if(Array.isArray(e)){for(var t=[],o=0;o<e.length;o++)t.push(this.copy(e[o]));return t}return"object"!=typeof e?e:[{},e].reduce((function(e,t){return Object.keys(t).forEach((function(o){e[o]=t[o]})),e}),{})},e.areEquivalent=function(t,o){if(t=e.unwrapStringOrNumber(t),o=e.unwrapStringOrNumber(o),t===o)return!0;if(null===t||null===o||typeof t!=typeof o)return!1;if(t instanceof Date)return o instanceof Date&&t.valueOf()===o.valueOf();if("function"==typeof t)return t.toString()===o.toString();if("object"!=typeof t)return t==o;var i=void 0===t.areEquivPropertyTracking,n=void 0===o.areEquivPropertyTracking;try{var r=void 0;if(i)t.areEquivPropertyTracking=[];else if(t.areEquivPropertyTracking.some((function(e){return e===o})))return!0;if(n)o.areEquivPropertyTracking=[];else if(o.areEquivPropertyTracking.some((function(e){return e===t})))return!0;t.areEquivPropertyTracking.push(o),o.areEquivPropertyTracking.push(t);var s={};for(r in t)"areEquivPropertyTracking"!=r&&(s[r]=null);for(r in o)"areEquivPropertyTracking"!=r&&(s[r]=null);for(r in s)if(!this.areEquivalent(t[r],o[r]))return!1;return!0}finally{i&&delete t.areEquivPropertyTracking,n&&delete o.areEquivPropertyTracking}},e}()},43460:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(72493),l=o(42664),p=o(33467),u=o(98239),c=o(24463),d=o(44081),h=o(45727),f=o(83423),g="\r\n",m=function(e){function t(t){var o=e.call(this,{columnController:t.columnController,valueService:t.valueService,gridOptionsWrapper:t.gridOptionsWrapper,processCellCallback:t.processCellCallback,processHeaderCallback:t.processHeaderCallback})||this;o.result="",o.lineOpened=!1;var i=t.suppressQuotes,n=t.columnSeparator;return o.suppressQuotes=i,o.columnSeparator=n,o}return n(t,e),t.prototype.prepare=function(e){},t.prototype.addCustomHeader=function(e){e&&(this.result+=e+g)},t.prototype.addCustomFooter=function(e){e&&(this.result+=e+g)},t.prototype.onNewHeaderGroupingRow=function(){return this.lineOpened&&(this.result+=g),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,t,o){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(e,this.suppressQuotes);for(var i=1;i<=o;i++)this.result+=this.columnSeparator+this.putInQuotes("",this.suppressQuotes);this.lineOpened=!0},t.prototype.onNewHeaderRow=function(){return this.lineOpened&&(this.result+=g),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,t,o){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e),this.suppressQuotes),this.lineOpened=!0},t.prototype.onNewBodyRow=function(){return this.lineOpened&&(this.result+=g),{onColumn:this.onNewBodyRowColumn.bind(this)}},t.prototype.onNewBodyRowColumn=function(e,t,o){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(e,t,h.Constants.EXPORT_TYPE_CSV,o),this.suppressQuotes),this.lineOpened=!0},t.prototype.putInQuotes=function(e,t){return t?e:null==e?'""':("string"==typeof e?o=e:"function"==typeof e.toString?o=e.toString():(console.warn("unknown value type during csv conversion"),o=""),'"'+o.replace(/"/g,'""')+'"');var o},t.prototype.parse=function(){return this.result},t}(l.BaseGridSerializingSession);t.CsvSerializingSession=m;var y=function(){function e(){}return e.prototype.setBeans=function(e){this.beans=e},e.prototype.export=function(e){if(this.isExportSuppressed())return console.warn("ag-grid: Export cancelled. Export is not allowed as per your configuration."),"";var t=this.getMergedParamsAndData(e),o=t.mergedParams,i=t.data,n=o&&o.fileName&&0!==o.fileName.length?o.fileName:this.getDefaultFileName();return-1===n.indexOf(".")&&(n=n+"."+this.getDefaultFileExtension()),this.beans.downloader.download(n,this.packageFile(i)),i},e.prototype.getData=function(e){return this.getMergedParamsAndData(e).data},e.prototype.getMergedParamsAndData=function(e){var t=this.mergeDefaultParams(e);return{mergedParams:t,data:this.beans.gridSerializer.serialize(this.createSerializingSession(t),t)}},e.prototype.mergeDefaultParams=function(e){var t=this.beans.gridOptionsWrapper.getDefaultExportParams(),o={};return f._.assign(o,t),f._.assign(o,e),o},e.prototype.packageFile=function(e){return new Blob(["\ufeff",e],{type:window.navigator.msSaveOrOpenBlob?this.getMimeType():"octet/stream"})},e}();t.BaseCreator=y;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.postConstruct=function(){this.setBeans({downloader:this.downloader,gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e){return this.getData(e)},t.prototype.getMimeType=function(){return"text/csv;charset=utf-8;"},t.prototype.getDefaultFileName=function(){return"export.csv"},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var t=this,o=t.columnController,i=t.valueService,n=t.gridOptionsWrapper,r=e,s=r.processCellCallback,a=r.processHeaderCallback,l=r.suppressQuotes,p=r.columnSeparator;return new m({columnController:o,valueService:i,gridOptionsWrapper:n,processCellCallback:s||void 0,processHeaderCallback:a||void 0,suppressQuotes:l||!1,columnSeparator:p||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},r([a.Autowired("columnController"),s("design:type",u.ColumnController)],t.prototype,"columnController",void 0),r([a.Autowired("valueService"),s("design:type",c.ValueService)],t.prototype,"valueService",void 0),r([a.Autowired("downloader"),s("design:type",p.Downloader)],t.prototype,"downloader",void 0),r([a.Autowired("gridSerializer"),s("design:type",l.GridSerializer)],t.prototype,"gridSerializer",void 0),r([a.Autowired("gridOptionsWrapper"),s("design:type",d.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),r([a.Bean("csvCreator")],t)}(y);t.CsvCreator=v},43878:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(26016),a=o(44081),l=o(98239),p=o(7897),u=o(45727),c=o(83423),d=function(){function e(){}var t;return t=e,e.prototype.createAutoGroupColumns=function(e){var t=this,o=[],i=this.gridOptionsWrapper.isTreeData(),n=this.gridOptionsWrapper.isGroupMultiAutoColumn();return i&&n&&(console.warn("ag-Grid: you cannot mix groupMultiAutoColumn with treeData, only one column can be used to display groups when doing tree data"),n=!1),n?e.forEach((function(e,i){o.push(t.createOneAutoGroupColumn(e,i))})):o.push(this.createOneAutoGroupColumn()),o},e.prototype.createOneAutoGroupColumn=function(e,o){var i,n=this.generateDefaultColDef(e);i=e?u.Constants.GROUP_AUTO_COLUMN_ID+"-"+e.getId():t.GROUP_AUTO_COLUMN_BUNDLE_ID;var r=this.gridOptionsWrapper.getAutoGroupColumnDef();c._.mergeDeep(n,r),(n=this.columnFactory.mergeColDefs(n)).colId=i,this.gridOptionsWrapper.isTreeData()||c._.missing(n.field)&&c._.missing(n.valueGetter)&&c._.missing(n.filterValueGetter)&&(n.filter=!1),o&&o>0&&(n.headerCheckboxSelection=!1);var a=new s.Column(n,null,i,!0);return this.context.wireBean(a),a},e.prototype.generateDefaultColDef=function(e){var t=this.gridOptionsWrapper.getAutoGroupColumnDef(),o={headerName:this.gridOptionsWrapper.getLocaleTextFunc()("group","Group"),enableRowGroup:!0};if(t&&(t.cellRenderer||t.cellRendererFramework)||(o.cellRenderer="agGroupCellRenderer"),e){var i=e.getColDef();c._.assign(o,{headerName:this.columnController.getDisplayNameForColumn(e,"header"),headerValueGetter:i.headerValueGetter}),i.cellRenderer&&c._.assign(o,{cellRendererParams:{innerRenderer:i.cellRenderer,innerRendererParams:i.cellRendererParams}}),o.showRowGroup=e.getColId()}else o.showRowGroup=!0;return o},e.GROUP_AUTO_COLUMN_BUNDLE_ID=u.Constants.GROUP_AUTO_COLUMN_ID,i([r.Autowired("gridOptionsWrapper"),n("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("context"),n("design:type",r.Context)],e.prototype,"context",void 0),i([r.Autowired("columnController"),n("design:type",l.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("columnFactory"),n("design:type",p.ColumnFactory)],e.prototype,"columnFactory",void 0),t=i([r.Bean("autoGroupColService")],e)}();t.AutoGroupColService=d},44081:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(60843),a=o(45727),l=o(97156),p=o(40797),u=o(72493),c=o(44871),d=o(98239),h=o(59007),f=o(37789),g=o(80834),m=o(85222),y=o(23801),v=o(96896),C=o(83423);function w(e){return!0===e||"true"===e}var E=function(){function e(){this.propertyEventService=new s.EventService,this.domDataKey="__AG_"+Math.random().toString(),this.layoutElements=[]}var t;return t=e,e.prototype.agWire=function(e,t){this.gridOptions.api=e,this.gridOptions.columnApi=t,this.checkForDeprecated(),this.checkForViolations()},e.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null},e.prototype.init=function(){!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties());var e=this.useAsyncEvents();this.eventService.addGlobalListener(this.globalEventHandler.bind(this),e),this.isGroupSelectsChildren()&&this.isSuppressParentsInRowNodes()&&console.warn("ag-Grid: groupSelectsChildren does not work wth suppressParentsInRowNodes, this selection method needs the part in rowNode to work"),this.isGroupSelectsChildren()&&(this.isRowSelectionMulti()||console.warn("ag-Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense"),this.isRowModelServerSide()&&console.warn("ag-Grid: group selects children is NOT support for Server Side Row Model. This is because the rows are lazy loaded, so selecting a group is not possible asthe grid has no way of knowing what the children are.")),this.isGroupRemoveSingleChildren()&&this.isGroupHideOpenParents()&&console.warn("ag-Grid: groupRemoveSingleChildren and groupHideOpenParents do not work with each other, you need to pick one. And don't ask us how to us these together on our support forum either you will get the same answer!"),this.addEventListener(t.PROP_DOM_LAYOUT,this.updateLayoutClasses.bind(this))},e.prototype.checkColumnDefProperties=function(){var e=this;null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach((function(t){var o=Object.getOwnPropertyNames(t),i=g.ColDefUtil.ALL_PROPERTIES.concat(g.ColDefUtil.FRAMEWORK_PROPERTIES);e.checkProperties(o,i,i,"colDef","https://www.ag-grid.com/javascript-grid-column-properties/")}))},e.prototype.checkGridOptionsProperties=function(){var e=Object.getOwnPropertyNames(this.gridOptions),t=f.PropertyKeys.ALL_PROPERTIES.concat(f.PropertyKeys.FRAMEWORK_PROPERTIES);Object.keys(m.Events).forEach((function(e){return t.push(l.ComponentUtil.getCallbackForEvent(m.Events[e]))}));var o=t.concat("api","columnApi");this.checkProperties(e,o,t,"gridOptions","https://www.ag-grid.com/javascript-grid-properties/")},e.prototype.checkProperties=function(e,t,o,i,n){var r=C._.fuzzyCheckStrings(e,t,o),s=Object.keys(r);s.forEach((function(e){var t=r[e];console.warn("ag-grid: invalid "+i+" property '"+e+"' did you mean any of these: "+t.slice(0,8).join(","))})),s.length>0&&console.warn("ag-grid: to see all the valid "+i+" properties please check: "+n)},e.prototype.getDomData=function(e,t){var o=e[this.domDataKey];if(o)return o[t]},e.prototype.setDomData=function(e,t,o){var i=e[this.domDataKey];C._.missing(i)&&(i={},e[this.domDataKey]=i),i[t]=o},e.prototype.isEnterprise=function(){return this.enterprise},e.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},e.prototype.isRowDeselection=function(){return w(this.gridOptions.rowDeselection)},e.prototype.isRowSelectionMulti=function(){return"multiple"===this.gridOptions.rowSelection},e.prototype.isRowMultiSelectWithClick=function(){return w(this.gridOptions.rowMultiSelectWithClick)},e.prototype.getContext=function(){return this.gridOptions.context},e.prototype.isPivotMode=function(){return w(this.gridOptions.pivotMode)},e.prototype.isPivotTotals=function(){return w(this.gridOptions.pivotTotals)},e.prototype.getPivotColumnGroupTotals=function(){return this.gridOptions.pivotColumnGroupTotals},e.prototype.getPivotRowTotals=function(){return this.gridOptions.pivotRowTotals},e.prototype.isRowModelInfinite=function(){return this.gridOptions.rowModelType===a.Constants.ROW_MODEL_TYPE_INFINITE},e.prototype.isRowModelViewport=function(){return this.gridOptions.rowModelType===a.Constants.ROW_MODEL_TYPE_VIEWPORT},e.prototype.isRowModelServerSide=function(){return this.gridOptions.rowModelType===a.Constants.ROW_MODEL_TYPE_SERVER_SIDE},e.prototype.isRowModelDefault=function(){return C._.missing(this.gridOptions.rowModelType)||this.gridOptions.rowModelType===a.Constants.ROW_MODEL_TYPE_CLIENT_SIDE||this.gridOptions.rowModelType===a.Constants.DEPRECATED_ROW_MODEL_TYPE_NORMAL},e.prototype.isFullRowEdit=function(){return"fullRow"===this.gridOptions.editType},e.prototype.isSuppressFocusAfterRefresh=function(){return w(this.gridOptions.suppressFocusAfterRefresh)},e.prototype.isSuppressBrowserResizeObserver=function(){return w(this.gridOptions.suppressBrowserResizeObserver)},e.prototype.isSuppressMaintainUnsortedOrder=function(){return w(this.gridOptions.suppressMaintainUnsortedOrder)},e.prototype.isShowToolPanel=function(){return w(this.gridOptions.sideBar&&Array.isArray(this.getSideBar().toolPanels))},e.prototype.getSideBar=function(){return this.gridOptions.sideBar},e.prototype.isSuppressTouch=function(){return w(this.gridOptions.suppressTouch)},e.prototype.isSuppressRowTransform=function(){return w(this.gridOptions.suppressRowTransform)},e.prototype.isSuppressSetColumnStateEvents=function(){return w(this.gridOptions.suppressSetColumnStateEvents)},e.prototype.useAsyncEvents=function(){return!w(this.gridOptions.suppressAsyncEvents)},e.prototype.isEnableCellChangeFlash=function(){return w(this.gridOptions.enableCellChangeFlash)},e.prototype.isGroupSelectsChildren=function(){var e=w(this.gridOptions.groupSelectsChildren);return e&&this.isTreeData()?(console.warn("ag-Grid: groupSelectsChildren does not work with tree data"),!1):e},e.prototype.isSuppressRowHoverHighlight=function(){return w(this.gridOptions.suppressRowHoverHighlight)},e.prototype.isGroupSelectsFiltered=function(){return w(this.gridOptions.groupSelectsFiltered)},e.prototype.isGroupHideOpenParents=function(){return w(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupMultiAutoColumn=function(){return w(this.gridOptions.groupMultiAutoColumn)||w(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupRemoveSingleChildren=function(){return w(this.gridOptions.groupRemoveSingleChildren)},e.prototype.isGroupRemoveLowestSingleChildren=function(){return w(this.gridOptions.groupRemoveLowestSingleChildren)},e.prototype.isGroupIncludeFooter=function(){return w(this.gridOptions.groupIncludeFooter)},e.prototype.isGroupIncludeTotalFooter=function(){return w(this.gridOptions.groupIncludeTotalFooter)},e.prototype.isGroupSuppressBlankHeader=function(){return w(this.gridOptions.groupSuppressBlankHeader)},e.prototype.isSuppressRowClickSelection=function(){return w(this.gridOptions.suppressRowClickSelection)},e.prototype.isSuppressCellSelection=function(){return w(this.gridOptions.suppressCellSelection)},e.prototype.isSuppressMultiSort=function(){return w(this.gridOptions.suppressMultiSort)},e.prototype.isMultiSortKeyCtrl=function(){return"ctrl"===this.gridOptions.multiSortKey},e.prototype.isGroupSuppressAutoColumn=function(){return w(this.gridOptions.groupSuppressAutoColumn)},e.prototype.isSuppressDragLeaveHidesColumns=function(){return w(this.gridOptions.suppressDragLeaveHidesColumns)},e.prototype.isSuppressScrollOnNewData=function(){return w(this.gridOptions.suppressScrollOnNewData)},e.prototype.isRowDragManaged=function(){return w(this.gridOptions.rowDragManaged)},e.prototype.isSuppressRowDrag=function(){return w(this.gridOptions.suppressRowDrag)},e.prototype.getDomLayout=function(){var e=this,t=this.gridOptions.domLayout;return t===a.Constants.DOM_LAYOUT_PRINT||t===a.Constants.DOM_LAYOUT_AUTO_HEIGHT||t===a.Constants.DOM_LAYOUT_NORMAL?t:(null==t||C._.doOnce((function(){return console.warn("ag-Grid: "+e.gridOptions.domLayout+" is not valid for DOM Layout, valid values are "+a.Constants.DOM_LAYOUT_NORMAL+", "+a.Constants.DOM_LAYOUT_AUTO_HEIGHT+" and "+a.Constants.DOM_LAYOUT_PRINT)}),"warn about dom layout values"),a.Constants.DOM_LAYOUT_NORMAL)},e.prototype.isSuppressHorizontalScroll=function(){return w(this.gridOptions.suppressHorizontalScroll)},e.prototype.isSuppressMaxRenderedRowRestriction=function(){return w(this.gridOptions.suppressMaxRenderedRowRestriction)},e.prototype.isExcludeChildrenWhenTreeDataFiltering=function(){return w(this.gridOptions.excludeChildrenWhenTreeDataFiltering)},e.prototype.isAlwaysShowVerticalScroll=function(){return w(this.gridOptions.alwaysShowVerticalScroll)},e.prototype.isSuppressLoadingOverlay=function(){return w(this.gridOptions.suppressLoadingOverlay)},e.prototype.isSuppressNoRowsOverlay=function(){return w(this.gridOptions.suppressNoRowsOverlay)},e.prototype.isSuppressFieldDotNotation=function(){return w(this.gridOptions.suppressFieldDotNotation)},e.prototype.getPinnedTopRowData=function(){return this.gridOptions.pinnedTopRowData},e.prototype.getPinnedBottomRowData=function(){return this.gridOptions.pinnedBottomRowData},e.prototype.isFunctionsPassive=function(){return w(this.gridOptions.functionsPassive)},e.prototype.isSuppressTabbing=function(){return w(this.gridOptions.suppressTabbing)},e.prototype.isSuppressChangeDetection=function(){return w(this.gridOptions.suppressChangeDetection)},e.prototype.isSuppressAnimationFrame=function(){return w(this.gridOptions.suppressAnimationFrame)},e.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText},e.prototype.isCacheQuickFilter=function(){return w(this.gridOptions.cacheQuickFilter)},e.prototype.isUnSortIcon=function(){return w(this.gridOptions.unSortIcon)},e.prototype.isSuppressMenuHide=function(){return w(this.gridOptions.suppressMenuHide)},e.prototype.isEnterMovesDownAfterEdit=function(){return w(this.gridOptions.enterMovesDownAfterEdit)},e.prototype.isEnterMovesDown=function(){return w(this.gridOptions.enterMovesDown)},e.prototype.getRowStyle=function(){return this.gridOptions.rowStyle},e.prototype.getRowClass=function(){return this.gridOptions.rowClass},e.prototype.getRowStyleFunc=function(){return this.gridOptions.getRowStyle},e.prototype.getRowClassFunc=function(){return this.gridOptions.getRowClass},e.prototype.rowClassRules=function(){return this.gridOptions.rowClassRules},e.prototype.getPopupParent=function(){return this.gridOptions.popupParent},e.prototype.getBlockLoadDebounceMillis=function(){return this.gridOptions.blockLoadDebounceMillis},e.prototype.getPostProcessPopupFunc=function(){return this.gridOptions.postProcessPopup},e.prototype.getDoesDataFlowerFunc=function(){return this.gridOptions.doesDataFlower},e.prototype.getPaginationNumberFormatterFunc=function(){return this.gridOptions.paginationNumberFormatter},e.prototype.getChildCountFunc=function(){return this.gridOptions.getChildCount},e.prototype.getDefaultGroupSortComparator=function(){return this.gridOptions.defaultGroupSortComparator},e.prototype.getIsFullWidthCellFunc=function(){return this.gridOptions.isFullWidthCell},e.prototype.getFullWidthCellRendererParams=function(){return this.gridOptions.fullWidthCellRendererParams},e.prototype.isEmbedFullWidthRows=function(){return w(this.gridOptions.deprecatedEmbedFullWidthRows)},e.prototype.getSuppressKeyboardEventFunc=function(){return this.gridOptions.suppressKeyboardEvent},e.prototype.getBusinessKeyForNodeFunc=function(){return this.gridOptions.getBusinessKeyForNode},e.prototype.getApi=function(){return this.gridOptions.api},e.prototype.getColumnApi=function(){return this.gridOptions.columnApi},e.prototype.isDeltaRowDataMode=function(){return w(this.gridOptions.deltaRowDataMode)},e.prototype.isDeltaColumnMode=function(){return w(this.gridOptions.deltaColumnMode)},e.prototype.isEnsureDomOrder=function(){return w(this.gridOptions.ensureDomOrder)},e.prototype.isEnableCharts=function(){return w(this.gridOptions.enableCharts)},e.prototype.getColResizeDefault=function(){return this.gridOptions.colResizeDefault},e.prototype.isSingleClickEdit=function(){return w(this.gridOptions.singleClickEdit)},e.prototype.isSuppressClickEdit=function(){return w(this.gridOptions.suppressClickEdit)},e.prototype.isStopEditingWhenGridLosesFocus=function(){return w(this.gridOptions.stopEditingWhenGridLosesFocus)},e.prototype.getGroupDefaultExpanded=function(){return this.gridOptions.groupDefaultExpanded},e.prototype.getMaxConcurrentDatasourceRequests=function(){return this.gridOptions.maxConcurrentDatasourceRequests},e.prototype.getMaxBlocksInCache=function(){return this.gridOptions.maxBlocksInCache},e.prototype.getCacheOverflowSize=function(){return this.gridOptions.cacheOverflowSize},e.prototype.getPaginationPageSize=function(){return this.gridOptions.paginationPageSize},e.prototype.getCacheBlockSize=function(){return this.gridOptions.cacheBlockSize},e.prototype.getInfiniteInitialRowCount=function(){return this.gridOptions.infiniteInitialRowCount},e.prototype.isPurgeClosedRowNodes=function(){return w(this.gridOptions.purgeClosedRowNodes)},e.prototype.isSuppressPaginationPanel=function(){return w(this.gridOptions.suppressPaginationPanel)},e.prototype.getRowData=function(){return this.gridOptions.rowData},e.prototype.isGroupUseEntireRow=function(){return w(this.gridOptions.groupUseEntireRow)},e.prototype.isEnableRtl=function(){return w(this.gridOptions.enableRtl)},e.prototype.getAutoGroupColumnDef=function(){return this.gridOptions.autoGroupColumnDef},e.prototype.isGroupSuppressRow=function(){return w(this.gridOptions.groupSuppressRow)},e.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow},e.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow},e.prototype.isAngularCompileRows=function(){return w(this.gridOptions.angularCompileRows)},e.prototype.isAngularCompileFilters=function(){return w(this.gridOptions.angularCompileFilters)},e.prototype.isAngularCompileHeaders=function(){return w(this.gridOptions.angularCompileHeaders)},e.prototype.isDebug=function(){return w(this.gridOptions.debug)},e.prototype.getColumnDefs=function(){return this.gridOptions.columnDefs},e.prototype.getColumnTypes=function(){return this.gridOptions.columnTypes},e.prototype.getDatasource=function(){return this.gridOptions.datasource},e.prototype.getViewportDatasource=function(){return this.gridOptions.viewportDatasource},e.prototype.getServerSideDatasource=function(){return this.gridOptions.serverSideDatasource},e.prototype.isAccentedSort=function(){return w(this.gridOptions.accentedSort)},e.prototype.isEnableBrowserTooltips=function(){return w(this.gridOptions.enableBrowserTooltips)},e.prototype.isEnableCellExpressions=function(){return w(this.gridOptions.enableCellExpressions)},e.prototype.isEnableGroupEdit=function(){return w(this.gridOptions.enableGroupEdit)},e.prototype.isSuppressMiddleClickScrolls=function(){return w(this.gridOptions.suppressMiddleClickScrolls)},e.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return w(this.gridOptions.suppressPreventDefaultOnMouseWheel)},e.prototype.isSuppressColumnVirtualisation=function(){return w(this.gridOptions.suppressColumnVirtualisation)},e.prototype.isSuppressContextMenu=function(){return w(this.gridOptions.suppressContextMenu)},e.prototype.isAllowContextMenuWithControlKey=function(){return w(this.gridOptions.allowContextMenuWithControlKey)},e.prototype.isSuppressCopyRowsToClipboard=function(){return w(this.gridOptions.suppressCopyRowsToClipboard)},e.prototype.isCopyHeadersToClipboard=function(){return w(this.gridOptions.copyHeadersToClipboard)},e.prototype.isSuppressClipboardPaste=function(){return w(this.gridOptions.suppressClipboardPaste)},e.prototype.isPagination=function(){return w(this.gridOptions.pagination)},e.prototype.isSuppressEnterpriseResetOnNewColumns=function(){return w(this.gridOptions.suppressEnterpriseResetOnNewColumns)},e.prototype.getProcessDataFromClipboardFunc=function(){return this.gridOptions.processDataFromClipboard},e.prototype.getBatchUpdateWaitMillis=function(){return C._.exists(this.gridOptions.batchUpdateWaitMillis)?this.gridOptions.batchUpdateWaitMillis:a.Constants.BATCH_WAIT_MILLIS},e.prototype.isSuppressMovableColumns=function(){return w(this.gridOptions.suppressMovableColumns)},e.prototype.isAnimateRows=function(){return!this.isEnsureDomOrder()&&w(this.gridOptions.animateRows)},e.prototype.isSuppressColumnMoveAnimation=function(){return w(this.gridOptions.suppressColumnMoveAnimation)},e.prototype.isSuppressAggFuncInHeader=function(){return w(this.gridOptions.suppressAggFuncInHeader)},e.prototype.isSuppressAggAtRootLevel=function(){return w(this.gridOptions.suppressAggAtRootLevel)},e.prototype.isEnableRangeSelection=function(){return w(this.gridOptions.enableRangeSelection)},e.prototype.isSuppressMultiRangeSelection=function(){return w(this.gridOptions.suppressMultiRangeSelection)},e.prototype.isPaginationAutoPageSize=function(){return w(this.gridOptions.paginationAutoPageSize)},e.prototype.isRememberGroupStateWhenNewData=function(){return w(this.gridOptions.rememberGroupStateWhenNewData)},e.prototype.getIcons=function(){return this.gridOptions.icons},e.prototype.getAggFuncs=function(){return this.gridOptions.aggFuncs},e.prototype.getSortingOrder=function(){return this.gridOptions.sortingOrder},e.prototype.getAlignedGrids=function(){return this.gridOptions.alignedGrids},e.prototype.isMasterDetail=function(){var e=this,t=w(this.gridOptions.masterDetail);return C._.doOnce((function(){t&&!e.enterprise&&console.warn("ag-grid: Master Detail is an Enterprise feature of ag-Grid.")}),"MasterDetailEnterpriseCheck"),t&&this.enterprise},e.prototype.getIsRowMasterFunc=function(){return this.gridOptions.isRowMaster},e.prototype.getIsRowSelectableFunc=function(){return this.gridOptions.isRowSelectable},e.prototype.getGroupRowRendererParams=function(){return this.gridOptions.groupRowRendererParams},e.prototype.getOverlayLoadingTemplate=function(){return this.gridOptions.overlayLoadingTemplate},e.prototype.getOverlayNoRowsTemplate=function(){return this.gridOptions.overlayNoRowsTemplate},e.prototype.isSuppressAutoSize=function(){return w(this.gridOptions.suppressAutoSize)},e.prototype.isEnableCellTextSelection=function(){return w(this.gridOptions.enableCellTextSelection)},e.prototype.isSuppressParentsInRowNodes=function(){return w(this.gridOptions.suppressParentsInRowNodes)},e.prototype.isFunctionsReadOnly=function(){return w(this.gridOptions.functionsReadOnly)},e.prototype.isFloatingFilter=function(){return this.gridOptions.floatingFilter},e.prototype.isEnableCellTextSelect=function(){return w(this.gridOptions.enableCellTextSelection)},e.prototype.isEnableOldSetFilterModel=function(){return w(this.gridOptions.enableOldSetFilterModel)},e.prototype.getDefaultColDef=function(){return this.gridOptions.defaultColDef},e.prototype.getDefaultColGroupDef=function(){return this.gridOptions.defaultColGroupDef},e.prototype.getDefaultExportParams=function(){return this.gridOptions.defaultExportParams},e.prototype.isSuppressCsvExport=function(){return w(this.gridOptions.suppressCsvExport)},e.prototype.isSuppressExcelExport=function(){return w(this.gridOptions.suppressExcelExport)},e.prototype.isSuppressMakeColumnVisibleAfterUnGroup=function(){return w(this.gridOptions.suppressMakeColumnVisibleAfterUnGroup)},e.prototype.getNodeChildDetailsFunc=function(){return this.gridOptions.getNodeChildDetails},e.prototype.getDataPathFunc=function(){return this.gridOptions.getDataPath},e.prototype.getIsServerSideGroupFunc=function(){return this.gridOptions.isServerSideGroup},e.prototype.getServerSideGroupKeyFunc=function(){return this.gridOptions.getServerSideGroupKey},e.prototype.getGroupRowAggNodesFunc=function(){return this.gridOptions.groupRowAggNodes},e.prototype.getContextMenuItemsFunc=function(){return this.gridOptions.getContextMenuItems},e.prototype.getMainMenuItemsFunc=function(){return this.gridOptions.getMainMenuItems},e.prototype.getRowNodeIdFunc=function(){return this.gridOptions.getRowNodeId},e.prototype.getNavigateToNextCellFunc=function(){return this.gridOptions.navigateToNextCell},e.prototype.getTabToNextCellFunc=function(){return this.gridOptions.tabToNextCell},e.prototype.isTreeData=function(){var e=this,t=w(this.gridOptions.treeData);return C._.doOnce((function(){t&&!e.enterprise&&console.warn("ag-grid: TreeData is an Enterprise feature of ag-Grid.")}),"TreeDataEnterpriseCheck"),t},e.prototype.isValueCache=function(){return w(this.gridOptions.valueCache)},e.prototype.isValueCacheNeverExpires=function(){return w(this.gridOptions.valueCacheNeverExpires)},e.prototype.isDeltaSort=function(){return w(this.gridOptions.deltaSort)},e.prototype.isAggregateOnlyChangedColumns=function(){return w(this.gridOptions.aggregateOnlyChangedColumns)},e.prototype.getProcessSecondaryColDefFunc=function(){return this.gridOptions.processSecondaryColDef},e.prototype.getProcessSecondaryColGroupDefFunc=function(){return this.gridOptions.processSecondaryColGroupDef},e.prototype.getSendToClipboardFunc=function(){return this.gridOptions.sendToClipboard},e.prototype.getProcessRowPostCreateFunc=function(){return this.gridOptions.processRowPostCreate},e.prototype.getProcessCellForClipboardFunc=function(){return this.gridOptions.processCellForClipboard},e.prototype.getProcessHeaderForClipboardFunc=function(){return this.gridOptions.processHeaderForClipboard},e.prototype.getProcessCellFromClipboardFunc=function(){return this.gridOptions.processCellFromClipboard},e.prototype.getViewportRowModelPageSize=function(){return(e=this.gridOptions.viewportRowModelPageSize)>0?e:5;var e},e.prototype.getViewportRowModelBufferSize=function(){return(e=this.gridOptions.viewportRowModelBufferSize)>=0?e:5;var e},e.prototype.isServerSideSortingAlwaysResets=function(){return w(this.gridOptions.serverSideSortingAlwaysResets)},e.prototype.getPostSortFunc=function(){return this.gridOptions.postSort},e.prototype.getClipboardDeliminator=function(){return C._.exists(this.gridOptions.clipboardDeliminator)?this.gridOptions.clipboardDeliminator:"\t"},e.prototype.setProperty=function(e,t){var o=this.gridOptions,i=o[e];if(i!==t){o[e]=t;var n={type:e,currentValue:t,previousValue:i};this.propertyEventService.dispatchEvent(n)}},e.prototype.addLayoutElement=function(e){this.layoutElements.push(e),this.updateLayoutClasses()},e.prototype.updateLayoutClasses=function(){var e=this.getDomLayout(),t=e===a.Constants.DOM_LAYOUT_AUTO_HEIGHT,o=e===a.Constants.DOM_LAYOUT_PRINT,i=e===a.Constants.DOM_LAYOUT_NORMAL;this.layoutElements.forEach((function(e){C._.addOrRemoveCssClass(e,"ag-layout-auto-height",t),C._.addOrRemoveCssClass(e,"ag-layout-normal",i),C._.addOrRemoveCssClass(e,"ag-layout-print",o)}))},e.prototype.addEventListener=function(e,o){t.checkEventDeprecation(e),this.propertyEventService.addEventListener(e,o)},e.checkEventDeprecation=function(e){"floatingRowDataChanged"===e&&console.warn("ag-Grid: floatingRowDataChanged is now called pinnedRowDataChanged")},e.prototype.removeEventListener=function(e,t){this.propertyEventService.removeEventListener(e,t)},e.prototype.getAutoSizePadding=function(){return this.gridOptions.autoSizePadding&&this.gridOptions.autoSizePadding>0?this.gridOptions.autoSizePadding:20},e.prototype.getHeaderHeight=function(){return"number"==typeof this.gridOptions.headerHeight?this.gridOptions.headerHeight:this.specialForNewMaterial(25,"headerHeight")},e.prototype.getFloatingFiltersHeight=function(){return"number"==typeof this.gridOptions.floatingFiltersHeight?this.gridOptions.floatingFiltersHeight:this.specialForNewMaterial(25,"headerHeight")},e.prototype.getGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.groupHeaderHeight?this.gridOptions.groupHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotHeaderHeight?this.gridOptions.pivotHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotGroupHeaderHeight?this.gridOptions.pivotGroupHeaderHeight:this.getGroupHeaderHeight()},e.prototype.isExternalFilterPresent=function(){return"function"==typeof this.gridOptions.isExternalFilterPresent&&this.gridOptions.isExternalFilterPresent()},e.prototype.doesExternalFilterPass=function(e){return"function"==typeof this.gridOptions.doesExternalFilterPass&&this.gridOptions.doesExternalFilterPass(e)},e.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&C._.exists(this.gridOptions.getDocument)&&(e=this.gridOptions.getDocument()),e&&C._.exists(e)?e:document},e.prototype.getMinColWidth=function(){return this.gridOptions.minColWidth&&this.gridOptions.minColWidth>t.MIN_COL_WIDTH?this.gridOptions.minColWidth:t.MIN_COL_WIDTH},e.prototype.getMaxColWidth=function(){return this.gridOptions.maxColWidth&&this.gridOptions.maxColWidth>t.MIN_COL_WIDTH?this.gridOptions.maxColWidth:null},e.prototype.getColWidth=function(){return"number"!=typeof this.gridOptions.colWidth||this.gridOptions.colWidth<t.MIN_COL_WIDTH?200:this.gridOptions.colWidth},e.prototype.getRowBufferInPixels=function(){var e;return"number"==typeof this.gridOptions.rowBuffer?this.gridOptions.rowBuffer<0?(C._.doOnce((function(){return console.warn("ag-Grid: rowBuffer should not be negative")}),"warn rowBuffer negative"),e=0):e=this.gridOptions.rowBuffer:e=a.Constants.ROW_BUFFER_SIZE,e*this.getRowHeightAsNumber()},e.prototype.getScrollbarWidth=function(){var e=this.gridOptions.scrollbarWidth;return("number"!=typeof e||e<0)&&(e=C._.getScrollbarWidth()),e},e.prototype.checkForDeprecated=function(){var e=this,t=this.gridOptions;t.suppressUnSort&&console.warn("ag-grid: as of v1.12.4 suppressUnSort is not used. Please use sortingOrder instead."),t.suppressDescSort&&console.warn("ag-grid: as of v1.12.4 suppressDescSort is not used. Please use sortingOrder instead."),t.groupAggFields&&console.warn("ag-grid: as of v3 groupAggFields is not used. Please add appropriate agg fields to your columns."),t.groupHidePivotColumns&&console.warn("ag-grid: as of v3 groupHidePivotColumns is not used as pivot columns are now called rowGroup columns. Please refer to the documentation"),t.groupKeys&&console.warn("ag-grid: as of v3 groupKeys is not used. You need to set rowGroupIndex on the columns to group. Please refer to the documentation"),"boolean"==typeof t.groupDefaultExpanded&&console.warn("ag-grid: groupDefaultExpanded can no longer be boolean. for groupDefaultExpanded=true, use groupDefaultExpanded=9999 instead, to expand all the groups"),(t.onRowDeselected||t.rowDeselected)&&console.warn("ag-grid: since version 3.4 event rowDeselected no longer exists, please check the docs"),t.rowsAlreadyGrouped&&console.warn("ag-grid: since version 3.4 rowsAlreadyGrouped no longer exists, please use getNodeChildDetails() instead"),t.groupAggFunction&&console.warn("ag-grid: since version 4.3.x groupAggFunction is now called groupRowAggNodes"),t.checkboxSelection&&console.warn("ag-grid: since version 8.0.x checkboxSelection is not supported as a grid option. If you want this on all columns, use defaultColDef instead and set it there"),t.paginationInitialRowCount&&console.warn("ag-grid: since version 9.0.x paginationInitialRowCount is now called infiniteInitialRowCount"),t.infinitePageSize&&console.warn("ag-grid: since version 9.0.x infinitePageSize is now called cacheBlockSize"),t.infiniteBlockSize&&console.warn("ag-grid: since version 10.0.x infiniteBlockSize is now called cacheBlockSize"),t.maxPagesInCache&&console.warn("ag-grid: since version 10.0.x maxPagesInCache is now called maxBlocksInCache"),t.paginationOverflowSize&&console.warn("ag-grid: since version 10.0.x paginationOverflowSize is now called cacheOverflowSize"),t.suppressMenuFilterPanel&&console.warn("ag-grid: since version 11.0.x, use property colDef.menuTabs=['generalMenuTab','columnsMenuTab'] instead of suppressMenuFilterPanel=true"),t.suppressMenuMainPanel&&console.warn("ag-grid: since version 11.0.x, use property colDef.menuTabs=['filterMenuTab','columnsMenuTab'] instead of suppressMenuMainPanel=true"),t.suppressMenuColumnPanel&&console.warn("ag-grid: since version 11.0.x, use property colDef.menuTabs=['generalMenuTab','filterMenuTab'] instead of suppressMenuColumnPanel=true"),t.suppressUseColIdForGroups&&console.warn("ag-grid: since version 11.0.x, this is not in use anymore. You should be able to remove it from your definition"),t.groupSuppressRow&&console.warn("ag-grid: since version 18.2.x, 'groupSuppressRow' should not be used anymore. Instead remove row groups and perform custom sorting."),t.groupColumnDef&&console.warn("ag-grid: since version 11.0.x, groupColumnDef has been renamed, this property is now called autoGroupColumnDef. Please change your configuration accordingly"),t.slaveGrids&&console.warn("ag-grid: since version 12.x, slaveGrids has been renamed, this property is now called alignedGrids. Please change your configuration accordingly"),t.floatingTopRowData&&console.warn("ag-grid: since version 12.x, floatingTopRowData is now called pinnedTopRowData"),t.floatingBottomRowData&&console.warn("ag-grid: since version 12.x, floatingBottomRowData is now called pinnedBottomRowData"),t.paginationStartPage&&console.warn("ag-grid: since version 12.x, paginationStartPage is gone, please call api.paginationGoToPage("+t.paginationStartPage+") instead."),t.getHeaderCellTemplate&&console.warn("ag-grid: since version 15.x, getHeaderCellTemplate is gone, please check the header documentation on how to set header templates."),t.headerCellTemplate&&console.warn("ag-grid: since version 15.x, headerCellTemplate is gone, please check the header documentation on how to set header templates."),t.headerCellRenderer&&console.warn("ag-grid: since version 15.x, headerCellRenderer is gone, please check the header documentation on how to set header templates."),t.angularCompileHeaders&&console.warn("ag-grid: since version 15.x, angularCompileHeaders is gone, please see the getting started for Angular 1 docs to see how to do headers in Angular 1.x."),t.pivotTotals&&(console.warn("ag-grid: since version 18.x, pivotTotals has been removed, instead if using pivotTotals, set pivotColumnGroupTotals='before'|'after'."),t.pivotColumnGroupTotals="before"),"inMemory"===t.rowModelType&&(console.warn("ag-grid: since version 18.x, The In Memory Row Model has been renamed to the Client Side Row Model, set rowModelType='clientSide' instead."),t.rowModelType="clientSide"),"enterprise"===t.rowModelType&&(console.warn("ag-grid: since version 18.x, The Enterprise Row Model has been renamed to the Server Side Row Model, set rowModelType='serverSide' instead."),t.rowModelType="serverSide"),t.layoutInterval&&console.warn("ag-grid: since version 18.x, layoutInterval is no longer a property. This is because the grid now uses CSS Flex for layout."),t.gridAutoHeight&&(console.warn("ag-grid: since version 19.x, gridAutoHeight is gone, please use domLayout=autoHeight instead"),t.domLayout="autoHeight"),!0===t.showToolPanel&&(console.warn("ag-grid: since version 19.x, showToolPanel is gone, please specify toolPanel components. See https://www.ag-grid.com/javascript-grid-tool-panel/"),t.showToolPanel=void 0,t.sideBar=t.sideBar||!0),!1===t.showToolPanel&&(console.warn("ag-grid: since version 19.x, showToolPanel is gone, please specify toolPanel components. See https://www.ag-grid.com/javascript-grid-tool-panel/"),t.showToolPanel=void 0,t.sideBar=t.sideBar||!1);var o={toolPanelSuppressRowGroups:"suppressRowGroups",toolPanelSuppressValues:"suppressValues",toolPanelSuppressPivots:"suppressPivots",toolPanelSuppressPivotMode:"suppressPivotMode",toolPanelSuppressColumnFilter:"suppressColumnFilter",toolPanelSuppressColumnSelectAll:"suppressColumnSelectAll",toolPanelSuppressSideButtons:"suppressSideButtons",toolPanelSuppressColumnExpandAll:"suppressColumnExpandAll",contractColumnSelection:"contractColumnSelection"},i={};Object.keys(o).forEach((function(t){var n=o[t],r=e.gridOptions[t];if(void 0!==r){if("toolPanelSuppressSideButtons"===t)return void console.warn("ag-grid: since v19.0 toolPanelSuppressSideButtons has been completely removed. See https://www.ag-grid.com/javascript-grid-tool-panel/");console.warn("ag-grid: since v19.0 gridOptions."+t+" is deprecated, please use gridOptions.sideBar.toolPanel[columnsIndex].componentParams."+n),i[n]=r}})),Object.keys(i).length>0&&!C._.exists(t.sideBar)&&(console.warn("ag-grid: since version 19.x, sideBar is mandatory if using toolPanel related properties. See https://www.ag-grid.com/javascript-grid-tool-panel/"),t.sideBar=!0),null!=t.sideBar&&(t.sideBar=v.SideBarDefParser.parse(t.sideBar));var n=this.gridOptions.sideBar;if(Object.keys(i).length>0&&n&&n.toolPanels){var r=n.toolPanels.filter((function(e){return"columns"===e.id}));1===r.length&&C._.mergeDeep(r[0],{componentParams:i})}t.enableStatusBar&&(console.warn("ag-grid: since version 19.x, enableStatusBar is gone, please specify statusBar components"),t.statusBar=t.statusBar||{components:[{component:"agAggregationComponent"}]}),t.alwaysShowStatusBar&&console.warn("ag-grid: since version 19.x, alwaysShowStatusBar is gone. Please specify a min-height on the ag-status-bar css class, eg .ag-status-bar {min-height: 35px; }"),(t.enableServerSideSorting||t.enableSorting)&&(console.warn("ag-Grid: since v20, grid options enableSorting and enableServerSideSorting are gone. Instead set sortable=true on the column definition for the columns sorting are allowed on. To migrate from gridOption.enableSorting=true, set gridOptions.defaultColDef.sortable=true"),t.defaultColDef||(t.defaultColDef={}),t.defaultColDef.sortable||(t.defaultColDef.sortable=!0)),(t.enableFilter||t.enableServerSideFilter)&&(console.warn("ag-Grid: since v20, grid options enableFilter and enableServerSideFilter are gone. Instead set filter=true (if not already specifying a specific filter) on the column definition for the columns filtering is allowed on. To migrate from gridOptions.enableFilter=true, set gridOptions.defaultColDef.filter=true. If you are explicitly setting specific filters for each column (ie colDef.filter is already set) the you don't need to do anything."),t.defaultColDef||(t.defaultColDef={}),t.defaultColDef.filter||(t.defaultColDef.filter=!0)),t.enableColResize&&(console.warn("ag-Grid: since v20, grid options enableColResize is gone. Instead set resizable=true on the column definition for the columns resizing are allowed on. To migrate from gridOption.enableColResize=true, set gridOptions.defaultColDef.resizable=true"),t.defaultColDef||(t.defaultColDef={}),t.defaultColDef.resizable||(t.defaultColDef.resizable=!0)),t.embedFullWidthRows&&console.warn("ag-Grid: since v20.1, embedFullWidthRows is now gone. This property was introduced to allow faster vertical scrolling when using slow browsers (IE) and full width rows. However in v20 the dom layout was redesigned and this performance problem no longer exists, hence this property 'hack' is no longer necessary."),t.suppressTabbing&&console.warn("ag-Grid: since v20.1, suppressTabbing is replaced with the more powerful grid callback suppressKeyboardEvent(params) which can suppress any keyboard event including tabbing.")},e.prototype.checkForViolations=function(){this.isTreeData()&&this.treeDataViolations()},e.prototype.treeDataViolations=function(){this.isRowModelDefault()&&C._.missing(this.getDataPathFunc())&&console.warn("ag-Grid: property usingTreeData=true with rowModel=clientSide, but you did not provide getDataPath function, please provide getDataPath function if using tree data."),this.isRowModelServerSide()&&(C._.missing(this.getIsServerSideGroupFunc())&&console.warn("ag-Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide isServerSideGroup function, please provide isServerSideGroup function if using tree data."),C._.missing(this.getServerSideGroupKeyFunc())&&console.warn("ag-Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data."))},e.prototype.getLocaleTextFunc=function(){if(this.gridOptions.localeTextFunc)return this.gridOptions.localeTextFunc;var e=this;return function(t,o){var i=e.gridOptions.localeText;return i&&i[t]?i[t]:o}},e.prototype.globalEventHandler=function(e,t){var o=l.ComponentUtil.getCallbackForEvent(e);"function"==typeof this.gridOptions[o]&&this.gridOptions[o](t)},e.prototype.getRowHeightAsNumber=function(){return!this.gridOptions.rowHeight||C._.missing(this.gridOptions.rowHeight)?this.getDefaultRowHeight():this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:(console.warn("ag-Grid row height must be a number if not using standard row model"),this.getDefaultRowHeight())},e.prototype.getRowHeightForNode=function(e,t){if(void 0===t&&(t=!1),"function"==typeof this.gridOptions.getRowHeight){if(t)return{height:this.getDefaultRowHeight(),estimated:!0};var o={node:e,data:e.data,api:this.gridOptions.api,context:this.gridOptions.context};return{height:this.gridOptions.getRowHeight(o),estimated:!1}}if(e.detail&&this.isMasterDetail())return this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1};var i=this.getDefaultRowHeight(),n=this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:i;if(this.columnController.isAutoRowHeightActive()){if(t)return{height:n,estimated:!0};var r=this.autoHeightCalculator.getPreferredHeightForRow(e);return{height:Math.max(r,i),estimated:!1}}return{height:n,estimated:!1}},e.prototype.isDynamicRowHeight=function(){return"function"==typeof this.gridOptions.getRowHeight},e.prototype.getVirtualItemHeight=function(){return this.specialForNewMaterial(20,"virtualItemHeight")},e.prototype.isNumeric=function(e){return!isNaN(e)&&"number"==typeof e},e.prototype.specialForNewMaterial=function(e,t){var o=this.environment.getTheme();return o&&0===o.indexOf("ag-theme")?this.environment.getSassVariable(o,t):e},e.prototype.getDefaultRowHeight=function(){return this.specialForNewMaterial(25,"rowHeight")},e.MIN_COL_WIDTH=10,e.PROP_HEADER_HEIGHT="headerHeight",e.PROP_GROUP_REMOVE_SINGLE_CHILDREN="groupRemoveSingleChildren",e.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN="groupRemoveLowestSingleChildren",e.PROP_PIVOT_HEADER_HEIGHT="pivotHeaderHeight",e.PROP_SUPPRESS_CLIPBOARD_PASTE="suppressClipboardPaste",e.PROP_GROUP_HEADER_HEIGHT="groupHeaderHeight",e.PROP_PIVOT_GROUP_HEADER_HEIGHT="pivotGroupHeaderHeight",e.PROP_FLOATING_FILTERS_HEIGHT="floatingFiltersHeight",e.PROP_SUPPRESS_ROW_DRAG="suppressRowDrag",e.PROP_POPUP_PARENT="popupParent",e.PROP_DOM_LAYOUT="domLayout",i([u.Autowired("gridOptions"),n("design:type",Object)],e.prototype,"gridOptions",void 0),i([u.Autowired("columnController"),n("design:type",d.ColumnController)],e.prototype,"columnController",void 0),i([u.Autowired("eventService"),n("design:type",s.EventService)],e.prototype,"eventService",void 0),i([u.Autowired("enterprise"),n("design:type",Boolean)],e.prototype,"enterprise",void 0),i([u.Autowired("frameworkFactory"),n("design:type",Object)],e.prototype,"frameworkFactory",void 0),i([u.Autowired("gridApi"),n("design:type",p.GridApi)],e.prototype,"gridApi",void 0),i([u.Autowired("columnApi"),n("design:type",c.ColumnApi)],e.prototype,"columnApi",void 0),i([u.Autowired("environment"),n("design:type",h.Environment)],e.prototype,"environment",void 0),i([u.Autowired("autoHeightCalculator"),n("design:type",y.AutoHeightCalculator)],e.prototype,"autoHeightCalculator",void 0),i([r(0,u.Qualifier("gridApi")),r(1,u.Qualifier("columnApi")),n("design:type",Function),n("design:paramtypes",[p.GridApi,c.ColumnApi]),n("design:returntype",void 0)],e.prototype,"agWire",null),i([u.PreDestroy,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"destroy",null),i([u.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),t=i([u.Bean("gridOptionsWrapper")],e)}();t.GridOptionsWrapper=E},44329:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(83423),s=o(15068),a=function(e){function t(o,i){var n=e.call(this)||this;return n.version=0,n.state=t.STATE_DIRTY,n.rowNodeCacheParams=i,n.blockNumber=o,n.startRow=o*i.blockSize,n.endRow=n.startRow+i.blockSize,n}return n(t,e),t.prototype.isAnyNodeOpen=function(e){var t=!1;return this.forEachNodeCallback((function(e){e.expanded&&(t=!0)}),e),t},t.prototype.forEachNodeCallback=function(e,t){for(var o=this.startRow;o<this.endRow;o++)o<t&&e(this.getRowUsingLocalIndex(o),o)},t.prototype.forEachNode=function(e,t,o,i){this.forEachNodeCallback((function(o){e(o,t.next()),i&&o.childrenCache&&o.childrenCache.forEachNodeDeep(e,t)}),o)},t.prototype.forEachNodeDeep=function(e,t,o){this.forEachNode(e,t,o,!0)},t.prototype.forEachNodeShallow=function(e,t,o){this.forEachNode(e,t,o,!1)},t.prototype.getVersion=function(){return this.version},t.prototype.getLastAccessed=function(){return this.lastAccessed},t.prototype.getRowUsingLocalIndex=function(e,t){void 0===t&&(t=!1),t||(this.lastAccessed=this.rowNodeCacheParams.lastAccessedSequence.next());var o=e-this.startRow;return this.rowNodes[o]},t.prototype.init=function(e){this.beans=e,this.createRowNodes()},t.prototype.getStartRow=function(){return this.startRow},t.prototype.getEndRow=function(){return this.endRow},t.prototype.getBlockNumber=function(){return this.blockNumber},t.prototype.setDirty=function(){this.version++,this.state=t.STATE_DIRTY},t.prototype.setDirtyAndPurge=function(){this.setDirty(),this.rowNodes.forEach((function(e){e.setData(null)}))},t.prototype.getState=function(){return this.state},t.prototype.setRowNode=function(e,t){var o=e-this.startRow;this.rowNodes[o]=t},t.prototype.setBlankRowNode=function(e){var t=e-this.startRow,o=this.createBlankRowNode(e);return this.rowNodes[t]=o,o},t.prototype.setNewData=function(e,t){var o=this.setBlankRowNode(e);return this.setDataAndId(o,t,this.startRow+e),o},t.prototype.createBlankRowNode=function(e){var t=new s.RowNode;return this.beans.context.wireBean(t),t.setRowHeight(this.rowNodeCacheParams.rowHeight),t},t.prototype.createRowNodes=function(){this.rowNodes=[];for(var e=0;e<this.rowNodeCacheParams.blockSize;e++){var t=this.startRow+e,o=this.createBlankRowNode(t);this.rowNodes.push(o)}},t.prototype.load=function(){this.state=t.STATE_LOADING,this.loadFromDatasource()},t.prototype.pageLoadFailed=function(){this.state=t.STATE_FAILED;var e={type:t.EVENT_LOAD_COMPLETE,success:!1,page:this,lastRow:null};this.dispatchEvent(e)},t.prototype.populateWithRowData=function(e){var t=this,o=[];this.rowNodes.forEach((function(i,n){var r=e[n];i.stub&&o.push(i),t.setDataAndId(i,r,t.startRow+n)})),o.length>0&&this.beans.rowRenderer.redrawRows(o)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.rowNodes.forEach((function(e){e.childrenCache&&(e.childrenCache.destroy(),e.childrenCache=null),e.clearRowTop()}))},t.prototype.pageLoaded=function(e,o,i){e===this.version&&(this.state=t.STATE_LOADED,this.populateWithRowData(o)),i=r._.cleanNumber(i);var n={type:t.EVENT_LOAD_COMPLETE,success:!0,page:this,lastRow:i};this.dispatchEvent(n)},t.EVENT_LOAD_COMPLETE="loadComplete",t.STATE_DIRTY="dirty",t.STATE_LOADING="loading",t.STATE_LOADED="loaded",t.STATE_FAILED="failed",t}(o(8534).BeanStub);t.RowNodeBlock=a},44859:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=o(83423);t.defaultGroupComparator=function(e,t,o,n,r){void 0===r&&(r=!1),console.warn("ag-Grid: Since ag-grid 11.0.0 defaultGroupComparator is not necessary. You can remove this from your colDef");var s=i._.exists(o)&&o.group,a=i._.exists(n)&&n.group,l=!s&&!a;return s&&a?i._.defaultComparator(o.key,n.key,r):l?i._.defaultComparator(e,t,r):s?1:-1}},44871:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(98239),s=o(72493),a=function(){function e(){}return e.prototype.sizeColumnsToFit=function(e){this.columnController.sizeColumnsToFit(e,"api")},e.prototype.setColumnGroupOpened=function(e,t){this.columnController.setColumnGroupOpened(e,t,"api")},e.prototype.getColumnGroup=function(e,t){return this.columnController.getColumnGroup(e,t)},e.prototype.getOriginalColumnGroup=function(e){return this.columnController.getOriginalColumnGroup(e)},e.prototype.getDisplayNameForColumn=function(e,t){return this.columnController.getDisplayNameForColumn(e,t)},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this.columnController.getDisplayNameForColumnGroup(e,t)},e.prototype.getColumn=function(e){return this.columnController.getPrimaryColumn(e)},e.prototype.setColumnState=function(e){return this.columnController.setColumnState(e,!1,"api")},e.prototype.getColumnState=function(){return this.columnController.getColumnState()},e.prototype.resetColumnState=function(){this.columnController.resetColumnState(!1,"api")},e.prototype.getColumnGroupState=function(){return this.columnController.getColumnGroupState()},e.prototype.setColumnGroupState=function(e){this.columnController.setColumnGroupState(e,"api")},e.prototype.resetColumnGroupState=function(){this.columnController.resetColumnGroupState("api")},e.prototype.isPinning=function(){return this.columnController.isPinningLeft()||this.columnController.isPinningRight()},e.prototype.isPinningLeft=function(){return this.columnController.isPinningLeft()},e.prototype.isPinningRight=function(){return this.columnController.isPinningRight()},e.prototype.getDisplayedColAfter=function(e){return this.columnController.getDisplayedColAfter(e)},e.prototype.getDisplayedColBefore=function(e){return this.columnController.getDisplayedColBefore(e)},e.prototype.setColumnVisible=function(e,t){this.columnController.setColumnVisible(e,t,"api")},e.prototype.setColumnsVisible=function(e,t){this.columnController.setColumnsVisible(e,t,"api")},e.prototype.setColumnPinned=function(e,t){this.columnController.setColumnPinned(e,t,"api")},e.prototype.setColumnsPinned=function(e,t){this.columnController.setColumnsPinned(e,t,"api")},e.prototype.getAllColumns=function(){return this.columnController.getAllPrimaryColumns()},e.prototype.getAllGridColumns=function(){return this.columnController.getAllGridColumns()},e.prototype.getDisplayedLeftColumns=function(){return this.columnController.getDisplayedLeftColumns()},e.prototype.getDisplayedCenterColumns=function(){return this.columnController.getDisplayedCenterColumns()},e.prototype.getDisplayedRightColumns=function(){return this.columnController.getDisplayedRightColumns()},e.prototype.getAllDisplayedColumns=function(){return this.columnController.getAllDisplayedColumns()},e.prototype.getAllDisplayedVirtualColumns=function(){return this.columnController.getAllDisplayedVirtualColumns()},e.prototype.moveColumn=function(e,t){"number"==typeof e?(console.warn("ag-Grid: you are using moveColumn(fromIndex, toIndex) - moveColumn takes a column key and a destination index, not two indexes, to move with indexes use moveColumnByIndex(from,to) instead"),this.columnController.moveColumnByIndex(e,t,"api")):this.columnController.moveColumn(e,t,"api")},e.prototype.moveColumnByIndex=function(e,t){this.columnController.moveColumnByIndex(e,t,"api")},e.prototype.moveColumns=function(e,t){this.columnController.moveColumns(e,t,"api")},e.prototype.moveRowGroupColumn=function(e,t){this.columnController.moveRowGroupColumn(e,t)},e.prototype.setColumnAggFunc=function(e,t){this.columnController.setColumnAggFunc(e,t)},e.prototype.setColumnWidth=function(e,t,o){void 0===o&&(o=!0),this.columnController.setColumnWidth(e,t,!1,o)},e.prototype.setPivotMode=function(e){this.columnController.setPivotMode(e)},e.prototype.isPivotMode=function(){return this.columnController.isPivotMode()},e.prototype.getSecondaryPivotColumn=function(e,t){return this.columnController.getSecondaryPivotColumn(e,t)},e.prototype.setValueColumns=function(e){this.columnController.setValueColumns(e,"api")},e.prototype.getValueColumns=function(){return this.columnController.getValueColumns()},e.prototype.removeValueColumn=function(e){this.columnController.removeValueColumn(e,"api")},e.prototype.removeValueColumns=function(e){this.columnController.removeValueColumns(e,"api")},e.prototype.addValueColumn=function(e){this.columnController.addValueColumn(e,"api")},e.prototype.addValueColumns=function(e){this.columnController.addValueColumns(e,"api")},e.prototype.setRowGroupColumns=function(e){this.columnController.setRowGroupColumns(e,"api")},e.prototype.removeRowGroupColumn=function(e){this.columnController.removeRowGroupColumn(e,"api")},e.prototype.removeRowGroupColumns=function(e){this.columnController.removeRowGroupColumns(e,"api")},e.prototype.addRowGroupColumn=function(e){this.columnController.addRowGroupColumn(e,"api")},e.prototype.addRowGroupColumns=function(e){this.columnController.addRowGroupColumns(e,"api")},e.prototype.getRowGroupColumns=function(){return this.columnController.getRowGroupColumns()},e.prototype.setPivotColumns=function(e){this.columnController.setPivotColumns(e,"api")},e.prototype.removePivotColumn=function(e){this.columnController.removePivotColumn(e,"api")},e.prototype.removePivotColumns=function(e){this.columnController.removePivotColumns(e,"api")},e.prototype.addPivotColumn=function(e){this.columnController.addPivotColumn(e,"api")},e.prototype.addPivotColumns=function(e){this.columnController.addPivotColumns(e,"api")},e.prototype.getPivotColumns=function(){return this.columnController.getPivotColumns()},e.prototype.getLeftDisplayedColumnGroups=function(){return this.columnController.getLeftDisplayedColumnGroups()},e.prototype.getCenterDisplayedColumnGroups=function(){return this.columnController.getCenterDisplayedColumnGroups()},e.prototype.getRightDisplayedColumnGroups=function(){return this.columnController.getRightDisplayedColumnGroups()},e.prototype.getAllDisplayedColumnGroups=function(){return this.columnController.getAllDisplayedColumnGroups()},e.prototype.autoSizeColumn=function(e){return this.columnController.autoSizeColumn(e,"api")},e.prototype.autoSizeColumns=function(e){return this.columnController.autoSizeColumns(e,"api")},e.prototype.autoSizeAllColumns=function(){this.columnController.autoSizeAllColumns("api")},e.prototype.setSecondaryColumns=function(e){this.columnController.setSecondaryColumns(e,"api")},e.prototype.getSecondaryColumns=function(){return this.columnController.getSecondaryColumns()},e.prototype.getPrimaryColumns=function(){return this.columnController.getAllPrimaryColumns()},e.prototype.columnGroupOpened=function(e,t){console.error("ag-Grid: columnGroupOpened no longer exists, use setColumnGroupOpened"),this.setColumnGroupOpened(e,t)},e.prototype.hideColumns=function(e,t){console.error("ag-Grid: hideColumns is deprecated, use setColumnsVisible"),this.columnController.setColumnsVisible(e,!t,"api")},e.prototype.hideColumn=function(e,t){console.error("ag-Grid: hideColumn is deprecated, use setColumnVisible"),this.columnController.setColumnVisible(e,!t,"api")},e.prototype.setState=function(e){return console.error("ag-Grid: setState is deprecated, use setColumnState"),this.setColumnState(e)},e.prototype.getState=function(){return console.error("ag-Grid: getState is deprecated, use getColumnState"),this.getColumnState()},e.prototype.resetState=function(){console.error("ag-Grid: resetState is deprecated, use resetColumnState"),this.resetColumnState()},e.prototype.getAggregationColumns=function(){return console.error("ag-Grid: getAggregationColumns is deprecated, use getValueColumns"),this.columnController.getValueColumns()},e.prototype.removeAggregationColumn=function(e){console.error("ag-Grid: removeAggregationColumn is deprecated, use removeValueColumn"),this.columnController.removeValueColumn(e,"api")},e.prototype.removeAggregationColumns=function(e){console.error("ag-Grid: removeAggregationColumns is deprecated, use removeValueColumns"),this.columnController.removeValueColumns(e,"api")},e.prototype.addAggregationColumn=function(e){console.error("ag-Grid: addAggregationColumn is deprecated, use addValueColumn"),this.columnController.addValueColumn(e,"api")},e.prototype.addAggregationColumns=function(e){console.error("ag-Grid: addAggregationColumns is deprecated, use addValueColumns"),this.columnController.addValueColumns(e,"api")},e.prototype.setColumnAggFunction=function(e,t){console.error("ag-Grid: setColumnAggFunction is deprecated, use setColumnAggFunc"),this.columnController.setColumnAggFunc(e,t,"api")},e.prototype.getDisplayNameForCol=function(e){return console.error("ag-Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn"),this.getDisplayNameForColumn(e,null)},i([s.Autowired("columnController"),n("design:type",r.ColumnController)],e.prototype,"columnController",void 0),i([s.Bean("columnApi")],e)}();t.ColumnApi=a},45697:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a,l=o(44081),p=o(72493),u=o(22131),c=o(85910),d=o(47721),h=o(83423);!function(e){e[e.Loading=0]="Loading",e[e.NoRows=1]="NoRows"}(a||(a={}));var f=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return n(t,e),t.prototype.postConstruct=function(){this.gridOptionsWrapper.addLayoutElement(this.eOverlayWrapper),this.setVisible(!1)},t.prototype.setWrapperTypeClass=function(e){h._.addOrRemoveCssClass(this.eOverlayWrapper,"ag-overlay-loading-wrapper",e===a.Loading),h._.addOrRemoveCssClass(this.eOverlayWrapper,"ag-overlay-no-rows-wrapper",e===a.NoRows)},t.prototype.showLoadingOverlay=function(){var e=this;this.setWrapperTypeClass(a.Loading),this.destroyActiveOverlay();var t={api:this.gridOptionsWrapper.getApi()};this.userComponentFactory.newLoadingOverlayComponent(t).then((function(t){e.eOverlayWrapper.appendChild(t.getGui()),e.activeOverlay=t})),this.setVisible(!0)},t.prototype.showNoRowsOverlay=function(){var e=this;this.setWrapperTypeClass(a.NoRows),this.destroyActiveOverlay();var t={api:this.gridOptionsWrapper.getApi()};this.userComponentFactory.newNoRowsOverlayComponent(t).then((function(t){e.eOverlayWrapper.appendChild(t.getGui()),e.activeOverlay=t})),this.setVisible(!0)},t.prototype.destroyActiveOverlay=function(){this.activeOverlay&&(this.activeOverlay.destroy&&this.activeOverlay.destroy(),this.activeOverlay=void 0,h._.clearElement(this.eOverlayWrapper))},t.prototype.hideOverlay=function(){this.destroyActiveOverlay(),this.setVisible(!1)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.destroyActiveOverlay()},t.TEMPLATE='<div class="ag-overlay">\n <div class="ag-overlay-panel" role="presentation">\n <div class="ag-overlay-wrapper" ref="eOverlayWrapper"></div>\n </div>\n </div>',r([p.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([p.Autowired("userComponentFactory"),s("design:type",c.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),r([d.RefSelector("eOverlayWrapper"),s("design:type",HTMLElement)],t.prototype,"eOverlayWrapper",void 0),r([p.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(u.Component);t.OverlayWrapperComponent=f},45727:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.STEP_EVERYTHING=0,e.STEP_FILTER=1,e.STEP_SORT=2,e.STEP_MAP=3,e.STEP_AGGREGATE=4,e.STEP_PIVOT=5,e.ROW_BUFFER_SIZE=10,e.LAYOUT_INTERVAL=500,e.BATCH_WAIT_MILLIS=50,e.EXPORT_TYPE_DRAG_COPY="dragCopy",e.EXPORT_TYPE_CLIPBOARD="clipboard",e.EXPORT_TYPE_EXCEL="excel",e.EXPORT_TYPE_CSV="csv",e.KEY_BACKSPACE=8,e.KEY_TAB=9,e.KEY_NEW_LINE=10,e.KEY_ENTER=13,e.KEY_SHIFT=16,e.KEY_ESCAPE=27,e.KEY_SPACE=32,e.KEY_LEFT=37,e.KEY_UP=38,e.KEY_RIGHT=39,e.KEY_DOWN=40,e.KEY_DELETE=46,e.KEY_A=65,e.KEY_C=67,e.KEY_V=86,e.KEY_D=68,e.KEY_F2=113,e.KEY_PAGE_UP=33,e.KEY_PAGE_DOWN=34,e.KEY_PAGE_HOME=36,e.KEY_PAGE_END=35,e.ROW_MODEL_TYPE_INFINITE="infinite",e.ROW_MODEL_TYPE_VIEWPORT="viewport",e.ROW_MODEL_TYPE_CLIENT_SIDE="clientSide",e.ROW_MODEL_TYPE_SERVER_SIDE="serverSide",e.DEPRECATED_ROW_MODEL_TYPE_NORMAL="normal",e.ALWAYS="always",e.ONLY_WHEN_GROUPING="onlyWhenGrouping",e.PINNED_TOP="top",e.PINNED_BOTTOM="bottom",e.DOM_LAYOUT_NORMAL="normal",e.DOM_LAYOUT_PRINT="print",e.DOM_LAYOUT_AUTO_HEIGHT="autoHeight",e.GROUP_AUTO_COLUMN_ID="ag-Grid-AutoColumn",e}();t.Constants=o},46379:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.isPopup=function(){return!0},t}(o(22131).Component);t.PopupComponent=r},47008:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=void 0===o.g?{}:o.g;i.HTMLElement="undefined"==typeof HTMLElement?{}:HTMLElement,i.HTMLButtonElement="undefined"==typeof HTMLButtonElement?{}:HTMLButtonElement,i.HTMLSelectElement="undefined"==typeof HTMLSelectElement?{}:HTMLSelectElement,i.HTMLInputElement="undefined"==typeof HTMLInputElement?{}:HTMLInputElement,i.Node="undefined"==typeof Node?{}:Node,i.MouseEvent="undefined"==typeof MouseEvent?{}:MouseEvent;var n=o(7897);t.ColumnFactory=n.ColumnFactory;var r=o(98239);t.ColumnController=r.ColumnController;var s=o(69734);t.ColumnKeyCreator=s.ColumnKeyCreator;var a=o(814);t.ColumnUtils=a.ColumnUtils;var l=o(31887);t.DisplayedGroupCreator=l.DisplayedGroupCreator;var p=o(12598);t.GroupInstanceIdCreator=p.GroupInstanceIdCreator;var u=o(97156);t.ComponentUtil=u.ComponentUtil;var c=o(80834);t.ColDefUtil=c.ColDefUtil;var d=o(36777);t.UserComponentRegistry=d.UserComponentRegistry;var h=o(85910);t.UserComponentFactory=h.UserComponentFactory;var f=o(75013);t.initialiseAgGridWithAngular1=f.initialiseAgGridWithAngular1;var g=o(61862);t.initialiseAgGridWithWebComponents=g.initialiseAgGridWithWebComponents;var m=o(8534);t.BeanStub=m.BeanStub;var y=o(72493);t.Context=y.Context,t.Autowired=y.Autowired,t.PostConstruct=y.PostConstruct,t.PreConstruct=y.PreConstruct,t.Optional=y.Optional,t.Bean=y.Bean,t.Qualifier=y.Qualifier,t.PreDestroy=y.PreDestroy;var v=o(47721);t.QuerySelector=v.QuerySelector,t.Listener=v.Listener,t.RefSelector=v.RefSelector;var C=o(58342);t.DragAndDropService=C.DragAndDropService,t.DragSourceType=C.DragSourceType,t.HDirection=C.HDirection,t.VDirection=C.VDirection;var w=o(25230);t.DragService=w.DragService;var E=o(26016);t.Column=E.Column;var _=o(74517);t.ColumnGroup=_.ColumnGroup;var b=o(34782);t.GridCell=b.GridCell;var R=o(3976);t.GridRow=R.GridRow;var O=o(72948);t.OriginalColumnGroup=O.OriginalColumnGroup;var S=o(15068);t.RowNode=S.RowNode;var A=o(13650);t.BaseFilter=A.BaseFilter;var P=o(34255);t.DateFilter=P.DateFilter;var T=o(55e3);t.FilterManager=T.FilterManager;var D=o(92378);t.NumberFilter=D.NumberFilter;var N=o(99104);t.TextFilter=N.TextFilter;var x=o(64229);t.GridPanel=x.GridPanel;var I=o(13887);t.ScrollVisibleService=I.ScrollVisibleService;var F=o(1571);t.MouseEventService=F.MouseEventService;var L=o(20080);t.BodyDropPivotTarget=L.BodyDropPivotTarget;var k=o(69992);t.BodyDropTarget=k.BodyDropTarget;var M=o(34506);t.CssClassApplier=M.CssClassApplier;var G=o(40706);t.HeaderContainer=G.HeaderContainer;var V=o(89929);t.HeaderRootComp=V.HeaderRootComp;var W=o(15774);t.HeaderRowComp=W.HeaderRowComp;var H=o(97177);t.HorizontalResizeService=H.HorizontalResizeService;var j=o(27887);t.MoveColumnController=j.MoveColumnController;var B=o(42726);t.StandardMenuFactory=B.StandardMenuFactory;var U=o(88333);t.TabbedLayout=U.TabbedLayout;var Y=o(72955);t.VerticalStack=Y.VerticalStack;var z=o(7760);t.simpleHttpRequest=z.simpleHttpRequest;var q=o(49281);t.LargeTextCellEditor=q.LargeTextCellEditor;var K=o(15724);t.PopupEditorWrapper=K.PopupEditorWrapper;var $=o(31923);t.PopupSelectCellEditor=$.PopupSelectCellEditor;var Z=o(5448);t.PopupTextCellEditor=Z.PopupTextCellEditor;var Q=o(84715);t.SelectCellEditor=Q.SelectCellEditor;var X=o(71616);t.TextCellEditor=X.TextCellEditor;var J=o(15959);t.AnimateShowChangeCellRenderer=J.AnimateShowChangeCellRenderer;var ee=o(30811);t.AnimateSlideCellRenderer=ee.AnimateSlideCellRenderer;var te=o(79886);t.GroupCellRenderer=te.GroupCellRenderer;var oe=o(38152);t.SetLeftFeature=oe.SetLeftFeature;var ie=o(41832);t.AutoWidthCalculator=ie.AutoWidthCalculator;var ne=o(34470);t.CellRendererFactory=ne.CellRendererFactory;var re=o(95125);t.CheckboxSelectionComponent=re.CheckboxSelectionComponent;var se=o(23054);t.CellComp=se.CellComp;var ae=o(19378);t.RowComp=ae.RowComp;var le=o(10042);t.RowRenderer=le.RowRenderer;var pe=o(93121);t.ValueFormatterService=pe.ValueFormatterService;var ue=o(24048);t.FilterStage=ue.FilterStage;var ce=o(57498);t.FlattenStage=ce.FlattenStage;var de=o(18954);t.SortStage=de.SortStage;var he=o(50580);t.PinnedRowModel=he.PinnedRowModel;var fe=o(719);t.ClientSideRowModel=fe.ClientSideRowModel;var ge=o(68363);t.ChangedPath=ge.ChangedPath;var me=o(28771);t.ClientSideNodeManager=me.ClientSideNodeManager;var ye=o(30971);t.InfiniteRowModel=ye.InfiniteRowModel;var ve=o(44329);t.RowNodeBlock=ve.RowNodeBlock;var Ce=o(84210);t.RowNodeBlockLoader=Ce.RowNodeBlockLoader;var we=o(41451);t.PaginationProxy=we.PaginationProxy;var Ee=o(65802);t.RowNodeCache=Ee.RowNodeCache;var _e=o(66490);t.StylingService=_e.StylingService;var be=o(21951);t.AgCheckbox=be.AgCheckbox;var Re=o(32090);t.PopupWindow=Re.PopupWindow;var Oe=o(34941);t.PopupMessageBox=Oe.PopupMessageBox;var Se=o(22131);t.Component=Se.Component;var Ae=o(46379);t.PopupComponent=Ae.PopupComponent;var Pe=o(73575);t.PopupService=Pe.PopupService;var Te=o(66419);t.TouchListener=Te.TouchListener;var De=o(43460);t.CsvCreator=De.CsvCreator,t.BaseCreator=De.BaseCreator;var Ne=o(33467);t.Downloader=Ne.Downloader;var xe=o(59873);t.XmlFactory=xe.XmlFactory;var Ie=o(42664);t.BaseGridSerializingSession=Ie.BaseGridSerializingSession,t.GridSerializer=Ie.GridSerializer;var Fe=o(42664);t.RowType=Fe.RowType;var Le=o(9018);t.ZipContainer=Le.ZipContainer;var ke=o(86895);t.BaseFrameworkFactory=ke.BaseFrameworkFactory;var Me=o(38427);t.CellNavigationService=Me.CellNavigationService;var Ge=o(10190);t.AlignedGridsService=Ge.AlignedGridsService;var Ve=o(45727);t.Constants=Ve.Constants;var We=o(65360);t.Grid=We.Grid;var He=o(40797);t.GridApi=He.GridApi;var je=o(85222);t.Events=je.Events;var Be=o(42195);t.FocusedCellController=Be.FocusedCellController;var Ue=o(44859);t.defaultGroupComparator=Ue.defaultGroupComparator;var Ye=o(44081);t.GridOptionsWrapper=Ye.GridOptionsWrapper;var ze=o(60843);t.EventService=ze.EventService;var qe=o(4889);t.SelectableService=qe.SelectableService;var Ke=o(81999);t.GridCore=Ke.GridCore;var $e=o(37132);t.Logger=$e.Logger;var Ze=o(54828);t.SelectionController=Ze.SelectionController;var Qe=o(86608);t.SortController=Qe.SortController;var Xe=o(92427);t.TemplateService=Xe.TemplateService;var Je=o(83423);t.Utils=Je.Utils,t.NumberSequence=Je.NumberSequence,t._=Je._,t.Promise=Je.Promise;var et=o(24463);t.ValueService=et.ValueService;var tt=o(40634);t.ExpressionService=tt.ExpressionService;var ot=o(37132);t.LoggerFactory=ot.LoggerFactory;var it=o(44871);t.ColumnApi=it.ColumnApi;var nt=o(52814);t.BaseComponentWrapper=nt.BaseComponentWrapper;var rt=o(59007);t.Environment=rt.Environment;var st=o(39984);t.TooltipManager=st.TooltipManager},47721:(e,t)=>{function o(e,t,o,i){null!==e?"number"!=typeof i?r(t,"querySelectors",{attributeName:o,querySelector:e}):console.error("ag-Grid: QuerySelector should be on an attribute"):console.error("ag-Grid: QuerySelector selector should not be null")}function i(e,t,o){null!==e?r(t,"listenerMethods",{methodName:o,eventName:e}):console.error("ag-Grid: EventListener eventName should not be null")}function n(e,t,o){null!==e?r(t,"methods",{methodName:o,alias:e}):console.error("ag-Grid: EventListener eventName should not be null")}function r(e,t,o){var i=function(e,t){return e.__agComponentMetaData||(e.__agComponentMetaData={}),e.__agComponentMetaData[t]||(e.__agComponentMetaData[t]={}),e.__agComponentMetaData[t]}(e,e.constructor.name);i[t]||(i[t]=[]),i[t].push(o)}Object.defineProperty(t,"__esModule",{value:!0}),t.QuerySelector=function(e){return o.bind(this,e)},t.RefSelector=function(e){return o.bind(this,"[ref="+e+"]")},t.Listener=function(e){return i.bind(this,e)},t.Method=function(e){return n.bind(this,e)}},48011:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(44081),a=o(83423),l=function(){function e(e){this.childCount=0,this.rowTemplatesToAdd=[],this.afterGuiAttachedCallbacks=[],this.lastMadeVisibleTime=0,this.eContainer=e.eContainer,this.eViewport=e.eViewport,e.eWrapper&&(this.eWrapper=e.eWrapper),this.hideWhenNoChildren=e.hideWhenNoChildren}return e.prototype.setVerticalScrollPosition=function(e){this.scrollTop=e},e.prototype.postConstruct=function(){this.checkDomOrder(),this.checkVisibility(),this.gridOptionsWrapper.addEventListener(s.GridOptionsWrapper.PROP_DOM_LAYOUT,this.checkDomOrder.bind(this))},e.prototype.checkDomOrder=function(){this.domOrder=this.gridOptionsWrapper.isEnsureDomOrder()},e.prototype.getRowElement=function(e){return this.eContainer.querySelector('[comp-id="'+e+'"]')},e.prototype.setHeight=function(e){null!=e?(this.eContainer.style.height=e+"px",this.eWrapper&&(this.eWrapper.style.height=e+"px")):this.eContainer.style.height=""},e.prototype.flushRowTemplates=function(){if(0!==this.rowTemplatesToAdd.length){var e=this.rowTemplatesToAdd.join("");a._.appendHtml(this.eContainer,e),this.rowTemplatesToAdd.length=0}this.afterGuiAttachedCallbacks.forEach((function(e){return e()})),this.afterGuiAttachedCallbacks.length=0,this.lastPlacedElement=null},e.prototype.appendRowTemplate=function(e,t){this.domOrder?this.lastPlacedElement=a._.insertTemplateWithDomOrder(this.eContainer,e,this.lastPlacedElement):this.rowTemplatesToAdd.push(e),this.afterGuiAttachedCallbacks.push(t),this.childCount++,this.checkVisibility()},e.prototype.ensureDomOrder=function(e){this.domOrder&&(a._.ensureDomOrder(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},e.prototype.removeRowElement=function(e){this.eContainer.removeChild(e),this.childCount--,this.checkVisibility()},e.prototype.checkVisibility=function(){if(this.hideWhenNoChildren){var e=this.eViewport?this.eViewport:this.eContainer,t=this.childCount>0;this.visible!==t&&(this.visible=t,this.lastMadeVisibleTime=(new Date).getTime(),a._.setVisible(e,t),t&&this.eViewport&&(this.eViewport.scrollTop=this.scrollTop))}},e.prototype.isMadeVisibleRecently=function(){return(new Date).getTime()-this.lastMadeVisibleTime<500},i([r.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"postConstruct",null),e}();t.RowContainerComponent=l},49281:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(46379),s=o(45727),a=o(83423),l=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return n(t,e),t.prototype.init=function(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.textarea=document.createElement("textarea"),this.textarea.maxLength=e.maxLength?e.maxLength:"200",this.textarea.cols=e.cols?e.cols:"60",this.textarea.rows=e.rows?e.rows:"10",a._.exists(e.value)&&(this.textarea.value=e.value.toString()),this.getGui().querySelector(".ag-large-textarea").appendChild(this.textarea),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},t.prototype.onKeyDown=function(e){var t=e.which||e.keyCode;(t==s.Constants.KEY_LEFT||t==s.Constants.KEY_UP||t==s.Constants.KEY_RIGHT||t==s.Constants.KEY_DOWN||e.shiftKey&&t==s.Constants.KEY_ENTER)&&e.stopPropagation()},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.textarea.focus()},t.prototype.getValue=function(){return this.params.parseValue(this.textarea.value)},t.TEMPLATE='<div class="ag-large-text" tabindex="0"><div class="ag-large-textarea"></div></div>',t}(r.PopupComponent);t.LargeTextCellEditor=l},49498:(e,t,o)=>{t.AgGridReact=o(83684).AgGridReact,o(85397).AgGridColumn},50298:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(44081),l=o(72493),p=function(e){function t(){return e.call(this)||this}return n(t,e),t.prototype.init=function(e){var o=this.gridOptionsWrapper.getOverlayNoRowsTemplate()?this.gridOptionsWrapper.getOverlayNoRowsTemplate():t.DEFAULT_NO_ROWS_TEMPLATE,i=this.gridOptionsWrapper.getLocaleTextFunc(),n=o.replace("[NO_ROWS_TO_SHOW]",i("noRowsToShow","No Rows To Show"));this.setTemplate(n)},t.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',r([l.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),t}(o(22131).Component);t.NoRowsOverlayComponent=p},50580:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(44081),s=o(15068),a=o(72493),l=o(60843),p=o(63405),u=o(45727),c=o(44871),d=o(40797),h=o(83423),f=function(){function e(){}return e.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData()),this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData())},e.prototype.isEmpty=function(e){var t=e===u.Constants.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;return h._.missingOrEmpty(t)},e.prototype.isRowsToRender=function(e){return!this.isEmpty(e)},e.prototype.getRowAtPixel=function(e,t){var o=t===u.Constants.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;if(h._.missingOrEmpty(o))return 0;for(var i=0;i<o.length;i++){var n=o[i];if(n.rowTop+n.rowHeight-1>=e)return i}return o.length-1},e.prototype.setPinnedTopRowData=function(e){this.pinnedTopRows=this.createNodesFromData(e,!0);var t={type:p.Events.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.setPinnedBottomRowData=function(e){this.pinnedBottomRows=this.createNodesFromData(e,!1);var t={type:p.Events.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.createNodesFromData=function(e,t){var o=this,i=[];if(e){var n=0;e.forEach((function(e,r){var a=new s.RowNode;o.context.wireBean(a),a.data=e,a.rowPinned=t?u.Constants.PINNED_TOP:u.Constants.PINNED_BOTTOM,a.setRowTop(n),a.setRowHeight(o.gridOptionsWrapper.getRowHeightForNode(a).height),a.setRowIndex(r),n+=a.rowHeight,i.push(a)}))}return i},e.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},e.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},e.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},e.prototype.getPinnedTopRow=function(e){return this.pinnedTopRows[e]},e.prototype.getPinnedBottomRow=function(e){return this.pinnedBottomRows[e]},e.prototype.forEachPinnedTopRow=function(e){h._.missingOrEmpty(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)},e.prototype.forEachPinnedBottomRow=function(e){h._.missingOrEmpty(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(e)},e.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},e.prototype.getTotalHeight=function(e){if(e&&0!==e.length){var t=e[e.length-1];return t.rowTop+t.rowHeight}return 0},i([a.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([a.Autowired("eventService"),n("design:type",l.EventService)],e.prototype,"eventService",void 0),i([a.Autowired("context"),n("design:type",a.Context)],e.prototype,"context",void 0),i([a.Autowired("columnApi"),n("design:type",c.ColumnApi)],e.prototype,"columnApi",void 0),i([a.Autowired("gridApi"),n("design:type",d.GridApi)],e.prototype,"gridApi",void 0),i([a.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([a.Bean("pinnedRowModel")],e)}();t.PinnedRowModel=f},51755:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8534),l=o(72493),p=o(60843),u=o(85222),c=o(83423),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scrollY=0,t.uiBodyHeight=0,t}return n(t,e),t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.eventService,u.Events.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.scrollBarWidth=c._.getScrollbarWidth(),this.maxDivHeight=c._.getMaxDivHeight()},t.prototype.registerGridComp=function(e){this.gridPanel=e},t.prototype.isScaling=function(){return this.scaling},t.prototype.getOffset=function(){return this.offset},t.prototype.updateOffset=function(){if(this.scaling){var e=this.gridPanel.getVScrollPosition().top,t=this.getUiBodyHeight();(e!==this.scrollY||t!==this.uiBodyHeight)&&(this.scrollY=e,this.uiBodyHeight=t,this.calculateOffset())}},t.prototype.calculateOffset=function(){this.uiContainerHeight=this.maxDivHeight,this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;var e=this.scrollY/this.maxScrollY;this.setOffset(e*this.pixelsToShave)},t.prototype.clearOffset=function(){this.uiContainerHeight=this.modelHeight,this.pixelsToShave=0,this.setOffset(0)},t.prototype.setOffset=function(e){var t="number"==typeof e?Math.floor(e):null;this.offset!==t&&(this.offset=t,this.eventService.dispatchEvent({type:u.Events.EVENT_HEIGHT_SCALE_CHANGED}))},t.prototype.setModelHeight=function(e){this.modelHeight=e,this.scaling=this.maxDivHeight>0&&e>this.maxDivHeight,this.scaling?this.calculateOffset():this.clearOffset()},t.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},t.prototype.getRealPixelPosition=function(e){return e-this.offset},t.prototype.getUiBodyHeight=function(){var e=this.gridPanel.getVScrollPosition();return e.bottom-e.top},t.prototype.getScrollPositionForPixel=function(e){if(this.pixelsToShave<=0)return e;var t=e/(this.modelHeight-this.getUiBodyHeight());return this.maxScrollY*t},r([l.Autowired("eventService"),s("design:type",p.EventService)],t.prototype,"eventService",void 0),r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),r([l.Bean("maxDivHeightScaler")],t)}(a.BeanStub);t.MaxDivHeightScaler=d},52814:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.prototype.wrap=function(e,t,o,i){var n=this;void 0===o&&(o=[]);var r=this.createWrapper(e,i);return t.forEach((function(e){n.createMethod(r,e,!0)})),o.forEach((function(e){n.createMethod(r,e,!1)})),r},e.prototype.createMethod=function(e,t,o){e.addMethod(t,this.createMethodProxy(e,t,o))},e.prototype.createMethodProxy=function(e,t,o){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(o&&console.warn("ag-Grid: Framework component is missing the method "+t+"()"),null)}},e}();t.BaseComponentWrapper=o},54828:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(72493),a=o(72493),l=o(37132),p=o(60843),u=o(63405),c=o(72493),d=o(44081),h=o(72493),f=o(45727),g=o(44871),m=o(40797),y=o(83423),v=o(68363),C=function(){function e(){}return e.prototype.setBeans=function(e){this.logger=e.create("SelectionController"),this.reset(),this.gridOptionsWrapper.isRowModelDefault()?this.eventService.addEventListener(u.Events.EVENT_ROW_DATA_CHANGED,this.reset.bind(this)):this.logger.log("dont know what to do here")},e.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.eventService.addEventListener(u.Events.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},e.prototype.setLastSelectedNode=function(e){this.lastSelectedNode=e},e.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},e.prototype.getSelectedNodes=function(){var e=[];return y._.iterateObject(this.selectedNodes,(function(t,o){o&&e.push(o)})),e},e.prototype.getSelectedRows=function(){var e=[];return y._.iterateObject(this.selectedNodes,(function(t,o){o&&o.data&&e.push(o.data)})),e},e.prototype.removeGroupsFromSelection=function(){var e=this;y._.iterateObject(this.selectedNodes,(function(t,o){o&&o.group&&(e.selectedNodes[o.id]=void 0)}))},e.prototype.updateGroupsFromChildrenSelections=function(e){if(this.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowModel.getType()===f.Constants.ROW_MODEL_TYPE_CLIENT_SIDE){var t=this.rowModel.getRootNode();e||(e=new v.ChangedPath(!0,t)).setInactive(),e.forEachChangedNodeDepthFirst((function(e){e!==t&&e.calculateSelectedFromChildren()}))}},e.prototype.getNodeForIdIfSelected=function(e){return this.selectedNodes[e]},e.prototype.clearOtherNodes=function(e){var t=this,o={},i=0;return y._.iterateObject(this.selectedNodes,(function(n,r){if(r&&r.id!==e.id){var s=t.selectedNodes[r.id];i+=s.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0}),t.groupSelectsChildren&&r.parent&&(o[r.parent.id]=r.parent)}})),y._.iterateObject(o,(function(e,t){t.calculateSelectedFromChildren()})),i},e.prototype.onRowSelected=function(e){var t=e.node;this.groupSelectsChildren&&t.group||(t.isSelected()?this.selectedNodes[t.id]=t:this.selectedNodes[t.id]=void 0)},e.prototype.syncInRowNode=function(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)},e.prototype.syncInOldRowNode=function(e,t){y._.exists(t)&&e.id!==t.id&&y._.exists(this.selectedNodes[t.id])&&(this.selectedNodes[t.id]=t)},e.prototype.syncInNewRowNode=function(e){y._.exists(this.selectedNodes[e.id])?(e.setSelectedInitialValue(!0),this.selectedNodes[e.id]=e):e.setSelectedInitialValue(!1)},e.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},e.prototype.getBestCostNodeSelection=function(){this.rowModel.getType()!==f.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&console.warn("getBestCostNodeSelection is only available when using normal row model");var e=this.rowModel.getTopLevelNodes();if(null!==e){var t=[];return function e(o){for(var i=0,n=o.length;i<n;i++){var r=o[i];r.isSelected()?t.push(r):r.group&&r.children&&e(r.children)}}(e),t}console.warn("selectAll not available doing rowModel=virtual")},e.prototype.setRowModel=function(e){this.rowModel=e},e.prototype.isEmpty=function(){var e=0;return y._.iterateObject(this.selectedNodes,(function(t,o){o&&e++})),0===e},e.prototype.deselectAllRowNodes=function(e){void 0===e&&(e=!1);var t=function(e){return e.selectThisNode(!1)},o=this.rowModel.getType()===f.Constants.ROW_MODEL_TYPE_CLIENT_SIDE;if(e){if(!o)return void console.error("ag-Grid: selecting just filtered only works with In Memory Row Model");this.rowModel.forEachNodeAfterFilter(t)}else y._.iterateObject(this.selectedNodes,(function(e,o){o&&t(o)})),this.reset();o&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var i={type:u.Events.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(i)},e.prototype.selectAllRowNodes=function(e){if(void 0===e&&(e=!1),this.rowModel.getType()!==f.Constants.ROW_MODEL_TYPE_CLIENT_SIDE)throw new Error("selectAll only available with normal row model, ie not "+this.rowModel.getType());var t=this.rowModel,o=function(e){return e.selectThisNode(!0)};e?t.forEachNodeAfterFilter(o):t.forEachNode(o),this.rowModel.getType()===f.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var i={type:u.Events.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(i)},e.prototype.selectNode=function(e,t){e&&e.setSelectedParams({newValue:!0,clearSelection:!t})},e.prototype.deselectIndex=function(e){var t=this.rowModel.getRow(e);this.deselectNode(t)},e.prototype.deselectNode=function(e){e&&e.setSelectedParams({newValue:!1,clearSelection:!1})},e.prototype.selectIndex=function(e,t){var o=this.rowModel.getRow(e);this.selectNode(o,t)},i([c.Autowired("eventService"),n("design:type",p.EventService)],e.prototype,"eventService",void 0),i([c.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([c.Autowired("gridOptionsWrapper"),n("design:type",d.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([c.Autowired("columnApi"),n("design:type",g.ColumnApi)],e.prototype,"columnApi",void 0),i([c.Autowired("gridApi"),n("design:type",m.GridApi)],e.prototype,"gridApi",void 0),i([r(0,a.Qualifier("loggerFactory")),n("design:type",Function),n("design:paramtypes",[l.LoggerFactory]),n("design:returntype",void 0)],e.prototype,"setBeans",null),i([h.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([s.Bean("selectionController")],e)}();t.SelectionController=C},55e3:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(83423),s=o(44081),a=o(73575),l=o(24463),p=o(98239),u=o(44871),c=o(72493),d=o(60843),h=o(63405),f=o(40797),g=o(85910),m=function(){function e(){this.allFilters={},this.quickFilter=null,this.quickFilterParts=null}var t;return t=e,e.prototype.registerGridCore=function(e){this.gridCore=e},e.prototype.init=function(){this.eventService.addEventListener(h.Events.EVENT_ROW_DATA_CHANGED,this.onNewRowsLoaded.bind(this)),this.eventService.addEventListener(h.Events.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.setQuickFilterParts(),this.checkExternalFilter()},e.prototype.setQuickFilterParts=function(){this.quickFilter?this.quickFilterParts=this.quickFilter.split(" "):this.quickFilterParts=null},e.prototype.setFilterModel=function(e){var t=this,o=[];if(e){var i=Object.keys(e);r._.iterateObject(this.allFilters,(function(n,s){r._.removeFromArray(i,n);var a=e[n];t.setModelOnFilterWrapper(s.filterPromise,a),o.push(s.filterPromise)})),r._.iterateArray(i,(function(i){var n=t.columnController.getPrimaryColumn(i);if(n){var r=t.getOrCreateFilterWrapper(n,"NO_UI");t.setModelOnFilterWrapper(r.filterPromise,e[i]),o.push(r.filterPromise)}else console.warn("Warning ag-grid setFilterModel - no column found for colId "+i)}))}else r._.iterateObject(this.allFilters,(function(e,i){t.setModelOnFilterWrapper(i.filterPromise,null),o.push(i.filterPromise)}));r.Promise.all(o).then((function(e){t.onFilterChanged()}))},e.prototype.setModelOnFilterWrapper=function(e,t){e.then((function(e){"function"==typeof e.setModel?e.setModel(t):console.warn("Warning ag-grid - filter missing setModel method, which is needed for setFilterModel")}))},e.prototype.getFilterModel=function(){var e={};return r._.iterateObject(this.allFilters,(function(t,o){var i=o.filterPromise.resolveNow(null,(function(e){return e}));if(null==i)return null;if("function"==typeof i.getModel){var n=i.getModel();r._.exists(n)&&(e[t]=n)}else console.warn("Warning ag-grid - filter API missing getModel method, which is needed for getFilterModel")})),e},e.prototype.isAdvancedFilterPresent=function(){return this.advancedFilterPresent},e.prototype.setAdvancedFilterPresent=function(){var e=!1;r._.iterateObject(this.allFilters,(function(t,o){o.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}))&&(e=!0)})),this.advancedFilterPresent=e},e.prototype.updateFilterFlagInColumns=function(e){r._.iterateObject(this.allFilters,(function(t,o){var i=o.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}));o.column.setFilterActive(i,e)}))},e.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.advancedFilterPresent||this.externalFilterPresent},e.prototype.doesFilterPass=function(e,t){for(var o=e.data,i=Object.keys(this.allFilters),n=0,r=i.length;n<r;n++){var s=i[n],a=this.allFilters[s];if(void 0!==a){var l=a.filterPromise.resolveNow(void 0,(function(e){return e}));if(void 0!==l&&l!==t&&l.isFilterActive()){l.doesFilterPass||console.error("Filter is missing method doesFilterPass");var p={node:e,data:o};if(!l.doesFilterPass(p))return!1}}}return!0},e.prototype.parseQuickFilter=function(e){return r._.missing(e)||""===e?null:this.gridOptionsWrapper.isRowModelDefault()?e.toUpperCase():(console.warn("ag-grid: quick filtering only works with the Client-side Row Model"),null)},e.prototype.setQuickFilter=function(e){var t=this.parseQuickFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setQuickFilterParts(),this.onFilterChanged())},e.prototype.checkExternalFilter=function(){this.externalFilterPresent=this.gridOptionsWrapper.isExternalFilterPresent()},e.prototype.onFilterChanged=function(){this.setAdvancedFilterPresent(),this.updateFilterFlagInColumns("filterChanged"),this.checkExternalFilter(),r._.iterateObject(this.allFilters,(function(e,t){t.filterPromise.then((function(e){e.onAnyFilterChanged&&e.onAnyFilterChanged()}))}));var e={type:h.Events.EVENT_FILTER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},e.prototype.doesRowPassOtherFilters=function(e,t){return this.doesRowPassFilter(t,e)},e.prototype.doesRowPassQuickFilterNoCache=function(e,t){var o=this,i=this.columnController.getAllColumnsForQuickFilter(),n=!1;return i.forEach((function(i){if(!n){var s=o.getQuickFilterTextForColumn(i,e);r._.exists(s)&&s.indexOf(t)>=0&&(n=!0)}})),n},e.prototype.doesRowPassQuickFilterCache=function(e,t){return e.quickFilterAggregateText||this.aggregateRowForQuickFilter(e),e.quickFilterAggregateText.indexOf(t)>=0},e.prototype.doesRowPassQuickFilter=function(e){var t=this,o=!0,i=this.gridOptionsWrapper.isCacheQuickFilter();return this.quickFilterParts.forEach((function(n){(i?t.doesRowPassQuickFilterCache(e,n):t.doesRowPassQuickFilterNoCache(e,n))||(o=!1)})),o},e.prototype.doesRowPassFilter=function(e,t){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(e)||this.externalFilterPresent&&!this.gridOptionsWrapper.doesExternalFilterPass(e)||this.advancedFilterPresent&&!this.doesFilterPass(e,t))},e.prototype.getQuickFilterTextForColumn=function(e,t){var o,i=this.valueService.getValue(e,t,!0),n=e.getColDef();if(e.getColDef().getQuickFilterText){var s={value:i,node:t,data:t.data,column:e,colDef:n};o=e.getColDef().getQuickFilterText(s)}else o=i;return r._.exists(o)?o.toString().toUpperCase():null},e.prototype.aggregateRowForQuickFilter=function(e){var o=this,i=[];this.columnController.getAllColumnsForQuickFilter().forEach((function(t){var n=o.getQuickFilterTextForColumn(t,e);r._.exists(n)&&i.push(n)})),e.quickFilterAggregateText=i.join(t.QUICK_FILTER_SEPARATOR)},e.prototype.onNewRowsLoaded=function(e){r._.iterateObject(this.allFilters,(function(e,t){t.filterPromise.then((function(e){e.onNewRowsLoaded&&e.onNewRowsLoaded()}))})),this.updateFilterFlagInColumns(e),this.setAdvancedFilterPresent()},e.prototype.createValueGetter=function(e){var t=this;return function(o){return t.valueService.getValue(e,o,!0)}},e.prototype.getFilterComponent=function(e,t){return this.getOrCreateFilterWrapper(e,t).filterPromise},e.prototype.isFilterActive=function(e){var t=this.cachedFilter(e);return!!t&&t.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}))},e.prototype.getOrCreateFilterWrapper=function(e,t){var o=this.cachedFilter(e);return o?"NO_UI"!==t&&this.putIntoGui(o,t):(o=this.createFilterWrapper(e,t),this.allFilters[e.getColId()]=o),o},e.prototype.cachedFilter=function(e){return this.allFilters[e.getColId()]},e.prototype.createFilterInstance=function(e,t){var o=this,i="agTextColumnFilter";this.gridOptionsWrapper.isEnterprise()&&(i="agSetColumnFilter");var n=r._.cloneObject(e.getColDef()),s={type:h.Events.EVENT_FILTER_MODIFIED,api:this.gridApi,columnApi:this.columnApi},a=this.onFilterChanged.bind(this),l={api:this.gridOptionsWrapper.getApi(),column:e,colDef:n,rowModel:this.rowModel,filterChangedCallback:a,filterModifiedCallback:function(){return o.eventService.dispatchEvent(s)},valueGetter:this.createValueGetter(e),context:this.gridOptionsWrapper.getContext(),doesRowPassOtherFilter:null,$scope:t};return this.userComponentFactory.newFilterComponent(n,l,i,(function(e,t){return r._.assign(e,{doesRowPassOtherFilter:o.doesRowPassOtherFilters.bind(o,t)})}))},e.prototype.createFilterWrapper=function(e,t){var o={column:e,filterPromise:null,scope:null,compiledElement:null,guiPromise:r.Promise.external()};return o.scope=this.gridOptionsWrapper.isAngularCompileFilters()?this.$scope.$new():null,o.filterPromise=this.createFilterInstance(e,o.scope),this.putIntoGui(o,t),o},e.prototype.putIntoGui=function(e,t){var o=this,i=document.createElement("div");i.className="ag-filter",e.filterPromise.then((function(n){var s=n.getGui();if(r._.missing(s)&&console.warn("getGui method from filter returned "+s+", it should be a DOM element or an HTML template string."),"string"==typeof s&&(s=r._.loadTemplate(s)),i.appendChild(s),e.scope){var a=o.$compile(i)(e.scope);e.compiledElement=a,window.setTimeout((function(){return e.scope.$apply()}),0)}e.guiPromise.resolve(i),o.eventService.dispatchEvent({type:h.Events.EVENT_FILTER_OPENED,column:e.column,source:t,eGui:i,api:o.gridApi,columnApi:o.columnApi})}))},e.prototype.onNewColumnsLoaded=function(){var e=this,t=!1;r._.iterateObject(this.allFilters,(function(o,i){!e.columnController.getPrimaryColumn(i.column)&&(t=!0,e.disposeFilterWrapper(i,"filterDestroyed"))})),t&&this.onFilterChanged()},e.prototype.destroyFilter=function(e,t){void 0===t&&(t="api");var o=this.allFilters[e.getColId()];o&&(this.disposeFilterWrapper(o,t),this.onFilterChanged())},e.prototype.disposeFilterWrapper=function(e,t){var o=this;e.filterPromise.then((function(i){i.setModel(null),i.destroy&&i.destroy(),e.column.setFilterActive(!1,t),e.scope&&(e.compiledElement&&e.compiledElement.remove(),e.scope.$destroy()),delete o.allFilters[e.column.getColId()]}))},e.prototype.destroy=function(){var e=this;r._.iterateObject(this.allFilters,(function(t,o){e.disposeFilterWrapper(o,"filterDestroyed")}))},e.QUICK_FILTER_SEPARATOR="\n",i([c.Autowired("$compile"),n("design:type",Object)],e.prototype,"$compile",void 0),i([c.Autowired("$scope"),n("design:type",Object)],e.prototype,"$scope",void 0),i([c.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([c.Autowired("popupService"),n("design:type",a.PopupService)],e.prototype,"popupService",void 0),i([c.Autowired("valueService"),n("design:type",l.ValueService)],e.prototype,"valueService",void 0),i([c.Autowired("columnController"),n("design:type",p.ColumnController)],e.prototype,"columnController",void 0),i([c.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([c.Autowired("eventService"),n("design:type",d.EventService)],e.prototype,"eventService",void 0),i([c.Autowired("enterprise"),n("design:type",Boolean)],e.prototype,"enterprise",void 0),i([c.Autowired("context"),n("design:type",c.Context)],e.prototype,"context",void 0),i([c.Autowired("columnApi"),n("design:type",u.ColumnApi)],e.prototype,"columnApi",void 0),i([c.Autowired("gridApi"),n("design:type",f.GridApi)],e.prototype,"gridApi",void 0),i([c.Autowired("userComponentFactory"),n("design:type",g.UserComponentFactory)],e.prototype,"userComponentFactory",void 0),i([c.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([c.PreDestroy,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"destroy",null),t=i([c.Bean("filterManager")],e)}();t.FilterManager=m},55090:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(44871),a=o(98239),l=o(40797),p=o(44081),u=o(40634),c=o(10042),d=o(92427),h=o(24463),f=o(60843),g=o(64314),m=o(42195),y=o(34470),v=o(73575),C=o(93121),w=o(66490),E=o(93830),_=o(41451),b=o(69065),R=o(85910),O=o(58342),S=o(86608),A=o(55e3),P=o(51755),T=o(39984),D=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},i([r.Autowired("paginationProxy"),n("design:type",_.PaginationProxy)],e.prototype,"paginationProxy",void 0),i([r.Autowired("context"),n("design:type",r.Context)],e.prototype,"context",void 0),i([r.Autowired("columnApi"),n("design:type",s.ColumnApi)],e.prototype,"columnApi",void 0),i([r.Autowired("gridApi"),n("design:type",l.GridApi)],e.prototype,"gridApi",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",p.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("expressionService"),n("design:type",u.ExpressionService)],e.prototype,"expressionService",void 0),i([r.Autowired("rowRenderer"),n("design:type",c.RowRenderer)],e.prototype,"rowRenderer",void 0),i([r.Autowired("$compile"),n("design:type",Object)],e.prototype,"$compile",void 0),i([r.Autowired("templateService"),n("design:type",d.TemplateService)],e.prototype,"templateService",void 0),i([r.Autowired("valueService"),n("design:type",h.ValueService)],e.prototype,"valueService",void 0),i([r.Autowired("eventService"),n("design:type",f.EventService)],e.prototype,"eventService",void 0),i([r.Autowired("columnController"),n("design:type",a.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("columnAnimationService"),n("design:type",g.ColumnAnimationService)],e.prototype,"columnAnimationService",void 0),i([r.Optional("rangeController"),n("design:type",Object)],e.prototype,"rangeController",void 0),i([r.Autowired("focusedCellController"),n("design:type",m.FocusedCellController)],e.prototype,"focusedCellController",void 0),i([r.Optional("contextMenuFactory"),n("design:type",Object)],e.prototype,"contextMenuFactory",void 0),i([r.Autowired("cellRendererFactory"),n("design:type",y.CellRendererFactory)],e.prototype,"cellRendererFactory",void 0),i([r.Autowired("popupService"),n("design:type",v.PopupService)],e.prototype,"popupService",void 0),i([r.Autowired("valueFormatterService"),n("design:type",C.ValueFormatterService)],e.prototype,"valueFormatterService",void 0),i([r.Autowired("stylingService"),n("design:type",w.StylingService)],e.prototype,"stylingService",void 0),i([r.Autowired("columnHoverService"),n("design:type",E.ColumnHoverService)],e.prototype,"columnHoverService",void 0),i([r.Autowired("enterprise"),n("design:type",Boolean)],e.prototype,"enterprise",void 0),i([r.Autowired("userComponentFactory"),n("design:type",R.UserComponentFactory)],e.prototype,"userComponentFactory",void 0),i([r.Autowired("animationFrameService"),n("design:type",b.AnimationFrameService)],e.prototype,"taskQueue",void 0),i([r.Autowired("dragAndDropService"),n("design:type",O.DragAndDropService)],e.prototype,"dragAndDropService",void 0),i([r.Autowired("sortController"),n("design:type",S.SortController)],e.prototype,"sortController",void 0),i([r.Autowired("filterManager"),n("design:type",A.FilterManager)],e.prototype,"filterManager",void 0),i([r.Autowired("maxDivHeightScaler"),n("design:type",P.MaxDivHeightScaler)],e.prototype,"maxDivHeightScaler",void 0),i([r.Autowired("tooltipManager"),n("design:type",T.TooltipManager)],e.prototype,"tooltipManager",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"postConstruct",null),i([r.Bean("beans")],e)}();t.Beans=D},56565:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t),t}},57498:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(15068),a=o(44081),l=o(54828),p=o(60843),u=o(98239),c=o(83423),d=function(){function e(){}return e.prototype.execute=function(e){var t=e.rowNode,o=[],i={value:0},n=this.columnController.isPivotMode(),r=n&&t.leafGroup,s=r?[t]:t.childrenAfterSort;return this.recursivelyAddToRowsToDisplay(s,o,i,n,0),!r&&this.gridOptionsWrapper.isGroupIncludeTotalFooter()&&(this.ensureFooterNodeExists(t),this.addRowNodeToRowsToDisplay(t.sibling,o,i,0)),o},e.prototype.recursivelyAddToRowsToDisplay=function(e,t,o,i,n){if(!c._.missingOrEmpty(e))for(var r=this.gridOptionsWrapper.isGroupSuppressRow(),s=this.gridOptionsWrapper.isGroupHideOpenParents(),a=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),l=!a&&this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),p=0;p<e.length;p++){var u=e[p],d=u.hasChildren(),h=r&&d,f=i&&!d,g=a&&d&&1===u.childrenAfterGroup.length,m=l&&d&&u.leafGroup&&1===u.childrenAfterGroup.length,y=i&&u.leafGroup,v=s&&u.expanded&&!y;if(!(f||h||v||g||m)&&this.addRowNodeToRowsToDisplay(u,t,o,n),!i||!u.leafGroup)if(d){var C=g||m;if(u.expanded||C){var w=C?n:n+1;this.recursivelyAddToRowsToDisplay(u.childrenAfterSort,t,o,i,w),this.gridOptionsWrapper.isGroupIncludeFooter()&&(this.ensureFooterNodeExists(u),this.addRowNodeToRowsToDisplay(u.sibling,t,o,n))}}else if(u.master&&u.expanded){var E=this.createDetailNode(u);this.addRowNodeToRowsToDisplay(E,t,o,n)}}},e.prototype.addRowNodeToRowsToDisplay=function(e,t,o,i){t.push(e);var n=this.gridOptionsWrapper.isGroupMultiAutoColumn();e.setUiLevel(n?0:i)},e.prototype.ensureFooterNodeExists=function(e){if(!c._.exists(e.sibling)){var t=new s.RowNode;this.context.wireBean(t),Object.keys(e).forEach((function(o){t[o]=e[o]})),t.footer=!0,t.rowTop=null,t.oldRowTop=null,c._.exists(t.id)&&(t.id="rowGroupFooter_"+t.id),t.sibling=e,e.sibling=t}},e.prototype.createDetailNode=function(e){if(c._.exists(e.detailNode))return e.detailNode;var t=new s.RowNode;return this.context.wireBean(t),t.detail=!0,t.selectable=!1,t.flower=t.detail,t.parent=e,c._.exists(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1,e.detailNode=t,e.childFlower=e.detailNode,t},i([r.Autowired("gridOptionsWrapper"),n("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("selectionController"),n("design:type",l.SelectionController)],e.prototype,"selectionController",void 0),i([r.Autowired("eventService"),n("design:type",p.EventService)],e.prototype,"eventService",void 0),i([r.Autowired("context"),n("design:type",r.Context)],e.prototype,"context",void 0),i([r.Autowired("columnController"),n("design:type",u.ColumnController)],e.prototype,"columnController",void 0),i([r.Bean("flattenStage")],e)}();t.FlattenStage=d},58342:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s,a,l,p=o(37132),u=o(72493),c=o(44081),d=o(25230),h=o(98239),f=o(59007),g=o(83423);!function(e){e[e.ToolPanel=0]="ToolPanel",e[e.HeaderCell=1]="HeaderCell",e[e.RowDrag=2]="RowDrag"}(s=t.DragSourceType||(t.DragSourceType={})),function(e){e[e.Up=0]="Up",e[e.Down=1]="Down"}(a=t.VDirection||(t.VDirection={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(l=t.HDirection||(t.HDirection={}));var m=function(){function e(){this.dragSourceAndParamsList=[],this.dropTargets=[]}var t;return t=e,e.prototype.init=function(){this.ePinnedIcon=g._.createIcon("columnMovePin",this.gridOptionsWrapper,null),this.ePlusIcon=g._.createIcon("columnMoveAdd",this.gridOptionsWrapper,null),this.eHiddenIcon=g._.createIcon("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=g._.createIcon("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=g._.createIcon("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=g._.createIcon("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=g._.createIcon("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=g._.createIcon("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=g._.createIcon("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=g._.createIcon("dropNotAllowed",this.gridOptionsWrapper,null)},e.prototype.setBeans=function(e){this.logger=e.create("OldToolPanelDragAndDropService")},e.prototype.getStringType=function(e){switch(e){case s.RowDrag:return"row";case s.HeaderCell:return"headerCell";case s.ToolPanel:return"toolPanel";default:return console.warn("ag-Grid: bug - unknown drag type "+e),null}},e.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var o={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:o,dragSource:e}),this.dragService.addDragSource(o,t)},e.prototype.removeDragSource=function(e){var t=g._.find(this.dragSourceAndParamsList,(function(t){return t.dragSource===e}));t&&(this.dragService.removeDragSource(t.params),g._.removeFromArray(this.dragSourceAndParamsList,t))},e.prototype.destroy=function(){var e=this;this.dragSourceAndParamsList.forEach((function(t){e.dragService.removeDragSource(t.params)})),this.dragSourceAndParamsList.length=0},e.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},e.prototype.onDragStart=function(e,t){this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=this.dragSource.dragItemCallback(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.dragStarted&&this.dragSource.dragStarted(),this.createGhost()},e.prototype.onDragStop=function(e){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.dragStopped&&this.dragSource.dragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var t=this.createDropTargetEvent(this.lastDropTarget,e,null,null,!1);this.lastDropTarget.onDragStop(t)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},e.prototype.onDragging=function(e,t){var o=this.workOutHDirection(e),i=this.workOutVDirection(e);this.eventLastTime=e,this.positionGhost(e);var n=g._.find(this.dropTargets,this.isMouseOnDropTarget.bind(this,e));if(n!==this.lastDropTarget)this.leaveLastTargetIfExists(e,o,i,t),this.enterDragTargetIfExists(n,e,o,i,t),this.lastDropTarget=n;else if(n){var r=this.createDropTargetEvent(n,e,o,i,t);n.onDragging(r)}},e.prototype.enterDragTargetIfExists=function(e,t,o,i,n){if(e){var r=this.createDropTargetEvent(e,t,o,i,n);e.onDragEnter(r),this.setGhostIcon(e.getIconName?e.getIconName():null)}},e.prototype.leaveLastTargetIfExists=function(e,t,o,i){if(this.lastDropTarget){var n=this.createDropTargetEvent(this.lastDropTarget,e,t,o,i);this.lastDropTarget.onDragLeave(n),this.setGhostIcon(null)}},e.prototype.getAllContainersFromDropTarget=function(e){var t=[e.getContainer()],o=e.getSecondaryContainers?e.getSecondaryContainers():null;return o&&(t=t.concat(o)),t},e.prototype.isMouseOnDropTarget=function(e,t){var o=this.getAllContainersFromDropTarget(t),i=!1;return o.forEach((function(t){if(t){var o=t.getBoundingClientRect();if(0!==o.width&&0!==o.height){var n=e.clientX>=o.left&&e.clientX<=o.right,r=e.clientY>=o.top&&e.clientY<=o.bottom;n&&r&&(i=!0)}}})),!!i&&t.isInterestedIn(this.dragSource.type)},e.prototype.addDropTarget=function(e){this.dropTargets.push(e)},e.prototype.workOutHDirection=function(e){return this.eventLastTime.clientX>e.clientX?l.Left:this.eventLastTime.clientX<e.clientX?l.Right:null},e.prototype.workOutVDirection=function(e){return this.eventLastTime.clientY>e.clientY?a.Up:this.eventLastTime.clientY<e.clientY?a.Down:null},e.prototype.createDropTargetEvent=function(e,t,o,i,n){var r=e.getContainer().getBoundingClientRect();return{event:t,x:t.clientX-r.left,y:t.clientY-r.top,vDirection:i,hDirection:o,dragSource:this.dragSource,fromNudge:n,dragItem:this.dragItem}},e.prototype.positionGhost=function(e){var t=this.eGhost.getBoundingClientRect().height,o=g._.getBodyWidth()-2,i=g._.getBodyHeight()-2,n=e.pageY-t/2,r=e.pageX-30,s=this.gridOptionsWrapper.getDocument(),a=window.pageYOffset||s.documentElement.scrollTop,l=window.pageXOffset||s.documentElement.scrollLeft;o>0&&r+this.eGhost.clientWidth>o+l&&(r=o+l-this.eGhost.clientWidth),r<0&&(r=0),i>0&&n+this.eGhost.clientHeight>i+a&&(n=i+a-this.eGhost.clientHeight),n<0&&(n=0),this.eGhost.style.left=r+"px",this.eGhost.style.top=n+"px"},e.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},e.prototype.createGhost=function(){this.eGhost=g._.loadTemplate(t.GHOST_TEMPLATE);var e=this.environment.getTheme();e&&g._.addCssClass(this.eGhost,e),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null),this.eGhost.querySelector(".ag-dnd-ghost-label").innerHTML=g._.escape(this.dragSource.dragItemName),this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var o=this.gridOptionsWrapper.getDocument();this.eGhostParent=o.querySelector("body"),this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("ag-Grid: could not find document body, it is needed for dragging columns")},e.prototype.setGhostIcon=function(e,o){var i;switch(void 0===o&&(o=!1),g._.clearElement(this.eGhostIcon),e){case t.ICON_ADD:i=this.ePlusIcon;break;case t.ICON_PINNED:i=this.ePinnedIcon;break;case t.ICON_MOVE:i=this.eMoveIcon;break;case t.ICON_LEFT:i=this.eLeftIcon;break;case t.ICON_RIGHT:i=this.eRightIcon;break;case t.ICON_GROUP:i=this.eGroupIcon;break;case t.ICON_AGGREGATE:i=this.eAggregateIcon;break;case t.ICON_PIVOT:i=this.ePivotIcon;break;case t.ICON_NOT_ALLOWED:i=this.eDropNotAllowedIcon;break;default:i=this.eHiddenIcon}this.eGhostIcon.appendChild(i),g._.addOrRemoveCssClass(this.eGhostIcon,"ag-shake-left-to-right",o)},e.ICON_PINNED="pinned",e.ICON_ADD="add",e.ICON_MOVE="move",e.ICON_LEFT="left",e.ICON_RIGHT="right",e.ICON_GROUP="group",e.ICON_AGGREGATE="aggregate",e.ICON_PIVOT="pivot",e.ICON_NOT_ALLOWED="notAllowed",e.GHOST_TEMPLATE='<div class="ag-dnd-ghost"> <span class="ag-dnd-ghost-icon ag-shake-left-to-right"></span> <div class="ag-dnd-ghost-label"> </div></div>',i([u.Autowired("gridOptionsWrapper"),n("design:type",c.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([u.Autowired("dragService"),n("design:type",d.DragService)],e.prototype,"dragService",void 0),i([u.Autowired("environment"),n("design:type",f.Environment)],e.prototype,"environment",void 0),i([u.Autowired("columnController"),n("design:type",h.ColumnController)],e.prototype,"columnController",void 0),i([u.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([r(0,u.Qualifier("loggerFactory")),n("design:type",Function),n("design:paramtypes",[p.LoggerFactory]),n("design:returntype",void 0)],e.prototype,"setBeans",null),i([u.PreDestroy,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"destroy",null),t=i([u.Bean("dragAndDropService")],e)}();t.DragAndDropService=m},59007:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(83423),a={"ag-theme-material":{headerHeight:56,virtualItemHeight:40,rowHeight:48},"ag-theme-classic":{headerHeight:25,virtualItemHeight:20,rowHeight:25},"ag-theme-balham":{headerHeight:32,virtualItemHeight:28,rowHeight:28}},l=function(){function e(){}return e.prototype.getSassVariable=function(e,t){return"ag-theme-material"==e?a["ag-theme-material"][t]:"ag-theme-balham"==e||"ag-theme-balham-dark"==e?a["ag-theme-balham"][t]:a["ag-theme-classic"][t]},e.prototype.getTheme=function(){for(var e,t=/\bag-(fresh|dark|blue|material|bootstrap|(?:theme-([\w\-]*)))\b/,o=this.eGridDiv;o&&(e=t.exec(o.className),null!=(o=o.parentElement)&&!e););if(e){var i=e[0];if(void 0===e[2]){var n=i.replace("ag-","ag-theme-");s._.doOnce((function(){return console.warn("ag-Grid: As of v19 old theme are no longer provided. Please replace "+i+" with "+n+".")}),"using-old-theme")}return i}},i([r.Autowired("eGridDiv"),n("design:type",HTMLElement)],e.prototype,"eGridDiv",void 0),i([r.Bean("environment")],e)}();t.Environment=l},59873:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s};Object.defineProperty(t,"__esModule",{value:!0});var n=o(72493),r="\r\n",s=function(){function e(){}return e.prototype.createHeader=function(e){void 0===e&&(e={});var t=["version"];return e.version||(e.version="1.0"),e.encoding&&t.push("encoding"),e.standalone&&t.push("standalone"),"<?xml "+t.map((function(t){return t+'="'+e[t]+'"'})).join(" ")+" ?>"},e.prototype.createXml=function(e,t){var o=this,i="";e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEach((function(e){Object.keys(e.map).forEach((function(n){i+=o.returnAttributeIfPopulated(e.prefix+n,e.map[n],t)}))})),e.properties.rawMap&&Object.keys(e.properties.rawMap).forEach((function(n){i+=o.returnAttributeIfPopulated(n,e.properties.rawMap[n],t)})));var n="<"+e.name+i;return e.children||null!=e.textNode?null!=e.textNode?n+">"+e.textNode+"</"+e.name+">"+r:(n+=">\r\n",e.children&&e.children.forEach((function(e){n+=o.createXml(e,t)})),n+"</"+e.name+">"+r):n+"/>"+r},e.prototype.returnAttributeIfPopulated=function(e,t,o){if(!t&&""!==t&&0!==t)return"";var i=t;return"boolean"==typeof t&&o&&(i=o(t))," "+e+'="'+i+'"'},i([n.Bean("xmlFactory")],e)}();t.XmlFactory=s},60843:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(37132),a=o(72493),l=o(72493),p=o(44081),u=o(83423),c=function(){function e(){this.allSyncListeners={},this.allAsyncListeners={},this.globalSyncListeners=[],this.globalAsyncListeners=[],this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}var t;return t=e,e.prototype.setBeans=function(e,t,o){if(void 0===o&&(o=null),this.logger=e.create("EventService"),o){var i=t.useAsyncEvents();this.addGlobalListener(o,i)}},e.prototype.getListenerList=function(e,t){var o=t?this.allAsyncListeners:this.allSyncListeners,i=o[e];return i||(i=[],o[e]=i),i},e.prototype.addEventListener=function(e,t,o){void 0===o&&(o=!1);var i=this.getListenerList(e,o);i.indexOf(t)<0&&i.push(t)},e.prototype.addModalPriorityEventListener=function(e,o,i){void 0===i&&(i=!1),this.addEventListener(e+t.PRIORITY,o,i)},e.prototype.addGlobalListener=function(e,t){void 0===t&&(t=!1),t?this.globalAsyncListeners.push(e):this.globalSyncListeners.push(e)},e.prototype.removeEventListener=function(e,t,o){void 0===o&&(o=!1);var i=this.getListenerList(e,o);u._.removeFromArray(i,t)},e.prototype.removeGlobalListener=function(e,t){void 0===t&&(t=!1),t?u._.removeFromArray(this.globalAsyncListeners,e):u._.removeFromArray(this.globalSyncListeners,e)},e.prototype.dispatchEvent=function(e){this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0},e.prototype.dispatchEventOnce=function(e){this.firedEvents[e.type]||this.dispatchEvent(e)},e.prototype.dispatchToListeners=function(e,o){var i=this,n=o?this.globalAsyncListeners:this.globalSyncListeners,r=e.type,s=this.getListenerList(r+t.PRIORITY,o);u._.forEachSnapshotFirst(s,(function(t){o?i.dispatchAsync((function(){return t(e)})):t(e)}));var a=this.getListenerList(r,o);u._.forEachSnapshotFirst(a,(function(t){o?i.dispatchAsync((function(){return t(e)})):t(e)})),u._.forEachSnapshotFirst(n,(function(t){o?i.dispatchAsync((function(){return t(r,e)})):t(r,e)}))},e.prototype.dispatchAsync=function(e){this.asyncFunctionsQueue.push(e),this.scheduled||(window.setTimeout(this.flushAsyncQueue.bind(this),0),this.scheduled=!0)},e.prototype.flushAsyncQueue=function(){this.scheduled=!1;var e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach((function(e){return e()}))},e.PRIORITY="-P1",i([r(0,l.Qualifier("loggerFactory")),r(1,l.Qualifier("gridOptionsWrapper")),r(2,l.Qualifier("globalEventListener")),n("design:type",Function),n("design:paramtypes",[s.LoggerFactory,p.GridOptionsWrapper,Function]),n("design:returntype",void 0)],e.prototype,"setBeans",null),t=i([a.Bean("eventService")],e)}();t.EventService=c},61862:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=o(97156),n=o(65360),r=!1;t.initialiseAgGridWithWebComponents=function(){if(console.warn("ag-grid: initialiseAgGridWithWebComponents is deprecated. Please use the ag-grid-webcomponent dependency instead. "),!r){r=!0,"undefined"!=typeof document&&document.registerElement||console.error("ag-Grid: unable to find document.registerElement() function, unable to initialise ag-Grid as a Web Component");var e=Object.create(HTMLElement.prototype);i.ComponentUtil.ALL_PROPERTIES.forEach((function(t){Object.defineProperty(e,t,{set:function(e){this.__agGridSetProperty(t,e)},get:function(){return this.__agGridGetProperty(t)},enumerable:!0,configurable:!0})}));var t=e;t.__agGridSetProperty=function(e,t){this.__attributes||(this.__attributes={}),this.__attributes[e]=t;var o={};o[e]={currentValue:t},this.onChange(o)},t.onChange=function(e){this._initialised&&i.ComponentUtil.processOnChange(e,this._gridOptions,this.api,this.columnApi)},t.__agGridGetProperty=function(e){return this.__attributes||(this.__attributes={}),this.__attributes[e]},t.setGridOptions=function(e){var t=this.globalEventListener.bind(this);this._gridOptions=i.ComponentUtil.copyAttributesToGridOptions(e,this);var o={globalEventListener:t};this._agGrid=new n.Grid(this,this._gridOptions,o),this.api=e.api,this.columnApi=e.columnApi,this._initialised=!0},t.createdCallback=function(){for(var e=0;e<this.attributes.length;e++){var t=this.attributes[e];this.setPropertyFromAttribute(t)}},t.setPropertyFromAttribute=function(e){var t,o="string"==typeof(t=e.nodeName)?t.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()})):t,n=e.nodeValue;i.ComponentUtil.ALL_PROPERTIES.indexOf(o)>=0&&(this[o]=n)},t.attachedCallback=function(e){},t.detachedCallback=function(e){},t.attributeChangedCallback=function(e){var t=this.attributes[e];this.setPropertyFromAttribute(t)},t.globalEventListener=function(e,t){var o=e.toLowerCase(),i=new Event(o);i.agGridDetails=t,this.dispatchEvent(i);var n="on"+o;"function"==typeof this[n]&&this[n](i)},document.registerElement("ag-grid",{prototype:e})}}},63405:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=o(85222);t.Events=i.Events},64229:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(44081),l=o(98239),p=o(44871),u=o(10042),c=o(72493),d=o(60843),h=o(63405),f=o(25230),g=o(45727),m=o(1571),y=o(42195),v=o(13887),C=o(48011),w=o(41451),E=o(15724),_=o(10190),b=o(50580),R=o(40797),O=o(69065),S=o(19378),A=o(8894),P=o(24463),T=o(66419),D=o(58342),N=o(36819),x=o(51755),I=o(45697),F=o(22131),L=o(23801),k=o(64314),M=o(41832),G=o(55090),V=o(47721),W=o(89929),H=o(68198),j=o(83423),B=function(e){function t(){var t=e.call(this,'<div class="ag-root ag-unselectable" role="grid" unselectable="on">\n <ag-header-root ref="headerRoot" unselectable="on"></ag-header-root>\n <div class="ag-floating-top" ref="eTop" role="presentation" unselectable="on">\n <div class="ag-pinned-left-floating-top" ref="eLeftTop" role="presentation" unselectable="on"></div>\n <div class="ag-floating-top-viewport" ref="eTopViewport" role="presentation" unselectable="on">\n <div class="ag-floating-top-container" ref="eTopContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-pinned-right-floating-top" ref="eRightTop" role="presentation" unselectable="on"></div>\n <div class="ag-floating-top-full-width-container" ref="eTopFullWidthContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-body-viewport" ref="eBodyViewport" role="presentation" unselectable="on">\n <div class="ag-pinned-left-cols-container" ref="eLeftContainer" role="presentation" unselectable="on"></div>\n <div class="ag-center-cols-clipper" ref="eCenterColsClipper">\n <div class="ag-center-cols-viewport" ref="eCenterViewport" role="presentation" unselectable="on">\n <div class="ag-center-cols-container" ref="eCenterContainer" role="presentation" unselectable="on"></div>\n </div>\n </div>\n <div class="ag-pinned-right-cols-container" ref="eRightContainer" role="presentation" unselectable="on"></div>\n <div class="ag-full-width-container" ref="eFullWidthContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-floating-bottom" ref="eBottom" role="presentation" unselectable="on">\n <div class="ag-pinned-left-floating-bottom" ref="eLeftBottom" role="presentation" unselectable="on"></div>\n <div class="ag-floating-bottom-viewport" ref="eBottomViewport" role="presentation" unselectable="on">\n <div class="ag-floating-bottom-container" ref="eBottomContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-pinned-right-floating-bottom" ref="eRightBottom" role="presentation" unselectable="on"></div>\n <div class="ag-floating-bottom-full-width-container" ref="eBottomFullWidthContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-body-horizontal-scroll" ref="eHorizontalScrollBody">\n <div class="ag-horizontal-left-spacer" ref="eHorizontalLeftSpacer"></div>\n <div class="ag-body-horizontal-scroll-viewport" ref="eBodyHorizontalScrollViewport">\n <div class="ag-body-horizontal-scroll-container" ref="eBodyHorizontalScrollContainer"></div>\n </div>\n <div class="ag-horizontal-right-spacer" ref="eHorizontalRightSpacer"></div>\n </div>\n <ag-overlay-wrapper ref="overlayWrapper"></ag-overlay-wrapper>\n </div>')||this;return t.scrollLeft=-1,t.scrollTop=-1,t.resetLastHorizontalScrollElementDebounce=j._.debounce(t.resetLastHorizontalScrollElement.bind(t),500),t}return n(t,e),t.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},t.prototype.getHScrollPosition=function(){return{left:this.eCenterViewport.scrollLeft,right:this.eCenterViewport.scrollLeft+this.eCenterViewport.offsetWidth}},t.prototype.onRowDataChanged=function(){this.showOrHideOverlay()},t.prototype.showOrHideOverlay=function(){var e=this.paginationProxy.isEmpty(),t=this.gridOptionsWrapper.isSuppressNoRowsOverlay();this[e&&!t?"showNoRowsOverlay":"hideOverlay"]()},t.prototype.onNewColumnsLoaded=function(){this.columnController.isReady()&&!this.paginationProxy.isEmpty()&&this.hideOverlay()},t.prototype.init=function(){var e=this;this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===g.Constants.DOM_LAYOUT_PRINT,this.gridOptionsWrapper.addLayoutElement(this.getGui()),this.gridOptionsWrapper.addLayoutElement(this.eBodyViewport),this.suppressScrollOnFloatingRow(),this.setupRowAnimationCssClass(),this.buildRowContainerComponents(),this.addEventListeners(),this.addDragListeners(),this.addScrollListener(),this.gridOptionsWrapper.isRowModelDefault()&&!this.gridOptionsWrapper.getRowData()&&this.showLoadingOverlay(),this.setCellTextSelection(this.gridOptionsWrapper.isEnableCellTextSelect()),this.setPinnedContainerSize(),this.setHeaderAndFloatingHeights(),this.disableBrowserDragging(),this.addMouseListeners(),this.addKeyboardEvents(),this.addBodyViewportListener(),this.addStopEditingWhenGridLosesFocus(),this.mockContextMenuForIPad(),this.addRowDragListener(),this.$scope&&this.addAngularApplyCheck(),this.onDisplayedColumnsWidthChanged(),this.gridApi.registerGridComp(this),this.alignedGridsService.registerGridComp(this),this.headerRootComp.registerGridComp(this),this.navigationService.registerGridComp(this),this.heightScaler.registerGridComp(this),this.autoHeightCalculator.registerGridComp(this),this.columnAnimationService.registerGridComp(this),this.autoWidthCalculator.registerGridComp(this),this.paginationAutoPageSizeService.registerGridComp(this),this.beans.registerGridComp(this),this.rowRenderer.registerGridComp(this),this.rangeController&&this.rangeController.registerGridComp(this),[this.eCenterViewport,this.eBodyViewport].forEach((function(t){var o=e.resizeObserverService.observeResize(t,e.onCenterViewportResized.bind(e));e.addDestroyFunc((function(){return o()}))}))},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===g.Constants.DOM_LAYOUT_PRINT;this.printLayout!==e&&(this.printLayout=e,this.setWidthsOfContainers(),this.setPinnedContainerSize())},t.prototype.onCenterViewportResized=function(){this.checkViewportAndScrolls()},t.prototype.setColumnMovingCss=function(e){this.addOrRemoveCssClass("ag-column-moving",e)},t.prototype.setCellTextSelection=function(e){void 0===e&&(e=!1),[this.eTop,this.eCenterContainer,this.eBottom].forEach((function(t){return j._.addOrRemoveCssClass(t,"ag-selectable",e)}))},t.prototype.addRowDragListener=function(){var e=new N.RowDragFeature(this.eBodyViewport,this);this.getContext().wireBean(e),this.dragAndDropService.addDropTarget(e)},t.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsWrapper.isStopEditingWhenGridLosesFocus()){var t=function(t){for(var o=!1,i=t.relatedTarget;j._.exists(i)&&!o;){var n=!!e.gridOptionsWrapper.getDomData(i,E.PopupEditorWrapper.DOM_KEY_POPUP_EDITOR_WRAPPER),r=e.eBodyViewport===i||e.eBottom===i||e.eTop===i;o=n||r,i=i.parentNode}o||e.rowRenderer.stopEditing()};this.addDestroyableEventListener(this.eBodyViewport,"focusout",t),this.addDestroyableEventListener(this.eTop,"focusout",t),this.addDestroyableEventListener(this.eBottom,"focusout",t)}},t.prototype.addAngularApplyCheck=function(){var e=this,t=!1,o=function(){t||(t=!0,window.setTimeout((function(){t=!1,e.$scope.$apply()}),0))};this.addDestroyableEventListener(this.eventService,h.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,o),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_VIRTUAL_COLUMNS_CHANGED,o)},t.prototype.disableBrowserDragging=function(){this.addGuiEventListener("dragstart",(function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}))},t.prototype.addEventListeners=function(){this.addDestroyableEventListener(this.eventService,h.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_PINNED_ROW_DATA_CHANGED,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_ROW_DATA_CHANGED,this.onRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_ROW_DATA_UPDATED,this.onRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_PIVOT_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_GROUP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_FLOATING_FILTERS_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this))},t.prototype.addDragListeners=function(){var e=this;this.gridOptionsWrapper.isEnableRangeSelection()&&!j._.missing(this.rangeController)&&[this.eLeftContainer,this.eRightContainer,this.eCenterContainer,this.eTop,this.eBottom].forEach((function(t){var o={eElement:t,onDragStart:e.rangeController.onDragStart.bind(e.rangeController),onDragStop:e.rangeController.onDragStop.bind(e.rangeController),onDragging:e.rangeController.onDragging.bind(e.rangeController),skipMouseEvent:function(e){return e.shiftKey}};e.dragService.addDragSource(o),e.addDestroyFunc((function(){return e.dragService.removeDragSource(o)}))}))},t.prototype.addMouseListeners=function(){var e=this;["click","mousedown","dblclick","contextmenu","mouseover","mouseout"].forEach((function(t){var o=e.processMouseEvent.bind(e,t);e.eAllCellContainers.forEach((function(i){return e.addDestroyableEventListener(i,t,o)}))}))},t.prototype.addKeyboardEvents=function(){var e=this;["keydown","keypress"].forEach((function(t){var o=e.processKeyboardEvent.bind(e,t);e.eAllCellContainers.forEach((function(i){e.addDestroyableEventListener(i,t,o,!0)}))}))},t.prototype.addBodyViewportListener=function(){var e=this;this.addDestroyableEventListener(this.eBodyViewport,"contextmenu",(function(t){var o=j._.getTarget(t);o!==e.eBodyViewport&&o!==e.eCenterViewport||(e.onContextMenu(t,null,null,null,null),e.preventDefaultOnContextMenu(t))}))},t.prototype.getBodyClientRect=function(){if(this.eBodyViewport)return this.eBodyViewport.getBoundingClientRect()},t.prototype.getRowForEvent=function(e){for(var t=j._.getTarget(e);t;){var o=this.gridOptionsWrapper.getDomData(t,S.RowComp.DOM_DATA_KEY_RENDERED_ROW);if(o)return o;t=t.parentElement}return null},t.prototype.processKeyboardEvent=function(e,t){var o=j._.getCellCompForEvent(this.gridOptionsWrapper,t),i=o.getRenderedRow().getRowNode(),n=o.getColumn(),r=o.isEditing();if(o){if(j._.isUserSuppressingKeyboardEvent(this.gridOptionsWrapper,t,i,n,r))t.preventDefault();else switch(e){case"keydown":this.navigationService.handlePageScrollingKey(t)||o.onKeyDown(t),this.doClipboardOperations(t,o);break;case"keypress":o.onKeyPress(t)}if("keydown"===e){var s=o.createEvent(t,h.Events.EVENT_CELL_KEY_DOWN);this.beans.eventService.dispatchEvent(s)}if("keypress"===e){var a=o.createEvent(t,h.Events.EVENT_CELL_KEY_PRESS);this.beans.eventService.dispatchEvent(a)}}},t.prototype.doClipboardOperations=function(e,t){if((e.ctrlKey||e.metaKey)&&!t.isEditing()&&this.mouseEventService.isEventFromThisGrid(e))switch(e.which){case g.Constants.KEY_A:return this.onCtrlAndA(e);case g.Constants.KEY_C:return this.onCtrlAndC(e);case g.Constants.KEY_V:return this.onCtrlAndV();case g.Constants.KEY_D:return this.onCtrlAndD(e)}},t.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},t.prototype.processMouseEvent=function(e,t){if(this.mouseEventService.isEventFromThisGrid(t)&&!j._.isStopPropagationForAgGrid(t)){var o=this.getRowForEvent(t),i=this.mouseEventService.getRenderedCellForEvent(t);"contextmenu"===e?this.handleContextMenuMouseEvent(t,null,o,i):(i&&i.onMouseEvent(e,t),o&&o.onMouseEvent(e,t)),this.preventDefaultOnContextMenu(t)}},t.prototype.mockContextMenuForIPad=function(){var e=this;j._.isUserAgentIPad()&&this.eAllCellContainers.forEach((function(t){var o=new T.TouchListener(t);e.addDestroyableEventListener(o,T.TouchListener.EVENT_LONG_TAP,(function(t){var o=e.getRowForEvent(t.touchEvent),i=e.mouseEventService.getRenderedCellForEvent(t.touchEvent);e.handleContextMenuMouseEvent(null,t.touchEvent,o,i)})),e.addDestroyFunc((function(){return o.destroy()}))}))},t.prototype.handleContextMenuMouseEvent=function(e,t,o,i){var n=o?o.getRowNode():null,r=i?i.getColumn():null,s=null;if(r){var a=e||t;i.dispatchCellContextMenuEvent(a),s=this.valueService.getValue(r,n)}this.onContextMenu(e,t,n,r,s)},t.prototype.onContextMenu=function(e,t,o,i,n){if((this.gridOptionsWrapper.isAllowContextMenuWithControlKey()||!e||!e.ctrlKey&&!e.metaKey)&&this.contextMenuFactory&&!this.gridOptionsWrapper.isSuppressContextMenu()){var r=e||t.touches[0];this.contextMenuFactory.showMenu(o,i,n,r),(e||t).preventDefault()}},t.prototype.preventDefaultOnContextMenu=function(e){this.gridOptionsWrapper.isSuppressMiddleClickScrolls()&&2===e.which&&e.preventDefault()},t.prototype.onCtrlAndA=function(e){var t=this,o=t.columnController,i=t.pinnedRowModel,n=t.paginationProxy,r=t.rangeController,s=g.Constants.PINNED_BOTTOM,a=g.Constants.PINNED_TOP;if(r&&n.isRowsToRender()){var l=[i.isEmpty(a),i.isEmpty(s)],p=l[0]?null:a,u=void 0,c=void 0;l[1]?(u=null,c=this.paginationProxy.getTotalRowCount()-1):(u=s,c=i.getPinnedBottomRowData().length-1);var d=o.getAllDisplayedColumns();if(j._.missingOrEmpty(d))return;r.setRange({rowStart:0,floatingStart:p,rowEnd:c,floatingEnd:u,columnStart:d[0],columnEnd:d[d.length-1]})}e.preventDefault()},t.prototype.onCtrlAndC=function(e){if(this.clipboardService&&!this.gridOptionsWrapper.isEnableCellTextSelection()){var t=this.focusedCellController.getFocusedCell();this.clipboardService.copyToClipboard(),e.preventDefault(),t&&this.focusedCellController.setFocusedCell(t.rowIndex,t.column,t.floating,!0)}},t.prototype.onCtrlAndV=function(){this.enterprise&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.pasteFromClipboard()},t.prototype.onCtrlAndD=function(e){this.enterprise&&(this.clipboardService.copyRangeDown(),e.preventDefault())},t.prototype.ensureIndexVisible=function(e,t){if(!this.printLayout){var o=this.paginationProxy.getTotalRowCount();if("number"!=typeof e||e<0||e>=o)console.warn("invalid row index for ensureIndexVisible: "+e);else{this.paginationProxy.goToPageWithIndex(e);var i,n=this.paginationProxy.getRow(e);do{var r=n.rowTop,s=n.rowHeight,a=this.paginationProxy.getPixelOffset(),l=n.rowTop-a,p=l+n.rowHeight,u=this.getVScrollPosition(),c=this.heightScaler.getOffset(),d=u.top+c,h=u.bottom+c,f=h-d,g=this.heightScaler.getScrollPositionForPixel(l),m=this.heightScaler.getScrollPositionForPixel(p-f),y=Math.min((g+m)/2,l),v=null;"top"===t?v=g:"bottom"===t?v=m:"middle"===t?v=y:d>l?v=g:h<p&&(v=m),null!==v&&(this.eBodyViewport.scrollTop=v,this.rowRenderer.redrawAfterScroll()),i=r!==n.rowTop||s!==n.rowHeight}while(i);this.animationFrameService.flushAllFrames()}}},t.prototype.getCenterWidth=function(){return this.eCenterViewport.clientWidth},t.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsWrapper.isAlwaysShowVerticalScroll();return j._.addOrRemoveCssClass(this.eBodyViewport,"ag-force-vertical-scroll",e),e||j._.isVerticalScrollShowing(this.eBodyViewport)},t.prototype.isHorizontalScrollShowing=function(){return j._.isHorizontalScrollShowing(this.eCenterViewport)},t.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.setPinnedContainerSize()},t.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},t.prototype.updateScrollVisibleServiceImpl=function(){var e={horizontalScrollShowing:!1,verticalScrollShowing:!1};e.verticalScrollShowing=this.isVerticalScrollShowing(),e.horizontalScrollShowing=this.isHorizontalScrollShowing(),this.scrollVisibleService.setScrollsVisible(e),this.setHorizontalScrollVisible(e.horizontalScrollShowing),this.setVerticalScrollPaddingVisible(e.verticalScrollShowing)},t.prototype.setHorizontalScrollVisible=function(e){var t=this.gridOptionsWrapper.isSuppressHorizontalScroll(),o=e&&this.gridOptionsWrapper.getScrollbarWidth()||0,i=t?0:o,n=j._.isBrowserIE()&&e;this.eCenterViewport.style.height="calc(100% + "+o+"px)",j._.setFixedHeight(this.eHorizontalScrollBody,i),j._.setFixedHeight(this.eBodyHorizontalScrollViewport,i+(n?1:0)),n&&(this.eBodyHorizontalScrollViewport.style.bottom="1px"),j._.setFixedHeight(this.eBodyHorizontalScrollContainer,i)},t.prototype.setVerticalScrollPaddingVisible=function(e){var t=e?"scroll":"hidden";this.eTop.style.overflowY=this.eBottom.style.overflowY=t,this.setFakeHScrollSpacerWidths()},t.prototype.ensureColumnVisible=function(e){var t=this.columnController.getGridColumn(e);if(t)if(t.isPinned())console.warn("calling ensureIndexVisible on a "+t.getPinned()+" pinned column doesn't make sense for column "+t.getColId());else if(this.columnController.isColumnDisplayed(t)){var o,i,n=t.getLeft(),r=n+t.getActualWidth(),s=this.eCenterViewport.clientWidth,a=this.getCenterViewportScrollLeft(),l=this.columnController.getBodyContainerWidth();this.enableRtl?(o=l-a-s,i=l-a):(o=a,i=s+a);var p=o>n,u=i<r,c=s<t.getActualWidth(),d=p||c,h=u,f=this.getCenterViewportScrollLeft();(d||h)&&(f=this.enableRtl?d?l-s-n:l-r:d?n:r-s,this.setCenterViewportScrollLeft(f)),this.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}else console.warn("column is not currently visible")},t.prototype.showLoadingOverlay=function(){this.gridOptionsWrapper.isSuppressLoadingOverlay()||this.overlayWrapper.showLoadingOverlay()},t.prototype.showNoRowsOverlay=function(){this.gridOptionsWrapper.isSuppressNoRowsOverlay()||this.overlayWrapper.showNoRowsOverlay()},t.prototype.hideOverlay=function(){this.overlayWrapper.hideOverlay()},t.prototype.sizeColumnsToFit=function(e){var t=this,o=this.eBodyViewport.clientWidth;o>0?this.columnController.sizeColumnsToFit(o,"sizeColumnsToFit"):void 0===e?window.setTimeout((function(){t.sizeColumnsToFit(100)}),0):100===e?window.setTimeout((function(){t.sizeColumnsToFit(500)}),100):500===e?window.setTimeout((function(){t.sizeColumnsToFit(-1)}),500):console.warn("ag-Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},t.prototype.getCenterContainer=function(){return this.eCenterContainer},t.prototype.getDropTargetBodyContainers=function(){return[this.eCenterViewport,this.eTopViewport,this.eBottomViewport]},t.prototype.getDropTargetLeftContainers=function(){return[this.eLeftContainer,this.eLeftBottom,this.eLeftTop]},t.prototype.getDropTargetRightContainers=function(){return[this.eRightContainer,this.eRightBottom,this.eRightTop]},t.prototype.buildRowContainerComponents=function(){var e=this;this.eAllCellContainers=[this.eLeftContainer,this.eRightContainer,this.eCenterContainer,this.eTop,this.eBottom,this.eFullWidthContainer],this.rowContainerComponents={body:new C.RowContainerComponent({eContainer:this.eCenterContainer,eWrapper:this.eCenterColsClipper,eViewport:this.eBodyViewport}),fullWidth:new C.RowContainerComponent({eContainer:this.eFullWidthContainer}),pinnedLeft:new C.RowContainerComponent({eContainer:this.eLeftContainer}),pinnedRight:new C.RowContainerComponent({eContainer:this.eRightContainer}),floatingTop:new C.RowContainerComponent({eContainer:this.eTopContainer}),floatingTopPinnedLeft:new C.RowContainerComponent({eContainer:this.eLeftTop}),floatingTopPinnedRight:new C.RowContainerComponent({eContainer:this.eRightTop}),floatingTopFullWidth:new C.RowContainerComponent({eContainer:this.eTopFullWidthContainer,hideWhenNoChildren:!0}),floatingBottom:new C.RowContainerComponent({eContainer:this.eBottomContainer}),floatingBottomPinnedLeft:new C.RowContainerComponent({eContainer:this.eLeftBottom}),floatingBottomPinnedRight:new C.RowContainerComponent({eContainer:this.eRightBottom}),floatingBottomFullWith:new C.RowContainerComponent({eContainer:this.eBottomFullWidthContainer,hideWhenNoChildren:!0})},j._.iterateObject(this.rowContainerComponents,(function(t,o){o&&e.getContext().wireBean(o)}))},t.prototype.setupRowAnimationCssClass=function(){var e=this,t=function(){var t=e.gridOptionsWrapper.isAnimateRows()&&!e.heightScaler.isScaling();j._.addOrRemoveCssClass(e.eBodyViewport,"ag-row-animation",t),j._.addOrRemoveCssClass(e.eBodyViewport,"ag-row-no-animation",!t)};t(),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_HEIGHT_SCALE_CHANGED,t)},t.prototype.suppressScrollOnFloatingRow=function(){var e=this;this.addDestroyableEventListener(this.eTopViewport,"scroll",(function(){return e.eTopViewport.scrollLeft=0})),this.addDestroyableEventListener(this.eBottomViewport,"scroll",(function(){return e.eTopViewport.scrollLeft=0}))},t.prototype.getRowContainers=function(){return this.rowContainerComponents},t.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},t.prototype.onDisplayedColumnsChanged=function(){this.setPinnedContainerSize(),this.setHeaderAndFloatingHeights(),this.onHorizontalViewportChanged(),this.updateScrollVisibleService()},t.prototype.onDisplayedColumnsWidthChanged=function(){this.setWidthsOfContainers(),this.onHorizontalViewportChanged(),this.updateScrollVisibleService(),this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},t.prototype.setWidthsOfContainers=function(){this.setCenterWidth(),this.setPinnedContainerSize()},t.prototype.setCenterWidth=function(){var e=this.columnController.getBodyContainerWidth();this.printLayout&&(e+=this.columnController.getPinnedLeftContainerWidth()+this.columnController.getPinnedRightContainerWidth()),this.headerRootComp.setHeaderContainerWidth(e);var t=e+"px";this.eCenterContainer.style.width=t,this.eBottomContainer.style.width=t,this.eTopContainer.style.width=t,this.printLayout||(this.eBodyHorizontalScrollContainer.style.width=t)},t.prototype.setPinnedLeftWidth=function(){var e=this,t=this.pinningLeft,o=this.columnController.getPinnedLeftContainerWidth(),i=this.pinningLeft=!this.printLayout&&o>0,n=[this.eLeftContainer,this.eLeftTop,this.eLeftBottom];t!==i&&this.headerRootComp.setLeftVisible(i),n.forEach((function(t){return j._.setVisible(t,e.pinningLeft)})),i&&n.forEach((function(e){return j._.setFixedWidth(e,o)}))},t.prototype.setPinnedRightWidth=function(){var e=this.pinningRight,t=this.columnController.getPinnedRightContainerWidth(),o=this.pinningRight=!this.printLayout&&t>0,i=[this.eRightContainer,this.eRightTop,this.eRightBottom];e!==o&&this.headerRootComp.setRightVisible(o),i.forEach((function(e){return j._.setVisible(e,o)})),o&&i.forEach((function(e){return j._.setFixedWidth(e,t)}))},t.prototype.setPinnedContainerSize=function(){this.setPinnedLeftWidth(),this.setPinnedRightWidth(),this.setFakeHScrollSpacerWidths()},t.prototype.setFakeHScrollSpacerWidths=function(){var e=this.columnController.getPinnedRightContainerWidth();!this.enableRtl&&this.isVerticalScrollShowing()&&(e+=this.scrollWidth),j._.setFixedWidth(this.eHorizontalRightSpacer,e),j._.addOrRemoveCssClass(this.eHorizontalRightSpacer,"ag-scroller-corner",e<=this.scrollWidth);var t=this.columnController.getPinnedLeftContainerWidth();this.enableRtl&&this.isVerticalScrollShowing()&&(t+=this.scrollWidth),j._.setFixedWidth(this.eHorizontalLeftSpacer,t),j._.addOrRemoveCssClass(this.eHorizontalLeftSpacer,"ag-scroller-corner",t<=this.scrollWidth)},t.prototype.checkBodyHeight=function(){var e=this.eBodyViewport.clientHeight;if(this.bodyHeight!==e){this.bodyHeight=e;var t={type:h.Events.EVENT_BODY_HEIGHT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},t.prototype.setHeaderAndFloatingHeights=function(){var e,t,o,i=this,n=i.columnController,r=i.gridOptionsWrapper,s=i.pinnedRowModel,a=i.eTop,l=i.eBottom,p=0,u=n.getHeaderRowCount();n.isPivotMode()?(p=0,t=r.getPivotGroupHeaderHeight(),o=r.getPivotHeaderHeight()):(r.isFloatingFilter()&&u++,p=r.isFloatingFilter()?1:0,t=r.getGroupHeaderHeight(),o=r.getHeaderHeight());var c=u-(1+p);e=p*r.getFloatingFiltersHeight(),e+=c*t,e+=o,this.headerRootComp.setHeight(e);var d=s.getPinnedTopTotalHeight();d&&(d+=1);var h=s.getPinnedBottomTotalHeight();h&&(h+=1);var f=d+"px",g=h+"px";a.style.minHeight=f,a.style.height=f,a.style.display=d?"inherit":"none",l.style.minHeight=g,l.style.height=g,l.style.display=h?"inherit":"none",this.checkBodyHeight()},t.prototype.getBodyHeight=function(){return this.bodyHeight},t.prototype.setHorizontalScrollPosition=function(e){this.eCenterViewport.scrollLeft=e,this.doHorizontalScroll(e)},t.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},t.prototype.scrollHorizontally=function(e){var t=this.eCenterViewport.scrollLeft;return this.setHorizontalScrollPosition(t+e),this.eCenterViewport.scrollLeft-t},t.prototype.scrollVertically=function(e){var t=this.eBodyViewport.scrollTop;return this.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t},t.prototype.addScrollListener=function(){this.addDestroyableEventListener(this.eCenterViewport,"scroll",this.onCenterViewportScroll.bind(this)),this.addDestroyableEventListener(this.eBodyHorizontalScrollViewport,"scroll",this.onFakeHorizontalScroll.bind(this)),this.addDestroyableEventListener(this.eBodyViewport,"scroll",this.onVerticalScroll.bind(this))},t.prototype.onVerticalScroll=function(){var e=this.eBodyViewport.scrollTop;this.scrollTop=e,this.animationFrameService.setScrollTop(e),this.redrawRowsAfterScroll()},t.prototype.isControllingScroll=function(e){return this.lastHorizontalScrollElement?e===this.lastHorizontalScrollElement:(this.lastHorizontalScrollElement=e,!0)},t.prototype.onFakeHorizontalScroll=function(){this.isControllingScroll(this.eBodyHorizontalScrollViewport)&&this.onBodyHorizontalScroll(this.eBodyHorizontalScrollViewport)},t.prototype.onCenterViewportScroll=function(){this.isControllingScroll(this.eCenterViewport)&&this.onBodyHorizontalScroll(this.eCenterViewport)},t.prototype.onBodyHorizontalScroll=function(e){var t=this.eCenterViewport,o=t.scrollWidth,i=t.clientWidth,n=Math.floor(j._.getScrollLeft(e,this.enableRtl));n<0||n+i>o||(this.doHorizontalScroll(n),this.resetLastHorizontalScrollElementDebounce())},t.prototype.resetLastHorizontalScrollElement=function(){this.lastHorizontalScrollElement=null},t.prototype.doHorizontalScroll=function(e){this.scrollLeft=e;var t={type:h.Events.EVENT_BODY_SCROLL,api:this.gridApi,columnApi:this.columnApi,direction:"horizontal",left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(t),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.onHorizontalViewportChanged()},t.prototype.redrawRowsAfterScroll=function(){var e={type:h.Events.EVENT_BODY_SCROLL,direction:"vertical",api:this.gridApi,columnApi:this.columnApi,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(e)},t.prototype.onHorizontalViewportChanged=function(){var e=this.eCenterViewport.clientWidth,t=this.getCenterViewportScrollLeft();this.columnController.setVirtualViewportPosition(e,t)},t.prototype.getCenterViewportScrollLeft=function(){return j._.getScrollLeft(this.eCenterViewport,this.enableRtl)},t.prototype.setCenterViewportScrollLeft=function(e){j._.setScrollLeft(this.eCenterViewport,e,this.enableRtl)},t.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){void 0===e&&(e=this.getCenterViewportScrollLeft());var t=this.enableRtl?e:-e,o=this.eCenterViewport,i=o.clientWidth,n=o.scrollWidth;if(!(Math.abs(t)+i>n||this.enableRtl&&t<0||!this.enableRtl&&t>0)){this.headerRootComp.setHorizontalScroll(t),this.eBottomContainer.style.transform="translateX("+t+"px)",this.eTopContainer.style.transform="translateX("+t+"px)";var r=this.lastHorizontalScrollElement===this.eCenterViewport?this.eBodyHorizontalScrollViewport:this.eCenterViewport;j._.setScrollLeft(r,e,this.enableRtl)}},t.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e)},t.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},r([c.Autowired("alignedGridsService"),s("design:type",_.AlignedGridsService)],t.prototype,"alignedGridsService",void 0),r([c.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([c.Autowired("columnController"),s("design:type",l.ColumnController)],t.prototype,"columnController",void 0),r([c.Autowired("rowRenderer"),s("design:type",u.RowRenderer)],t.prototype,"rowRenderer",void 0),r([c.Autowired("pinnedRowModel"),s("design:type",b.PinnedRowModel)],t.prototype,"pinnedRowModel",void 0),r([c.Autowired("eventService"),s("design:type",d.EventService)],t.prototype,"eventService",void 0),r([c.Autowired("animationFrameService"),s("design:type",O.AnimationFrameService)],t.prototype,"animationFrameService",void 0),r([c.Autowired("navigationService"),s("design:type",A.NavigationService)],t.prototype,"navigationService",void 0),r([c.Autowired("autoHeightCalculator"),s("design:type",L.AutoHeightCalculator)],t.prototype,"autoHeightCalculator",void 0),r([c.Autowired("columnAnimationService"),s("design:type",k.ColumnAnimationService)],t.prototype,"columnAnimationService",void 0),r([c.Autowired("autoWidthCalculator"),s("design:type",M.AutoWidthCalculator)],t.prototype,"autoWidthCalculator",void 0),r([c.Autowired("paginationAutoPageSizeService"),s("design:type",w.PaginationAutoPageSizeService)],t.prototype,"paginationAutoPageSizeService",void 0),r([c.Autowired("beans"),s("design:type",G.Beans)],t.prototype,"beans",void 0),r([c.Autowired("paginationProxy"),s("design:type",w.PaginationProxy)],t.prototype,"paginationProxy",void 0),r([c.Autowired("columnApi"),s("design:type",p.ColumnApi)],t.prototype,"columnApi",void 0),r([c.Autowired("gridApi"),s("design:type",R.GridApi)],t.prototype,"gridApi",void 0),r([c.Autowired("dragService"),s("design:type",f.DragService)],t.prototype,"dragService",void 0),r([c.Autowired("mouseEventService"),s("design:type",m.MouseEventService)],t.prototype,"mouseEventService",void 0),r([c.Autowired("focusedCellController"),s("design:type",y.FocusedCellController)],t.prototype,"focusedCellController",void 0),r([c.Autowired("$scope"),s("design:type",Object)],t.prototype,"$scope",void 0),r([c.Autowired("scrollVisibleService"),s("design:type",v.ScrollVisibleService)],t.prototype,"scrollVisibleService",void 0),r([c.Autowired("valueService"),s("design:type",P.ValueService)],t.prototype,"valueService",void 0),r([c.Autowired("dragAndDropService"),s("design:type",D.DragAndDropService)],t.prototype,"dragAndDropService",void 0),r([c.Autowired("maxDivHeightScaler"),s("design:type",x.MaxDivHeightScaler)],t.prototype,"heightScaler",void 0),r([c.Autowired("enterprise"),s("design:type",Boolean)],t.prototype,"enterprise",void 0),r([c.Autowired("resizeObserverService"),s("design:type",H.ResizeObserverService)],t.prototype,"resizeObserverService",void 0),r([c.Optional("rangeController"),s("design:type",Object)],t.prototype,"rangeController",void 0),r([c.Optional("contextMenuFactory"),s("design:type",Object)],t.prototype,"contextMenuFactory",void 0),r([c.Optional("clipboardService"),s("design:type",Object)],t.prototype,"clipboardService",void 0),r([V.RefSelector("eBodyViewport"),s("design:type",HTMLElement)],t.prototype,"eBodyViewport",void 0),r([V.RefSelector("eCenterContainer"),s("design:type",HTMLElement)],t.prototype,"eCenterContainer",void 0),r([V.RefSelector("eCenterViewport"),s("design:type",HTMLElement)],t.prototype,"eCenterViewport",void 0),r([V.RefSelector("eLeftContainer"),s("design:type",HTMLElement)],t.prototype,"eLeftContainer",void 0),r([V.RefSelector("eRightContainer"),s("design:type",HTMLElement)],t.prototype,"eRightContainer",void 0),r([V.RefSelector("eCenterColsClipper"),s("design:type",HTMLElement)],t.prototype,"eCenterColsClipper",void 0),r([V.RefSelector("eHorizontalScrollBody"),s("design:type",HTMLElement)],t.prototype,"eHorizontalScrollBody",void 0),r([V.RefSelector("eHorizontalLeftSpacer"),s("design:type",HTMLElement)],t.prototype,"eHorizontalLeftSpacer",void 0),r([V.RefSelector("eHorizontalRightSpacer"),s("design:type",HTMLElement)],t.prototype,"eHorizontalRightSpacer",void 0),r([V.RefSelector("eBodyHorizontalScrollViewport"),s("design:type",HTMLElement)],t.prototype,"eBodyHorizontalScrollViewport",void 0),r([V.RefSelector("eBodyHorizontalScrollContainer"),s("design:type",HTMLElement)],t.prototype,"eBodyHorizontalScrollContainer",void 0),r([V.RefSelector("eFullWidthContainer"),s("design:type",HTMLElement)],t.prototype,"eFullWidthContainer",void 0),r([V.RefSelector("eTop"),s("design:type",HTMLElement)],t.prototype,"eTop",void 0),r([V.RefSelector("eLeftTop"),s("design:type",HTMLElement)],t.prototype,"eLeftTop",void 0),r([V.RefSelector("eRightTop"),s("design:type",HTMLElement)],t.prototype,"eRightTop",void 0),r([V.RefSelector("eTopContainer"),s("design:type",HTMLElement)],t.prototype,"eTopContainer",void 0),r([V.RefSelector("eTopViewport"),s("design:type",HTMLElement)],t.prototype,"eTopViewport",void 0),r([V.RefSelector("eTopFullWidthContainer"),s("design:type",HTMLElement)],t.prototype,"eTopFullWidthContainer",void 0),r([V.RefSelector("eBottom"),s("design:type",HTMLElement)],t.prototype,"eBottom",void 0),r([V.RefSelector("eLeftBottom"),s("design:type",HTMLElement)],t.prototype,"eLeftBottom",void 0),r([V.RefSelector("eRightBottom"),s("design:type",HTMLElement)],t.prototype,"eRightBottom",void 0),r([V.RefSelector("eBottomContainer"),s("design:type",HTMLElement)],t.prototype,"eBottomContainer",void 0),r([V.RefSelector("eBottomViewport"),s("design:type",HTMLElement)],t.prototype,"eBottomViewport",void 0),r([V.RefSelector("eBottomFullWidthContainer"),s("design:type",HTMLElement)],t.prototype,"eBottomFullWidthContainer",void 0),r([V.RefSelector("headerRoot"),s("design:type",W.HeaderRootComp)],t.prototype,"headerRootComp",void 0),r([V.RefSelector("overlayWrapper"),s("design:type",I.OverlayWrapperComponent)],t.prototype,"overlayWrapper",void 0),r([c.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(F.Component);t.GridPanel=B},64279:e=>{const{AbortController:t,AbortSignal:o}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;e.exports=t,e.exports.AbortSignal=o,e.exports.default=t},64314:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(44081),a=function(){function e(){this.executeNextFuncs=[],this.executeLaterFuncs=[],this.active=!1,this.animationThreadCount=0}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.isActive=function(){return this.active},e.prototype.start=function(){this.active||this.gridOptionsWrapper.isSuppressColumnMoveAnimation()||this.gridOptionsWrapper.isEnableRtl()||(this.ensureAnimationCssClassPresent(),this.active=!0)},e.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},e.prototype.executeNextVMTurn=function(e){this.active?this.executeNextFuncs.push(e):e()},e.prototype.executeLaterVMTurn=function(e){this.active?this.executeLaterFuncs.push(e):e()},e.prototype.ensureAnimationCssClassPresent=function(){var e=this;this.animationThreadCount++;var t=this.animationThreadCount;this.gridPanel.setColumnMovingCss(!0),this.executeLaterFuncs.push((function(){e.animationThreadCount===t&&e.gridPanel.setColumnMovingCss(!1)}))},e.prototype.flush=function(){var e=this.executeNextFuncs;this.executeNextFuncs=[];var t=this.executeLaterFuncs;this.executeLaterFuncs=[],0===e.length&&0===t.length||(window.setTimeout((function(){return e.forEach((function(e){return e()}))}),0),window.setTimeout((function(){return t.forEach((function(e){return e()}))}),300))},i([r.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Bean("columnAnimationService")],e)}();t.ColumnAnimationService=a},65360:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=o(44081),n=o(54828),r=o(44871),s=o(98239),a=o(10042),l=o(89929),p=o(55e3),u=o(24463),c=o(60843),d=o(64229),h=o(40797),f=o(7897),g=o(31887),m=o(40634),y=o(92427),v=o(73575),C=o(37132),w=o(814),E=o(41832),_=o(97177),b=o(72493),R=o(43460),O=o(81999),S=o(42726),A=o(58342),P=o(25230),T=o(86608),D=o(42195),N=o(1571),x=o(38427),I=o(24048),F=o(18954),L=o(57498),k=o(63405),M=o(30971),G=o(719),V=o(34470),W=o(93121),H=o(21951),j=o(86895),B=o(13887),U=o(33467),Y=o(59873),z=o(42664),q=o(66490),K=o(93830),$=o(64314),Z=o(2461),Q=o(663),X=o(43878),J=o(41451),ee=o(76133),te=o(45727),oe=o(88842),ie=o(6065),ne=o(10190),re=o(50580),se=o(85910),ae=o(36777),le=o(69638),pe=o(22743),ue=o(55090),ce=o(59007),de=o(69065),he=o(8894),fe=o(51755),ge=o(4889),me=o(23801),ye=o(21914),ve=o(68198),Ce=o(9018),we=o(83423),Ee=o(39984),_e=o(45697),be=function(){function e(t,o,k){t||console.error("ag-Grid: no div element provided to the grid"),o||console.error("ag-Grid: no gridOptions provided to the grid"),this.gridOptions=o;var M=this.getRowModelClass(o),G=we._.exists(e.enterpriseBeans),te=k?k.frameworkFactory:null;we._.missing(te)&&(te=new j.BaseFrameworkFactory);var be=[];e.enterpriseBeans&&(be=be.concat(e.enterpriseBeans)),e.frameworkBeans&&(be=be.concat(e.frameworkBeans));var Re={enterprise:G,gridOptions:o,eGridDiv:t,$scope:k?k.$scope:null,$compile:k?k.$compile:null,quickFilterOnScope:k?k.quickFilterOnScope:null,globalEventListener:k?k.globalEventListener:null,frameworkFactory:te};k&&k.seedBeanInstances&&we._.assign(Re,k.seedBeanInstances);var Oe=[{componentName:"AgCheckbox",theClass:H.AgCheckbox},{componentName:"AgGridComp",theClass:d.GridPanel},{componentName:"AgHeaderRoot",theClass:l.HeaderRootComp},{componentName:"AgPagination",theClass:ye.PaginationComp},{componentName:"AgOverlayWrapper",theClass:_e.OverlayWrapperComponent}];e.enterpriseComponents&&(Oe=Oe.concat(e.enterpriseComponents));var Se={overrideBeans:be,seed:Re,beans:[M,ue.Beans,J.PaginationAutoPageSizeService,h.GridApi,ae.UserComponentRegistry,le.AgComponentUtils,pe.ComponentMetadataProvider,ve.ResizeObserverService,ae.UserComponentRegistry,se.UserComponentFactory,fe.MaxDivHeightScaler,me.AutoHeightCalculator,V.CellRendererFactory,_.HorizontalResizeService,re.PinnedRowModel,P.DragService,g.DisplayedGroupCreator,c.EventService,i.GridOptionsWrapper,v.PopupService,n.SelectionController,p.FilterManager,s.ColumnController,J.PaginationProxy,a.RowRenderer,m.ExpressionService,f.ColumnFactory,R.CsvCreator,U.Downloader,Y.XmlFactory,z.GridSerializer,y.TemplateService,ne.AlignedGridsService,he.NavigationService,v.PopupService,oe.ValueCache,u.ValueService,C.LoggerFactory,w.ColumnUtils,E.AutoWidthCalculator,S.StandardMenuFactory,A.DragAndDropService,r.ColumnApi,D.FocusedCellController,N.MouseEventService,ce.Environment,x.CellNavigationService,I.FilterStage,F.SortStage,L.FlattenStage,Q.FilterService,W.ValueFormatterService,q.StylingService,B.ScrollVisibleService,T.SortController,K.ColumnHoverService,$.ColumnAnimationService,Z.SortService,ge.SelectableService,X.AutoGroupColService,ee.ImmutableService,ie.ChangeDetectionService,de.AnimationFrameService,Ee.TooltipManager,Ce.ZipContainer],components:Oe,enterpriseDefaultComponents:e.enterpriseDefaultComponents,debug:!!o.debug};this.logger=new C.Logger("ag-Grid",(function(){return o.debug}));var Ae=new C.Logger("Context",(function(){return Se.debug}));this.context=new b.Context(Se,Ae);var Pe=new O.GridCore;this.context.wireBean(Pe),this.setColumnsAndData(),this.dispatchGridReadyEvent(o),this.logger.log("initialised successfully, enterprise = "+G)}return e.setEnterpriseBeans=function(t,o){this.enterpriseBeans=t,we._.iterateObject(o,(function(t,o){return e.RowModelClasses[t]=o}))},e.setEnterpriseComponents=function(e){this.enterpriseComponents=e},e.setFrameworkBeans=function(e){this.frameworkBeans=e},e.setEnterpriseDefaultComponents=function(e){this.enterpriseDefaultComponents=e},e.prototype.setColumnsAndData=function(){var e=this.context.getBean("gridOptionsWrapper"),t=this.context.getBean("columnController"),o=this.context.getBean("rowModel"),i=e.getColumnDefs(),n=e.getRowData();we._.missing(i)&&we._.missing(n)||(we._.exists(i)&&t.setColumnDefs(i,"gridInitializing"),we._.exists(n)&&o.getType()===te.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&o.setRowData(n))},e.prototype.dispatchGridReadyEvent=function(e){var t=this.context.getBean("eventService"),o={type:k.Events.EVENT_GRID_READY,api:e.api,columnApi:e.columnApi};t.dispatchEvent(o)},e.prototype.getRowModelClass=function(t){var o=t.rowModelType;if(o="enterprise"===o?te.Constants.ROW_MODEL_TYPE_SERVER_SIDE:o,we._.exists(o)){var i=e.RowModelClasses[o];if(we._.exists(i))return i;if("normal"===o)return console.warn("ag-Grid: normal rowModel deprecated. Should now be called client side row model instead."),G.ClientSideRowModel;console.error("ag-Grid: could not find matching row model for rowModelType "+o),o===te.Constants.ROW_MODEL_TYPE_VIEWPORT&&console.error("ag-Grid: rowModelType viewport is only available in ag-Grid Enterprise"),o===te.Constants.ROW_MODEL_TYPE_SERVER_SIDE&&console.error("ag-Grid: rowModelType server side is only available in ag-Grid Enterprise")}return G.ClientSideRowModel},e.prototype.destroy=function(){this.gridOptions.api.destroy()},e.RowModelClasses={infinite:M.InfiniteRowModel,clientSide:G.ClientSideRowModel},e}();t.Grid=be},65802:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(8534),s=o(44329),a=o(83423),l=function(e){function t(t){var o=e.call(this)||this;return o.maxRowFound=!1,o.blocks={},o.blockCount=0,o.virtualRowCount=t.initialRowCount,o.cacheParams=t,o}return n(t,e),t.prototype.destroy=function(){var t=this;e.prototype.destroy.call(this),this.forEachBlockInOrder((function(e){return t.destroyBlock(e)}))},t.prototype.init=function(){var e=this;this.active=!0,this.addDestroyFunc((function(){return e.active=!1}))},t.prototype.isActive=function(){return this.active},t.prototype.getVirtualRowCount=function(){return this.virtualRowCount},t.prototype.hack_setVirtualRowCount=function(e){this.virtualRowCount=e},t.prototype.isMaxRowFound=function(){return this.maxRowFound},t.prototype.onPageLoaded=function(e){this.cacheParams.rowNodeBlockLoader.loadComplete(),this.checkBlockToLoad(),this.isActive()&&(this.logger.log("onPageLoaded: page = "+e.page.getBlockNumber()+", lastRow = "+e.lastRow),e.success&&this.checkVirtualRowCount(e.page,e.lastRow))},t.prototype.purgeBlocksIfNeeded=function(e){var o=this,i=[];this.forEachBlockInOrder((function(t){t!==e&&i.push(t)})),i.sort((function(e,t){return t.getLastAccessed()-e.getLastAccessed()}));var n=this.cacheParams.maxBlocksInCache>0,r=n?this.cacheParams.maxBlocksInCache-1:null,a=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;i.forEach((function(e,t){if(e.getState()===s.RowNodeBlock.STATE_DIRTY&&t>=a||n&&t>=r){if(e.isAnyNodeOpen(o.virtualRowCount))return;o.removeBlockFromCache(e)}}))},t.prototype.postCreateBlock=function(e){e.addEventListener(s.RowNodeBlock.EVENT_LOAD_COMPLETE,this.onPageLoaded.bind(this)),this.setBlock(e.getBlockNumber(),e),this.purgeBlocksIfNeeded(e),this.checkBlockToLoad()},t.prototype.removeBlockFromCache=function(e){e&&this.destroyBlock(e)},t.prototype.checkBlockToLoad=function(){this.cacheParams.rowNodeBlockLoader.checkBlockToLoad()},t.prototype.checkVirtualRowCount=function(e,t){if("number"==typeof t&&t>=0)this.virtualRowCount=t,this.maxRowFound=!0,this.onCacheUpdated();else if(!this.maxRowFound){var o=(e.getBlockNumber()+1)*this.cacheParams.blockSize+this.cacheParams.overflowSize;this.virtualRowCount<o?(this.virtualRowCount=o,this.onCacheUpdated()):this.cacheParams.dynamicRowHeight&&this.onCacheUpdated()}},t.prototype.setVirtualRowCount=function(e,t){this.virtualRowCount=e,a._.exists(t)&&(this.maxRowFound=t),this.maxRowFound||this.virtualRowCount%this.cacheParams.blockSize==0&&this.virtualRowCount++,this.onCacheUpdated()},t.prototype.forEachNodeDeep=function(e,t){var o=this;this.forEachBlockInOrder((function(i){i.forEachNodeDeep(e,t,o.virtualRowCount)}))},t.prototype.forEachBlockInOrder=function(e){var t=this.getBlockIdsSorted();this.forEachBlockId(t,e)},t.prototype.forEachBlockInReverseOrder=function(e){var t=this.getBlockIdsSorted().reverse();this.forEachBlockId(t,e)},t.prototype.forEachBlockId=function(e,t){var o=this;e.forEach((function(e){var i=o.blocks[e];t(i,e)}))},t.prototype.getBlockIdsSorted=function(){return Object.keys(this.blocks).map((function(e){return parseInt(e,10)})).sort((function(e,t){return e-t}))},t.prototype.getBlock=function(e){return this.blocks[e]},t.prototype.setBlock=function(e,t){this.blocks[e]=t,this.blockCount++,this.cacheParams.rowNodeBlockLoader.addBlock(t)},t.prototype.destroyBlock=function(e){delete this.blocks[e.getBlockNumber()],e.destroy(),this.blockCount--,this.cacheParams.rowNodeBlockLoader.removeBlock(e)},t.prototype.onCacheUpdated=function(){if(this.isActive()){var e={type:t.EVENT_CACHE_UPDATED};this.dispatchEvent(e)}},t.prototype.purgeCache=function(){var e=this;this.forEachBlockInOrder((function(t){return e.removeBlockFromCache(t)})),this.virtualRowCount=this.cacheParams.initialRowCount,this.maxRowFound=!1,this.onCacheUpdated()},t.prototype.getRowNodesInRange=function(e,t){var o=this,i=[],n=-1,r=!1,s=new a.NumberSequence;a._.missing(e)&&(r=!0);var l=!1;return this.forEachBlockInOrder((function(a,p){l||(r&&n+1!==p?l=!0:(n=p,a.forEachNodeShallow((function(o){var n=o===e||o===t;(r||n)&&i.push(o),n&&(r=!r)}),s,o.virtualRowCount)))})),l||r?[]:i},t.EVENT_CACHE_UPDATED="cacheUpdated",t.MAX_EMPTY_BLOCKS_TO_KEEP=2,t}(r.BeanStub);t.RowNodeCache=l},66419:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=o(60843),n=o(83423),r=function(){function e(e,t){void 0===t&&(t=!1);var o=this;this.destroyFuncs=[],this.touching=!1,this.eventService=new i.EventService,this.eElement=e,this.preventMouseClick=t;var n=this.onTouchStart.bind(this),r=this.onTouchMove.bind(this),s=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",n,{passive:!0}),this.eElement.addEventListener("touchmove",r,{passive:!0}),this.eElement.addEventListener("touchend",s,{passive:!1}),this.destroyFuncs.push((function(){o.eElement.removeEventListener("touchstart",n,{passive:!0}),o.eElement.removeEventListener("touchmove",r,{passive:!0}),o.eElement.removeEventListener("touchend",s,{passive:!1})}))}return e.prototype.getActiveTouch=function(e){for(var t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.onTouchStart=function(t){var o=this;if(!this.touching){this.touchStart=t.touches[0],this.touching=!0,this.moved=!1;var i=this.touchStart;window.setTimeout((function(){var n=o.touchStart===i;if(o.touching&&n&&!o.moved){o.moved=!0;var r={type:e.EVENT_LONG_TAP,touchStart:o.touchStart,touchEvent:t};o.eventService.dispatchEvent(r)}}),500)}},e.prototype.onTouchMove=function(e){if(this.touching){var t=this.getActiveTouch(e.touches);t&&!n._.areEventsNear(t,this.touchStart,4)&&(this.moved=!0)}},e.prototype.onTouchEnd=function(t){if(this.touching){if(!this.moved){var o={type:e.EVENT_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(o),this.checkForDoubleTap()}this.preventMouseClick&&t.preventDefault(),this.touching=!1}},e.prototype.checkForDoubleTap=function(){var t=(new Date).getTime();if(this.lastTapTime&&this.lastTapTime>0)if(t-this.lastTapTime>e.DOUBLE_TAP_MILLIS){var o={type:e.EVENT_DOUBLE_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(o),this.lastTapTime=null}else this.lastTapTime=t;else this.lastTapTime=t},e.prototype.destroy=function(){this.destroyFuncs.forEach((function(e){return e()}))},e.EVENT_TAP="tap",e.EVENT_DOUBLE_TAP="doubleTap",e.EVENT_LONG_TAP="longTap",e.DOUBLE_TAP_MILLIS=500,e}();t.TouchListener=r},66490:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(40634),a=function(){function e(){}return e.prototype.processAllCellClasses=function(e,t,o,i){this.processClassRules(e.cellClassRules,t,o,i),this.processStaticCellClasses(e,t,o)},e.prototype.processClassRules=function(e,t,o,i){if("object"==typeof e&&null!==e)for(var n=Object.keys(e),r=0;r<n.length;r++){var s=n[r],a=e[s],l=void 0;"string"==typeof a?l=this.expressionService.evaluate(a,t):"function"==typeof a&&(l=a(t)),l?o(s):i&&i(s)}},e.prototype.processStaticCellClasses=function(e,t,o){if(e.cellClass){var i=void 0;"string"==typeof(i="function"==typeof e.cellClass?(0,e.cellClass)(t):e.cellClass)?o(i):Array.isArray(i)&&i.forEach((function(e){o(e)}))}},i([r.Autowired("expressionService"),n("design:type",s.ExpressionService)],e.prototype,"expressionService",void 0),i([r.Bean("stylingService")],e)}();t.StylingService=a},68198:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(44081),a=o(83423),l=function(){function e(){}return e.prototype.observeResize=function(e,t){var o,i,n,r,s,l=this.frameworkFactory,p=this.gridOptionsWrapper.isSuppressBrowserResizeObserver();return window.ResizeObserver&&!p?((s=new window.ResizeObserver(t)).observe(e),function(){return s.disconnect()}):(o=a._.offsetWidth(e),i=a._.offsetHeight(e),n=!0,(r=function(){if(n){var s=a._.offsetWidth(e),p=a._.offsetHeight(e);(s!==o||p!==i)&&(o=s,i=p,t()),l.setTimeout(r,500)}})(),function(){return n=!1})},i([r.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("frameworkFactory"),n("design:type",Object)],e.prototype,"frameworkFactory",void 0),i([r.Bean("resizeObserverService")],e)}();t.ResizeObserverService=l},68363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=e,this.pathRoot={rowNode:t,children:null},this.mapToItems[t.id]=this.pathRoot}return e.prototype.setInactive=function(){this.active=!1},e.prototype.isActive=function(){return this.active},e.prototype.depthFirstSearchChangedPath=function(e,t){if(e.children)for(var o=0;o<e.children.length;o++)this.depthFirstSearchChangedPath(e.children[o],t);t(e.rowNode)},e.prototype.depthFirstSearchEverything=function(e,t,o){if(e.childrenAfterGroup)for(var i=0;i<e.childrenAfterGroup.length;i++){var n=e.childrenAfterGroup[i];n.childrenAfterGroup?this.depthFirstSearchEverything(e.childrenAfterGroup[i],t,o):o&&t(n)}t(e)},e.prototype.forEachChangedNodeDepthFirst=function(e,t){void 0===t&&(t=!1),this.active?this.depthFirstSearchChangedPath(this.pathRoot,e):this.depthFirstSearchEverything(this.pathRoot.rowNode,e,t)},e.prototype.executeFromRootNode=function(e){e(this.pathRoot.rowNode)},e.prototype.createPathItems=function(e){for(var t=e,o=0;!this.mapToItems[t.id];){var i={rowNode:t,children:null};this.mapToItems[t.id]=i,o++,t=t.parent}return o},e.prototype.populateColumnsMap=function(e,t){var o=this;if(this.keepingColumns&&t)for(var i=e;i;)this.nodeIdsToColumns[i.id]||(this.nodeIdsToColumns[i.id]={}),t.forEach((function(e){return o.nodeIdsToColumns[i.id][e.getId()]=!0})),i=i.parent},e.prototype.linkPathItems=function(e,t){for(var o=e,i=0;i<t;i++){var n=this.mapToItems[o.id],r=this.mapToItems[o.parent.id];r.children||(r.children=[]),r.children.push(n),o=o.parent}},e.prototype.addParentNode=function(e,t){var o=this.createPathItems(e);this.linkPathItems(e,o),this.populateColumnsMap(e,t)},e.prototype.canSkip=function(e){return this.active&&!this.mapToItems[e.id]},e.prototype.getValueColumnsForNode=function(e,t){if(!this.keepingColumns)return t;var o=this.nodeIdsToColumns[e.id];return t.filter((function(e){return o[e.getId()]}))},e.prototype.getNotValueColumnsForNode=function(e,t){if(!this.keepingColumns)return null;var o=this.nodeIdsToColumns[e.id];return t.filter((function(e){return!o[e.getId()]}))},e}();t.ChangedPath=o},69065:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(44081),a=o(85222),l=o(60843),p=function(){function e(){this.createRowTasks=[],this.destroyRowTasks=[],this.ticking=!1,this.scrollGoingDown=!0,this.lastScrollTop=0}return e.prototype.setScrollTop=function(e){this.scrollGoingDown=e>this.lastScrollTop,this.lastScrollTop=e},e.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsWrapper.isSuppressAnimationFrame()},e.prototype.verifyAnimationFrameOn=function(e){!1===this.useAnimationFrame&&console.warn("ag-Grid: AnimationFrameService."+e+" called but animation frames are off")},e.prototype.addP1Task=function(e,t){this.verifyAnimationFrameOn("addP1Task");var o={task:e,index:t};this.createRowTasks.push(o),this.schedule()},e.prototype.addP2Task=function(e){this.verifyAnimationFrameOn("addP2Task"),this.destroyRowTasks.push(e),this.schedule()},e.prototype.executeFrame=function(e){this.verifyAnimationFrameOn("executeFrame"),this.scrollGoingDown?this.createRowTasks.sort((function(e,t){return t.index-e.index})):this.createRowTasks.sort((function(e,t){return e.index-t.index}));for(var t=(new Date).getTime(),o=(new Date).getTime()-t,i=e<=0;i||o<e;){if(this.createRowTasks.length>0)this.createRowTasks.pop().task();else{if(!(this.destroyRowTasks.length>0))break;this.destroyRowTasks.pop()()}o=(new Date).getTime()-t}this.createRowTasks.length>0||this.destroyRowTasks.length>0?this.requestFrame():this.stopTicking()},e.prototype.stopTicking=function(){this.ticking=!1;var e={type:a.Events.EVENT_ANIMATION_QUEUE_EMPTY,columnApi:this.gridOptionsWrapper.getColumnApi(),api:this.gridOptionsWrapper.getApi()};this.eventService.dispatchEvent(e)},e.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},e.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},e.prototype.requestFrame=function(){var e=this.executeFrame.bind(this,60);window.requestAnimationFrame?window.requestAnimationFrame(e):window.webkitRequestAnimationFrame?window.webkitRequestAnimationFrame(e):window.setTimeout(e,0)},e.prototype.isQueueEmpty=function(){return this.ticking},i([r.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("eventService"),n("design:type",l.EventService)],e.prototype,"eventService",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([r.Bean("animationFrameService")],e)}();t.AnimationFrameService=p},69397:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(72493),l=o(34255),p=o(47721),u=o(85910),c=o(22131),d=o(45727),h=o(83423),f=function(e){function t(){var t=e.call(this,'<div class="ag-input-text-wrapper"><input ref="eColumnFloatingFilter" class="ag-floating-filter-input"></div>')||this;return t.lastKnownModel=null,t}return n(t,e),t.prototype.init=function(e){this.onFloatingFilterChanged=e.onFloatingFilterChanged,this.currentParentModel=e.currentParentModel;var t=null!=e.debounceMs?e.debounceMs:500,o=h._.debounce(this.syncUpWithParentFilter.bind(this),t);this.addDestroyableEventListener(this.eColumnFloatingFilter,"input",o),this.addDestroyableEventListener(this.eColumnFloatingFilter,"keypress",o),this.addDestroyableEventListener(this.eColumnFloatingFilter,"keydown",o);var i=e.column.getDefinition();i.filterParams&&i.filterParams.filterOptions&&1===i.filterParams.filterOptions.length&&"inRange"===i.filterParams.filterOptions[0]&&(this.eColumnFloatingFilter.disabled=!0)},t.prototype.onParentModelChanged=function(e,t){if(null!=t)return this.eColumnFloatingFilter.value=this.parseAsText(t.condition1)+" "+t.operator+" "+this.parseAsText(t.condition2),this.eColumnFloatingFilter.disabled=!0,this.lastKnownModel=null,this.eColumnFloatingFilter.title=this.eColumnFloatingFilter.value,void(this.eColumnFloatingFilter.style.cursor="default");if(this.eColumnFloatingFilter.disabled=!1,this.equalModels(this.lastKnownModel,e))this.lastKnownModel||e||(this.eColumnFloatingFilter.value="");else{this.lastKnownModel=e;var o=this.asFloatingFilterText(e);o!==this.eColumnFloatingFilter.value&&(this.eColumnFloatingFilter.value=o,this.eColumnFloatingFilter.title="")}},t.prototype.syncUpWithParentFilter=function(e){var t=this.asParentModel();this.equalModels(this.lastKnownModel,t)||(h._.isKeyPressed(e,d.Constants.KEY_ENTER)?this.onFloatingFilterChanged({model:t,apply:!0}):this.onFloatingFilterChanged({model:t,apply:!1}))&&(this.lastKnownModel=t)},t.prototype.equalModels=function(e,t){return!!h._.referenceCompare(e,t)||!(!e||!t)&&!Array.isArray(e)&&!Array.isArray(t)&&h._.referenceCompare(e.type,t.type)&&h._.referenceCompare(e.filter,t.filter)&&h._.referenceCompare(e.filterTo,t.filterTo)&&h._.referenceCompare(e.filterType,t.filterType)},r([p.RefSelector("eColumnFloatingFilter"),s("design:type",HTMLInputElement)],t.prototype,"eColumnFloatingFilter",void 0),t}(c.Component);t.InputTextFloatingFilterComp=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.asFloatingFilterText=function(e){return e?e.filter:""},t.prototype.asParentModel=function(){return{type:this.currentParentModel().type,filter:this.eColumnFloatingFilter.value,filterType:"text"}},t.prototype.parseAsText=function(e){return this.asFloatingFilterText(e)},t}(f);t.TextFloatingFilterComp=g;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastKnownModel=null,t}return n(t,e),t.prototype.init=function(e){this.onFloatingFilterChanged=e.onFloatingFilterChanged,this.currentParentModel=e.currentParentModel;var t=null!=e.debounceMs?e.debounceMs:500,o={onDateChanged:h._.debounce(this.onDateChanged.bind(this),t),filterParams:e.column.getColDef().filterParams};this.dateComponentPromise=this.userComponentFactory.newDateComponent(o);var i=h._.loadTemplate("<div></div>");this.dateComponentPromise.then((function(t){i.appendChild(t.getGui());var o=e.column.getDefinition(),n=o.filterParams&&o.filterParams.filterOptions&&1===o.filterParams.filterOptions.length&&"inRange"===o.filterParams.filterOptions[0];t.eDateInput&&(t.eDateInput.disabled=n)})),i.style.width="100%",i.style.height="100%",this.setTemplateFromElement(i)},t.prototype.onDateChanged=function(){var e=this.currentParentModel(),t=this.asParentModel();this.equalModels(e,t)||(this.onFloatingFilterChanged({model:t,apply:!0}),this.lastKnownModel=t)},t.prototype.equalModels=function(e,t){return!!h._.referenceCompare(e,t)||!(!e||!t)&&!Array.isArray(e)&&!Array.isArray(t)&&h._.referenceCompare(e.type,t.type)&&h._.referenceCompare(e.dateFrom,t.dateFrom)&&h._.referenceCompare(e.dateTo,t.dateTo)&&h._.referenceCompare(e.filterType,t.filterType)},t.prototype.asParentModel=function(){var e=this.currentParentModel(),t=this.dateComponentPromise.resolveNow(null,(function(e){return e.getDate()})),o=h._.serializeDateToYyyyMmDd(l.DateFilter.removeTimezone(t),"-");return{type:e.type,dateFrom:o,dateTo:e?e.dateTo:null,filterType:"date"}},t.prototype.onParentModelChanged=function(e){var t=this;this.lastKnownModel=e,this.dateComponentPromise.then((function(o){e&&e.dateFrom?(t.enrichDateInput(e.type,e.dateFrom,e.dateTo,o),o.setDate(h._.parseYyyyMmDdToDate(e.dateFrom,"-"))):o.setDate(null)}))},t.prototype.enrichDateInput=function(e,t,o,i){i.eDateInput&&("inRange"===e?(i.eDateInput.title=t+" to "+o,i.eDateInput.disabled=!0):(i.eDateInput.title="",i.eDateInput.disabled=!1))},r([a.Autowired("userComponentFactory"),s("design:type",u.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),t}(c.Component);t.DateFloatingFilterComp=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.asFloatingFilterText=function(e){var t=this.currentParentModel();return null==e&&null==t?"":null==e&&null!=t&&"inRange"!==t.type?(this.eColumnFloatingFilter.disabled=!1,""):null!=t&&"inRange"===t.type?(this.eColumnFloatingFilter.disabled=!0,this.parseAsText(t)):(this.eColumnFloatingFilter.disabled=!1,this.parseAsText(e))},t.prototype.parseAsText=function(e){var t=this.asNumber(e.filter);if(e.type&&"inRange"===e.type){var o=this.asNumber(e.filterTo);return(t?t+"":"")+"-"+(o?o+"":"")}return null!=t?t+"":""},t.prototype.asParentModel=function(){var e,t=this.currentParentModel(),o=this.asNumber(this.eColumnFloatingFilter.value),i=this.eColumnFloatingFilter.value;return e=null==o&&""===i?null:null==o?t.filter:o,{type:t.type,filter:e,filterTo:t?t.filterTo:null,filterType:"number"}},t.prototype.asNumber=function(e){if(null==e)return null;if(""===e)return null;var t=Number(e);return h._.isNumeric(t)?t:null},t}(f);t.NumberFloatingFilterComp=y;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.init=function(t){e.prototype.init.call(this,t),this.eColumnFloatingFilter.disabled=!0},t.prototype.asFloatingFilterText=function(e){if(this.eColumnFloatingFilter.disabled=!0,!e)return"";var t=e instanceof Array?e:e.values;if(0===t.length)return"";var o=t.length>10?t.slice(0,10).concat("..."):t;return"("+t.length+") "+o.join(",")},t.prototype.parseAsText=function(e){return this.asFloatingFilterText(e)},t.prototype.asParentModel=function(){return null==this.eColumnFloatingFilter.value||""===this.eColumnFloatingFilter.value?{values:[],filterType:"set"}:{values:this.eColumnFloatingFilter.value.split(","),filterType:"set"}},t.prototype.equalModels=function(e,t){return!1},t}(f);t.SetFloatingFilterComp=v;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.init=function(t){e.prototype.init.call(this,t),this.eColumnFloatingFilter.disabled=!0},t.prototype.onParentModelChanged=function(e){this.eColumnFloatingFilter.value=this.asFloatingFilterText(this.currentParentModel())},t.prototype.asFloatingFilterText=function(e){return e},t.prototype.parseAsText=function(e){return e},t.prototype.asParentModel=function(){return null},t}(f);t.ReadModelAsStringFloatingFilterComp=C},69486:(e,t,o)=>{o.d(t,{A:()=>P});var i=o(13395);const n=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];var r=o(59308),s=o(76492),a=o(52349),l=o(66923),p=o(8368),u=o(69104),c=o(49362);const d=f(1),h=f(-1);function f(e){return function(t,o,i){const n=t?t.children:[];let r=(o||0)+e,s=n&&n[r];if(!i)for(;s&&(0,c.m)(s);)r+=e,s=n[r];return s}}const g={}.hasOwnProperty;function m(e){return function(t,o,i){return g.call(e,t.tagName)&&e[t.tagName](t,o,i)}}const y=m({html:function(e,t,o){const i=d(o,t);return!i||"comment"!==i.type},head:v,body:function(e,t,o){const i=d(o,t);return!i||"comment"!==i.type},p:function(e,t,o){const i=d(o,t);return i?"element"===i.type&&("address"===i.tagName||"article"===i.tagName||"aside"===i.tagName||"blockquote"===i.tagName||"details"===i.tagName||"div"===i.tagName||"dl"===i.tagName||"fieldset"===i.tagName||"figcaption"===i.tagName||"figure"===i.tagName||"footer"===i.tagName||"form"===i.tagName||"h1"===i.tagName||"h2"===i.tagName||"h3"===i.tagName||"h4"===i.tagName||"h5"===i.tagName||"h6"===i.tagName||"header"===i.tagName||"hgroup"===i.tagName||"hr"===i.tagName||"main"===i.tagName||"menu"===i.tagName||"nav"===i.tagName||"ol"===i.tagName||"p"===i.tagName||"pre"===i.tagName||"section"===i.tagName||"table"===i.tagName||"ul"===i.tagName):!o||!("element"===o.type&&("a"===o.tagName||"audio"===o.tagName||"del"===o.tagName||"ins"===o.tagName||"map"===o.tagName||"noscript"===o.tagName||"video"===o.tagName))},li:function(e,t,o){const i=d(o,t);return!i||"element"===i.type&&"li"===i.tagName},dt:function(e,t,o){const i=d(o,t);return i&&"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName)},dd:function(e,t,o){const i=d(o,t);return!i||"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName)},rt:C,rp:C,optgroup:function(e,t,o){const i=d(o,t);return!i||"element"===i.type&&"optgroup"===i.tagName},option:function(e,t,o){const i=d(o,t);return!i||"element"===i.type&&("option"===i.tagName||"optgroup"===i.tagName)},menuitem:function(e,t,o){const i=d(o,t);return!i||"element"===i.type&&("menuitem"===i.tagName||"hr"===i.tagName||"menu"===i.tagName)},colgroup:v,caption:v,thead:function(e,t,o){const i=d(o,t);return i&&"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName)},tbody:function(e,t,o){const i=d(o,t);return!i||"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName)},tfoot:function(e,t,o){return!d(o,t)},tr:function(e,t,o){const i=d(o,t);return!i||"element"===i.type&&"tr"===i.tagName},td:w,th:w});function v(e,t,o){const i=d(o,t,!0);return!i||"comment"!==i.type&&!("text"===i.type&&(0,c.m)(i.value.charAt(0)))}function C(e,t,o){const i=d(o,t);return!i||"element"===i.type&&("rp"===i.tagName||"rt"===i.tagName)}function w(e,t,o){const i=d(o,t);return!i||"element"===i.type&&("td"===i.tagName||"th"===i.tagName)}const E=m({html:function(e){const t=d(e,-1);return!t||"comment"!==t.type},head:function(e){const t=e.children,o=[];let i=-1;for(;++i<t.length;){const e=t[i];if("element"===e.type&&("title"===e.tagName||"base"===e.tagName)){if(o.includes(e.tagName))return!1;o.push(e.tagName)}}return t.length>0},body:function(e){const t=d(e,-1,!0);return!(t&&("comment"===t.type||"text"===t.type&&(0,c.m)(t.value.charAt(0))||"element"===t.type&&("meta"===t.tagName||"link"===t.tagName||"script"===t.tagName||"style"===t.tagName||"template"===t.tagName)))},colgroup:function(e,t,o){const i=h(o,t),n=d(e,-1,!0);return!(o&&i&&"element"===i.type&&"colgroup"===i.tagName&&y(i,o.children.indexOf(i),o))&&(n&&"element"===n.type&&"col"===n.tagName)},tbody:function(e,t,o){const i=h(o,t),n=d(e,-1);return(!o||!i||"element"!==i.type||"thead"!==i.tagName&&"tbody"!==i.tagName||!y(i,o.children.indexOf(i),o))&&(n&&"element"===n.type&&"tr"===n.tagName)}}),_={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function b(e,t,o){const i=(0,p.I)(e.schema,t),n=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,r=e.settings.allowDangerousCharacters?0:1;let c,d=e.quote;if(!i.overloadedBoolean||o!==i.attribute&&""!==o?(i.boolean||i.overloadedBoolean&&"string"!=typeof o)&&(o=Boolean(o)):o=!0,null==o||!1===o||"number"==typeof o&&Number.isNaN(o))return"";const h=(0,s.l)(i.attribute,Object.assign({},e.settings.characterReferences,{subset:_.name[n][r]}));return!0===o?h:(o=Array.isArray(o)?(i.commaSeparated?l.A:u.A)(o,{padLeft:!e.settings.tightCommaSeparatedLists}):String(o),e.settings.collapseEmptyAttributes&&!o?h:(e.settings.preferUnquoted&&(c=(0,s.l)(o,Object.assign({},e.settings.characterReferences,{subset:_.unquoted[n][r],attribute:!0}))),c!==o&&(e.settings.quoteSmart&&(0,a.D)(o,d)>(0,a.D)(o,e.alternative)&&(d=e.alternative),c=d+(0,s.l)(o,Object.assign({},e.settings.characterReferences,{subset:("'"===d?_.single:_.double)[n][r],attribute:!0}))+d),h+(c?"="+c:c)))}function R(e,t,o,i){return!o||"element"!==o.type||"script"!==o.tagName&&"style"!==o.tagName?(0,s.l)(e.value,Object.assign({},i.settings.characterReferences,{subset:["<","&"]})):e.value}const O=(0,r.A)("type",{invalid:function(e){throw new Error("Expected node, not `"+e+"`")},unknown:function(e){throw new Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,o,i){return i.settings.bogusComments?"<?"+(0,s.l)(e.value,Object.assign({},i.settings.characterReferences,{subset:[">"]}))+">":"\x3c!--"+e.value.replace(/^>|^->|<!--|-->|--!>|<!-$/g,(function(e){return(0,s.l)(e,Object.assign({},i.settings.characterReferences,{subset:["<",">"]}))}))+"--\x3e"},doctype:function(e,t,o,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,o,n){const r=n.schema,s="svg"!==r.space&&n.settings.omitOptionalTags;let a="svg"===r.space?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase());const l=[];let p;"html"===r.space&&"svg"===e.tagName&&(n.schema=i.JW);const u=function(e,t){const o=[];let i,n=-1;if(t)for(i in t)if(void 0!==t[i]&&null!==t[i]){const n=b(e,i,t[i]);n&&o.push(n)}for(;++n<o.length;){const t=e.settings.tightAttributes?o[n].charAt(o[n].length-1):null;n!==o.length-1&&'"'!==t&&"'"!==t&&(o[n]+=" ")}return o.join("")}(n,e.properties),c=n.all("html"===r.space&&"template"===e.tagName?e.content:e);return n.schema=r,c&&(a=!1),!u&&s&&E(e,t,o)||(l.push("<",e.tagName,u?" "+u:""),a&&("svg"===r.space||n.settings.closeSelfClosing)&&(p=u.charAt(u.length-1),(!n.settings.tightSelfClosing||"/"===p||p&&'"'!==p&&"'"!==p)&&l.push(" "),l.push("/")),l.push(">")),l.push(c),a||s&&y(e,t,o)||l.push("</"+e.tagName+">"),l.join("")},raw:function(e,t,o,i){return i.settings.allowDangerousHtml?e.value:R(e,0,o,i)},root:function(e,t,o,i){return i.all(e)},text:R}});function S(e,t,o){return O(e,t,o,this)}function A(e){const t=[],o=e&&e.children||[];let i=-1;for(;++i<o.length;)t[i]=this.one(o[i],i,e);return t.join("")}function P(e){const t=this.data("settings"),o=Object.assign({},t,e);Object.assign(this,{Compiler:function(e){return function(e,t){const o=t||{},r=o.quote||'"',s='"'===r?"'":'"';if('"'!==r&&"'"!==r)throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:S,all:A,settings:{omitOptionalTags:o.omitOptionalTags||!1,allowParseErrors:o.allowParseErrors||!1,allowDangerousCharacters:o.allowDangerousCharacters||!1,quoteSmart:o.quoteSmart||!1,preferUnquoted:o.preferUnquoted||!1,tightAttributes:o.tightAttributes||!1,upperDoctype:o.upperDoctype||!1,tightDoctype:o.tightDoctype||!1,bogusComments:o.bogusComments||!1,tightCommaSeparatedLists:o.tightCommaSeparatedLists||!1,tightSelfClosing:o.tightSelfClosing||!1,collapseEmptyAttributes:o.collapseEmptyAttributes||!1,allowDangerousHtml:o.allowDangerousHtml||!1,voids:o.voids||n,characterReferences:o.characterReferences||o.entities||{},closeSelfClosing:o.closeSelfClosing||!1,closeEmptyElements:o.closeEmptyElements||!1},schema:"svg"===o.space?i.JW:i.qy,quote:r,alternative:s}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}(e,o)}})}},69638:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(22743),a=o(83423),l=function(){function e(){}return e.prototype.adaptFunction=function(e,t,o,i){if(null==t)return{component:null,componentFromFramework:o,source:i,paramsFromSelector:null};var n=this.componentMetadataProvider.retrieve(e);return n&&n.functionAdapter?{componentFromFramework:o,component:n.functionAdapter(t),source:i,paramsFromSelector:null}:null},e.prototype.adaptCellRendererFunction=function(e){return function(){function t(){}return t.prototype.refresh=function(e){return!1},t.prototype.getGui=function(){var t=e(this.params),o=typeof t;return"string"===o||"number"===o||"boolean"===o?a._.loadTemplate("<span>"+t+"</span>"):t},t.prototype.init=function(e){this.params=e},t}()},e.prototype.doesImplementIComponent=function(e){return!!e&&e.prototype&&"getGui"in e.prototype},i([r.Autowired("componentMetadataProvider"),n("design:type",s.ComponentMetadataProvider)],e.prototype,"componentMetadataProvider",void 0),i([r.Bean("agComponentUtils")],e)}();t.AgComponentUtils=l},69734:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=o(83423),n=function(){function e(){this.existingKeys=[]}return e.prototype.addExistingKeys=function(e){this.existingKeys=this.existingKeys.concat(e)},e.prototype.getUniqueKey=function(e,t){e=i._.toStringOrNull(e);for(var o=0;;){var n=void 0;if(e?(n=e,0!==o&&(n+="_"+o)):t?(n=t,0!==o&&(n+="_"+o)):n=""+o,this.existingKeys.indexOf(n)<0)return this.existingKeys.push(n),n;o++}},e}();t.ColumnKeyCreator=n},69992:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r,s=o(58342),a=o(72493),l=o(27887),p=o(26016),u=o(20080),c=o(98239);!function(e){e[e.ColumnMove=0]="ColumnMove",e[e.Pivot=1]="Pivot"}(r||(r={}));var d=function(){function e(e,t){this.dropListeners={},this.pinned=e,this.eContainer=t}return e.prototype.registerGridComp=function(e){switch(this.gridPanel=e,this.moveColumnController.registerGridComp(e),this.pinned){case p.Column.PINNED_LEFT:this.eSecondaryContainers=this.gridPanel.getDropTargetLeftContainers();break;case p.Column.PINNED_RIGHT:this.eSecondaryContainers=this.gridPanel.getDropTargetRightContainers();break;default:this.eSecondaryContainers=this.gridPanel.getDropTargetBodyContainers()}},e.prototype.isInterestedIn=function(e){return e===s.DragSourceType.HeaderCell||e===s.DragSourceType.ToolPanel},e.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},e.prototype.getContainer=function(){return this.eContainer},e.prototype.init=function(){this.moveColumnController=new l.MoveColumnController(this.pinned,this.eContainer),this.context.wireBean(this.moveColumnController);var e=new u.BodyDropPivotTarget(this.pinned);this.context.wireBean(e),this.dropListeners[r.ColumnMove]=this.moveColumnController,this.dropListeners[r.Pivot]=e,this.dragAndDropService.addDropTarget(this)},e.prototype.getIconName=function(){return this.currentDropListener.getIconName()},e.prototype.getDropType=function(e){return this.columnController.isPivotMode()&&e.dragSource.type===s.DragSourceType.ToolPanel?r.Pivot:r.ColumnMove},e.prototype.onDragEnter=function(e){var t=this.getDropType(e);this.currentDropListener=this.dropListeners[t],this.currentDropListener.onDragEnter(e)},e.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},e.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},e.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},i([a.Autowired("context"),n("design:type",a.Context)],e.prototype,"context",void 0),i([a.Autowired("dragAndDropService"),n("design:type",s.DragAndDropService)],e.prototype,"dragAndDropService",void 0),i([a.Autowired("columnController"),n("design:type",c.ColumnController)],e.prototype,"columnController",void 0),i([a.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),e}();t.BodyDropTarget=d},70545:(e,t,o)=>{var i=o(65994).process;e.exports=async function(e,t,o,r){o instanceof Function&&(r=o,o={});const u=async function(e,t,o={}){let r,u;"string"==typeof o&&(o={encoding:o});const c=s(h((()=>u))),g=a.resolve(e);try{await function(e){return new Promise((t=>{p[e]||(p[e]=[]),p[e].push(t),1===p[e].length&&t()}))}(g);const s=await l(n.realpath)(e).catch((()=>e));if(u=d(s),!o.mode||!o.chown){const e=await l(n.stat)(s).catch((()=>{}));e&&(null==o.mode&&(o.mode=e.mode),null==o.chown&&i.getuid&&(o.chown={uid:e.uid,gid:e.gid}))}r=await l(n.open)(u,"w",o.mode),o.tmpfileCreated&&await o.tmpfileCreated(u),ArrayBuffer.isView(t)?await l(n.write)(r,t,0,t.length,0):null!=t&&await l(n.write)(r,String(t),0,String(o.encoding||"utf8")),!1!==o.fsync&&await l(n.fsync)(r),await l(n.close)(r),r=null,o.chown&&await l(n.chown)(u,o.chown.uid,o.chown.gid).catch((e=>{if(!f(e))throw e})),o.mode&&await l(n.chmod)(u,o.mode).catch((e=>{if(!f(e))throw e})),await l(n.rename)(u,s)}finally{r&&await l(n.close)(r).catch((()=>{})),c(),await l(n.unlink)(u).catch((()=>{})),p[g].shift(),p[g].length>0?p[g][0]():delete p[g]}}(e,t,o);if(r)try{return r(await u)}catch(e){return r(e)}return u},e.exports.sync=function(e,t,o){"string"==typeof o?o={encoding:o}:o||(o={});try{e=n.realpathSync(e)}catch(e){}const r=d(e);if(!o.mode||!o.chown)try{const t=n.statSync(e);(o=Object.assign({},o)).mode||(o.mode=t.mode),!o.chown&&i.getuid&&(o.chown={uid:t.uid,gid:t.gid})}catch(e){}let a;const l=h(r),p=s(l);let u=!0;try{if(a=n.openSync(r,"w",o.mode||438),o.tmpfileCreated&&o.tmpfileCreated(r),ArrayBuffer.isView(t)?n.writeSync(a,t,0,t.length,0):null!=t&&n.writeSync(a,String(t),0,String(o.encoding||"utf8")),!1!==o.fsync&&n.fsyncSync(a),n.closeSync(a),a=null,o.chown)try{n.chownSync(r,o.chown.uid,o.chown.gid)}catch(e){if(!f(e))throw e}if(o.mode)try{n.chmodSync(r,o.mode)}catch(e){if(!f(e))throw e}n.renameSync(r,e),u=!1}finally{if(a)try{n.closeSync(a)}catch(e){}p(),u&&l()}},e.exports._getTmpname=d,e.exports._cleanupOnExit=h;const n=o(36374),r=o(88906),{onExit:s}=o(41163),a=o(17642),{promisify:l}=o(98437),p={},u=function(){try{return o(86983).threadId}catch(e){return 0}}();let c=0;function d(e){return e+"."+r("/index.js").hash(String(i.pid)).hash(String(u)).hash(String(++c)).result()}function h(e){return()=>{try{n.unlinkSync("function"==typeof e?e():e)}catch{}}}function f(e){return"ENOSYS"===e.code||!(i.getuid&&0===i.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}},71616:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(45727),s=o(46379),a=o(83423),l=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.eInput=o.getGui().querySelector("input"),o}return n(t,e),t.prototype.init=function(e){this.params=e;var t,o=this.eInput;e.cellStartedEdit?(this.focusAfterAttached=!0,e.keyPress===r.Constants.KEY_BACKSPACE||e.keyPress===r.Constants.KEY_DELETE?t="":e.charPress?t=e.charPress:(t=this.getStartValue(e),e.keyPress!==r.Constants.KEY_F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,t=this.getStartValue(e)),a._.exists(t)&&(o.value=t),this.addDestroyableEventListener(o,"keydown",(function(e){if(e.keyCode===r.Constants.KEY_LEFT||e.keyCode===r.Constants.KEY_RIGHT||e.keyCode===r.Constants.KEY_UP||e.keyCode===r.Constants.KEY_DOWN||e.keyCode===r.Constants.KEY_PAGE_DOWN||e.keyCode===r.Constants.KEY_PAGE_UP||e.keyCode===r.Constants.KEY_PAGE_HOME||e.keyCode===r.Constants.KEY_PAGE_END){e.stopPropagation();var t=e.keyCode===r.Constants.KEY_PAGE_UP,o=e.keyCode===r.Constants.KEY_PAGE_DOWN;(t||o)&&e.preventDefault()}}))},t.prototype.afterGuiAttached=function(){if(this.focusAfterAttached){var e=this.eInput;if(e.focus(),this.highlightAllOnFocus)e.select();else{var t=e.value?e.value.length:0;t>0&&e.setSelectionRange(t,t)}}},t.prototype.focusIn=function(){var e=this.eInput;e.focus(),e.select()},t.prototype.getValue=function(){var e=this.eInput;return this.params.parseValue(e.value)},t.prototype.getStartValue=function(e){return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value},t.prototype.isPopup=function(){return!1},t.TEMPLATE='<div class="ag-input-text-wrapper"><input class="ag-cell-edit-input" type="text"/></div>',t}(s.PopupComponent);t.TextCellEditor=l},72493:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=o(83423),n=function(){function e(e,t){if(this.beanWrappers={},this.componentsMappedByName={},this.destroyed=!1,e&&e.beans){this.contextParams=e,this.logger=t,this.logger.log(">> creating ag-Application Context"),this.setupComponents(),this.createBeans();var o=this.getBeanInstances();this.wireBeans(o),this.logger.log(">> ag-Application Context ready - component is alive")}}return e.prototype.getBeanInstances=function(){return i._.mapObject(this.beanWrappers,(function(e){return e.beanInstance}))},e.prototype.setupComponents=function(){var e=this;this.contextParams.components&&this.contextParams.components.forEach((function(t){return e.addComponent(t)}))},e.prototype.addComponent=function(e){var t=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[t]=e.theClass},e.prototype.createComponentFromElement=function(e,t){var o=e.nodeName;if(this.componentsMappedByName&&this.componentsMappedByName[o]){var i=new this.componentsMappedByName[o];return this.wireBean(i,t),i}return null},e.prototype.wireBean=function(e,t){if(!e)throw Error("Can't wire to bean since it is null");this.wireBeans([e],t)},e.prototype.wireBeans=function(e,t){this.autoWireBeans(e),this.methodWireBeans(e),this.callLifeCycleMethods(e,"preConstructMethods"),i._.exists(t)&&e.forEach(t),this.callLifeCycleMethods(e,"postConstructMethods")},e.prototype.createBeans=function(){var e=this;this.contextParams.beans.forEach(this.createBeanWrapper.bind(this)),this.contextParams.overrideBeans&&this.contextParams.overrideBeans.forEach(this.createBeanWrapper.bind(this)),i._.iterateObject(this.beanWrappers,(function(t,o){var i;o.bean.__agBeanMetaData&&o.bean.__agBeanMetaData.autowireMethods&&o.bean.__agBeanMetaData.autowireMethods.agConstructor&&(i=o.bean.__agBeanMetaData.autowireMethods.agConstructor);var n,r,s=e.getBeansForParameters(i,o.bean.name),a=(n=o.bean,r=[null].concat(s),new(n.bind.apply(n,r)));o.beanInstance=a,e.logger.log("bean "+e.getBeanName(a)+" created")}))},e.prototype.createBeanWrapper=function(e){var t=e.__agBeanMetaData;if(!t){var o;return o=e.prototype.constructor?e.prototype.constructor.name:""+e,void console.error("context item "+o+" is not a bean")}var i={bean:e,beanInstance:null,beanName:t.beanName};this.beanWrappers[t.beanName]=i},e.prototype.autoWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(o,i){var n=o.agClassAttributes;n&&n.forEach((function(o){var n=t.lookupBeanInstance(i,o.beanName,o.optional);e[o.attributeName]=n}))}))}))},e.prototype.methodWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(o,n){i._.iterateObject(o.autowireMethods,(function(o,i){if("agConstructor"!==o){var r=t.getBeansForParameters(i,n);e[o].apply(e,r)}}))}))}))},e.prototype.forEachMetaDataInHierarchy=function(e,t){for(var o=Object.getPrototypeOf(e);null!=o;){var i=o.constructor;i.hasOwnProperty("__agBeanMetaData")&&t(i.__agBeanMetaData,this.getBeanName(i)),o=Object.getPrototypeOf(o)}},e.prototype.getBeanName=function(e){if(e.__agBeanMetaData&&e.__agBeanMetaData.beanName)return e.__agBeanMetaData.beanName;var t=e.toString();return t.substring(9,t.indexOf("("))},e.prototype.getBeansForParameters=function(e,t){var o=this,n=[];return e&&i._.iterateObject(e,(function(e,i){var r=o.lookupBeanInstance(t,i);n[Number(e)]=r})),n},e.prototype.lookupBeanInstance=function(e,t,o){if(void 0===o&&(o=!1),"context"===t)return this;if(this.contextParams.seed&&this.contextParams.seed.hasOwnProperty(t))return this.contextParams.seed[t];var i=this.beanWrappers[t];return i?i.beanInstance:(o||console.error("ag-Grid: unable to find bean reference "+t+" while initialising "+e),null)},e.prototype.callLifeCycleMethods=function(e,t){var o=this;e.forEach((function(e){o.forEachMetaDataInHierarchy(e,(function(o){var i=o[t];i&&i.forEach((function(t){return e[t]()}))}))}))},e.prototype.getBean=function(e){return this.lookupBeanInstance("getBean",e,!0)},e.prototype.getEnterpriseDefaultComponents=function(){return this.contextParams.enterpriseDefaultComponents},e.prototype.destroy=function(){if(!this.destroyed){this.logger.log(">> Shutting down ag-Application Context");var e=this.getBeanInstances();this.callLifeCycleMethods(e,"preDestroyMethods"),this.contextParams.seed=null,this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead")}},e}();function r(e,t,o,i,n,r){if(null!==t)if("number"!=typeof r){var a=s(e.constructor);a.agClassAttributes||(a.agClassAttributes=[]),a.agClassAttributes.push({attributeName:n,beanName:t,optional:o})}else console.error("ag-Grid: Autowired should be on an attribute");else console.error("ag-Grid: Autowired name should not be null")}function s(e){return e.hasOwnProperty("__agBeanMetaData")||(e.__agBeanMetaData={}),e.__agBeanMetaData}t.Context=n,t.PreConstruct=function(e,t,o){var i=s(e.constructor);i.postConstructMethods||(i.preConstructMethods=[]),i.preConstructMethods.push(t)},t.PostConstruct=function(e,t,o){var i=s(e.constructor);i.postConstructMethods||(i.postConstructMethods=[]),i.postConstructMethods.push(t)},t.PreDestroy=function(e,t,o){var i=s(e.constructor);i.preDestroyMethods||(i.preDestroyMethods=[]),i.preDestroyMethods.push(t)},t.Bean=function(e){return function(t){s(t).beanName=e}},t.Autowired=function(e){return function(t,o,i){r(t,e,!1,0,o,null)}},t.Optional=function(e){return function(t,o,i){r(t,e,!0,0,o,null)}},t.Qualifier=function(e){return function(t,o,i){var n,r="function"==typeof t?t:t.constructor;if("number"==typeof i){var a=void 0;o?(n=s(r),a=o):(n=s(r),a="agConstructor"),n.autowireMethods||(n.autowireMethods={}),n.autowireMethods[a]||(n.autowireMethods[a]={}),n.autowireMethods[a][i]=e}}}},72948:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(74517),a=o(26016),l=o(60843),p=o(44871),u=o(40797),c=function(){function e(e,t,o,i){this.localEventService=new l.EventService,this.expandable=!1,this.colGroupDef=e,this.groupId=t,this.expanded=e&&!!e.openByDefault,this.padding=o,this.level=i}return e.prototype.setOriginalParent=function(e){this.originalParent=this.originalParent},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.getLevel=function(){return this.level},e.prototype.isVisible=function(){return!!this.children&&this.children.some((function(e){return e.isVisible()}))},e.prototype.isPadding=function(){return this.padding},e.prototype.setExpanded=function(t){this.expanded=void 0!==t&&t;var o={type:e.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(o)},e.prototype.isExpandable=function(){return this.expandable},e.prototype.isExpanded=function(){return this.expanded},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getId=function(){return this.getGroupId()},e.prototype.setChildren=function(e){this.children=e},e.prototype.getChildren=function(){return this.children},e.prototype.getColGroupDef=function(){return this.colGroupDef},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.addLeafColumns=function(t){this.children&&this.children.forEach((function(o){o instanceof a.Column?t.push(o):o instanceof e&&o.addLeafColumns(t)}))},e.prototype.getColumnGroupShow=function(){return this.padding?this.children[0].getColumnGroupShow():this.colGroupDef.columnGroupShow},e.prototype.setupExpandable=function(){var e=this;this.setExpandable(),this.getLeafColumns().forEach((function(t){return t.addEventListener(a.Column.EVENT_VISIBLE_CHANGED,e.onColumnVisibilityChanged.bind(e))}))},e.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,o=!1,i=!1,n=this.findChildren(),r=0,a=n.length;r<a;r++){var l=n[r];if(l.isVisible()){var p=l.getColumnGroupShow();p===s.ColumnGroup.HEADER_GROUP_SHOW_OPEN?(t=!0,i=!0):p===s.ColumnGroup.HEADER_GROUP_SHOW_CLOSED?(o=!0,i=!0):(t=!0,o=!0)}}var u=t&&o&&i;if(this.expandable!==u){this.expandable=u;var c={type:e.EVENT_EXPANDABLE_CHANGED};this.localEventService.dispatchEvent(c)}}},e.prototype.findChildren=function(){var t=this.children,o=t[0];if(o&&(!o.isPadding||!o.isPadding()))return t;for(;1===t.length&&t[0]instanceof e;)t=t[0].children;return t},e.prototype.onColumnVisibilityChanged=function(){this.setExpandable()},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_EXPANDABLE_CHANGED="expandableChanged",i([r.Autowired("columnApi"),n("design:type",p.ColumnApi)],e.prototype,"columnApi",void 0),i([r.Autowired("gridApi"),n("design:type",u.GridApi)],e.prototype,"gridApi",void 0),e}();t.OriginalColumnGroup=c},72955:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){this.isLayoutPanel=!0,this.childPanels=[],this.eGui=document.createElement("div"),this.eGui.style.height="100%"}return e.prototype.addPanel=function(e,t){var o;e.isLayoutPanel?(this.childPanels.push(e),o=e.getGui()):o=e,t&&(o.style.height=t),this.eGui.appendChild(o)},e.prototype.getGui=function(){return this.eGui},e.prototype.doLayout=function(){for(var e=0;e<this.childPanels.length;e++)this.childPanels[e].doLayout()},e}();t.VerticalStack=o},73575:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(45727),s=o(72493),a=o(44081),l=o(59007),p=o(60843),u=o(63405),c=o(83423),d=function(){function e(){this.activePopupElements=[]}return e.prototype.registerGridCore=function(e){this.gridCore=e},e.prototype.getDocument=function(){return this.gridOptionsWrapper.getDocument()},e.prototype.getPopupParent=function(){return this.gridOptionsWrapper.getPopupParent()||this.gridCore.getRootGui()},e.prototype.positionPopupForMenu=function(e){var t,o=e.eventSource.getBoundingClientRect(),i=this.getDocument(),n=this.getPopupParent();t=n===i.body?i.documentElement.getBoundingClientRect():n.getBoundingClientRect();var r=o.top-t.top;r=this.keepYWithinBounds(e,r);var s=e.ePopup.clientWidth>0?e.ePopup.clientWidth:200;e.ePopup.style.minWidth=s+"px";var a,l=t.right-t.left-s;function p(){return o.right-t.left-2}function u(){return o.left-t.left-s}this.gridOptionsWrapper.isEnableRtl()?((a=u())<0&&(a=p()),a>l&&(a=0)):((a=p())>l&&(a=u()),a<0&&(a=0)),e.ePopup.style.left=a+"px",e.ePopup.style.top=r+"px"},e.prototype.positionPopupUnderMouseEvent=function(e){var t=this.calculatePointerAlign(e.mouseEvent),o=t.x,i=t.y,n=e.ePopup,r=e.nudgeX,s=e.nudgeY;this.positionPopup({ePopup:n,x:o,y:i,nudgeX:r,nudgeY:s,keepWithinBounds:!0}),this.callPostProcessPopup(e.ePopup,null,e.mouseEvent,e.type,e.column,e.rowNode)},e.prototype.calculatePointerAlign=function(e){var t=this.getDocument(),o=this.getPopupParent(),i=o.getBoundingClientRect(),n=t.documentElement.getBoundingClientRect();return{x:e.clientX-(o===t.body?n.left:i.left),y:e.clientY-(o===t.body?n.top:i.top)}},e.prototype.positionPopupUnderComponent=function(e){var t,o=e.eventSource.getBoundingClientRect(),i=this.getDocument(),n=this.getPopupParent();t=n===i.body?i.documentElement.getBoundingClientRect():n.getBoundingClientRect(),this.positionPopup({ePopup:e.ePopup,minWidth:e.minWidth,minHeight:e.minHeight,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:o.left-t.left,y:o.top-t.top+o.height,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.ePopup,e.eventSource,null,e.type,e.column,e.rowNode)},e.prototype.callPostProcessPopup=function(e,t,o,i,n,r){var s=this.gridOptionsWrapper.getPostProcessPopupFunc();s&&s({column:n,rowNode:r,ePopup:e,type:i,eventSource:t,mouseEvent:o})},e.prototype.positionPopupOverComponent=function(e){var t,o=e.eventSource.getBoundingClientRect(),i=this.getDocument(),n=this.getPopupParent();t=n===i.body?i.documentElement.getBoundingClientRect():n.getBoundingClientRect(),this.positionPopup({ePopup:e.ePopup,minWidth:e.minWidth,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:o.left-t.left,y:o.top-t.top,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.ePopup,e.eventSource,null,e.type,e.column,e.rowNode)},e.prototype.positionPopup=function(e){var t=e.x,o=e.y;e.nudgeX&&(t+=e.nudgeX),e.nudgeY&&(o+=e.nudgeY),e.keepWithinBounds&&(t=this.keepXWithinBounds(e,t),o=this.keepYWithinBounds(e,o)),e.ePopup.style.left=t+"px",e.ePopup.style.top=o+"px"},e.prototype.keepYWithinBounds=function(e,t){var o=this.gridOptionsWrapper.getDocument(),i=o.documentElement,n=this.getPopupParent(),r=n.getBoundingClientRect(),s=o.documentElement.getBoundingClientRect(),a=n===o.body,l=Math.min(200,r.height),p=0;e.minHeight&&e.minHeight<l?l=e.minHeight:e.ePopup.offsetHeight>0&&(l=e.ePopup.clientHeight,p=c._.getAbsoluteHeight(e.ePopup)-l);var u=a?c._.getAbsoluteHeight(i)+i.scrollTop:r.height;a&&(u-=Math.abs(s.top-r.top));var d=u-l-p-3;return Math.min(Math.max(t,0),Math.abs(d))},e.prototype.keepXWithinBounds=function(e,t){var o=this.gridOptionsWrapper.getDocument(),i=o.documentElement,n=this.getPopupParent(),r=n.getBoundingClientRect(),s=o.documentElement.getBoundingClientRect(),a=n===o.body,l=Math.min(200,r.width),p=0;e.minWidth&&e.minWidth<l?l=e.minWidth:e.ePopup.clientWidth>0&&(l=e.ePopup.clientWidth,e.ePopup.style.minWidth=l+"px",p=c._.getAbsoluteWidth(e.ePopup)-l);var u=a?c._.getAbsoluteWidth(i)+i.scrollLeft:r.width;a&&(u-=Math.abs(s.left-r.left));var d=u-l-p-3;return Math.min(Math.max(t,0),Math.abs(d))},e.prototype.addAsModalPopup=function(e,t,o,i){return this.addPopup(!0,e,t,o,i)},e.prototype.addPopup=function(e,t,o,i,n){var s=this,a=this.gridOptionsWrapper.getDocument();if(!a)return console.warn("ag-grid: could not find the document, document is empty"),function(){};t.style.top="0px",t.style.left="0px";var l=this.getPopupParent();if(c._.isVisible(t)&&l.contains(t))return function(){};var p=document.createElement("div"),d=this.environment.getTheme();d&&c._.addCssClass(p,d),p.appendChild(t),l.appendChild(p),this.activePopupElements.push(t);var h=!1,f=function(e){(e.which||e.keyCode)===r.Constants.KEY_ESCAPE&&y(null)},g=function(e){y(e)},m=function(e){y(null,e)},y=function(e,o){s.isEventFromCurrentPopup(e,o,t)||s.isEventSameChainAsOriginalEvent(n,e,o)||h||(h=!0,l.removeChild(p),c._.removeFromArray(s.activePopupElements,t),a.removeEventListener("keydown",f),a.removeEventListener("click",g),a.removeEventListener("touchstart",m),a.removeEventListener("contextmenu",g),s.eventService.removeEventListener(u.Events.EVENT_DRAG_STARTED,g),i&&i())};return window.setTimeout((function(){o&&a.addEventListener("keydown",f),e&&(a.addEventListener("click",g),s.eventService.addEventListener(u.Events.EVENT_DRAG_STARTED,g),a.addEventListener("touchstart",m),a.addEventListener("contextmenu",g))}),0),y},e.prototype.isEventFromCurrentPopup=function(e,t,o){var i=e||t;if(i){for(var n=this.activePopupElements.indexOf(o);n<this.activePopupElements.length;n++){var r=this.activePopupElements[n];if(c._.isElementInEventPath(r,i))return!0}for(var s=i.target;s&&s!=document.body;){if(s.classList.contains("ag-custom-component-popup")||null===s.parentElement)return!0;s=s.parentElement}}return!1},e.prototype.isEventSameChainAsOriginalEvent=function(e,t,o){var i=null;if(t?i=t:o&&(i=o.touches[0]),i&&e){var n=t?t.screenX:0,r=t?t.screenY:0,s=Math.abs(e.screenX-n)<5,a=Math.abs(e.screenY-r)<5;if(s&&a)return!0}return!1},i([s.Autowired("gridOptionsWrapper"),n("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Autowired("environment"),n("design:type",l.Environment)],e.prototype,"environment",void 0),i([s.Autowired("eventService"),n("design:type",p.EventService)],e.prototype,"eventService",void 0),i([s.Bean("popupService")],e)}();t.PopupService=d},74517:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(26016),s=o(60843),a=o(72493),l=o(44081),p=o(44871),u=o(40797),c=function(){function e(e,t,o,i){this.displayedChildren=[],this.localEventService=new s.EventService,this.groupId=t,this.instanceId=o,this.originalColumnGroup=e,this.pinned=i}return e.createUniqueId=function(e,t){return e+"_"+t},e.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},e.prototype.getParent=function(){return this.parent},e.prototype.setParent=function(e){this.parent=e},e.prototype.getUniqueId=function(){return e.createUniqueId(this.groupId,this.instanceId)},e.prototype.isEmptyGroup=function(){return 0===this.displayedChildren.length},e.prototype.isMoving=function(){var e=this.getOriginalColumnGroup().getLeafColumns();if(!e||0===e.length)return!1;var t=!0;return e.forEach((function(e){e.isMoving()||(t=!1)})),t},e.prototype.checkLeft=function(){if(this.displayedChildren.forEach((function(t){t instanceof e&&t.checkLeft()})),this.displayedChildren.length>0)if(this.gridOptionsWrapper.isEnableRtl()){var t=this.displayedChildren[this.displayedChildren.length-1].getLeft();this.setLeft(t)}else{var o=this.displayedChildren[0].getLeft();this.setLeft(o)}else this.setLeft(null)},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.setLeft=function(t){this.oldLeft=t,this.left!==t&&(this.left=t,this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_LEFT_CHANGED)))},e.prototype.getPinned=function(){return this.pinned},e.prototype.createAgEvent=function(e){return{type:e}},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.isChildInThisGroupDeepSearch=function(t){var o=!1;return this.children.forEach((function(i){t===i&&(o=!0),i instanceof e&&i.isChildInThisGroupDeepSearch(t)&&(o=!0)})),o},e.prototype.getActualWidth=function(){var e=0;return this.displayedChildren&&this.displayedChildren.forEach((function(t){e+=t.getActualWidth()})),e},e.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var e=!1;return this.displayedChildren.forEach((function(t){t.isResizable()&&(e=!0)})),e},e.prototype.getMinWidth=function(){var e=0;return this.displayedChildren.forEach((function(t){e+=t.getMinWidth()})),e},e.prototype.addChild=function(e){this.children||(this.children=[]),this.children.push(e)},e.prototype.getDisplayedChildren=function(){return this.displayedChildren},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.getDisplayedLeafColumns=function(){var e=[];return this.addDisplayedLeafColumns(e),e},e.prototype.getDefinition=function(){return this.originalColumnGroup.getColGroupDef()},e.prototype.getColGroupDef=function(){return this.originalColumnGroup.getColGroupDef()},e.prototype.isPadding=function(){return this.originalColumnGroup.isPadding()},e.prototype.isExpandable=function(){return this.originalColumnGroup.isExpandable()},e.prototype.isExpanded=function(){return this.originalColumnGroup.isExpanded()},e.prototype.setExpanded=function(e){this.originalColumnGroup.setExpanded(e)},e.prototype.addDisplayedLeafColumns=function(t){this.displayedChildren.forEach((function(o){o instanceof r.Column?t.push(o):o instanceof e&&o.addDisplayedLeafColumns(t)}))},e.prototype.addLeafColumns=function(t){this.children.forEach((function(o){o instanceof r.Column?t.push(o):o instanceof e&&o.addLeafColumns(t)}))},e.prototype.getChildren=function(){return this.children},e.prototype.getColumnGroupShow=function(){return this.originalColumnGroup.getColumnGroupShow()},e.prototype.getOriginalColumnGroup=function(){return this.originalColumnGroup},e.prototype.calculateDisplayedColumns=function(){var t=this;this.displayedChildren=[];var o=this;if(this.isPadding())for(;o.getParent()&&o.isPadding();)o=o.getParent();o.originalColumnGroup.isExpandable()?this.children.forEach((function(i){switch(i.getColumnGroupShow()){case e.HEADER_GROUP_SHOW_OPEN:o.originalColumnGroup.isExpanded()&&t.displayedChildren.push(i);break;case e.HEADER_GROUP_SHOW_CLOSED:o.originalColumnGroup.isExpanded()||t.displayedChildren.push(i);break;default:t.displayedChildren.push(i)}})):this.displayedChildren=this.children,this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED))},e.HEADER_GROUP_SHOW_OPEN="open",e.HEADER_GROUP_SHOW_CLOSED="closed",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",i([a.Autowired("gridOptionsWrapper"),n("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([a.Autowired("columnApi"),n("design:type",p.ColumnApi)],e.prototype,"columnApi",void 0),i([a.Autowired("gridApi"),n("design:type",u.GridApi)],e.prototype,"gridApi",void 0),e}();t.ColumnGroup=c},75013:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=o(65360);function n(e,t,o,n){var r,s,a=n.agGrid;if(s=a+".quickFilterText",r=t.$eval(a)){var l=e[0],p={$scope:t,$compile:o,quickFilterOnScope:s},u=new i.Grid(l,r,p);t.$on("$destroy",(function(){u.destroy(),u=null}))}else console.warn("WARNING - grid options for ag-Grid not found. Please ensure the attribute ag-grid points to a valid object on the scope")}t.initialiseAgGridWithAngular1=function(e){e.module("agGrid",[]).directive("agGrid",(function(){return{restrict:"A",controller:["$element","$scope","$compile","$attrs",n],scope:!0}}))}},75167:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(){return e.call(this,'<div class="ag-tooltip"></div>')||this}return n(t,e),t.prototype.init=function(e){var t=e.value;this.getGui().innerHTML=t},t}(o(46379).PopupComponent);t.TooltipComponent=r},75449:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(96652),s=o(46410),a=o(47008),l=o(47008),p=function(e){function t(o,i){var n=e.call(this)||this;return n.portal=null,n.componentWrappingElement="div",n.reactComponent=o,n.parentComponent=i,n.statelessComponent=t.isStateless(n.reactComponent),n}return n(t,e),t.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},t.prototype.isStatelesComponent=function(){return this.statelessComponent},t.prototype.getReactComponentName=function(){return this.reactComponent.name},t.prototype.init=function(e){var t=this;return new l.Promise((function(o){t.eParentElement=t.createParentElement(e),t.createReactComponent(e,o)}))},t.prototype.getGui=function(){return this.eParentElement},t.prototype.destroy=function(){return this.parentComponent.destroyPortal(this.portal)},t.prototype.createReactComponent=function(e,t){var o=this;this.statelessComponent||(e.ref=function(e){o.componentInstance=e});var i=r.createElement(this.reactComponent,e),n=s.createPortal(i,this.eParentElement);this.portal=n,this.parentComponent.mountReactPortal(n,this,t)},t.prototype.createParentElement=function(e){var t=document.createElement(this.parentComponent.props.componentWrappingElement||"div");return a.Utils.addCssClass(t,"ag-react-container"),e.reactContainer=this.eParentElement,t},t.isStateless=function(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)},t}(o(30844).BaseReactComponent);t.ReactComponent=p},76133:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(45727),a=o(44081),l=o(83423),p=function(){function e(){}return e.prototype.postConstruct=function(){this.rowModel.getType()===s.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},e.prototype.createTransactionForRowData=function(e){if(l._.missing(this.clientSideRowModel))console.error("ag-Grid: ImmutableService only works with ClientSideRowModel");else{var t=this.gridOptionsWrapper.getRowNodeIdFunc();if(t&&!l._.missing(t)){var o={remove:[],update:[],add:[]},i=this.clientSideRowModel.getCopyOfNodesMap(),n=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()?null:{};return l._.exists(e)&&e.forEach((function(e,r){var s=t(e),a=i[s];n&&(n[s]=r),a?(a.data!==e&&o.update.push(e),i[s]=void 0):o.add.push(e)})),l._.iterateObject(i,(function(e,t){t&&o.remove.push(t.data)})),[o,n]}console.error("ag-Grid: ImmutableService requires getRowNodeId() callback to be implemented, your row data need IDs!")}},i([r.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"postConstruct",null),i([r.Bean("immutableService")],e)}();t.ImmutableService=p},78115:(e,t,o)=>{o.d(t,{ry:()=>ri});var i,n,r,s,a,l,p="vercel.ai.error",u=Symbol.for(p),c=class e extends(n=Error,i=u,n){constructor({name:e,message:t,cause:o}){super(t),this[i]=!0,this.name=e,this.cause=o}static isInstance(t){return e.hasMarker(t,p)}static hasMarker(e,t){const o=Symbol.for(t);return null!=e&&"object"==typeof e&&o in e&&"boolean"==typeof e[o]&&!0===e[o]}},d="AI_APICallError",h=`vercel.ai.error.${d}`,f=Symbol.for(h),g=class extends(s=c,r=f,s){constructor({message:e,url:t,requestBodyValues:o,statusCode:i,responseHeaders:n,responseBody:s,cause:a,isRetryable:l=null!=i&&(408===i||409===i||429===i||i>=500),data:p}){super({name:d,message:e,cause:a}),this[r]=!0,this.url=t,this.requestBodyValues=o,this.statusCode=i,this.responseHeaders=n,this.responseBody=s,this.isRetryable=l,this.data=p}static isInstance(e){return c.hasMarker(e,h)}},m="AI_EmptyResponseBodyError",y=`vercel.ai.error.${m}`,v=Symbol.for(y),C=class extends(l=c,a=v,l){constructor({message:e="Empty response body"}={}){super({name:m,message:e}),this[a]=!0}static isInstance(e){return c.hasMarker(e,y)}};function w(e){return null==e?"unknown error":"string"==typeof e?e:e instanceof Error?e.message:JSON.stringify(e)}var E,_,b,R,O,S,A,P,T,D,N,x,I,F,L,k,M="AI_InvalidArgumentError",G=`vercel.ai.error.${M}`,V=Symbol.for(G),W=class extends(_=c,E=V,_){constructor({message:e,cause:t,argument:o}){super({name:M,message:e,cause:t}),this[E]=!0,this.argument=o}static isInstance(e){return c.hasMarker(e,G)}},H="AI_InvalidPromptError",j=`vercel.ai.error.${H}`,B=Symbol.for(j),U=class extends(R=c,b=B,R){constructor({prompt:e,message:t,cause:o}){super({name:H,message:`Invalid prompt: ${t}`,cause:o}),this[b]=!0,this.prompt=e}static isInstance(e){return c.hasMarker(e,j)}},Y="AI_InvalidResponseDataError",z=`vercel.ai.error.${Y}`,q=Symbol.for(z),K=class extends(S=c,O=q,S){constructor({data:e,message:t=`Invalid response data: ${JSON.stringify(e)}.`}){super({name:Y,message:t}),this[O]=!0,this.data=e}static isInstance(e){return c.hasMarker(e,z)}},$="AI_JSONParseError",Z=`vercel.ai.error.${$}`,Q=Symbol.for(Z),X=class extends(P=c,A=Q,P){constructor({text:e,cause:t}){super({name:$,message:`JSON parsing failed: Text: ${e}.\nError message: ${w(t)}`,cause:t}),this[A]=!0,this.text=e}static isInstance(e){return c.hasMarker(e,Z)}},J="AI_LoadAPIKeyError",ee=`vercel.ai.error.${J}`,te=Symbol.for(ee),oe=class extends(D=c,T=te,D){constructor({message:e}){super({name:J,message:e}),this[T]=!0}static isInstance(e){return c.hasMarker(e,ee)}},ie=Symbol.for("vercel.ai.error.AI_LoadSettingError"),ne=`vercel.ai.error.${"AI_NoContentGeneratedError"}`,re=Symbol.for(ne),se=`vercel.ai.error.${"AI_NoSuchModelError"}`,ae=Symbol.for(se),le="AI_TooManyEmbeddingValuesForCallError",pe=`vercel.ai.error.${le}`,ue=Symbol.for(pe),ce=class extends(x=c,N=ue,x){constructor(e){super({name:le,message:`Too many values for a single embedding call. The ${e.provider} model "${e.modelId}" can only embed up to ${e.maxEmbeddingsPerCall} values per call, but ${e.values.length} values were provided.`}),this[N]=!0,this.provider=e.provider,this.modelId=e.modelId,this.maxEmbeddingsPerCall=e.maxEmbeddingsPerCall,this.values=e.values}static isInstance(e){return c.hasMarker(e,pe)}},de="AI_TypeValidationError",he=`vercel.ai.error.${de}`,fe=Symbol.for(he),ge=class e extends(F=c,I=fe,F){constructor({value:e,cause:t}){super({name:de,message:`Type validation failed: Value: ${JSON.stringify(e)}.\nError message: ${w(t)}`,cause:t}),this[I]=!0,this.value=e}static isInstance(e){return c.hasMarker(e,he)}static wrap({value:t,cause:o}){return e.isInstance(o)&&o.value===t?o:new e({value:t,cause:o})}},me="AI_UnsupportedFunctionalityError",ye=`vercel.ai.error.${me}`,ve=Symbol.for(ye),Ce=class extends(k=c,L=ve,k){constructor({functionality:e,message:t=`'${e}' functionality not supported.`}){super({name:me,message:t}),this[L]=!0,this.functionality=e}static isInstance(e){return c.hasMarker(e,ye)}},we=o(21935),Ee=o(67299),_e=o(84340),be=o(29744),Re=o(65994).process;function Oe(...e){return e.reduce(((e,t)=>({...e,...null!=t?t:{}})),{})}function Se(e){return Object.fromEntries([...e.headers])}var{btoa:Ae,atob:Pe}=globalThis;function Te(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),o=Pe(t);return Uint8Array.from(o,(e=>e.codePointAt(0)))}function De(e){return e instanceof Uint8Array?function(e){let t="";for(let o=0;o<e.length;o++)t+=String.fromCodePoint(e[o]);return Ae(t)}(e):e}function Ne(e,t={}){const{useArrayBrackets:o=!0}=t,i=new FormData;for(const[t,n]of Object.entries(e))if(null!=n)if(Array.isArray(n)){if(1===n.length){i.append(t,n[0]);continue}const e=o?`${t}[]`:t;for(const t of n)i.append(e,t)}else i.append(t,n);return i}var xe,Ie,Fe="AI_DownloadError",Le=`vercel.ai.error.${Fe}`,ke=Symbol.for(Le),Me=class extends(Ie=c,xe=ke,Ie){constructor({url:e,statusCode:t,statusText:o,cause:i,message:n=(null==i?`Failed to download ${e}: ${t} ${o}`:`Failed to download ${e}: ${i}`)}){super({name:Fe,message:n,cause:i}),this[xe]=!0,this.url=e,this.statusCode=t,this.statusText=o}static isInstance(e){return c.hasMarker(e,Le)}};async function Ge(e){try{const t=await fetch(e);if(!t.ok)throw new Me({url:e,statusCode:t.status,statusText:t.statusText});return await t.blob()}catch(t){if(Me.isInstance(t))throw t;throw new Me({url:e,cause:t})}}var Ve=(({prefix:e,size:t=16,alphabet:o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:i="-"}={})=>{const n=()=>{const e=o.length,i=new Array(t);for(let n=0;n<t;n++)i[n]=o[Math.random()*e|0];return i.join("")};if(null==e)return n;if(o.includes(i))throw new W({argument:"separator",message:`The separator "${i}" must not be part of the alphabet "${o}".`});return()=>`${e}${i}${n()}`})();function We(e){return(e instanceof Error||e instanceof DOMException)&&("AbortError"===e.name||"ResponseAborted"===e.name||"TimeoutError"===e.name)}var He=["fetch failed","failed to fetch"];function je(e=globalThis){var t,o,i;return e.window?"runtime/browser":(null==(t=e.navigator)?void 0:t.userAgent)?`runtime/${e.navigator.userAgent.toLowerCase()}`:(null==(i=null==(o=e.process)?void 0:o.versions)?void 0:i.node)?`runtime/node.js/${e.process.version.substring(0)}`:e.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function Be(e,...t){const o=new Headers(function(e){if(null==e)return{};const t={};if(e instanceof Headers)e.forEach(((e,o)=>{t[o.toLowerCase()]=e}));else{Array.isArray(e)||(e=Object.entries(e));for(const[o,i]of e)null!=i&&(t[o.toLowerCase()]=i)}return t}(e)),i=o.get("user-agent")||"";return o.set("user-agent",[i,...t].filter(Boolean).join(" ")),Object.fromEntries(o.entries())}function Ue(e){return null!=e}function Ye({apiKey:e,environmentVariableName:t,apiKeyParameterName:o="apiKey",description:i}){if("string"==typeof e)return e;if(null!=e)throw new oe({message:`${i} API key must be a string.`});if(void 0===Re)throw new oe({message:`${i} API key is missing. Pass it using the '${o}' parameter. Environment variables is not supported in this environment.`});if(null==(e=Re.env[t]))throw new oe({message:`${i} API key is missing. Pass it using the '${o}' parameter or the ${t} environment variable.`});if("string"!=typeof e)throw new oe({message:`${i} API key must be a string. The value of the ${t} environment variable is not a string.`});return e}var ze=/"__proto__"\s*:/,qe=/"constructor"\s*:/;function Ke(e){const t=JSON.parse(e);return null===t||"object"!=typeof t||!1===ze.test(e)&&!1===qe.test(e)?t:function(e){let t=[e];for(;t.length;){const e=t;t=[];for(const o of e){if(Object.prototype.hasOwnProperty.call(o,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(o,"constructor")&&Object.prototype.hasOwnProperty.call(o.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(const e in o){const i=o[e];i&&"object"==typeof i&&t.push(i)}}}return e}(t)}function $e(e){const{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch(t){return Ke(e)}try{return Ke(e)}finally{Error.stackTraceLimit=t}}function Ze(e){if("object"===e.type||Array.isArray(e.type)&&e.type.includes("object")){e.additionalProperties=!1;const{properties:t}=e;if(null!=t)for(const e of Object.keys(t))t[e]=Qe(t[e])}null!=e.items&&(e.items=Array.isArray(e.items)?e.items.map(Qe):Qe(e.items)),null!=e.anyOf&&(e.anyOf=e.anyOf.map(Qe)),null!=e.allOf&&(e.allOf=e.allOf.map(Qe)),null!=e.oneOf&&(e.oneOf=e.oneOf.map(Qe));const{definitions:t}=e;if(null!=t)for(const e of Object.keys(t))t[e]=Qe(t[e]);return e}function Qe(e){return"boolean"==typeof e?e:Ze(e)}var Xe=Symbol("Let zodToJsonSchema decide on which parser to use"),Je={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"};function et(e,t){return mt(e.type._def,t)}function tt(e,t,o){const i=null!=o?o:t.dateStrategy;if(Array.isArray(i))return{anyOf:i.map(((o,i)=>tt(e,t,o)))};switch(i){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return ot(e)}}var ot=e=>{const t={type:"integer",format:"unix-time"};for(const o of e.checks)switch(o.kind){case"min":t.minimum=o.value;break;case"max":t.maximum=o.value}return t},it=void 0,nt={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(void 0===it&&(it=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),it),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function rt(e,t){const o={type:"string"};if(e.checks)for(const i of e.checks)switch(i.kind){case"min":o.minLength="number"==typeof o.minLength?Math.max(o.minLength,i.value):i.value;break;case"max":o.maxLength="number"==typeof o.maxLength?Math.min(o.maxLength,i.value):i.value;break;case"email":switch(t.emailStrategy){case"format:email":lt(o,"email",i.message,t);break;case"format:idn-email":lt(o,"idn-email",i.message,t);break;case"pattern:zod":pt(o,nt.email,i.message,t)}break;case"url":lt(o,"uri",i.message,t);break;case"uuid":lt(o,"uuid",i.message,t);break;case"regex":pt(o,i.regex,i.message,t);break;case"cuid":pt(o,nt.cuid,i.message,t);break;case"cuid2":pt(o,nt.cuid2,i.message,t);break;case"startsWith":pt(o,RegExp(`^${st(i.value,t)}`),i.message,t);break;case"endsWith":pt(o,RegExp(`${st(i.value,t)}$`),i.message,t);break;case"datetime":lt(o,"date-time",i.message,t);break;case"date":lt(o,"date",i.message,t);break;case"time":lt(o,"time",i.message,t);break;case"duration":lt(o,"duration",i.message,t);break;case"length":o.minLength="number"==typeof o.minLength?Math.max(o.minLength,i.value):i.value,o.maxLength="number"==typeof o.maxLength?Math.min(o.maxLength,i.value):i.value;break;case"includes":pt(o,RegExp(st(i.value,t)),i.message,t);break;case"ip":"v6"!==i.version&<(o,"ipv4",i.message,t),"v4"!==i.version&<(o,"ipv6",i.message,t);break;case"base64url":pt(o,nt.base64url,i.message,t);break;case"jwt":pt(o,nt.jwt,i.message,t);break;case"cidr":"v6"!==i.version&&pt(o,nt.ipv4Cidr,i.message,t),"v4"!==i.version&&pt(o,nt.ipv6Cidr,i.message,t);break;case"emoji":pt(o,nt.emoji(),i.message,t);break;case"ulid":pt(o,nt.ulid,i.message,t);break;case"base64":switch(t.base64Strategy){case"format:binary":lt(o,"binary",i.message,t);break;case"contentEncoding:base64":o.contentEncoding="base64";break;case"pattern:zod":pt(o,nt.base64,i.message,t)}break;case"nanoid":pt(o,nt.nanoid,i.message,t)}return o}function st(e,t){return"escape"===t.patternStrategy?function(e){let t="";for(let o=0;o<e.length;o++)at.has(e[o])||(t+="\\"),t+=e[o];return t}(e):e}var at=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function lt(e,t,o,i){var n;e.format||(null==(n=e.anyOf)?void 0:n.some((e=>e.format)))?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push({format:t,...o&&i.errorMessages&&{errorMessage:{format:o}}})):e.format=t}function pt(e,t,o,i){var n;e.pattern||(null==(n=e.allOf)?void 0:n.some((e=>e.pattern)))?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push({pattern:ut(t,i),...o&&i.errorMessages&&{errorMessage:{pattern:o}}})):e.pattern=ut(t,i)}function ut(e,t){var o;if(!t.applyRegexFlags||!e.flags)return e.source;const i=e.flags.includes("i"),n=e.flags.includes("m"),r=e.flags.includes("s"),s=i?e.source.toLowerCase():e.source;let a="",l=!1,p=!1,u=!1;for(let e=0;e<s.length;e++)if(l)a+=s[e],l=!1;else{if(i)if(p){if(s[e].match(/[a-z]/)){u?(a+=s[e],a+=`${s[e-2]}-${s[e]}`.toUpperCase(),u=!1):"-"===s[e+1]&&(null==(o=s[e+2])?void 0:o.match(/[a-z]/))?(a+=s[e],u=!0):a+=`${s[e]}${s[e].toUpperCase()}`;continue}}else if(s[e].match(/[a-z]/)){a+=`[${s[e]}${s[e].toUpperCase()}]`;continue}if(n){if("^"===s[e]){a+="(^|(?<=[\r\n]))";continue}if("$"===s[e]){a+="($|(?=[\r\n]))";continue}}r&&"."===s[e]?a+=p?`${s[e]}\r\n`:`[${s[e]}\r\n]`:(a+=s[e],"\\"===s[e]?l=!0:p&&"]"===s[e]?p=!1:p||"["!==s[e]||(p=!0))}try{new RegExp(a)}catch(o){return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return a}function ct(e,t){var o,i,n,r,s,a;const l={type:"object",additionalProperties:null!=(o=mt(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))?o:t.allowedAdditionalProperties};if((null==(i=e.keyType)?void 0:i._def.typeName)===_e.kY.ZodString&&(null==(n=e.keyType._def.checks)?void 0:n.length)){const{type:o,...i}=rt(e.keyType._def,t);return{...l,propertyNames:i}}if((null==(r=e.keyType)?void 0:r._def.typeName)===_e.kY.ZodEnum)return{...l,propertyNames:{enum:e.keyType._def.values}};if((null==(s=e.keyType)?void 0:s._def.typeName)===_e.kY.ZodBranded&&e.keyType._def.type._def.typeName===_e.kY.ZodString&&(null==(a=e.keyType._def.type._def.checks)?void 0:a.length)){const{type:o,...i}=et(e.keyType._def,t);return{...l,propertyNames:i}}return l}var dt={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function ht(e){try{return e.isOptional()}catch(e){return!0}}var ft=(e,t,o)=>{switch(t){case _e.kY.ZodString:return rt(e,o);case _e.kY.ZodNumber:return function(e){const t={type:"number"};if(!e.checks)return t;for(const o of e.checks)switch(o.kind){case"int":t.type="integer";break;case"min":o.inclusive?t.minimum=o.value:t.exclusiveMinimum=o.value;break;case"max":o.inclusive?t.maximum=o.value:t.exclusiveMaximum=o.value;break;case"multipleOf":t.multipleOf=o.value}return t}(e);case _e.kY.ZodObject:return function(e,t){const o={type:"object",properties:{}},i=[],n=e.shape();for(const e in n){let r=n[e];if(void 0===r||void 0===r._def)continue;const s=ht(r),a=mt(r._def,{...t,currentPath:[...t.currentPath,"properties",e],propertyPath:[...t.currentPath,"properties",e]});void 0!==a&&(o.properties[e]=a,s||i.push(e))}i.length&&(o.required=i);const r=function(e,t){if("ZodNever"!==e.catchall._def.typeName)return mt(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return"strict"===t.removeAdditionalStrategy?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}(e,t);return void 0!==r&&(o.additionalProperties=r),o}(e,o);case _e.kY.ZodBigInt:return function(e){const t={type:"integer",format:"int64"};if(!e.checks)return t;for(const o of e.checks)switch(o.kind){case"min":o.inclusive?t.minimum=o.value:t.exclusiveMinimum=o.value;break;case"max":o.inclusive?t.maximum=o.value:t.exclusiveMaximum=o.value;break;case"multipleOf":t.multipleOf=o.value}return t}(e);case _e.kY.ZodBoolean:return{type:"boolean"};case _e.kY.ZodDate:return tt(e,o);case _e.kY.ZodUndefined:return{not:{}};case _e.kY.ZodNull:return{type:"null"};case _e.kY.ZodArray:return function(e,t){var o,i,n;const r={type:"array"};return(null==(o=e.type)?void 0:o._def)&&(null==(n=null==(i=e.type)?void 0:i._def)?void 0:n.typeName)!==_e.kY.ZodAny&&(r.items=mt(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&(r.minItems=e.minLength.value),e.maxLength&&(r.maxItems=e.maxLength.value),e.exactLength&&(r.minItems=e.exactLength.value,r.maxItems=e.exactLength.value),r}(e,o);case _e.kY.ZodUnion:case _e.kY.ZodDiscriminatedUnion:return function(e,t){const o=e.options instanceof Map?Array.from(e.options.values()):e.options;if(o.every((e=>e._def.typeName in dt&&(!e._def.checks||!e._def.checks.length)))){const e=o.reduce(((e,t)=>{const o=dt[t._def.typeName];return o&&!e.includes(o)?[...e,o]:e}),[]);return{type:e.length>1?e:e[0]}}if(o.every((e=>"ZodLiteral"===e._def.typeName&&!e.description))){const e=o.reduce(((e,t)=>{const o=typeof t._def.value;switch(o){case"string":case"number":case"boolean":return[...e,o];case"bigint":return[...e,"integer"];case"object":if(null===t._def.value)return[...e,"null"];default:return e}}),[]);if(e.length===o.length){const t=e.filter(((e,t,o)=>o.indexOf(e)===t));return{type:t.length>1?t:t[0],enum:o.reduce(((e,t)=>e.includes(t._def.value)?e:[...e,t._def.value]),[])}}}else if(o.every((e=>"ZodEnum"===e._def.typeName)))return{type:"string",enum:o.reduce(((e,t)=>[...e,...t._def.values.filter((t=>!e.includes(t)))]),[])};return((e,t)=>{const o=(e.options instanceof Map?Array.from(e.options.values()):e.options).map(((e,o)=>mt(e._def,{...t,currentPath:[...t.currentPath,"anyOf",`${o}`]}))).filter((e=>!!e&&(!t.strictUnions||"object"==typeof e&&Object.keys(e).length>0)));return o.length?{anyOf:o}:void 0})(e,t)}(e,o);case _e.kY.ZodIntersection:return function(e,t){const o=[mt(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),mt(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter((e=>!!e)),i=[];return o.forEach((e=>{if("type"in(t=e)&&"string"===t.type||!("allOf"in t)){let t=e;if("additionalProperties"in e&&!1===e.additionalProperties){const{additionalProperties:o,...i}=e;t=i}i.push(t)}else i.push(...e.allOf);var t})),i.length?{allOf:i}:void 0}(e,o);case _e.kY.ZodTuple:return function(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map(((e,o)=>mt(e._def,{...t,currentPath:[...t.currentPath,"items",`${o}`]}))).reduce(((e,t)=>void 0===t?e:[...e,t]),[]),additionalItems:mt(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map(((e,o)=>mt(e._def,{...t,currentPath:[...t.currentPath,"items",`${o}`]}))).reduce(((e,t)=>void 0===t?e:[...e,t]),[])}}(e,o);case _e.kY.ZodRecord:return ct(e,o);case _e.kY.ZodLiteral:return function(e){const t=typeof e.value;return"bigint"!==t&&"number"!==t&&"boolean"!==t&&"string"!==t?{type:Array.isArray(e.value)?"array":"object"}:{type:"bigint"===t?"integer":t,const:e.value}}(e);case _e.kY.ZodEnum:return function(e){return{type:"string",enum:Array.from(e.values)}}(e);case _e.kY.ZodNativeEnum:return function(e){const t=e.values,o=Object.keys(e.values).filter((e=>"number"!=typeof t[t[e]])).map((e=>t[e])),i=Array.from(new Set(o.map((e=>typeof e))));return{type:1===i.length?"string"===i[0]?"string":"number":["string","number"],enum:o}}(e);case _e.kY.ZodNullable:return function(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[dt[e.innerType._def.typeName],"null"]};const o=mt(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return o&&{anyOf:[o,{type:"null"}]}}(e,o);case _e.kY.ZodOptional:return((e,t)=>{var o;if(t.currentPath.toString()===(null==(o=t.propertyPath)?void 0:o.toString()))return mt(e.innerType._def,t);const i=mt(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return i?{anyOf:[{not:{}},i]}:{}})(e,o);case _e.kY.ZodMap:return function(e,t){return"record"===t.mapStrategy?ct(e,t):{type:"array",maxItems:125,items:{type:"array",items:[mt(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||{},mt(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||{}],minItems:2,maxItems:2}}}(e,o);case _e.kY.ZodSet:return function(e,t){const o={type:"array",uniqueItems:!0,items:mt(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&(o.minItems=e.minSize.value),e.maxSize&&(o.maxItems=e.maxSize.value),o}(e,o);case _e.kY.ZodLazy:return()=>e.getter()._def;case _e.kY.ZodPromise:return function(e,t){return mt(e.type._def,t)}(e,o);case _e.kY.ZodNaN:case _e.kY.ZodNever:return{not:{}};case _e.kY.ZodEffects:return function(e,t){return"input"===t.effectStrategy?mt(e.schema._def,t):{}}(e,o);case _e.kY.ZodAny:case _e.kY.ZodUnknown:return{};case _e.kY.ZodDefault:return function(e,t){return{...mt(e.innerType._def,t),default:e.defaultValue()}}(e,o);case _e.kY.ZodBranded:return et(e,o);case _e.kY.ZodReadonly:case _e.kY.ZodCatch:return((e,t)=>mt(e.innerType._def,t))(e,o);case _e.kY.ZodPipeline:return((e,t)=>{if("input"===t.pipeStrategy)return mt(e.in._def,t);if("output"===t.pipeStrategy)return mt(e.out._def,t);const o=mt(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]});return{allOf:[o,mt(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",o?"1":"0"]})].filter((e=>void 0!==e))}})(e,o);case _e.kY.ZodFunction:case _e.kY.ZodVoid:case _e.kY.ZodSymbol:default:return}},gt=(e,t)=>{let o=0;for(;o<e.length&&o<t.length&&e[o]===t[o];o++);return[(e.length-o).toString(),...t.slice(o)].join("/")};function mt(e,t,o=!1){var i;const n=t.seen.get(e);if(t.override){const r=null==(i=t.override)?void 0:i.call(t,e,t,n,o);if(r!==Xe)return r}if(n&&!o){const e=yt(n,t);if(void 0!==e)return e}const r={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,r);const s=ft(e,e.typeName,t),a="function"==typeof s?mt(s(),t):s;if(a&&vt(e,t,a),t.postProcess){const o=t.postProcess(a,e,t);return r.jsonSchema=a,o}return r.jsonSchema=a,a}var yt=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:gt(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every(((e,o)=>t.currentPath[o]===e))?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),{}):"seen"===t.$refStrategy?{}:void 0}},vt=(e,t,o)=>(e.description&&(o.description=e.description),o),Ct=(e,t)=>{var o;const i=(e=>{const t=(e=>"string"==typeof e?{...Je,name:e}:{...Je,...e})(e),o=void 0!==t.name?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,currentPath:o,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map((([e,o])=>[o._def,{def:o._def,path:[...t.basePath,t.definitionPath,e],jsonSchema:void 0}])))}})(t);let n="object"==typeof t&&t.definitions?Object.entries(t.definitions).reduce(((e,[t,o])=>{var n;return{...e,[t]:null!=(n=mt(o._def,{...i,currentPath:[...i.basePath,i.definitionPath,t]},!0))?n:{}}}),{}):void 0;const r="string"==typeof t?t:"title"===(null==t?void 0:t.nameStrategy)||null==t?void 0:t.name,s=null!=(o=mt(e._def,void 0===r?i:{...i,currentPath:[...i.basePath,i.definitionPath,r]},!1))?o:{},a="object"==typeof t&&void 0!==t.name&&"title"===t.nameStrategy?t.name:void 0;void 0!==a&&(s.title=a);const l=void 0===r?n?{...s,[i.definitionPath]:n}:s:{$ref:[..."relative"===i.$refStrategy?[]:i.basePath,i.definitionPath,r].join("/"),[i.definitionPath]:{...n,[r]:s}};return l.$schema="http://json-schema.org/draft-07/schema#",l},wt=Symbol.for("vercel.ai.schema");function Et(e){let t;return()=>(null==t&&(t=e()),t)}function _t(e,{validate:t}={}){return{[wt]:!0,_type:void 0,get jsonSchema(){return"function"==typeof e&&(e=e()),e},validate:t}}function bt(e,t){return function(e){return"_zod"in e}(e)?function(e,t){var o;const i=null!=(o=null==t?void 0:t.useReferences)&&o;return _t((()=>Ze(we.b(e,{target:"draft-7",io:"input",reused:i?"ref":"inline"}))),{validate:async t=>{const o=await Ee.bp(e,t);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}(e,t):function(e,t){var o;const i=null!=(o=null==t?void 0:t.useReferences)&&o;return _t((()=>Ct(e,{$refStrategy:i?"root":"none"})),{validate:async t=>{const o=await e.safeParseAsync(t);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}(e,t)}async function Rt({value:e,schema:t}){const o=await Ot({value:e,schema:t});if(!o.success)throw ge.wrap({value:e,cause:o.error});return o.value}async function Ot({value:e,schema:t}){const o=function(e){return null==e?_t({properties:{},additionalProperties:!1}):"object"==typeof(o=e)&&null!==o&&wt in o&&!0===o[wt]&&"jsonSchema"in o&&"validate"in o?e:"~standard"in e?"zod"===e["~standard"].vendor?bt(e):(t=e,_t((()=>Ze(t["~standard"].jsonSchema.input({target:"draft-07"}))),{validate:async e=>{const o=await t["~standard"].validate(e);return"value"in o?{success:!0,value:o.value}:{success:!1,error:new ge({value:e,cause:o.issues})}}})):e();var t,o}(t);try{if(null==o.validate)return{success:!0,value:e,rawValue:e};const t=await o.validate(e);return t.success?{success:!0,value:t.value,rawValue:e}:{success:!1,error:ge.wrap({value:e,cause:t.error}),rawValue:e}}catch(t){return{success:!1,error:ge.wrap({value:e,cause:t}),rawValue:e}}}async function St({text:e,schema:t}){try{const o=$e(e);return null==t?{success:!0,value:o,rawValue:o}:await Ot({value:o,schema:t})}catch(t){return{success:!1,error:X.isInstance(t)?t:new X({text:e,cause:t}),rawValue:void 0}}}function At(e){try{return $e(e),!0}catch(e){return!1}}function Pt({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new be.Z).pipeThrough(new TransformStream({async transform({data:e},o){"[DONE]"!==e&&o.enqueue(await St({text:e,schema:t}))}}))}async function Tt({provider:e,providerOptions:t,schema:o}){if(null==(null==t?void 0:t[e]))return;const i=await Ot({value:t[e],schema:o});if(!i.success)throw new W({argument:"providerOptions",message:`invalid ${e} provider options`,cause:i.error});return i.value}var Dt=()=>globalThis.fetch,Nt=async({url:e,headers:t,body:o,failedResponseHandler:i,successfulResponseHandler:n,abortSignal:r,fetch:s})=>It({url:e,headers:{"Content-Type":"application/json",...t},body:{content:JSON.stringify(o),values:o},failedResponseHandler:i,successfulResponseHandler:n,abortSignal:r,fetch:s}),xt=async({url:e,headers:t,formData:o,failedResponseHandler:i,successfulResponseHandler:n,abortSignal:r,fetch:s})=>It({url:e,headers:t,body:{content:o,values:Object.fromEntries(o.entries())},failedResponseHandler:i,successfulResponseHandler:n,abortSignal:r,fetch:s}),It=async({url:e,headers:t={},body:o,successfulResponseHandler:i,failedResponseHandler:n,abortSignal:r,fetch:s=Dt()})=>{try{const a=await s(e,{method:"POST",headers:Be(t,"ai-sdk/provider-utils/4.0.5",je()),body:o.content,signal:r}),l=Se(a);if(!a.ok){let t;try{t=await n({response:a,url:e,requestBodyValues:o.values})}catch(t){if(We(t)||g.isInstance(t))throw t;throw new g({message:"Failed to process error response",cause:t,statusCode:a.status,url:e,responseHeaders:l,requestBodyValues:o.values})}throw t.value}try{return await i({response:a,url:e,requestBodyValues:o.values})}catch(t){if(t instanceof Error&&(We(t)||g.isInstance(t)))throw t;throw new g({message:"Failed to process successful response",cause:t,statusCode:a.status,url:e,responseHeaders:l,requestBodyValues:o.values})}}catch(t){throw function({error:e,url:t,requestBodyValues:o}){if(We(e))return e;if(e instanceof TypeError&&He.includes(e.message.toLowerCase())){const i=e.cause;if(null!=i)return new g({message:`Cannot connect to API: ${i.message}`,cause:i,url:t,requestBodyValues:o,isRetryable:!0})}return e}({error:t,url:e,requestBodyValues:o.values})}};function Ft({id:e,inputSchema:t,outputSchema:o,supportsDeferredResults:i}){return({execute:n,needsApproval:r,toModelOutput:s,onInputStart:a,onInputDelta:l,onInputAvailable:p,...u})=>({type:"provider",id:e,args:u,inputSchema:t,outputSchema:o,execute:n,needsApproval:r,toModelOutput:s,onInputStart:a,onInputDelta:l,onInputAvailable:p,supportsDeferredResults:i})}var Lt=e=>async({response:t})=>{const o=Se(t);if(null==t.body)throw new C({});return{responseHeaders:o,value:Pt({stream:t.body,schema:e})}},kt=e=>async({response:t,url:o,requestBodyValues:i})=>{const n=await t.text(),r=await St({text:n,schema:e}),s=Se(t);if(!r.success)throw new g({message:"Invalid JSON response",cause:r.error,statusCode:t.status,responseHeaders:s,responseBody:n,url:o,requestBodyValues:i});return{responseHeaders:s,value:r.value,rawValue:r.rawValue}},Mt=o(8645),Gt=o(94149),Vt=o(9606).URL,Wt=Mt.Ik({error:Mt.Ik({message:Mt.Yj(),type:Mt.Yj().nullish(),param:Mt.bz().nullish(),code:Mt.KC([Mt.Yj(),Mt.ai()]).nullish()})}),Ht=(({errorSchema:e,errorToMessage:t,isRetryable:o})=>async({response:i,url:n,requestBodyValues:r})=>{const s=await i.text(),a=Se(i);if(""===s.trim())return{responseHeaders:a,value:new g({message:i.statusText,url:n,requestBodyValues:r,statusCode:i.status,responseHeaders:a,responseBody:s,isRetryable:null==o?void 0:o(i)})};try{const l=await async function({text:e,schema:t}){try{const o=$e(e);return null==t?o:Rt({value:o,schema:t})}catch(t){if(X.isInstance(t)||ge.isInstance(t))throw t;throw new X({text:e,cause:t})}}({text:s,schema:e});return{responseHeaders:a,value:new g({message:t(l),url:n,requestBodyValues:r,statusCode:i.status,responseHeaders:a,responseBody:s,data:l,isRetryable:null==o?void 0:o(i,l)})}}catch(e){return{responseHeaders:a,value:new g({message:i.statusText,url:n,requestBodyValues:r,statusCode:i.status,responseHeaders:a,responseBody:s,isRetryable:null==o?void 0:o(i)})}}})({errorSchema:Wt,errorToMessage:e=>e.error.message});function jt(e){const t=e.startsWith("o3")||e.startsWith("o4-mini")||e.startsWith("gpt-5")&&!e.startsWith("gpt-5-chat"),o=e.startsWith("gpt-4")||e.startsWith("gpt-5-mini")||e.startsWith("gpt-5")&&!e.startsWith("gpt-5-nano")&&!e.startsWith("gpt-5-chat")||e.startsWith("o3")||e.startsWith("o4-mini"),i=e.startsWith("o1")||e.startsWith("o3")||e.startsWith("o4-mini")||e.startsWith("codex-mini")||e.startsWith("computer-use-preview")||e.startsWith("gpt-5")&&!e.startsWith("gpt-5-chat");return{supportsFlexProcessing:t,supportsPriorityProcessing:o,isReasoningModel:i,systemMessageMode:i?"developer":"system",supportsNonReasoningParameters:e.startsWith("gpt-5.1")||e.startsWith("gpt-5.2")}}function Bt(e){var t,o,i,n,r,s;if(null==e)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};const a=null!=(t=e.prompt_tokens)?t:0,l=null!=(o=e.completion_tokens)?o:0,p=null!=(n=null==(i=e.prompt_tokens_details)?void 0:i.cached_tokens)?n:0,u=null!=(s=null==(r=e.completion_tokens_details)?void 0:r.reasoning_tokens)?s:0;return{inputTokens:{total:a,noCache:a-p,cacheRead:p,cacheWrite:void 0},outputTokens:{total:l,text:l-u,reasoning:u},raw:e}}function Ut({id:e,model:t,created:o}){return{id:null!=e?e:void 0,modelId:null!=t?t:void 0,timestamp:o?new Date(1e3*o):void 0}}function Yt(e){switch(e){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"function_call":case"tool_calls":return"tool-calls";default:return"other"}}var zt=Et((()=>bt(Mt.Ik({id:Mt.Yj().nullish(),created:Mt.ai().nullish(),model:Mt.Yj().nullish(),choices:Mt.YO(Mt.Ik({message:Mt.Ik({role:Mt.eu("assistant").nullish(),content:Mt.Yj().nullish(),tool_calls:Mt.YO(Mt.Ik({id:Mt.Yj().nullish(),type:Mt.eu("function"),function:Mt.Ik({name:Mt.Yj(),arguments:Mt.Yj()})})).nullish(),annotations:Mt.YO(Mt.Ik({type:Mt.eu("url_citation"),url_citation:Mt.Ik({start_index:Mt.ai(),end_index:Mt.ai(),url:Mt.Yj(),title:Mt.Yj()})})).nullish()}),index:Mt.ai(),logprobs:Mt.Ik({content:Mt.YO(Mt.Ik({token:Mt.Yj(),logprob:Mt.ai(),top_logprobs:Mt.YO(Mt.Ik({token:Mt.Yj(),logprob:Mt.ai()}))})).nullish()}).nullish(),finish_reason:Mt.Yj().nullish()})),usage:Mt.Ik({prompt_tokens:Mt.ai().nullish(),completion_tokens:Mt.ai().nullish(),total_tokens:Mt.ai().nullish(),prompt_tokens_details:Mt.Ik({cached_tokens:Mt.ai().nullish()}).nullish(),completion_tokens_details:Mt.Ik({reasoning_tokens:Mt.ai().nullish(),accepted_prediction_tokens:Mt.ai().nullish(),rejected_prediction_tokens:Mt.ai().nullish()}).nullish()}).nullish()})))),qt=Et((()=>bt(Mt.KC([Mt.Ik({id:Mt.Yj().nullish(),created:Mt.ai().nullish(),model:Mt.Yj().nullish(),choices:Mt.YO(Mt.Ik({delta:Mt.Ik({role:Mt.k5(["assistant"]).nullish(),content:Mt.Yj().nullish(),tool_calls:Mt.YO(Mt.Ik({index:Mt.ai(),id:Mt.Yj().nullish(),type:Mt.eu("function").nullish(),function:Mt.Ik({name:Mt.Yj().nullish(),arguments:Mt.Yj().nullish()})})).nullish(),annotations:Mt.YO(Mt.Ik({type:Mt.eu("url_citation"),url_citation:Mt.Ik({start_index:Mt.ai(),end_index:Mt.ai(),url:Mt.Yj(),title:Mt.Yj()})})).nullish()}).nullish(),logprobs:Mt.Ik({content:Mt.YO(Mt.Ik({token:Mt.Yj(),logprob:Mt.ai(),top_logprobs:Mt.YO(Mt.Ik({token:Mt.Yj(),logprob:Mt.ai()}))})).nullish()}).nullish(),finish_reason:Mt.Yj().nullish(),index:Mt.ai()})),usage:Mt.Ik({prompt_tokens:Mt.ai().nullish(),completion_tokens:Mt.ai().nullish(),total_tokens:Mt.ai().nullish(),prompt_tokens_details:Mt.Ik({cached_tokens:Mt.ai().nullish()}).nullish(),completion_tokens_details:Mt.Ik({reasoning_tokens:Mt.ai().nullish(),accepted_prediction_tokens:Mt.ai().nullish(),rejected_prediction_tokens:Mt.ai().nullish()}).nullish()}).nullish()}),Wt])))),Kt=Et((()=>bt(Mt.Ik({logitBias:Mt.g1(Gt.ai(),Mt.ai()).optional(),logprobs:Mt.KC([Mt.zM(),Mt.ai()]).optional(),parallelToolCalls:Mt.zM().optional(),user:Mt.Yj().optional(),reasoningEffort:Mt.k5(["none","minimal","low","medium","high","xhigh"]).optional(),maxCompletionTokens:Mt.ai().optional(),store:Mt.zM().optional(),metadata:Mt.g1(Mt.Yj().max(64),Mt.Yj().max(512)).optional(),prediction:Mt.g1(Mt.Yj(),Mt.bz()).optional(),serviceTier:Mt.k5(["auto","flex","priority","default"]).optional(),strictJsonSchema:Mt.zM().optional(),textVerbosity:Mt.k5(["low","medium","high"]).optional(),promptCacheKey:Mt.Yj().optional(),promptCacheRetention:Mt.k5(["in_memory","24h"]).optional(),safetyIdentifier:Mt.Yj().optional(),systemMessageMode:Mt.k5(["system","developer","remove"]).optional(),forceReasoning:Mt.zM().optional()})))),$t=class{constructor(e,t){this.specificationVersion="v3",this.supportedUrls={"image/*":[/^https?:\/\/.*$/]},this.modelId=e,this.config=t}get provider(){return this.config.provider}async getArgs({prompt:e,maxOutputTokens:t,temperature:o,topP:i,topK:n,frequencyPenalty:r,presencePenalty:s,stopSequences:a,responseFormat:l,seed:p,tools:u,toolChoice:c,providerOptions:d}){var h,f,g,m,y;const v=[],C=null!=(h=await Tt({provider:"openai",providerOptions:d,schema:Kt}))?h:{},w=jt(this.modelId),E=null!=(f=C.forceReasoning)?f:w.isReasoningModel;null!=n&&v.push({type:"unsupported",feature:"topK"});const{messages:_,warnings:b}=function({prompt:e,systemMessageMode:t="system"}){var o;const i=[],n=[];for(const{role:r,content:s}of e)switch(r){case"system":switch(t){case"system":i.push({role:"system",content:s});break;case"developer":i.push({role:"developer",content:s});break;case"remove":n.push({type:"other",message:"system messages are removed for this model"});break;default:throw new Error(`Unsupported system message mode: ${t}`)}break;case"user":if(1===s.length&&"text"===s[0].type){i.push({role:"user",content:s[0].text});break}i.push({role:"user",content:s.map(((e,t)=>{var o,i,n;switch(e.type){case"text":return{type:"text",text:e.text};case"file":if(e.mediaType.startsWith("image/")){const t="image/*"===e.mediaType?"image/jpeg":e.mediaType;return{type:"image_url",image_url:{url:e.data instanceof Vt?e.data.toString():`data:${t};base64,${De(e.data)}`,detail:null==(i=null==(o=e.providerOptions)?void 0:o.openai)?void 0:i.imageDetail}}}if(!e.mediaType.startsWith("audio/")){if("application/pdf"===e.mediaType){if(e.data instanceof Vt)throw new Ce({functionality:"PDF file parts with URLs"});return{type:"file",file:"string"==typeof e.data&&e.data.startsWith("file-")?{file_id:e.data}:{filename:null!=(n=e.filename)?n:`part-${t}.pdf`,file_data:`data:application/pdf;base64,${De(e.data)}`}}}throw new Ce({functionality:`file part media type ${e.mediaType}`})}if(e.data instanceof Vt)throw new Ce({functionality:"audio file parts with URLs"});switch(e.mediaType){case"audio/wav":return{type:"input_audio",input_audio:{data:De(e.data),format:"wav"}};case"audio/mp3":case"audio/mpeg":return{type:"input_audio",input_audio:{data:De(e.data),format:"mp3"}};default:throw new Ce({functionality:`audio content parts with media type ${e.mediaType}`})}}}))});break;case"assistant":{let e="";const t=[];for(const o of s)switch(o.type){case"text":e+=o.text;break;case"tool-call":t.push({id:o.toolCallId,type:"function",function:{name:o.toolName,arguments:JSON.stringify(o.input)}})}i.push({role:"assistant",content:e,tool_calls:t.length>0?t:void 0});break}case"tool":for(const e of s){if("tool-approval-response"===e.type)continue;const t=e.output;let n;switch(t.type){case"text":case"error-text":n=t.value;break;case"execution-denied":n=null!=(o=t.reason)?o:"Tool execution denied.";break;case"content":case"json":case"error-json":n=JSON.stringify(t.value)}i.push({role:"tool",tool_call_id:e.toolCallId,content:n})}break;default:throw new Error(`Unsupported role: ${r}`)}return{messages:i,warnings:n}}({prompt:e,systemMessageMode:null!=(g=C.systemMessageMode)?g:E?"developer":w.systemMessageMode});v.push(...b);const R=null==(m=C.strictJsonSchema)||m,O={model:this.modelId,logit_bias:C.logitBias,logprobs:!0===C.logprobs||"number"==typeof C.logprobs||void 0,top_logprobs:"number"==typeof C.logprobs?C.logprobs:"boolean"==typeof C.logprobs&&C.logprobs?0:void 0,user:C.user,parallel_tool_calls:C.parallelToolCalls,max_tokens:t,temperature:o,top_p:i,frequency_penalty:r,presence_penalty:s,response_format:"json"===(null==l?void 0:l.type)?null!=l.schema?{type:"json_schema",json_schema:{schema:l.schema,strict:R,name:null!=(y=l.name)?y:"response",description:l.description}}:{type:"json_object"}:void 0,stop:a,seed:p,verbosity:C.textVerbosity,max_completion_tokens:C.maxCompletionTokens,store:C.store,metadata:C.metadata,prediction:C.prediction,reasoning_effort:C.reasoningEffort,service_tier:C.serviceTier,prompt_cache_key:C.promptCacheKey,prompt_cache_retention:C.promptCacheRetention,safety_identifier:C.safetyIdentifier,messages:_};E?("none"===C.reasoningEffort&&w.supportsNonReasoningParameters||(null!=O.temperature&&(O.temperature=void 0,v.push({type:"unsupported",feature:"temperature",details:"temperature is not supported for reasoning models"})),null!=O.top_p&&(O.top_p=void 0,v.push({type:"unsupported",feature:"topP",details:"topP is not supported for reasoning models"})),null!=O.logprobs&&(O.logprobs=void 0,v.push({type:"other",message:"logprobs is not supported for reasoning models"}))),null!=O.frequency_penalty&&(O.frequency_penalty=void 0,v.push({type:"unsupported",feature:"frequencyPenalty",details:"frequencyPenalty is not supported for reasoning models"})),null!=O.presence_penalty&&(O.presence_penalty=void 0,v.push({type:"unsupported",feature:"presencePenalty",details:"presencePenalty is not supported for reasoning models"})),null!=O.logit_bias&&(O.logit_bias=void 0,v.push({type:"other",message:"logitBias is not supported for reasoning models"})),null!=O.top_logprobs&&(O.top_logprobs=void 0,v.push({type:"other",message:"topLogprobs is not supported for reasoning models"})),null!=O.max_tokens&&(null==O.max_completion_tokens&&(O.max_completion_tokens=O.max_tokens),O.max_tokens=void 0)):(this.modelId.startsWith("gpt-4o-search-preview")||this.modelId.startsWith("gpt-4o-mini-search-preview"))&&null!=O.temperature&&(O.temperature=void 0,v.push({type:"unsupported",feature:"temperature",details:"temperature is not supported for the search preview models and has been removed."})),"flex"!==C.serviceTier||w.supportsFlexProcessing||(v.push({type:"unsupported",feature:"serviceTier",details:"flex processing is only available for o3, o4-mini, and gpt-5 models"}),O.service_tier=void 0),"priority"!==C.serviceTier||w.supportsPriorityProcessing||(v.push({type:"unsupported",feature:"serviceTier",details:"priority processing is only available for supported models (gpt-4, gpt-5, gpt-5-mini, o3, o4-mini) and requires Enterprise access. gpt-5-nano is not supported"}),O.service_tier=void 0);const{tools:S,toolChoice:A,toolWarnings:P}=function({tools:e,toolChoice:t}){const o=[];if(null==(e=(null==e?void 0:e.length)?e:void 0))return{tools:void 0,toolChoice:void 0,toolWarnings:o};const i=[];for(const t of e)"function"===t.type?i.push({type:"function",function:{name:t.name,description:t.description,parameters:t.inputSchema,...null!=t.strict?{strict:t.strict}:{}}}):o.push({type:"unsupported",feature:`tool type: ${t.type}`});if(null==t)return{tools:i,toolChoice:void 0,toolWarnings:o};const n=t.type;switch(n){case"auto":case"none":case"required":return{tools:i,toolChoice:n,toolWarnings:o};case"tool":return{tools:i,toolChoice:{type:"function",function:{name:t.toolName}},toolWarnings:o};default:throw new Ce({functionality:`tool choice type: ${n}`})}}({tools:u,toolChoice:c});return{args:{...O,tools:S,tool_choice:A},warnings:[...v,...P]}}async doGenerate(e){var t,o,i,n,r,s,a;const{args:l,warnings:p}=await this.getArgs(e),{responseHeaders:u,value:c,rawValue:d}=await Nt({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:Oe(this.config.headers(),e.headers),body:l,failedResponseHandler:Ht,successfulResponseHandler:kt(zt),abortSignal:e.abortSignal,fetch:this.config.fetch}),h=c.choices[0],f=[],g=h.message.content;null!=g&&g.length>0&&f.push({type:"text",text:g});for(const e of null!=(t=h.message.tool_calls)?t:[])f.push({type:"tool-call",toolCallId:null!=(o=e.id)?o:Ve(),toolName:e.function.name,input:e.function.arguments});for(const e of null!=(i=h.message.annotations)?i:[])f.push({type:"source",sourceType:"url",id:Ve(),url:e.url_citation.url,title:e.url_citation.title});const m=null==(n=c.usage)?void 0:n.completion_tokens_details,y=(null==(r=c.usage)||r.prompt_tokens_details,{openai:{}});return null!=(null==m?void 0:m.accepted_prediction_tokens)&&(y.openai.acceptedPredictionTokens=null==m?void 0:m.accepted_prediction_tokens),null!=(null==m?void 0:m.rejected_prediction_tokens)&&(y.openai.rejectedPredictionTokens=null==m?void 0:m.rejected_prediction_tokens),null!=(null==(s=h.logprobs)?void 0:s.content)&&(y.openai.logprobs=h.logprobs.content),{content:f,finishReason:{unified:Yt(h.finish_reason),raw:null!=(a=h.finish_reason)?a:void 0},usage:Bt(c.usage),request:{body:l},response:{...Ut(c),headers:u,body:d},warnings:p,providerMetadata:y}}async doStream(e){const{args:t,warnings:o}=await this.getArgs(e),i={...t,stream:!0,stream_options:{include_usage:!0}},{responseHeaders:n,value:r}=await Nt({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:Oe(this.config.headers(),e.headers),body:i,failedResponseHandler:Ht,successfulResponseHandler:Lt(qt),abortSignal:e.abortSignal,fetch:this.config.fetch}),s=[];let a,l={unified:"other",raw:void 0},p=!1,u=!1;const c={openai:{}};return{stream:r.pipeThrough(new TransformStream({start(e){e.enqueue({type:"stream-start",warnings:o})},transform(t,o){var i,n,r,d,h,f,g,m,y,v,C,w,E,_,b,R,O;if(e.includeRawChunks&&o.enqueue({type:"raw",rawValue:t.rawValue}),!t.success)return l={unified:"error",raw:void 0},void o.enqueue({type:"error",error:t.error});const S=t.value;if("error"in S)return l={unified:"error",raw:void 0},void o.enqueue({type:"error",error:S.error});if(!p){const e=Ut(S);Object.values(e).some(Boolean)&&(p=!0,o.enqueue({type:"response-metadata",...Ut(S)}))}null!=S.usage&&(a=S.usage,null!=(null==(i=S.usage.completion_tokens_details)?void 0:i.accepted_prediction_tokens)&&(c.openai.acceptedPredictionTokens=null==(n=S.usage.completion_tokens_details)?void 0:n.accepted_prediction_tokens),null!=(null==(r=S.usage.completion_tokens_details)?void 0:r.rejected_prediction_tokens)&&(c.openai.rejectedPredictionTokens=null==(d=S.usage.completion_tokens_details)?void 0:d.rejected_prediction_tokens));const A=S.choices[0];if(null!=(null==A?void 0:A.finish_reason)&&(l={unified:Yt(A.finish_reason),raw:A.finish_reason}),null!=(null==(h=null==A?void 0:A.logprobs)?void 0:h.content)&&(c.openai.logprobs=A.logprobs.content),null==(null==A?void 0:A.delta))return;const P=A.delta;if(null!=P.content&&(u||(o.enqueue({type:"text-start",id:"0"}),u=!0),o.enqueue({type:"text-delta",id:"0",delta:P.content})),null!=P.tool_calls)for(const e of P.tool_calls){const t=e.index;if(null==s[t]){if("function"!==e.type)throw new K({data:e,message:"Expected 'function' type."});if(null==e.id)throw new K({data:e,message:"Expected 'id' to be a string."});if(null==(null==(f=e.function)?void 0:f.name))throw new K({data:e,message:"Expected 'function.name' to be a string."});o.enqueue({type:"tool-input-start",id:e.id,toolName:e.function.name}),s[t]={id:e.id,type:"function",function:{name:e.function.name,arguments:null!=(g=e.function.arguments)?g:""},hasFinished:!1};const i=s[t];null!=(null==(m=i.function)?void 0:m.name)&&null!=(null==(y=i.function)?void 0:y.arguments)&&(i.function.arguments.length>0&&o.enqueue({type:"tool-input-delta",id:i.id,delta:i.function.arguments}),At(i.function.arguments)&&(o.enqueue({type:"tool-input-end",id:i.id}),o.enqueue({type:"tool-call",toolCallId:null!=(v=i.id)?v:Ve(),toolName:i.function.name,input:i.function.arguments}),i.hasFinished=!0));continue}const i=s[t];i.hasFinished||(null!=(null==(C=e.function)?void 0:C.arguments)&&(i.function.arguments+=null!=(E=null==(w=e.function)?void 0:w.arguments)?E:""),o.enqueue({type:"tool-input-delta",id:i.id,delta:null!=(_=e.function.arguments)?_:""}),null!=(null==(b=i.function)?void 0:b.name)&&null!=(null==(R=i.function)?void 0:R.arguments)&&At(i.function.arguments)&&(o.enqueue({type:"tool-input-end",id:i.id}),o.enqueue({type:"tool-call",toolCallId:null!=(O=i.id)?O:Ve(),toolName:i.function.name,input:i.function.arguments}),i.hasFinished=!0))}if(null!=P.annotations)for(const e of P.annotations)o.enqueue({type:"source",sourceType:"url",id:Ve(),url:e.url_citation.url,title:e.url_citation.title})},flush(e){u&&e.enqueue({type:"text-end",id:"0"}),e.enqueue({type:"finish",finishReason:l,usage:Bt(a),...null!=c?{providerMetadata:c}:{}})}})),request:{body:i},response:{headers:n}}}};function Zt(e){var t,o,i,n;if(null==e)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};const r=null!=(t=e.prompt_tokens)?t:0,s=null!=(o=e.completion_tokens)?o:0;return{inputTokens:{total:null!=(i=e.prompt_tokens)?i:void 0,noCache:r,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:null!=(n=e.completion_tokens)?n:void 0,text:s,reasoning:void 0},raw:e}}function Qt({id:e,model:t,created:o}){return{id:null!=e?e:void 0,modelId:null!=t?t:void 0,timestamp:null!=o?new Date(1e3*o):void 0}}function Xt(e){switch(e){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"function_call":case"tool_calls":return"tool-calls";default:return"other"}}var Jt=Et((()=>bt(Mt.Ik({id:Mt.Yj().nullish(),created:Mt.ai().nullish(),model:Mt.Yj().nullish(),choices:Mt.YO(Mt.Ik({text:Mt.Yj(),finish_reason:Mt.Yj(),logprobs:Mt.Ik({tokens:Mt.YO(Mt.Yj()),token_logprobs:Mt.YO(Mt.ai()),top_logprobs:Mt.YO(Mt.g1(Mt.Yj(),Mt.ai())).nullish()}).nullish()})),usage:Mt.Ik({prompt_tokens:Mt.ai(),completion_tokens:Mt.ai(),total_tokens:Mt.ai()}).nullish()})))),eo=Et((()=>bt(Mt.KC([Mt.Ik({id:Mt.Yj().nullish(),created:Mt.ai().nullish(),model:Mt.Yj().nullish(),choices:Mt.YO(Mt.Ik({text:Mt.Yj(),finish_reason:Mt.Yj().nullish(),index:Mt.ai(),logprobs:Mt.Ik({tokens:Mt.YO(Mt.Yj()),token_logprobs:Mt.YO(Mt.ai()),top_logprobs:Mt.YO(Mt.g1(Mt.Yj(),Mt.ai())).nullish()}).nullish()})),usage:Mt.Ik({prompt_tokens:Mt.ai(),completion_tokens:Mt.ai(),total_tokens:Mt.ai()}).nullish()}),Wt])))),to=Et((()=>bt(Mt.Ik({echo:Mt.zM().optional(),logitBias:Mt.g1(Mt.Yj(),Mt.ai()).optional(),suffix:Mt.Yj().optional(),user:Mt.Yj().optional(),logprobs:Mt.KC([Mt.zM(),Mt.ai()]).optional()})))),oo=class{constructor(e,t){this.specificationVersion="v3",this.supportedUrls={},this.modelId=e,this.config=t}get providerOptionsName(){return this.config.provider.split(".")[0].trim()}get provider(){return this.config.provider}async getArgs({prompt:e,maxOutputTokens:t,temperature:o,topP:i,topK:n,frequencyPenalty:r,presencePenalty:s,stopSequences:a,responseFormat:l,tools:p,toolChoice:u,seed:c,providerOptions:d}){const h=[],f={...await Tt({provider:"openai",providerOptions:d,schema:to}),...await Tt({provider:this.providerOptionsName,providerOptions:d,schema:to})};null!=n&&h.push({type:"unsupported",feature:"topK"}),(null==p?void 0:p.length)&&h.push({type:"unsupported",feature:"tools"}),null!=u&&h.push({type:"unsupported",feature:"toolChoice"}),null!=l&&"text"!==l.type&&h.push({type:"unsupported",feature:"responseFormat",details:"JSON response format is not supported."});const{prompt:g,stopSequences:m}=function({prompt:e,user:t="user",assistant:o="assistant"}){let i="";"system"===e[0].role&&(i+=`${e[0].content}\n\n`,e=e.slice(1));for(const{role:n,content:r}of e)switch(n){case"system":throw new U({message:"Unexpected system message in prompt: ${content}",prompt:e});case"user":i+=`${t}:\n${r.map((e=>{if("text"===e.type)return e.text})).filter(Boolean).join("")}\n\n`;break;case"assistant":i+=`${o}:\n${r.map((e=>{switch(e.type){case"text":return e.text;case"tool-call":throw new Ce({functionality:"tool-call messages"})}})).join("")}\n\n`;break;case"tool":throw new Ce({functionality:"tool messages"});default:throw new Error(`Unsupported role: ${n}`)}return i+=`${o}:\n`,{prompt:i,stopSequences:[`\n${t}:`]}}({prompt:e}),y=[...null!=m?m:[],...null!=a?a:[]];return{args:{model:this.modelId,echo:f.echo,logit_bias:f.logitBias,logprobs:!0===(null==f?void 0:f.logprobs)?0:!1===(null==f?void 0:f.logprobs)||null==f?void 0:f.logprobs,suffix:f.suffix,user:f.user,max_tokens:t,temperature:o,top_p:i,frequency_penalty:r,presence_penalty:s,seed:c,prompt:g,stop:y.length>0?y:void 0},warnings:h}}async doGenerate(e){var t;const{args:o,warnings:i}=await this.getArgs(e),{responseHeaders:n,value:r,rawValue:s}=await Nt({url:this.config.url({path:"/completions",modelId:this.modelId}),headers:Oe(this.config.headers(),e.headers),body:o,failedResponseHandler:Ht,successfulResponseHandler:kt(Jt),abortSignal:e.abortSignal,fetch:this.config.fetch}),a=r.choices[0],l={openai:{}};return null!=a.logprobs&&(l.openai.logprobs=a.logprobs),{content:[{type:"text",text:a.text}],usage:Zt(r.usage),finishReason:{unified:Xt(a.finish_reason),raw:null!=(t=a.finish_reason)?t:void 0},request:{body:o},response:{...Qt(r),headers:n,body:s},providerMetadata:l,warnings:i}}async doStream(e){const{args:t,warnings:o}=await this.getArgs(e),i={...t,stream:!0,stream_options:{include_usage:!0}},{responseHeaders:n,value:r}=await Nt({url:this.config.url({path:"/completions",modelId:this.modelId}),headers:Oe(this.config.headers(),e.headers),body:i,failedResponseHandler:Ht,successfulResponseHandler:Lt(eo),abortSignal:e.abortSignal,fetch:this.config.fetch});let s={unified:"other",raw:void 0};const a={openai:{}};let l,p=!0;return{stream:r.pipeThrough(new TransformStream({start(e){e.enqueue({type:"stream-start",warnings:o})},transform(t,o){if(e.includeRawChunks&&o.enqueue({type:"raw",rawValue:t.rawValue}),!t.success)return s={unified:"error",raw:void 0},void o.enqueue({type:"error",error:t.error});const i=t.value;if("error"in i)return s={unified:"error",raw:void 0},void o.enqueue({type:"error",error:i.error});p&&(p=!1,o.enqueue({type:"response-metadata",...Qt(i)}),o.enqueue({type:"text-start",id:"0"})),null!=i.usage&&(l=i.usage);const n=i.choices[0];null!=(null==n?void 0:n.finish_reason)&&(s={unified:Xt(n.finish_reason),raw:n.finish_reason}),null!=(null==n?void 0:n.logprobs)&&(a.openai.logprobs=n.logprobs),null!=(null==n?void 0:n.text)&&n.text.length>0&&o.enqueue({type:"text-delta",id:"0",delta:n.text})},flush(e){p||e.enqueue({type:"text-end",id:"0"}),e.enqueue({type:"finish",finishReason:s,providerMetadata:a,usage:Zt(l)})}})),request:{body:i},response:{headers:n}}}},io=Et((()=>bt(Mt.Ik({dimensions:Mt.ai().optional(),user:Mt.Yj().optional()})))),no=Et((()=>bt(Mt.Ik({data:Mt.YO(Mt.Ik({embedding:Mt.YO(Mt.ai())})),usage:Mt.Ik({prompt_tokens:Mt.ai()}).nullish()})))),ro=class{constructor(e,t){this.specificationVersion="v3",this.maxEmbeddingsPerCall=2048,this.supportsParallelCalls=!0,this.modelId=e,this.config=t}get provider(){return this.config.provider}async doEmbed({values:e,headers:t,abortSignal:o,providerOptions:i}){var n;if(e.length>this.maxEmbeddingsPerCall)throw new ce({provider:this.provider,modelId:this.modelId,maxEmbeddingsPerCall:this.maxEmbeddingsPerCall,values:e});const r=null!=(n=await Tt({provider:"openai",providerOptions:i,schema:io}))?n:{},{responseHeaders:s,value:a,rawValue:l}=await Nt({url:this.config.url({path:"/embeddings",modelId:this.modelId}),headers:Oe(this.config.headers(),t),body:{model:this.modelId,input:e,encoding_format:"float",dimensions:r.dimensions,user:r.user},failedResponseHandler:Ht,successfulResponseHandler:kt(no),abortSignal:o,fetch:this.config.fetch});return{warnings:[],embeddings:a.data.map((e=>e.embedding)),usage:a.usage?{tokens:a.usage.prompt_tokens}:void 0,response:{headers:s,body:l}}}},so=Et((()=>bt(Mt.Ik({created:Mt.ai().nullish(),data:Mt.YO(Mt.Ik({b64_json:Mt.Yj(),revised_prompt:Mt.Yj().nullish()})),background:Mt.Yj().nullish(),output_format:Mt.Yj().nullish(),size:Mt.Yj().nullish(),quality:Mt.Yj().nullish(),usage:Mt.Ik({input_tokens:Mt.ai().nullish(),output_tokens:Mt.ai().nullish(),total_tokens:Mt.ai().nullish(),input_tokens_details:Mt.Ik({image_tokens:Mt.ai().nullish(),text_tokens:Mt.ai().nullish()}).nullish()}).nullish()})))),ao={"dall-e-3":1,"dall-e-2":10,"gpt-image-1":10,"gpt-image-1-mini":10,"gpt-image-1.5":10},lo=["gpt-image-1-mini","gpt-image-1.5","gpt-image-1"],po=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3"}get maxImagesPerCall(){var e;return null!=(e=ao[this.modelId])?e:1}get provider(){return this.config.provider}async doGenerate({prompt:e,files:t,mask:o,n:i,size:n,aspectRatio:r,seed:s,providerOptions:a,headers:l,abortSignal:p}){var u,c,d,h,f,g,m,y,v,C,w;const E=[];null!=r&&E.push({type:"unsupported",feature:"aspectRatio",details:"This model does not support aspect ratio. Use `size` instead."}),null!=s&&E.push({type:"unsupported",feature:"seed"});const _=null!=(d=null==(c=null==(u=this.config._internal)?void 0:u.currentDate)?void 0:c.call(u))?d:new Date;if(null!=t){const{value:r,responseHeaders:s}=await xt({url:this.config.url({path:"/images/edits",modelId:this.modelId}),headers:Oe(this.config.headers(),l),formData:Ne({model:this.modelId,prompt:e,image:await Promise.all(t.map((e=>"file"===e.type?new Blob([e.data instanceof Uint8Array?new Blob([e.data],{type:e.mediaType}):new Blob([Te(e.data)],{type:e.mediaType})],{type:e.mediaType}):Ge(e.url)))),mask:null!=o?await uo(o):void 0,n:i,size:n,...null!=(h=a.openai)?h:{}}),failedResponseHandler:Ht,successfulResponseHandler:kt(so),abortSignal:p,fetch:this.config.fetch});return{images:r.data.map((e=>e.b64_json)),warnings:E,usage:null!=r.usage?{inputTokens:null!=(f=r.usage.input_tokens)?f:void 0,outputTokens:null!=(g=r.usage.output_tokens)?g:void 0,totalTokens:null!=(m=r.usage.total_tokens)?m:void 0}:void 0,response:{timestamp:_,modelId:this.modelId,headers:s},providerMetadata:{openai:{images:r.data.map((e=>{var t,o,i,n,s;return{...e.revised_prompt?{revisedPrompt:e.revised_prompt}:{},created:null!=(t=r.created)?t:void 0,size:null!=(o=r.size)?o:void 0,quality:null!=(i=r.quality)?i:void 0,background:null!=(n=r.background)?n:void 0,outputFormat:null!=(s=r.output_format)?s:void 0}}))}}}}const{value:b,responseHeaders:R}=await Nt({url:this.config.url({path:"/images/generations",modelId:this.modelId}),headers:Oe(this.config.headers(),l),body:{model:this.modelId,prompt:e,n:i,size:n,...null!=(y=a.openai)?y:{},...(O=this.modelId,lo.some((e=>O.startsWith(e)))?{}:{response_format:"b64_json"})},failedResponseHandler:Ht,successfulResponseHandler:kt(so),abortSignal:p,fetch:this.config.fetch});var O;return{images:b.data.map((e=>e.b64_json)),warnings:E,usage:null!=b.usage?{inputTokens:null!=(v=b.usage.input_tokens)?v:void 0,outputTokens:null!=(C=b.usage.output_tokens)?C:void 0,totalTokens:null!=(w=b.usage.total_tokens)?w:void 0}:void 0,response:{timestamp:_,modelId:this.modelId,headers:R},providerMetadata:{openai:{images:b.data.map((e=>{var t,o,i,n,r;return{...e.revised_prompt?{revisedPrompt:e.revised_prompt}:{},created:null!=(t=b.created)?t:void 0,size:null!=(o=b.size)?o:void 0,quality:null!=(i=b.quality)?i:void 0,background:null!=(n=b.background)?n:void 0,outputFormat:null!=(r=b.output_format)?r:void 0}}))}}}}};async function uo(e){if(!e)return;if("url"===e.type)return Ge(e.url);const t=e.data instanceof Uint8Array?e.data:Te(e.data);return new Blob([t],{type:e.mediaType})}var co=Et((()=>bt(Mt.Ik({callId:Mt.Yj(),operation:Mt.gM("type",[Mt.Ik({type:Mt.eu("create_file"),path:Mt.Yj(),diff:Mt.Yj()}),Mt.Ik({type:Mt.eu("delete_file"),path:Mt.Yj()}),Mt.Ik({type:Mt.eu("update_file"),path:Mt.Yj(),diff:Mt.Yj()})])})))),ho=Et((()=>bt(Mt.Ik({status:Mt.k5(["completed","failed"]),output:Mt.Yj().optional()})))),fo=(Et((()=>bt(Mt.Ik({})))),Ft({id:"openai.apply_patch",inputSchema:co,outputSchema:ho})),go=Et((()=>bt(Mt.Ik({code:Mt.Yj().nullish(),containerId:Mt.Yj()})))),mo=Et((()=>bt(Mt.Ik({outputs:Mt.YO(Mt.gM("type",[Mt.Ik({type:Mt.eu("logs"),logs:Mt.Yj()}),Mt.Ik({type:Mt.eu("image"),url:Mt.Yj()})])).nullish()})))),yo=Et((()=>bt(Mt.Ik({container:Mt.KC([Mt.Yj(),Mt.Ik({fileIds:Mt.YO(Mt.Yj()).optional()})]).optional()})))),vo=Ft({id:"openai.code_interpreter",inputSchema:go,outputSchema:mo}),Co=Mt.Ik({key:Mt.Yj(),type:Mt.k5(["eq","ne","gt","gte","lt","lte","in","nin"]),value:Mt.KC([Mt.Yj(),Mt.ai(),Mt.zM(),Mt.YO(Mt.Yj())])}),wo=Mt.Ik({type:Mt.k5(["and","or"]),filters:Mt.YO(Mt.KC([Co,Mt.RZ((()=>wo))]))}),Eo=Et((()=>bt(Mt.Ik({vectorStoreIds:Mt.YO(Mt.Yj()),maxNumResults:Mt.ai().optional(),ranking:Mt.Ik({ranker:Mt.Yj().optional(),scoreThreshold:Mt.ai().optional()}).optional(),filters:Mt.KC([Co,wo]).optional()})))),_o=Et((()=>bt(Mt.Ik({queries:Mt.YO(Mt.Yj()),results:Mt.YO(Mt.Ik({attributes:Mt.g1(Mt.Yj(),Mt.L5()),fileId:Mt.Yj(),filename:Mt.Yj(),score:Mt.ai(),text:Mt.Yj()})).nullable()})))),bo=Ft({id:"openai.file_search",inputSchema:Mt.Ik({}),outputSchema:_o}),Ro=Et((()=>bt(Mt.Ik({background:Mt.k5(["auto","opaque","transparent"]).optional(),inputFidelity:Mt.k5(["low","high"]).optional(),inputImageMask:Mt.Ik({fileId:Mt.Yj().optional(),imageUrl:Mt.Yj().optional()}).optional(),model:Mt.Yj().optional(),moderation:Mt.k5(["auto"]).optional(),outputCompression:Mt.ai().int().min(0).max(100).optional(),outputFormat:Mt.k5(["png","jpeg","webp"]).optional(),partialImages:Mt.ai().int().min(0).max(3).optional(),quality:Mt.k5(["auto","low","medium","high"]).optional(),size:Mt.k5(["1024x1024","1024x1536","1536x1024","auto"]).optional()}).strict()))),Oo=Ft({id:"openai.image_generation",inputSchema:Et((()=>bt(Mt.Ik({})))),outputSchema:Et((()=>bt(Mt.Ik({result:Mt.Yj()}))))}),So=Et((()=>bt(Mt.Ik({action:Mt.Ik({type:Mt.eu("exec"),command:Mt.YO(Mt.Yj()),timeoutMs:Mt.ai().optional(),user:Mt.Yj().optional(),workingDirectory:Mt.Yj().optional(),env:Mt.g1(Mt.Yj(),Mt.Yj()).optional()})})))),Ao=Et((()=>bt(Mt.Ik({output:Mt.Yj()})))),Po=Ft({id:"openai.local_shell",inputSchema:So,outputSchema:Ao}),To=Et((()=>bt(Mt.Ik({action:Mt.Ik({commands:Mt.YO(Mt.Yj()),timeoutMs:Mt.ai().optional(),maxOutputLength:Mt.ai().optional()})})))),Do=Et((()=>bt(Mt.Ik({output:Mt.YO(Mt.Ik({stdout:Mt.Yj(),stderr:Mt.Yj(),outcome:Mt.gM("type",[Mt.Ik({type:Mt.eu("timeout")}),Mt.Ik({type:Mt.eu("exit"),exitCode:Mt.ai()})])}))})))),No=Ft({id:"openai.shell",inputSchema:To,outputSchema:Do}),xo=Et((()=>bt(Mt.Ik({externalWebAccess:Mt.zM().optional(),filters:Mt.Ik({allowedDomains:Mt.YO(Mt.Yj()).optional()}).optional(),searchContextSize:Mt.k5(["low","medium","high"]).optional(),userLocation:Mt.Ik({type:Mt.eu("approximate"),country:Mt.Yj().optional(),city:Mt.Yj().optional(),region:Mt.Yj().optional(),timezone:Mt.Yj().optional()}).optional()})))),Io=Ft({id:"openai.web_search",inputSchema:Et((()=>bt(Mt.Ik({})))),outputSchema:Et((()=>bt(Mt.Ik({action:Mt.gM("type",[Mt.Ik({type:Mt.eu("search"),query:Mt.Yj().optional()}),Mt.Ik({type:Mt.eu("openPage"),url:Mt.Yj().nullish()}),Mt.Ik({type:Mt.eu("findInPage"),url:Mt.Yj().nullish(),pattern:Mt.Yj().nullish()})]),sources:Mt.YO(Mt.gM("type",[Mt.Ik({type:Mt.eu("url"),url:Mt.Yj()}),Mt.Ik({type:Mt.eu("api"),name:Mt.Yj()})])).optional()}))))}),Fo=Et((()=>bt(Mt.Ik({searchContextSize:Mt.k5(["low","medium","high"]).optional(),userLocation:Mt.Ik({type:Mt.eu("approximate"),country:Mt.Yj().optional(),city:Mt.Yj().optional(),region:Mt.Yj().optional(),timezone:Mt.Yj().optional()}).optional()})))),Lo=Ft({id:"openai.web_search_preview",inputSchema:Et((()=>bt(Mt.Ik({})))),outputSchema:Et((()=>bt(Mt.Ik({action:Mt.gM("type",[Mt.Ik({type:Mt.eu("search"),query:Mt.Yj().optional()}),Mt.Ik({type:Mt.eu("openPage"),url:Mt.Yj().nullish()}),Mt.Ik({type:Mt.eu("findInPage"),url:Mt.Yj().nullish(),pattern:Mt.Yj().nullish()})])}))))}),ko=Mt.RZ((()=>Mt.KC([Mt.Yj(),Mt.ai(),Mt.zM(),Mt.ch(),Mt.YO(ko),Mt.g1(Mt.Yj(),ko)]))),Mo=Et((()=>bt(Mt.Ik({serverLabel:Mt.Yj(),allowedTools:Mt.KC([Mt.YO(Mt.Yj()),Mt.Ik({readOnly:Mt.zM().optional(),toolNames:Mt.YO(Mt.Yj()).optional()})]).optional(),authorization:Mt.Yj().optional(),connectorId:Mt.Yj().optional(),headers:Mt.g1(Mt.Yj(),Mt.Yj()).optional(),requireApproval:Mt.KC([Mt.k5(["always","never"]),Mt.Ik({never:Mt.Ik({toolNames:Mt.YO(Mt.Yj()).optional()}).optional()})]).optional(),serverDescription:Mt.Yj().optional(),serverUrl:Mt.Yj().optional()}).refine((e=>null!=e.serverUrl||null!=e.connectorId),"One of serverUrl or connectorId must be provided.")))),Go=Ft({id:"openai.mcp",inputSchema:Et((()=>bt(Mt.Ik({})))),outputSchema:Et((()=>bt(Mt.Ik({type:Mt.eu("call"),serverLabel:Mt.Yj(),name:Mt.Yj(),arguments:Mt.Yj(),output:Mt.Yj().nullish(),error:Mt.KC([Mt.Yj(),ko]).optional()}))))}),Vo={applyPatch:fo,codeInterpreter:(e={})=>vo(e),fileSearch:bo,imageGeneration:(e={})=>Oo(e),localShell:Po,shell:No,webSearchPreview:Lo,webSearch:(e={})=>Io(e),mcp:e=>Go(e)};function Wo(e){var t,o,i,n;if(null==e)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};const r=e.input_tokens,s=e.output_tokens,a=null!=(o=null==(t=e.input_tokens_details)?void 0:t.cached_tokens)?o:0,l=null!=(n=null==(i=e.output_tokens_details)?void 0:i.reasoning_tokens)?n:0;return{inputTokens:{total:r,noCache:r-a,cacheRead:a,cacheWrite:void 0},outputTokens:{total:s,text:s-l,reasoning:l},raw:e}}function Ho(e,t){return!!t&&t.some((t=>e.startsWith(t)))}var jo=Mt.Ik({itemId:Mt.Yj().nullish(),reasoningEncryptedContent:Mt.Yj().nullish()});function Bo({finishReason:e,hasFunctionCall:t}){switch(e){case void 0:case null:return t?"tool-calls":"stop";case"max_output_tokens":return"length";case"content_filter":return"content-filter";default:return t?"tool-calls":"other"}}var Uo=Et((()=>bt(Mt.KC([Mt.Ik({type:Mt.eu("response.output_text.delta"),item_id:Mt.Yj(),delta:Mt.Yj(),logprobs:Mt.YO(Mt.Ik({token:Mt.Yj(),logprob:Mt.ai(),top_logprobs:Mt.YO(Mt.Ik({token:Mt.Yj(),logprob:Mt.ai()}))})).nullish()}),Mt.Ik({type:Mt.k5(["response.completed","response.incomplete"]),response:Mt.Ik({incomplete_details:Mt.Ik({reason:Mt.Yj()}).nullish(),usage:Mt.Ik({input_tokens:Mt.ai(),input_tokens_details:Mt.Ik({cached_tokens:Mt.ai().nullish()}).nullish(),output_tokens:Mt.ai(),output_tokens_details:Mt.Ik({reasoning_tokens:Mt.ai().nullish()}).nullish()}),service_tier:Mt.Yj().nullish()})}),Mt.Ik({type:Mt.eu("response.created"),response:Mt.Ik({id:Mt.Yj(),created_at:Mt.ai(),model:Mt.Yj(),service_tier:Mt.Yj().nullish()})}),Mt.Ik({type:Mt.eu("response.output_item.added"),output_index:Mt.ai(),item:Mt.gM("type",[Mt.Ik({type:Mt.eu("message"),id:Mt.Yj()}),Mt.Ik({type:Mt.eu("reasoning"),id:Mt.Yj(),encrypted_content:Mt.Yj().nullish()}),Mt.Ik({type:Mt.eu("function_call"),id:Mt.Yj(),call_id:Mt.Yj(),name:Mt.Yj(),arguments:Mt.Yj()}),Mt.Ik({type:Mt.eu("web_search_call"),id:Mt.Yj(),status:Mt.Yj()}),Mt.Ik({type:Mt.eu("computer_call"),id:Mt.Yj(),status:Mt.Yj()}),Mt.Ik({type:Mt.eu("file_search_call"),id:Mt.Yj()}),Mt.Ik({type:Mt.eu("image_generation_call"),id:Mt.Yj()}),Mt.Ik({type:Mt.eu("code_interpreter_call"),id:Mt.Yj(),container_id:Mt.Yj(),code:Mt.Yj().nullable(),outputs:Mt.YO(Mt.gM("type",[Mt.Ik({type:Mt.eu("logs"),logs:Mt.Yj()}),Mt.Ik({type:Mt.eu("image"),url:Mt.Yj()})])).nullable(),status:Mt.Yj()}),Mt.Ik({type:Mt.eu("mcp_call"),id:Mt.Yj(),status:Mt.Yj(),approval_request_id:Mt.Yj().nullish()}),Mt.Ik({type:Mt.eu("mcp_list_tools"),id:Mt.Yj()}),Mt.Ik({type:Mt.eu("mcp_approval_request"),id:Mt.Yj()}),Mt.Ik({type:Mt.eu("apply_patch_call"),id:Mt.Yj(),call_id:Mt.Yj(),status:Mt.k5(["in_progress","completed"]),operation:Mt.gM("type",[Mt.Ik({type:Mt.eu("create_file"),path:Mt.Yj(),diff:Mt.Yj()}),Mt.Ik({type:Mt.eu("delete_file"),path:Mt.Yj()}),Mt.Ik({type:Mt.eu("update_file"),path:Mt.Yj(),diff:Mt.Yj()})])}),Mt.Ik({type:Mt.eu("shell_call"),id:Mt.Yj(),call_id:Mt.Yj(),status:Mt.k5(["in_progress","completed","incomplete"]),action:Mt.Ik({commands:Mt.YO(Mt.Yj())})})])}),Mt.Ik({type:Mt.eu("response.output_item.done"),output_index:Mt.ai(),item:Mt.gM("type",[Mt.Ik({type:Mt.eu("message"),id:Mt.Yj()}),Mt.Ik({type:Mt.eu("reasoning"),id:Mt.Yj(),encrypted_content:Mt.Yj().nullish()}),Mt.Ik({type:Mt.eu("function_call"),id:Mt.Yj(),call_id:Mt.Yj(),name:Mt.Yj(),arguments:Mt.Yj(),status:Mt.eu("completed")}),Mt.Ik({type:Mt.eu("code_interpreter_call"),id:Mt.Yj(),code:Mt.Yj().nullable(),container_id:Mt.Yj(),outputs:Mt.YO(Mt.gM("type",[Mt.Ik({type:Mt.eu("logs"),logs:Mt.Yj()}),Mt.Ik({type:Mt.eu("image"),url:Mt.Yj()})])).nullable()}),Mt.Ik({type:Mt.eu("image_generation_call"),id:Mt.Yj(),result:Mt.Yj()}),Mt.Ik({type:Mt.eu("web_search_call"),id:Mt.Yj(),status:Mt.Yj(),action:Mt.gM("type",[Mt.Ik({type:Mt.eu("search"),query:Mt.Yj().nullish(),sources:Mt.YO(Mt.gM("type",[Mt.Ik({type:Mt.eu("url"),url:Mt.Yj()}),Mt.Ik({type:Mt.eu("api"),name:Mt.Yj()})])).nullish()}),Mt.Ik({type:Mt.eu("open_page"),url:Mt.Yj().nullish()}),Mt.Ik({type:Mt.eu("find_in_page"),url:Mt.Yj().nullish(),pattern:Mt.Yj().nullish()})])}),Mt.Ik({type:Mt.eu("file_search_call"),id:Mt.Yj(),queries:Mt.YO(Mt.Yj()),results:Mt.YO(Mt.Ik({attributes:Mt.g1(Mt.Yj(),Mt.KC([Mt.Yj(),Mt.ai(),Mt.zM()])),file_id:Mt.Yj(),filename:Mt.Yj(),score:Mt.ai(),text:Mt.Yj()})).nullish()}),Mt.Ik({type:Mt.eu("local_shell_call"),id:Mt.Yj(),call_id:Mt.Yj(),action:Mt.Ik({type:Mt.eu("exec"),command:Mt.YO(Mt.Yj()),timeout_ms:Mt.ai().optional(),user:Mt.Yj().optional(),working_directory:Mt.Yj().optional(),env:Mt.g1(Mt.Yj(),Mt.Yj()).optional()})}),Mt.Ik({type:Mt.eu("computer_call"),id:Mt.Yj(),status:Mt.eu("completed")}),Mt.Ik({type:Mt.eu("mcp_call"),id:Mt.Yj(),status:Mt.Yj(),arguments:Mt.Yj(),name:Mt.Yj(),server_label:Mt.Yj(),output:Mt.Yj().nullish(),error:Mt.KC([Mt.Yj(),Mt.Ik({type:Mt.Yj().optional(),code:Mt.KC([Mt.ai(),Mt.Yj()]).optional(),message:Mt.Yj().optional()}).loose()]).nullish(),approval_request_id:Mt.Yj().nullish()}),Mt.Ik({type:Mt.eu("mcp_list_tools"),id:Mt.Yj(),server_label:Mt.Yj(),tools:Mt.YO(Mt.Ik({name:Mt.Yj(),description:Mt.Yj().optional(),input_schema:Mt.bz(),annotations:Mt.g1(Mt.Yj(),Mt.L5()).optional()})),error:Mt.KC([Mt.Yj(),Mt.Ik({type:Mt.Yj().optional(),code:Mt.KC([Mt.ai(),Mt.Yj()]).optional(),message:Mt.Yj().optional()}).loose()]).optional()}),Mt.Ik({type:Mt.eu("mcp_approval_request"),id:Mt.Yj(),server_label:Mt.Yj(),name:Mt.Yj(),arguments:Mt.Yj(),approval_request_id:Mt.Yj().optional()}),Mt.Ik({type:Mt.eu("apply_patch_call"),id:Mt.Yj(),call_id:Mt.Yj(),status:Mt.k5(["in_progress","completed"]),operation:Mt.gM("type",[Mt.Ik({type:Mt.eu("create_file"),path:Mt.Yj(),diff:Mt.Yj()}),Mt.Ik({type:Mt.eu("delete_file"),path:Mt.Yj()}),Mt.Ik({type:Mt.eu("update_file"),path:Mt.Yj(),diff:Mt.Yj()})])}),Mt.Ik({type:Mt.eu("shell_call"),id:Mt.Yj(),call_id:Mt.Yj(),status:Mt.k5(["in_progress","completed","incomplete"]),action:Mt.Ik({commands:Mt.YO(Mt.Yj())})})])}),Mt.Ik({type:Mt.eu("response.function_call_arguments.delta"),item_id:Mt.Yj(),output_index:Mt.ai(),delta:Mt.Yj()}),Mt.Ik({type:Mt.eu("response.image_generation_call.partial_image"),item_id:Mt.Yj(),output_index:Mt.ai(),partial_image_b64:Mt.Yj()}),Mt.Ik({type:Mt.eu("response.code_interpreter_call_code.delta"),item_id:Mt.Yj(),output_index:Mt.ai(),delta:Mt.Yj()}),Mt.Ik({type:Mt.eu("response.code_interpreter_call_code.done"),item_id:Mt.Yj(),output_index:Mt.ai(),code:Mt.Yj()}),Mt.Ik({type:Mt.eu("response.output_text.annotation.added"),annotation:Mt.gM("type",[Mt.Ik({type:Mt.eu("url_citation"),start_index:Mt.ai(),end_index:Mt.ai(),url:Mt.Yj(),title:Mt.Yj()}),Mt.Ik({type:Mt.eu("file_citation"),file_id:Mt.Yj(),filename:Mt.Yj(),index:Mt.ai()}),Mt.Ik({type:Mt.eu("container_file_citation"),container_id:Mt.Yj(),file_id:Mt.Yj(),filename:Mt.Yj(),start_index:Mt.ai(),end_index:Mt.ai()}),Mt.Ik({type:Mt.eu("file_path"),file_id:Mt.Yj(),index:Mt.ai()})])}),Mt.Ik({type:Mt.eu("response.reasoning_summary_part.added"),item_id:Mt.Yj(),summary_index:Mt.ai()}),Mt.Ik({type:Mt.eu("response.reasoning_summary_text.delta"),item_id:Mt.Yj(),summary_index:Mt.ai(),delta:Mt.Yj()}),Mt.Ik({type:Mt.eu("response.reasoning_summary_part.done"),item_id:Mt.Yj(),summary_index:Mt.ai()}),Mt.Ik({type:Mt.eu("response.apply_patch_call_operation_diff.delta"),item_id:Mt.Yj(),output_index:Mt.ai(),delta:Mt.Yj(),obfuscation:Mt.Yj().nullish()}),Mt.Ik({type:Mt.eu("response.apply_patch_call_operation_diff.done"),item_id:Mt.Yj(),output_index:Mt.ai(),diff:Mt.Yj()}),Mt.Ik({type:Mt.eu("error"),sequence_number:Mt.ai(),error:Mt.Ik({type:Mt.Yj(),code:Mt.Yj(),message:Mt.Yj(),param:Mt.Yj().nullish()})}),Mt.Ik({type:Mt.Yj()}).loose().transform((e=>({type:"unknown_chunk",message:e.type})))])))),Yo=Et((()=>bt(Mt.Ik({id:Mt.Yj().optional(),created_at:Mt.ai().optional(),error:Mt.Ik({message:Mt.Yj(),type:Mt.Yj(),param:Mt.Yj().nullish(),code:Mt.Yj()}).nullish(),model:Mt.Yj().optional(),output:Mt.YO(Mt.gM("type",[Mt.Ik({type:Mt.eu("message"),role:Mt.eu("assistant"),id:Mt.Yj(),content:Mt.YO(Mt.Ik({type:Mt.eu("output_text"),text:Mt.Yj(),logprobs:Mt.YO(Mt.Ik({token:Mt.Yj(),logprob:Mt.ai(),top_logprobs:Mt.YO(Mt.Ik({token:Mt.Yj(),logprob:Mt.ai()}))})).nullish(),annotations:Mt.YO(Mt.gM("type",[Mt.Ik({type:Mt.eu("url_citation"),start_index:Mt.ai(),end_index:Mt.ai(),url:Mt.Yj(),title:Mt.Yj()}),Mt.Ik({type:Mt.eu("file_citation"),file_id:Mt.Yj(),filename:Mt.Yj(),index:Mt.ai()}),Mt.Ik({type:Mt.eu("container_file_citation"),container_id:Mt.Yj(),file_id:Mt.Yj(),filename:Mt.Yj(),start_index:Mt.ai(),end_index:Mt.ai()}),Mt.Ik({type:Mt.eu("file_path"),file_id:Mt.Yj(),index:Mt.ai()})]))}))}),Mt.Ik({type:Mt.eu("web_search_call"),id:Mt.Yj(),status:Mt.Yj(),action:Mt.gM("type",[Mt.Ik({type:Mt.eu("search"),query:Mt.Yj().nullish(),sources:Mt.YO(Mt.gM("type",[Mt.Ik({type:Mt.eu("url"),url:Mt.Yj()}),Mt.Ik({type:Mt.eu("api"),name:Mt.Yj()})])).nullish()}),Mt.Ik({type:Mt.eu("open_page"),url:Mt.Yj().nullish()}),Mt.Ik({type:Mt.eu("find_in_page"),url:Mt.Yj().nullish(),pattern:Mt.Yj().nullish()})])}),Mt.Ik({type:Mt.eu("file_search_call"),id:Mt.Yj(),queries:Mt.YO(Mt.Yj()),results:Mt.YO(Mt.Ik({attributes:Mt.g1(Mt.Yj(),Mt.KC([Mt.Yj(),Mt.ai(),Mt.zM()])),file_id:Mt.Yj(),filename:Mt.Yj(),score:Mt.ai(),text:Mt.Yj()})).nullish()}),Mt.Ik({type:Mt.eu("code_interpreter_call"),id:Mt.Yj(),code:Mt.Yj().nullable(),container_id:Mt.Yj(),outputs:Mt.YO(Mt.gM("type",[Mt.Ik({type:Mt.eu("logs"),logs:Mt.Yj()}),Mt.Ik({type:Mt.eu("image"),url:Mt.Yj()})])).nullable()}),Mt.Ik({type:Mt.eu("image_generation_call"),id:Mt.Yj(),result:Mt.Yj()}),Mt.Ik({type:Mt.eu("local_shell_call"),id:Mt.Yj(),call_id:Mt.Yj(),action:Mt.Ik({type:Mt.eu("exec"),command:Mt.YO(Mt.Yj()),timeout_ms:Mt.ai().optional(),user:Mt.Yj().optional(),working_directory:Mt.Yj().optional(),env:Mt.g1(Mt.Yj(),Mt.Yj()).optional()})}),Mt.Ik({type:Mt.eu("function_call"),call_id:Mt.Yj(),name:Mt.Yj(),arguments:Mt.Yj(),id:Mt.Yj()}),Mt.Ik({type:Mt.eu("computer_call"),id:Mt.Yj(),status:Mt.Yj().optional()}),Mt.Ik({type:Mt.eu("reasoning"),id:Mt.Yj(),encrypted_content:Mt.Yj().nullish(),summary:Mt.YO(Mt.Ik({type:Mt.eu("summary_text"),text:Mt.Yj()}))}),Mt.Ik({type:Mt.eu("mcp_call"),id:Mt.Yj(),status:Mt.Yj(),arguments:Mt.Yj(),name:Mt.Yj(),server_label:Mt.Yj(),output:Mt.Yj().nullish(),error:Mt.KC([Mt.Yj(),Mt.Ik({type:Mt.Yj().optional(),code:Mt.KC([Mt.ai(),Mt.Yj()]).optional(),message:Mt.Yj().optional()}).loose()]).nullish(),approval_request_id:Mt.Yj().nullish()}),Mt.Ik({type:Mt.eu("mcp_list_tools"),id:Mt.Yj(),server_label:Mt.Yj(),tools:Mt.YO(Mt.Ik({name:Mt.Yj(),description:Mt.Yj().optional(),input_schema:Mt.bz(),annotations:Mt.g1(Mt.Yj(),Mt.L5()).optional()})),error:Mt.KC([Mt.Yj(),Mt.Ik({type:Mt.Yj().optional(),code:Mt.KC([Mt.ai(),Mt.Yj()]).optional(),message:Mt.Yj().optional()}).loose()]).optional()}),Mt.Ik({type:Mt.eu("mcp_approval_request"),id:Mt.Yj(),server_label:Mt.Yj(),name:Mt.Yj(),arguments:Mt.Yj(),approval_request_id:Mt.Yj().optional()}),Mt.Ik({type:Mt.eu("apply_patch_call"),id:Mt.Yj(),call_id:Mt.Yj(),status:Mt.k5(["in_progress","completed"]),operation:Mt.gM("type",[Mt.Ik({type:Mt.eu("create_file"),path:Mt.Yj(),diff:Mt.Yj()}),Mt.Ik({type:Mt.eu("delete_file"),path:Mt.Yj()}),Mt.Ik({type:Mt.eu("update_file"),path:Mt.Yj(),diff:Mt.Yj()})])}),Mt.Ik({type:Mt.eu("shell_call"),id:Mt.Yj(),call_id:Mt.Yj(),status:Mt.k5(["in_progress","completed","incomplete"]),action:Mt.Ik({commands:Mt.YO(Mt.Yj())})})])).optional(),service_tier:Mt.Yj().nullish(),incomplete_details:Mt.Ik({reason:Mt.Yj()}).nullish(),usage:Mt.Ik({input_tokens:Mt.ai(),input_tokens_details:Mt.Ik({cached_tokens:Mt.ai().nullish()}).nullish(),output_tokens:Mt.ai(),output_tokens_details:Mt.Ik({reasoning_tokens:Mt.ai().nullish()}).nullish()}).optional()})))),zo=Et((()=>bt(Mt.Ik({conversation:Mt.Yj().nullish(),include:Mt.YO(Mt.k5(["reasoning.encrypted_content","file_search_call.results","message.output_text.logprobs"])).nullish(),instructions:Mt.Yj().nullish(),logprobs:Mt.KC([Mt.zM(),Mt.ai().min(1).max(20)]).optional(),maxToolCalls:Mt.ai().nullish(),metadata:Mt.bz().nullish(),parallelToolCalls:Mt.zM().nullish(),previousResponseId:Mt.Yj().nullish(),promptCacheKey:Mt.Yj().nullish(),promptCacheRetention:Mt.k5(["in_memory","24h"]).nullish(),reasoningEffort:Mt.Yj().nullish(),reasoningSummary:Mt.Yj().nullish(),safetyIdentifier:Mt.Yj().nullish(),serviceTier:Mt.k5(["auto","flex","priority","default"]).nullish(),store:Mt.zM().nullish(),strictJsonSchema:Mt.zM().nullish(),textVerbosity:Mt.k5(["low","medium","high"]).nullish(),truncation:Mt.k5(["auto","disabled"]).nullish(),user:Mt.Yj().nullish(),systemMessageMode:Mt.k5(["system","developer","remove"]).optional(),forceReasoning:Mt.zM().optional()}))));function qo(e){var t,o;const i={};for(const n of e)if("assistant"===n.role)for(const e of n.content){if("tool-call"!==e.type)continue;const n=null==(o=null==(t=e.providerOptions)?void 0:t.openai)?void 0:o.approvalRequestId;null!=n&&(i[n]=e.toolCallId)}return i}var Ko=class{constructor(e,t){this.specificationVersion="v3",this.supportedUrls={"image/*":[/^https?:\/\/.*$/],"application/pdf":[/^https?:\/\/.*$/]},this.modelId=e,this.config=t}get provider(){return this.config.provider}async getArgs({maxOutputTokens:e,temperature:t,stopSequences:o,topP:i,topK:n,presencePenalty:r,frequencyPenalty:s,seed:a,prompt:l,providerOptions:p,tools:u,toolChoice:c,responseFormat:d}){var h,f,g,m,y,v;const C=[],w=jt(this.modelId);null!=n&&C.push({type:"unsupported",feature:"topK"}),null!=a&&C.push({type:"unsupported",feature:"seed"}),null!=r&&C.push({type:"unsupported",feature:"presencePenalty"}),null!=s&&C.push({type:"unsupported",feature:"frequencyPenalty"}),null!=o&&C.push({type:"unsupported",feature:"stopSequences"});const E=this.config.provider.includes("azure")?"azure":"openai";let _=await Tt({provider:E,providerOptions:p,schema:zo});null==_&&"openai"!==E&&(_=await Tt({provider:"openai",providerOptions:p,schema:zo}));const b=null!=(h=null==_?void 0:_.forceReasoning)?h:w.isReasoningModel;(null==_?void 0:_.conversation)&&(null==_?void 0:_.previousResponseId)&&C.push({type:"unsupported",feature:"conversation",details:"conversation and previousResponseId cannot be used together"});const R=function({tools:e=[],providerToolNames:t}){const o={},i={};for(const n of e)if("provider"===n.type&&n.id in t){const e=t[n.id];o[n.name]=e,i[e]=n.name}return{toProviderToolName:e=>{var t;return null!=(t=o[e])?t:e},toCustomToolName:e=>{var t;return null!=(t=i[e])?t:e}}}({tools:u,providerToolNames:{"openai.code_interpreter":"code_interpreter","openai.file_search":"file_search","openai.image_generation":"image_generation","openai.local_shell":"local_shell","openai.shell":"shell","openai.web_search":"web_search","openai.web_search_preview":"web_search_preview","openai.mcp":"mcp","openai.apply_patch":"apply_patch"}}),{input:O,warnings:S}=await async function({prompt:e,toolNameMapping:t,systemMessageMode:o,providerOptionsName:i,fileIdPrefixes:n,store:r,hasLocalShellTool:s=!1,hasShellTool:a=!1,hasApplyPatchTool:l=!1}){var p,u,c,d,h,f,g,m,y,v,C,w,E;const _=[],b=[],R=new Set;for(const{role:O,content:S}of e)switch(O){case"system":switch(o){case"system":_.push({role:"system",content:S});break;case"developer":_.push({role:"developer",content:S});break;case"remove":b.push({type:"other",message:"system messages are removed for this model"});break;default:throw new Error(`Unsupported system message mode: ${o}`)}break;case"user":_.push({role:"user",content:S.map(((e,t)=>{var o,r,s;switch(e.type){case"text":return{type:"input_text",text:e.text};case"file":if(e.mediaType.startsWith("image/")){const t="image/*"===e.mediaType?"image/jpeg":e.mediaType;return{type:"input_image",...e.data instanceof Vt?{image_url:e.data.toString()}:"string"==typeof e.data&&Ho(e.data,n)?{file_id:e.data}:{image_url:`data:${t};base64,${De(e.data)}`},detail:null==(r=null==(o=e.providerOptions)?void 0:o[i])?void 0:r.imageDetail}}if("application/pdf"===e.mediaType)return e.data instanceof Vt?{type:"input_file",file_url:e.data.toString()}:{type:"input_file",..."string"==typeof e.data&&Ho(e.data,n)?{file_id:e.data}:{filename:null!=(s=e.filename)?s:`part-${t}.pdf`,file_data:`data:application/pdf;base64,${De(e.data)}`}};throw new Ce({functionality:`file part media type ${e.mediaType}`})}}))});break;case"assistant":{const e={};for(const o of S)switch(o.type){case"text":{const e=null==(u=null==(p=o.providerOptions)?void 0:p[i])?void 0:u.itemId;if(r&&null!=e){_.push({type:"item_reference",id:e});break}_.push({role:"assistant",content:[{type:"output_text",text:o.text}],id:e});break}case"tool-call":{const e=null!=(g=null==(d=null==(c=o.providerOptions)?void 0:c[i])?void 0:d.itemId)?g:null==(f=null==(h=o.providerMetadata)?void 0:h[i])?void 0:f.itemId;if(o.providerExecuted){r&&null!=e&&_.push({type:"item_reference",id:e});break}if(r&&null!=e){_.push({type:"item_reference",id:e});break}const n=t.toProviderToolName(o.toolName);if(s&&"local_shell"===n){const t=await Rt({value:o.input,schema:So});_.push({type:"local_shell_call",call_id:o.toolCallId,id:e,action:{type:"exec",command:t.action.command,timeout_ms:t.action.timeoutMs,user:t.action.user,working_directory:t.action.workingDirectory,env:t.action.env}});break}if(a&&"shell"===n){const t=await Rt({value:o.input,schema:To});_.push({type:"shell_call",call_id:o.toolCallId,id:e,status:"completed",action:{commands:t.action.commands,timeout_ms:t.action.timeoutMs,max_output_length:t.action.maxOutputLength}});break}_.push({type:"function_call",call_id:o.toolCallId,name:n,arguments:JSON.stringify(o.input),id:e});break}case"tool-result":if("execution-denied"===o.output.type||"json"===o.output.type&&"object"==typeof o.output.value&&null!=o.output.value&&"type"in o.output.value&&"execution-denied"===o.output.value.type)break;if(r){const e=null!=(v=null==(y=null==(m=o.providerMetadata)?void 0:m[i])?void 0:y.itemId)?v:o.toolCallId;_.push({type:"item_reference",id:e})}else b.push({type:"other",message:`Results for OpenAI tool ${o.toolName} are not sent to the API when store is false`});break;case"reasoning":{const t=await Tt({provider:i,providerOptions:o.providerOptions,schema:jo}),n=null==t?void 0:t.itemId;if(null!=n){const i=e[n];if(r)void 0===i&&(_.push({type:"item_reference",id:n}),e[n]={type:"reasoning",id:n,summary:[]});else{const r=[];o.text.length>0?r.push({type:"summary_text",text:o.text}):void 0!==i&&b.push({type:"other",message:`Cannot append empty reasoning part to existing reasoning sequence. Skipping reasoning part: ${JSON.stringify(o)}.`}),void 0===i?(e[n]={type:"reasoning",id:n,encrypted_content:null==t?void 0:t.reasoningEncryptedContent,summary:r},_.push(e[n])):(i.summary.push(...r),null!=(null==t?void 0:t.reasoningEncryptedContent)&&(i.encrypted_content=t.reasoningEncryptedContent))}}else b.push({type:"other",message:`Non-OpenAI reasoning parts are not supported. Skipping reasoning part: ${JSON.stringify(o)}.`});break}}break}case"tool":for(const e of S){if("tool-approval-response"===e.type){const t=e;if(R.has(t.approvalId))continue;R.add(t.approvalId),r&&_.push({type:"item_reference",id:t.approvalId}),_.push({type:"mcp_approval_response",approval_request_id:t.approvalId,approve:t.approved});continue}const o=e.output;if("execution-denied"===o.type&&(null==(w=null==(C=o.providerOptions)?void 0:C.openai)?void 0:w.approvalId))continue;const i=t.toProviderToolName(e.toolName);if(s&&"local_shell"===i&&"json"===o.type){const t=await Rt({value:o.value,schema:Ao});_.push({type:"local_shell_call_output",call_id:e.toolCallId,output:t.output});continue}if(a&&"shell"===i&&"json"===o.type){const t=await Rt({value:o.value,schema:Do});_.push({type:"shell_call_output",call_id:e.toolCallId,output:t.output.map((e=>({stdout:e.stdout,stderr:e.stderr,outcome:"timeout"===e.outcome.type?{type:"timeout"}:{type:"exit",exit_code:e.outcome.exitCode}})))});continue}if(l&&"apply_patch"===e.toolName&&"json"===o.type){const t=await Rt({value:o.value,schema:ho});_.push({type:"apply_patch_call_output",call_id:e.toolCallId,status:t.status,output:t.output});continue}let n;switch(o.type){case"text":case"error-text":n=o.value;break;case"execution-denied":n=null!=(E=o.reason)?E:"Tool execution denied.";break;case"json":case"error-json":n=JSON.stringify(o.value);break;case"content":n=o.value.map((e=>{var t;switch(e.type){case"text":return{type:"input_text",text:e.text};case"image-data":return{type:"input_image",image_url:`data:${e.mediaType};base64,${e.data}`};case"image-url":return{type:"input_image",image_url:e.url};case"file-data":return{type:"input_file",filename:null!=(t=e.filename)?t:"data",file_data:`data:${e.mediaType};base64,${e.data}`};default:return void b.push({type:"other",message:`unsupported tool content part type: ${e.type}`})}})).filter(Ue)}_.push({type:"function_call_output",call_id:e.toolCallId,output:n})}break;default:throw new Error(`Unsupported role: ${O}`)}return{input:_,warnings:b}}({prompt:l,toolNameMapping:R,systemMessageMode:null!=(f=null==_?void 0:_.systemMessageMode)?f:b?"developer":w.systemMessageMode,providerOptionsName:E,fileIdPrefixes:this.config.fileIdPrefixes,store:null==(g=null==_?void 0:_.store)||g,hasLocalShellTool:D("openai.local_shell"),hasShellTool:D("openai.shell"),hasApplyPatchTool:D("openai.apply_patch")});C.push(...S);const A=null==(m=null==_?void 0:_.strictJsonSchema)||m;let P=null==_?void 0:_.include;function T(e){null==P?P=[e]:P.includes(e)||(P=[...P,e])}function D(e){return null!=(null==u?void 0:u.find((t=>"provider"===t.type&&t.id===e)))}const N="number"==typeof(null==_?void 0:_.logprobs)?null==_?void 0:_.logprobs:!0===(null==_?void 0:_.logprobs)?20:void 0;N&&T("message.output_text.logprobs");const x=null==(y=null==u?void 0:u.find((e=>"provider"===e.type&&("openai.web_search"===e.id||"openai.web_search_preview"===e.id))))?void 0:y.name;x&&T("web_search_call.action.sources"),D("openai.code_interpreter")&&T("code_interpreter_call.outputs");const I=null==_?void 0:_.store;!1===I&&b&&T("reasoning.encrypted_content");const F={model:this.modelId,input:O,temperature:t,top_p:i,max_output_tokens:e,...("json"===(null==d?void 0:d.type)||(null==_?void 0:_.textVerbosity))&&{text:{..."json"===(null==d?void 0:d.type)&&{format:null!=d.schema?{type:"json_schema",strict:A,name:null!=(v=d.name)?v:"response",description:d.description,schema:d.schema}:{type:"json_object"}},...(null==_?void 0:_.textVerbosity)&&{verbosity:_.textVerbosity}}},conversation:null==_?void 0:_.conversation,max_tool_calls:null==_?void 0:_.maxToolCalls,metadata:null==_?void 0:_.metadata,parallel_tool_calls:null==_?void 0:_.parallelToolCalls,previous_response_id:null==_?void 0:_.previousResponseId,store:I,user:null==_?void 0:_.user,instructions:null==_?void 0:_.instructions,service_tier:null==_?void 0:_.serviceTier,include:P,prompt_cache_key:null==_?void 0:_.promptCacheKey,prompt_cache_retention:null==_?void 0:_.promptCacheRetention,safety_identifier:null==_?void 0:_.safetyIdentifier,top_logprobs:N,truncation:null==_?void 0:_.truncation,...b&&(null!=(null==_?void 0:_.reasoningEffort)||null!=(null==_?void 0:_.reasoningSummary))&&{reasoning:{...null!=(null==_?void 0:_.reasoningEffort)&&{effort:_.reasoningEffort},...null!=(null==_?void 0:_.reasoningSummary)&&{summary:_.reasoningSummary}}}};b?"none"===(null==_?void 0:_.reasoningEffort)&&w.supportsNonReasoningParameters||(null!=F.temperature&&(F.temperature=void 0,C.push({type:"unsupported",feature:"temperature",details:"temperature is not supported for reasoning models"})),null!=F.top_p&&(F.top_p=void 0,C.push({type:"unsupported",feature:"topP",details:"topP is not supported for reasoning models"}))):(null!=(null==_?void 0:_.reasoningEffort)&&C.push({type:"unsupported",feature:"reasoningEffort",details:"reasoningEffort is not supported for non-reasoning models"}),null!=(null==_?void 0:_.reasoningSummary)&&C.push({type:"unsupported",feature:"reasoningSummary",details:"reasoningSummary is not supported for non-reasoning models"})),"flex"!==(null==_?void 0:_.serviceTier)||w.supportsFlexProcessing||(C.push({type:"unsupported",feature:"serviceTier",details:"flex processing is only available for o3, o4-mini, and gpt-5 models"}),delete F.service_tier),"priority"!==(null==_?void 0:_.serviceTier)||w.supportsPriorityProcessing||(C.push({type:"unsupported",feature:"serviceTier",details:"priority processing is only available for supported models (gpt-4, gpt-5, gpt-5-mini, o3, o4-mini) and requires Enterprise access. gpt-5-nano is not supported"}),delete F.service_tier);const{tools:L,toolChoice:k,toolWarnings:M}=await async function({tools:e,toolChoice:t}){const o=[];if(null==(e=(null==e?void 0:e.length)?e:void 0))return{tools:void 0,toolChoice:void 0,toolWarnings:o};const i=[];for(const t of e)switch(t.type){case"function":i.push({type:"function",name:t.name,description:t.description,parameters:t.inputSchema,...null!=t.strict?{strict:t.strict}:{}});break;case"provider":switch(t.id){case"openai.file_search":{const e=await Rt({value:t.args,schema:Eo});i.push({type:"file_search",vector_store_ids:e.vectorStoreIds,max_num_results:e.maxNumResults,ranking_options:e.ranking?{ranker:e.ranking.ranker,score_threshold:e.ranking.scoreThreshold}:void 0,filters:e.filters});break}case"openai.local_shell":i.push({type:"local_shell"});break;case"openai.shell":i.push({type:"shell"});break;case"openai.apply_patch":i.push({type:"apply_patch"});break;case"openai.web_search_preview":{const e=await Rt({value:t.args,schema:Fo});i.push({type:"web_search_preview",search_context_size:e.searchContextSize,user_location:e.userLocation});break}case"openai.web_search":{const e=await Rt({value:t.args,schema:xo});i.push({type:"web_search",filters:null!=e.filters?{allowed_domains:e.filters.allowedDomains}:void 0,external_web_access:e.externalWebAccess,search_context_size:e.searchContextSize,user_location:e.userLocation});break}case"openai.code_interpreter":{const e=await Rt({value:t.args,schema:yo});i.push({type:"code_interpreter",container:null==e.container?{type:"auto",file_ids:void 0}:"string"==typeof e.container?e.container:{type:"auto",file_ids:e.container.fileIds}});break}case"openai.image_generation":{const e=await Rt({value:t.args,schema:Ro});i.push({type:"image_generation",background:e.background,input_fidelity:e.inputFidelity,input_image_mask:e.inputImageMask?{file_id:e.inputImageMask.fileId,image_url:e.inputImageMask.imageUrl}:void 0,model:e.model,moderation:e.moderation,partial_images:e.partialImages,quality:e.quality,output_compression:e.outputCompression,output_format:e.outputFormat,size:e.size});break}case"openai.mcp":{const e=await Rt({value:t.args,schema:Mo}),o=e=>({tool_names:e.toolNames}),n=e.requireApproval,r=null==n?void 0:"string"==typeof n?n:null!=n.never?{never:o(n.never)}:void 0;i.push({type:"mcp",server_label:e.serverLabel,allowed_tools:Array.isArray(e.allowedTools)?e.allowedTools:e.allowedTools?{read_only:e.allowedTools.readOnly,tool_names:e.allowedTools.toolNames}:void 0,authorization:e.authorization,connector_id:e.connectorId,headers:e.headers,require_approval:null!=r?r:"never",server_description:e.serverDescription,server_url:e.serverUrl});break}}break;default:o.push({type:"unsupported",feature:`function tool ${t}`})}if(null==t)return{tools:i,toolChoice:void 0,toolWarnings:o};const n=t.type;switch(n){case"auto":case"none":case"required":return{tools:i,toolChoice:n,toolWarnings:o};case"tool":return{tools:i,toolChoice:"code_interpreter"===t.toolName||"file_search"===t.toolName||"image_generation"===t.toolName||"web_search_preview"===t.toolName||"web_search"===t.toolName||"mcp"===t.toolName||"apply_patch"===t.toolName?{type:t.toolName}:{type:"function",name:t.toolName},toolWarnings:o};default:throw new Ce({functionality:`tool choice type: ${n}`})}}({tools:u,toolChoice:c});return{webSearchToolName:x,args:{...F,tools:L,tool_choice:k},warnings:[...C,...M],store:I,toolNameMapping:R,providerOptionsName:E}}async doGenerate(e){var t,o,i,n,r,s,a,l,p,u,c,d,h,f,m,y,v,C,w,E,_,b,R,O,S;const{args:A,warnings:P,webSearchToolName:T,toolNameMapping:D,providerOptionsName:N}=await this.getArgs(e),x=this.config.url({path:"/responses",modelId:this.modelId}),I=qo(e.prompt),{responseHeaders:F,value:L,rawValue:k}=await Nt({url:x,headers:Oe(this.config.headers(),e.headers),body:A,failedResponseHandler:Ht,successfulResponseHandler:kt(Yo),abortSignal:e.abortSignal,fetch:this.config.fetch});if(L.error)throw new g({message:L.error.message,url:x,requestBodyValues:A,statusCode:400,responseHeaders:F,responseBody:k,isRetryable:!1});const M=[],G=[];let V=!1;for(const g of L.output)switch(g.type){case"reasoning":0===g.summary.length&&g.summary.push({type:"summary_text",text:""});for(const e of g.summary)M.push({type:"reasoning",text:e.text,providerMetadata:{[N]:{itemId:g.id,reasoningEncryptedContent:null!=(t=g.encrypted_content)?t:null}}});break;case"image_generation_call":M.push({type:"tool-call",toolCallId:g.id,toolName:D.toCustomToolName("image_generation"),input:"{}",providerExecuted:!0}),M.push({type:"tool-result",toolCallId:g.id,toolName:D.toCustomToolName("image_generation"),result:{result:g.result}});break;case"local_shell_call":M.push({type:"tool-call",toolCallId:g.call_id,toolName:D.toCustomToolName("local_shell"),input:JSON.stringify({action:g.action}),providerMetadata:{[N]:{itemId:g.id}}});break;case"shell_call":M.push({type:"tool-call",toolCallId:g.call_id,toolName:D.toCustomToolName("shell"),input:JSON.stringify({action:{commands:g.action.commands}}),providerMetadata:{[N]:{itemId:g.id}}});break;case"message":for(const t of g.content){(null==(i=null==(o=e.providerOptions)?void 0:o[N])?void 0:i.logprobs)&&t.logprobs&&G.push(t.logprobs);const y={itemId:g.id,...t.annotations.length>0&&{annotations:t.annotations}};M.push({type:"text",text:t.text,providerMetadata:{[N]:y}});for(const e of t.annotations)"url_citation"===e.type?M.push({type:"source",sourceType:"url",id:null!=(s=null==(r=(n=this.config).generateId)?void 0:r.call(n))?s:Ve(),url:e.url,title:e.title}):"file_citation"===e.type?M.push({type:"source",sourceType:"document",id:null!=(p=null==(l=(a=this.config).generateId)?void 0:l.call(a))?p:Ve(),mediaType:"text/plain",title:e.filename,filename:e.filename,providerMetadata:{[N]:{type:e.type,fileId:e.file_id,index:e.index}}}):"container_file_citation"===e.type?M.push({type:"source",sourceType:"document",id:null!=(d=null==(c=(u=this.config).generateId)?void 0:c.call(u))?d:Ve(),mediaType:"text/plain",title:e.filename,filename:e.filename,providerMetadata:{[N]:{type:e.type,fileId:e.file_id,containerId:e.container_id}}}):"file_path"===e.type&&M.push({type:"source",sourceType:"document",id:null!=(m=null==(f=(h=this.config).generateId)?void 0:f.call(h))?m:Ve(),mediaType:"application/octet-stream",title:e.file_id,filename:e.file_id,providerMetadata:{[N]:{type:e.type,fileId:e.file_id,index:e.index}}})}break;case"function_call":V=!0,M.push({type:"tool-call",toolCallId:g.call_id,toolName:g.name,input:g.arguments,providerMetadata:{[N]:{itemId:g.id}}});break;case"web_search_call":M.push({type:"tool-call",toolCallId:g.id,toolName:D.toCustomToolName(null!=T?T:"web_search"),input:JSON.stringify({}),providerExecuted:!0}),M.push({type:"tool-result",toolCallId:g.id,toolName:D.toCustomToolName(null!=T?T:"web_search"),result:Zo(g.action)});break;case"mcp_call":{const e=null!=g.approval_request_id&&null!=(y=I[g.approval_request_id])?y:g.id,t=`mcp.${g.name}`;M.push({type:"tool-call",toolCallId:e,toolName:t,input:g.arguments,providerExecuted:!0,dynamic:!0}),M.push({type:"tool-result",toolCallId:e,toolName:t,result:{type:"call",serverLabel:g.server_label,name:g.name,arguments:g.arguments,...null!=g.output?{output:g.output}:{},...null!=g.error?{error:g.error}:{}},providerMetadata:{[N]:{itemId:g.id}}});break}case"mcp_list_tools":break;case"mcp_approval_request":{const e=null!=(v=g.approval_request_id)?v:g.id,t=null!=(E=null==(w=(C=this.config).generateId)?void 0:w.call(C))?E:Ve(),o=`mcp.${g.name}`;M.push({type:"tool-call",toolCallId:t,toolName:o,input:g.arguments,providerExecuted:!0,dynamic:!0}),M.push({type:"tool-approval-request",approvalId:e,toolCallId:t});break}case"computer_call":M.push({type:"tool-call",toolCallId:g.id,toolName:D.toCustomToolName("computer_use"),input:"",providerExecuted:!0}),M.push({type:"tool-result",toolCallId:g.id,toolName:D.toCustomToolName("computer_use"),result:{type:"computer_use_tool_result",status:g.status||"completed"}});break;case"file_search_call":M.push({type:"tool-call",toolCallId:g.id,toolName:D.toCustomToolName("file_search"),input:"{}",providerExecuted:!0}),M.push({type:"tool-result",toolCallId:g.id,toolName:D.toCustomToolName("file_search"),result:{queries:g.queries,results:null!=(b=null==(_=g.results)?void 0:_.map((e=>({attributes:e.attributes,fileId:e.file_id,filename:e.filename,score:e.score,text:e.text}))))?b:null}});break;case"code_interpreter_call":M.push({type:"tool-call",toolCallId:g.id,toolName:D.toCustomToolName("code_interpreter"),input:JSON.stringify({code:g.code,containerId:g.container_id}),providerExecuted:!0}),M.push({type:"tool-result",toolCallId:g.id,toolName:D.toCustomToolName("code_interpreter"),result:{outputs:g.outputs}});break;case"apply_patch_call":M.push({type:"tool-call",toolCallId:g.call_id,toolName:D.toCustomToolName("apply_patch"),input:JSON.stringify({callId:g.call_id,operation:g.operation}),providerMetadata:{[N]:{itemId:g.id}}})}const W={[N]:{responseId:L.id}};G.length>0&&(W[N].logprobs=G),"string"==typeof L.service_tier&&(W[N].serviceTier=L.service_tier);const H=L.usage;return{content:M,finishReason:{unified:Bo({finishReason:null==(R=L.incomplete_details)?void 0:R.reason,hasFunctionCall:V}),raw:null!=(S=null==(O=L.incomplete_details)?void 0:O.reason)?S:void 0},usage:Wo(H),request:{body:A},response:{id:L.id,timestamp:new Date(1e3*L.created_at),modelId:L.model,headers:F,body:k},providerMetadata:W,warnings:P}}async doStream(e){const{args:t,warnings:o,webSearchToolName:i,toolNameMapping:n,store:r,providerOptionsName:s}=await this.getArgs(e),{responseHeaders:a,value:l}=await Nt({url:this.config.url({path:"/responses",modelId:this.modelId}),headers:Oe(this.config.headers(),e.headers),body:{...t,stream:!0},failedResponseHandler:Ht,successfulResponseHandler:Lt(Uo),abortSignal:e.abortSignal,fetch:this.config.fetch}),p=this,u=qo(e.prompt),c=new Map;let d,h={unified:"other",raw:void 0};const f=[];let g=null;const m={},y=[];let v=!1;const C={};let w;return{stream:l.pipeThrough(new TransformStream({start(e){e.enqueue({type:"stream-start",warnings:o})},transform(t,o){var a,l,E,_,b,R,O,S,A,P,T,D,N,x,I,F,L,k,M,G,V,W,H,j,B,U,Y,z,q,K;if(e.includeRawChunks&&o.enqueue({type:"raw",rawValue:t.rawValue}),!t.success)return h={unified:"error",raw:void 0},void o.enqueue({type:"error",error:t.error});const $=t.value;if($o($))if("function_call"===$.item.type)m[$.output_index]={toolName:$.item.name,toolCallId:$.item.call_id},o.enqueue({type:"tool-input-start",id:$.item.call_id,toolName:$.item.name});else if("web_search_call"===$.item.type)m[$.output_index]={toolName:n.toCustomToolName(null!=i?i:"web_search"),toolCallId:$.item.id},o.enqueue({type:"tool-input-start",id:$.item.id,toolName:n.toCustomToolName(null!=i?i:"web_search"),providerExecuted:!0}),o.enqueue({type:"tool-input-end",id:$.item.id}),o.enqueue({type:"tool-call",toolCallId:$.item.id,toolName:n.toCustomToolName(null!=i?i:"web_search"),input:JSON.stringify({}),providerExecuted:!0});else if("computer_call"===$.item.type)m[$.output_index]={toolName:n.toCustomToolName("computer_use"),toolCallId:$.item.id},o.enqueue({type:"tool-input-start",id:$.item.id,toolName:n.toCustomToolName("computer_use"),providerExecuted:!0});else if("code_interpreter_call"===$.item.type)m[$.output_index]={toolName:n.toCustomToolName("code_interpreter"),toolCallId:$.item.id,codeInterpreter:{containerId:$.item.container_id}},o.enqueue({type:"tool-input-start",id:$.item.id,toolName:n.toCustomToolName("code_interpreter"),providerExecuted:!0}),o.enqueue({type:"tool-input-delta",id:$.item.id,delta:`{"containerId":"${$.item.container_id}","code":"`});else if("file_search_call"===$.item.type)o.enqueue({type:"tool-call",toolCallId:$.item.id,toolName:n.toCustomToolName("file_search"),input:"{}",providerExecuted:!0});else if("image_generation_call"===$.item.type)o.enqueue({type:"tool-call",toolCallId:$.item.id,toolName:n.toCustomToolName("image_generation"),input:"{}",providerExecuted:!0});else if("mcp_call"===$.item.type||"mcp_list_tools"===$.item.type||"mcp_approval_request"===$.item.type);else if("apply_patch_call"===$.item.type){const{call_id:e,operation:t}=$.item;if(m[$.output_index]={toolName:n.toCustomToolName("apply_patch"),toolCallId:e,applyPatch:{hasDiff:"delete_file"===t.type,endEmitted:"delete_file"===t.type}},o.enqueue({type:"tool-input-start",id:e,toolName:n.toCustomToolName("apply_patch")}),"delete_file"===t.type){const i=JSON.stringify({callId:e,operation:t});o.enqueue({type:"tool-input-delta",id:e,delta:i}),o.enqueue({type:"tool-input-end",id:e})}else o.enqueue({type:"tool-input-delta",id:e,delta:`{"callId":"${Qo(e)}","operation":{"type":"${Qo(t.type)}","path":"${Qo(t.path)}","diff":"`})}else"shell_call"===$.item.type?m[$.output_index]={toolName:n.toCustomToolName("shell"),toolCallId:$.item.call_id}:"message"===$.item.type?(y.splice(0,y.length),o.enqueue({type:"text-start",id:$.item.id,providerMetadata:{[s]:{itemId:$.item.id}}})):$o($)&&"reasoning"===$.item.type&&(C[$.item.id]={encryptedContent:$.item.encrypted_content,summaryParts:{0:"active"}},o.enqueue({type:"reasoning-start",id:`${$.item.id}:0`,providerMetadata:{[s]:{itemId:$.item.id,reasoningEncryptedContent:null!=(a=$.item.encrypted_content)?a:null}}}));else if(function(e){return"response.output_item.done"===e.type}($)){if("message"===$.item.type)o.enqueue({type:"text-end",id:$.item.id,providerMetadata:{[s]:{itemId:$.item.id,...y.length>0&&{annotations:y}}}});else if("function_call"===$.item.type)m[$.output_index]=void 0,v=!0,o.enqueue({type:"tool-input-end",id:$.item.call_id}),o.enqueue({type:"tool-call",toolCallId:$.item.call_id,toolName:$.item.name,input:$.item.arguments,providerMetadata:{[s]:{itemId:$.item.id}}});else if("web_search_call"===$.item.type)m[$.output_index]=void 0,o.enqueue({type:"tool-result",toolCallId:$.item.id,toolName:n.toCustomToolName(null!=i?i:"web_search"),result:Zo($.item.action)});else if("computer_call"===$.item.type)m[$.output_index]=void 0,o.enqueue({type:"tool-input-end",id:$.item.id}),o.enqueue({type:"tool-call",toolCallId:$.item.id,toolName:n.toCustomToolName("computer_use"),input:"",providerExecuted:!0}),o.enqueue({type:"tool-result",toolCallId:$.item.id,toolName:n.toCustomToolName("computer_use"),result:{type:"computer_use_tool_result",status:$.item.status||"completed"}});else if("file_search_call"===$.item.type)m[$.output_index]=void 0,o.enqueue({type:"tool-result",toolCallId:$.item.id,toolName:n.toCustomToolName("file_search"),result:{queries:$.item.queries,results:null!=(E=null==(l=$.item.results)?void 0:l.map((e=>({attributes:e.attributes,fileId:e.file_id,filename:e.filename,score:e.score,text:e.text}))))?E:null}});else if("code_interpreter_call"===$.item.type)m[$.output_index]=void 0,o.enqueue({type:"tool-result",toolCallId:$.item.id,toolName:n.toCustomToolName("code_interpreter"),result:{outputs:$.item.outputs}});else if("image_generation_call"===$.item.type)o.enqueue({type:"tool-result",toolCallId:$.item.id,toolName:n.toCustomToolName("image_generation"),result:{result:$.item.result}});else if("mcp_call"===$.item.type){m[$.output_index]=void 0;const e=null!=(_=$.item.approval_request_id)?_:void 0,t=null!=e&&null!=(R=null!=(b=c.get(e))?b:u[e])?R:$.item.id,i=`mcp.${$.item.name}`;o.enqueue({type:"tool-call",toolCallId:t,toolName:i,input:$.item.arguments,providerExecuted:!0,dynamic:!0}),o.enqueue({type:"tool-result",toolCallId:t,toolName:i,result:{type:"call",serverLabel:$.item.server_label,name:$.item.name,arguments:$.item.arguments,...null!=$.item.output?{output:$.item.output}:{},...null!=$.item.error?{error:$.item.error}:{}},providerMetadata:{[s]:{itemId:$.item.id}}})}else if("mcp_list_tools"===$.item.type)m[$.output_index]=void 0;else if("apply_patch_call"===$.item.type){const e=m[$.output_index];(null==e?void 0:e.applyPatch)&&!e.applyPatch.endEmitted&&"delete_file"!==$.item.operation.type&&(e.applyPatch.hasDiff||o.enqueue({type:"tool-input-delta",id:e.toolCallId,delta:Qo($.item.operation.diff)}),o.enqueue({type:"tool-input-delta",id:e.toolCallId,delta:'"}}'}),o.enqueue({type:"tool-input-end",id:e.toolCallId}),e.applyPatch.endEmitted=!0),e&&"completed"===$.item.status&&o.enqueue({type:"tool-call",toolCallId:e.toolCallId,toolName:n.toCustomToolName("apply_patch"),input:JSON.stringify({callId:$.item.call_id,operation:$.item.operation}),providerMetadata:{[s]:{itemId:$.item.id}}}),m[$.output_index]=void 0}else if("mcp_approval_request"===$.item.type){m[$.output_index]=void 0;const e=null!=(A=null==(S=(O=p.config).generateId)?void 0:S.call(O))?A:Ve(),t=null!=(P=$.item.approval_request_id)?P:$.item.id;c.set(t,e);const i=`mcp.${$.item.name}`;o.enqueue({type:"tool-call",toolCallId:e,toolName:i,input:$.item.arguments,providerExecuted:!0,dynamic:!0}),o.enqueue({type:"tool-approval-request",approvalId:t,toolCallId:e})}else if("local_shell_call"===$.item.type)m[$.output_index]=void 0,o.enqueue({type:"tool-call",toolCallId:$.item.call_id,toolName:n.toCustomToolName("local_shell"),input:JSON.stringify({action:{type:"exec",command:$.item.action.command,timeoutMs:$.item.action.timeout_ms,user:$.item.action.user,workingDirectory:$.item.action.working_directory,env:$.item.action.env}}),providerMetadata:{[s]:{itemId:$.item.id}}});else if("shell_call"===$.item.type)m[$.output_index]=void 0,o.enqueue({type:"tool-call",toolCallId:$.item.call_id,toolName:n.toCustomToolName("shell"),input:JSON.stringify({action:{commands:$.item.action.commands}}),providerMetadata:{[s]:{itemId:$.item.id}}});else if("reasoning"===$.item.type){const e=C[$.item.id],t=Object.entries(e.summaryParts).filter((([e,t])=>"active"===t||"can-conclude"===t)).map((([e])=>e));for(const e of t)o.enqueue({type:"reasoning-end",id:`${$.item.id}:${e}`,providerMetadata:{[s]:{itemId:$.item.id,reasoningEncryptedContent:null!=(T=$.item.encrypted_content)?T:null}}});delete C[$.item.id]}}else if(function(e){return"response.function_call_arguments.delta"===e.type}($)){const e=m[$.output_index];null!=e&&o.enqueue({type:"tool-input-delta",id:e.toolCallId,delta:$.delta})}else if(function(e){return"response.apply_patch_call_operation_diff.delta"===e.type}($)){const e=m[$.output_index];(null==e?void 0:e.applyPatch)&&(o.enqueue({type:"tool-input-delta",id:e.toolCallId,delta:Qo($.delta)}),e.applyPatch.hasDiff=!0)}else if(function(e){return"response.apply_patch_call_operation_diff.done"===e.type}($)){const e=m[$.output_index];(null==e?void 0:e.applyPatch)&&!e.applyPatch.endEmitted&&(e.applyPatch.hasDiff||(o.enqueue({type:"tool-input-delta",id:e.toolCallId,delta:Qo($.diff)}),e.applyPatch.hasDiff=!0),o.enqueue({type:"tool-input-delta",id:e.toolCallId,delta:'"}}'}),o.enqueue({type:"tool-input-end",id:e.toolCallId}),e.applyPatch.endEmitted=!0)}else if(function(e){return"response.image_generation_call.partial_image"===e.type}($))o.enqueue({type:"tool-result",toolCallId:$.item_id,toolName:n.toCustomToolName("image_generation"),result:{result:$.partial_image_b64},preliminary:!0});else if(function(e){return"response.code_interpreter_call_code.delta"===e.type}($)){const e=m[$.output_index];null!=e&&o.enqueue({type:"tool-input-delta",id:e.toolCallId,delta:Qo($.delta)})}else if(function(e){return"response.code_interpreter_call_code.done"===e.type}($)){const e=m[$.output_index];null!=e&&(o.enqueue({type:"tool-input-delta",id:e.toolCallId,delta:'"}'}),o.enqueue({type:"tool-input-end",id:e.toolCallId}),o.enqueue({type:"tool-call",toolCallId:e.toolCallId,toolName:n.toCustomToolName("code_interpreter"),input:JSON.stringify({code:$.code,containerId:e.codeInterpreter.containerId}),providerExecuted:!0}))}else if(function(e){return"response.created"===e.type}($))g=$.response.id,o.enqueue({type:"response-metadata",id:$.response.id,timestamp:new Date(1e3*$.response.created_at),modelId:$.response.model});else if(function(e){return"response.output_text.delta"===e.type}($))o.enqueue({type:"text-delta",id:$.item_id,delta:$.delta}),(null==(N=null==(D=e.providerOptions)?void 0:D[s])?void 0:N.logprobs)&&$.logprobs&&f.push($.logprobs);else if("response.reasoning_summary_part.added"===$.type){if($.summary_index>0){const e=C[$.item_id];e.summaryParts[$.summary_index]="active";for(const t of Object.keys(e.summaryParts))"can-conclude"===e.summaryParts[t]&&(o.enqueue({type:"reasoning-end",id:`${$.item_id}:${t}`,providerMetadata:{[s]:{itemId:$.item_id}}}),e.summaryParts[t]="concluded");o.enqueue({type:"reasoning-start",id:`${$.item_id}:${$.summary_index}`,providerMetadata:{[s]:{itemId:$.item_id,reasoningEncryptedContent:null!=(I=null==(x=C[$.item_id])?void 0:x.encryptedContent)?I:null}}})}}else"response.reasoning_summary_text.delta"===$.type?o.enqueue({type:"reasoning-delta",id:`${$.item_id}:${$.summary_index}`,delta:$.delta,providerMetadata:{[s]:{itemId:$.item_id}}}):"response.reasoning_summary_part.done"===$.type?r?(o.enqueue({type:"reasoning-end",id:`${$.item_id}:${$.summary_index}`,providerMetadata:{[s]:{itemId:$.item_id}}}),C[$.item_id].summaryParts[$.summary_index]="concluded"):C[$.item_id].summaryParts[$.summary_index]="can-conclude":function(e){return"response.completed"===e.type||"response.incomplete"===e.type}($)?(h={unified:Bo({finishReason:null==(F=$.response.incomplete_details)?void 0:F.reason,hasFunctionCall:v}),raw:null!=(k=null==(L=$.response.incomplete_details)?void 0:L.reason)?k:void 0},d=$.response.usage,"string"==typeof $.response.service_tier&&(w=$.response.service_tier)):function(e){return"response.output_text.annotation.added"===e.type}($)?(y.push($.annotation),"url_citation"===$.annotation.type?o.enqueue({type:"source",sourceType:"url",id:null!=(V=null==(G=(M=p.config).generateId)?void 0:G.call(M))?V:Ve(),url:$.annotation.url,title:$.annotation.title}):"file_citation"===$.annotation.type?o.enqueue({type:"source",sourceType:"document",id:null!=(j=null==(H=(W=p.config).generateId)?void 0:H.call(W))?j:Ve(),mediaType:"text/plain",title:$.annotation.filename,filename:$.annotation.filename,providerMetadata:{[s]:{type:$.annotation.type,fileId:$.annotation.file_id,index:$.annotation.index}}}):"container_file_citation"===$.annotation.type?o.enqueue({type:"source",sourceType:"document",id:null!=(Y=null==(U=(B=p.config).generateId)?void 0:U.call(B))?Y:Ve(),mediaType:"text/plain",title:$.annotation.filename,filename:$.annotation.filename,providerMetadata:{[s]:{type:$.annotation.type,fileId:$.annotation.file_id,containerId:$.annotation.container_id}}}):"file_path"===$.annotation.type&&o.enqueue({type:"source",sourceType:"document",id:null!=(K=null==(q=(z=p.config).generateId)?void 0:q.call(z))?K:Ve(),mediaType:"application/octet-stream",title:$.annotation.file_id,filename:$.annotation.file_id,providerMetadata:{[s]:{type:$.annotation.type,fileId:$.annotation.file_id,index:$.annotation.index}}})):function(e){return"error"===e.type}($)&&o.enqueue({type:"error",error:$})},flush(e){const t={[s]:{responseId:g}};f.length>0&&(t[s].logprobs=f),void 0!==w&&(t[s].serviceTier=w),e.enqueue({type:"finish",finishReason:h,usage:Wo(d),providerMetadata:t})}})),request:{body:t},response:{headers:a}}}};function $o(e){return"response.output_item.added"===e.type}function Zo(e){var t;switch(e.type){case"search":return{action:{type:"search",query:null!=(t=e.query)?t:void 0},...null!=e.sources&&{sources:e.sources}};case"open_page":return{action:{type:"openPage",url:e.url}};case"find_in_page":return{action:{type:"findInPage",url:e.url,pattern:e.pattern}}}}function Qo(e){return JSON.stringify(e).slice(1,-1)}var Xo=Et((()=>bt(Mt.Ik({instructions:Mt.Yj().nullish(),speed:Mt.ai().min(.25).max(4).default(1).nullish()})))),Jo=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3"}get provider(){return this.config.provider}async getArgs({text:e,voice:t="alloy",outputFormat:o="mp3",speed:i,instructions:n,language:r,providerOptions:s}){const a=[],l=await Tt({provider:"openai",providerOptions:s,schema:Xo}),p={model:this.modelId,input:e,voice:t,response_format:"mp3",speed:i,instructions:n};if(o&&(["mp3","opus","aac","flac","wav","pcm"].includes(o)?p.response_format=o:a.push({type:"unsupported",feature:"outputFormat",details:`Unsupported output format: ${o}. Using mp3 instead.`})),l){const e={};for(const t in e){const o=e[t];void 0!==o&&(p[t]=o)}}return r&&a.push({type:"unsupported",feature:"language",details:`OpenAI speech models do not support language selection. Language parameter "${r}" was ignored.`}),{requestBody:p,warnings:a}}async doGenerate(e){var t,o,i;const n=null!=(i=null==(o=null==(t=this.config._internal)?void 0:t.currentDate)?void 0:o.call(t))?i:new Date,{requestBody:r,warnings:s}=await this.getArgs(e),{value:a,responseHeaders:l,rawValue:p}=await Nt({url:this.config.url({path:"/audio/speech",modelId:this.modelId}),headers:Oe(this.config.headers(),e.headers),body:r,failedResponseHandler:Ht,successfulResponseHandler:async({response:e,url:t,requestBodyValues:o})=>{const i=Se(e);if(!e.body)throw new g({message:"Response body is empty",url:t,requestBodyValues:o,statusCode:e.status,responseHeaders:i,responseBody:void 0});try{const t=await e.arrayBuffer();return{responseHeaders:i,value:new Uint8Array(t)}}catch(n){throw new g({message:"Failed to read response as array buffer",url:t,requestBodyValues:o,statusCode:e.status,responseHeaders:i,responseBody:void 0,cause:n})}},abortSignal:e.abortSignal,fetch:this.config.fetch});return{audio:a,warnings:s,request:{body:JSON.stringify(r)},response:{timestamp:n,modelId:this.modelId,headers:l,body:p}}}},ei=Et((()=>bt(Mt.Ik({text:Mt.Yj(),language:Mt.Yj().nullish(),duration:Mt.ai().nullish(),words:Mt.YO(Mt.Ik({word:Mt.Yj(),start:Mt.ai(),end:Mt.ai()})).nullish(),segments:Mt.YO(Mt.Ik({id:Mt.ai(),seek:Mt.ai(),start:Mt.ai(),end:Mt.ai(),text:Mt.Yj(),tokens:Mt.YO(Mt.ai()),temperature:Mt.ai(),avg_logprob:Mt.ai(),compression_ratio:Mt.ai(),no_speech_prob:Mt.ai()})).nullish()})))),ti=Et((()=>bt(Mt.Ik({include:Mt.YO(Mt.Yj()).optional(),language:Mt.Yj().optional(),prompt:Mt.Yj().optional(),temperature:Mt.ai().min(0).max(1).default(0).optional(),timestampGranularities:Mt.YO(Mt.k5(["word","segment"])).default(["segment"]).optional()})))),oi={afrikaans:"af",arabic:"ar",armenian:"hy",azerbaijani:"az",belarusian:"be",bosnian:"bs",bulgarian:"bg",catalan:"ca",chinese:"zh",croatian:"hr",czech:"cs",danish:"da",dutch:"nl",english:"en",estonian:"et",finnish:"fi",french:"fr",galician:"gl",german:"de",greek:"el",hebrew:"he",hindi:"hi",hungarian:"hu",icelandic:"is",indonesian:"id",italian:"it",japanese:"ja",kannada:"kn",kazakh:"kk",korean:"ko",latvian:"lv",lithuanian:"lt",macedonian:"mk",malay:"ms",marathi:"mr",maori:"mi",nepali:"ne",norwegian:"no",persian:"fa",polish:"pl",portuguese:"pt",romanian:"ro",russian:"ru",serbian:"sr",slovak:"sk",slovenian:"sl",spanish:"es",swahili:"sw",swedish:"sv",tagalog:"tl",tamil:"ta",thai:"th",turkish:"tr",ukrainian:"uk",urdu:"ur",vietnamese:"vi",welsh:"cy"},ii=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3"}get provider(){return this.config.provider}async getArgs({audio:e,mediaType:t,providerOptions:o}){const i=await Tt({provider:"openai",providerOptions:o,schema:ti}),n=new FormData,r=e instanceof Uint8Array?new Blob([e]):new Blob([Te(e)]);n.append("model",this.modelId);const s=function(e){var t;const[o,i=""]=e.toLowerCase().split("/");return null!=(t={mpeg:"mp3","x-wav":"wav",opus:"ogg",mp4:"m4a","x-m4a":"m4a"}[i])?t:i}(t);if(n.append("file",new File([r],"audio",{type:t}),`audio.${s}`),i){const e={include:i.include,language:i.language,prompt:i.prompt,response_format:["gpt-4o-transcribe","gpt-4o-mini-transcribe"].includes(this.modelId)?"json":"verbose_json",temperature:i.temperature,timestamp_granularities:i.timestampGranularities};for(const[t,o]of Object.entries(e))if(null!=o)if(Array.isArray(o))for(const e of o)n.append(`${t}[]`,String(e));else n.append(t,String(o))}return{formData:n,warnings:[]}}async doGenerate(e){var t,o,i,n,r,s,a,l;const p=null!=(i=null==(o=null==(t=this.config._internal)?void 0:t.currentDate)?void 0:o.call(t))?i:new Date,{formData:u,warnings:c}=await this.getArgs(e),{value:d,responseHeaders:h,rawValue:f}=await xt({url:this.config.url({path:"/audio/transcriptions",modelId:this.modelId}),headers:Oe(this.config.headers(),e.headers),formData:u,failedResponseHandler:Ht,successfulResponseHandler:kt(ei),abortSignal:e.abortSignal,fetch:this.config.fetch}),g=null!=d.language&&d.language in oi?oi[d.language]:void 0;return{text:d.text,segments:null!=(a=null!=(s=null==(n=d.segments)?void 0:n.map((e=>({text:e.text,startSecond:e.start,endSecond:e.end}))))?s:null==(r=d.words)?void 0:r.map((e=>({text:e.word,startSecond:e.start,endSecond:e.end}))))?a:[],language:g,durationInSeconds:null!=(l=d.duration)?l:void 0,warnings:c,response:{timestamp:p,modelId:this.modelId,headers:h,body:f}}}},ni="3.0.9";function ri(e={}){var t,o;const i=null!=(t=null==(n=function({settingValue:e,environmentVariableName:t}){return"string"==typeof e||null==e&&void 0!==Re&&null!=(e=Re.env[t])&&"string"==typeof e?e:void 0}({settingValue:e.baseURL,environmentVariableName:"OPENAI_BASE_URL"}))?void 0:n.replace(/\/$/,""))?t:"https://api.openai.com/v1";var n;const r=null!=(o=e.name)?o:"openai",s=()=>Be({Authorization:`Bearer ${Ye({apiKey:e.apiKey,environmentVariableName:"OPENAI_API_KEY",description:"OpenAI"})}`,"OpenAI-Organization":e.organization,"OpenAI-Project":e.project,...e.headers},`ai-sdk/openai/${ni}`),a=t=>new ro(t,{provider:`${r}.embedding`,url:({path:e})=>`${i}${e}`,headers:s,fetch:e.fetch}),l=t=>new po(t,{provider:`${r}.image`,url:({path:e})=>`${i}${e}`,headers:s,fetch:e.fetch}),p=t=>new ii(t,{provider:`${r}.transcription`,url:({path:e})=>`${i}${e}`,headers:s,fetch:e.fetch}),u=t=>new Jo(t,{provider:`${r}.speech`,url:({path:e})=>`${i}${e}`,headers:s,fetch:e.fetch}),c=e=>{if(new.target)throw new Error("The OpenAI model function cannot be called with the new keyword.");return d(e)},d=t=>new Ko(t,{provider:`${r}.responses`,url:({path:e})=>`${i}${e}`,headers:s,fetch:e.fetch,fileIdPrefixes:["file-"]}),h=function(e){return c(e)};return h.specificationVersion="v3",h.languageModel=c,h.chat=t=>new $t(t,{provider:`${r}.chat`,url:({path:e})=>`${i}${e}`,headers:s,fetch:e.fetch}),h.completion=t=>new oo(t,{provider:`${r}.completion`,url:({path:e})=>`${i}${e}`,headers:s,fetch:e.fetch}),h.responses=d,h.embedding=a,h.embeddingModel=a,h.textEmbedding=a,h.textEmbeddingModel=a,h.image=l,h.imageModel=l,h.transcription=p,h.transcriptionModel=p,h.speech=u,h.speechModel=u,h.tools=Vo,h}ri()},78481:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(22131),l=o(72493),p=o(26016),u=o(58342),c=o(44871),d=o(98239),h=o(97177),f=o(44081),g=o(34506),m=o(38152),y=o(40797),v=o(86608),C=o(60843),w=o(85910),E=o(21951),_=o(47721),b=o(2299),R=o(63405),O=o(93830),S=o(55090),A=o(81604),P=o(66419),T=o(83423),D=function(e){function t(o,i,n){var r=e.call(this,t.TEMPLATE)||this;return r.column=o,r.dragSourceDropTarget=i,r.pinned=n,r}return n(t,e),t.prototype.getColumn=function(){return this.column},t.prototype.getComponentHolder=function(){return this.column.getColDef()},t.prototype.init=function(){var e=this.getComponentHolder(),t=this.columnController.getDisplayNameForColumn(this.column,"header",!0),o=e.sortable,i=this.menuFactory.isMenuEnabled(this.column)&&!e.suppressMenu;this.appendHeaderComp(t,o,i),this.setupWidth(),this.setupMovingCss(),this.setupTooltip(),this.setupResize(),this.setupMenuClass(),this.setupSortableClass(o),this.addColumnHoverListener(),this.addFeature(this.getContext(),new A.HoverFeature([this.column],this.getGui())),this.addDestroyableEventListener(this.column,p.Column.EVENT_FILTER_ACTIVE_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged(),this.addFeature(this.getContext(),new b.SelectAllFeature(this.cbSelectAll,this.column));var n=new m.SetLeftFeature(this.column,this.getGui(),this.beans);n.init(),this.addDestroyFunc(n.destroy.bind(n)),this.addAttributes(),g.CssClassApplier.addHeaderClassesFromColDef(e,this.getGui(),this.gridOptionsWrapper,this.column,null)},t.prototype.addColumnHoverListener=function(){this.addDestroyableEventListener(this.eventService,R.Events.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},t.prototype.onColumnHover=function(){var e=this.columnHoverService.isHovered(this.column);T._.addOrRemoveCssClass(this.getGui(),"ag-column-hover",e)},t.prototype.setupSortableClass=function(e){if(e){var t=this.getGui();T._.addCssClass(t,"ag-header-cell-sortable")}},t.prototype.onFilterChanged=function(){var e=this.column.isFilterActive();T._.addOrRemoveCssClass(this.getGui(),"ag-header-cell-filtered",e)},t.prototype.appendHeaderComp=function(e,t,o){var i=this,n={column:this.column,displayName:e,enableSorting:t,enableMenu:o,showColumnMenu:function(e){i.gridApi.showColumnMenuAfterButtonClick(i.column,e)},progressSort:function(e){i.sortController.progressSort(i.column,!!e,"uiColumnSorted")},setSort:function(e,t){i.sortController.setSortForColumn(i.column,e,!!t,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()},r=this.afterHeaderCompCreated.bind(this,e);this.userComponentFactory.newHeaderComponent(n).then(r)},t.prototype.afterHeaderCompCreated=function(e,t){this.appendChild(t),this.setupMove(t.getGui(),e)},t.prototype.onColumnMovingChanged=function(){this.column.isMoving()?T._.addCssClass(this.getGui(),"ag-header-cell-moving"):T._.removeCssClass(this.getGui(),"ag-header-cell-moving")},t.prototype.setupMove=function(e,t){var o=this;if(!(this.gridOptionsWrapper.isSuppressMovableColumns()||this.getComponentHolder().suppressMovable||this.column.isLockPosition())&&e){var i={type:u.DragSourceType.HeaderCell,eElement:e,dragItemCallback:function(){return o.createDragItem()},dragItemName:t,dragSourceDropTarget:this.dragSourceDropTarget,dragStarted:function(){return o.column.setMoving(!0,"uiColumnMoved")},dragStopped:function(){return o.column.setMoving(!1,"uiColumnMoved")}};this.dragAndDropService.addDragSource(i,!0),this.addDestroyFunc((function(){return o.dragAndDropService.removeDragSource(i)}))}},t.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},t.prototype.setupResize=function(){var e=this,t=this.getComponentHolder();if(this.eResize)if(this.column.isResizable()){var o=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(o),!this.gridOptionsWrapper.isSuppressAutoSize()&&!t.suppressAutoSize){this.addDestroyableEventListener(this.eResize,"dblclick",(function(){e.columnController.autoSizeColumn(e.column,"uiColumnResized")}));var i=new P.TouchListener(this.eResize);this.addDestroyableEventListener(i,P.TouchListener.EVENT_DOUBLE_TAP,(function(){e.columnController.autoSizeColumn(e.column,"uiColumnResized")})),this.addDestroyFunc(i.destroy.bind(i))}}else T._.removeFromParent(this.eResize)},t.prototype.onResizing=function(e,t){var o=this.normaliseResizeAmount(t),i=this.resizeStartWidth+o;this.columnController.setColumnWidth(this.column,i,this.resizeWithShiftKey,e,"uiColumnDragged"),e&&T._.removeCssClass(this.getGui(),"ag-column-resizing")},t.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=e,T._.addCssClass(this.getGui(),"ag-column-resizing")},t.prototype.getTooltipText=function(){return this.getComponentHolder().headerTooltip},t.prototype.setupTooltip=function(){var e=this.getTooltipText();null!=e&&(this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",e):this.beans.tooltipManager.registerTooltip(this))},t.prototype.setupMovingCss=function(){this.addDestroyableEventListener(this.column,p.Column.EVENT_MOVING_CHANGED,this.onColumnMovingChanged.bind(this)),this.onColumnMovingChanged()},t.prototype.addAttributes=function(){this.getGui().setAttribute("col-id",this.column.getColId())},t.prototype.setupWidth=function(){this.addDestroyableEventListener(this.column,p.Column.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},t.prototype.setupMenuClass=function(){this.addDestroyableEventListener(this.column,p.Column.EVENT_MENU_VISIBLE_CHANGED,this.onMenuVisible.bind(this)),this.onColumnWidthChanged()},t.prototype.onMenuVisible=function(){this.addOrRemoveCssClass("ag-column-menu-visible",this.column.isMenuVisible())},t.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},t.prototype.normaliseResizeAmount=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==p.Column.PINNED_LEFT&&(t*=-1):this.pinned===p.Column.PINNED_RIGHT&&(t*=-1),t},t.TEMPLATE='<div class="ag-header-cell" role="presentation" unselectable="on"><div ref="eResize" class="ag-header-cell-resize" role="presentation"></div><ag-checkbox ref="cbSelectAll" class="ag-header-select-all" role="presentation"></ag-checkbox></div>',r([l.Autowired("gridOptionsWrapper"),s("design:type",f.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([l.Autowired("dragAndDropService"),s("design:type",u.DragAndDropService)],t.prototype,"dragAndDropService",void 0),r([l.Autowired("columnController"),s("design:type",d.ColumnController)],t.prototype,"columnController",void 0),r([l.Autowired("horizontalResizeService"),s("design:type",h.HorizontalResizeService)],t.prototype,"horizontalResizeService",void 0),r([l.Autowired("menuFactory"),s("design:type",Object)],t.prototype,"menuFactory",void 0),r([l.Autowired("gridApi"),s("design:type",y.GridApi)],t.prototype,"gridApi",void 0),r([l.Autowired("columnApi"),s("design:type",c.ColumnApi)],t.prototype,"columnApi",void 0),r([l.Autowired("sortController"),s("design:type",v.SortController)],t.prototype,"sortController",void 0),r([l.Autowired("eventService"),s("design:type",C.EventService)],t.prototype,"eventService",void 0),r([l.Autowired("userComponentFactory"),s("design:type",w.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),r([l.Autowired("columnHoverService"),s("design:type",O.ColumnHoverService)],t.prototype,"columnHoverService",void 0),r([l.Autowired("beans"),s("design:type",S.Beans)],t.prototype,"beans",void 0),r([_.RefSelector("eResize"),s("design:type",HTMLElement)],t.prototype,"eResize",void 0),r([_.RefSelector("cbSelectAll"),s("design:type",E.AgCheckbox)],t.prototype,"cbSelectAll",void 0),r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.HeaderWrapperComp=D},79886:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(44081),l=o(40634),p=o(60843),u=o(45727),c=o(72493),d=o(22131),h=o(15068),f=o(93121),g=o(95125),m=o(98239),y=o(26016),v=o(47721),C=o(1571),w=o(85910),E=o(83423),_=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return n(t,e),t.prototype.init=function(e){this.params=e,this.gridOptionsWrapper.isGroupIncludeTotalFooter()&&this.assignBlankValueToGroupFooterCell(e);var t=this.isEmbeddedRowMismatch(),o=null==e.value;this.cellIsBlank=t||o,this.cellIsBlank||(this.setupDragOpenParents(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent())},t.prototype.assignBlankValueToGroupFooterCell=function(e){e.value||-1!=e.node.level||(e.value="")},t.prototype.isEmbeddedRowMismatch=function(){if(this.params.fullWidth&&this.gridOptionsWrapper.isEmbedFullWidthRows()){var e=this.params.pinned===y.Column.PINNED_LEFT,t=this.params.pinned===y.Column.PINNED_RIGHT,o=!e&&!t;return this.gridOptionsWrapper.isEnableRtl()?this.columnController.isPinningLeft()?!t:!o:this.columnController.isPinningLeft()?!e:!o}return!1},t.prototype.setIndent=function(){if(!this.gridOptionsWrapper.isGroupHideOpenParents()){var e=this.params,t=e.node.uiLevel;e.padding>=0?this.setPaddingDeprecatedWay(t,e.padding):(this.indentClass&&this.removeCssClass(this.indentClass),this.indentClass="ag-row-group-indent-"+t,this.addCssClass(this.indentClass))}},t.prototype.setPaddingDeprecatedWay=function(e,t){E._.doOnce((function(){return console.warn("ag-Grid: since v14.2, configuring padding for groupCellRenderer should be done with Sass variables and themes. Please see the ag-Grid documentation page for Themes, in particular the property $row-group-indent-size.")}),"groupCellRenderer->doDeprecatedWay");var o=e*t;this.gridOptionsWrapper.isEnableRtl()?this.getGui().style.paddingRight=o+"px":this.getGui().style.paddingLeft=o+"px"},t.prototype.setupIndent=function(){var e=this.params.node;this.params.suppressPadding||(this.addDestroyableEventListener(e,h.RowNode.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.addValueElement=function(){var e=this.params,t=this.displayedGroup;t.footer?this.createFooterCell():t.hasChildren()||E._.get(e.colDef,"cellRendererParams.innerRenderer",null)||E._.get(e.colDef,"cellRendererParams.innerRendererFramework",null)?(this.createGroupCell(),t.hasChildren()&&this.addChildCount()):this.createLeafCell()},t.prototype.createFooterCell=function(){var e,t=this.params.footerValueGetter;if(t){var o=E._.cloneObject(this.params);o.value=this.params.value,"function"==typeof t?e=t(o):"string"==typeof t?e=this.expressionService.evaluate(t,o):console.warn("ag-Grid: footerValueGetter should be either a function or a string (expression)")}else e="Total "+this.params.value;this.eValue.innerHTML=e},t.prototype.createGroupCell=function(){var e,t=this,o=this.params,i=this.displayedGroup.rowGroupColumn||o.column,n=this.params.value,r=i?this.valueFormatterService.formatValue(i,o.node,o.scope,n):null;o.valueFormatted=r,(e=1==o.fullWidth?this.useFullWidth(o):this.useInnerRenderer(this.params.colDef.cellRendererParams,i.getColDef(),o))&&e.then((function(e){t.innerCellRenderer=e}))},t.prototype.useInnerRenderer=function(e,t,o){var i=this,n=null,r=this.userComponentFactory.lookupComponentClassDef(e,"innerRenderer");if(r&&null!=r.component&&r.source!=w.ComponentSource.DEFAULT)n=this.userComponentFactory.newInnerCellRenderer(e,o);else{var s=this.userComponentFactory.lookupComponentClassDef(t,"cellRenderer");n=s&&s.source!=w.ComponentSource.DEFAULT?this.userComponentFactory.newCellRenderer(t,o):s&&s.source==w.ComponentSource.DEFAULT&&E._.get(t,"cellRendererParams.innerRenderer",null)?this.userComponentFactory.newInnerCellRenderer(t.cellRendererParams,o):this.userComponentFactory.newCellRenderer({},o)}return null!=n?n.then((function(e){null!=e?E._.bindCellRendererToHtmlElement(n,i.eValue):i.eValue.innerText=null!=o.valueFormatted?o.valueFormatted:o.value})):this.eValue.innerText=null!=o.valueFormatted?o.valueFormatted:o.value,n},t.prototype.useFullWidth=function(e){var t=this.userComponentFactory.newFullWidthGroupRowInnerCellRenderer(e);return null!=t?E._.bindCellRendererToHtmlElement(t,this.eValue):this.eValue.innerText=null!=e.valueFormatted?e.valueFormatted:e.value,t},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addDestroyableEventListener(this.displayedGroup,h.RowNode.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},t.prototype.updateChildCount=function(){var e=this.displayedGroup.allChildrenCount;this.eChildCount.innerHTML=e>=0?"("+e+")":""},t.prototype.createLeafCell=function(){E._.exists(this.params.value)&&(this.eValue.innerHTML=this.params.valueFormatted?this.params.valueFormatted:this.params.value)},t.prototype.isUserWantsSelected=function(){var e=this.params.checkbox;return"function"==typeof e?e(this.params):!0===e},t.prototype.addCheckboxIfNeeded=function(){var e=this.displayedGroup,t=this.isUserWantsSelected()&&!e.footer&&!e.rowPinned&&!e.detail;if(t){var o=new g.CheckboxSelectionComponent;this.getContext().wireBean(o),o.init({rowNode:e,column:this.params.column}),this.eCheckbox.appendChild(o.getGui()),this.addDestroyFunc((function(){return o.destroy()}))}E._.addOrRemoveCssClass(this.eCheckbox,"ag-invisible",!t)},t.prototype.addExpandAndContract=function(){var e=this.params,t=e.eGridCell,o=E._.createIconNoSpan("groupExpanded",this.gridOptionsWrapper,null),i=E._.createIconNoSpan("groupContracted",this.gridOptionsWrapper,null);this.eExpanded.appendChild(o),this.eContracted.appendChild(i),this.addDestroyableEventListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addDestroyableEventListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addDestroyableEventListener(t,"keydown",this.onKeyDown.bind(this),{capture:!0}),this.addDestroyableEventListener(e.node,h.RowNode.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons(),this.addDestroyableEventListener(this.displayedGroup,h.RowNode.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.onAllChildrenCountChanged.bind(this)),this.gridOptionsWrapper.isEnableGroupEdit()||!this.isExpandable()||e.suppressDoubleClickExpand||this.addDestroyableEventListener(t,"dblclick",this.onCellDblClicked.bind(this))},t.prototype.onAllChildrenCountChanged=function(){this.showExpandAndContractIcons(),this.setIndent()},t.prototype.onKeyDown=function(e){if(!e.defaultPrevented&&E._.isKeyPressed(e,u.Constants.KEY_ENTER)){if(this.params.column.isCellEditable(this.params.node))return;e.preventDefault(),this.onExpandOrContract()}},t.prototype.setupDragOpenParents=function(){var e=this.params.column,t=this.params.node;if(this.gridOptionsWrapper.isGroupHideOpenParents())if(t.hasChildren()){var o=t.rowGroupColumn;this.draggedFromHideOpenParents=!e.isRowGroupDisplayed(o.getId())}else this.draggedFromHideOpenParents=!0;else this.draggedFromHideOpenParents=!1;if(this.draggedFromHideOpenParents)for(var i=t.parent;!E._.missing(i);){if(i.rowGroupColumn&&e.isRowGroupDisplayed(i.rowGroupColumn.getId())){this.displayedGroup=i;break}i=i.parent}E._.missing(this.displayedGroup)&&(this.displayedGroup=t)},t.prototype.onExpandClicked=function(e){E._.isStopPropagationForAgGrid(e)||(E._.stopPropagationForAgGrid(e),this.onExpandOrContract())},t.prototype.onCellDblClicked=function(e){E._.isStopPropagationForAgGrid(e)||E._.isElementInEventPath(this.eExpanded,e)||E._.isElementInEventPath(this.eContracted,e)||this.onExpandOrContract()},t.prototype.onExpandOrContract=function(){var e=this.displayedGroup;e.setExpanded(!e.expanded)},t.prototype.isExpandable=function(){var e=this.params.node,t=this.columnController.isPivotMode()&&e.leafGroup;return this.draggedFromHideOpenParents||e.isExpandable()&&!e.footer&&!t},t.prototype.showExpandAndContractIcons=function(){var e=this.params.node;if(this.isExpandable()){var t=!!this.draggedFromHideOpenParents||e.expanded;E._.setVisible(this.eContracted,!t),E._.setVisible(this.eExpanded,t)}else E._.setVisible(this.eExpanded,!1),E._.setVisible(this.eContracted,!1);var o=this.displayedGroup,i=this.columnController.isPivotMode()&&o.leafGroup,n=!o.isExpandable(),r=o.footer||n||i;this.addOrRemoveCssClass("ag-row-group-leaf-indent",r)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.innerCellRenderer&&this.innerCellRenderer.destroy&&this.innerCellRenderer.destroy()},t.prototype.refresh=function(){return!1},t.TEMPLATE='<span><span class="ag-group-expanded" ref="eExpanded"></span><span class="ag-group-contracted" ref="eContracted"></span><span class="ag-group-checkbox ag-invisible" ref="eCheckbox"></span><span class="ag-group-value" ref="eValue"></span><span class="ag-group-child-count" ref="eChildCount"></span></span>',r([c.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([c.Autowired("expressionService"),s("design:type",l.ExpressionService)],t.prototype,"expressionService",void 0),r([c.Autowired("eventService"),s("design:type",p.EventService)],t.prototype,"eventService",void 0),r([c.Autowired("valueFormatterService"),s("design:type",f.ValueFormatterService)],t.prototype,"valueFormatterService",void 0),r([c.Autowired("columnController"),s("design:type",m.ColumnController)],t.prototype,"columnController",void 0),r([c.Autowired("mouseEventService"),s("design:type",C.MouseEventService)],t.prototype,"mouseEventService",void 0),r([c.Autowired("userComponentFactory"),s("design:type",w.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),r([v.RefSelector("eExpanded"),s("design:type",HTMLElement)],t.prototype,"eExpanded",void 0),r([v.RefSelector("eContracted"),s("design:type",HTMLElement)],t.prototype,"eContracted",void 0),r([v.RefSelector("eCheckbox"),s("design:type",HTMLElement)],t.prototype,"eCheckbox",void 0),r([v.RefSelector("eValue"),s("design:type",HTMLElement)],t.prototype,"eValue",void 0),r([v.RefSelector("eChildCount"),s("design:type",HTMLElement)],t.prototype,"eChildCount",void 0),t}(d.Component);t.GroupCellRenderer=_},80834:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.STRING_PROPERTIES=["headerName","columnGroupShow","headerClass","toolPanelClass","headerValueGetter","pivotKeys","groupId","colId","sort","field","type","tooltipComponent","tooltipField","headerTooltip","cellClass","showRowGroup","template","templateUrl","filter","aggFunc","cellRenderer","cellEditor","pinned"],e.OBJECT_PROPERTIES=["headerGroupComponent","headerGroupComponentFramework","headerGroupComponentParams","cellStyle","cellRendererParams","cellEditorFramework","cellEditorParams","pinnedRowCellRendererFramework","pinnedRowCellRendererParams","filterFramework","filterParams","pivotValueColumn","headerComponent","headerComponentFramework","headerComponentParams","floatingFilterComponent","floatingFilterComponentParams","floatingFilterComponentFramework","tooltipComponent","tooltipComponentParams","tooltipComponentFramework","refData"],e.ARRAY_PROPERTIES=["children","sortingOrder","allowedAggFuncs","menuTabs","pivotTotalColumnIds","cellClassRules","icons"],e.NUMBER_PROPERTIES=["sortedAt","width","minWidth","maxWidth","rowGroupIndex","pivotIndex"],e.BOOLEAN_PROPERTIES=["suppressCellFlash","suppressToolPanel","openByDefault","marryChildren","hide","rowGroup","pivot","checkboxSelection","headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","suppressMenu","suppressSorting","suppressMovable","suppressFilter","lockPosition","lockVisible","lockPinned","unSortIcon","suppressSizeToFit","suppressResize","suppressAutoSize","enableRowGroup","enablePivot","enableValue","editable","suppressPaste","suppressNavigable","enableCellChangeFlash","rowDrag","autoHeight","sortable","resizable","singleClickEdit"],e.FUNCTION_PROPERTIES=["valueGetter","valueSetter","filterValueGetter","keyCreator","cellRenderer","cellRendererFramework","pinnedRowCellRenderer","valueFormatter","pinnedRowValueFormatter","valueParser","comparator","equals","pivotComparator","suppressKeyboardEvent","colSpan","rowSpan","getQuickFilterText","newValueHandler","onCellValueChanged","onCellClicked","onCellDoubleClicked","onCellContextMenu","tooltip","tooltipValueGetter","tooltipComponent","tooltipComponentFramework","cellRendererSelector","cellEditorSelector"],e.ALL_PROPERTIES=e.ARRAY_PROPERTIES.concat(e.OBJECT_PROPERTIES).concat(e.STRING_PROPERTIES).concat(e.NUMBER_PROPERTIES).concat(e.FUNCTION_PROPERTIES).concat(e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}();t.ColDefUtil=o},81604:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8534),l=o(72493),p=o(93830),u=function(e){function t(t,o){var i=e.call(this)||this;return i.columns=t,i.addMouseHoverListeners(o),i}return n(t,e),t.prototype.addMouseHoverListeners=function(e){this.addDestroyableEventListener(e,"mouseout",this.onMouseOut.bind(this)),this.addDestroyableEventListener(e,"mouseover",this.onMouseOver.bind(this))},t.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},r([l.Autowired("columnHoverService"),s("design:type",p.ColumnHoverService)],t.prototype,"columnHoverService",void 0),t}(a.BeanStub);t.HoverFeature=u},81999:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(44081),l=o(44871),p=o(98239),u=o(10042),c=o(55e3),d=o(60843),h=o(64229),f=o(37132),g=o(73575),m=o(72493),y=o(42195),v=o(22131),C=o(40797),w=o(47721),E=o(63405),_=o(68198),b=o(96896),R=o(83423),O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.init=function(){var e=this;this.logger=this.loggerFactory.create("GridCore");var o=this.enterprise?t.TEMPLATE_ENTERPRISE:t.TEMPLATE_NORMAL;if(this.setTemplate(o),[this.gridApi,this.filterManager,this.rowRenderer,this.popupService].forEach((function(t){return t.registerGridCore(e)})),this.enterprise&&this.clipboardService.registerGridCore(this),this.gridOptionsWrapper.addLayoutElement(this.getGui()),this.setSideBarVisible(this.gridOptionsWrapper.isShowToolPanel()),this.eGridDiv.appendChild(this.getGui()),this.addDestroyFunc((function(){e.eGridDiv.removeChild(e.getGui())})),this.$scope){var i=this.$scope.$watch(this.quickFilterOnScope,(function(t){return e.filterManager.setQuickFilter(t)}));this.addDestroyFunc(i)}this.addRtlSupport(),this.logger.log("ready"),this.gridOptionsWrapper.addLayoutElement(this.eRootWrapperBody);var n=this.gridPanel.getGui();this.addDestroyableEventListener(n,"focusin",(function(){R._.addCssClass(n,"ag-has-focus")})),this.addDestroyableEventListener(n,"focusout",(function(e){n.contains(e.relatedTarget)||R._.removeCssClass(n,"ag-has-focus")}));var r=this.resizeObserverService.observeResize(this.eGridDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((function(){return r()}))},t.prototype.onGridSizeChanged=function(){var e={type:E.Events.EVENT_GRID_SIZE_CHANGED,api:this.gridApi,columnApi:this.columnApi,clientWidth:this.eGridDiv.clientWidth,clientHeight:this.eGridDiv.clientHeight};this.eventService.dispatchEvent(e)},t.prototype.addRtlSupport=function(){var e=this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr";R._.addCssClass(this.getGui(),e)},t.prototype.getRootGui=function(){return this.getGui()},t.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isVisible()},t.prototype.setSideBarVisible=function(e){this.sideBarComp?this.sideBarComp.setVisible(e):e&&console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},t.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},t.prototype.getSideBar=function(){return this.gridOptions.sideBar},t.prototype.refreshSideBar=function(){this.sideBarComp&&this.sideBarComp.refresh()},t.prototype.setSideBar=function(e){this.eRootWrapperBody.removeChild(this.sideBarComp.getGui()),this.gridOptions.sideBar=b.SideBarDefParser.parse(e),this.sideBarComp.reset(),this.eRootWrapperBody.appendChild(this.sideBarComp.getGui())},t.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},t.prototype.openToolPanel=function(e){this.sideBarComp?this.sideBarComp.openToolPanel(e):console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},t.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.logger.log("Grid DOM removed")},t.prototype.ensureNodeVisible=function(e,t){if(void 0===t&&(t="top"),this.doingVirtualPaging)throw new Error("Cannot use ensureNodeVisible when doing virtual paging, as we cannot check rows that are not in memory");for(var o=this.rowModel.getPageLastRow()+1,i="function"==typeof e,n=-1,r=0;r<o;r++){var s=this.rowModel.getRow(r);if(i){if(e(s)){n=r;break}}else if(e===s||e===s.data){n=r;break}}n>=0&&this.gridPanel.ensureIndexVisible(n,t)},t.TEMPLATE_NORMAL='<div class="ag-root-wrapper">\n <div class="ag-root-wrapper-body" ref="rootWrapperBody">\n <ag-grid-comp ref="gridPanel"></ag-grid-comp>\n </div>\n <ag-pagination></ag-pagination>\n </div>',t.TEMPLATE_ENTERPRISE='<div class="ag-root-wrapper">\n <ag-grid-header-drop-zones></ag-grid-header-drop-zones>\n <div ref="rootWrapperBody" class="ag-root-wrapper-body">\n <ag-grid-comp ref="gridPanel"></ag-grid-comp>\n <ag-side-bar ref="sideBar"></ag-side-bar>\n </div>\n <ag-status-bar ref="statusBar"></ag-status-bar>\n <ag-pagination></ag-pagination>\n <ag-watermark></ag-watermark>\n </div>',r([m.Autowired("enterprise"),s("design:type",Boolean)],t.prototype,"enterprise",void 0),r([m.Autowired("gridOptions"),s("design:type",Object)],t.prototype,"gridOptions",void 0),r([m.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([m.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),r([m.Autowired("frameworkFactory"),s("design:type",Object)],t.prototype,"frameworkFactory",void 0),r([m.Autowired("resizeObserverService"),s("design:type",_.ResizeObserverService)],t.prototype,"resizeObserverService",void 0),r([m.Autowired("columnController"),s("design:type",p.ColumnController)],t.prototype,"columnController",void 0),r([m.Autowired("rowRenderer"),s("design:type",u.RowRenderer)],t.prototype,"rowRenderer",void 0),r([m.Autowired("filterManager"),s("design:type",c.FilterManager)],t.prototype,"filterManager",void 0),r([m.Autowired("eventService"),s("design:type",d.EventService)],t.prototype,"eventService",void 0),r([m.Autowired("eGridDiv"),s("design:type",HTMLElement)],t.prototype,"eGridDiv",void 0),r([m.Autowired("$scope"),s("design:type",Object)],t.prototype,"$scope",void 0),r([m.Autowired("quickFilterOnScope"),s("design:type",String)],t.prototype,"quickFilterOnScope",void 0),r([m.Autowired("popupService"),s("design:type",g.PopupService)],t.prototype,"popupService",void 0),r([m.Autowired("focusedCellController"),s("design:type",y.FocusedCellController)],t.prototype,"focusedCellController",void 0),r([m.Autowired("loggerFactory"),s("design:type",f.LoggerFactory)],t.prototype,"loggerFactory",void 0),r([m.Autowired("columnApi"),s("design:type",l.ColumnApi)],t.prototype,"columnApi",void 0),r([m.Autowired("gridApi"),s("design:type",C.GridApi)],t.prototype,"gridApi",void 0),r([m.Optional("clipboardService"),s("design:type",Object)],t.prototype,"clipboardService",void 0),r([w.RefSelector("gridPanel"),s("design:type",h.GridPanel)],t.prototype,"gridPanel",void 0),r([w.RefSelector("sideBar"),s("design:type",Object)],t.prototype,"sideBarComp",void 0),r([w.RefSelector("rootWrapperBody"),s("design:type",HTMLElement)],t.prototype,"eRootWrapperBody",void 0),r([m.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(v.Component);t.GridCore=O},83423:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=o(45727),n=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,r=/([^\s,]+)/g,s="__ag_Grid_Stop_Propagation",a=function(){function e(){this.timestamp=(new Date).getTime()}return e.prototype.print=function(e){var t=(new Date).getTime()-this.timestamp;console.info(e+" = "+t),this.timestamp=(new Date).getTime()},e}();t.Timer=a;var l={"&":"&","<":"<",">":">",'"':""","'":"'"},p=/[&<>"']/g,u=function(){function e(){}return e.doIeFocusHack=function(e){(t._.isBrowserIE()||t._.isBrowserEdge())&&(t._.missing(document.activeElement)||document.activeElement===document.body)&&e.focus()},e.doOnce=function(e,t){this.doOnceFlags[t]||(e(),this.doOnceFlags[t]=!0)},e.isLeftClick=function(e){return"buttons"in e?1==e.buttons:1==(e.which||e.button)},e.areEventsNear=function(e,t,o){if(0===o)return!1;var i=Math.abs(e.clientX-t.clientX),n=Math.abs(e.clientY-t.clientY);return Math.max(i,n)<=o},e.jsonEquals=function(e,t){return(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null)},e.shallowCompare=function(e,t){if(this.missing(e)&&this.missing(t))return!0;if(this.missing(e)||this.missing(t))return!1;if(e.length!==t.length)return!1;for(var o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0},e.getNameOfClass=function(e){var t=e.toString(),o=/function (.{1,})\(/.exec(t);return o&&o.length>1?o[1]:""},e.values=function(e){var t=[];return this.iterateObject(e,(function(e,o){t.push(o)})),t},e.getValueUsingField=function(e,t,o){if(t&&e){if(o){for(var i=t.split("."),n=e,r=0;r<i.length;r++)if(n=n[i[r]],this.missing(n))return null;return n}return e[t]}},e.getAbsoluteHeight=function(e){var t=window.getComputedStyle(e),o=parseFloat(t.marginTop)+parseFloat(t.marginBottom);return Math.ceil(e.offsetHeight+o)},e.getAbsoluteWidth=function(e){var t=window.getComputedStyle(e),o=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return Math.ceil(e.offsetWidth+o)},e.getScrollLeft=function(e,t){var o=e.scrollLeft;return t&&(o=Math.abs(o),this.isBrowserChrome()&&(o=e.scrollWidth-e.clientWidth-o)),o},e.cleanNumber=function(e){return"string"==typeof e&&(e=parseInt(e,10)),"number"==typeof e?Math.floor(e):null},e.setScrollLeft=function(e,t,o){o&&((this.isBrowserSafari()||this.isBrowserChrome())&&(t=e.scrollWidth-e.clientWidth-t),this.isBrowserFirefox()&&(t*=-1)),e.scrollLeft=t},e.iterateNamedNodeMap=function(e,t){if(e)for(var o=0;o<e.length;o++){var i=e[o];t(i.name,i.value)}},e.iterateObject=function(e,t){if(e&&!this.missing(e))if(Array.isArray(e))e.forEach((function(e,o){t(o+"",e)}));else for(var o=Object.keys(e),i=0;i<o.length;i++){var n=o[i],r=e[n];t(n,r)}},e.cloneObject=function(e){for(var t={},o=Object.keys(e),i=0;i<o.length;i++){var n=o[i],r=e[n];t[n]=r}return t},e.deepCloneObject=function(e){return JSON.parse(JSON.stringify(e))},e.map=function(e,t){for(var o=[],i=0;i<e.length;i++){var n=t(e[i],i);o.push(n)}return o},e.mapObject=function(t,o){var i=[];return e.iterateObject(t,(function(e,t){i.push(o(t))})),i},e.forEach=function(e,t){if(e)for(var o=0;o<e.length;o++)t(e[o],o)},e.filter=function(e,t){var o=[];return e.forEach((function(e){t(e)&&o.push(e)})),o},e.getAllKeysInObjects=function(e){var t={};return e.forEach((function(e){e&&Object.keys(e).forEach((function(e){return t[e]=null}))})),Object.keys(t)},e.mergeDeep=function(t,o){this.exists(o)&&this.iterateObject(o,(function(o,i){var n=t[o];n!==i&&("object"==typeof n&&"object"==typeof i?e.mergeDeep(n,i):t[o]=i)}))},e.assign=function(e){for(var t=this,o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return o.forEach((function(o){t.exists(o)&&t.iterateObject(o,(function(t,o){e[t]=o}))})),e},e.parseYyyyMmDdToDate=function(e,t){try{if(!e)return null;if(-1===e.indexOf(t))return null;var o=e.split(t);return 3!=o.length?null:new Date(Number(o[0]),Number(o[1])-1,Number(o[2]))}catch(e){return null}},e.serializeDateToYyyyMmDd=function(t,o){return t?t.getFullYear()+o+e.pad(t.getMonth()+1,2)+o+e.pad(t.getDate(),2):null},e.pad=function(e,t){for(var o=e+"";o.length<t;)o="0"+o;return o},e.pushAll=function(e,t){this.missing(t)||this.missing(e)||t.forEach((function(t){return e.push(t)}))},e.createArrayOfNumbers=function(e,t){for(var o=[],i=e;i<=t;i++)o.push(i);return o},e.getFunctionParameters=function(e){var t=e.toString().replace(n,""),o=t.slice(t.indexOf("(")+1,t.indexOf(")")).match(r);return null===o?[]:o},e.find=function(e,t,o){if(null==e)return null;if(!Array.isArray(e)){var i=this.values(e);return this.find(i,t,o)}for(var n=e,r=null,s=0;s<n.length;s++){var a=n[s];if("string"==typeof t){if(a[t]===o){r=a;break}}else if(t(a)){r=a;break}}return r},e.toStrings=function(e){return this.map(e,(function(e){return null!=e&&e.toString?e.toString():null}))},e.iterateArray=function(e,t){for(var o=0;o<e.length;o++)t(e[o],o)},e.isNode=function(e){return"function"==typeof Node?e instanceof Node:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},e.isElement=function(e){return"function"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName},e.isNodeOrElement=function(e){return this.isNode(e)||this.isElement(e)},e.copyNodeList=function(e){for(var t=e?e.length:0,o=[],i=0;i<t;i++)o.push(e[i]);return o},e.isEventFromPrintableCharacter=function(o){var n=String.fromCharCode(o.charCode);if(this.isKeyPressed(o,i.Constants.KEY_NEW_LINE))return!1;if(o.altKey||o.ctrlKey)return!1;if(t._.exists(o.key)){var r=1===o.key.length,s=e.isNumpadDelWithNumlockOnForEdgeOrIe(o);return r||s}return e.PRINTABLE_CHARACTERS.indexOf(n)>=0},e.isUserSuppressingKeyboardEvent=function(e,t,o,i,n){var r=e.getSuppressKeyboardEventFunc(),s=i.getColDef().suppressKeyboardEvent;if(!r&&!s)return!1;var a={event:t,editing:n,column:i,api:e.getApi(),node:o,data:o.data,colDef:i.getColDef(),context:e.getContext(),columnApi:e.getColumnApi()};return!(!s||!s(a))||!!r&&r(a)},e.getCellCompForEvent=function(e,t){for(var o=this.getTarget(t);o;){var i=e.getDomData(o,"cellComp");if(i)return i;o=o.parentElement}return null},e.addChangeListener=function(e,t){e.addEventListener("changed",t),e.addEventListener("paste",t),e.addEventListener("input",t),e.addEventListener("keydown",t),e.addEventListener("keyup",t)},e.makeNull=function(e){return null==e||""===e?null:e},e.missing=function(e){return!this.exists(e)},e.missingOrEmpty=function(e){return!e||this.missing(e)||0===e.length},e.missingOrEmptyObject=function(e){return this.missing(e)||0===Object.keys(e).length},e.exists=function(e,t){return void 0===t&&(t=!1),null!=e&&(""!==e||t)},e.firstExistingValue=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];for(var i=0;i<e.length;i++){var n=e[i];if(t._.exists(n))return n}return null},e.anyExists=function(e){if(e)for(var t=0;t<e.length;t++)if(this.exists(e[t]))return!0;return!1},e.existsAndNotEmpty=function(e){return null!=e&&this.exists(e)&&e.length>0},e.clearElement=function(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)},e.removeElement=function(e,t){this.removeFromParent(e.querySelector(t))},e.removeFromParent=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},e.isVisible=function(e){return null!==e.offsetParent},e.loadTemplate=function(e){var t=document.createElement("div");return t.innerHTML=e,t.firstChild},e.appendHtml=function(e,t){e.lastChild?e.insertAdjacentHTML("afterbegin",t):e.innerHTML=t},e.addOrRemoveCssClass=function(e,t,o){o?this.addCssClass(e,t):this.removeCssClass(e,t)},e.callIfPresent=function(e){e&&e()},e.addCssClass=function(e,t){var o=this;if(t&&0!==t.length)if(t.indexOf(" ")>=0)t.split(" ").forEach((function(t){return o.addCssClass(e,t)}));else if(e.classList)e.classList.contains(t)||e.classList.add(t);else if(e.className&&e.className.length>0){var i=e.className.split(" ");i.indexOf(t)<0&&(i.push(t),e.setAttribute("class",i.join(" ")))}else e.setAttribute("class",t)},e.containsClass=function(e,t){if(e.classList)return e.classList.contains(t);if(e.className){var o=e.className===t,i=e.className.indexOf(" "+t+" ")>=0,n=0===e.className.indexOf(t+" "),r=e.className.lastIndexOf(" "+t)===e.className.length-t.length-1;return o||i||n||r}return!1},e.getElementAttribute=function(e,t){return e.attributes&&e.attributes[t]?e.attributes[t].value:null},e.offsetHeight=function(e){return e&&e.clientHeight?e.clientHeight:0},e.offsetWidth=function(e){return e&&e.clientWidth?e.clientWidth:0},e.sortNumberArray=function(e){e.sort((function(e,t){return e-t}))},e.removeCssClass=function(e,t){if(e.classList)e.classList.contains(t)&&e.classList.remove(t);else if(e.className&&e.className.length>0){var o=e.className.split(" ");if(o.indexOf(t)>=0){for(;o.indexOf(t)>=0;)o.splice(o.indexOf(t),1);e.setAttribute("class",o.join(" "))}}},e.removeRepeatsFromArray=function(e,t){if(e)for(var o=e.length-2;o>=0;o--){var i=e[o]===t,n=e[o+1]===t;i&&n&&e.splice(o+1,1)}},e.removeFromArray=function(e,t){e.indexOf(t)>=0&&e.splice(e.indexOf(t),1)},e.removeAllFromArray=function(e,t){t.forEach((function(t){e.indexOf(t)>=0&&e.splice(e.indexOf(t),1)}))},e.insertIntoArray=function(e,t,o){e.splice(o,0,t)},e.insertArrayIntoArray=function(e,t,o){if(!this.missing(e)&&!this.missing(t))for(var i=t.length-1;i>=0;i--){var n=t[i];this.insertIntoArray(e,n,o)}},e.moveInArray=function(e,t,o){var i=this;t.forEach((function(t){i.removeFromArray(e,t)})),t.slice().reverse().forEach((function(t){i.insertIntoArray(e,t,o)}))},e.defaultComparator=function(e,t,o){void 0===o&&(o=!1);var i=null==e,n=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),i&&n)return 0;if(i)return-1;if(n)return 1;if("string"==typeof e){if(!o)return r(e,t);try{return e.localeCompare(t)}catch(o){return r(e,t)}}return e<t?-1:e>t?1:0;function r(e,t){return e>t?1:e<t?-1:0}},e.compareArrays=function(e,t){if(this.missing(e)&&this.missing(t))return!0;if(this.missing(e)||this.missing(t)||!e||!t)return!1;if(e.length!==t.length)return!1;for(var o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0},e.ensureDomOrder=function(e,t,o){o&&o.nextSibling===t||(o?o.nextSibling?e.insertBefore(t,o.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t))},e.insertWithDomOrder=function(e,t,o){o?o.nextSibling?e.insertBefore(t,o.nextSibling):e.appendChild(t):e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)},e.insertTemplateWithDomOrder=function(e,t,o){var i;return o?(o.insertAdjacentHTML("afterend",t),i=o.nextSibling):(e.firstChild?e.insertAdjacentHTML("afterbegin",t):e.innerHTML=t,i=e.firstChild),i},e.every=function(e,t){if(!e||0===e.length)return!0;for(var o=0;o<e.length;o++)if(!t(e[o]))return!1;return!0},e.toStringOrNull=function(e){return this.exists(e)&&e.toString?e.toString():null},e.formatSize=function(e){return"number"==typeof e?e+"px":e},e.formatNumberTwoDecimalPlacesAndCommas=function(e){return"number"!=typeof e?"":(Math.round(100*e)/100).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},e.formatNumberCommas=function(e){return"number"!=typeof e?"":e.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},e.prependDC=function(e,t){this.exists(e.firstChild)?e.insertBefore(t,e.firstChild):e.appendChild(t)},e.createIcon=function(e,t,o){var i=this.createIconNoSpan(e,t,o);if(i.className.indexOf("ag-icon")>-1)return i;var n=document.createElement("span");return n.appendChild(i),n},e.createIconNoSpan=function(e,t,o){var i=null,n=o&&o.getColDef().icons?o.getColDef().icons:null;if(n&&(i=n[e]),!i&&t.getIcons()&&(i=t.getIcons()[e]),i){var r=void 0;if("function"==typeof i)r=i();else{if("string"!=typeof i)throw new Error("icon from grid options needs to be a string or a function");r=i}if("string"==typeof r)return this.loadTemplate(r);if(this.isNodeOrElement(r))return r;throw new Error("iconRenderer should return back a string or a dom object")}var s=document.createElement("span"),a=this.iconNameClassMap[e];if(!a)throw new Error(e+" did not find class");return s.setAttribute("class","ag-icon ag-icon-"+a),s.setAttribute("unselectable","on"),s},e.addStylesToElement=function(e,t){var o=this;t&&Object.keys(t).forEach((function(i){var n=o.hyphenToCamelCase(i);n&&(e.style[n]=t[i])}))},e.isHorizontalScrollShowing=function(e){return e.clientWidth<e.scrollWidth},e.isVerticalScrollShowing=function(e){return e.clientHeight<e.scrollHeight},e.getMaxDivHeight=function(){if(!document.body)return-1;var e=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,o=this.loadTemplate("<div/>");for(document.body.appendChild(o);;){var i=2*e;if(o.style.height=i+"px",i>t||o.clientHeight!==i)break;e=i}return document.body.removeChild(o),e},e.getScrollbarWidth=function(){var e=document.createElement("div");e.style.visibility="hidden",e.style.width="100px",e.style.msOverflowStyle="scrollbar",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var o=document.createElement("div");o.style.width="100%",e.appendChild(o);var i=o.offsetWidth;return e.parentNode&&e.parentNode.removeChild(e),t-i},e.hasOverflowScrolling=function(){var e=["webkit","moz","o","ms"],t=document.createElement("div"),o=!1;document.getElementsByTagName("body")[0].appendChild(t),t.setAttribute("style",e.map((function(e){return"-"+e+"-overflow-scrolling: touch"})).concat("overflow-scrolling: touch").join(";"));var i=window.getComputedStyle(t);if("touch"===i.overflowScrolling&&(o=!0),!o)for(var n=0,r=e;n<r.length;n++)if("touch"===i[r[n]+"OverflowScrolling"]){o=!0;break}return t.parentNode&&t.parentNode.removeChild(t),o},e.isKeyPressed=function(e,t){return(e.which||e.keyCode)===t},e.setVisible=function(e,t){this.addOrRemoveCssClass(e,"ag-hidden",!t)},e.setHidden=function(e,t){this.addOrRemoveCssClass(e,"ag-invisible",t)},e.setFixedWidth=function(e,t){t=this.formatSize(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t},e.setFixedHeight=function(e,t){t=this.formatSize(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t},e.isBrowserIE=function(){return void 0===this.isIE&&(this.isIE=!!document.documentMode),this.isIE},e.isBrowserEdge=function(){return void 0===this.isEdge&&(this.isEdge=!this.isBrowserIE()&&!!window.StyleMedia),this.isEdge},e.isBrowserSafari=function(){if(void 0===this.isSafari){var e=window;this.isSafari=Object.prototype.toString.call(e.HTMLElement).indexOf("Constructor")>0||!!(t=!e.safari||e.safari.pushNotification)&&"[object SafariRemoteNotification]"===t.toString()}var t;return this.isSafari},e.isBrowserChrome=function(){if(void 0===this.isChrome){var e=window;this.isChrome=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return this.isChrome},e.isBrowserFirefox=function(){if(void 0===this.isFirefox){var e=window;this.isFirefox=void 0!==e.InstallTrigger}return this.isFirefox},e.isUserAgentIPad=function(){return void 0===this.isIPad&&(this.isIPad=null!=navigator.userAgent.match(/iPad|iPhone/i)),this.isIPad},e.getTarget=function(e){var t=e;return t.target||t.srcElement},e.isElementChildOfClass=function(e,t,o){for(var i=0;e;){if(this.containsClass(e,t))return!0;if(e=e.parentElement,o&&++i>o)break}return!1},e.isElementInEventPath=function(e,o){return!(!o||!e)&&t._.getEventPath(o).indexOf(e)>=0},e.isFunction=function(e){return!!(e&&e.constructor&&e.call&&e.apply)},e.createEventPath=function(e){for(var o=[],i=t._.getTarget(e);i;)o.push(i),i=i.parentElement;return o},e.addAgGridEventPath=function(e){e.__agGridEventPath=this.getEventPath(e)},e.getEventPath=function(e){var t=e;return t.deepPath?t.deepPath():t.path?t.path:t.composedPath?t.composedPath():t.__agGridEventPath?t.__agGridEventPath:this.createEventPath(e)},e.forEachSnapshotFirst=function(e,t){e&&e.slice(0).forEach(t)},e.getBodyWidth=function(){return document.body?document.body.clientWidth:window.innerHeight?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:-1},e.getBodyHeight=function(){return document.body?document.body.clientHeight:window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:-1},e.setCheckboxState=function(e,t){"boolean"==typeof t?(e.checked=t,e.indeterminate=!1):e.indeterminate=!0},e.traverseNodesWithKey=function(e,t){var o=[];!function e(i){i.forEach((function(i){if(i.group||i.hasChildren()){o.push(i.key);var n=o.join("|");t(i,n),e(i.childrenAfterGroup),o.pop()}}))}(e)},e.camelCaseToHyphen=function(e){return null==e?null:e.replace(/([A-Z])/g,(function(e){return"-"+e[0].toLowerCase()}))},e.hyphenToCamelCase=function(e){return null==e?null:e.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))},e.cssStyleObjectToMarkup=function(e){var t=this;if(!e)return"";var o=[];return this.iterateObject(e,(function(e,i){var n=t.camelCaseToHyphen(e);o.push(n+": "+i+";")})),o.join(" ")},e.isNumeric=function(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)},e.escape=function(e){return null!=e&&e.replace?e.replace(p,(function(e){return l[e]})):e},e.normalizeWheel=function(e){var t=0,o=0,i=0,n=0;return"detail"in e&&(o=e.detail),"wheelDelta"in e&&(o=-e.wheelDelta/120),"wheelDeltaY"in e&&(o=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=o,o=0),i=10*t,n=10*o,"deltaY"in e&&(n=e.deltaY),"deltaX"in e&&(i=e.deltaX),(i||n)&&e.deltaMode&&(1==e.deltaMode?(i*=40,n*=40):(i*=800,n*=800)),i&&!t&&(t=i<1?-1:1),n&&!o&&(o=n<1?-1:1),{spinX:t,spinY:o,pixelX:i,pixelY:n}},e.debounce=function(e,t,o){var i;return void 0===o&&(o=!1),function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var s=this,a=o&&!i;window.clearTimeout(i),i=window.setTimeout((function(){i=null,o||e.apply(s,n)}),t),a&&e.apply(s,n)}},e.stopPropagationForAgGrid=function(e){e[s]=!0},e.isStopPropagationForAgGrid=function(e){return!0===e[s]},e.executeInAWhile=function(e){this.executeAfter(e,400)},e.executeNextVMTurn=function(e){this.executeAfter(e,0)},e.executeAfter=function(e,t){e.length>0&&window.setTimeout((function(){e.forEach((function(e){return e()}))}),t)},e.referenceCompare=function(e,t){return null==e&&null==t||(null!=e||!t)&&(!e||null!=t)&&e===t},e.get=function(t,o,i){if(null==t)return i;if(o.indexOf(".")>-1){var n=o.split(".");return null!=(r=t[n[0]])?e.get(r,n.slice(1,n.length).join("."),i):i}var r;return null!=(r=t[o])?r:i},e.addSafePassiveEventListener=function(t,o,i,n){-1!==e.passiveEvents.indexOf(o)&&(void 0===n?n={}:"boolean"==typeof n&&(n={capture:n}),n.passive=!0),t.addEventListener(o,i,n)},e.camelCaseToHumanText=function(e){return e&&null!=e?e.replace(/([A-Z])([A-Z])([a-z])|([a-z])([A-Z])/g,"$1$4 $2$3$5").replace("."," ").split(" ").map((function(e){return e.substring(0,1).toUpperCase()+(e.length>1?e.substring(1,e.length):"")})).join(" "):null},e.message=function(e){var t=document.createElement("div");t.innerHTML=e;var o=document.querySelector("#__ag__message");o||(o=this.loadTemplate('<div id="__ag__message" style="display: inline-block; position: absolute; top: 0px; left: 0px; color: white; background-color: black; z-index: 20; padding: 2px; border: 1px solid darkred; height: 200px; overflow-y: auto;"></div>'),document.body&&document.body.appendChild(o)),o.insertBefore(t,o.children[0])},e.sortRowNodesByOrder=function(e,t){if(e){for(var o=function(e,o){var i=t[e.id],n=t[o.id],r=void 0!==i,s=void 0!==n;return r&&s?i-n:r||s?r?1:-1:e.__objectId-o.__objectId},i=!1,n=0;n<e.length-1;n++)if(o(e[n],e[n+1])>0){i=!0;break}i&&e.sort(o)}},e.fuzzyCheckStrings=function(e,t,o){var i=this,n={},r=e.filter((function(e){return!t.some((function(t){return t===e}))}));return r.length>0&&r.forEach((function(e){return n[e]=i.fuzzySuggestions(e,t,o)})),n},e.fuzzySuggestions=function(e,o,i){var n=i.slice(0);return n.sort((function(o,i){var n=t._.string_similarity(o.toLowerCase(),e.toLowerCase()),r=t._.string_similarity(i.toLowerCase(),e.toLowerCase());return n>r?-1:n===r?0:1})),n},e.get_bigrams=function(e){var t,o,i,n=e.toLowerCase(),r=new Array(n.length-1);for(t=o=0,i=r.length;o<=i;t=o+=1)r[t]=n.slice(t,t+2);return r},e.isNumpadDelWithNumlockOnForEdgeOrIe=function(t){return!(!e.isBrowserEdge()&&!e.isBrowserIE())&&t.key===e.NUMPAD_DEL_NUMLOCK_ON_KEY&&t.charCode===e.NUMPAD_DEL_NUMLOCK_ON_CHARCODE},e.bindCellRendererToHtmlElement=function(e,t){e.then((function(e){var o=e.getGui();null!=o&&("object"==typeof o?t.appendChild(o):t.innerHTML=o)}))},e.PRINTABLE_CHARACTERS="qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890!\"£$%^&*()_+-=[];'#,./\\|<>?:@~{}",e.NUMPAD_DEL_NUMLOCK_ON_KEY="Del",e.NUMPAD_DEL_NUMLOCK_ON_CHARCODE=46,e.doOnceFlags={},e.compose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduce((function(e,t){return t(e)}),t)}},e.decToHex=function(e,t){for(var o="",i=0;i<t;i++)o+=String.fromCharCode(255&e),e>>>=8;return o},e.utf8_encode=function(e){for(var t="",o=0,i=(e=e.replace(/\r\n/g,"\n")).length;o<i;o++){var n=e.charCodeAt(o);n<128?t+=String.fromCharCode(n):n>127&&n<2048?(t+=String.fromCharCode(n>>6|192),t+=String.fromCharCode(63&n|128)):(t+=String.fromCharCode(n>>12|224),t+=String.fromCharCode(n>>6&63|128),t+=String.fromCharCode(63&n|128))}return t},e.iconNameClassMap={columnGroupOpened:"expanded",columnGroupClosed:"contracted",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnMovePin:"pin",columnMoveAdd:"plus",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",groupContracted:"expanded",groupExpanded:"contracted",checkboxChecked:"checkbox-checked",checkboxUnchecked:"checkbox-unchecked",checkboxIndeterminate:"checkbox-indeterminate",checkboxCheckedReadOnly:"checkbox-checked-readonly",checkboxUncheckedReadOnly:"checkbox-unchecked-readonly",checkboxIndeterminateReadOnly:"checkbox-indeterminate-readonly",groupLoading:"loading",menu:"menu",filter:"filter",columns:"columns",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardCut:"cut",clipboardPaste:"paste",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnDrag:"column-drag",rowDrag:"row-drag",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"},e.passiveEvents=["touchstart","touchend","touchmove","touchcancel"],e.string_similarity=function(t,o){if(t.length>0&&o.length>0){var i,n=e.get_bigrams(t),r=e.get_bigrams(o),s=n.length+r.length,a=0,l=void 0;for(l=0,i=n.length;l<i;l++){var p,u=n[l],c=void 0;for(c=0,p=r.length;c<p;c++)u===r[c]&&a++}if(a>0)return 2*a/s}return 0},e}();t.Utils=u;var c,d=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=1),this.nextValue=e,this.step=t}return e.prototype.next=function(){var e=this.nextValue;return this.nextValue+=this.step,e},e.prototype.peek=function(){return this.nextValue},e.prototype.skip=function(e){this.nextValue+=e},e}();t.NumberSequence=d,t._=u,function(e){e[e.IN_PROGRESS=0]="IN_PROGRESS",e[e.RESOLVED=1]="RESOLVED"}(c=t.PromiseStatus||(t.PromiseStatus={}));var h=function(){function e(e){this.status=c.IN_PROGRESS,this.resolution=null,this.listOfWaiters=[],e(this.onDone.bind(this),this.onReject.bind(this))}return e.all=function(t){return new e((function(e){var o=[],i=t.length;t.forEach((function(t,n){t.then((function(t){i--,o[n]=t,0==i&&e(o)})),o.push(null)}))}))},e.resolve=function(t){return new e((function(e){return e(t)}))},e.external=function(){var t;return{promise:new e((function(e){t=e})),resolve:function(e){t(e)}}},e.prototype.then=function(e){this.status===c.IN_PROGRESS?this.listOfWaiters.push(e):e(this.resolution)},e.prototype.firstOneOnly=function(e){this.status===c.IN_PROGRESS?0===this.listOfWaiters.length&&this.listOfWaiters.push(e):e(this.resolution)},e.prototype.map=function(t){var o=this;return new e((function(e){o.then((function(o){e(t(o))}))}))},e.prototype.resolveNow=function(e,t){return this.status==c.IN_PROGRESS?e:t(this.resolution)},e.prototype.onDone=function(e){this.status=c.RESOLVED,this.resolution=e,this.listOfWaiters.forEach((function(t){return t(e)}))},e.prototype.onReject=function(e){console.warn("TBI")},e}();t.Promise=h},83684:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(96652),l=o(46410),p=o(4855),u=o(47008),c=o(47008),d=o(85397),h=o(75449),f=o(43389),g=o(2102),m=function(e){function t(t,o){var i=e.call(this,t,o)||this;return i.props=t,i.state=o,i.destroyed=!1,i.changeDetectionService=new f.ChangeDetectionService,i.api=null,i.portals=[],i.hasPendingPortalUpdate=!1,i}return n(t,e),t.prototype.render=function(){var e=this;return a.createElement("div",{style:this.createStyleForDiv(),ref:function(t){e.eGridDiv=t}},this.portals)},t.prototype.createStyleForDiv=function(){var e={height:"100%"},t=this.props.containerStyle;return t&&Object.keys(t).forEach((function(o){e[o]=t[o]})),e},t.prototype.componentDidMount=function(){var e={seedBeanInstances:{agGridReact:this}},t=this.props.gridOptions||{};d.AgGridColumn.hasChildColumns(this.props)&&(t.columnDefs=d.AgGridColumn.mapChildColumnDefs(this.props)),this.gridOptions=u.ComponentUtil.copyAttributesToGridOptions(t,this.props),new u.Grid(this.eGridDiv,this.gridOptions,e),this.api=this.gridOptions.api,this.columnApi=this.gridOptions.columnApi},t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.waitForInstance=function(e,o,i){var n=this;if(void 0===i&&(i=0),e.getFrameworkComponentInstance()||e.isStatelesComponent())o(null);else{if(i>=t.MAX_COMPONENT_CREATION_TIME)return void console.error("ag-Grid: React Component '"+e.getReactComponentName()+"' not created within "+t.MAX_COMPONENT_CREATION_TIME+"ms");window.setTimeout((function(){return n.waitForInstance(e,o,i+5)}),5)}},t.prototype.mountReactPortal=function(e,t,o){this.portals=this.portals.concat([e]),this.batchUpdate(this.waitForInstance(t,o))},t.prototype.batchUpdate=function(e){var t=this;if(this.hasPendingPortalUpdate)return e&&e();setTimeout((function(){t.api&&t.forceUpdate((function(){e&&e(),t.hasPendingPortalUpdate=!1}))})),this.hasPendingPortalUpdate=!0},t.prototype.destroyPortal=function(e){this.portals=this.portals.filter((function(t){return t!==e})),this.batchUpdate()},t.prototype.getStrategyTypeForProp=function(e){if("rowData"===e){if(this.props.rowDataChangeDetectionStrategy)return this.props.rowDataChangeDetectionStrategy;if(this.props.deltaRowDataMode)return f.ChangeDetectionStrategyType.IdentityCheck}return f.ChangeDetectionStrategyType.DeepValueCheck},t.prototype.componentWillReceiveProps=function(e){var t=this,o=!!e.debug,i={};Object.keys(e).forEach((function(n){-1!==u.ComponentUtil.ALL_PROPERTIES.indexOf(n)&&(t.changeDetectionService.getStrategy(t.getStrategyTypeForProp(n)).areEqual(t.props[n],e[n])||(o&&console.log("agGridReact: ["+n+"] property changed"),i[n]={previousValue:t.props[n],currentValue:e[n]}))})),u.ComponentUtil.getEventCallbacks().forEach((function(n){t.props[n]!==e[n]&&(o&&console.log("agGridReact: ["+n+"] event callback changed"),i[n]={previousValue:t.props[n],currentValue:e[n]})})),u.ComponentUtil.processOnChange(i,this.gridOptions,this.api,this.columnApi)},t.prototype.componentWillUnmount=function(){this.api&&(this.api.destroy(),this.api=null)},t.MAX_COMPONENT_CREATION_TIME=1e3,t}(a.Component);function y(e,t){e.forEach((function(e){m[e]=t}))}t.AgGridReact=m,m.propTypes={gridOptions:p.object},y(u.ComponentUtil.getEventCallbacks(),p.func),y(u.ComponentUtil.BOOLEAN_PROPERTIES,p.bool),y(u.ComponentUtil.STRING_PROPERTIES,p.string),y(u.ComponentUtil.OBJECT_PROPERTIES,p.object),y(u.ComponentUtil.ARRAY_PROPERTIES,p.array),y(u.ComponentUtil.NUMBER_PROPERTIES,p.number),y(u.ComponentUtil.FUNCTION_PROPERTIES,p.func);var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.createWrapper=function(e){return this.useLegacyReact()?new g.LegacyReactComponent(e,this.agGridReact):new h.ReactComponent(e,this.agGridReact)},t.prototype.useLegacyReact=function(){return"function"!=typeof l.unstable_renderSubtreeIntoContainer||this.agGridReact&&this.agGridReact.gridOptions&&!this.agGridReact.gridOptions.reactNext},r([c.Autowired("agGridReact"),s("design:type",m)],t.prototype,"agGridReact",void 0),r([c.Bean("frameworkComponentWrapper")],t)}(c.BaseComponentWrapper);u.Grid.setFrameworkBeans([v])},84210:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(44329),a=o(37132),l=o(72493),p=o(83423),u=function(){function e(e,t){this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0,this.maxConcurrentRequests=e,t&&t>0&&(this.checkBlockToLoadDebounce=p._.debounce(this.performCheckBlocksToLoad.bind(this),t))}return e.prototype.setBeans=function(e){this.logger=e.create("RowNodeBlockLoader")},e.prototype.addBlock=function(e){this.blocks.push(e)},e.prototype.removeBlock=function(e){p._.removeFromArray(this.blocks,e)},e.prototype.destroy=function(){this.active=!1},e.prototype.loadComplete=function(){this.activeBlockLoadsCount--},e.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},e.prototype.performCheckBlocksToLoad=function(){if(this.active)if(this.printCacheStatus(),this.activeBlockLoadsCount>=this.maxConcurrentRequests)this.logger.log("checkBlockToLoad: max loads exceeded");else{var e=null;this.blocks.forEach((function(t){t.getState()===s.RowNodeBlock.STATE_DIRTY&&(e=t)})),e?(e.load(),this.activeBlockLoadsCount++,this.logger.log("checkBlockToLoad: loading page "+e.getBlockNumber()),this.printCacheStatus()):this.logger.log("checkBlockToLoad: no pages to load")}},e.prototype.getBlockState=function(){var e={};return this.blocks.forEach((function(t){var o=t.getNodeIdPrefix(),i={blockNumber:t.getBlockNumber(),startRow:t.getStartRow(),endRow:t.getEndRow(),pageStatus:t.getState()};p._.exists(o)?e[o+t.getBlockNumber()]=i:e[t.getBlockNumber()]=i})),e},e.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},i([r(0,l.Qualifier("loggerFactory")),n("design:type",Function),n("design:paramtypes",[a.LoggerFactory]),n("design:returntype",void 0)],e.prototype,"setBeans",null),e}();t.RowNodeBlockLoader=u},84537:function(e,t){!function(e){var t=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],o=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],i="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",n={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},r="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",s={5:r,"5module":r+" export import",6:r+" const class extends export import super"},a=/^in(stanceof)?$/,l=new RegExp("["+i+"]"),p=new RegExp("["+i+"·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function u(e,t){for(var o=65536,i=0;i<t.length;i+=2){if((o+=t[i])>e)return!1;if((o+=t[i+1])>=e)return!0}return!1}function c(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&l.test(String.fromCharCode(e)):!1!==t&&u(e,o)))}function d(e,i){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&p.test(String.fromCharCode(e)):!1!==i&&(u(e,o)||u(e,t)))))}var h=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function f(e,t){return new h(e,{beforeExpr:!0,binop:t})}var g={beforeExpr:!0},m={startsExpr:!0},y={};function v(e,t){return void 0===t&&(t={}),t.keyword=e,y[e]=new h(e,t)}var C={num:new h("num",m),regexp:new h("regexp",m),string:new h("string",m),name:new h("name",m),privateId:new h("privateId",m),eof:new h("eof"),bracketL:new h("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new h("]"),braceL:new h("{",{beforeExpr:!0,startsExpr:!0}),braceR:new h("}"),parenL:new h("(",{beforeExpr:!0,startsExpr:!0}),parenR:new h(")"),comma:new h(",",g),semi:new h(";",g),colon:new h(":",g),dot:new h("."),question:new h("?",g),questionDot:new h("?."),arrow:new h("=>",g),template:new h("template"),invalidTemplate:new h("invalidTemplate"),ellipsis:new h("...",g),backQuote:new h("`",m),dollarBraceL:new h("${",{beforeExpr:!0,startsExpr:!0}),eq:new h("=",{beforeExpr:!0,isAssign:!0}),assign:new h("_=",{beforeExpr:!0,isAssign:!0}),incDec:new h("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new h("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:f("||",1),logicalAND:f("&&",2),bitwiseOR:f("|",3),bitwiseXOR:f("^",4),bitwiseAND:f("&",5),equality:f("==/!=/===/!==",6),relational:f("</>/<=/>=",7),bitShift:f("<</>>/>>>",8),plusMin:new h("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:f("%",10),star:f("*",10),slash:f("/",10),starstar:new h("**",{beforeExpr:!0}),coalesce:f("??",1),_break:v("break"),_case:v("case",g),_catch:v("catch"),_continue:v("continue"),_debugger:v("debugger"),_default:v("default",g),_do:v("do",{isLoop:!0,beforeExpr:!0}),_else:v("else",g),_finally:v("finally"),_for:v("for",{isLoop:!0}),_function:v("function",m),_if:v("if"),_return:v("return",g),_switch:v("switch"),_throw:v("throw",g),_try:v("try"),_var:v("var"),_const:v("const"),_while:v("while",{isLoop:!0}),_with:v("with"),_new:v("new",{beforeExpr:!0,startsExpr:!0}),_this:v("this",m),_super:v("super",m),_class:v("class",m),_extends:v("extends",g),_export:v("export"),_import:v("import",m),_null:v("null",m),_true:v("true",m),_false:v("false",m),_in:v("in",{beforeExpr:!0,binop:7}),_instanceof:v("instanceof",{beforeExpr:!0,binop:7}),_typeof:v("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:v("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:v("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},w=/\r\n?|\n|\u2028|\u2029/,E=new RegExp(w.source,"g");function _(e){return 10===e||13===e||8232===e||8233===e}function b(e,t,o){void 0===o&&(o=e.length);for(var i=t;i<o;i++){var n=e.charCodeAt(i);if(_(n))return i<o-1&&13===n&&10===e.charCodeAt(i+1)?i+2:i+1}return-1}var R=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,O=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,S=Object.prototype,A=S.hasOwnProperty,P=S.toString,T=Object.hasOwn||function(e,t){return A.call(e,t)},D=Array.isArray||function(e){return"[object Array]"===P.call(e)},N=Object.create(null);function x(e){return N[e]||(N[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function I(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}var F=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,L=function(e,t){this.line=e,this.column=t};L.prototype.offset=function(e){return new L(this.line,this.column+e)};var k=function(e,t,o){this.start=t,this.end=o,null!==e.sourceFile&&(this.source=e.sourceFile)};function M(e,t){for(var o=1,i=0;;){var n=b(e,i,t);if(n<0)return new L(o,t-i);++o,i=n}}var G={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},V=!1;function W(e){var t={};for(var o in G)t[o]=e&&T(e,o)?e[o]:G[o];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!V&&"object"==typeof console&&console.warn&&(V=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),e&&null!=e.allowHashBang||(t.allowHashBang=t.ecmaVersion>=14),D(t.onToken)){var i=t.onToken;t.onToken=function(e){return i.push(e)}}return D(t.onComment)&&(t.onComment=function(e,t){return function(o,i,n,r,s,a){var l={type:o?"Block":"Line",value:i,start:n,end:r};e.locations&&(l.loc=new k(this,s,a)),e.ranges&&(l.range=[n,r]),t.push(l)}}(t,t.onComment)),t}var H=256,j=259;function B(e,t){return 2|(e?4:0)|(t?8:0)}var U=function(e,t,o){this.options=e=W(e),this.sourceFile=e.sourceFile,this.keywords=x(s[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var i="";!0!==e.allowReserved&&(i=n[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(i+=" await")),this.reservedWords=x(i);var r=(i?i+" ":"")+n.strict;this.reservedWordsStrict=x(r),this.reservedWordsStrictBind=x(r+" "+n.strictBind),this.input=String(t),this.containsEsc=!1,o?(this.pos=o,this.lineStart=this.input.lastIndexOf("\n",o-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(w).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=C.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},Y={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};U.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},Y.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Y.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},Y.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},Y.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(768&t)return!1;if(2&t)return(4&t)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Y.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0||this.options.allowSuperOutsideMethod},Y.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Y.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Y.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(768&t||2&t&&!(16&t))return!0}return!1},Y.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&H)>0},U.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var o=this,i=0;i<e.length;i++)o=e[i](o);return o},U.parse=function(e,t){return new this(t,e).parse()},U.parseExpressionAt=function(e,t,o){var i=new this(o,e,t);return i.nextToken(),i.parseExpression()},U.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(U.prototype,Y);var z=U.prototype,q=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;z.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){O.lastIndex=e,e+=O.exec(this.input)[0].length;var t=q.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){O.lastIndex=e+t[0].length;var o=O.exec(this.input),i=o.index+o[0].length,n=this.input.charAt(i);return";"===n||"}"===n||w.test(o[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(n)||"!"===n&&"="===this.input.charAt(i+1))}e+=t[0].length,O.lastIndex=e,e+=O.exec(this.input)[0].length,";"===this.input[e]&&e++}},z.eat=function(e){return this.type===e&&(this.next(),!0)},z.isContextual=function(e){return this.type===C.name&&this.value===e&&!this.containsEsc},z.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},z.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},z.canInsertSemicolon=function(){return this.type===C.eof||this.type===C.braceR||w.test(this.input.slice(this.lastTokEnd,this.start))},z.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},z.semicolon=function(){this.eat(C.semi)||this.insertSemicolon()||this.unexpected()},z.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},z.expect=function(e){this.eat(e)||this.unexpected()},z.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var K=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};z.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var o=t?e.parenthesizedAssign:e.parenthesizedBind;o>-1&&this.raiseRecoverable(o,t?"Assigning to rvalue":"Parenthesized pattern")}},z.checkExpressionErrors=function(e,t){if(!e)return!1;var o=e.shorthandAssign,i=e.doubleProto;if(!t)return o>=0||i>=0;o>=0&&this.raise(o,"Shorthand property assignments are valid only in destructuring patterns"),i>=0&&this.raiseRecoverable(i,"Redefinition of __proto__ property")},z.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},z.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var $=U.prototype;$.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==C.eof;){var o=this.parseStatement(null,!0,t);e.body.push(o)}if(this.inModule)for(var i=0,n=Object.keys(this.undefinedExports);i<n.length;i+=1){var r=n[i];this.raiseRecoverable(this.undefinedExports[r].start,"Export '"+r+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var Z={kind:"loop"},Q={kind:"switch"};$.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;O.lastIndex=this.pos;var t=O.exec(this.input),o=this.pos+t[0].length,i=this.input.charCodeAt(o);if(91===i||92===i)return!0;if(e)return!1;if(123===i||i>55295&&i<56320)return!0;if(c(i,!0)){for(var n=o+1;d(i=this.input.charCodeAt(n),!0);)++n;if(92===i||i>55295&&i<56320)return!0;var r=this.input.slice(o,n);if(!a.test(r))return!0}return!1},$.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;O.lastIndex=this.pos;var e,t=O.exec(this.input),o=this.pos+t[0].length;return!(w.test(this.input.slice(this.pos,o))||"function"!==this.input.slice(o,o+8)||o+8!==this.input.length&&(d(e=this.input.charCodeAt(o+8))||e>55295&&e<56320))},$.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;O.lastIndex=this.pos;var o=O.exec(this.input),i=this.pos+o[0].length;if(w.test(this.input.slice(this.pos,i)))return!1;if(e){var n,r=i+5;if("using"!==this.input.slice(i,r)||r===this.input.length||d(n=this.input.charCodeAt(r))||n>55295&&n<56320)return!1;O.lastIndex=r;var s=O.exec(this.input);if(s&&w.test(this.input.slice(r,r+s[0].length)))return!1}if(t){var a,l=i+2;if(!("of"!==this.input.slice(i,l)||l!==this.input.length&&(d(a=this.input.charCodeAt(l))||a>55295&&a<56320)))return!1}var p=this.input.charCodeAt(i);return c(p,!0)||92===p},$.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)},$.isUsing=function(e){return this.isUsingKeyword(!1,e)},$.parseStatement=function(e,t,o){var i,n=this.type,r=this.startNode();switch(this.isLet(e)&&(n=C._var,i="let"),n){case C._break:case C._continue:return this.parseBreakContinueStatement(r,n.keyword);case C._debugger:return this.parseDebuggerStatement(r);case C._do:return this.parseDoStatement(r);case C._for:return this.parseForStatement(r);case C._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(r,!1,!e);case C._class:return e&&this.unexpected(),this.parseClass(r,!0);case C._if:return this.parseIfStatement(r);case C._return:return this.parseReturnStatement(r);case C._switch:return this.parseSwitchStatement(r);case C._throw:return this.parseThrowStatement(r);case C._try:return this.parseTryStatement(r);case C._const:case C._var:return i=i||this.value,e&&"var"!==i&&this.unexpected(),this.parseVarStatement(r,i);case C._while:return this.parseWhileStatement(r);case C._with:return this.parseWithStatement(r);case C.braceL:return this.parseBlock(!0,r);case C.semi:return this.parseEmptyStatement(r);case C._export:case C._import:if(this.options.ecmaVersion>10&&n===C._import){O.lastIndex=this.pos;var s=O.exec(this.input),a=this.pos+s[0].length,l=this.input.charCodeAt(a);if(40===l||46===l)return this.parseExpressionStatement(r,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),n===C._import?this.parseImport(r):this.parseExport(r,o);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(r,!0,!e);var p=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(p)return t&&"script"===this.options.sourceType&&this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`"),"await using"===p&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(r,!1,p),this.semicolon(),this.finishNode(r,"VariableDeclaration");var u=this.value,c=this.parseExpression();return n===C.name&&"Identifier"===c.type&&this.eat(C.colon)?this.parseLabeledStatement(r,u,c,e):this.parseExpressionStatement(r,c)}},$.parseBreakContinueStatement=function(e,t){var o="break"===t;this.next(),this.eat(C.semi)||this.insertSemicolon()?e.label=null:this.type!==C.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var i=0;i<this.labels.length;++i){var n=this.labels[i];if(null==e.label||n.name===e.label.name){if(null!=n.kind&&(o||"loop"===n.kind))break;if(e.label&&o)break}}return i===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,o?"BreakStatement":"ContinueStatement")},$.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},$.parseDoStatement=function(e){return this.next(),this.labels.push(Z),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(C._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(C.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},$.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Z),this.enterScope(0),this.expect(C.parenL),this.type===C.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var o=this.isLet();if(this.type===C._var||this.type===C._const||o){var i=this.startNode(),n=o?"let":this.value;return this.next(),this.parseVar(i,!0,n),this.finishNode(i,"VariableDeclaration"),this.parseForAfterInit(e,i,t)}var r=this.isContextual("let"),s=!1,a=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(a){var l=this.startNode();return this.next(),"await using"===a&&this.next(),this.parseVar(l,!0,a),this.finishNode(l,"VariableDeclaration"),this.parseForAfterInit(e,l,t)}var p=this.containsEsc,u=new K,c=this.start,d=t>-1?this.parseExprSubscripts(u,"await"):this.parseExpression(!0,u);return this.type===C._in||(s=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===C._in&&this.unexpected(t),e.await=!0):s&&this.options.ecmaVersion>=8&&(d.start!==c||p||"Identifier"!==d.type||"async"!==d.name?this.options.ecmaVersion>=9&&(e.await=!1):this.unexpected()),r&&s&&this.raise(d.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(d,!1,u),this.checkLValPattern(d),this.parseForIn(e,d)):(this.checkExpressionErrors(u,!0),t>-1&&this.unexpected(t),this.parseFor(e,d))},$.parseForAfterInit=function(e,t,o){return(this.type===C._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===t.declarations.length?(this.options.ecmaVersion>=9&&(this.type===C._in?o>-1&&this.unexpected(o):e.await=o>-1),this.parseForIn(e,t)):(o>-1&&this.unexpected(o),this.parseFor(e,t))},$.parseFunctionStatement=function(e,t,o){return this.next(),this.parseFunction(e,J|(o?0:ee),!1,t)},$.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(C._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},$.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(C.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},$.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(C.braceL),this.labels.push(Q),this.enterScope(0);for(var o=!1;this.type!==C.braceR;)if(this.type===C._case||this.type===C._default){var i=this.type===C._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),i?t.test=this.parseExpression():(o&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),o=!0,t.test=null),this.expect(C.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},$.parseThrowStatement=function(e){return this.next(),w.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var X=[];$.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?32:0),this.checkLValPattern(e,t?4:2),this.expect(C.parenR),e},$.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===C._catch){var t=this.startNode();this.next(),this.eat(C.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(C._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},$.parseVarStatement=function(e,t,o){return this.next(),this.parseVar(e,!1,t,o),this.semicolon(),this.finishNode(e,"VariableDeclaration")},$.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Z),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},$.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},$.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},$.parseLabeledStatement=function(e,t,o,i){for(var n=0,r=this.labels;n<r.length;n+=1)r[n].name===t&&this.raise(o.start,"Label '"+t+"' is already declared");for(var s=this.type.isLoop?"loop":this.type===C._switch?"switch":null,a=this.labels.length-1;a>=0;a--){var l=this.labels[a];if(l.statementStart!==e.start)break;l.statementStart=this.start,l.kind=s}return this.labels.push({name:t,kind:s,statementStart:this.start}),e.body=this.parseStatement(i?-1===i.indexOf("label")?i+"label":i:"label"),this.labels.pop(),e.label=o,this.finishNode(e,"LabeledStatement")},$.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},$.parseBlock=function(e,t,o){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(C.braceL),e&&this.enterScope(0);this.type!==C.braceR;){var i=this.parseStatement(null);t.body.push(i)}return o&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},$.parseFor=function(e,t){return e.init=t,this.expect(C.semi),e.test=this.type===C.semi?null:this.parseExpression(),this.expect(C.semi),e.update=this.type===C.parenR?null:this.parseExpression(),this.expect(C.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},$.parseForIn=function(e,t){var o=this.type===C._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!o||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(o?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=o?this.parseExpression():this.parseMaybeAssign(),this.expect(C.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,o?"ForInStatement":"ForOfStatement")},$.parseVar=function(e,t,o,i){for(e.declarations=[],e.kind=o;;){var n=this.startNode();if(this.parseVarId(n,o),this.eat(C.eq)?n.init=this.parseMaybeAssign(t):i||"const"!==o||this.type===C._in||this.options.ecmaVersion>=6&&this.isContextual("of")?i||"using"!==o&&"await using"!==o||!(this.options.ecmaVersion>=17)||this.type===C._in||this.isContextual("of")?i||"Identifier"===n.id.type||t&&(this.type===C._in||this.isContextual("of"))?n.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.raise(this.lastTokEnd,"Missing initializer in "+o+" declaration"):this.unexpected(),e.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(C.comma))break}return e},$.parseVarId=function(e,t){e.id="using"===t||"await using"===t?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var J=1,ee=2;function te(e,t){var o=t.key.name,i=e[o],n="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(n=(t.static?"s":"i")+t.kind),"iget"===i&&"iset"===n||"iset"===i&&"iget"===n||"sget"===i&&"sset"===n||"sset"===i&&"sget"===n?(e[o]="true",!1):!!i||(e[o]=n,!1)}function oe(e,t){var o=e.computed,i=e.key;return!o&&("Identifier"===i.type&&i.name===t||"Literal"===i.type&&i.value===t)}$.parseFunction=function(e,t,o,i,n){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i)&&(this.type===C.star&&t&ee&&this.unexpected(),e.generator=this.eat(C.star)),this.options.ecmaVersion>=8&&(e.async=!!i),t&J&&(e.id=4&t&&this.type!==C.name?null:this.parseIdent(),!e.id||t&ee||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var r=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(B(e.async,e.generator)),t&J||(e.id=this.type===C.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,o,!1,n),this.yieldPos=r,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(e,t&J?"FunctionDeclaration":"FunctionExpression")},$.parseFunctionParams=function(e){this.expect(C.parenL),e.params=this.parseBindingList(C.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},$.parseClass=function(e,t){this.next();var o=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var i=this.enterClassBody(),n=this.startNode(),r=!1;for(n.body=[],this.expect(C.braceL);this.type!==C.braceR;){var s=this.parseClassElement(null!==e.superClass);s&&(n.body.push(s),"MethodDefinition"===s.type&&"constructor"===s.kind?(r&&this.raiseRecoverable(s.start,"Duplicate constructor in the same class"),r=!0):s.key&&"PrivateIdentifier"===s.key.type&&te(i,s)&&this.raiseRecoverable(s.key.start,"Identifier '#"+s.key.name+"' has already been declared"))}return this.strict=o,this.next(),e.body=this.finishNode(n,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},$.parseClassElement=function(e){if(this.eat(C.semi))return null;var t=this.options.ecmaVersion,o=this.startNode(),i="",n=!1,r=!1,s="method",a=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(C.braceL))return this.parseClassStaticBlock(o),o;this.isClassElementNameStart()||this.type===C.star?a=!0:i="static"}if(o.static=a,!i&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==C.star||this.canInsertSemicolon()?i="async":r=!0),!i&&(t>=9||!r)&&this.eat(C.star)&&(n=!0),!i&&!r&&!n){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?s=l:i=l)}if(i?(o.computed=!1,o.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),o.key.name=i,this.finishNode(o.key,"Identifier")):this.parseClassElementName(o),t<13||this.type===C.parenL||"method"!==s||n||r){var p=!o.static&&oe(o,"constructor"),u=p&&e;p&&"method"!==s&&this.raise(o.key.start,"Constructor can't have get/set modifier"),o.kind=p?"constructor":s,this.parseClassMethod(o,n,r,u)}else this.parseClassField(o);return o},$.isClassElementNameStart=function(){return this.type===C.name||this.type===C.privateId||this.type===C.num||this.type===C.string||this.type===C.bracketL||this.type.keyword},$.parseClassElementName=function(e){this.type===C.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},$.parseClassMethod=function(e,t,o,i){var n=e.key;"constructor"===e.kind?(t&&this.raise(n.start,"Constructor can't be a generator"),o&&this.raise(n.start,"Constructor can't be an async method")):e.static&&oe(e,"prototype")&&this.raise(n.start,"Classes may not have a static property named prototype");var r=e.value=this.parseMethod(t,o,i);return"get"===e.kind&&0!==r.params.length&&this.raiseRecoverable(r.start,"getter should have no params"),"set"===e.kind&&1!==r.params.length&&this.raiseRecoverable(r.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===r.params[0].type&&this.raiseRecoverable(r.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},$.parseClassField=function(e){return oe(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&oe(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(C.eq)?(this.enterScope(576),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")},$.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==C.braceR;){var o=this.parseStatement(null);e.body.push(o)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},$.parseClassId=function(e,t){this.type===C.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},$.parseClassSuper=function(e){e.superClass=this.eat(C._extends)?this.parseExprSubscripts(null,!1):null},$.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},$.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,o=e.used;if(this.options.checkPrivateFields)for(var i=this.privateNameStack.length,n=0===i?null:this.privateNameStack[i-1],r=0;r<o.length;++r){var s=o[r];T(t,s.name)||(n?n.used.push(s):this.raiseRecoverable(s.start,"Private field '#"+s.name+"' must be declared in an enclosing class"))}},$.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==C.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},$.parseExport=function(e,t){if(this.next(),this.eat(C.star))return this.parseExportAllDeclaration(e,t);if(this.eat(C._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==C.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var o=0,i=e.specifiers;o<i.length;o+=1){var n=i[o];this.checkUnreserved(n.local),this.checkLocalExport(n.local),"Literal"===n.local.type&&this.raise(n.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},$.parseExportDeclaration=function(e){return this.parseStatement(null)},$.parseExportDefaultDeclaration=function(){var e;if(this.type===C._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,4|J,!1,e)}if(this.type===C._class){var o=this.startNode();return this.parseClass(o,"nullableID")}var i=this.parseMaybeAssign();return this.semicolon(),i},$.checkExport=function(e,t,o){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),T(e,t)&&this.raiseRecoverable(o,"Duplicate export '"+t+"'"),e[t]=!0)},$.checkPatternExport=function(e,t){var o=t.type;if("Identifier"===o)this.checkExport(e,t,t.start);else if("ObjectPattern"===o)for(var i=0,n=t.properties;i<n.length;i+=1){var r=n[i];this.checkPatternExport(e,r)}else if("ArrayPattern"===o)for(var s=0,a=t.elements;s<a.length;s+=1){var l=a[s];l&&this.checkPatternExport(e,l)}else"Property"===o?this.checkPatternExport(e,t.value):"AssignmentPattern"===o?this.checkPatternExport(e,t.left):"RestElement"===o&&this.checkPatternExport(e,t.argument)},$.checkVariableExport=function(e,t){if(e)for(var o=0,i=t;o<i.length;o+=1){var n=i[o];this.checkPatternExport(e,n.id)}},$.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},$.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")},$.parseExportSpecifiers=function(e){var t=[],o=!0;for(this.expect(C.braceL);!this.eat(C.braceR);){if(o)o=!1;else if(this.expect(C.comma),this.afterTrailingComma(C.braceR))break;t.push(this.parseExportSpecifier(e))}return t},$.parseImport=function(e){return this.next(),this.type===C.string?(e.specifiers=X,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===C.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},$.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportSpecifier")},$.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportDefaultSpecifier")},$.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportNamespaceSpecifier")},$.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===C.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(C.comma)))return e;if(this.type===C.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(C.braceL);!this.eat(C.braceR);){if(t)t=!1;else if(this.expect(C.comma),this.afterTrailingComma(C.braceR))break;e.push(this.parseImportSpecifier())}return e},$.parseWithClause=function(){var e=[];if(!this.eat(C._with))return e;this.expect(C.braceL);for(var t={},o=!0;!this.eat(C.braceR);){if(o)o=!1;else if(this.expect(C.comma),this.afterTrailingComma(C.braceR))break;var i=this.parseImportAttribute(),n="Identifier"===i.key.type?i.key.name:i.key.value;T(t,n)&&this.raiseRecoverable(i.key.start,"Duplicate attribute key '"+n+"'"),t[n]=!0,e.push(i)}return e},$.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===C.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved),this.expect(C.colon),this.type!==C.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")},$.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===C.string){var e=this.parseLiteral(this.value);return F.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},$.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},$.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var ie=U.prototype;ie.toAssignable=function(e,t,o){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",o&&this.checkPatternErrors(o,!0);for(var i=0,n=e.properties;i<n.length;i+=1){var r=n[i];this.toAssignable(r,t),"RestElement"!==r.type||"ArrayPattern"!==r.argument.type&&"ObjectPattern"!==r.argument.type||this.raise(r.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",o&&this.checkPatternErrors(o,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,o);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else o&&this.checkPatternErrors(o,!0);return e},ie.toAssignableList=function(e,t){for(var o=e.length,i=0;i<o;i++){var n=e[i];n&&this.toAssignable(n,t)}if(o){var r=e[o-1];6===this.options.ecmaVersion&&t&&r&&"RestElement"===r.type&&"Identifier"!==r.argument.type&&this.unexpected(r.argument.start)}return e},ie.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},ie.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==C.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},ie.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case C.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(C.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case C.braceL:return this.parseObj(!0)}return this.parseIdent()},ie.parseBindingList=function(e,t,o,i){for(var n=[],r=!0;!this.eat(e);)if(r?r=!1:this.expect(C.comma),t&&this.type===C.comma)n.push(null);else{if(o&&this.afterTrailingComma(e))break;if(this.type===C.ellipsis){var s=this.parseRestBinding();this.parseBindingListItem(s),n.push(s),this.type===C.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}n.push(this.parseAssignableListItem(i))}return n},ie.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},ie.parseBindingListItem=function(e){return e},ie.parseMaybeDefault=function(e,t,o){if(o=o||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(C.eq))return o;var i=this.startNodeAt(e,t);return i.left=o,i.right=this.parseMaybeAssign(),this.finishNode(i,"AssignmentPattern")},ie.checkLValSimple=function(e,t,o){void 0===t&&(t=0);var i=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(i?"Binding ":"Assigning to ")+e.name+" in strict mode"),i&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),o&&(T(o,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),o[e.name]=!0),5!==t&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":i&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return i&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,o);default:this.raise(e.start,(i?"Binding":"Assigning to")+" rvalue")}},ie.checkLValPattern=function(e,t,o){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var i=0,n=e.properties;i<n.length;i+=1){var r=n[i];this.checkLValInnerPattern(r,t,o)}break;case"ArrayPattern":for(var s=0,a=e.elements;s<a.length;s+=1){var l=a[s];l&&this.checkLValInnerPattern(l,t,o)}break;default:this.checkLValSimple(e,t,o)}},ie.checkLValInnerPattern=function(e,t,o){switch(void 0===t&&(t=0),e.type){case"Property":this.checkLValInnerPattern(e.value,t,o);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,o);break;case"RestElement":this.checkLValPattern(e.argument,t,o);break;default:this.checkLValPattern(e,t,o)}};var ne=function(e,t,o,i,n){this.token=e,this.isExpr=!!t,this.preserveSpace=!!o,this.override=i,this.generator=!!n},re={b_stat:new ne("{",!1),b_expr:new ne("{",!0),b_tmpl:new ne("${",!1),p_stat:new ne("(",!1),p_expr:new ne("(",!0),q_tmpl:new ne("`",!0,!0,(function(e){return e.tryReadTemplateToken()})),f_stat:new ne("function",!1),f_expr:new ne("function",!0),f_expr_gen:new ne("function",!0,!1,null,!0),f_gen:new ne("function",!1,!1,null,!0)},se=U.prototype;se.initialContext=function(){return[re.b_stat]},se.curContext=function(){return this.context[this.context.length-1]},se.braceIsBlock=function(e){var t=this.curContext();return t===re.f_expr||t===re.f_stat||(e!==C.colon||t!==re.b_stat&&t!==re.b_expr?e===C._return||e===C.name&&this.exprAllowed?w.test(this.input.slice(this.lastTokEnd,this.start)):e===C._else||e===C.semi||e===C.eof||e===C.parenR||e===C.arrow||(e===C.braceL?t===re.b_stat:e!==C._var&&e!==C._const&&e!==C.name&&!this.exprAllowed):!t.isExpr)},se.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},se.updateContext=function(e){var t,o=this.type;o.keyword&&e===C.dot?this.exprAllowed=!1:(t=o.updateContext)?t.call(this,e):this.exprAllowed=o.beforeExpr},se.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},C.parenR.updateContext=C.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===re.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},C.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?re.b_stat:re.b_expr),this.exprAllowed=!0},C.dollarBraceL.updateContext=function(){this.context.push(re.b_tmpl),this.exprAllowed=!0},C.parenL.updateContext=function(e){var t=e===C._if||e===C._for||e===C._with||e===C._while;this.context.push(t?re.p_stat:re.p_expr),this.exprAllowed=!0},C.incDec.updateContext=function(){},C._function.updateContext=C._class.updateContext=function(e){!e.beforeExpr||e===C._else||e===C.semi&&this.curContext()!==re.p_stat||e===C._return&&w.test(this.input.slice(this.lastTokEnd,this.start))||(e===C.colon||e===C.braceL)&&this.curContext()===re.b_stat?this.context.push(re.f_stat):this.context.push(re.f_expr),this.exprAllowed=!1},C.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},C.backQuote.updateContext=function(){this.curContext()===re.q_tmpl?this.context.pop():this.context.push(re.q_tmpl),this.exprAllowed=!1},C.star.updateContext=function(e){if(e===C._function){var t=this.context.length-1;this.context[t]===re.f_expr?this.context[t]=re.f_expr_gen:this.context[t]=re.f_gen}this.exprAllowed=!0},C.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==C.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var ae=U.prototype;function le(e){return"Identifier"===e.type||"ParenthesizedExpression"===e.type&&le(e.expression)}function pe(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&pe(e.expression)||"ParenthesizedExpression"===e.type&&pe(e.expression)}ae.checkPropClash=function(e,t,o){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var i,n=e.key;switch(n.type){case"Identifier":i=n.name;break;case"Literal":i=String(n.value);break;default:return}var r=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===i&&"init"===r&&(t.proto&&(o?o.doubleProto<0&&(o.doubleProto=n.start):this.raiseRecoverable(n.start,"Redefinition of __proto__ property")),t.proto=!0);else{var s=t[i="$"+i];s?("init"===r?this.strict&&s.init||s.get||s.set:s.init||s[r])&&this.raiseRecoverable(n.start,"Redefinition of property"):s=t[i]={init:!1,get:!1,set:!1},s[r]=!0}}},ae.parseExpression=function(e,t){var o=this.start,i=this.startLoc,n=this.parseMaybeAssign(e,t);if(this.type===C.comma){var r=this.startNodeAt(o,i);for(r.expressions=[n];this.eat(C.comma);)r.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(r,"SequenceExpression")}return n},ae.parseMaybeAssign=function(e,t,o){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var i=!1,n=-1,r=-1,s=-1;t?(n=t.parenthesizedAssign,r=t.trailingComma,s=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new K,i=!0);var a=this.start,l=this.startLoc;this.type!==C.parenL&&this.type!==C.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var p=this.parseMaybeConditional(e,t);if(o&&(p=o.call(this,p,a,l)),this.type.isAssign){var u=this.startNodeAt(a,l);return u.operator=this.value,this.type===C.eq&&(p=this.toAssignable(p,!1,t)),i||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=p.start&&(t.shorthandAssign=-1),this.type===C.eq?this.checkLValPattern(p):this.checkLValSimple(p),u.left=p,this.next(),u.right=this.parseMaybeAssign(e),s>-1&&(t.doubleProto=s),this.finishNode(u,"AssignmentExpression")}return i&&this.checkExpressionErrors(t,!0),n>-1&&(t.parenthesizedAssign=n),r>-1&&(t.trailingComma=r),p},ae.parseMaybeConditional=function(e,t){var o=this.start,i=this.startLoc,n=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return n;if(this.eat(C.question)){var r=this.startNodeAt(o,i);return r.test=n,r.consequent=this.parseMaybeAssign(),this.expect(C.colon),r.alternate=this.parseMaybeAssign(e),this.finishNode(r,"ConditionalExpression")}return n},ae.parseExprOps=function(e,t){var o=this.start,i=this.startLoc,n=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||n.start===o&&"ArrowFunctionExpression"===n.type?n:this.parseExprOp(n,o,i,-1,e)},ae.parseExprOp=function(e,t,o,i,n){var r=this.type.binop;if(null!=r&&(!n||this.type!==C._in)&&r>i){var s=this.type===C.logicalOR||this.type===C.logicalAND,a=this.type===C.coalesce;a&&(r=C.logicalAND.binop);var l=this.value;this.next();var p=this.start,u=this.startLoc,c=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,n),p,u,r,n),d=this.buildBinary(t,o,e,c,l,s||a);return(s&&this.type===C.coalesce||a&&(this.type===C.logicalOR||this.type===C.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(d,t,o,i,n)}return e},ae.buildBinary=function(e,t,o,i,n,r){"PrivateIdentifier"===i.type&&this.raise(i.start,"Private identifier can only be left side of binary expression");var s=this.startNodeAt(e,t);return s.left=o,s.operator=n,s.right=i,this.finishNode(s,r?"LogicalExpression":"BinaryExpression")},ae.parseMaybeUnary=function(e,t,o,i){var n,r=this.start,s=this.startLoc;if(this.isContextual("await")&&this.canAwait)n=this.parseAwait(i),t=!0;else if(this.type.prefix){var a=this.startNode(),l=this.type===C.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0,l,i),this.checkExpressionErrors(e,!0),l?this.checkLValSimple(a.argument):this.strict&&"delete"===a.operator&&le(a.argument)?this.raiseRecoverable(a.start,"Deleting local variable in strict mode"):"delete"===a.operator&&pe(a.argument)?this.raiseRecoverable(a.start,"Private fields can not be deleted"):t=!0,n=this.finishNode(a,l?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==C.privateId){if(n=this.parseExprSubscripts(e,i),this.checkExpressionErrors(e))return n;for(;this.type.postfix&&!this.canInsertSemicolon();){var p=this.startNodeAt(r,s);p.operator=this.value,p.prefix=!1,p.argument=n,this.checkLValSimple(n),this.next(),n=this.finishNode(p,"UpdateExpression")}}else(i||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),n=this.parsePrivateIdent(),this.type!==C._in&&this.unexpected();return o||!this.eat(C.starstar)?n:t?void this.unexpected(this.lastTokStart):this.buildBinary(r,s,n,this.parseMaybeUnary(null,!1,!1,i),"**",!1)},ae.parseExprSubscripts=function(e,t){var o=this.start,i=this.startLoc,n=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===n.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return n;var r=this.parseSubscripts(n,o,i,!1,t);return e&&"MemberExpression"===r.type&&(e.parenthesizedAssign>=r.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=r.start&&(e.parenthesizedBind=-1),e.trailingComma>=r.start&&(e.trailingComma=-1)),r},ae.parseSubscripts=function(e,t,o,i,n){for(var r=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,s=!1;;){var a=this.parseSubscript(e,t,o,i,r,s,n);if(a.optional&&(s=!0),a===e||"ArrowFunctionExpression"===a.type){if(s){var l=this.startNodeAt(t,o);l.expression=a,a=this.finishNode(l,"ChainExpression")}return a}e=a}},ae.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(C.arrow)},ae.parseSubscriptAsyncArrow=function(e,t,o,i){return this.parseArrowExpression(this.startNodeAt(e,t),o,!0,i)},ae.parseSubscript=function(e,t,o,i,n,r,s){var a=this.options.ecmaVersion>=11,l=a&&this.eat(C.questionDot);i&&l&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var p=this.eat(C.bracketL);if(p||l&&this.type!==C.parenL&&this.type!==C.backQuote||this.eat(C.dot)){var u=this.startNodeAt(t,o);u.object=e,p?(u.property=this.parseExpression(),this.expect(C.bracketR)):this.type===C.privateId&&"Super"!==e.type?u.property=this.parsePrivateIdent():u.property=this.parseIdent("never"!==this.options.allowReserved),u.computed=!!p,a&&(u.optional=l),e=this.finishNode(u,"MemberExpression")}else if(!i&&this.eat(C.parenL)){var c=new K,d=this.yieldPos,h=this.awaitPos,f=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var g=this.parseExprList(C.parenR,this.options.ecmaVersion>=8,!1,c);if(n&&!l&&this.shouldParseAsyncArrow())return this.checkPatternErrors(c,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=d,this.awaitPos=h,this.awaitIdentPos=f,this.parseSubscriptAsyncArrow(t,o,g,s);this.checkExpressionErrors(c,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=h||this.awaitPos,this.awaitIdentPos=f||this.awaitIdentPos;var m=this.startNodeAt(t,o);m.callee=e,m.arguments=g,a&&(m.optional=l),e=this.finishNode(m,"CallExpression")}else if(this.type===C.backQuote){(l||r)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var y=this.startNodeAt(t,o);y.tag=e,y.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(y,"TaggedTemplateExpression")}return e},ae.parseExprAtom=function(e,t,o){this.type===C.slash&&this.readRegexp();var i,n=this.potentialArrowAt===this.start;switch(this.type){case C._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),i=this.startNode(),this.next(),this.type!==C.parenL||this.allowDirectSuper||this.raise(i.start,"super() call outside constructor of a subclass"),this.type!==C.dot&&this.type!==C.bracketL&&this.type!==C.parenL&&this.unexpected(),this.finishNode(i,"Super");case C._this:return i=this.startNode(),this.next(),this.finishNode(i,"ThisExpression");case C.name:var r=this.start,s=this.startLoc,a=this.containsEsc,l=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!a&&"async"===l.name&&!this.canInsertSemicolon()&&this.eat(C._function))return this.overrideContext(re.f_expr),this.parseFunction(this.startNodeAt(r,s),0,!1,!0,t);if(n&&!this.canInsertSemicolon()){if(this.eat(C.arrow))return this.parseArrowExpression(this.startNodeAt(r,s),[l],!1,t);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===C.name&&!a&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(C.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(r,s),[l],!0,t)}return l;case C.regexp:var p=this.value;return(i=this.parseLiteral(p.value)).regex={pattern:p.pattern,flags:p.flags},i;case C.num:case C.string:return this.parseLiteral(this.value);case C._null:case C._true:case C._false:return(i=this.startNode()).value=this.type===C._null?null:this.type===C._true,i.raw=this.type.keyword,this.next(),this.finishNode(i,"Literal");case C.parenL:var u=this.start,c=this.parseParenAndDistinguishExpression(n,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(e.parenthesizedAssign=u),e.parenthesizedBind<0&&(e.parenthesizedBind=u)),c;case C.bracketL:return i=this.startNode(),this.next(),i.elements=this.parseExprList(C.bracketR,!0,!0,e),this.finishNode(i,"ArrayExpression");case C.braceL:return this.overrideContext(re.b_expr),this.parseObj(!1,e);case C._function:return i=this.startNode(),this.next(),this.parseFunction(i,0);case C._class:return this.parseClass(this.startNode(),!1);case C._new:return this.parseNew();case C.backQuote:return this.parseTemplate();case C._import:return this.options.ecmaVersion>=11?this.parseExprImport(o):this.unexpected();default:return this.parseExprAtomDefault()}},ae.parseExprAtomDefault=function(){this.unexpected()},ae.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===C.parenL&&!e)return this.parseDynamicImport(t);if(this.type===C.dot){var o=this.startNodeAt(t.start,t.loc&&t.loc.start);return o.name="import",t.meta=this.finishNode(o,"Identifier"),this.parseImportMeta(t)}this.unexpected()},ae.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(C.parenR)?e.options=null:(this.expect(C.comma),this.afterTrailingComma(C.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(C.parenR)||(this.expect(C.comma),this.afterTrailingComma(C.parenR)||this.unexpected())));else if(!this.eat(C.parenR)){var t=this.start;this.eat(C.comma)&&this.eat(C.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},ae.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},ae.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=null!=t.value?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},ae.parseParenExpression=function(){this.expect(C.parenL);var e=this.parseExpression();return this.expect(C.parenR),e},ae.shouldParseArrow=function(e){return!this.canInsertSemicolon()},ae.parseParenAndDistinguishExpression=function(e,t){var o,i=this.start,n=this.startLoc,r=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s,a=this.start,l=this.startLoc,p=[],u=!0,c=!1,d=new K,h=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==C.parenR;){if(u?u=!1:this.expect(C.comma),r&&this.afterTrailingComma(C.parenR,!0)){c=!0;break}if(this.type===C.ellipsis){s=this.start,p.push(this.parseParenItem(this.parseRestBinding())),this.type===C.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}p.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var g=this.lastTokEnd,m=this.lastTokEndLoc;if(this.expect(C.parenR),e&&this.shouldParseArrow(p)&&this.eat(C.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=h,this.awaitPos=f,this.parseParenArrowList(i,n,p,t);p.length&&!c||this.unexpected(this.lastTokStart),s&&this.unexpected(s),this.checkExpressionErrors(d,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=f||this.awaitPos,p.length>1?((o=this.startNodeAt(a,l)).expressions=p,this.finishNodeAt(o,"SequenceExpression",g,m)):o=p[0]}else o=this.parseParenExpression();if(this.options.preserveParens){var y=this.startNodeAt(i,n);return y.expression=o,this.finishNode(y,"ParenthesizedExpression")}return o},ae.parseParenItem=function(e){return e},ae.parseParenArrowList=function(e,t,o,i){return this.parseArrowExpression(this.startNodeAt(e,t),o,!1,i)};var ue=[];ae.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===C.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var o=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),o&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var i=this.start,n=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),i,n,!0,!1),this.eat(C.parenL)?e.arguments=this.parseExprList(C.parenR,this.options.ecmaVersion>=8,!1):e.arguments=ue,this.finishNode(e,"NewExpression")},ae.parseTemplateElement=function(e){var t=e.isTagged,o=this.startNode();return this.type===C.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),o.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}):o.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),o.tail=this.type===C.backQuote,this.finishNode(o,"TemplateElement")},ae.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var o=this.startNode();this.next(),o.expressions=[];var i=this.parseTemplateElement({isTagged:t});for(o.quasis=[i];!i.tail;)this.type===C.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(C.dollarBraceL),o.expressions.push(this.parseExpression()),this.expect(C.braceR),o.quasis.push(i=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(o,"TemplateLiteral")},ae.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===C.name||this.type===C.num||this.type===C.string||this.type===C.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===C.star)&&!w.test(this.input.slice(this.lastTokEnd,this.start))},ae.parseObj=function(e,t){var o=this.startNode(),i=!0,n={};for(o.properties=[],this.next();!this.eat(C.braceR);){if(i)i=!1;else if(this.expect(C.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(C.braceR))break;var r=this.parseProperty(e,t);e||this.checkPropClash(r,n,t),o.properties.push(r)}return this.finishNode(o,e?"ObjectPattern":"ObjectExpression")},ae.parseProperty=function(e,t){var o,i,n,r,s=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(C.ellipsis))return e?(s.argument=this.parseIdent(!1),this.type===C.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(s,"RestElement")):(s.argument=this.parseMaybeAssign(!1,t),this.type===C.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(s,"SpreadElement"));this.options.ecmaVersion>=6&&(s.method=!1,s.shorthand=!1,(e||t)&&(n=this.start,r=this.startLoc),e||(o=this.eat(C.star)));var a=this.containsEsc;return this.parsePropertyName(s),!e&&!a&&this.options.ecmaVersion>=8&&!o&&this.isAsyncProp(s)?(i=!0,o=this.options.ecmaVersion>=9&&this.eat(C.star),this.parsePropertyName(s)):i=!1,this.parsePropertyValue(s,e,o,i,n,r,t,a),this.finishNode(s,"Property")},ae.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var o="get"===e.kind?0:1;if(e.value.params.length!==o){var i=e.value.start;"get"===e.kind?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},ae.parsePropertyValue=function(e,t,o,i,n,r,s,a){(o||i)&&this.type===C.colon&&this.unexpected(),this.eat(C.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,s),e.kind="init"):this.options.ecmaVersion>=6&&this.type===C.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(o,i),e.kind="init"):t||a||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===C.comma||this.type===C.braceR||this.type===C.eq?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((o||i)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=n),t?e.value=this.parseMaybeDefault(n,r,this.copyNode(e.key)):this.type===C.eq&&s?(s.shorthandAssign<0&&(s.shorthandAssign=this.start),e.value=this.parseMaybeDefault(n,r,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected():((o||i)&&this.unexpected(),this.parseGetterSetter(e))},ae.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(C.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(C.bracketR),e.key;e.computed=!1}return e.key=this.type===C.num||this.type===C.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},ae.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},ae.parseMethod=function(e,t,o){var i=this.startNode(),n=this.yieldPos,r=this.awaitPos,s=this.awaitIdentPos;return this.initFunction(i),this.options.ecmaVersion>=6&&(i.generator=e),this.options.ecmaVersion>=8&&(i.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|B(t,i.generator)|(o?128:0)),this.expect(C.parenL),i.params=this.parseBindingList(C.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(i,!1,!0,!1),this.yieldPos=n,this.awaitPos=r,this.awaitIdentPos=s,this.finishNode(i,"FunctionExpression")},ae.parseArrowExpression=function(e,t,o,i){var n=this.yieldPos,r=this.awaitPos,s=this.awaitIdentPos;return this.enterScope(16|B(o,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!o),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,i),this.yieldPos=n,this.awaitPos=r,this.awaitIdentPos=s,this.finishNode(e,"ArrowFunctionExpression")},ae.parseFunctionBody=function(e,t,o,i){var n=t&&this.type!==C.braceL,r=this.strict,s=!1;if(n)e.body=this.parseMaybeAssign(i),e.expression=!0,this.checkParams(e,!1);else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);r&&!a||(s=this.strictDirective(this.end))&&a&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var l=this.labels;this.labels=[],s&&(this.strict=!0),this.checkParams(e,!r&&!s&&!t&&!o&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,s&&!r),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=l}this.exitScope()},ae.isSimpleParamList=function(e){for(var t=0,o=e;t<o.length;t+=1)if("Identifier"!==o[t].type)return!1;return!0},ae.checkParams=function(e,t){for(var o=Object.create(null),i=0,n=e.params;i<n.length;i+=1){var r=n[i];this.checkLValInnerPattern(r,1,t?null:o)}},ae.parseExprList=function(e,t,o,i){for(var n=[],r=!0;!this.eat(e);){if(r)r=!1;else if(this.expect(C.comma),t&&this.afterTrailingComma(e))break;var s=void 0;o&&this.type===C.comma?s=null:this.type===C.ellipsis?(s=this.parseSpread(i),i&&this.type===C.comma&&i.trailingComma<0&&(i.trailingComma=this.start)):s=this.parseMaybeAssign(!1,i),n.push(s)}return n},ae.checkUnreserved=function(e){var t=e.start,o=e.end,i=e.name;this.inGenerator&&"yield"===i&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===i&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().flags&j||"arguments"!==i||this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==i&&"await"!==i||this.raise(t,"Cannot use "+i+" in class static initialization block"),this.keywords.test(i)&&this.raise(t,"Unexpected keyword '"+i+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,o).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(i)&&(this.inAsync||"await"!==i||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+i+"' is reserved"))},ae.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),"await"!==t.name||this.awaitIdentPos||(this.awaitIdentPos=t.start)),t},ae.parseIdentNode=function(){var e=this.startNode();return this.type===C.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,"class"!==e.name&&"function"!==e.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop(),this.type=C.name):this.unexpected(),e},ae.parsePrivateIdent=function(){var e=this.startNode();return this.type===C.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(0===this.privateNameStack.length?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},ae.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===C.semi||this.canInsertSemicolon()||this.type!==C.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(C.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},ae.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var ce=U.prototype;ce.raise=function(e,t){var o=M(this.input,e);t+=" ("+o.line+":"+o.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var i=new SyntaxError(t);throw i.pos=e,i.loc=o,i.raisedAt=this.pos,i},ce.raiseRecoverable=ce.raise,ce.curPosition=function(){if(this.options.locations)return new L(this.curLine,this.pos-this.lineStart)};var de=U.prototype,he=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};de.enterScope=function(e){this.scopeStack.push(new he(e))},de.exitScope=function(){this.scopeStack.pop()},de.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},de.declareName=function(e,t,o){var i=!1;if(2===t){var n=this.currentScope();i=n.lexical.indexOf(e)>-1||n.functions.indexOf(e)>-1||n.var.indexOf(e)>-1,n.lexical.push(e),this.inModule&&1&n.flags&&delete this.undefinedExports[e]}else if(4===t)this.currentScope().lexical.push(e);else if(3===t){var r=this.currentScope();i=this.treatFunctionsAsVar?r.lexical.indexOf(e)>-1:r.lexical.indexOf(e)>-1||r.var.indexOf(e)>-1,r.functions.push(e)}else for(var s=this.scopeStack.length-1;s>=0;--s){var a=this.scopeStack[s];if(a.lexical.indexOf(e)>-1&&!(32&a.flags&&a.lexical[0]===e)||!this.treatFunctionsAsVarInScope(a)&&a.functions.indexOf(e)>-1){i=!0;break}if(a.var.push(e),this.inModule&&1&a.flags&&delete this.undefinedExports[e],a.flags&j)break}i&&this.raiseRecoverable(o,"Identifier '"+e+"' has already been declared")},de.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},de.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},de.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(771&t.flags)return t}},de.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(771&t.flags&&!(16&t.flags))return t}};var fe=function(e,t,o){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new k(e,o)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},ge=U.prototype;function me(e,t,o,i){return e.type=t,e.end=o,this.options.locations&&(e.loc.end=i),this.options.ranges&&(e.range[1]=o),e}ge.startNode=function(){return new fe(this,this.start,this.startLoc)},ge.startNodeAt=function(e,t){return new fe(this,e,t)},ge.finishNode=function(e,t){return me.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},ge.finishNodeAt=function(e,t,o,i){return me.call(this,e,t,o,i)},ge.copyNode=function(e){var t=new fe(this,e.start,this.startLoc);for(var o in e)t[o]=e[o];return t};var ye,ve,Ce="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",we=Ce+" Extended_Pictographic",Ee=we+" EBase EComp EMod EPres ExtPict",_e={9:Ce,10:we,11:we,12:Ee,13:Ee,14:Ee},be={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},Re="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Oe="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Se=Oe+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Ae=Se+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Pe=Ae+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Te=Pe+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",De={9:Oe,10:Se,11:Ae,12:Pe,13:Te,14:Te+" Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz"},Ne={};for(var xe=0,Ie=[9,10,11,12,13,14];xe<Ie.length;xe+=1)ve=void 0,(ve=Ne[ye=Ie[xe]]={binary:x(_e[ye]+" "+Re),binaryOfStrings:x(be[ye]),nonBinary:{General_Category:x(Re),Script:x(De[ye])}}).nonBinary.Script_Extensions=ve.nonBinary.Script,ve.nonBinary.gc=ve.nonBinary.General_Category,ve.nonBinary.sc=ve.nonBinary.Script,ve.nonBinary.scx=ve.nonBinary.Script_Extensions;var Fe=U.prototype,Le=function(e,t){this.parent=e,this.base=t||this};Le.prototype.separatedFrom=function(e){for(var t=this;t;t=t.parent)for(var o=e;o;o=o.parent)if(t.base===o.base&&t!==o)return!0;return!1},Le.prototype.sibling=function(){return new Le(this.parent,this.base)};var ke=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Ne[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};function Me(e){return 105===e||109===e||115===e}function Ge(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function Ve(e){return e>=65&&e<=90||e>=97&&e<=122}ke.prototype.reset=function(e,t,o){var i=-1!==o.indexOf("v"),n=-1!==o.indexOf("u");this.start=0|e,this.source=t+"",this.flags=o,i&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=n&&this.parser.options.ecmaVersion>=9)},ke.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},ke.prototype.at=function(e,t){void 0===t&&(t=!1);var o=this.source,i=o.length;if(e>=i)return-1;var n=o.charCodeAt(e);if(!t&&!this.switchU||n<=55295||n>=57344||e+1>=i)return n;var r=o.charCodeAt(e+1);return r>=56320&&r<=57343?(n<<10)+r-56613888:n},ke.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var o=this.source,i=o.length;if(e>=i)return i;var n,r=o.charCodeAt(e);return!t&&!this.switchU||r<=55295||r>=57344||e+1>=i||(n=o.charCodeAt(e+1))<56320||n>57343?e+1:e+2},ke.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},ke.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},ke.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},ke.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},ke.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var o=this.pos,i=0,n=e;i<n.length;i+=1){var r=n[i],s=this.at(o,t);if(-1===s||s!==r)return!1;o=this.nextIndex(o,t)}return this.pos=o,!0},Fe.validateRegExpFlags=function(e){for(var t=e.validFlags,o=e.flags,i=!1,n=!1,r=0;r<o.length;r++){var s=o.charAt(r);-1===t.indexOf(s)&&this.raise(e.start,"Invalid regular expression flag"),o.indexOf(s,r+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===s&&(i=!0),"v"===s&&(n=!0)}this.options.ecmaVersion>=15&&i&&n&&this.raise(e.start,"Invalid regular expression flag")},Fe.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&function(e){for(var t in e)return!0;return!1}(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},Fe.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,o=e.backReferenceNames;t<o.length;t+=1){var i=o[t];e.groupNames[i]||e.raise("Invalid named capture referenced")}},Fe.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new Le(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},Fe.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},Fe.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},Fe.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var o=!1;if(this.options.ecmaVersion>=9&&(o=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!o,!0}return e.pos=t,!1},Fe.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},Fe.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},Fe.regexp_eatBracedQuantifier=function(e,t){var o=e.pos;if(e.eat(123)){var i=0,n=-1;if(this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue),e.eat(125)))return-1!==n&&n<i&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=o}return!1},Fe.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},Fe.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},Fe.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var o=this.regexp_eatModifiers(e),i=e.eat(45);if(o||i){for(var n=0;n<o.length;n++){var r=o.charAt(n);o.indexOf(r,n+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(i){var s=this.regexp_eatModifiers(e);o||s||58!==e.current()||e.raise("Invalid regular expression modifiers");for(var a=0;a<s.length;a++){var l=s.charAt(a);(s.indexOf(l,a+1)>-1||o.indexOf(l)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1},Fe.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},Fe.regexp_eatModifiers=function(e){for(var t="",o=0;-1!==(o=e.current())&&Me(o);)t+=I(o),e.advance();return t},Fe.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},Fe.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},Fe.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!Ge(t)&&(e.lastIntValue=t,e.advance(),!0)},Fe.regexp_eatPatternCharacters=function(e){for(var t=e.pos,o=0;-1!==(o=e.current())&&!Ge(o);)e.advance();return e.pos!==t},Fe.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t||(e.advance(),0))},Fe.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,o=e.groupNames[e.lastStringValue];if(o)if(t)for(var i=0,n=o;i<n.length;i+=1)n[i].separatedFrom(e.branchID)||e.raise("Duplicate capture group name");else e.raise("Duplicate capture group name");t?(o||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}},Fe.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},Fe.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=I(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=I(e.lastIntValue);return!0}return!1},Fe.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,o=this.options.ecmaVersion>=11,i=e.current(o);return e.advance(o),92===i&&this.regexp_eatRegExpUnicodeEscapeSequence(e,o)&&(i=e.lastIntValue),function(e){return c(e,!0)||36===e||95===e}(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)},Fe.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,o=this.options.ecmaVersion>=11,i=e.current(o);return e.advance(o),92===i&&this.regexp_eatRegExpUnicodeEscapeSequence(e,o)&&(i=e.lastIntValue),function(e){return d(e,!0)||36===e||95===e||8204===e||8205===e}(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)},Fe.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},Fe.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var o=e.lastIntValue;if(e.switchU)return o>e.maxBackReference&&(e.maxBackReference=o),!0;if(o<=e.numCapturingParens)return!0;e.pos=t}return!1},Fe.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},Fe.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},Fe.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},Fe.regexp_eatZero=function(e){return 48===e.current()&&!je(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},Fe.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},Fe.regexp_eatControlLetter=function(e){var t=e.current();return!!Ve(t)&&(e.lastIntValue=t%32,e.advance(),!0)},Fe.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var o,i=e.pos,n=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var r=e.lastIntValue;if(n&&r>=55296&&r<=56319){var s=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=1024*(r-55296)+(a-56320)+65536,!0}e.pos=s,e.lastIntValue=r}return!0}if(n&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&((o=e.lastIntValue)>=0&&o<=1114111))return!0;n&&e.raise("Invalid unicode escape"),e.pos=i}return!1},Fe.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t||(e.lastIntValue=t,e.advance(),0))},Fe.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1};function We(e){return Ve(e)||95===e}function He(e){return We(e)||je(e)}function je(e){return e>=48&&e<=57}function Be(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Ue(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function Ye(e){return e>=48&&e<=55}Fe.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),1;var o=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((o=80===t)||112===t)){var i;if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(i=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return o&&2===i&&e.raise("Invalid property name"),i;e.raise("Invalid property name")}return 0},Fe.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var o=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,o,i),1}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,n)}return 0},Fe.regexp_validateUnicodePropertyNameAndValue=function(e,t,o){T(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(o)||e.raise("Invalid property value")},Fe.regexp_validateUnicodePropertyNameOrValue=function(e,t){return e.unicodeProperties.binary.test(t)?1:e.switchV&&e.unicodeProperties.binaryOfStrings.test(t)?2:void e.raise("Invalid property name")},Fe.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";We(t=e.current());)e.lastStringValue+=I(t),e.advance();return""!==e.lastStringValue},Fe.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";He(t=e.current());)e.lastStringValue+=I(t),e.advance();return""!==e.lastStringValue},Fe.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},Fe.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),o=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&2===o&&e.raise("Negated character class may contain strings"),!0}return!1},Fe.regexp_classContents=function(e){return 93===e.current()?1:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),1)},Fe.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var o=e.lastIntValue;!e.switchU||-1!==t&&-1!==o||e.raise("Invalid character class"),-1!==t&&-1!==o&&t>o&&e.raise("Range out of order in character class")}}},Fe.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var o=e.current();(99===o||Ye(o))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var i=e.current();return 93!==i&&(e.lastIntValue=i,e.advance(),!0)},Fe.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},Fe.regexp_classSetExpression=function(e){var t,o=1;if(this.regexp_eatClassSetRange(e));else if(t=this.regexp_eatClassSetOperand(e)){2===t&&(o=2);for(var i=e.pos;e.eatChars([38,38]);)38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))?2!==t&&(o=1):e.raise("Invalid character in character class");if(i!==e.pos)return o;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(i!==e.pos)return o}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(!(t=this.regexp_eatClassSetOperand(e)))return o;2===t&&(o=2)}},Fe.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var o=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;return-1!==o&&-1!==i&&o>i&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},Fe.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?1:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},Fe.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var o=e.eat(94),i=this.regexp_classContents(e);if(e.eat(93))return o&&2===i&&e.raise("Negated character class may contain strings"),i;e.pos=t}if(e.eat(92)){var n=this.regexp_eatCharacterClassEscape(e);if(n)return n;e.pos=t}return null},Fe.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var o=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return o}else e.raise("Invalid escape");e.pos=t}return null},Fe.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)2===this.regexp_classString(e)&&(t=2);return t},Fe.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?1:2},Fe.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return!(!this.regexp_eatCharacterEscape(e)&&!this.regexp_eatClassSetReservedPunctuator(e)&&(e.eat(98)?(e.lastIntValue=8,0):(e.pos=t,1)));var o=e.current();return!(o<0||o===e.lookahead()&&function(e){return 33===e||e>=35&&e<=38||e>=42&&e<=44||46===e||e>=58&&e<=64||94===e||96===e||126===e}(o)||function(e){return 40===e||41===e||45===e||47===e||e>=91&&e<=93||e>=123&&e<=125}(o)||(e.advance(),e.lastIntValue=o,0))},Fe.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return!!function(e){return 33===e||35===e||37===e||38===e||44===e||45===e||e>=58&&e<=62||64===e||96===e||126===e}(t)&&(e.lastIntValue=t,e.advance(),!0)},Fe.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!je(t)&&95!==t||(e.lastIntValue=t%32,e.advance(),0))},Fe.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},Fe.regexp_eatDecimalDigits=function(e){var t=e.pos,o=0;for(e.lastIntValue=0;je(o=e.current());)e.lastIntValue=10*e.lastIntValue+(o-48),e.advance();return e.pos!==t},Fe.regexp_eatHexDigits=function(e){var t=e.pos,o=0;for(e.lastIntValue=0;Be(o=e.current());)e.lastIntValue=16*e.lastIntValue+Ue(o),e.advance();return e.pos!==t},Fe.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var o=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*o+e.lastIntValue:e.lastIntValue=8*t+o}else e.lastIntValue=t;return!0}return!1},Fe.regexp_eatOctalDigit=function(e){var t=e.current();return Ye(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},Fe.regexp_eatFixedHexDigits=function(e,t){var o=e.pos;e.lastIntValue=0;for(var i=0;i<t;++i){var n=e.current();if(!Be(n))return e.pos=o,!1;e.lastIntValue=16*e.lastIntValue+Ue(n),e.advance()}return!0};var ze=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new k(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},qe=U.prototype;function Ke(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}qe.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new ze(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},qe.getToken=function(){return this.next(),new ze(this)},"undefined"!=typeof Symbol&&(qe[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===C.eof,value:t}}}}),qe.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(C.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},qe.readToken=function(e){return c(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},qe.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},qe.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,o=this.input.indexOf("*/",this.pos+=2);if(-1===o&&this.raise(this.pos-2,"Unterminated comment"),this.pos=o+2,this.options.locations)for(var i=void 0,n=t;(i=b(this.input,n,this.pos))>-1;)++this.curLine,n=this.lineStart=i;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,o),t,this.pos,e,this.curPosition())},qe.skipLineComment=function(e){for(var t=this.pos,o=this.options.onComment&&this.curPosition(),i=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!_(i);)i=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,o,this.curPosition())},qe.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&R.test(String.fromCharCode(e))))break e;++this.pos}}},qe.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var o=this.type;this.type=e,this.value=t,this.updateContext(o)},qe.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(C.ellipsis)):(++this.pos,this.finishToken(C.dot))},qe.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(C.assign,2):this.finishOp(C.slash,1)},qe.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),o=1,i=42===e?C.star:C.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++o,i=C.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(C.assign,o+1):this.finishOp(i,o)},qe.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(C.assign,3):this.finishOp(124===e?C.logicalOR:C.logicalAND,2):61===t?this.finishOp(C.assign,2):this.finishOp(124===e?C.bitwiseOR:C.bitwiseAND,1)},qe.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(C.assign,2):this.finishOp(C.bitwiseXOR,1)},qe.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!w.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(C.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(C.assign,2):this.finishOp(C.plusMin,1)},qe.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),o=1;return t===e?(o=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+o)?this.finishOp(C.assign,o+1):this.finishOp(C.bitShift,o)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(o=2),this.finishOp(C.relational,o)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},qe.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(C.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(C.arrow)):this.finishOp(61===e?C.eq:C.prefix,1)},qe.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var o=this.input.charCodeAt(this.pos+2);if(o<48||o>57)return this.finishOp(C.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(C.assign,3):this.finishOp(C.coalesce,2)}return this.finishOp(C.question,1)},qe.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,c(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(C.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+I(e)+"'")},qe.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(C.parenL);case 41:return++this.pos,this.finishToken(C.parenR);case 59:return++this.pos,this.finishToken(C.semi);case 44:return++this.pos,this.finishToken(C.comma);case 91:return++this.pos,this.finishToken(C.bracketL);case 93:return++this.pos,this.finishToken(C.bracketR);case 123:return++this.pos,this.finishToken(C.braceL);case 125:return++this.pos,this.finishToken(C.braceR);case 58:return++this.pos,this.finishToken(C.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(C.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(C.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+I(e)+"'")},qe.finishOp=function(e,t){var o=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,o)},qe.readRegexp=function(){for(var e,t,o=this.pos;;){this.pos>=this.input.length&&this.raise(o,"Unterminated regular expression");var i=this.input.charAt(this.pos);if(w.test(i)&&this.raise(o,"Unterminated regular expression"),e)e=!1;else{if("["===i)t=!0;else if("]"===i&&t)t=!1;else if("/"===i&&!t)break;e="\\"===i}++this.pos}var n=this.input.slice(o,this.pos);++this.pos;var r=this.pos,s=this.readWord1();this.containsEsc&&this.unexpected(r);var a=this.regexpState||(this.regexpState=new ke(this));a.reset(o,n,s),this.validateRegExpFlags(a),this.validateRegExpPattern(a);var l=null;try{l=new RegExp(n,s)}catch(e){}return this.finishToken(C.regexp,{pattern:n,flags:s,value:l})},qe.readInt=function(e,t,o){for(var i=this.options.ecmaVersion>=12&&void 0===t,n=o&&48===this.input.charCodeAt(this.pos),r=this.pos,s=0,a=0,l=0,p=null==t?1/0:t;l<p;++l,++this.pos){var u=this.input.charCodeAt(this.pos),c=void 0;if(i&&95===u)n&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===a&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===l&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),a=u;else{if((c=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0)>=e)break;a=u,s=s*e+c}}return i&&95===a&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===r||null!=t&&this.pos-r!==t?null:s},qe.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var o=this.readInt(e);return null==o&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(o=Ke(this.input.slice(t,this.pos)),++this.pos):c(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(C.num,o)},qe.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var o=this.pos-t>=2&&48===this.input.charCodeAt(t);o&&this.strict&&this.raise(t,"Invalid number");var i=this.input.charCodeAt(this.pos);if(!o&&!e&&this.options.ecmaVersion>=11&&110===i){var n=Ke(this.input.slice(t,this.pos));return++this.pos,c(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(C.num,n)}o&&/[89]/.test(this.input.slice(t,this.pos))&&(o=!1),46!==i||o||(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),69!==i&&101!==i||o||(43!==(i=this.input.charCodeAt(++this.pos))&&45!==i||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),c(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var r,s=(r=this.input.slice(t,this.pos),o?parseInt(r,8):parseFloat(r.replace(/_/g,"")));return this.finishToken(C.num,s)},qe.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},qe.readString=function(e){for(var t="",o=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var i=this.input.charCodeAt(this.pos);if(i===e)break;92===i?(t+=this.input.slice(o,this.pos),t+=this.readEscapedChar(!1),o=this.pos):8232===i||8233===i?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(_(i)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(o,this.pos++),this.finishToken(C.string,t)};var $e={};qe.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==$e)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},qe.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw $e;this.raise(e,t)},qe.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var o=this.input.charCodeAt(this.pos);if(96===o||36===o&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==C.template&&this.type!==C.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(C.template,e)):36===o?(this.pos+=2,this.finishToken(C.dollarBraceL)):(++this.pos,this.finishToken(C.backQuote));if(92===o)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(_(o)){switch(e+=this.input.slice(t,this.pos),++this.pos,o){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(o)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},qe.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(C.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":"\n"===this.input[this.pos+1]&&++this.pos;case"\n":case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,"Unterminated template")},qe.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return I(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var o=this.pos-1;this.invalidStringToken(o,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var i=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],n=parseInt(i,8);return n>255&&(i=i.slice(0,-1),n=parseInt(i,8)),this.pos+=i.length-1,t=this.input.charCodeAt(this.pos),"0"===i&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-i.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(n)}return _(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}},qe.readHexChar=function(e){var t=this.pos,o=this.readInt(16,e);return null===o&&this.invalidStringToken(t,"Bad character escape sequence"),o},qe.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,o=this.pos,i=this.options.ecmaVersion>=6;this.pos<this.input.length;){var n=this.fullCharCodeAtPos();if(d(n,i))this.pos+=n<=65535?1:2;else{if(92!==n)break;this.containsEsc=!0,e+=this.input.slice(o,this.pos);var r=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var s=this.readCodePoint();(t?c:d)(s,i)||this.invalidStringToken(r,"Invalid Unicode escape"),e+=I(s),o=this.pos}t=!1}return e+this.input.slice(o,this.pos)},qe.readWord=function(){var e=this.readWord1(),t=C.name;return this.keywords.test(e)&&(t=y[e]),this.finishToken(t,e)};var Ze="8.15.0";U.acorn={Parser:U,version:Ze,defaultOptions:G,Position:L,SourceLocation:k,getLineInfo:M,Node:fe,TokenType:h,tokTypes:C,keywordTypes:y,TokContext:ne,tokContexts:re,isIdentifierChar:d,isIdentifierStart:c,Token:ze,isNewLine:_,lineBreak:w,lineBreakG:E,nonASCIIwhitespace:R},e.Node=fe,e.Parser=U,e.Position=L,e.SourceLocation=k,e.TokContext=ne,e.Token=ze,e.TokenType=h,e.defaultOptions=G,e.getLineInfo=M,e.isIdentifierChar=d,e.isIdentifierStart=c,e.isNewLine=_,e.keywordTypes=y,e.lineBreak=w,e.lineBreakG=E,e.nonASCIIwhitespace=R,e.parse=function(e,t){return U.parse(e,t)},e.parseExpressionAt=function(e,t,o){return U.parseExpressionAt(e,t,o)},e.tokContexts=re,e.tokTypes=C,e.tokenizer=function(e,t){return U.tokenizer(e,t)},e.version=Ze}(t)},84715:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(46379),l=o(45727),p=o(72493),u=o(44081),c=o(93121),d=o(83423),h=function(e){function t(){var t=e.call(this,'<div class="ag-cell-edit-input"><select class="ag-cell-edit-input"/></div>')||this;return t.eSelect=t.getGui().querySelector("select"),t}return n(t,e),t.prototype.init=function(e){var t=this;this.focusAfterAttached=e.cellStartedEdit,d._.missing(e.values)?console.warn("ag-Grid: no values found for select cellEditor"):(e.values.forEach((function(o){var i=document.createElement("option");i.value=o;var n=t.valueFormatterService.formatValue(e.column,null,null,o),r=null!=n;i.text=r?n:o,e.value===o&&(i.selected=!0),t.eSelect.appendChild(i)})),this.gridOptionsWrapper.isFullRowEdit()||this.addDestroyableEventListener(this.eSelect,"change",(function(){return e.stopEditing()})),this.addDestroyableEventListener(this.eSelect,"keydown",(function(e){(e.keyCode===l.Constants.KEY_UP||e.keyCode===l.Constants.KEY_DOWN)&&e.stopPropagation()})),this.addDestroyableEventListener(this.eSelect,"mousedown",(function(e){e.stopPropagation()})))},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.focus()},t.prototype.focusIn=function(){this.eSelect.focus()},t.prototype.getValue=function(){return this.eSelect.value},t.prototype.isPopup=function(){return!1},r([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([p.Autowired("valueFormatterService"),s("design:type",c.ValueFormatterService)],t.prototype,"valueFormatterService",void 0),t}(a.PopupComponent);t.SelectCellEditor=h},85222:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",e.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",e.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",e.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",e.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",e.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",e.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",e.EVENT_COLUMN_MOVED="columnMoved",e.EVENT_COLUMN_VISIBLE="columnVisible",e.EVENT_COLUMN_PINNED="columnPinned",e.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",e.EVENT_COLUMN_RESIZED="columnResized",e.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",e.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",e.EVENT_ROW_GROUP_OPENED="rowGroupOpened",e.EVENT_ROW_DATA_CHANGED="rowDataChanged",e.EVENT_ROW_DATA_UPDATED="rowDataUpdated",e.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",e.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",e.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",e.EVENT_MODEL_UPDATED="modelUpdated",e.EVENT_PASTE_START="pasteStart",e.EVENT_PASTE_END="pasteEnd",e.EVENT_CELL_CLICKED="cellClicked",e.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",e.EVENT_CELL_MOUSE_DOWN="cellMouseDown",e.EVENT_CELL_CONTEXT_MENU="cellContextMenu",e.EVENT_CELL_VALUE_CHANGED="cellValueChanged",e.EVENT_ROW_VALUE_CHANGED="rowValueChanged",e.EVENT_CELL_FOCUSED="cellFocused",e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_SELECTION_CHANGED="selectionChanged",e.EVENT_CELL_KEY_DOWN="cellKeyDown",e.EVENT_CELL_KEY_PRESS="cellKeyPress",e.EVENT_CELL_MOUSE_OVER="cellMouseOver",e.EVENT_CELL_MOUSE_OUT="cellMouseOut",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_MODIFIED="filterModified",e.EVENT_FILTER_OPENED="filterOpened",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",e.EVENT_ROW_CLICKED="rowClicked",e.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",e.EVENT_GRID_READY="gridReady",e.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",e.EVENT_VIEWPORT_CHANGED="viewportChanged",e.EVENT_FIRST_DATA_RENDERED="firstDataRendered",e.EVENT_DRAG_STARTED="dragStarted",e.EVENT_DRAG_STOPPED="dragStopped",e.EVENT_ROW_EDITING_STARTED="rowEditingStarted",e.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",e.EVENT_CELL_EDITING_STARTED="cellEditingStarted",e.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",e.EVENT_BODY_SCROLL="bodyScroll",e.EVENT_ANIMATION_QUEUE_EMPTY="animationQueueEmpty",e.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",e.EVENT_PAGINATION_CHANGED="paginationChanged",e.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",e.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",e.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",e.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",e.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",e.EVENT_FLASH_CELLS="flashCells",e.EVENT_ROW_DRAG_ENTER="rowDragEnter",e.EVENT_ROW_DRAG_MOVE="rowDragMove",e.EVENT_ROW_DRAG_LEAVE="rowDragLeave",e.EVENT_ROW_DRAG_END="rowDragEnd",e.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",e.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",e.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",e.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",e}();t.Events=o},85397:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(96652),s=o(96652),a=o(4855),l=o(47008),p=function(e){function t(t,o){var i=e.call(this,t,o)||this;return i.props=t,i.state=o,i}return n(t,e),t.prototype.render=function(){return null},t.mapChildColumnDefs=function(e){return r.Children.map(e.children,(function(e){return t.toColDef(e.props)}))},t.toColDef=function(e){var o=t.createColDefFromGridColumn(e);return t.hasChildColumns(e)&&(o.children=t.getChildColDefs(e.children)),o},t.hasChildColumns=function(e){return r.Children.count(e.children)>0},t.getChildColDefs=function(e){return r.Children.map(e,(function(e){return t.createColDefFromGridColumn(e.props)}))},t.createColDefFromGridColumn=function(e){var o={};return t.assign(o,e),delete o.children,o},t.assign=function(e,t){return[t].reduce((function(e,t){return Object.keys(t).forEach((function(o){e[o]=t[o]})),e}),e)},t}(s.Component);function u(e,t){e.forEach((function(e){p[e]=t}))}t.AgGridColumn=p,u(l.ColDefUtil.BOOLEAN_PROPERTIES,a.bool),u(l.ColDefUtil.STRING_PROPERTIES,a.string),u(l.ColDefUtil.OBJECT_PROPERTIES,a.object),u(l.ColDefUtil.ARRAY_PROPERTIES,a.array),u(l.ColDefUtil.NUMBER_PROPERTIES,a.number),u(l.ColDefUtil.FUNCTION_PROPERTIES,a.func)},85910:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r,s=o(72493),a=o(44081),l=o(36777),p=o(69638),u=o(22743),c=o(83423);!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.REGISTERED_BY_NAME=1]="REGISTERED_BY_NAME",e[e.HARDCODED=2]="HARDCODED"}(r=t.ComponentSource||(t.ComponentSource={}));var d=function(){function e(){}return e.prototype.newDateComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,"dateComponent","agDateInput")},e.prototype.newHeaderComponent=function(e){return this.createAndInitUserComponent(e.column.getColDef(),e,"headerComponent","agColumnHeader")},e.prototype.newHeaderGroupComponent=function(e){return this.createAndInitUserComponent(e.columnGroup.getColGroupDef(),e,"headerGroupComponent","agColumnGroupHeader")},e.prototype.newFullWidthGroupRowInnerCellRenderer=function(e){return this.createAndInitUserComponent(this.gridOptions,e,"groupRowInnerRenderer",null,!0)},e.prototype.newFullWidthCellRenderer=function(e,t,o){return this.createAndInitUserComponent(null,e,t,o)},e.prototype.newCellRenderer=function(e,t){return this.createAndInitUserComponent(e,t,"cellRenderer",null,!0)},e.prototype.newPinnedRowCellRenderer=function(e,t){return this.createAndInitUserComponent(e,t,"pinnedRowCellRenderer",null,!0)},e.prototype.newCellEditor=function(e,t){return this.createAndInitUserComponent(e,t,"cellEditor","agCellEditor")},e.prototype.newInnerCellRenderer=function(e,t){return this.createAndInitUserComponent(e,t,"innerRenderer",null)},e.prototype.newLoadingOverlayComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,"loadingOverlayComponent","agLoadingOverlay")},e.prototype.newNoRowsOverlayComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,"noRowsOverlayComponent","agNoRowsOverlay")},e.prototype.newTooltipComponent=function(e){var t=e.column&&e.column.getColDef();return this.createAndInitUserComponent(t,e,"tooltipComponent","agTooltipComponent")},e.prototype.newFilterComponent=function(e,t,o,i){return this.createAndInitUserComponent(e,t,"filter",o,!1,i)},e.prototype.newFloatingFilterComponent=function(e,t,o){return this.createAndInitUserComponent(e,t,"floatingFilterComponent",o,!0)},e.prototype.newToolPanelComponent=function(e,t){return this.createAndInitUserComponent(e,t,"toolPanel")},e.prototype.newStatusPanelComponent=function(e,t){return this.createAndInitUserComponent(e,t,"statusPanel")},e.prototype.createAndInitUserComponent=function(e,t,o,i,n,r){void 0===n&&(n=!1),e||(e=this.gridOptions);var s=this.createComponentInstance(e,o,t,i,n);if(!s)return null;var a=s.componentInstance,l=this.createFinalParams(e,o,t,s.paramsFromSelector);this.addReactHacks(l);var p=r?r(l,a):l,u=this.initComponent(a,p);return null==u?c.Promise.resolve(a):u.map((function(e){return a}))},e.prototype.addReactHacks=function(e){var t=this.context.getBean("agGridReact");t&&(e.agGridReact=c._.cloneObject(t));var o=this.context.getBean("frameworkComponentWrapper");o&&(e.frameworkComponentWrapper=o)},e.prototype.createUserComponentFromConcreteClass=function(e,t){var o=new e;return this.initComponent(o,t),o},e.prototype.lookupComponentClassDef=function(e,t,o,i){void 0===o&&(o=null);var n,s=null,a=null,l=null,p=null;if(null!=e){var u=e[t];null==u||!0===u||("string"==typeof u?s=u:"boolean"==typeof u||(this.agComponentUtils.doesImplementIComponent(u)?a=u:l=u)),p=e[t+"Framework"],n=e[t+"Selector"]}if(a&&p||s&&p||l&&p)throw Error("ag-grid: you are trying to specify: "+t+" twice as a component.");if(p&&!this.frameworkComponentWrapper)throw Error("ag-grid: you are specifying a framework component but you are not using a framework version of ag-grid for : "+t);if(n&&(s||a||l||p))throw Error("ag-grid: you can't specify both, the selector and the component of ag-grid for : "+t);if(p)return{componentFromFramework:!0,component:p,source:r.HARDCODED,paramsFromSelector:null};if(a)return{componentFromFramework:!1,component:a,source:r.HARDCODED,paramsFromSelector:null};if(l)return this.agComponentUtils.adaptFunction(t,l,!1,r.HARDCODED);var c,d=n?n(o):null;if(!(c=d&&d.component?d.component:s||i))return null;var h=this.lookupFromRegisteredComponents(t,c);return{componentFromFramework:h.componentFromFramework,component:h.component,source:h.source,paramsFromSelector:d?d.params:null}},e.prototype.lookupFromRegisteredComponents=function(e,t){var o=null!=t?t:e,i=this.userComponentRegistry.retrieve(o);return null==i?null:i.componentFromFramework?{component:i.component,componentFromFramework:!0,source:r.REGISTERED_BY_NAME,paramsFromSelector:null}:this.agComponentUtils.doesImplementIComponent(i.component)?{component:i.component,componentFromFramework:!1,source:i.source==l.RegisteredComponentSource.REGISTERED?r.REGISTERED_BY_NAME:r.DEFAULT,paramsFromSelector:null}:this.agComponentUtils.adaptFunction(e,i.component,i.componentFromFramework,i.source==l.RegisteredComponentSource.REGISTERED?r.REGISTERED_BY_NAME:r.DEFAULT)},e.prototype.createFinalParams=function(e,t,o,i){void 0===i&&(i=null);var n={};c._.mergeDeep(n,o);var r=e?e[t+"Params"]:null;return null!=r&&("function"==typeof r?c._.mergeDeep(n,r(o)):"object"==typeof r&&c._.mergeDeep(n,r)),c._.mergeDeep(n,i),n},e.prototype.createComponentInstance=function(e,t,o,i,n){var r,s=this.lookupComponentClassDef(e,t,o,i);if(!s||!s.component)return n||console.error("Error creating component "+t+"=>"+i),null;if(s.componentFromFramework){var a=s.component,l=this.componentMetadataProvider.retrieve(t);r=this.frameworkComponentWrapper.wrap(a,l.mandatoryMethodList,l.optionalMethodList,i)}else r=new s.component;return{componentInstance:r,paramsFromSelector:s.paramsFromSelector}},e.prototype.initComponent=function(e,t){return this.context.wireBean(e),null==e.init?void 0:e.init(t)},i([s.Autowired("gridOptions"),n("design:type",Object)],e.prototype,"gridOptions",void 0),i([s.Autowired("gridOptionsWrapper"),n("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Autowired("context"),n("design:type",s.Context)],e.prototype,"context",void 0),i([s.Autowired("agComponentUtils"),n("design:type",p.AgComponentUtils)],e.prototype,"agComponentUtils",void 0),i([s.Autowired("componentMetadataProvider"),n("design:type",u.ComponentMetadataProvider)],e.prototype,"componentMetadataProvider",void 0),i([s.Autowired("userComponentRegistry"),n("design:type",l.UserComponentRegistry)],e.prototype,"userComponentRegistry",void 0),i([s.Optional("frameworkComponentWrapper"),n("design:type",Object)],e.prototype,"frameworkComponentWrapper",void 0),i([s.Bean("userComponentFactory")],e)}();t.UserComponentFactory=d},86608:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(26016),s=o(72493),a=o(44081),l=o(44871),p=o(98239),u=o(60843),c=o(63405),d=o(40797),h=o(83423),f=function(){function e(){}var t;return t=e,e.prototype.progressSort=function(e,t,o){void 0===o&&(o="api");var i=this.getNextSortDirection(e);this.setSortForColumn(e,i,t,o)},e.prototype.setSortForColumn=function(e,t,o,i){if(void 0===i&&(i="api"),t!==r.Column.SORT_ASC&&t!==r.Column.SORT_DESC&&(t=null),e.setSort(t,i),e.getSort()){var n=Number((new Date).valueOf());e.setSortedAt(n)}else e.setSortedAt(null);o&&!this.gridOptionsWrapper.isSuppressMultiSort()||this.clearSortBarThisColumn(e,i),this.dispatchSortChangedEvents()},e.prototype.onSortChanged=function(){this.dispatchSortChangedEvents()},e.prototype.dispatchSortChangedEvents=function(){var e={type:c.Events.EVENT_SORT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.clearSortBarThisColumn=function(e,t){this.columnController.getPrimaryAndSecondaryAndAutoColumns().forEach((function(o){o!==e&&o.setSort(void 0,t)}))},e.prototype.getNextSortDirection=function(e){var o;if(o=e.getColDef().sortingOrder?e.getColDef().sortingOrder:this.gridOptionsWrapper.getSortingOrder()?this.gridOptionsWrapper.getSortingOrder():t.DEFAULT_SORTING_ORDER,!Array.isArray(o)||o.length<=0)return console.warn("ag-grid: sortingOrder must be an array with at least one element, currently it's "+o),null;var i,n=o.indexOf(e.getSort()),r=n<0,s=n==o.length-1;return i=r||s?o[0]:o[n+1],t.DEFAULT_SORTING_ORDER.indexOf(i)<0?(console.warn("ag-grid: invalid sort type "+i),null):i},e.prototype.getSortModel=function(){var e=this.getColumnsWithSortingOrdered();return h._.map(e,(function(e){return{colId:e.getColId(),sort:e.getSort()}}))},e.prototype.setSortModel=function(e,t){var o=this;void 0===t&&(t="api");var i=e&&e.length>0;this.columnController.getPrimaryAndSecondaryAndAutoColumns().forEach((function(n){var r=null,s=-1;if(i&&n.getColDef().sortable)for(var a=0;a<e.length;a++){var l=e[a];"string"==typeof l.colId&&"string"==typeof n.getColId()&&o.compareColIds(l,n)&&(r=l.sort,s=a)}r?(n.setSort(r,t),n.setSortedAt(s)):(n.setSort(null,t),n.setSortedAt(null))})),this.dispatchSortChangedEvents()},e.prototype.compareColIds=function(e,t){return e.colId===t.getColId()},e.prototype.getColumnsWithSortingOrdered=function(){var e=this.columnController.getPrimaryAndSecondaryAndAutoColumns(),t=h._.filter(e,(function(e){return!!e.getSort()}));return t.sort((function(e,t){return e.sortedAt-t.sortedAt})),t},e.prototype.getSortForRowController=function(){var e=this.getColumnsWithSortingOrdered();return h._.map(e,(function(e){return{inverter:e.getSort()===r.Column.SORT_ASC?1:-1,column:e}}))},e.DEFAULT_SORTING_ORDER=[r.Column.SORT_ASC,r.Column.SORT_DESC,null],i([s.Autowired("gridOptionsWrapper"),n("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Autowired("columnController"),n("design:type",p.ColumnController)],e.prototype,"columnController",void 0),i([s.Autowired("eventService"),n("design:type",u.EventService)],e.prototype,"eventService",void 0),i([s.Autowired("columnApi"),n("design:type",l.ColumnApi)],e.prototype,"columnApi",void 0),i([s.Autowired("gridApi"),n("design:type",d.GridApi)],e.prototype,"gridApi",void 0),t=i([s.Bean("sortController")],e)}();t.SortController=f},86895:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.prototype.dateComponent=function(e){return e.dateComponent},e.prototype.colDefFloatingCellRenderer=function(e){return e.pinnedRowCellRenderer},e.prototype.colDefCellRenderer=function(e){return e.cellRenderer},e.prototype.colDefCellEditor=function(e){return e.cellEditor},e.prototype.colDefFilter=function(e){return e.filter},e.prototype.gridOptionsFullWidthCellRenderer=function(e){return e.fullWidthCellRenderer},e.prototype.gridOptionsGroupRowRenderer=function(e){return e.groupRowRenderer},e.prototype.gridOptionsGroupRowInnerRenderer=function(e){return e.groupRowInnerRenderer},e.prototype.setTimeout=function(e,t){window.setTimeout(e,t)},e}();t.BaseFrameworkFactory=o},87952:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(22131),l=o(72493),p=o(15068),u=o(58342),c=o(85222),d=o(8534),h=o(83423),f=function(e){function t(t,o,i,n){var r=e.call(this,'<div class="ag-row-drag"></div>')||this;return r.visibleMode=null,r.rowNode=t,r.column=o,r.cellValue=i,r.beans=n,r}return n(t,e),t.prototype.postConstruct=function(){this.getGui().appendChild(h._.createIconNoSpan("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource(),this.checkCompatibility(),this.beans.gridOptionsWrapper.isRowDragManaged()?this.addFeature(this.beans.context,new m(this,this.beans,this.rowNode,this.column)):this.addFeature(this.beans.context,new g(this,this.beans,this.rowNode,this.column))},t.prototype.checkCompatibility=function(){var e=this.beans.gridOptionsWrapper.isRowDragManaged();this.beans.gridOptionsWrapper.isTreeData()&&e&&h._.doOnce((function(){return console.warn("ag-Grid: If using row drag with tree data, you cannot have rowDragManaged=true")}),"RowDragComp.managedAndTreeData")},t.prototype.addDragSource=function(){var e=this,t={rowNode:this.rowNode},o={type:u.DragSourceType.RowDrag,eElement:this.getGui(),dragItemName:this.cellValue,dragItemCallback:function(){return t},dragStartPixels:0};this.beans.dragAndDropService.addDragSource(o,!0),this.addDestroyFunc((function(){return e.beans.dragAndDropService.removeDragSource(o)}))},t.prototype.getVisibleMode=function(){return this.visibleMode},t.prototype.setVisibleMode=function(e){this.visibleMode=e},r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.RowDragComp=f;var g=function(e){function t(t,o,i,n){var r=e.call(this)||this;return r.parent=t,r.beans=o,r.column=n,r.rowNode=i,r}return n(t,e),t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addDestroyableEventListener(this.rowNode,p.RowNode.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.rowNode,p.RowNode.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){if(this.beans.gridOptionsWrapper.isSuppressRowDrag())this.parent.setVisibleMode("display"),this.parent.setVisible(!1,"display");else{var e=this.column.isRowDrag(this.rowNode);if(!this.parent.getVisibleMode()){var t=h._.isFunction(this.column.getColDef().rowDrag);this.parent.setVisibleMode(t?"visibility":"display")}this.parent.setVisible(e,this.parent.getVisibleMode())}},r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(d.BeanStub),m=function(e){function t(t,o,i,n){var r=e.call(this)||this;return r.parent=t,r.beans=o,r.column=n,r.rowNode=i,r}return n(t,e),t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.beans.eventService,c.Events.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addDestroyableEventListener(this.beans.eventService,c.Events.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addDestroyableEventListener(this.beans.eventService,c.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,p.RowNode.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.rowNode,p.RowNode.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.updateSortActive(),this.updateFilterActive(),this.updateRowGroupActive(),this.workOutVisibility()},t.prototype.updateRowGroupActive=function(){var e=this.beans.columnController.getRowGroupColumns();this.rowGroupActive=!h._.missingOrEmpty(e)},t.prototype.onRowGroupChanged=function(){this.updateRowGroupActive(),this.workOutVisibility()},t.prototype.updateSortActive=function(){var e=this.beans.sortController.getSortModel();this.sortActive=!h._.missingOrEmpty(e)},t.prototype.onSortChanged=function(){this.updateSortActive(),this.workOutVisibility()},t.prototype.updateFilterActive=function(){this.filterActive=this.beans.filterManager.isAnyFilterPresent()},t.prototype.onFilterChanged=function(){this.updateFilterActive(),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.sortActive||this.filterActive||this.rowGroupActive,t=this.beans.gridOptionsWrapper.isSuppressRowDrag();if(e||t)this.parent.setVisibleMode("display"),this.parent.setVisible(!1,"display");else{var o=this.column.isRowDrag(this.rowNode);if(!this.parent.getVisibleMode()){var i=h._.isFunction(this.column.getColDef().rowDrag);this.parent.setVisibleMode(i?"visibility":"display")}this.parent.setVisible(o,this.parent.getVisibleMode())}},r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(d.BeanStub)},88333:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=o(83423),n=function(){function e(t){var o=this;this.items=[],this.params=t,this.eGui=document.createElement("div"),this.eGui.innerHTML=e.TEMPLATE,this.eHeader=this.eGui.querySelector('[ref="tabHeader"]'),this.eBody=this.eGui.querySelector('[ref="tabBody"]'),i._.addCssClass(this.eGui,t.cssClass),t.items&&t.items.forEach((function(e){return o.addItem(e)}))}return e.prototype.setAfterAttachedParams=function(e){this.afterAttachedParams=e},e.prototype.getMinDimensions=function(){var e=this.eGui.cloneNode(!0),t=e.querySelector('[ref="tabBody"]');e.style.position="fixed",this.eGui.appendChild(e);var o=0,n=0;return this.items.forEach((function(r){i._.clearElement(t);var s=r.tabbedItem.bodyPromise.resolveNow(null,(function(e){return e.cloneNode(!0)}));null!=s&&(t.appendChild(s),o<e.offsetWidth&&(o=e.offsetWidth),n<e.offsetHeight&&(n=e.offsetHeight))})),this.eGui.removeChild(e),{height:n,width:o}},e.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},e.prototype.addItem=function(e){var t=document.createElement("span");t.appendChild(e.title),i._.addCssClass(t,"ag-tab"),this.eHeader.appendChild(t);var o={tabbedItem:e,eHeaderButton:t};this.items.push(o),t.addEventListener("click",this.showItemWrapper.bind(this,o))},e.prototype.showItem=function(e){var t=i._.find(this.items,(function(t){return t.tabbedItem===e}));t&&this.showItemWrapper(t)},e.prototype.showItemWrapper=function(e){var t=this;this.params.onItemClicked&&this.params.onItemClicked({item:e.tabbedItem}),this.activeItem!==e?(i._.clearElement(this.eBody),e.tabbedItem.bodyPromise.then((function(e){t.eBody.appendChild(e)})),this.activeItem&&i._.removeCssClass(this.activeItem.eHeaderButton,"ag-tab-selected"),i._.addCssClass(e.eHeaderButton,"ag-tab-selected"),this.activeItem=e,e.tabbedItem.afterAttachedCallback&&e.tabbedItem.afterAttachedCallback(this.afterAttachedParams)):i._.callIfPresent(this.params.onActiveItemClicked)},e.prototype.getGui=function(){return this.eGui},e.TEMPLATE='<div><div ref="tabHeader" class="ag-tab-header"></div><div ref="tabBody" class="ag-tab-body"></div></div>',e}();t.TabbedLayout=n},88842:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(44081),a=function(){function e(){this.cacheVersion=0}return e.prototype.init=function(){this.active=this.gridOptionsWrapper.isValueCache(),this.neverExpires=this.gridOptionsWrapper.isValueCacheNeverExpires()},e.prototype.onDataChanged=function(){this.neverExpires||this.expire()},e.prototype.expire=function(){this.cacheVersion++},e.prototype.setValue=function(e,t,o){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[t]=o)},e.prototype.getValue=function(e,t){return this.active&&e.__cacheVersion===this.cacheVersion&&void 0!==e.__cacheData[t]?e.__cacheData[t]:void 0},i([r.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([r.Bean("valueCache")],e)}();t.ValueCache=a},89929:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(44081),l=o(98239),p=o(26016),u=o(72493),c=o(40706),d=o(60843),h=o(63405),f=o(22131),g=o(47721),m=o(40797),y=o(41832),v=o(45727),C=o(83423),w=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return n(t,e),t.prototype.registerGridComp=function(e){this.gridPanel=e,this.childContainers.forEach((function(t){return t.registerGridComp(e)}))},t.prototype.postConstruct=function(){var e=this;this.printLayout=this.gridOptionsWrapper.getDomLayout()===v.Constants.DOM_LAYOUT_PRINT,this.gridApi.registerHeaderRootComp(this),this.autoWidthCalculator.registerHeaderRootComp(this);var t=new c.HeaderContainer(this.eHeaderContainer,this.eHeaderViewport,null),o=new c.HeaderContainer(this.ePinnedLeftHeader,null,p.Column.PINNED_LEFT),i=new c.HeaderContainer(this.ePinnedRightHeader,null,p.Column.PINNED_RIGHT);this.childContainers=[t,o,i],this.childContainers.forEach((function(t){return e.getContext().wireBean(t)})),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_COLUMN_VALUE_CHANGED,this.refreshHeader.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.onPivotModeChanged(),this.addPreventHeaderScroll(),this.columnController.isReady()&&this.refreshHeader()},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===v.Constants.DOM_LAYOUT_PRINT;this.printLayout!==e&&(this.printLayout=e,this.refreshHeader())},t.prototype.setHorizontalScroll=function(e){this.eHeaderContainer.style.transform="translateX("+e+"px)"},t.prototype.forEachHeaderElement=function(e){this.childContainers.forEach((function(t){return t.forEachHeaderElement(e)}))},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.childContainers.forEach((function(e){return e.destroy()}))},t.prototype.refreshHeader=function(){this.childContainers.forEach((function(e){return e.refresh()}))},t.prototype.onPivotModeChanged=function(){var e=this.columnController.isPivotMode();C._.addOrRemoveCssClass(this.getGui(),"ag-pivot-on",e),C._.addOrRemoveCssClass(this.getGui(),"ag-pivot-off",!e)},t.prototype.setHeight=function(e){var t=e+"px";this.getGui().style.height=t,this.getGui().style.minHeight=t},t.prototype.addPreventHeaderScroll=function(){var e=this;this.addDestroyableEventListener(this.eHeaderViewport,"scroll",(function(){var t=e.eHeaderViewport.scrollLeft;0!==t&&(e.gridPanel.scrollHorizontally(t),e.eHeaderViewport.scrollLeft=0)}))},t.prototype.setHeaderContainerWidth=function(e){this.eHeaderContainer.style.width=e+"px"},t.prototype.setLeftVisible=function(e){C._.setVisible(this.ePinnedLeftHeader,e)},t.prototype.setRightVisible=function(e){C._.setVisible(this.ePinnedRightHeader,e)},t.TEMPLATE='<div class="ag-header" role="row">\n <div class="ag-pinned-left-header" ref="ePinnedLeftHeader" role="presentation"></div>\n <div class="ag-header-viewport" ref="eHeaderViewport" role="presentation">\n <div class="ag-header-container" ref="eHeaderContainer" role="presentation"></div>\n </div>\n <div class="ag-pinned-right-header" ref="ePinnedRightHeader" role="presentation"></div>\n </div>',r([g.RefSelector("ePinnedLeftHeader"),s("design:type",HTMLElement)],t.prototype,"ePinnedLeftHeader",void 0),r([g.RefSelector("ePinnedRightHeader"),s("design:type",HTMLElement)],t.prototype,"ePinnedRightHeader",void 0),r([g.RefSelector("eHeaderContainer"),s("design:type",HTMLElement)],t.prototype,"eHeaderContainer",void 0),r([g.RefSelector("eHeaderViewport"),s("design:type",HTMLElement)],t.prototype,"eHeaderViewport",void 0),r([u.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([u.Autowired("columnController"),s("design:type",l.ColumnController)],t.prototype,"columnController",void 0),r([u.Autowired("eventService"),s("design:type",d.EventService)],t.prototype,"eventService",void 0),r([u.Autowired("gridApi"),s("design:type",m.GridApi)],t.prototype,"gridApi",void 0),r([u.Autowired("autoWidthCalculator"),s("design:type",y.AutoWidthCalculator)],t.prototype,"autoWidthCalculator",void 0),r([u.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(f.Component);t.HeaderRootComp=w},92378:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(47721),l=o(13650),p=o(83423),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.modelFromFloatingFilter=function(e){return{type:this.selectedFilter,filter:Number(e),filterTo:this.filterNumberTo,filterType:"number"}},t.prototype.getApplicableFilterTypes=function(){return[l.BaseFilter.EQUALS,l.BaseFilter.NOT_EQUAL,l.BaseFilter.LESS_THAN,l.BaseFilter.LESS_THAN_OR_EQUAL,l.BaseFilter.GREATER_THAN,l.BaseFilter.GREATER_THAN_OR_EQUAL,l.BaseFilter.IN_RANGE]},t.prototype.bodyTemplate=function(e){var t=this.translate.bind(this),o=e==l.FilterConditionType.MAIN?"filterText":"filterConditionText",i=e==l.FilterConditionType.MAIN?"filterNumberToPanel":"filterNumberToPanelCondition",n=e==l.FilterConditionType.MAIN?"filterToText":"filterToConditionText";return'<div class="ag-filter-body">\n <div class="ag-input-text-wrapper">\n <input class="ag-filter-filter" id="'+o+'" type="text" placeholder="'+t("filterOoo")+'"/>\n </div>\n <div class="ag-input-text-wrapper ag-filter-number-to" id="'+i+'">\n <input class="ag-filter-filter" id="'+n+'" type="text" placeholder="'+t("filterOoo")+'"/>\n </div>\n </div>'},t.prototype.initialiseFilterBodyUi=function(t){e.prototype.initialiseFilterBodyUi.call(this,t),t===l.FilterConditionType.MAIN?(this.eFilterTextField=this.queryForHtmlInputElement("#filterText"),this.addFilterChangedEventListeners(t,this.eFilterTextField,this.eFilterToTextField)):(this.eFilterTextConditionField=this.queryForHtmlInputElement("#filterConditionText"),this.addFilterChangedEventListeners(t,this.eFilterTextConditionField,this.eFilterToConditionText),this.setFilter(this.filterNumberCondition,l.FilterConditionType.CONDITION),this.setFilterTo(this.filterNumberConditionTo,l.FilterConditionType.CONDITION),this.setFilterType(this.selectedFilterCondition,l.FilterConditionType.CONDITION))},t.prototype.addFilterChangedEventListeners=function(e,t,o){var i=this,n=this.getDebounceMs(this.filterParams),r=p._.debounce((function(){return i.onTextFieldsChanged(e,t,o)}),n);this.addDestroyableEventListener(t,"input",r),this.addDestroyableEventListener(o,"input",r)},t.prototype.afterGuiAttached=function(){this.eFilterTextField.focus()},t.prototype.comparator=function(){return function(e,t){return e===t?0:e<t?1:e>t?-1:void 0}},t.prototype.onTextFieldsChanged=function(e,t,o){var i=this.stringToFloat(t.value),n=this.stringToFloat(o.value);e===l.FilterConditionType.MAIN?this.filterNumber===i&&this.filterNumberTo===n||(this.filterNumber=i,this.filterNumberTo=n,this.onFilterChanged()):this.filterNumberCondition===i&&this.filterNumberConditionTo===n||(this.filterNumberCondition=i,this.filterNumberConditionTo=n,this.onFilterChanged())},t.prototype.filterValues=function(e){return e===l.FilterConditionType.MAIN?this.selectedFilter!==l.BaseFilter.IN_RANGE?this.asNumber(this.filterNumber):[this.asNumber(this.filterNumber),this.asNumber(this.filterNumberTo)]:this.selectedFilterCondition!==l.BaseFilter.IN_RANGE?this.asNumber(this.filterNumberCondition):[this.asNumber(this.filterNumberCondition),this.asNumber(this.filterNumberConditionTo)]},t.prototype.asNumber=function(e){return p._.isNumeric(e)?e:null},t.prototype.stringToFloat=function(e){var t=p._.makeNull(e);return t&&""===t.trim()&&(t=null),null!=t?parseFloat(t):null},t.prototype.setFilter=function(e,t){if(null!==(e=p._.makeNull(e))&&"number"!=typeof e&&(e=parseFloat(e)),t===l.FilterConditionType.MAIN){if(this.filterNumber=e,!this.eFilterTextField)return;this.eFilterTextField.value=e}else{if(this.filterNumberCondition=e,!this.eFilterTextConditionField)return;this.eFilterTextConditionField.value=e}},t.prototype.setFilterTo=function(e,t){if(null!==(e=p._.makeNull(e))&&"number"!=typeof e&&(e=parseFloat(e)),t===l.FilterConditionType.MAIN){if(this.filterNumberTo=e,!this.eFilterToTextField)return;this.eFilterToTextField.value=e}else{if(this.filterNumberConditionTo=e,!this.eFilterToConditionText)return;this.eFilterToConditionText.value=e}},t.prototype.getFilter=function(e){return e===l.FilterConditionType.MAIN?this.filterNumber:this.filterNumberCondition},t.prototype.serialize=function(e){var t=e===l.FilterConditionType.MAIN?this.selectedFilter:this.selectedFilterCondition,o=e===l.FilterConditionType.MAIN?this.filterNumber:this.filterNumberCondition,i=e===l.FilterConditionType.MAIN?this.filterNumberTo:this.filterNumberConditionTo;return{type:t||this.defaultFilter,filter:o,filterTo:i,filterType:"number"}},t.prototype.parse=function(e,t){this.setFilterType(e.type,t),this.setFilter(e.filter,t),this.setFilterTo(e.filterTo,t)},t.prototype.refreshFilterBodyUi=function(e){var o=e===l.FilterConditionType.MAIN?this.selectedFilter:this.selectedFilterCondition,i=e===l.FilterConditionType.MAIN?this.eNumberToPanel:this.eNumberToConditionPanel;if(i){var n=o===t.IN_RANGE;p._.setVisible(i,n)}var r=e===l.FilterConditionType.MAIN?this.eFilterTextField:this.eFilterTextConditionField;if(r){var s=!this.doesFilterHaveHiddenInput(o)&&o!==l.BaseFilter.EMPTY;p._.setVisible(r,s)}},t.prototype.resetState=function(e){void 0===e&&(e=!1),e||(this.setFilterType(this.defaultFilter,l.FilterConditionType.MAIN),this.setFilter(null,l.FilterConditionType.MAIN),this.setFilterTo(null,l.FilterConditionType.MAIN)),this.setFilterType(this.defaultFilter,l.FilterConditionType.CONDITION),this.setFilter(null,l.FilterConditionType.CONDITION),this.setFilterTo(null,l.FilterConditionType.CONDITION)},t.prototype.setType=function(e,t){this.setFilterType(e,t)},t.LESS_THAN="lessThan",r([a.QuerySelector("#filterText"),s("design:type",HTMLInputElement)],t.prototype,"eFilterTextField",void 0),r([a.QuerySelector("#filterTextCondition"),s("design:type",HTMLInputElement)],t.prototype,"eFilterTextConditionField",void 0),r([a.QuerySelector("#filterToText"),s("design:type",HTMLInputElement)],t.prototype,"eFilterToTextField",void 0),r([a.QuerySelector("#filterToConditionText"),s("design:type",HTMLInputElement)],t.prototype,"eFilterToConditionText",void 0),r([a.QuerySelector("#filterNumberToPanel"),s("design:type",HTMLElement)],t.prototype,"eNumberToPanel",void 0),r([a.QuerySelector("#filterNumberToPanelCondition"),s("design:type",HTMLElement)],t.prototype,"eNumberToConditionPanel",void 0),t}(l.ScalarBaseFilter);t.NumberFilter=u},92427:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(72493),a=function(){function e(){this.templateCache={},this.waitingCallbacks={}}return e.prototype.getTemplate=function(e,t){var o=this.templateCache[e];if(o)return o;var i=this.waitingCallbacks[e],n=this;if(!i){i=[],this.waitingCallbacks[e]=i;var r=new XMLHttpRequest;r.onload=function(){n.handleHttpResult(this,e)},r.open("GET",e),r.send()}return t&&i.push(t),null},e.prototype.handleHttpResult=function(e,t){if(200===e.status&&null!==e.response){this.templateCache[t]=e.response||e.responseText;for(var o=this.waitingCallbacks[t],i=0;i<o.length;i++)(0,o[i])();if(this.$scope){var n=this;window.setTimeout((function(){n.$scope.$apply()}),0)}}else console.warn("Unable to get template error "+e.status+" - "+t)},i([s.Autowired("$scope"),n("design:type",Object)],e.prototype,"$scope",void 0),i([r.Bean("templateService")],e)}();t.TemplateService=a},92926:e=>{e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(o){!function(e,t,o){var i=o.css,n=o.media,r=o.sourceMap;n?e.setAttribute("media",n):e.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(i,e)}(t,e,o)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},93121:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(44081),a=o(40634),l=function(){function e(){}return e.prototype.formatValue=function(e,t,o,i){var n,r=e.getColDef(),s=null;if(n=t&&t.rowPinned&&r.pinnedRowValueFormatter?r.pinnedRowValueFormatter:r.valueFormatter){var a={value:i,node:t,data:t?t.data:null,colDef:e.getColDef(),column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};a.$scope=o,s=this.expressionService.evaluate(n,a)}else if(r.refData)return r.refData[i]||"";return null==s&&Array.isArray(i)&&(s=i.join(", ")),s},i([r.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("expressionService"),n("design:type",a.ExpressionService)],e.prototype,"expressionService",void 0),i([r.Bean("valueFormatterService")],e)}();t.ValueFormatterService=l},93830:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(60843),l=o(72493),p=o(63405),u=o(8534),c=o(44871),d=o(40797),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.setMouseOver=function(e){this.selectedColumns=e;var t={type:p.Events.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.clearMouseOver=function(){this.selectedColumns=null;var e={type:p.Events.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},t.prototype.isHovered=function(e){return this.selectedColumns&&this.selectedColumns.indexOf(e)>=0},r([l.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),r([l.Autowired("columnApi"),s("design:type",c.ColumnApi)],t.prototype,"columnApi",void 0),r([l.Autowired("gridApi"),s("design:type",d.GridApi)],t.prototype,"gridApi",void 0),r([l.Bean("columnHoverService")],t)}(u.BeanStub);t.ColumnHoverService=h},95125:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(22131),l=o(15068),p=o(72493),u=o(44081),c=o(63405),d=o(60843),h=o(40797),f=o(44871),g=o(83423),m=function(e){function t(){return e.call(this,'<span class="ag-selection-checkbox" unselectable="on"/>')||this}return n(t,e),t.prototype.createAndAddIcons=function(){this.eCheckedIcon=g._.createIconNoSpan("checkboxChecked",this.gridOptionsWrapper,this.column),this.eUncheckedIcon=g._.createIconNoSpan("checkboxUnchecked",this.gridOptionsWrapper,this.column),this.eIndeterminateIcon=g._.createIconNoSpan("checkboxIndeterminate",this.gridOptionsWrapper,this.column);var e=this.getGui();e.appendChild(this.eCheckedIcon),e.appendChild(this.eUncheckedIcon),e.appendChild(this.eIndeterminateIcon)},t.prototype.onDataChanged=function(){this.onSelectionChanged()},t.prototype.onSelectableChanged=function(){this.showOrHideSelect()},t.prototype.onSelectionChanged=function(){var e=this.rowNode.isSelected();g._.setVisible(this.eCheckedIcon,!0===e),g._.setVisible(this.eUncheckedIcon,!1===e),g._.setVisible(this.eIndeterminateIcon,"boolean"!=typeof e)},t.prototype.onCheckedClicked=function(){var e=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!1,groupSelectsFiltered:e})},t.prototype.onUncheckedClicked=function(e){var t=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:e.shiftKey,groupSelectsFiltered:t})},t.prototype.onIndeterminateClicked=function(e){0===this.onUncheckedClicked(e)&&this.onCheckedClicked()},t.prototype.init=function(e){this.rowNode=e.rowNode,this.column=e.column,this.createAndAddIcons(),this.onSelectionChanged(),this.addGuiEventListener("click",(function(e){return g._.stopPropagationForAgGrid(e)})),this.addGuiEventListener("dblclick",(function(e){return g._.stopPropagationForAgGrid(e)})),this.addDestroyableEventListener(this.eCheckedIcon,"click",this.onCheckedClicked.bind(this)),this.addDestroyableEventListener(this.eUncheckedIcon,"click",this.onUncheckedClicked.bind(this)),this.addDestroyableEventListener(this.eIndeterminateIcon,"click",this.onIndeterminateClicked.bind(this)),this.addDestroyableEventListener(this.rowNode,l.RowNode.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,l.RowNode.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,l.RowNode.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc(),(this.isRowSelectableFunc||this.checkboxCallbackExists())&&(this.addDestroyableEventListener(this.eventService,c.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelect.bind(this)),this.showOrHideSelect())},t.prototype.showOrHideSelect=function(){var e=this.rowNode.selectable;e&&this.checkboxCallbackExists()&&(e=this.column.isCellCheckboxSelection(this.rowNode)),this.setVisible(e)},t.prototype.checkboxCallbackExists=function(){var e=this.column?this.column.getColDef():null;return e&&"function"==typeof e.checkboxSelection},r([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([p.Autowired("eventService"),s("design:type",d.EventService)],t.prototype,"eventService",void 0),r([p.Autowired("gridApi"),s("design:type",h.GridApi)],t.prototype,"gridApi",void 0),r([p.Autowired("columnApi"),s("design:type",f.ColumnApi)],t.prototype,"columnApi",void 0),t}(a.Component);t.CheckboxSelectionComponent=m},95574:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(22131),l=o(98239),p=o(44081),u=o(72493),c=o(66419),d=o(47721),h=o(72948),f=o(83423),g=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return n(t,e),t.prototype.init=function(e){this.params=e,this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},t.prototype.setupExpandIcons=function(){var e=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var t=function(t){if(!f._.isStopPropagationForAgGrid(t)){var o=!e.params.columnGroup.isExpanded();e.columnController.setColumnGroupOpened(e.params.columnGroup.getOriginalColumnGroup(),o,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,t),this.addTouchAndClickListeners(this.eOpenIcon,t);var o=function(e){f._.stopPropagationForAgGrid(e)};this.addDestroyableEventListener(this.eCloseIcon,"dblclick",o),this.addDestroyableEventListener(this.eOpenIcon,"dblclick",o),this.addDestroyableEventListener(this.getGui(),"dblclick",t),this.updateIconVisibility();var i=this.params.columnGroup.getOriginalColumnGroup();this.addDestroyableEventListener(i,h.OriginalColumnGroup.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addDestroyableEventListener(i,h.OriginalColumnGroup.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e,t){var o=new c.TouchListener(this.eCloseIcon);this.addDestroyableEventListener(o,c.TouchListener.EVENT_TAP,t),this.addDestroyFunc((function(){return o.destroy()})),this.addDestroyableEventListener(e,"click",t)},t.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var e=this.params.columnGroup.isExpanded();f._.setVisible(this.eOpenIcon,!e),f._.setVisible(this.eCloseIcon,e)}else f._.setVisible(this.eOpenIcon,!1),f._.setVisible(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,t){var o=f._.createIconNoSpan(e,this.gridOptionsWrapper,null);this.getRefElement(t).appendChild(o)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return f._.setVisible(this.eOpenIcon,!1),void f._.setVisible(this.eCloseIcon,!1)},t.prototype.setupLabel=function(){this.params.displayName&&""!==this.params.displayName&&(this.getRefElement("agLabel").innerHTML=this.params.displayName)},t.TEMPLATE='<div class="ag-header-group-cell-label" ref="agContainer"><span ref="agLabel" class="ag-header-group-text"></span><span ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span><span ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span></div>',r([u.Autowired("columnController"),s("design:type",l.ColumnController)],t.prototype,"columnController",void 0),r([u.Autowired("gridOptionsWrapper"),s("design:type",p.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([d.RefSelector("agOpened"),s("design:type",HTMLElement)],t.prototype,"eOpenIcon",void 0),r([d.RefSelector("agClosed"),s("design:type",HTMLElement)],t.prototype,"eCloseIcon",void 0),t}(a.Component);t.HeaderGroupComp=g},95593:e=>{var t=[];function o(e){for(var o=-1,i=0;i<t.length;i++)if(t[i].identifier===e){o=i;break}return o}function i(e,i){for(var r={},s=[],a=0;a<e.length;a++){var l=e[a],p=i.base?l[0]+i.base:l[0],u=r[p]||0,c="".concat(p," ").concat(u);r[p]=u+1;var d=o(c),h={css:l[1],media:l[2],sourceMap:l[3]};-1!==d?(t[d].references++,t[d].updater(h)):t.push({identifier:c,updater:n(h,i),references:1}),s.push(c)}return s}function n(e,t){var o=t.domAPI(t);return o.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o.update(e=t)}else o.remove()}}e.exports=function(e,n){var r=i(e=e||[],n=n||{});return function(e){e=e||[];for(var s=0;s<r.length;s++){var a=o(r[s]);t[a].references--}for(var l=i(e,n),p=0;p<r.length;p++){var u=o(r[p]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}r=l}}},96896:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.parse=function(t){if(!t)return null;if(!0===t)return{toolPanels:[e.DEFAULT_COLUMN_COMP,e.DEFAULT_FILTER_COMP],defaultToolPanel:"columns"};if("string"==typeof t)return e.parse([t]);if(Array.isArray(t)){var o=[];return t.forEach((function(t){var i=e.DEFAULT_BY_KEY[t];i?o.push(i):console.warn("ag-grid: the key "+t+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(e.DEFAULT_BY_KEY).join(","))})),0===o.length?null:{toolPanels:o,defaultToolPanel:o[0].id}}return{toolPanels:e.parseComponents(t.toolPanels),defaultToolPanel:t.defaultToolPanel,hiddenByDefault:t.hiddenByDefault}},e.parseComponents=function(t){var o=[];return t.forEach((function(t){var i=null;if("string"==typeof t){var n=e.DEFAULT_BY_KEY[t];if(!n)return void console.warn("ag-grid: the key "+t+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(e.DEFAULT_BY_KEY).join(","));i=n}else i=t;o.push(i)})),o},e.DEFAULT_COLUMN_COMP={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel"},e.DEFAULT_FILTER_COMP={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"},e.DEFAULT_BY_KEY={columns:e.DEFAULT_COLUMN_COMP,filters:e.DEFAULT_FILTER_COMP},e}();t.SideBarDefParser=o},97156:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=o(63405),n=o(37789),r=o(44081),s=o(83423),a=function(){function e(){}return e.getEventCallbacks=function(){return e.EVENT_CALLBACKS||(e.EVENT_CALLBACKS=[],e.EVENT_CALLBACKS_NO_PREFIX=[],e.EVENTS.forEach((function(t){e.EVENT_CALLBACKS.push(e.getCallbackForEvent(t)),e.EVENT_CALLBACKS_NO_PREFIX.push(t)}))),e.EVENT_CALLBACKS},e.copyAttributesToGridOptions=function(t,o,i){void 0===i&&(i=!1),l(o),"object"!=typeof t&&(t={});var n=t;return e.ARRAY_PROPERTIES.concat(e.STRING_PROPERTIES).concat(e.OBJECT_PROPERTIES).concat(e.FUNCTION_PROPERTIES).forEach((function(e){void 0!==o[e]&&(n[e]=o[e])})),e.BOOLEAN_PROPERTIES.forEach((function(t){void 0!==o[t]&&(n[t]=e.toBoolean(o[t]))})),e.NUMBER_PROPERTIES.forEach((function(t){void 0!==o[t]&&(n[t]=e.toNumber(o[t]))})),e.getEventCallbacks().forEach((function(e){void 0!==o[e]&&(n[e]=o[e])})),i||e.EVENT_CALLBACKS_NO_PREFIX.forEach((function(t){var i=e.getCallbackForEvent(t);void 0===o[t]&&void 0===o[i]||r.GridOptionsWrapper.checkEventDeprecation(t)})),t},e.getCallbackForEvent=function(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substr(1)},e.processOnChange=function(t,o,n,r){if(t){l(t);var a=o;e.ARRAY_PROPERTIES.concat(e.OBJECT_PROPERTIES).concat(e.STRING_PROPERTIES).forEach((function(e){t[e]&&(a[e]=t[e].currentValue)})),e.BOOLEAN_PROPERTIES.forEach((function(o){t[o]&&(a[o]=e.toBoolean(t[o].currentValue))})),e.NUMBER_PROPERTIES.forEach((function(o){t[o]&&(a[o]=e.toNumber(t[o].currentValue))})),e.getEventCallbacks().forEach((function(e){t[e]&&(a[e]=t[e].currentValue)})),t.enableCellTextSelection&&n.setEnableCellTextSelection(e.toBoolean(t.enableCellTextSelection.currentValue)),t.showToolPanel&&n.showToolPanel(e.toBoolean(t.showToolPanel.currentValue)),t.quickFilterText&&n.setQuickFilter(t.quickFilterText.currentValue),t.rowData&&n.setRowData(t.rowData.currentValue),t.pinnedTopRowData&&n.setPinnedTopRowData(t.pinnedTopRowData.currentValue),t.pinnedBottomRowData&&n.setPinnedBottomRowData(t.pinnedBottomRowData.currentValue),t.columnDefs&&n.setColumnDefs(t.columnDefs.currentValue,"gridOptionsChanged"),t.datasource&&n.setDatasource(t.datasource.currentValue),t.headerHeight&&n.setHeaderHeight(e.toNumber(t.headerHeight.currentValue)),t.paginationPageSize&&n.paginationSetPageSize(e.toNumber(t.paginationPageSize.currentValue)),t.pivotMode&&r.setPivotMode(e.toBoolean(t.pivotMode.currentValue)),t.groupRemoveSingleChildren&&n.setGroupRemoveSingleChildren(e.toBoolean(t.groupRemoveSingleChildren.currentValue)),t.suppressRowDrag&&n.setSuppressRowDrag(e.toBoolean(t.suppressRowDrag.currentValue)),t.gridAutoHeight&&n.setGridAutoHeight(e.toBoolean(t.gridAutoHeight.currentValue)),t.suppressClipboardPaste&&n.setSuppressClipboardPaste(e.toBoolean(t.suppressClipboardPaste.currentValue)),t.sideBar&&n.setSideBar(t.sideBar.currentValue),t.datasource&&n.setDatasource(t.datasource.currentValue);var p={type:i.Events.EVENT_COMPONENT_STATE_CHANGED,api:o.api,columnApi:o.columnApi};s._.iterateObject(t,(function(e,t){p[e]=t})),n.dispatchEvent(p)}},e.toBoolean=function(e){return"boolean"==typeof e?e:"string"==typeof e&&("TRUE"===e.toUpperCase()||""==e)},e.toNumber=function(e){return"number"==typeof e?e:"string"==typeof e?Number(e):void 0},e.EVENTS=[],e.STRING_PROPERTIES=n.PropertyKeys.STRING_PROPERTIES,e.OBJECT_PROPERTIES=n.PropertyKeys.OBJECT_PROPERTIES,e.ARRAY_PROPERTIES=n.PropertyKeys.ARRAY_PROPERTIES,e.NUMBER_PROPERTIES=n.PropertyKeys.NUMBER_PROPERTIES,e.BOOLEAN_PROPERTIES=n.PropertyKeys.BOOLEAN_PROPERTIES,e.FUNCTION_PROPERTIES=n.PropertyKeys.FUNCTION_PROPERTIES,e.ALL_PROPERTIES=n.PropertyKeys.ALL_PROPERTIES,e}();function l(e){(e.rowDeselected||e.onRowDeselected)&&console.warn("ag-grid: as of v3.4 rowDeselected no longer exists. Please check the docs.")}t.ComponentUtil=a,s._.iterateObject(i.Events,(function(e,t){a.EVENTS.push(t)}))},97177:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(44081),s=o(72493),a=o(25230),l=function(){function e(){}return e.prototype.addResizeBar=function(e){var t=this,o={dragStartPixels:e.dragStartPixels||0,eElement:e.eResizeBar,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this,e),onDragging:this.onDragging.bind(this,e)};return this.dragService.addDragSource(o,!0),function(){return t.dragService.removeDragSource(o)}},e.prototype.onDragStart=function(e,t){this.draggingStarted=!0,this.dragStartX=t.clientX,this.setResizeIcons();var o=t instanceof MouseEvent&&!0===t.shiftKey;e.onResizeStart(o)},e.prototype.setResizeIcons=function(){this.oldBodyCursor=this.eGridDiv.style.cursor,this.oldMsUserSelect=this.eGridDiv.style.msUserSelect,this.oldWebkitUserSelect=this.eGridDiv.style.webkitUserSelect,this.eGridDiv.style.cursor="col-resize",this.eGridDiv.style.msUserSelect="none",this.eGridDiv.style.webkitUserSelect="none"},e.prototype.onDragStop=function(e,t){e.onResizeEnd(this.resizeAmount),this.resetIcons()},e.prototype.resetIcons=function(){this.eGridDiv.style.cursor=this.oldBodyCursor,this.eGridDiv.style.msUserSelect=this.oldMsUserSelect,this.eGridDiv.style.webkitUserSelect=this.oldWebkitUserSelect},e.prototype.onDragging=function(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)},i([s.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Autowired("dragService"),n("design:type",a.DragService)],e.prototype,"dragService",void 0),i([s.Autowired("eGridDiv"),n("design:type",HTMLElement)],e.prototype,"eGridDiv",void 0),i([s.Bean("horizontalResizeService")],e)}();t.HorizontalResizeService=l},98239:function(e,t,o){var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(74517),a=o(26016),l=o(44081),p=o(40634),u=o(7897),c=o(31887),d=o(41832),h=o(60843),f=o(814),g=o(37132),m=o(63405),y=o(72948),v=o(12598),C=o(72493),w=o(64314),E=o(43878),_=o(88842),b=o(40797),R=o(44871),O=o(83423),S=function(){function e(){this.primaryHeaderRowCount=0,this.secondaryHeaderRowCount=0,this.secondaryColumnsPresent=!1,this.gridHeaderRowCount=0,this.displayedLeftColumns=[],this.displayedRightColumns=[],this.displayedCenterColumns=[],this.allDisplayedColumns=[],this.allDisplayedVirtualColumns=[],this.allDisplayedCenterVirtualColumns=[],this.rowGroupColumns=[],this.valueColumns=[],this.pivotColumns=[],this.ready=!1,this.autoGroupsNeedBuilding=!1,this.pivotMode=!1,this.bodyWidth=0,this.leftWidth=0,this.rightWidth=0,this.bodyWidthDirty=!0}return e.prototype.init=function(){var e=this.gridOptionsWrapper.isPivotMode();this.suppressColumnVirtualisation=this.gridOptionsWrapper.isSuppressColumnVirtualisation(),this.isPivotSettingAllowed(e)&&(this.pivotMode=e),this.usingTreeData=this.gridOptionsWrapper.isTreeData()},e.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api");var o=!!this.columnDefs;this.columnDefs=e,this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var i=this.primaryColumns,n=this.columnFactory.createColumnTree(e,!0,i);this.primaryColumnTree=n.columnTree,this.primaryHeaderRowCount=n.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.extractRowGroupColumns(t,i),this.extractPivotColumns(t,i),this.createValueColumns(t,i),this.ready=!0,this.updateGridColumns(),this.updateDisplayedColumns(t),this.checkDisplayedVirtualColumns(),this.gridOptionsWrapper.isDeltaColumnMode()&&o&&this.resetColumnState(!0,t);var r={type:m.Events.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(r);var s={type:m.Events.EVENT_NEW_COLUMNS_LOADED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(s)},e.prototype.isAutoRowHeightActive=function(){return this.autoRowHeightColumns&&this.autoRowHeightColumns.length>0},e.prototype.getAllAutoRowHeightCols=function(){return this.autoRowHeightColumns},e.prototype.setVirtualViewportLeftAndRight=function(){this.gridOptionsWrapper.isEnableRtl()?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},e.prototype.getDisplayedColumnsStartingAt=function(e){for(var t=e,o=[];t&&O._.exists(t);)o.push(t),t=this.getDisplayedColAfter(t);return o},e.prototype.checkDisplayedVirtualColumns=function(){if(O._.exists(this.displayedCenterColumns)){var e=this.allDisplayedVirtualColumns.map((function(e){return e.getId()})).join("#");if(this.updateVirtualSets(),e!==this.allDisplayedVirtualColumns.map((function(e){return e.getId()})).join("#")){var t={type:m.Events.EVENT_VIRTUAL_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}}},e.prototype.setVirtualViewportPosition=function(e,t){(e!==this.scrollWidth||t!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=t,this.bodyWidthDirty=!0,this.setVirtualViewportLeftAndRight(),this.ready&&this.checkDisplayedVirtualColumns())},e.prototype.isPivotMode=function(){return this.pivotMode},e.prototype.isPivotSettingAllowed=function(e){return!e||!this.gridOptionsWrapper.isTreeData()||(console.warn("ag-Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1)},e.prototype.setPivotMode=function(e,t){if(void 0===t&&(t="api"),e!==this.pivotMode&&this.isPivotSettingAllowed(this.pivotMode)){this.pivotMode=e,this.updateDisplayedColumns(t);var o={type:m.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)}},e.prototype.getSecondaryPivotColumn=function(e,t){if(!this.secondaryColumnsPresent)return null;var o=this.getPrimaryColumn(t),i=null;return this.secondaryColumns&&this.secondaryColumns.forEach((function(t){var n=t.getColDef().pivotKeys,r=t.getColDef().pivotValueColumn;O._.compareArrays(n,e)&&r===o&&(i=t)})),i},e.prototype.setBeans=function(e){this.logger=e.create("ColumnController")},e.prototype.setFirstRightAndLastLeftPinned=function(e){var t,o;this.gridOptionsWrapper.isEnableRtl()?(t=this.displayedLeftColumns?this.displayedLeftColumns[0]:null,o=this.displayedRightColumns?this.displayedRightColumns[this.displayedRightColumns.length-1]:null):(t=this.displayedLeftColumns?this.displayedLeftColumns[this.displayedLeftColumns.length-1]:null,o=this.displayedRightColumns?this.displayedRightColumns[0]:null),this.gridColumns.forEach((function(i){i.setLastLeftPinned(i===t,e),i.setFirstRightPinned(i===o,e)}))},e.prototype.autoSizeColumns=function(e,t){var o=this;void 0===t&&(t="api");for(var i=[],n=-1;0!==n;)n=0,this.actionOnGridColumns(e,(function(e){if(i.indexOf(e)>=0)return!1;var r=o.autoWidthCalculator.getPreferredWidthForColumn(e);if(r>0){var s=o.normaliseColumnWidth(e,r);e.setActualWidth(s,t),i.push(e),n++}return!0}),t);if(i.length>0){var r={type:m.Events.EVENT_COLUMN_RESIZED,columns:i,column:1===i.length?i[0]:null,finished:!0,api:this.gridApi,columnApi:this.columnApi,source:"autosizeColumns"};this.eventService.dispatchEvent(r)}},e.prototype.autoSizeColumn=function(e,t){void 0===t&&(t="api"),e&&this.autoSizeColumns([e],t)},e.prototype.autoSizeAllColumns=function(e){void 0===e&&(e="api");var t=this.getAllDisplayedColumns();this.autoSizeColumns(t,e)},e.prototype.getColumnsFromTree=function(e){var t=[];return function e(o){for(var i=0;i<o.length;i++){var n=o[i];n instanceof a.Column?t.push(n):n instanceof y.OriginalColumnGroup&&e(n.getChildren())}}(e),t},e.prototype.getAllDisplayedColumnGroups=function(){return this.displayedLeftColumnTree&&this.displayedRightColumnTree&&this.displayedCentreColumnTree?this.displayedLeftColumnTree.concat(this.displayedCentreColumnTree).concat(this.displayedRightColumnTree):null},e.prototype.getPrimaryColumnTree=function(){return this.primaryColumnTree},e.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},e.prototype.getLeftDisplayedColumnGroups=function(){return this.displayedLeftColumnTree},e.prototype.getRightDisplayedColumnGroups=function(){return this.displayedRightColumnTree},e.prototype.getCenterDisplayedColumnGroups=function(){return this.displayedCentreColumnTree},e.prototype.getDisplayedColumnGroups=function(e){switch(e){case a.Column.PINNED_LEFT:return this.getLeftDisplayedColumnGroups();case a.Column.PINNED_RIGHT:return this.getRightDisplayedColumnGroups();default:return this.getCenterDisplayedColumnGroups()}},e.prototype.isColumnDisplayed=function(e){return this.getAllDisplayedColumns().indexOf(e)>=0},e.prototype.getAllDisplayedColumns=function(){return this.allDisplayedColumns},e.prototype.getAllDisplayedVirtualColumns=function(){return this.allDisplayedVirtualColumns},e.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedLeftColumns):this.displayedLeftColumns},e.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedRightColumns):this.displayedRightColumns},e.prototype.getDisplayedColumnsForRow=function(e,t,o,i){for(var n,r=[],s=null,a=function(a){var l,p=t[a],u=t.length-a,c=Math.min(p.getColSpan(e),u),d=[p];if(c>1){for(var h=c-1,f=1;f<=h;f++)d.push(t[a+f]);a+=h}o?(l=!1,d.forEach((function(e){o(e)&&(l=!0)}))):l=!0,l&&(0===r.length&&s&&i&&i(p)&&r.push(s),r.push(p)),s=p,n=a},l=0;l<t.length;l++)a(l),l=n;return r},e.prototype.getAllDisplayedCenterVirtualColumnsForRow=function(e){var t=this;if(!this.colSpanActive)return this.allDisplayedCenterVirtualColumns;var o=this.suppressColumnVirtualisation?null:this.isColumnInViewport.bind(this);return this.getDisplayedColumnsForRow(e,this.displayedCenterColumns,o,(function(e){return e.getLeft()>t.viewportLeft}))},e.prototype.isColumnInViewport=function(e){var t=e.getLeft(),o=e.getLeft()+e.getActualWidth(),i=this.viewportLeft-200,n=this.viewportRight+200;return!(t<i&&o<i||t>n&&o>n)},e.prototype.getPinnedLeftContainerWidth=function(){return this.getWidthOfColsInList(this.displayedLeftColumns)},e.prototype.getPinnedRightContainerWidth=function(){return this.getWidthOfColsInList(this.displayedRightColumns)},e.prototype.updatePrimaryColumnList=function(e,t,o,i,n,r){var s=this;if(void 0===r&&(r="api"),e&&!O._.missingOrEmpty(e)){var a=!1;if(e.forEach((function(e){var n=s.getPrimaryColumn(e);if(n){if(o){if(t.indexOf(n)>=0)return;t.push(n)}else{if(t.indexOf(n)<0)return;O._.removeFromArray(t,n)}i(n),a=!0}})),a){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(r);var l={type:n,columns:t,column:1===t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:r};this.eventService.dispatchEvent(l)}}},e.prototype.setRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,m.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),t)},e.prototype.setRowGroupActive=function(e,t,o){e!==t.isRowGroupActive()&&(t.setRowGroupActive(e,o),e||this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()||t.setVisible(!0,o))},e.prototype.addRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.addRowGroupColumns([e],t)},e.prototype.addRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),m.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},e.prototype.removeRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),m.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},e.prototype.removeRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.removeRowGroupColumns([e],t)},e.prototype.addPivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!0,(function(e){return e.setPivotActive(!0,t)}),m.Events.EVENT_COLUMN_PIVOT_CHANGED,t)},e.prototype.setPivotColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.pivotColumns,m.Events.EVENT_COLUMN_PIVOT_CHANGED,(function(e,o){o.setPivotActive(e,t)}),t)},e.prototype.addPivotColumn=function(e,t){void 0===t&&(t="api"),this.addPivotColumns([e],t)},e.prototype.removePivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!1,(function(e){return e.setPivotActive(!1,t)}),m.Events.EVENT_COLUMN_PIVOT_CHANGED,t)},e.prototype.removePivotColumn=function(e,t){void 0===t&&(t="api"),this.removePivotColumns([e],t)},e.prototype.setPrimaryColumnList=function(e,t,o,i,n){var r=this;t.length=0,O._.exists(e)&&e.forEach((function(e){var o=r.getPrimaryColumn(e);o&&t.push(o)})),this.primaryColumns.forEach((function(e){var o=t.indexOf(e)>=0;i(o,e)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(n);var s={type:o,columns:t,column:1===t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(s)},e.prototype.setValueColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.valueColumns,m.Events.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),t)},e.prototype.setValueActive=function(e,t,o){if(e!==t.isValueActive()&&(t.setValueActive(e,o),e&&!t.getAggFunc())){var i=this.aggFuncService.getDefaultAggFunc(t);t.setAggFunc(i)}},e.prototype.addValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),m.Events.EVENT_COLUMN_VALUE_CHANGED,t)},e.prototype.addValueColumn=function(e,t){void 0===t&&(t="api"),e&&this.addValueColumns([e],t)},e.prototype.removeValueColumn=function(e,t){void 0===t&&(t="api"),this.removeValueColumns([e],t)},e.prototype.removeValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),m.Events.EVENT_COLUMN_VALUE_CHANGED,t)},e.prototype.normaliseColumnWidth=function(e,t){return t<e.getMinWidth()&&(t=e.getMinWidth()),e.isGreaterThanMax(t)&&(t=e.getMaxWidth()),t},e.prototype.getPrimaryOrGridColumn=function(e){return this.getPrimaryColumn(e)||this.getGridColumn(e)},e.prototype.setColumnWidth=function(e,t,o,i,n){void 0===n&&(n="api");var r=this.getPrimaryOrGridColumn(e);if(r){var s=[];if(s.push({width:t,ratios:[1],columns:[r]}),"shift"===this.gridOptionsWrapper.getColResizeDefault()&&(o=!o),o){var a=this.getDisplayedColAfter(r);if(!a)return;var l=r.getActualWidth()-t,p=a.getActualWidth()+l;s.push({width:p,ratios:[1],columns:[a]})}this.resizeColumnSets(s,i,n)}},e.prototype.checkMinAndMaxWidthsForSet=function(e){var t=e.columns,o=e.width,i=0,n=0,r=!0;return t.forEach((function(e){i+=e.getMinWidth(),e.getMaxWidth()>0?n+=e.getMaxWidth():r=!1})),o>=i&&(!r||o<=n)},e.prototype.resizeColumnSets=function(e,t,o){if(O._.every(e,this.checkMinAndMaxWidthsForSet.bind(this))){var i=[],n=[];e.forEach((function(e){var t=e.width,o=e.columns,r=e.ratios,s={},a={};o.forEach((function(e){return n.push(e)}));for(var l=!0,p=0,u=function(){if(++p>1e3)return console.error("ag-Grid: infinite loop in resizeColumnSets"),"break";l=!1;var e=[],i=[],n=0,u=t;o.forEach((function(t,o){if(a[t.getId()])u-=s[t.getId()];else{e.push(t);var l=r[o];n+=l,i.push(l)}}));var c=1/n;e.forEach((function(o,i){var n;i===e.length-1?n=u:(n=Math.round(r[i]*t*c),u-=n),n<o.getMinWidth()?(n=o.getMinWidth(),a[o.getId()]=!0,l=!0):o.getMaxWidth()>0&&n>o.getMaxWidth()&&(n=o.getMaxWidth(),a[o.getId()]=!0,l=!0),s[o.getId()]=n}))};l&&"break"!==u(););o.forEach((function(e){var t=s[e.getId()];e.getActualWidth()!==t&&(e.setActualWidth(t),i.push(e))}))}));var r=i.length>0;if(r&&(this.setLeftValues(o),this.updateBodyWidths(),this.checkDisplayedVirtualColumns()),r||t){var s={type:m.Events.EVENT_COLUMN_RESIZED,columns:n,column:1===n.length?n[0]:null,finished:t,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(s)}}else if(t){var a=e&&e.length>0?e[0].columns:null,l={type:m.Events.EVENT_COLUMN_RESIZED,columns:a,column:a&&1===a.length?a[0]:null,finished:t,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(l)}},e.prototype.setColumnAggFunc=function(e,t,o){if(void 0===o&&(o="api"),e){e.setAggFunc(t);var i={type:m.Events.EVENT_COLUMN_VALUE_CHANGED,columns:[e],column:e,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(i)}},e.prototype.moveRowGroupColumn=function(e,t,o){void 0===o&&(o="api");var i=this.rowGroupColumns[e];this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(t,0,i);var n={type:m.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:this.rowGroupColumns,column:1===this.rowGroupColumns.length?this.rowGroupColumns[0]:null,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(n)},e.prototype.moveColumns=function(e,t,o){if(void 0===o&&(o="api"),this.columnAnimationService.start(),t>this.gridColumns.length-e.length)return console.warn("ag-Grid: tried to insert columns in invalid location, toIndex = "+t),void console.warn("ag-Grid: remember that you should not count the moving columns when calculating the new index");var i=this.getGridColumns(e);if(this.doesMovePassRules(i,t)){O._.moveInArray(this.gridColumns,i,t),this.updateDisplayedColumns(o);var n={type:m.Events.EVENT_COLUMN_MOVED,columns:i,column:1===i.length?i[0]:null,toIndex:t,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(n),this.columnAnimationService.finish()}},e.prototype.doesMovePassRules=function(e,t){var o=this.gridColumns.slice();return O._.moveInArray(o,e,t),!!this.doesMovePassMarryChildren(o)&&!!this.doesMovePassLockedPositions(o)},e.prototype.doesMovePassLockedPositions=function(e){var t=!1,o=!0;return e.forEach((function(e){e.isLockPosition()?t&&(o=!1):t=!0})),o},e.prototype.doesMovePassMarryChildren=function(e){var t=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(o){if(o instanceof y.OriginalColumnGroup){var i=o;if(i.getColGroupDef()&&i.getColGroupDef().marryChildren){var n=[];i.getLeafColumns().forEach((function(t){var o=e.indexOf(t);n.push(o)})),Math.max.apply(Math,n)-Math.min.apply(Math,n)>i.getLeafColumns().length-1&&(t=!1)}}})),t},e.prototype.moveColumn=function(e,t,o){void 0===o&&(o="api"),this.moveColumns([e],t,o)},e.prototype.moveColumnByIndex=function(e,t,o){void 0===o&&(o="api");var i=this.gridColumns[e];this.moveColumn(i,t,o)},e.prototype.getBodyContainerWidth=function(){return this.bodyWidth},e.prototype.getContainerWidth=function(e){switch(e){case a.Column.PINNED_LEFT:return this.leftWidth;case a.Column.PINNED_RIGHT:return this.rightWidth;default:return this.bodyWidth}},e.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedCenterColumns),t=this.getWidthOfColsInList(this.displayedLeftColumns),o=this.getWidthOfColsInList(this.displayedRightColumns);if(this.bodyWidthDirty=this.bodyWidth!==e,this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==o){this.bodyWidth=e,this.leftWidth=t,this.rightWidth=o;var i={type:m.Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(i)}},e.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},e.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},e.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},e.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},e.prototype.getDisplayedCenterColumns=function(){return this.displayedCenterColumns},e.prototype.getDisplayedLeftColumns=function(){return this.displayedLeftColumns},e.prototype.getDisplayedRightColumns=function(){return this.displayedRightColumns},e.prototype.getDisplayedColumns=function(e){switch(e){case a.Column.PINNED_LEFT:return this.getDisplayedLeftColumns();case a.Column.PINNED_RIGHT:return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},e.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},e.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},e.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},e.prototype.getAllGridColumns=function(){return this.gridColumns},e.prototype.isEmpty=function(){return O._.missingOrEmpty(this.gridColumns)},e.prototype.isRowGroupEmpty=function(){return O._.missingOrEmpty(this.rowGroupColumns)},e.prototype.setColumnVisible=function(e,t,o){void 0===o&&(o="api"),this.setColumnsVisible([e],t,o)},e.prototype.setColumnsVisible=function(e,t,o){var i=this;void 0===o&&(o="api"),this.columnAnimationService.start(),this.actionOnGridColumns(e,(function(e){return e.isVisible()!==t&&(e.setVisible(t,o),!0)}),o,(function(){return{type:m.Events.EVENT_COLUMN_VISIBLE,visible:t,column:null,columns:null,api:i.gridApi,columnApi:i.columnApi,source:o}})),this.columnAnimationService.finish()},e.prototype.setColumnPinned=function(e,t,o){void 0===o&&(o="api"),e&&this.setColumnsPinned([e],t,o)},e.prototype.setColumnsPinned=function(e,t,o){var i,n=this;void 0===o&&(o="api"),"print"!==this.gridOptionsWrapper.getDomLayout()?(this.columnAnimationService.start(),i=!0===t||t===a.Column.PINNED_LEFT?a.Column.PINNED_LEFT:t===a.Column.PINNED_RIGHT?a.Column.PINNED_RIGHT:null,this.actionOnGridColumns(e,(function(e){return e.getPinned()!==i&&(e.setPinned(i),!0)}),o,(function(){return{type:m.Events.EVENT_COLUMN_PINNED,pinned:i,column:null,columns:null,api:n.gridApi,columnApi:n.columnApi,source:o}})),this.columnAnimationService.finish()):console.warn("Changing the column pinning status is not allowed with domLayout='print'")},e.prototype.actionOnGridColumns=function(e,t,o,i){var n=this;if(!O._.missingOrEmpty(e)){var r=[];if(e.forEach((function(e){var o=n.getGridColumn(e);o&&!1!==t(o)&&r.push(o)})),0!==r.length&&(this.updateDisplayedColumns(o),O._.exists(i)&&i)){var s=i();s.columns=r,s.column=1===r.length?r[0]:null,this.eventService.dispatchEvent(s)}}},e.prototype.getDisplayedColBefore=function(e){var t=this.getAllDisplayedColumns(),o=t.indexOf(e);return o>0?t[o-1]:null},e.prototype.getDisplayedColAfter=function(e){var t=this.getAllDisplayedColumns(),o=t.indexOf(e);return o<t.length-1?t[o+1]:null},e.prototype.getDisplayedGroupAfter=function(e){for(var t=e.getDisplayedLeafColumns()[0],o=e.getOriginalColumnGroup().getLevel();;){if(!(t=this.getDisplayedColAfter(t)))return null;for(var i=t.getParent();i.getOriginalColumnGroup().getLevel()!==o;)i=i.getParent();if(i!==e)return i}},e.prototype.isPinningLeft=function(){return this.displayedLeftColumns.length>0},e.prototype.isPinningRight=function(){return this.displayedRightColumns.length>0},e.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e=this.primaryColumns?this.primaryColumns.slice(0):[];return this.groupAutoColumns&&O._.exists(this.groupAutoColumns)&&this.groupAutoColumns.forEach((function(t){return e.push(t)})),this.secondaryColumnsPresent&&this.secondaryColumns&&this.secondaryColumns.forEach((function(t){return e.push(t)})),e},e.prototype.createStateItemFromColumn=function(e){var t=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,o=e.isPivotActive()?this.pivotColumns.indexOf(e):null,i=e.isValueActive()?e.getAggFunc():null;return{colId:e.getColId(),hide:!e.isVisible(),aggFunc:i,width:e.getActualWidth(),pivotIndex:o,pinned:e.getPinned(),rowGroupIndex:t}},e.prototype.getColumnState=function(){if(O._.missing(this.primaryColumns))return[];var e=this.primaryColumns.map(this.createStateItemFromColumn.bind(this)),t=(this.groupAutoColumns?this.groupAutoColumns.map(this.createStateItemFromColumn.bind(this)):[]).concat(e);return this.pivotMode||this.orderColumnStateList(t),t},e.prototype.orderColumnStateList=function(e){var t=this.gridColumns.map((function(e){return e.getColId()}));e.sort((function(e,o){return t.indexOf(e.colId)-t.indexOf(o.colId)}))},e.prototype.resetColumnState=function(e,t){void 0===e&&(e=!1),void 0===t&&(t="api");var o=this.getColumnsFromTree(this.primaryColumnTree),i=[],n=1e3,r=1e3;o&&o.forEach((function(e){var t=e.getColDef().rowGroupIndex,o=e.getColDef().rowGroup,s=e.getColDef().pivotIndex,a=e.getColDef().pivot,l={colId:e.getColId(),aggFunc:e.getColDef().aggFunc,hide:e.getColDef().hide,pinned:e.getColDef().pinned,rowGroupIndex:t,pivotIndex:e.getColDef().pivotIndex,width:e.getColDef().width};O._.missing(t)&&o&&(l.rowGroupIndex=n++),O._.missing(s)&&a&&(l.pivotIndex=r++),i.push(l)})),this.setColumnState(i,e,t)},e.prototype.setColumnState=function(e,t,o){var i=this;if(void 0===t&&(t=!1),void 0===o&&(o="api"),O._.missingOrEmpty(this.primaryColumns))return!1;var n=this.getColumnState();this.autoGroupsNeedBuilding=!0;var r=this.primaryColumns.slice();this.rowGroupColumns=[],this.valueColumns=[],this.pivotColumns=[];var s=!0,a={},l={},p=[];if(e&&e.forEach((function(e){if(O._.exists(i.getAutoColumn(e.colId)))p.push(e);else{var t=i.getPrimaryColumn(e.colId);t?(i.syncColumnWithStateItem(t,e,a,l,o),O._.removeFromArray(r,t)):(console.warn("ag-grid: column "+e.colId+" not found"),s=!1)}})),r.forEach(this.syncColumnWithNoState.bind(this)),this.rowGroupColumns.sort(this.sortColumnListUsingIndexes.bind(this,a)),this.pivotColumns.sort(this.sortColumnListUsingIndexes.bind(this,l)),this.updateGridColumns(),p.forEach((function(e){var t=i.getAutoColumn(e.colId);i.syncColumnWithStateItem(t,e,a,l,o)})),e){var u=e.map((function(e){return e.colId}));this.gridColumns.sort((function(e,t){return u.indexOf(e.getId())-u.indexOf(t.getId())}))}if(this.updateDisplayedColumns(o),!t){var c={type:m.Events.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(c)}return this.raiseColumnEvents(n,o),s},e.prototype.raiseColumnEvents=function(e,t){var o=this;if(!this.gridOptionsWrapper.isSuppressSetColumnStateEvents()){var i=this.getColumnState(),n=function(n,r,s){if(!O._.compareArrays(e.map(r).sort(),i.map(r).sort())){var a={type:n,columns:s,column:1===s.length?s[0]:null,api:o.gridApi,columnApi:o.columnApi,source:t};o.eventService.dispatchEvent(a)}},r=function(t){var i=[],n={};return e.forEach((function(e){n[e.colId]=e})),o.gridColumns.forEach((function(e){var o=n[e.getColId()];o&&!t(o,e)||i.push(e)})),i};n(m.Events.EVENT_COLUMN_VALUE_CHANGED,(function(e){return e.colId+"-"+e.aggFunc}),this.valueColumns),n(m.Events.EVENT_COLUMN_PIVOT_CHANGED,(function(e){return e.colId+"-"+e.pivotIndex}),this.pivotColumns),n(m.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(e){return e.colId+"-"+e.rowGroupIndex}),this.rowGroupColumns),this.raiseColumnPinnedEvent(r((function(e,t){return e.pinned!==t.getPinned()})),t);var s=r((function(e,t){return e.hide===t.isVisible()}));this.raiseColumnVisibleEvent(s,t),this.raiseColumnResizeEvent(r((function(e,t){return e.width!==t.getActualWidth()})),t),this.raiseColumnMovedEvent(e,t)}},e.prototype.raiseColumnPinnedEvent=function(e,t){if(e.length>0){var o={type:m.Events.EVENT_COLUMN_PINNED,pinned:null,columns:e,column:null,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(o)}},e.prototype.raiseColumnVisibleEvent=function(e,t){if(e.length>0){var o={type:m.Events.EVENT_COLUMN_VISIBLE,visible:void 0,columns:e,column:null,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(o)}},e.prototype.raiseColumnResizeEvent=function(e,t){if(e.length>0){var o={type:m.Events.EVENT_COLUMN_RESIZED,columns:e,column:null,finished:!0,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(o)}},e.prototype.raiseColumnMovedEvent=function(e,t){for(var o=[],i=this.getColumnState(),n=function(t){var n=e[t],s=i[t];if(!n||s.hide)return"continue";if(n.colId!==s.colId){var a=O._.find(r.allDisplayedColumns,(function(e){return e.getColId()===s.colId}));o.push(a)}},r=this,s=0;s<i.length;s++)n(s);if(o.length>0){var a={type:m.Events.EVENT_COLUMN_MOVED,columns:o,column:null,toIndex:void 0,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(a)}},e.prototype.sortColumnListUsingIndexes=function(e,t,o){return e[t.getId()]-e[o.getId()]},e.prototype.syncColumnWithNoState=function(e,t){e.setVisible(!1,t),e.setAggFunc(null),e.setPinned(null),e.setRowGroupActive(!1,t),e.setPivotActive(!1,t),e.setValueActive(!1,t)},e.prototype.syncColumnWithStateItem=function(e,t,o,i,n){if(e){e.setVisible(!t.hide,n),e.setPinned(t.pinned);var r=this.gridOptionsWrapper.getMinColWidth();t.width&&r&&t.width>=r&&e.setActualWidth(t.width,n),"string"==typeof t.aggFunc?(e.setAggFunc(t.aggFunc),e.setValueActive(!0,n),this.valueColumns.push(e)):(O._.exists(t.aggFunc)&&console.warn("ag-Grid: stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it isintended for the column state to be stored and retrieved as simple JSON."),e.setAggFunc(null),e.setValueActive(!1,n)),"number"==typeof t.rowGroupIndex?(this.rowGroupColumns.push(e),e.setRowGroupActive(!0,n),o[e.getId()]=t.rowGroupIndex):e.setRowGroupActive(!1,n),"number"==typeof t.pivotIndex?(this.pivotColumns.push(e),e.setPivotActive(!0,n),i[e.getId()]=t.pivotIndex):e.setPivotActive(!1,n)}},e.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},e.prototype.getColumns=function(e,t){var o=[];return e&&e.forEach((function(e){var i=t(e);i&&o.push(i)})),o},e.prototype.getColumnWithValidation=function(e){var t=this.getPrimaryColumn(e);return t||console.warn("ag-Grid: could not find column "+t),t},e.prototype.getPrimaryColumn=function(e){return this.getColumn(e,this.primaryColumns)},e.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns)},e.prototype.getColumn=function(e,t){if(!e)return null;for(var o=0;o<t.length;o++)if(this.columnsMatch(t[o],e))return t[o];return this.getAutoColumn(e)},e.prototype.getAutoColumn=function(e){var t=this;return this.groupAutoColumns&&O._.exists(this.groupAutoColumns)&&!O._.missing(this.groupAutoColumns)?O._.find(this.groupAutoColumns,(function(o){return t.columnsMatch(o,e)})):null},e.prototype.columnsMatch=function(e,t){var o=e===t,i=e.getColDef()===t,n=e.getColId()==t;return o||i||n},e.prototype.getDisplayNameForColumn=function(e,t,o){if(void 0===o&&(o=!1),!e)return null;var i=this.getHeaderName(e.getColDef(),e,null,null,t);return o?this.wrapHeaderNameWithAggFunc(e,i):i},e.prototype.getDisplayNameForOriginalColumnGroup=function(e,t,o){var i=t?t.getColGroupDef():null;return i?this.getHeaderName(i,null,e,t,o):null},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this.getDisplayNameForOriginalColumnGroup(e,e.getOriginalColumnGroup(),t)},e.prototype.getHeaderName=function(e,t,o,i,n){var r=e.headerValueGetter;if(r){var s={colDef:e,column:t,columnGroup:o,originalColumnGroup:i,location:n,api:this.gridOptionsWrapper.getApi(),context:this.gridOptionsWrapper.getContext()};return"function"==typeof r?r(s):"string"==typeof r?this.expressionService.evaluate(r,s):(console.warn("ag-grid: headerValueGetter must be a function or a string"),"")}return null!=e.headerName?e.headerName:e.field?O._.camelCaseToHumanText(e.field):""},e.prototype.wrapHeaderNameWithAggFunc=function(e,t){if(this.gridOptionsWrapper.isSuppressAggFuncInHeader())return t;var o,i=e.getColDef().pivotValueColumn,n=null;if(O._.exists(i))n=i?i.getAggFunc():null,o=!0;else{var r=e.isValueActive(),s=this.pivotMode||!this.isRowGroupEmpty();r&&s?(n=e.getAggFunc(),o=!0):o=!1}if(o){var a="string"==typeof n?n:"func";return this.gridOptionsWrapper.getLocaleTextFunc()(a,a)+"("+t+")"}return t},e.prototype.getColumnGroup=function(e,t){if(!e)return null;if(e instanceof s.ColumnGroup)return e;var o=this.getAllDisplayedColumnGroups(),i="number"==typeof t,n=null;return this.columnUtils.depthFirstAllColumnTreeSearch(o,(function(o){if(o instanceof s.ColumnGroup){var r=o;(i?e===r.getGroupId()&&t===r.getInstanceId():e===r.getGroupId())&&(n=r)}})),n},e.prototype.isReady=function(){return this.ready},e.prototype.createValueColumns=function(e,t){this.valueColumns=this.extractColumns(t,this.valueColumns,(function(t,o){return t.setValueActive(o,e)}),(function(){return null}),(function(e){return!!e.aggFunc})),this.valueColumns.forEach((function(e){e.getAggFunc()||e.setAggFunc(e.getColDef().aggFunc)}))},e.prototype.extractRowGroupColumns=function(e,t){this.rowGroupColumns=this.extractColumns(t,this.rowGroupColumns,(function(t,o){return t.setRowGroupActive(o,e)}),(function(e){return e.rowGroupIndex}),(function(e){return e.rowGroup}))},e.prototype.extractColumns=function(e,t,o,i,n){var r=this;t||(t=[]);var s=t.filter((function(e){return r.primaryColumns.indexOf(e)<0})),a=t.filter((function(e){return r.primaryColumns.indexOf(e)>=0})),l=this.primaryColumns.filter((function(t){return!e||e.indexOf(t)<0}));s.forEach((function(e){return o(e,!1)}));var p=[];return l.forEach((function(e){"number"==typeof i(e.getColDef())&&p.push(e)})),p.sort((function(e,t){var o=i(e.getColDef()),n=i(t.getColDef());return o===n?0:o<n?-1:1})),l.forEach((function(e){if(n(e.getColDef())){if(p.indexOf(e)>=0)return;p.push(e)}})),p.forEach((function(e){return o(e,!0)})),a.concat(p)},e.prototype.extractPivotColumns=function(e,t){this.pivotColumns=this.extractColumns(t,this.pivotColumns,(function(t,o){return t.setPivotActive(o,e)}),(function(e){return e.pivotIndex}),(function(e){return e.pivot}))},e.prototype.resetColumnGroupState=function(e){void 0===e&&(e="api");var t=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,(function(e){if(e instanceof y.OriginalColumnGroup){var o={groupId:e.getGroupId(),open:e.getColGroupDef().openByDefault};t.push(o)}})),this.setColumnGroupState(t,e)},e.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(t){if(t instanceof y.OriginalColumnGroup){var o=t;e.push({groupId:o.getGroupId(),open:o.isExpanded()})}})),e},e.prototype.setColumnGroupState=function(e,t){var o=this;void 0===t&&(t="api"),this.columnAnimationService.start();var i=[];e.forEach((function(e){var t=e.groupId,n=e.open,r=o.getOriginalColumnGroup(t);r&&r.isExpanded()!==n&&(o.logger.log("columnGroupOpened("+r.getGroupId()+","+n+")"),r.setExpanded(n),i.push(r))})),this.updateGroupsAndDisplayedColumns(t),i.forEach((function(e){var t={type:m.Events.EVENT_COLUMN_GROUP_OPENED,columnGroup:e,api:o.gridApi,columnApi:o.columnApi};o.eventService.dispatchEvent(t)})),this.columnAnimationService.finish()},e.prototype.setColumnGroupOpened=function(e,t,o){var i;void 0===o&&(o="api"),i=e instanceof y.OriginalColumnGroup?e.getId():e,this.setColumnGroupState([{groupId:i,open:t}],o)},e.prototype.getOriginalColumnGroup=function(e){if(e instanceof y.OriginalColumnGroup)return e;"string"!=typeof e&&console.error("ag-Grid: group key must be a string");var t=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(o){if(o instanceof y.OriginalColumnGroup){var i=o;i.getId()===e&&(t=i)}})),t},e.prototype.calculateColumnsForDisplay=function(){var e=this;return this.pivotMode&&!this.secondaryColumnsPresent?O._.filter(this.gridColumns,(function(t){var o=e.groupAutoColumns&&e.groupAutoColumns.indexOf(t)>=0,i=e.valueColumns&&e.valueColumns.indexOf(t)>=0;return o||i})):O._.filter(this.gridColumns,(function(t){return e.groupAutoColumns&&e.groupAutoColumns.indexOf(t)>=0||t.isVisible()}))},e.prototype.checkColSpanActiveInCols=function(e){var t=!1;return e.forEach((function(e){O._.exists(e.getColDef().colSpan)&&(t=!0)})),t},e.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[];var t=function(t){var o=t.getColDef();o&&O._.exists(o.showRowGroup)&&e.groupDisplayColumns.push(t)};this.gridColumns.forEach(t),this.groupAutoColumns&&this.groupAutoColumns.forEach(t)},e.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},e.prototype.updateDisplayedColumns=function(e){var t=this.calculateColumnsForDisplay();this.buildDisplayedTrees(t),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},e.prototype.isSecondaryColumnsPresent=function(){return this.secondaryColumnsPresent},e.prototype.setSecondaryColumns=function(e,t){void 0===t&&(t="api");var o=e&&e.length>0;if(o||this.secondaryColumnsPresent){if(o){this.processSecondaryColumnDefinitions(e);var i=this.columnFactory.createColumnTree(e,!1);this.secondaryBalancedTree=i.columnTree,this.secondaryHeaderRowCount=i.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsPresent=!0}else this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsPresent=!1;this.updateGridColumns(),this.updateDisplayedColumns(t)}},e.prototype.processSecondaryColumnDefinitions=function(e){var t=this.gridOptionsWrapper.getProcessSecondaryColDefFunc(),o=this.gridOptionsWrapper.getProcessSecondaryColGroupDefFunc();(t||o)&&e&&function e(i){i.forEach((function(i){if(O._.exists(i.children)){var n=i;o&&o(n),e(n.children)}else t&&t(i)}))}(e)},e.prototype.updateGridColumns=function(){this.gridColsArePrimary&&(this.lastPrimaryOrder=this.gridColumns),this.secondaryColumns&&this.secondaryBalancedTree?(this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1):(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,this.orderGridColsLikeLastPrimary()),this.addAutoGroupToGridColumns(),this.autoRowHeightColumns=this.gridColumns.filter((function(e){return e.getColDef().autoHeight})),this.putFixedColumnsFirst(),this.setupQuickFilterColumns(),this.clearDisplayedColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns);var e={type:m.Events.EVENT_GRID_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.orderGridColsLikeLastPrimary=function(){var e=this;if(!O._.missing(this.lastPrimaryOrder)){var t=!0;if(this.gridColumns.forEach((function(o){e.lastPrimaryOrder.indexOf(o)>=0&&(t=!1)})),!t){var o=this.lastPrimaryOrder.filter((function(t){return e.gridColumns.indexOf(t)>=0})),i=this.gridColumns.filter((function(e){return o.indexOf(e)<0})),n=o.slice();i.forEach((function(e){var t=e.getOriginalParent();if(t){for(var o=[];!o.length&&t;)t.getLeafColumns().forEach((function(e){var t=n.indexOf(e)>=0,i=o.indexOf(e)<0;t&&i&&o.push(e)})),t=t.getOriginalParent();if(o.length){var i=o.map((function(e){return n.indexOf(e)})),r=Math.max.apply(Math,i);O._.insertIntoArray(n,e,r+1)}else n.push(e)}else n.push(e)})),this.gridColumns=n}}},e.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},e.prototype.setupQuickFilterColumns=function(){this.groupAutoColumns?this.columnsForQuickFilter=this.primaryColumns.concat(this.groupAutoColumns):this.columnsForQuickFilter=this.primaryColumns},e.prototype.putFixedColumnsFirst=function(){var e=this.gridColumns.filter((function(e){return e.isLockPosition()})),t=this.gridColumns.filter((function(e){return!e.isLockPosition()}));this.gridColumns=e.concat(t)},e.prototype.addAutoGroupToGridColumns=function(){if(this.createGroupAutoColumnsIfNeeded(),!O._.missing(this.groupAutoColumns)){this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var e=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.gridBalancedTree=e.concat(this.gridBalancedTree)}},e.prototype.clearDisplayedColumns=function(){this.displayedLeftColumnTree=[],this.displayedRightColumnTree=[],this.displayedCentreColumnTree=[],this.displayedLeftHeaderRows={},this.displayedRightHeaderRows={},this.displayedCentreHeaderRows={},this.displayedLeftColumns=[],this.displayedRightColumns=[],this.displayedCenterColumns=[],this.allDisplayedColumns=[],this.allDisplayedVirtualColumns=[]},e.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.updateDisplayedColumnsFromTrees(e),this.updateVirtualSets(),this.updateBodyWidths();var t={type:m.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.updateDisplayedColumnsFromTrees=function(e){this.addToDisplayedColumns(this.displayedLeftColumnTree,this.displayedLeftColumns),this.addToDisplayedColumns(this.displayedCentreColumnTree,this.displayedCenterColumns),this.addToDisplayedColumns(this.displayedRightColumnTree,this.displayedRightColumns),this.setupAllDisplayedColumns(),this.setLeftValues(e)},e.prototype.setupAllDisplayedColumns=function(){this.gridOptionsWrapper.isEnableRtl()?this.allDisplayedColumns=this.displayedRightColumns.concat(this.displayedCenterColumns).concat(this.displayedLeftColumns):this.allDisplayedColumns=this.displayedLeftColumns.concat(this.displayedCenterColumns).concat(this.displayedRightColumns)},e.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},e.prototype.setLeftValuesOfColumns=function(e){var t=this,o=this.primaryColumns.slice(0),i=this.gridOptionsWrapper.isEnableRtl();[this.displayedLeftColumns,this.displayedRightColumns,this.displayedCenterColumns].forEach((function(n){if(i){var r=t.getWidthOfColsInList(n);n.forEach((function(t){r-=t.getActualWidth(),t.setLeft(r,e)}))}else{var s=0;n.forEach((function(t){t.setLeft(s,e),s+=t.getActualWidth()}))}O._.removeAllFromArray(o,n)})),o.forEach((function(t){t.setLeft(null,e)}))},e.prototype.setLeftValuesOfGroups=function(){[this.displayedLeftColumnTree,this.displayedRightColumnTree,this.displayedCentreColumnTree].forEach((function(e){e.forEach((function(e){e instanceof s.ColumnGroup&&e.checkLeft()}))}))},e.prototype.addToDisplayedColumns=function(e,t){t.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,(function(e){e instanceof a.Column&&t.push(e)}))},e.prototype.updateDisplayedCenterVirtualColumns=function(){this.suppressColumnVirtualisation?this.allDisplayedCenterVirtualColumns=this.displayedCenterColumns:this.allDisplayedCenterVirtualColumns=this.filterOutColumnsWithinViewport(),this.allDisplayedVirtualColumns=this.allDisplayedCenterVirtualColumns.concat(this.displayedLeftColumns).concat(this.displayedRightColumns);var e={};return this.allDisplayedVirtualColumns.forEach((function(t){e[t.getId()]=!0})),e},e.prototype.getVirtualHeaderGroupRow=function(e,t){var o;switch(e){case a.Column.PINNED_LEFT:o=this.displayedLeftHeaderRows[t];break;case a.Column.PINNED_RIGHT:o=this.displayedRightHeaderRows[t];break;default:o=this.displayedCentreHeaderRows[t]}return O._.missing(o)&&(o=[]),o},e.prototype.updateDisplayedVirtualGroups=function(e){function t(o,i,n){for(var r=!1,s=0;s<o.length;s++){var l=o[s];(l instanceof a.Column?!0===e[l.getId()]:t(l.getDisplayedChildren(),i,n+1))&&(r=!0,i[n]||(i[n]=[]),i[n].push(l))}return r}this.displayedLeftHeaderRows={},this.displayedRightHeaderRows={},this.displayedCentreHeaderRows={},t(this.displayedLeftColumnTree,this.displayedLeftHeaderRows,0),t(this.displayedRightColumnTree,this.displayedRightHeaderRows,0),t(this.displayedCentreColumnTree,this.displayedCentreHeaderRows,0)},e.prototype.updateVirtualSets=function(){var e=this.updateDisplayedCenterVirtualColumns();this.updateDisplayedVirtualGroups(e)},e.prototype.filterOutColumnsWithinViewport=function(){return O._.filter(this.displayedCenterColumns,this.isColumnInViewport.bind(this))},e.prototype.sizeColumnsToFit=function(e,t){var o=this;void 0===t&&(t="api");var i=this.getAllDisplayedColumns();if(!(e<=0||0===i.length)){for(var n=O._.filter(i,(function(e){return!0===e.getColDef().suppressSizeToFit})),r=O._.filter(i,(function(e){return!0!==e.getColDef().suppressSizeToFit})),s=r.slice(0),a=!1;!a;){a=!0;var l=e-this.getWidthOfColsInList(n);if(l<=0)r.forEach((function(e){e.setMinimum(t)}));else for(var p=l/this.getWidthOfColsInList(r),u=l,c=r.length-1;c>=0;c--){var d=r[c],h=Math.round(d.getActualWidth()*p);h<d.getMinWidth()?(d.setMinimum(t),f(d),a=!1):d.isGreaterThanMax(h)?(d.setActualWidth(d.getMaxWidth(),t),f(d),a=!1):0===c?d.setActualWidth(u,t):d.setActualWidth(h,t),u-=h}}this.setLeftValues(t),this.updateBodyWidths(),s.forEach((function(e){var t={type:m.Events.EVENT_COLUMN_RESIZED,column:e,columns:[e],finished:!0,api:o.gridApi,columnApi:o.columnApi,source:"sizeColumnsToFit"};o.eventService.dispatchEvent(t)}))}function f(e){O._.removeFromArray(r,e),n.push(e)}},e.prototype.buildDisplayedTrees=function(e){var t=O._.filter(e,(function(e){return"left"===e.getPinned()})),o=O._.filter(e,(function(e){return"right"===e.getPinned()})),i=O._.filter(e,(function(e){return"left"!==e.getPinned()&&"right"!==e.getPinned()})),n=new v.GroupInstanceIdCreator;this.displayedLeftColumnTree=this.displayedGroupCreator.createDisplayedGroups(t,this.gridBalancedTree,n,a.Column.PINNED_LEFT,this.displayedLeftColumnTree),this.displayedRightColumnTree=this.displayedGroupCreator.createDisplayedGroups(o,this.gridBalancedTree,n,a.Column.PINNED_RIGHT,this.displayedRightColumnTree),this.displayedCentreColumnTree=this.displayedGroupCreator.createDisplayedGroups(i,this.gridBalancedTree,n,null,this.displayedCentreColumnTree)},e.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedColumnGroups();this.columnUtils.depthFirstAllColumnTreeSearch(e,(function(e){e instanceof s.ColumnGroup&&e.calculateDisplayedColumns()}))},e.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},e.prototype.createGroupAutoColumnsIfNeeded=function(){if(this.autoGroupsNeedBuilding)if(this.autoGroupsNeedBuilding=!1,!(this.rowGroupColumns.length>0||this.usingTreeData)||this.gridOptionsWrapper.isGroupSuppressAutoColumn()||this.gridOptionsWrapper.isGroupUseEntireRow()||this.gridOptionsWrapper.isGroupSuppressRow())this.groupAutoColumns=null;else{var e=this.autoGroupColService.createAutoGroupColumns(this.rowGroupColumns);!this.autoColsEqual(e,this.groupAutoColumns)&&(this.groupAutoColumns=e)}},e.prototype.autoColsEqual=function(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var o=0;o<e.length;o++){var i=e[o],n=t[o];if(i.getColId()!==n.getColId())return!1}return!0},e.prototype.getWidthOfColsInList=function(e){for(var t=0,o=0;o<e.length;o++)t+=e[o].getActualWidth();return t},e.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},i([C.Autowired("gridOptionsWrapper"),n("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([C.Autowired("expressionService"),n("design:type",p.ExpressionService)],e.prototype,"expressionService",void 0),i([C.Autowired("columnFactory"),n("design:type",u.ColumnFactory)],e.prototype,"columnFactory",void 0),i([C.Autowired("displayedGroupCreator"),n("design:type",c.DisplayedGroupCreator)],e.prototype,"displayedGroupCreator",void 0),i([C.Autowired("autoWidthCalculator"),n("design:type",d.AutoWidthCalculator)],e.prototype,"autoWidthCalculator",void 0),i([C.Autowired("eventService"),n("design:type",h.EventService)],e.prototype,"eventService",void 0),i([C.Autowired("columnUtils"),n("design:type",f.ColumnUtils)],e.prototype,"columnUtils",void 0),i([C.Autowired("context"),n("design:type",C.Context)],e.prototype,"context",void 0),i([C.Autowired("columnAnimationService"),n("design:type",w.ColumnAnimationService)],e.prototype,"columnAnimationService",void 0),i([C.Autowired("autoGroupColService"),n("design:type",E.AutoGroupColService)],e.prototype,"autoGroupColService",void 0),i([C.Optional("aggFuncService"),n("design:type",Object)],e.prototype,"aggFuncService",void 0),i([C.Optional("valueCache"),n("design:type",_.ValueCache)],e.prototype,"valueCache",void 0),i([C.Autowired("columnApi"),n("design:type",R.ColumnApi)],e.prototype,"columnApi",void 0),i([C.Autowired("gridApi"),n("design:type",b.GridApi)],e.prototype,"gridApi",void 0),i([C.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([r(0,C.Qualifier("loggerFactory")),n("design:type",Function),n("design:paramtypes",[g.LoggerFactory]),n("design:returntype",void 0)],e.prototype,"setBeans",null),i([C.Bean("columnController")],e)}();t.ColumnController=S},99093:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(72493),l=o(22131),p=o(44081),u=o(47721),c=o(83423),d=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return n(t,e),t.prototype.init=function(e){var t=c._.createIconNoSpan("groupLoading",this.gridOptionsWrapper,null);this.eLoadingIcon.appendChild(t);var o=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=o("loadingOoo","Loading")},t.prototype.refresh=function(e){return!1},t.TEMPLATE='<div class="ag-stub-cell">\n <span class="ag-loading-icon" ref="eLoadingIcon"></span>\n <span class="ag-loading-text" ref="eLoadingText"></span>\n </div>',r([a.Autowired("gridOptionsWrapper"),s("design:type",p.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([u.RefSelector("eLoadingIcon"),s("design:type",HTMLElement)],t.prototype,"eLoadingIcon",void 0),r([u.RefSelector("eLoadingText"),s("design:type",HTMLElement)],t.prototype,"eLoadingText",void 0),t}(l.Component);t.LoadingCellRenderer=d},99104:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(13650),l=o(47721),p=o(83423),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.getDefaultType=function(){return a.BaseFilter.CONTAINS},t.prototype.customInit=function(){this.comparator=this.filterParams.textCustomComparator?this.filterParams.textCustomComparator:t.DEFAULT_COMPARATOR,this.formatter=this.filterParams.textFormatter?this.filterParams.textFormatter:1==this.filterParams.caseSensitive?t.DEFAULT_FORMATTER:t.DEFAULT_LOWERCASE_FORMATTER,e.prototype.customInit.call(this)},t.prototype.modelFromFloatingFilter=function(e){return{type:this.selectedFilter,filter:e,filterType:"text"}},t.prototype.getApplicableFilterTypes=function(){return[a.BaseFilter.EQUALS,a.BaseFilter.NOT_EQUAL,a.BaseFilter.STARTS_WITH,a.BaseFilter.ENDS_WITH,a.BaseFilter.CONTAINS,a.BaseFilter.NOT_CONTAINS]},t.prototype.bodyTemplate=function(e){var t=this.translate.bind(this);return'<div class="ag-filter-body">\n <div class="ag-input-text-wrapper">\n <input class="ag-filter-filter" id='+(e==a.FilterConditionType.MAIN?"filterText":"filterConditionText")+' type="text" placeholder="'+t("filterOoo","Filter...")+'"/>\n </div>\n </div>'},t.prototype.initialiseFilterBodyUi=function(t){e.prototype.initialiseFilterBodyUi.call(this,t),this.addFilterChangedListener(t),this.setFilter(this.filterConditionText,a.FilterConditionType.CONDITION),this.setFilterType(this.selectedFilterCondition,a.FilterConditionType.CONDITION)},t.prototype.addFilterChangedListener=function(e){var t=this,o=e===a.FilterConditionType.MAIN?this.eFilterTextField:this.eFilterConditionTextField,i=this.getDebounceMs(this.filterParams),n=p._.debounce((function(){return t.onFilterTextFieldChanged(e)}),i);this.addDestroyableEventListener(o,"input",n)},t.prototype.refreshFilterBodyUi=function(e){var t=e===a.FilterConditionType.MAIN?this.selectedFilter:this.selectedFilterCondition;this.eFilterConditionTextField&&this.addFilterChangedListener(a.FilterConditionType.CONDITION);var o=e===a.FilterConditionType.MAIN?this.eFilterTextField:this.eFilterConditionTextField;if(o){var i=!this.doesFilterHaveHiddenInput(t)&&t!==a.BaseFilter.EMPTY;p._.setVisible(o,i)}},t.prototype.afterGuiAttached=function(){this.eFilterTextField.focus()},t.prototype.filterValues=function(e){return e===a.FilterConditionType.MAIN?this.filterText:this.filterConditionText},t.prototype.individualFilterPasses=function(e,t){var o=t==a.FilterConditionType.MAIN?this.filterText:this.filterConditionText,i=t==a.FilterConditionType.MAIN?this.selectedFilter:this.selectedFilterCondition,n=this.customFilterOptions[i];if(n&&(null!=o||n.hideFilterInput)){var r=this.filterParams.valueGetter(e.node),s=this.formatter(r);return n.test(o,s)}return o?this.checkIndividualFilter(e,i,o):t===a.FilterConditionType.MAIN||"AND"===this.conditionValue},t.prototype.checkIndividualFilter=function(e,t,o){var i=this.filterParams.valueGetter(e.node),n=this.formatter(o);if(null==i||void 0===i)return t===a.BaseFilter.NOT_EQUAL||t===a.BaseFilter.NOT_CONTAINS;var r=this.formatter(i);return this.comparator(t,r,n)},t.prototype.onFilterTextFieldChanged=function(e){var t=e===a.FilterConditionType.MAIN?this.eFilterTextField.value:this.eFilterConditionTextField.value,o=e===a.FilterConditionType.MAIN?this.filterText:this.filterConditionText,i=p._.makeNull(t);if(i&&""===i.trim()&&(i=null),o!==i){var n=i&&1!=this.filterParams.caseSensitive?i.toLowerCase():i,r=o&&1!=this.filterParams.caseSensitive?o.toLowerCase():o;e===a.FilterConditionType.MAIN?this.filterText=this.formatter(i):this.filterConditionText=this.formatter(i),r!==n&&this.onFilterChanged()}},t.prototype.setFilter=function(e,t){if(e=p._.makeNull(e),t===a.FilterConditionType.MAIN)if(e){if(this.filterText=this.formatter(e),!this.eFilterTextField)return;this.eFilterTextField.value=e}else{if(this.filterText=null,!this.eFilterTextField)return;this.eFilterTextField.value=null}else if(e){if(this.filterConditionText=this.formatter(e),!this.eFilterConditionTextField)return;this.eFilterConditionTextField.value=e}else{if(this.filterConditionText=null,!this.eFilterConditionTextField)return;this.eFilterConditionTextField.value=null}},t.prototype.getFilter=function(){return this.filterText},t.prototype.resetState=function(e){void 0===e&&(e=!1),e||(this.setFilterType(this.defaultFilter,a.FilterConditionType.MAIN),this.setFilter(null,a.FilterConditionType.MAIN)),this.setFilterType(this.defaultFilter,a.FilterConditionType.CONDITION),this.setFilter(null,a.FilterConditionType.CONDITION)},t.prototype.serialize=function(e){var t=e===a.FilterConditionType.MAIN?this.selectedFilter:this.selectedFilterCondition,o=e===a.FilterConditionType.MAIN?this.filterText:this.filterConditionText;return{type:t||this.defaultFilter,filter:o,filterType:"text"}},t.prototype.parse=function(e,t){this.setFilterType(e.type,t),this.setFilter(e.filter,t)},t.prototype.setType=function(e,t){this.setFilterType(e,t)},t.DEFAULT_FORMATTER=function(e){return e},t.DEFAULT_LOWERCASE_FORMATTER=function(e){return null==e?null:e.toString().toLowerCase()},t.DEFAULT_COMPARATOR=function(e,o,i){switch(e){case t.CONTAINS:return o.indexOf(i)>=0;case t.NOT_CONTAINS:return-1===o.indexOf(i);case t.EQUALS:return o===i;case t.NOT_EQUAL:return o!=i;case t.STARTS_WITH:return 0===o.indexOf(i);case t.ENDS_WITH:var n=o.lastIndexOf(i);return n>=0&&n===o.length-i.length;default:return console.warn("invalid filter type "+e),!1}},r([l.QuerySelector("#filterText"),s("design:type",HTMLInputElement)],t.prototype,"eFilterTextField",void 0),r([l.QuerySelector("#filterConditionText"),s("design:type",HTMLInputElement)],t.prototype,"eFilterConditionTextField",void 0),t}(a.ComparableBaseFilter);t.TextFilter=u},99162:function(e,t,o){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},i(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var l=o(72493),p=o(60843),u=o(63405),c=o(37132),d=o(28921),h=o(65802),f=o(40797),g=o(44871),m=function(e){function t(t){return e.call(this,t)||this}return n(t,e),t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.init=function(){e.prototype.init.call(this),this.getRow(0)},t.prototype.moveItemsDown=function(e,t,o){for(var i=e.getStartRow(),n=t+o,r=e.getEndRow()-1;r>=i;r--)if(!(r<n)){var s=r-o,a=this.getRow(s,!0);a?e.setRowNode(r,a):(e.setBlankRowNode(r),e.setDirty())}},t.prototype.insertItems=function(e,t,o){for(var i=e.getStartRow(),n=e.getEndRow(),r=[],s=0;s<o.length;s++){var a=t+s;if(a>=i&&a<n){var l=o[s],p=e.setNewData(a,l);r.push(p)}}return r},t.prototype.insertItemsAtIndex=function(e,t){var o=this,i=[];this.forEachBlockInReverseOrder((function(n){n.getEndRow()<=e||(o.moveItemsDown(n,e,t.length),o.insertItems(n,e,t).forEach((function(e){return i.push(e)})))})),this.isMaxRowFound()&&this.hack_setVirtualRowCount(this.getVirtualRowCount()+t.length),this.onCacheUpdated();var n={type:u.Events.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)},t.prototype.getRow=function(e,t){void 0===t&&(t=!1);var o=Math.floor(e/this.cacheParams.blockSize),i=this.getBlock(o);if(!i){if(t)return null;i=this.createBlock(o)}return i.getRow(e)},t.prototype.createBlock=function(e){var t=new d.InfiniteBlock(e,this.cacheParams);return this.getContext().wireBean(t),this.postCreateBlock(t),t},t.prototype.refreshCache=function(){this.forEachBlockInOrder((function(e){return e.setDirty()})),this.checkBlockToLoad()},r([l.Autowired("eventService"),s("design:type",p.EventService)],t.prototype,"eventService",void 0),r([l.Autowired("columnApi"),s("design:type",g.ColumnApi)],t.prototype,"columnApi",void 0),r([l.Autowired("gridApi"),s("design:type",f.GridApi)],t.prototype,"gridApi",void 0),r([a(0,l.Qualifier("loggerFactory")),s("design:type",Function),s("design:paramtypes",[c.LoggerFactory]),s("design:returntype",void 0)],t.prototype,"setBeans",null),r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(h.RowNodeCache);t.InfiniteCache=m},99770:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultColumnTypes={numericColumn:{headerClass:"ag-numeric-header",cellClass:"ag-numeric-cell"}}}};
|