=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.popupList=[],e}return c(e,t),e.prototype.init=function(){var t=this;this.addManagedListener(this.eventService,i.a.EVENT_KEYBOARD_FOCUS,(function(){Object(l.forEach)(t.popupList,(function(t){return Object(a.addCssClass)(t.element,"ag-keyboard-focus")}))})),this.addManagedListener(this.eventService,i.a.EVENT_MOUSE_FOCUS,(function(){Object(l.forEach)(t.popupList,(function(t){return Object(a.removeCssClass)(t.element,"ag-keyboard-focus")}))}))},e.prototype.registerGridCore=function(t){this.gridCore=t},e.prototype.getPopupParent=function(){var t=this.gridOptionsWrapper.getPopupParent();return t||this.gridCore.getRootGui()},e.prototype.positionPopupForMenu=function(t){var e=t.eventSource.getBoundingClientRect(),o=this.getParentRect(),n=this.keepYWithinBounds(t,e.top-o.top),r=t.ePopup.clientWidth>0?t.ePopup.clientWidth:200;t.ePopup.style.minWidth=r+"px";var i,s=o.right-o.left-r;function a(){return e.right-o.left-2}function l(){return e.left-o.left-r}this.gridOptionsWrapper.isEnableRtl()?((i=l())<0&&(i=a()),i>s&&(i=0)):((i=a())>s&&(i=l()),i<0&&(i=0)),t.ePopup.style.left=i+"px",t.ePopup.style.top=n+"px"},e.prototype.positionPopupUnderMouseEvent=function(t){var e=this.calculatePointerAlign(t.mouseEvent),o=e.x,n=e.y,r=t.ePopup,i=t.nudgeX,s=t.nudgeY;this.positionPopup({ePopup:r,x:o,y:n,nudgeX:i,nudgeY:s,keepWithinBounds:!0}),this.callPostProcessPopup(t.type,t.ePopup,null,t.mouseEvent,t.column,t.rowNode)},e.prototype.calculatePointerAlign=function(t){var e=this.getParentRect();return{x:t.clientX-e.left,y:t.clientY-e.top}},e.prototype.positionPopupUnderComponent=function(t){var e=t.eventSource.getBoundingClientRect(),o=t.alignSide||"left",n=this.getParentRect(),r=e.left-n.left;"right"===o&&(r-=t.ePopup.offsetWidth-e.width),this.positionPopup({ePopup:t.ePopup,minWidth:t.minWidth,minHeight:t.minHeight,nudgeX:t.nudgeX,nudgeY:t.nudgeY,x:r,y:e.top-n.top+e.height,keepWithinBounds:t.keepWithinBounds}),this.callPostProcessPopup(t.type,t.ePopup,t.eventSource,null,t.column,t.rowNode)},e.prototype.positionPopupOverComponent=function(t){var e=t.eventSource.getBoundingClientRect(),o=this.getParentRect();this.positionPopup({ePopup:t.ePopup,minWidth:t.minWidth,nudgeX:t.nudgeX,nudgeY:t.nudgeY,x:e.left-o.left,y:e.top-o.top,keepWithinBounds:t.keepWithinBounds}),this.callPostProcessPopup(t.type,t.ePopup,t.eventSource,null,t.column,t.rowNode)},e.prototype.callPostProcessPopup=function(t,e,o,n,r,i){var s=this.gridOptionsWrapper.getPostProcessPopupFunc();s&&s({column:r,rowNode:i,ePopup:e,type:t,eventSource:o,mouseEvent:n})},e.prototype.positionPopup=function(t){var e=t.x,o=t.y;t.nudgeX&&(e+=t.nudgeX),t.nudgeY&&(o+=t.nudgeY),t.keepWithinBounds&&(e=this.keepXWithinBounds(t,e),o=this.keepYWithinBounds(t,o)),t.ePopup.style.left=e+"px",t.ePopup.style.top=o+"px"},e.prototype.getActivePopups=function(){return this.popupList.map((function(t){return t.element}))},e.prototype.getParentRect=function(){var t=this.getPopupParent(),e=this.gridOptionsWrapper.getDocument();t===e.body&&(t=e.documentElement);var o=getComputedStyle(t),n=t.getBoundingClientRect();return{top:n.top+parseFloat(o.borderTopWidth)||0,left:n.left+parseFloat(o.borderLeftWidth)||0,right:n.right+parseFloat(o.borderRightWidth)||0,bottom:n.bottom+parseFloat(o.borderBottomWidth)||0}},e.prototype.keepYWithinBounds=function(t,e){var o=this.gridOptionsWrapper.getDocument(),n=o.documentElement,r=this.getPopupParent(),i=r.getBoundingClientRect(),s=o.documentElement.getBoundingClientRect(),l=r===o.body,u=Math.min(200,i.height),p=0;t.minHeight&&t.minHeight0&&(u=t.ePopup.clientHeight,p=Object(a.getAbsoluteHeight)(t.ePopup)-u);var c=l?Object(a.getAbsoluteHeight)(n)+n.scrollTop:i.height;l&&(c-=Math.abs(s.top-i.top));var d=c-u-p;return Math.min(Math.max(e,0),Math.abs(d))},e.prototype.keepXWithinBounds=function(t,e){var o=this.gridOptionsWrapper.getDocument(),n=o.documentElement,r=this.getPopupParent(),i=r.getBoundingClientRect(),s=o.documentElement.getBoundingClientRect(),l=r===o.body,u=t.ePopup,p=Math.min(200,i.width),c=0;t.minWidth&&t.minWidth0&&(p=u.offsetWidth,u.style.minWidth=p+"px",c=Object(a.getAbsoluteWidth)(u)-p);var d=l?Object(a.getAbsoluteWidth)(n)+n.scrollLeft:i.width;l&&(d-=Math.abs(s.left-i.left));var h=d-p-c;return Math.min(Math.max(e,0),Math.abs(h))},e.prototype.keepPopupPositionedRelativeTo=function(t){var e=this.getPopupParent(),o=e.getBoundingClientRect(),n=t.element.getBoundingClientRect(),r=o.top-n.top,i=r,s=t.ePopup.style.top,a=parseInt(s.substring(0,s.length-1)),l=setInterval((function(){var o=e.getBoundingClientRect(),n=t.element.getBoundingClientRect(),s=o.top-n.top;if(s!=i){var l=a+r-s;t.ePopup.style.top=l+"px"}i=s}),200);return function(){clearInterval(l)}},e.prototype.addPopup=function(t){var e=this,o=t.modal,n=t.eChild,r=t.closeOnEsc,s=t.closedCallback,u=t.click,c=t.alwaysOnTop,d=t.positionCallback,h=t.anchorToElement,f=this.gridOptionsWrapper.getDocument();if(!f)return console.warn("ag-grid: could not find the document, document is empty"),function(){};var g=Object(l.findIndex)(this.popupList,(function(t){return t.element===n}));if(-1!==g)return this.popupList[g].hideFunc;var y=this.getPopupParent();y.appendChild(n),null==n.style.top&&(n.style.top="0px"),null==n.style.left&&(n.style.left="0px");var v=document.createElement("div"),m=this.environment.getTheme().theme;m&&Object(a.addCssClass)(v,m),Object(a.addCssClass)(v,"ag-popup"),Object(a.addCssClass)(n,this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr"),Object(a.addCssClass)(n,"ag-popup-child"),v.appendChild(n),y.appendChild(v),c?this.setAlwaysOnTop(v,!0):this.bringPopupToFront(v);var C,O=!1,w=function(t){v.contains(document.activeElement)&&((t.which||t.keyCode)===p.a.ESCAPE&&R({keyboardEvent:t}))},b=function(t){return R({mouseEvent:t})},E=function(t){return R({touchEvent:t})},R=function(t){void 0===t&&(t={});var o=t.mouseEvent,r=t.touchEvent,a=t.keyboardEvent;e.isEventFromCurrentPopup({mouseEvent:o,touchEvent:r},n)||e.isEventSameChainAsOriginalEvent({originalMouseEvent:u,mouseEvent:o,touchEvent:r})||O||(O=!0,y.removeChild(v),f.removeEventListener("keydown",w),f.removeEventListener("mousedown",b),f.removeEventListener("touchstart",E),f.removeEventListener("contextmenu",b),e.eventService.removeEventListener(i.a.EVENT_DRAG_STARTED,b),s&&s(o||r||a),e.popupList=e.popupList.filter((function(t){return t.element!==n})),C&&C())};return window.setTimeout((function(){r&&f.addEventListener("keydown",w),o&&(f.addEventListener("mousedown",b),e.eventService.addEventListener(i.a.EVENT_DRAG_STARTED,b),f.addEventListener("touchstart",E),f.addEventListener("contextmenu",b))}),0),this.popupList.push({element:n,hideFunc:R}),d&&d(),h&&(C=this.keepPopupPositionedRelativeTo({element:h,ePopup:n})),R},e.prototype.isEventFromCurrentPopup=function(t,e){var o=t.mouseEvent,n=t.touchEvent,r=o||n;if(!r)return!1;var i=Object(l.findIndex)(this.popupList,(function(t){return t.element===e}));if(-1===i)return!1;for(var s=i;s=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.registerGridComp=function(t){this.gridPanel=t},e.prototype.registerHeaderRootComp=function(t){this.headerRootComp=t},e.prototype.getPreferredWidthForColumn=function(t,e){var o=this.getHeaderCellForColumn(t);if(!o)return-1;var n=document.createElement("span");n.style.position="fixed";var r=this.gridPanel.getCenterContainer();r.appendChild(n),this.putRowCellsIntoDummyContainer(t,n),e||this.cloneItemIntoDummy(o,n);var i=n.offsetWidth;return r.removeChild(n),i+this.gridOptionsWrapper.getAutoSizePadding()},e.prototype.getHeaderCellForColumn=function(t){var e=null;return this.headerRootComp.forEachHeaderElement((function(o){if(o instanceof i.a){var n=o;n.getColumn()===t&&(e=n)}})),e?e.getGui():null},e.prototype.putRowCellsIntoDummyContainer=function(t,e){var o=this;this.rowRenderer.getAllCellsForColumn(t).forEach((function(t){return o.cloneItemIntoDummy(t,e)}))},e.prototype.cloneItemIntoDummy=function(t,e){var o=t.cloneNode(!0);o.style.width="",o.style.position="static",o.style.left="";var n=document.createElement("div");Object(a.containsClass)(o,"ag-header-cell")?(Object(a.addCssClass)(n,"ag-header"),Object(a.addCssClass)(n,"ag-header-row"),n.style.position="static"):Object(a.addCssClass)(n,"ag-row"),n.style.display="table-row",n.appendChild(o),e.appendChild(n)},u([Object(r.a)("rowRenderer")],e.prototype,"rowRenderer",void 0),u([Object(r.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=u([Object(r.b)("autoWidthCalculator")],e)}(s.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return l}));var n,r=o(0),i=o(8),s=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),a=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.addResizeBar=function(t){var e=this,o={dragStartPixels:t.dragStartPixels||0,eElement:t.eResizeBar,onDragStart:this.onDragStart.bind(this,t),onDragStop:this.onDragStop.bind(this,t),onDragging:this.onDragging.bind(this,t)};this.dragService.addDragSource(o,!0);return function(){return e.dragService.removeDragSource(o)}},e.prototype.onDragStart=function(t,e){this.dragStartX=e.clientX,this.setResizeIcons();var o=e instanceof MouseEvent&&!0===e.shiftKey;t.onResizeStart(o)},e.prototype.setResizeIcons=function(){this.oldBodyCursor=this.eGridDiv.style.cursor,this.oldUserSelect=this.eGridDiv.style.userSelect,this.oldWebkitUserSelect=this.eGridDiv.style.webkitUserSelect,this.eGridDiv.style.cursor="ew-resize",this.eGridDiv.style.userSelect="none",this.eGridDiv.style.webkitUserSelect="none"},e.prototype.onDragStop=function(t,e){t.onResizeEnd(this.resizeAmount),this.resetIcons()},e.prototype.resetIcons=function(){this.eGridDiv.style.cursor=this.oldBodyCursor,this.eGridDiv.style.userSelect=this.oldUserSelect,this.eGridDiv.style.webkitUserSelect=this.oldWebkitUserSelect},e.prototype.onDragging=function(t,e){this.resizeAmount=e.clientX-this.dragStartX,t.onResizing(this.resizeAmount)},a([Object(r.a)("dragService")],e.prototype,"dragService",void 0),a([Object(r.a)("eGridDiv")],e.prototype,"eGridDiv",void 0),e=a([Object(r.b)("horizontalResizeService")],e)}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return g}));var n,r=o(0),i=o(6),s=o(5),a=o(146),l=o(15),u=o(16),p=o(34),c=o(1),d=o(7),h=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),f=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},g=function(t){function e(){return t.call(this,void 0,!0)||this}return h(e,t),e.prototype.postConstruct=function(){var e=this;this.logger=this.loggerFactory.create("GridCore");var o=this.createTemplate();if(this.setTemplate(o),[this.gridApi,this.rowRenderer,this.popupService,this.focusController].forEach((function(t){return t.registerGridCore(e)})),u.a.isRegistered(l.a.ClipboardModule)&&this.clipboardService.registerGridCore(this),this.gridOptionsWrapper.addLayoutElement(this.getGui()),this.eGridDiv.appendChild(this.getGui()),this.addDestroyFunc((function(){e.eGridDiv.removeChild(e.getGui())})),this.$scope){var n=this.$scope.$watch(this.quickFilterOnScope,(function(t){return e.filterManager.setQuickFilter(t)}));this.addDestroyFunc(n)}this.addRtlSupport(),this.logger.log("ready"),this.gridOptionsWrapper.addLayoutElement(this.eRootWrapperBody);var r=this.resizeObserverService.observeResize(this.eGridDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((function(){return r()}));var i=this.getGui();this.addManagedListener(this.eventService,s.a.EVENT_KEYBOARD_FOCUS,(function(){Object(c.addCssClass)(i,"ag-keyboard-focus")})),this.addManagedListener(this.eventService,s.a.EVENT_MOUSE_FOCUS,(function(){Object(c.removeCssClass)(i,"ag-keyboard-focus")})),t.prototype.postConstruct.call(this)},e.prototype.getFocusableElement=function(){return this.eRootWrapperBody},e.prototype.createTemplate=function(){var t=u.a.isRegistered(l.a.SideBarModule),e=u.a.isRegistered(l.a.StatusBarModule);return'\n '+(u.a.isRegistered(l.a.RowGroupingModule)?"
":"")+'\n
\n "+(e?'
':"")+"\n
\n "+(u.a.isRegistered(l.a.EnterpriseCoreModule)?"
":"")+"\n
"},e.prototype.getFocusableContainers=function(){var t=[this.gridPanel.getGui()];return this.sideBarComp&&t.push(this.sideBarComp.getGui()),t.filter((function(t){return Object(c.isVisible)(t)}))},e.prototype.focusNextInnerContainer=function(t){var e=this.getFocusableContainers(),o=Object(d.findIndex)(e,(function(t){return t.contains(document.activeElement)}))+(t?-1:1);return!(o<0||o>=e.length)&&(0===o?this.focusGridHeader():this.focusController.focusInto(e[o]))},e.prototype.focusInnerElement=function(t){var e=this.getFocusableContainers();if(t){if(e.length>1)return this.focusController.focusInto(Object(d.last)(e));var o=Object(d.last)(this.columnController.getAllDisplayedColumns());if(this.focusController.focusGridView(o,!0))return!0}return this.focusGridHeader()},e.prototype.focusGridHeader=function(){var t=this.columnController.getAllDisplayedColumns()[0];return!!t&&(t.getParent()&&(t=this.columnController.getColumnGroupAtLevel(t,0)),this.focusController.focusHeaderPosition({headerRowIndex:0,column:t}),!0)},e.prototype.onGridSizeChanged=function(){var t={type:s.a.EVENT_GRID_SIZE_CHANGED,api:this.gridApi,columnApi:this.columnApi,clientWidth:this.eGridDiv.clientWidth,clientHeight:this.eGridDiv.clientHeight};this.eventService.dispatchEvent(t)},e.prototype.addRtlSupport=function(){var t=this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr";Object(c.addCssClass)(this.getGui(),t)},e.prototype.getRootGui=function(){return this.getGui()},e.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isDisplayed()},e.prototype.setSideBarVisible=function(t){this.sideBarComp?this.sideBarComp.setDisplayed(t):t&&console.warn("ag-Grid: sideBar is not loaded")},e.prototype.setSideBarPosition=function(t){this.sideBarComp?this.sideBarComp.setSideBarPosition(t):console.warn("ag-Grid: sideBar is not loaded")},e.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},e.prototype.getSideBar=function(){return this.gridOptions.sideBar},e.prototype.getToolPanelInstance=function(t){if(this.sideBarComp)return this.sideBarComp.getToolPanelInstance(t);console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},e.prototype.refreshSideBar=function(){this.sideBarComp&&this.sideBarComp.refresh()},e.prototype.setSideBar=function(t){this.sideBarComp&&(this.eRootWrapperBody.removeChild(this.sideBarComp.getGui()),this.gridOptions.sideBar=a.a.parse(t),this.sideBarComp.reset(),this.eRootWrapperBody.appendChild(this.sideBarComp.getGui()))},e.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},e.prototype.openToolPanel=function(t){this.sideBarComp?this.sideBarComp.openToolPanel(t):console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},e.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},e.prototype.destroy=function(){this.logger.log("Grid DOM removed"),t.prototype.destroy.call(this)},e.prototype.ensureNodeVisible=function(t,e){if(void 0===e&&(e=null),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.getRowCount(),n="function"==typeof t,r=-1,i=0;i=0&&this.gridPanel.ensureIndexVisible(r,e)},e.prototype.onTabKeyDown=function(){},f([Object(r.a)("gridOptions")],e.prototype,"gridOptions",void 0),f([Object(r.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),f([Object(r.a)("rowModel")],e.prototype,"rowModel",void 0),f([Object(r.a)("resizeObserverService")],e.prototype,"resizeObserverService",void 0),f([Object(r.a)("rowRenderer")],e.prototype,"rowRenderer",void 0),f([Object(r.a)("filterManager")],e.prototype,"filterManager",void 0),f([Object(r.a)("eGridDiv")],e.prototype,"eGridDiv",void 0),f([Object(r.a)("$scope")],e.prototype,"$scope",void 0),f([Object(r.a)("quickFilterOnScope")],e.prototype,"quickFilterOnScope",void 0),f([Object(r.a)("popupService")],e.prototype,"popupService",void 0),f([Object(r.a)("columnController")],e.prototype,"columnController",void 0),f([Object(r.a)("loggerFactory")],e.prototype,"loggerFactory",void 0),f([Object(r.a)("columnApi")],e.prototype,"columnApi",void 0),f([Object(r.a)("gridApi")],e.prototype,"gridApi",void 0),f([Object(r.d)("clipboardService")],e.prototype,"clipboardService",void 0),f([Object(i.d)("gridPanel")],e.prototype,"gridPanel",void 0),f([Object(i.d)("sideBar")],e.prototype,"sideBarComp",void 0),f([Object(i.d)("rootWrapperBody")],e.prototype,"eRootWrapperBody",void 0),e}(p.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return p}));var n,r=o(0),i=o(8),s=o(1),a=o(9),l=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),u=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},e.prototype.showMenuAfterMouseEvent=function(t,e){var o=this;this.showPopup(t,(function(n){o.popupService.positionPopupUnderMouseEvent({column:t,type:"columnMenu",mouseEvent:e,ePopup:n})}),e.target)},e.prototype.showMenuAfterButtonClick=function(t,e){var o=this;this.showPopup(t,(function(n){o.popupService.positionPopupUnderComponent({type:"columnMenu",eventSource:e,ePopup:n,keepWithinBounds:!0,column:t})}),e)},e.prototype.showPopup=function(t,e,o){var n,r=this,i=this.filterManager.getOrCreateFilterWrapper(t,"COLUMN_MENU"),a=document.createElement("div");a.setAttribute("role","presentation"),Object(s.addCssClass)(a,"ag-menu"),this.tabListener=this.addManagedListener(a,"keydown",(function(t){return r.trapFocusWithin(t,a)})),i.guiPromise.then((function(t){return a.appendChild(t)}));var l=function(t){"horizontal"===t.direction&&n()};this.eventService.addEventListener("bodyScroll",l);n=this.popupService.addPopup({modal:!0,eChild:a,closeOnEsc:!0,closedCallback:function(e){r.eventService.removeEventListener("bodyScroll",l),t.setMenuVisible(!1,"contextMenu");var n=e instanceof KeyboardEvent;if(r.tabListener&&(r.tabListener=r.tabListener()),n&&o&&Object(s.isVisible)(o)){var i=r.focusController.findTabbableParent(o);i&&i.focus()}}}),e(a),i.filterPromise.then((function(t){t.afterGuiAttached&&t.afterGuiAttached({container:"columnMenu",hidePopup:n})})),this.hidePopup=n,t.setMenuVisible(!0,"contextMenu")},e.prototype.trapFocusWithin=function(t,e){t.keyCode!==a.a.TAB||t.defaultPrevented||this.focusController.findNextFocusableElement(e,!1,t.shiftKey)||(t.preventDefault(),this.focusController.focusInto(e,t.shiftKey))},e.prototype.isMenuEnabled=function(t){return t.isFilterAllowed()},u([Object(r.a)("filterManager")],e.prototype,"filterManager",void 0),u([Object(r.a)("popupService")],e.prototype,"popupService",void 0),u([Object(r.a)("focusController")],e.prototype,"focusController",void 0),e=u([Object(r.b)("menuFactory")],e)}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return h}));var n,r=o(0),i=o(5),s=o(8),a=o(2),l=o(7),u=o(1),p=o(71),c=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),d=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dragEndFunctions=[],e.dragSources=[],e}return c(e,t),e.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},e.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},e.prototype.removeListener=function(t){var e=t.dragSource.eElement,o=t.mouseDownListener;if(e.removeEventListener("mousedown",o),t.touchEnabled){var n=t.touchStartListener;e.removeEventListener("touchstart",n,{passive:!0})}},e.prototype.removeDragSource=function(t){var e=Object(a.find)(this.dragSources,(function(e){return e.dragSource===t}));e&&(this.removeListener(e),Object(l.removeFromArray)(this.dragSources,e))},e.prototype.setNoSelectToBody=function(t){var e=this.gridOptionsWrapper.getDocument().querySelector("body");Object(a.exists)(e)&&Object(u.addOrRemoveCssClass)(e,"ag-unselectable",t)},e.prototype.isDragging=function(){return this.dragging},e.prototype.addDragSource=function(t,e){void 0===e&&(e=!1);var o=this.onMouseDown.bind(this,t);t.eElement.addEventListener("mousedown",o);var n=null,r=this.gridOptionsWrapper.isSuppressTouch();e&&!r&&(n=this.onTouchStart.bind(this,t),t.eElement.addEventListener("touchstart",n,{passive:!0})),this.dragSources.push({dragSource:t,mouseDownListener:o,touchStartListener:n,touchEnabled:e})},e.prototype.onTouchStart=function(t,e){var o=this;this.currentDragParams=t,this.dragging=!1;var n=e.touches[0];this.touchLastTime=n,this.touchStart=n;var r=function(e){return o.onTouchUp(e,t.eElement)},i=t.eElement,s=[{target:document,type:"touchmove",listener:function(t){t.cancelable&&t.preventDefault()},options:{passive:!1}},{target:i,type:"touchmove",listener:function(e){return o.onTouchMove(e,t.eElement)},options:{passive:!0}},{target:i,type:"touchend",listener:r,options:{passive:!0}},{target:i,type:"touchcancel",listener:r,options:{passive:!0}}];this.addTemporaryEvents(s),0===t.dragStartPixels&&this.onCommonMove(n,this.touchStart,t.eElement)},e.prototype.onMouseDown=function(t,e){var o=this,n=e;if(!(t.skipMouseEvent&&t.skipMouseEvent(e)||n._alreadyProcessedByDragService||(n._alreadyProcessedByDragService=!0,0!==e.button))){this.currentDragParams=t,this.dragging=!1,this.mouseStartEvent=e;var r=this.gridOptionsWrapper.getDocument();this.setNoSelectToBody(!0);var i=[{target:r,type:"mousemove",listener:function(e,n){return o.onMouseMove(e,t.eElement)}},{target:r,type:"mouseup",listener:function(e,n){return o.onMouseUp(e,t.eElement)}},{target:r,type:"contextmenu",listener:function(t){return t.preventDefault()}}];this.addTemporaryEvents(i),0===t.dragStartPixels&&this.onMouseMove(e,t.eElement)}},e.prototype.addTemporaryEvents=function(t){t.forEach((function(t){var e=t.target,o=t.type,n=t.listener,r=t.options;e.addEventListener(o,n,r)})),this.dragEndFunctions.push((function(){t.forEach((function(t){var e=t.target,o=t.type,n=t.listener,r=t.options;e.removeEventListener(o,n,r)}))}))},e.prototype.isEventNearStartEvent=function(t,e){var o=this.currentDragParams.dragStartPixels,n=Object(a.exists)(o)?o:4;return Object(p.areEventsNear)(t,e,n)},e.prototype.getFirstActiveTouch=function(t){for(var e=0;e=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getSortModel=function(){return e.getColumnsWithSortingOrdered().map((function(t){return{colId:t.getColId(),sort:t.getSort()}}))},e}var o;return l(e,t),o=e,e.prototype.progressSort=function(t,e,o){void 0===o&&(o="api");var n=this.getNextSortDirection(t);this.setSortForColumn(t,n,e,o)},e.prototype.setSortForColumn=function(t,e,o,n){void 0===n&&(n="api"),e!==s.a.SORT_ASC&&e!==s.a.SORT_DESC&&(e=null),t.setSort(e,n),o&&!this.gridOptionsWrapper.isSuppressMultiSort()||this.clearSortBarThisColumn(t,n),this.updateSortIndex(t),this.dispatchSortChangedEvents()},e.prototype.updateSortIndex=function(t){var e=this.getColumnsWithSortingOrdered(),o=0;e.forEach((function(e){e!==t&&(e.setSortIndex(o),o++)})),t.getSort()&&t.setSortIndex(o),this.columnController.getPrimaryAndSecondaryAndAutoColumns().filter((function(t){return null==t.getSort()})).forEach((function(t){return t.setSortIndex(void 0)}))},e.prototype.onSortChanged=function(){this.dispatchSortChangedEvents()},e.prototype.isSortActive=function(){var t=this.columnController.getPrimaryAndSecondaryAndAutoColumns().filter((function(t){return!!t.getSort()}));return t&&t.length>0},e.prototype.dispatchSortChangedEvents=function(){var t={type:a.a.EVENT_SORT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.clearSortBarThisColumn=function(t,e){this.columnController.getPrimaryAndSecondaryAndAutoColumns().forEach((function(o){o!==t&&o.setSort(void 0,e)}))},e.prototype.getNextSortDirection=function(t){var e;if(e=t.getColDef().sortingOrder?t.getColDef().sortingOrder:this.gridOptionsWrapper.getSortingOrder()?this.gridOptionsWrapper.getSortingOrder():o.DEFAULT_SORTING_ORDER,!Array.isArray(e)||e.length<=0)return console.warn("ag-grid: sortingOrder must be an array with at least one element, currently it's "+e),null;var n,r=e.indexOf(t.getSort()),i=r<0,s=r==e.length-1;return n=i||s?e[0]:e[r+1],o.DEFAULT_SORTING_ORDER.indexOf(n)<0?(console.warn("ag-grid: invalid sort type "+n),null):n},e.prototype.getColumnsWithSortingOrdered=function(){var t=this.columnController.getPrimaryAndSecondaryAndAutoColumns().filter((function(t){return!!t.getSort()}));return t.sort((function(t,e){return t.getSortIndex()-e.getSortIndex()})),t},e.prototype.getSortForRowController=function(){return this.getColumnsWithSortingOrdered().map((function(t){return{inverter:t.getSort()===s.a.SORT_ASC?1:-1,column:t}}))},e.DEFAULT_SORTING_ORDER=[s.a.SORT_ASC,s.a.SORT_DESC,null],u([Object(r.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),u([Object(r.a)("columnController")],e.prototype,"columnController",void 0),u([Object(r.a)("columnApi")],e.prototype,"columnApi",void 0),u([Object(r.a)("gridApi")],e.prototype,"gridApi",void 0),e=o=u([Object(r.b)("sortController")],e)}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return f}));var n,r=o(0),i=o(8),s=o(5),a=o(42),l=o(34),u=o(19),p=o(7),c=o(2),d=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),h=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.keyboardFocusActive=!1,e}var o;return d(e,t),o=e,e.prototype.init=function(){var t=this.gridOptionsWrapper.getDocument(),e=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,s.a.EVENT_COLUMN_PIVOT_MODE_CHANGED,e),this.addManagedListener(this.eventService,s.a.EVENT_COLUMN_EVERYTHING_CHANGED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,s.a.EVENT_COLUMN_GROUP_OPENED,e),this.addManagedListener(this.eventService,s.a.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.addManagedListener(t,"keydown",this.activateKeyboardMode.bind(this)),this.addManagedListener(t,"mousedown",this.activateMouseMode.bind(this))},e.prototype.registerGridCore=function(t){this.gridCore=t},e.prototype.onColumnEverythingChanged=function(){if(this.focusedCellPosition){var t=this.focusedCellPosition.column,e=this.columnController.getGridColumn(t.getId());t!==e&&this.clearFocusedCell()}},e.prototype.isKeyboardFocus=function(){return this.keyboardFocusActive},e.prototype.activateMouseMode=function(){this.keyboardFocusActive=!1,this.eventService.dispatchEvent({type:s.a.EVENT_MOUSE_FOCUS})},e.prototype.activateKeyboardMode=function(){this.keyboardFocusActive=!0,this.eventService.dispatchEvent({type:s.a.EVENT_KEYBOARD_FOCUS})},e.prototype.getFocusCellToUseAfterRefresh=function(){return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedCellPosition?null:this.getGridCellForDomElement(document.activeElement)?this.focusedCellPosition:null},e.prototype.getGridCellForDomElement=function(t){for(var e=t;e;){var o=this.gridOptionsWrapper.getDomData(e,a.a.DOM_DATA_KEY_CELL_COMP);if(o)return o.getCellPosition();e=e.parentNode}return null},e.prototype.clearFocusedCell=function(){this.focusedCellPosition=null,this.onCellFocused(!1)},e.prototype.getFocusedCell=function(){return this.focusedCellPosition},e.prototype.setFocusedCell=function(t,e,o,n){void 0===n&&(n=!1);var r=this.columnController.getGridColumn(e);r?(this.focusedCellPosition={rowIndex:t,rowPinned:Object(c.makeNull)(o),column:Object(c.makeNull)(r)},this.onCellFocused(n)):this.focusedCellPosition=null},e.prototype.isCellFocused=function(t){return null!=this.focusedCellPosition&&(this.focusedCellPosition.column===t.column&&this.isRowFocused(t.rowIndex,t.rowPinned))},e.prototype.isRowNodeFocused=function(t){return this.isRowFocused(t.rowIndex,t.rowPinned)},e.prototype.isHeaderWrapperFocused=function(t){if(null==this.focusedHeaderPosition)return!1;var e=t.getColumn(),o=t.getParentComponent().getRowIndex(),n=t.getPinned(),r=this.focusedHeaderPosition,i=r.column,s=r.headerRowIndex;return e===i&&o===s&&n==i.getPinned()},e.prototype.clearFocusedHeader=function(){this.focusedHeaderPosition=null},e.prototype.getFocusedHeader=function(){return this.focusedHeaderPosition},e.prototype.setFocusedHeader=function(t,e){this.focusedHeaderPosition={headerRowIndex:t,column:e}},e.prototype.focusHeaderPosition=function(t,e){this.headerNavigationService.scrollToColumn(t.column,e);var o=this.headerNavigationService.getHeaderContainer(t.column.getPinned()).getRowComps()[t.headerRowIndex].getHeaderComps()[t.column.getUniqueId()];return!!o&&(o.getFocusableElement().focus(),!0)},e.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},e.prototype.isRowFocused=function(t,e){return null!=this.focusedCellPosition&&(this.focusedCellPosition.rowIndex===t&&this.focusedCellPosition.rowPinned===Object(c.makeNull)(e))},e.prototype.findFocusableElements=function(t,e,n){void 0===n&&(n=!1);var r=o.FOCUSABLE_SELECTOR,i=o.FOCUSABLE_EXCLUDE;e&&(i+=", "+e),n&&(i+=', [tabindex="-1"]');var s=Array.prototype.slice.apply(t.querySelectorAll(r)),a=Array.prototype.slice.apply(t.querySelectorAll(i));if(!a.length)return s;var l;return l=a,s.filter((function(t){return-1===l.indexOf(t)}))},e.prototype.focusInto=function(t,e,o){void 0===e&&(e=!1),void 0===o&&(o=!1);var n=this.findFocusableElements(t,null,o),r=e?Object(p.last)(n):n[0];return!!r&&(r.focus(),!0)},e.prototype.findNextFocusableElement=function(t,e,o){var n=this.findFocusableElements(t,e?':not([tabindex="-1"])':null),r=(e?Object(p.findIndex)(n,(function(t){return t.contains(document.activeElement)})):n.indexOf(document.activeElement))+(o?-1:1);return r<0||r>=n.length?null:n[r]},e.prototype.isFocusUnderManagedComponent=function(t){var e=t.querySelectorAll("."+l.a.FOCUS_MANAGED_CLASS);if(!e.length)return!1;for(var o=0;o=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.gridInstanceId=o.gridInstanceSequence.next(),e}var o;return p(e,t),o=e,e.prototype.init=function(){this.stampDomElementWithGridInstance()},e.prototype.registerGridComp=function(t){this.gridPanel=t},e.prototype.stampDomElementWithGridInstance=function(){this.eGridDiv[o.GRID_DOM_KEY]=this.gridInstanceId},e.prototype.getRenderedCellForEvent=function(t){return Object(l.getCellCompForEvent)(this.gridOptionsWrapper,t)},e.prototype.isEventFromThisGrid=function(t){for(var e=Object(l.getEventPath)(t),n=0;n=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.getNextCellToFocus=function(t,e){for(var o=e,n=!1;!n;){switch(t){case u.a.UP:o=this.getCellAbove(o);break;case u.a.DOWN:o=this.getCellBelow(o);break;case u.a.RIGHT:o=this.gridOptionsWrapper.isEnableRtl()?this.getCellToLeft(o):this.getCellToRight(o);break;case u.a.LEFT:o=this.gridOptionsWrapper.isEnableRtl()?this.getCellToRight(o):this.getCellToLeft(o);break;default:o=null,console.warn("ag-Grid: unknown key for navigation "+t)}n=!o||this.isCellGoodToFocusOn(o)}return o},e.prototype.isCellGoodToFocusOn=function(t){var e,o=t.column;switch(t.rowPinned){case s.a.PINNED_TOP:e=this.pinnedRowModel.getPinnedTopRow(t.rowIndex);break;case s.a.PINNED_BOTTOM:e=this.pinnedRowModel.getPinnedBottomRow(t.rowIndex);break;default:e=this.rowModel.getRow(t.rowIndex)}return!o.isSuppressNavigable(e)},e.prototype.getCellToLeft=function(t){if(!t)return null;var e=this.columnController.getDisplayedColBefore(t.column);return e?{rowIndex:t.rowIndex,column:e,rowPinned:t.rowPinned}:null},e.prototype.getCellToRight=function(t){if(!t)return null;var e=this.columnController.getDisplayedColAfter(t.column);return e?{rowIndex:t.rowIndex,column:e,rowPinned:t.rowPinned}:null},e.prototype.getRowBelow=function(t){var e=t.rowIndex,o=t.rowPinned;if(this.isLastRowInContainer(t))switch(o){case s.a.PINNED_BOTTOM:return null;case s.a.PINNED_TOP:return this.rowModel.isRowsToRender()?{rowIndex:this.paginationProxy.getPageFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender(s.a.PINNED_BOTTOM)?{rowIndex:0,rowPinned:s.a.PINNED_BOTTOM}:null;default:return this.pinnedRowModel.isRowsToRender(s.a.PINNED_BOTTOM)?{rowIndex:0,rowPinned:s.a.PINNED_BOTTOM}:null}return{rowIndex:e+1,rowPinned:o}},e.prototype.getCellBelow=function(t){if(!t)return null;var e=this.getRowBelow(t);return e?{rowIndex:e.rowIndex,column:t.column,rowPinned:e.rowPinned}:null},e.prototype.isLastRowInContainer=function(t){var e=t.rowPinned,o=t.rowIndex;return e===s.a.PINNED_TOP?this.pinnedRowModel.getPinnedTopRowData().length-1<=o:e===s.a.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRowData().length-1<=o:this.paginationProxy.getPageLastRow()<=o},e.prototype.getRowAbove=function(t){var e=t.rowIndex,o=t.rowPinned;return(o?0===e:e===this.paginationProxy.getPageFirstRow())?o===s.a.PINNED_TOP?null:o&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(s.a.PINNED_TOP)?this.getLastFloatingTopRow():null:{rowIndex:e-1,rowPinned:o}},e.prototype.getCellAbove=function(t){if(!t)return null;var e=this.getRowAbove({rowIndex:t.rowIndex,rowPinned:t.rowPinned});return e?{rowIndex:e.rowIndex,column:t.column,rowPinned:e.rowPinned}:null},e.prototype.getLastBodyCell=function(){return{rowIndex:this.paginationProxy.getPageLastRow(),rowPinned:null}},e.prototype.getLastFloatingTopRow=function(){return{rowIndex:this.pinnedRowModel.getPinnedTopRowData().length-1,rowPinned:s.a.PINNED_TOP}},e.prototype.getNextTabbedCell=function(t,e){return e?this.getNextTabbedCellBackwards(t):this.getNextTabbedCellForwards(t)},e.prototype.getNextTabbedCellForwards=function(t){var e=this.columnController.getAllDisplayedColumns(),o=t.rowIndex,n=t.rowPinned,r=this.columnController.getDisplayedColAfter(t.column);if(!r){r=e[0];var i=this.getRowBelow(t);if(Object(a.missing)(i))return null;if(!i.rowPinned&&!this.paginationProxy.isRowInPage(i))return null;o=i?i.rowIndex:null,n=i?i.rowPinned:null}return{rowIndex:o,column:r,rowPinned:n}},e.prototype.getNextTabbedCellBackwards=function(t){var e=this.columnController.getAllDisplayedColumns(),o=t.rowIndex,n=t.rowPinned,r=this.columnController.getDisplayedColBefore(t.column);if(!r){r=Object(l.last)(e);var i=this.getRowAbove({rowIndex:t.rowIndex,rowPinned:t.rowPinned});if(Object(a.missing)(i))return null;if(!i.rowPinned&&!this.paginationProxy.isRowInPage(i))return null;o=i?i.rowIndex:null,n=i?i.rowPinned:null}return{rowIndex:o,column:r,rowPinned:n}},c([Object(r.a)("columnController")],e.prototype,"columnController",void 0),c([Object(r.a)("rowModel")],e.prototype,"rowModel",void 0),c([Object(r.a)("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),c([Object(r.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),c([Object(r.a)("paginationProxy")],e.prototype,"paginationProxy",void 0),e=c([Object(r.b)("cellNavigationService")],e)}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return u}));var n=o(0),r=o(61),i=o(60),s=o(52),a=o(2),l=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},u=function(){function t(){this.cellRendererMap={}}var e;return e=t,t.prototype.init=function(){this.cellRendererMap[e.ANIMATE_SLIDE]=r.a,this.cellRendererMap[e.ANIMATE_SHOW_CHANGE]=i.a,this.cellRendererMap[e.GROUP]=s.a},t.prototype.addCellRenderer=function(t,e){this.cellRendererMap[t]=e},t.prototype.getCellRenderer=function(t){var e=this.cellRendererMap[t];return Object(a.missing)(e)?(console.warn("ag-Grid: unable to find cellRenderer for key "+t),null):e},t.ANIMATE_SLIDE="animateSlide",t.ANIMATE_SHOW_CHANGE="animateShowChange",t.GROUP="group",l([Object(n.a)("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),l([Object(n.a)("expressionService")],t.prototype,"expressionService",void 0),l([Object(n.a)("eventService")],t.prototype,"eventService",void 0),l([n.e],t.prototype,"init",null),t=e=l([Object(n.b)("cellRendererFactory")],t)}()},function(t,e,o){"use strict";o.d(e,"a",(function(){return l}));var n,r=o(0),i=o(8),s=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),a=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.formatValue=function(t,e,o,n,r,i){void 0===i&&(i=!0);var s,a=null,l=t.getColDef();if(r?s=r:i&&(s=e&&e.rowPinned&&l.pinnedRowValueFormatter?l.pinnedRowValueFormatter:l.valueFormatter),s){var u={value:n,node:e,data:e?e.data:null,colDef:l,column:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};u.$scope=o,a=this.expressionService.evaluate(s,u)}else if(l.refData)return l.refData[n]||"";return null==a&&Array.isArray(n)&&(a=n.join(", ")),a},a([Object(r.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),a([Object(r.a)("expressionService")],e.prototype,"expressionService",void 0),e=a([Object(r.b)("valueFormatterService")],e)}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return a}));var n,r=o(39),i=o(14),s=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),a=function(t){function e(e){return t.call(this,e,"ag-radio-button","radio")||this}return s(e,t),e.prototype.isSelected=function(){return this.eInput.checked},e.prototype.toggle=function(){this.isSelected()||this.setValue(!0)},e.prototype.addInputListeners=function(){t.prototype.addInputListeners.call(this),this.addManagedListener(this.eventService,i.a.EVENT_CHECKBOX_CHANGED,this.onChange.bind(this))},e.prototype.onChange=function(t){t.selected&&t.name&&this.eInput.name&&this.eInput.name===t.name&&t.id&&this.eInput.id!==t.id&&this.setValue(!1,!0)},e}(r.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));var n=function(){function t(){}return t.prototype.setTimeout=function(t,e){window.setTimeout(t,e)},t.prototype.addEventListenerOutsideAngular=function(t,e,o,n){t.addEventListener(e,o,n)},t}()},function(t,e,o){"use strict";o.d(e,"a",(function(){return u}));var n,r=o(0),i=o(8),s=o(5),a=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),l=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.setScrollsVisible=function(t){if(this.horizontalScrollShowing!==t.horizontalScrollShowing||this.verticalScrollShowing!==t.verticalScrollShowing){this.horizontalScrollShowing=t.horizontalScrollShowing,this.verticalScrollShowing=t.verticalScrollShowing;var e={type:s.a.EVENT_SCROLL_VISIBILITY_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)}},e.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},e.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},l([Object(r.a)("columnController")],e.prototype,"columnController",void 0),l([Object(r.a)("columnApi")],e.prototype,"columnApi",void 0),l([Object(r.a)("gridApi")],e.prototype,"gridApi",void 0),l([Object(r.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=l([Object(r.b)("scrollVisibleService")],e)}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return l}));var n,r=o(0),i=o(8),s=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),a=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.processAllCellClasses=function(t,e,o,n){this.processClassRules(t.cellClassRules,e,o,n),this.processStaticCellClasses(t,e,o)},e.prototype.processClassRules=function(t,e,o,n){if("object"==typeof t&&null!==t)for(var r=Object.keys(t),i=0;i=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.currentPage=0,e.topDisplayedRowIndex=0,e.bottomDisplayedRowIndex=0,e.pixelOffset=0,e.masterRowCount=0,e}return u(e,t),e.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isPagination(),this.paginateChildRows=this.gridOptionsWrapper.isPaginateChildRows(),this.addManagedListener(this.eventService,i.a.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(this.gridOptionsWrapper,"paginationPageSize",this.onPaginationPageSizeChanged.bind(this)),this.onModelUpdated()},e.prototype.ensureRowHeightsValid=function(t,e,o,n){var r=this.rowModel.ensureRowHeightsValid(t,e,this.getPageFirstRow(),this.getPageLastRow());return r&&this.calculatePages(),r},e.prototype.onModelUpdated=function(t){this.calculatePages();var e={type:i.a.EVENT_PAGINATION_CHANGED,animate:!!t&&t.animate,newData:!!t&&t.newData,newPage:!!t&&t.newPage,keepRenderedRows:!!t&&t.keepRenderedRows,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.onPaginationPageSizeChanged=function(){this.calculatePages();var t={type:i.a.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!1,keepRenderedRows:!0,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.goToPage=function(t){if(this.active&&this.currentPage!==t){this.currentPage=t;var e={type:i.a.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0,api:this.gridApi,columnApi:this.columnApi};this.onModelUpdated(e)}},e.prototype.getPixelOffset=function(){return this.pixelOffset},e.prototype.getRow=function(t){return this.rowModel.getRow(t)},e.prototype.getRowNode=function(t){return this.rowModel.getRowNode(t)},e.prototype.getRowIndexAtPixel=function(t){return this.rowModel.getRowIndexAtPixel(t)},e.prototype.getCurrentPageHeight=function(){return Object(a.missing)(this.topRowBounds)||Object(a.missing)(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},e.prototype.isRowPresent=function(t){return!!this.rowModel.isRowPresent(t)&&(t.rowIndex>=this.topDisplayedRowIndex&&t.rowIndex<=this.bottomDisplayedRowIndex)},e.prototype.isEmpty=function(){return this.rowModel.isEmpty()},e.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},e.prototype.getNodesInRangeForSelection=function(t,e){return this.rowModel.getNodesInRangeForSelection(t,e)},e.prototype.forEachNode=function(t){return this.rowModel.forEachNode(t)},e.prototype.getType=function(){return this.rowModel.getType()},e.prototype.getRowBounds=function(t){var e=this.rowModel.getRowBounds(t);return e.rowIndex=t,e},e.prototype.getPageFirstRow=function(){return this.topRowBounds?this.topRowBounds.rowIndex:-1},e.prototype.getPageLastRow=function(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1},e.prototype.getRowCount=function(){return this.rowModel.getRowCount()},e.prototype.getPageForIndex=function(t){return Math.floor(t/this.pageSize)},e.prototype.goToPageWithIndex=function(t){if(this.active){var e=this.getPageForIndex(t);this.goToPage(e)}},e.prototype.isRowInPage=function(t){return!this.active||this.getPageForIndex(t.rowIndex)===this.currentPage},e.prototype.isLastPageFound=function(){return this.rowModel.isLastRowFound()},e.prototype.getCurrentPage=function(){return this.currentPage},e.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},e.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},e.prototype.goToFirstPage=function(){this.goToPage(0)},e.prototype.goToLastPage=function(){var t=this.rowModel.getRowCount(),e=Math.floor(t/this.pageSize);this.goToPage(e)},e.prototype.getPageSize=function(){return this.pageSize},e.prototype.getTotalPages=function(){return this.totalPages},e.prototype.setPageSize=function(){this.pageSize=this.gridOptionsWrapper.getPaginationPageSize(),this.pageSize>=1||(this.pageSize=100)},e.prototype.calculatePages=function(){this.active?(this.setPageSize(),this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly()):this.calculatedPagesNotActive(),this.topRowBounds=this.rowModel.getRowBounds(this.topDisplayedRowIndex),this.topRowBounds&&(this.topRowBounds.rowIndex=this.topDisplayedRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomDisplayedRowIndex),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=this.bottomDisplayedRowIndex),this.setPixelOffset(Object(a.exists)(this.topRowBounds)?this.topRowBounds.rowTop:0)},e.prototype.setPixelOffset=function(t){this.pixelOffset!==t&&(this.pixelOffset=t,this.eventService.dispatchEvent({type:i.a.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED}))},e.prototype.setZeroRows=function(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0},e.prototype.calculatePagesMasterRowsOnly=function(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),this.masterRowCount<=0)this.setZeroRows();else{var t=this.masterRowCount-1;this.totalPages=Math.floor(t/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!Object(l.isNumeric)(this.currentPage)||this.currentPage<0)&&(this.currentPage=0);var e=this.pageSize*this.currentPage,o=this.pageSize*(this.currentPage+1)-1;if(o>t&&(o=t),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(e),o===t)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{var n=this.rowModel.getTopLevelRowDisplayedIndex(o+1);this.bottomDisplayedRowIndex=n-1}}},e.prototype.getMasterRowCount=function(){return this.masterRowCount},e.prototype.calculatePagesAllRows=function(){if(this.masterRowCount=this.rowModel.getRowCount(),0!==this.masterRowCount){var t=this.masterRowCount-1;this.totalPages=Math.floor(t/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!Object(l.isNumeric)(this.currentPage)||this.currentPage<0)&&(this.currentPage=0),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>t&&(this.bottomDisplayedRowIndex=t)}else this.setZeroRows()},e.prototype.calculatedPagesNotActive=function(){this.pageSize=this.rowModel.getRowCount(),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1},p([Object(s.a)("rowModel")],e.prototype,"rowModel",void 0),p([Object(s.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),p([Object(s.a)("columnApi")],e.prototype,"columnApi",void 0),p([Object(s.a)("gridApi")],e.prototype,"gridApi",void 0),p([s.e],e.prototype,"postConstruct",null),e=p([Object(s.b)("paginationProxy")],e)}(r.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return l}));var n,r=o(0),i=o(8),s=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),a=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cacheVersion=0,e}return s(e,t),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(t,e,o){this.active&&(t.__cacheVersion!==this.cacheVersion&&(t.__cacheVersion=this.cacheVersion,t.__cacheData={}),t.__cacheData[e]=o)},e.prototype.getValue=function(t,e){if(this.active&&t.__cacheVersion===this.cacheVersion)return t.__cacheData[e]},a([Object(r.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),a([r.e],e.prototype,"init",null),e=a([Object(r.b)("valueCache")],e)}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return p}));var n,r=o(5),i=o(0),s=o(8),a=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),l=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},u=function(t,e){return function(o,n){e(o,n,t)}},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.consuming=!1,e}return a(e,t),e.prototype.setBeans=function(t){this.logger=t.create("AlignedGridsService")},e.prototype.registerGridComp=function(t){this.gridPanel=t},e.prototype.init=function(){this.addManagedListener(this.eventService,r.a.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,r.a.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,r.a.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,r.a.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,r.a.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,r.a.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},e.prototype.fireEvent=function(t){if(!this.consuming){var e=this.gridOptionsWrapper.getAlignedGrids();e&&e.forEach((function(e){if(e.api){var o=e.api.__getAlignedGridService();t(o)}}))}},e.prototype.onEvent=function(t){this.consuming=!0,t(),this.consuming=!1},e.prototype.fireColumnEvent=function(t){this.fireEvent((function(e){e.onColumnEvent(t)}))},e.prototype.fireScrollEvent=function(t){"horizontal"===t.direction&&this.fireEvent((function(e){e.onScrollEvent(t)}))},e.prototype.onScrollEvent=function(t){var e=this;this.onEvent((function(){e.gridPanel.setHorizontalScrollPosition(t.left)}))},e.prototype.getMasterColumns=function(t){var e=[];return t.columns?t.columns.forEach((function(t){e.push(t)})):t.column&&e.push(t.column),e},e.prototype.getColumnIds=function(t){var e=[];return t.columns?t.columns.forEach((function(t){e.push(t.getColId())})):t.column&&e.push(t.column.getColId()),e},e.prototype.onColumnEvent=function(t){var e=this;this.onEvent((function(){switch(t.type){case r.a.EVENT_COLUMN_MOVED:case r.a.EVENT_COLUMN_VISIBLE:case r.a.EVENT_COLUMN_PINNED:case r.a.EVENT_COLUMN_RESIZED:var o=t;e.processColumnEvent(o);break;case r.a.EVENT_COLUMN_GROUP_OPENED:var n=t;e.processGroupOpenedEvent(n);break;case r.a.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(t){var e,o=t.columnGroup;if(o){var n=o.getGroupId();e=this.columnController.getOriginalColumnGroup(n)}o&&!e||(this.logger.log("onColumnEvent-> processing "+t+" expanded = "+o.isExpanded()),this.columnController.setColumnGroupOpened(e,o.isExpanded(),"alignedGridChanged"))},e.prototype.processColumnEvent=function(t){var e,o=this,n=t.column;if(n&&(e=this.columnController.getPrimaryColumn(n.getColId())),!n||e){var i=this.getColumnIds(t),s=this.getMasterColumns(t);switch(t.type){case r.a.EVENT_COLUMN_MOVED:var a=t;this.logger.log("onColumnEvent-> processing "+t.type+" toIndex = "+a.toIndex),this.columnController.moveColumns(i,a.toIndex,"alignedGridChanged");break;case r.a.EVENT_COLUMN_VISIBLE:var l=t;this.logger.log("onColumnEvent-> processing "+t.type+" visible = "+l.visible),this.columnController.setColumnsVisible(i,l.visible,"alignedGridChanged");break;case r.a.EVENT_COLUMN_PINNED:var u=t;this.logger.log("onColumnEvent-> processing "+t.type+" pinned = "+u.pinned),this.columnController.setColumnsPinned(i,u.pinned,"alignedGridChanged");break;case r.a.EVENT_COLUMN_RESIZED:var p=t;s.forEach((function(e){o.logger.log("onColumnEvent-> processing "+t.type+" actualWidth = "+e.getActualWidth());var n=[{key:e.getColId(),newWidth:e.getActualWidth()}];o.columnController.setColumnWidths(n,!1,p.finished,"alignedGridChanged")}))}var c=this.gridPanel.isVerticalScrollShowing();this.gridOptionsWrapper.getAlignedGrids().forEach((function(t){t.api.setAlwaysShowVerticalScroll(c)}))}},l([Object(i.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),l([Object(i.a)("columnController")],e.prototype,"columnController",void 0),l([u(0,Object(i.h)("loggerFactory"))],e.prototype,"setBeans",null),l([i.e],e.prototype,"init",null),e=l([Object(i.b)("alignedGridsService")],e)}(s.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return h}));var n,r=o(0),i=o(8),s=o(1),a=o(11),l=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),u=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},p={"ag-theme-custom":{headerHeight:25,headerCellMinWidth:24,listItemHeight:20,rowHeight:25,chartMenuPanelWidth:220},"ag-theme-material":{headerHeight:56,headerCellMinWidth:48,listItemHeight:40,rowHeight:48,chartMenuPanelWidth:240},"ag-theme-balham":{headerHeight:32,headerCellMinWidth:24,listItemHeight:28,rowHeight:28,chartMenuPanelWidth:220},"ag-theme-alpine":{headerHeight:48,headerCellMinWidth:36,listItemHeight:30,rowHeight:42,chartMenuPanelWidth:240}},c={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},d={},h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.getSassVariable=function(t,e){var o="ag-theme-"+(t.match("material")?"material":t.match("balham")?"balham":t.match("alpine")?"alpine":"custom"),n=p[o][e],r=0;if(d[t]||(d[t]={}),d[t][e])return d[t][e];if(c[e]){var i=c[e],a=document.createElement("div");a.style.position="absolute";var l=i.reduce((function(e,o,n){0===n&&Object(s.addCssClass)(e,t);var r=document.createElement("div");return r.style.position="static",Object(s.addCssClass)(r,o),e.appendChild(r),r}),a);if(document.body){document.body.appendChild(a);var u=-1!==e.toLowerCase().indexOf("height")?"height":"width";r=parseInt(window.getComputedStyle(l)[u],10),document.body.removeChild(a)}}return d[t][e]=r||n,d[t][e]},e.prototype.isThemeDark=function(){var t=this.getTheme().theme;return!!t&&t.indexOf("dark")>=0},e.prototype.chartMenuPanelWidth=function(){var t=this.getTheme().themeFamily;return this.getSassVariable(t,"chartMenuPanelWidth")},e.prototype.getTheme=function(){for(var t,e=/\bag-(material|(?:theme-([\w\-]*)))\b/,o=this.eGridDiv;o&&!(t=e.exec(o.className));)o=o.parentElement;if(!t)return{};var n=t[0];if(void 0===t[2]){var r=n.replace("ag-","ag-theme-");Object(a.doOnce)((function(){return console.warn("ag-Grid: As of v19 old theme are no longer provided. Please replace "+n+" with "+r+".")}),"using-old-theme")}return{theme:n,el:o,themeFamily:n.replace(/-dark$/,"")}},u([Object(r.a)("eGridDiv")],e.prototype,"eGridDiv",void 0),e=u([Object(r.b)("environment")],e)}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return u}));var n,r=o(0),i=o(8),s=o(2),a=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),l=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc()},e.prototype.updateSelectableAfterGrouping=function(t){if(this.isRowSelectableFunc){this.recurseDown(t.childrenAfterGroup,(function(t){return t.childrenAfterGroup}))}},e.prototype.updateSelectableAfterFiltering=function(t){if(this.isRowSelectableFunc){this.recurseDown(t.childrenAfterGroup,(function(t){return t.childrenAfterFilter}))}},e.prototype.recurseDown=function(t,e){var o=this;t.forEach((function(t){if(t.group){var n;if(t.hasChildren()&&o.recurseDown(e(t),e),o.groupSelectsChildren){var r=Object(s.find)(e(t),"selectable",!0);n=Object(s.exists)(r)}else n=!!o.isRowSelectableFunc&&o.isRowSelectableFunc(t);t.setRowSelectable(n)}}))},l([Object(r.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),l([r.e],e.prototype,"init",null),e=l([Object(r.b)("selectableService")],e)}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return p}));var n,r=o(0),i=o(8),s=o(11),a=o(1),l=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),u=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.observeResize=function(t,e,o){void 0===o&&(o=50);var n,r,i,l,u,p=this.getFrameworkOverrides(),c=Object(s.debounce)(e,o),d=this.gridOptionsWrapper.isSuppressBrowserResizeObserver();return!!window.ResizeObserver&&!d?((u=new window.ResizeObserver(c)).observe(t),function(){return u.disconnect()}):(n=Object(a.offsetWidth)(t),r=Object(a.offsetHeight)(t),i=!0,(l=function(){if(i){var s=Object(a.offsetWidth)(t),u=Object(a.offsetHeight)(t);(s!==n||u!==r)&&(n=s,r=u,e()),p.setTimeout(l,o)}})(),function(){return i=!1})},u([Object(r.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=u([Object(r.b)("resizeObserverService")],e)}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return d}));var n,r=o(12),i=o(6),s=o(0),a=o(20),l=o(1),u=o(9),p=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),c=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},d=function(t){function e(o){void 0===o&&(o={});var n=t.call(this,e.getTemplate(o))||this;n.suppressEnabledCheckbox=!0,n.suppressOpenCloseIcons=!1;var r=o.title,i=o.enabled,s=o.items,a=o.suppressEnabledCheckbox,l=o.suppressOpenCloseIcons;return n.title=r,n.cssIdentifier=o.cssIdentifier||"default",n.enabled=null==i||i,n.items=s||[],n.alignItems=o.alignItems||"center",null!=a&&(n.suppressEnabledCheckbox=a),null!=l&&(n.suppressOpenCloseIcons=l),n}return p(e,t),e.getTemplate=function(t){var e=t.cssIdentifier||"default";return''},e.prototype.postConstruct=function(){if(this.items.length){var t=this.items;this.items=[],this.addItems(t)}var e=this.gridOptionsWrapper.getLocaleTextFunc();this.cbGroupEnabled.setLabel(e("enabled","Enabled")),this.title&&this.setTitle(this.title),this.enabled&&this.setEnabled(this.enabled),this.setAlignItems(this.alignItems),this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract(),this.refreshChildDisplay()},e.prototype.setupExpandContract=function(){var t=this;this.eGroupClosedIcon.appendChild(Object(a.createIcon)("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(Object(a.createIcon)("columnSelectOpen",this.gridOptionsWrapper,null)),this.addManagedListener(this.eTitleBar,"click",(function(){return t.toggleGroupExpand()})),this.addManagedListener(this.eTitleBar,"keydown",(function(e){switch(e.keyCode){case u.a.ENTER:t.toggleGroupExpand();break;case u.a.RIGHT:t.toggleGroupExpand(!0);break;case u.a.LEFT:t.toggleGroupExpand(!1)}}))},e.prototype.refreshChildDisplay=function(){var t=!this.suppressOpenCloseIcons;Object(l.setDisplayed)(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),Object(l.setDisplayed)(this.eGroupOpenedIcon,t&&this.expanded),Object(l.setDisplayed)(this.eGroupClosedIcon,t&&!this.expanded)},e.prototype.isExpanded=function(){return this.expanded},e.prototype.setAlignItems=function(t){var e=this.getGui();this.alignItems!==t&&Object(l.removeCssClass)(e,"ag-group-item-alignment-"+this.alignItems),this.alignItems=t;var o="ag-group-item-alignment-"+this.alignItems;return Object(l.addCssClass)(e,o),this},e.prototype.toggleGroupExpand=function(t){return this.suppressOpenCloseIcons?(this.expanded=!0,this.refreshChildDisplay(),Object(l.setDisplayed)(this.eContainer,!0),this):(t=null!=t?t:!this.expanded,this.expanded===t||(this.expanded=t,this.refreshChildDisplay(),Object(l.setDisplayed)(this.eContainer,t),this.dispatchEvent({type:this.expanded?e.EVENT_EXPANDED:e.EVENT_COLLAPSED})),this)},e.prototype.addItems=function(t){var e=this;t.forEach((function(t){return e.addItem(t)}))},e.prototype.addItem=function(t){var e=this.eContainer,o=t instanceof r.a?t.getGui():t;Object(l.addCssClass)(o,"ag-group-item"),Object(l.addCssClass)(o,"ag-"+this.cssIdentifier+"-group-item"),e.appendChild(o),this.items.push(o)},e.prototype.hideItem=function(t,e){var o=this.items[e];Object(l.addOrRemoveCssClass)(o,"ag-hidden",t)},e.prototype.setTitle=function(t){return this.eTitle.innerText=t,this},e.prototype.addCssClassToTitleBar=function(t){Object(l.addCssClass)(this.eTitleBar,t)},e.prototype.setEnabled=function(t,e){return this.enabled=t,this.refreshDisabledStyles(),this.toggleGroupExpand(t),e||this.cbGroupEnabled.setValue(t),this},e.prototype.isEnabled=function(){return this.enabled},e.prototype.onEnableChange=function(t){var e=this;return this.cbGroupEnabled.onValueChange((function(o){e.setEnabled(o,!0),t(o)})),this},e.prototype.hideEnabledCheckbox=function(t){return this.suppressEnabledCheckbox=t,this.refreshChildDisplay(),this.refreshDisabledStyles(),this},e.prototype.hideOpenCloseIcons=function(t){return this.suppressOpenCloseIcons=t,t&&this.toggleGroupExpand(!0),this},e.prototype.refreshDisabledStyles=function(){Object(l.addOrRemoveCssClass)(this.getGui(),"ag-disabled",!this.enabled),this.suppressEnabledCheckbox&&!this.enabled?(Object(l.addCssClass)(this.eTitleBar,"ag-disabled-group-title-bar"),this.eTitleBar.removeAttribute("tabindex")):(Object(l.removeCssClass)(this.eTitleBar,"ag-disabled-group-title-bar"),this.eTitleBar.setAttribute("tabindex","0")),Object(l.addOrRemoveCssClass)(this.eContainer,"ag-disabled-group-container",!this.enabled)},e.EVENT_EXPANDED="expanded",e.EVENT_COLLAPSED="collapsed",c([Object(s.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),c([Object(i.d)("eTitleBar")],e.prototype,"eTitleBar",void 0),c([Object(i.d)("eGroupOpenedIcon")],e.prototype,"eGroupOpenedIcon",void 0),c([Object(i.d)("eGroupClosedIcon")],e.prototype,"eGroupClosedIcon",void 0),c([Object(i.d)("eToolbar")],e.prototype,"eToolbar",void 0),c([Object(i.d)("cbGroupEnabled")],e.prototype,"cbGroupEnabled",void 0),c([Object(i.d)("eTitle")],e.prototype,"eTitle",void 0),c([Object(i.d)("eContainer")],e.prototype,"eContainer",void 0),c([s.e],e.prototype,"postConstruct",null),e}(r.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return s}));var n,r=o(49),i=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),s=function(t){function e(e){return t.call(this,e,"ag-text-area","textarea")||this}return i(e,t),e.prototype.setValue=function(e,o){var n=t.prototype.setValue.call(this,e,o);return this.eInput.value=e,n},e.prototype.setCols=function(t){return this.eInput.cols=t,this},e.prototype.setRows=function(t){return this.eInput.rows=t,this},e}(r.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return c}));var n,r=o(6),i=o(73),s=o(29),a=o(0),l=o(1),u=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),p=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},c=function(t){function e(o){var n=t.call(this,o,e.TEMPLATE)||this;return n.labelAlignment="top",n}return u(e,t),e.prototype.init=function(){Object(l.addCssClass)(this.eSlider.getGui(),"ag-slider-field")},e.prototype.onValueChange=function(t){var e=this,o=s.a.EVENT_CHANGED;return this.addManagedListener(this.eText,o,(function(){var o=parseFloat(e.eText.getValue());e.eSlider.setValue(o.toString(),!0),t(o||0)})),this.addManagedListener(this.eSlider,o,(function(){var o=e.eSlider.getValue();e.eText.setValue(o,!0),t(parseFloat(o))})),this},e.prototype.setSliderWidth=function(t){return this.eSlider.setWidth(t),this},e.prototype.setTextFieldWidth=function(t){return this.eText.setWidth(t),this},e.prototype.setMinValue=function(t){return this.eSlider.setMinValue(t),this.eText.setMin(t),this},e.prototype.setMaxValue=function(t){return this.eSlider.setMaxValue(t),this.eText.setMax(t),this},e.prototype.getValue=function(){return this.eText.getValue()},e.prototype.setValue=function(t){return this.getValue()===t||(this.eText.setValue(t,!0),this.eSlider.setValue(t,!0),this.dispatchEvent({type:s.a.EVENT_CHANGED})),this},e.prototype.setStep=function(t){return this.eSlider.setStep(t),this.eText.setStep(t),this},e.TEMPLATE='',p([Object(r.d)("eLabel")],e.prototype,"eLabel",void 0),p([Object(r.d)("eSlider")],e.prototype,"eSlider",void 0),p([Object(r.d)("eText")],e.prototype,"eText",void 0),p([a.e],e.prototype,"init",null),e}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return a}));var n,r=o(69),i=o(1),s=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),a=function(t){function e(e){return t.call(this,e,"ag-number-field","number")||this}return s(e,t),e.prototype.postConstruct=function(){var e=this;t.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"blur",(function(){var t=parseFloat(e.eInput.value),o=isNaN(t)?"":e.normalizeValue(t.toString());e.value!==o&&e.setValue(o)}))},e.prototype.normalizeValue=function(t){if(""===t)return"";this.precision&&(t=this.adjustPrecision(t));var e=parseFloat(t);return null!=this.min&ðis.max&&(t=this.max.toString()),t},e.prototype.adjustPrecision=function(t){if(this.precision){var e=parseFloat(t).toFixed(this.precision);t=parseFloat(e).toString()}return t},e.prototype.setMin=function(t){return this.min===t||(this.min=t,Object(i.addOrRemoveAttribute)(this.eInput,"min",t)),this},e.prototype.setMax=function(t){return this.max===t||(this.max=t,Object(i.addOrRemoveAttribute)(this.eInput,"max",t)),this},e.prototype.setPrecision=function(t){return this.precision=t,this},e.prototype.setStep=function(t){return this.step===t||(this.step=t,Object(i.addOrRemoveAttribute)(this.eInput,"step",t)),this},e.prototype.setValue=function(e,o){return(e=this.adjustPrecision(e))!=this.normalizeValue(e)?this:t.prototype.setValue.call(this,e,o)},e}(r.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return a}));var n,r=o(49),i=o(19),s=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),a=function(t){function e(e){return t.call(this,e,"ag-range-field","range")||this}return s(e,t),e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this);var e=this.config,o=e.min,n=e.max,r=e.step;null!=o&&this.setMinValue(o),null!=n&&this.setMaxValue(n),this.setStep(r||1)},e.prototype.addInputListeners=function(){var t=this,e=Object(i.isBrowserIE)()?"change":"input";this.addManagedListener(this.eInput,e,(function(e){var o=e.target.value;t.setValue(o)}))},e.prototype.setMinValue=function(t){return this.min=t,this.eInput.setAttribute("min",t.toString()),this},e.prototype.setMaxValue=function(t){return this.max=t,this.eInput.setAttribute("max",t.toString()),this},e.prototype.setStep=function(t){return this.eInput.setAttribute("step",t.toString()),this},e.prototype.setValue=function(e,o){null!=this.min&&(e=Math.max(parseFloat(e),this.min).toString()),null!=this.max&&(e=Math.min(parseFloat(e),this.max).toString());var n=t.prototype.setValue.call(this,e,o);return this.eInput.value=e,n},e}(r.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return d}));var n,r=o(73),i=o(6),s=o(0),a=o(29),l=o(2),u=o(1),p=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),c=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},d=function(t){function e(o){var n=t.call(this,o,e.TEMPLATE)||this;return n.radius=0,n.offsetX=0,n.offsetY=0,n}return p(e,t),e.prototype.postConstruct=function(){var e=this;t.prototype.postConstruct.call(this),this.dragListener={eElement:this.eParentCircle,dragStartPixels:0,onDragStart:function(t){e.parentCircleRect=e.eParentCircle.getBoundingClientRect()},onDragging:function(t){return e.calculateAngleDrag(t)},onDragStop:function(){}},this.dragService.addDragSource(this.dragListener),this.eAngleValue.setLabel("").setLabelWidth(5).setInputWidth(45).setMin(0).setMax(360).setValue(""+this.degrees).onValueChange((function(t){null!=t&&""!==t||(t="0"),t=e.eAngleValue.normalizeValue(t);var o=parseFloat(t);o>180&&(o-=360),e.setValue(o)})),this.updateNumberInput(),Object(l.exists)(this.getValue())&&this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString()),this.addManagedListener(this,a.a.EVENT_CHANGED,(function(){e.eAngleValue.getInputElement().contains(document.activeElement)||e.updateNumberInput()}))},e.prototype.updateNumberInput=function(){var t=this.normalizeNegativeValue(this.getValue());this.eAngleValue.setValue(t.toString())},e.prototype.positionChildCircle=function(t){var e=this.parentCircleRect||{width:24,height:24},o=this.eChildCircle,n=e.width/2,r=e.height/2;o.style.left=n+8*Math.cos(t)+"px",o.style.top=r+8*Math.sin(t)+"px"},e.prototype.calculatePolar=function(){var t=this.offsetX,e=this.offsetY,o=Math.atan2(e,t);this.degrees=this.toDegrees(o),this.radius=Math.sqrt(t*t+e*e),this.positionChildCircle(o)},e.prototype.calculateCartesian=function(){var t=this.toRadians(this.getValue()),e=this.getRadius();this.setOffsetX(Math.cos(t)*e).setOffsetY(Math.sin(t)*e)},e.prototype.setOffsetX=function(t){return this.offsetX!==t&&(this.offsetX=t,this.calculatePolar()),this},e.prototype.setOffsetY=function(t){return this.offsetY!==t&&(this.offsetY=t,this.calculatePolar()),this},e.prototype.calculateAngleDrag=function(t){var e=this.parentCircleRect,o=e.width/2,n=e.height/2,r=t.clientX-e.left-o,i=t.clientY-e.top-n,s=Math.atan2(i,r);this.setValue(s,!0)},e.prototype.toDegrees=function(t){return t/Math.PI*180},e.prototype.toRadians=function(t){return t/180*Math.PI},e.prototype.normalizeNegativeValue=function(t){return t<0?360+t:t},e.prototype.normalizeAngle180=function(t){return(t%=2*Math.PI)<-Math.PI?t+=2*Math.PI:t>=Math.PI&&(t-=2*Math.PI),t},e.prototype.getRadius=function(){return this.radius},e.prototype.setRadius=function(t){return this.radius===t||(this.radius=t,this.calculateCartesian()),this},e.prototype.onValueChange=function(t){var e=this;return this.addManagedListener(this,a.a.EVENT_CHANGED,(function(){t(e.degrees)})),this},e.prototype.getValue=function(t){return t?this.toRadians(this.degrees):this.degrees},e.prototype.setValue=function(t,e){var o;return o=e?t:this.normalizeAngle180(this.toRadians(t)),t=this.toDegrees(o),this.degrees!==t&&(this.degrees=Math.floor(t),this.calculateCartesian(),this.positionChildCircle(o),this.dispatchEvent({type:a.a.EVENT_CHANGED})),this},e.prototype.setWidth=function(t){return Object(u.setFixedWidth)(this.getGui(),t),this},e.prototype.destroy=function(){this.dragService.removeDragSource(this.dragListener),t.prototype.destroy.call(this)},e.TEMPLATE='',c([Object(i.d)("eLabel")],e.prototype,"eLabel",void 0),c([Object(i.d)("eParentCircle")],e.prototype,"eParentCircle",void 0),c([Object(i.d)("eChildCircle")],e.prototype,"eChildCircle",void 0),c([Object(i.d)("eAngleValue")],e.prototype,"eAngleValue",void 0),c([Object(s.a)("dragService")],e.prototype,"dragService",void 0),e}(r.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return a}));var n,r=o(1),i=o(39),s=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),a=function(t){function e(e){return t.call(this,e,"ag-toggle-button")||this}return s(e,t),e.prototype.setValue=function(e,o){return t.prototype.setValue.call(this,e,o),Object(r.addOrRemoveCssClass)(this.getGui(),"ag-selected",this.getValue()),this},e}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return p}));var n,r=o(0),i=o(8),s=o(4),a=o(2),l=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),u=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.getFirstRow=function(){var t,e=0;return this.pinnedRowModel.getPinnedTopRowCount()?t=s.a.PINNED_TOP:this.rowModel.getRowCount()?(t=null,e=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(t=s.a.PINNED_BOTTOM),void 0===t?null:{rowIndex:e,rowPinned:t}},e.prototype.getLastRow=function(){var t,e,o=this.pinnedRowModel.getPinnedBottomRowCount(),n=this.pinnedRowModel.getPinnedTopRowCount();return o?(e=s.a.PINNED_BOTTOM,t=o-1):this.rowModel.getRowCount()?(e=null,t=this.paginationProxy.getPageLastRow()):n&&(e=s.a.PINNED_TOP,t=n-1),void 0===t?null:{rowIndex:t,rowPinned:e}},e.prototype.getRowNode=function(t){switch(t.rowPinned){case s.a.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[t.rowIndex];case s.a.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[t.rowIndex];default:return this.rowModel.getRow(t.rowIndex)}},e.prototype.sameRow=function(t,e){return!t&&!e||!(t&&!e||!t&&e)&&(t.rowIndex===e.rowIndex&&t.rowPinned==e.rowPinned)},e.prototype.before=function(t,e){switch(t.rowPinned){case s.a.PINNED_TOP:if(e.rowPinned!==s.a.PINNED_TOP)return!0;break;case s.a.PINNED_BOTTOM:if(e.rowPinned!==s.a.PINNED_BOTTOM)return!1;break;default:if(Object(a.exists)(e.rowPinned))return e.rowPinned!==s.a.PINNED_TOP}return t.rowIndex=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.createId=function(t){var e=t.rowIndex,o=t.rowPinned,n=t.column;return this.createIdFromValues(e,n,o)},e.prototype.createIdFromValues=function(t,e,o){return t+"."+(null==o?"null":o)+"."+e.getId()},e.prototype.equals=function(t,e){var o=t.column===e.column,n=t.rowPinned===e.rowPinned,r=t.rowIndex===e.rowIndex;return o&&n&&r},e=a([Object(r.b)("cellPositionUtils")],e)}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return h}));var n,r=o(22),i=o(0),s=o(5),a=o(4),l=o(8),u=o(2),p=o(7),c=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),d=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData()),this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData())},e.prototype.isEmpty=function(t){var e=t===a.a.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;return Object(u.missingOrEmpty)(e)},e.prototype.isRowsToRender=function(t){return!this.isEmpty(t)},e.prototype.getRowAtPixel=function(t,e){var o=e===a.a.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;if(Object(u.missingOrEmpty)(o))return 0;for(var n=0;n=t)return n}return o.length-1},e.prototype.setPinnedTopRowData=function(t){this.pinnedTopRows=this.createNodesFromData(t,!0);var e={type:s.a.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.setPinnedBottomRowData=function(t){this.pinnedBottomRows=this.createNodesFromData(t,!1);var e={type:s.a.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.createNodesFromData=function(t,e){var o=this,n=[];if(t){var i=0;t.forEach((function(t,s){var l=new r.a;o.context.createBean(l),l.data=t;var u=e?r.a.ID_PREFIX_TOP_PINNED:r.a.ID_PREFIX_BOTTOM_PINNED;l.id=u+s,l.rowPinned=e?a.a.PINNED_TOP:a.a.PINNED_BOTTOM,l.setRowTop(i),l.setRowHeight(o.gridOptionsWrapper.getRowHeightForNode(l).height),l.setRowIndex(s),i+=l.rowHeight,n.push(l)}))}return n},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(t){return this.pinnedTopRows[t]},e.prototype.getPinnedBottomRow=function(t){return this.pinnedBottomRows[t]},e.prototype.forEachPinnedTopRow=function(t){Object(u.missingOrEmpty)(this.pinnedTopRows)||this.pinnedTopRows.forEach(t)},e.prototype.forEachPinnedBottomRow=function(t){Object(u.missingOrEmpty)(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(t)},e.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},e.prototype.getTotalHeight=function(t){if(!t||0===t.length)return 0;var e=Object(p.last)(t);return e.rowTop+e.rowHeight},d([Object(i.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),d([Object(i.a)("columnApi")],e.prototype,"columnApi",void 0),d([Object(i.a)("gridApi")],e.prototype,"gridApi",void 0),d([i.e],e.prototype,"init",null),e=d([Object(i.b)("pinnedRowModel")],e)}(l.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return p}));var n,r=o(28),i=o(0),s=o(8),a=o(31),l=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),u=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.findHeader=function(t,e){var o,n,i;if(t.column instanceof r.a?(n="getDisplayedGroup"+e,o=this.columnController[n](t.column)):(i="getDisplayedCol"+e,o=this.columnController[i](t.column)),o)return{column:o,headerRowIndex:t.headerRowIndex}},e.prototype.findColAtEdgeForHeaderRow=function(t,e){var o=this.columnController.getAllDisplayedColumns(),n=o["start"===e?0:o.length-1];if(n){var r=this.headerNavigationService.getHeaderContainer(n.getPinned()).getRowComps()[t];return(r&&r.getType())==a.b.COLUMN_GROUP?{headerRowIndex:t,column:this.columnController.getColumnGroupAtLevel(n,t)}:{headerRowIndex:r?t:-1,column:n}}},u([Object(i.a)("columnController")],e.prototype,"columnController",void 0),u([Object(i.a)("headerNavigationService")],e.prototype,"headerNavigationService",void 0),e=u([Object(i.b)("headerPositionUtils")],e)}(s.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return C}));var n,r=["tooltipComponentParams","headerGroupComponentParams","cellRendererParams","cellEditorParams","pinnedRowCellRendererParams","columnsMenuParams","headerComponentParams"],i=o(81),s=o(27),a=o(17),l=o(0),u={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},p=o(8),c=o(4),d=o(10),h=o(2),f=o(7),g=o(21),y=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),v=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},m=function(t,e){return function(o,n){e(o,n,t)}},C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return y(e,t),e.prototype.setBeans=function(t){this.logger=t.create("ColumnFactory")},e.prototype.createColumnTree=function(t,e,o){var n=new i.a;if(o){var r=o.map((function(t){return t.getId()}));n.addExistingKeys(r)}var a=o?o.slice():null,l=this.recursivelyCreateColumns(t,0,e,a,n,null),u=this.findMaxDept(l,0);this.logger.log("Number of levels for grouped columns is "+u);var p=this.balanceColumnTree(l,0,u,n);return this.columnUtils.depthFirstOriginalTreeSearch(null,p,(function(t,e){t instanceof s.a&&t.setupExpandable(),t.setOriginalParent(e)})),{columnTree:p,treeDept:u}},e.prototype.createForAutoGroups=function(t,e){var o=this,n=[];return t.forEach((function(t){var r=o.createAutoGroupTreeItem(e,t);n.push(r)})),n},e.prototype.createAutoGroupTreeItem=function(t,e){for(var o=e,n=this.findDepth(t)-1;n>=0;n--){var r=new s.a(null,"FAKE_PATH_"+e.getId()+"}_"+n,!0,n);this.context.createBean(r),r.setChildren([o]),o.setOriginalParent(r),o=r}return o},e.prototype.findDepth=function(t){for(var e=0,o=t;o&&o[0]&&o[0]instanceof s.a;)e++,o=o[0].getChildren();return e},e.prototype.balanceColumnTree=function(t,e,o,n){for(var r=[],i=0;i=e;d--){var h=n.getUniqueKey(null,null),f=this.createMergedColGroupDef(null),g=new s.a(f,h,!0,e);this.context.createBean(g),c&&c.setChildren([g]),c=g,p||(p=c)}if(p){if(r.push(p),t.some((function(t){return t instanceof s.a}))){c.setChildren([a]);continue}c.setChildren(t);break}r.push(a)}}return r},e.prototype.findMaxDept=function(t,e){for(var o=e,n=0;n=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},p=function(){function t(t){this.childCount=0,this.rowTemplatesToAdd=[],this.afterGuiAttachedCallbacks=[],this.lastMadeVisibleTime=0,this.eContainer=t.eContainer,this.eViewport=t.eViewport,t.eWrapper&&(this.eWrapper=t.eWrapper),this.hideWhenNoChildren=t.hideWhenNoChildren}return t.prototype.setVerticalScrollPosition=function(t){this.scrollTop=t},t.prototype.postConstruct=function(){this.checkDomOrder(),this.checkVisibility(),this.gridOptionsWrapper.addEventListener(r.a.PROP_DOM_LAYOUT,this.checkDomOrder.bind(this))},t.prototype.checkDomOrder=function(){this.domOrder=this.gridOptionsWrapper.isEnsureDomOrder()},t.prototype.getRowElement=function(t){return this.eContainer.querySelector('[comp-id="'+t+'"]')},t.prototype.setHeight=function(t){null!=t?(this.eContainer.style.height=t+"px",this.eWrapper&&(this.eWrapper.style.height=t+"px")):this.eContainer.style.height=""},t.prototype.flushRowTemplates=function(){if(0!==this.rowTemplatesToAdd.length){var t=this.rowTemplatesToAdd.join("");Object(l.appendHtml)(this.eContainer,t),this.rowTemplatesToAdd.length=0}this.afterGuiAttachedCallbacks.forEach((function(t){return t()})),this.afterGuiAttachedCallbacks.length=0,this.lastPlacedElement=null},t.prototype.appendRowTemplate=function(t,e){this.domOrder?this.lastPlacedElement=Object(l.insertTemplateWithDomOrder)(this.eContainer,t,this.lastPlacedElement):this.rowTemplatesToAdd.push(t),this.afterGuiAttachedCallbacks.push(e),this.childCount++,this.checkVisibility()},t.prototype.ensureDomOrder=function(t){this.domOrder&&(Object(l.ensureDomOrder)(this.eContainer,t,this.lastPlacedElement),this.lastPlacedElement=t)},t.prototype.removeRowElement=function(t){this.eContainer.removeChild(t),this.childCount--,this.checkVisibility()},t.prototype.checkVisibility=function(){if(this.hideWhenNoChildren){var t=this.eViewport?this.eViewport:this.eContainer,e=this.childCount>0;this.visible!==e&&(this.visible=e,this.lastMadeVisibleTime=(new Date).getTime(),Object(l.setDisplayed)(t,e),e&&this.eViewport&&(this.eViewport.scrollTop=this.scrollTop))}},t.prototype.isMadeVisibleRecently=function(){return(new Date).getTime()-this.lastMadeVisibleTime<500},u([Object(i.a)("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),u([i.e],t.prototype,"postConstruct",null),t}(),c=o(53),d=o(33),h=o(18),f=o(14),g=o(7),y=o(8),v=o(2),m=o(11),C=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),O=function(){return(O=Object.assign||function(t){for(var e,o=1,n=arguments.length;o=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},b=function(){for(var t=0,e=0,o=arguments.length;ee.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 t,e;this.intervalCount++,(t=10+5*this.intervalCount)>100&&(t=100),this.needToMoveDown?e=this.gridPanel.scrollVertically(t):this.needToMoveUp&&(e=this.gridPanel.scrollVertically(-t)),0!==e&&this.onDragging(this.lastDraggingEvent)},e.prototype.addRowDropZone=function(t){var e=this;if(t.getContainer())if(this.dragAndDropService.findExternalZone(t))console.warn("ag-Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.");else{var o={getContainer:t.getContainer};t.fromGrid?(t.fromGrid=void 0,o=t):(t.onDragEnter&&(o.onDragEnter=function(o){t.onDragEnter(e.draggingToRowDragEvent(f.a.EVENT_ROW_DRAG_ENTER,o))}),t.onDragLeave&&(o.onDragLeave=function(o){t.onDragLeave(e.draggingToRowDragEvent(f.a.EVENT_ROW_DRAG_LEAVE,o))}),t.onDragging&&(o.onDragging=function(o){t.onDragging(e.draggingToRowDragEvent(f.a.EVENT_ROW_DRAG_MOVE,o))}),t.onDragStop&&(o.onDragStop=function(o){t.onDragStop(e.draggingToRowDragEvent(f.a.EVENT_ROW_DRAG_END,o))})),this.dragAndDropService.addDropTarget(O({isInterestedIn:function(t){return t===h.b.RowDrag},getIconName:function(){return h.a.ICON_MOVE},external:!0},o))}else Object(m.doOnce)((function(){return console.warn("ag-Grid: addRowDropZone - A container target needs to be provided")}),"add-drop-zone-empty-target")},e.prototype.getRowDropZone=function(t){var e=this,o=this.getContainer.bind(this),n=this.onDragEnter.bind(this),r=this.onDragLeave.bind(this),i=this.onDragging.bind(this),s=this.onDragStop.bind(this);return t?{getContainer:o,onDragEnter:t.onDragEnter?function(o){n(o),t.onDragEnter(e.draggingToRowDragEvent(f.a.EVENT_ROW_DRAG_ENTER,o))}:n,onDragLeave:t.onDragLeave?function(o){r(o),t.onDragLeave(e.draggingToRowDragEvent(f.a.EVENT_ROW_DRAG_LEAVE,o))}:r,onDragging:t.onDragging?function(o){i(o),t.onDragging(e.draggingToRowDragEvent(f.a.EVENT_ROW_DRAG_MOVE,o))}:i,onDragStop:t.onDragStop?function(o){s(o),t.onDragStop(e.draggingToRowDragEvent(f.a.EVENT_ROW_DRAG_END,o))}:s,fromGrid:!0}:{getContainer:o,onDragEnter:n,onDragLeave:r,onDragging:i,onDragStop:s,fromGrid:!0}},e.prototype.draggingToRowDragEvent=function(t,e){var o,n=this.mouseEventService.getNormalisedPosition(e).y,r=-1,i=null;switch(n>this.rowModel.getCurrentPageHeight()||(r=this.rowModel.getRowIndexAtPixel(n),i=this.rowModel.getRow(r)),e.vDirection){case h.d.Down:o="down";break;case h.d.Up:o="up";break;default:o=null}return{type:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),event:e.event,node:e.dragItem.rowNode,nodes:e.dragItem.rowNodes,overIndex:r,overNode:i,y:n,vDirection:o}},e.prototype.dispatchGridEvent=function(t,e){var o=this.draggingToRowDragEvent(t,e);this.eventService.dispatchEvent(o)},e.prototype.onDragLeave=function(t){this.dispatchGridEvent(f.a.EVENT_ROW_DRAG_LEAVE,t),this.stopDragging(t),this.gridOptionsWrapper.isRowDragManaged()&&this.clearRowHighlight(),this.isFromThisGrid(t)&&(this.isMultiRowDrag=!1)},e.prototype.onDragStop=function(t){this.dispatchGridEvent(f.a.EVENT_ROW_DRAG_END,t),this.stopDragging(t),!this.gridOptionsWrapper.isRowDragManaged()||!this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()&&this.isFromThisGrid(t)||this.isDropZoneWithinThisGrid(t)||this.moveRowAndClearHighlight(t)},e.prototype.stopDragging=function(t){this.ensureIntervalCleared(),this.gridOptionsWrapper.isRowDragManaged()&&this.getRowNodes(t).forEach((function(t){t.setDragging(!1)}))},w([Object(i.a)("dragAndDropService")],e.prototype,"dragAndDropService",void 0),w([Object(i.a)("rowModel")],e.prototype,"rowModel",void 0),w([Object(i.a)("columnController")],e.prototype,"columnController",void 0),w([Object(i.a)("focusController")],e.prototype,"focusController",void 0),w([Object(i.a)("sortController")],e.prototype,"sortController",void 0),w([Object(i.a)("filterManager")],e.prototype,"filterManager",void 0),w([Object(i.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),w([Object(i.a)("selectionController")],e.prototype,"selectionController",void 0),w([Object(i.d)("rangeController")],e.prototype,"rangeController",void 0),w([Object(i.a)("mouseEventService")],e.prototype,"mouseEventService",void 0),w([i.e],e.prototype,"postConstruct",null),e}(y.a),R=o(12),P=o(6),S=o(16),D=o(15),T=o(13),A=o(19),_=o(25),N=o(40),F=o(10),I=o(9),L=o(21),M=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),j=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},G=function(t){function e(){var e=t.call(this,'')||this;return e.scrollLeft=-1,e.scrollTop=-1,e.resetLastHorizontalScrollElementDebounced=Object(m.debounce)(e.resetLastHorizontalScrollElement.bind(e),500),e}return M(e,t),e.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},e.prototype.getHScrollPosition=function(){return{left:this.eCenterViewport.scrollLeft,right:this.eCenterViewport.scrollLeft+this.eCenterViewport.offsetWidth}},e.prototype.onRowDataChanged=function(){this.showOrHideOverlay()},e.prototype.showOrHideOverlay=function(){var t=this.paginationProxy.isEmpty(),e=this.gridOptionsWrapper.isSuppressNoRowsOverlay();this[t&&!e?"showNoRowsOverlay":"hideOverlay"]()},e.prototype.onNewColumnsLoaded=function(){this.beans.columnController.isReady()&&!this.paginationProxy.isEmpty()&&this.hideOverlay()},e.prototype.init=function(){var t=this;this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===a.a.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.addPreventScrollWhileDragging(),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.headerNavigationService.registerGridComp(this),this.heightScaler.registerGridComp(this),this.autoHeightCalculator.registerGridComp(this),this.columnAnimationService.registerGridComp(this),this.autoWidthCalculator.registerGridComp(this),this.paginationAutoPageSizeService.registerGridComp(this),this.mouseEventService.registerGridComp(this),this.beans.registerGridComp(this),this.rowRenderer.registerGridComp(this),(this.rangeController||this.gridOptionsWrapper.isRowSelectionMulti())&&(Object(T.setAriaMultiSelectable)(this.getGui(),!0),this.rangeController&&this.rangeController.registerGridComp(this)),[this.eCenterViewport,this.eBodyViewport].forEach((function(e){var o=t.resizeObserverService.observeResize(e,t.onCenterViewportResized.bind(t));t.addDestroyFunc((function(){return o()}))})),[this.eTop,this.eBodyViewport,this.eBottom].forEach((function(e){t.addManagedListener(e,"focusin",(function(){Object(l.addCssClass)(e,"ag-has-focus")})),t.addManagedListener(e,"focusout",(function(t){e.contains(t.relatedTarget)||Object(l.removeCssClass)(e,"ag-has-focus")}))}))},e.prototype.onDomLayoutChanged=function(){var t=this.gridOptionsWrapper.getDomLayout()===a.a.DOM_LAYOUT_PRINT;this.printLayout!==t&&(this.printLayout=t,this.setWidthsOfContainers(),this.setPinnedContainerSize())},e.prototype.onCenterViewportResized=function(){Object(l.isVisible)(this.eCenterViewport)?(this.checkViewportAndScrolls(),this.beans.columnController.refreshFlexedColumns({viewportWidth:this.getCenterWidth(),updateBodyWidths:!0,fireResizedEvent:!0})):this.bodyHeight=0},e.prototype.setColumnMovingCss=function(t){this.addOrRemoveCssClass("ag-column-moving",t)},e.prototype.setCellTextSelection=function(t){void 0===t&&(t=!1),[this.eTop,this.eBodyViewport,this.eBottom].forEach((function(e){return Object(l.addOrRemoveCssClass)(e,"ag-selectable",t)}))},e.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new E(this.eBodyViewport,this)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},e.prototype.getRowDragFeature=function(){return this.rowDragFeature},e.prototype.addStopEditingWhenGridLosesFocus=function(){var t=this;if(this.gridOptionsWrapper.isStopEditingWhenGridLosesFocus()){var e=[this.eBodyViewport,this.eBottom,this.eTop],o=function(o){var n=o.relatedTarget;if(null!==Object(A.getTabIndex)(n)){var r=e.some((function(t){return t.contains(n)}));if(!r){var i=t.beans.popupService;r=i.getActivePopups().some((function(t){return t.contains(n)}))||i.isElementWithinCustomPopup(n)}r||t.rowRenderer.stopEditing()}else t.rowRenderer.stopEditing()};e.forEach((function(e){return t.addManagedListener(e,"focusout",o)}))}},e.prototype.addAngularApplyCheck=function(){var t=this,e=!1,o=function(){e||(e=!0,window.setTimeout((function(){e=!1,t.$scope.$apply()}),0))};this.addManagedListener(this.eventService,s.a.EVENT_DISPLAYED_COLUMNS_CHANGED,o),this.addManagedListener(this.eventService,s.a.EVENT_VIRTUAL_COLUMNS_CHANGED,o)},e.prototype.disableBrowserDragging=function(){this.addGuiEventListener("dragstart",(function(t){if(t.target instanceof HTMLImageElement)return t.preventDefault(),!1}))},e.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,s.a.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,s.a.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.addManagedListener(this.eventService,s.a.EVENT_PINNED_ROW_DATA_CHANGED,this.setHeaderAndFloatingHeights.bind(this)),this.addManagedListener(this.eventService,s.a.EVENT_ROW_DATA_CHANGED,this.onRowDataChanged.bind(this)),this.addManagedListener(this.eventService,s.a.EVENT_ROW_DATA_UPDATED,this.onRowDataChanged.bind(this)),this.addManagedListener(this.eventService,s.a.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addManagedListener(this.gridOptionsWrapper,r.a.PROP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addManagedListener(this.gridOptionsWrapper,r.a.PROP_PIVOT_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addManagedListener(this.gridOptionsWrapper,r.a.PROP_GROUP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addManagedListener(this.gridOptionsWrapper,r.a.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addManagedListener(this.gridOptionsWrapper,r.a.PROP_FLOATING_FILTERS_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addManagedListener(this.gridOptionsWrapper,r.a.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this))},e.prototype.addDragListeners=function(){var t=this;this.gridOptionsWrapper.isEnableRangeSelection()&&!Object(v.missing)(this.rangeController)&&[this.eLeftContainer,this.eRightContainer,this.eCenterContainer,this.eTop,this.eBottom].forEach((function(e){var o={eElement:e,onDragStart:t.rangeController.onDragStart.bind(t.rangeController),onDragStop:t.rangeController.onDragStop.bind(t.rangeController),onDragging:t.rangeController.onDragging.bind(t.rangeController)};t.dragService.addDragSource(o),t.addDestroyFunc((function(){return t.dragService.removeDragSource(o)}))}))},e.prototype.addMouseListeners=function(){var t=this;["dblclick","contextmenu","mouseover","mouseout","click","mousedown"].forEach((function(e){var o=t.processMouseEvent.bind(t,e);t.eAllCellContainers.forEach((function(n){return t.addManagedListener(n,e,o)}))}))},e.prototype.addPreventScrollWhileDragging=function(){var t=this,e=function(e){t.dragService.isDragging()&&e.cancelable&&e.preventDefault()};this.eAllCellContainers.forEach((function(t){t.addEventListener("touchmove",e,{passive:!1})})),this.addDestroyFunc((function(){t.eAllCellContainers.forEach((function(t){t.removeEventListener("touchmove",e)}))}))},e.prototype.addKeyboardEvents=function(){var t=this;["keydown","keypress"].forEach((function(e){var o=t.processKeyboardEvent.bind(t,e);t.eAllCellContainers.forEach((function(n){t.addManagedListener(n,e,o)}))}))},e.prototype.addBodyViewportListener=function(){var t=this;this.addManagedListener(this.eBodyViewport,"contextmenu",(function(e){var o=Object(_.getTarget)(e);o!==t.eBodyViewport&&o!==t.eCenterViewport||(t.onContextMenu(e,null,null,null,null),t.preventDefaultOnContextMenu(e))}))},e.prototype.getBodyClientRect=function(){if(this.eBodyViewport)return this.eBodyViewport.getBoundingClientRect()},e.prototype.getRowForEvent=function(t){for(var e=Object(_.getTarget)(t);e;){var o=this.gridOptionsWrapper.getDomData(e,c.a.DOM_DATA_KEY_RENDERED_ROW);if(o)return o;e=e.parentElement}return null},e.prototype.processKeyboardEvent=function(t,e){var o=Object(_.getCellCompForEvent)(this.gridOptionsWrapper,e);if(o&&!e.defaultPrevented){var n=o.getRenderedRow().getRowNode(),r=o.getColumn(),i=o.isEditing();if(!Object(N.isUserSuppressingKeyboardEvent)(this.gridOptionsWrapper,e,n,r,i))switch(t){case"keydown":!i&&this.navigationService.handlePageScrollingKey(e)||o.onKeyDown(e),this.doGridOperations(e,o);break;case"keypress":o.onKeyPress(e)}if("keydown"===t){var a=o.createEvent(e,s.a.EVENT_CELL_KEY_DOWN);this.beans.eventService.dispatchEvent(a)}if("keypress"===t){var l=o.createEvent(e,s.a.EVENT_CELL_KEY_PRESS);this.beans.eventService.dispatchEvent(l)}}},e.prototype.doGridOperations=function(t,e){if((t.ctrlKey||t.metaKey)&&!e.isEditing()&&this.mouseEventService.isEventFromThisGrid(t))switch(t.which){case I.a.A:return this.onCtrlAndA(t);case I.a.C:return this.onCtrlAndC(t);case I.a.V:return this.onCtrlAndV();case I.a.D:return this.onCtrlAndD(t);case I.a.Z:return t.shiftKey?this.undoRedoService.redo():this.undoRedoService.undo();case I.a.Y:return this.undoRedoService.redo()}},e.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},e.prototype.processMouseEvent=function(t,e){if(this.mouseEventService.isEventFromThisGrid(e)&&!Object(_.isStopPropagationForAgGrid)(e)){var o=this.getRowForEvent(e),n=this.mouseEventService.getRenderedCellForEvent(e);"contextmenu"===t?(this.preventDefaultOnContextMenu(e),this.handleContextMenuMouseEvent(e,null,o,n)):(n&&n.onMouseEvent(t,e),o&&o.onMouseEvent(t,e))}},e.prototype.mockContextMenuForIPad=function(){var t=this;Object(A.isIOSUserAgent)()&&this.eAllCellContainers.forEach((function(e){var o=new d.a(e);t.addManagedListener(o,d.a.EVENT_LONG_TAP,(function(e){var o=t.getRowForEvent(e.touchEvent),n=t.mouseEventService.getRenderedCellForEvent(e.touchEvent);t.handleContextMenuMouseEvent(null,e.touchEvent,o,n)})),t.addDestroyFunc((function(){return o.destroy()}))}))},e.prototype.handleContextMenuMouseEvent=function(t,e,o,n){var r=o?o.getRowNode():null,i=n?n.getColumn():null,s=null;if(i){var a=t||e;n.dispatchCellContextMenuEvent(a),s=this.valueService.getValue(i,r)}this.onContextMenu(t,e,r,i,s)},e.prototype.onContextMenu=function(t,e,o,n,r){if((this.gridOptionsWrapper.isAllowContextMenuWithControlKey()||!t||!t.ctrlKey&&!t.metaKey)&&this.contextMenuFactory&&!this.gridOptionsWrapper.isSuppressContextMenu()){var i=t||e.touches[0];if(this.contextMenuFactory.showMenu(o,n,r,i))(t||e).preventDefault()}},e.prototype.preventDefaultOnContextMenu=function(t){var e=this.gridOptionsWrapper,o=t.which;(e.isPreventDefaultOnContextMenu()||e.isSuppressMiddleClickScrolls()&&2===o)&&t.preventDefault()},e.prototype.onCtrlAndA=function(t){var e=this.beans,o=this.pinnedRowModel,n=this.paginationProxy,r=this.rangeController,i=a.a.PINNED_BOTTOM,s=a.a.PINNED_TOP;if(r&&n.isRowsToRender()){var l=[o.isEmpty(s),o.isEmpty(i)],u=l[0]?null:s,p=void 0,c=void 0;l[1]?(p=null,c=this.paginationProxy.getRowCount()-1):(p=i,c=o.getPinnedBottomRowData().length-1);var d=e.columnController.getAllDisplayedColumns();if(Object(v.missingOrEmpty)(d))return;r.setCellRange({rowStartIndex:0,rowStartPinned:u,rowEndIndex:c,rowEndPinned:p,columnStart:d[0],columnEnd:Object(g.last)(d)})}t.preventDefault()},e.prototype.onCtrlAndC=function(t){this.clipboardService&&!this.gridOptionsWrapper.isEnableCellTextSelection()&&(this.clipboardService.copyToClipboard(),t.preventDefault())},e.prototype.onCtrlAndV=function(){S.a.isRegistered(D.a.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.pasteFromClipboard()},e.prototype.onCtrlAndD=function(t){S.a.isRegistered(D.a.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.copyRangeDown(),t.preventDefault()},e.prototype.ensureIndexVisible=function(t,e){if(!this.printLayout){var o=this.paginationProxy.getRowCount();if("number"!=typeof t||t<0||t>=o)console.warn("invalid row index for ensureIndexVisible: "+t);else{this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()||this.paginationProxy.goToPageWithIndex(t);var n,r=this.paginationProxy.getRow(t);do{var i=r.rowTop,s=r.rowHeight,a=this.paginationProxy.getPixelOffset(),l=r.rowTop-a,u=l+r.rowHeight,p=this.getVScrollPosition(),c=this.heightScaler.getOffset(),d=p.top+c,h=p.bottom+c,f=h-d,g=this.heightScaler.getScrollPositionForPixel(l),y=this.heightScaler.getScrollPositionForPixel(u-f),v=Math.min((g+y)/2,l),m=null;"top"===e?m=g:"bottom"===e?m=y:"middle"===e?m=v:d>l?m=g:hr,p=n0?this.columnController.sizeColumnsToFit(o,"sizeColumnsToFit"):void 0===t?window.setTimeout((function(){e.sizeColumnsToFit(100)}),0):100===t?window.setTimeout((function(){e.sizeColumnsToFit(500)}),100):500===t?window.setTimeout((function(){e.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?")},e.prototype.getCenterContainer=function(){return this.eCenterContainer},e.prototype.getDropTargetBodyContainers=function(){return[this.eCenterViewport,this.eTopViewport,this.eBottomViewport]},e.prototype.getDropTargetLeftContainers=function(){return[this.eLeftContainer,this.eLeftBottom,this.eLeftTop]},e.prototype.getDropTargetRightContainers=function(){return[this.eRightContainer,this.eRightBottom,this.eRightTop]},e.prototype.buildRowContainerComponents=function(){var t=this;this.eAllCellContainers=[this.eLeftContainer,this.eRightContainer,this.eCenterContainer,this.eTop,this.eBottom,this.eFullWidthContainer],this.rowContainerComponents={body:new p({eContainer:this.eCenterContainer,eWrapper:this.eCenterColsClipper,eViewport:this.eBodyViewport}),fullWidth:new p({eContainer:this.eFullWidthContainer}),pinnedLeft:new p({eContainer:this.eLeftContainer}),pinnedRight:new p({eContainer:this.eRightContainer}),floatingTop:new p({eContainer:this.eTopContainer}),floatingTopPinnedLeft:new p({eContainer:this.eLeftTop}),floatingTopPinnedRight:new p({eContainer:this.eRightTop}),floatingTopFullWidth:new p({eContainer:this.eTopFullWidthContainer,hideWhenNoChildren:!0}),floatingBottom:new p({eContainer:this.eBottomContainer}),floatingBottomPinnedLeft:new p({eContainer:this.eLeftBottom}),floatingBottomPinnedRight:new p({eContainer:this.eRightBottom}),floatingBottomFullWidth:new p({eContainer:this.eBottomFullWidthContainer,hideWhenNoChildren:!0})},Object(F.iterateObject)(this.rowContainerComponents,(function(e,o){o&&t.getContext().createBean(o)}))},e.prototype.setupRowAnimationCssClass=function(){var t=this,e=function(){var e=t.gridOptionsWrapper.isAnimateRows()&&!t.heightScaler.isScaling();Object(l.addOrRemoveCssClass)(t.eBodyViewport,"ag-row-animation",e),Object(l.addOrRemoveCssClass)(t.eBodyViewport,"ag-row-no-animation",!e)};e(),this.addManagedListener(this.eventService,s.a.EVENT_HEIGHT_SCALE_CHANGED,e)},e.prototype.suppressScrollOnFloatingRow=function(){var t=this;this.addManagedListener(this.eTopViewport,"scroll",(function(){return t.eTopViewport.scrollLeft=0})),this.addManagedListener(this.eBottomViewport,"scroll",(function(){return t.eTopViewport.scrollLeft=0}))},e.prototype.getRowContainers=function(){return this.rowContainerComponents},e.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},e.prototype.onDisplayedColumnsChanged=function(){this.setPinnedContainerSize(),this.setHeaderAndFloatingHeights(),this.onHorizontalViewportChanged(),this.updateScrollVisibleService(),this.updateColumnCount()},e.prototype.onDisplayedColumnsWidthChanged=function(){this.setWidthsOfContainers(),this.onHorizontalViewportChanged(),this.updateScrollVisibleService(),this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},e.prototype.setWidthsOfContainers=function(){this.setCenterWidth(),this.setPinnedContainerSize()},e.prototype.setCenterWidth=function(){var t=this.headerRootComp,e=this.columnController,o=e.getBodyContainerWidth();this.printLayout&&(o+=e.getPinnedLeftContainerWidth()+e.getPinnedRightContainerWidth());t.setHeaderContainerWidth(o);var n=o+"px";this.eCenterContainer.style.width=n,this.eBottomContainer.style.width=n,this.eTopContainer.style.width=n,this.printLayout||(this.eBodyHorizontalScrollContainer.style.width=n)},e.prototype.setPinnedLeftWidth=function(){var t=this,e=this.pinningLeft,o=this.columnController.getPinnedLeftContainerWidth(),n=this.pinningLeft=!this.printLayout&&o>0,r=[this.eLeftContainer,this.eLeftTop,this.eLeftBottom];e!==n&&this.headerRootComp.setLeftVisible(n),r.forEach((function(e){return Object(l.setDisplayed)(e,t.pinningLeft)})),n&&r.forEach((function(t){return Object(l.setFixedWidth)(t,o)}))},e.prototype.setPinnedRightWidth=function(){var t=this.pinningRight,e=this.columnController.getPinnedRightContainerWidth(),o=this.pinningRight=!this.printLayout&&e>0,n=[this.eRightContainer,this.eRightTop,this.eRightBottom];t!==o&&this.headerRootComp.setRightVisible(o),n.forEach((function(t){return Object(l.setDisplayed)(t,o)})),o&&n.forEach((function(t){return Object(l.setFixedWidth)(t,e)}))},e.prototype.setPinnedContainerSize=function(){this.setPinnedLeftWidth(),this.setPinnedRightWidth(),this.setFakeHScrollSpacerWidths()},e.prototype.setFakeHScrollSpacerWidths=function(){var t=this.columnController.getPinnedRightContainerWidth();!this.enableRtl&&this.isVerticalScrollShowing()&&(t+=this.scrollWidth),Object(l.setFixedWidth)(this.eHorizontalRightSpacer,t),Object(l.addOrRemoveCssClass)(this.eHorizontalRightSpacer,"ag-scroller-corner",t<=this.scrollWidth);var e=this.columnController.getPinnedLeftContainerWidth();this.enableRtl&&this.isVerticalScrollShowing()&&(e+=this.scrollWidth),Object(l.setFixedWidth)(this.eHorizontalLeftSpacer,e),Object(l.addOrRemoveCssClass)(this.eHorizontalLeftSpacer,"ag-scroller-corner",e<=this.scrollWidth)},e.prototype.checkBodyHeight=function(){var t=this.eBodyViewport.clientHeight;if(this.bodyHeight!==t){this.bodyHeight=t;var e={type:s.a.EVENT_BODY_HEIGHT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)}},e.prototype.setHeaderAndFloatingHeights=function(){var t,e,o,n=this,r=n.columnController,i=n.gridOptionsWrapper,s=n.pinnedRowModel,a=n.eTop,l=n.eBottom,u=0,p=r.getHeaderRowCount();r.isPivotMode()?(e=i.getPivotGroupHeaderHeight(),o=i.getPivotHeaderHeight()):(r.hasFloatingFilters()&&(p++,u=1),e=i.getGroupHeaderHeight(),o=i.getHeaderHeight());var c=p-(1+u);t=u*i.getFloatingFiltersHeight(),t+=c*e,t+=o,this.headerRootComp.setHeight(t);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()},e.prototype.getBodyHeight=function(){return this.bodyHeight},e.prototype.setHorizontalScrollPosition=function(t){this.eCenterViewport.scrollLeft=t,this.doHorizontalScroll(t)},e.prototype.setVerticalScrollPosition=function(t){this.eBodyViewport.scrollTop=t},e.prototype.scrollHorizontally=function(t){var e=this.eCenterViewport.scrollLeft;return this.setHorizontalScrollPosition(e+t),this.eCenterViewport.scrollLeft-e},e.prototype.scrollVertically=function(t){var e=this.eBodyViewport.scrollTop;return this.setVerticalScrollPosition(e+t),this.eBodyViewport.scrollTop-e},e.prototype.addScrollListener=function(){this.addManagedListener(this.eCenterViewport,"scroll",this.onCenterViewportScroll.bind(this)),this.addManagedListener(this.eBodyHorizontalScrollViewport,"scroll",this.onFakeHorizontalScroll.bind(this));var t=this.gridOptionsWrapper.isDebounceVerticalScrollbar()?L.f.debounce(this.onVerticalScroll.bind(this),100):this.onVerticalScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",t)},e.prototype.onVerticalScroll=function(){var t=this.eBodyViewport.scrollTop;this.animationFrameService.setScrollTop(t),this.scrollTop=t,this.redrawRowsAfterScroll()},e.prototype.isControllingScroll=function(t){return this.lastHorizontalScrollElement?t===this.lastHorizontalScrollElement:(this.lastHorizontalScrollElement=t,!0)},e.prototype.onFakeHorizontalScroll=function(){this.isControllingScroll(this.eBodyHorizontalScrollViewport)&&this.onBodyHorizontalScroll(this.eBodyHorizontalScrollViewport)},e.prototype.onCenterViewportScroll=function(){this.isControllingScroll(this.eCenterViewport)&&this.onBodyHorizontalScroll(this.eCenterViewport)},e.prototype.onBodyHorizontalScroll=function(t){var e=this.eCenterViewport,o=e.scrollWidth,n=e.clientWidth,r=Math.floor(Object(l.getScrollLeft)(t,this.enableRtl)),i=o-n;r<0?r=0:r>i&&(r=i),this.doHorizontalScroll(r),this.resetLastHorizontalScrollElementDebounced()},e.prototype.resetLastHorizontalScrollElement=function(){this.lastHorizontalScrollElement=null},e.prototype.doHorizontalScroll=function(t){this.scrollLeft=t;var e={type:s.a.EVENT_BODY_SCROLL,api:this.gridApi,columnApi:this.columnApi,direction:"horizontal",left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(e),this.horizontallyScrollHeaderCenterAndFloatingCenter(t),this.onHorizontalViewportChanged()},e.prototype.redrawRowsAfterScroll=function(){var t={type:s.a.EVENT_BODY_SCROLL,direction:"vertical",api:this.gridApi,columnApi:this.columnApi,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(t)},e.prototype.onHorizontalViewportChanged=function(){var t=this.eCenterViewport.clientWidth,e=this.getCenterViewportScrollLeft();this.columnController.setVirtualViewportPosition(t,e)},e.prototype.getCenterViewportScrollLeft=function(){return Object(l.getScrollLeft)(this.eCenterViewport,this.enableRtl)},e.prototype.setCenterViewportScrollLeft=function(t){Object(l.setScrollLeft)(this.eCenterViewport,t,this.enableRtl)},e.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(t){void 0===t&&(t=this.getCenterViewportScrollLeft());var e=this.enableRtl?t:-t,o=this.eCenterViewport,n=o.clientWidth,r=o.scrollWidth;if(!(Math.abs(e)+n>r||this.enableRtl&&e<0||!this.enableRtl&&e>0)){this.headerRootComp.setHorizontalScroll(e),this.eBottomContainer.style.transform="translateX("+e+"px)",this.eTopContainer.style.transform="translateX("+e+"px)";var i=this.lastHorizontalScrollElement===this.eCenterViewport?this.eBodyHorizontalScrollViewport:this.eCenterViewport;Object(l.setScrollLeft)(i,t,this.enableRtl)}},e.prototype.addScrollEventListener=function(t){this.eBodyViewport.addEventListener("scroll",t)},e.prototype.removeScrollEventListener=function(t){this.eBodyViewport.removeEventListener("scroll",t)},j([Object(i.a)("alignedGridsService")],e.prototype,"alignedGridsService",void 0),j([Object(i.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),j([Object(i.a)("rowRenderer")],e.prototype,"rowRenderer",void 0),j([Object(i.a)("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),j([Object(i.a)("animationFrameService")],e.prototype,"animationFrameService",void 0),j([Object(i.a)("navigationService")],e.prototype,"navigationService",void 0),j([Object(i.a)("autoHeightCalculator")],e.prototype,"autoHeightCalculator",void 0),j([Object(i.a)("columnAnimationService")],e.prototype,"columnAnimationService",void 0),j([Object(i.a)("autoWidthCalculator")],e.prototype,"autoWidthCalculator",void 0),j([Object(i.a)("paginationAutoPageSizeService")],e.prototype,"paginationAutoPageSizeService",void 0),j([Object(i.a)("beans")],e.prototype,"beans",void 0),j([Object(i.a)("paginationProxy")],e.prototype,"paginationProxy",void 0),j([Object(i.a)("columnApi")],e.prototype,"columnApi",void 0),j([Object(i.a)("gridApi")],e.prototype,"gridApi",void 0),j([Object(i.a)("dragService")],e.prototype,"dragService",void 0),j([Object(i.a)("mouseEventService")],e.prototype,"mouseEventService",void 0),j([Object(i.a)("$scope")],e.prototype,"$scope",void 0),j([Object(i.a)("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),j([Object(i.a)("valueService")],e.prototype,"valueService",void 0),j([Object(i.a)("dragAndDropService")],e.prototype,"dragAndDropService",void 0),j([Object(i.a)("maxDivHeightScaler")],e.prototype,"heightScaler",void 0),j([Object(i.a)("resizeObserverService")],e.prototype,"resizeObserverService",void 0),j([Object(i.a)("undoRedoService")],e.prototype,"undoRedoService",void 0),j([Object(i.a)("columnController")],e.prototype,"columnController",void 0),j([Object(i.a)("headerNavigationService")],e.prototype,"headerNavigationService",void 0),j([Object(i.d)("rangeController")],e.prototype,"rangeController",void 0),j([Object(i.d)("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),j([Object(i.d)("clipboardService")],e.prototype,"clipboardService",void 0),j([Object(P.d)("eBodyViewport")],e.prototype,"eBodyViewport",void 0),j([Object(P.d)("eCenterContainer")],e.prototype,"eCenterContainer",void 0),j([Object(P.d)("eCenterViewport")],e.prototype,"eCenterViewport",void 0),j([Object(P.d)("eLeftContainer")],e.prototype,"eLeftContainer",void 0),j([Object(P.d)("eRightContainer")],e.prototype,"eRightContainer",void 0),j([Object(P.d)("eCenterColsClipper")],e.prototype,"eCenterColsClipper",void 0),j([Object(P.d)("eHorizontalScrollBody")],e.prototype,"eHorizontalScrollBody",void 0),j([Object(P.d)("eHorizontalLeftSpacer")],e.prototype,"eHorizontalLeftSpacer",void 0),j([Object(P.d)("eHorizontalRightSpacer")],e.prototype,"eHorizontalRightSpacer",void 0),j([Object(P.d)("eBodyHorizontalScrollViewport")],e.prototype,"eBodyHorizontalScrollViewport",void 0),j([Object(P.d)("eBodyHorizontalScrollContainer")],e.prototype,"eBodyHorizontalScrollContainer",void 0),j([Object(P.d)("eFullWidthContainer")],e.prototype,"eFullWidthContainer",void 0),j([Object(P.d)("eTop")],e.prototype,"eTop",void 0),j([Object(P.d)("eLeftTop")],e.prototype,"eLeftTop",void 0),j([Object(P.d)("eRightTop")],e.prototype,"eRightTop",void 0),j([Object(P.d)("eTopContainer")],e.prototype,"eTopContainer",void 0),j([Object(P.d)("eTopViewport")],e.prototype,"eTopViewport",void 0),j([Object(P.d)("eTopFullWidthContainer")],e.prototype,"eTopFullWidthContainer",void 0),j([Object(P.d)("eBottom")],e.prototype,"eBottom",void 0),j([Object(P.d)("eLeftBottom")],e.prototype,"eLeftBottom",void 0),j([Object(P.d)("eRightBottom")],e.prototype,"eRightBottom",void 0),j([Object(P.d)("eBottomContainer")],e.prototype,"eBottomContainer",void 0),j([Object(P.d)("eBottomViewport")],e.prototype,"eBottomViewport",void 0),j([Object(P.d)("eBottomFullWidthContainer")],e.prototype,"eBottomFullWidthContainer",void 0),j([Object(P.d)("headerRoot")],e.prototype,"headerRootComp",void 0),j([Object(P.d)("overlayWrapper")],e.prototype,"overlayWrapper",void 0),j([i.e],e.prototype,"init",null),e}(R.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return R}));var n,r=o(0),i=o(17),s=o(48),a=o(6),l=o(75),u=o(5),p=o(21),c=o(12),d=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),h=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},f=function(t){function e(){return t.call(this,'\n ')||this}return d(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.init=function(t){this.params=t;var e=this.columnController.getDisplayNameForColumn(t.column,"header",!0);this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(e+" Filter Input")},e.prototype.onParentModelChanged=function(t){var e=this;t?this.params.parentFilterInstance((function(o){if(o.getModelAsString){var n=o.getModelAsString(t);e.eFloatingFilterText.setValue(n)}})):this.eFloatingFilterText.setValue("")},h([Object(a.d)("eFloatingFilterText")],e.prototype,"eFloatingFilterText",void 0),h([Object(r.a)("columnController")],e.prototype,"columnController",void 0),e}(c.a),g=o(15),y=o(16),v=o(1),m=o(20),C=o(76),O=o(95),w=o(9),b=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),E=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},R=function(t){function e(o,n){var r=t.call(this,e.TEMPLATE)||this;return r.column=o,r.pinned=n,r}return b(e,t),e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.setupFloatingFilter(),this.setupWidth(),this.setupLeftPositioning(),this.setupColumnHover(),this.createManagedBean(new l.a([this.column],this.getGui())),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},e.prototype.onTabKeyDown=function(t){var e=document.activeElement,o=this.getGui();if(!(e===o)){t.preventDefault();var n=this.focusController.findNextFocusableElement(o,null,t.shiftKey);n?n.focus():o.focus()}},e.prototype.handleKeyDown=function(t){var e=document.activeElement,o=this.getGui(),n=e===o;switch(t.keyCode){case w.a.UP:case w.a.DOWN:n||t.preventDefault();case w.a.LEFT:case w.a.RIGHT:if(n)return;t.stopPropagation();case w.a.ENTER:n&&this.focusController.focusInto(o)&&t.preventDefault();break;case w.a.ESCAPE:n||this.getGui().focus()}},e.prototype.onFocusIn=function(t){if(!this.getGui().contains(t.relatedTarget)){var e=this.getParentComponent();this.beans.focusController.setFocusedHeader(e.getRowIndex(),this.getColumn())}},e.prototype.setupFloatingFilter=function(){var t=this,e=this.column.getColDef();e.filter&&e.floatingFilter&&(this.floatingFilterCompPromise=this.getFloatingFilterInstance(),this.floatingFilterCompPromise&&this.floatingFilterCompPromise.then((function(e){e&&(t.setupWithFloatingFilter(e),t.setupSyncWithFilter())})))},e.prototype.setupLeftPositioning=function(){var t=new s.a(this.column,this.getGui(),this.beans);this.createManagedBean(t)},e.prototype.setupSyncWithFilter=function(){var t=this,e=function(e){var o=t.getFilterComponent().resolveNow(null,(function(t){return t.getModel()}));t.onParentModelChanged(o,e)};this.addManagedListener(this.column,i.a.EVENT_FILTER_CHANGED,e),this.filterManager.isFilterActive(this.column)&&e(null)},e.prototype.showParentFilter=function(){var t=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuFactory.showMenuAfterButtonClick(this.column,t,"filterMenuTab",["filterMenuTab"])},e.prototype.setupColumnHover=function(){this.addManagedListener(this.eventService,u.a.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},e.prototype.onColumnHover=function(){Object(v.addOrRemoveCssClass)(this.getGui(),"ag-column-hover",this.columnHoverService.isHovered(this.column))},e.prototype.setupWidth=function(){this.addManagedListener(this.column,i.a.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},e.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},e.prototype.setupWithFloatingFilter=function(t){var e=this,o=function(){e.getContext().destroyBean(t)};if(this.isAlive()){this.addDestroyFunc(o);var n=t.getGui();Object(v.addOrRemoveCssClass)(this.eFloatingFilterBody,"ag-floating-filter-full-body",this.suppressFilterButton),Object(v.addOrRemoveCssClass)(this.eFloatingFilterBody,"ag-floating-filter-body",!this.suppressFilterButton),Object(v.setDisplayed)(this.eButtonWrapper,!this.suppressFilterButton);var r=Object(m.createIconNoSpan)("filter",this.gridOptionsWrapper,this.column);this.eButtonShowMainFilter.appendChild(r),this.eFloatingFilterBody.appendChild(n),t.afterGuiAttached&&t.afterGuiAttached()}else o()},e.prototype.parentFilterInstance=function(t){this.getFilterComponent().then(t)},e.prototype.getFilterComponent=function(){return this.filterManager.getFilterComponent(this.column,"NO_UI")},e.getDefaultFloatingFilterType=function(t){if(null==t)return null;var e=null;if("string"==typeof t.filter)e=O.a.getFloatingFilterType(t.filter);else if(t.filterFramework);else if(!0===t.filter){e=y.a.isRegistered(g.a.SetFilterModule)?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter"}return e},e.prototype.getFloatingFilterInstance=function(){var t=this.column.getColDef(),o=e.getDefaultFloatingFilterType(t),n=this.filterManager.createFilterParams(this.column,t),r=this.userComponentFactory.createFinalParams(t,"filter",n),i={api:this.gridApi,column:this.column,filterParams:r,currentParentModel:this.currentParentModel.bind(this),parentFilterInstance:this.parentFilterInstance.bind(this),showParentFilter:this.showParentFilter.bind(this),onFloatingFilterChanged:this.onFloatingFilterChanged.bind(this),suppressFilterButton:!1};this.suppressFilterButton=!!t.floatingFilterComponentParams&&!!t.floatingFilterComponentParams.suppressFilterButton;var s=this.userComponentFactory.newFloatingFilterComponent(t,i,o);if(!s){var a=this.getFilterComponentPrototype(t);if(a&&a.prototype&&a.prototype.getModelAsString){var l=this.userComponentFactory.createUserComponentFromConcreteClass(f,i);s=p.c.resolve(l)}}return s},e.prototype.createDynamicParams=function(){return{column:this.column,colDef:this.column.getColDef(),api:this.gridApi,columnApi:this.columnApi}},e.prototype.getFilterComponentPrototype=function(t){var e=this.userComponentFactory.lookupComponentClassDef(t,"filter",this.createDynamicParams());return e?e.component:null},e.prototype.currentParentModel=function(){return this.getFilterComponent().resolveNow(null,(function(t){return t.getModel()}))},e.prototype.onParentModelChanged=function(t,e){this.floatingFilterCompPromise&&this.floatingFilterCompPromise.then((function(o){return o.onParentModelChanged(t,e)}))},e.prototype.onFloatingFilterChanged=function(){console.warn("ag-Grid: since version 21.x, how floating filters are implemented has changed. Instead of calling params.onFloatingFilterChanged(), get a reference to the main filter via params.parentFilterInstance() and then set a value on the parent filter directly.")},e.TEMPLATE='',E([Object(r.a)("columnHoverService")],e.prototype,"columnHoverService",void 0),E([Object(r.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),E([Object(r.a)("userComponentFactory")],e.prototype,"userComponentFactory",void 0),E([Object(r.a)("gridApi")],e.prototype,"gridApi",void 0),E([Object(r.a)("columnApi")],e.prototype,"columnApi",void 0),E([Object(r.a)("filterManager")],e.prototype,"filterManager",void 0),E([Object(r.a)("menuFactory")],e.prototype,"menuFactory",void 0),E([Object(r.a)("beans")],e.prototype,"beans",void 0),E([Object(a.d)("eFloatingFilterBody")],e.prototype,"eFloatingFilterBody",void 0),E([Object(a.d)("eButtonWrapper")],e.prototype,"eButtonWrapper",void 0),E([Object(a.d)("eButtonShowMainFilter")],e.prototype,"eButtonShowMainFilter",void 0),e}(C.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return v}));var n,r=o(12),i=o(21),s=o(6),a=o(0),l=o(2),u=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),p=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},c=function(t){function e(o){var n=t.call(this,e.TEMPLATE)||this;return n.H=1,n.S=1,n.B=1,n.A=1,n.isSpectrumDragging=!1,n.isSpectrumHueDragging=!1,n.isSpectrumAlphaDragging=!1,n.colorChanged=!1,n.picker=o.picker,n}return u(e,t),e.prototype.postConstruct=function(){var t=this.getGui();this.initRecentColors(),this.addManagedListener(this.spectrumVal,"mousedown",this.onSpectrumDraggerDown.bind(this)),this.addManagedListener(t,"mousemove",this.onSpectrumDraggerMove.bind(this)),this.addManagedListener(this.spectrumHue,"mousedown",this.onSpectrumHueDown.bind(this)),this.addManagedListener(t,"mousemove",this.onSpectrumHueMove.bind(this)),this.addManagedListener(this.spectrumAlpha,"mousedown",this.onSpectrumAlphaDown.bind(this)),this.addManagedListener(t,"mousemove",this.onSpectrumAlphaMove.bind(this)),this.addManagedListener(document,"mouseup",this.onMouseUp.bind(this)),this.addManagedListener(this.recentColors,"click",this.onRecentColorClick.bind(this))},e.prototype.refreshSpectrumRect=function(){return this.spectrumValRect=this.spectrumVal.getBoundingClientRect()},e.prototype.refreshHueRect=function(){return this.spectrumHueRect=this.spectrumHue.getBoundingClientRect()},e.prototype.refreshAlphaRect=function(){return this.spectrumAlphaRect=this.spectrumAlpha.getBoundingClientRect()},e.prototype.onSpectrumDraggerDown=function(t){this.refreshSpectrumRect(),this.isSpectrumDragging=!0,this.moveDragger(t)},e.prototype.onSpectrumDraggerMove=function(t){this.isSpectrumDragging&&this.moveDragger(t)},e.prototype.onSpectrumHueDown=function(t){this.refreshHueRect(),this.isSpectrumHueDragging=!0,this.moveHueSlider(t)},e.prototype.onSpectrumHueMove=function(t){this.isSpectrumHueDragging&&this.moveHueSlider(t)},e.prototype.onSpectrumAlphaDown=function(t){this.refreshAlphaRect(),this.isSpectrumAlphaDragging=!0,this.moveAlphaSlider(t)},e.prototype.onSpectrumAlphaMove=function(t){this.isSpectrumAlphaDragging&&this.moveAlphaSlider(t)},e.prototype.onMouseUp=function(){this.isSpectrumDragging=!1,this.isSpectrumHueDragging=!1,this.isSpectrumAlphaDragging=!1},e.prototype.moveDragger=function(t){var e=this.spectrumValRect;if(e){var o=t.clientX-e.left,n=t.clientY-e.top;o=Math.max(o,0),o=Math.min(o,e.width),n=Math.max(n,0),n=Math.min(n,e.height),this.setSpectrumValue(o/e.width,1-n/e.height)}},e.prototype.moveHueSlider=function(t){var e=this.spectrumHueRect;if(e){var o=this.spectrumHueSlider,n=o.getBoundingClientRect(),r=t.clientX-e.left;r=Math.max(r,0),r=Math.min(r,e.width),this.H=1-r/e.width,o.style.left=r+n.width/2+"px",this.update()}},e.prototype.moveAlphaSlider=function(t){var e=this.spectrumAlphaRect;if(e){var o=this.spectrumAlphaSlider,n=o.getBoundingClientRect(),r=t.clientX-e.left;r=Math.max(r,0),r=Math.min(r,e.width),this.A=r/e.width,o.style.left=r+n.width/2+"px",this.update()}},e.prototype.update=function(){var t=i.a.fromHSB(360*this.H,this.S,this.B,this.A),e=i.a.fromHSB(360*this.H,1,1),o=t.toRgbaString(),n=this.picker;i.a.fromString(n.getValue()).toRgbaString()!==o&&(this.colorChanged=!0),n.setValue(o),this.spectrumColor.style.backgroundColor=e.toRgbaString(),this.spectrumDragger.style.backgroundColor=o},e.prototype.setSpectrumValue=function(t,e){var o=this.spectrumValRect||this.refreshSpectrumRect();if(o){var n=this.spectrumDragger,r=n.getBoundingClientRect();t=Math.max(0,t),t=Math.min(1,t),e=Math.max(0,e),e=Math.min(1,e),this.S=t,this.B=e,n.style.left=t*o.width-r.width/2+"px",n.style.top=(1-e)*o.height-r.height/2+"px",this.update()}},e.prototype.initRecentColors=function(){var t=e.recentColors.map((function(t,e){return''}));this.recentColors.innerHTML=t.join("")},e.prototype.setValue=function(t){var e=i.a.fromString(t),o=e.toHSB(),n=o[0],r=o[1],s=o[2];this.H=(isNaN(n)?0:n)/360,this.A=e.a;var a=this.spectrumHueRect||this.refreshHueRect(),l=this.spectrumAlphaRect||this.refreshAlphaRect();this.spectrumHueSlider.style.left=(this.H-1)*-a.width+"px",this.spectrumAlphaSlider.style.left=this.A*l.width+"px",this.setSpectrumValue(r,s)},e.prototype.onRecentColorClick=function(t){var o=t.target;if(Object(l.exists)(o.id)){var n=parseInt(o.id,10);this.setValue(e.recentColors[n]),this.destroy()}},e.prototype.addRecentColor=function(){var t=i.a.fromHSB(360*this.H,this.S,this.B,this.A).toRgbaString(),o=e.recentColors;this.colorChanged&&o[0]!==t&&(o=o.filter((function(e){return e!=t})),(o=[t].concat(o)).length>e.maxRecentColors&&(o=o.slice(0,e.maxRecentColors)),e.recentColors=o)},e.prototype.destroy=function(){this.addRecentColor(),t.prototype.destroy.call(this)},e.maxRecentColors=8,e.recentColors=[],e.TEMPLATE='',p([Object(s.d)("spectrumColor")],e.prototype,"spectrumColor",void 0),p([Object(s.d)("spectrumVal")],e.prototype,"spectrumVal",void 0),p([Object(s.d)("spectrumDragger")],e.prototype,"spectrumDragger",void 0),p([Object(s.d)("spectrumHue")],e.prototype,"spectrumHue",void 0),p([Object(s.d)("spectrumHueSlider")],e.prototype,"spectrumHueSlider",void 0),p([Object(s.d)("spectrumAlpha")],e.prototype,"spectrumAlpha",void 0),p([Object(s.d)("spectrumAlphaSlider")],e.prototype,"spectrumAlphaSlider",void 0),p([Object(s.d)("recentColors")],e.prototype,"recentColors",void 0),p([a.e],e.prototype,"postConstruct",null),e}(r.a),d=o(67),h=o(148),f=o(29),g=o(1),y=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),v=function(t){function e(e){var o=t.call(this,e,"ag-color-picker","colorPicker")||this;return e&&e.color&&(o.value=e.color),o}return y(e,t),e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.value&&this.setValue(this.value)},e.prototype.showPicker=function(){var t=this,e=this.getGui().getBoundingClientRect(),o=this.createBean(new d.a({closable:!1,modal:!0,hideTitleBar:!0,minWidth:190,width:190,height:250,x:e.right-190,y:e.top-250}));this.isPickerDisplayed=!0,Object(g.addCssClass)(o.getGui(),"ag-color-dialog");var n=this.createBean(new c({picker:this}));return n.addDestroyFunc((function(){o.isAlive()&&t.destroyBean(o)})),o.setParentComponent(this),o.setBodyComponent(n),n.setValue(this.getValue()),o.addDestroyFunc((function(){t.isDestroyingPicker?t.isDestroyingPicker=!1:(t.isDestroyingPicker=!0,n.isAlive()&&t.destroyBean(n)),t.isAlive()&&t.getFocusableElement().focus(),t.isPickerDisplayed=!1})),o},e.prototype.setValue=function(t){return this.value===t||(this.value=t,this.eDisplayField.style.backgroundColor=t,this.dispatchEvent({type:f.a.EVENT_CHANGED})),this},e.prototype.getValue=function(){return this.value},e}(h.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return m}));var n,r=o(29),i=o(148),s=o(12),a=o(0),l=o(26),u=o(1),p=o(7),c=o(9),d=o(13),h=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),f=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},g=function(t){function e(e){void 0===e&&(e="default");var o=t.call(this,'')||this;return o.cssIdentifier=e,o.options=[],o.itemEls=[],o}return h(e,t),e.prototype.init=function(){this.addManagedListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},e.prototype.handleKeyDown=function(t){var e=t.keyCode;switch(e){case c.a.ENTER:if(this.highlightedEl){var o=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(o)}else this.setValue(this.getValue());break;case c.a.DOWN:case c.a.UP:var n=e===c.a.DOWN,r=void 0;if(t.preventDefault(),this.highlightedEl){var i=this.itemEls.indexOf(this.highlightedEl)+(n?1:-1);i=Math.min(Math.max(i,0),this.itemEls.length-1),r=this.itemEls[i]}else r=this.itemEls[n?0:this.itemEls.length-1];this.highlightItem(r)}},e.prototype.addOptions=function(t){var e=this;return t.forEach((function(t){return e.addOption(t)})),this},e.prototype.addOption=function(t){var e=t.value,o=t.text,n=Object(l.escapeString)(o||e);return this.options.push({value:e,text:n}),this.renderOption(e,n),this},e.prototype.renderOption=function(t,e){var o=this,n=document.createElement("div");n.setAttribute("role","option"),Object(u.addCssClass)(n,"ag-list-item"),Object(u.addCssClass)(n,"ag-"+this.cssIdentifier+"-list-item"),n.innerHTML=e,n.tabIndex=-1,this.itemEls.push(n),this.addManagedListener(n,"mouseover",(function(){return o.highlightItem(n)})),this.addManagedListener(n,"mouseleave",(function(){return o.clearHighlighted()})),this.addManagedListener(n,"click",(function(){return o.setValue(t)})),this.getGui().appendChild(n)},e.prototype.setValue=function(t,e){if(this.value===t)return this.fireItemSelected(),this;if(null==t)return this.reset(),this;var o=Object(p.findIndex)(this.options,(function(e){return e.value===t}));if(-1!==o){var n=this.options[o];this.value=n.value,this.displayValue=null!=n.text?n.text:n.value,this.highlightItem(this.itemEls[o]),e||this.fireChangeEvent()}return this},e.prototype.setValueByIndex=function(t){return this.setValue(this.options[t].value)},e.prototype.getValue=function(){return this.value},e.prototype.getDisplayValue=function(){return this.displayValue},e.prototype.refreshHighlighted=function(){var t=this;this.clearHighlighted();var e=Object(p.findIndex)(this.options,(function(e){return e.value===t.value}));-1!==e&&this.highlightItem(this.itemEls[e])},e.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},e.prototype.highlightItem=function(t){t.offsetParent&&(this.clearHighlighted(),this.highlightedEl=t,Object(u.addCssClass)(this.highlightedEl,e.ACTIVE_CLASS),Object(d.setAriaSelected)(this.highlightedEl,!0),this.highlightedEl.focus())},e.prototype.clearHighlighted=function(){this.highlightedEl&&this.highlightedEl.offsetParent&&(Object(u.removeCssClass)(this.highlightedEl,e.ACTIVE_CLASS),Object(d.setAriaSelected)(this.highlightedEl,!1),this.highlightedEl=null)},e.prototype.fireChangeEvent=function(){this.dispatchEvent({type:r.a.EVENT_CHANGED}),this.fireItemSelected()},e.prototype.fireItemSelected=function(){this.dispatchEvent({type:e.EVENT_ITEM_SELECTED})},e.EVENT_ITEM_SELECTED="selectedItem",e.ACTIVE_CLASS="ag-active-item",f([a.e],e.prototype,"init",null),e}(s.a),y=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),v=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},m=function(t){function e(e){return t.call(this,e,"ag-select","smallDown","listbox")||this}return y(e,t),e.prototype.init=function(){var t=this;this.listComponent=this.createBean(new g("select")),this.listComponent.setParentComponent(this),this.eWrapper.tabIndex=0,this.listComponent.addManagedListener(this.listComponent,g.EVENT_ITEM_SELECTED,(function(){t.hideList&&t.hideList()})),this.listComponent.addManagedListener(this.listComponent,r.a.EVENT_CHANGED,(function(){t.setValue(t.listComponent.getValue(),!1,!0),t.hideList&&t.hideList()}))},e.prototype.showPicker=function(){var t=this,e=this.listComponent.getGui(),o=this.addManagedListener(document.body,"wheel",(function(o){!e.contains(o.target)&&t.hideList&&t.hideList()})),n=this.addManagedListener(e,"focusout",(function(o){!e.contains(o.relatedTarget)&&t.hideList&&t.hideList()}));return this.hideList=this.popupService.addPopup({modal:!0,eChild:e,closeOnEsc:!0,closedCallback:function(){t.hideList=null,t.isPickerDisplayed=!1,n(),o(),t.isAlive()&&t.getFocusableElement().focus()}}),this.isPickerDisplayed=!0,Object(u.setElementWidth)(e,Object(u.getAbsoluteWidth)(this.eWrapper)),e.style.maxHeight=Object(u.getInnerHeight)(this.popupService.getPopupParent())+"px",e.style.position="absolute",this.popupService.positionPopupUnderComponent({type:"ag-list",eventSource:this.eWrapper,ePopup:e,keepWithinBounds:!0}),this.listComponent.refreshHighlighted(),this.listComponent},e.prototype.addOptions=function(t){var e=this;return t.forEach((function(t){return e.addOption(t)})),this},e.prototype.addOption=function(t){return this.listComponent.addOption(t),this},e.prototype.setValue=function(e,o,n){return this.value===e?this:(n||this.listComponent.setValue(e,!0),this.listComponent.getValue()===this.getValue()?this:(this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),t.prototype.setValue.call(this,e,o)))},e.prototype.destroy=function(){this.hideList&&this.hideList(),this.destroyBean(this.listComponent),t.prototype.destroy.call(this)},v([Object(a.a)("popupService")],e.prototype,"popupService",void 0),v([a.e],e.prototype,"init",null),e}(i.a)},function(t,e,o){"use strict";function n(t,e,o){var n={},i=t.filter((function(t){return!e.some((function(e){return e===t}))}));return i.length>0&&i.forEach((function(t){return n[t]=r(t,o)})),n}function r(t,e,o,n){var r=n?a:s,i=e.map((function(e){return{value:e,relevance:r(t.toLowerCase(),e.toLocaleLowerCase())}}));return i.sort((function(t,e){return e.relevance-t.relevance})),o&&(i=i.filter((function(t){return 0!==t.relevance}))),i.map((function(t){return t.value}))}function i(t){var e,o,n,r=t.toLowerCase(),i=new Array(r.length-1);for(e=o=0,n=i.length;o<=n;e=o+=1)i[e]=r.slice(e,e+2);return i}function s(t,e){if(0===t.length&&0===e.length)return 0;var o,n,r=i(t),s=i(e),a=r.length+s.length,l=0;for(o=0,n=r.length;o0?2*l/a:0}function a(t,e){for(var o=t.replace(/\s/g,""),n=e.replace(/\s/g,""),r=0,i=0,s=0;s=1){var e=this.filterOptions[0];"string"==typeof e?this.defaultOption=e:e.displayKey?this.defaultOption=e.displayKey:console.warn("ag-Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else console.warn("ag-Grid: no filter options for filter")},t.prototype.getDefaultOption=function(){return this.defaultOption},t.prototype.getCustomOption=function(t){return this.customFilterOptions[t]},t}()},function(t,e,o){"use strict";o.d(e,"a",(function(){return l}));var n,r=o(12),i=o(23),s=o(143),a=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.getDefaultDebounceMs=function(){return 0},e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.getTextFromModel=function(t){if(!t)return null;if(t.operator){var e=t,o=this.conditionToString(e.condition1),n=this.conditionToString(e.condition2);return o+" "+e.operator+" "+n}var r=t;return this.conditionToString(r)},e.prototype.isEventFromFloatingFilter=function(t){return t&&t.afterFloatingFilter},e.prototype.getLastType=function(){return this.lastType},e.prototype.setLastTypeFromModel=function(t){if(t){var e;if(t.operator)e=t.condition1;else e=t;this.lastType=e.type}else this.lastType=this.optionsFactory.getDefaultOption()},e.prototype.canWeEditAfterModelFromParentFilter=function(t){if(!t)return this.isTypeEditable(this.lastType);if(t.operator)return!1;var e=t;return this.isTypeEditable(e.type)},e.prototype.init=function(t){this.optionsFactory=new s.a,this.optionsFactory.init(t.filterParams,this.getDefaultFilterOptions()),this.lastType=this.optionsFactory.getDefaultOption();var e=this.isTypeEditable(this.lastType);this.setEditable(e)},e.prototype.doesFilterHaveHiddenInput=function(t){var e=this.optionsFactory.getCustomOption(t);return e&&e.hideFilterInput},e.prototype.isTypeEditable=function(t){return!this.doesFilterHaveHiddenInput(t)&&t&&t!==i.b.IN_RANGE&&t!==i.b.EMPTY},e}(r.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return h}));var n,r=o(6),i=o(11),s=o(45),a=o(0),l=o(144),u=o(40),p=o(9),c=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),d=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.postConstruct=function(){this.setTemplate('\n ')},e.prototype.getDefaultDebounceMs=function(){return 500},e.prototype.onParentModelChanged=function(t,e){if(!this.isEventFromFloatingFilter(e)){this.setLastTypeFromModel(t);var o=this.getTextFromModel(t);this.eFloatingFilterInput.setValue(o);var n=this.canWeEditAfterModelFromParentFilter(t);this.setEditable(n)}},e.prototype.init=function(e){t.prototype.init.call(this,e),this.params=e,this.applyActive=s.a.isUseApplyButton(this.params.filterParams);var o=s.a.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),n=Object(i.debounce)(this.syncUpWithParentFilter.bind(this),o),r=this.eFloatingFilterInput.getGui();this.addManagedListener(r,"input",n),this.addManagedListener(r,"keypress",n),this.addManagedListener(r,"keydown",n);var a=e.column.getDefinition();a.filterParams&&a.filterParams.filterOptions&&1===a.filterParams.filterOptions.length&&"inRange"===a.filterParams.filterOptions[0]&&this.eFloatingFilterInput.setDisabled(!0);var l=this.columnController.getDisplayNameForColumn(e.column,"header",!0);this.eFloatingFilterInput.setInputAriaLabel(l+" Filter Input")},e.prototype.syncUpWithParentFilter=function(t){var e=this,o=this.eFloatingFilterInput.getValue(),n=Object(u.isKeyPressed)(t,p.a.ENTER);this.applyActive&&!n||this.params.parentFilterInstance((function(t){t&&t.onFloatingFilterChanged(e.getLastType(),o)}))},e.prototype.setEditable=function(t){this.eFloatingFilterInput.setDisabled(!t)},d([Object(a.a)("columnController")],e.prototype,"columnController",void 0),d([Object(r.d)("eFloatingFilterInput")],e.prototype,"eFloatingFilterInput",void 0),d([a.e],e.prototype,"postConstruct",null),e}(l.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));var n=function(){function t(){}return t.parse=function(e){if(!e)return null;if(!0===e)return{toolPanels:[t.DEFAULT_COLUMN_COMP,t.DEFAULT_FILTER_COMP],defaultToolPanel:"columns"};if("string"==typeof e)return t.parse([e]);if(Array.isArray(e)){var o=[];return e.forEach((function(e){var n=t.DEFAULT_BY_KEY[e];n?o.push(n):console.warn("ag-grid: the key "+e+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(t.DEFAULT_BY_KEY).join(","))})),0===o.length?null:{toolPanels:o,defaultToolPanel:o[0].id}}return{toolPanels:t.parseComponents(e.toolPanels),defaultToolPanel:e.defaultToolPanel,hiddenByDefault:e.hiddenByDefault,position:e.position}},t.parseComponents=function(e){var o=[];return e.forEach((function(e){var n=null;if("string"==typeof e){var r=t.DEFAULT_BY_KEY[e];if(!r)return void console.warn("ag-grid: the key "+e+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(t.DEFAULT_BY_KEY).join(","));n=r}else n=e;o.push(n)})),o},t.DEFAULT_COLUMN_COMP={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel"},t.DEFAULT_FILTER_COMP={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"},t.DEFAULT_BY_KEY={columns:t.DEFAULT_COLUMN_COMP,filters:t.DEFAULT_FILTER_COMP},t}()},function(t,e,o){"use strict";o.d(e,"a",(function(){return r}));var n=function(){return(n=Object.assign||function(t){for(var e,o=1,n=arguments.length;o=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},f=function(t){function e(e,o,n,r){var i=t.call(this,e,'',o)||this;return i.pickerIcon=n,i.isPickerDisplayed=!1,i.isDestroyingPicker=!1,i.skipClick=!1,i}return d(e,t),e.prototype.postConstruct=function(){var e=this;t.prototype.postConstruct.call(this);var o=this.getCompId()+"-display";this.eDisplayField.setAttribute("id",o),Object(a.setAriaDescribedBy)(this.eWrapper,o);var n=function(){e.skipClick?e.skipClick=!1:e.isDisabled()||(e.pickerComponent=e.showPicker())},r=this.getGui();this.addManagedListener(r,"mousedown",(function(t){!e.skipClick&&e.pickerComponent&&e.pickerComponent.isAlive()&&Object(p.isVisible)(e.pickerComponent.getGui())&&r.contains(t.target)&&(e.skipClick=!0)})),this.addManagedListener(r,"keydown",(function(t){switch(t.keyCode){case c.a.UP:case c.a.DOWN:case c.a.ENTER:case c.a.SPACE:n();case c.a.ESCAPE:e.isPickerDisplayed&&t.preventDefault()}})),this.addManagedListener(this.eWrapper,"click",n),this.addManagedListener(this.eLabel,"click",n),this.pickerIcon&&this.eIcon.appendChild(Object(l.createIconNoSpan)(this.pickerIcon,this.gridOptionsWrapper))},e.prototype.refreshLabel=function(){Object(u.exists)(this.getLabel())?Object(a.setAriaLabelledBy)(this.eWrapper,this.getLabelId()):this.eWrapper.removeAttribute("aria-labelledby"),t.prototype.refreshLabel.call(this)},e.prototype.setAriaLabel=function(t){return Object(a.setAriaLabel)(this.eWrapper,t),this},e.prototype.setInputWidth=function(t){return Object(p.setElementWidth)(this.eWrapper,t),this},e.prototype.getFocusableElement=function(){return this.eWrapper},h([Object(i.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),h([Object(s.d)("eLabel")],e.prototype,"eLabel",void 0),h([Object(s.d)("eWrapper")],e.prototype,"eWrapper",void 0),h([Object(s.d)("eDisplayField")],e.prototype,"eDisplayField",void 0),h([Object(s.d)("eIcon")],e.prototype,"eIcon",void 0),e}(r.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return S}));var n,r=o(0),i=o(17),s=o(18),a=o(4),l=o(66),u=o(5),p=o(75),c=o(48),d=o(39),h=o(8),f=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),g=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},y=function(t){function e(e,o){var n=t.call(this)||this;n.cbSelectAllVisible=!1,n.processingEventFromCheckbox=!1,n.cbSelectAll=e,n.column=o;var r=o.getColDef();return n.filteredOnly=!!r&&!!r.headerCheckboxSelectionFilteredOnly,n}return f(e,t),e.prototype.postConstruct=function(){this.showOrHideSelectAll(),this.addManagedListener(this.eventService,u.a.EVENT_NEW_COLUMNS_LOADED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,u.a.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,u.a.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,u.a.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,d.a.EVENT_CHANGED,this.onCbSelectAll.bind(this)),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()},e.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType(),this.updateStateOfCheckbox())},e.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},e.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},e.prototype.getNextCheckboxState=function(t){return(0!==t.selected||0!==t.notSelected)&&(t.selected>0&&t.notSelected>0?null:t.selected>0)},e.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var t=this.getSelectionCount(),e=this.getNextCheckboxState(t);this.cbSelectAll.setValue(e),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},e.prototype.refreshSelectAllLabel=function(){var t=this.cbSelectAll.getValue();this.cbSelectAll.setInputAriaLabel("Press Space to toggle all rows selection ("+(t?"checked":"unchecked")+")")},e.prototype.getSelectionCount=function(){var t=this,e=0,o=0,n=function(n){t.gridOptionsWrapper.isGroupSelectsChildren()&&n.group||(n.isSelected()?e++:n.selectable&&o++)};return this.filteredOnly?this.gridApi.forEachNodeAfterFilter(n):this.gridApi.forEachNode(n),{notSelected:o,selected:e}},e.prototype.checkRightRowModelType=function(){var t=this.rowModel.getType();t===a.a.ROW_MODEL_TYPE_CLIENT_SIDE||console.warn("ag-Grid: selectAllCheckbox is only available if using normal row model, you are using "+t)},e.prototype.onCbSelectAll=function(){this.processingEventFromCheckbox||this.cbSelectAllVisible&&(this.cbSelectAll.getValue()?this.selectionController.selectAllRowNodes(this.filteredOnly):this.selectionController.deselectAllRowNodes(this.filteredOnly))},e.prototype.isCheckboxSelection=function(){var t=this.column.getColDef().headerCheckboxSelection;"function"==typeof t&&(t=t({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi}));return!!t&&(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))},g([Object(r.a)("gridApi")],e.prototype,"gridApi",void 0),g([Object(r.a)("columnApi")],e.prototype,"columnApi",void 0),g([Object(r.a)("rowModel")],e.prototype,"rowModel",void 0),g([Object(r.a)("selectionController")],e.prototype,"selectionController",void 0),g([Object(r.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),g([r.e],e.prototype,"postConstruct",null),e}(h.a),v=o(6),m=o(33),C=o(47),O=o(76),w=o(13),b=o(1),E=o(9),R=function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),P=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},S=function(t){function e(o,n,r){var i=t.call(this,e.TEMPLATE)||this;return i.headerCompVersion=0,i.refreshFunctions=[],i.column=o,i.dragSourceDropTarget=n,i.pinned=r,i}return R(e,t),e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.colDefVersion=this.columnController.getColDefVersion(),this.updateState(),this.appendHeaderComp(),this.setupWidth(),this.setupMovingCss(),this.setupTooltip(),this.setupResize(),this.setupMenuClass(),this.setupSortableClass(),this.addColumnHoverListener(),this.addActiveHeaderMouseListeners(),this.createManagedBean(new p.a([this.column],this.getGui())),this.addManagedListener(this.column,i.a.EVENT_FILTER_ACTIVE_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged(),this.createManagedBean(new y(this.cbSelectAll,this.column)),this.createManagedBean(new c.a(this.column,this.getGui(),this.beans)),this.addAttributes(),l.a.addHeaderClassesFromColDef(this.column.getColDef(),this.getGui(),this.gridOptionsWrapper,this.column,null),this.addManagedListener(this.eventService,u.a.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addManagedListener(this.eventService,u.a.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this))},e.prototype.onColumnValueChanged=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},e.prototype.updateState=function(){var t=this.column.getColDef();this.sortable=t.sortable,this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()},e.prototype.calculateDisplayName=function(){return this.columnController.getDisplayNameForColumn(this.column,"header",!0)},e.prototype.onNewColumnsLoaded=function(){var t=this.columnController.getColDefVersion();t!=this.colDefVersion&&(this.colDefVersion=t,this.refresh())},e.prototype.refresh=function(){this.updateState();var t=this.column.getColDef();if(!(this.colDefHeaderComponent!=t.headerComponent||this.colDefHeaderComponentFramework!=t.headerComponentFramework)&&this.attemptHeaderCompRefresh()){var e=this.draggable&&!this.dragAndDropService,o=!this.draggable&&this.dragAndDropService;(e||o)&&this.attachDraggingToHeaderComp()}else this.appendHeaderComp();this.refreshFunctions.forEach((function(t){return t()}))},e.prototype.destroyHeaderComp=function(){this.headerComp&&(this.getGui().removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0),this.removeMoveDragSource()},e.prototype.removeMoveDragSource=function(){this.moveDragSource&&(this.dragAndDropService.removeDragSource(this.moveDragSource),this.moveDragSource=void 0)},e.prototype.attemptHeaderCompRefresh=function(){if(!this.headerComp)return!0;if(!this.headerComp.refresh)return!1;var t=this.createParams();return this.headerComp.refresh(t)},e.prototype.addActiveHeaderMouseListeners=function(){var t=this,e=function(e){return t.setActiveHeader("mouseenter"===e.type)};this.addManagedListener(this.getGui(),"mouseenter",e),this.addManagedListener(this.getGui(),"mouseleave",e)},e.prototype.setActiveHeader=function(t){Object(b.addOrRemoveCssClass)(this.getGui(),"ag-header-active",t)},e.prototype.onFocusIn=function(t){if(!this.getGui().contains(t.relatedTarget)){var e=this.getParentComponent();this.focusController.setFocusedHeader(e.getRowIndex(),this.getColumn())}this.setActiveHeader(!0)},e.prototype.onFocusOut=function(t){this.getGui().contains(t.relatedTarget)||this.setActiveHeader(!1)},e.prototype.handleKeyDown=function(t){var e=this.headerComp;if(e){if(t.keyCode===E.a.SPACE){var o=this.cbSelectAll;o.isDisplayed()&&!o.getGui().contains(document.activeElement)&&o.setValue(!o.getValue())}if(t.keyCode===E.a.ENTER)if(t.ctrlKey||t.metaKey)this.menuEnabled&&e.showMenu&&(t.preventDefault(),e.showMenu());else if(this.sortable){var n=t.shiftKey;this.sortController.progressSort(this.column,n,"uiColumnSorted")}}},e.prototype.onTabKeyDown=function(){},e.prototype.getComponentHolder=function(){return this.column.getColDef()},e.prototype.addColumnHoverListener=function(){this.addManagedListener(this.eventService,u.a.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},e.prototype.onColumnHover=function(){var t=this.columnHoverService.isHovered(this.column);Object(b.addOrRemoveCssClass)(this.getGui(),"ag-column-hover",t)},e.prototype.setupSortableClass=function(){var t=this,e=this.getGui(),o=function(){Object(b.addOrRemoveCssClass)(e,"ag-header-cell-sortable",t.sortable)},n=function(){t.sortable?Object(w.setAriaSort)(e,Object(w.getAriaSortState)(t.column)):Object(w.removeAriaSort)(e)};o(),n(),this.refreshFunctions.push(o),this.refreshFunctions.push(n),this.addManagedListener(this.column,i.a.EVENT_SORT_CHANGED,n.bind(this))},e.prototype.onFilterChanged=function(){var t=this.column.isFilterActive();Object(b.addOrRemoveCssClass)(this.getGui(),"ag-header-cell-filtered",t)},e.prototype.appendHeaderComp=function(){this.headerCompVersion++;var t=this.column.getColDef();this.colDefHeaderComponent=t.headerComponent,this.colDefHeaderComponentFramework=t.headerComponentFramework;var e=this.createParams(),o=this.afterHeaderCompCreated.bind(this,this.headerCompVersion);this.userComponentFactory.newHeaderComponent(e).then(o)},e.prototype.createParams=function(){var t=this,e=this.column.getColDef(),o=e.sortable,n=this.menuEnabled=this.menuFactory.isMenuEnabled(this.column)&&!e.suppressMenu;return{column:this.column,displayName:this.displayName,enableSorting:o,enableMenu:n,showColumnMenu:function(e){t.gridApi.showColumnMenuAfterButtonClick(t.column,e)},progressSort:function(e){t.sortController.progressSort(t.column,!!e,"uiColumnSorted")},setSort:function(e,o){t.sortController.setSortForColumn(t.column,e,!!o,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()}},e.prototype.afterHeaderCompCreated=function(t,e){t==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=e,this.headerCompGui=e.getGui(),this.getGui().appendChild(this.headerCompGui),this.attachDraggingToHeaderComp()):this.destroyBean(e)},e.prototype.onColumnMovingChanged=function(){this.column.isMoving()?Object(b.addCssClass)(this.getGui(),"ag-header-cell-moving"):Object(b.removeCssClass)(this.getGui(),"ag-header-cell-moving")},e.prototype.workOutDraggable=function(){var t=this.column.getColDef();return!this.gridOptionsWrapper.isSuppressMovableColumns()&&!t.suppressMovable&&!t.lockPosition||t.enableRowGroup||t.enablePivot},e.prototype.attachDraggingToHeaderComp=function(){var t=this;this.removeMoveDragSource(),this.draggable&&(this.moveDragSource={type:s.b.HeaderCell,eElement:this.headerCompGui,defaultIconName:s.a.ICON_HIDE,getDragItem:function(){return t.createDragItem()},dragItemName:this.displayName,dragSourceDropTarget:this.dragSourceDropTarget,onDragStarted:function(){return t.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return t.column.setMoving(!1,"uiColumnMoved")}},this.dragAndDropService.addDragSource(this.moveDragSource,!0))},e.prototype.createDragItem=function(){var t={};return t[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:t}},e.prototype.setupResize=function(){var t,e,o=this,n=this.getComponentHolder(),r=[],i=function(){r.forEach((function(t){return t()})),r.length=0},s=function(){var s=o.column.isResizable(),a=!o.gridOptionsWrapper.isSuppressAutoSize()&&!n.suppressAutoSize;(s!==t||a!==e)&&(t=s,e=a,i(),function(){if(Object(b.setDisplayed)(o.eResize,t),t){var n=o.horizontalResizeService.addResizeBar({eResizeBar:o.eResize,onResizeStart:o.onResizeStart.bind(o),onResizing:o.onResizing.bind(o,!1),onResizeEnd:o.onResizing.bind(o,!0)});if(r.push(n),e){var i=o.gridOptionsWrapper.isSkipHeaderOnAutoSize(),s=function(){o.columnController.autoSizeColumn(o.column,i,"uiColumnResized")};o.eResize.addEventListener("dblclick",s);var a=new m.a(o.eResize);a.addEventListener(m.a.EVENT_DOUBLE_TAP,s),o.addDestroyFunc((function(){o.eResize.removeEventListener("dblclick",s),a.removeEventListener(m.a.EVENT_DOUBLE_TAP,s),a.destroy()}))}}}())};s(),this.addDestroyFunc(i),this.refreshFunctions.push(s)},e.prototype.onResizing=function(t,e){var o=this.normaliseResizeAmount(e),n=[{key:this.column,newWidth:this.resizeStartWidth+o}];this.columnController.setColumnWidths(n,this.resizeWithShiftKey,t,"uiColumnDragged"),t&&Object(b.removeCssClass)(this.getGui(),"ag-column-resizing")},e.prototype.onResizeStart=function(t){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=t,Object(b.addCssClass)(this.getGui(),"ag-column-resizing")},e.prototype.getTooltipText=function(){return this.column.getColDef().headerTooltip},e.prototype.setupTooltip=function(){var t,e,o=this,n=this.gridOptionsWrapper.isEnableBrowserTooltips(),r=function(){n?o.getGui().removeAttribute("title"):t&&(t=o.destroyBean(t))},i=function(){var i=o.getTooltipText();e!=i&&(e&&r(),(e=i)&&(n?o.getGui().setAttribute("title",e):t=o.createBean(new C.a(o,"header"))))};i(),this.addDestroyFunc(r),this.refreshFunctions.push(i)},e.prototype.setupMovingCss=function(){this.addManagedListener(this.column,i.a.EVENT_MOVING_CHANGED,this.onColumnMovingChanged.bind(this)),this.onColumnMovingChanged()},e.prototype.addAttributes=function(){this.getGui().setAttribute("col-id",this.column.getColId())},e.prototype.setupWidth=function(){this.addManagedListener(this.column,i.a.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},e.prototype.setupMenuClass=function(){this.addManagedListener(this.column,i.a.EVENT_MENU_VISIBLE_CHANGED,this.onMenuVisible.bind(this))},e.prototype.onMenuVisible=function(){this.addOrRemoveCssClass("ag-column-menu-visible",this.column.isMenuVisible())},e.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},e.prototype.normaliseResizeAmount=function(t){var e=t;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==a.a.PINNED_LEFT&&(e*=-1):this.pinned===a.a.PINNED_RIGHT&&(e*=-1),e},e.TEMPLATE='',P([Object(r.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),P([Object(r.a)("dragAndDropService")],e.prototype,"dragAndDropService",void 0),P([Object(r.a)("columnController")],e.prototype,"columnController",void 0),P([Object(r.a)("horizontalResizeService")],e.prototype,"horizontalResizeService",void 0),P([Object(r.a)("menuFactory")],e.prototype,"menuFactory",void 0),P([Object(r.a)("gridApi")],e.prototype,"gridApi",void 0),P([Object(r.a)("columnApi")],e.prototype,"columnApi",void 0),P([Object(r.a)("sortController")],e.prototype,"sortController",void 0),P([Object(r.a)("userComponentFactory")],e.prototype,"userComponentFactory",void 0),P([Object(r.a)("columnHoverService")],e.prototype,"columnHoverService",void 0),P([Object(r.a)("beans")],e.prototype,"beans",void 0),P([Object(v.d)("eResize")],e.prototype,"eResize",void 0),P([Object(v.d)("cbSelectAll")],e.prototype,"cbSelectAll",void 0),P([r.g],e.prototype,"destroyHeaderComp",null),e}(O.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return r}));var n=o(70);function r(t){t.module("agGrid",[]).directive("agGrid",(function(){return{restrict:"A",controller:["$element","$scope","$compile","$attrs",i],scope:!0}}))}function i(t,e,o,r){var i,s,a=r.agGrid;if(s=a+".quickFilterText",i=e.$eval(a)){var l=t[0],u={$scope:e,$compile:o,quickFilterOnScope:s},p=new n.a(l,i,u);e.$on("$destroy",(function(){p.destroy(),p=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")}},function(t,e,o){"use strict";o.d(e,"a",(function(){return s}));var n=o(43),r=o(70),i=!1;function s(){if(console.warn("ag-grid: initialiseAgGridWithWebComponents is deprecated. Please use the ag-grid-webcomponent dependency instead. "),!i){i=!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 t=Object.create(HTMLElement.prototype);n.a.ALL_PROPERTIES.forEach((function(e){Object.defineProperty(t,e,{set:function(t){this.__agGridSetProperty(e,t)},get:function(){return this.__agGridGetProperty(e)},enumerable:!0,configurable:!0})}));var e=t;e.__agGridSetProperty=function(t,e){this.__attributes||(this.__attributes={}),this.__attributes[t]=e;var o={};o[t]={currentValue:e},this.onChange(o)},e.onChange=function(t){this._initialised&&n.a.processOnChange(t,this._gridOptions,this.api,this.columnApi)},e.__agGridGetProperty=function(t){return this.__attributes||(this.__attributes={}),this.__attributes[t]},e.setGridOptions=function(t){var e=this.globalEventListener.bind(this);this._gridOptions=n.a.copyAttributesToGridOptions(t,this);var o={globalEventListener:e};this._agGrid=new r.a(this,this._gridOptions,o),this.api=t.api,this.columnApi=t.columnApi,this._initialised=!0},e.createdCallback=function(){for(var t=0;t=0&&(this[o]=r)},e.attachedCallback=function(t){},e.detachedCallback=function(t){},e.attributeChangedCallback=function(t){var e=this.attributes[t];this.setPropertyFromAttribute(e)},e.globalEventListener=function(t,e){var o=t.toLowerCase(),n=new Event(o);n.agGridDetails=e,this.dispatchEvent(n);var r="on"+o;"function"==typeof this[r]&&this[r](n)},document.registerElement("ag-grid",{prototype:t})}}},function(t,e,o){"use strict";o.d(e,"a",(function(){return h}));var n,r=o(6),i=o(34),s=o(1),a=o(13),l=o(2),u=o(11),p=o(9),c=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),d=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},h=function(t){function e(o){var n=t.call(this,e.getTemplate(o.cssClass))||this;return n.items=[],n.params=o,o.items&&o.items.forEach((function(t){return n.addItem(t)})),n}return c(e,t),e.getTemplate=function(t){return''},e.prototype.handleKeyDown=function(t){switch(t.keyCode){case p.a.RIGHT:case p.a.LEFT:if(!this.eHeader.contains(document.activeElement))return;var e=this.items.indexOf(this.activeItem),o=t.keyCode===p.a.RIGHT?Math.min(e+1,this.items.length-1):Math.max(e-1,0);if(e===o)return;t.preventDefault();var n=this.items[o];this.showItemWrapper(n),n.eHeaderButton.focus();break;case p.a.UP:case p.a.DOWN:t.stopPropagation()}},e.prototype.onTabKeyDown=function(t){if(!t.defaultPrevented){var e=this.focusController,o=this.eHeader,n=this.eBody,r=this.activeItem,i=document.activeElement;if(t.preventDefault(),o.contains(i))e.focusInto(n,t.shiftKey);else if(e.isFocusUnderManagedComponent(n))r.eHeaderButton.focus();else{var s=e.findNextFocusableElement(n,!1,t.shiftKey);s?s.focus():r.eHeaderButton.focus()}}},e.prototype.setAfterAttachedParams=function(t){this.afterAttachedParams=t},e.prototype.getMinDimensions=function(){var t=this.getGui().cloneNode(!0),e=t.querySelector('[ref="eBody"]');t.style.position="fixed",this.getGui().appendChild(t);var o=0,n=0;return this.items.forEach((function(r){Object(s.clearElement)(e);var i=r.tabbedItem.bodyPromise.resolveNow(null,(function(t){return t.cloneNode(!0)}));null!=i&&(e.appendChild(i),o0&&this.showItemWrapper(this.items[0])},e.prototype.addItem=function(t){var e=document.createElement("span");e.setAttribute("tabIndex","-1"),e.setAttribute("role","menuitem"),e.appendChild(t.title),Object(s.addCssClass)(e,"ag-tab"),this.eHeader.appendChild(e),Object(a.setAriaLabel)(e,t.titleLabel);var o={tabbedItem:t,eHeaderButton:e};this.items.push(o),e.addEventListener("click",this.showItemWrapper.bind(this,o))},e.prototype.showItem=function(t){var e=Object(l.find)(this.items,(function(e){return e.tabbedItem===t}));e&&this.showItemWrapper(e)},e.prototype.showItemWrapper=function(t){var e=this;this.params.onItemClicked&&this.params.onItemClicked({item:t.tabbedItem}),this.activeItem!==t?(Object(s.clearElement)(this.eBody),t.tabbedItem.bodyPromise.then((function(t){e.eBody.appendChild(t);var o=!e.focusController.isKeyboardFocus();e.focusController.focusInto(e.eBody,!1,o)})),this.activeItem&&Object(s.removeCssClass)(this.activeItem.eHeaderButton,"ag-tab-selected"),Object(s.addCssClass)(t.eHeaderButton,"ag-tab-selected"),this.activeItem=t,t.tabbedItem.afterAttachedCallback&&t.tabbedItem.afterAttachedCallback(this.afterAttachedParams)):Object(u.callIfPresent)(this.params.onActiveItemClicked)},d([Object(r.d)("eHeader")],e.prototype,"eHeader",void 0),d([Object(r.d)("eBody")],e.prototype,"eBody",void 0),e}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return r}));var n=o(21);function r(t){return new n.c((function(e){var o=new XMLHttpRequest;o.open("GET",t.url),o.send(),o.onreadystatechange=function(){4===o.readyState&&200===o.status&&e(JSON.parse(o.responseText))}}))}},function(t,e,o){"use strict";o.d(e,"a",(function(){return h}));var n,r=o(55),i=o(0),s=o(8),a=o(11),l=o(2),u=o(7),p=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),c=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},d=function(t,e){return function(o,n){e(o,n,t)}},h=function(t){function e(e,o){var n=t.call(this)||this;return n.activeBlockLoadsCount=0,n.blocks=[],n.active=!0,n.maxConcurrentRequests=e,o&&o>0&&(n.checkBlockToLoadDebounce=Object(a.debounce)(n.performCheckBlocksToLoad.bind(n),o)),n}return p(e,t),e.prototype.setBeans=function(t){this.logger=t.create("RowNodeBlockLoader")},e.prototype.addBlock=function(t){this.blocks.push(t)},e.prototype.removeBlock=function(t){Object(u.removeFromArray)(this.blocks,t)},e.prototype.destroy=function(){t.prototype.destroy.call(this),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 t=null;this.blocks.forEach((function(e){e.getState()===r.a.STATE_DIRTY&&(t=e)})),t?(t.load(),this.activeBlockLoadsCount++,this.logger.log("checkBlockToLoad: loading page "+t.getBlockNumber()),this.printCacheStatus()):this.logger.log("checkBlockToLoad: no pages to load")}},e.prototype.getBlockState=function(){var t={};return this.blocks.forEach((function(e){var o=e.getNodeIdPrefix(),n={blockNumber:e.getBlockNumber(),startRow:e.getStartRow(),endRow:e.getEndRow(),pageStatus:e.getState()};Object(l.exists)(o)?t[o+e.getBlockNumber()]=n:t[e.getBlockNumber()]=n})),t},e.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},e.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},c([d(0,Object(i.h)("loggerFactory"))],e.prototype,"setBeans",null),e}(s.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return c}));var n,r=o(8),i=o(55),s=o(21),a=o(0),l=o(2),u=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),p=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},c=function(t){function e(e){var o=t.call(this)||this;return o.maxRowFound=!1,o.blocks={},o.blockCount=0,o.virtualRowCount=e.initialRowCount,o.cacheParams=e,o}return u(e,t),e.prototype.destroyAllBlocks=function(){var t=this;this.forEachBlockInOrder((function(e){return t.destroyBlock(e)}))},e.prototype.init=function(){var t=this;this.active=!0,this.addDestroyFunc((function(){return t.active=!1}))},e.prototype.isActive=function(){return this.active},e.prototype.getVirtualRowCount=function(){return this.virtualRowCount},e.prototype.hack_setVirtualRowCount=function(t){this.virtualRowCount=t},e.prototype.isMaxRowFound=function(){return this.maxRowFound},e.prototype.onPageLoaded=function(t){this.cacheParams.rowNodeBlockLoader.loadComplete(),this.checkBlockToLoad(),this.isActive()&&(this.logger.log("onPageLoaded: page = "+t.page.getBlockNumber()+", lastRow = "+t.lastRow),t.success&&(this.checkVirtualRowCount(t.page,t.lastRow),this.onCacheUpdated()))},e.prototype.purgeBlocksIfNeeded=function(t){var o=this,n=[];this.forEachBlockInOrder((function(e){e!==t&&n.push(e)})),n.sort((function(t,e){return e.getLastAccessed()-t.getLastAccessed()}));var r=this.cacheParams.maxBlocksInCache>0,s=r?this.cacheParams.maxBlocksInCache-1:null,a=e.MAX_EMPTY_BLOCKS_TO_KEEP-1;n.forEach((function(t,e){if(t.getState()===i.a.STATE_DIRTY&&e>=a||!!r&&e>=s){if(t.isAnyNodeOpen(o.virtualRowCount))return;if(o.isBlockCurrentlyDisplayed(t))return;o.removeBlockFromCache(t)}}))},e.prototype.isBlockCurrentlyDisplayed=function(t){var e=this.rowRenderer.getFirstVirtualRenderedRow(),o=this.rowRenderer.getLastVirtualRenderedRow(),n=t.getDisplayIndexStart(),r=t.getDisplayIndexEnd()-1;return null!=n&&null!=r&&(!(n>o)&&!(r=0)this.virtualRowCount=e,this.maxRowFound=!0;else if(!this.maxRowFound){var o=(t.getBlockNumber()+1)*this.cacheParams.blockSize+this.cacheParams.overflowSize;this.virtualRowCount=t.virtualRowCount&&e.push(o)})),e.length>0&&e.forEach((function(e){return t.destroyBlock(e)}))},e.prototype.purgeCache=function(){var t=this;this.forEachBlockInOrder((function(e){return t.removeBlockFromCache(e)})),this.maxRowFound=!1,0===this.virtualRowCount&&(this.virtualRowCount=this.cacheParams.initialRowCount),this.onCacheUpdated()},e.prototype.getRowNodesInRange=function(t,e){var o=this,n=[],r=-1,i=!1,a=new s.b;Object(l.missing)(t)&&(i=!0);var u=!1;return this.forEachBlockInOrder((function(s,l){u||(i&&r+1!==l?u=!0:(r=l,s.forEachNodeShallow((function(o){var r=o===t||o===e;(i||r)&&n.push(o),r&&(i=!i)}),a,o.virtualRowCount)))})),u||i?[]:n},e.EVENT_CACHE_UPDATED="cacheUpdated",e.MAX_EMPTY_BLOCKS_TO_KEEP=2,p([Object(a.a)("rowRenderer")],e.prototype,"rowRenderer",void 0),p([a.g],e.prototype,"destroyAllBlocks",null),p([a.e],e.prototype,"init",null),e}(r.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return d}));var n,r=o(0),i=o(6),s=o(34),a=o(1),l=o(13),u=o(9),p=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),c=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},d=function(t){function e(o){void 0===o&&(o="default");var n=t.call(this,e.getTemplate(o),!0)||this;return n.cssIdentifier=o,n.renderedRows=new Map,n.rowHeight=20,n.isDestroyed=!1,n}return p(e,t),e.prototype.postConstruct=function(){this.addScrollListener(),this.rowHeight=this.getItemHeight(),t.prototype.postConstruct.call(this)},e.prototype.focusInnerElement=function(t){this.focusRow(t?this.model.getRowCount()-1:0)},e.prototype.onFocusIn=function(e){t.prototype.onFocusIn.call(this,e);var o=e.target;Object(a.containsClass)(o,"ag-virtual-list-item")&&(this.lastFocusedRowIndex=Object(l.getAriaPosInSet)(o)-1)},e.prototype.onFocusOut=function(e){t.prototype.onFocusOut.call(this,e),this.getFocusableElement().contains(e.relatedTarget)||(this.lastFocusedRowIndex=null)},e.prototype.handleKeyDown=function(t){switch(t.keyCode){case u.a.UP:case u.a.DOWN:this.navigate(t.keyCode===u.a.UP)&&t.preventDefault()}},e.prototype.onTabKeyDown=function(t){this.navigate(t.shiftKey)?t.preventDefault():this.focusController.focusInto(this.getGui(),!t.shiftKey)},e.prototype.navigate=function(t){if(null==this.lastFocusedRowIndex)return!1;var e=this.lastFocusedRowIndex+(t?-1:1);return!(e<0||e>=this.model.getRowCount())&&(this.focusRow(e),!0)},e.prototype.getLastFocusedRow=function(){return this.lastFocusedRowIndex},e.prototype.focusRow=function(t){var e=this;this.ensureIndexVisible(t),window.setTimeout((function(){var o=e.renderedRows.get(t);o&&o.eDiv.focus()}),10)},e.prototype.getComponentAt=function(t){var e=this.renderedRows.get(t);return e&&e.rowComponent},e.getTemplate=function(t){return'\n '},e.prototype.getItemHeight=function(){return this.gridOptionsWrapper.getListItemHeight()},e.prototype.ensureIndexVisible=function(t){var e=this.model.getRowCount();if("number"!=typeof t||t<0||t>=e)console.warn("invalid row index for ensureIndexVisible: "+t);else{var o=t*this.rowHeight,n=o+this.rowHeight,r=this.getGui(),i=r.scrollTop,s=r.offsetHeight,a=i+so)r.scrollTop=o;else if(a){var l=n-s;r.scrollTop=l}}},e.prototype.setComponentCreator=function(t){this.componentCreator=t},e.prototype.getRowHeight=function(){return this.rowHeight},e.prototype.getScrollTop=function(){return this.getGui().scrollTop},e.prototype.setRowHeight=function(t){this.rowHeight=t,this.refresh()},e.prototype.refresh=function(){var t=this;if(null!=this.model&&!this.isDestroyed){var e=this.model.getRowCount();this.eContainer.style.height=e*this.rowHeight+"px",setTimeout((function(){t.isDestroyed||(t.clearVirtualRows(),t.drawVirtualRows())}),0)}},e.prototype.clearVirtualRows=function(){var t=this;this.renderedRows.forEach((function(e,o){return t.removeRow(o)}))},e.prototype.drawVirtualRows=function(){var t=this.getGui(),e=t.scrollTop,o=e+t.offsetHeight,n=Math.floor(e/this.rowHeight),r=Math.floor(o/this.rowHeight);this.ensureRowsRendered(n,r)},e.prototype.ensureRowsRendered=function(t,e){var o=this;this.renderedRows.forEach((function(n,r){(re)&&r!==o.lastFocusedRowIndex&&o.removeRow(r)}));for(var n=t;n<=e;n++)this.renderedRows.has(n)||n