/** * @ag-grid-community/all-modules - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v30.0.0 * @link https://www.ag-grid.com/ * @license MIT */ // @ag-grid-community/all-modules v30.0.0 !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.agGrid=t():e.agGrid=t()}(window,(function(){return function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=200)}([function(e,t,r){"use strict";r.d(t,"c",(function(){return c})),r.d(t,"f",(function(){return u})),r.d(t,"e",(function(){return g})),r.d(t,"g",(function(){return d})),r.d(t,"b",(function(){return p})),r.d(t,"a",(function(){return h})),r.d(t,"d",(function(){return f})),r.d(t,"h",(function(){return m}));var o=r(1),n=r(14),i=r(11),a=r(15),l=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},s=function(e,t){for(var r=0,o=t.length,n=e.length;r> creating ag-Application Context"),this.createBeans();var r=this.getBeanInstances();this.wireBeans(r),this.logger.log(">> ag-Application Context ready - component is alive")}}return e.prototype.getBeanInstances=function(){return Object(o.values)(this.beanWrappers).map((function(e){return e.beanInstance}))},e.prototype.createBean=function(e,t){if(!e)throw Error("Can't wire to bean since it is null");return this.wireBeans([e],t),e},e.prototype.wireBeans=function(e,t){this.autoWireBeans(e),this.methodWireBeans(e),this.callLifeCycleMethods(e,"preConstructMethods"),Object(o.exists)(t)&&e.forEach(t),this.callLifeCycleMethods(e,"postConstructMethods")},e.prototype.createBeans=function(){var e=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),Object(n.iterateObject)(this.beanWrappers,(function(t,r){var o;r.bean.__agBeanMetaData&&r.bean.__agBeanMetaData.autowireMethods&&r.bean.__agBeanMetaData.autowireMethods.agConstructor&&(o=r.bean.__agBeanMetaData.autowireMethods.agConstructor);var n=e.getBeansForParameters(o,r.bean.name),i=new(r.bean.bind.apply(r.bean,s([null],l(n))));r.beanInstance=i}));var t=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: "+t)},e.prototype.createBeanWrapper=function(e){var t=e.__agBeanMetaData;if(!t){var r=void 0;return r=e.prototype.constructor?Object(i.getFunctionName)(e.prototype.constructor):""+e,void console.error("Context item "+r+" is not a bean")}var o={bean:e,beanInstance:null,beanName:t.beanName};this.beanWrappers[t.beanName]=o},e.prototype.autoWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(r,o){var n=r.agClassAttributes;n&&n.forEach((function(r){var n=t.lookupBeanInstance(o,r.beanName,r.optional);e[r.attributeName]=n}))}))}))},e.prototype.methodWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(r,o){Object(n.iterateObject)(r.autowireMethods,(function(r,n){if("agConstructor"!==r){var i=t.getBeansForParameters(n,o);e[r].apply(e,i)}}))}))}))},e.prototype.forEachMetaDataInHierarchy=function(e,t){for(var r=Object.getPrototypeOf(e);null!=r;){var o=r.constructor;if(o.hasOwnProperty("__agBeanMetaData"))t(o.__agBeanMetaData,this.getBeanName(o));r=Object.getPrototypeOf(r)}},e.prototype.getBeanName=function(e){if(e.__agBeanMetaData&&e.__agBeanMetaData.beanName)return e.__agBeanMetaData.beanName;var t=e.toString();return t.substring(9,t.indexOf("("))},e.prototype.getBeansForParameters=function(e,t){var r=this,o=[];return e&&Object(n.iterateObject)(e,(function(e,n){var i=r.lookupBeanInstance(t,n);o[Number(e)]=i})),o},e.prototype.lookupBeanInstance=function(e,t,r){if(void 0===r&&(r=!1),this.destroyed)return this.logger.log("AG Grid: bean reference "+t+" is used after the grid is destroyed!"),null;if("context"===t)return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(t))return this.contextParams.providedBeanInstances[t];var o=this.beanWrappers[t];return o?o.beanInstance:(r||console.error("AG Grid: unable to find bean reference "+t+" while initialising "+e),null)},e.prototype.callLifeCycleMethods=function(e,t){var r=this;e.forEach((function(e){return r.callLifeCycleMethodsOnBean(e,t)}))},e.prototype.callLifeCycleMethodsOnBean=function(e,t,r){var o={};this.forEachMetaDataInHierarchy(e,(function(e){var n=e[t];n&&n.forEach((function(e){e!=r&&(o[e]=!0)}))})),Object.keys(o).forEach((function(t){return e[t]()}))},e.prototype.getBean=function(e){return this.lookupBeanInstance("getBean",e,!0)},e.prototype.destroy=function(){if(!this.destroyed){this.logger.log(">> Shutting down ag-Application Context");var e=this.getBeanInstances();this.destroyBeans(e),this.contextParams.providedBeanInstances=null,a.a.unRegisterGridModules(this.contextParams.gridId),this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead")}},e.prototype.destroyBean=function(e){e&&this.destroyBeans([e])},e.prototype.destroyBeans=function(e){var t=this;return e?(e.forEach((function(e){t.callLifeCycleMethodsOnBean(e,"preDestroyMethods","destroy");var r=e;"function"==typeof r.destroy&&r.destroy()})),[]):[]},e.prototype.isDestroyed=function(){return this.destroyed},e.prototype.getGridId=function(){return this.contextParams.gridId},e}();function u(e,t,r){var o=y(e.constructor);o.preConstructMethods||(o.preConstructMethods=[]),o.preConstructMethods.push(t)}function g(e,t,r){var o=y(e.constructor);o.postConstructMethods||(o.postConstructMethods=[]),o.postConstructMethods.push(t)}function d(e,t,r){var o=y(e.constructor);o.preDestroyMethods||(o.preDestroyMethods=[]),o.preDestroyMethods.push(t)}function p(e){return function(t){y(t).beanName=e}}function h(e){return function(t,r,o){v(t,e,!1,t,r,null)}}function f(e){return function(t,r,o){v(t,e,!0,t,r,null)}}function v(e,t,r,o,n,i){if(null!==t)if("number"!=typeof i){var a=y(e.constructor);a.agClassAttributes||(a.agClassAttributes=[]),a.agClassAttributes.push({attributeName:n,beanName:t,optional:r})}else console.error("AG Grid: Autowired should be on an attribute");else console.error("AG Grid: Autowired name should not be null")}function m(e){return function(t,r,o){var n,i="function"==typeof t?t:t.constructor;if("number"==typeof o){var a=void 0;r?(n=y(i),a=r):(n=y(i),a="agConstructor"),n.autowireMethods||(n.autowireMethods={}),n.autowireMethods[a]||(n.autowireMethods[a]={}),n.autowireMethods[a][o]=e}}}function y(e){return e.hasOwnProperty("__agBeanMetaData")||(e.__agBeanMetaData={}),e.__agBeanMetaData}},function(e,t,r){"use strict";function o(e){return null==e||""===e?null:e}function n(e,t){return void 0===t&&(t=!1),null!=e&&(""!==e||t)}function i(e){return!n(e)}function a(e){return null==e||0===e.length}function l(e){return null!=e&&"function"==typeof e.toString?e.toString():null}function s(e){if(void 0!==e){if(null===e||""===e)return null;if("number"==typeof e)return isNaN(e)?void 0:e;var t=parseInt(e,10);return isNaN(t)?void 0:t}}function c(e){if(void 0!==e)return null!==e&&""!==e&&("boolean"==typeof e?e:/true/i.test(e))}function u(e){if(null!=e&&""!==e)return e}function g(e,t){return null==e&&null==t||(null!=e||null==t)&&((null==e||null!=t)&&e===t)}function d(e,t){return(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null)}function p(e,t,r){void 0===r&&(r=!1);var o=null==e,n=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),o&&n)return 0;if(o)return-1;if(n)return 1;function i(e,t){return e>t?1:e=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},c=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a};function u(e,t,r){for(var o=e.parentElement,n=o&&o.firstChild;n;)t&&n.classList.toggle(t,n===e),r&&n.classList.toggle(r,n!==e),n=n.nextSibling}var g="[tabindex], input, select, button, textarea, [href]",d=".ag-hidden, .ag-hidden *, [disabled], .ag-disabled, .ag-disabled *";function p(e){var t=Element.prototype.matches||Element.prototype.msMatchesSelector,r=t.call(e,"input, select, button, textarea"),o=t.call(e,d),n=D(e);return r&&!o&&n}function h(e,t,r){void 0===r&&(r={});var o=r.skipAriaHidden;e.classList.toggle("ag-hidden",!t),o||Object(a.setAriaHidden)(e,!t)}function f(e,t,r){void 0===r&&(r={});var o=r.skipAriaHidden;e.classList.toggle("ag-invisible",!t),o||Object(a.setAriaHidden)(e,!t)}function v(e,t){var r=t?function(e){return e.setAttribute("disabled","")}:function(e){return e.removeAttribute("disabled")};r(e),Z(e.querySelectorAll("input"),(function(e){return r(e)}))}function m(e,t,r){for(var o=0;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,"number"==typeof r){if(++o>r)break}else if(e===r)break}return!1}function y(e){var t=window.getComputedStyle(e),r=t.height,o=t.width,n=t.borderTopWidth,i=t.borderRightWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,s=t.paddingTop,c=t.paddingRight,u=t.paddingBottom,g=t.paddingLeft,d=t.marginTop,p=t.marginRight,h=t.marginBottom,f=t.marginLeft,v=t.boxSizing;return{height:parseFloat(r),width:parseFloat(o),borderTopWidth:parseFloat(n),borderRightWidth:parseFloat(i),borderBottomWidth:parseFloat(a),borderLeftWidth:parseFloat(l),paddingTop:parseFloat(s),paddingRight:parseFloat(c),paddingBottom:parseFloat(u),paddingLeft:parseFloat(g),marginTop:parseFloat(d),marginRight:parseFloat(p),marginBottom:parseFloat(h),marginLeft:parseFloat(f),boxSizing:v}}function w(e){var t=y(e);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom:t.height}function b(e){var t=y(e);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight:t.width}function C(e){var t=y(e),r=t.marginBottom+t.marginTop;return Math.ceil(e.offsetHeight+r)}function S(e){var t=y(e),r=t.marginLeft+t.marginRight;return Math.ceil(e.offsetWidth+r)}function O(){if("boolean"==typeof o)return o;var e=document.createElement("div");return e.style.direction="rtl",e.style.width="1px",e.style.height="1px",e.style.position="fixed",e.style.top="0px",e.style.overflow="hidden",e.dir="rtl",e.innerHTML='
\n \n \n
',document.body.appendChild(e),e.scrollLeft=1,o=0===Math.floor(e.scrollLeft),document.body.removeChild(e),o}function E(e,t){var r=e.scrollLeft;return t&&(r=Math.abs(r),Object(n.isBrowserChrome)()&&!O()&&(r=e.scrollWidth-e.clientWidth-r)),r}function R(e,t,r){r&&(O()?t*=-1:(Object(n.isBrowserSafari)()||Object(n.isBrowserChrome)())&&(t=e.scrollWidth-e.clientWidth-t)),e.scrollLeft=t}function T(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function x(e,t){A(e.querySelector(t))}function A(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function D(e){return null!==e.offsetParent}function P(e){var t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function M(e,t){e.lastChild?e.insertAdjacentHTML("afterbegin",t):e.innerHTML=t}function N(e,t){return e.attributes&&e.attributes[t]?e.attributes[t].value:null}function L(e){return e&&e.clientHeight?e.clientHeight:0}function I(e){return e&&e.clientWidth?e.clientWidth:0}function z(e,t,r){if(!r||r.nextSibling!==t){var o=document.activeElement,i=t.contains(o);r?r.nextSibling?e.insertBefore(t,r.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t),i&&o&&Object(n.browserSupportsPreventScroll)()&&o.focus({preventScroll:!0})}}function F(e,t){for(var r=0;r=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},l=function(){function e(){var e=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.isAlive=function(){return!e.destroyed}}return e.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},e.prototype.getContext=function(){return this.context},e.prototype.destroy=function(){this.destroyFunctions.forEach((function(e){return e()})),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:e.EVENT_DESTROYED})},e.prototype.addEventListener=function(e,t){this.localEventService||(this.localEventService=new o.a),this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService&&this.localEventService.removeEventListener(e,t)},e.prototype.dispatchEventAsync=function(e){var t=this;window.setTimeout((function(){return t.dispatchEvent(e)}),0)},e.prototype.dispatchEvent=function(e){this.localEventService&&this.localEventService.dispatchEvent(e)},e.prototype.addManagedListener=function(e,t,r){var o=this;if(!this.destroyed){e instanceof HTMLElement?Object(i.addSafePassiveEventListener)(this.getFrameworkOverrides(),e,t,r):e.addEventListener(t,r);var n=function(){return e.removeEventListener(t,r),o.destroyFunctions=o.destroyFunctions.filter((function(e){return e!==n})),null};return this.destroyFunctions.push(n),n}},e.prototype.addManagedPropertyListener=function(e,t){var r=this;if(!this.destroyed){this.gridOptionsService.addEventListener(e,t);var o=function(){return r.gridOptionsService.removeEventListener(e,t),r.destroyFunctions=r.destroyFunctions.filter((function(e){return e!==o})),null};return this.destroyFunctions.push(o),o}},e.prototype.addDestroyFunc=function(e){this.isAlive()?this.destroyFunctions.push(e):e()},e.prototype.createManagedBean=function(e,t){var r=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),r},e.prototype.createBean=function(e,t,r){return(t||this.getContext()).createBean(e,r)},e.prototype.destroyBean=function(e,t){return(t||this.getContext()).destroyBean(e)},e.prototype.destroyBeans=function(e,t){var r=this;return e&&e.forEach((function(e){return r.destroyBean(e,t)})),[]},e.EVENT_DESTROYED="destroyed",a([Object(n.a)("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),a([Object(n.a)("context")],e.prototype,"context",void 0),a([Object(n.a)("eventService")],e.prototype,"eventService",void 0),a([Object(n.a)("gridOptionsService")],e.prototype,"gridOptionsService",void 0),a([Object(n.a)("localeService")],e.prototype,"localeService",void 0),a([Object(n.a)("environment")],e.prototype,"environment",void 0),a([n.g],e.prototype,"destroy",null),e}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var o=function(){function e(){}return e.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",e.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",e.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",e.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",e.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",e.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",e.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",e.EVENT_COLUMN_MOVED="columnMoved",e.EVENT_COLUMN_VISIBLE="columnVisible",e.EVENT_COLUMN_PINNED="columnPinned",e.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",e.EVENT_COLUMN_RESIZED="columnResized",e.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",e.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",e.EVENT_ASYNC_TRANSACTIONS_FLUSHED="asyncTransactionsFlushed",e.EVENT_ROW_GROUP_OPENED="rowGroupOpened",e.EVENT_ROW_DATA_CHANGED="rowDataChanged",e.EVENT_ROW_DATA_UPDATED="rowDataUpdated",e.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",e.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",e.EVENT_CHART_CREATED="chartCreated",e.EVENT_CHART_RANGE_SELECTION_CHANGED="chartRangeSelectionChanged",e.EVENT_CHART_OPTIONS_CHANGED="chartOptionsChanged",e.EVENT_CHART_DESTROYED="chartDestroyed",e.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",e.EVENT_TOOL_PANEL_SIZE_CHANGED="toolPanelSizeChanged",e.EVENT_COLUMN_PANEL_ITEM_DRAG_START="columnPanelItemDragStart",e.EVENT_COLUMN_PANEL_ITEM_DRAG_END="columnPanelItemDragEnd",e.EVENT_MODEL_UPDATED="modelUpdated",e.EVENT_CUT_START="cutStart",e.EVENT_CUT_END="cutEnd",e.EVENT_PASTE_START="pasteStart",e.EVENT_PASTE_END="pasteEnd",e.EVENT_FILL_START="fillStart",e.EVENT_FILL_END="fillEnd",e.EVENT_RANGE_DELETE_START="rangeDeleteStart",e.EVENT_RANGE_DELETE_END="rangeDeleteEnd",e.EVENT_UNDO_STARTED="undoStarted",e.EVENT_UNDO_ENDED="undoEnded",e.EVENT_REDO_STARTED="redoStarted",e.EVENT_REDO_ENDED="redoEnded",e.EVENT_KEY_SHORTCUT_CHANGED_CELL_START="keyShortcutChangedCellStart",e.EVENT_KEY_SHORTCUT_CHANGED_CELL_END="keyShortcutChangedCellEnd",e.EVENT_CELL_CLICKED="cellClicked",e.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",e.EVENT_CELL_MOUSE_DOWN="cellMouseDown",e.EVENT_CELL_CONTEXT_MENU="cellContextMenu",e.EVENT_CELL_VALUE_CHANGED="cellValueChanged",e.EVENT_CELL_EDIT_REQUEST="cellEditRequest",e.EVENT_ROW_VALUE_CHANGED="rowValueChanged",e.EVENT_CELL_FOCUSED="cellFocused",e.EVENT_CELL_FOCUS_CLEARED="cellFocusCleared",e.EVENT_FULL_WIDTH_ROW_FOCUSED="fullWidthRowFocused",e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_SELECTION_CHANGED="selectionChanged",e.EVENT_CELL_KEY_DOWN="cellKeyDown",e.EVENT_CELL_MOUSE_OVER="cellMouseOver",e.EVENT_CELL_MOUSE_OUT="cellMouseOut",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_MODIFIED="filterModified",e.EVENT_FILTER_OPENED="filterOpened",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",e.EVENT_ROW_CLICKED="rowClicked",e.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",e.EVENT_GRID_READY="gridReady",e.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",e.EVENT_VIEWPORT_CHANGED="viewportChanged",e.EVENT_SCROLLBAR_WIDTH_CHANGED="scrollbarWidthChanged",e.EVENT_FIRST_DATA_RENDERED="firstDataRendered",e.EVENT_DRAG_STARTED="dragStarted",e.EVENT_DRAG_STOPPED="dragStopped",e.EVENT_CHECKBOX_CHANGED="checkboxChanged",e.EVENT_ROW_EDITING_STARTED="rowEditingStarted",e.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",e.EVENT_CELL_EDITING_STARTED="cellEditingStarted",e.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",e.EVENT_BODY_SCROLL="bodyScroll",e.EVENT_BODY_SCROLL_END="bodyScrollEnd",e.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",e.EVENT_PAGINATION_CHANGED="paginationChanged",e.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",e.EVENT_STORE_REFRESHED="storeRefreshed",e.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",e.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",e.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",e.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",e.EVENT_FLASH_CELLS="flashCells",e.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED="paginationPixelOffsetChanged",e.EVENT_DISPLAYED_ROWS_CHANGED="displayedRowsChanged",e.EVENT_LEFT_PINNED_WIDTH_CHANGED="leftPinnedWidthChanged",e.EVENT_RIGHT_PINNED_WIDTH_CHANGED="rightPinnedWidthChanged",e.EVENT_ROW_CONTAINER_HEIGHT_CHANGED="rowContainerHeightChanged",e.EVENT_HEADER_HEIGHT_CHANGED="headerHeightChanged",e.EVENT_COLUMN_HEADER_HEIGHT_CHANGED="columnHeaderHeightChanged",e.EVENT_ROW_DRAG_ENTER="rowDragEnter",e.EVENT_ROW_DRAG_MOVE="rowDragMove",e.EVENT_ROW_DRAG_LEAVE="rowDragLeave",e.EVENT_ROW_DRAG_END="rowDragEnd",e.EVENT_GRID_STYLES_CHANGED="gridStylesChanged",e.EVENT_POPUP_TO_FRONT="popupToFront",e.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",e.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",e.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",e.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",e.EVENT_KEYBOARD_FOCUS="keyboardFocus",e.EVENT_MOUSE_FOCUS="mouseFocus",e.EVENT_STORE_UPDATED="storeUpdated",e.EVENT_FILTER_DESTROYED="filterDestroyed",e}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var o=function(){function e(){}return e.BACKSPACE="Backspace",e.TAB="Tab",e.ENTER="Enter",e.ESCAPE="Escape",e.SPACE=" ",e.LEFT="ArrowLeft",e.UP="ArrowUp",e.RIGHT="ArrowRight",e.DOWN="ArrowDown",e.DELETE="Delete",e.F2="F2",e.PAGE_UP="PageUp",e.PAGE_DOWN="PageDown",e.PAGE_HOME="Home",e.PAGE_END="End",e.A="KeyA",e.C="KeyC",e.D="KeyD",e.V="KeyV",e.X="KeyX",e.Y="KeyY",e.Z="KeyZ",e}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i}));var o=r(11);function n(e){return a.bind(this,e,void 0)}function i(e){return a.bind(this,"[ref="+e+"]",e)}function a(e,t,r,n,i){null!==e?"number"!=typeof i?function(e,t,r){var n=function(e,t){e.__agComponentMetaData||(e.__agComponentMetaData={});e.__agComponentMetaData[t]||(e.__agComponentMetaData[t]={});return e.__agComponentMetaData[t]}(e,Object(o.getFunctionName)(e.constructor));n[t]||(n[t]=[]);n[t].push(r)}(r,"querySelectors",{attributeName:n,querySelector:e,refSelector:t}):console.error("AG Grid: QuerySelector should be on an attribute"):console.error("AG Grid: QuerySelector selector should not be null")}},function(e,t,r){"use strict";function o(e,t,r){null==r||""==r?i(e,t):n(e,t,r)}function n(e,t,r){e.setAttribute(a(t),r.toString())}function i(e,t){e.removeAttribute(a(t))}function a(e){return"aria-"+e}function l(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function s(e){return"asc"===e?"ascending":"desc"===e?"descending":"mixed"===e?"other":"none"}function c(e){return parseInt(e.getAttribute("aria-level"),10)}function u(e){return parseInt(e.getAttribute("aria-posinset"),10)}function g(e){return e.getAttribute("aria-describedby")||""}function d(e,t){o(e,"label",t)}function p(e,t){o(e,"labelledby",t)}function h(e,t){o(e,"description",t)}function f(e,t){o(e,"describedby",t)}function v(e,t){o(e,"live",t)}function m(e,t){o(e,"level",t)}function y(e,t){o(e,"disabled",t)}function w(e,t){o(e,"hidden",t)}function b(e,t){n(e,"expanded",t)}function C(e){i(e,"expanded")}function S(e,t){n(e,"setsize",t)}function O(e,t){n(e,"posinset",t)}function E(e,t){n(e,"multiselectable",t)}function R(e,t){n(e,"rowcount",t)}function T(e,t){n(e,"rowindex",t)}function x(e,t){n(e,"colcount",t)}function A(e,t){n(e,"colindex",t)}function D(e,t){n(e,"colspan",t)}function P(e,t){n(e,"sort",t)}function M(e){i(e,"sort")}function N(e,t){o(e,"selected",t)}function L(e,t){n(e,"checked",void 0===t?"mixed":t)}function I(e,t){o(e,"controls",t.id),p(t,e.id)}function z(e,t){return void 0===t?e("ariaIndeterminate","indeterminate"):!0===t?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}r.r(t),r.d(t,"setAriaRole",(function(){return l})),r.d(t,"getAriaSortState",(function(){return s})),r.d(t,"getAriaLevel",(function(){return c})),r.d(t,"getAriaPosInSet",(function(){return u})),r.d(t,"getAriaDescribedBy",(function(){return g})),r.d(t,"setAriaLabel",(function(){return d})),r.d(t,"setAriaLabelledBy",(function(){return p})),r.d(t,"setAriaDescription",(function(){return h})),r.d(t,"setAriaDescribedBy",(function(){return f})),r.d(t,"setAriaLive",(function(){return v})),r.d(t,"setAriaLevel",(function(){return m})),r.d(t,"setAriaDisabled",(function(){return y})),r.d(t,"setAriaHidden",(function(){return w})),r.d(t,"setAriaExpanded",(function(){return b})),r.d(t,"removeAriaExpanded",(function(){return C})),r.d(t,"setAriaSetSize",(function(){return S})),r.d(t,"setAriaPosInSet",(function(){return O})),r.d(t,"setAriaMultiSelectable",(function(){return E})),r.d(t,"setAriaRowCount",(function(){return R})),r.d(t,"setAriaRowIndex",(function(){return T})),r.d(t,"setAriaColCount",(function(){return x})),r.d(t,"setAriaColIndex",(function(){return A})),r.d(t,"setAriaColSpan",(function(){return D})),r.d(t,"setAriaSort",(function(){return P})),r.d(t,"removeAriaSort",(function(){return M})),r.d(t,"setAriaSelected",(function(){return N})),r.d(t,"setAriaChecked",(function(){return L})),r.d(t,"setAriaControls",(function(){return I})),r.d(t,"getAriaCheckboxStateName",(function(){return z}))},function(e,t,r){"use strict";r.r(t),r.d(t,"firstExistingValue",(function(){return n})),r.d(t,"existsAndNotEmpty",(function(){return i})),r.d(t,"last",(function(){return a})),r.d(t,"areEqual",(function(){return l})),r.d(t,"shallowCompare",(function(){return s})),r.d(t,"sortNumerically",(function(){return c})),r.d(t,"removeRepeatsFromArray",(function(){return u})),r.d(t,"removeFromArray",(function(){return g})),r.d(t,"removeAllFromArray",(function(){return d})),r.d(t,"insertIntoArray",(function(){return p})),r.d(t,"insertArrayIntoArray",(function(){return h})),r.d(t,"moveInArray",(function(){return f})),r.d(t,"includes",(function(){return v})),r.d(t,"flatten",(function(){return m})),r.d(t,"pushAll",(function(){return y})),r.d(t,"toStrings",(function(){return w})),r.d(t,"forEachReverse",(function(){return b}));var o=r(1);function n(){for(var e=[],t=0;t0}function a(e){if(e&&e.length)return e[e.length-1]}function l(e,t,r){return null==e&&null==t||null!=e&&null!=t&&e.length===t.length&&e.every((function(e,o){return r?r(e,t[o]):t[o]===e}))}function s(e,t){return l(e,t)}function c(e){return e.sort((function(e,t){return e-t}))}function u(e,t){if(e)for(var r=e.length-2;r>=0;r--){var o=e[r]===t,n=e[r+1]===t;o&&n&&e.splice(r+1,1)}}function g(e,t){var r=e.indexOf(t);r>=0&&e.splice(r,1)}function d(e,t){t.forEach((function(t){return g(e,t)}))}function p(e,t,r){e.splice(r,0,t)}function h(e,t,r){if(null!=e&&null!=t)for(var o=t.length-1;o>=0;o--){p(e,t[o],r)}}function f(e,t,r){d(e,t),t.slice().reverse().forEach((function(t){return p(e,t,r)}))}function v(e,t){return e.indexOf(t)>-1}function m(e){return[].concat.apply([],e)}function y(e,t){null!=t&&null!=e&&t.forEach((function(t){return e.push(t)}))}function w(e){return e.map(o.toStringOrNull)}function b(e,t){if(null!=e)for(var r=e.length-1;r>=0;r--)t(e[r],r)}},function(e,t,r){"use strict";r.r(t),r.d(t,"doOnce",(function(){return n})),r.d(t,"getFunctionName",(function(){return i})),r.d(t,"isFunction",(function(){return a})),r.d(t,"executeInAWhile",(function(){return l})),r.d(t,"executeNextVMTurn",(function(){return u})),r.d(t,"executeAfter",(function(){return g})),r.d(t,"debounce",(function(){return d})),r.d(t,"throttle",(function(){return p})),r.d(t,"waitUntil",(function(){return h})),r.d(t,"compose",(function(){return f})),r.d(t,"callIfPresent",(function(){return v})),r.d(t,"noop",(function(){return m}));var o={};function n(e,t){o[t]||(e(),o[t]=!0)}function i(e){if(e.name)return e.name;var t=/function\s+([^\(]+)/.exec(e.toString());return t&&2===t.length?t[1].trim():null}function a(e){return!!(e&&e.constructor&&e.call&&e.apply)}function l(e){g(e,400)}var s=[],c=!1;function u(e){s.push(e),c||(c=!0,window.setTimeout((function(){var e=s.slice();s.length=0,c=!1,e.forEach((function(e){return e()}))}),0))}function g(e,t){void 0===t&&(t=0),e.length>0&&window.setTimeout((function(){return e.forEach((function(e){return e()}))}),t)}function d(e,t){var r;return function(){for(var o=[],n=0;nr;(e()||l)&&(t(),a=!0,null!=i&&(window.clearInterval(i),i=null),l&&o&&console.warn(o))};l(),a||(i=window.setInterval(l,10))}function f(){for(var e=[],t=0;t=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},p=new a.c,h=function(e){function t(t){var r=e.call(this)||this;return r.displayed=!0,r.visible=!0,r.compId=p.next(),r.cssClassManager=new u.a((function(){return r.eGui})),t&&r.setTemplate(t),r}return g(t,e),t.prototype.preConstructOnComponent=function(){this.usingBrowserTooltips=this.gridOptionsService.is("enableBrowserTooltips")},t.prototype.getCompId=function(){return this.compId},t.prototype.getTooltipParams=function(){return{value:this.tooltipText,location:"UNKNOWN"}},t.prototype.setTooltip=function(e){var t=this;this.tooltipText!=e&&(this.tooltipText&&(t.usingBrowserTooltips?t.getGui().removeAttribute("title"):t.tooltipFeature=t.destroyBean(t.tooltipFeature)),null!=e&&(this.tooltipText=e,this.tooltipText&&(t.usingBrowserTooltips?t.getGui().setAttribute("title",t.tooltipText):t.tooltipFeature=t.createBean(new c.a(t)))))},t.prototype.createChildComponentsFromTags=function(e,t){var r=this;Object(l.copyNodeList)(e.childNodes).forEach((function(o){if(o instanceof HTMLElement){var n=r.createComponentFromElement(o,(function(e){e.getGui()&&r.copyAttributesFromNode(o,e.getGui())}),t);if(n){if(n.addItems&&o.children.length){r.createChildComponentsFromTags(o,t);var i=Array.prototype.slice.call(o.children);n.addItems(i)}r.swapComponentForNode(n,e,o)}else o.childNodes&&r.createChildComponentsFromTags(o,t)}}))},t.prototype.createComponentFromElement=function(e,r,o){var n=e.nodeName,i=o?o[e.getAttribute("ref")]:void 0,a=this.agStackComponentsRegistry.getComponentClass(n);if(a){t.elementGettingCreated=e;var l=new a(i);return l.setParentComponent(this),this.createBean(l,null,r),l}return null},t.prototype.copyAttributesFromNode=function(e,t){Object(l.iterateNamedNodeMap)(e.attributes,(function(e,r){return t.setAttribute(e,r)}))},t.prototype.swapComponentForNode=function(e,t,r){var o=e.getGui();t.replaceChild(o,r),t.insertBefore(document.createComment(r.nodeName),o),this.addDestroyFunc(this.destroyBean.bind(this,e)),this.swapInComponentForQuerySelectors(e,r)},t.prototype.swapInComponentForQuerySelectors=function(e,t){var r=this;this.iterateOverQuerySelectors((function(o){r[o.attributeName]===t&&(r[o.attributeName]=e)}))},t.prototype.iterateOverQuerySelectors=function(e){for(var t=Object.getPrototypeOf(this);null!=t;){var r=t.__agComponentMetaData,o=Object(s.getFunctionName)(t.constructor);r&&r[o]&&r[o].querySelectors&&r[o].querySelectors.forEach((function(t){return e(t)})),t=Object.getPrototypeOf(t)}},t.prototype.setTemplate=function(e,t){var r=Object(l.loadTemplate)(e);this.setTemplateFromElement(r,t)},t.prototype.setTemplateFromElement=function(e,t){this.eGui=e,this.eGui.__agComponent=this,this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),t)},t.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.wireQuerySelectors=function(){var e=this;if(this.eGui){var t=this;this.iterateOverQuerySelectors((function(r){var o=function(e){return t[r.attributeName]=e};if(r.refSelector&&e.eGui.getAttribute("ref")===r.refSelector)o(e.eGui);else{var n=e.eGui.querySelector(r.querySelector);n&&o(n.__agComponent||n)}}))}},t.prototype.getGui=function(){return this.eGui},t.prototype.getFocusableElement=function(){return this.eGui},t.prototype.setParentComponent=function(e){this.parentComponent=e},t.prototype.getParentComponent=function(){return this.parentComponent},t.prototype.setGui=function(e){this.eGui=e},t.prototype.queryForHtmlElement=function(e){return this.eGui.querySelector(e)},t.prototype.queryForHtmlInputElement=function(e){return this.eGui.querySelector(e)},t.prototype.appendChild=function(e,t){if(null!=e)if(t||(t=this.eGui),Object(l.isNodeOrElement)(e))t.appendChild(e);else{var r=e;t.appendChild(r.getGui())}},t.prototype.isDisplayed=function(){return this.displayed},t.prototype.setVisible=function(e,t){if(void 0===t&&(t={}),e!==this.visible){this.visible=e;var r=t.skipAriaHidden;Object(l.setVisible)(this.eGui,e,{skipAriaHidden:r})}},t.prototype.setDisplayed=function(e,r){if(void 0===r&&(r={}),e!==this.displayed){this.displayed=e;var o=r.skipAriaHidden;Object(l.setDisplayed)(this.eGui,e,{skipAriaHidden:o});var n={type:t.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(n)}},t.prototype.destroy=function(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),this.parentComponent&&(this.parentComponent=void 0);var t=this.eGui;t&&t.__agComponent&&(t.__agComponent=void 0),e.prototype.destroy.call(this)},t.prototype.addGuiEventListener=function(e,t,r){var o=this;this.eGui.addEventListener(e,t,r),this.addDestroyFunc((function(){return o.eGui.removeEventListener(e,t)}))},t.prototype.addCssClass=function(e){this.cssClassManager.addCssClass(e)},t.prototype.removeCssClass=function(e){this.cssClassManager.removeCssClass(e)},t.prototype.containsCssClass=function(e){return this.cssClassManager.containsCssClass(e)},t.prototype.addOrRemoveCssClass=function(e,t){this.cssClassManager.addOrRemoveCssClass(e,t)},t.prototype.getAttribute=function(e){var t=this.eGui;return t?t.getAttribute(e):null},t.prototype.getRefElement=function(e){return this.queryForHtmlElement('[ref="'+e+'"]')},t.EVENT_DISPLAYED_CHANGED="displayedChanged",d([Object(n.a)("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),d([n.f],t.prototype,"preConstructOnComponent",null),d([n.f],t.prototype,"createChildComponentsPreConstruct",null),t}(i.a)},function(e,t,r){"use strict";var o;r.d(t,"a",(function(){return o})),function(e){e.CommunityCoreModule="@ag-grid-community/core",e.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",e.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",e.CsvExportModule="@ag-grid-community/csv-export",e.EnterpriseCoreModule="@ag-grid-enterprise/core",e.RowGroupingModule="@ag-grid-enterprise/row-grouping",e.ColumnsToolPanelModule="@ag-grid-enterprise/column-tool-panel",e.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",e.MenuModule="@ag-grid-enterprise/menu",e.SetFilterModule="@ag-grid-enterprise/set-filter",e.MultiFilterModule="@ag-grid-enterprise/multi-filter",e.StatusBarModule="@ag-grid-enterprise/status-bar",e.SideBarModule="@ag-grid-enterprise/side-bar",e.RangeSelectionModule="@ag-grid-enterprise/range-selection",e.MasterDetailModule="@ag-grid-enterprise/master-detail",e.RichSelectModule="@ag-grid-enterprise/rich-select",e.GridChartsModule="@ag-grid-enterprise/charts",e.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",e.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",e.ExcelExportModule="@ag-grid-enterprise/excel-export",e.ClipboardModule="@ag-grid-enterprise/clipboard",e.SparklinesModule="@ag-grid-enterprise/sparklines",e.AngularModule="@ag-grid-community/angular",e.ReactModule="@ag-grid-community/react",e.VueModule="@ag-grid-community/vue"}(o||(o={}))},function(e,t,r){"use strict";r.r(t),r.d(t,"iterateObject",(function(){return n})),r.d(t,"cloneObject",(function(){return i})),r.d(t,"deepCloneObject",(function(){return a})),r.d(t,"deepCloneDefinition",(function(){return l})),r.d(t,"getProperty",(function(){return s})),r.d(t,"setProperty",(function(){return c})),r.d(t,"copyPropertiesIfPresent",(function(){return u})),r.d(t,"copyPropertyIfPresent",(function(){return g})),r.d(t,"getAllKeysInObjects",(function(){return d})),r.d(t,"getAllValuesInObject",(function(){return p})),r.d(t,"mergeDeep",(function(){return h})),r.d(t,"missingOrEmptyObject",(function(){return f})),r.d(t,"get",(function(){return v})),r.d(t,"set",(function(){return m})),r.d(t,"getValueUsingField",(function(){return y})),r.d(t,"removeAllReferences",(function(){return w})),r.d(t,"isNonNullObject",(function(){return b}));var o=r(1);function n(e,t){null!=e&&(Array.isArray(e)?e.forEach((function(e,r){return t(""+r,e)})):Object.keys(e).forEach((function(r){return t(r,e[r])})))}function i(e){for(var t={},r=Object.keys(e),o=0;o=0)){var n=r[e],i=b(n)&&n.constructor===Object;o[e]=i?l(n):n}})),o}}function s(e,t){return e[t]}function c(e,t,r){e[t]=r}function u(e,t){for(var r=[],o=2;o1;)if(null==(n=n[o.shift()]))return r;var i=n[o[0]];return null!=i?i:r}function m(e,t,r){if(null!=e){var o=t.split("."),n=e;o.forEach((function(e,t){n[e]||(n[e]={}),t0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},l=function(e,t){for(var r=0,o=t.length,n=e.length;r<\/script>\n \nFor more info see: https://ag-grid.com/javascript-data-grid/getting-started/#getting-started-with-ag-grid-enterprise";else if(e.moduleBased||void 0===e.moduleBased){var u=null===(l=Object.entries(o.a).find((function(e){var r=a(e,2);r[0];return r[1]===t})))||void 0===l?void 0:l[0];s="AG Grid: unable to use "+r+" as the "+u+" is not registered"+(e.areGridScopedModules?" for gridId: "+i:"")+". Check if you have registered the module:\n \n import { ModuleRegistry } from '@ag-grid-community/core';\n import { "+u+" } from '"+t+"';\n \n ModuleRegistry.registerModules([ "+u+" ]);\n\nFor more info see: https://www.ag-grid.com/javascript-grid/modules/"}else s="AG Grid: unable to use "+r+" as package 'ag-grid-enterprise' has not been imported. Check that you have imported the package:\n \n import 'ag-grid-enterprise';\n \nFor more info see: https://www.ag-grid.com/javascript-grid/packages/";return Object(n.doOnce)((function(){console.warn(s)}),c),!1},e.isRegistered=function(t,r){var o;return!!e.globalModulesMap[t]||!!(null===(o=e.gridModulesMap[r])||void 0===o?void 0:o[t])},e.getRegisteredModules=function(t){return l(l([],a(Object(i.values)(e.globalModulesMap))),a(Object(i.values)(e.gridModulesMap[t]||{})))},e.isPackageBased=function(){return!e.moduleBased},e.globalModulesMap={},e.gridModulesMap={},e.areGridScopedModules=!1,e}()},function(e,t,r){"use strict";var o,n,i,a,l,s,c,u;function g(){return void 0===o&&(o=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),o}function d(){if(void 0===n)if(g()){var e=navigator.userAgent.match(/version\/(\d+)/i);e&&(n=null!=e[1]?parseFloat(e[1]):0)}else n=0;return n}function p(){if(void 0===i){var e=window;i=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return i}function h(){return void 0===a&&(a=/(firefox)/i.test(navigator.userAgent)),a}function f(){return void 0===l&&(l=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),l}function v(){return void 0===s&&(s=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1),s}function m(){return!g()||d()>=15}function y(e){if(!e)return null;var t=e.tabIndex,r=e.getAttribute("tabIndex");return-1!==t||null!==r&&(""!==r||h())?t.toString():null}function w(){if(!document.body)return-1;var e=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,r=document.createElement("div");for(document.body.appendChild(r);;){var o=2*e;if(r.style.height=o+"px",o>t||r.clientHeight!==o)break;e=o}return document.body.removeChild(r),e}function b(){var e,t,r;return null!==(t=null===(e=document.body)||void 0===e?void 0:e.clientWidth)&&void 0!==t?t:window.innerHeight||(null===(r=document.documentElement)||void 0===r?void 0:r.clientWidth)||-1}function C(){var e,t,r;return null!==(t=null===(e=document.body)||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:window.innerHeight||(null===(r=document.documentElement)||void 0===r?void 0:r.clientHeight)||-1}function S(){return null==u&&O(),u}function O(){var e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);var r=t.offsetWidth-t.clientWidth;0===r&&0===t.clientWidth&&(r=null),t.parentNode&&t.parentNode.removeChild(t),null!=r&&(u=r,c=0===r)}function E(){return null==c&&O(),c}r.r(t),r.d(t,"isBrowserSafari",(function(){return g})),r.d(t,"getSafariVersion",(function(){return d})),r.d(t,"isBrowserChrome",(function(){return p})),r.d(t,"isBrowserFirefox",(function(){return h})),r.d(t,"isMacOsUserAgent",(function(){return f})),r.d(t,"isIOSUserAgent",(function(){return v})),r.d(t,"browserSupportsPreventScroll",(function(){return m})),r.d(t,"getTabIndex",(function(){return y})),r.d(t,"getMaxDivHeight",(function(){return w})),r.d(t,"getBodyWidth",(function(){return b})),r.d(t,"getBodyHeight",(function(){return C})),r.d(t,"getScrollbarWidth",(function(){return S})),r.d(t,"isInvisibleScrollbar",(function(){return E}))},function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"d",(function(){return i})),r.d(t,"c",(function(){return a})),r.d(t,"a",(function(){return y}));var o,n,i,a,l=r(5),s=r(0),c=r(27),u=r(18),g=r(10),d=r(16),p=r(2),h=r(11),f=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),v=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},m=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(e){e[e.ToolPanel=0]="ToolPanel",e[e.HeaderCell=1]="HeaderCell",e[e.RowDrag=2]="RowDrag",e[e.ChartPanel=3]="ChartPanel"}(n||(n={})),function(e){e[e.Up=0]="Up",e[e.Down=1]="Down"}(i||(i={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(a||(a={}));var y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragSourceAndParamsList=[],t.dropTargets=[],t}var r;return f(t,e),r=t,t.prototype.init=function(){this.ePinnedIcon=Object(u.createIcon)("columnMovePin",this.gridOptionsService,null),this.eHideIcon=Object(u.createIcon)("columnMoveHide",this.gridOptionsService,null),this.eMoveIcon=Object(u.createIcon)("columnMoveMove",this.gridOptionsService,null),this.eLeftIcon=Object(u.createIcon)("columnMoveLeft",this.gridOptionsService,null),this.eRightIcon=Object(u.createIcon)("columnMoveRight",this.gridOptionsService,null),this.eGroupIcon=Object(u.createIcon)("columnMoveGroup",this.gridOptionsService,null),this.eAggregateIcon=Object(u.createIcon)("columnMoveValue",this.gridOptionsService,null),this.ePivotIcon=Object(u.createIcon)("columnMovePivot",this.gridOptionsService,null),this.eDropNotAllowedIcon=Object(u.createIcon)("dropNotAllowed",this.gridOptionsService,null)},t.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var r={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:r,dragSource:e}),this.dragService.addDragSource(r,t)},t.prototype.removeDragSource=function(e){var t=this.dragSourceAndParamsList.find((function(t){return t.dragSource===e}));t&&(this.dragService.removeDragSource(t.params),Object(g.removeFromArray)(this.dragSourceAndParamsList,t))},t.prototype.clearDragSourceParamsList=function(){var e=this;this.dragSourceAndParamsList.forEach((function(t){return e.dragService.removeDragSource(t.params)})),this.dragSourceAndParamsList.length=0,this.dropTargets.length=0},t.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},t.prototype.onDragStart=function(e,t){this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=this.dragSource.getDragItem(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},t.prototype.onDragStop=function(e){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var t=this.createDropTargetEvent(this.lastDropTarget,e,null,null,!1);this.lastDropTarget.onDragStop(t)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},t.prototype.onDragging=function(e,t){var r,o,n,i,a=this,l=this.getHorizontalDirection(e),s=this.getVerticalDirection(e);this.eventLastTime=e,this.positionGhost(e);var c=this.dropTargets.filter((function(t){return a.isMouseOnDropTarget(e,t)})),u=this.findCurrentDropTarget(e,c);if(u!==this.lastDropTarget)this.leaveLastTargetIfExists(e,l,s,t),null!==this.lastDropTarget&&null===u&&(null===(o=(r=this.dragSource).onGridExit)||void 0===o||o.call(r,this.dragItem)),null===this.lastDropTarget&&null!==u&&(null===(i=(n=this.dragSource).onGridEnter)||void 0===i||i.call(n,this.dragItem)),this.enterDragTargetIfExists(u,e,l,s,t),this.lastDropTarget=u;else if(u&&u.onDragging){var g=this.createDropTargetEvent(u,e,l,s,t);u.onDragging(g)}},t.prototype.getAllContainersFromDropTarget=function(e){var t=e.getSecondaryContainers?e.getSecondaryContainers():null,r=[[e.getContainer()]];return t?r.concat(t):r},t.prototype.allContainersIntersect=function(e,t){var r,o;try{for(var n=m(t),i=n.next();!i.done;i=n.next()){var a=i.value.getBoundingClientRect();if(0===a.width||0===a.height)return!1;var l=e.clientX>=a.left&&e.clientX=a.top&&e.clientYr?a.Left:a.Right},t.prototype.getVerticalDirection=function(e){var t=this.eventLastTime&&this.eventLastTime.clientY,r=e.clientY;return t===r?null:t>r?i.Up:i.Down},t.prototype.createDropTargetEvent=function(e,t,r,o,n){var i=e.getContainer(),a=i.getBoundingClientRect(),l=this.gridApi,s=this.columnApi,c=this.dragItem,u=this.dragSource;return{event:t,x:t.clientX-a.left,y:t.clientY-a.top,vDirection:o,hDirection:r,dragSource:u,fromNudge:n,dragItem:c,api:l,columnApi:s,dropZoneTarget:i}},t.prototype.positionGhost=function(e){var t=this.eGhost;if(t){var r=t.getBoundingClientRect().height,o=Object(d.getBodyWidth)()-2,n=Object(d.getBodyHeight)()-2,i=e.pageY-r/2,a=e.pageX-10,l=this.gridOptionsService.getDocument(),s=l.defaultView||window,c=s.pageYOffset||l.documentElement.scrollTop,u=s.pageXOffset||l.documentElement.scrollLeft;o>0&&a+t.clientWidth>o+u&&(a=o+u-t.clientWidth),a<0&&(a=0),n>0&&i+t.clientHeight>n+c&&(i=n+c-t.clientHeight),i<0&&(i=0),t.style.left=a+"px",t.style.top=i+"px"}},t.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},t.prototype.createGhost=function(){this.eGhost=Object(p.loadTemplate)(r.GHOST_TEMPLATE),this.mouseEventService.stampTopLevelGridCompWithGridInstance(this.eGhost);var e=this.environment.getTheme().theme;e&&this.eGhost.classList.add(e),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);var t=this.eGhost.querySelector(".ag-dnd-ghost-label"),o=this.dragSource.dragItemName;Object(h.isFunction)(o)&&(o=o()),t.innerHTML=Object(c.escapeString)(o)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var n=this.gridOptionsService.getDocument(),i=null;try{i=n.fullscreenElement}catch(e){}finally{if(!i){var a=this.gridOptionsService.getRootNode(),l=a.querySelector("body");i=l||(a instanceof ShadowRoot?a:null==a?void 0:a.documentElement)}}this.eGhostParent=i,this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("AG Grid: could not find document body, it is needed for dragging columns")},t.prototype.setGhostIcon=function(e,t){void 0===t&&(t=!1),Object(p.clearElement)(this.eGhostIcon);var o=null;switch(e||(e=this.dragSource.defaultIconName||r.ICON_NOT_ALLOWED),e){case r.ICON_PINNED:o=this.ePinnedIcon;break;case r.ICON_MOVE:o=this.eMoveIcon;break;case r.ICON_LEFT:o=this.eLeftIcon;break;case r.ICON_RIGHT:o=this.eRightIcon;break;case r.ICON_GROUP:o=this.eGroupIcon;break;case r.ICON_AGGREGATE:o=this.eAggregateIcon;break;case r.ICON_PIVOT:o=this.ePivotIcon;break;case r.ICON_NOT_ALLOWED:o=this.eDropNotAllowedIcon;break;case r.ICON_HIDE:o=this.eHideIcon}this.eGhostIcon.classList.toggle("ag-shake-left-to-right",t),o===this.eHideIcon&&this.gridOptionsService.is("suppressDragLeaveHidesColumns")||o&&this.eGhostIcon.appendChild(o)},t.ICON_PINNED="pinned",t.ICON_MOVE="move",t.ICON_LEFT="left",t.ICON_RIGHT="right",t.ICON_GROUP="group",t.ICON_AGGREGATE="aggregate",t.ICON_PIVOT="pivot",t.ICON_NOT_ALLOWED="notAllowed",t.ICON_HIDE="hide",t.GHOST_TEMPLATE='
\n \n
\n
',v([Object(s.a)("dragService")],t.prototype,"dragService",void 0),v([Object(s.a)("mouseEventService")],t.prototype,"mouseEventService",void 0),v([Object(s.a)("columnApi")],t.prototype,"columnApi",void 0),v([Object(s.a)("gridApi")],t.prototype,"gridApi",void 0),v([s.e],t.prototype,"init",null),v([s.g],t.prototype,"clearDragSourceParamsList",null),t=r=v([Object(s.b)("dragAndDropService")],t)}(l.a)},function(e,t,r){"use strict";r.r(t),r.d(t,"iconNameClassMap",(function(){return i})),r.d(t,"createIcon",(function(){return a})),r.d(t,"createIconNoSpan",(function(){return l}));var o=r(2),n=r(9),i={columnGroupOpened:"expanded",columnGroupClosed:"contracted",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate",columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",groupContracted:"tree-closed",groupExpanded:"tree-open",setFilterGroupClosed:"tree-closed",setFilterGroupOpen:"tree-open",setFilterGroupIndeterminate:"tree-indeterminate",chart:"chart",close:"cross",cancel:"cancel",check:"tick",first:"first",previous:"previous",next:"next",last:"last",linked:"linked",unlinked:"unlinked",colorPicker:"color-picker",groupLoading:"loading",menu:"menu",filter:"filter",columns:"columns",maximize:"maximize",minimize:"minimize",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardCut:"cut",clipboardPaste:"paste",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnDrag:"grip",rowDrag:"grip",save:"save",csvExport:"csv",excelExport:"excel",smallDown:"small-down",smallLeft:"small-left",smallRight:"small-right",smallUp:"small-up",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"};function a(e,t,r){var o=l(e,t,r);if(o){var n=o.className;if("string"==typeof n&&n.indexOf("ag-icon")>-1||"object"==typeof n&&n["ag-icon"])return o}var i=document.createElement("span");return i.appendChild(o),i}function l(e,t,r,a){var l=null,s=r&&r.getColDef().icons;if(s&&(l=s[e]),t&&!l){var c=t.get("icons");c&&(l=c[e])}if(!l){var u=document.createElement("span"),g=i[e];return g||(a?g=e:(console.warn("AG Grid: Did not find icon "+e),g="")),u.setAttribute("class","ag-icon ag-icon-"+g),u.setAttribute("unselectable","on"),Object(n.setAriaRole)(u,"presentation"),u}var d=void 0;if("function"==typeof l)d=l();else{if("string"!=typeof l)throw new Error("icon from grid options needs to be a string or a function");d=l}return"string"==typeof d?Object(o.loadTemplate)(d):Object(o.isNodeOrElement)(d)?d:void console.warn("AG Grid: iconRenderer should return back a string or a dom object")}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var o=r(3),n=r(35),i=r(11),a=r(1),l=r(14),s=function(){return(s=Object.assign||function(e){for(var t,r=1,o=arguments.length;r0?o:void 0,level:this.level}),null!==this.id&&"string"==typeof this.id&&this.id.startsWith(e.ID_PREFIX_ROW_GROUP)&&console.error("AG Grid: Row IDs cannot start with "+e.ID_PREFIX_ROW_GROUP+", this is a reserved prefix for AG Grid's row grouping feature."),null!==this.id&&"string"!=typeof this.id&&(this.id=""+this.id)}else this.id=void 0;else this.id=t},e.prototype.getGroupKeys=function(e){void 0===e&&(e=!1);var t=[],r=this;for(e&&(r=r.parent);r&&r.level>=0;)t.push(r.key),r=r.parent;return t.reverse(),t},e.prototype.isPixelInRange=function(e){return!(!Object(a.exists)(this.rowTop)||!Object(a.exists)(this.rowHeight))&&(e>=this.rowTop&&eo&&(o=a)})),!t&&((r||o<10)&&(o=this.beans.gridOptionsService.getRowHeightForNode(this).height),o!=this.rowHeight))){this.setRowHeight(o);var i=this.beans.rowModel;i.onRowHeightChangedDebounced&&i.onRowHeightChangedDebounced()}},e.prototype.setRowIndex=function(t){this.rowIndex!==t&&(this.rowIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ROW_INDEX_CHANGED)))},e.prototype.setUiLevel=function(t){this.uiLevel!==t&&(this.uiLevel=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_UI_LEVEL_CHANGED)))},e.prototype.setExpanded=function(t,r){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_EXPANDED_CHANGED));var n=Object.assign({},this.createGlobalRowEvent(o.a.EVENT_ROW_GROUP_OPENED),{expanded:t,event:r||null});this.beans.rowNodeEventThrottle.dispatchExpanded(n),this.beans.gridOptionsService.is("groupIncludeFooter")&&this.beans.rowRenderer.refreshCells({rowNodes:[this]})}},e.prototype.createGlobalRowEvent=function(e){return{type:e,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.beans.gridOptionsService.context,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi}},e.prototype.dispatchLocalEvent=function(e){this.eventService&&this.eventService.dispatchEvent(e)},e.prototype.setDataValue=function(e,t,r){var o,n=this,i="string"!=typeof e?e:null!==(o=n.beans.columnModel.getGridColumn(e))&&void 0!==o?o:n.beans.columnModel.getPrimaryColumn(e),a=this.getValueFromValueService(i);if(this.beans.gridOptionsService.is("readOnlyEdit"))return this.dispatchEventForSaveValueReadOnly(i,a,t,r),!1;var l=this.beans.valueService.setValue(this,i,t,r);return this.dispatchCellChangedEvent(i,t,a),this.checkRowSelectable(),l},e.prototype.getValueFromValueService=function(e){var t=this.leafGroup&&this.beans.columnModel.isPivotMode(),r=this.group&&this.expanded&&!this.footer&&!t,o=this.beans.gridOptionsService.is("groupIncludeFooter"),n=this.beans.gridOptionsService.is("groupSuppressBlankHeader"),i=r&&o&&!n;return this.beans.valueService.getValue(e,this,!1,i)},e.prototype.dispatchEventForSaveValueReadOnly=function(e,t,r,n){var i={type:o.a.EVENT_CELL_EDIT_REQUEST,event:null,rowIndex:this.rowIndex,rowPinned:this.rowPinned,column:e,colDef:e.getColDef(),context:this.beans.gridOptionsService.context,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,data:this.data,node:this,oldValue:t,newValue:r,value:r,source:n};this.beans.eventService.dispatchEvent(i)},e.prototype.setGroupValue=function(e,t){var r=this.beans.columnModel.getGridColumn(e);Object(a.missing)(this.groupData)&&(this.groupData={});var o=r.getColId(),n=this.groupData[o];n!==t&&(this.groupData[o]=t,this.dispatchCellChangedEvent(r,t,n))},e.prototype.setAggData=function(e){var t=this,r=Object(l.getAllKeysInObjects)([this.aggData,e]),o=this.aggData;this.aggData=e,this.eventService&&r.forEach((function(e){var r=t.beans.columnModel.getGridColumn(e),n=t.aggData?t.aggData[e]:void 0,i=o?o[e]:void 0;t.dispatchCellChangedEvent(r,n,i)}))},e.prototype.updateHasChildren=function(){var t=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;if(this.beans.gridOptionsService.isRowModelType("serverSide")){var r=this.beans.gridOptionsService.isTreeData(),o=this.beans.gridOptionsService.get("isServerSideGroup");t=!this.stub&&!this.footer&&(r?!!o&&o(this.data):!!this.group)}t!==this.__hasChildren&&(this.__hasChildren=!!t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HAS_CHILDREN_CHANGED)))},e.prototype.hasChildren=function(){return null==this.__hasChildren&&this.updateHasChildren(),this.__hasChildren},e.prototype.isEmptyRowGroupNode=function(){return this.group&&Object(a.missingOrEmpty)(this.childrenAfterGroup)},e.prototype.dispatchCellChangedEvent=function(t,r,o){var n={type:e.EVENT_CELL_CHANGED,node:this,column:t,newValue:r,oldValue:o};this.dispatchLocalEvent(n)},e.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},e.prototype.isExpandable=function(){return!!(this.hasChildren()&&!this.footer||this.master)},e.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},e.prototype.depthFirstSearch=function(e){this.childrenAfterGroup&&this.childrenAfterGroup.forEach((function(t){return t.depthFirstSearch(e)})),e(this)},e.prototype.calculateSelectedFromChildren=function(){var e,t=!1,r=!1,o=!1;if(!(null===(e=this.childrenAfterGroup)||void 0===e?void 0:e.length))return this.selectable?this.selected:null;for(var n=0;n=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},g=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},d=function(e,t){for(var r=0,o=t.length,n=e.length;r=0&&!e,this.tooltipFieldContainsDots=Object(l.exists)(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!e},e.prototype.initMinAndMaxWidths=function(){var e=this.colDef;this.minWidth=this.columnUtils.calculateColMinWidth(e),this.maxWidth=this.columnUtils.calculateColMaxWidth(e)},e.prototype.initTooltip=function(){this.tooltipEnabled=Object(l.exists)(this.colDef.tooltipField)||Object(l.exists)(this.colDef.tooltipValueGetter)||Object(l.exists)(this.colDef.tooltipComponent)},e.prototype.resetActualWidth=function(e){void 0===e&&(e="api");var t=this.columnUtils.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)},e.prototype.isEmptyGroup=function(){return!1},e.prototype.isRowGroupDisplayed=function(e){if(Object(l.missing)(this.colDef)||Object(l.missing)(this.colDef.showRowGroup))return!1;var t=!0===this.colDef.showRowGroup,r=this.colDef.showRowGroup===e;return t||r},e.prototype.isPrimary=function(){return this.primary},e.prototype.isFilterAllowed=function(){return!!this.colDef.filter},e.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},e.prototype.isTooltipEnabled=function(){return this.tooltipEnabled},e.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},e.prototype.validate=function(){var e=this.colDef;function t(e,t,r){Object(s.doOnce)((function(){r?console.warn(e,r):Object(s.doOnce)((function(){return console.warn(e)}),t)}),t)}if(this.gridOptionsService.isRowModelType("clientSide")&&!a.a.isRegistered(i.a.RowGroupingModule,this.gridOptionsService.getGridId())){(r=["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].filter((function(t){return Object(l.exists)(e[t])}))).length>0&&a.a.assertRegistered(i.a.RowGroupingModule,r.map((function(e){return"colDef."+e})).join(", "),this.gridOptionsService.getGridId())}if("agRichSelect"!==this.colDef.cellEditor&&"agRichSelectCellEditor"!==this.colDef.cellEditor||a.a.assertRegistered(i.a.RichSelectModule,this.colDef.cellEditor,this.gridOptionsService.getGridId()),this.gridOptionsService.isTreeData()){(r=["rowGroup","rowGroupIndex","pivot","pivotIndex"].filter((function(t){return Object(l.exists)(e[t])}))).length>0&&t("AG Grid: "+r.join()+" is not possible when doing tree data, your column definition should not have "+r.join(),"TreeDataCannotRowGroup")}if(Object(l.exists)(e.menuTabs))if(Array.isArray(e.menuTabs)){var r,o=["filterMenuTab"],n=["columnsMenuTab","generalMenuTab"];(r=n.filter((function(t){return e.menuTabs.includes(t)}))).length>0&&a.a.assertRegistered(i.a.MenuModule,"menuTab(s): "+r.map((function(e){return"'"+e+"'"})).join(),this.gridOptionsService.getGridId()),e.menuTabs.forEach((function(e){n.includes(e)||o.includes(e)||t("AG Grid: '"+e+"' is not valid for 'colDef.menuTabs'. Valid values are: "+d(d([],g(o)),g(n)).map((function(e){return"'"+e+"'"})).join()+".","wrongValue_menuTabs_"+e)}))}else t("AG Grid: The typeof 'colDef.menuTabs' should be an array not:"+typeof e.menuTabs,"wrongType_menuTabs");Object(l.exists)(e.columnsMenuParams)&&a.a.assertRegistered(i.a.MenuModule,"columnsMenuParams",this.gridOptionsService.getGridId()),Object(l.exists)(e.columnsMenuParams)&&a.a.assertRegistered(i.a.ColumnsToolPanelModule,"columnsMenuParams",this.gridOptionsService.getGridId()),Object(l.exists)(this.colDef.width)&&"number"!=typeof this.colDef.width&&t("AG Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck"),Object(l.exists)(e.columnGroupShow)&&"closed"!==e.columnGroupShow&&"open"!==e.columnGroupShow&&t("AG Grid: '"+e.columnGroupShow+"' is not valid for columnGroupShow. Valid values are 'open', 'closed', undefined, null","columnGroupShow_invalid")},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.createColumnFunctionCallbackParams=function(e){return{node:e,data:e.data,column:this,colDef:this.colDef,context:this.gridOptionsService.context,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi}},e.prototype.isSuppressNavigable=function(e){if("boolean"==typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"==typeof this.colDef.suppressNavigable){var t=this.createColumnFunctionCallbackParams(e);return(0,this.colDef.suppressNavigable)(t)}return!1},e.prototype.isCellEditable=function(e){return!(e.group&&!this.gridOptionsService.is("enableGroupEdit"))&&this.isColumnFunc(e,this.colDef.editable)},e.prototype.isSuppressFillHandle=function(){return!!Object(l.attrToBoolean)(this.colDef.suppressFillHandle)},e.prototype.isAutoHeight=function(){return!!Object(l.attrToBoolean)(this.colDef.autoHeight)},e.prototype.isAutoHeaderHeight=function(){return!!Object(l.attrToBoolean)(this.colDef.autoHeaderHeight)},e.prototype.isRowDrag=function(e){return this.isColumnFunc(e,this.colDef.rowDrag)},e.prototype.isDndSource=function(e){return this.isColumnFunc(e,this.colDef.dndSource)},e.prototype.isCellCheckboxSelection=function(e){return this.isColumnFunc(e,this.colDef.checkboxSelection)},e.prototype.isSuppressPaste=function(e){return this.isColumnFunc(e,this.colDef?this.colDef.suppressPaste:null)},e.prototype.isResizable=function(){return!!Object(l.attrToBoolean)(this.colDef.resizable)},e.prototype.isColumnFunc=function(e,t){return"boolean"==typeof t?t:"function"==typeof t&&t(this.createColumnFunctionCallbackParams(e))},e.prototype.setMoving=function(e,t){void 0===t&&(t="api"),this.moving=e,this.eventService.dispatchEvent(this.createColumnEvent("movingChanged",t))},e.prototype.createColumnEvent=function(e,t){return{type:e,column:this,columns:[this],source:t,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}},e.prototype.isMoving=function(){return this.moving},e.prototype.getSort=function(){return this.sort},e.prototype.setSort=function(e,t){void 0===t&&(t="api"),this.sort!==e&&(this.sort=e,this.eventService.dispatchEvent(this.createColumnEvent("sortChanged",t)))},e.prototype.setMenuVisible=function(e,t){void 0===t&&(t="api"),this.menuVisible!==e&&(this.menuVisible=e,this.eventService.dispatchEvent(this.createColumnEvent("menuVisibleChanged",t)))},e.prototype.isMenuVisible=function(){return this.menuVisible},e.prototype.isSortAscending=function(){return"asc"===this.sort},e.prototype.isSortDescending=function(){return"desc"===this.sort},e.prototype.isSortNone=function(){return Object(l.missing)(this.sort)},e.prototype.isSorting=function(){return Object(l.exists)(this.sort)},e.prototype.getSortIndex=function(){return this.sortIndex},e.prototype.setSortIndex=function(e){this.sortIndex=e},e.prototype.setAggFunc=function(e){this.aggFunc=e},e.prototype.getAggFunc=function(){return this.aggFunc},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.getRight=function(){return this.left+this.actualWidth},e.prototype.setLeft=function(e,t){void 0===t&&(t="api"),this.oldLeft=this.left,this.left!==e&&(this.left=e,this.eventService.dispatchEvent(this.createColumnEvent("leftChanged",t)))},e.prototype.isFilterActive=function(){return this.filterActive},e.prototype.setFilterActive=function(e,t,r){void 0===t&&(t="api"),this.filterActive!==e&&(this.filterActive=e,this.eventService.dispatchEvent(this.createColumnEvent("filterActiveChanged",t)));var o=this.createColumnEvent("filterChanged",t);r&&Object(c.mergeDeep)(o,r),this.eventService.dispatchEvent(o)},e.prototype.isHovered=function(){return this.columnHoverService.isHovered(this)},e.prototype.setPinned=function(e){this.pinned=!0===e||"left"===e?"left":"right"===e?"right":null},e.prototype.setFirstRightPinned=function(e,t){void 0===t&&(t="api"),this.firstRightPinned!==e&&(this.firstRightPinned=e,this.eventService.dispatchEvent(this.createColumnEvent("firstRightPinnedChanged",t)))},e.prototype.setLastLeftPinned=function(e,t){void 0===t&&(t="api"),this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.eventService.dispatchEvent(this.createColumnEvent("lastLeftPinnedChanged",t)))},e.prototype.isFirstRightPinned=function(){return this.firstRightPinned},e.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},e.prototype.isPinned=function(){return"left"===this.pinned||"right"===this.pinned},e.prototype.isPinnedLeft=function(){return"left"===this.pinned},e.prototype.isPinnedRight=function(){return"right"===this.pinned},e.prototype.getPinned=function(){return this.pinned},e.prototype.setVisible=function(e,t){void 0===t&&(t="api");var r=!0===e;this.visible!==r&&(this.visible=r,this.eventService.dispatchEvent(this.createColumnEvent("visibleChanged",t)))},e.prototype.isVisible=function(){return this.visible},e.prototype.isSpanHeaderHeight=function(){var e=this.getColDef();return!e.suppressSpanHeaderHeight&&!e.autoHeaderHeight},e.prototype.getColDef=function(){return this.colDef},e.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},e.prototype.getColId=function(){return this.colId},e.prototype.getId=function(){return this.colId},e.prototype.getUniqueId=function(){return this.colId},e.prototype.getDefinition=function(){return this.colDef},e.prototype.getActualWidth=function(){return this.actualWidth},e.prototype.getAutoHeaderHeight=function(){return this.autoHeaderHeight},e.prototype.setAutoHeaderHeight=function(e){var t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t},e.prototype.createBaseColDefParams=function(e){return{node:e,data:e.data,colDef:this.colDef,column:this,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}},e.prototype.getColSpan=function(e){if(Object(l.missing)(this.colDef.colSpan))return 1;var t=this.createBaseColDefParams(e),r=this.colDef.colSpan(t);return Math.max(r,1)},e.prototype.getRowSpan=function(e){if(Object(l.missing)(this.colDef.rowSpan))return 1;var t=this.createBaseColDefParams(e),r=this.colDef.rowSpan(t);return Math.max(r,1)},e.prototype.setActualWidth=function(e,t,r){void 0===t&&(t="api"),void 0===r&&(r=!1),null!=this.minWidth&&(e=Math.max(e,this.minWidth)),null!=this.maxWidth&&(e=Math.min(e,this.maxWidth)),this.actualWidth!==e&&(this.actualWidth=e,this.flex&&"flex"!==t&&"gridInitializing"!==t&&(this.flex=null),r||this.fireColumnWidthChangedEvent(t))},e.prototype.fireColumnWidthChangedEvent=function(e){this.eventService.dispatchEvent(this.createColumnEvent("widthChanged",e))},e.prototype.isGreaterThanMax=function(e){return null!=this.maxWidth&&e>this.maxWidth},e.prototype.getMinWidth=function(){return this.minWidth},e.prototype.getMaxWidth=function(){return this.maxWidth},e.prototype.getFlex=function(){return this.flex||0},e.prototype.setFlex=function(e){this.flex!==e&&(this.flex=e)},e.prototype.setMinimum=function(e){void 0===e&&(e="api"),Object(l.exists)(this.minWidth)&&this.setActualWidth(this.minWidth,e)},e.prototype.setRowGroupActive=function(e,t){void 0===t&&(t="api"),this.rowGroupActive!==e&&(this.rowGroupActive=e,this.eventService.dispatchEvent(this.createColumnEvent("columnRowGroupChanged",t)))},e.prototype.isRowGroupActive=function(){return this.rowGroupActive},e.prototype.setPivotActive=function(e,t){void 0===t&&(t="api"),this.pivotActive!==e&&(this.pivotActive=e,this.eventService.dispatchEvent(this.createColumnEvent("columnPivotChanged",t)))},e.prototype.isPivotActive=function(){return this.pivotActive},e.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},e.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},e.prototype.setValueActive=function(e,t){void 0===t&&(t="api"),this.aggregationActive!==e&&(this.aggregationActive=e,this.eventService.dispatchEvent(this.createColumnEvent("columnValueChanged",t)))},e.prototype.isValueActive=function(){return this.aggregationActive},e.prototype.isAllowPivot=function(){return!0===this.colDef.enablePivot},e.prototype.isAllowValue=function(){return!0===this.colDef.enableValue},e.prototype.isAllowRowGroup=function(){return!0===this.colDef.enableRowGroup},e.prototype.getMenuTabs=function(e){var t=this.getColDef().menuTabs;return null==t&&(t=e),t},e.EVENT_MOVING_CHANGED="movingChanged",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_WIDTH_CHANGED="widthChanged",e.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",e.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",e.EVENT_VISIBLE_CHANGED="visibleChanged",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_COL_DEF_CHANGED="colDefChanged",e.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",e.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_PIVOT_CHANGED="columnPivotChanged",e.EVENT_VALUE_CHANGED="columnValueChanged",u([Object(n.a)("gridOptionsService")],e.prototype,"gridOptionsService",void 0),u([Object(n.a)("columnUtils")],e.prototype,"columnUtils",void 0),u([Object(n.a)("columnHoverService")],e.prototype,"columnHoverService",void 0),u([n.e],e.prototype,"initialise",null),e}()},function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return i})),r.d(t,"d",(function(){return B})),r.d(t,"a",(function(){return Y}));var o,n,i,a=r(5),l=r(0),s=r(6),c=r(23),u=r(43),g=r(16),d=r(33),p=r(38),h=r(3),f=r(7),v=r(1),m=r(10),y=r(40),w=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),b=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},C=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},S=function(e){function t(t){var r=e.call(this)||this;return r.element=t,r}return w(t,e),t.prototype.postConstruct=function(){this.addKeyboardListeners(),this.addMouseListeners(),this.mockContextMenuForIPad()},t.prototype.addKeyboardListeners=function(){var e=this.processKeyboardEvent.bind(this,"keydown");this.addManagedListener(this.element,"keydown",e)},t.prototype.addMouseListeners=function(){var e=this;["dblclick","contextmenu","mouseover","mouseout","click",Object(c.isEventSupported)("touchstart")?"touchstart":"mousedown"].forEach((function(t){var r=e.processMouseEvent.bind(e,t);e.addManagedListener(e.element,t,r)}))},t.prototype.processMouseEvent=function(e,t){if(this.mouseEventService.isEventFromThisGrid(t)&&!Object(c.isStopPropagationForAgGrid)(t)){var r=this.getRowForEvent(t),o=this.mouseEventService.getRenderedCellForEvent(t);"contextmenu"===e?this.handleContextMenuMouseEvent(t,null,r,o):(o&&o.onMouseEvent(e,t),r&&r.onMouseEvent(e,t))}},t.prototype.mockContextMenuForIPad=function(){var e=this;if(Object(g.isIOSUserAgent)()){var t=new d.a(this.element);this.addManagedListener(t,d.a.EVENT_LONG_TAP,(function(t){var r=e.getRowForEvent(t.touchEvent),o=e.mouseEventService.getRenderedCellForEvent(t.touchEvent);e.handleContextMenuMouseEvent(null,t.touchEvent,r,o)})),this.addDestroyFunc((function(){return t.destroy()}))}},t.prototype.getRowForEvent=function(e){for(var t=e.target;t;){var r=this.gridOptionsService.getDomData(t,u.a.DOM_DATA_KEY_ROW_CTRL);if(r)return r;t=t.parentElement}return null},t.prototype.handleContextMenuMouseEvent=function(e,t,r,o){var n=r?r.getRowNode():null,i=o?o.getColumn():null,a=null;if(i){var l=e||t;o.dispatchCellContextMenuEvent(l),a=this.valueService.getValue(i,n)}var s=this.ctrlsService.getGridBodyCtrl(),c=o?o.getGui():s.getGridBodyElement();this.contextMenuFactory&&this.contextMenuFactory.onContextMenu(e,t,n,i,a,c)},t.prototype.getControlsForEventTarget=function(e){return{cellCtrl:Object(c.getCtrlForEventTarget)(this.gridOptionsService,e,y.a.DOM_DATA_KEY_CELL_CTRL),rowCtrl:Object(c.getCtrlForEventTarget)(this.gridOptionsService,e,u.a.DOM_DATA_KEY_ROW_CTRL)}},t.prototype.processKeyboardEvent=function(e,t){var r=this.getControlsForEventTarget(t.target),o=r.cellCtrl,n=r.rowCtrl;t.defaultPrevented||(o?this.processCellKeyboardEvent(o,e,t):n&&n.isFullWidth()&&this.processFullWidthRowKeyboardEvent(n,e,t))},t.prototype.processCellKeyboardEvent=function(e,t,r){var o=e.getRowNode(),n=e.getColumn(),i=e.isEditing();Object(p.isUserSuppressingKeyboardEvent)(this.gridOptionsService,r,o,n,i)||"keydown"===t&&(!i&&this.navigationService.handlePageScrollingKey(r)||e.onKeyDown(r),this.doGridOperations(r,e.isEditing()),Object(p.isEventFromPrintableCharacter)(r)&&e.processCharacter(r));if("keydown"===t){var a=e.createEvent(r,h.a.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(a)}},t.prototype.processFullWidthRowKeyboardEvent=function(e,t,r){var o=e.getRowNode(),n=this.focusService.getFocusedCell(),i=n&&n.column;if(!Object(p.isUserSuppressingKeyboardEvent)(this.gridOptionsService,r,o,i,!1)){var a=r.key;if("keydown"===t)switch(a){case f.a.PAGE_HOME:case f.a.PAGE_END:this.navigationService.handlePageScrollingKey(r);break;case f.a.UP:case f.a.DOWN:e.onKeyboardNavigate(r);break;case f.a.TAB:e.onTabKeyDown(r)}}if("keydown"===t){var l=e.createRowEvent(h.a.EVENT_CELL_KEY_DOWN,r);this.eventService.dispatchEvent(l)}},t.prototype.doGridOperations=function(e,t){if((e.ctrlKey||e.metaKey)&&!t&&this.mouseEventService.isEventFromThisGrid(e)){var r=Object(p.normaliseQwertyAzerty)(e);return r===f.a.A?this.onCtrlAndA(e):r===f.a.C?this.onCtrlAndC(e):r===f.a.D?this.onCtrlAndD(e):r===f.a.V?this.onCtrlAndV(e):r===f.a.X?this.onCtrlAndX(e):r===f.a.Y?this.onCtrlAndY():r===f.a.Z?this.onCtrlAndZ(e):void 0}},t.prototype.onCtrlAndA=function(e){var t=this.pinnedRowModel,r=this.paginationProxy,o=this.rangeService;if(o&&r.isRowsToRender()){var n=C([t.isEmpty("top"),t.isEmpty("bottom")],2),i=n[0]?null:"top",a=void 0,l=void 0;n[1]?(a=null,l=this.paginationProxy.getRowCount()-1):(a="bottom",l=t.getPinnedBottomRowData().length-1);var s=this.columnModel.getAllDisplayedColumns();if(Object(v.missingOrEmpty)(s))return;o.setCellRange({rowStartIndex:0,rowStartPinned:i,rowEndIndex:l,rowEndPinned:a,columnStart:s[0],columnEnd:Object(m.last)(s)})}e.preventDefault()},t.prototype.onCtrlAndC=function(e){if(this.clipboardService&&!this.gridOptionsService.is("enableCellTextSelection")){var t=this.getControlsForEventTarget(e.target),r=t.cellCtrl,o=t.rowCtrl;(null==r?void 0:r.isEditing())||(null==o?void 0:o.isEditing())||(e.preventDefault(),this.clipboardService.copyToClipboard())}},t.prototype.onCtrlAndX=function(e){if(this.clipboardService&&!this.gridOptionsService.is("enableCellTextSelection")&&!this.gridOptionsService.is("suppressCutToClipboard")){var t=this.getControlsForEventTarget(e.target),r=t.cellCtrl,o=t.rowCtrl;(null==r?void 0:r.isEditing())||(null==o?void 0:o.isEditing())||(e.preventDefault(),this.clipboardService.cutToClipboard(void 0,"ui"))}},t.prototype.onCtrlAndV=function(e){var t=this.getControlsForEventTarget(e.target),r=t.cellCtrl,o=t.rowCtrl;(null==r?void 0:r.isEditing())||(null==o?void 0:o.isEditing())||this.clipboardService&&!this.gridOptionsService.is("suppressClipboardPaste")&&this.clipboardService.pasteFromClipboard()},t.prototype.onCtrlAndD=function(e){this.clipboardService&&!this.gridOptionsService.is("suppressClipboardPaste")&&this.clipboardService.copyRangeDown(),e.preventDefault()},t.prototype.onCtrlAndZ=function(e){this.gridOptionsService.is("undoRedoCellEditing")&&(e.preventDefault(),e.shiftKey?this.undoRedoService.redo("ui"):this.undoRedoService.undo("ui"))},t.prototype.onCtrlAndY=function(){this.undoRedoService.redo("ui")},b([Object(l.a)("mouseEventService")],t.prototype,"mouseEventService",void 0),b([Object(l.a)("valueService")],t.prototype,"valueService",void 0),b([Object(l.d)("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),b([Object(l.a)("ctrlsService")],t.prototype,"ctrlsService",void 0),b([Object(l.a)("navigationService")],t.prototype,"navigationService",void 0),b([Object(l.a)("focusService")],t.prototype,"focusService",void 0),b([Object(l.a)("undoRedoService")],t.prototype,"undoRedoService",void 0),b([Object(l.a)("columnModel")],t.prototype,"columnModel",void 0),b([Object(l.a)("paginationProxy")],t.prototype,"paginationProxy",void 0),b([Object(l.a)("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),b([Object(l.d)("rangeService")],t.prototype,"rangeService",void 0),b([Object(l.d)("clipboardService")],t.prototype,"clipboardService",void 0),b([l.e],t.prototype,"postConstruct",null),t}(a.a),O=r(2),E=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),R=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},T=function(e){function t(t){var r=e.call(this)||this;return r.centerContainerCtrl=t,r}return E(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.listenForResize()})),this.addManagedListener(this.eventService,h.a.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this))},t.prototype.listenForResize=function(){var e=this,t=function(){return e.onCenterViewportResized()};this.centerContainerCtrl.registerViewportResizeListener(t),this.gridBodyCtrl.registerBodyViewportResizeListener(t)},t.prototype.onScrollbarWidthChanged=function(){this.checkViewportAndScrolls()},t.prototype.onCenterViewportResized=function(){if(this.centerContainerCtrl.isViewportVisible()){this.checkViewportAndScrolls();var e=this.centerContainerCtrl.getCenterWidth();e!==this.centerWidth&&(this.centerWidth=e,this.columnModel.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0},t.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.getScrollFeature().checkScrollLeft()},t.prototype.getBodyHeight=function(){return this.bodyHeight},t.prototype.checkBodyHeight=function(){var e=this.gridBodyCtrl.getBodyViewportElement(),t=Object(O.getInnerHeight)(e);if(this.bodyHeight!==t){this.bodyHeight=t;var r={type:h.a.EVENT_BODY_HEIGHT_CHANGED};this.eventService.dispatchEvent(r)}},t.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},t.prototype.updateScrollVisibleServiceImpl=function(){var e={horizontalScrollShowing:this.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(e)},t.prototype.isHorizontalScrollShowing=function(){return this.centerContainerCtrl.isHorizontalScrollShowing()},t.prototype.onHorizontalViewportChanged=function(){var e=this.centerContainerCtrl.getCenterWidth(),t=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(e,t)},R([Object(l.a)("ctrlsService")],t.prototype,"ctrlsService",void 0),R([Object(l.a)("columnModel")],t.prototype,"columnModel",void 0),R([Object(l.a)("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),R([l.e],t.prototype,"postConstruct",null),t}(a.a),x=r(50),A=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),D=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},P=function(e){function t(t){var r=e.call(this)||this;return r.element=t,r}return A(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,s.a.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},t.prototype.onPinnedLeftWidthChanged=function(){var e=this.pinnedWidthService.getPinnedLeftWidth(),t=e>0;Object(O.setDisplayed)(this.element,t),Object(O.setFixedWidth)(this.element,e)},t.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedLeftWidth()},D([Object(l.a)("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),D([l.e],t.prototype,"postConstruct",null),t}(a.a),M=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),N=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},L=function(e){function t(t){var r=e.call(this)||this;return r.element=t,r}return M(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,s.a.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},t.prototype.onPinnedRightWidthChanged=function(){var e=this.pinnedWidthService.getPinnedRightWidth(),t=e>0;Object(O.setDisplayed)(this.element,t),Object(O.setFixedWidth)(this.element,e)},t.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedRightWidth()},N([Object(l.a)("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),N([l.e],t.prototype,"postConstruct",null),t}(a.a),I=r(190),z=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),F=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},_=function(e){function t(t){var r=e.call(this)||this;return r.eContainer=t,r}return z(t,e),t.prototype.postConstruct=function(){var e=this;if(this.gridOptionsService.isEnableRangeSelection()&&!Object(v.missing)(this.rangeService)){var t={eElement:this.eContainer,onDragStart:this.rangeService.onDragStart.bind(this.rangeService),onDragStop:this.rangeService.onDragStop.bind(this.rangeService),onDragging:this.rangeService.onDragging.bind(this.rangeService)};this.dragService.addDragSource(t),this.addDestroyFunc((function(){return e.dragService.removeDragSource(t)}))}},F([Object(l.d)("rangeService")],t.prototype,"rangeService",void 0),F([Object(l.a)("dragService")],t.prototype,"dragService",void 0),F([l.e],t.prototype,"postConstruct",null),t}(a.a),k=r(87),j=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),G=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},H=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},V=function(e,t){for(var r=0,o=t.length,n=e.length;r=0&&t()},t.prototype.getContainerElement=function(){return this.eContainer},t.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},t.prototype.setComp=function(e,t,r,o){var i=this;this.comp=e,this.eContainer=t,this.eViewport=r,this.eWrapper=o,this.createManagedBean(new S(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var a=[n.TOP_CENTER,n.TOP_LEFT,n.TOP_RIGHT],l=[n.STICKY_TOP_CENTER,n.STICKY_TOP_LEFT,n.STICKY_TOP_RIGHT],c=[n.BOTTOM_CENTER,n.BOTTOM_LEFT,n.BOTTOM_RIGHT],u=[n.CENTER,n.LEFT,n.RIGHT],d=V(V(V(V([],H(a)),H(c)),H(u)),H(l)),p=[n.CENTER,n.LEFT,n.RIGHT,n.FULL_WIDTH],h=[n.CENTER,n.TOP_CENTER,n.STICKY_TOP_CENTER,n.BOTTOM_CENTER],f=[n.LEFT,n.BOTTOM_LEFT,n.TOP_LEFT,n.STICKY_TOP_LEFT],v=[n.RIGHT,n.BOTTOM_RIGHT,n.TOP_RIGHT,n.STICKY_TOP_RIGHT];this.forContainers(f,(function(){i.pinnedWidthFeature=i.createManagedBean(new P(i.eContainer)),i.addManagedListener(i.eventService,s.a.EVENT_LEFT_PINNED_WIDTH_CHANGED,(function(){return i.onPinnedWidthChanged()}))})),this.forContainers(v,(function(){i.pinnedWidthFeature=i.createManagedBean(new L(i.eContainer)),i.addManagedListener(i.eventService,s.a.EVENT_RIGHT_PINNED_WIDTH_CHANGED,(function(){return i.onPinnedWidthChanged()}))})),this.forContainers(p,(function(){return i.createManagedBean(new I.a(i.eContainer,i.eWrapper))})),this.forContainers(d,(function(){return i.createManagedBean(new _(i.eContainer))})),this.forContainers(h,(function(){return i.createManagedBean(new k.a((function(e){return i.comp.setContainerWidth(e+"px")})))})),Object(g.isInvisibleScrollbar)()&&(this.forContainers([n.CENTER],(function(){var e=i.enableRtl?s.a.EVENT_LEFT_PINNED_WIDTH_CHANGED:s.a.EVENT_RIGHT_PINNED_WIDTH_CHANGED;i.addManagedListener(i.eventService,e,(function(){return i.refreshPaddingForFakeScrollbar()}))})),this.refreshPaddingForFakeScrollbar()),this.addListeners(),this.registerWithCtrlsService()},t.prototype.refreshPaddingForFakeScrollbar=function(){var e=this,t=e.enableRtl,r=e.columnModel,o=e.name,i=e.eWrapper,a=e.eContainer,l=t?n.LEFT:n.RIGHT;this.forContainers([n.CENTER,l],(function(){var e=r.getContainerWidth(l),s=t?"marginLeft":"marginRight";o===n.CENTER?i.style[s]=e?"0px":"16px":a.style[s]=e?"16px":"0px"}))},t.prototype.addListeners=function(){var e=this;this.addManagedListener(this.eventService,s.a.EVENT_SCROLL_VISIBILITY_CHANGED,(function(){return e.onScrollVisibilityChanged()})),this.addManagedListener(this.eventService,s.a.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){return e.onDisplayedColumnsChanged()})),this.addManagedListener(this.eventService,s.a.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){return e.onDisplayedColumnsWidthChanged()})),this.addManagedListener(this.eventService,s.a.EVENT_DISPLAYED_ROWS_CHANGED,(function(t){return e.onDisplayedRowsChanged(t.afterScroll)})),this.onScrollVisibilityChanged(),this.onDisplayedColumnsChanged(),this.onDisplayedColumnsWidthChanged(),this.onDisplayedRowsChanged()},t.prototype.listenOnDomOrder=function(){var e=this;if([n.STICKY_TOP_CENTER,n.STICKY_TOP_LEFT,n.STICKY_TOP_RIGHT,n.STICKY_TOP_FULL_WIDTH].indexOf(this.name)>=0)this.comp.setDomOrder(!0);else{var t=function(){var t=e.gridOptionsService.is("ensureDomOrder"),r=e.gridOptionsService.isDomLayout("print");e.comp.setDomOrder(t||r)};this.addManagedPropertyListener("domLayout",t),t()}},t.prototype.stopHScrollOnPinnedRows=function(){var e=this;this.forContainers([n.TOP_CENTER,n.STICKY_TOP_CENTER,n.BOTTOM_CENTER],(function(){e.addManagedListener(e.eViewport,"scroll",(function(){return e.eViewport.scrollLeft=0}))}))},t.prototype.onDisplayedColumnsChanged=function(){var e=this;this.forContainers([n.CENTER],(function(){return e.onHorizontalViewportChanged()}))},t.prototype.onDisplayedColumnsWidthChanged=function(){var e=this;this.forContainers([n.CENTER],(function(){return e.onHorizontalViewportChanged()}))},t.prototype.onScrollVisibilityChanged=function(){var e=this,t=this.gridOptionsService.getScrollbarWidth()||0;if(this.name===n.CENTER){var r=this.scrollVisibleService.isHorizontalScrollShowing()?t:0,o=0==r?"100%":"calc(100% + "+r+"px)";this.animationFrameService.requestAnimationFrame((function(){return e.comp.setViewportHeight(o)}))}if(this.name===n.FULL_WIDTH){var i="calc(100% - "+(Object(g.isInvisibleScrollbar)()?16:0)+"px)";this.eContainer.style.setProperty("width",i)}},t.prototype.addPreventScrollWhileDragging=function(){var e=this,t=function(t){e.dragService.isDragging()&&t.cancelable&&t.preventDefault()};this.eContainer.addEventListener("touchmove",t,{passive:!1}),this.addDestroyFunc((function(){return e.eContainer.removeEventListener("touchmove",t)}))},t.prototype.onHorizontalViewportChanged=function(){var e=this.getCenterWidth(),t=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(e,t)},t.prototype.getCenterWidth=function(){return Object(O.getInnerWidth)(this.eViewport)},t.prototype.getCenterViewportScrollLeft=function(){return Object(O.getScrollLeft)(this.eViewport,this.enableRtl)},t.prototype.registerViewportResizeListener=function(e){var t=this.resizeObserverService.observeResize(this.eViewport,e);this.addDestroyFunc((function(){return t()}))},t.prototype.isViewportVisible=function(){return Object(O.isVisible)(this.eViewport)},t.prototype.getViewportScrollLeft=function(){return Object(O.getScrollLeft)(this.eViewport,this.enableRtl)},t.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsService.is("alwaysShowHorizontalScroll")||Object(O.isHorizontalScrollShowing)(this.eViewport)},t.prototype.getViewportElement=function(){return this.eViewport},t.prototype.setContainerTranslateX=function(e){this.eContainer.style.transform="translateX("+e+"px)"},t.prototype.getHScrollPosition=function(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}},t.prototype.setCenterViewportScrollLeft=function(e){Object(O.setScrollLeft)(this.eViewport,e,this.enableRtl)},t.prototype.isContainerVisible=function(){return!t.getPinned(this.name)||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0},t.prototype.onPinnedWidthChanged=function(){var e=this.isContainerVisible();this.visible!=e&&(this.visible=e,this.onDisplayedRowsChanged()),Object(g.isInvisibleScrollbar)()&&this.refreshPaddingForFakeScrollbar()},t.prototype.onDisplayedRowsChanged=function(e){var t=this;if(void 0===e&&(e=!1),this.visible){var r=this.gridOptionsService.isDomLayout("print"),o=this.getRowCtrls().filter((function(e){var o=e.isFullWidth(),n=t.embedFullWidthRows||r;return t.isFullWithContainer?!n&&o:n||!o}));this.comp.setRowCtrls(o,e)}else this.comp.setRowCtrls(this.EMPTY_CTRLS,!1)},t.prototype.getRowCtrls=function(){switch(this.name){case n.TOP_CENTER:case n.TOP_LEFT:case n.TOP_RIGHT:case n.TOP_FULL_WIDTH:return this.rowRenderer.getTopRowCtrls();case n.STICKY_TOP_CENTER:case n.STICKY_TOP_LEFT:case n.STICKY_TOP_RIGHT:case n.STICKY_TOP_FULL_WIDTH:return this.rowRenderer.getStickyTopRowCtrls();case n.BOTTOM_CENTER:case n.BOTTOM_LEFT:case n.BOTTOM_RIGHT:case n.BOTTOM_FULL_WIDTH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getRowCtrls()}},G([Object(l.a)("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),G([Object(l.a)("dragService")],t.prototype,"dragService",void 0),G([Object(l.a)("ctrlsService")],t.prototype,"ctrlsService",void 0),G([Object(l.a)("columnModel")],t.prototype,"columnModel",void 0),G([Object(l.a)("resizeObserverService")],t.prototype,"resizeObserverService",void 0),G([Object(l.a)("animationFrameService")],t.prototype,"animationFrameService",void 0),G([Object(l.a)("rowRenderer")],t.prototype,"rowRenderer",void 0),G([l.e],t.prototype,"postConstruct",null),t}(a.a)},function(e,t,r){"use strict";r.d(t,"e",(function(){return R})),r.d(t,"c",(function(){return T})),r.d(t,"b",(function(){return C})),r.d(t,"a",(function(){return x})),r.d(t,"d",(function(){return A}));var o={};r.r(o),r.d(o,"sortRowNodesByOrder",(function(){return w})),r.d(o,"traverseNodesWithKey",(function(){return b}));var n=r(9),i=r(10),a=r(16),l=r(24),s=r(2),c=r(23),u=r(11),g=r(82),d=r(1),p=r(18),h=r(38),f=r(50),v=r(83),m=r(49),y=r(14);function w(e,t){if(!e)return!1;for(var r=function(e,r){var o=t[e.id],n=t[r.id],i=void 0!==o,a=void 0!==n;return i&&a?o-n:!i&&!a?e.__objectId-r.__objectId:i?1:-1},o=!1,n=0;n0){o=!0;break}return!!o&&(e.sort(r),!0)}function b(e,t){var r=[];!function e(o){if(!o)return;o.forEach((function(o){if(o.group||o.hasChildren()){r.push(o.key);var n=r.join("|");t(o,n),e(o.childrenAfterGroup),r.pop()}}))}(e)}var C,S=r(84),O=r(27),E=function(){return(E=Object.assign||function(e){for(var t,r=1,o=arguments.length;r=0}function d(e){for(var t=[],r=e.target;r;)t.push(r),r=r.parentElement;return t}function p(e){var t=e;return t.path?t.path:t.composedPath?t.composedPath():d(t)}function h(e,t,r,i){var a=Object(o.includes)(n,r)?{passive:!0}:void 0;e&&e.addEventListener&&e.addEventListener(t,r,i,a)}},function(e,t,r){"use strict";r.r(t),r.d(t,"serialiseDate",(function(){return i})),r.d(t,"dateToFormattedString",(function(){return l})),r.d(t,"parseDateTimeFromString",(function(){return s}));var o=r(49),n=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a};function i(e,t,r){if(void 0===t&&(t=!0),void 0===r&&(r="-"),!e)return null;var n=[e.getFullYear(),e.getMonth()+1,e.getDate()].map((function(e){return Object(o.padStartWidthZeros)(e,2)})).join(r);return t&&(n+=" "+[e.getHours(),e.getMinutes(),e.getSeconds()].map((function(e){return Object(o.padStartWidthZeros)(e,2)})).join(":")),n}var a=function(e){if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"};function l(e,t){void 0===t&&(t="YYYY-MM-DD");var r=Object(o.padStartWidthZeros)(e.getFullYear(),4),n=["January","February","March","April","May","June","July","August","September","October","November","December"],i=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],l={YYYY:function(){return r.slice(r.length-4,r.length)},YY:function(){return r.slice(r.length-2,r.length)},Y:function(){return""+e.getFullYear()},MMMM:function(){return n[e.getMonth()]},MMM:function(){return n[e.getMonth()].slice(0,3)},MM:function(){return Object(o.padStartWidthZeros)(e.getMonth()+1,2)},Mo:function(){return""+(e.getMonth()+1)+a(e.getMonth()+1)},M:function(){return""+(e.getMonth()+1)},Do:function(){return""+e.getDate()+a(e.getDate())},DD:function(){return Object(o.padStartWidthZeros)(e.getDate(),2)},D:function(){return""+e.getDate()},dddd:function(){return i[e.getDay()]},ddd:function(){return i[e.getDay()].slice(0,3)},dd:function(){return i[e.getDay()].slice(0,2)},do:function(){return""+e.getDay()+a(e.getDay())},d:function(){return""+e.getDay()}},s=new RegExp(Object.keys(l).join("|"),"g");return t.replace(s,(function(e){return e in l?l[e]():e}))}function s(e){if(!e)return null;var t=n(e.split(" "),2),r=t[0],o=t[1];if(!r)return null;var i=r.split("-").map((function(e){return parseInt(e,10)}));if(3!==i.filter((function(e){return!isNaN(e)})).length)return null;var a=n(i,3),l=a[0],s=a[1],c=a[2],u=new Date(l,s-1,c);if(u.getFullYear()!==l||u.getMonth()!==s-1||u.getDate()!==c)return null;if(!o||"00:00:00"===o)return u;var g=n(o.split(":").map((function(e){return parseInt(e,10)})),3),d=g[0],p=g[1],h=g[2];return d>=0&&d<24&&u.setHours(d),p>=0&&p<60&&u.setMinutes(p),h>=0&&h<60&&u.setSeconds(h),u}},function(e,t,r){"use strict";r.d(t,"b",(function(){return y})),r.d(t,"a",(function(){return w}));var o,n=r(187),i=r(57),a=r(22),l=r(63),s=r(75),c=r(10),u=r(2),g=r(188),d=r(12),p=r(44),h=r(11),f=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),v=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},m=function(e,t){for(var r=0,o=t.length,n=e.length;r=0?0:e===t.IN_RANGE?2:1},t.prototype.onFloatingFilterChanged=function(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged(!0)},t.prototype.setTypeFromFloatingFilter=function(e){var t=this;this.eTypes.forEach((function(r,o){0===o?r.setValue(e,!0):r.setValue(t.optionsFactory.getDefaultOption(),!0)}))},t.prototype.getModelFromUi=function(){var e=this.getUiCompleteConditions();return 0===e.length?null:this.maxNumConditions>1&&e.length>1?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:e[0],condition2:e[1],conditions:e}:e[0]},t.prototype.getConditionTypes=function(){return this.eTypes.map((function(e){return e.getValue()}))},t.prototype.getConditionType=function(e){return this.eTypes[e].getValue()},t.prototype.getJoinOperator=function(){return 0===this.eJoinOperatorsOr.length?this.defaultJoinOperator:!0===this.eJoinOperatorsOr[0].getValue()?"OR":"AND"},t.prototype.areModelsEqual=function(e,t){var r=this;if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;var o,n=!e.operator,i=!t.operator;if(!n&&i||n&&!i)return!1;if(n){var a=e,l=t;o=this.areSimpleModelsEqual(a,l)}else{var s=e,u=t;o=s.operator===u.operator&&Object(c.areEqual)(s.conditions,u.conditions,(function(e,t){return r.areSimpleModelsEqual(e,t)}))}return o},t.prototype.setModelIntoUi=function(e){var t=this;if(e.operator){var r=e;r.conditions||(r.conditions=[r.condition1,r.condition2]);var o=this.validateAndUpdateConditions(r.conditions),n=this.getNumConditions();if(on)for(var i=n;i1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(s.type,!0),this.setConditionIntoUi(s,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.onUiChanged(),a.a.resolve()},t.prototype.validateAndUpdateConditions=function(e){var t=e.length;return t>this.maxNumConditions&&(e.splice(this.maxNumConditions),Object(h.doOnce)((function(){return console.warn('AG Grid: Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.')}),"simpleFilterSetModelMaxNumConditions"),t=this.maxNumConditions),t},t.prototype.doesFilterPass=function(e){var t,r=this,o=this.getModel();if(null==o)return!0;var n=o.operator,i=[];if(n){var a=o;i.push.apply(i,m([],v(null!==(t=a.conditions)&&void 0!==t?t:[])))}else i.push(o);return i[n&&"OR"===n?"some":"every"]((function(t){return r.individualConditionPasses(e,t)}))},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.setNumConditions(t),this.defaultJoinOperator=this.getDefaultJoinOperator(t.defaultJoinOperator),this.filterPlaceholder=t.filterPlaceholder,this.optionsFactory=new n.a,this.optionsFactory.init(t,this.getDefaultFilterOptions()),this.createFilterListOptions(),this.createOption(),this.createMissingConditionsAndOperators()},t.prototype.setNumConditions=function(e){var t,r;null!=e.suppressAndOrCondition&&Object(h.doOnce)((function(){return console.warn('AG Grid: Since v29.2 "filterParams.suppressAndOrCondition" is deprecated. Use "filterParams.maxNumConditions = 1" instead.')}),"simpleFilterSuppressAndOrCondition"),null!=e.alwaysShowBothConditions&&Object(h.doOnce)((function(){return console.warn('AG Grid: Since v29.2 "filterParams.alwaysShowBothConditions" is deprecated. Use "filterParams.numAlwaysVisibleConditions = 2" instead.')}),"simpleFilterAlwaysShowBothConditions"),this.maxNumConditions=null!==(t=e.maxNumConditions)&&void 0!==t?t:e.suppressAndOrCondition?1:2,this.maxNumConditions<1&&(Object(h.doOnce)((function(){return console.warn('AG Grid: "filterParams.maxNumConditions" must be greater than or equal to zero.')}),"simpleFilterMaxNumConditions"),this.maxNumConditions=1),this.numAlwaysVisibleConditions=null!==(r=e.numAlwaysVisibleConditions)&&void 0!==r?r:e.alwaysShowBothConditions?2:1,this.numAlwaysVisibleConditions<1&&(Object(h.doOnce)((function(){return console.warn('AG Grid: "filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.')}),"simpleFilterNumAlwaysVisibleConditions"),this.numAlwaysVisibleConditions=1),this.numAlwaysVisibleConditions>this.maxNumConditions&&(Object(h.doOnce)((function(){return console.warn('AG Grid: "filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".')}),"simpleFilterNumAlwaysVisibleGreaterThanMaxNumConditions"),this.numAlwaysVisibleConditions=this.maxNumConditions)},t.prototype.createOption=function(){var e=this,t=this.createManagedBean(new l.a);this.eTypes.push(t),t.addCssClass("ag-filter-select"),this.eFilterBody.appendChild(t.getGui());var r=this.createValueElement();this.eConditionBodies.push(r),this.eFilterBody.appendChild(r),this.putOptionsIntoDropdown(t),this.resetType(t);var o=this.getNumConditions()-1;this.forEachPositionInput(o,(function(t){return e.resetInput(t)})),this.addChangedListeners(t,o)},t.prototype.createJoinOperatorPanel=function(){var e=document.createElement("div");this.eJoinOperatorPanels.push(e),e.classList.add("ag-filter-condition");var t=this.createJoinOperator(this.eJoinOperatorsAnd,e,"and"),r=this.createJoinOperator(this.eJoinOperatorsOr,e,"or");this.eFilterBody.appendChild(e);var o=this.eJoinOperatorPanels.length-1,n=this.joinOperatorId++;this.resetJoinOperatorAnd(t,o,n),this.resetJoinOperatorOr(r,o,n),this.isReadOnly()||(t.onValueChange(this.listener),r.onValueChange(this.listener))},t.prototype.createJoinOperator=function(e,t,r){var o=this.createManagedBean(new s.a);return e.push(o),o.addCssClass("ag-filter-condition-operator"),o.addCssClass("ag-filter-condition-operator-"+r),t.appendChild(o.getGui()),o},t.prototype.getDefaultJoinOperator=function(e){return"AND"===e||"OR"===e?e:"AND"},t.prototype.createFilterListOptions=function(){var e=this,t=this.optionsFactory.getFilterOptions();this.filterListOptions=t.map((function(t){return"string"==typeof t?e.createBoilerplateListOption(t):e.createCustomListOption(t)}))},t.prototype.putOptionsIntoDropdown=function(e){this.filterListOptions.forEach((function(t){e.addOption(t)})),e.setDisabled(this.filterListOptions.length<=1)},t.prototype.createBoilerplateListOption=function(e){return{value:e,text:this.translate(e)}},t.prototype.createCustomListOption=function(e){var t=e.displayKey,r=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:r?this.localeService.getLocaleTextFunc()(r.displayKey,r.displayName):this.translate(t)}},t.prototype.isAllowTwoConditions=function(){return this.maxNumConditions>=2},t.prototype.createBodyTemplate=function(){return""},t.prototype.getCssIdentifier=function(){return"simple-filter"},t.prototype.updateUiVisibility=function(){var e=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,e)},t.prototype.updateNumConditions=function(){for(var e,t=-1,r=!0,o=0;o0&&this.removeConditionsAndOperators(i,a),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=t},t.prototype.updateConditionStatusesAndValues=function(e,t){var r=this;this.eTypes.forEach((function(t,o){var n=r.isConditionDisabled(o,e);t.setDisabled(n||r.filterListOptions.length<=1),1===o&&(Object(u.setDisabled)(r.eJoinOperatorPanels[0],n),r.eJoinOperatorsAnd[0].setDisabled(n),r.eJoinOperatorsOr[0].setDisabled(n))})),this.eConditionBodies.forEach((function(e,t){Object(u.setDisplayed)(e,r.isConditionBodyVisible(t))}));var o="OR"===(null!=t?t:this.getJoinOperator());this.eJoinOperatorsAnd.forEach((function(e,t){e.setValue(!o,!0)})),this.eJoinOperatorsOr.forEach((function(e,t){e.setValue(o,!0)})),this.forEachInput((function(t,o,n,i){r.setElementDisplayed(t,o=this.getNumConditions())){this.removeComponents(this.eTypes,e,t),this.removeElements(this.eConditionBodies,e,t),this.removeValueElements(e,t);var r=Math.max(e-1,0);this.removeElements(this.eJoinOperatorPanels,r,t),this.removeComponents(this.eJoinOperatorsAnd,r,t),this.removeComponents(this.eJoinOperatorsOr,r,t)}},t.prototype.removeElements=function(e,t,r){this.removeItems(e,t,r).forEach((function(e){return Object(u.removeFromParent)(e)}))},t.prototype.removeComponents=function(e,t,r){var o=this;this.removeItems(e,t,r).forEach((function(e){Object(u.removeFromParent)(e.getGui()),o.destroyBean(e)}))},t.prototype.removeItems=function(e,t,r){return null==r?e.splice(t):e.splice(t,r)},t.prototype.afterGuiAttached=function(t){if(e.prototype.afterGuiAttached.call(this,t),this.resetPlaceholder(),!t||!t.suppressFocus&&!this.isReadOnly()){var r=this.getInputs(0)[0];if(!r)return;r instanceof p.a&&r.getInputElement().focus()}},t.prototype.afterGuiDetached=function(){e.prototype.afterGuiDetached.call(this);var t=this.getModel();this.areModelsEqual(t,this.getModelFromUi())&&!this.hasInvalidInputs()||this.resetUiToActiveModel(t);for(var r=-1,o=-1,n=!1,i=this.getJoinOperator(),a=this.getNumConditions()-1;a>=0;a--)if(this.isConditionUiComplete(a))-1===r&&(r=a,o=a);else{var l=a=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(a-1)||l)&&(this.removeConditionsAndOperators(a,1),n=!0,l&&o--)}var s=!1;this.getNumConditions()1?"inRangeStart":0===o?"filterOoo":"inRangeEnd",l=0===o&&i>1?t("ariaFilterFromValue","Filter from value"):0===o?t("ariaFilterValue","Filter Value"):t("ariaFilterToValue","Filter to Value");r.setInputPlaceholder(e.getPlaceholderText(a,n)),r.setInputAriaLabel(l)}}))},t.prototype.setElementValue=function(e,t){e instanceof p.a&&e.setValue(null!=t?String(t):null,!0)},t.prototype.setElementDisplayed=function(e,t){e instanceof d.a&&Object(u.setDisplayed)(e.getGui(),t)},t.prototype.setElementDisabled=function(e,t){e instanceof d.a&&Object(u.setDisabled)(e.getGui(),t)},t.prototype.attachElementOnChange=function(e,t){e instanceof p.a&&e.onValueChange(t)},t.prototype.forEachInput=function(e){var t=this;this.getConditionTypes().forEach((function(r,o){t.forEachPositionTypeInput(o,r,e)}))},t.prototype.forEachPositionInput=function(e,t){var r=this.getConditionType(e);this.forEachPositionTypeInput(e,r,t)},t.prototype.forEachPositionTypeInput=function(e,t,r){for(var o=this.getNumberOfInputs(t),n=this.getInputs(e),i=0;it+1},t.prototype.isConditionBodyVisible=function(e){var t=this.getConditionType(e);return this.getNumberOfInputs(t)>0},t.prototype.isConditionUiComplete=function(e){return!(e>=this.getNumConditions())&&(this.getConditionType(e)!==t.EMPTY&&!this.getValues(e).some((function(e){return null==e})))},t.prototype.getNumConditions=function(){return this.eTypes.length},t.prototype.getUiCompleteConditions=function(){for(var e=[],t=0;t0)},t.prototype.resetInput=function(e){this.setElementValue(e,null),this.setElementDisabled(e,this.isReadOnly())},t.prototype.setConditionIntoUi=function(e,t){var r=this,o=this.mapValuesFromModel(e);this.forEachInput((function(e,n,i,a){i===t&&r.setElementValue(e,null!=o[n]?o[n]:null)}))},t.prototype.setValueFromFloatingFilter=function(e){var t=this;this.forEachInput((function(r,o,n,i){t.setElementValue(r,0===o&&0===n?e:null)}))},t.prototype.isDefaultOperator=function(e){return e===this.defaultJoinOperator},t.prototype.addChangedListeners=function(e,t){var r=this;this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(t,(function(e){r.attachElementOnChange(e,r.listener)})))},t.prototype.individualConditionPasses=function(e,t){var r=this.getCellValue(e.node),o=this.mapValuesFromModel(t),n=this.optionsFactory.getCustomOption(t.type),i=this.evaluateCustomFilter(n,o,r);return null!=i?i:null==r?this.evaluateNullValue(t.type):this.evaluateNonNullValue(o,r,t,e)},t.prototype.evaluateCustomFilter=function(e,t,r){if(null!=e){var o=e.predicate;return null==o||t.some((function(e){return null==e}))?void 0:o(t,r)}},t.prototype.isBlank=function(e){return null==e||"string"==typeof e&&0===e.trim().length},t.prototype.hasInvalidInputs=function(){return!1},t.EMPTY="empty",t.BLANK="blank",t.NOT_BLANK="notBlank",t.EQUALS="equals",t.NOT_EQUAL="notEqual",t.LESS_THAN="lessThan",t.LESS_THAN_OR_EQUAL="lessThanOrEqual",t.GREATER_THAN="greaterThan",t.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",t.IN_RANGE="inRange",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.STARTS_WITH="startsWith",t.ENDS_WITH="endsWith",t}(i.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var o=r(20),n=r(35),i=r(0),a=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},l=function(){function e(e,t,r,i){this.localEventService=new n.a,this.expandable=!1,this.instanceId=Object(o.b)(),this.expandableListenerRemoveCallback=null,this.colGroupDef=e,this.groupId=t,this.expanded=!!e&&!!e.openByDefault,this.padding=r,this.level=i}return e.prototype.destroy=function(){this.expandableListenerRemoveCallback&&this.reset(null,void 0)},e.prototype.reset=function(e,t){this.colGroupDef=e,this.level=t,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0},e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.setOriginalParent=function(e){this.originalParent=e},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.getLevel=function(){return this.level},e.prototype.isVisible=function(){return!!this.children&&this.children.some((function(e){return e.isVisible()}))},e.prototype.isPadding=function(){return this.padding},e.prototype.setExpanded=function(t){this.expanded=void 0!==t&&t;var r={type:e.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(r)},e.prototype.isExpandable=function(){return this.expandable},e.prototype.isExpanded=function(){return this.expanded},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getId=function(){return this.getGroupId()},e.prototype.setChildren=function(e){this.children=e},e.prototype.getChildren=function(){return this.children},e.prototype.getColGroupDef=function(){return this.colGroupDef},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.addLeafColumns=function(t){this.children&&this.children.forEach((function(r){r instanceof o.a?t.push(r):r instanceof e&&r.addLeafColumns(t)}))},e.prototype.getColumnGroupShow=function(){var e=this.colGroupDef;if(e)return e.columnGroupShow},e.prototype.setupExpandable=function(){var e=this;this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();var t=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach((function(e){return e.addEventListener("visibleChanged",t)})),this.expandableListenerRemoveCallback=function(){e.getLeafColumns().forEach((function(e){return e.removeEventListener("visibleChanged",t)})),e.expandableListenerRemoveCallback=null}},e.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,r=!1,o=!1,n=this.findChildrenRemovingPadding(),i=0,a=n.length;i"']/g,n={"&":"&","<":"<",">":">",'"':""","'":"'"};function i(e){var t=String.fromCharCode;function r(e,r){return t(e>>r&63|128)}function o(e){if(e>=0&&e<=31&&10!==e)return"_x"+e.toString(16).toUpperCase().padStart(4,"0")+"_";if(0==(4294967168&e))return t(e);var o="";return 0==(4294965248&e)?o=t(e>>6&31|192):0==(4294901760&e)?(!function(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}(e),o=t(e>>12&15|224),o+=r(e,6)):0==(4292870144&e)&&(o=t(e>>18&7|240),o+=r(e,12),o+=r(e,6)),o+=t(63&e|128)}for(var n=function(e){var t=[];if(!e)return[];for(var r,o,n=e.length,i=0;i=55296&&r<=56319&&i1?e.substring(1,e.length):"")})).join(" ")}function c(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLocaleLowerCase()}))}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return u}));var o,n,i=r(0),a=r(5),l=r(11),s=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};!function(e){e.AUTO_HEIGHT="ag-layout-auto-height",e.NORMAL="ag-layout-normal",e.PRINT="ag-layout-print"}(n||(n={}));var u=function(e){function t(t){var r=e.call(this)||this;return r.view=t,r}return s(t,e),t.prototype.postConstruct=function(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},t.prototype.updateLayoutClasses=function(){var e=this.getDomLayout(),t={autoHeight:"autoHeight"===e,normal:"normal"===e,print:"print"===e},r=t.autoHeight?n.AUTO_HEIGHT:t.print?n.PRINT:n.NORMAL;this.view.updateLayoutClasses(r,t)},t.prototype.getDomLayout=function(){var e,t=null!==(e=this.gridOptionsService.get("domLayout"))&&void 0!==e?e:"normal";return-1===["normal","print","autoHeight"].indexOf(t)?(Object(l.doOnce)((function(){return console.warn("AG Grid: "+t+" is not valid for DOM Layout, valid values are 'normal', 'autoHeight', 'print'.")}),"warn about dom layout values"),"normal"):t},c([i.e],t.prototype,"postConstruct",null),t}(a.a)},function(e,t,r){"use strict";r.d(t,"c",(function(){return o})),r.d(t,"j",(function(){return n})),r.d(t,"k",(function(){return i})),r.d(t,"b",(function(){return a})),r.d(t,"a",(function(){return l})),r.d(t,"l",(function(){return s})),r.d(t,"m",(function(){return c})),r.d(t,"n",(function(){return u})),r.d(t,"q",(function(){return g})),r.d(t,"d",(function(){return d})),r.d(t,"e",(function(){return p})),r.d(t,"p",(function(){return h})),r.d(t,"o",(function(){return f})),r.d(t,"f",(function(){return v})),r.d(t,"i",(function(){return m})),r.d(t,"h",(function(){return y})),r.d(t,"g",(function(){return w}));var o={propertyName:"dateComponent",cellRenderer:!1},n={propertyName:"headerComponent",cellRenderer:!1},i={propertyName:"headerGroupComponent",cellRenderer:!1},a={propertyName:"cellRenderer",cellRenderer:!0},l={propertyName:"cellEditor",cellRenderer:!1},s={propertyName:"innerRenderer",cellRenderer:!0},c={propertyName:"loadingOverlayComponent",cellRenderer:!1},u={propertyName:"noRowsOverlayComponent",cellRenderer:!1},g={propertyName:"tooltipComponent",cellRenderer:!1},d={propertyName:"filter",cellRenderer:!1},p={propertyName:"floatingFilterComponent",cellRenderer:!1},h={propertyName:"toolPanel",cellRenderer:!1},f={propertyName:"statusPanel",cellRenderer:!1},v={propertyName:"fullWidthCellRenderer",cellRenderer:!0},m={propertyName:"loadingCellRenderer",cellRenderer:!0},y={propertyName:"groupRowRenderer",cellRenderer:!0},w={propertyName:"detailCellRenderer",cellRenderer:!0}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var o,n=r(25),i=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.scalarFilterParams=t},t.prototype.evaluateNullValue=function(e){switch(e){case t.EQUALS:case t.NOT_EQUAL:if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case t.GREATER_THAN:case t.GREATER_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case t.LESS_THAN:case t.LESS_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case t.IN_RANGE:if(this.scalarFilterParams.includeBlanksInRange)return!0;break;case t.BLANK:return!0;case t.NOT_BLANK:return!1}return!1},t.prototype.evaluateNonNullValue=function(e,r,o){var n=this.comparator(),i=null!=e[0]?n(e[0],r):0;switch(o.type){case t.EQUALS:return 0===i;case t.NOT_EQUAL:return 0!==i;case t.GREATER_THAN:return i>0;case t.GREATER_THAN_OR_EQUAL:return i>=0;case t.LESS_THAN:return i<0;case t.LESS_THAN_OR_EQUAL:return i<=0;case t.IN_RANGE:var a=n(e[1],r);return this.scalarFilterParams.inRangeInclusive?i>=0&&a<=0:i>0&&a<0;case t.BLANK:return this.isBlank(r);case t.NOT_BLANK:return!this.isBlank(r);default:return console.warn('AG Grid: Unexpected type of filter "'+o.type+'", it looks like the filter was configured with incorrect Filter Options'),!0}},t}(n.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var o=r(20),n=r(35),i=r(0),a=r(10),l=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},s=function(){function e(e,t,r,o){this.displayedChildren=[],this.localEventService=new n.a,this.groupId=t,this.partId=r,this.providedColumnGroup=e,this.pinned=o}return e.createUniqueId=function(e,t){return e+"_"+t},e.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},e.prototype.getParent=function(){return this.parent},e.prototype.setParent=function(e){this.parent=e},e.prototype.getUniqueId=function(){return e.createUniqueId(this.groupId,this.partId)},e.prototype.isEmptyGroup=function(){return 0===this.displayedChildren.length},e.prototype.isMoving=function(){var e=this.getProvidedColumnGroup().getLeafColumns();return!(!e||0===e.length)&&e.every((function(e){return e.isMoving()}))},e.prototype.checkLeft=function(){if(this.displayedChildren.forEach((function(t){t instanceof e&&t.checkLeft()})),this.displayedChildren.length>0)if(this.gridOptionsService.is("enableRtl")){var t=Object(a.last)(this.displayedChildren).getLeft();this.setLeft(t)}else{var r=this.displayedChildren[0].getLeft();this.setLeft(r)}else this.setLeft(null)},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.setLeft=function(t){this.oldLeft=t,this.left!==t&&(this.left=t,this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_LEFT_CHANGED)))},e.prototype.getPinned=function(){return this.pinned},e.prototype.createAgEvent=function(e){return{type:e}},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getPartId=function(){return this.partId},e.prototype.isChildInThisGroupDeepSearch=function(t){var r=!1;return this.children.forEach((function(o){t===o&&(r=!0),o instanceof e&&o.isChildInThisGroupDeepSearch(t)&&(r=!0)})),r},e.prototype.getActualWidth=function(){var e=0;return this.displayedChildren&&this.displayedChildren.forEach((function(t){e+=t.getActualWidth()})),e},e.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var e=!1;return this.displayedChildren.forEach((function(t){t.isResizable()&&(e=!0)})),e},e.prototype.getMinWidth=function(){var e=0;return this.displayedChildren.forEach((function(t){e+=t.getMinWidth()||0})),e},e.prototype.addChild=function(e){this.children||(this.children=[]),this.children.push(e)},e.prototype.getDisplayedChildren=function(){return this.displayedChildren},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.getDisplayedLeafColumns=function(){var e=[];return this.addDisplayedLeafColumns(e),e},e.prototype.getDefinition=function(){return this.providedColumnGroup.getColGroupDef()},e.prototype.getColGroupDef=function(){return this.providedColumnGroup.getColGroupDef()},e.prototype.isPadding=function(){return this.providedColumnGroup.isPadding()},e.prototype.isExpandable=function(){return this.providedColumnGroup.isExpandable()},e.prototype.isExpanded=function(){return this.providedColumnGroup.isExpanded()},e.prototype.setExpanded=function(e){this.providedColumnGroup.setExpanded(e)},e.prototype.addDisplayedLeafColumns=function(t){this.displayedChildren.forEach((function(r){r instanceof o.a?t.push(r):r instanceof e&&r.addDisplayedLeafColumns(t)}))},e.prototype.addLeafColumns=function(t){this.children.forEach((function(r){r instanceof o.a?t.push(r):r instanceof e&&r.addLeafColumns(t)}))},e.prototype.getChildren=function(){return this.children},e.prototype.getColumnGroupShow=function(){return this.providedColumnGroup.getColumnGroupShow()},e.prototype.getProvidedColumnGroup=function(){return this.providedColumnGroup},e.prototype.getPaddingLevel=function(){var e=this.getParent();return this.isPadding()&&e&&e.isPadding()?1+e.getPaddingLevel():0},e.prototype.calculateDisplayedColumns=function(){var t=this;this.displayedChildren=[];for(var r=this;null!=r&&r.isPadding();)r=r.getParent();if(!(!!r&&r.providedColumnGroup.isExpandable()))return this.displayedChildren=this.children,void this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED));this.children.forEach((function(o){if(!(o instanceof e&&(!o.displayedChildren||!o.displayedChildren.length)))switch(o.getColumnGroupShow()){case"open":r.providedColumnGroup.isExpanded()&&t.displayedChildren.push(o);break;case"closed":r.providedColumnGroup.isExpanded()||t.displayedChildren.push(o);break;default:t.displayedChildren.push(o)}})),this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED))},e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",l([Object(i.a)("gridOptionsService")],e.prototype,"gridOptionsService",void 0),e}()},function(e,t,r){"use strict";r.d(t,"b",(function(){return f})),r.d(t,"a",(function(){return m})),r.d(t,"c",(function(){return y})),r.d(t,"d",(function(){return w}));var o=r(102),n=r(64),i=r(0),a=r(13),l=r(15),s=r(45),c=r(11),u=r(82),g=r(14),d=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},p=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},h=function(e,t){for(var r=0,o=t.length,n=e.length;r0&&Object(c.doOnce)((function(){return console.warn("AG Grid: to see all the valid "+o+" properties please check: "+n)}),"invalidProperties"+o+n)},e.prototype.checkForDeprecated=function(){var e=this.gridOptions;Object.entries(this.deprecatedProperties).forEach((function(t){var r,o=p(t,2),n=o[0],i=o[1],a=e[n];a&&(f(i.version,n,i.newProp,i.message),i.copyToNewProp&&i.newProp&&null==e[i.newProp]&&(e[i.newProp]=null!==(r=i.newPropValue)&&void 0!==r?r:a))})),e.serverSideStoreType&&(console.warn("AG Grid: since v29.0, `serverSideStoreType` has been replaced by `suppressServerSideInfiniteScroll`. Set to false to use Partial Store, and true to use Full Store."),e.suppressServerSideInfiniteScroll="partial"!==e.serverSideStoreType)},e.prototype.checkForViolations=function(){this.gridOptionsService.is("treeData")&&this.treeDataViolations()},e.prototype.treeDataViolations=function(){this.gridOptionsService.isRowModelType("clientSide")&&(this.gridOptionsService.exists("getDataPath")||console.warn("AG Grid: property usingTreeData=true with rowModel=clientSide, but you did not provide getDataPath function, please provide getDataPath function if using tree data.")),this.gridOptionsService.isRowModelType("serverSide")&&(this.gridOptionsService.exists("isServerSideGroup")||console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide isServerSideGroup function, please provide isServerSideGroup function if using tree data."),this.gridOptionsService.exists("getServerSideGroupKey")||console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data."))},d([Object(i.a)("gridOptions")],e.prototype,"gridOptions",void 0),d([Object(i.a)("gridOptionsService")],e.prototype,"gridOptionsService",void 0),d([i.e],e.prototype,"init",null),e=d([Object(i.b)("gridOptionsValidator")],e)}();function y(e,t){var r=["groupRows","multipleColumns","custom","singleColumn"];return r.indexOf(t)<0?(console.warn("AG Grid: '"+t+"' is not a valid groupDisplayType value - possible values are: '"+r.join("', '")+"'"),!1):t===e}function w(e,t){var r=["auto","custom"];return r.indexOf(t)<0?(console.warn("AG Grid: '"+t+"' is not a valid treeDataDisplayType value - possible values are: '"+r.join("', '")+"'"),!1):t===e}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var o=r(35),n=r(83),i=function(){function e(e,t){var r=this;void 0===t&&(t=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new o.a,this.eElement=e,this.preventMouseClick=t;var n=this.onTouchStart.bind(this),i=this.onTouchMove.bind(this),a=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",n,{passive:!0}),this.eElement.addEventListener("touchmove",i,{passive:!0}),this.eElement.addEventListener("touchend",a,{passive:!1}),this.destroyFuncs.push((function(){r.eElement.removeEventListener("touchstart",n,{passive:!0}),r.eElement.removeEventListener("touchmove",i,{passive:!0}),r.eElement.removeEventListener("touchend",a,{passive:!1})}))}return e.prototype.getActiveTouch=function(e){for(var t=0;t0)if(t-this.lastTapTime>e.DOUBLE_TAP_MILLIS){var r={type:e.EVENT_DOUBLE_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(r),this.lastTapTime=null}else this.lastTapTime=t;else this.lastTapTime=t},e.prototype.destroy=function(){this.destroyFuncs.forEach((function(e){return e()}))},e.EVENT_TAP="tap",e.EVENT_DOUBLE_TAP="doubleTap",e.EVENT_LONG_TAP="longTap",e.DOUBLE_TAP_MILLIS=500,e}()},function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return C}));var o,n,i=r(0),a=r(9),l=r(2),s=r(14),c=r(12),u=r(8),g=r(85),d=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},h=function(e){function t(r){var o=e.call(this,t.TEMPLATE,r)||this;return o.headerCompVersion=0,o.column=r.getColumnGroupChild(),o.pinned=r.getPinned(),o}return d(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),r=function(e,r,o){var n=o||t;null!=r&&""!=r?n.setAttribute(e,r):n.removeAttribute(e)},o={setWidth:function(e){return t.style.width=e},addOrRemoveCssClass:function(t,r){return e.addOrRemoveCssClass(t,r)},setColId:function(e){return r("col-id",e)},setTitle:function(e){return r("title",e)},setAriaDescription:function(e){return Object(a.setAriaDescription)(t,e)},setAriaSort:function(e){return e?Object(a.setAriaSort)(t,e):Object(a.removeAriaSort)(t)},setUserCompDetails:function(t){return e.setUserCompDetails(t)},getUserCompInstance:function(){return e.headerComp}};this.ctrl.setComp(o,this.getGui(),this.eResize,this.eHeaderCompWrapper);var n=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",n)},t.prototype.destroyHeaderComp=function(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)},t.prototype.setUserCompDetails=function(e){var t=this;this.headerCompVersion++;var r=this.headerCompVersion;e.newAgStackInstance().then((function(e){return t.afterCompCreated(r,e)}))},t.prototype.afterCompCreated=function(e,t){e==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=t,this.headerCompGui=t.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())):this.destroyBean(t)},t.TEMPLATE='
\n \n \n
',p([Object(u.b)("eResize")],t.prototype,"eResize",void 0),p([Object(u.b)("eHeaderCompWrapper")],t.prototype,"eHeaderCompWrapper",void 0),p([i.e],t.prototype,"postConstruct",null),p([i.g],t.prototype,"destroyHeaderComp",null),t}(g.a),f=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),v=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},m=function(e){function t(r){return e.call(this,t.TEMPLATE,r)||this}return f(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),r=function(e,r){return null!=r?t.setAttribute(e,r):t.removeAttribute(e)},o={addOrRemoveCssClass:function(t,r){return e.addOrRemoveCssClass(t,r)},setResizableDisplayed:function(t){return Object(l.setDisplayed)(e.eResize,t)},setWidth:function(e){return t.style.width=e},setColId:function(e){return t.setAttribute("col-id",e)},setAriaExpanded:function(e){return r("aria-expanded",e)},setTitle:function(e){return r("title",e)},setUserCompDetails:function(t){return e.setUserCompDetails(t)}};this.ctrl.setComp(o,t,this.eResize)},t.prototype.setUserCompDetails=function(e){var t=this;e.newAgStackInstance().then((function(e){return t.afterHeaderCompCreated(e)}))},t.prototype.afterHeaderCompCreated=function(e){var t=this,r=function(){return t.destroyBean(e)};if(this.isAlive()){var o=this.getGui(),n=e.getGui();o.appendChild(n),this.addDestroyFunc(r),this.ctrl.setDragSource(o)}else r()},t.TEMPLATE='
\n \n
',v([Object(i.a)("userComponentFactory")],t.prototype,"userComponentFactory",void 0),v([Object(u.b)("eResize")],t.prototype,"eResize",void 0),v([i.e],t.prototype,"postConstruct",null),t}(g.a),y=r(124),w=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),b=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};!function(e){e.COLUMN_GROUP="group",e.COLUMN="column",e.FLOATING_FILTER="filter"}(n||(n={}));var C=function(e){function t(t){var r=e.call(this)||this;r.headerComps={};var o=t.getType()==n.COLUMN_GROUP?"ag-header-row-column-group":t.getType()==n.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return r.setTemplate('
'),r.ctrl=t,r}return w(t,e),t.prototype.init=function(){var e=this,t={setTransform:function(t){return e.getGui().style.transform=t},setHeight:function(t){return e.getGui().style.height=t},setTop:function(t){return e.getGui().style.top=t},setHeaderCtrls:function(t){return e.setHeaderCtrls(t)},setWidth:function(t){return e.getGui().style.width=t},setAriaRowIndex:function(t){return Object(a.setAriaRowIndex)(e.getGui(),t)}};this.ctrl.setComp(t)},t.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([])},t.prototype.setHeaderCtrls=function(e){var t=this;if(this.isAlive()){var r=this.headerComps;this.headerComps={},e.forEach((function(e){var o=e.getInstanceId(),n=r[o];delete r[o],null==n&&(n=t.createHeaderComp(e),t.getGui().appendChild(n.getGui())),t.headerComps[o]=n})),Object(s.iterateObject)(r,(function(e,r){t.getGui().removeChild(r.getGui()),t.destroyBean(r)}));var o=this.gridOptionsService.is("ensureDomOrder"),n=this.gridOptionsService.isDomLayout("print");if(o||n){var i=Object(s.getAllValuesInObject)(this.headerComps);i.sort((function(e,t){return e.getCtrl().getColumnGroupChild().getLeft()-t.getCtrl().getColumnGroupChild().getLeft()}));var a=i.map((function(e){return e.getGui()}));Object(l.setDomChildOrder)(this.getGui(),a)}}},t.prototype.createHeaderComp=function(e){var t;switch(this.ctrl.getType()){case n.COLUMN_GROUP:t=new m(e);break;case n.FLOATING_FILTER:t=new y.a(e);break;default:t=new h(e)}return this.createBean(t),t.setParentComponent(this),t},b([i.e],t.prototype,"init",null),b([i.g],t.prototype,"destroyHeaderCtrls",null),t}(c.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var o=r(0),n=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},i=function(e,t){return function(r,o){t(r,o,e)}},a=function(){function e(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}return e.prototype.setBeans=function(e,t,r,o){if(void 0===o&&(o=null),this.frameworkOverrides=r,this.gridOptionsService=t,o){var n=t.useAsyncEvents();this.addGlobalListener(o,n)}},e.prototype.getListeners=function(e,t,r){var o=t?this.allAsyncListeners:this.allSyncListeners,n=o.get(e);return!n&&r&&(n=new Set,o.set(e,n)),n},e.prototype.noRegisteredListenersExist=function(){return 0===this.allSyncListeners.size&&0===this.allAsyncListeners.size&&0===this.globalSyncListeners.size&&0===this.globalAsyncListeners.size},e.prototype.addEventListener=function(e,t,r){void 0===r&&(r=!1),this.getListeners(e,r,!0).add(t)},e.prototype.removeEventListener=function(e,t,r){void 0===r&&(r=!1);var o=this.getListeners(e,r,!1);o&&(o.delete(t),0===o.size&&(r?this.allAsyncListeners:this.allSyncListeners).delete(e))},e.prototype.addGlobalListener=function(e,t){void 0===t&&(t=!1),(t?this.globalAsyncListeners:this.globalSyncListeners).add(e)},e.prototype.removeGlobalListener=function(e,t){void 0===t&&(t=!1),(t?this.globalAsyncListeners:this.globalSyncListeners).delete(e)},e.prototype.dispatchEvent=function(e){var t=e;if(this.gridOptionsService){var r=this.gridOptionsService,o=r.api,n=r.columnApi,i=r.context;t.api=o,t.columnApi=n,t.context=i}this.dispatchToListeners(t,!0),this.dispatchToListeners(t,!1),this.firedEvents[t.type]=!0},e.prototype.dispatchEventOnce=function(e){this.firedEvents[e.type]||this.dispatchEvent(e)},e.prototype.dispatchToListeners=function(e,t){var r=this,o=e.type;if(t&&"event"in e){var n=e.event;n instanceof Event&&(e.eventPath=n.composedPath())}var i=new Set(this.getListeners(o,t,!1));i&&function(o){o.forEach((function(o){t?r.dispatchAsync((function(){return o(e)})):o(e)}))}(i),new Set(t?this.globalAsyncListeners:this.globalSyncListeners).forEach((function(n){t?r.dispatchAsync((function(){return r.frameworkOverrides.dispatchEvent(o,(function(){return n(o,e)}),!0)})):r.frameworkOverrides.dispatchEvent(o,(function(){return n(o,e)}),!0)}))},e.prototype.dispatchAsync=function(e){this.asyncFunctionsQueue.push(e),this.scheduled||(window.setTimeout(this.flushAsyncQueue.bind(this),0),this.scheduled=!0)},e.prototype.flushAsyncQueue=function(){this.scheduled=!1;var e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach((function(e){return e()}))},n([i(0,Object(o.h)("loggerFactory")),i(1,Object(o.h)("gridOptionsService")),i(2,Object(o.h)("frameworkOverrides")),i(3,Object(o.h)("globalEventListener"))],e.prototype,"setBeans",null),e=n([Object(o.b)("eventService")],e)}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return g}));var o,n=r(0),i=r(7),a=r(23),l=r(5),s=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(){return(c=Object.assign||function(e){for(var t,r=1,o=arguments.length;r=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},g=function(e){function t(t,r){void 0===r&&(r={});var o=e.call(this)||this;return o.eFocusableElement=t,o.callbacks=r,o.callbacks=c({shouldStopEventPropagation:function(){return!1},onTabKeyDown:function(e){if(!e.defaultPrevented){var t=o.focusService.findNextFocusableElement(o.eFocusableElement,!1,e.shiftKey);t&&(t.focus(),e.preventDefault())}}},r),o}return s(t,e),t.prototype.postConstruct=function(){this.eFocusableElement.classList.add(t.FOCUS_MANAGED_CLASS),this.addKeyDownListeners(this.eFocusableElement),this.callbacks.onFocusIn&&this.addManagedListener(this.eFocusableElement,"focusin",this.callbacks.onFocusIn),this.callbacks.onFocusOut&&this.addManagedListener(this.eFocusableElement,"focusout",this.callbacks.onFocusOut)},t.prototype.addKeyDownListeners=function(e){var t=this;this.addManagedListener(e,"keydown",(function(e){e.defaultPrevented||Object(a.isStopPropagationForAgGrid)(e)||(t.callbacks.shouldStopEventPropagation(e)?Object(a.stopPropagationForAgGrid)(e):e.key===i.a.TAB?t.callbacks.onTabKeyDown(e):t.callbacks.handleKeyDown&&t.callbacks.handleKeyDown(e))}))},t.FOCUS_MANAGED_CLASS="ag-focus-managed",u([Object(n.a)("focusService")],t.prototype,"focusService",void 0),u([n.e],t.prototype,"postConstruct",null),t}(l.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var o,n=r(44),i=r(1),a=r(38),l=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(e){function t(t,r,o){return void 0===r&&(r="ag-text-field"),void 0===o&&(o="text"),e.call(this,t,r,o)||this}return l(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},t.prototype.setValue=function(t,r){var o=e.prototype.setValue.call(this,t,r);return this.eInput.value!==t&&(this.eInput.value=Object(i.exists)(t)?t:""),o},t.prototype.setStartValue=function(e){this.setValue(e,!0)},t.prototype.preventDisallowedCharacters=function(){var e=new RegExp("["+this.config.allowedCharPattern+"]");this.addManagedListener(this.eInput,"keydown",(function(t){Object(a.isEventFromPrintableCharacter)(t)&&t.key&&!e.test(t.key)&&t.preventDefault()})),this.addManagedListener(this.eInput,"paste",(function(t){var r,o=null===(r=t.clipboardData)||void 0===r?void 0:r.getData("text");o&&o.split("").some((function(t){return!e.test(t)}))&&t.preventDefault()}))},t}(n.a)},function(e,t,r){"use strict";r.r(t),r.d(t,"isEventFromPrintableCharacter",(function(){return a})),r.d(t,"isUserSuppressingKeyboardEvent",(function(){return l})),r.d(t,"isUserSuppressingHeaderKeyboardEvent",(function(){return s})),r.d(t,"normaliseQwertyAzerty",(function(){return c})),r.d(t,"isDeleteKey",(function(){return u}));var o=r(7),n=r(16),i=r(1);function a(e){return!(e.altKey||e.ctrlKey||e.metaKey)&&1===e.key.length}function l(e,t,r,o,n){var i=o?o.getColDef().suppressKeyboardEvent:void 0;if(!i)return!1;var a={event:t,editing:n,column:o,api:e.api,node:r,data:r.data,colDef:o.getColDef(),context:e.context,columnApi:e.columnApi};if(i&&i(a))return!0;return!1}function s(e,t,r,o){var n=o.getDefinition(),a=n&&n.suppressHeaderKeyboardEvent;return!!Object(i.exists)(a)&&!!a({api:e.api,columnApi:e.columnApi,context:e.context,colDef:n,column:o,headerRowIndex:r,event:t})}function c(e){var t;switch(e.keyCode){case 65:t=o.a.A;break;case 67:t=o.a.C;break;case 86:t=o.a.V;break;case 68:t=o.a.D;break;case 90:t=o.a.Z;break;case 89:t=o.a.Y;break;default:t=e.code}return t}function u(e,t){return void 0===t&&(t=!1),e===o.a.DELETE||!t&&e===o.a.BACKSPACE&&Object(n.isMacOsUserAgent)()}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var o,n=r(12),i=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isPopup=function(){return!0},t.prototype.setParentComponent=function(t){t.addCssClass("ag-has-popup"),e.prototype.setParentComponent.call(this,t)},t.prototype.destroy=function(){var t=this.parentComponent;t&&t.isAlive()&&t.getGui().classList.remove("ag-has-popup"),e.prototype.destroy.call(this)},t}(n.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return H}));var o,n=r(3),i=r(10),a=r(55),l=r(1),s=r(9),c=function(){function e(e,t){this.beans=e,this.cellCtrl=t}return e.prototype.setComp=function(e,t){this.cellComp=e,this.eGui=t,this.onRangeSelectionChanged()},e.prototype.onRangeSelectionChanged=function(){this.cellComp&&(this.rangeCount=this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected",0!==this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-1",1===this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-2",2===this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-3",3===this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-4",this.rangeCount>=4),this.cellComp.addOrRemoveCssClass("ag-cell-range-chart",this.hasChartRange),Object(s.setAriaSelected)(this.eGui,this.rangeCount>0||void 0),this.cellComp.addOrRemoveCssClass("ag-cell-range-single-cell",this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle())},e.prototype.updateRangeBorders=function(){var e=this.getRangeBorders(),t=this.isSingleCell(),r=!t&&e.top,o=!t&&e.right,n=!t&&e.bottom,i=!t&&e.left;this.cellComp.addOrRemoveCssClass("ag-cell-range-top",r),this.cellComp.addOrRemoveCssClass("ag-cell-range-right",o),this.cellComp.addOrRemoveCssClass("ag-cell-range-bottom",n),this.cellComp.addOrRemoveCssClass("ag-cell-range-left",i)},e.prototype.isSingleCell=function(){var e=this.beans.rangeService;return 1===this.rangeCount&&e&&!e.isMoreThanOneCell()},e.prototype.getHasChartRange=function(){var e=this.beans.rangeService;if(!this.rangeCount||!e)return!1;var t=e.getCellRanges();return t.length>0&&t.every((function(e){return Object(i.includes)([a.a.DIMENSION,a.a.VALUE],e.type)}))},e.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},e.prototype.getRangeBorders=function(){var e,t,r=this,o=this.beans.gridOptionsService.is("enableRtl"),n=!1,i=!1,a=!1,l=!1,s=this.cellCtrl.getCellPosition().column,c=this.beans,u=c.rangeService,g=c.columnModel;o?(e=g.getDisplayedColAfter(s),t=g.getDisplayedColBefore(s)):(e=g.getDisplayedColBefore(s),t=g.getDisplayedColAfter(s));var d=u.getCellRanges().filter((function(e){return u.isCellInSpecificRange(r.cellCtrl.getCellPosition(),e)}));e||(l=!0),t||(i=!0);for(var p=0;p1&&o.intersectLastRange(!0);var l=this.cellCtrl.createEvent(e,n.a.EVENT_CELL_CLICKED);r.dispatchEvent(l);var s=this.column.getColDef();s.onCellClicked&&window.setTimeout((function(){return s.onCellClicked(l)}),0),(i.is("singleClickEdit")||s.singleClickEdit)&&!i.is("suppressClickEdit")&&this.cellCtrl.startRowOrCellEdit()},t.prototype.isDoubleClickOnIPad=function(){if(!Object(y.isIOSUserAgent)()||Object(b.isEventSupported)("dblclick"))return!1;var e=(new Date).getTime(),t=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,t},t.prototype.onCellDoubleClicked=function(e){var t=this.column.getColDef(),r=this.cellCtrl.createEvent(e,n.a.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(r),"function"==typeof t.onCellDoubleClicked&&window.setTimeout((function(){return t.onCellDoubleClicked(r)}),0),!this.beans.gridOptionsService.is("singleClickEdit")&&!this.beans.gridOptionsService.is("suppressClickEdit")&&this.cellCtrl.startRowOrCellEdit(null,e)},t.prototype.onMouseDown=function(e){var t=e.ctrlKey,r=e.metaKey,o=e.shiftKey,i=e.target,a=this.beans,l=a.eventService,s=a.rangeService;if(!this.isRightClickInExistingRange(e)){var c=s&&0!=s.getCellRanges().length;if(!o||!c){var u=Object(y.isBrowserSafari)()&&!this.cellCtrl.isEditing()&&!Object(w.isFocusableFormField)(i);this.cellCtrl.focusCell(u)}if(o&&c&&e.preventDefault(),!this.containsWidget(i)){if(s){var g=this.cellCtrl.getCellPosition();if(o)s.extendLatestRangeToCell(g);else{var d=t||r;s.setRangeToCell(g,d)}}l.dispatchEvent(this.cellCtrl.createEvent(e,n.a.EVENT_CELL_MOUSE_DOWN))}}},t.prototype.isRightClickInExistingRange=function(e){var t=this.beans.rangeService;if(t&&(t.isCellInAnyRange(this.cellCtrl.getCellPosition())&&2===e.button))return!0;return!1},t.prototype.containsWidget=function(e){return Object(w.isElementChildOfClass)(e,"ag-selection-checkbox",3)},t.prototype.onMouseOut=function(e){if(!this.mouseStayingInsideCell(e)){var t=this.cellCtrl.createEvent(e,n.a.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.clearMouseOver()}},t.prototype.onMouseOver=function(e){if(!this.mouseStayingInsideCell(e)){var t=this.cellCtrl.createEvent(e,n.a.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.setMouseOver([this.column])}},t.prototype.mouseStayingInsideCell=function(e){if(!e.target||!e.relatedTarget)return!1;var t=this.cellCtrl.getGui(),r=t.contains(e.target),o=t.contains(e.relatedTarget);return r&&o},t.prototype.destroy=function(){},t}(C.a),E=r(7),R=r(38),T=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),x=function(e){function t(t,r,o,n,i){var a=e.call(this)||this;return a.cellCtrl=t,a.beans=r,a.rowNode=n,a.rowCtrl=i,a}return T(t,e),t.prototype.setComp=function(e){this.eGui=e},t.prototype.onKeyDown=function(e){var t=e.key;switch(t){case E.a.ENTER:this.onEnterKeyDown(e);break;case E.a.F2:this.onF2KeyDown(e);break;case E.a.ESCAPE:this.onEscapeKeyDown(e);break;case E.a.TAB:this.onTabKeyDown(e);break;case E.a.BACKSPACE:case E.a.DELETE:this.onBackspaceOrDeleteKeyDown(t,e);break;case E.a.DOWN:case E.a.UP:case E.a.RIGHT:case E.a.LEFT:this.onNavigationKeyDown(e,t)}},t.prototype.onNavigationKeyDown=function(e,t){this.cellCtrl.isEditing()||(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(e):this.beans.navigationService.navigateToNextCell(e,t,this.cellCtrl.getCellPosition(),!0),e.preventDefault())},t.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeService){var t=this.beans.rangeService.extendLatestRangeInDirection(e);t&&this.beans.navigationService.ensureCellVisible(t)}},t.prototype.onTabKeyDown=function(e){this.beans.navigationService.onTabKeyDown(this.cellCtrl,e)},t.prototype.onBackspaceOrDeleteKeyDown=function(e,t){var r=this.cellCtrl,o=this.beans,n=this.rowNode,i=o.gridOptionsService,a=o.rangeService,l=o.eventService;r.isEditing()||(l.dispatchEvent({type:g.a.EVENT_KEY_SHORTCUT_CHANGED_CELL_START}),Object(R.isDeleteKey)(e,i.is("enableCellEditingOnBackspace"))?a&&i.isEnableRangeSelection()?a.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"}):r.isCellEditable()&&n.setDataValue(r.getColumn(),null,"cellClear"):r.startRowOrCellEdit(e,t),l.dispatchEvent({type:g.a.EVENT_KEY_SHORTCUT_CHANGED_CELL_END}))},t.prototype.onEnterKeyDown=function(e){if(this.cellCtrl.isEditing()||this.rowCtrl.isEditing())this.cellCtrl.stopEditingAndFocus(!1,e.shiftKey);else if(this.beans.gridOptionsService.is("enterNavigatesVertically")){var t=e.shiftKey?E.a.UP:E.a.DOWN;this.beans.navigationService.navigateToNextCell(null,t,this.cellCtrl.getCellPosition(),!1)}else this.cellCtrl.startRowOrCellEdit(E.a.ENTER,e),this.cellCtrl.isEditing()&&e.preventDefault()},t.prototype.onF2KeyDown=function(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(E.a.F2,e)},t.prototype.onEscapeKeyDown=function(e){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},t.prototype.processCharacter=function(e){if(!(e.target!==this.eGui)&&!this.cellCtrl.isEditing()){var t=e.key;" "===t?this.onSpaceKeyDown(e):(this.cellCtrl.startRowOrCellEdit(t,e),e.preventDefault())}},t.prototype.onSpaceKeyDown=function(e){var t=this.beans.gridOptionsService;if(!this.cellCtrl.isEditing()&&t.isRowSelection()){var r=this.rowNode.isSelected(),o=!r;if(o||!t.is("suppressRowDeselection")){var n=this.beans.gridOptionsService.is("groupSelectsFiltered"),i=this.rowNode.setSelectedParams({newValue:o,rangeSelect:e.shiftKey,groupSelectsFiltered:n,event:e,source:"spaceKey"});void 0===r&&0===i&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:n,event:e,source:"spaceKey"})}}e.preventDefault()},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(u.a),A=r(76),D=r(12),P=r(0),M=r(18),N=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),L=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},I=function(e){function t(t,r,o){var n=e.call(this,'
')||this;return n.rowNode=t,n.column=r,n.eCell=o,n}return N(t,e),t.prototype.postConstruct=function(){this.getGui().appendChild(Object(M.createIconNoSpan)("rowDrag",this.gridOptionsService,null)),this.addGuiEventListener("mousedown",(function(e){e.stopPropagation()})),this.addDragSource(),this.checkVisibility()},t.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},t.prototype.onDragStart=function(e){var t=this,r=this.column.getColDef().dndSourceOnRowDrag;e.dataTransfer.setDragImage(this.eCell,0,0);r?r({rowNode:this.rowNode,dragEvent:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}):function(){try{var r=JSON.stringify(t.rowNode.data);e.dataTransfer.setData("application/json",r),e.dataTransfer.setData("text/plain",r)}catch(e){}}()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},L([P.e],t.prototype,"postConstruct",null),t}(D.a),z=r(11),F=r(72),_=r(14),k=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),j=function(){return(j=Object.assign||function(e){for(var t,r=1,o=arguments.length;r=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},S=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},O=function(e,t){for(var r=0,o=t.length,n=e.length;r=0)}return!0},t.prototype.listenOnDomOrder=function(e){var t=this,r=function(){var r=t.gridOptionsService.is("ensureDomOrder"),o=t.gridOptionsService.isDomLayout("print");e.rowComp.setDomOrder(r||o)};this.addManagedPropertyListener("domLayout",r),r()},t.prototype.setAnimateFlags=function(e){if(!this.isSticky()&&e){var t=Object(v.exists)(this.rowNode.oldRowTop),r=this.beans.columnModel.isPinningLeft(),o=this.beans.columnModel.isPinningRight();t?(this.slideInAnimation.center=!0,this.slideInAnimation.left=r,this.slideInAnimation.right=o):(this.fadeInAnimation.center=!0,this.fadeInAnimation.left=r,this.fadeInAnimation.right=o)}},t.prototype.isEditing=function(){return this.editingRow},t.prototype.stopRowEditing=function(e){this.stopEditing(e)},t.prototype.isFullWidth=function(){return this.rowType!==n.Normal},t.prototype.getRowType=function(){return this.rowType},t.prototype.refreshFullWidth=function(){var e=this,t=function(t,r){if(!t)return!0;var o=t.rowComp.getFullWidthCellRenderer();if(!o)return!1;if(!o.refresh)return!1;var n=e.createFullWidthParams(t.element,r);return o.refresh(n)},r=t(this.fullWidthGui,null),o=t(this.centerGui,null),n=t(this.leftGui,"left"),i=t(this.rightGui,"right");return r&&o&&n&&i},t.prototype.addListeners=function(){var e=this;this.addManagedListener(this.rowNode,a.a.EVENT_HEIGHT_CHANGED,(function(){return e.onRowHeightChanged()})),this.addManagedListener(this.rowNode,a.a.EVENT_ROW_SELECTED,(function(){return e.onRowSelected()})),this.addManagedListener(this.rowNode,a.a.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,a.a.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,a.a.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,a.a.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,a.a.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,a.a.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,a.a.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,a.a.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,a.a.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var t=this.beans.eventService;this.addManagedListener(t,s.a.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(t,s.a.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(t,s.a.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(t,s.a.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(t,s.a.EVENT_CELL_FOCUSED,this.onCellFocused.bind(this)),this.addManagedListener(t,s.a.EVENT_CELL_FOCUS_CLEARED,this.onCellFocusCleared.bind(this)),this.addManagedListener(t,s.a.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(t,s.a.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(t,s.a.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},t.prototype.onColumnMoved=function(){this.updateColumnLists()},t.prototype.addListenersForCellComps=function(){var e=this;this.addManagedListener(this.rowNode,a.a.EVENT_ROW_INDEX_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onRowIndexChanged()}))})),this.addManagedListener(this.rowNode,a.a.EVENT_CELL_CHANGED,(function(t){e.getAllCellCtrls().forEach((function(e){return e.onCellChanged(t)}))}))},t.prototype.onRowNodeDataChanged=function(e){var t=this;this.rowNode.detailNode&&this.beans.rowRenderer.refreshFullWidthRow(this.rowNode.detailNode),this.isFullWidth()?this.beans.rowRenderer.refreshFullWidthRow(this.rowNode):(this.getAllCellCtrls().forEach((function(t){return t.refreshCell({suppressFlash:!e.update,newData:!e.update})})),this.allRowGuis.forEach((function(e){t.setRowCompRowId(e.rowComp),t.updateRowBusinessKey(),t.setRowCompRowBusinessKey(e.rowComp)})),this.onRowSelected(),this.postProcessCss())},t.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},t.prototype.postProcessCss=function(){this.setStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},t.prototype.onRowNodeHighlightChanged=function(){var e=this.rowNode.highlighted;this.allRowGuis.forEach((function(t){var r=e===l.a.Above,o=e===l.a.Below;t.rowComp.addOrRemoveCssClass("ag-row-highlight-above",r),t.rowComp.addOrRemoveCssClass("ag-row-highlight-below",o)}))},t.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},t.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-dragging",e)}))},t.prototype.updateExpandedCss=function(){var e=this.rowNode.isExpandable(),t=1==this.rowNode.expanded;this.allRowGuis.forEach((function(r){r.rowComp.addOrRemoveCssClass("ag-row-group",e),r.rowComp.addOrRemoveCssClass("ag-row-group-expanded",e&&t),r.rowComp.addOrRemoveCssClass("ag-row-group-contracted",e&&!t),Object(d.setAriaExpanded)(r.element,e&&t)}))},t.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},t.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists(!1,!0)},t.prototype.getRowPosition=function(){return{rowPinned:Object(v.makeNull)(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}},t.prototype.onKeyboardNavigate=function(e){var t=this.allRowGuis.find((function(t){return t.element.contains(e.target)}));if((t?t.element:null)===e.target){var r=this.rowNode,o=this.beans.focusService.getFocusedCell(),n={rowIndex:r.rowIndex,rowPinned:r.rowPinned,column:o&&o.column};this.beans.navigationService.navigateToNextCell(e,e.key,n,!0),e.preventDefault()}},t.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented&&!Object(h.isStopPropagationForAgGrid)(e)){var t=this.allRowGuis.find((function(t){return t.element.contains(e.target)})),r=t?t.element:null,o=r===e.target,n=null;o||(n=this.beans.focusService.findNextFocusableElement(r,!1,e.shiftKey)),(this.isFullWidth()&&o||!n)&&this.beans.navigationService.onTabKeyDown(this,e)}},t.prototype.onFullWidthRowFocused=function(e){var t,r=this.rowNode,o=!!e&&(this.isFullWidth()&&e.rowIndex===r.rowIndex&&e.rowPinned==r.rowPinned),n=this.fullWidthGui?this.fullWidthGui.element:null===(t=this.centerGui)||void 0===t?void 0:t.element;n&&(n.classList.toggle("ag-full-width-focus",o),o&&n.focus({preventScroll:!0}))},t.prototype.refreshCell=function(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),this.updateColumnLists()},t.prototype.removeCellCtrl=function(e,t){var r={list:[],map:{}};return e.list.forEach((function(e){e!==t&&(r.list.push(e),r.map[e.getInstanceId()]=e)})),r},t.prototype.onMouseEvent=function(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t);break;case"touchstart":case"mousedown":this.onRowMouseDown(t)}},t.prototype.createRowEvent=function(e,t){return{type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.gridOptionsService.context,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,event:t}},t.prototype.createRowEventWithSource=function(e,t){var r=this.createRowEvent(e,t);return r.source=this,r},t.prototype.onRowDblClick=function(e){if(!Object(h.isStopPropagationForAgGrid)(e)){var t=this.createRowEventWithSource(s.a.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)}},t.prototype.onRowMouseDown=function(e){if(this.lastMouseDownOnDragger=Object(p.isElementChildOfClass)(e.target,"ag-row-drag",3),this.isFullWidth()){var t=this.rowNode,r=this.beans.columnModel;this.beans.rangeService&&this.beans.rangeService.removeAllCellRanges(),this.beans.focusService.setFocusedCell({rowIndex:t.rowIndex,column:r.getAllDisplayedColumns()[0],rowPinned:t.rowPinned,forceBrowserFocus:!0})}},t.prototype.onRowClick=function(e){if(!(Object(h.isStopPropagationForAgGrid)(e)||this.lastMouseDownOnDragger)){var t=this.createRowEventWithSource(s.a.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(t);var r=e.ctrlKey||e.metaKey,o=e.shiftKey;if(!(this.gridOptionsService.is("groupSelectsChildren")&&this.rowNode.group||!this.rowNode.selectable||this.rowNode.rowPinned||!this.gridOptionsService.isRowSelection()||this.gridOptionsService.is("suppressRowClickSelection"))){var n=this.gridOptionsService.is("rowMultiSelectWithClick"),i=!this.gridOptionsService.is("suppressRowDeselection"),a="rowClicked";if(this.rowNode.isSelected())n?this.rowNode.setSelectedParams({newValue:!1,event:e,source:a}):r?i&&this.rowNode.setSelectedParams({newValue:!1,event:e,source:a}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!o,rangeSelect:o,event:e,source:a});else{var l=!n&&!r;this.rowNode.setSelectedParams({newValue:!0,clearSelection:l,rangeSelect:o,event:e,source:a})}}}},t.prototype.setupDetailRowAutoHeight=function(e){var t=this;if(this.rowType===n.FullWidthDetail&&this.gridOptionsService.is("detailRowAutoHeight")){var r=function(){var r=e.clientHeight;if(null!=r&&r>0){t.beans.frameworkOverrides.setTimeout((function(){t.rowNode.setRowHeight(r),t.beans.clientSideRowModel?t.beans.clientSideRowModel.onRowHeightChanged():t.beans.serverSideRowModel&&t.beans.serverSideRowModel.onRowHeightChanged()}),0)}},o=this.beans.resizeObserverService.observeResize(e,r);this.addDestroyFunc(o),r()}},t.prototype.createFullWidthParams=function(e,t){var r=this;return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,valueFormatted:this.rowNode.key,rowIndex:this.rowNode.rowIndex,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(e,t,o,n){return r.addFullWidthRowDragging(e,t,o,n)}}},t.prototype.addFullWidthRowDragging=function(e,t,r,o){if(void 0===r&&(r=""),this.isFullWidth()){var n=new w.a((function(){return r}),this.rowNode,void 0,e,t,o);this.createManagedBean(n,this.beans.context)}},t.prototype.onUiLevelChanged=function(){var e=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=e){var t="ag-row-level-"+e,r="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach((function(e){e.rowComp.addOrRemoveCssClass(t,!0),e.rowComp.addOrRemoveCssClass(r,!1)}))}this.rowLevel=e},t.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},t.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},t.prototype.onModelUpdated=function(){this.refreshFirstAndLastRowStyles()},t.prototype.refreshFirstAndLastRowStyles=function(){var e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-first",e)}))),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-row-last",t)})))},t.prototype.stopEditing=function(e){var t,r;if(void 0===e&&(e=!1),!this.stoppingRowEdit){var o=this.getAllCellCtrls(),n=this.editingRow;this.stoppingRowEdit=!0;var i=!1;try{for(var a=C(o),l=a.next();!l.done;l=a.next()){var c=l.value.stopEditing(e);n&&!e&&!i&&c&&(i=!0)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}if(i){var u=this.createRowEvent(s.a.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(u)}n&&this.setEditingRow(!1),this.stoppingRowEdit=!1}},t.prototype.setInlineEditingCss=function(e){this.allRowGuis.forEach((function(t){t.rowComp.addOrRemoveCssClass("ag-row-inline-editing",e),t.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!e)}))},t.prototype.setEditingRow=function(e){this.editingRow=e,this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-editing",e)}));var t=e?this.createRowEvent(s.a.EVENT_ROW_EDITING_STARTED):this.createRowEvent(s.a.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(t)},t.prototype.startRowEditing=function(e,t,r){(void 0===e&&(e=null),void 0===t&&(t=null),void 0===r&&(r=null),this.editingRow)||this.getAllCellCtrls().reduce((function(o,n){var i=n===t;return i?n.startEditing(e,i,r):n.startEditing(null,i,r),!!o||n.isEditing()}),!1)&&this.setEditingRow(!0)},t.prototype.getAllCellCtrls=function(){return 0===this.leftCellCtrls.list.length&&0===this.rightCellCtrls.list.length?this.centerCellCtrls.list:O(O(O([],S(this.centerCellCtrls.list)),S(this.leftCellCtrls.list)),S(this.rightCellCtrls.list))},t.prototype.postProcessClassesFromGridOptions=function(){var e=this,t=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode);t&&t.length&&t.forEach((function(t){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass(t,!0)}))}))},t.prototype.postProcessRowClassRules=function(){var e=this;this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,(function(t){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass(t,!0)}))}),(function(t){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass(t,!1)}))}))},t.prototype.setStylesFromGridOptions=function(e){var t=this.processStylesFromGridOptions();this.forEachGui(e,(function(e){return e.rowComp.setUserStyles(t)}))},t.prototype.getPinnedForContainer=function(e){return e===c.c.LEFT?"left":e===c.c.RIGHT?"right":null},t.prototype.getInitialRowClasses=function(e){var t=this.getPinnedForContainer(e),r={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeInAnimation[e],rowIsEven:this.rowNode.rowIndex%2==0,rowLevel:this.rowLevel,fullWidthRow:this.isFullWidth(),firstRowOnPage:this.isFirstRowOnPage(),lastRowOnPage:this.isLastRowOnPage(),printLayout:this.printLayout,expandable:this.rowNode.isExpandable(),pinned:t};return this.beans.rowCssClassCalculator.getInitialRowClasses(r)},t.prototype.processStylesFromGridOptions=function(){var e=this.gridOptionsService.get("rowStyle");if(!e||"function"!=typeof e){var t,r=this.gridOptionsService.getCallback("getRowStyle");if(r)t=r({data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex});return Object.assign({},e,t)}console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},t.prototype.onRowSelected=function(e){var t=this,r=!!this.rowNode.isSelected();this.forEachGui(e,(function(e){e.rowComp.addOrRemoveCssClass("ag-row-selected",r),Object(d.setAriaSelected)(e.element,!!r||void 0);var o=t.createAriaLabel();Object(d.setAriaLabel)(e.element,null==o?"":o)}))},t.prototype.createAriaLabel=function(){var e=this.rowNode.isSelected();if(!e||!this.gridOptionsService.is("suppressRowDeselection"))return this.beans.localeService.getLocaleTextFunc()(e?"ariaRowDeselect":"ariaRowSelect","Press SPACE to "+(e?"deselect":"select")+" this row.")},t.prototype.isUseAnimationFrameForCreate=function(){return this.useAnimationFrameForCreate},t.prototype.addHoverFunctionality=function(e){var t=this;this.active&&(this.addManagedListener(e,"mouseenter",(function(){return t.rowNode.onMouseEnter()})),this.addManagedListener(e,"mouseleave",(function(){return t.rowNode.onMouseLeave()})),this.addManagedListener(this.rowNode,a.a.EVENT_MOUSE_ENTER,(function(){t.beans.dragService.isDragging()||t.gridOptionsService.is("suppressRowHoverHighlight")||(e.classList.add("ag-row-hover"),t.rowNode.setHovered(!0))})),this.addManagedListener(this.rowNode,a.a.EVENT_MOUSE_LEAVE,(function(){e.classList.remove("ag-row-hover"),t.rowNode.setHovered(!1)})))},t.prototype.roundRowTopToBounds=function(e){var t=this.beans.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),r=this.applyPaginationOffset(t.top,!0)-100,o=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(r,e),o)},t.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},t.prototype.forEachGui=function(e,t){(e?[e]:this.allRowGuis).forEach(t)},t.prototype.onRowHeightChanged=function(e){if(null!=this.rowNode.rowHeight){var t=this.rowNode.rowHeight,r=this.beans.environment.getDefaultRowHeight(),o=this.gridOptionsService.isGetRowHeightFunction()?this.gridOptionsService.getRowHeightForNode(this.rowNode).height:void 0,n=o?Math.min(r,o)-2+"px":void 0;this.forEachGui(e,(function(e){e.element.style.height=t+"px",n&&e.element.style.setProperty("--ag-line-height",n)}))}},t.prototype.addEventListener=function(t,r){e.prototype.addEventListener.call(this,t,r)},t.prototype.removeEventListener=function(t,r){e.prototype.removeEventListener.call(this,t,r)},t.prototype.destroyFirstPass=function(){this.active=!1,this.gridOptionsService.isAnimateRows()&&this.setupRemoveAnimation(),this.rowNode.setHovered(!1);var t=this.createRowEvent(s.a.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(t),this.beans.eventService.dispatchEvent(t),e.prototype.destroy.call(this)},t.prototype.setupRemoveAnimation=function(){if(!this.isSticky())if(null!=this.rowNode.rowTop){var e=this.roundRowTopToBounds(this.rowNode.rowTop);this.setRowTop(e)}else this.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0)}))},t.prototype.destroySecondPass=function(){this.allRowGuis.length=0;var e=function(e){return e.list.forEach((function(e){return e.destroy()})),{list:[],map:{}}};this.centerCellCtrls=e(this.centerCellCtrls),this.leftCellCtrls=e(this.leftCellCtrls),this.rightCellCtrls=e(this.rightCellCtrls)},t.prototype.setFocusedClasses=function(e){var t=this;this.forEachGui(e,(function(e){e.rowComp.addOrRemoveCssClass("ag-row-focus",t.rowFocused),e.rowComp.addOrRemoveCssClass("ag-row-no-focus",!t.rowFocused)}))},t.prototype.onCellFocused=function(){this.onCellFocusChanged()},t.prototype.onCellFocusCleared=function(){this.onCellFocusChanged()},t.prototype.onCellFocusChanged=function(){var e=this.beans.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.rowFocused=e,this.setFocusedClasses()),!e&&this.editingRow&&this.stopEditing(!1)},t.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()},t.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},t.prototype.onPaginationPixelOffsetChanged=function(){this.onTopChanged()},t.prototype.applyPaginationOffset=function(e,t){return void 0===t&&(t=!1),this.rowNode.isRowPinned()?e:e+this.beans.paginationProxy.getPixelOffset()*(t?1:-1)},t.prototype.setRowTop=function(e){if(!this.printLayout&&Object(v.exists)(e)){var t=this.applyPaginationOffset(e),r=(this.rowNode.isRowPinned()?t:this.beans.rowContainerHeightService.getRealPixelPosition(t))+"px";this.setRowTopStyle(r)}},t.prototype.getInitialRowTop=function(e){return this.gridOptionsService.is("suppressRowTransform")?this.getInitialRowTopShared(e):void 0},t.prototype.getInitialTransform=function(e){return this.gridOptionsService.is("suppressRowTransform")?void 0:"translateY("+this.getInitialRowTopShared(e)+")"},t.prototype.getInitialRowTopShared=function(e){if(this.printLayout)return"";var t;if(this.isSticky())t=this.rowNode.stickyRowTop;else{var r=this.slideInAnimation[e]?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,o=this.applyPaginationOffset(r);t=this.rowNode.isRowPinned()?o:this.beans.rowContainerHeightService.getRealPixelPosition(o)}return t+"px"},t.prototype.setRowTopStyle=function(e){var t=this.gridOptionsService.is("suppressRowTransform");this.allRowGuis.forEach((function(r){return t?r.rowComp.setTop(e):r.rowComp.setTransform("translateY("+e+")")}))},t.prototype.getRowNode=function(){return this.rowNode},t.prototype.getCellCtrl=function(e){var t=null;return this.getAllCellCtrls().forEach((function(r){r.getColumn()==e&&(t=r)})),null!=t||this.getAllCellCtrls().forEach((function(r){r.getColSpanningList().indexOf(e)>=0&&(t=r)})),t},t.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())},t.prototype.updateRowIndexes=function(e){var t=this.rowNode.getRowIndexString(),r=this.beans.headerNavigationService.getHeaderRowCount(),o=this.rowNode.rowIndex%2==0,n=r+this.rowNode.rowIndex+1;this.forEachGui(e,(function(e){e.rowComp.setRowIndex(t),e.rowComp.addOrRemoveCssClass("ag-row-even",o),e.rowComp.addOrRemoveCssClass("ag-row-odd",!o),Object(d.setAriaRowIndex)(e.element,n)}))},t.prototype.getPinnedLeftRowElement=function(){return this.leftGui?this.leftGui.element:void 0},t.prototype.getPinnedRightRowElement=function(){return this.rightGui?this.rightGui.element:void 0},t.prototype.getBodyRowElement=function(){return this.centerGui?this.centerGui.element:void 0},t.prototype.getFullWidthRowElement=function(){return this.fullWidthGui?this.fullWidthGui.element:void 0},t.DOM_DATA_KEY_ROW_CTRL="renderedRow",t}(i.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return g}));var o,n=r(8),i=r(41),a=r(2),l=r(9),s=r(1),c=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},g=function(e){function t(t,r,o,n){void 0===o&&(o="text"),void 0===n&&(n="input");var i=e.call(this,t,'\n
\n
\n \n
",r)||this;return i.inputType=o,i.displayFieldTag=n,i}return c(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.setInputType(),this.eLabel.classList.add(this.className+"-label"),this.eWrapper.classList.add(this.className+"-input-wrapper"),this.eInput.classList.add(this.className+"-input"),this.addCssClass("ag-input-field"),this.eInput.id=this.eInput.id||"ag-"+this.getCompId()+"-input";var t=this.config,r=t.width,o=t.value;null!=r&&this.setWidth(r),null!=o&&this.setValue(o),this.addInputListeners()},t.prototype.refreshLabel=function(){Object(s.exists)(this.getLabel())?Object(l.setAriaLabelledBy)(this.eInput,this.getLabelId()):this.eInput.removeAttribute("aria-labelledby"),e.prototype.refreshLabel.call(this)},t.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",(function(t){return e.setValue(t.target.value)}))},t.prototype.setInputType=function(){"input"===this.displayFieldTag&&this.eInput.setAttribute("type",this.inputType)},t.prototype.getInputElement=function(){return this.eInput},t.prototype.setInputWidth=function(e){return Object(a.setElementWidth)(this.eWrapper,e),this},t.prototype.setInputName=function(e){return this.getInputElement().setAttribute("name",e),this},t.prototype.getFocusableElement=function(){return this.eInput},t.prototype.setMaxLength=function(e){return this.eInput.maxLength=e,this},t.prototype.setInputPlaceholder=function(e){return Object(a.addOrRemoveAttribute)(this.eInput,"placeholder",e),this},t.prototype.setInputAriaLabel=function(e){return Object(l.setAriaLabel)(this.eInput,e),this},t.prototype.setDisabled=function(t){return Object(a.setDisabled)(this.eInput,t),e.prototype.setDisabled.call(this,t)},u([Object(n.b)("eLabel")],t.prototype,"eLabel",void 0),u([Object(n.b)("eWrapper")],t.prototype,"eWrapper",void 0),u([Object(n.b)("eInput")],t.prototype,"eInput",void 0),t}(i.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var o=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},n=function(e,t){for(var r=0,o=t.length,n=e.length;r=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};!function(e){e[e.UP=0]="UP",e[e.DOWN=1]="DOWN",e[e.LEFT=2]="LEFT",e[e.RIGHT=3]="RIGHT"}(n||(n={}));var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.gridBodyCon=t.gridBodyCtrl}))},t.prototype.getHeaderRowCount=function(){var e=this.ctrlsService.getHeaderRowContainerCtrl();return e?e.getRowCount():0},t.prototype.navigateVertically=function(e,t,r){if(t||(t=this.focusService.getFocusedHeader()),!t)return!1;var o=t.headerRowIndex,i=t.column,a=this.getHeaderRowCount(),l=e===n.UP?this.headerPositionUtils.getColumnVisibleParent(i,o):this.headerPositionUtils.getColumnVisibleChild(i,o),s=l.nextRow,c=l.nextFocusColumn,u=!1;return s<0&&(s=0,c=i,u=!0),s>=a&&(s=-1),!(!u&&!c)&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:s,column:c},allowUserOverride:!0,event:r})},t.prototype.navigateHorizontally=function(e,t,r){void 0===t&&(t=!1);var o,i,a=this.focusService.getFocusedHeader();return e===n.LEFT!==this.gridOptionsService.is("enableRtl")?(i="Before",o=this.headerPositionUtils.findHeader(a,i)):(i="After",o=this.headerPositionUtils.findHeader(a,i)),o||!t?this.focusService.focusHeaderPosition({headerPosition:o,direction:i,fromTab:t,allowUserOverride:!0,event:r}):this.focusNextHeaderRow(a,i,r)},t.prototype.focusNextHeaderRow=function(e,t,r){var o,n=e.headerRowIndex,i=null;return"Before"===t?n>0&&(o=n-1,i=this.headerPositionUtils.findColAtEdgeForHeaderRow(o,"end")):(o=n+1,i=this.headerPositionUtils.findColAtEdgeForHeaderRow(o,"start")),this.focusService.focusHeaderPosition({headerPosition:i,direction:t,fromTab:!0,allowUserOverride:!0,event:r})},t.prototype.scrollToColumn=function(e,t){if(void 0===t&&(t="After"),!e.getPinned()){var r;if(e instanceof l.a){var o=e.getDisplayedLeafColumns();r="Before"===t?Object(s.last)(o):o[0]}else r=e;this.gridBodyCon.getScrollFeature().ensureColumnVisible(r)}},u([Object(a.a)("focusService")],t.prototype,"focusService",void 0),u([Object(a.a)("headerPositionUtils")],t.prototype,"headerPositionUtils",void 0),u([Object(a.a)("ctrlsService")],t.prototype,"ctrlsService",void 0),u([a.e],t.prototype,"postConstruct",null),t=u([Object(a.b)("headerNavigationService")],t)}(i.a)},function(e,t,r){"use strict";function o(e,t){return e.toString().padStart(t,"0")}function n(e,t){for(var r=[],o=e;o<=t;o++)r.push(o);return r}function i(e){return"string"==typeof e&&(e=parseInt(e,10)),"number"==typeof e?Math.floor(e):null}function a(e,t){for(var r="",o=0;o>>=8;return r}function l(e,t,r){return"number"!=typeof e?"":s(Math.round(100*e)/100,t,r)}function s(e,t,r){return"number"!=typeof e?"":e.toString().replace(".",r).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+t)}function c(e){return null==e?null:e.reduce((function(e,t){return e+t}),0)}function u(e,t){return e>=0?e:t}function g(e,t){var r=parseInt(e,10);return!isNaN(r)&&isFinite(r)&&r>0?r:t}r.r(t),r.d(t,"padStartWidthZeros",(function(){return o})),r.d(t,"createArrayOfNumbers",(function(){return n})),r.d(t,"cleanNumber",(function(){return i})),r.d(t,"decToHex",(function(){return a})),r.d(t,"formatNumberTwoDecimalPlacesAndCommas",(function(){return l})),r.d(t,"formatNumberCommas",(function(){return s})),r.d(t,"sum",(function(){return c})),r.d(t,"zeroOrGreater",(function(){return u})),r.d(t,"oneOrGreater",(function(){return g}))},function(e,t,r){"use strict";function o(e){var t=new Map;return e.forEach((function(e){return t.set(e[0],e[1])})),t}function n(e,t){var r=new Map;return e.forEach((function(e){return r.set(t(e),e)})),r}function i(e){var t=[];return e.forEach((function(e,r){return t.push(r)})),t}r.r(t),r.d(t,"convertToMap",(function(){return o})),r.d(t,"mapById",(function(){return n})),r.d(t,"keys",(function(){return i}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return g}));var o,n=r(5),i=r(0),a=r(38),l=r(7),s=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},u=0,g=function(e){function t(t,r){var o=e.call(this)||this;return o.lastFocusEvent=null,o.columnGroupChild=t,o.parentRowCtrl=r,o.instanceId=t.getUniqueId()+"-"+u++,o}return s(t,e),t.prototype.shouldStopEventPropagation=function(e){var t=this.focusService.getFocusedHeader(),r=t.headerRowIndex,o=t.column;return Object(a.isUserSuppressingHeaderKeyboardEvent)(this.gridOptionsService,e,r,o)},t.prototype.getWrapperHasFocus=function(){return this.gridOptionsService.getDocument().activeElement===this.eGui},t.prototype.setGui=function(e){this.eGui=e,this.addDomData()},t.prototype.handleKeyDown=function(e){var t=this.getWrapperHasFocus();switch(e.key){case l.a.PAGE_DOWN:case l.a.PAGE_UP:case l.a.PAGE_HOME:case l.a.PAGE_END:t&&e.preventDefault()}},t.prototype.addDomData=function(){var e=this,r=t.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsService.setDomData(this.eGui,r,this),this.addDestroyFunc((function(){return e.gridOptionsService.setDomData(e.eGui,r,null)}))},t.prototype.getGui=function(){return this.eGui},t.prototype.focus=function(e){return!!this.eGui&&(this.lastFocusEvent=e||null,this.eGui.focus(),!0)},t.prototype.getRowIndex=function(){return this.parentRowCtrl.getRowIndex()},t.prototype.getParentRowCtrl=function(){return this.parentRowCtrl},t.prototype.getPinned=function(){return this.parentRowCtrl.getPinned()},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.getColumnGroupChild=function(){return this.columnGroupChild},t.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",c([Object(i.a)("focusService")],t.prototype,"focusService",void 0),c([Object(i.a)("beans")],t.prototype,"beans",void 0),c([Object(i.a)("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(n.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return g}));var o,n=r(12),i=r(2),a=r(53),l=r(9),s=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},u=function(e,t){for(var r=0,o=t.length,n=e.length;r=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};!function(e){e.TAB_GUARD="ag-tab-guard",e.TAB_GUARD_TOP="ag-tab-guard-top",e.TAB_GUARD_BOTTOM="ag-tab-guard-bottom"}(n||(n={}));var u=function(e){function t(t){var r=e.call(this)||this;r.skipTabGuardFocus=!1;var o=t.comp,n=t.eTopGuard,i=t.eBottomGuard,a=t.focusInnerElement,l=t.onFocusIn,s=t.onFocusOut,c=t.shouldStopEventPropagation,u=t.onTabKeyDown,g=t.handleKeyDown,d=t.eFocusableElement;return r.comp=o,r.eTopGuard=n,r.eBottomGuard=i,r.providedFocusInnerElement=a,r.eFocusableElement=d,r.providedFocusIn=l,r.providedFocusOut=s,r.providedShouldStopEventPropagation=c,r.providedOnTabKeyDown=u,r.providedHandleKeyDown=g,r}return s(t,e),t.prototype.postConstruct=function(){var e=this;this.createManagedBean(new l.a(this.eFocusableElement,{shouldStopEventPropagation:function(){return e.shouldStopEventPropagation()},onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)},onFocusIn:function(t){return e.onFocusIn(t)},onFocusOut:function(t){return e.onFocusOut(t)}})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach((function(t){return e.addManagedListener(t,"focus",e.onFocus.bind(e))}))},t.prototype.handleKeyDown=function(e){this.providedHandleKeyDown&&this.providedHandleKeyDown(e)},t.prototype.tabGuardsAreActive=function(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")},t.prototype.shouldStopEventPropagation=function(){return!!this.providedShouldStopEventPropagation&&this.providedShouldStopEventPropagation()},t.prototype.activateTabGuards=function(){this.comp.setTabIndex(this.getGridTabIndex())},t.prototype.deactivateTabGuards=function(){this.comp.setTabIndex()},t.prototype.onFocus=function(e){if(this.skipTabGuardFocus)this.skipTabGuardFocus=!1;else{var t=e.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(t):this.focusInnerElement(t)}},t.prototype.onFocusIn=function(e){this.providedFocusIn&&this.providedFocusIn(e)||this.deactivateTabGuards()},t.prototype.onFocusOut=function(e){this.providedFocusOut&&this.providedFocusOut(e)||this.eFocusableElement.contains(e.relatedTarget)||this.activateTabGuards()},t.prototype.onTabKeyDown=function(e){var t=this;if(this.providedOnTabKeyDown)this.providedOnTabKeyDown(e);else if(!e.defaultPrevented){var r=this.tabGuardsAreActive();r&&this.deactivateTabGuards();var o=this.getNextFocusableElement(e.shiftKey);r&&setTimeout((function(){return t.activateTabGuards()}),0),o&&(o.focus(),e.preventDefault())}},t.prototype.getGridTabIndex=function(){return(this.gridOptionsService.getNum("tabIndex")||0).toString()},t.prototype.focusInnerElement=function(e){void 0===e&&(e=!1);var t=this.focusService.findFocusableElements(this.eFocusableElement);this.tabGuardsAreActive()&&(t.splice(0,1),t.splice(t.length-1,1)),t.length&&t[e?t.length-1:0].focus({preventScroll:!0})},t.prototype.getNextFocusableElement=function(e){return this.focusService.findNextFocusableElement(this.eFocusableElement,!1,e)},t.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1);var t=e?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,t.focus()},c([Object(a.a)("focusService")],t.prototype,"focusService",void 0),c([a.e],t.prototype,"postConstruct",null),t}(i.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return b}));var o,n=r(0),i=r(5),a=r(3),l=r(36),s=r(16),c=r(1),u=r(43),g=r(51),d=r(10),p=r(2),h=r(53),f=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),v=function(){return(v=Object.assign||function(e){for(var t,r=1,o=arguments.length;r=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},y=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},w=function(e,t){for(var r=0,o=t.length,n=e.length;r0?-1===o.indexOf(t)&&o.push(t):(r.instancesMonitored.set(e,[t]),e.addEventListener("keydown",r.toggleKeyboardMode),e.addEventListener("mousedown",r.toggleKeyboardMode))},t.removeKeyboardModeEvents=function(e,t){var o=r.instancesMonitored.get(e),n=[];o&&o.length&&(n=w([],y(o)).filter((function(e){return e!==t})),r.instancesMonitored.set(e,n)),0===n.length&&(e.removeEventListener("keydown",r.toggleKeyboardMode),e.removeEventListener("mousedown",r.toggleKeyboardMode))},t.toggleKeyboardMode=function(e){var t=r.keyboardModeActive,o="keydown"===e.type;if(!(o&&(e.ctrlKey||e.metaKey||e.altKey)||t&&o||!t&&!o)){r.keyboardModeActive=o;var n=e.target.ownerDocument;if(n){var i=r.instancesMonitored.get(n);i&&i.forEach((function(e){e.dispatchEvent({type:o?a.a.EVENT_KEYBOARD_FOCUS:a.a.EVENT_MOUSE_FOCUS})}))}}},t.prototype.init=function(){var e=this,t=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,a.a.EVENT_COLUMN_PIVOT_MODE_CHANGED,t),this.addManagedListener(this.eventService,a.a.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,a.a.EVENT_COLUMN_GROUP_OPENED,t),this.addManagedListener(this.eventService,a.a.EVENT_COLUMN_ROW_GROUP_CHANGED,t),this.ctrlsService.whenReady((function(t){e.gridCtrl=t.gridCtrl;var o=e.gridOptionsService.getDocument();r.addKeyboardModeEvents(o,e.gridCtrl),e.addDestroyFunc((function(){return e.unregisterGridCompController(e.gridCtrl)}))}))},t.prototype.unregisterGridCompController=function(e){var t=this.gridOptionsService.getDocument();r.removeKeyboardModeEvents(t,e)},t.prototype.onColumnEverythingChanged=function(){if(this.focusedCellPosition){var e=this.focusedCellPosition.column,t=this.columnModel.getGridColumn(e.getId());e!==t&&this.clearFocusedCell()}},t.prototype.isKeyboardMode=function(){return r.keyboardModeActive},t.prototype.getFocusCellToUseAfterRefresh=function(){var e=this.gridOptionsService.getDocument();return this.gridOptionsService.is("suppressFocusAfterRefresh")||!this.focusedCellPosition||this.isDomDataMissingInHierarchy(e.activeElement,u.a.DOM_DATA_KEY_ROW_CTRL)?null:this.focusedCellPosition},t.prototype.getFocusHeaderToUseAfterRefresh=function(){var e=this.gridOptionsService.getDocument();return this.gridOptionsService.is("suppressFocusAfterRefresh")||!this.focusedHeaderPosition||this.isDomDataMissingInHierarchy(e.activeElement,g.a.DOM_DATA_KEY_HEADER_CTRL)?null:this.focusedHeaderPosition},t.prototype.isDomDataMissingInHierarchy=function(e,t){for(var r=e;r;){if(this.gridOptionsService.getDomData(r,t))return!1;r=r.parentNode}return!0},t.prototype.getFocusedCell=function(){return this.focusedCellPosition},t.prototype.getFocusEventParams=function(){var e=this.focusedCellPosition,t=e.rowIndex,r=e.rowPinned,o={rowIndex:t,rowPinned:r,column:e.column,isFullWidthCell:!1},n=this.rowRenderer.getRowByPosition({rowIndex:t,rowPinned:r});return n&&(o.isFullWidthCell=n.isFullWidth()),o},t.prototype.clearFocusedCell=function(){if(null!=this.focusedCellPosition){var e=v({type:a.a.EVENT_CELL_FOCUS_CLEARED},this.getFocusEventParams());this.focusedCellPosition=null,this.eventService.dispatchEvent(e)}},t.prototype.setFocusedCell=function(e){var t=e.column,r=e.rowIndex,o=e.rowPinned,n=e.forceBrowserFocus,i=void 0!==n&&n,l=e.preventScrollOnBrowserFocus,s=void 0!==l&&l,u=this.columnModel.getGridColumn(t);if(u){this.focusedCellPosition=u?{rowIndex:r,rowPinned:Object(c.makeNull)(o),column:u}:null;var g=v(v({type:a.a.EVENT_CELL_FOCUSED},this.getFocusEventParams()),{forceBrowserFocus:i,preventScrollOnBrowserFocus:s,floating:null});this.eventService.dispatchEvent(g)}else this.focusedCellPosition=null},t.prototype.isCellFocused=function(e){return null!=this.focusedCellPosition&&(this.focusedCellPosition.column===e.column&&this.isRowFocused(e.rowIndex,e.rowPinned))},t.prototype.isRowNodeFocused=function(e){return this.isRowFocused(e.rowIndex,e.rowPinned)},t.prototype.isHeaderWrapperFocused=function(e){if(null==this.focusedHeaderPosition)return!1;var t=e.getColumnGroupChild(),r=e.getRowIndex(),o=e.getPinned(),n=this.focusedHeaderPosition,i=n.column,a=n.headerRowIndex;return t===i&&r===a&&o==i.getPinned()},t.prototype.clearFocusedHeader=function(){this.focusedHeaderPosition=null},t.prototype.getFocusedHeader=function(){return this.focusedHeaderPosition},t.prototype.setFocusedHeader=function(e,t){this.focusedHeaderPosition={headerRowIndex:e,column:t}},t.prototype.focusHeaderPosition=function(e){var t=e.direction,r=e.fromTab,o=e.allowUserOverride,n=e.event,i=e.headerPosition;if(o){var a,l=this.getFocusedHeader(),s=this.headerNavigationService.getHeaderRowCount();if(r){if(a=this.gridOptionsService.getCallback("tabToNextHeader"))i=a({backwards:"Before"===t,previousHeaderPosition:l,nextHeaderPosition:i,headerRowCount:s})}else if((a=this.gridOptionsService.getCallback("navigateToNextHeader"))&&n)i=a({key:n.key,previousHeaderPosition:l,nextHeaderPosition:i,headerRowCount:s,event:n})}return!!i&&(-1===i.headerRowIndex?this.focusGridView(i.column):(this.headerNavigationService.scrollToColumn(i.column,t),this.ctrlsService.getHeaderRowContainerCtrl(i.column.getPinned()).focusHeader(i.headerRowIndex,i.column,n)))},t.prototype.focusFirstHeader=function(){var e=this.columnModel.getAllDisplayedColumns()[0];return!!e&&(e.getParent()&&(e=this.columnModel.getColumnGroupAtLevel(e,0)),this.focusHeaderPosition({headerPosition:{headerRowIndex:0,column:e}}))},t.prototype.focusLastHeader=function(e){var t=this.headerNavigationService.getHeaderRowCount()-1,r=Object(d.last)(this.columnModel.getAllDisplayedColumns());return this.focusHeaderPosition({headerPosition:{headerRowIndex:t,column:r},event:e})},t.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},t.prototype.isRowFocused=function(e,t){return null!=this.focusedCellPosition&&(this.focusedCellPosition.rowIndex===e&&this.focusedCellPosition.rowPinned===Object(c.makeNull)(t))},t.prototype.findFocusableElements=function(e,t,r){void 0===r&&(r=!1);var o=p.FOCUSABLE_SELECTOR,n=p.FOCUSABLE_EXCLUDE;t&&(n+=", "+t),r&&(n+=', [tabindex="-1"]');var i=Array.prototype.slice.apply(e.querySelectorAll(o)),a=Array.prototype.slice.apply(e.querySelectorAll(n));if(!a.length)return i;var l;return l=a,i.filter((function(e){return-1===l.indexOf(e)}))},t.prototype.focusInto=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var o=this.findFocusableElements(e,null,r),n=t?Object(d.last)(o):o[0];return!!n&&(n.focus({preventScroll:!0}),!0)},t.prototype.findFocusableElementBeforeTabGuard=function(e,t){if(!t)return null;var r=this.findFocusableElements(e),o=r.indexOf(t);if(-1===o)return null;for(var n=-1,i=o-1;i>=0;i--)if(r[i].classList.contains(h.a.TAB_GUARD_TOP)){n=i;break}return n<=0?null:r[n-1]},t.prototype.findNextFocusableElement=function(e,t,r){void 0===e&&(e=this.eGridDiv);var o=this.findFocusableElements(e,t?':not([tabindex="-1"])':null),n=this.gridOptionsService.getDocument().activeElement,i=(t?o.findIndex((function(e){return e.contains(n)})):o.indexOf(n))+(r?-1:1);return i<0||i>=o.length?null:o[i]},t.prototype.isTargetUnderManagedComponent=function(e,t){if(!t)return!1;var r=e.querySelectorAll("."+l.a.FOCUS_MANAGED_CLASS);if(!r.length)return!1;for(var o=0;o=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},g="ag-Grid-AutoColumn",d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.createAutoGroupColumns=function(e,t){var r=this,o=[],n=this.gridOptionsService.isTreeData(),i=this.gridOptionsService.isGroupMultiAutoColumn();return n&&i&&(console.warn('AG Grid: you cannot mix groupDisplayType = "multipleColumns" with treeData, only one column can be used to display groups when doing tree data'),i=!1),i?t.forEach((function(t,n){o.push(r.createOneAutoGroupColumn(e,t,n))})):o.push(this.createOneAutoGroupColumn(e)),o},t.prototype.createOneAutoGroupColumn=function(e,t,r){var o,n=this.generateDefaultColDef(t);o=t?g+"-"+t.getId():g;var a=this.gridOptionsService.get("autoGroupColumnDef");(Object(l.mergeDeep)(n,a),(n=this.columnFactory.mergeColDefs(n,o)).colId=o,this.gridOptionsService.isTreeData())||Object(s.missing)(n.field)&&Object(s.missing)(n.valueGetter)&&Object(s.missing)(n.filterValueGetter)&&"agGroupColumnFilter"!==n.filter&&(n.filter=!1);r&&r>0&&(n.headerCheckboxSelection=!1);var c=e.find((function(e){return e.getId()==o})),u=this.gridOptionsService.isColumnsSortingCoupledToGroup();if(c)return u&&(n.sort=void 0,n.sortIndex=void 0),c.setColDef(n,null),this.columnFactory.applyColumnState(c,n),c;u&&(n.sort||n.initialSort||"sortIndex"in n)&&!n.field&&(n.sort=null,n.sortIndex=null,n.initialSort=null);var d=new i.a(n,null,o,!0);return this.context.createBean(d),d},t.prototype.generateDefaultColDef=function(e){var t=this.gridOptionsService.get("autoGroupColumnDef"),r={headerName:this.localeService.getLocaleTextFunc()("group","Group")};if(t&&(t.cellRenderer||t.cellRendererSelector)||(r.cellRenderer="agGroupCellRenderer"),e){var o=e.getColDef();Object.assign(r,{headerName:this.columnModel.getDisplayNameForColumn(e,"header"),headerValueGetter:o.headerValueGetter}),o.cellRenderer&&Object.assign(r,{cellRendererParams:{innerRenderer:o.cellRenderer,innerRendererParams:o.cellRendererParams}}),r.showRowGroup=e.getColId()}else r.showRowGroup=!0;return r},u([Object(n.a)("columnModel")],t.prototype,"columnModel",void 0),u([Object(n.a)("columnFactory")],t.prototype,"columnFactory",void 0),t=u([Object(n.b)("autoGroupColService")],t)}(a.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return f}));var o,n=r(0),i=r(2),a=r(11),l=r(188),s=r(36),c=r(84),u=r(12),g=r(8),d=r(73),p=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),h=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},f=function(e){function t(t){var r=e.call(this)||this;return r.filterNameKey=t,r.applyActive=!1,r.hidePopup=null,r.debouncePending=!1,r.appliedModel=null,r}return p(t,e),t.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new s.a(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new d.a(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}),this.createBean(this.positionableFeature)},t.prototype.handleKeyDown=function(e){},t.prototype.getFilterTitle=function(){return this.translate(this.filterNameKey)},t.prototype.isFilterActive=function(){return!!this.appliedModel},t.prototype.resetTemplate=function(e){var t=this.getGui();t&&t.removeEventListener("submit",this.onFormSubmit);var r='\n
\n
\n '+this.createBodyTemplate()+"\n
\n
";this.setTemplate(r,e),(t=this.getGui())&&t.addEventListener("submit",this.onFormSubmit)},t.prototype.isReadOnly=function(){return!!this.providedFilterParams.readOnly},t.prototype.init=function(e){var t=this;this.setParams(e),this.resetUiToDefaults(!0).then((function(){t.updateUiVisibility(),t.setupOnBtApplyDebounce()}))},t.prototype.setParams=function(e){this.providedFilterParams=e,this.applyActive=t.isUseApplyButton(e),this.createButtonPanel()},t.prototype.createButtonPanel=function(){var e=this,t=this.providedFilterParams.buttons;if(!(!t||t.length<1||this.isReadOnly())){var r=document.createElement("div");r.classList.add("ag-filter-apply-panel");Object(c.convertToSet)(t).forEach((function(t){return function(t){var o,n;switch(t){case"apply":o=e.translate("applyFilter"),n=function(t){return e.onBtApply(!1,!1,t)};break;case"clear":o=e.translate("clearFilter"),n=function(){return e.onBtClear()};break;case"reset":o=e.translate("resetFilter"),n=function(){return e.onBtReset()};break;case"cancel":o=e.translate("cancelFilter"),n=function(t){e.onBtCancel(t)};break;default:return void console.warn("AG Grid: Unknown button type specified")}var a="apply"===t?"submit":"button",l=Object(i.loadTemplate)(''+o+"\n ");r.appendChild(l),e.addManagedListener(l,"click",n)}(t)})),this.getGui().appendChild(r)}},t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.setupOnBtApplyDebounce=function(){var e=this,r=t.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs()),o=Object(a.debounce)(this.checkApplyDebounce.bind(this),r);this.onBtApplyDebounce=function(){e.debouncePending=!0,o()}},t.prototype.checkApplyDebounce=function(){this.debouncePending&&(this.debouncePending=!1,this.onBtApply())},t.prototype.getModel=function(){return this.appliedModel?this.appliedModel:null},t.prototype.setModel=function(e){var t=this;return(null!=e?this.setModelIntoUi(e):this.resetUiToDefaults()).then((function(){t.updateUiVisibility(),t.applyModel("api")}))},t.prototype.onBtCancel=function(e){var t=this;this.resetUiToActiveModel(this.getModel(),(function(){t.handleCancelEnd(e)}))},t.prototype.handleCancelEnd=function(e){this.providedFilterParams.closeOnApply&&this.close(e)},t.prototype.resetUiToActiveModel=function(e,t){var r=this,o=function(){r.onUiChanged(!1,"prevent"),null==t||t()};null!=e?this.setModelIntoUi(e).then(o):this.resetUiToDefaults().then(o)},t.prototype.onBtClear=function(){var e=this;this.resetUiToDefaults().then((function(){return e.onUiChanged()}))},t.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},t.prototype.applyModel=function(e){void 0===e&&(e="api");var t=this.getModelFromUi();if(!this.isModelValid(t))return!1;var r=this.appliedModel;return this.appliedModel=t,!this.areModelsEqual(r,t)},t.prototype.isModelValid=function(e){return!0},t.prototype.onFormSubmit=function(e){e.preventDefault()},t.prototype.onBtApply=function(e,t,r){void 0===e&&(e=!1),void 0===t&&(t=!1),r&&r.preventDefault(),this.applyModel(t?"rowDataUpdated":"ui")&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:t}),this.providedFilterParams.closeOnApply&&this.applyActive&&!e&&!t&&this.close(r)},t.prototype.onNewRowsLoaded=function(){},t.prototype.close=function(e){if(this.hidePopup){var t,r=e,o=r&&r.key;"Enter"!==o&&"Space"!==o||(t={keyboardEvent:r}),this.hidePopup(t),this.hidePopup=null}},t.prototype.onUiChanged=function(e,t){if(void 0===e&&(e=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly()){var r=this.isModelValid(this.getModelFromUi());Object(i.setDisabled)(this.getRefElement("applyFilterButton"),!r)}e&&!t||"immediately"===t?this.onBtApply(e):(this.applyActive||t)&&"debounce"!==t||this.onBtApplyDebounce()},t.prototype.afterGuiAttached=function(e){e&&(this.hidePopup=e.hidePopup),this.refreshFilterResizer(null==e?void 0:e.container)},t.prototype.refreshFilterResizer=function(e){if(this.positionableFeature&&"toolPanel"!==e){var t="floatingFilter"===e,r=this.positionableFeature,o=this.gridOptionsService;t?(r.restoreLastSize(),r.setResizable(o.is("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(this.positionableFeature.removeSizeFromEl(),this.positionableFeature.setResizable(!1)),this.positionableFeature.constrainSizeToAvailableHeight(!0)}},t.prototype.afterGuiDetached=function(){this.checkApplyDebounce(),this.positionableFeature&&this.positionableFeature.constrainSizeToAvailableHeight(!1)},t.getDebounceMs=function(e,r){return t.isUseApplyButton(e)?(null!=e.debounceMs&&console.warn("AG Grid: debounceMs is ignored when apply button is present"),0):null!=e.debounceMs?e.debounceMs:r},t.isUseApplyButton=function(e){return!!e.buttons&&e.buttons.indexOf("apply")>=0},t.prototype.destroy=function(){var t=this.getGui();t&&t.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,this.positionableFeature&&(this.positionableFeature=this.destroyBean(this.positionableFeature)),e.prototype.destroy.call(this)},t.prototype.translate=function(e){return this.localeService.getLocaleTextFunc()(e,l.a[e])},t.prototype.getCellValue=function(e){var t=this.providedFilterParams,r=t.api,o=t.colDef,n=t.column,i=t.columnApi,a=t.context;return this.providedFilterParams.valueGetter({api:r,colDef:o,column:n,columnApi:i,context:a,data:e.data,getValue:function(t){return e.data[t]},node:e})},t.prototype.getPositionableElement=function(){return this.eFilterBody},h([Object(n.a)("rowModel")],t.prototype,"rowModel",void 0),h([Object(g.b)("eFilterBody")],t.prototype,"eFilterBody",void 0),h([n.e],t.prototype,"postConstruct",null),t}(u.a)},function(e,t,r){"use strict";r.d(t,"b",(function(){return g})),r.d(t,"a",(function(){return d}));var o,n=r(25),i=r(37),a=r(1),l=r(22),s=r(9),c=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(){return(u=Object.assign||function(e){for(var t,r=1,o=arguments.length;r0&&(r.filter=o[0]),o.length>1&&(r.filterTo=o[1]),r},t.prototype.getFilterType=function(){return"text"},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type},t.prototype.getInputs=function(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]},t.prototype.getValues=function(e){var r=this,o=[];return this.forEachPositionInput(e,(function(e,n,i,l){if(n=0},t.prototype.evaluateNonNullValue=function(e,t,r,o){var i=this,a=e.map((function(e){return i.formatter(e)}))||[],l=this.formatter(t),s=this.textFilterParams,c=s.api,g=s.colDef,d=s.column,p=s.columnApi,h=s.context,f=s.textFormatter;if(r.type===n.a.BLANK)return this.isBlank(t);if(r.type===n.a.NOT_BLANK)return!this.isBlank(t);var v={api:c,colDef:g,column:d,columnApi:p,context:h,node:o.node,data:o.data,filterOption:r.type,value:l,textFormatter:f};return a.some((function(e){return i.matcher(u(u({},v),{filterText:e}))}))},t.prototype.getModelAsString=function(e){var t;return null!==(t=this.filterModelFormatter.getModelAsString(e))&&void 0!==t?t:""},t.DEFAULT_FILTER_OPTIONS=[n.a.CONTAINS,n.a.NOT_CONTAINS,n.a.EQUALS,n.a.NOT_EQUAL,n.a.STARTS_WITH,n.a.ENDS_WITH,n.a.BLANK,n.a.NOT_BLANK],t.DEFAULT_FORMATTER=function(e){return e},t.DEFAULT_LOWERCASE_FORMATTER=function(e){return null==e?null:e.toString().toLowerCase()},t.DEFAULT_MATCHER=function(e){var r=e.filterOption,o=e.value,n=e.filterText;if(null==n)return!1;switch(r){case t.CONTAINS:return o.indexOf(n)>=0;case t.NOT_CONTAINS:return o.indexOf(n)<0;case t.EQUALS:return o===n;case t.NOT_EQUAL:return o!=n;case t.STARTS_WITH:return 0===o.indexOf(n);case t.ENDS_WITH:var i=o.lastIndexOf(n);return i>=0&&i===o.length-n.length;default:return!1}},t}(n.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var o,n,i=r(0),a=r(5),l=r(1),s=r(16),c=r(27),u=r(11),g=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(){return(d=Object.assign||function(e){for(var t,r=1,o=arguments.length;r=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};!function(e){e[e.NOTHING=0]="NOTHING",e[e.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",e[e.SHOWING=2]="SHOWING"}(n||(n={}));var h=function(e){function t(t){var r=e.call(this)||this;return r.DEFAULT_SHOW_TOOLTIP_DELAY=2e3,r.DEFAULT_HIDE_TOOLTIP_DELAY=1e4,r.SHOW_QUICK_TOOLTIP_DIFF=1e3,r.FADE_OUT_TOOLTIP_TIMEOUT=1e3,r.state=n.NOTHING,r.tooltipInstanceCount=0,r.tooltipMouseTrack=!1,r.parentComp=t,r}return g(t,e),t.prototype.postConstruct=function(){this.tooltipShowDelay=this.getTooltipDelay("show")||this.DEFAULT_SHOW_TOOLTIP_DELAY,this.tooltipHideDelay=this.getTooltipDelay("hide")||this.DEFAULT_HIDE_TOOLTIP_DELAY,this.tooltipMouseTrack=this.gridOptionsService.is("tooltipMouseTrack");var e=this.parentComp.getGui();this.addManagedListener(e,"mouseenter",this.onMouseEnter.bind(this)),this.addManagedListener(e,"mouseleave",this.onMouseLeave.bind(this)),this.addManagedListener(e,"mousemove",this.onMouseMove.bind(this)),this.addManagedListener(e,"mousedown",this.onMouseDown.bind(this)),this.addManagedListener(e,"keydown",this.onKeyDown.bind(this))},t.prototype.destroy=function(){this.setToDoNothing(),e.prototype.destroy.call(this)},t.prototype.onMouseEnter=function(e){if(!Object(s.isIOSUserAgent)()&&this.state==n.NOTHING){var t=this.isLastTooltipHiddenRecently()?200:this.tooltipShowDelay;this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.lastMouseEvent=e,this.state=n.WAITING_TO_SHOW}},t.prototype.onMouseLeave=function(){this.setToDoNothing()},t.prototype.onKeyDown=function(){this.setToDoNothing()},t.prototype.setToDoNothing=function(){this.state===n.SHOWING&&this.hideTooltip(),this.clearTimeouts(),this.state=n.NOTHING},t.prototype.onMouseMove=function(e){this.lastMouseEvent=e,this.tooltipMouseTrack&&this.state===n.SHOWING&&this.tooltipComp&&this.positionTooltipUnderLastMouseEvent()},t.prototype.onMouseDown=function(){this.setToDoNothing()},t.prototype.getTooltipDelay=function(e){var t=this.gridOptionsService.getNum("tooltipShowDelay"),r=this.gridOptionsService.getNum("tooltipHideDelay"),o="show"===e?t:r,n=Object(c.capitalise)(e);return Object(l.exists)(o)?(o<0&&Object(u.doOnce)((function(){return console.warn("AG Grid: tooltip"+n+"Delay should not be lower than 0")}),"tooltip"+n+"DelayWarn"),Math.max(200,o)):null},t.prototype.hideTooltip=function(){this.tooltipComp&&(this.destroyTooltipComp(),t.lastTooltipHideTime=(new Date).getTime()),this.state=n.NOTHING},t.prototype.destroyTooltipComp=function(){var e=this;this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");var t=this.tooltipPopupDestroyFunc,r=this.tooltipComp;window.setTimeout((function(){t(),e.getContext().destroyBean(r)}),this.FADE_OUT_TOOLTIP_TIMEOUT),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0},t.prototype.isLastTooltipHiddenRecently=function(){return(new Date).getTime()-t.lastTooltipHideTimethis.max&&(e=this.max.toString()),e},t.prototype.adjustPrecision=function(e,t){if(null==this.precision)return e;if(t){var r=parseFloat(e).toFixed(this.precision);return parseFloat(r).toString()}var o=String(e).split(".");if(o.length>1){if(o[1].length<=this.precision)return e;if(this.precision>0)return o[0]+"."+o[1].slice(0,this.precision)}return o[0]},t.prototype.setMin=function(e){return this.min===e||(this.min=e,Object(i.addOrRemoveAttribute)(this.eInput,"min",e)),this},t.prototype.setMax=function(e){return this.max===e||(this.max=e,Object(i.addOrRemoveAttribute)(this.eInput,"max",e)),this},t.prototype.setPrecision=function(e){return this.precision=e,this},t.prototype.setStep=function(e){return this.step===e||(this.step=e,Object(i.addOrRemoveAttribute)(this.eInput,"step",e)),this},t.prototype.setValue=function(t,r){var o=this;return this.setValueOrInputValue((function(t){return e.prototype.setValue.call(o,t,r)}),(function(){return o}),t)},t.prototype.setStartValue=function(t){var r=this;return this.setValueOrInputValue((function(t){return e.prototype.setValue.call(r,t,!0)}),(function(e){r.eInput.value=e}),t)},t.prototype.setValueOrInputValue=function(e,t,r){if(Object(a.exists)(r)){var o=this.isScientificNotation(r);if(o&&this.eInput.validity.valid)return e(r);if(!o)o=(r=this.adjustPrecision(r))!=this.normalizeValue(r);if(o)return t(r)}return e(r)},t.prototype.getValue=function(){if(this.eInput.validity.valid){var t=this.eInput.value;return this.isScientificNotation(t)?this.adjustPrecision(t,!0):e.prototype.getValue.call(this)}},t.prototype.isScientificNotation=function(e){return"string"==typeof e&&e.includes("e")},t}(n.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var o,n=r(6),i=r(2),a=r(0),l=r(8),s=r(12),c=r(18),u=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),g=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},d=function(e){function t(r){var o=e.call(this)||this;return r||o.setTemplate(t.TEMPLATE),o}return u(t,e),t.prototype.attachCustomElements=function(e,t,r,o,n){this.eSortOrder=e,this.eSortAsc=t,this.eSortDesc=r,this.eSortMixed=o,this.eSortNone=n},t.prototype.setupSort=function(e,t){var r=this;void 0===t&&(t=!1),this.column=e,this.suppressOrder=t,this.setupMultiSortIndicator(),!!this.column.getColDef().sortable&&(this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addManagedListener(this.eventService,n.a.EVENT_SORT_CHANGED,(function(){return r.onSortChanged()})),this.addManagedListener(this.eventService,n.a.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return r.onSortChanged()})),this.onSortChanged())},t.prototype.addInIcon=function(e,t,r){if(null!=t){var o=Object(c.createIconNoSpan)(e,this.gridOptionsService,r);o&&t.appendChild(o)}},t.prototype.onSortChanged=function(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()},t.prototype.updateIcons=function(){var e=this.sortController.getDisplaySortForColumn(this.column);if(this.eSortAsc){var t="asc"===e;Object(i.setDisplayed)(this.eSortAsc,t,{skipAriaHidden:!0})}if(this.eSortDesc){var r="desc"===e;Object(i.setDisplayed)(this.eSortDesc,r,{skipAriaHidden:!0})}if(this.eSortNone){var o=!this.column.getColDef().unSortIcon&&!this.gridOptionsService.is("unSortIcon"),n=null==e;Object(i.setDisplayed)(this.eSortNone,!o&&n,{skipAriaHidden:!0})}},t.prototype.setupMultiSortIndicator=function(){var e=this;this.addInIcon("sortUnSort",this.eSortMixed,this.column);var t=this.column.getColDef().showRowGroup;this.gridOptionsService.isColumnsSortingCoupledToGroup()&&t&&(this.addManagedListener(this.eventService,n.a.EVENT_SORT_CHANGED,(function(){return e.updateMultiSortIndicator()})),this.addManagedListener(this.eventService,n.a.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return e.updateMultiSortIndicator()})),this.updateMultiSortIndicator())},t.prototype.updateMultiSortIndicator=function(){if(this.eSortMixed){var e="mixed"===this.sortController.getDisplaySortForColumn(this.column);Object(i.setDisplayed)(this.eSortMixed,e,{skipAriaHidden:!0})}},t.prototype.updateSortOrder=function(){var e,t=this;if(this.eSortOrder){var r=this.sortController.getColumnsWithSortingOrdered(),o=null!==(e=this.sortController.getDisplaySortIndexForColumn(this.column))&&void 0!==e?e:-1,n=r.some((function(e){var r;return null!==(r=t.sortController.getDisplaySortIndexForColumn(e))&&void 0!==r&&r})),a=o>=0&&n;Object(i.setDisplayed)(this.eSortOrder,a,{skipAriaHidden:!0}),o>=0?this.eSortOrder.innerHTML=(o+1).toString():Object(i.clearElement)(this.eSortOrder)}},t.TEMPLATE='\n \n \n \n \n \n ',g([Object(l.b)("eSortOrder")],t.prototype,"eSortOrder",void 0),g([Object(l.b)("eSortAsc")],t.prototype,"eSortAsc",void 0),g([Object(l.b)("eSortDesc")],t.prototype,"eSortDesc",void 0),g([Object(l.b)("eSortMixed")],t.prototype,"eSortMixed",void 0),g([Object(l.b)("eSortNone")],t.prototype,"eSortNone",void 0),g([Object(a.a)("columnModel")],t.prototype,"columnModel",void 0),g([Object(a.a)("sortController")],t.prototype,"sortController",void 0),t}(s.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var o,n=r(20),i=r(5),a=r(0),l=r(9),s=r(10),c=r(1),u=r(6),g=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},p=function(e){function t(t,r,o,n){var i=e.call(this)||this;return i.columnOrGroup=t,i.eCell=r,i.ariaEl=i.eCell.querySelector("[role=columnheader]")||i.eCell,i.colsSpanning=n,i.beans=o,i}return g(t,e),t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsService.is("enableRtl")&&this.colsSpanning?Object(s.last)(this.colsSpanning):this.columnOrGroup},t.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,n.a.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,u.a.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedPropertyListener("domLayout",this.onLeftChanged.bind(this))},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsService.is("suppressColumnMoveAnimation"),t=Object(c.exists)(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&t&&!e?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,t=this.getColumnOrGroup(),r=t.getLeft(),o=t.getOldLeft(),n=this.modifyLeftForPrintLayout(t,o),i=this.modifyLeftForPrintLayout(t,r);this.setLeft(n),this.actualLeft=i,this.beans.columnAnimationService.executeNextVMTurn((function(){e.actualLeft===i&&e.setLeft(i)}))},t.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)},t.prototype.modifyLeftForPrintLayout=function(e,t){if(!this.beans.gridOptionsService.isDomLayout("print"))return t;if("left"===e.getPinned())return t;var r=this.beans.columnModel.getDisplayedColumnsLeftWidth();return"right"===e.getPinned()?r+this.beans.columnModel.getBodyContainerWidth()+t:r+t},t.prototype.setLeft=function(e){var t;if(Object(c.exists)(e)&&(this.eCell.style.left=e+"px"),this.columnOrGroup instanceof n.a)t=this.columnOrGroup;else{var r=this.columnOrGroup.getLeafColumns();if(!r.length)return;r.length>1&&Object(l.setAriaColSpan)(this.ariaEl,r.length),t=r[0]}var o=this.beans.columnModel.getAriaColumnIndex(t);Object(l.setAriaColIndex)(this.ariaEl,o)},d([a.e],t.prototype,"postConstruct",null),t}(i.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var o,n=r(41),i=r(107),a=r(12),l=r(0),s=r(27),c=r(7),u=r(9),g=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},p=function(e){function t(t){void 0===t&&(t="default");var r=e.call(this,'
')||this;return r.cssIdentifier=t,r.options=[],r.itemEls=[],r}return g(t,e),t.prototype.init=function(){this.addManagedListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},t.prototype.handleKeyDown=function(e){var t=e.key;switch(t){case c.a.ENTER:if(this.highlightedEl){var r=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(r)}else this.setValue(this.getValue());break;case c.a.DOWN:case c.a.UP:var o=t===c.a.DOWN,n=void 0;if(e.preventDefault(),this.highlightedEl){var i=this.itemEls.indexOf(this.highlightedEl)+(o?1:-1);i=Math.min(Math.max(i,0),this.itemEls.length-1),n=this.itemEls[i]}else n=this.itemEls[o?0:this.itemEls.length-1];this.highlightItem(n)}},t.prototype.addOptions=function(e){var t=this;return e.forEach((function(e){return t.addOption(e)})),this},t.prototype.addOption=function(e){var t=e.value,r=e.text,o=Object(s.escapeString)(r||t);return this.options.push({value:t,text:o}),this.renderOption(t,o),this.updateIndices(),this},t.prototype.updateIndices=function(){var e=this.getGui().querySelectorAll(".ag-list-item");e.forEach((function(t,r){Object(u.setAriaPosInSet)(t,r+1),Object(u.setAriaSetSize)(t,e.length)}))},t.prototype.renderOption=function(e,t){var r=this,o=document.createElement("div");Object(u.setAriaRole)(o,"option"),o.classList.add("ag-list-item","ag-"+this.cssIdentifier+"-list-item"),o.innerHTML=""+t+"",o.tabIndex=-1,this.itemEls.push(o),this.addManagedListener(o,"mouseover",(function(){return r.highlightItem(o)})),this.addManagedListener(o,"mouseleave",(function(){return r.clearHighlighted()})),this.addManagedListener(o,"click",(function(){return r.setValue(e)})),this.getGui().appendChild(o)},t.prototype.setValue=function(e,t){if(this.value===e)return this.fireItemSelected(),this;if(null==e)return this.reset(),this;var r=this.options.findIndex((function(t){return t.value===e}));if(-1!==r){var o=this.options[r];this.value=o.value,this.displayValue=null!=o.text?o.text:o.value,this.highlightItem(this.itemEls[r]),t||this.fireChangeEvent()}return this},t.prototype.setValueByIndex=function(e){return this.setValue(this.options[e].value)},t.prototype.getValue=function(){return this.value},t.prototype.getDisplayValue=function(){return this.displayValue},t.prototype.refreshHighlighted=function(){var e=this;this.clearHighlighted();var t=this.options.findIndex((function(t){return t.value===e.value}));-1!==t&&this.highlightItem(this.itemEls[t])},t.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},t.prototype.highlightItem=function(e){e.offsetParent&&(this.clearHighlighted(),this.highlightedEl=e,this.highlightedEl.classList.add(t.ACTIVE_CLASS),Object(u.setAriaSelected)(this.highlightedEl,!0),this.highlightedEl.focus())},t.prototype.clearHighlighted=function(){this.highlightedEl&&this.highlightedEl.offsetParent&&(this.highlightedEl.classList.remove(t.ACTIVE_CLASS),Object(u.setAriaSelected)(this.highlightedEl,!1),this.highlightedEl=null)},t.prototype.fireChangeEvent=function(){this.dispatchEvent({type:n.a.EVENT_CHANGED}),this.fireItemSelected()},t.prototype.fireItemSelected=function(){this.dispatchEvent({type:t.EVENT_ITEM_SELECTED})},t.EVENT_ITEM_SELECTED="selectedItem",t.ACTIVE_CLASS="ag-active-item",d([l.e],t.prototype,"init",null),t}(a.a),h=r(2),f=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),v=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},m=function(e){function t(t){return e.call(this,t,"ag-select","smallDown","listbox")||this}return f(t,e),t.prototype.init=function(){var e=this;this.listComponent=this.createBean(new p("select")),this.listComponent.setParentComponent(this),this.eWrapper.tabIndex=0,this.listComponent.addManagedListener(this.listComponent,p.EVENT_ITEM_SELECTED,(function(){e.hideList&&e.hideList(),e.dispatchEvent({type:t.EVENT_ITEM_SELECTED})})),this.listComponent.addManagedListener(this.listComponent,n.a.EVENT_CHANGED,(function(){e.setValue(e.listComponent.getValue(),!1,!0),e.hideList&&e.hideList()}))},t.prototype.showPicker=function(){var e=this,t=this.listComponent.getGui(),r=this.gridOptionsService.getDocument(),o=this.addManagedListener(r.body,"wheel",(function(r){!t.contains(r.target)&&e.hideList&&e.hideList()})),n=this.addManagedListener(t,"focusout",(function(r){!t.contains(r.relatedTarget)&&e.hideList&&e.hideList()})),i=this.localeService.getLocaleTextFunc(),a=this.popupService.addPopup({modal:!0,eChild:t,closeOnEsc:!0,closedCallback:function(){e.hideList=null,e.isPickerDisplayed=!1,n(),o(),e.isAlive()&&(Object(u.setAriaExpanded)(e.eWrapper,!1),e.getFocusableElement().focus())},ariaLabel:i("ariaLabelSelectField","Select Field")});return a&&(this.hideList=a.hideFunc),this.isPickerDisplayed=!0,Object(h.setElementWidth)(t,Object(h.getAbsoluteWidth)(this.eWrapper)),Object(u.setAriaExpanded)(this.eWrapper,!0),t.style.maxHeight=Object(h.getInnerHeight)(this.popupService.getPopupParent())+"px",t.style.position="absolute",this.popupService.positionPopupByComponent({type:"ag-list",eventSource:this.eWrapper,ePopup:t,position:"under",keepWithinBounds:!0}),this.listComponent.refreshHighlighted(),this.listComponent},t.prototype.addOptions=function(e){var t=this;return e.forEach((function(e){return t.addOption(e)})),this},t.prototype.addOption=function(e){return this.listComponent.addOption(e),this},t.prototype.setValue=function(t,r,o){return this.value===t?this:(o||this.listComponent.setValue(t,!0),this.listComponent.getValue()===this.getValue()?this:(this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),e.prototype.setValue.call(this,t,r)))},t.prototype.destroy=function(){this.hideList&&this.hideList(),this.destroyBean(this.listComponent),e.prototype.destroy.call(this)},t.EVENT_ITEM_SELECTED="selectedItem",v([Object(l.a)("popupService")],t.prototype,"popupService",void 0),v([l.e],t.prototype,"init",null),t}(i.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return g}));var o=r(3),n=r(45),i=r(14),a=r(10),l=r(1),s=function(){return(s=Object.assign||function(e){for(var t,r=1,o=arguments.length;r0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},u=function(e,t){for(var r=0,o=t.length,n=e.length;r0&&(r.filter=o[0]),o.length>1&&(r.filterTo=o[1]),r},t.prototype.getInputs=function(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]},t.prototype.getModelAsString=function(e){var t;return null!==(t=this.filterModelFormatter.getModelAsString(e))&&void 0!==t?t:""},t.prototype.hasInvalidInputs=function(){var e=!1;return this.forEachInput((function(t){t.getInputElement().validity.valid||(e=!0)})),e},t.DEFAULT_FILTER_OPTIONS=[i.a.EQUALS,i.a.NOT_EQUAL,i.a.LESS_THAN,i.a.LESS_THAN_OR_EQUAL,i.a.GREATER_THAN,i.a.GREATER_THAN_OR_EQUAL,i.a.IN_RANGE,i.a.BLANK,i.a.NOT_BLANK],t}(i.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var o,n=r(39),i=r(8),a=r(16),l=r(7),s=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},u=function(e){function t(t){var r=e.call(this,'\n
\n '+t.getTemplate()+"\n
")||this;return r.cellEditorInput=t,r}return s(t,e),t.prototype.init=function(e){this.params=e;var t,r=this.eInput;if(this.cellEditorInput.init(r,e),e.cellStartedEdit){this.focusAfterAttached=!0;var o=e.eventKey;o===l.a.BACKSPACE||e.eventKey===l.a.DELETE?t="":o&&1===o.length?t=o:(t=this.cellEditorInput.getStartValue(),o!==l.a.F2&&(this.highlightAllOnFocus=!0))}else this.focusAfterAttached=!1,t=this.cellEditorInput.getStartValue();null!=t&&r.setStartValue(t),this.addManagedListener(r.getGui(),"keydown",(function(e){var t=e.key;t!==l.a.PAGE_UP&&t!==l.a.PAGE_DOWN||e.preventDefault()}))},t.prototype.afterGuiAttached=function(){var e,t,r=this.localeService.getLocaleTextFunc(),o=this.eInput;if(o.setInputAriaLabel(r("ariaInputEditor","Input Editor")),this.focusAfterAttached){Object(a.isBrowserSafari)()||o.getFocusableElement().focus();var n=o.getInputElement();this.highlightAllOnFocus?n.select():null===(t=(e=this.cellEditorInput).setCaret)||void 0===t||t.call(e)}},t.prototype.focusIn=function(){var e=this.eInput,t=e.getFocusableElement(),r=e.getInputElement();t.focus(),r.select()},t.prototype.getValue=function(){return this.cellEditorInput.getValue()},t.prototype.isPopup=function(){return!1},c([Object(i.b)("eInput")],t.prototype,"eInput",void 0),t}(n.a)},function(e,t,r){"use strict";var o;r.d(t,"a",(function(){return o})),function(e){e[e.Above=0]="Above",e[e.Below=1]="Below"}(o||(o={}))},function(e,t,r){"use strict";r.d(t,"c",(function(){return n})),r.d(t,"a",(function(){return P})),r.d(t,"b",(function(){return M}));var o,n,i=r(5),a=r(0),l=r(28),s=r(6),c=r(11),u=r(16),g=r(2),d=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(){return(p=Object.assign||function(e){for(var t,r=1,o=arguments.length;r=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},f=function(e){function t(t){var r=e.call(this)||this;return r.scrollLeft=-1,r.nextScrollTop=-1,r.scrollTop=-1,r.eBodyViewport=t,r.resetLastHScrollDebounced=Object(c.debounce)((function(){return r.eLastHScroll=null}),500),r.resetLastVScrollDebounced=Object(c.debounce)((function(){return r.eLastVScroll=null}),500),r}return d(t,e),t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsService.is("enableRtl"),this.addManagedListener(this.eventService,s.a.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady((function(t){e.centerRowContainerCtrl=t.centerRowContainerCtrl,e.onDisplayedColumnsWidthChanged(),e.addScrollListener()}))},t.prototype.addScrollListener=function(){var e=this.ctrlsService.getFakeHScrollComp(),t=this.ctrlsService.getFakeVScrollComp();this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(),"scroll",this.onHScroll.bind(this)),this.addManagedListener(e.getViewport(),"scroll",this.onFakeHScroll.bind(this));var r=this.gridOptionsService.is("debounceVerticalScrollbar"),o=r?Object(c.debounce)(this.onVScroll.bind(this),100):this.onVScroll.bind(this),n=r?Object(c.debounce)(this.onFakeVScroll.bind(this),100):this.onFakeVScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",o),this.addManagedListener(t.getViewport(),"scroll",n)},t.prototype.onDisplayedColumnsWidthChanged=function(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},t.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){if(!(null==this.centerRowContainerCtrl)){void 0===e&&(e=this.centerRowContainerCtrl.getCenterViewportScrollLeft());var t=this.enableRtl?e:-e,r=this.ctrlsService.getTopCenterRowContainerCtrl(),o=this.ctrlsService.getStickyTopCenterRowContainerCtrl(),n=this.ctrlsService.getBottomCenterRowContainerCtrl(),i=this.ctrlsService.getFakeHScrollComp();this.ctrlsService.getHeaderRowContainerCtrl().setHorizontalScroll(-t),n.setContainerTranslateX(t),r.setContainerTranslateX(t),o.setContainerTranslateX(t);var a=this.centerRowContainerCtrl.getViewportElement(),l=this.eLastHScroll===a?i.getViewport():this.centerRowContainerCtrl.getViewportElement();Object(g.setScrollLeft)(l,Math.abs(e),this.enableRtl)}},t.prototype.isControllingHScroll=function(e){return this.eLastHScroll?e===this.eLastHScroll:(this.eLastHScroll=e,!0)},t.prototype.isControllingVScroll=function(e){return this.eLastVScroll?e===this.eLastVScroll:(this.eLastVScroll=e,!0)},t.prototype.onFakeHScroll=function(){var e=this.ctrlsService.getFakeHScrollComp().getViewport();this.isControllingHScroll(e)&&this.onHScrollCommon(e)},t.prototype.onHScroll=function(){var e=this.centerRowContainerCtrl.getViewportElement();this.isControllingHScroll(e)&&this.onHScrollCommon(e)},t.prototype.onHScrollCommon=function(e){var t=this.centerRowContainerCtrl.getViewportElement().scrollLeft;this.shouldBlockScrollUpdate("horizontal",t,!0)||(this.doHorizontalScroll(Math.round(Object(g.getScrollLeft)(e,this.enableRtl))),this.resetLastHScrollDebounced())},t.prototype.onFakeVScroll=function(){var e=this.ctrlsService.getFakeVScrollComp().getViewport();this.isControllingVScroll(e)&&this.onVScrollCommon(e)},t.prototype.onVScroll=function(){this.isControllingVScroll(this.eBodyViewport)&&this.onVScrollCommon(this.eBodyViewport)},t.prototype.onVScrollCommon=function(e){var t=e.scrollTop;if(!this.shouldBlockScrollUpdate("vertical",t,!0)){if(this.animationFrameService.setScrollTop(t),this.nextScrollTop=t,e===this.eBodyViewport)this.ctrlsService.getFakeVScrollComp().getViewport().scrollTop=t;else this.eBodyViewport.scrollTop=t;this.gridOptionsService.is("suppressAnimationFrame")?this.scrollGridIfNeeded():this.animationFrameService.schedule(),this.resetLastVScrollDebounced()}},t.prototype.doHorizontalScroll=function(e){var t=this.ctrlsService.getFakeHScrollComp().getViewport(),r=Object(g.getScrollLeft)(t,this.enableRtl);this.scrollLeft===e&&e===r||(this.scrollLeft=e,this.fireScrollEvent("horizontal"),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.onHorizontalViewportChanged())},t.prototype.fireScrollEvent=function(e){var t=this,r={type:s.a.EVENT_BODY_SCROLL,direction:e,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(r),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout((function(){var e=p(p({},r),{type:s.a.EVENT_BODY_SCROLL_END});t.eventService.dispatchEvent(e)}),100)},t.prototype.shouldBlockScrollUpdate=function(e,t,r){return void 0===r&&(r=!1),!(r&&!Object(u.isIOSUserAgent)())&&("vertical"===e?this.shouldBlockVerticalScroll(t):this.shouldBlockHorizontalScroll(t))},t.prototype.shouldBlockVerticalScroll=function(e){var t=Object(g.getInnerHeight)(this.eBodyViewport),r=this.eBodyViewport.scrollHeight;return e<0||e+t>r},t.prototype.shouldBlockHorizontalScroll=function(e){var t=this.centerRowContainerCtrl.getCenterWidth(),r=this.centerRowContainerCtrl.getViewportElement().scrollWidth;if(this.enableRtl&&Object(g.isRtlNegativeScroll)()){if(e>0)return!0}else if(e<0)return!0;return Math.abs(e)+t>r},t.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent("vertical")},t.prototype.onHorizontalViewportChanged=function(){this.centerRowContainerCtrl.onHorizontalViewportChanged()},t.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onHScrollCommon(this.centerRowContainerCtrl.getViewportElement())},t.prototype.scrollGridIfNeeded=function(){var e=this.scrollTop!=this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e},t.prototype.setHorizontalScrollPosition=function(e){this.ctrlsService.getFakeHScrollComp().getGui();var t=this.centerRowContainerCtrl.getViewportElement().scrollWidth-this.centerRowContainerCtrl.getCenterWidth();this.shouldBlockScrollUpdate("horizontal",e)&&(e=this.enableRtl&&Object(g.isRtlNegativeScroll)()?e>0?0:t:Math.min(Math.max(e,0),t)),Object(g.setScrollLeft)(this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)},t.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},t.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},t.prototype.getHScrollPosition=function(){return this.centerRowContainerCtrl.getHScrollPosition()},t.prototype.isHorizontalScrollShowing=function(){return this.centerRowContainerCtrl.isHorizontalScrollShowing()},t.prototype.scrollHorizontally=function(e){var t=this.centerRowContainerCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(t+e),this.centerRowContainerCtrl.getViewportElement().scrollLeft-t},t.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},t.prototype.ensureNodeVisible=function(e,t){void 0===t&&(t=null);for(var r=this.rowModel.getRowCount(),o=-1,n=0;n=0&&this.ensureIndexVisible(o,t)},t.prototype.ensureIndexVisible=function(e,t){if(!this.gridOptionsService.isDomLayout("print")){var r=this.paginationProxy.getRowCount();if("number"!=typeof e||e<0||e>=r)console.warn("AG Grid: Invalid row index for ensureIndexVisible: "+e);else{this.gridOptionsService.is("pagination")&&!this.gridOptionsService.is("suppressPaginationPanel")||this.paginationProxy.goToPageWithIndex(e);var o,n=this.ctrlsService.getGridBodyCtrl().getStickyTopHeight(),i=this.paginationProxy.getRow(e);do{var a=i.rowTop,l=i.rowHeight,s=this.paginationProxy.getPixelOffset(),c=i.rowTop-s,u=c+i.rowHeight,g=this.getVScrollPosition(),d=this.heightScaler.getDivStretchOffset(),p=g.top+d,h=g.bottom+d,f=h-p,v=this.heightScaler.getScrollPositionForPixel(c),m=this.heightScaler.getScrollPositionForPixel(u-f),y=Math.min((v+m)/2,c),w=null;"top"===t?w=v:"bottom"===t?w=m:"middle"===t?w=y:p+n>c?w=v-n:ha:oi}},t.prototype.getColumnBounds=function(e){var t=this.enableRtl,r=this.columnModel.getBodyContainerWidth(),o=e.getActualWidth(),n=e.getLeft(),i=t?-1:1,a=t?r-n:n;return{colLeft:a,colMiddle:a+o/2*i,colRight:a+o*i}},t.prototype.getViewportBounds=function(){var e=this.centerRowContainerCtrl.getCenterWidth(),t=this.centerRowContainerCtrl.getCenterViewportScrollLeft();return{start:t,end:e+t,width:e}},h([Object(a.a)("ctrlsService")],t.prototype,"ctrlsService",void 0),h([Object(a.a)("animationFrameService")],t.prototype,"animationFrameService",void 0),h([Object(a.a)("paginationProxy")],t.prototype,"paginationProxy",void 0),h([Object(a.a)("rowModel")],t.prototype,"rowModel",void 0),h([Object(a.a)("rowContainerHeightService")],t.prototype,"heightScaler",void 0),h([Object(a.a)("rowRenderer")],t.prototype,"rowRenderer",void 0),h([Object(a.a)("columnModel")],t.prototype,"columnModel",void 0),h([a.e],t.prototype,"postConstruct",null),t}(i.a),v=r(17),m=r(67),y=r(10),w=r(1),b=r(126),C=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),S=function(){return(S=Object.assign||function(e){for(var t,r=1,o=arguments.length;r=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},E=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},R=function(e,t){for(var r=0,o=t.length,n=e.length;rthis.paginationProxy.getCurrentPageHeight()||(i=this.rowModel.getRowIndexAtPixel(n),r=this.rowModel.getRow(i)),t.vDirection){case v.d.Down:o="down";break;case v.d.Up:o="up";break;default:o=null}return{type:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,event:t.event,node:t.dragItem.rowNode,nodes:t.dragItem.rowNodes,overIndex:i,overNode:r,y:n,vDirection:o}},t.prototype.dispatchGridEvent=function(e,t){var r=this.draggingToRowDragEvent(e,t);this.eventService.dispatchEvent(r)},t.prototype.onDragLeave=function(e){this.dispatchGridEvent(s.a.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.gridOptionsService.is("rowDragManaged")&&this.clearRowHighlight(),this.isFromThisGrid(e)&&(this.isMultiRowDrag=!1)},t.prototype.onDragStop=function(e){this.dispatchGridEvent(s.a.EVENT_ROW_DRAG_END,e),this.stopDragging(e),!this.gridOptionsService.is("rowDragManaged")||!this.gridOptionsService.is("suppressMoveWhenRowDragging")&&this.isFromThisGrid(e)||this.isDropZoneWithinThisGrid(e)||this.moveRowAndClearHighlight(e)},t.prototype.stopDragging=function(e){this.autoScrollService.ensureCleared(),this.getRowNodes(e).forEach((function(e){e.setDragging(!1)}))},O([Object(a.a)("dragAndDropService")],t.prototype,"dragAndDropService",void 0),O([Object(a.a)("rowModel")],t.prototype,"rowModel",void 0),O([Object(a.a)("paginationProxy")],t.prototype,"paginationProxy",void 0),O([Object(a.a)("columnModel")],t.prototype,"columnModel",void 0),O([Object(a.a)("focusService")],t.prototype,"focusService",void 0),O([Object(a.a)("sortController")],t.prototype,"sortController",void 0),O([Object(a.a)("filterManager")],t.prototype,"filterManager",void 0),O([Object(a.a)("selectionService")],t.prototype,"selectionService",void 0),O([Object(a.a)("mouseEventService")],t.prototype,"mouseEventService",void 0),O([Object(a.a)("ctrlsService")],t.prototype,"ctrlsService",void 0),O([Object(a.d)("rangeService")],t.prototype,"rangeService",void 0),O([a.e],t.prototype,"postConstruct",null),t}(i.a),x=r(33),A=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),D=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};!function(e){e.ANIMATION_ON="ag-row-animation",e.ANIMATION_OFF="ag-row-no-animation"}(n||(n={}));var P="ag-force-vertical-scroll",M=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stickyTopHeight=0,t}return A(t,e),t.prototype.getScrollFeature=function(){return this.bodyScrollFeature},t.prototype.getBodyViewportElement=function(){return this.eBodyViewport},t.prototype.setComp=function(e,t,r,o,n,i){this.comp=e,this.eGridBody=t,this.eBodyViewport=r,this.eTop=o,this.eBottom=n,this.eStickyTop=i,this.setCellTextSelection(this.gridOptionsService.is("enableCellTextSelection")),this.createManagedBean(new l.b(this.comp)),this.bodyScrollFeature=this.createManagedBean(new f(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([o,r,n,i]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.ctrlsService.registerGridBodyCtrl(this)},t.prototype.getComp=function(){return this.comp},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,s.a.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,s.a.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,s.a.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,s.a.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},t.prototype.addFocusListeners=function(e){var t=this;e.forEach((function(e){t.addManagedListener(e,"focusin",(function(t){var r=t.target,o=Object(g.isElementChildOfClass)(r,"ag-root",e);e.classList.toggle("ag-has-focus",!o)})),t.addManagedListener(e,"focusout",(function(t){var r=t.target,o=t.relatedTarget,n=e.contains(o),i=Object(g.isElementChildOfClass)(o,"ag-root",e);Object(g.isElementChildOfClass)(r,"ag-root",e)||n&&!i||e.classList.remove("ag-has-focus")}))}))},t.prototype.setColumnMovingCss=function(e){this.comp.setColumnMovingCss("ag-column-moving",e)},t.prototype.setCellTextSelection=function(e){void 0===e&&(e=!1),this.comp.setCellSelectableCss("ag-selectable",e)},t.prototype.onScrollVisibilityChanged=function(){var e=this,t=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(t),this.setStickyTopWidth(t);var r="calc(100% + "+((t&&this.gridOptionsService.getScrollbarWidth()||0)+(Object(u.isInvisibleScrollbar)()?16:0))+"px)";this.animationFrameService.requestAnimationFrame((function(){return e.comp.setBodyViewportWidth(r)}))},t.prototype.onGridColumnsChanged=function(){var e=this.columnModel.getAllGridColumns();this.comp.setColumnCount(e?e.length:0)},t.prototype.disableBrowserDragging=function(){this.addManagedListener(this.eGridBody,"dragstart",(function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}))},t.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsService.is("stopEditingWhenCellsLoseFocus")){var t=function(t){var o=t.relatedTarget;if(null!==Object(u.getTabIndex)(o)){var n=r.some((function(e){return e.contains(o)}))&&e.mouseEventService.isElementInThisGrid(o);if(!n){var i=e.popupService;n=i.getActivePopups().some((function(e){return e.contains(o)}))||i.isElementWithinCustomPopup(o)}n||e.rowRenderer.stopEditing()}else e.rowRenderer.stopEditing()},r=[this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop];r.forEach((function(r){return e.addManagedListener(r,"focusout",t)}))}},t.prototype.updateRowCount=function(){var e=this.headerNavigationService.getHeaderRowCount(),t=this.rowModel.isLastRowIndexKnown()?this.rowModel.getRowCount():-1,r=-1===t?-1:e+t;this.comp.setRowCount(r)},t.prototype.registerBodyViewportResizeListener=function(e){this.comp.registerBodyViewportResizeListener(e)},t.prototype.setVerticalScrollPaddingVisible=function(e){var t=e?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(t)},t.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsService.is("alwaysShowVerticalScroll"),t=e?P:null,r=this.gridOptionsService.isDomLayout("normal");return this.comp.setAlwaysVerticalScrollClass(t,e),e||r&&Object(g.isVerticalScrollShowing)(this.eBodyViewport)},t.prototype.setupRowAnimationCssClass=function(){var e=this,t=function(){var t=e.gridOptionsService.isAnimateRows()&&!e.rowContainerHeightService.isStretching(),r=t?n.ANIMATION_ON:n.ANIMATION_OFF;e.comp.setRowAnimationCssOnBodyViewport(r,t)};t(),this.addManagedListener(this.eventService,s.a.EVENT_HEIGHT_SCALE_CHANGED,t),this.addManagedPropertyListener("animateRows",t)},t.prototype.getGridBodyElement=function(){return this.eGridBody},t.prototype.addBodyViewportListener=function(){var e=this.onBodyViewportContextMenu.bind(this);this.addManagedListener(this.eBodyViewport,"contextmenu",e),this.mockContextMenuForIPad(e),this.addManagedListener(this.eBodyViewport,"wheel",this.onBodyViewportWheel.bind(this)),this.addManagedListener(this.eStickyTop,"wheel",this.onStickyTopWheel.bind(this)),this.addFullWidthContainerWheelListener()},t.prototype.addFullWidthContainerWheelListener=function(){var e=this,t=this.eBodyViewport.querySelector(".ag-full-width-container"),r=this.eBodyViewport.querySelector(".ag-center-cols-viewport");t&&r&&this.addManagedListener(t,"wheel",(function(t){return e.onFullWidthContainerWheel(t,r)}))},t.prototype.onFullWidthContainerWheel=function(e,t){!e.deltaX||Math.abs(e.deltaY)>Math.abs(e.deltaX)||(e.preventDefault(),t.scrollBy({left:e.deltaX}))},t.prototype.onBodyViewportContextMenu=function(e,t,r){if(e||r){if(this.gridOptionsService.is("preventDefaultOnContextMenu"))(e||r).preventDefault();var o=(e||t).target;if(o===this.eBodyViewport||o===this.ctrlsService.getCenterRowContainerCtrl().getViewportElement()){if(!this.contextMenuFactory)return;e?this.contextMenuFactory.onContextMenu(e,null,null,null,null,this.eGridBody):r&&this.contextMenuFactory.onContextMenu(null,r,null,null,null,this.eGridBody)}}},t.prototype.mockContextMenuForIPad=function(e){if(Object(u.isIOSUserAgent)()){var t=new x.a(this.eBodyViewport);this.addManagedListener(t,x.a.EVENT_LONG_TAP,(function(t){e(void 0,t.touchStart,t.touchEvent)})),this.addDestroyFunc((function(){return t.destroy()}))}},t.prototype.onBodyViewportWheel=function(e){this.gridOptionsService.is("suppressScrollWhenPopupsAreOpen")&&this.popupService.hasAnchoredPopup()&&e.preventDefault()},t.prototype.onStickyTopWheel=function(e){e.preventDefault(),e.offsetY&&this.scrollVertically(e.deltaY)},t.prototype.getGui=function(){return this.eGridBody},t.prototype.scrollVertically=function(e){var t=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t},t.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new T(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},t.prototype.getRowDragFeature=function(){return this.rowDragFeature},t.prototype.onPinnedRowDataChanged=function(){this.setFloatingHeights()},t.prototype.setFloatingHeights=function(){var e=this.pinnedRowModel,t=e.getPinnedTopTotalHeight();t&&(t+=1);var r=e.getPinnedBottomTotalHeight();r&&(r+=1),this.comp.setTopHeight(t),this.comp.setBottomHeight(r),this.comp.setTopDisplay(t?"inherit":"none"),this.comp.setBottomDisplay(r?"inherit":"none"),this.setStickyTopOffsetTop()},t.prototype.setStickyTopHeight=function(e){void 0===e&&(e=0),this.comp.setStickyTopHeight(e+"px"),this.stickyTopHeight=e},t.prototype.getStickyTopHeight=function(){return this.stickyTopHeight},t.prototype.setStickyTopWidth=function(e){if(e){var t=this.gridOptionsService.getScrollbarWidth();this.comp.setStickyTopWidth("calc(100% - "+t+"px)")}else this.comp.setStickyTopWidth("100%")},t.prototype.onHeaderHeightChanged=function(){this.setStickyTopOffsetTop()},t.prototype.setStickyTopOffsetTop=function(){var e=this.ctrlsService.getGridHeaderCtrl().getHeaderHeight(),t=this.pinnedRowModel.getPinnedTopTotalHeight(),r=0;e>0&&(r+=e+1),t>0&&(r+=t+1),this.comp.setStickyTopTop(r+"px")},t.prototype.sizeColumnsToFit=function(e,t){var r=this,o=this.isVerticalScrollShowing()?this.gridOptionsService.getScrollbarWidth():0,n=Object(g.getInnerWidth)(this.eGridBody)-o;n>0?this.columnModel.sizeColumnsToFit(n,"sizeColumnsToFit",!1,e):void 0===t?window.setTimeout((function(){r.sizeColumnsToFit(e,100)}),0):100===t?window.setTimeout((function(){r.sizeColumnsToFit(e,500)}),100):500===t?window.setTimeout((function(){r.sizeColumnsToFit(e,-1)}),500):console.warn("AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},t.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e,{passive:!0})},t.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},D([Object(a.a)("animationFrameService")],t.prototype,"animationFrameService",void 0),D([Object(a.a)("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),D([Object(a.a)("ctrlsService")],t.prototype,"ctrlsService",void 0),D([Object(a.a)("columnModel")],t.prototype,"columnModel",void 0),D([Object(a.a)("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),D([Object(a.d)("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),D([Object(a.a)("headerNavigationService")],t.prototype,"headerNavigationService",void 0),D([Object(a.a)("dragAndDropService")],t.prototype,"dragAndDropService",void 0),D([Object(a.a)("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),D([Object(a.a)("rowRenderer")],t.prototype,"rowRenderer",void 0),D([Object(a.a)("popupService")],t.prototype,"popupService",void 0),D([Object(a.a)("mouseEventService")],t.prototype,"mouseEventService",void 0),D([Object(a.a)("rowModel")],t.prototype,"rowModel",void 0),t}(i.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return f}));var o,n=r(0),i=r(155),a=r(156),l=r(12),s=r(7),c=r(18),u=r(2),g=r(59),d=r(9),p=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),h=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},f=function(e){function t(t){var r=e.call(this)||this;return r.params=t,r.isActive=!1,r.subMenuIsOpen=!1,r.setTemplate('
'),r}return p(t,e),t.prototype.init=function(){var e=this;this.addIcon(),this.addName(),this.addShortcut(),this.addSubMenu(),this.addTooltip();var t=this.getGui();this.params.disabled?(this.addCssClass(this.getClassName("disabled")),Object(d.setAriaDisabled)(t,!0)):(this.addGuiEventListener("click",(function(t){return e.onItemSelected(t)})),this.addGuiEventListener("keydown",(function(t){t.key!==s.a.ENTER&&t.key!==s.a.SPACE||(t.preventDefault(),e.onItemSelected(t))})),this.addGuiEventListener("mousedown",(function(e){e.stopPropagation(),e.preventDefault()})),this.addGuiEventListener("mouseenter",(function(){return e.onMouseEnter()})),this.addGuiEventListener("mouseleave",(function(){return e.onMouseLeave()}))),this.params.cssClasses&&this.params.cssClasses.forEach((function(t){return e.addCssClass(t)}))},t.prototype.isDisabled=function(){return!!this.params.disabled},t.prototype.openSubMenu=function(e){var r=this;if(void 0===e&&(e=!1),this.closeSubMenu(),this.params.subMenu){var o,n=Object(u.loadTemplate)('');if(this.params.subMenu instanceof Array){var l=Object(d.getAriaLevel)(this.getGui()),s=isNaN(l)?1:l+1,c=this.createBean(new i.a(s));c.setParentComponent(this),c.addMenuItems(this.params.subMenu),n.appendChild(c.getGui()),this.addManagedListener(c,t.EVENT_MENU_ITEM_SELECTED,(function(e){return r.dispatchEvent(e)})),c.addGuiEventListener("mouseenter",(function(){return r.cancelDeactivate()})),o=function(){return r.destroyBean(c)},e&&setTimeout((function(){return c.activateFirstItem()}),0)}else{var g=this.params.subMenu,p=this.createBean(new a.a(g));p.setParentComponent(this);var h=p.getGui(),f=function(){return r.cancelDeactivate()};h.addEventListener("mouseenter",f),o=function(){return h.removeEventListener("mouseenter",f)},n.appendChild(h),g.afterGuiAttached&&setTimeout((function(){return g.afterGuiAttached()}),0)}var v=this.getGui(),m=this.popupService.positionPopupForMenu.bind(this.popupService,{eventSource:v,ePopup:n}),y=this.localeService.getLocaleTextFunc(),w=this.popupService.addPopup({modal:!0,eChild:n,positionCallback:m,anchorToElement:v,ariaLabel:y("ariaLabelSubMenu","SubMenu")});this.subMenuIsOpen=!0,Object(d.setAriaExpanded)(v,!0),this.hideSubMenu=function(){w&&w.hideFunc(),r.subMenuIsOpen=!1,Object(d.setAriaExpanded)(v,!1),o()}}},t.prototype.closeSubMenu=function(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,Object(d.setAriaExpanded)(this.getGui(),!1))},t.prototype.isSubMenuOpen=function(){return this.subMenuIsOpen},t.prototype.activate=function(e){var t=this;this.cancelActivate(),this.params.disabled||(this.isActive=!0,this.addCssClass(this.getClassName("active")),this.getGui().focus(),e&&this.params.subMenu&&window.setTimeout((function(){t.isAlive()&&t.isActive&&t.openSubMenu()}),300),this.onItemActivated())},t.prototype.deactivate=function(){this.cancelDeactivate(),this.removeCssClass(this.getClassName("active")),this.isActive=!1,this.subMenuIsOpen&&this.hideSubMenu()},t.prototype.addIcon=function(){if(this.params.checked||this.params.icon||!this.params.isCompact){var e=Object(u.loadTemplate)('');this.params.checked?e.appendChild(Object(c.createIconNoSpan)("check",this.gridOptionsService)):this.params.icon&&(Object(u.isNodeOrElement)(this.params.icon)?e.appendChild(this.params.icon):"string"==typeof this.params.icon?e.innerHTML=this.params.icon:console.warn("AG Grid: menu item icon must be DOM node or string")),this.getGui().appendChild(e)}},t.prototype.addName=function(){if(this.params.name||!this.params.isCompact){var e=Object(u.loadTemplate)(''+(this.params.name||"")+"");this.getGui().appendChild(e)}},t.prototype.addTooltip=function(){this.params.tooltip&&(this.tooltip=this.params.tooltip,this.gridOptionsService.is("enableBrowserTooltips")?this.getGui().setAttribute("title",this.tooltip):this.createManagedBean(new g.a(this)))},t.prototype.getTooltipParams=function(){return{location:"menu",value:this.tooltip}},t.prototype.addShortcut=function(){if(this.params.shortcut||!this.params.isCompact){var e=Object(u.loadTemplate)(''+(this.params.shortcut||"")+"");this.getGui().appendChild(e)}},t.prototype.addSubMenu=function(){if(this.params.subMenu||!this.params.isCompact){var e=Object(u.loadTemplate)(''),t=this.getGui();if(this.params.subMenu){var r=this.gridOptionsService.is("enableRtl")?"smallLeft":"smallRight";Object(d.setAriaExpanded)(t,!1),e.appendChild(Object(c.createIconNoSpan)(r,this.gridOptionsService))}t.appendChild(e)}},t.prototype.onItemSelected=function(e){if(this.params.action?this.params.action():this.openSubMenu(e&&"keydown"===e.type),!this.params.subMenu||this.params.action){var r={type:t.EVENT_MENU_ITEM_SELECTED,action:this.params.action,checked:this.params.checked,cssClasses:this.params.cssClasses,disabled:this.params.disabled,icon:this.params.icon,name:this.params.name,shortcut:this.params.shortcut,subMenu:this.params.subMenu,tooltip:this.params.tooltip,event:e};this.dispatchEvent(r)}},t.prototype.onItemActivated=function(){var e={type:t.EVENT_MENU_ITEM_ACTIVATED,menuItem:this};this.dispatchEvent(e)},t.prototype.cancelActivate=function(){this.activateTimeoutId&&(window.clearTimeout(this.activateTimeoutId),this.activateTimeoutId=0)},t.prototype.cancelDeactivate=function(){this.deactivateTimeoutId&&(window.clearTimeout(this.deactivateTimeoutId),this.deactivateTimeoutId=0)},t.prototype.onMouseEnter=function(){var e=this;this.cancelDeactivate(),this.params.isAnotherSubMenuOpen()?this.activateTimeoutId=window.setTimeout((function(){return e.activate(!0)}),t.ACTIVATION_DELAY):this.activate(!0)},t.prototype.onMouseLeave=function(){var e=this;this.cancelActivate(),this.isSubMenuOpen()?this.deactivateTimeoutId=window.setTimeout((function(){return e.deactivate()}),t.ACTIVATION_DELAY):this.deactivate()},t.prototype.getClassName=function(e){var t=this.params.isCompact?"ag-compact-menu-option":"ag-menu-option";return e?t+"-"+e:t},t.EVENT_MENU_ITEM_SELECTED="menuItemSelected",t.EVENT_MENU_ITEM_ACTIVATED="menuItemActivated",t.ACTIVATION_DELAY=80,h([Object(n.a)("popupService")],t.prototype,"popupService",void 0),h([n.e],t.prototype,"init",null),t}(l.a)},function(e,t,r){"use strict";r.d(t,"b",(function(){return d})),r.d(t,"a",(function(){return p}));var o,n=r(0),i=r(186),a=r(25),l=r(30),s=r(24),c=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(){return(u=Object.assign||function(e){for(var t,r=1,o=arguments.length;r=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},d=function(e){function t(t,r,o){var n=e.call(this,r,o)||this;return n.dateFilterParams=t,n}return c(t,e),t.prototype.conditionToString=function(e,t){var r=e.type,o=(t||{}).numberOfInputs,n=r==a.a.IN_RANGE||2===o,i=Object(s.parseDateTimeFromString)(e.dateFrom),l=Object(s.parseDateTimeFromString)(e.dateTo),c=this.dateFilterParams.inRangeFloatingFilterDateFormat;return n?(null!==i?Object(s.dateToFormattedString)(i,c):"null")+"-"+(null!==l?Object(s.dateToFormattedString)(l,c):"null"):null!=i?Object(s.dateToFormattedString)(i,c):""+r},t}(a.b),p=function(e){function t(){var t=e.call(this,"dateFilter")||this;return t.eConditionPanelsFrom=[],t.eConditionPanelsTo=[],t.dateConditionFromComps=[],t.dateConditionToComps=[],t.minValidYear=1e3,t.maxValidYear=1/0,t}return c(t,e),t.prototype.afterGuiAttached=function(t){e.prototype.afterGuiAttached.call(this,t),this.dateConditionFromComps[0].afterGuiAttached(t)},t.prototype.mapValuesFromModel=function(e){var t=e||{},r=t.dateFrom,o=t.dateTo,n=t.type;return[r&&Object(s.parseDateTimeFromString)(r)||null,o&&Object(s.parseDateTimeFromString)(o)||null].slice(0,this.getNumberOfInputs(n))},t.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},t.prototype.defaultComparator=function(e,t){return null==t||te?1:0},t.prototype.setParams=function(t){this.dateFilterParams=t,e.prototype.setParams.call(this,t);var r=function(e,r){if(null!=t[e]){if(!isNaN(t[e]))return null==t[e]?r:Number(t[e]);console.warn("AG Grid: DateFilter "+e+" is not a number")}return r};this.minValidYear=r("minValidYear",1e3),this.maxValidYear=r("maxValidYear",1/0),this.minValidYear>this.maxValidYear&&console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"),this.filterModelFormatter=new d(this.dateFilterParams,this.localeService,this.optionsFactory)},t.prototype.createDateCompWrapper=function(e){var t=this,r=new i.a(this.getContext(),this.userComponentFactory,{onDateChanged:function(){return t.onUiChanged()},filterParams:this.dateFilterParams},e);return this.addDestroyFunc((function(){return r.destroy()})),r},t.prototype.setElementValue=function(e,t){e.setDate(t)},t.prototype.setElementDisplayed=function(e,t){e.setDisplayed(t)},t.prototype.setElementDisabled=function(e,t){e.setDisabled(t)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueElement=function(){var e=document.createElement("div");return e.classList.add("ag-filter-body"),this.createFromToElement(e,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(e,this.eConditionPanelsTo,this.dateConditionToComps,"to"),e},t.prototype.createFromToElement=function(e,t,r,o){var n=document.createElement("div");n.classList.add("ag-filter-"+o),n.classList.add("ag-filter-date-"+o),t.push(n),e.appendChild(n),r.push(this.createDateCompWrapper(n))},t.prototype.removeValueElements=function(e,t){this.removeDateComps(this.dateConditionFromComps,e,t),this.removeDateComps(this.dateConditionToComps,e,t),this.removeItems(this.eConditionPanelsFrom,e,t),this.removeItems(this.eConditionPanelsTo,e,t)},t.prototype.removeDateComps=function(e,t,r){this.removeItems(e,t,r).forEach((function(e){return e.destroy()}))},t.prototype.isConditionUiComplete=function(t){var r=this;if(!e.prototype.isConditionUiComplete.call(this,t))return!1;var o=!0;return this.forEachInput((function(e,n,i,a){var l;i!==t||!o||n>=a||(o=o&&(null!=(l=e.getDate())&&l.getUTCFullYear()>=r.minValidYear&&l.getUTCFullYear()<=r.maxValidYear))})),o},t.prototype.areSimpleModelsEqual=function(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type},t.prototype.getFilterType=function(){return"date"},t.prototype.createCondition=function(e){var t=this.getConditionType(e),r={},o=this.getValues(e);return o.length>0&&(r.dateFrom=Object(s.serialiseDate)(o[0])),o.length>1&&(r.dateTo=Object(s.serialiseDate)(o[1])),u({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:t},r)},t.prototype.resetPlaceholder=function(){var e=this.localeService.getLocaleTextFunc(),t=this.translate("dateFormatOoo"),r=e("ariaFilterValue","Filter Value");this.forEachInput((function(e){e.setInputPlaceholder(t),e.setInputAriaLabel(r)}))},t.prototype.getInputs=function(e){return e>=this.dateConditionFromComps.length?[null,null]:[this.dateConditionFromComps[e],this.dateConditionToComps[e]]},t.prototype.getValues=function(e){var t=[];return this.forEachPositionInput(e,(function(e,r,o,n){r=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},s=function(e,t){return function(r,o){t(r,o,e)}},c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.setBeans=function(e){this.logging=e.is("debug")},t.prototype.create=function(e){return new u(e,this.isLogging.bind(this))},t.prototype.isLogging=function(){return this.logging},l([s(0,Object(n.h)("gridOptionsService"))],t.prototype,"setBeans",null),t=l([Object(n.b)("loggerFactory")],t)}(i.a),u=function(){function e(e,t){this.name=e,this.isLoggingFunc=t}return e.prototype.isLogging=function(){return this.isLoggingFunc()},e.prototype.log=function(e){this.isLoggingFunc()&&console.log("AG Grid."+this.name+": "+e)},e}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var o,n=r(12),i=r(0),a=r(19),l=r(17),s=r(6),c=r(5),u=r(18),g=r(11),d=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},h=function(e){function t(t,r,o,n,i,a){var l=e.call(this)||this;return l.cellValueFn=t,l.rowNode=r,l.column=o,l.customGui=n,l.dragStartPixels=i,l.suppressVisibilityChange=a,l.dragSource=null,l}return d(t,e),t.prototype.isCustomGui=function(){return null!=this.customGui},t.prototype.postConstruct=function(){if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate(''),this.getGui().appendChild(Object(u.createIconNoSpan)("rowDrag",this.gridOptionsService,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var e=this.gridOptionsService.is("rowDragManaged")?new m(this,this.beans,this.rowNode,this.column):new v(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)}},t.prototype.setDragElement=function(e,t){this.setTemplateFromElement(e),this.addDragSource(t)},t.prototype.getSelectedNodes=function(){if(!this.gridOptionsService.is("rowDragMultiRow"))return[this.rowNode];var e=this.beans.selectionService.getSelectedNodes();return-1!==e.indexOf(this.rowNode)?e:[this.rowNode]},t.prototype.checkCompatibility=function(){var e=this.gridOptionsService.is("rowDragManaged");this.gridOptionsService.isTreeData()&&e&&Object(g.doOnce)((function(){return console.warn("AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true")}),"RowDragComp.managedAndTreeData")},t.prototype.getDragItem=function(){return{rowNode:this.rowNode,rowNodes:this.getSelectedNodes(),columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()}},t.prototype.getRowDragText=function(e){if(e){var t=e.getColDef();if(t.rowDragText)return t.rowDragText}return this.gridOptionsService.get("rowDragText")},t.prototype.addDragSource=function(e){var t=this;void 0===e&&(e=4),this.dragSource&&this.removeDragSource();var r=this.getRowDragText(this.column),o=this.localeService.getLocaleTextFunc();this.dragSource={type:l.b.RowDrag,eElement:this.getGui(),dragItemName:function(){var e,n=t.getDragItem(),i=(null===(e=n.rowNodes)||void 0===e?void 0:e.length)||1;return r?r(n,i):1===i?t.cellValueFn():i+" "+o("rowDragRows","rows")},getDragItem:function(){return t.getDragItem()},dragStartPixels:e,dragSourceDomDataKey:this.gridOptionsService.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},t.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},p([Object(i.a)("beans")],t.prototype,"beans",void 0),p([i.e],t.prototype,"postConstruct",null),p([i.g],t.prototype,"removeDragSource",null),t}(n.a),f=function(e){function t(t,r,o){var n=e.call(this)||this;return n.parent=t,n.rowNode=r,n.column=o,n}return d(t,e),t.prototype.setDisplayedOrVisible=function(e){var t={skipAriaHidden:!0};if(e)this.parent.setDisplayed(!1,t);else{var r=!0,o=!1;this.column&&(r=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),o=Object(g.isFunction)(this.column.getColDef().rowDrag)),o?(this.parent.setDisplayed(!0,t),this.parent.setVisible(r,t)):(this.parent.setDisplayed(r,t),this.parent.setVisible(!0,t))}},t}(c.a),v=function(e){function t(t,r,o,n){var i=e.call(this,t,o,n)||this;return i.beans=r,i}return d(t,e),t.prototype.postConstruct=function(){this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,a.a.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,a.a.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,a.a.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,s.a.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.gridOptionsService.is("suppressRowDrag");this.setDisplayedOrVisible(e)},p([i.e],t.prototype,"postConstruct",null),t}(f),m=function(e){function t(t,r,o,n){var i=e.call(this,t,o,n)||this;return i.beans=r,i}return d(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,s.a.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,s.a.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,s.a.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,s.a.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,a.a.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,a.a.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.ctrlsService.getGridBodyCtrl().getRowDragFeature(),t=e&&e.shouldPreventRowMove(),r=this.gridOptionsService.is("suppressRowDrag"),o=this.beans.dragAndDropService.hasExternalDropZones(),n=t&&!o||r;this.setDisplayedOrVisible(n)},p([i.e],t.prototype,"postConstruct",null),t}(f)},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var o,n=r(5),i=r(0),a=r(2),l=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},c=function(e){function t(t,r){var o=e.call(this)||this;return o.element=t,o.dragStartPosition={x:0,y:0},o.position={x:0,y:0},o.lastSize={width:-1,height:-1},o.positioned=!1,o.resizersAdded=!1,o.resizeListeners=[],o.boundaryEl=null,o.isResizing=!1,o.isMoving=!1,o.resizable={},o.movable=!1,o.currentResizer=null,o.config=Object.assign({},{popup:!1},r),o}return l(t,e),t.prototype.center=function(){var e=this.offsetParent,t=e.clientHeight,r=e.clientWidth/2-this.getWidth()/2,o=t/2-this.getHeight()/2;this.offsetElement(r,o)},t.prototype.initialisePosition=function(){if(!this.positioned){var e=this.config,t=e.centered,r=e.forcePopupParentAsOffsetParent,o=e.minWidth,n=e.width,i=e.minHeight,a=e.height,l=e.x,s=e.y;this.offsetParent||this.setOffsetParent();var c=0,u=0,g=!!this.element.offsetParent;if(g){var d=this.findBoundaryElement(),p=window.getComputedStyle(d);if(null!=p.minWidth){var h=d.offsetWidth-this.element.offsetWidth;u=parseInt(p.minWidth,10)-h}if(null!=p.minHeight){var f=d.offsetHeight-this.element.offsetHeight;c=parseInt(p.minHeight,10)-f}}if(this.minHeight=i||c,this.minWidth=o||u,n&&this.setWidth(n),a&&this.setHeight(a),n&&a||this.refreshSize(),t)this.center();else if(l||s)this.offsetElement(l,s);else if(g&&r&&this.boundaryEl){var v=parseFloat(this.boundaryEl.style.top),m=parseFloat(this.boundaryEl.style.left);this.offsetElement(isNaN(m)?0:m,isNaN(v)?0:v)}this.positioned=!!this.offsetParent}},t.prototype.isPositioned=function(){return this.positioned},t.prototype.getPosition=function(){return this.position},t.prototype.setMovable=function(e,t){if(this.config.popup&&e!==this.movable){this.movable=e;var r=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(r),this.moveElementDragListener=r):(this.dragService.removeDragSource(r),this.moveElementDragListener=void 0)}},t.prototype.setResizable=function(e){var t=this;if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),"boolean"==typeof e){if(!1===e)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}Object.keys(e).forEach((function(r){var o=!!e[r],n=t.getResizerElement(r),i={dragStartPixels:0,eElement:n,onDragStart:function(e){return t.onResizeStart(e,r)},onDragging:t.onResize.bind(t),onDragStop:function(e){return t.onResizeEnd(e,r)}};(o||!t.isAlive()&&!o)&&(o?(t.dragService.addDragSource(i),t.resizeListeners.push(i),n.style.pointerEvents="all"):n.style.pointerEvents="none",t.resizable[r]=o)}))},t.prototype.removeSizeFromEl=function(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")},t.prototype.restoreLastSize=function(){this.element.style.flex="0 0 auto";var e=this.lastSize,t=e.height,r=e.width;-1!==r&&(this.element.style.width=r+"px"),-1!==t&&(this.element.style.height=t+"px")},t.prototype.getHeight=function(){return this.element.offsetHeight},t.prototype.setHeight=function(e){var t=this.config.popup,r=this.element,o=!1;if("string"==typeof e&&-1!==e.indexOf("%"))Object(a.setFixedHeight)(r,e),e=Object(a.getAbsoluteHeight)(r),o=!0;else if(e=Math.max(this.minHeight,e),this.positioned){var n=this.getAvailableHeight();n&&e>n&&(e=n)}this.getHeight()!==e&&(o?(r.style.maxHeight="unset",r.style.minHeight="unset"):t?Object(a.setFixedHeight)(r,e):(r.style.height=e+"px",r.style.flex="0 0 auto",this.lastSize.height="number"==typeof e?e:parseFloat(e)))},t.prototype.getAvailableHeight=function(){var e=this.config,t=e.popup,r=e.forcePopupParentAsOffsetParent;this.positioned||this.initialisePosition();var o=this.offsetParent.clientHeight;if(!o)return null;var n=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect(),a=t?this.position.y:n.top,l=t?0:i.top,s=0;if(r){var c=this.element.parentElement;if(c)s=c.getBoundingClientRect().bottom-n.bottom}return o+l-a-s},t.prototype.getWidth=function(){return this.element.offsetWidth},t.prototype.setWidth=function(e){var t=this.element,r=this.config.popup,o=!1;if("string"==typeof e&&-1!==e.indexOf("%"))Object(a.setFixedWidth)(t,e),e=Object(a.getAbsoluteWidth)(t),o=!0;else if(this.positioned){e=Math.max(this.minWidth,e);var n=this.offsetParent.clientWidth,i=r?this.position.x:this.element.getBoundingClientRect().left;n&&e+i>n&&(e=n-i)}this.getWidth()!==e&&(o?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?Object(a.setFixedWidth)(t,e):(t.style.width=e+"px",t.style.flex=" unset",this.lastSize.width="number"==typeof e?e:parseFloat(e)))},t.prototype.offsetElement=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0);var r=this.config.forcePopupParentAsOffsetParent?this.boundaryEl:this.element;this.popupService.positionPopup({ePopup:r,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:function(){return{x:e,y:t}}}),this.setPosition(parseFloat(r.style.left),parseFloat(r.style.top))},t.prototype.constrainSizeToAvailableHeight=function(e){var t=this;if(this.config.forcePopupParentAsOffsetParent){e?this.resizeObserverSubscriber=this.resizeObserverService.observeResize(this.popupService.getPopupParent(),(function(){var e=t.getAvailableHeight();t.element.style.setProperty("max-height",e+"px")})):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0))}},t.prototype.setPosition=function(e,t){this.position.x=e,this.position.y=t},t.prototype.updateDragStartPosition=function(e,t){this.dragStartPosition={x:e,y:t}},t.prototype.calculateMouseMovement=function(e){var t=e.e,r=e.isLeft,o=e.isTop,n=e.anywhereWithin,i=e.topBuffer,a=t.clientX-this.dragStartPosition.x,l=t.clientY-this.dragStartPosition.y;return{movementX:this.shouldSkipX(t,!!r,!!n,a)?0:a,movementY:this.shouldSkipY(t,!!o,i,l)?0:l}},t.prototype.shouldSkipX=function(e,t,r,o){var n=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect(),a=this.boundaryEl.getBoundingClientRect(),l=this.config.popup?this.position.x:n.left,s=l<=0&&i.left>=e.clientX||i.right<=e.clientX&&i.right<=a.right;return!!s||(s=t?o<0&&e.clientX>l+i.left||o>0&&e.clientXa.right||o>0&&e.clientXa.right||o>0&&e.clientX=e.clientY||i.bottom<=e.clientY&&i.bottom<=a.bottom;return!!s||(s=t?o<0&&e.clientY>l+i.top+r||o>0&&e.clientYa.bottom||o>0&&e.clientY\n
\n
\n
\n
\n
\n
\n
\n
\n ',"text/html").body;e.appendChild(t.firstChild),this.createResizeMap(),this.resizersAdded=!0}}},t.prototype.removeResizers=function(){this.resizerMap=void 0;var e=this.element.querySelector(".ag-resizer-wrapper");e&&this.element.removeChild(e),this.resizersAdded=!1},t.prototype.getResizerElement=function(e){return this.resizerMap[e].element},t.prototype.onResizeStart=function(e,t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!t.match(/top/i),isRight:!!t.match(/right/i),isBottom:!!t.match(/bottom/i),isLeft:!!t.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[t].element.classList.add("ag-active");var r=this.config,o=r.popup,n=r.forcePopupParentAsOffsetParent;o||n||this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.getSiblings=function(){var e=this.element.parentElement;return e?Array.prototype.slice.call(e.children).filter((function(e){return!e.classList.contains("ag-hidden")})):null},t.prototype.getMinSizeOfSiblings=function(){for(var e=this.getSiblings()||[],t=0,r=0,o=0;othis.element.parentElement.offsetHeight&&(E=!0),E||this.setHeight(O)}this.updateDragStartPosition(e.clientX,e.clientY),((r||o)&&v||m)&&this.offsetElement(h+v,f+m)}},t.prototype.onResizeEnd=function(e,t){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null;var r={type:"resize",api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi};this.element.classList.remove("ag-resizing"),this.resizerMap[t].element.classList.remove("ag-active"),this.dispatchEvent(r)},t.prototype.refreshSize=function(){var e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))},t.prototype.onMoveStart=function(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.onMove=function(e){if(this.isMoving){var t,r=this.position,o=r.x,n=r.y;this.config.calculateTopBuffer&&(t=this.config.calculateTopBuffer());var i=this.calculateMouseMovement({e:e,isTop:!0,anywhereWithin:!0,topBuffer:t}),a=i.movementX,l=i.movementY;this.offsetElement(o+a,n+l),this.updateDragStartPosition(e.clientX,e.clientY)}},t.prototype.onMoveEnd=function(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")},t.prototype.setOffsetParent=function(){this.config.forcePopupParentAsOffsetParent?this.offsetParent=this.popupService.getPopupParent():this.offsetParent=this.element.offsetParent},t.prototype.findBoundaryElement=function(){for(var e=this.element;e;){if("static"!==window.getComputedStyle(e).position)return e;e=e.parentElement}return this.element},t.prototype.clearResizeListeners=function(){for(;this.resizeListeners.length;){var e=this.resizeListeners.pop();this.dragService.removeDragSource(e)}},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.moveElementDragListener&&this.dragService.removeDragSource(this.moveElementDragListener),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()},s([Object(i.a)("popupService")],t.prototype,"popupService",void 0),s([Object(i.a)("resizeObserverService")],t.prototype,"resizeObserverService",void 0),s([Object(i.a)("dragService")],t.prototype,"dragService",void 0),t}(n.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var o,n=r(12),i=r(0),a=r(2),l=r(9),s=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},u=function(e){function t(t,r){var o=e.call(this,r)||this;return o.labelSeparator="",o.labelAlignment="left",o.disabled=!1,o.label="",o.config=t||{},o}return s(t,e),t.prototype.postConstruct=function(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");var e=this.config,t=e.labelSeparator,r=e.label,o=e.labelWidth,n=e.labelAlignment;null!=t&&this.setLabelSeparator(t),null!=r&&this.setLabel(r),null!=o&&this.setLabelWidth(o),this.setLabelAlignment(n||this.labelAlignment),this.refreshLabel()},t.prototype.refreshLabel=function(){Object(a.clearElement)(this.eLabel),"string"==typeof this.label?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),""===this.label?(Object(a.setDisplayed)(this.eLabel,!1),Object(l.setAriaRole)(this.eLabel,"presentation")):(Object(a.setDisplayed)(this.eLabel,!0),Object(l.setAriaRole)(this.eLabel,null))},t.prototype.setLabelSeparator=function(e){return this.labelSeparator===e||(this.labelSeparator=e,null!=this.label&&this.refreshLabel()),this},t.prototype.getLabelId=function(){return this.eLabel.id=this.eLabel.id||"ag-"+this.getCompId()+"-label",this.eLabel.id},t.prototype.getLabel=function(){return this.label},t.prototype.setLabel=function(e){return this.label===e||(this.label=e,this.refreshLabel()),this},t.prototype.setLabelAlignment=function(e){var t=this.getGui().classList;return t.toggle("ag-label-align-left","left"===e),t.toggle("ag-label-align-right","right"===e),t.toggle("ag-label-align-top","top"===e),this},t.prototype.setLabelEllipsis=function(e){return this.eLabel.classList.toggle("ag-label-ellipsis",e),this},t.prototype.setLabelWidth=function(e){return null==this.label||Object(a.setElementWidth)(this.eLabel,e),this},t.prototype.setDisabled=function(e){e=!!e;var t=this.getGui();return Object(a.setDisabled)(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this},t.prototype.isDisabled=function(){return!!this.disabled},c([i.e],t.prototype,"postConstruct",null),t}(n.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var o,n=r(42),i=r(6),a=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){return e.call(this,t,"ag-radio-button","radio")||this}return a(t,e),t.prototype.isSelected=function(){return this.eInput.checked},t.prototype.toggle=function(){this.eInput.disabled||this.isSelected()||this.setValue(!0)},t.prototype.addInputListeners=function(){e.prototype.addInputListeners.call(this),this.addManagedListener(this.eventService,i.a.EVENT_CHECKBOX_CHANGED,this.onChange.bind(this))},t.prototype.onChange=function(e){e.selected&&e.name&&this.eInput.name&&this.eInput.name===e.name&&e.id&&this.eInput.id!==e.id&&this.setValue(!1,!0)},t}(n.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var o,n=r(0),i=r(12),a=r(3),l=r(8),s=r(19),c=r(23),u=r(9),g=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(){return(d=Object.assign||function(e){for(var t,r=1,o=arguments.length;r=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},h=function(e){function t(){return e.call(this,'\n ')||this}return g(t,e),t.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0),Object(u.setAriaLive)(this.eCheckbox.getInputElement(),"polite")},t.prototype.getCheckboxId=function(){return this.eCheckbox.getInputElement().id},t.prototype.onDataChanged=function(){this.onSelectionChanged()},t.prototype.onSelectableChanged=function(){this.showOrHideSelect()},t.prototype.onSelectionChanged=function(){var e=this.localeService.getLocaleTextFunc(),t=this.rowNode.isSelected(),r=Object(u.getAriaCheckboxStateName)(e,t),o=e("ariaRowToggleSelection","Press Space to toggle row selection");this.eCheckbox.setValue(t,!0),this.eCheckbox.setInputAriaLabel(o+" ("+r+")")},t.prototype.onCheckedClicked=function(e){var t=this.gridOptionsService.is("groupSelectsFiltered");return this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:t,event:e,source:"checkboxSelected"})},t.prototype.onUncheckedClicked=function(e){var t=this.gridOptionsService.is("groupSelectsFiltered");return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:e.shiftKey,groupSelectsFiltered:t,event:e,source:"checkboxSelected"})},t.prototype.init=function(e){var t=this;if(this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListener(this.eCheckbox.getInputElement(),"dblclick",(function(e){Object(c.stopPropagationForAgGrid)(e)})),this.addManagedListener(this.eCheckbox.getInputElement(),"click",(function(e){Object(c.stopPropagationForAgGrid)(e),t.eCheckbox.getValue()?t.onCheckedClicked(e):t.onUncheckedClicked(e||{})})),this.addManagedListener(this.rowNode,s.a.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,s.a.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,s.a.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.gridOptionsService.get("isRowSelectable")||"function"==typeof this.getIsVisible()){var r=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,a.a.EVENT_DISPLAYED_COLUMNS_CHANGED,r),this.addManagedListener(this.rowNode,s.a.EVENT_DATA_CHANGED,r),this.addManagedListener(this.rowNode,s.a.EVENT_CELL_CHANGED,r),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},t.prototype.showOrHideSelect=function(){var e,t,r,o,n=this.rowNode.selectable,i=this.getIsVisible();if(n)if("function"==typeof i){var a=null===(e=this.overrides)||void 0===e?void 0:e.callbackParams,l=null===(t=this.column)||void 0===t?void 0:t.createColumnFunctionCallbackParams(this.rowNode);n=!!l&&i(d(d({},a),l))}else n=null!=i&&i;if(null===(r=this.column)||void 0===r?void 0:r.getColDef().showDisabledCheckboxes)return this.eCheckbox.setDisabled(!n),this.setVisible(!0),void this.setDisplayed(!0);(null===(o=this.overrides)||void 0===o?void 0:o.removeHidden)?this.setDisplayed(n):this.setVisible(n)},t.prototype.getIsVisible=function(){var e,t;return this.overrides?this.overrides.isVisible:null===(t=null===(e=this.column)||void 0===e?void 0:e.getColDef())||void 0===t?void 0:t.checkboxSelection},p([Object(l.b)("eCheckbox")],t.prototype,"eCheckbox",void 0),p([n.e],t.prototype,"postConstruct",null),t}(i.a)},function(e,t,r){"use strict";r.d(t,"b",(function(){return d})),r.d(t,"a",(function(){return p}));var o=r(0),n=r(32),i=r(123),a=r(97),l=r(13),s=r(15),c=r(1),u=r(14),g=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};function d(e){var t=e;return null!=t&&null!=t.getFrameworkComponentInstance?t.getFrameworkComponentInstance():e}var p=function(){function e(){this.detailGridInfoMap={},this.destroyCalled=!1}return e.prototype.registerOverlayWrapperComp=function(e){this.overlayWrapperComp=e},e.prototype.registerSideBarComp=function(e){this.sideBarComp=e},e.prototype.init=function(){var e=this;switch(this.rowModel.getType()){case"clientSide":this.clientSideRowModel=this.rowModel;break;case"infinite":this.infiniteRowModel=this.rowModel;break;case"serverSide":this.serverSideRowModel=this.rowModel}this.ctrlsService.whenReady((function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl()}))},e.prototype.__getAlignedGridService=function(){return this.alignedGridsService},e.prototype.__getContext=function(){return this.context},e.prototype.getSetterMethod=function(e){return"set"+e.charAt(0).toUpperCase()+e.substring(1)},e.prototype.__setProperty=function(e,t){this.gridOptionsService.set(e,t);var r=this.getSetterMethod(e);this[r]&&this[r](t)},e.prototype.getGridId=function(){return this.context.getGridId()},e.prototype.addDetailGridInfo=function(e,t){this.detailGridInfoMap[e]=t},e.prototype.removeDetailGridInfo=function(e){this.detailGridInfoMap[e]=void 0},e.prototype.getDetailGridInfo=function(e){return this.detailGridInfoMap[e]},e.prototype.forEachDetailGridInfo=function(e){var t=0;Object(u.iterateObject)(this.detailGridInfoMap,(function(r,o){Object(c.exists)(o)&&(e(o,t),t++)}))},e.prototype.getDataAsCsv=function(e){if(s.a.assertRegistered(l.a.CsvExportModule,"api.getDataAsCsv",this.context.getGridId()))return this.csvCreator.getDataAsCsv(e)},e.prototype.exportDataAsCsv=function(e){s.a.assertRegistered(l.a.CsvExportModule,"api.exportDataAsCSv",this.context.getGridId())&&this.csvCreator.exportDataAsCsv(e)},e.prototype.getExcelExportMode=function(e){var t=this.gridOptionsService.get("defaultExcelExportParams");return Object.assign({exportMode:"xlsx"},t,e).exportMode},e.prototype.assertNotExcelMultiSheet=function(e,t){if(!s.a.assertRegistered(l.a.ExcelExportModule,"api."+e,this.context.getGridId()))return!1;var r=this.getExcelExportMode(t);return this.excelCreator.getFactoryMode(r)!==a.a.MULTI_SHEET||(console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling 'api.getMultipleSheetAsExcel()' or 'api.exportMultipleSheetsAsExcel()'"),!1)},e.prototype.getDataAsExcel=function(e){if(this.assertNotExcelMultiSheet("getDataAsExcel",e))return this.excelCreator.getDataAsExcel(e)},e.prototype.exportDataAsExcel=function(e){this.assertNotExcelMultiSheet("exportDataAsExcel",e)&&this.excelCreator.exportDataAsExcel(e)},e.prototype.getSheetDataForExcel=function(e){if(s.a.assertRegistered(l.a.ExcelExportModule,"api.getSheetDataForExcel",this.context.getGridId())){var t=this.getExcelExportMode(e);return this.excelCreator.setFactoryMode(a.a.MULTI_SHEET,t),this.excelCreator.getSheetDataForExcel(e)}},e.prototype.getMultipleSheetsAsExcel=function(e){if(s.a.assertRegistered(l.a.ExcelExportModule,"api.getMultipleSheetsAsExcel",this.context.getGridId()))return this.excelCreator.getMultipleSheetsAsExcel(e)},e.prototype.exportMultipleSheetsAsExcel=function(e){if(s.a.assertRegistered(l.a.ExcelExportModule,"api.exportMultipleSheetsAsExcel",this.context.getGridId()))return this.excelCreator.exportMultipleSheetsAsExcel(e)},e.prototype.setGridAriaProperty=function(e,t){if(e){var r=this.ctrlsService.getGridBodyCtrl().getGui(),o="aria-"+e;null===t?r.removeAttribute(o):r.setAttribute(o,t)}},e.prototype.logMissingRowModel=function(e){for(var t=[],r=1;r=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},i=function(){function e(){}return e.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsService.isMasterDetail(),this.gridOptionsService.isRowModelType("clientSide")&&(this.clientSideRowModel=this.rowModel),this.gridOptionsService.isRowModelType("serverSide")&&(this.serverSideRowModel=this.rowModel)},n([Object(o.a)("resizeObserverService")],e.prototype,"resizeObserverService",void 0),n([Object(o.a)("paginationProxy")],e.prototype,"paginationProxy",void 0),n([Object(o.a)("context")],e.prototype,"context",void 0),n([Object(o.a)("columnApi")],e.prototype,"columnApi",void 0),n([Object(o.a)("gridApi")],e.prototype,"gridApi",void 0),n([Object(o.a)("gridOptionsService")],e.prototype,"gridOptionsService",void 0),n([Object(o.a)("expressionService")],e.prototype,"expressionService",void 0),n([Object(o.a)("environment")],e.prototype,"environment",void 0),n([Object(o.a)("rowRenderer")],e.prototype,"rowRenderer",void 0),n([Object(o.a)("templateService")],e.prototype,"templateService",void 0),n([Object(o.a)("valueService")],e.prototype,"valueService",void 0),n([Object(o.a)("eventService")],e.prototype,"eventService",void 0),n([Object(o.a)("columnModel")],e.prototype,"columnModel",void 0),n([Object(o.a)("headerNavigationService")],e.prototype,"headerNavigationService",void 0),n([Object(o.a)("navigationService")],e.prototype,"navigationService",void 0),n([Object(o.a)("columnAnimationService")],e.prototype,"columnAnimationService",void 0),n([Object(o.d)("rangeService")],e.prototype,"rangeService",void 0),n([Object(o.a)("focusService")],e.prototype,"focusService",void 0),n([Object(o.d)("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),n([Object(o.a)("popupService")],e.prototype,"popupService",void 0),n([Object(o.a)("valueFormatterService")],e.prototype,"valueFormatterService",void 0),n([Object(o.a)("stylingService")],e.prototype,"stylingService",void 0),n([Object(o.a)("columnHoverService")],e.prototype,"columnHoverService",void 0),n([Object(o.a)("userComponentFactory")],e.prototype,"userComponentFactory",void 0),n([Object(o.a)("userComponentRegistry")],e.prototype,"userComponentRegistry",void 0),n([Object(o.a)("animationFrameService")],e.prototype,"animationFrameService",void 0),n([Object(o.a)("dragService")],e.prototype,"dragService",void 0),n([Object(o.a)("dragAndDropService")],e.prototype,"dragAndDropService",void 0),n([Object(o.a)("sortController")],e.prototype,"sortController",void 0),n([Object(o.a)("filterManager")],e.prototype,"filterManager",void 0),n([Object(o.a)("rowContainerHeightService")],e.prototype,"rowContainerHeightService",void 0),n([Object(o.a)("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),n([Object(o.a)("cellPositionUtils")],e.prototype,"cellPositionUtils",void 0),n([Object(o.a)("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),n([Object(o.a)("selectionService")],e.prototype,"selectionService",void 0),n([Object(o.d)("selectionHandleFactory")],e.prototype,"selectionHandleFactory",void 0),n([Object(o.a)("rowCssClassCalculator")],e.prototype,"rowCssClassCalculator",void 0),n([Object(o.a)("rowModel")],e.prototype,"rowModel",void 0),n([Object(o.a)("ctrlsService")],e.prototype,"ctrlsService",void 0),n([Object(o.a)("ctrlsFactory")],e.prototype,"ctrlsFactory",void 0),n([Object(o.a)("agStackComponentsRegistry")],e.prototype,"agStackComponentsRegistry",void 0),n([Object(o.a)("valueCache")],e.prototype,"valueCache",void 0),n([Object(o.a)("rowNodeEventThrottle")],e.prototype,"rowNodeEventThrottle",void 0),n([Object(o.a)("localeService")],e.prototype,"localeService",void 0),n([Object(o.a)("valueParserService")],e.prototype,"valueParserService",void 0),n([o.e],e.prototype,"postConstruct",null),e=n([Object(o.b)("beans")],e)}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var o=r(1),n=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},i=function(e,t){for(var r=0,o=t.length,n=e.length;r=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},d=function(e){function t(r){var o=e.call(this,t.getTemplate(r))||this;return o.closable=!0,o.config=r,o}return u(t,e),t.getTemplate=function(e){var t=e&&e.cssIdentifier||"default";return'
\n
\n \n
\n
\n
\n
'},t.prototype.postConstruct=function(){var e=this,t=this.config,r=t.component,o=t.closable,n=t.hideTitleBar,i=t.title,a=t.minWidth,s=void 0===a?250:a,u=t.width,g=t.minHeight,d=void 0===g?250:g,p=t.height,h=t.centered,f=t.popup,v=t.x,m=t.y;this.positionableFeature=new c.a(this.getGui(),{minWidth:s,width:u,minHeight:d,height:p,centered:h,x:v,y:m,popup:f,calculateTopBuffer:function(){return e.positionableFeature.getHeight()-e.getBodyHeight()}}),this.createManagedBean(this.positionableFeature);var y=this.getGui();r&&this.setBodyComponent(r),n?Object(l.setDisplayed)(this.eTitleBar,!1):(i&&this.setTitle(i),this.setClosable(null!=o?o:this.closable)),this.addManagedListener(this.eTitleBar,"mousedown",(function(t){var r=e.gridOptionsService.getDocument();if(y.contains(t.relatedTarget)||y.contains(r.activeElement)||e.eTitleBarButtons.contains(t.target))t.preventDefault();else{var o=e.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");o&&o.focus()}})),f&&this.positionableFeature.isPositioned()||(this.renderComponent&&this.renderComponent(),this.positionableFeature.initialisePosition(),this.eContentWrapper.style.height="0")},t.prototype.renderComponent=function(){var e=this,t=this.getGui();t.focus(),this.close=function(){t.parentElement.removeChild(t),e.destroy()}},t.prototype.getHeight=function(){return this.positionableFeature.getHeight()},t.prototype.setHeight=function(e){this.positionableFeature.setHeight(e)},t.prototype.getWidth=function(){return this.positionableFeature.getWidth()},t.prototype.setWidth=function(e){this.positionableFeature.setWidth(e)},t.prototype.setClosable=function(e){if(e!==this.closable&&(this.closable=e),e){var r=this.closeButtonComp=new a.a(t.CLOSE_BTN_TEMPLATE);this.getContext().createBean(r);var o=r.getGui(),n=Object(s.createIconNoSpan)("close",this.gridOptionsService);n.classList.add("ag-panel-title-bar-button-icon"),o.appendChild(n),this.addTitleBarButton(r),r.addManagedListener(o,"click",this.onBtClose.bind(this))}else if(this.closeButtonComp){(o=this.closeButtonComp.getGui()).parentElement.removeChild(o),this.closeButtonComp=this.destroyBean(this.closeButtonComp)}},t.prototype.setBodyComponent=function(e){e.setParentComponent(this),this.eContentWrapper.appendChild(e.getGui())},t.prototype.addTitleBarButton=function(e,t){var r=this.eTitleBarButtons,o=r.children,n=o.length;null==t&&(t=n),t=Math.max(0,Math.min(t,n)),e.addCssClass("ag-panel-title-bar-button");var i=e.getGui();0===t?r.insertAdjacentElement("afterbegin",i):t===n?r.insertAdjacentElement("beforeend",i):o[t-1].insertAdjacentElement("afterend",i),e.setParentComponent(this)},t.prototype.getBodyHeight=function(){return Object(l.getInnerHeight)(this.eContentWrapper)},t.prototype.getBodyWidth=function(){return Object(l.getInnerWidth)(this.eContentWrapper)},t.prototype.setTitle=function(e){this.eTitle.innerText=e},t.prototype.onBtClose=function(){this.close()},t.prototype.destroy=function(){this.closeButtonComp&&(this.closeButtonComp=this.destroyBean(this.closeButtonComp));var t=this.getGui();t&&t.offsetParent&&this.close(),e.prototype.destroy.call(this)},t.CLOSE_BTN_TEMPLATE='
',g([Object(n.b)("eContentWrapper")],t.prototype,"eContentWrapper",void 0),g([Object(n.b)("eTitleBar")],t.prototype,"eTitleBar",void 0),g([Object(n.b)("eTitleBarButtons")],t.prototype,"eTitleBarButtons",void 0),g([Object(n.b)("eTitle")],t.prototype,"eTitle",void 0),g([i.e],t.prototype,"postConstruct",null),t}(a.a)},function(e,t,r){"use strict";function o(e,t,r){var o={},i=e.filter((function(e){return!t.some((function(t){return t===e}))}));return i.length>0&&i.forEach((function(e){return o[e]=n(e,r)})),o}function n(e,t,r,o){var n=t.map((function(t){return{value:t,relevance:i(e.toLowerCase(),t.toLocaleLowerCase())}}));if(n.sort((function(e,t){return t.relevance-e.relevance})),r&&(n=n.filter((function(e){return 0!==e.relevance}))),o&&o>0){var a=n[0].relevance*o;n=n.filter((function(e){return a-e.relevance<0}))}return n.map((function(e){return e.value}))}function i(e,t){for(var r=e.replace(/\s/g,""),o=t.replace(/\s/g,""),n=0,i=-1,a=0;a=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},c=function(e){function t(t,r){void 0===r&&(r=!1);var o=e.call(this)||this;return o.callback=t,o.addSpacer=r,o}return l(t,e),t.prototype.postConstruct=function(){var e=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",e),this.addManagedListener(this.eventService,a.a.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,a.a.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,a.a.EVENT_LEFT_PINNED_WIDTH_CHANGED,e),this.addSpacer&&(this.addManagedListener(this.eventService,a.a.EVENT_RIGHT_PINNED_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,a.a.EVENT_SCROLL_VISIBILITY_CHANGED,e),this.addManagedListener(this.eventService,a.a.EVENT_SCROLLBAR_WIDTH_CHANGED,e)),this.setWidth()},t.prototype.setWidth=function(){var e,t=this.columnModel,r=this.gridOptionsService.isDomLayout("print"),o=t.getBodyContainerWidth(),n=t.getDisplayedColumnsLeftWidth(),i=t.getDisplayedColumnsRightWidth();r?e=o+n+i:(e=o,this.addSpacer&&0===(this.gridOptionsService.is("enableRtl")?n:i)&&this.scrollVisibleService.isVerticalScrollShowing()&&(e+=this.gridOptionsService.getScrollbarWidth()));this.callback(e)},s([Object(i.a)("columnModel")],t.prototype,"columnModel",void 0),s([Object(i.a)("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),s([i.e],t.prototype,"postConstruct",null),t}(n.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var o,n=r(0),i=r(2),a=r(14),l=r(12),s=r(8),c=r(34),u=r(135),g=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},p=function(e){function t(t){var r=e.call(this)||this;return r.headerRowComps={},r.rowCompsList=[],r.pinned=t,r}return g(t,e),t.prototype.init=function(){var e=this;this.selectAndSetTemplate();var t={setDisplayed:function(t){return e.setDisplayed(t)},setCtrls:function(t){return e.setCtrls(t)},setCenterWidth:function(t){return e.eCenterContainer.style.width=t},setViewportScrollLeft:function(t){return e.getGui().scrollLeft=t},setPinnedContainerWidth:function(t){var r=e.getGui();r.style.width=t,r.style.maxWidth=t,r.style.minWidth=t}};this.createManagedBean(new u.a(this.pinned)).setComp(t,this.getGui())},t.prototype.selectAndSetTemplate=function(){var e="left"==this.pinned,r="right"==this.pinned,o=e?t.PINNED_LEFT_TEMPLATE:r?t.PINNED_RIGHT_TEMPLATE:t.CENTER_TEMPLATE;this.setTemplate(o),this.eRowContainer=this.eCenterContainer?this.eCenterContainer:this.getGui()},t.prototype.destroyRowComps=function(){this.setCtrls([])},t.prototype.destroyRowComp=function(e){this.destroyBean(e),this.eRowContainer.removeChild(e.getGui())},t.prototype.setCtrls=function(e){var t,r=this,o=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];e.forEach((function(e){var n=e.getInstanceId(),a=o[n];delete o[n];var l=a||r.createBean(new c.a(e));r.headerRowComps[n]=l,r.rowCompsList.push(l),function(e){var o=e.getGui();o.parentElement!=r.eRowContainer&&r.eRowContainer.appendChild(o),t&&Object(i.ensureDomOrder)(r.eRowContainer,o,t),t=o}(l)})),Object(a.getAllValuesInObject)(o).forEach((function(e){return r.destroyRowComp(e)}))},t.PINNED_LEFT_TEMPLATE='',t.PINNED_RIGHT_TEMPLATE='',t.CENTER_TEMPLATE='',d([Object(s.b)("eCenterContainer")],t.prototype,"eCenterContainer",void 0),d([n.e],t.prototype,"init",null),d([n.g],t.prototype,"destroyRowComps",null),t}(l.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var o,n=r(5),i=r(0),a=r(6),l=r(16),s=r(14),c=r(136),u=r(181),g=r(182),d=r(34),p=r(1),h=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),f=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},v=0,m=function(e){function t(t,r,o){var n=e.call(this)||this;return n.instanceId=v++,n.headerCellCtrls={},n.rowIndex=t,n.pinned=r,n.type=o,n}return h(t,e),t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setComp=function(e){this.comp=e,this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addEventListeners(),Object(l.isBrowserSafari)()&&this.comp.setTransform("translateZ(0)"),e.setAriaRowIndex(this.rowIndex+1)},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,a.a.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.eventService,a.a.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,a.a.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(this.eventService,a.a.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,a.a.EVENT_GRID_STYLES_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("domLayout",this.onDisplayedColumnsChanged.bind(this)),this.addManagedPropertyListener("headerHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("pivotHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("groupHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("pivotGroupHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("floatingFiltersHeight",this.onRowHeightChanged.bind(this))},t.prototype.getHeaderCellCtrl=function(e){return Object(p.values)(this.headerCellCtrls).find((function(t){return t.getColumnGroupChild()===e}))},t.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()},t.prototype.getType=function(){return this.type},t.prototype.onColumnResized=function(){this.setWidth()},t.prototype.setWidth=function(){var e=this.getWidthForRow();this.comp.setWidth(e+"px")},t.prototype.getWidthForRow=function(){return this.gridOptionsService.isDomLayout("print")?null!=this.pinned?0:this.columnModel.getContainerWidth("right")+this.columnModel.getContainerWidth("left")+this.columnModel.getContainerWidth(null):this.columnModel.getContainerWidth(this.pinned)},t.prototype.onRowHeightChanged=function(){var e=this.columnModel.getHeaderRowCount(),t=[],r=0;this.columnModel.hasFloatingFilters()&&(e++,r=1);for(var o=this.columnModel.getColumnGroupHeaderRowHeight(),n=this.columnModel.getColumnHeaderRowHeight(),i=e-(1+r),a=0;a=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},s=function(e){function t(t,r){var o=e.call(this)||this;return o.columns=t,o.element=r,o}return a(t,e),t.prototype.postConstruct=function(){this.gridOptionsService.is("columnHoverHighlight")&&this.addMouseHoverListeners()},t.prototype.addMouseHoverListeners=function(){this.addManagedListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addManagedListener(this.element,"mouseover",this.onMouseOver.bind(this))},t.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},l([Object(i.a)("columnHoverService")],t.prototype,"columnHoverService",void 0),l([i.e],t.prototype,"postConstruct",null),t}(n.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return f})),r.d(t,"b",(function(){return v}));var o,n=r(8),i=r(11),a=r(57),l=r(0),s=r(189),c=r(37),u=r(7),g=r(58),d=r(5),p=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),h=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},f=function(e){function t(t){var r=e.call(this)||this;return r.params=t,r}return p(t,e),t.prototype.setupGui=function(e){this.eFloatingFilterTextInput=this.createManagedBean(new c.a(this.params.config)),this.eFloatingFilterTextInput.setInputAriaLabel(this.params.ariaLabel),e.appendChild(this.eFloatingFilterTextInput.getGui())},t.prototype.setEditable=function(e){this.eFloatingFilterTextInput.setDisabled(!e)},t.prototype.getValue=function(){return this.eFloatingFilterTextInput.getValue()},t.prototype.setValue=function(e,t){this.eFloatingFilterTextInput.setValue(e,t)},t.prototype.addValueChangedListener=function(e){var t=this.eFloatingFilterTextInput.getGui();this.addManagedListener(t,"input",e),this.addManagedListener(t,"keydown",e)},t}(d.a),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.postConstruct=function(){this.setTemplate('\n \n ')},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.onParentModelChanged=function(e,t){this.isEventFromFloatingFilter(t)||this.isEventFromDataChange(t)||(this.setLastTypeFromModel(e),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)),this.floatingFilterInputService.setValue(this.getFilterModelFormatter().getModelAsString(e)))},t.prototype.init=function(t){this.params=t;var r=this.columnModel.getDisplayNameForColumn(t.column,"header",!0)+" "+this.localeService.getLocaleTextFunc()("ariaFilterInput","Filter Input");if(this.floatingFilterInputService=this.createFloatingFilterInputService(r),this.floatingFilterInputService.setupGui(this.eFloatingFilterInputContainer),e.prototype.init.call(this,t),this.applyActive=a.a.isUseApplyButton(this.params.filterParams),!this.isReadOnly()){var o=a.a.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),n=Object(i.debounce)(this.syncUpWithParentFilter.bind(this),o);this.floatingFilterInputService.addValueChangedListener(n)}},t.prototype.syncUpWithParentFilter=function(e){var t=this,r=e.key===u.a.ENTER;if(!this.applyActive||r){var o=this.floatingFilterInputService.getValue();this.params.filterParams.trimInput&&(o=g.a.trimInput(o),this.floatingFilterInputService.setValue(o,!0)),this.params.parentFilterInstance((function(e){e&&e.onFloatingFilterChanged(t.getLastType()||null,o||null)}))}},t.prototype.setEditable=function(e){this.floatingFilterInputService.setEditable(e)},h([Object(l.a)("columnModel")],t.prototype,"columnModel",void 0),h([Object(n.b)("eFloatingFilterInputContainer")],t.prototype,"eFloatingFilterInputContainer",void 0),h([l.e],t.prototype,"postConstruct",null),t}(s.a)},function(e,t,r){"use strict";r.r(t),r.d(t,"ClientSideRowModelModule",(function(){return L}));var o,n,i=r(4),a=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},l=function(e,t){for(var r=0,o=t.length,n=e.length;r0;if(r&&this.selectionService.setNodesSelected({newValue:!1,nodes:e,suppressFinishActions:!0,source:t}),this.selectionService.updateGroupsFromChildrenSelections(t),r){var o={type:i.Events.EVENT_SELECTION_CHANGED,source:t};this.eventService.dispatchEvent(o)}},e.prototype.executeAdd=function(t,r){var o,n=this,s=t.add,c=t.addIndex;if(!i._.missingOrEmpty(s)){var u=s.map((function(t){return n.createNode(t,n.rootNode,e.TOP_LEVEL)}));if("number"==typeof c&&c>=0){var g=this.rootNode.allLeafChildren,d=g.length,p=c;if(this.doingTreeData&&c>0&&d>0)for(var h=0;h=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},g=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},d=function(e,t){for(var r=0,o=t.length,n=e.length;r0;)t=t.childrenAfterSort[0];return t.rowIndex},t.prototype.getRowBounds=function(e){if(i._.missing(this.rowsToDisplay))return null;var t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null},t.prototype.onRowGroupOpened=function(){var e=this.gridOptionsService.isAnimateRows();this.refreshModel({step:i.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,animate:e})},t.prototype.onFilterChanged=function(e){if(!e.afterDataChange){var t=this.gridOptionsService.isAnimateRows(),r=0===e.columns.length||e.columns.some((function(e){return e.isPrimary()}))?i.ClientSideRowModelSteps.FILTER:i.ClientSideRowModelSteps.FILTER_AGGREGATES;this.refreshModel({step:r,keepRenderedRows:!0,animate:t})}},t.prototype.onSortChanged=function(){var e=this.gridOptionsService.isAnimateRows();this.refreshModel({step:i.ClientSideRowModelSteps.SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},t.prototype.getType=function(){return"clientSide"},t.prototype.onValueChanged=function(){this.columnModel.isPivotActive()?this.refreshModel({step:i.ClientSideRowModelSteps.PIVOT}):this.refreshModel({step:i.ClientSideRowModelSteps.AGGREGATE})},t.prototype.createChangePath=function(e){var t=i._.missingOrEmpty(e),r=new i.ChangedPath(!1,this.rootNode);return(t||this.gridOptionsService.isTreeData())&&r.setInactive(),r},t.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(e){if(!this.gridOptionsService.is("suppressModelUpdateAfterUpdateTransaction"))return!1;if(null==e.rowNodeTransactions)return!1;var t=e.rowNodeTransactions.filter((function(e){return null!=e.add&&e.add.length>0||null!=e.remove&&e.remove.length>0}));return null==t||0==t.length},t.prototype.buildRefreshModelParams=function(e){var t=i.ClientSideRowModelSteps.EVERYTHING,r={everything:i.ClientSideRowModelSteps.EVERYTHING,group:i.ClientSideRowModelSteps.EVERYTHING,filter:i.ClientSideRowModelSteps.FILTER,map:i.ClientSideRowModelSteps.MAP,aggregate:i.ClientSideRowModelSteps.AGGREGATE,sort:i.ClientSideRowModelSteps.SORT,pivot:i.ClientSideRowModelSteps.PIVOT};if(i._.exists(e)&&(t=r[e]),!i._.missing(t))return{step:t,keepRenderedRows:!0,keepEditingRows:!0,animate:!this.gridOptionsService.is("suppressAnimationFrame")};console.error("AG Grid: invalid step "+e+", available steps are "+Object.keys(r).join(", "))},t.prototype.refreshModel=function(e){var t="object"==typeof e&&"step"in e?e:this.buildRefreshModelParams(e);if(t&&!this.isSuppressModelUpdateAfterUpdateTransaction(t)){var r=this.createChangePath(t.rowNodeTransactions);switch(t.step){case i.ClientSideRowModelSteps.EVERYTHING:this.doRowGrouping(t.groupState,t.rowNodeTransactions,t.rowNodeOrder,r,!!t.afterColumnsChanged);case i.ClientSideRowModelSteps.FILTER:this.doFilter(r);case i.ClientSideRowModelSteps.PIVOT:this.doPivot(r);case i.ClientSideRowModelSteps.AGGREGATE:this.doAggregate(r);case i.ClientSideRowModelSteps.FILTER_AGGREGATES:this.doFilterAggregates(r);case i.ClientSideRowModelSteps.SORT:this.doSort(t.rowNodeTransactions,r);case i.ClientSideRowModelSteps.MAP:this.doRowsToDisplay()}var o=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(r,o);var n={type:i.Events.EVENT_MODEL_UPDATED,animate:t.animate,keepRenderedRows:t.keepRenderedRows,newData:t.newData,newPage:!1,keepUndoRedoStack:t.keepUndoRedoStack};this.eventService.dispatchEvent(n)}},t.prototype.isEmpty=function(){var e=i._.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length;return i._.missing(this.rootNode)||e||!this.columnModel.isReady()},t.prototype.isRowsToRender=function(){return i._.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},t.prototype.getNodesInRangeForSelection=function(e,t){var r=!t,o=!1,n=[],i=this.gridOptionsService.is("groupSelectsChildren");return this.forEachNodeAfterFilterAndSort((function(a){if(!o)if(r&&(a===t||a===e)&&(o=!0,a.group&&i))n.push.apply(n,d([],g(a.allLeafChildren)));else{if(!r){if(a!==t&&a!==e)return;r=!0}(!a.group||!i)&&n.push(a)}})),n},t.prototype.setDatasource=function(e){console.error("AG Grid: should never call setDatasource on clientSideRowController")},t.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},t.prototype.getRootNode=function(){return this.rootNode},t.prototype.getRow=function(e){return this.rowsToDisplay[e]},t.prototype.isRowPresent=function(e){return this.rowsToDisplay.indexOf(e)>=0},t.prototype.getRowIndexAtPixel=function(e){if(this.isEmpty()||0===this.rowsToDisplay.length)return-1;var t=0,r=this.rowsToDisplay.length-1;if(e<=0)return 0;if(i._.last(this.rowsToDisplay).rowTop<=e)return this.rowsToDisplay.length-1;for(var o=-1,n=-1;;){var a=Math.floor((t+r)/2),l=this.rowsToDisplay[a];if(this.isRowInPixel(l,e))return a;if(l.rowTope&&(r=a-1),o===t&&n===r)return a;o=t,n=r}},t.prototype.isRowInPixel=function(e,t){var r=e.rowTop,o=e.rowTop+e.rowHeight;return r<=t&&o>t},t.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach((function(t,r){return e(t,r)}))},t.prototype.forEachNode=function(e,t){void 0===t&&(t=!1),this.recursivelyWalkNodesAndCallback({nodes:d([],g(this.rootNode.childrenAfterGroup||[])),callback:e,recursionType:n.Normal,index:0,includeFooterNodes:t})},t.prototype.forEachNodeAfterFilter=function(e,t){void 0===t&&(t=!1),this.recursivelyWalkNodesAndCallback({nodes:d([],g(this.rootNode.childrenAfterAggFilter||[])),callback:e,recursionType:n.AfterFilter,index:0,includeFooterNodes:t})},t.prototype.forEachNodeAfterFilterAndSort=function(e,t){void 0===t&&(t=!1),this.recursivelyWalkNodesAndCallback({nodes:d([],g(this.rootNode.childrenAfterSort||[])),callback:e,recursionType:n.AfterFilterAndSort,index:0,includeFooterNodes:t})},t.prototype.forEachPivotNode=function(e,t){void 0===t&&(t=!1),this.recursivelyWalkNodesAndCallback({nodes:[this.rootNode],callback:e,recursionType:n.PivotNodes,index:0,includeFooterNodes:t})},t.prototype.recursivelyWalkNodesAndCallback=function(e){var t,r=e.nodes,o=e.callback,i=e.recursionType,a=e.includeFooterNodes,l=e.index,s=r[0];a&&(null===(t=null==s?void 0:s.parent)||void 0===t?void 0:t.sibling)&&r.push(s.parent.sibling);for(var c=0;c0&&window.setTimeout((function(){t.forEach((function(e){return e()}))}),0),r.length>0){var n={type:i.Events.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:r};this.eventService.dispatchEvent(n)}this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0},t.prototype.updateRowData=function(e,t){this.valueCache.onDataChanged();var r=this.nodeManager.updateRowData(e,t),o="number"==typeof e.addIndex;return this.commonUpdateRowData([r],t,o),r},t.prototype.createRowNodeOrder=function(){if(!this.gridOptionsService.is("suppressMaintainUnsortedOrder")){var e={};if(this.rootNode&&this.rootNode.allLeafChildren)for(var t=0;t=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.execute=function(e){var t=e.changedPath;this.filterService.filter(t)},f([Object(i.Autowired)("filterService")],t.prototype,"filterService",void 0),t=f([Object(i.Bean)("filterStage")],t)}(i.BeanStub),m=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),y=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype.execute=function(e){var t=this,r=this.sortController.getSortOptions(),o=i._.exists(r)&&r.length>0,n=o&&i._.exists(e.rowNodeTransactions)&&this.gridOptionsService.is("deltaSort"),a=r.some((function(e){return!!t.columnModel.getGroupDisplayColumnForGroup(e.column.getId())}));this.sortService.sort(r,o,n,e.rowNodeTransactions,e.changedPath,a)},y([Object(i.Autowired)("sortService")],t.prototype,"sortService",void 0),y([Object(i.Autowired)("sortController")],t.prototype,"sortController",void 0),y([Object(i.Autowired)("columnModel")],t.prototype,"columnModel",void 0),t=y([Object(i.Bean)("sortStage")],t)}(i.BeanStub),b=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),C=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return b(t,e),t.prototype.execute=function(e){var t=e.rowNode,r=[],o={value:0},n=this.columnModel.isPivotMode(),i=n&&t.leafGroup,a=i?[t]:t.childrenAfterSort;return this.recursivelyAddToRowsToDisplay(a,r,o,n,0),!i&&r.length>0&&this.gridOptionsService.is("groupIncludeTotalFooter")&&(t.createFooter(),this.addRowNodeToRowsToDisplay(t.sibling,r,o,0)),r},t.prototype.recursivelyAddToRowsToDisplay=function(e,t,r,o,n){if(!i._.missingOrEmpty(e))for(var a=this.gridOptionsService.is("groupHideOpenParents"),l=this.gridOptionsService.is("groupRemoveSingleChildren"),s=!l&&this.gridOptionsService.is("groupRemoveLowestSingleChildren"),c=0;c=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return O(t,e),t.prototype.init=function(){this.postSortFunc=this.gridOptionsService.getCallback("postSortRows")},t.prototype.sort=function(e,t,r,o,n,i){var a=this,l=this.gridOptionsService.is("groupMaintainOrder"),s=this.columnModel.getAllGridColumns().some((function(e){return e.isRowGroupActive()})),c={};r&&o&&(c=this.calculateDirtyNodes(o));var u=this.columnModel.isPivotMode();n&&n.forEachChangedNodeDepthFirst((function(o){a.pullDownGroupDataForHideOpenParents(o.childrenAfterAggFilter,!0);var g=u&&o.leafGroup;if(l&&s&&!o.leafGroup&&!i){var d=o.childrenAfterAggFilter.slice(0);if(o.childrenAfterSort){var p={};o.childrenAfterSort.forEach((function(e,t){p[e.id]=t})),d.sort((function(e,t){var r,o;return(null!==(r=p[e.id])&&void 0!==r?r:0)-(null!==(o=p[t.id])&&void 0!==o?o:0)}))}o.childrenAfterSort=d}else o.childrenAfterSort=!t||g?o.childrenAfterAggFilter.slice(0):r?a.doDeltaSort(o,c,n,e):a.rowNodeSorter.doFullSort(o.childrenAfterAggFilter,e);if(o.sibling&&(o.sibling.childrenAfterSort=o.childrenAfterSort),a.updateChildIndexes(o),a.postSortFunc){var h={nodes:o.childrenAfterSort};a.postSortFunc(h)}})),this.updateGroupDataForHideOpenParents(n)},t.prototype.calculateDirtyNodes=function(e){var t={},r=function(e){e&&e.forEach((function(e){return t[e.id]=!0}))};return e&&e.forEach((function(e){r(e.add),r(e.update),r(e.remove)})),t},t.prototype.doDeltaSort=function(e,t,r,o){var n=this,i=e.childrenAfterAggFilter,a=e.childrenAfterSort;if(!a)return this.rowNodeSorter.doFullSort(i,o);var l={},s=[];i.forEach((function(e){t[e.id]||!r.canSkip(e)?s.push(e):l[e.id]=!0}));var c=a.filter((function(e){return l[e.id]})),u=function(e,t){return{currentPos:t,rowNode:e}},g=s.map(u).sort((function(e,t){return n.rowNodeSorter.compareRowNodes(o,e,t)}));return this.mergeSortedArrays(o,g,c.map(u)).map((function(e){return e.rowNode}))},t.prototype.mergeSortedArrays=function(e,t,r){for(var o=[],n=0,i=0;n=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return T(t,e),t.prototype.filter=function(e){var t=this.filterManager.isColumnFilterPresent()||this.filterManager.isQuickFilterPresent()||this.filterManager.isExternalFilterPresent();this.filterNodes(t,e)},t.prototype.filterNodes=function(e,t){var r=this,o=function(t,o){t.hasChildren()?t.childrenAfterFilter=e&&!o?t.childrenAfterGroup.filter((function(e){var t=e.childrenAfterFilter&&e.childrenAfterFilter.length>0,o=e.data&&r.filterManager.doesRowPassFilter({rowNode:e});return t||o})):t.childrenAfterGroup:t.childrenAfterFilter=t.childrenAfterGroup,t.sibling&&(t.sibling.childrenAfterFilter=t.childrenAfterFilter)};if(this.doingTreeDataFiltering()){var n=function(e,t){if(e.childrenAfterGroup)for(var i=0;i=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},M=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return D(t,e),t.prototype.postConstruct=function(){"clientSide"===this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel)},t.prototype.isActive=function(){var e=this.gridOptionsService.exists("getRowId");return!this.gridOptionsService.is("resetRowDataOnUpdate")&&e},t.prototype.setRowData=function(e){var t=this.createTransactionForRowData(e);if(t){var r=M(t,2),o=r[0],n=r[1];this.clientSideRowModel.updateRowData(o,n)}},t.prototype.createTransactionForRowData=function(e){if(i._.missing(this.clientSideRowModel))console.error("AG Grid: ImmutableService only works with ClientSideRowModel");else{var t=this.gridOptionsService.getCallback("getRowId");if(null!=t){var r={remove:[],update:[],add:[]},o=this.clientSideRowModel.getCopyOfNodesMap(),n=this.gridOptionsService.is("suppressMaintainUnsortedOrder")?void 0:{};return i._.exists(e)&&e.forEach((function(e,i){var a=t({data:e,level:0}),l=o[a];(n&&(n[a]=i),l)?(l.data!==e&&r.update.push(e),o[a]=void 0):r.add.push(e)})),i._.iterateObject(o,(function(e,t){t&&r.remove.push(t.data)})),[r,n]}console.error("AG Grid: ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!")}},P([Object(i.Autowired)("rowModel")],t.prototype,"rowModel",void 0),P([Object(i.Autowired)("rowRenderer")],t.prototype,"rowRenderer",void 0),P([i.PostConstruct],t.prototype,"postConstruct",null),t=P([Object(i.Bean)("immutableService")],t)}(i.BeanStub),L={version:"30.0.0",moduleName:i.ModuleNames.ClientSideRowModelModule,rowModel:"clientSide",beans:[p,v,w,S,R,A,N]}},function(e,t,r){"use strict";r.r(t),r.d(t,"BaseCreator",(function(){return i})),r.d(t,"BaseGridSerializingSession",(function(){return a})),r.d(t,"CsvCreator",(function(){return p})),r.d(t,"CsvExportModule",(function(){return m})),r.d(t,"Downloader",(function(){return s})),r.d(t,"GridSerializer",(function(){return v})),r.d(t,"RowType",(function(){return n})),r.d(t,"XmlFactory",(function(){return y})),r.d(t,"ZipContainer",(function(){return C}));var o,n,i=function(){function e(){}return e.prototype.setBeans=function(e){this.beans=e},e.prototype.getFileName=function(e){var t=this.getDefaultFileExtension();return null!=e&&e.length||(e=this.getDefaultFileName()),-1===e.indexOf(".")?e+"."+t:e},e.prototype.getData=function(e){var t=this.createSerializingSession(e);return this.beans.gridSerializer.serialize(t,e)},e}(),a=function(){function e(e){this.groupColumns=[];var t=e.columnModel,r=e.valueService,o=e.gridOptionsService,n=e.valueFormatterService,i=e.valueParserService,a=e.processCellCallback,l=e.processHeaderCallback,s=e.processGroupHeaderCallback,c=e.processRowGroupCallback;this.columnModel=t,this.valueService=r,this.gridOptionsService=o,this.valueFormatterService=n,this.valueParserService=i,this.processCellCallback=a,this.processHeaderCallback=l,this.processGroupHeaderCallback=s,this.processRowGroupCallback=c}return e.prototype.prepare=function(e){this.groupColumns=e.filter((function(e){return!!e.getColDef().showRowGroup}))},e.prototype.extractHeaderValue=function(e){var t=this.getHeaderName(this.processHeaderCallback,e);return null!=t?t:""},e.prototype.extractRowCellValue=function(e,t,r,o,n){var i=this.gridOptionsService.is("groupHideOpenParents")&&!n.footer||!this.shouldRenderGroupSummaryCell(n,e,t)?this.valueService.getValue(e,n):this.createValueForGroupNode(n);return this.processCell({accumulatedRowIndex:r,rowNode:n,column:e,value:i,processCellCallback:this.processCellCallback,type:o})},e.prototype.shouldRenderGroupSummaryCell=function(e,t,r){var o;if(!(e&&e.group))return!1;if(-1!==this.groupColumns.indexOf(t)){if(null===(o=e.groupData)||void 0===o?void 0:o[t.getId()])return!0;if(e.footer&&-1===e.level){var n=t.getColDef();return null==n||!0===n.showRowGroup||n.showRowGroup===this.columnModel.getRowGroupColumns()[0].getId()}}var i=this.gridOptionsService.isGroupUseEntireRow(this.columnModel.isPivotMode());return 0===r&&i},e.prototype.getHeaderName=function(e,t){return e?e({column:t,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}):this.columnModel.getDisplayNameForColumn(t,"csv",!0)},e.prototype.createValueForGroupNode=function(e){if(this.processRowGroupCallback)return this.processRowGroupCallback({node:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context});var t=e.footer,r=[e.key];if(!this.gridOptionsService.isGroupMultiAutoColumn())for(;e.parent;)e=e.parent,r.push(e.key);var o=r.reverse().join(" -> ");return t?"Total "+o:o},e.prototype.processCell=function(e){var t,r=this,o=e.accumulatedRowIndex,n=e.rowNode,i=e.column,a=e.value,l=e.processCellCallback,s=e.type;return l?{value:null!==(t=l({accumulatedRowIndex:o,column:i,node:n,value:a,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,type:s,parseValue:function(e){return r.valueParserService.parseValue(i,n,e,r.valueService.getValue(i,n))},formatValue:function(e){var t;return null!==(t=r.valueFormatterService.formatValue(i,n,e))&&void 0!==t?t:e}}))&&void 0!==t?t:""}:i.getColDef().useValueFormatterForExport?{value:null!=a?a:"",valueFormatted:this.valueFormatterService.formatValue(i,n,a)}:{value:null!=a?a:""}},e}(),l=r(4),s=function(){function e(){}return e.download=function(e,t){var r=document.defaultView||window;if(r){var o=document.createElement("a"),n=r.URL.createObjectURL(t);o.setAttribute("href",n),o.setAttribute("download",e),o.style.display="none",document.body.appendChild(o),o.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:r})),document.body.removeChild(o),r.setTimeout((function(){r.URL.revokeObjectURL(n)}),0)}else console.warn("AG Grid: There is no `window` associated with the current `document`")},e}(),c=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;r.isFirstLine=!0,r.result="";var o=t.suppressQuotes,n=t.columnSeparator;return r.suppressQuotes=o,r.columnSeparator=n,r}return c(t,e),t.prototype.addCustomContent=function(e){var t=this;e&&("string"==typeof e?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,"\r\n"),this.result+=e):e.forEach((function(e){t.beginNewLine(),e.forEach((function(e,r){0!==r&&(t.result+=t.columnSeparator),t.result+=t.putInQuotes(e.data.value||""),e.mergeAcross&&t.appendEmptyCells(e.mergeAcross)}))})))},t.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,t,r,o){0!=r&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(t),this.appendEmptyCells(o)},t.prototype.appendEmptyCells=function(e){for(var t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")},t.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,t){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))},t.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},t.prototype.onNewBodyRowColumn=function(e,t,r){var o;0!=t&&(this.result+=this.columnSeparator);var n=this.extractRowCellValue(e,t,t,"csv",r);this.result+=this.putInQuotes(null!==(o=n.valueFormatted)&&void 0!==o?o:n.value)},t.prototype.putInQuotes=function(e){return this.suppressQuotes?e:null==e?'""':("string"==typeof e?t=e:"function"==typeof e.toString?t=e.toString():(console.warn("AG Grid: unknown value type during csv conversion"),t=""),'"'+t.replace(/"/g,'""')+'"');var t},t.prototype.parse=function(){return this.result},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+="\r\n"),this.isFirstLine=!1},t}(a),g=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),d=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsService:this.gridOptionsService})},t.prototype.getMergedParams=function(e){var t=this.gridOptionsService.get("defaultCsvExportParams");return Object.assign({},t,e)},t.prototype.export=function(e){if(this.isExportSuppressed())return console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration."),"";var t=this.getMergedParams(e),r=this.getData(t),o=new Blob(["\ufeff",r],{type:"text/plain"});return s.download(this.getFileName(t.fileName),o),r},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e,t){void 0===t&&(t=!1);var r=t?Object.assign({},e):this.getMergedParams(e);return this.getData(r)},t.prototype.getDefaultFileName=function(){return"export.csv"},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var t=this,r=t.columnModel,o=t.valueService,n=t.gridOptionsService,i=t.valueFormatterService,a=t.valueParserService,l=e,s=l.processCellCallback,c=l.processHeaderCallback,g=l.processGroupHeaderCallback,d=l.processRowGroupCallback,p=l.suppressQuotes,h=l.columnSeparator;return new u({columnModel:r,valueService:o,gridOptionsService:n,valueFormatterService:i,valueParserService:a,processCellCallback:s||void 0,processHeaderCallback:c||void 0,processGroupHeaderCallback:g||void 0,processRowGroupCallback:d||void 0,suppressQuotes:p||!1,columnSeparator:h||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsService.is("suppressCsvExport")},d([Object(l.Autowired)("columnModel")],t.prototype,"columnModel",void 0),d([Object(l.Autowired)("valueService")],t.prototype,"valueService",void 0),d([Object(l.Autowired)("gridSerializer")],t.prototype,"gridSerializer",void 0),d([Object(l.Autowired)("gridOptionsService")],t.prototype,"gridOptionsService",void 0),d([Object(l.Autowired)("valueFormatterService")],t.prototype,"valueFormatterService",void 0),d([Object(l.Autowired)("valueParserService")],t.prototype,"valueParserService",void 0),d([l.PostConstruct],t.prototype,"postConstruct",null),t=d([Object(l.Bean)("csvCreator")],t)}(i),h=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),f=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};!function(e){e[e.HEADER_GROUPING=0]="HEADER_GROUPING",e[e.HEADER=1]="HEADER",e[e.BODY=2]="BODY"}(n||(n={}));var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.serialize=function(e,t){void 0===t&&(t={});var r=this.getColumnsToExport(t.allColumns,t.columnKeys);return l._.compose(this.prepareSession(r),this.prependContent(t),this.exportColumnGroups(t,r),this.exportHeaders(t,r),this.processPinnedTopRows(t,r),this.processRows(t,r),this.processPinnedBottomRows(t,r),this.appendContent(t))(e).parse()},t.prototype.processRow=function(e,t,r,o){var n=t.shouldRowBeSkipped||function(){return!1},i=this.gridOptionsService.context,a=this.gridOptionsService.api,s=this.gridOptionsService.columnApi,c=this.gridOptionsService.is("groupRemoveSingleChildren"),u=this.gridOptionsService.is("groupRemoveLowestSingleChildren"),g=null!=t.rowPositions||!!t.onlySelected,d=this.gridOptionsService.is("groupHideOpenParents")&&!g,p=this.columnModel.isPivotMode()?o.leafGroup:!o.group,h=!!o.footer,f=t.skipGroups||t.skipRowGroups,v=u&&o.leafGroup,m=1===o.allChildrenCount&&(c||v);if((f&&t.skipGroups&&l._.doOnce((function(){return console.warn("AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.")}),"gridSerializer-skipGroups"),!(!p&&!h&&(t.skipRowGroups||m||d)||t.onlySelected&&!o.isSelected()||t.skipPinnedTop&&"top"===o.rowPinned||t.skipPinnedBottom&&"bottom"===o.rowPinned))&&((!(-1===o.level)||p||h)&&!n({node:o,api:a,columnApi:s,context:i}))){var y=e.onNewBodyRow(o);if(r.forEach((function(e,t){y.onColumn(e,t,o)})),t.getCustomContentBelowRow){var w=t.getCustomContentBelowRow({node:o,api:a,columnApi:s,context:i});w&&e.addCustomContent(w)}}},t.prototype.appendContent=function(e){return function(t){var r=e.customFooter||e.appendContent;return r&&(e.customFooter&&l._.doOnce((function(){return console.warn("AG Grid: Since version 25.2.0 the `customFooter` param has been deprecated. Use `appendContent` instead.")}),"gridSerializer-customFooter"),t.addCustomContent(r)),t}},t.prototype.prependContent=function(e){return function(t){var r=e.customHeader||e.prependContent;return r&&(e.customHeader&&l._.doOnce((function(){return console.warn("AG Grid: Since version 25.2.0 the `customHeader` param has been deprecated. Use `prependContent` instead.")}),"gridSerializer-customHeader"),t.addCustomContent(r)),t}},t.prototype.prepareSession=function(e){return function(t){return t.prepare(e),t}},t.prototype.exportColumnGroups=function(e,t){var r=this;return function(o){if(e.skipColumnGroupHeaders)e.columnGroups&&l._.doOnce((function(){return console.warn("AG Grid: Since v25.2 the `columnGroups` param has deprecated, and groups are exported by default.")}),"gridSerializer-columnGroups");else{var n=new l.GroupInstanceIdCreator,i=r.displayedGroupCreator.createDisplayedGroups(t,r.columnModel.getGridBalancedTree(),n,null);r.recursivelyAddHeaderGroups(i,o,e.processGroupHeaderCallback)}return o}},t.prototype.exportHeaders=function(e,t){return function(r){if(e.skipHeader||e.skipColumnHeaders)e.skipHeader&&l._.doOnce((function(){return console.warn("AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.")}),"gridSerializer-skipHeader");else{var o=r.onNewHeaderRow();t.forEach((function(e,t){o.onColumn(e,t,void 0)}))}return r}},t.prototype.processPinnedTopRows=function(e,t){var r=this;return function(o){var n=r.processRow.bind(r,o,e,t);return e.rowPositions?e.rowPositions.filter((function(e){return"top"===e.rowPinned})).sort((function(e,t){return e.rowIndex-t.rowIndex})).map((function(e){return r.pinnedRowModel.getPinnedTopRow(e.rowIndex)})).forEach(n):r.pinnedRowModel.forEachPinnedTopRow(n),o}},t.prototype.processRows=function(e,t){var r=this;return function(o){var n=r.rowModel,i=n.getType(),a="clientSide"===i,l="serverSide"===i,s=!a&&e.onlySelected,c=r.processRow.bind(r,o,e,t),u=e.exportedRows,g=void 0===u?"filteredAndSorted":u;if(e.rowPositions)e.rowPositions.filter((function(e){return null==e.rowPinned})).sort((function(e,t){return e.rowIndex-t.rowIndex})).map((function(e){return n.getRow(e.rowIndex)})).forEach(c);else if(r.columnModel.isPivotMode())a?n.forEachPivotNode(c,!0):n.forEachNode(c);else if(e.onlySelectedAllPages||s){var d=r.selectionService.getSelectedNodes();r.replicateSortedOrder(d),d.forEach(c)}else"all"===g?n.forEachNode(c):a?n.forEachNodeAfterFilterAndSort(c,!0):l?n.forEachNodeAfterFilterAndSort(c):n.forEachNode(c);return o}},t.prototype.replicateSortedOrder=function(e){var t=this,r=this.sortController.getSortOptions(),o=function(e,n){var i,a,l,s;return null!=e.rowIndex&&null!=n.rowIndex?e.rowIndex-n.rowIndex:e.level===n.level?(null===(i=e.parent)||void 0===i?void 0:i.id)===(null===(a=n.parent)||void 0===a?void 0:a.id)?t.rowNodeSorter.compareRowNodes(r,{rowNode:e,currentPos:null!==(l=e.rowIndex)&&void 0!==l?l:-1},{rowNode:n,currentPos:null!==(s=n.rowIndex)&&void 0!==s?s:-1}):o(e.parent,n.parent):e.level>n.level?o(e.parent,n):o(e,n.parent)};e.sort(o)},t.prototype.processPinnedBottomRows=function(e,t){var r=this;return function(o){var n=r.processRow.bind(r,o,e,t);return e.rowPositions?e.rowPositions.filter((function(e){return"bottom"===e.rowPinned})).sort((function(e,t){return e.rowIndex-t.rowIndex})).map((function(e){return r.pinnedRowModel.getPinnedBottomRow(e.rowIndex)})).forEach(n):r.pinnedRowModel.forEachPinnedBottomRow(n),o}},t.prototype.getColumnsToExport=function(e,t){void 0===e&&(e=!1);var r=this.columnModel.isPivotMode();return t&&t.length?this.columnModel.getGridColumns(t):e&&!r?(this.gridOptionsService.isTreeData()?this.columnModel.getGridColumns([l.GROUP_AUTO_COLUMN_ID]):[]).concat(this.columnModel.getAllGridColumns()||[]):this.columnModel.getAllDisplayedColumns()},t.prototype.recursivelyAddHeaderGroups=function(e,t,r){var o=[];e.forEach((function(e){var t=e;t.getChildren&&t.getChildren().forEach((function(e){return o.push(e)}))})),e.length>0&&e[0]instanceof l.ColumnGroup&&this.doAddHeaderHeader(t,e,r),o&&o.length>0&&this.recursivelyAddHeaderGroups(o,t,r)},t.prototype.doAddHeaderHeader=function(e,t,r){var o=this,n=e.onNewHeaderGroupingRow(),i=0;t.forEach((function(e){var t,a=e;t=r?r({columnGroup:a,api:o.gridOptionsService.api,columnApi:o.gridOptionsService.columnApi,context:o.gridOptionsService.context}):o.columnModel.getDisplayNameForColumnGroup(a,"header");var s=a.getLeafColumns().reduce((function(e,t,r,o){var n=l._.last(e);return"open"===t.getColumnGroupShow()?n&&null==n[1]||(n=[r],e.push(n)):n&&null==n[1]&&(n[1]=r-1),r===o.length-1&&n&&null==n[1]&&(n[1]=r),e}),[]);n.onColumn(a,t||"",i++,a.getLeafColumns().length-1,s)}))},f([Object(l.Autowired)("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),f([Object(l.Autowired)("columnModel")],t.prototype,"columnModel",void 0),f([Object(l.Autowired)("rowModel")],t.prototype,"rowModel",void 0),f([Object(l.Autowired)("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),f([Object(l.Autowired)("selectionService")],t.prototype,"selectionService",void 0),f([Object(l.Autowired)("rowNodeSorter")],t.prototype,"rowNodeSorter",void 0),f([Object(l.Autowired)("sortController")],t.prototype,"sortController",void 0),t=f([Object(l.Bean)("gridSerializer")],t)}(l.BeanStub),m={version:"30.0.0",moduleName:l.ModuleNames.CsvExportModule,beans:[p,v]},y=function(){function e(){}return e.createHeader=function(e){void 0===e&&(e={});var t=["version"];return e.version||(e.version="1.0"),e.encoding&&t.push("encoding"),e.standalone&&t.push("standalone"),""},e.createXml=function(e,t){var r=this,o="";e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEach((function(e){Object.keys(e.map).forEach((function(n){o+=r.returnAttributeIfPopulated(e.prefix+n,e.map[n],t)}))})),e.properties.rawMap&&Object.keys(e.properties.rawMap).forEach((function(n){o+=r.returnAttributeIfPopulated(n,e.properties.rawMap[n],t)})));var n="<"+e.name+o;return e.children||null!=e.textNode?null!=e.textNode?n+">"+e.textNode+"\r\n":(n+=">\r\n",e.children&&e.children.forEach((function(e){n+=r.createXml(e,t)})),n+"\r\n"):n+"/>\r\n"},e.returnAttributeIfPopulated=function(e,t,r){if(!t&&""!==t&&0!==t)return"";var o=t;return"boolean"==typeof t&&r&&(o=r(t))," "+e+'="'+o+'"'},e}(),w=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},b=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),C=function(){function e(){}return e.addFolders=function(e){e.forEach(this.addFolder.bind(this))},e.addFolder=function(e){this.folders.push({path:e,created:new Date,isBase64:!1})},e.addFile=function(e,t,r){void 0===r&&(r=!1),this.files.push({path:e,created:new Date,content:t,isBase64:r})},e.getContent=function(e){void 0===e&&(e="application/zip");var t=this.buildFileStream(),r=this.buildUint8Array(t);return this.clearStream(),new Blob([r],{type:e})},e.clearStream=function(){this.folders=[],this.files=[]},e.buildFileStream=function(e){var t,r;void 0===e&&(e="");var o=this.folders.concat(this.files),n=o.length,i="",a=0,l=0;try{for(var s=w(o),c=s.next();!c.done;c=s.next()){var u=c.value,g=this.getHeader(u,a),d=g.fileHeader,p=g.folderHeader,h=g.content;a+=d.length+h.length,l+=p.length,e+=d+h,i+=p}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}return e+i+this.buildFolderEnd(n,l,a)},e.getHeader=function(e,t){var r=e.content,o=e.path,n=e.created,i=e.isBase64,a=l._.utf8_encode,s=l._.decToHex,c=a(o),u=c!==o,g=this.convertTime(n),d=this.convertDate(n),p="";if(u){var h=s(1,1)+s(this.getFromCrc32Table(c),4)+c;p="up"+s(h.length,2)+h}var f=r?this.getConvertedContent(r,i):{size:0,content:""},v=f.size,m=f.content,y="\n\0"+(u?"\0\b":"\0\0")+"\0\0"+s(g,2)+s(d,2)+s(v?this.getFromCrc32Table(m):0,4)+s(v,4)+s(v,4)+s(c.length,2)+s(p.length,2);return{fileHeader:"PK"+y+c+p,folderHeader:"PK\0"+y+"\0\0\0\0\0\0"+(r?"\0\0\0\0":"\0\0\0")+s(t,4)+c+p,content:m||""}},e.getConvertedContent=function(e,t){return void 0===t&&(t=!1),t&&(e=e.split(";base64,")[1]),{size:(e=t?atob(e):e).length,content:e}},e.buildFolderEnd=function(e,t,r){var o=l._.decToHex;return"PK\0\0\0\0"+o(e,2)+o(e,2)+o(t,4)+o(r,4)+"\0\0"},e.buildUint8Array=function(e){for(var t=new Uint8Array(e.length),r=0;r>>8^b[255&(n^i)];return-1^n},e.convertTime=function(e){var t=e.getHours();return t<<=6,t|=e.getMinutes(),t<<=5,t|=e.getSeconds()/2},e.convertDate=function(e){var t=e.getFullYear()-1980;return t<<=4,t|=e.getMonth()+1,t<<=5,t|=e.getDate()},e.folders=[],e.files=[],e}()},function(e,t,r){"use strict";r.r(t),r.d(t,"InfiniteRowModelModule",(function(){return f}));var o,n=r(4),i=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},l=function(e){function t(t,r,o){var n=e.call(this,t)||this;return n.parentCache=r,n.params=o,n.startRow=t*o.blockSize,n.endRow=n.startRow+o.blockSize,n}return i(t,e),t.prototype.postConstruct=function(){this.createRowNodes()},t.prototype.getBlockStateJson=function(){return{id:""+this.getId(),state:{blockNumber:this.getId(),startRow:this.getStartRow(),endRow:this.getEndRow(),pageStatus:this.getState()}}},t.prototype.setDataAndId=function(e,t,r){!e.id&&e.alreadyRendered&&(e.alreadyRendered=!1),n._.exists(t)?e.setDataAndId(t,r.toString()):e.setDataAndId(void 0,void 0)},t.prototype.loadFromDatasource=function(){var e=this,t=this.createLoadParams();n._.missing(this.params.datasource.getRows)?console.warn("AG Grid: datasource is missing getRows method"):window.setTimeout((function(){e.params.datasource.getRows(t)}),0)},t.prototype.processServerFail=function(){},t.prototype.createLoadParams=function(){return{startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this,this.getVersion()),sortModel:this.params.sortModel,filterModel:this.params.filterModel,context:this.gridOptionsService.context}},t.prototype.forEachNode=function(e,t,r){var o=this;this.rowNodes.forEach((function(n,i){o.startRow+i=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,r)},t.prototype.destroyRowNodes=function(){this.rowNodes.forEach((function(e){e.clearRowTopAndRowIndex()}))},a([Object(n.Autowired)("beans")],t.prototype,"beans",void 0),a([n.PostConstruct],t.prototype,"postConstruct",null),a([n.PreDestroy],t.prototype,"destroyRowNodes",null),t}(n.RowNodeBlock),s=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),c=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},u=function(e,t){return function(r,o){t(r,o,e)}},g=function(e){function t(t){var r=e.call(this)||this;return r.lastRowIndexKnown=!1,r.blocks={},r.blockCount=0,r.rowCount=t.initialRowCount,r.params=t,r}return s(t,e),t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.getRow=function(e,t){void 0===t&&(t=!1);var r=Math.floor(e/this.params.blockSize),o=this.blocks[r];if(!o){if(t)return;o=this.createBlock(r)}return o.getRow(e)},t.prototype.createBlock=function(e){var t=this.createBean(new l(e,this,this.params));return this.blocks[t.getId()]=t,this.blockCount++,this.purgeBlocksIfNeeded(t),this.params.rowNodeBlockLoader.addBlock(t),t},t.prototype.refreshCache=function(){0==this.blockCount?this.purgeCache():(this.getBlocksInOrder().forEach((function(e){return e.setStateWaitingToLoad()})),this.params.rowNodeBlockLoader.checkBlockToLoad())},t.prototype.destroyAllBlocks=function(){var e=this;this.getBlocksInOrder().forEach((function(t){return e.destroyBlock(t)}))},t.prototype.getRowCount=function(){return this.rowCount},t.prototype.isLastRowIndexKnown=function(){return this.lastRowIndexKnown},t.prototype.pageLoaded=function(e,t){this.isAlive()&&(this.logger.log("onPageLoaded: page = "+e.getId()+", lastRow = "+t),this.checkRowCount(e,t),this.onCacheUpdated())},t.prototype.purgeBlocksIfNeeded=function(e){var r=this,o=this.getBlocksInOrder().filter((function(t){return t!=e}));o.sort((function(e,t){return t.getLastAccessed()-e.getLastAccessed()}));var n=this.params.maxBlocksInCache>0,i=n?this.params.maxBlocksInCache-1:null,a=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;o.forEach((function(e,t){if(e.getState()===l.STATE_WAITING_TO_LOAD&&t>=a||!!n&&t>=i){if(r.isBlockCurrentlyDisplayed(e))return;if(r.isBlockFocused(e))return;r.removeBlockFromCache(e)}}))},t.prototype.isBlockFocused=function(e){var t=this.focusService.getFocusCellToUseAfterRefresh();if(!t)return!1;if(null!=t.rowPinned)return!1;var r=e.getStartRow(),o=e.getEndRow();return t.rowIndex>=r&&t.rowIndex=0)this.rowCount=t,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){var r=(e.getId()+1)*this.params.blockSize+this.params.overflowSize;this.rowCount=e.rowCount&&t.push(r)})),t.length>0&&t.forEach((function(t){return e.destroyBlock(t)}))},t.prototype.purgeCache=function(){var e=this;this.getBlocksInOrder().forEach((function(t){return e.removeBlockFromCache(t)})),this.lastRowIndexKnown=!1,0===this.rowCount&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()},t.prototype.getRowNodesInRange=function(e,t){var r=this,o=[],i=-1,a=!1,l=new n.NumberSequence;n._.missing(e)&&(a=!0);var s=!1;return this.getBlocksInOrder().forEach((function(n){s||(a&&i+1!==n.getId()?s=!0:(i=n.getId(),n.forEachNode((function(r){var n=r===e||r===t;(a||n)&&o.push(r),n&&(a=!a)}),l,r.rowCount)))})),s||a?[]:o},t.MAX_EMPTY_BLOCKS_TO_KEEP=2,c([Object(n.Autowired)("rowRenderer")],t.prototype,"rowRenderer",void 0),c([Object(n.Autowired)("focusService")],t.prototype,"focusService",void 0),c([u(0,Object(n.Qualifier)("loggerFactory"))],t.prototype,"setBeans",null),c([n.PreDestroy],t.prototype,"destroyAllBlocks",null),t}(n.BeanStub),d=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),p=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.ensureRowHeightsValid=function(e,t,r,o){return!1},t.prototype.init=function(){var e=this;this.gridOptionsService.isRowModelType("infinite")&&(this.rowHeight=this.gridOptionsService.getRowHeightAsNumber(),this.addEventListeners(),this.addDestroyFunc((function(){return e.destroyCache()})),this.verifyProps())},t.prototype.verifyProps=function(){if(this.gridOptionsService.exists("initialGroupOrderComparator")){n._.doOnce((function(){return console.warn("AG Grid: initialGroupOrderComparator cannot be used with Infinite Row Model. If using Infinite Row Model, then sorting is done on the server side, nothing to do with the client.")}),"IRM.InitialGroupOrderComparator")}},t.prototype.start=function(){this.setDatasource(this.gridOptionsService.get("datasource"))},t.prototype.destroyDatasource=function(){this.datasource&&(this.getContext().destroyBean(this.datasource),this.rowRenderer.datasourceChanged(),this.datasource=null)},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,n.Events.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,n.Events.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,n.Events.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverything.bind(this)),this.addManagedListener(this.eventService,n.Events.EVENT_STORE_UPDATED,this.onCacheUpdated.bind(this))},t.prototype.onFilterChanged=function(){this.reset()},t.prototype.onSortChanged=function(){this.reset()},t.prototype.onColumnEverything=function(){(!this.cacheParams||this.isSortModelDifferent())&&this.reset()},t.prototype.isSortModelDifferent=function(){return!n._.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return"infinite"},t.prototype.setDatasource=function(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()},t.prototype.isEmpty=function(){return!this.infiniteCache},t.prototype.isRowsToRender=function(){return!!this.infiniteCache},t.prototype.getNodesInRangeForSelection=function(e,t){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,t):[]},t.prototype.reset=function(){if(this.datasource){null!=this.gridOptionsService.getCallback("getRowId")||this.selectionService.reset(),this.resetCache();var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)}},t.prototype.createModelUpdatedEvent=function(){return{type:n.Events.EVENT_MODEL_UPDATED,newPage:!1,newData:!1,keepRenderedRows:!0,animate:!1}},t.prototype.resetCache=function(){this.destroyCache(),this.cacheParams={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,initialRowCount:this.defaultIfInvalid(this.gridOptionsService.getNum("infiniteInitialRowCount"),1),maxBlocksInCache:this.gridOptionsService.getNum("maxBlocksInCache"),rowHeight:this.gridOptionsService.getRowHeightAsNumber(),overflowSize:this.defaultIfInvalid(this.gridOptionsService.getNum("cacheOverflowSize"),1),blockSize:this.defaultIfInvalid(this.gridOptionsService.getNum("cacheBlockSize"),100),lastAccessedSequence:new n.NumberSequence},this.infiniteCache=this.createBean(new g(this.cacheParams))},t.prototype.defaultIfInvalid=function(e,t){return e>0?e:t},t.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache=this.destroyBean(this.infiniteCache))},t.prototype.onCacheUpdated=function(){var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)},t.prototype.getRow=function(e){if(this.infiniteCache&&!(e>=this.infiniteCache.getRowCount()))return this.infiniteCache.getRow(e)},t.prototype.getRowNode=function(e){var t;return this.forEachNode((function(r){r.id===e&&(t=r)})),t},t.prototype.forEachNode=function(e){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(e)},t.prototype.getTopLevelRowCount=function(){return this.getRowCount()},t.prototype.getTopLevelRowDisplayedIndex=function(e){return e},t.prototype.getRowIndexAtPixel=function(e){if(0!==this.rowHeight){var t=Math.floor(e/this.rowHeight),r=this.getRowCount()-1;return t>r?r:t}return 0},t.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getRowCount():0},t.prototype.isRowPresent=function(e){return!!this.getRowNode(e.id)},t.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},t.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},t.prototype.isLastRowIndexKnown=function(){return!!this.infiniteCache&&this.infiniteCache.isLastRowIndexKnown()},t.prototype.setRowCount=function(e,t){this.infiniteCache&&this.infiniteCache.setRowCount(e,t)},p([Object(n.Autowired)("filterManager")],t.prototype,"filterManager",void 0),p([Object(n.Autowired)("sortController")],t.prototype,"sortController",void 0),p([Object(n.Autowired)("selectionService")],t.prototype,"selectionService",void 0),p([Object(n.Autowired)("rowRenderer")],t.prototype,"rowRenderer",void 0),p([Object(n.Autowired)("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),p([n.PostConstruct],t.prototype,"init",null),p([n.PreDestroy],t.prototype,"destroyDatasource",null),t=p([Object(n.Bean)("rowModel")],t)}(n.BeanStub),f={version:"30.0.0",moduleName:n.ModuleNames.InfiniteRowModelModule,rowModel:"infinite",beans:[h]}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var o,n=r(66),i=r(1),a=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(){function e(){}return e.prototype.getTemplate=function(){return''},e.prototype.init=function(e,t){this.eInput=e,this.params=t,null!=t.maxLength&&e.setMaxLength(t.maxLength)},e.prototype.getValue=function(){var e=this.eInput.getValue();return Object(i.exists)(e)||Object(i.exists)(this.params.value)?this.params.parseValue(e):this.params.value},e.prototype.getStartValue=function(){return this.params.useFormatter||this.params.column.getColDef().refData?this.params.formatValue(this.params.value):this.params.value},e.prototype.setCaret=function(){var e=this.eInput.getValue(),t=Object(i.exists)(e)&&e.length||0;t&&this.eInput.getInputElement().setSelectionRange(t,t)},e}(),s=function(e){function t(){return e.call(this,new l)||this}return a(t,e),t}(n.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return g}));var o,n=r(9),i=r(2),a=r(12),l=r(8),s=r(113),c=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},g=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return c(t,e),t.prototype.init=function(e){var t=this,r={setInnerRenderer:function(e,r){return t.setRenderDetails(e,r)},setChildCount:function(e){return t.eChildCount.innerHTML=e},addOrRemoveCssClass:function(e,r){return t.addOrRemoveCssClass(e,r)},setContractedDisplayed:function(e){return Object(i.setDisplayed)(t.eContracted,e)},setExpandedDisplayed:function(e){return Object(i.setDisplayed)(t.eExpanded,e)},setCheckboxVisible:function(e){return t.eCheckbox.classList.toggle("ag-invisible",!e)}},o=this.createManagedBean(new s.a),a=!e.colDef,l=this.getGui();o.init(r,l,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,e),a&&Object(n.setAriaRole)(l,"gridcell")},t.prototype.setRenderDetails=function(e,t){var r=this;if(e){var o=e.newAgStackInstance();if(!o)return;o.then((function(e){if(e){var t=function(){return r.context.destroyBean(e)};r.isAlive()?(r.eValue.appendChild(e.getGui()),r.addDestroyFunc(t)):t()}}))}else this.eValue.innerText=t},t.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),e.prototype.destroy.call(this)},t.prototype.refresh=function(){return!1},t.TEMPLATE='\n \n \n \n \n \n ',u([Object(l.b)("eExpanded")],t.prototype,"eExpanded",void 0),u([Object(l.b)("eContracted")],t.prototype,"eContracted",void 0),u([Object(l.b)("eCheckbox")],t.prototype,"eCheckbox",void 0),u([Object(l.b)("eValue")],t.prototype,"eValue",void 0),u([Object(l.b)("eChildCount")],t.prototype,"eChildCount",void 0),t}(a.a)},function(e,t,r){"use strict";var o;r.d(t,"a",(function(){return o})),function(e){e[e.SINGLE_SHEET=0]="SINGLE_SHEET",e[e.MULTI_SHEET=1]="MULTI_SHEET"}(o||(o={}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var o,n=r(5),i=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e){function t(r){var o=e.call(this)||this;return o.state=t.STATE_WAITING_TO_LOAD,o.version=0,o.id=r,o}return i(t,e),t.prototype.getId=function(){return this.id},t.prototype.load=function(){this.state=t.STATE_LOADING,this.loadFromDatasource()},t.prototype.getVersion=function(){return this.version},t.prototype.setStateWaitingToLoad=function(){this.version++,this.state=t.STATE_WAITING_TO_LOAD},t.prototype.getState=function(){return this.state},t.prototype.pageLoadFailed=function(e){this.isRequestMostRecentAndLive(e)&&(this.state=t.STATE_FAILED,this.processServerFail()),this.dispatchLoadCompleted(!1)},t.prototype.success=function(e,t){this.successCommon(e,t)},t.prototype.pageLoaded=function(e,t,r){this.successCommon(e,{rowData:t,rowCount:r})},t.prototype.isRequestMostRecentAndLive=function(e){var t=e===this.version,r=this.isAlive();return t&&r},t.prototype.successCommon=function(e,r){this.dispatchLoadCompleted(),this.isRequestMostRecentAndLive(e)&&(this.state=t.STATE_LOADED,this.processServerResult(r))},t.prototype.dispatchLoadCompleted=function(e){void 0===e&&(e=!0);var r={type:t.EVENT_LOAD_COMPLETE,success:e,block:this};this.dispatchEvent(r)},t.EVENT_LOAD_COMPLETE="loadComplete",t.STATE_WAITING_TO_LOAD="needsLoading",t.STATE_LOADING="loading",t.STATE_LOADED="loaded",t.STATE_FAILED="failed",t}(n.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var o=r(1),n=function(){function e(){this.existingKeys={}}return e.prototype.addExistingKeys=function(e){for(var t=0;t=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},b=function(e,t){return function(r,o){t(r,o,e)}},C=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},O=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},E=function(e,t){for(var r=0,o=t.length,n=e.length;r=0,l=i>=0;return a&&l?n-i:a?1:l?-1:e.gridColumns.indexOf(r)-e.gridColumns.indexOf(o)})),this.gridColumns=this.placeLockedColumns(this.gridColumns))},t.prototype.getAllDisplayedAutoHeightCols=function(){return this.displayedAutoHeightCols},t.prototype.setViewport=function(){this.gridOptionsService.is("enableRtl")?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},t.prototype.getDisplayedColumnsStartingAt=function(e){for(var t=e,r=[];null!=t;)r.push(t),t=this.getDisplayedColAfter(t);return r},t.prototype.checkViewportColumns=function(){if(null!=this.displayedColumnsCenter&&this.extractViewport()){var e={type:a.a.EVENT_VIRTUAL_COLUMNS_CHANGED};this.eventService.dispatchEvent(e)}},t.prototype.setViewportPosition=function(e,t){(e!==this.scrollWidth||t!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=t,this.bodyWidthDirty=!0,this.setViewport(),this.ready&&this.checkViewportColumns())},t.prototype.isPivotMode=function(){return this.pivotMode},t.prototype.isPivotSettingAllowed=function(e){return!e||!this.gridOptionsService.isTreeData()||(console.warn("AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1)},t.prototype.setPivotMode=function(e,t){if(void 0===t&&(t="api"),e!==this.pivotMode&&this.isPivotSettingAllowed(this.pivotMode)){this.pivotMode=e,this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(t);var r={type:a.a.EVENT_COLUMN_PIVOT_MODE_CHANGED};this.eventService.dispatchEvent(r)}},t.prototype.getSecondaryPivotColumn=function(e,t){if(Object(p.missing)(this.secondaryColumns))return null;var r=this.getPrimaryColumn(t),o=null;return this.secondaryColumns.forEach((function(t){var n=t.getColDef().pivotKeys,i=t.getColDef().pivotValueColumn;Object(d.areEqual)(n,e)&&i===r&&(o=t)})),o},t.prototype.setBeans=function(e){this.logger=e.create("columnModel")},t.prototype.setFirstRightAndLastLeftPinned=function(e){var t,r;this.gridOptionsService.is("enableRtl")?(t=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,r=this.displayedColumnsRight?Object(d.last)(this.displayedColumnsRight):null):(t=this.displayedColumnsLeft?Object(d.last)(this.displayedColumnsLeft):null,r=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach((function(o){o.setLastLeftPinned(o===t,e),o.setFirstRightPinned(o===r,e)}))},t.prototype.autoSizeColumns=function(e){var t=this,r=e.columns,o=e.skipHeader,n=e.skipHeaderGroups,i=e.stopAtGroup,a=e.source,l=void 0===a?"api":a;this.animationFrameService.flushAllFrames();for(var s=[],c=-1,u=null!=o?o:this.gridOptionsService.is("skipHeaderOnAutoSize"),g=null!=n?n:u;0!==c;)c=0,this.actionOnGridColumns(r,(function(e){if(s.indexOf(e)>=0)return!1;var r=t.autoWidthCalculator.getPreferredWidthForColumn(e,u);if(r>0){var o=t.normaliseColumnWidth(e,r);e.setActualWidth(o,l),s.push(e),c++}return!0}),l);g||this.autoSizeColumnGroupsByColumns(r,l,i),this.dispatchColumnResizedEvent(s,!0,"autosizeColumns")},t.prototype.dispatchColumnResizedEvent=function(e,t,r,o){if(void 0===o&&(o=null),e&&e.length){var n={type:a.a.EVENT_COLUMN_RESIZED,columns:e,column:1===e.length?e[0]:null,flexColumns:o,finished:t,source:r};this.eventService.dispatchEvent(n)}},t.prototype.dispatchColumnChangedEvent=function(e,t,r){var o={type:e,columns:t,column:t&&1==t.length?t[0]:null,source:r};this.eventService.dispatchEvent(o)},t.prototype.dispatchColumnMovedEvent=function(e){var t=e.movedColumns,r=e.source,o=e.toIndex,n=e.finished,i={type:a.a.EVENT_COLUMN_MOVED,columns:t,column:t&&1===t.length?t[0]:null,toIndex:o,finished:n,source:r};this.eventService.dispatchEvent(i)},t.prototype.dispatchColumnPinnedEvent=function(e,t){if(e.length){var r=1===e.length?e[0]:null,o=this.getCommonValue(e,(function(e){return e.getPinned()})),n={type:a.a.EVENT_COLUMN_PINNED,pinned:null!=o?o:null,columns:e,column:r,source:t};this.eventService.dispatchEvent(n)}},t.prototype.dispatchColumnVisibleEvent=function(e,t){if(e.length){var r=1===e.length?e[0]:null,o=this.getCommonValue(e,(function(e){return e.isVisible()})),n={type:a.a.EVENT_COLUMN_VISIBLE,visible:o,columns:e,column:r,source:t};this.eventService.dispatchEvent(n)}},t.prototype.autoSizeColumn=function(e,t,r){void 0===r&&(r="api"),e&&this.autoSizeColumns({columns:[e],skipHeader:t,skipHeaderGroups:!0,source:r})},t.prototype.autoSizeColumnGroupsByColumns=function(e,t,r){var o,n,i,a,l,s=new Set;this.getGridColumns(e).forEach((function(e){for(var t=e.getParent();t&&t!=r;)t.isPadding()||s.add(t),t=t.getParent()}));try{for(var c=S(s),u=c.next();!u.done;u=c.next()){var g=u.value;try{for(var d=(i=void 0,S(this.ctrlsService.getHeaderRowContainerCtrls())),p=d.next();!p.done;p=d.next()){if(l=p.value.getHeaderCtrlForColumn(g))break}}catch(e){i={error:e}}finally{try{p&&!p.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}l&&l.resizeLeafColumnsToFit(t)}}catch(e){o={error:e}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(o)throw o.error}}return[]},t.prototype.autoSizeAllColumns=function(e,t){void 0===t&&(t="api");var r=this.getAllDisplayedColumns();this.autoSizeColumns({columns:r,skipHeader:e,source:t})},t.prototype.getColumnsFromTree=function(e){var t=[],r=function(e){for(var o=0;o=0},t.prototype.getAllDisplayedColumns=function(){return this.displayedColumns},t.prototype.getViewportColumns=function(){return this.viewportColumns},t.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsLeft):this.displayedColumnsLeft},t.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsRight):this.displayedColumnsRight},t.prototype.isColSpanActive=function(){return this.colSpanActive},t.prototype.getDisplayedColumnsForRow=function(e,t,r,o){for(var n,i=[],a=null,l=function(l){var s,c=t[l],u=t.length-l,g=Math.min(c.getColSpan(e),u),d=[c];if(g>1){for(var p=g-1,h=1;h<=p;h++)d.push(t[l+h]);l+=p}if(r?(s=!1,d.forEach((function(e){r(e)&&(s=!0)}))):s=!0,s){if(0===i.length&&a)!!o&&o(c)&&i.push(a);i.push(c)}a=c,n=l},s=0;st.viewportLeft}))},t.prototype.getAriaColumnIndex=function(e){return this.getAllGridColumns().indexOf(e)+1},t.prototype.isColumnInHeaderViewport=function(e){return!!e.isAutoHeaderHeight()||this.isColumnInRowViewport(e)},t.prototype.isColumnInRowViewport=function(e){if(e.isAutoHeight())return!0;var t=e.getLeft()||0,r=t+e.getActualWidth(),o=this.viewportLeft-200,n=this.viewportRight+200;return!(tn&&r>n)},t.prototype.getDisplayedColumnsLeftWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsLeft)},t.prototype.getDisplayedColumnsRightWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsRight)},t.prototype.updatePrimaryColumnList=function(e,t,r,o,n,i){var a=this;if(void 0===i&&(i="api"),e&&!Object(p.missingOrEmpty)(e)){var l=!1;if(e.forEach((function(e){var n=a.getPrimaryColumn(e);if(n){if(r){if(t.indexOf(n)>=0)return;t.push(n)}else{if(t.indexOf(n)<0)return;Object(d.removeFromArray)(t,n)}o(n),l=!0}})),l){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(i);var s={type:n,columns:t,column:1===t.length?t[0]:null,source:i};this.eventService.dispatchEvent(s)}}},t.prototype.setRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,a.a.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),t)},t.prototype.setRowGroupActive=function(e,t,r){e!==t.isRowGroupActive()&&(t.setRowGroupActive(e,r),e&&!this.gridOptionsService.is("suppressRowGroupHidesColumns")&&this.setColumnVisible(t,!1,r),e||this.gridOptionsService.is("suppressMakeColumnVisibleAfterUnGroup")||this.setColumnVisible(t,!0,r))},t.prototype.addRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.addRowGroupColumns([e],t)},t.prototype.addRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),a.a.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},t.prototype.removeRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),a.a.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},t.prototype.removeRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.removeRowGroupColumns([e],t)},t.prototype.addPivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!0,(function(e){return e.setPivotActive(!0,t)}),a.a.EVENT_COLUMN_PIVOT_CHANGED,t)},t.prototype.setPivotColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.pivotColumns,a.a.EVENT_COLUMN_PIVOT_CHANGED,(function(e,r){r.setPivotActive(e,t)}),t)},t.prototype.addPivotColumn=function(e,t){void 0===t&&(t="api"),this.addPivotColumns([e],t)},t.prototype.removePivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!1,(function(e){return e.setPivotActive(!1,t)}),a.a.EVENT_COLUMN_PIVOT_CHANGED,t)},t.prototype.removePivotColumn=function(e,t){void 0===t&&(t="api"),this.removePivotColumns([e],t)},t.prototype.setPrimaryColumnList=function(e,t,r,o,n){var i=this;t.length=0,Object(p.exists)(e)&&e.forEach((function(e){var r=i.getPrimaryColumn(e);r&&t.push(r)})),(this.primaryColumns||[]).forEach((function(e){var r=t.indexOf(e)>=0;o(r,e)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(n),this.dispatchColumnChangedEvent(r,t,n)},t.prototype.setValueColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.valueColumns,a.a.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),t)},t.prototype.setValueActive=function(e,t,r){if(e!==t.isValueActive()&&(t.setValueActive(e,r),e&&!t.getAggFunc())){var o=this.aggFuncService.getDefaultAggFunc(t);t.setAggFunc(o)}},t.prototype.addValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),a.a.EVENT_COLUMN_VALUE_CHANGED,t)},t.prototype.addValueColumn=function(e,t){void 0===t&&(t="api"),e&&this.addValueColumns([e],t)},t.prototype.removeValueColumn=function(e,t){void 0===t&&(t="api"),this.removeValueColumns([e],t)},t.prototype.removeValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),a.a.EVENT_COLUMN_VALUE_CHANGED,t)},t.prototype.normaliseColumnWidth=function(e,t){var r=e.getMinWidth();Object(p.exists)(r)&&t0?n+=r:i=!1})),r>=o&&(!i||r<=n)},t.prototype.resizeColumnSets=function(e){var t=this,r=e.resizeSets,o=e.finished,n=e.source;if(!r||r.every((function(e){return t.checkMinAndMaxWidthsForSet(e)}))){var i=[],a=[];r.forEach((function(e){var t=e.width,r=e.columns,o=e.ratios,l={},s={};r.forEach((function(e){return a.push(e)}));for(var c=!0,u=0,g=function(){if(++u>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";c=!1;var e=[],n=0,i=t;r.forEach((function(t,r){if(s[t.getId()])i-=l[t.getId()];else{e.push(t);var a=o[r];n+=a}}));var a=1/n;e.forEach((function(r,n){var u;n===e.length-1?u=i:(u=Math.round(o[n]*t*a),i-=u);var g=r.getMinWidth(),d=r.getMaxWidth();Object(p.exists)(g)&&u0&&u>d&&(u=d,s[r.getId()]=!0,c=!0),l[r.getId()]=u}))};c;){if("break"===g())break}r.forEach((function(e){var t=l[e.getId()];e.getActualWidth()!==t&&(e.setActualWidth(t,n),i.push(e))}))}));var l=i.length>0,s=[];l&&(s=this.refreshFlexedColumns({resizingCols:a,skipSetLeft:!0}),this.setLeftValues(n),this.updateBodyWidths(),this.checkViewportColumns());var c=a.concat(s);(l||o)&&this.dispatchColumnResizedEvent(c,o,n,s)}else if(o){var u=r&&r.length>0?r[0].columns:null;this.dispatchColumnResizedEvent(u,o,n)}},t.prototype.setColumnAggFunc=function(e,t,r){if(void 0===r&&(r="api"),e){var o=this.getPrimaryColumn(e);o&&(o.setAggFunc(t),this.dispatchColumnChangedEvent(a.a.EVENT_COLUMN_VALUE_CHANGED,[o],r))}},t.prototype.moveRowGroupColumn=function(e,t,r){void 0===r&&(r="api");var o=this.rowGroupColumns[e];this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(t,0,o);var n={type:a.a.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:this.rowGroupColumns,column:1===this.rowGroupColumns.length?this.rowGroupColumns[0]:null,source:r};this.eventService.dispatchEvent(n)},t.prototype.moveColumns=function(e,t,r,o){if(void 0===r&&(r="api"),void 0===o&&(o=!0),this.columnAnimationService.start(),t>this.gridColumns.length-e.length)return console.warn("AG Grid: tried to insert columns in invalid location, toIndex = "+t),void console.warn("AG Grid: remember that you should not count the moving columns when calculating the new index");var n=this.getGridColumns(e);!this.doesMovePassRules(n,t)||(Object(d.moveInArray)(this.gridColumns,n,t),this.updateDisplayedColumns(r),this.dispatchColumnMovedEvent({movedColumns:n,source:r,toIndex:t,finished:o}),this.columnAnimationService.finish())},t.prototype.doesMovePassRules=function(e,t){var r=this.getProposedColumnOrder(e,t);return this.doesOrderPassRules(r)},t.prototype.doesOrderPassRules=function(e){return!!this.doesMovePassMarryChildren(e)&&!!this.doesMovePassLockedPositions(e)},t.prototype.getProposedColumnOrder=function(e,t){var r=this.gridColumns.slice();return Object(d.moveInArray)(r,e,t),r},t.prototype.sortColumnsLikeGridColumns=function(e){var t=this;!e||e.length<=1||(e.filter((function(e){return t.gridColumns.indexOf(e)<0})).length>0||e.sort((function(e,r){return t.gridColumns.indexOf(e)-t.gridColumns.indexOf(r)})))},t.prototype.doesMovePassLockedPositions=function(e){var t=0,r=!0;return e.forEach((function(e){var o,n=(o=e.getColDef().lockPosition)?!0===o||"left"===o?0:2:1;no.getLeafColumns().length-1&&(t=!1)}}})),t},t.prototype.moveColumn=function(e,t,r){void 0===r&&(r="api"),this.moveColumns([e],t,r)},t.prototype.moveColumnByIndex=function(e,t,r){void 0===r&&(r="api");var o=this.gridColumns[e];this.moveColumn(o,t,r)},t.prototype.getColumnDefs=function(){var e=this;if(this.primaryColumns){var t=this.primaryColumns.slice();return this.gridColsArePrimary?t.sort((function(t,r){return e.gridColumns.indexOf(t)-e.gridColumns.indexOf(r)})):this.lastPrimaryOrder&&t.sort((function(t,r){return e.lastPrimaryOrder.indexOf(t)-e.lastPrimaryOrder.indexOf(r)})),this.columnDefFactory.buildColumnDefs(t,this.rowGroupColumns,this.pivotColumns)}},t.prototype.getBodyContainerWidth=function(){return this.bodyWidth},t.prototype.getContainerWidth=function(e){switch(e){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}},t.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedColumnsCenter),t=this.getWidthOfColsInList(this.displayedColumnsLeft),r=this.getWidthOfColsInList(this.displayedColumnsRight);if(this.bodyWidthDirty=this.bodyWidth!==e,this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==r){this.bodyWidth=e,this.leftWidth=t,this.rightWidth=r;var o={type:a.a.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED};this.eventService.dispatchEvent(o)}},t.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},t.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},t.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},t.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},t.prototype.getDisplayedCenterColumns=function(){return this.displayedColumnsCenter},t.prototype.getDisplayedLeftColumns=function(){return this.displayedColumnsLeft},t.prototype.getDisplayedRightColumns=function(){return this.displayedColumnsRight},t.prototype.getDisplayedColumns=function(e){switch(e){case"left":return this.getDisplayedLeftColumns();case"right":return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},t.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},t.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},t.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},t.prototype.getAllGridColumns=function(){return this.gridColumns},t.prototype.isEmpty=function(){return Object(p.missingOrEmpty)(this.gridColumns)},t.prototype.isRowGroupEmpty=function(){return Object(p.missingOrEmpty)(this.rowGroupColumns)},t.prototype.setColumnVisible=function(e,t,r){void 0===r&&(r="api"),this.setColumnsVisible([e],t,r)},t.prototype.setColumnsVisible=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r="api"),this.applyColumnState({state:e.map((function(e){return{colId:"string"==typeof e?e:e.getColId(),hide:!t}}))},r)},t.prototype.setColumnPinned=function(e,t,r){void 0===r&&(r="api"),e&&this.setColumnsPinned([e],t,r)},t.prototype.setColumnsPinned=function(e,t,r){var o;(void 0===r&&(r="api"),this.gridOptionsService.isDomLayout("print"))?console.warn("AG Grid: Changing the column pinning status is not allowed with domLayout='print'"):(this.columnAnimationService.start(),o=!0===t||"left"===t?"left":"right"===t?"right":null,this.actionOnGridColumns(e,(function(e){return e.getPinned()!==o&&(e.setPinned(o),!0)}),r,(function(){return{type:a.a.EVENT_COLUMN_PINNED,pinned:o,column:null,columns:null,source:r}})),this.columnAnimationService.finish())},t.prototype.actionOnGridColumns=function(e,t,r,o){var n=this;if(!Object(p.missingOrEmpty)(e)){var i=[];if(e.forEach((function(e){var r=n.getGridColumn(e);r&&(!1!==t(r)&&i.push(r))})),i.length&&(this.updateDisplayedColumns(r),Object(p.exists)(o)&&o)){var a=o();a.columns=i,a.column=1===i.length?i[0]:null,this.eventService.dispatchEvent(a)}}},t.prototype.getDisplayedColBefore=function(e){var t=this.getAllDisplayedColumns(),r=t.indexOf(e);return r>0?t[r-1]:null},t.prototype.getDisplayedColAfter=function(e){var t=this.getAllDisplayedColumns(),r=t.indexOf(e);return r0},t.prototype.isPinningRight=function(){return this.displayedColumnsRight.length>0},t.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e;return(e=[]).concat.apply(e,[this.primaryColumns||[],this.groupAutoColumns||[],this.secondaryColumns||[]])},t.prototype.createStateItemFromColumn=function(e){var t=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,r=e.isPivotActive()?this.pivotColumns.indexOf(e):null,o=e.isValueActive()?e.getAggFunc():null,n=null!=e.getSort()?e.getSort():null,i=null!=e.getSortIndex()?e.getSortIndex():null,a=null!=e.getFlex()&&e.getFlex()>0?e.getFlex():null;return{colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:n,sortIndex:i,aggFunc:o,rowGroup:e.isRowGroupActive(),rowGroupIndex:t,pivot:e.isPivotActive(),pivotIndex:r,flex:a}},t.prototype.getColumnState=function(){if(Object(p.missing)(this.primaryColumns)||!this.isAlive())return[];var e=this.getPrimaryAndSecondaryAndAutoColumns().map(this.createStateItemFromColumn.bind(this));return this.orderColumnStateList(e),e},t.prototype.orderColumnStateList=function(e){var t=Object(f.convertToMap)(this.gridColumns.map((function(e,t){return[e.getColId(),t]})));e.sort((function(e,r){return(t.has(e.colId)?t.get(e.colId):-1)-(t.has(r.colId)?t.get(r.colId):-1)}))},t.prototype.resetColumnState=function(e){void 0===e&&(e="api");var t=this.getColumnsFromTree(this.primaryColumnTree),r=[],o=1e3,n=1e3,i=[];this.groupAutoColumns&&(i=i.concat(this.groupAutoColumns)),t&&(i=i.concat(t)),i.forEach((function(e){var t=function(e,t){return null!=e?e:null!=t?t:null},i=e.getColDef(),a=t(i.sort,i.initialSort),l=t(i.sortIndex,i.initialSortIndex),s=t(i.hide,i.initialHide),c=t(i.pinned,i.initialPinned),u=t(i.width,i.initialWidth),g=t(i.flex,i.initialFlex),d=t(i.rowGroupIndex,i.initialRowGroupIndex),h=t(i.rowGroup,i.initialRowGroup);null!=d||null!=h&&0!=h||(d=null,h=null);var f=t(i.pivotIndex,i.initialPivotIndex),v=t(i.pivot,i.initialPivot);null!=f||null!=v&&0!=v||(f=null,v=null);var m=t(i.aggFunc,i.initialAggFunc),y={colId:e.getColId(),sort:a,sortIndex:l,hide:s,pinned:c,width:u,flex:g,rowGroup:h,rowGroupIndex:d,pivot:v,pivotIndex:f,aggFunc:m};Object(p.missing)(d)&&h&&(y.rowGroupIndex=o++),Object(p.missing)(f)&&v&&(y.pivotIndex=n++),r.push(y)})),this.applyColumnState({state:r,applyOrder:!0},e)},t.prototype.applyColumnState=function(e,t){var r=this;if(Object(p.missingOrEmpty)(this.primaryColumns))return!1;if(e&&e.state&&!e.state.forEach)return console.warn("AG Grid: applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state."),!1;var o=function(o,n,i){var a=r.compareColumnStatesAndDispatchEvents(t);r.autoGroupsNeedBuilding=!0;var l=n.slice(),s={},c={},u=[],p=[],h=0,f=r.rowGroupColumns.slice(),v=r.pivotColumns.slice();o.forEach((function(o){var n=o.colId||"";if(n.startsWith(g.b))return u.push(o),void p.push(o);var a=i(n);a?(r.syncColumnWithStateItem(a,o,e.defaultState,s,c,!1,t),Object(d.removeFromArray)(l,a)):(p.push(o),h+=1)}));var m=function(o){return r.syncColumnWithStateItem(o,null,e.defaultState,s,c,!1,t)};l.forEach(m);var y=function(e,t,r,o){var n=e[r.getId()],i=e[o.getId()],a=null!=n,l=null!=i;if(a&&l)return n-i;if(a)return-1;if(l)return 1;var s=t.indexOf(r),c=t.indexOf(o),u=s>=0;return u&&c>=0?s-c:u?-1:1};r.rowGroupColumns.sort(y.bind(r,s,f)),r.pivotColumns.sort(y.bind(r,c,v)),r.updateGridColumns();var w=r.groupAutoColumns?r.groupAutoColumns.slice():[];return u.forEach((function(o){var n=r.getAutoColumn(o.colId);Object(d.removeFromArray)(w,n),r.syncColumnWithStateItem(n,o,e.defaultState,null,null,!0,t)})),w.forEach(m),r.applyOrderAfterApplyState(e),r.updateDisplayedColumns(t),r.dispatchEverythingChanged(t),a(),{unmatchedAndAutoStates:p,unmatchedCount:h}};this.columnAnimationService.start();var n=o(e.state||[],this.primaryColumns||[],(function(e){return r.getPrimaryColumn(e)})),i=n.unmatchedAndAutoStates,a=n.unmatchedCount;return(i.length>0||Object(p.exists)(e.defaultState))&&(a=o(i,this.secondaryColumns||[],(function(e){return r.getSecondaryColumn(e)})).unmatchedCount),this.columnAnimationService.finish(),0===a},t.prototype.applyOrderAfterApplyState=function(e){var t=this;if(e.applyOrder&&e.state){var r=[],o={};e.state.forEach((function(e){if(e.colId&&!o[e.colId]){var n=t.gridColumnsMap[e.colId];n&&(r.push(n),o[e.colId]=!0)}}));var n=0;this.gridColumns.forEach((function(e){var t=e.getColId();null!=o[t]||(t.startsWith(g.b)?Object(d.insertIntoArray)(r,e,n++):r.push(e))})),r=this.placeLockedColumns(r),this.doesMovePassMarryChildren(r)?this.gridColumns=r:console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.")}},t.prototype.compareColumnStatesAndDispatchEvents=function(e){var t=this,r={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},o=this.getColumnState(),n={};return o.forEach((function(e){n[e.colId]=e})),function(){var i=t.getPrimaryAndSecondaryAndAutoColumns(),l=function(r,o,n,i){var a=o.map(i),l=n.map(i);if(!Object(d.areEqual)(a,l)){var s={type:r,columns:n,column:1===n.length?n[0]:null,source:e};t.eventService.dispatchEvent(s)}},s=function(e){var t=[];return i.forEach((function(r){var o=n[r.getColId()];o&&e(o,r)&&t.push(r)})),t},c=function(e){return e.getColId()};l(a.a.EVENT_COLUMN_ROW_GROUP_CHANGED,r.rowGroupColumns,t.rowGroupColumns,c),l(a.a.EVENT_COLUMN_PIVOT_CHANGED,r.pivotColumns,t.pivotColumns,c);s((function(e,t){var r=null!=e.aggFunc,o=r!=t.isValueActive(),n=r&&e.aggFunc!=t.getAggFunc();return o||n})).length>0&&t.dispatchColumnChangedEvent(a.a.EVENT_COLUMN_VALUE_CHANGED,t.valueColumns,e);t.dispatchColumnResizedEvent(s((function(e,t){return e.width!=t.getActualWidth()})),!0,e);t.dispatchColumnPinnedEvent(s((function(e,t){return e.pinned!=t.getPinned()})),e);t.dispatchColumnVisibleEvent(s((function(e,t){return e.hide==t.isVisible()})),e);s((function(e,t){return e.sort!=t.getSort()||e.sortIndex!=t.getSortIndex()})).length>0&&t.sortController.dispatchSortChangedEvents(e),t.normaliseColumnMovedEventForColumnState(o,e)}},t.prototype.getCommonValue=function(e,t){if(e&&0!=e.length){for(var r=t(e[0]),o=1;o=u&&e.setActualWidth(h,a)}var f=l("sort").value1;void 0!==f&&("desc"===f||"asc"===f?e.setSort(f,a):e.setSort(void 0,a));var v=l("sortIndex").value1;if(void 0!==v&&e.setSortIndex(v),!i&&e.isPrimary()){var m=l("aggFunc").value1;void 0!==m&&("string"==typeof m?(e.setAggFunc(m),e.isValueActive()||(e.setValueActive(!0,a),this.valueColumns.push(e))):(Object(p.exists)(m)&&console.warn("AG Grid: stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON."),e.isValueActive()&&(e.setValueActive(!1,a),Object(d.removeFromArray)(this.valueColumns,e))));var y=l("rowGroup","rowGroupIndex"),w=y.value1,b=y.value2;void 0===w&&void 0===b||("number"==typeof b||w?(e.isRowGroupActive()||(e.setRowGroupActive(!0,a),this.rowGroupColumns.push(e)),o&&"number"==typeof b&&(o[e.getId()]=b)):e.isRowGroupActive()&&(e.setRowGroupActive(!1,a),Object(d.removeFromArray)(this.rowGroupColumns,e)));var C=l("pivot","pivotIndex"),S=C.value1,O=C.value2;void 0===S&&void 0===O||("number"==typeof O||S?(e.isPivotActive()||(e.setPivotActive(!0,a),this.pivotColumns.push(e)),n&&"number"==typeof O&&(n[e.getId()]=O)):e.isPivotActive()&&(e.setPivotActive(!1,a),Object(d.removeFromArray)(this.pivotColumns,e)))}}},t.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},t.prototype.getColumns=function(e,t){var r=[];return e&&e.forEach((function(e){var o=t(e);o&&r.push(o)})),r},t.prototype.getColumnWithValidation=function(e){if(null==e)return null;var t=this.getGridColumn(e);return t||console.warn("AG Grid: could not find column "+e),t},t.prototype.getPrimaryColumn=function(e){return this.primaryColumns?this.getColumn(e,this.primaryColumns,this.primaryColumnsMap):null},t.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns,this.gridColumnsMap)},t.prototype.getSecondaryColumn=function(e){return this.secondaryColumns?this.getColumn(e,this.secondaryColumns,this.secondaryColumnsMap):null},t.prototype.getColumn=function(e,t,r){if(!e)return null;if("string"==typeof e&&r[e])return r[e];for(var o=0;o=0:c?void 0!==d?d:!!(void 0!==f)&&(null!=f&&f>=0):t.indexOf(r)>=0)&&((c?null!=h||null!=f:null!=h)?l.push(r):s.push(r))}));var c=function(e){var t=o(e.getColDef()),r=n(e.getColDef());return null!=t?t:r};l.sort((function(e,t){var r=c(e),o=c(t);return r===o?0:r=0&&u.push(e)})),s.forEach((function(e){u.indexOf(e)<0&&u.push(e)})),t.forEach((function(e){u.indexOf(e)<0&&r(e,!1)})),u.forEach((function(e){t.indexOf(e)<0&&r(e,!0)})),u},t.prototype.extractPivotColumns=function(e,t){this.pivotColumns=this.extractColumns(t,this.pivotColumns,(function(t,r){return t.setPivotActive(r,e)}),(function(e){return e.pivotIndex}),(function(e){return e.initialPivotIndex}),(function(e){return e.pivot}),(function(e){return e.initialPivot}))},t.prototype.resetColumnGroupState=function(e){void 0===e&&(e="api");var t=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,(function(e){if(e instanceof s.a){var r=e.getColGroupDef(),o={groupId:e.getGroupId(),open:r?r.openByDefault:void 0};t.push(o)}})),this.setColumnGroupState(t,e)},t.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(t){t instanceof s.a&&e.push({groupId:t.getGroupId(),open:t.isExpanded()})})),e},t.prototype.setColumnGroupState=function(e,t){var r=this;void 0===t&&(t="api"),this.columnAnimationService.start();var o=[];e.forEach((function(e){var t=e.groupId,n=e.open,i=r.getProvidedColumnGroup(t);i&&i.isExpanded()!==n&&(r.logger.log("columnGroupOpened("+i.getGroupId()+","+n+")"),i.setExpanded(n),o.push(i))})),this.updateGroupsAndDisplayedColumns(t),this.setFirstRightAndLastLeftPinned(t),o.forEach((function(e){var t={type:a.a.EVENT_COLUMN_GROUP_OPENED,columnGroup:e};r.eventService.dispatchEvent(t)})),this.columnAnimationService.finish()},t.prototype.setColumnGroupOpened=function(e,t,r){var o;void 0===r&&(r="api"),o=e instanceof s.a?e.getId():e||"",this.setColumnGroupState([{groupId:o,open:t}],r)},t.prototype.getProvidedColumnGroup=function(e){"string"!=typeof e&&console.error("AG Grid: group key must be a string");var t=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(r){r instanceof s.a&&r.getId()===e&&(t=r)})),t},t.prototype.calculateColumnsForDisplay=function(){var e=this;return this.pivotMode&&Object(p.missing)(this.secondaryColumns)?this.gridColumns.filter((function(t){var r=e.groupAutoColumns&&Object(d.includes)(e.groupAutoColumns,t),o=e.valueColumns&&Object(d.includes)(e.valueColumns,t);return r||o})):this.gridColumns.filter((function(t){return e.groupAutoColumns&&Object(d.includes)(e.groupAutoColumns,t)||t.isVisible()}))},t.prototype.checkColSpanActiveInCols=function(e){var t=!1;return e.forEach((function(e){Object(p.exists)(e.getColDef().colSpan)&&(t=!0)})),t},t.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[],this.groupDisplayColumnsMap={};this.gridColumns.forEach((function(t){var r=t.getColDef(),o=r.showRowGroup;r&&Object(p.exists)(o)&&(e.groupDisplayColumns.push(t),"string"==typeof o?e.groupDisplayColumnsMap[o]=t:!0===o&&e.getRowGroupColumns().forEach((function(r){e.groupDisplayColumnsMap[r.getId()]=t})))}))},t.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},t.prototype.getGroupDisplayColumnForGroup=function(e){return this.groupDisplayColumnsMap[e]},t.prototype.updateDisplayedColumns=function(e){var t=this.calculateColumnsForDisplay();this.buildDisplayedTrees(t),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},t.prototype.isSecondaryColumnsPresent=function(){return Object(p.exists)(this.secondaryColumns)},t.prototype.setSecondaryColumns=function(e,t){var r=this;void 0===t&&(t="api");var o=e&&e.length>0;if(o||!Object(p.missing)(this.secondaryColumns)){if(o){this.processSecondaryColumnDefinitions(e);var n=this.columnFactory.createColumnTree(e,!1,this.secondaryBalancedTree||this.previousSecondaryColumns||void 0);this.destroyOldColumns(this.secondaryBalancedTree,n.columnTree),this.secondaryBalancedTree=n.columnTree,this.secondaryHeaderRowCount=n.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsMap={},this.secondaryColumns.forEach((function(e){return r.secondaryColumnsMap[e.getId()]=e})),this.previousSecondaryColumns=null}else this.previousSecondaryColumns=this.secondaryBalancedTree,this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsMap={};this.updateGridColumns(),this.updateDisplayedColumns(t)}},t.prototype.processSecondaryColumnDefinitions=function(e){var t=this.gridOptionsService.get("processPivotResultColDef")||this.gridOptionsService.get("processSecondaryColDef"),r=this.gridOptionsService.get("processPivotResultColGroupDef")||this.gridOptionsService.get("processSecondaryColGroupDef");if(t||r){var o=function(e){e.forEach((function(e){if(Object(p.exists)(e.children)){var n=e;r&&r(n),o(n.children)}else{t&&t(e)}}))};e&&o(e)}},t.prototype.updateGridColumns=function(){var e,t=this,r=this.gridBalancedTree;if(this.gridColsArePrimary?this.lastPrimaryOrder=this.gridColumns:this.lastSecondaryOrder=this.gridColumns,this.secondaryColumns&&this.secondaryBalancedTree){var o=this.secondaryColumns.every((function(e){return void 0!==t.gridColumnsMap[e.getColId()]}));this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1,o&&(e=this.lastSecondaryOrder)}else this.primaryColumns&&(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,e=this.lastPrimaryOrder);if(this.createGroupAutoColumnsIfNeeded()&&e){var n=Object(f.convertToMap)(this.groupAutoColumns.map((function(e){return[e,!0]})));e=e.filter((function(e){return!n.has(e)})),e=E(E([],O(this.groupAutoColumns)),O(e))}if(this.addAutoGroupToGridColumns(),this.orderGridColsLike(e),this.gridColumns=this.placeLockedColumns(this.gridColumns),this.calculateColumnsForGroupDisplay(),this.refreshQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach((function(e){return t.gridColumnsMap[e.getId()]=e})),this.setAutoHeightActive(),!Object(d.areEqual)(r,this.gridBalancedTree)){var i={type:a.a.EVENT_GRID_COLUMNS_CHANGED};this.eventService.dispatchEvent(i)}},t.prototype.setAutoHeightActive=function(){if((this.autoHeightActive=this.gridColumns.filter((function(e){return e.isAutoHeight()})).length>0,this.autoHeightActive)&&(this.autoHeightActiveAtLeastOnce=!0,!(this.gridOptionsService.isRowModelType("clientSide")||this.gridOptionsService.isRowModelType("serverSide")))){Object(v.doOnce)((function(){return console.warn("AG Grid - autoHeight columns only work with Client Side Row Model and Server Side Row Model.")}),"autoHeightActive.wrongRowModel")}},t.prototype.orderGridColsLike=function(e){if(!Object(p.missing)(e)){var t=Object(f.convertToMap)(e.map((function(e,t){return[e,t]}))),r=!0;if(this.gridColumns.forEach((function(e){t.has(e)&&(r=!1)})),!r){var o=Object(f.convertToMap)(this.gridColumns.map((function(e){return[e,!0]}))),n=e.filter((function(e){return o.has(e)})),i=Object(f.convertToMap)(n.map((function(e){return[e,!0]}))),a=this.gridColumns.filter((function(e){return!i.has(e)})),l=n.slice();a.forEach((function(e){var t=e.getOriginalParent();if(t){for(var r=[];!r.length&&t;){t.getLeafColumns().forEach((function(e){var t=l.indexOf(e)>=0,o=r.indexOf(e)<0;t&&o&&r.push(e)})),t=t.getOriginalParent()}if(r.length){var o=r.map((function(e){return l.indexOf(e)})),n=Math.max.apply(Math,E([],O(o)));Object(d.insertIntoArray)(l,e,n+1)}else l.push(e)}else l.push(e)})),this.gridColumns=l}}},t.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},t.prototype.refreshQuickFilterColumns=function(){var e,t=null!==(e=this.isPivotMode()?this.secondaryColumns:this.primaryColumns)&&void 0!==e?e:[];this.groupAutoColumns&&(t=t.concat(this.groupAutoColumns)),this.columnsForQuickFilter=this.gridOptionsService.is("includeHiddenColumnsInQuickFilter")?t:t.filter((function(e){return e.isVisible()||e.isRowGroupActive()}))},t.prototype.placeLockedColumns=function(e){var t=[],r=[],o=[];return e.forEach((function(e){var n=e.getColDef().lockPosition;"right"===n?o.push(e):"left"===n||!0===n?t.push(e):r.push(e)})),E(E(E([],O(t)),O(r)),O(o))},t.prototype.addAutoGroupToGridColumns=function(){if(Object(p.missing)(this.groupAutoColumns))return this.destroyOldColumns(this.groupAutoColsBalancedTree),void(this.groupAutoColsBalancedTree=null);this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var e=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.destroyOldColumns(this.groupAutoColsBalancedTree,e),this.groupAutoColsBalancedTree=e,this.gridBalancedTree=e.concat(this.gridBalancedTree)},t.prototype.clearDisplayedAndViewportColumns=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.viewportColumns=[],this.headerViewportColumns=[],this.viewportColumnsHash=""},t.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(e),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths();var t={type:a.a.EVENT_DISPLAYED_COLUMNS_CHANGED};this.eventService.dispatchEvent(t)},t.prototype.deriveDisplayedColumns=function(e){this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft,this.displayedColumnsLeft),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre,this.displayedColumnsCenter),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight,this.displayedColumnsRight),this.joinDisplayedColumns(),this.setLeftValues(e),this.displayedAutoHeightCols=this.displayedColumns.filter((function(e){return e.isAutoHeight()}))},t.prototype.isAutoRowHeightActive=function(){return this.autoHeightActive},t.prototype.wasAutoRowHeightEverActive=function(){return this.autoHeightActiveAtLeastOnce},t.prototype.joinDisplayedColumns=function(){this.gridOptionsService.is("enableRtl")?this.displayedColumns=this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumns=this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)},t.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},t.prototype.setLeftValuesOfColumns=function(e){var t=this;if(this.primaryColumns){var r=this.primaryColumns.slice(0),o=this.gridOptionsService.is("enableRtl");[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].forEach((function(n){if(o){var i=t.getWidthOfColsInList(n);n.forEach((function(t){i-=t.getActualWidth(),t.setLeft(i,e)}))}else{var a=0;n.forEach((function(t){t.setLeft(a,e),a+=t.getActualWidth()}))}Object(d.removeAllFromArray)(r,n)})),r.forEach((function(t){t.setLeft(null,e)}))}},t.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach((function(e){e.forEach((function(e){e instanceof n.a&&e.checkLeft()}))}))},t.prototype.derivedDisplayedColumnsFromDisplayedTree=function(e,t){t.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,(function(e){e instanceof i.a&&t.push(e)}))},t.prototype.extractViewportColumns=function(){this.suppressColumnVirtualisation?(this.viewportColumnsCenter=this.displayedColumnsCenter,this.headerViewportColumnsCenter=this.displayedColumnsCenter):(this.viewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInRowViewport.bind(this)),this.headerViewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInHeaderViewport.bind(this))),this.viewportColumns=this.viewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight),this.headerViewportColumns=this.headerViewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight)},t.prototype.getVirtualHeaderGroupRow=function(e,t){var r;switch(e){case"left":r=this.viewportRowLeft[t];break;case"right":r=this.viewportRowRight[t];break;default:r=this.viewportRowCenter[t]}return Object(p.missing)(r)&&(r=[]),r},t.prototype.calculateHeaderRows=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};var e={};this.headerViewportColumns.forEach((function(t){return e[t.getId()]=!0}));var t=function(r,o,n){for(var a=!1,l=0;lo;return e.getFlex()&&r},i=this.displayedColumnsCenter.filter((function(e){return!n(e)})),a=this.displayedColumnsCenter.filter((function(e){return n(e)})),l=[];if(!a.length)return[];var s,c=[];e:for(;;){var u=a.reduce((function(e,t){return e+t.getFlex()}),0);s=this.flexViewportWidth-this.getWidthOfColsInList(i);for(var g=0;gy&&(v=y),v){h.setActualWidth(v,r),Object(d.removeFromArray)(a,h),l.push(h),i.push(h);continue e}c[g]=Math.round(f)}break}var w=s;return a.forEach((function(e,t){e.setActualWidth(Math.min(c[t],w),r),l.push(e),w-=c[t]})),e.skipSetLeft||this.setLeftValues(r),e.updateBodyWidths&&this.updateBodyWidths(),e.fireResizedEvent&&this.dispatchColumnResizedEvent(l,!0,r,a),a},t.prototype.sizeColumnsToFit=function(e,t,r,o){var n,i,a,l,s;void 0===t&&(t="sizeColumnsToFit");var c={};o&&(null===(n=null==o?void 0:o.columnLimits)||void 0===n||n.forEach((function(e){var t=e.key,r=C(e,["key"]);c["string"==typeof t?t:t.getColId()]=r})));var u=this.getAllDisplayedColumns(),g=e===this.getWidthOfColsInList(u);if(!(e<=0||!u.length||g)){var h=[],f=[];u.forEach((function(e){!0===e.getColDef().suppressSizeToFit?f.push(e):h.push(e)}));var v=h.slice(0),m=!1,y=function(e){Object(d.removeFromArray)(h,e),f.push(e)};for(h.forEach((function(e){return e.resetActualWidth(t)}));!m;){m=!0;var w=e-this.getWidthOfColsInList(f);if(w<=0)h.forEach((function(e){var r,n,i=null!==(n=null===(r=null==c?void 0:c[e.getId()])||void 0===r?void 0:r.minWidth)&&void 0!==n?n:null==o?void 0:o.defaultMinWidth;"number"!=typeof i?e.setMinimum(t):e.setActualWidth(i)}));else for(var b=w/this.getWidthOfColsInList(h),S=w,O=h.length-1;O>=0;O--){var E=h[O],R=null==c?void 0:c[E.getId()],T=null!==(i=null==R?void 0:R.minWidth)&&void 0!==i?i:null==o?void 0:o.defaultMinWidth,x=null!==(a=null==R?void 0:R.maxWidth)&&void 0!==a?a:null==o?void 0:o.defaultMaxWidth,A=null!==(l=E.getMinWidth())&&void 0!==l?l:0,D=null!==(s=E.getMaxWidth())&&void 0!==s?s:Number.MAX_VALUE,P="number"==typeof T&&T>A?T:E.getMinWidth(),M="number"==typeof x&&xM?(N=M,y(E),m=!1):0===O&&(N=S),E.setActualWidth(N,t,!0),S-=N}}v.forEach((function(e){e.fireColumnWidthChangedEvent(t)})),this.setLeftValues(t),this.updateBodyWidths(),r||this.dispatchColumnResizedEvent(v,!0,t)}},t.prototype.buildDisplayedTrees=function(e){var t=[],r=[],o=[];e.forEach((function(e){switch(e.getPinned()){case"left":t.push(e);break;case"right":r.push(e);break;default:o.push(e)}}));var n=new c.a;this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(t,this.gridBalancedTree,n,"left",this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(r,this.gridBalancedTree,n,"right",this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(o,this.gridBalancedTree,n,null,this.displayedTreeCentre),this.updateDisplayedMap()},t.prototype.updateDisplayedMap=function(){var e=this;this.displayedColumnsAndGroupsMap={};var t=function(t){e.displayedColumnsAndGroupsMap[t.getUniqueId()]=t};this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre,t),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft,t),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight,t)},t.prototype.isDisplayed=function(e){return this.displayedColumnsAndGroupsMap[e.getUniqueId()]===e},t.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedTrees();this.columnUtils.depthFirstAllColumnTreeSearch(e,(function(e){e instanceof n.a&&e.calculateDisplayedColumns()}))},t.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},t.prototype.createGroupAutoColumnsIfNeeded=function(){var e=this.forceRecreateAutoGroups;if(this.forceRecreateAutoGroups=!1,!this.autoGroupsNeedBuilding)return!1;this.autoGroupsNeedBuilding=!1;var t=this.gridOptionsService.isGroupUseEntireRow(this.pivotMode),r=this.pivotMode?this.gridOptionsService.is("pivotSuppressAutoColumn"):this.isGroupSuppressAutoColumn();if((this.rowGroupColumns.length>0||this.usingTreeData)&&!r&&!t){var o=this.groupAutoColumns||[],n=this.autoGroupColService.createAutoGroupColumns(o,this.rowGroupColumns);if(!this.autoColsEqual(n,this.groupAutoColumns)||e)return this.groupAutoColumns=n,!0}else this.groupAutoColumns=null;return!1},t.prototype.isGroupSuppressAutoColumn=function(){var e=this.gridOptionsService.get("groupDisplayType");if(!!e&&Object(m.c)("custom",e))return!0;var t=this.gridOptionsService.get("treeDataDisplayType");return!!t&&Object(m.d)("custom",t)},t.prototype.autoColsEqual=function(e,t){return Object(d.areEqual)(e,t,(function(e,t){return e.getColId()===t.getColId()}))},t.prototype.getWidthOfColsInList=function(e){return e.reduce((function(e,t){return e+t.getActualWidth()}),0)},t.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},t.prototype.hasFloatingFilters=function(){return!!this.gridColumns&&this.gridColumns.some((function(e){return e.getColDef().floatingFilter}))},t.prototype.getFirstDisplayedColumn=function(){var e=this.gridOptionsService.is("enableRtl"),t=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];e&&t.reverse();for(var r=0;r=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.calculateColMinWidth=function(e){return null!=e.minWidth?e.minWidth:this.environment.getMinColWidth()},t.prototype.calculateColMaxWidth=function(e){return null!=e.maxWidth?e.maxWidth:Number.MAX_SAFE_INTEGER},t.prototype.calculateColInitialWidth=function(e){var t,r=this.calculateColMinWidth(e),o=this.calculateColMaxWidth(e),n=Object(s.attrToNumber)(e.width),i=Object(s.attrToNumber)(e.initialWidth);return t=null!=n?n:null!=i?i:200,Math.max(Math.min(t,o),r)},t.prototype.getOriginalPathForColumn=function(e,t){var r=[],o=!1,n=function(t,a){for(var l=0;l=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.createDisplayedGroups=function(e,t,r,o,n){var i,a,l=this,c=[],u=this.mapOldGroupsById(n);return e.forEach((function(e){for(var n=l.getOriginalPathForColumn(t,e),g=[],d=!a,p=0;p=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.componentsMappedByName={},t}return a(t,e),t.prototype.setupComponents=function(e){var t=this;e&&e.forEach((function(e){return t.addComponent(e)}))},t.prototype.addComponent=function(e){var t=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[t]=e.componentClass},t.prototype.getComponentClass=function(e){return this.componentsMappedByName[e]},t=l([Object(n.b)("agStackComponentsRegistry")],t)}(i.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var o=function(){function e(e){this.cssClassStates={},this.getGui=e}return e.prototype.addCssClass=function(e){var t=this,r=(e||"").split(" ");if(r.length>1)r.forEach((function(e){return t.addCssClass(e)}));else if(!0!==this.cssClassStates[e]&&e.length){var o=this.getGui();o&&o.classList.add(e),this.cssClassStates[e]=!0}},e.prototype.removeCssClass=function(e){var t=this,r=(e||"").split(" ");if(r.length>1)r.forEach((function(e){return t.removeCssClass(e)}));else if(!1!==this.cssClassStates[e]&&e.length){var o=this.getGui();o&&o.classList.remove(e),this.cssClassStates[e]=!1}},e.prototype.containsCssClass=function(e){var t=this.getGui();return!!t&&t.classList.contains(e)},e.prototype.addOrRemoveCssClass=function(e,t){var r=this;if(e){if(e.indexOf(" ")>=0){var o=(e||"").split(" ");if(o.length>1)return void o.forEach((function(e){return r.addOrRemoveCssClass(e,t)}))}if(this.cssClassStates[e]!==t&&e.length){var n=this.getGui();n&&n.classList.toggle(e,t),this.cssClassStates[e]=t}}},e}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var o,n=r(41),i=r(8),a=r(9),l=r(18),s=r(1),c=r(2),u=r(7),g=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},p=function(e){function t(t,r,o,n){var i=e.call(this,t,'',r)||this;return i.pickerIcon=o,i.isPickerDisplayed=!1,i.isDestroyingPicker=!1,i.skipClick=!1,i}return g(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this);var r="ag-"+this.getCompId()+"-display";this.eDisplayField.setAttribute("id",r),Object(a.setAriaDescribedBy)(this.eWrapper,r);var o=function(){t.skipClick?t.skipClick=!1:t.isDisabled()||(t.pickerComponent=t.showPicker())},n=this.getGui();if(this.addManagedListener(n,"mousedown",(function(e){!t.skipClick&&t.pickerComponent&&t.pickerComponent.isAlive()&&Object(c.isVisible)(t.pickerComponent.getGui())&&n.contains(e.target)&&(t.skipClick=!0)})),this.addManagedListener(n,"keydown",(function(e){switch(e.key){case u.a.UP:case u.a.DOWN:case u.a.ENTER:case u.a.SPACE:o();case u.a.ESCAPE:t.isPickerDisplayed&&e.preventDefault()}})),this.addManagedListener(this.eWrapper,"click",o),this.addManagedListener(this.eLabel,"click",o),this.pickerIcon){var i=Object(l.createIconNoSpan)(this.pickerIcon,this.gridOptionsService);i&&this.eIcon.appendChild(i)}},t.prototype.refreshLabel=function(){Object(s.exists)(this.getLabel())?Object(a.setAriaLabelledBy)(this.eWrapper,this.getLabelId()):this.eWrapper.removeAttribute("aria-labelledby"),e.prototype.refreshLabel.call(this)},t.prototype.setAriaLabel=function(e){return Object(a.setAriaLabel)(this.eWrapper,e),this},t.prototype.setInputWidth=function(e){return Object(c.setElementWidth)(this.eWrapper,e),this},t.prototype.getFocusableElement=function(){return this.eWrapper},d([Object(i.b)("eLabel")],t.prototype,"eLabel",void 0),d([Object(i.b)("eWrapper")],t.prototype,"eWrapper",void 0),d([Object(i.b)("eDisplayField")],t.prototype,"eDisplayField",void 0),d([Object(i.b)("eIcon")],t.prototype,"eIcon",void 0),t}(n.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var o,n=r(58),i=r(91),a=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.init=function(t){e.prototype.init.call(this,t),this.filterModelFormatter=new n.b(this.localeService,this.optionsFactory)},t.prototype.getDefaultFilterOptions=function(){return n.a.DEFAULT_FILTER_OPTIONS},t.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},t.prototype.createFloatingFilterInputService=function(e){return this.createManagedBean(new i.a({ariaLabel:e}))},t}(i.b)},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var o,n=r(39),i=r(8),a=r(1),l=r(7),s=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},u=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return s(t,e),t.prototype.init=function(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.eTextArea.setMaxLength(e.maxLength||200).setCols(e.cols||60).setRows(e.rows||10),Object(a.exists)(e.value,!0)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},t.prototype.onKeyDown=function(e){var t=e.key;(t===l.a.LEFT||t===l.a.UP||t===l.a.RIGHT||t===l.a.DOWN||e.shiftKey&&t===l.a.ENTER)&&e.stopPropagation()},t.prototype.afterGuiAttached=function(){var e=this.localeService.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},t.prototype.getValue=function(){var e=this.eTextArea.getValue();return Object(a.exists)(e)||Object(a.exists)(this.params.value)?this.params.parseValue(e):this.params.value},t.TEMPLATE='
\n \n
',c([Object(i.b)("eTextArea")],t.prototype,"eTextArea",void 0),t}(n.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var o,n=r(63),i=r(0),a=r(39),l=r(8),s=r(1),c=r(7),u=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),g=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},d=function(e){function t(){var t=e.call(this,'
')||this;return t.startedByEnter=!1,t}return u(t,e),t.prototype.init=function(e){var t=this;if(this.focusAfterAttached=e.cellStartedEdit,Object(s.missing)(e.values))console.warn("AG Grid: no values found for select cellEditor");else{this.startedByEnter=null!=e.eventKey&&e.eventKey===c.a.ENTER;var r=!1;e.values.forEach((function(o){var n={value:o},i=t.valueFormatterService.formatValue(e.column,null,o),a=null!=i;n.text=a?i:o,t.eSelect.addOption(n),r=r||e.value===o})),r?this.eSelect.setValue(e.value,!0):e.values.length&&this.eSelect.setValue(e.values[0],!0),"fullRow"!==this.gridOptionsService.get("editType")&&this.addManagedListener(this.eSelect,n.a.EVENT_ITEM_SELECTED,(function(){return e.stopEditing()}))}},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&this.eSelect.showPicker()},t.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},t.prototype.getValue=function(){return this.eSelect.getValue()},t.prototype.isPopup=function(){return!1},g([Object(i.a)("valueFormatterService")],t.prototype,"valueFormatterService",void 0),g([Object(l.b)("eSelect")],t.prototype,"eSelect",void 0),t}(a.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var o,n=r(0),i=r(12),a=r(1),l=r(2),s=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},u=function(e){function t(){var r=e.call(this,t.TEMPLATE)||this;return r.refreshCount=0,r}return s(t,e),t.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e)},t.prototype.showDelta=function(e,t){var r=Math.abs(t),o=e.formatValue(r),n=Object(a.exists)(o)?o:r,i=t>=0;this.eDelta.innerHTML=i?"↑"+n:"↓"+n,this.eDelta.classList.toggle("ag-value-change-delta-up",i),this.eDelta.classList.toggle("ag-value-change-delta-down",!i)},t.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var t=this.refreshCount;window.setTimeout((function(){t===e.refreshCount&&e.hideDeltaValue()}),2e3)},t.prototype.hideDeltaValue=function(){this.eValue.classList.remove("ag-value-change-value-highlight"),Object(l.clearElement)(this.eDelta)},t.prototype.refresh=function(e){var t=e.value;if(t===this.lastValue)return!1;if(Object(a.exists)(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:Object(a.exists)(e.value)?this.eValue.innerHTML=t:Object(l.clearElement)(this.eValue),this.filterManager.isSuppressFlashingCellsBecauseFiltering())return!1;if("number"==typeof t&&"number"==typeof this.lastValue){var r=t-this.lastValue;this.showDelta(e,r)}return this.lastValue&&this.eValue.classList.add("ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=t,!0},t.TEMPLATE='',c([Object(n.a)("filterManager")],t.prototype,"filterManager",void 0),t}(i.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var o,n=r(0),i=r(12),a=r(2),l=r(1),s=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},u=function(e){function t(){var r=e.call(this,t.TEMPLATE)||this;return r.refreshCount=0,r.eCurrent=r.queryForHtmlElement(".ag-value-slide-current"),r}return s(t,e),t.prototype.init=function(e){this.refresh(e)},t.prototype.addSlideAnimation=function(){var e=this;this.refreshCount++;var t=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=Object(a.loadTemplate)(''),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout((function(){t===e.refreshCount&&e.ePrevious.classList.add("ag-value-slide-out-end")}),50),window.setTimeout((function(){t===e.refreshCount&&(e.getGui().removeChild(e.ePrevious),e.ePrevious=null)}),3e3)},t.prototype.refresh=function(e){var t=e.value;return Object(l.missing)(t)&&(t=""),t!==this.lastValue&&(!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&(this.addSlideAnimation(),this.lastValue=t,Object(l.exists)(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:Object(l.exists)(e.value)?this.eCurrent.innerHTML=t:Object(a.clearElement)(this.eCurrent),!0))},t.TEMPLATE='\n \n ',c([Object(n.a)("filterManager")],t.prototype,"filterManager",void 0),t}(i.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return y}));var o,n=r(7),i=r(5),a=r(0),l=r(19),s=r(9),c=r(23),u=r(1),g=r(18),d=r(14),p=r(76),h=r(72),f=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),v=function(){return(v=Object.assign||function(e){for(var t,r=1,o=arguments.length;r=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.init=function(e,t,r,o,n,i,a){this.params=a,this.eGui=t,this.eCheckbox=r,this.eExpanded=o,this.eContracted=n,this.comp=e,this.compClass=i;var l=this.isTopLevelFooter(),s=this.isEmbeddedRowMismatch(),c=null==a.value&&!a.node.master,u=!1;if(this.gridOptionsService.is("groupIncludeFooter")&&this.gridOptionsService.is("groupHideOpenParents")){var g=a.node;if(g.footer)u=(a.colDef&&a.colDef.showRowGroup)!==(g.rowGroupColumn&&g.rowGroupColumn.getColId())}this.cellIsBlank=!l&&(s||c&&!a.node.master||u),this.cellIsBlank||(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),this.addFullWidthRowDraggerIfNeeded(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded())},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.expandListener=null},t.prototype.refreshAriaExpanded=function(){var e=this.params,t=e.node,r=e.eParentOfValue;if(this.expandListener&&(this.expandListener=this.expandListener()),this.isExpandable()){var o=function(){Object(s.setAriaExpanded)(r,!!t.expanded)};this.expandListener=this.addManagedListener(t,l.a.EVENT_EXPANDED_CHANGED,o)||null,o()}else Object(s.removeAriaExpanded)(r)},t.prototype.isTopLevelFooter=function(){if(!this.gridOptionsService.is("groupIncludeTotalFooter"))return!1;if(null!=this.params.value||-1!=this.params.node.level)return!1;var e=this.params.colDef;if(null==e)return!0;if(!0===e.showRowGroup)return!0;var t=this.columnModel.getRowGroupColumns();return!t||0===t.length||t[0].getId()===e.showRowGroup},t.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsService.is("embedFullWidthRows"))return!1;var e="left"===this.params.pinned,t="right"===this.params.pinned,r=!e&&!t;return this.gridOptionsService.is("enableRtl")?this.columnModel.isPinningLeft()?!t:!r:this.columnModel.isPinningLeft()?!e:!r},t.prototype.findDisplayedGroupNode=function(){var e=this.params.column,t=this.params.node;if(this.showingValueForOpenedParent)for(var r=t.parent;null!=r;){if(r.rowGroupColumn&&e.isRowGroupDisplayed(r.rowGroupColumn.getId())){this.displayedGroupNode=r;break}r=r.parent}Object(u.missing)(this.displayedGroupNode)&&(this.displayedGroupNode=t)},t.prototype.setupShowingValueForOpenedParent=function(){var e=this.params.node,t=this.params.column;if(this.gridOptionsService.is("groupHideOpenParents"))if(e.groupData){if(null!=e.rowGroupColumn){var r=e.rowGroupColumn.getId();if(t.isRowGroupDisplayed(r))return void(this.showingValueForOpenedParent=!1)}var o=null!=e.groupData[t.getId()];this.showingValueForOpenedParent=o}else this.showingValueForOpenedParent=!1;else this.showingValueForOpenedParent=!1},t.prototype.addValueElement=function(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())},t.prototype.addGroupValue=function(){var e=this.adjustParamsWithDetailsFromRelatedColumn(),t=this.getInnerCompDetails(e),r=e.valueFormatted,o=e.value,n=r;null==n&&(n=""===o&&this.params.node.group?this.localeService.getLocaleTextFunc()("blanks","(Blanks)"):null!=o?o:null);this.comp.setInnerRenderer(t,n)},t.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var e=this.displayedGroupNode.rowGroupColumn,t=this.params.column;if(!e)return this.params;if(null!=t&&!t.isRowGroupDisplayed(e.getId()))return this.params;var r=this.params,o=this.params,n=o.value,i=o.node,a=this.valueFormatterService.formatValue(e,i,n);return v(v({},r),{valueFormatted:a})},t.prototype.addFooterValue=function(){var e=this.params.footerValueGetter,t="";if(e){var r=Object(d.cloneObject)(this.params);r.value=this.params.value,"function"==typeof e?t=e(r):"string"==typeof e?t=this.expressionService.evaluate(e,r):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else t="Total "+(null!=this.params.value?this.params.value:"");var o=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(o,t)},t.prototype.getInnerCompDetails=function(e){var t=this;if(e.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptionsService.get("groupRowRendererParams"),e);var r=this.userComponentFactory.getInnerRendererDetails(e,e),o=function(e){return e&&e.componentClass==t.compClass};if(r&&!o(r))return r;var n=this.displayedGroupNode.rowGroupColumn,i=n?n.getColDef():void 0;if(i){var a=this.userComponentFactory.getCellRendererDetails(i,e);if(a&&!o(a))return a;if(o(a)&&i.cellRendererParams&&i.cellRendererParams.innerRenderer)return this.userComponentFactory.getInnerRendererDetails(i.cellRendererParams,e)}},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,l.a.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},t.prototype.updateChildCount=function(){var e=this.displayedGroupNode.allChildrenCount,t=this.isShowRowGroupForThisRow()&&null!=e&&e>=0?"("+e+")":"";this.comp.setChildCount(t)},t.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsService.isTreeData())return!0;var e=this.displayedGroupNode.rowGroupColumn;if(!e)return!1;var t=this.params.column;return null==t||t.isRowGroupDisplayed(e.getId())},t.prototype.addExpandAndContract=function(){var e,t=this.params,r=Object(g.createIconNoSpan)("groupExpanded",this.gridOptionsService,null),o=Object(g.createIconNoSpan)("groupContracted",this.gridOptionsService,null);r&&this.eExpanded.appendChild(r),o&&this.eContracted.appendChild(o);var n=t.eGridCell;(null===(e=this.params.column)||void 0===e?void 0:e.isCellEditable(t.node))&&this.gridOptionsService.is("enableGroupEdit")||!this.isExpandable()||t.suppressDoubleClickExpand||this.addManagedListener(n,"dblclick",this.onCellDblClicked.bind(this)),this.addManagedListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addManagedListener(n,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(t.node,l.a.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var i=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,l.a.EVENT_ALL_CHILDREN_COUNT_CHANGED,i),this.addManagedListener(this.displayedGroupNode,l.a.EVENT_MASTER_CHANGED,i),this.addManagedListener(this.displayedGroupNode,l.a.EVENT_GROUP_CHANGED,i),this.addManagedListener(this.displayedGroupNode,l.a.EVENT_HAS_CHILDREN_CHANGED,i)},t.prototype.onExpandClicked=function(e){Object(c.isStopPropagationForAgGrid)(e)||(Object(c.stopPropagationForAgGrid)(e),this.onExpandOrContract(e))},t.prototype.onExpandOrContract=function(e){var t=this.displayedGroupNode,r=!t.expanded;!r&&t.sticky&&this.scrollToStickyNode(t),t.setExpanded(r,e)},t.prototype.scrollToStickyNode=function(e){this.ctrlsService.getGridBodyCtrl().getScrollFeature().setVerticalScrollPosition(e.rowTop-e.stickyRowTop)},t.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var e=this.displayedGroupNode,t=this.columnModel.isPivotMode()&&e.leafGroup;if(!(e.isExpandable()&&!e.footer&&!t))return!1;var r=this.params.column;return null==r||"string"!=typeof r.getColDef().showRowGroup||this.isShowRowGroupForThisRow()},t.prototype.showExpandAndContractIcons=function(){var e=this.params,t=this.displayedGroupNode,r=this.columnModel,o=e.node,n=this.isExpandable();if(n){var i=!!this.showingValueForOpenedParent||o.expanded;this.comp.setExpandedDisplayed(i),this.comp.setContractedDisplayed(!i)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var a=r.isPivotMode(),l=a&&t.leafGroup,s=n&&!l,c=o.footer&&-1===o.level;this.comp.addOrRemoveCssClass("ag-cell-expandable",s),this.comp.addOrRemoveCssClass("ag-row-group",s),a?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",l):c||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!s)},t.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()},t.prototype.setupIndent=function(){var e=this.params.node;this.params.suppressPadding||(this.addManagedListener(e,l.a.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.setIndent=function(){if(!this.gridOptionsService.is("groupHideOpenParents")){var e=this.params,t=e.node,r=!!e.colDef,o=this.gridOptionsService.isTreeData(),n=!r||o||!0===e.colDef.showRowGroup?t.uiLevel:0;this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+n,this.comp.addOrRemoveCssClass(this.indentClass,!0)}},t.prototype.addFullWidthRowDraggerIfNeeded=function(){var e=this;if(this.params.fullWidth&&this.params.rowDrag){var t=new h.a((function(){return e.params.value}),this.params.node);this.createManagedBean(t,this.context),this.eGui.insertAdjacentElement("afterbegin",t.getGui())}},t.prototype.isUserWantsSelected=function(){var e=this.params.checkbox;return"function"==typeof e||!0===e},t.prototype.addCheckboxIfNeeded=function(){var e=this,t=this.displayedGroupNode,r=this.isUserWantsSelected()&&!t.footer&&!t.rowPinned&&!t.detail;if(r){var o=new p.a;this.getContext().createBean(o),o.init({rowNode:t,column:this.params.column,overrides:{isVisible:this.params.checkbox,callbackParams:this.params,removeHidden:!0}}),this.eCheckbox.appendChild(o.getGui()),this.addDestroyFunc((function(){return e.getContext().destroyBean(o)}))}this.comp.setCheckboxVisible(r)},t.prototype.onKeyDown=function(e){e.key!==n.a.ENTER||this.params.suppressEnterExpand||(this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract(e))},t.prototype.onCellDblClicked=function(e){Object(c.isStopPropagationForAgGrid)(e)||(Object(c.isElementInEventPath)(this.eExpanded,e)||Object(c.isElementInEventPath)(this.eContracted,e)||this.onExpandOrContract(e))},m([Object(a.a)("expressionService")],t.prototype,"expressionService",void 0),m([Object(a.a)("valueFormatterService")],t.prototype,"valueFormatterService",void 0),m([Object(a.a)("columnModel")],t.prototype,"columnModel",void 0),m([Object(a.a)("userComponentFactory")],t.prototype,"userComponentFactory",void 0),m([Object(a.a)("ctrlsService")],t.prototype,"ctrlsService",void 0),t}(i.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var o,n=r(66),i=r(1),a=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(){function e(){}return e.prototype.getTemplate=function(){return''},e.prototype.init=function(e,t){this.eInput=e,this.params=t,null!=t.max&&e.setMax(t.max),null!=t.min&&e.setMin(t.min),null!=t.precision&&e.setPrecision(t.precision),null!=t.step&&e.setStep(t.step),t.showStepperButtons&&e.getInputElement().classList.add("ag-number-field-input-stepper")},e.prototype.getValue=function(){var e=this.eInput.getValue();if(!Object(i.exists)(e)&&!Object(i.exists)(this.params.value))return this.params.value;var t=this.params.parseValue(e);if(null==t)return t;if("string"==typeof t){if(""===t)return null;t=Number(t)}return isNaN(t)?null:t},e.prototype.getStartValue=function(){return this.params.value},e}(),s=function(e){function t(){return e.call(this,new l)||this}return a(t,e),t}(n.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var o,n=r(24),i=r(66),a=r(1),l=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(){function e(){}return e.prototype.getTemplate=function(){return''},e.prototype.init=function(e,t){this.eInput=e,this.params=t,null!=t.min&&e.setMin(t.min),null!=t.max&&e.setMax(t.max),null!=t.step&&e.setStep(t.step)},e.prototype.getValue=function(){var e=this.eInput.getDate();return Object(a.exists)(e)||Object(a.exists)(this.params.value)?null!=e?e:null:this.params.value},e.prototype.getStartValue=function(){var e=this.params.value;if(e instanceof Date)return Object(n.serialiseDate)(e,!1)},e}(),c=function(e){function t(){return e.call(this,new s)||this}return l(t,e),t}(i.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return g}));var o,n=r(0),i=r(24),a=r(66),l=r(1),s=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},u=function(){function e(e){this.getDataTypeService=e}return e.prototype.getTemplate=function(){return''},e.prototype.init=function(e,t){this.eInput=e,this.params=t,null!=t.min&&e.setMin(t.min),null!=t.max&&e.setMax(t.max),null!=t.step&&e.setStep(t.step)},e.prototype.getValue=function(){var e=this.formatDate(this.eInput.getDate());return Object(l.exists)(e)||Object(l.exists)(this.params.value)?this.params.parseValue(null!=e?e:""):this.params.value},e.prototype.getStartValue=function(){var e,t;return Object(i.serialiseDate)(null!==(t=this.parseDate(null!==(e=this.params.value)&&void 0!==e?e:void 0))&&void 0!==t?t:null,!1)},e.prototype.parseDate=function(e){return this.getDataTypeService().getDateParserFunction()(e)},e.prototype.formatDate=function(e){return this.getDataTypeService().getDateFormatterFunction()(e)},e}(),g=function(e){function t(){var t=e.call(this,new u((function(){return t.dataTypeService})))||this;return t}return s(t,e),c([Object(n.a)("dataTypeService")],t.prototype,"dataTypeService",void 0),t}(a.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var o,n=r(12),i=r(8),a=r(23),l=r(3),s=r(7),c=r(9),u=r(56),g=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},p=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return g(t,e),t.prototype.init=function(e){var t=this;this.params=e,this.updateCheckbox(e),this.eCheckbox.getInputElement().setAttribute("tabindex","-1"),this.addManagedListener(this.eCheckbox.getInputElement(),"click",(function(e){if(Object(a.stopPropagationForAgGrid)(e),!t.eCheckbox.isDisabled()){var r=t.eCheckbox.getValue();t.onCheckboxChanged(r)}})),this.addManagedListener(this.eCheckbox.getInputElement(),"dblclick",(function(e){Object(a.stopPropagationForAgGrid)(e)}));var r=this.gridOptionsService.getDocument();this.addManagedListener(this.params.eGridCell,"keydown",(function(e){if(e.key===s.a.SPACE&&!t.eCheckbox.isDisabled()){t.params.eGridCell===r.activeElement&&t.eCheckbox.toggle();var o=t.eCheckbox.getValue();t.onCheckboxChanged(o),e.preventDefault()}}))},t.prototype.refresh=function(e){return this.params=e,this.updateCheckbox(e),!0},t.prototype.updateCheckbox=function(e){var t,r,o,n,i=!0;if(e.node.group&&e.column){var a=e.column.getColId();a.startsWith(u.b)?n=null==e.value||""===e.value?void 0:"true"===e.value:e.node.aggData&&void 0!==e.node.aggData[a]?n=null!==(t=e.value)&&void 0!==t?t:void 0:i=!1}else n=null!==(r=e.value)&&void 0!==r?r:void 0;if(i){this.eCheckbox.setValue(n);var l=null!=e.disabled?e.disabled:!(null===(o=e.column)||void 0===o?void 0:o.isCellEditable(e.node));this.eCheckbox.setDisabled(l);var s=this.localeService.getLocaleTextFunc(),g=Object(c.getAriaCheckboxStateName)(s,n),d=l?g:s("ariaToggleCellValue","Press SPACE to toggle cell value")+" ("+g+")";this.eCheckbox.setInputAriaLabel(d)}else this.eCheckbox.setDisplayed(!1)},t.prototype.onCheckboxChanged=function(e){var t=this.params,r=t.column,o=t.node,n=t.rowIndex,i=t.value,a={type:l.a.EVENT_CELL_EDITING_STARTED,column:r,colDef:null==r?void 0:r.getColDef(),data:o.data,node:o,rowIndex:n,rowPinned:o.rowPinned,value:i};this.eventService.dispatchEvent(a);var s=this.params.node.setDataValue(this.params.column,e,"edit"),c={type:l.a.EVENT_CELL_EDITING_STOPPED,column:r,colDef:null==r?void 0:r.getColDef(),data:o.data,node:o,rowIndex:n,rowPinned:o.rowPinned,value:i,oldValue:i,newValue:e,valueChanged:s};this.eventService.dispatchEvent(c)},t.TEMPLATE='\n ',d([Object(i.b)("eCheckbox")],t.prototype,"eCheckbox",void 0),t}(n.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var o,n=r(39),i=r(8),a=r(42),l=r(9),s=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},u=function(e){function t(){return e.call(this,'\n
\n \n
')||this}return s(t,e),t.prototype.init=function(e){var t,r=this;this.params=e;var o=null!==(t=e.value)&&void 0!==t?t:void 0;this.eCheckbox.setValue(o),this.eCheckbox.getInputElement().setAttribute("tabindex","-1"),this.setAriaLabel(o),this.addManagedListener(this.eCheckbox,a.a.EVENT_CHANGED,(function(e){return r.setAriaLabel(e.selected)}))},t.prototype.getValue=function(){return this.eCheckbox.getValue()},t.prototype.focusIn=function(){this.eCheckbox.getFocusableElement().focus()},t.prototype.afterGuiAttached=function(){this.params.cellStartedEdit&&this.focusIn()},t.prototype.isPopup=function(){return!1},t.prototype.setAriaLabel=function(e){var t=this.localeService.getLocaleTextFunc(),r=Object(l.getAriaCheckboxStateName)(t,e),o=t("ariaToggleCellValue","Press SPACE to toggle cell value");this.eCheckbox.setInputAriaLabel(o+" ("+r+")")},c([Object(i.b)("eCheckbox")],t.prototype,"eCheckbox",void 0),t}(n.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var o,n=r(5),i=r(0),a=r(22),l=r(14),s=r(29),c=r(120),u=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),g=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.getHeaderCompDetails=function(e,t){return this.getCompDetails(e,s.j,"agColumnHeader",t)},t.prototype.getHeaderGroupCompDetails=function(e){var t=e.columnGroup.getColGroupDef();return this.getCompDetails(t,s.k,"agColumnGroupHeader",e)},t.prototype.getFullWidthCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,s.f,null,e,!0)},t.prototype.getFullWidthLoadingCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,s.i,"agLoadingCellRenderer",e,!0)},t.prototype.getFullWidthGroupCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,s.h,"agGroupRowRenderer",e,!0)},t.prototype.getFullWidthDetailCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,s.g,"agDetailCellRenderer",e,!0)},t.prototype.getInnerRendererDetails=function(e,t){return this.getCompDetails(e,s.l,null,t)},t.prototype.getFullWidthGroupRowInnerCellRenderer=function(e,t){return this.getCompDetails(e,s.l,null,t)},t.prototype.getCellRendererDetails=function(e,t){return this.getCompDetails(e,s.b,null,t)},t.prototype.getCellEditorDetails=function(e,t){return this.getCompDetails(e,s.a,"agCellEditor",t,!0)},t.prototype.getFilterDetails=function(e,t,r){return this.getCompDetails(e,s.d,r,t,!0)},t.prototype.getDateCompDetails=function(e){return this.getCompDetails(this.gridOptions,s.c,"agDateInput",e,!0)},t.prototype.getLoadingOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,s.m,"agLoadingOverlay",e,!0)},t.prototype.getNoRowsOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,s.n,"agNoRowsOverlay",e,!0)},t.prototype.getTooltipCompDetails=function(e){return this.getCompDetails(e.colDef,s.q,"agTooltipComponent",e,!0)},t.prototype.getSetFilterCellRendererDetails=function(e,t){return this.getCompDetails(e,s.b,null,t)},t.prototype.getFloatingFilterCompDetails=function(e,t,r){return this.getCompDetails(e,s.e,r,t)},t.prototype.getToolPanelCompDetails=function(e,t){return this.getCompDetails(e,s.p,null,t,!0)},t.prototype.getStatusPanelCompDetails=function(e,t){return this.getCompDetails(e,s.o,null,t,!0)},t.prototype.getCompDetails=function(e,t,r,o,n){var i=this;void 0===n&&(n=!1);var a=t.propertyName,l=t.cellRenderer,s=this.getCompKeys(e,t,o),c=s.compName,u=s.jsComp,g=s.fwComp,d=s.paramsFromSelector,p=s.popupFromSelector,h=s.popupPositionFromSelector,f=function(e){var t=i.userComponentRegistry.retrieve(a,e);t&&(u=t.componentFromFramework?void 0:t.component,g=t.componentFromFramework?t.component:void 0)};if(null!=c&&f(c),null==u&&null==g&&null!=r&&f(r),u&&l&&!this.agComponentUtils.doesImplementIComponent(u)&&(u=this.agComponentUtils.adaptFunction(a,u)),u||g){var v=this.mergeParamsWithApplicationProvidedParams(e,t,o,d),m=null==u,y=u||g;return{componentFromFramework:m,componentClass:y,params:v,type:t,popupFromSelector:p,popupPositionFromSelector:h,newAgStackInstance:function(){return i.newAgStackInstance(y,m,v,t)}}}n&&console.error("AG Grid: Could not find component "+c+", did you forget to configure this component?")},t.prototype.getCompKeys=function(e,t,r){var o,n,i,a,l,s,c=this,u=t.propertyName;if(e){var g=e,d=g[u+"Selector"],p=d?d(r):null,h=function(e){if("string"==typeof e)o=e;else if(null!=e&&!0!==e){c.getFrameworkOverrides().isFrameworkComponent(e)?i=e:n=e}};p?(h(p.component),a=p.params,l=p.popup,s=p.popupPosition):h(g[u])}return{compName:o,jsComp:n,fwComp:i,paramsFromSelector:a,popupFromSelector:l,popupPositionFromSelector:s}},t.prototype.newAgStackInstance=function(e,t,r,o){var n,i=o.propertyName;if(!t)n=new e;else{var l=this.componentMetadataProvider.retrieve(i);n=this.frameworkComponentWrapper.wrap(e,l.mandatoryMethodList,l.optionalMethodList,o)}var s=this.initComponent(n,r);return null==s?a.a.resolve(n):s.then((function(){return n}))},t.prototype.mergeParamsWithApplicationProvidedParams=function(e,t,r,o){void 0===o&&(o=null);var n={context:this.gridOptionsService.context,columnApi:this.gridOptionsService.columnApi,api:this.gridOptionsService.api};Object(l.mergeDeep)(n,r);var i=e&&e[t.propertyName+"Params"];if("function"==typeof i){var a=i(r);Object(l.mergeDeep)(n,a)}else"object"==typeof i&&Object(l.mergeDeep)(n,i);return Object(l.mergeDeep)(n,o),n},t.prototype.initComponent=function(e,t){if(this.context.createBean(e),null!=e.init)return e.init(t)},t.prototype.getDefaultFloatingFilterType=function(e,t){if(null==e)return null;var r=null,o=this.getCompKeys(e,s.d),n=o.compName,i=o.jsComp,a=o.fwComp;n?r=c.a.getFloatingFilterType(n):null==i&&null==a&&!0===e.filter&&(r=t());return r},g([Object(i.a)("gridOptions")],t.prototype,"gridOptions",void 0),g([Object(i.a)("agComponentUtils")],t.prototype,"agComponentUtils",void 0),g([Object(i.a)("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),g([Object(i.a)("userComponentRegistry")],t.prototype,"userComponentRegistry",void 0),g([Object(i.d)("frameworkComponentWrapper")],t.prototype,"frameworkComponentWrapper",void 0),t=g([Object(i.b)("userComponentFactory")],t)}(n.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var o=function(){function e(){}return e.getFloatingFilterType=function(e){return this.filterToFloatingFilterMapping[e]},e.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",group:"agGroupColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},e}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var o,n=r(0),i=r(3),a=r(5),l=r(1),s=r(10),c=r(83),u=r(16),g=r(2),d=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragEndFunctions=[],t.dragSources=[],t}return d(t,e),t.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},t.prototype.removeListener=function(e){var t=e.dragSource.eElement,r=e.mouseDownListener;if(t.removeEventListener("mousedown",r),e.touchEnabled){var o=e.touchStartListener;t.removeEventListener("touchstart",o,{passive:!0})}},t.prototype.removeDragSource=function(e){var t=this.dragSources.find((function(t){return t.dragSource===e}));t&&(this.removeListener(t),Object(s.removeFromArray)(this.dragSources,t))},t.prototype.isDragging=function(){return this.dragging},t.prototype.addDragSource=function(e,t){var r=this;void 0===t&&(t=!1);var o=this.onMouseDown.bind(this,e);e.eElement.addEventListener("mousedown",o);var n=null,i=this.gridOptionsService.is("suppressTouch");t&&!i&&(n=function(t){Object(g.isFocusableFormField)(t.target)||(t.cancelable&&(t.preventDefault(),t.stopPropagation()),r.onTouchStart(e,t))},e.eElement.addEventListener("touchstart",n,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:o,touchStartListener:n,touchEnabled:t})},t.prototype.getStartTarget=function(){return this.startTarget},t.prototype.onTouchStart=function(e,t){var r=this;this.currentDragParams=e,this.dragging=!1;var o=t.touches[0];this.touchLastTime=o,this.touchStart=o;var n=function(t){return r.onTouchUp(t,e.eElement)},i=t.target,a=[{target:this.gridOptionsService.getRootNode(),type:"touchmove",listener:function(e){e.cancelable&&e.preventDefault()},options:{passive:!1}},{target:i,type:"touchmove",listener:function(t){return r.onTouchMove(t,e.eElement)},options:{passive:!0}},{target:i,type:"touchend",listener:n,options:{passive:!0}},{target:i,type:"touchcancel",listener:n,options:{passive:!0}}];this.addTemporaryEvents(a),0===e.dragStartPixels&&this.onCommonMove(o,this.touchStart,e.eElement)},t.prototype.onMouseDown=function(e,t){var r=this,o=t;if(!(e.skipMouseEvent&&e.skipMouseEvent(t)||o._alreadyProcessedByDragService||(o._alreadyProcessedByDragService=!0,0!==t.button))){this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=t,this.startTarget=t.target;var n=this.gridOptionsService.getRootNode(),i=[{target:n,type:"mousemove",listener:function(t){return r.onMouseMove(t,e.eElement)}},{target:n,type:"mouseup",listener:function(t){return r.onMouseUp(t,e.eElement)}},{target:n,type:"contextmenu",listener:function(e){return e.preventDefault()}}];this.addTemporaryEvents(i),0===e.dragStartPixels&&this.onMouseMove(t,e.eElement)}},t.prototype.addTemporaryEvents=function(e){e.forEach((function(e){var t=e.target,r=e.type,o=e.listener,n=e.options;t.addEventListener(r,o,n)})),this.dragEndFunctions.push((function(){e.forEach((function(e){var t=e.target,r=e.type,o=e.listener,n=e.options;t.removeEventListener(r,o,n)}))}))},t.prototype.isEventNearStartEvent=function(e,t){var r=this.currentDragParams.dragStartPixels,o=Object(l.exists)(r)?r:4;return Object(c.areEventsNear)(e,t,o)},t.prototype.getFirstActiveTouch=function(e){for(var t=0;t=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allColumnFilters=new Map,t.allColumnListeners=new Map,t.activeAggregateFilters=[],t.activeColumnFilters=[],t.quickFilter=null,t.quickFilterParts=null,t.processingFilterChange=!1,t}var r;return m(t,e),r=t,t.prototype.init=function(){var e=this;this.addManagedListener(this.eventService,l.a.EVENT_GRID_COLUMNS_CHANGED,(function(){return e.onColumnsChanged()})),this.addManagedListener(this.eventService,l.a.EVENT_COLUMN_VALUE_CHANGED,(function(){return e.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,l.a.EVENT_COLUMN_PIVOT_CHANGED,(function(){return e.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,l.a.EVENT_COLUMN_PIVOT_MODE_CHANGED,(function(){e.refreshFiltersForAggregations(),e.resetQuickFilterCache()})),this.addManagedListener(this.eventService,l.a.EVENT_NEW_COLUMNS_LOADED,(function(){return e.resetQuickFilterCache()})),this.addManagedListener(this.eventService,l.a.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return e.resetQuickFilterCache()})),this.addManagedListener(this.eventService,l.a.EVENT_COLUMN_VISIBLE,(function(){e.gridOptionsService.is("includeHiddenColumnsInQuickFilter")||e.resetQuickFilterCache()})),this.addManagedPropertyListener("quickFilterText",(function(t){return e.setQuickFilter(t.currentValue)})),this.addManagedPropertyListener("includeHiddenColumnsInQuickFilter",(function(){return e.onIncludeHiddenColumnsInQuickFilterChanged()})),this.quickFilter=this.parseQuickFilter(this.gridOptionsService.get("quickFilterText")),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsService.is("allowShowChangeAfterFilter"),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.updateAggFiltering(),this.addManagedPropertyListener("groupAggFiltering",(function(){return e.updateAggFiltering()}))},t.prototype.isExternalFilterPresentCallback=function(){var e=this.gridOptionsService.getCallback("isExternalFilterPresent");return"function"==typeof e&&e({})},t.prototype.doesExternalFilterPass=function(e){var t=this.gridOptionsService.get("doesExternalFilterPass");return"function"==typeof t&&t(e)},t.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(" "):null},t.prototype.setFilterModel=function(e){var t=this,r=[],o=this.getFilterModel();if(e){var i=Object(g.convertToSet)(Object.keys(e));this.allColumnFilters.forEach((function(o,n){var a=e[n];r.push(t.setModelOnFilterWrapper(o.filterPromise,a)),i.delete(n)})),i.forEach((function(o){var n=t.columnModel.getPrimaryColumn(o)||t.columnModel.getGridColumn(o);if(n)if(n.isFilterAllowed()){var i=t.getOrCreateFilterWrapper(n,"NO_UI");i?r.push(t.setModelOnFilterWrapper(i.filterPromise,e[o])):console.warn("AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: "+o)}else console.warn("AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: "+o);else console.warn("AG Grid: setFilterModel() - no column found for colId: "+o)}))}else this.allColumnFilters.forEach((function(e){r.push(t.setModelOnFilterWrapper(e.filterPromise,null))}));n.a.all(r).then((function(){var e=t.getFilterModel(),r=[];t.allColumnFilters.forEach((function(t,i){var a=o?o[i]:null,l=e?e[i]:null;n.e.jsonEquals(a,l)||r.push(t.column)})),r.length>0&&t.onFilterChanged({columns:r})}))},t.prototype.setModelOnFilterWrapper=function(e,t){return new n.a((function(r){e.then((function(e){"function"!=typeof e.setModel&&(console.warn("AG Grid: filter missing setModel method, which is needed for setFilterModel"),r()),(e.setModel(t)||n.a.resolve()).then((function(){return r()}))}))}))},t.prototype.getFilterModel=function(){var e={};return this.allColumnFilters.forEach((function(t,r){var o=t.filterPromise.resolveNow(null,(function(e){return e}));if(null==o)return null;if("function"==typeof o.getModel){var n=o.getModel();Object(d.exists)(n)&&(e[r]=n)}else console.warn("AG Grid: filter API missing getModel method, which is needed for getFilterModel")})),e},t.prototype.isColumnFilterPresent=function(){return this.activeColumnFilters.length>0},t.prototype.isAggregateFilterPresent=function(){return!!this.activeAggregateFilters.length},t.prototype.isExternalFilterPresent=function(){return this.externalFilterPresent},t.prototype.doAggregateFiltersPass=function(e,t){return this.doColumnFiltersPass(e,t,!0)},t.prototype.updateActiveFilters=function(){var e=this;this.activeColumnFilters.length=0,this.activeAggregateFilters.length=0;var t=function(e){return!!e&&(e.isFilterActive?e.isFilterActive():(console.warn("AG Grid: Filter is missing isFilterActive() method"),!1))},r=!!this.gridOptionsService.getGroupAggFiltering();this.allColumnFilters.forEach((function(o){if(o.filterPromise.resolveNow(!1,t)){var n=o.filterPromise.resolveNow(null,(function(e){return e}));!function(t){if(!t.isPrimary())return!0;var o=!e.columnModel.isPivotActive();return!(!t.isValueActive()||!o)&&(!!e.columnModel.isPivotMode()||r)}(o.column)?e.activeColumnFilters.push(n):e.activeAggregateFilters.push(n)}}))},t.prototype.updateFilterFlagInColumns=function(e,t){this.allColumnFilters.forEach((function(r){var o=r.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}));r.column.setFilterActive(o,e,t)}))},t.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.isExternalFilterPresent()},t.prototype.doColumnFiltersPass=function(e,t,r){for(var o=e.data,n=e.aggData,i=r?this.activeAggregateFilters:this.activeColumnFilters,a=r?n:o,l=0;l=0}))},t.prototype.doesRowPassQuickFilterCache=function(e,t){return e.quickFilterAggregateText||this.aggregateRowForQuickFilter(e),e.quickFilterAggregateText.indexOf(t)>=0},t.prototype.doesRowPassQuickFilter=function(e){var t=this,r=this.gridOptionsService.is("cacheQuickFilter");return this.quickFilterParts.every((function(o){return r?t.doesRowPassQuickFilterCache(e,o):t.doesRowPassQuickFilterNoCache(e,o)}))},t.prototype.doesRowPassAggregateFilters=function(e){return!(this.isAggregateQuickFilterPresent()&&!this.doesRowPassQuickFilter(e.rowNode))&&!(this.isAggregateFilterPresent()&&!this.doAggregateFiltersPass(e.rowNode,e.filterInstanceToSkip))},t.prototype.doesRowPassFilter=function(e){return!(this.isNonAggregateQuickFilterPresent()&&!this.doesRowPassQuickFilter(e.rowNode))&&(!(this.isExternalFilterPresent()&&!this.doesExternalFilterPass(e.rowNode))&&!(this.isColumnFilterPresent()&&!this.doColumnFiltersPass(e.rowNode,e.filterInstanceToSkip)))},t.prototype.getQuickFilterTextForColumn=function(e,t){var r=this.valueService.getValue(e,t,!0),o=e.getColDef();if(o.getQuickFilterText){var n={value:r,node:t,data:t.data,column:e,colDef:o,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};r=o.getQuickFilterText(n)}return Object(d.exists)(r)?r.toString().toUpperCase():null},t.prototype.aggregateRowForQuickFilter=function(e){var t=this,o=[];this.columnModel.getAllColumnsForQuickFilter().forEach((function(r){var n=t.getQuickFilterTextForColumn(r,e);Object(d.exists)(n)&&o.push(n)})),e.quickFilterAggregateText=o.join(r.QUICK_FILTER_SEPARATOR)},t.prototype.onNewRowsLoaded=function(e){this.allColumnFilters.forEach((function(e){e.filterPromise.then((function(e){e.onNewRowsLoaded&&e.onNewRowsLoaded()}))})),this.updateFilterFlagInColumns(e,{afterDataChange:!0}),this.updateActiveFilters()},t.prototype.createValueGetter=function(e){var t=this;return function(r){var o=r.node;return t.valueService.getValue(e,o,!0)}},t.prototype.getFilterComponent=function(e,t,r){var o;if(void 0===r&&(r=!0),r)return(null===(o=this.getOrCreateFilterWrapper(e,t))||void 0===o?void 0:o.filterPromise)||null;var n=this.cachedFilter(e);return n?n.filterPromise:null},t.prototype.isFilterActive=function(e){var t=this.cachedFilter(e);return!!t&&t.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}))},t.prototype.getOrCreateFilterWrapper=function(e,t){var r=this;if(!e.isFilterAllowed())return null;var o=this.cachedFilter(e);if(o)"NO_UI"!==t&&this.putIntoGui(o,t);else{o=this.createFilterWrapper(e,t);var n=e.getColId();this.allColumnFilters.set(n,o),this.allColumnListeners.set(n,this.addManagedListener(e,i.a.EVENT_COL_DEF_CHANGED,(function(){return r.checkDestroyFilter(n)})))}return o},t.prototype.cachedFilter=function(e){return this.allColumnFilters.get(e.getColId())},t.prototype.getDefaultFilter=function(e){var t;if(c.a.isRegistered(s.a.SetFilterModule,this.context.getGridId()))t="agSetColumnFilter";else{var r=e.getColDef().cellDataType;t="number"===r?"agNumberColumnFilter":"date"===r||"dateString"===r?"agDateColumnFilter":"agTextColumnFilter"}return t},t.prototype.getDefaultFloatingFilter=function(e){var t;if(c.a.isRegistered(s.a.SetFilterModule,this.context.getGridId()))t="agSetColumnFloatingFilter";else{var r=e.getColDef().cellDataType;t="number"===r?"agNumberColumnFloatingFilter":"date"===r||"dateString"===r?"agDateColumnFloatingFilter":"agTextColumnFloatingFilter"}return t},t.prototype.createFilterInstance=function(e){var t,r=this,o=this.getDefaultFilter(e),n=e.getColDef(),i=y(y({},this.createFilterParams(e,n)),{filterModifiedCallback:function(){var o={type:l.a.EVENT_FILTER_MODIFIED,column:e,filterInstance:t};r.eventService.dispatchEvent(o)},filterChangedCallback:function(o){var n={filterInstance:t,additionalEventAttributes:o,columns:[e]};r.callOnFilterChangedOutsideRenderCycle(n)},doesRowPassOtherFilter:function(e){return r.doesRowPassOtherFilters(t,e)}}),a=this.userComponentFactory.getFilterDetails(n,i,o);return a?{filterPromise:function(){var e=a.newAgStackInstance();return e&&e.then((function(e){return t=e})),e},compDetails:a}:{filterPromise:null,compDetails:null}},t.prototype.createFilterParams=function(e,t){return{column:e,colDef:Object(p.cloneObject)(t),rowModel:this.rowModel,filterChangedCallback:function(){},filterModifiedCallback:function(){},valueGetter:this.createValueGetter(e),doesRowPassOtherFilter:function(){return!0},api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}},t.prototype.createFilterWrapper=function(e,t){var r,o={column:e,filterPromise:null,compiledElement:null,guiPromise:n.a.resolve(null),compDetails:null},i=this.createFilterInstance(e),a=i.filterPromise,l=i.compDetails;return o.filterPromise=null!==(r=null==a?void 0:a())&&void 0!==r?r:null,o.compDetails=l,a&&this.putIntoGui(o,t),o},t.prototype.putIntoGui=function(e,t){var r=this,o=document.createElement("div");o.className="ag-filter",e.guiPromise=new n.a((function(n){e.filterPromise.then((function(i){var a=i.getGui();Object(d.exists)(a)||console.warn("AG Grid: getGui method from filter returned "+a+", it should be a DOM element or an HTML template string."),"string"==typeof a&&(a=Object(h.loadTemplate)(a)),o.appendChild(a),n(o);var s={type:l.a.EVENT_FILTER_OPENED,column:e.column,source:t,eGui:o};r.eventService.dispatchEvent(s)}))}))},t.prototype.onColumnsChanged=function(){var e=this,t=[];this.allColumnFilters.forEach((function(r,o){(r.column.isPrimary()?e.columnModel.getPrimaryColumn(o):e.columnModel.getGridColumn(o))||(t.push(r.column),e.disposeFilterWrapper(r,"columnChanged"),e.disposeColumnListener(o))})),t.length>0?this.onFilterChanged({columns:t}):this.updateDependantFilters()},t.prototype.updateDependantFilters=function(){var e=this,t=this.columnModel.getGroupAutoColumns();null==t||t.forEach((function(t){"agGroupColumnFilter"===t.getColDef().filter&&e.getOrCreateFilterWrapper(t,"NO_UI")}))},t.prototype.isFilterAllowed=function(e){var t,r;if(!e.isFilterAllowed())return!1;var o=this.allColumnFilters.get(e.getColId());return null===(r=null===(t=null==o?void 0:o.filterPromise)||void 0===t?void 0:t.resolveNow(!0,(function(e){var t,r;return"function"!=typeof(null===(t=e)||void 0===t?void 0:t.isFilterAllowed)||(null===(r=e)||void 0===r?void 0:r.isFilterAllowed())})))||void 0===r||r},t.prototype.getFloatingFilterCompDetails=function(e,t){var r=this,o=e.getColDef(),n=this.createFilterParams(e,o),i=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(o,f.d,n),a=this.userComponentFactory.getDefaultFloatingFilterType(o,(function(){return r.getDefaultFloatingFilter(e)}));null==a&&(a="agReadOnlyFloatingFilter");var l={column:e,filterParams:i,currentParentModel:function(){return r.getCurrentFloatingFilterParentModel(e)},parentFilterInstance:function(t){var o=r.getFilterComponent(e,"NO_UI");null!=o&&o.then((function(e){t(Object(v.b)(e))}))},showParentFilter:t,suppressFilterButton:!1};return this.userComponentFactory.getFloatingFilterCompDetails(o,l,a)},t.prototype.getCurrentFloatingFilterParentModel=function(e){var t=this.getFilterComponent(e,"NO_UI",!1);return t?t.resolveNow(null,(function(e){return e&&e.getModel()})):null},t.prototype.destroyFilter=function(e,t){void 0===t&&(t="api");var r=e.getColId(),o=this.allColumnFilters.get(r);this.disposeColumnListener(r),o&&(this.disposeFilterWrapper(o,t),this.onFilterChanged({columns:[e]}))},t.prototype.disposeColumnListener=function(e){var t=this.allColumnListeners.get(e);t&&(this.allColumnListeners.delete(e),t())},t.prototype.disposeFilterWrapper=function(e,t){var r=this;e.filterPromise.then((function(o){(o.setModel(null)||n.a.resolve()).then((function(){r.getContext().destroyBean(o),e.column.setFilterActive(!1,"filterDestroyed"),r.allColumnFilters.delete(e.column.getColId());var n={type:l.a.EVENT_FILTER_DESTROYED,source:t,column:e.column};r.eventService.dispatchEvent(n)}))}))},t.prototype.checkDestroyFilter=function(e){var t,r=this.allColumnFilters.get(e);if(r){var o=r.column,n=(o.isFilterAllowed()?this.createFilterInstance(o):{compDetails:null}).compDetails;n&&(null===(t=r.compDetails)||void 0===t?void 0:t.componentClass)===n.componentClass||this.destroyFilter(o,"columnChanged")}},t.prototype.destroy=function(){var t=this;e.prototype.destroy.call(this),this.allColumnFilters.forEach((function(e){return t.disposeFilterWrapper(e,"gridDestroyed")})),this.allColumnListeners.clear()},t.QUICK_FILTER_SEPARATOR="\n",w([Object(a.a)("valueService")],t.prototype,"valueService",void 0),w([Object(a.a)("columnModel")],t.prototype,"columnModel",void 0),w([Object(a.a)("rowModel")],t.prototype,"rowModel",void 0),w([Object(a.a)("userComponentFactory")],t.prototype,"userComponentFactory",void 0),w([Object(a.a)("rowRenderer")],t.prototype,"rowRenderer",void 0),w([a.e],t.prototype,"init",null),t=r=w([Object(a.b)("filterManager")],t)}(u.a)},function(e,t,r){"use strict";var o;r.d(t,"a",(function(){return o})),function(e){e.EVERYTHING="group",e.FILTER="filter",e.SORT="sort",e.MAP="map",e.AGGREGATE="aggregate",e.FILTER_AGGREGATES="filter_aggregates",e.PIVOT="pivot",e.NOTHING="nothing"}(o||(o={}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var o,n=r(0),i=r(2),a=r(8),l=r(85),s=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},u=function(e){function t(r){return e.call(this,t.TEMPLATE,r)||this}return s(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),r={addOrRemoveCssClass:function(t,r){return e.addOrRemoveCssClass(t,r)},addOrRemoveBodyCssClass:function(t,r){return e.eFloatingFilterBody.classList.toggle(t,r)},setButtonWrapperDisplayed:function(t){return Object(i.setDisplayed)(e.eButtonWrapper,t)},setCompDetails:function(t){return e.setCompDetails(t)},getFloatingFilterComp:function(){return e.compPromise},setWidth:function(e){return t.style.width=e},setMenuIcon:function(t){return e.eButtonShowMainFilter.appendChild(t)}};this.ctrl.setComp(r,t,this.eButtonShowMainFilter,this.eFloatingFilterBody)},t.prototype.setCompDetails=function(e){var t=this;if(!e)return this.destroyFloatingFilterComp(),void(this.compPromise=null);this.compPromise=e.newAgStackInstance(),this.compPromise.then((function(e){return t.afterCompCreated(e)}))},t.prototype.destroyFloatingFilterComp=function(){this.floatingFilterComp&&(this.eFloatingFilterBody.removeChild(this.floatingFilterComp.getGui()),this.floatingFilterComp=this.destroyBean(this.floatingFilterComp))},t.prototype.afterCompCreated=function(e){e&&(this.isAlive()?(this.destroyFloatingFilterComp(),this.floatingFilterComp=e,this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached()):this.destroyBean(e))},t.TEMPLATE='
\n
\n \n
',c([Object(a.b)("eFloatingFilterBody")],t.prototype,"eFloatingFilterBody",void 0),c([Object(a.b)("eButtonWrapper")],t.prototype,"eButtonWrapper",void 0),c([Object(a.b)("eButtonShowMainFilter")],t.prototype,"eButtonShowMainFilter",void 0),c([n.e],t.prototype,"postConstruct",null),c([n.g],t.prototype,"destroyFloatingFilterComp",null),t}(l.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var o,n=r(0),i=r(28),a=r(9),l=r(12),s=r(8),c=r(68),u=r(21),g=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},p='
\n \n \n \n \n \n \n \n
',h=function(e){function t(){return e.call(this,p)||this}return g(t,e),t.prototype.init=function(){var e=this,t=function(e,t){var r=e+"px";t.style.minHeight=r,t.style.height=r},r={setRowAnimationCssOnBodyViewport:function(t,r){return e.setRowAnimationCssOnBodyViewport(t,r)},setColumnCount:function(t){return Object(a.setAriaColCount)(e.getGui(),t)},setRowCount:function(t){return Object(a.setAriaRowCount)(e.getGui(),t)},setTopHeight:function(r){return t(r,e.eTop)},setBottomHeight:function(r){return t(r,e.eBottom)},setTopDisplay:function(t){return e.eTop.style.display=t},setBottomDisplay:function(t){return e.eBottom.style.display=t},setStickyTopHeight:function(t){return e.eStickyTop.style.height=t},setStickyTopTop:function(t){return e.eStickyTop.style.top=t},setStickyTopWidth:function(t){return e.eStickyTop.style.width=t},setColumnMovingCss:function(t,r){return e.addOrRemoveCssClass(t,r)},updateLayoutClasses:function(t,r){[e.eBodyViewport.classList,e.eBodyClipper.classList,e.eBody.classList].forEach((function(e){e.toggle(i.a.AUTO_HEIGHT,r.autoHeight),e.toggle(i.a.NORMAL,r.normal),e.toggle(i.a.PRINT,r.print)})),e.addOrRemoveCssClass(i.a.AUTO_HEIGHT,r.autoHeight),e.addOrRemoveCssClass(i.a.NORMAL,r.normal),e.addOrRemoveCssClass(i.a.PRINT,r.print)},setAlwaysVerticalScrollClass:function(t,r){return e.eBodyViewport.classList.toggle(c.a,r)},registerBodyViewportResizeListener:function(t){var r=e.resizeObserverService.observeResize(e.eBodyViewport,t);e.addDestroyFunc((function(){return r()}))},setPinnedTopBottomOverflowY:function(t){return e.eTop.style.overflowY=e.eBottom.style.overflowY=t},setCellSelectableCss:function(t,r){[e.eTop,e.eBodyViewport,e.eBottom].forEach((function(e){return e.classList.toggle(t,r)}))},setBodyViewportWidth:function(t){return e.eBodyViewport.style.width=t}};this.ctrl=this.createManagedBean(new c.b),this.ctrl.setComp(r,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop),(this.rangeService||"multiple"===this.gridOptionsService.get("rowSelection"))&&Object(a.setAriaMultiSelectable)(this.getGui(),!0)},t.prototype.setRowAnimationCssOnBodyViewport=function(e,t){var r=this.eBodyViewport.classList;r.toggle(c.c.ANIMATION_ON,t),r.toggle(c.c.ANIMATION_OFF,!t)},t.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},d([Object(n.a)("resizeObserverService")],t.prototype,"resizeObserverService",void 0),d([Object(n.d)("rangeService")],t.prototype,"rangeService",void 0),d([Object(s.b)("eBodyViewport")],t.prototype,"eBodyViewport",void 0),d([Object(s.b)("eStickyTop")],t.prototype,"eStickyTop",void 0),d([Object(s.b)("eTop")],t.prototype,"eTop",void 0),d([Object(s.b)("eBottom")],t.prototype,"eBottom",void 0),d([Object(s.b)("gridHeader")],t.prototype,"headerRootComp",void 0),d([Object(s.b)("eBodyClipper")],t.prototype,"eBodyClipper",void 0),d([Object(s.b)("eBody")],t.prototype,"eBody",void 0),d([n.e],t.prototype,"init",null),t}(l.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var o=function(){function e(e){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=e.scrollContainer,this.scrollHorizontally=-1!==e.scrollAxis.indexOf("x"),this.scrollVertically=-1!==e.scrollAxis.indexOf("y"),this.scrollByTick=null!=e.scrollByTick?e.scrollByTick:20,e.onScrollCallback&&(this.onScrollCallback=e.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=e.getVerticalPosition,this.setVerticalPosition=e.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=e.getHorizontalPosition,this.setHorizontalPosition=e.setHorizontalPosition),this.shouldSkipVerticalScroll=e.shouldSkipVerticalScroll||function(){return!1},this.shouldSkipHorizontalScroll=e.shouldSkipHorizontalScroll||function(){return!1}}return e.prototype.check=function(e,t){void 0===t&&(t=!1);var r=t||this.shouldSkipVerticalScroll();if(!r||!this.shouldSkipHorizontalScroll()){var o=this.scrollContainer.getBoundingClientRect(),n=this.scrollByTick;this.tickLeft=e.clientXo.right-n,this.tickUp=e.clientYo.bottom-n&&!r,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}},e.prototype.ensureTickingStarted=function(){null===this.tickingInterval&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)},e.prototype.doTick=function(){var e;if(this.tickCount++,e=this.tickCount>20?200:this.tickCount>10?80:40,this.scrollVertically){var t=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(t-e),this.tickDown&&this.setVerticalPosition(t+e)}if(this.scrollHorizontally){var r=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(r-e),this.tickRight&&this.setHorizontalPosition(r+e)}this.onScrollCallback&&this.onScrollCallback()},e.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},e}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var o,n=r(0),i=r(5),a=r(3),l=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,a.a.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,a.a.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this))},t.prototype.onDisplayedColumnsChanged=function(){this.update()},t.prototype.onDisplayedColumnsWidthChanged=function(){this.update()},t.prototype.update=function(){this.updateImpl(),setTimeout(this.updateImpl.bind(this),500)},t.prototype.updateImpl=function(){var e=this.ctrlsService.getCenterRowContainerCtrl();if(e){var t={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(t)}},t.prototype.setScrollsVisible=function(e){if(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing){this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing;var t={type:a.a.EVENT_SCROLL_VISIBILITY_CHANGED};this.eventService.dispatchEvent(t)}},t.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},t.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},s([Object(n.a)("ctrlsService")],t.prototype,"ctrlsService",void 0),s([n.e],t.prototype,"postConstruct",null),t=s([Object(n.b)("scrollVisibleService")],t)}(i.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var o,n=r(0),i=r(22),a=r(5),l=r(23),s=r(1),c=r(40),u=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),g=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.gridInstanceId=r.gridInstanceSequence.next(),t}var r;return u(t,e),r=t,t.prototype.stampTopLevelGridCompWithGridInstance=function(e){e[r.GRID_DOM_KEY]=this.gridInstanceId},t.prototype.getRenderedCellForEvent=function(e){return Object(l.getCtrlForEventTarget)(this.gridOptionsService,e.target,c.a.DOM_DATA_KEY_CELL_CTRL)},t.prototype.isEventFromThisGrid=function(e){return this.isElementInThisGrid(e.target)},t.prototype.isElementInThisGrid=function(e){for(var t=e;t;){var o=t[r.GRID_DOM_KEY];if(Object(s.exists)(o))return o===this.gridInstanceId;t=t.parentElement}return!1},t.prototype.getCellPositionForEvent=function(e){var t=this.getRenderedCellForEvent(e);return t?t.getCellPosition():null},t.prototype.getNormalisedPosition=function(e){var t,r,o=this.gridOptionsService.isDomLayout("normal"),n=e;if(null!=n.clientX||null!=n.clientY?(t=n.clientX,r=n.clientY):(t=n.x,r=n.y),o){var i=this.ctrlsService.getGridBodyCtrl(),a=i.getScrollFeature().getVScrollPosition();t+=i.getScrollFeature().getHScrollPosition().left,r+=a.top}return{x:t,y:r}},t.gridInstanceSequence=new i.c,t.GRID_DOM_KEY="__ag_grid_instance",g([Object(n.a)("ctrlsService")],t.prototype,"ctrlsService",void 0),t=r=g([Object(n.b)("mouseEventService")],t)}(a.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return v}));var o,n=r(0),i=r(5),a=r(1),l=r(10),s=r(7),c=r(40),u=r(43),g=r(11),d=r(6),p=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),h=function(){return(h=Object.assign||function(e){for(var t,r=1,o=arguments.length;r=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},v=function(e){function t(){var t=e.call(this)||this;return t.onPageDown=Object(g.throttle)(t.onPageDown,100),t.onPageUp=Object(g.throttle)(t.onPageUp,100),t}return p(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.gridBodyCon=t.gridBodyCtrl}))},t.prototype.handlePageScrollingKey=function(e){var t=e.key,r=e.altKey,o=e.ctrlKey||e.metaKey,n=!!this.rangeService&&e.shiftKey,i=this.mouseEventService.getCellPositionForEvent(e),a=!1;switch(t){case s.a.PAGE_HOME:case s.a.PAGE_END:o||r||(this.onHomeOrEndKey(t),a=!0);break;case s.a.LEFT:case s.a.RIGHT:case s.a.UP:case s.a.DOWN:if(!i)return!1;!o||r||n||(this.onCtrlUpDownLeftRight(t,i),a=!0);break;case s.a.PAGE_DOWN:if(!i)return!1;o||r||(this.onPageDown(i),a=!0);break;case s.a.PAGE_UP:if(!i)return!1;o||r||(this.onPageUp(i),a=!0)}return a&&e.preventDefault(),a},t.prototype.navigateTo=function(e){var t=e.scrollIndex,r=e.scrollType,o=e.scrollColumn,n=e.focusIndex,i=e.focusColumn;if(Object(a.exists)(o)&&!o.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(o),Object(a.exists)(t)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(t,r),e.isAsync||this.gridBodyCon.getScrollFeature().ensureIndexVisible(n),this.focusService.setFocusedCell({rowIndex:n,column:i,rowPinned:null,forceBrowserFocus:!0}),this.rangeService){var l={rowIndex:n,rowPinned:null,column:i};this.rangeService.setRangeToCell(l)}},t.prototype.onPageDown=function(e){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),r=this.getViewportHeight(),o=this.paginationProxy.getPixelOffset(),n=t.top+r,i=this.paginationProxy.getRowIndexAtPixel(n+o);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,i):this.navigateToNextPage(e,i)},t.prototype.onPageUp=function(e){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),r=this.paginationProxy.getPixelOffset(),o=t.top,n=this.paginationProxy.getRowIndexAtPixel(o+r);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,n,!0):this.navigateToNextPage(e,n,!0)},t.prototype.navigateToNextPage=function(e,t,r){void 0===r&&(r=!1);var o,n=this.getViewportHeight(),i=this.paginationProxy.getPageFirstRow(),a=this.paginationProxy.getPageLastRow(),l=this.paginationProxy.getPixelOffset(),s=this.paginationProxy.getRow(e.rowIndex),c=r?(null==s?void 0:s.rowHeight)-n-l:n-l,u=(null==s?void 0:s.rowTop)+c,g=this.paginationProxy.getRowIndexAtPixel(u+l);if(g===e.rowIndex){var d=r?-1:1;t=g=e.rowIndex+d}r?(o="bottom",ga&&(g=a),t>a&&(t=a)),this.isRowTallerThanView(g)&&(t=g,o="top"),this.navigateTo({scrollIndex:t,scrollType:o,scrollColumn:null,focusIndex:g,focusColumn:e.column})},t.prototype.navigateToNextPageWithAutoHeight=function(e,t,r){var o=this;void 0===r&&(r=!1),this.navigateTo({scrollIndex:t,scrollType:r?"bottom":"top",scrollColumn:null,focusIndex:t,focusColumn:e.column}),setTimeout((function(){var n=o.getNextFocusIndexForAutoHeight(e,r);o.navigateTo({scrollIndex:t,scrollType:r?"bottom":"top",scrollColumn:null,focusIndex:n,focusColumn:e.column,isAsync:!0})}),50)},t.prototype.getNextFocusIndexForAutoHeight=function(e,t){var r;void 0===t&&(t=!1);for(var o=t?-1:1,n=this.getViewportHeight(),i=this.paginationProxy.getPageLastRow(),a=0,l=e.rowIndex;l>=0&&l<=i;){var s=this.paginationProxy.getRow(l);if(s){var c=null!==(r=s.rowHeight)&&void 0!==r?r:0;if(a+c>n)break;a+=c}l+=o}return Math.max(0,Math.min(l,i))},t.prototype.getViewportHeight=function(){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),t=this.gridOptionsService.getScrollbarWidth(),r=e.bottom-e.top;return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(r-=t),r},t.prototype.isRowTallerThanView=function(e){var t=this.paginationProxy.getRow(e);if(!t)return!1;var r=t.rowHeight;return"number"==typeof r&&r>this.getViewportHeight()},t.prototype.onCtrlUpDownLeftRight=function(e,t){var r=this.cellNavigationService.getNextCellToFocus(e,t,!0),o=r.rowIndex,n=r.column;this.navigateTo({scrollIndex:o,scrollType:null,scrollColumn:n,focusIndex:o,focusColumn:n})},t.prototype.onHomeOrEndKey=function(e){var t=e===s.a.PAGE_HOME,r=this.columnModel.getAllDisplayedColumns(),o=t?r[0]:Object(l.last)(r),n=t?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:n,scrollType:null,scrollColumn:o,focusIndex:n,focusColumn:o})},t.prototype.onTabKeyDown=function(e,t){var r=t.shiftKey;if(this.tabToNextCellCommon(e,r,t))t.preventDefault();else if(r){var o=e.getRowPosition(),n=o.rowIndex;(o.rowPinned?0===n:n===this.paginationProxy.getPageFirstRow())&&(0===this.gridOptionsService.getNum("headerHeight")?this.focusService.focusNextGridCoreContainer(!0,!0):(t.preventDefault(),this.focusService.focusLastHeader(t)))}else e instanceof c.a&&e.focusCell(!0),this.focusService.focusNextGridCoreContainer(r)&&t.preventDefault()},t.prototype.tabToNextCell=function(e,t){var r=this.focusService.getFocusedCell();if(!r)return!1;var o=this.getCellByPosition(r);return!!(o||(o=this.rowRenderer.getRowByPosition(r))&&o.isFullWidth())&&this.tabToNextCellCommon(o,e,t)},t.prototype.tabToNextCellCommon=function(e,t,r){var o=e.isEditing();if(!o&&e instanceof c.a){var n=e.getRowCtrl();n&&(o=n.isEditing())}return(o?"fullRow"===this.gridOptionsService.get("editType")?this.moveToNextEditingRow(e,t,r):this.moveToNextEditingCell(e,t,r):this.moveToNextCellNotEditing(e,t))||!!this.focusService.getFocusedHeader()},t.prototype.moveToNextEditingCell=function(e,t,r){void 0===r&&(r=null);var o=e.getCellPosition();e.getGui().focus(),e.stopEditing();var n=this.findNextCellToFocusOn(o,t,!0);return null!=n&&(n.startEditing(null,!0,r),n.focusCell(!1),!0)},t.prototype.moveToNextEditingRow=function(e,t,r){void 0===r&&(r=null);var o=e.getCellPosition(),n=this.findNextCellToFocusOn(o,t,!0);if(null==n)return!1;var i=n.getCellPosition(),a=this.isCellEditable(o),l=this.isCellEditable(i),s=i&&o.rowIndex===i.rowIndex&&o.rowPinned===i.rowPinned;(a&&e.setFocusOutOnEditor(),s)||(e.getRowCtrl().stopEditing(),n.getRowCtrl().startRowEditing(void 0,void 0,r));return l?(n.setFocusInOnEditor(),n.focusCell()):n.focusCell(!0),!0},t.prototype.moveToNextCellNotEditing=function(e,t){var r,o=this.columnModel.getAllDisplayedColumns();r=e instanceof u.a?h(h({},e.getRowPosition()),{column:t?o[0]:Object(l.last)(o)}):e.getCellPosition();var n=this.findNextCellToFocusOn(r,t,!1);if(n instanceof c.a)n.focusCell(!0);else if(n)return this.tryToFocusFullWidthRow(n.getRowPosition(),t);return Object(a.exists)(n)},t.prototype.findNextCellToFocusOn=function(e,t,r){for(var o=e;;){e!==o&&(e=o),t||(o=this.getLastCellOfColSpan(o)),o=this.cellNavigationService.getNextTabbedCell(o,t);var n=this.gridOptionsService.getCallback("tabToNextCell");if(Object(a.exists)(n)){var i=n({backwards:t,editing:r,previousCellPosition:e,nextCellPosition:o||null});Object(a.exists)(i)?(i.floating&&(Object(g.doOnce)((function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),i.rowPinned=i.floating),o={rowIndex:i.rowIndex,column:i.column,rowPinned:i.rowPinned}):o=null}if(!o)return null;if(o.rowIndex<0){var l=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:l+o.rowIndex,column:o.column}}),null}var s="fullRow"===this.gridOptionsService.get("editType");if(r&&!s)if(!this.isCellEditable(o))continue;this.ensureCellVisible(o);var c=this.getCellByPosition(o);if(!c){var u=this.rowRenderer.getRowByPosition(o);if(!u||!u.isFullWidth()||r)continue;return u}if(!c.isSuppressNavigable())return this.rangeService&&this.rangeService.setRangeToCell(o),c}},t.prototype.isCellEditable=function(e){var t=this.lookupRowNodeForCell(e);return!!t&&e.column.isCellEditable(t)},t.prototype.getCellByPosition=function(e){var t=this.rowRenderer.getRowByPosition(e);return t?t.getCellCtrl(e.column):null},t.prototype.lookupRowNodeForCell=function(e){return"top"===e.rowPinned?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):"bottom"===e.rowPinned?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},t.prototype.navigateToNextCell=function(e,t,r,o){for(var n=r,i=!1;n&&(n===r||!this.isValidNavigateCell(n));)this.gridOptionsService.is("enableRtl")?t===s.a.LEFT&&(n=this.getLastCellOfColSpan(n)):t===s.a.RIGHT&&(n=this.getLastCellOfColSpan(n)),n=this.cellNavigationService.getNextCellToFocus(t,n),i=Object(a.missing)(n);if(i&&e&&e.key===s.a.UP&&(n={rowIndex:-1,rowPinned:null,column:r.column}),o){var l=this.gridOptionsService.getCallback("navigateToNextCell");if(Object(a.exists)(l)){var c=l({key:t,previousCellPosition:r,nextCellPosition:n||null,event:e});Object(a.exists)(c)?(c.floating&&(Object(g.doOnce)((function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),c.rowPinned=c.floating),n={rowPinned:c.rowPinned,rowIndex:c.rowIndex,column:c.column}):n=null}}if(n)if(n.rowIndex<0){var u=this.headerNavigationService.getHeaderRowCount();this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:u+n.rowIndex,column:r.column},event:e||void 0})}else{var d=this.getNormalisedPosition(n);d?this.focusPosition(d):this.tryToFocusFullWidthRow(n)}},t.prototype.getNormalisedPosition=function(e){this.ensureCellVisible(e);var t=this.getCellByPosition(e);return t?(e=t.getCellPosition(),this.ensureCellVisible(e),e):null},t.prototype.tryToFocusFullWidthRow=function(e,t){void 0===t&&(t=!1);var r=this.columnModel.getAllDisplayedColumns(),o=this.rowRenderer.getRowByPosition(e);if(!o||!o.isFullWidth())return!1;var n=this.focusService.getFocusedCell(),i={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(t?Object(l.last)(r):r[0])};this.focusPosition(i);var a=null!=n&&this.rowPositionUtils.before(i,n),s={type:d.a.EVENT_FULL_WIDTH_ROW_FOCUSED,rowIndex:i.rowIndex,rowPinned:i.rowPinned,column:i.column,isFullWidthCell:!0,floating:i.rowPinned,fromBelow:a};return this.eventService.dispatchEvent(s),!0},t.prototype.focusPosition=function(e){this.focusService.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell(e)},t.prototype.isValidNavigateCell=function(e){return!!this.rowPositionUtils.getRowNode(e)},t.prototype.getLastCellOfColSpan=function(e){var t=this.getCellByPosition(e);if(!t)return e;var r=t.getColSpanningList();return 1===r.length?e:{rowIndex:e.rowIndex,column:Object(l.last)(r),rowPinned:e.rowPinned}},t.prototype.ensureCellVisible=function(e){var t=this.gridOptionsService.isGroupRowsSticky(),r=this.rowModel.getRow(e.rowIndex);!(t&&(null==r?void 0:r.sticky))&&Object(a.missing)(e.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(e.column)},f([Object(n.a)("mouseEventService")],t.prototype,"mouseEventService",void 0),f([Object(n.a)("paginationProxy")],t.prototype,"paginationProxy",void 0),f([Object(n.a)("focusService")],t.prototype,"focusService",void 0),f([Object(n.d)("rangeService")],t.prototype,"rangeService",void 0),f([Object(n.a)("columnModel")],t.prototype,"columnModel",void 0),f([Object(n.a)("rowModel")],t.prototype,"rowModel",void 0),f([Object(n.a)("ctrlsService")],t.prototype,"ctrlsService",void 0),f([Object(n.a)("rowRenderer")],t.prototype,"rowRenderer",void 0),f([Object(n.a)("headerNavigationService")],t.prototype,"headerNavigationService",void 0),f([Object(n.a)("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),f([Object(n.a)("cellNavigationService")],t.prototype,"cellNavigationService",void 0),f([Object(n.a)("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),f([n.e],t.prototype,"postConstruct",null),t=f([Object(n.b)("navigationService")],t)}(i.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var o,n=r(12),i=r(131),a=r(9),l=r(27),s=r(1),c=r(2),u=r(16),g=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e){function t(t,r,o,n,i){var l=e.call(this)||this;l.rendererVersion=0,l.editorVersion=0,l.beans=t,l.column=r.getColumn(),l.rowNode=r.getRowNode(),l.rowCtrl=r.getRowCtrl(),l.eRow=n,l.setTemplate('
');var s=l.getGui();l.forceWrapper=r.isForceWrapper(),l.refreshWrapper(!1);var u=function(e,t,r){var o=r||s;null!=t&&""!=t?o.setAttribute(e,t):o.removeAttribute(e)},g={addOrRemoveCssClass:function(e,t){return l.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return Object(c.addStylesToElement)(s,e)},getFocusableElement:function(){return l.getFocusableElement()},setTabIndex:function(e){return u("tabindex",e.toString())},setRole:function(e){return Object(a.setAriaRole)(s,e)},setColId:function(e){return u("col-id",e)},setTitle:function(e){return u("title",e)},setIncludeSelection:function(e){return l.includeSelection=e},setIncludeRowDrag:function(e){return l.includeRowDrag=e},setIncludeDndSource:function(e){return l.includeDndSource=e},setRenderDetails:function(e,t,r){return l.setRenderDetails(e,t,r)},setEditDetails:function(e,t,r){return l.setEditDetails(e,t,r)},getCellEditor:function(){return l.cellEditor||null},getCellRenderer:function(){return l.cellRenderer||null},getParentOfValue:function(){return l.getParentOfValue()}};return l.cellCtrl=r,r.setComp(g,l.getGui(),l.eCellWrapper,o,i),l}return g(t,e),t.prototype.getParentOfValue=function(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()},t.prototype.setRenderDetails=function(e,t,r){if(!(this.cellEditor&&!this.cellEditorPopupWrapper)){this.firstRender=null==this.firstRender;var o=this.refreshWrapper(!1);if(this.refreshEditStyles(!1),e)!(r||o)&&this.refreshCellRenderer(e)||(this.destroyRenderer(),this.createCellRendererInstance(e));else this.destroyRenderer(),this.insertValueWithoutCellRenderer(t)}},t.prototype.setEditDetails=function(e,t,r){e?this.createCellEditorInstance(e,t,r):this.destroyEditor()},t.prototype.removeControls=function(){this.checkboxSelectionComp=this.beans.context.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=this.beans.context.destroyBean(this.dndSourceComp),this.rowDraggingComp=this.beans.context.destroyBean(this.rowDraggingComp)},t.prototype.refreshWrapper=function(e){var t=this.includeRowDrag||this.includeDndSource||this.includeSelection,r=t||this.forceWrapper,o=r&&null==this.eCellWrapper;o&&(this.eCellWrapper=Object(c.loadTemplate)(''),this.getGui().appendChild(this.eCellWrapper));var n=!r&&null!=this.eCellWrapper;n&&(Object(c.removeFromParent)(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!r);var i=!e&&r,a=i&&null==this.eCellValue;a&&(this.eCellValue=Object(c.loadTemplate)(''),this.eCellWrapper.appendChild(this.eCellValue));var l=!i&&null!=this.eCellValue;l&&(Object(c.removeFromParent)(this.eCellValue),this.eCellValue=void 0);var s=o||n||a||l;return s&&this.removeControls(),e||t&&this.addControls(),s},t.prototype.addControls=function(){this.includeRowDrag&&null==this.rowDraggingComp&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&null==this.dndSourceComp&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&null==this.checkboxSelectionComp&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue))},t.prototype.createCellEditorInstance=function(e,t,r){var o=this,n=this.editorVersion,i=e.newAgStackInstance();if(i){var a=e.params;i.then((function(e){return o.afterCellEditorCreated(n,e,a,t,r)})),Object(s.missing)(this.cellEditor)&&a.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},t.prototype.insertValueWithoutCellRenderer=function(e){var t=this.getParentOfValue();Object(c.clearElement)(t);var r=null!=e?Object(l.escapeString)(e):null;null!=r&&(t.innerHTML=r)},t.prototype.destroyEditorAndRenderer=function(){this.destroyRenderer(),this.destroyEditor()},t.prototype.destroyRenderer=function(){var e=this.beans.context;this.cellRenderer=e.destroyBean(this.cellRenderer),Object(c.removeFromParent)(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++},t.prototype.destroyEditor=function(){var e=this.beans.context;this.hideEditorPopup&&this.hideEditorPopup(),this.hideEditorPopup=void 0,this.cellEditor=e.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=e.destroyBean(this.cellEditorPopupWrapper),Object(c.removeFromParent)(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++},t.prototype.refreshCellRenderer=function(e){if(null==this.cellRenderer||null==this.cellRenderer.refresh)return!1;if(this.cellRendererClass!==e.componentClass)return!1;var t=this.cellRenderer.refresh(e.params);return!0===t||void 0===t},t.prototype.createCellRendererInstance=function(e){var t=this,r=!this.beans.gridOptionsService.is("suppressAnimationFrame"),o=this.rendererVersion,n=e.componentClass,i=function(){if(!(t.rendererVersion!==o||!t.isAlive())){var r=e.newAgStackInstance(),i=t.afterCellRendererCreated.bind(t,o,n);r&&r.then(i)}};r&&this.firstRender?this.beans.animationFrameService.createTask(i,this.rowNode.rowIndex,"createTasksP2"):i()},t.prototype.getCtrl=function(){return this.cellCtrl},t.prototype.getRowCtrl=function(){return this.rowCtrl},t.prototype.getCellRenderer=function(){return this.cellRenderer},t.prototype.getCellEditor=function(){return this.cellEditor},t.prototype.afterCellRendererCreated=function(e,t,r){if(!this.isAlive()||e!==this.rendererVersion)this.beans.context.destroyBean(r);else if(this.cellRenderer=r,this.cellRendererClass=t,this.cellRendererGui=this.cellRenderer.getGui(),null!=this.cellRendererGui){var o=this.getParentOfValue();Object(c.clearElement)(o),o.appendChild(this.cellRendererGui)}},t.prototype.afterCellEditorCreated=function(e,t,r,o,n){if(e!==this.editorVersion)this.beans.context.destroyBean(t);else{if(t.isCancelBeforeStart&&t.isCancelBeforeStart())return this.beans.context.destroyBean(t),void this.cellCtrl.stopEditing(!0);if(!t.getGui)return console.warn("AG Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),void this.beans.context.destroyBean(t);this.cellEditor=t,this.cellEditorGui=t.getGui();var i=o||void 0!==t.isPopup&&t.isPopup();i?this.addPopupCellEditor(r,n):this.addInCellEditor(),this.refreshEditStyles(!0,i),t.afterGuiAttached&&t.afterGuiAttached()}},t.prototype.refreshEditStyles=function(e,t){var r;this.addOrRemoveCssClass("ag-cell-inline-editing",e&&!t),this.addOrRemoveCssClass("ag-cell-popup-editing",e&&!!t),this.addOrRemoveCssClass("ag-cell-not-inline-editing",!e||!!t),null===(r=this.rowCtrl)||void 0===r||r.setInlineEditingCss(e)},t.prototype.addInCellEditor=function(){var e=this.getGui(),t=this.beans.gridOptionsService.getDocument();(e.contains(t.activeElement)&&e.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui)&&this.getParentOfValue().appendChild(this.cellEditorGui)},t.prototype.addPopupCellEditor=function(e,t){var r=this;"fullRow"===this.beans.gridOptionsService.get("editType")&&console.warn("AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var o=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new i.a(e));var n=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&n.appendChild(this.cellEditorGui);var a=this.beans.popupService,l=this.beans.gridOptionsService.is("stopEditingWhenCellsLoseFocus"),s=null!=t?t:o.getPopupPosition?o.getPopupPosition():"over",c=this.beans.gridOptionsService.is("enableRtl"),u={ePopup:n,column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),position:s,alignSide:c?"right":"left",keepWithinBounds:!0},g=a.positionPopupByComponent.bind(a,u),d=this.beans.localeService.getLocaleTextFunc(),p=a.addPopup({modal:l,eChild:n,closeOnEsc:!0,closedCallback:function(){r.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:g,ariaLabel:d("ariaLabelCellEditor","Cell Editor")});p&&(this.hideEditorPopup=p.hideFunc)},t.prototype.detach=function(){this.eRow.removeChild(this.getGui())},t.prototype.destroy=function(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),e.prototype.destroy.call(this)},t.prototype.clearParentOfValue=function(){var e=this.getGui(),t=this.beans.gridOptionsService.getDocument();e.contains(t.activeElement)&&Object(u.browserSupportsPreventScroll)()&&e.focus({preventScroll:!0}),Object(c.clearElement)(this.getParentOfValue())},t}(n.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var o,n=r(39),i=r(38),a=r(0),l=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},c=function(e){function t(t){var r=e.call(this,'
')||this;return r.params=t,r}return l(t,e),t.prototype.postConstruct=function(){this.gridOptionsService.setDomData(this.getGui(),t.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addKeyDownListener()},t.prototype.addKeyDownListener=function(){var e=this,t=this.getGui(),r=this.params;this.addManagedListener(t,"keydown",(function(t){Object(i.isUserSuppressingKeyboardEvent)(e.gridOptionsService,t,r.node,r.column,!0)||r.onKeyDown(t)}))},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",s([a.e],t.prototype,"postConstruct",null),t}(n.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var o=r(17),n=r(0),i=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=function(){function e(e){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=e}return e.prototype.onDragEnter=function(e){var t=this;if(this.clearColumnsList(),!this.gridOptionsService.is("functionsReadOnly")){var r=e.dragItem.columns;r&&r.forEach((function(e){e.isPrimary()&&(e.isAnyFunctionActive()||(e.isAllowValue()?t.columnsToAggregate.push(e):e.isAllowRowGroup()?t.columnsToGroup.push(e):e.isAllowPivot()&&t.columnsToPivot.push(e)))}))}},e.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?o.a.ICON_PINNED:o.a.ICON_MOVE:null},e.prototype.onDragLeave=function(e){this.clearColumnsList()},e.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},e.prototype.onDragging=function(e){},e.prototype.onDragStop=function(e){this.columnsToAggregate.length>0&&this.columnModel.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnModel.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnModel.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},i([Object(n.a)("columnModel")],e.prototype,"columnModel",void 0),i([Object(n.a)("gridOptionsService")],e.prototype,"gridOptionsService",void 0),e}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return g}));var o,n=r(17),i=r(0),a=r(134),l=r(132),s=r(5),c=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},g=function(e){function t(t,r){var o=e.call(this)||this;return o.pinned=t,o.eContainer=r,o}return c(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){switch(e.pinned){case"left":e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.leftRowContainerCtrl.getContainerElement()],[t.bottomLeftRowContainerCtrl.getContainerElement()],[t.topLeftRowContainerCtrl.getContainerElement()]];break;case"right":e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.rightRowContainerCtrl.getContainerElement()],[t.bottomRightRowContainerCtrl.getContainerElement()],[t.topRightRowContainerCtrl.getContainerElement()]];break;default:e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.centerRowContainerCtrl.getViewportElement()],[t.bottomCenterRowContainerCtrl.getViewportElement()],[t.topCenterRowContainerCtrl.getViewportElement()]]}}))},t.prototype.isInterestedIn=function(e){return e===n.b.HeaderCell||e===n.b.ToolPanel&&this.gridOptionsService.is("allowDragFromColumnsToolPanel")},t.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},t.prototype.getContainer=function(){return this.eContainer},t.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new a.a(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new l.a(this.pinned)),this.dragAndDropService.addDropTarget(this)},t.prototype.getIconName=function(){return this.currentDropListener.getIconName()},t.prototype.isDropColumnInPivotMode=function(e){return this.columnModel.isPivotMode()&&e.dragSource.type===n.b.ToolPanel},t.prototype.onDragEnter=function(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)},t.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},t.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},t.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},u([Object(i.a)("dragAndDropService")],t.prototype,"dragAndDropService",void 0),u([Object(i.a)("columnModel")],t.prototype,"columnModel",void 0),u([Object(i.a)("ctrlsService")],t.prototype,"ctrlsService",void 0),u([i.e],t.prototype,"postConstruct",null),u([i.e],t.prototype,"init",null),t}(s.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var o=r(0),n=r(17),i=r(1),a=r(10),l=r(22),s=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},c=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},u=function(){function e(e,t){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.pinned=e,this.eContainer=t,this.centerContainer=!Object(i.exists)(e)}return e.prototype.init=function(){var e=this;this.ctrlsService.whenReady((function(){e.gridBodyCon=e.ctrlsService.getGridBodyCtrl()}))},e.prototype.getIconName=function(){return this.pinned?n.a.ICON_PINNED:n.a.ICON_MOVE},e.prototype.onDragEnter=function(e){var t=e.dragItem.columns;if(e.dragSource.type===n.b.ToolPanel)this.setColumnsVisible(t,!0,"uiColumnDragged");else{var r=e.dragItem.visibleState,o=(t||[]).filter((function(e){return r[e.getId()]}));this.setColumnsVisible(o,!0,"uiColumnDragged")}this.setColumnsPinned(t,this.pinned,"uiColumnDragged"),this.onDragging(e,!0,!0)},e.prototype.onDragLeave=function(){this.ensureIntervalCleared(),this.lastMovedInfo=null},e.prototype.setColumnsVisible=function(e,t,r){if(void 0===r&&(r="api"),e){var o=e.filter((function(e){return!e.getColDef().lockVisible}));this.columnModel.setColumnsVisible(o,t,r)}},e.prototype.setColumnsPinned=function(e,t,r){if(void 0===r&&(r="api"),e){var o=e.filter((function(e){return!e.getColDef().lockPinned}));this.columnModel.setColumnsPinned(o,t,r)}},e.prototype.onDragStop=function(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null},e.prototype.normaliseX=function(e){this.gridOptionsService.is("enableRtl")&&(e=this.eContainer.clientWidth-e);return this.centerContainer&&(e+=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),e},e.prototype.checkCenterForScrolling=function(e){if(this.centerContainer){var t=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),r=t+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsService.is("enableRtl")?(this.needToMoveRight=er-50):(this.needToMoveLeft=er-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},e.prototype.onDragging=function(e,t,r,o){var n,a=this;if(void 0===e&&(e=this.lastDraggingEvent),void 0===t&&(t=!1),void 0===r&&(r=!1),void 0===o&&(o=!1),o){if(this.lastMovedInfo){var l=this.lastMovedInfo,s=l.columns,c=l.toIndex;this.moveColumns(s,c,"uiColumnMoved",!0)}}else if(this.lastDraggingEvent=e,!Object(i.missing)(e.hDirection)){var u=this.normaliseX(e.x);t||this.checkCenterForScrolling(u);var g=this.normaliseDirection(e.hDirection),d=e.dragSource.type,p=(null===(n=e.dragSource.getDragItem().columns)||void 0===n?void 0:n.filter((function(e){return!e.getColDef().lockPinned||e.getPinned()==a.pinned})))||[];this.attemptMoveColumns({dragSourceType:d,allMovingColumns:p,hDirection:g,mouseX:u,fromEnter:t,fakeEvent:r})}},e.prototype.normaliseDirection=function(e){if(!this.gridOptionsService.is("enableRtl"))return e;switch(e){case n.c.Left:return n.c.Right;case n.c.Right:return n.c.Left;default:console.error("AG Grid: Unknown direction "+e)}},e.prototype.attemptMoveColumns=function(e){var t=e.dragSourceType,r=e.hDirection,o=e.mouseX,i=e.fromEnter,a=e.fakeEvent,s=r===n.c.Left,c=r===n.c.Right,u=e.allMovingColumns;if(t===n.b.HeaderCell){var g=[];u.forEach((function(e){for(var t=null,r=e.getParent();null!=r&&1===r.getDisplayedLeafColumns().length;)t=r,r=r.getParent();null!=t?t.getProvidedColumnGroup().getLeafColumns().forEach((function(e){g.includes(e)||g.push(e)})):g.includes(e)||g.push(e)})),u=g}var d=u.slice();this.columnModel.sortColumnsLikeGridColumns(d);var p=this.calculateValidMoves(d,c,o),h=this.calculateOldIndex(d);if(0!==p.length){var f=p[0],v=null!==h&&!i;if(t==n.b.HeaderCell&&(v=null!==h),v&&!a){if(s&&f>=h)return;if(c&&f<=h)return}for(var m=this.columnModel.getAllDisplayedColumns(),y=[],w=null,b=0;ba.length?[i,a]:[a,i],2))[0],a=n[1],i.forEach((function(e){-1===a.indexOf(e)&&r++}))},n=0;n0){for(var p=0;p0){var h=s[u-1];o=c.indexOf(h)+1}else-1===(o=c.indexOf(s[0]))&&(o=0);var f=[o],v=function(e,t){return e-t};if(t){for(var m=o+1,y=i.length-1;m<=y;)f.push(m),m++;f.sort(v)}else{m=o,y=i.length-1;for(var w=i[m];m<=y&&this.isColumnHidden(n,w);)m++,f.push(m),w=i[m];m=o-1;for(;m>=0;)f.push(m),m--;f.sort(v).reverse()}return f},e.prototype.isColumnHidden=function(e,t){return e.indexOf(t)<0},e.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.needToMoveLeft?this.dragAndDropService.setGhostIcon(n.a.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(n.a.ICON_RIGHT,!0))},e.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(n.a.ICON_MOVE))},e.prototype.moveInterval=function(){var e;this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100);var t=null,r=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?t=r.scrollHorizontally(-e):this.needToMoveRight&&(t=r.scrollHorizontally(e)),0!==t)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var o=this.lastDraggingEvent.dragItem.columns.filter((function(e){return!e.getColDef().lockPinned}));if(o.length>0&&(this.dragAndDropService.setGhostIcon(n.a.ICON_PINNED),this.failedMoveAttempts>7)){var i=this.needToMoveLeft?"left":"right";this.setColumnsPinned(o,i,"uiColumnDragged"),this.dragAndDropService.nudge()}}},s([Object(o.a)("columnModel")],e.prototype,"columnModel",void 0),s([Object(o.a)("dragAndDropService")],e.prototype,"dragAndDropService",void 0),s([Object(o.a)("gridOptionsService")],e.prototype,"gridOptionsService",void 0),s([Object(o.a)("ctrlsService")],e.prototype,"ctrlsService",void 0),s([o.e],e.prototype,"init",null),e}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var o,n=r(5),i=r(0),a=r(20),l=r(6),s=r(87),c=r(22),u=r(133),g=r(34),d=r(89),p=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),h=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},f=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},v=function(e,t){for(var r=0,o=t.length,n=e.length;r=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},m=function(e){function t(t,r){var o=e.call(this,t,r)||this;return o.iconCreated=!1,o.column=t,o}return f(t,e),t.prototype.setComp=function(t,r,o,n){e.prototype.setGui.call(this,r),this.comp=t,this.eButtonShowMainFilter=o,this.eFloatingFilterBody=n,this.setupActive(),this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this)),this.setupFilterChangedListener(),this.addManagedListener(this.column,l.a.EVENT_COL_DEF_CHANGED,this.onColDefChanged.bind(this))},t.prototype.setupActive=function(){var e=this.column.getColDef(),t=!!e.filter,r=!!e.floatingFilter;this.active=t&&r},t.prototype.setupUi=function(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton),this.active&&!this.iconCreated){var e=Object(g.createIconNoSpan)("filter",this.gridOptionsService,this.column);e&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(e))}},t.prototype.setupFocus=function(){this.createManagedBean(new d.a(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},t.prototype.setupAria=function(){var e=this.localeService.getLocaleTextFunc();Object(h.setAriaLabel)(this.eButtonShowMainFilter,e("ariaFilterMenuOpen","Open Filter Menu"))},t.prototype.onTabKeyDown=function(e){if(!(this.gridOptionsService.getDocument().activeElement===this.eGui)){var t=this.focusService.findNextFocusableElement(this.eGui,null,e.shiftKey);if(t)return this.beans.headerNavigationService.scrollToColumn(this.column),e.preventDefault(),void t.focus();var r=this.findNextColumnWithFloatingFilter(e.shiftKey);r&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:r},event:e})&&e.preventDefault()}},t.prototype.findNextColumnWithFloatingFilter=function(e){var t=this.beans.columnModel,r=this.column;do{if(!(r=e?t.getDisplayedColBefore(r):t.getDisplayedColAfter(r)))break}while(!r.getColDef().filter||!r.getColDef().floatingFilter);return r},t.prototype.handleKeyDown=function(t){e.prototype.handleKeyDown.call(this,t);var r=this.getWrapperHasFocus();switch(t.key){case i.a.UP:case i.a.DOWN:r||t.preventDefault();case i.a.LEFT:case i.a.RIGHT:if(r)return;t.stopPropagation();case i.a.ENTER:r&&this.focusService.focusInto(this.eGui)&&t.preventDefault();break;case i.a.ESCAPE:r||this.eGui.focus()}},t.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var t=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),r=!!e.relatedTarget&&Object(u.isElementChildOfClass)(e.relatedTarget,"ag-floating-filter");if(t&&r&&e.target===this.eGui){var o=this.lastFocusEvent,n=!(!o||o.key!==i.a.TAB);if(o&&n){var a=o.shiftKey;this.focusService.focusInto(this.eGui,a)}}var l=this.getRowIndex();this.beans.focusService.setFocusedHeader(l,this.column)}},t.prototype.setupHover=function(){var e=this;this.createManagedBean(new p.a([this.column],this.eGui));var t=function(){if(e.gridOptionsService.is("columnHoverHighlight")){var t=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",t)}};this.addManagedListener(this.eventService,s.a.EVENT_COLUMN_HOVER_CHANGED,t),t()},t.prototype.setupLeft=function(){var e=new c.a(this.column,this.eGui,this.beans);this.createManagedBean(e)},t.prototype.setupFilterButton=function(){var e=this.column.getColDef();this.suppressFilterButton=!!e.floatingFilterComponentParams&&!!e.floatingFilterComponentParams.suppressFilterButton},t.prototype.setupUserComp=function(){var e=this;if(this.active){var t=this.filterManager.getFloatingFilterCompDetails(this.column,(function(){return e.showParentFilter()}));t&&this.setCompDetails(t)}},t.prototype.setCompDetails=function(e){this.userCompDetails=e,this.comp.setCompDetails(e)},t.prototype.showParentFilter=function(){var e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuFactory.showMenuAfterButtonClick(this.column,e,"floatingFilter","filterMenuTab",["filterMenuTab"])},t.prototype.setupSyncWithFilter=function(){var e=this;if(this.active){var t=function(t){var r=e.comp.getFloatingFilterComp();r&&r.then((function(r){if(r){var o=e.filterManager.getCurrentFloatingFilterParentModel(e.column);r.onParentModelChanged(o,t)}}))};this.destroySyncListener=this.addManagedListener(this.column,l.a.EVENT_FILTER_CHANGED,t),this.filterManager.isFilterActive(this.column)&&t(null)}},t.prototype.setupWidth=function(){var e=this,t=function(){var t=e.column.getActualWidth()+"px";e.comp.setWidth(t)};this.addManagedListener(this.column,l.a.EVENT_WIDTH_CHANGED,t),t()},t.prototype.setupFilterChangedListener=function(){this.active&&(this.destroyFilterChangedListener=this.addManagedListener(this.column,l.a.EVENT_FILTER_CHANGED,this.updateFilterButton.bind(this)))},t.prototype.updateFilterButton=function(){!this.suppressFilterButton&&this.comp&&this.comp.setButtonWrapperDisplayed(this.filterManager.isFilterAllowed(this.column))},t.prototype.onColDefChanged=function(){var e,t,r=this,o=this.active;this.setupActive();var n=!o&&this.active;o&&!this.active&&(null===(e=this.destroySyncListener)||void 0===e||e.call(this),null===(t=this.destroyFilterChangedListener)||void 0===t||t.call(this));var i=this.active?this.filterManager.getFloatingFilterCompDetails(this.column,(function(){return r.showParentFilter()})):null,a=this.comp.getFloatingFilterComp();a&&i?a.then((function(e){var t;e&&(null===(t=r.userCompDetails)||void 0===t?void 0:t.componentClass)===i.componentClass||r.updateCompDetails(i,n)})):this.updateCompDetails(i,n)},t.prototype.updateCompDetails=function(e,t){this.setCompDetails(e),this.setupFilterButton(),this.setupUi(),t&&(this.setupSyncWithFilter(),this.setupFilterChangedListener())},v([Object(a.a)("filterManager")],t.prototype,"filterManager",void 0),v([Object(a.a)("columnHoverService")],t.prototype,"columnHoverService",void 0),v([Object(a.a)("menuFactory")],t.prototype,"menuFactory",void 0),t}(n.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var o,n=r(0),i=r(12),a=r(138),l=r(88),s=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},u=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return s(t,e),t.prototype.postConstruct=function(){var e=this,t={addOrRemoveCssClass:function(t,r){return e.addOrRemoveCssClass(t,r)},setHeightAndMinHeight:function(t){e.getGui().style.height=t,e.getGui().style.minHeight=t}};this.createManagedBean(new a.a).setComp(t,this.getGui(),this.getFocusableElement());var r=function(t){e.createManagedBean(t),e.appendChild(t)};r(new l.a("left")),r(new l.a(null)),r(new l.a("right"))},t.TEMPLATE='