/
home
/
henzagold
/
admin_report
/
js
/
File Upload :
llllll
Current File: /home/henzagold/admin_report/js/chunk-1edd9110.bc00ce5a.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1edd9110"],{1283:function(e,t,o){"use strict";o.r(t),o.d(t,"AgGridVue",(function(){return j}));var r=o("2b0e"); /** * vue-class-component v7.2.6 * (c) 2015-present Evan You * @license MIT */function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function s(e){return a(e)||l(e)||u()}function a(e){if(Array.isArray(e)){for(var t=0,o=new Array(e.length);t<e.length;t++)o[t]=e[t];return o}}function l(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function p(){return"undefined"!==typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function c(e,t){d(e,t),Object.getOwnPropertyNames(t.prototype).forEach((function(o){d(e.prototype,t.prototype,o)})),Object.getOwnPropertyNames(t).forEach((function(o){d(e,t,o)}))}function d(e,t,o){var r=o?Reflect.getOwnMetadataKeys(t,o):Reflect.getOwnMetadataKeys(t);r.forEach((function(r){var n=o?Reflect.getOwnMetadata(r,t,o):Reflect.getOwnMetadata(r,t);o?Reflect.defineMetadata(r,n,e,o):Reflect.defineMetadata(r,n,e)}))}var h={__proto__:[]},f=h instanceof Array;function g(e){return function(t,o,r){var n="function"===typeof t?t:t.constructor;n.__decorators__||(n.__decorators__=[]),"number"!==typeof r&&(r=void 0),n.__decorators__.push((function(t){return e(t,o,r)}))}}function v(e){var t=n(e);return null==e||"object"!==t&&"function"!==t}function y(e,t){var o=t.prototype._init;t.prototype._init=function(){var t=this,o=Object.getOwnPropertyNames(e);if(e.$options.props)for(var r in e.$options.props)e.hasOwnProperty(r)||o.push(r);o.forEach((function(o){Object.defineProperty(t,o,{get:function(){return e[o]},set:function(t){e[o]=t},configurable:!0})}))};var r=new t;t.prototype._init=o;var n={};return Object.keys(r).forEach((function(e){void 0!==r[e]&&(n[e]=r[e])})),n}var m=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.name=t.name||e._componentTag||e.name;var o=e.prototype;Object.getOwnPropertyNames(o).forEach((function(e){if("constructor"!==e)if(m.indexOf(e)>-1)t[e]=o[e];else{var r=Object.getOwnPropertyDescriptor(o,e);void 0!==r.value?"function"===typeof r.value?(t.methods||(t.methods={}))[e]=r.value:(t.mixins||(t.mixins=[])).push({data:function(){return i({},e,r.value)}}):(r.get||r.set)&&((t.computed||(t.computed={}))[e]={get:r.get,set:r.set})}})),(t.mixins||(t.mixins=[])).push({data:function(){return y(this,e)}});var n=e.__decorators__;n&&(n.forEach((function(e){return e(t)})),delete e.__decorators__);var s=Object.getPrototypeOf(e.prototype),a=s instanceof r["default"]?s.constructor:r["default"],l=a.extend(t);return E(l,e,a),p()&&c(l,e),l}var w={prototype:!0,arguments:!0,callee:!0,caller:!0};function E(e,t,o){Object.getOwnPropertyNames(t).forEach((function(r){if(!w[r]){var n=Object.getOwnPropertyDescriptor(e,r);if(!n||n.configurable){var i=Object.getOwnPropertyDescriptor(t,r);if(!f){if("cid"===r)return;var s=Object.getOwnPropertyDescriptor(o,r);if(!v(i.value)&&s&&s.value===i.value)return}0,Object.defineProperty(e,r,i)}}}))}function R(e){return"function"===typeof e?C(e):function(t){return C(t,e)}}R.registerHooks=function(e){m.push.apply(m,s(e))};var O=R;var S="undefined"!==typeof Reflect&&"undefined"!==typeof Reflect.getMetadata;function _(e,t,o){if(S&&!Array.isArray(e)&&"function"!==typeof e&&"undefined"===typeof e.type){var r=Reflect.getMetadata("design:type",t,o);r!==Object&&(e.type=r)}}function b(e){return void 0===e&&(e={}),function(t,o){_(e,t,o),g((function(t,o){(t.props||(t.props={}))[o]=e}))(t,o)}}var P=o("2c53"),T=function(){function e(){}return e.getComponentType=function(e,t){if("string"===typeof t){var o=this.searchForComponentInstance(e,t);return o?r["default"].extend(o):(console.error("Could not find component with name of "+t+". Is it in Vue.components?"),null)}return t},e.createAndMountComponent=function(e,t,o){var r={data:{params:Object.freeze(e)},parent:o};o.componentDependencies&&o.componentDependencies.forEach((function(e){return r[e]=o[e]}));var n=new t(r);return n.$mount(),n},e.searchForComponentInstance=function(e,t,o,r){void 0===o&&(o=10),void 0===r&&(r=!1);var n=null,i=e.$parent,s=0;while(!n&&i&&i.$options&&++s<o)n=i.$options.components[t],i=i.$parent;return n||r?n:(console.error("Could not find component with name of "+t+". Is it in Vue.components?"),null)},e}(),D=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),A=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},N=function(e){function t(t){var o=e.call(this)||this;return o.parent=t,o}return D(t,e),t.prototype.createWrapper=function(e){var t=this,o=function(o){function n(){return null!==o&&o.apply(this,arguments)||this}return D(n,o),n.prototype.init=function(e){o.prototype.init.call(this,e)},n.prototype.hasMethod=function(e){return null!=r.getFrameworkComponentInstance()[e]},n.prototype.callMethod=function(e,t){var o=this.getFrameworkComponentInstance(),n=r.getFrameworkComponentInstance();return n[e].apply(o,t)},n.prototype.addMethod=function(e,t){r[e]=t},n.prototype.overrideProcessing=function(e){return t.parent.autoParamsRefresh&&"refresh"===e},n.prototype.processMethod=function(e,t){return"refresh"===e&&(this.getFrameworkComponentInstance().params=t[0]),this.hasMethod(e)?this.callMethod(e,t):"refresh"===e},n.prototype.createComponent=function(o){return t.createComponent(e,o)},n}(I),r=new o;return r},t.prototype.createComponent=function(e,t){var o=T.getComponentType(this.parent,e);if(o)return T.createAndMountComponent(t,o,this.parent)},t.prototype.createMethodProxy=function(e,t,o){return function(){return e.overrideProcessing(t)?e.processMethod(t,arguments):e.hasMethod(t)?e.callMethod(t,arguments):(o&&console.warn("AG Grid: Framework component is missing the method "+t+"()"),null)}},t.prototype.destroy=function(){this.parent=null},t=A([Object(P["b"])("frameworkComponentWrapper")],t),t}(P["a"]),I=function(){function e(){}return e.prototype.getGui=function(){return this.component.$el},e.prototype.destroy=function(){this.getFrameworkComponentInstance()&&"function"===typeof this.getFrameworkComponentInstance().destroy&&this.getFrameworkComponentInstance().destroy(),this.component.$destroy()},e.prototype.getFrameworkComponentInstance=function(){return this.component},e.prototype.init=function(e){this.component=this.createComponent(e)},e}(),G=function(){var e={gridOptions:{default:function(){return{}}},rowDataModel:void 0},t={rowDataModel:function(e,t){this.processChanges("rowData",e,t)}};P["d"].ALL_PROPERTIES.forEach((function(o){e[o]={},t[o]=function(e,t){this.processChanges(o,e,t)}}));var o={prop:"rowDataModel",event:"data-model-changed"};return[e,t,o]},F=function(){function e(){}return e.hasChildColumns=function(e){return e&&e.default&&e.default.length>0},e.mapChildColumnDefs=function(t){return t.default.map((function(t){return e.toColDef(t)}))},e.toColDef=function(t){var o=e.createColDefFromGridColumn(t);return t.children&&t.children.length>0&&(o.children=e.getChildColDefs(t.children)),o},e.getChildColDefs=function(t){return t.map((function(t){return e.createColDefFromGridColumn(t)}))},e.createColDefFromGridColumn=function(e){var t={};return Object.assign(t,e.data.attrs),delete t.children,P["c"].BOOLEAN_PROPERTIES.forEach((function(e){var o=t;""===o[e]&&(o[e]=!0)})),t},e}(),L=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),M=function(e){function t(t){var o=e.call(this)||this;return o.parent=t,o}return L(t,e),t.prototype.frameworkComponent=function(e,t){var o=!!T.searchForComponentInstance(this.parent,e,10,!0),r=o?e:null;if(!r&&t&&t[e]){var n=t[e];o=!!T.searchForComponentInstance(this.parent,n,10,!0),r=o?n:null}return r},t.prototype.isFrameworkComponent=function(e){return"object"===typeof e},t}(P["f"]),x=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),H=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},V=G(),W=V[0],k=V[1],B=V[2],j=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.gridCreated=!1,t.isDestroyed=!1,t.gridReadyFired=!1,t.emitRowModel=null,t}var o;return x(t,e),o=t,t.kebabProperty=function(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},t.prototype.render=function(e){return e("div")},t.prototype.globalEventListener=function(e,t){if(!this.isDestroyed){"gridReady"===e&&(this.gridReadyFired=!0),this.updateModelIfUsed(e);var r=o.kebabProperty(e);this.$listeners[r]?this.$emit(r,t):this.$listeners[e]&&this.$emit(e,t)}},t.prototype.processChanges=function(e,t,o){if(this.gridCreated){if(this.skipChange(e,t,o))return;var r={};r[e]={currentValue:t,previousValue:o},P["d"].processOnChange(r,this.gridOptions,this.gridOptions.api,this.gridOptions.columnApi)}},t.prototype.mounted=function(){var e=this;this.emitRowModel=this.debounce((function(){e.$emit("data-model-changed",Object.freeze(e.getRowData()))}),20);var t=new N(this),o=P["d"].copyAttributesToGridOptions(this.gridOptions,this);this.checkForBindingConflicts(),o.rowData=this.getRowDataBasedOnBindings(),F.hasChildColumns(this.$slots)&&(o.columnDefs=F.mapChildColumnDefs(this.$slots));var r={globalEventListener:this.globalEventListener.bind(this),frameworkOverrides:new M(this),providedBeanInstances:{frameworkComponentWrapper:t},modules:this.modules};new P["e"](this.$el,o,r),this.gridCreated=!0},t.prototype.destroyed=function(){this.gridCreated&&(this.gridOptions.api&&this.gridOptions.api.destroy(),this.isDestroyed=!0)},t.prototype.checkForBindingConflicts=function(){var e=this;(e.rowData||this.gridOptions.rowData)&&e.rowDataModel&&console.warn("AG Grid: Using both rowData and rowDataModel. rowData will be ignored.")},t.prototype.getRowData=function(){var e=[];return this.gridOptions.api.forEachNode((function(t){e.push(t.data)})),e},t.prototype.updateModelIfUsed=function(e){this.gridReadyFired&&this.$listeners["data-model-changed"]&&-1!==o.ROW_DATA_EVENTS.indexOf(e)&&this.emitRowModel&&this.emitRowModel()},t.prototype.getRowDataBasedOnBindings=function(){var e=this,t=e.rowDataModel;return t||(e.rowData?e.rowData:e.gridOptions.rowData)},t.prototype.skipChange=function(e,t,o){if(this.gridReadyFired&&"rowData"===e&&this.$listeners["data-model-changed"]){if(t===o)return!0;if(t&&o){var r=t,n=o;if(r.length===n.length){for(var i=0;i<r.length;i++)if(r[i]!==n[i])return!1;return!0}}}return!1},t.prototype.debounce=function(e,t){var o;return function(){var r=function(){e()};window.clearTimeout(o),o=window.setTimeout(r,t)}},t.ROW_DATA_EVENTS=["rowDataChanged","rowDataUpdated","cellValueChanged","rowValueChanged"],H([b(Boolean)],t.prototype,"autoParamsRefresh",void 0),H([b({default:function(){return[]}})],t.prototype,"componentDependencies",void 0),H([b({default:function(){return[]}})],t.prototype,"modules",void 0),t=o=H([Object(P["b"])("agGridVue"),O({props:W,watch:k,model:B})],t),t}(r["default"])},"2c53":function(e,t,o){"use strict";(function(e){ /** * @ag-grid-community/all-modules - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */ /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */ function r(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 s(e){return null==e||0===e.length}function a(e){return null!=e&&"function"===typeof e.toString?e.toString():null}function l(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 u(e){if(void 0!==e)return null!==e&&""!==e&&("boolean"===typeof e?e:/true/i.test(e))}function p(e){if(null!=e&&""!==e)return e}function c(e,t){return null==e&&null==t||(null!=e||null==t)&&((null==e||null!=t)&&e===t)}function d(e,t){var o=e?JSON.stringify(e):null,r=t?JSON.stringify(t):null;return o===r}function h(e,t,o){void 0===o&&(o=!1);var r=null==e,n=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),r&&n)return 0;if(r)return-1;if(n)return 1;function i(e,t){return e>t?1:e<t?-1:0}if("string"!==typeof e)return i(e,t);if(!o)return i(e,t);try{return e.localeCompare(t)}catch(s){return i(e,t)}}function f(e){if(e instanceof Set||e instanceof Map){var t=[];return e.forEach((function(e){return t.push(e)})),t}return Object.values(e)}o.d(t,"a",(function(){return by})),o.d(t,"b",(function(){return re})),o.d(t,"c",(function(){return _t})),o.d(t,"d",(function(){return It})),o.d(t,"e",(function(){return Oy})),o.d(t,"f",(function(){return Jf}));var g=Object.freeze({__proto__:null,makeNull:r,exists:n,missing:i,missingOrEmpty:s,toStringOrNull:a,attrToNumber:l,attrToBoolean:u,attrToString:p,referenceCompare:c,jsonEquals:d,defaultComparator:h,values:f}),v=function(){function e(){this.existingKeys={}}return e.prototype.addExistingKeys=function(e){for(var t=0;t<e.length;t++)this.existingKeys[e[t]]=!0},e.prototype.getUniqueKey=function(e,t){e=a(e);var o=0;while(1){var r=void 0;if(e?(r=e,0!==o&&(r+="_"+o)):t?(r=t,0!==o&&(r+="_"+o)):r=""+o,!this.existingKeys[r])return this.existingKeys[r]=!0,r;o++}},e}(); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */ /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */ function y(e,t){null!=e&&(Array.isArray(e)?e.forEach((function(e,o){return t(""+o,e)})):Object.keys(e).forEach((function(o){return t(o,e[o])})))}function m(e){for(var t={},o=Object.keys(e),r=0;r<o.length;r++){var n=o[r],i=e[n];t[n]=i}return t}function C(e){return JSON.parse(JSON.stringify(e))}function w(e,t){if(e){var o=e,r={};return Object.keys(o).forEach((function(e){if(!(t&&t.indexOf(e)>=0)){var n=o[e],i=F(n)&&n.constructor===Object;r[e]=i?w(n):n}})),r}}function E(e,t){return e[t]}function R(e,t,o){e[t]=o}function O(e,t){for(var o=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];o.forEach((function(o){return S(e,t,o)}))}function S(e,t,o,r){var n=E(e,o);void 0!==n&&R(t,o,r?r(n):n)}function _(e){var t={};return e.filter((function(e){return null!=e})).forEach((function(e){Object.keys(e).forEach((function(e){return t[e]=null}))})),Object.keys(t)}function b(e){if(!e)return[];var t=Object;if("function"===typeof t.values)return t.values(e);var o=[];for(var r in e)e.hasOwnProperty(r)&&e.propertyIsEnumerable(r)&&o.push(e[r]);return o}function P(e,t,o,r){void 0===o&&(o=!0),void 0===r&&(r=!1),n(t)&&y(t,(function(t,n){var i=e[t];if(i!==n){if(r){var s=null==i&&null!=n;if(s){var a="object"===typeof n&&n.constructor===Object,l=a;l&&(i={},e[t]=i)}}F(n)&&F(i)&&!Array.isArray(i)?P(i,n,o,r):(o||void 0!==n)&&(e[t]=n)}}))}function T(e){return i(e)||0===Object.keys(e).length}function D(e,t,o){if(null==e)return o;var r=t.split("."),n=e;while(r.length>1)if(n=n[r.shift()],null==n)return o;var i=n[r[0]];return null!=i?i:o}function A(e,t,o){if(null!=e){var r=t.split("."),n=e;while(r.length>1)if(n=n[r.shift()],null==n)return;n[r[0]]=o}}function N(e){return Object.freeze(e),f(e).forEach((function(e){(F(e)||"function"===typeof e)&&N(e)})),e}function I(e,t,o){if(t&&e){if(!o)return e[t];for(var r=t.split("."),n=e,i=0;i<r.length;i++){if(null==n)return;n=n[r[i]]}return n}}function G(e,t){Object.keys(e).forEach((function(t){var o=e[t];"object"===typeof o&&(e[t]=void 0)}));var o=Object.getPrototypeOf(e),r={};Object.keys(o).forEach((function(e){var n=o[e];if("function"===typeof n){var i=function(){console.warn("AG Grid: "+t+" function "+e+"() cannot be called as the grid has been destroyed.\n Please don't call grid API functions on destroyed grids - as a matter of fact you shouldn't\n be keeping the API reference, your application has a memory leak! Remove the API reference\n when the grid is destroyed.")};r[e]={value:i,writable:!0}}})),Object.defineProperties(e,r)}function F(e){return"object"===typeof e&&null!==e}var L=Object.freeze({__proto__:null,iterateObject:y,cloneObject:m,deepCloneObject:C,deepCloneDefinition:w,getProperty:E,setProperty:R,copyPropertiesIfPresent:O,copyPropertyIfPresent:S,getAllKeysInObjects:_,getAllValuesInObject:b,mergeDeep:P,missingOrEmptyObject:T,get:D,set:A,deepFreeze:N,getValueUsingField:I,removeAllReferences:G,isNonNullObject:F}),M={}; /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */function x(e,t){M[t]||(e(),M[t]=!0)}function H(e){if(e.name)return e.name;var t=/function\s+([^\(]+)/.exec(e.toString());return t&&2===t.length?t[1].trim():null}function V(e){return!!(e&&e.constructor&&e.call&&e.apply)}function W(e){U(e,400)}var k=[],B=!1;function j(e){k.push(e),B||(B=!0,window.setTimeout((function(){var e=k.slice();k.length=0,B=!1,e.forEach((function(e){return e()}))}),0))}function U(e,t){void 0===t&&(t=0),e.length>0&&window.setTimeout((function(){return e.forEach((function(e){return e()}))}),t)}function z(e,t,o){var r;return void 0===o&&(o=!1),function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var s=this,a=o&&!r;window.clearTimeout(r),r=window.setTimeout((function(){r=null,o||e.apply(s,n)}),t),a&&e.apply(s,n)}}function K(e,t){var o=0;return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=this,s=(new Date).getTime();s-o<t||(o=s,e.apply(i,r))}}function Y(e,t,o,r){void 0===o&&(o=100);var n=(new Date).getTime(),i=null,s=!1,a=function(){var a=(new Date).getTime()-n>o;(e()||a)&&(t(),s=!0,null!=i&&(window.clearInterval(i),i=null),a&&r&&console.warn(r))};a(),s||(i=window.setInterval(a,10))}function q(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduce((function(e,t){return t(e)}),t)}}function X(e){e&&e()}var Q=function(){},J=Object.freeze({__proto__:null,doOnce:x,getFunctionName:H,isFunction:V,executeInAWhile:W,executeNextVMTurn:j,executeAfter:U,debounce:z,throttle:K,waitUntil:Y,compose:q,callIfPresent:X,noop:Q}),Z=function(){function e(e,t){if(this.beanWrappers={},this.destroyed=!1,e&&e.beanClasses){this.contextParams=e,this.logger=t,this.logger.log(">> creating ag-Application Context"),this.createBeans();var o=this.getBeanInstances();this.wireBeans(o),this.logger.log(">> ag-Application Context ready - component is alive")}}return e.prototype.getBeanInstances=function(){return f(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"),n(t)&&e.forEach(t),this.callLifeCycleMethods(e,"postConstructMethods")},e.prototype.createBeans=function(){var e=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),y(this.beanWrappers,(function(t,o){var r;o.bean.__agBeanMetaData&&o.bean.__agBeanMetaData.autowireMethods&&o.bean.__agBeanMetaData.autowireMethods.agConstructor&&(r=o.bean.__agBeanMetaData.autowireMethods.agConstructor);var n=e.getBeansForParameters(r,o.bean.name),i=$(o.bean,n);o.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 o=void 0;return o=e.prototype.constructor?H(e.prototype.constructor):""+e,void console.error("Context item "+o+" is not a bean")}var r={bean:e,beanInstance:null,beanName:t.beanName};this.beanWrappers[t.beanName]=r},e.prototype.autoWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(o,r){var n=o.agClassAttributes;n&&n.forEach((function(o){var n=t.lookupBeanInstance(r,o.beanName,o.optional);e[o.attributeName]=n}))}))}))},e.prototype.methodWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(o,r){y(o.autowireMethods,(function(o,n){if("agConstructor"!==o){var i=t.getBeansForParameters(n,r);e[o].apply(e,i)}}))}))}))},e.prototype.forEachMetaDataInHierarchy=function(e,t){var o=Object.getPrototypeOf(e);while(null!=o){var r=o.constructor;if(r.hasOwnProperty("__agBeanMetaData")){var n=r.__agBeanMetaData,i=this.getBeanName(r);t(n,i)}o=Object.getPrototypeOf(o)}},e.prototype.getBeanName=function(e){if(e.__agBeanMetaData&&e.__agBeanMetaData.beanName)return e.__agBeanMetaData.beanName;var t=e.toString(),o=t.substring(9,t.indexOf("("));return o},e.prototype.getBeansForParameters=function(e,t){var o=this,r=[];return e&&y(e,(function(e,n){var i=o.lookupBeanInstance(t,n);r[Number(e)]=i})),r},e.prototype.lookupBeanInstance=function(e,t,o){if(void 0===o&&(o=!1),"context"===t)return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(t))return this.contextParams.providedBeanInstances[t];var r=this.beanWrappers[t];return r?r.beanInstance:(o||console.error("AG Grid: unable to find bean reference "+t+" while initialising "+e),null)},e.prototype.callLifeCycleMethods=function(e,t){var o=this;e.forEach((function(e){return o.callLifeCycleMethodsOnBean(e,t)}))},e.prototype.callLifeCycleMethodsOnBean=function(e,t,o){var r={};this.forEachMetaDataInHierarchy(e,(function(e){var n=e[t];n&&n.forEach((function(e){e!=o&&(r[e]=!0)}))}));var n=Object.keys(r);n.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,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 o=e;"function"===typeof o.destroy&&o.destroy()})),[]):[]},e}();function $(e,t){var o=[null].concat(t),r=e.bind.apply(e,o);return new r}function ee(e,t,o){var r=le(e.constructor);r.preConstructMethods||(r.preConstructMethods=[]),r.preConstructMethods.push(t)}function te(e,t,o){var r=le(e.constructor);r.postConstructMethods||(r.postConstructMethods=[]),r.postConstructMethods.push(t)}function oe(e,t,o){var r=le(e.constructor);r.preDestroyMethods||(r.preDestroyMethods=[]),r.preDestroyMethods.push(t)}function re(e){return function(t){var o=le(t);o.beanName=e}}function ne(e){return function(t,o,r){se(t,e,!1,t,o,null)}}function ie(e){return function(t,o,r){se(t,e,!0,t,o,null)}}function se(e,t,o,r,n,i){if(null!==t)if("number"!==typeof i){var s=le(e.constructor);s.agClassAttributes||(s.agClassAttributes=[]),s.agClassAttributes.push({attributeName:n,beanName:t,optional:o})}else console.error("AG Grid: Autowired should be on an attribute");else console.error("AG Grid: Autowired name should not be null")}function ae(e){return function(t,o,r){var n,i="function"==typeof t?t:t.constructor;if("number"===typeof r){var s=void 0;o?(n=le(i),s=o):(n=le(i),s="agConstructor"),n.autowireMethods||(n.autowireMethods={}),n.autowireMethods[s]||(n.autowireMethods[s]={}),n.autowireMethods[s][r]=e}}}function le(e){return e.hasOwnProperty("__agBeanMetaData")||(e.__agBeanMetaData={}),e.__agBeanMetaData} /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */var ue,pe=function(){return pe=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},pe.apply(this,arguments)},ce=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},de=function(e,t){return function(o,r){t(o,r,e)}},he=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,o,r){if(void 0===r&&(r=null),this.frameworkOverrides=o,this.gridOptionsWrapper=t,r){var n=t.useAsyncEvents();this.addGlobalListener(r,n)}},e.prototype.getListeners=function(e,t,o){var r=t?this.allAsyncListeners:this.allSyncListeners,n=r.get(e);return!n&&o&&(n=new Set,r.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,o){void 0===o&&(o=!1),this.getListeners(e,o,!0).add(t)},e.prototype.removeEventListener=function(e,t,o){void 0===o&&(o=!1);var r=this.getListeners(e,o,!1);if(r&&(r.delete(t),0===r.size)){var n=o?this.allAsyncListeners:this.allSyncListeners;n.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;this.gridOptionsWrapper&&(t=pe(pe({},e),{api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()})),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 o=this,r=e.type,n=function(r){return r.forEach((function(r){t?o.dispatchAsync((function(){return r(e)})):r(e)}))},i=this.getListeners(r,t,!1);i&&n(i);var s=t?this.globalAsyncListeners:this.globalSyncListeners;s.forEach((function(n){t?o.dispatchAsync((function(){return o.frameworkOverrides.dispatchEvent(r,(function(){return n(r,e)}),!0)})):o.frameworkOverrides.dispatchEvent(r,(function(){return n(r,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()}))},ce([de(0,ae("loggerFactory")),de(1,ae("gridOptionsWrapper")),de(2,ae("frameworkOverrides")),de(3,ae("globalEventListener"))],e.prototype,"setBeans",null),e=ce([re("eventService")],e),e}(),fe=function(){function e(){}return e.ROW_BUFFER_SIZE=10,e.LAYOUT_INTERVAL=500,e.BATCH_WAIT_MILLIS=50,e.EXPORT_TYPE_DRAG_COPY="dragCopy",e.EXPORT_TYPE_CLIPBOARD="clipboard",e.EXPORT_TYPE_EXCEL="excel",e.EXPORT_TYPE_CSV="csv",e.ROW_MODEL_TYPE_INFINITE="infinite",e.ROW_MODEL_TYPE_VIEWPORT="viewport",e.ROW_MODEL_TYPE_CLIENT_SIDE="clientSide",e.ROW_MODEL_TYPE_SERVER_SIDE="serverSide",e.ALWAYS="always",e.ONLY_WHEN_GROUPING="onlyWhenGrouping",e.PINNED_TOP="top",e.PINNED_BOTTOM="bottom",e.DOM_LAYOUT_NORMAL="normal",e.DOM_LAYOUT_PRINT="print",e.DOM_LAYOUT_AUTO_HEIGHT="autoHeight",e.GROUP_AUTO_COLUMN_ID="ag-Grid-AutoColumn",e.SOURCE_PASTE="paste",e.PINNED_RIGHT="right",e.PINNED_LEFT="left",e.SORT_ASC="asc",e.SORT_DESC="desc",e.INPUT_SELECTOR="input, select, button, textarea",e.FOCUSABLE_SELECTOR="[tabindex], input, select, button, textarea",e.FOCUSABLE_EXCLUDE=".ag-hidden, .ag-hidden *, [disabled], .ag-disabled, .ag-disabled *",e}();(function(e){e["CommunityCoreModule"]="@ag-grid-community/core",e["CommunityAllModules"]="@ag-grid-community/all",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["EnterpriseAllModules"]="@ag-grid-enterprise/all",e["RowGroupingModule"]="@ag-grid-enterprise/row-grouping",e["ColumnToolPanelModule"]="@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",e["PolymerModule"]="@ag-grid-community/polymer"})(ue||(ue={})); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */ var ge=function(){function e(){}return e.register=function(t,o){void 0===o&&(o=!0),e.modulesMap[t.moduleName]=t,void 0===e.moduleBased?e.moduleBased=o:e.moduleBased!==o&&x((function(){console.warn("AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms."),console.warn("Please see https://www.ag-grid.com/javascript-grid/packages-modules/ for more information.")}),"ModulePackageCheck")},e.registerModules=function(t,o){void 0===o&&(o=!0),t&&t.forEach((function(t){return e.register(t,o)}))},e.assertRegistered=function(t,o){if(this.isRegistered(t))return!0;var r,n=o+t;return r=e.moduleBased?"AG Grid: unable to use "+o+" as module "+t+" is not present. Please see: https://www.ag-grid.com/javascript-grid/modules/":"AG Grid: unable to use "+o+" as package 'ag-grid-enterprise' is not present. Please see: https://www.ag-grid.com/javascript-grid/packages/",x((function(){console.warn(r)}),n),!1},e.isRegistered=function(t){return!!e.modulesMap[t]},e.getRegisteredModules=function(){return f(e.modulesMap)},e.isPackageBased=function(){return!e.moduleBased},e.modulesMap={},e}(),ve=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},ye=0,me=function(){function e(e,t,o,r){this.instanceId=ye++,this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new he,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=e,this.userProvidedColDef=t,this.colId=o,this.primary=r,this.setState(e)}return e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.setState=function(e){void 0!==e.sort?e.sort!==fe.SORT_ASC&&e.sort!==fe.SORT_DESC||(this.sort=e.sort):e.initialSort!==fe.SORT_ASC&&e.initialSort!==fe.SORT_DESC||(this.sort=e.initialSort);var t=l(e.sortIndex),o=l(e.initialSortIndex);void 0!==t?null!==t&&(this.sortIndex=t):null!==o&&(this.sortIndex=o);var r=u(e.hide),n=u(e.initialHide);this.visible=void 0!==r?!r:!n,void 0!==e.pinned?this.setPinned(e.pinned):this.setPinned(e.initialPinned);var i=l(e.flex),s=l(e.initialFlex);void 0!==i?this.flex=i:void 0!==s&&(this.flex=s)},e.prototype.setColDef=function(t,o){this.colDef=t,this.userProvidedColDef=o,this.initMinAndMaxWidths(),this.initDotNotation(),this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_COL_DEF_CHANGED,"api"))},e.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},e.prototype.setParent=function(e){this.parent=e},e.prototype.getParent=function(){return this.parent},e.prototype.setOriginalParent=function(e){this.originalParent=e},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.initialise=function(){this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.validate()},e.prototype.initDotNotation=function(){var e=this.gridOptionsWrapper.isSuppressFieldDotNotation();this.fieldContainsDots=n(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!e,this.tooltipFieldContainsDots=n(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.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(i(this.colDef)||i(this.colDef.showRowGroup))return!1;var t=!0===this.colDef.showRowGroup,o=this.colDef.showRowGroup===e;return t||o},e.prototype.isPrimary=function(){return this.primary},e.prototype.isFilterAllowed=function(){var e=!!this.colDef.filter||!!this.colDef.filterFramework;return e},e.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},e.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},e.prototype.validate=function(){var e=this.colDef;function t(e,t,o){x((function(){o?console.warn(e,o):x((function(){return console.warn(e)}),t)}),t)}var o=this.gridOptionsWrapper.isRowModelDefault();if(o&&!ge.isRegistered(ue.RowGroupingModule)){var r=["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"];r.forEach((function(o){n(e[o])&&(ge.isPackageBased()?t("AG Grid: "+o+" is only valid in ag-grid-enterprise, your column definition should not have "+o,"ColumnRowGroupingMissing"+o):t("AG Grid: "+o+" is only valid with AG Grid Enterprise Module "+ue.RowGroupingModule+" - your column definition should not have "+o,"ColumnRowGroupingMissing"+o))}))}if(ge.isRegistered(ue.RichSelectModule)||"agRichSelect"!==this.colDef.cellEditor&&"agRichSelectCellEditor"!==this.colDef.cellEditor||(ge.isPackageBased()?t("AG Grid: "+this.colDef.cellEditor+" can only be used with ag-grid-enterprise","ColumnRichSelectMissing"):t("AG Grid: "+this.colDef.cellEditor+" can only be used with AG Grid Enterprise Module "+ue.RichSelectModule,"ColumnRichSelectMissing")),this.gridOptionsWrapper.isTreeData()){var i=["rowGroup","rowGroupIndex","pivot","pivotIndex"];i.forEach((function(o){n(e[o])&&t("AG Grid: "+o+" is not possible when doing tree data, your column definition should not have "+o,"TreeDataCannotRowGroup")}))}n(this.colDef.width)&&"number"!==typeof this.colDef.width&&t("AG Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck_asdfawef"),e.pinnedRowCellRenderer&&t("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),e.pinnedRowCellRendererParams&&t("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),e.pinnedRowCellRendererFramework&&t("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),e.pinnedRowValueGetter&&t("AG Grid: pinnedRowCellRenderer is deprecated, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue.","colDef.pinnedRowCellRenderer-deprecated")},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.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},e.prototype.isSuppressNavigable=function(e){if("boolean"===typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"===typeof this.colDef.suppressNavigable){var t=this.createColumnFunctionCallbackParams(e),o=this.colDef.suppressNavigable;return o(t)}return!1},e.prototype.isCellEditable=function(e){return!(e.group&&!this.gridOptionsWrapper.isEnableGroupEdit())&&this.isColumnFunc(e,this.colDef.editable)},e.prototype.isSuppressFillHandle=function(){return!!u(this.colDef.suppressFillHandle)},e.prototype.isAutoHeight=function(){return!!u(this.colDef.autoHeight)},e.prototype.isAutoHeaderHeight=function(){return!!u(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!!u(this.colDef.resizable)},e.prototype.isColumnFunc=function(e,t){if("boolean"===typeof t)return t;if("function"===typeof t){var o=this.createColumnFunctionCallbackParams(e),r=t;return r(o)}return!1},e.prototype.setMoving=function(t,o){void 0===o&&(o="api"),this.moving=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MOVING_CHANGED,o))},e.prototype.createColumnEvent=function(e,t){return{type:e,column:this,columns:[this],source:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}},e.prototype.isMoving=function(){return this.moving},e.prototype.getSort=function(){return this.sort},e.prototype.setSort=function(t,o){void 0===o&&(o="api"),this.sort!==t&&(this.sort=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_SORT_CHANGED,o)))},e.prototype.setMenuVisible=function(t,o){void 0===o&&(o="api"),this.menuVisible!==t&&(this.menuVisible=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MENU_VISIBLE_CHANGED,o)))},e.prototype.isMenuVisible=function(){return this.menuVisible},e.prototype.isSortAscending=function(){return this.sort===fe.SORT_ASC},e.prototype.isSortDescending=function(){return this.sort===fe.SORT_DESC},e.prototype.isSortNone=function(){return i(this.sort)},e.prototype.isSorting=function(){return n(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(t,o){void 0===o&&(o="api"),this.oldLeft=this.left,this.left!==t&&(this.left=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LEFT_CHANGED,o)))},e.prototype.isFilterActive=function(){return this.filterActive},e.prototype.setFilterActive=function(t,o,r){void 0===o&&(o="api"),this.filterActive!==t&&(this.filterActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FILTER_ACTIVE_CHANGED,o)));var n=this.createColumnEvent(e.EVENT_FILTER_CHANGED,o);r&&P(n,r),this.eventService.dispatchEvent(n)},e.prototype.setPinned=function(e){!0===e||e===fe.PINNED_LEFT?this.pinned=fe.PINNED_LEFT:e===fe.PINNED_RIGHT?this.pinned=fe.PINNED_RIGHT:this.pinned=null},e.prototype.setFirstRightPinned=function(t,o){void 0===o&&(o="api"),this.firstRightPinned!==t&&(this.firstRightPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FIRST_RIGHT_PINNED_CHANGED,o)))},e.prototype.setLastLeftPinned=function(t,o){void 0===o&&(o="api"),this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LAST_LEFT_PINNED_CHANGED,o)))},e.prototype.isFirstRightPinned=function(){return this.firstRightPinned},e.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},e.prototype.isPinned=function(){return this.pinned===fe.PINNED_LEFT||this.pinned===fe.PINNED_RIGHT},e.prototype.isPinnedLeft=function(){return this.pinned===fe.PINNED_LEFT},e.prototype.isPinnedRight=function(){return this.pinned===fe.PINNED_RIGHT},e.prototype.getPinned=function(){return this.pinned},e.prototype.setVisible=function(t,o){void 0===o&&(o="api");var r=!0===t;this.visible!==r&&(this.visible=r,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VISIBLE_CHANGED,o)))},e.prototype.isVisible=function(){return this.visible},e.prototype.getColDef=function(){return this.colDef},e.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},e.prototype.getColId=function(){return this.colId},e.prototype.getId=function(){return this.getColId()},e.prototype.getUniqueId=function(){return this.getId()},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){var t={node:e,data:e.data,colDef:this.colDef,column:this,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};return t},e.prototype.getColSpan=function(e){if(i(this.colDef.colSpan))return 1;var t=this.createBaseColDefParams(e),o=this.colDef.colSpan(t);return Math.max(o,1)},e.prototype.getRowSpan=function(e){if(i(this.colDef.rowSpan))return 1;var t=this.createBaseColDefParams(e),o=this.colDef.rowSpan(t);return Math.max(o,1)},e.prototype.setActualWidth=function(e,t,o){void 0===t&&(t="api"),void 0===o&&(o=!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),o||this.fireColumnWidthChangedEvent(t))},e.prototype.fireColumnWidthChangedEvent=function(t){this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_WIDTH_CHANGED,t))},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"),n(this.minWidth)&&this.setActualWidth(this.minWidth,e)},e.prototype.setRowGroupActive=function(t,o){void 0===o&&(o="api"),this.rowGroupActive!==t&&(this.rowGroupActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_ROW_GROUP_CHANGED,o)))},e.prototype.isRowGroupActive=function(){return this.rowGroupActive},e.prototype.setPivotActive=function(t,o){void 0===o&&(o="api"),this.pivotActive!==t&&(this.pivotActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_PIVOT_CHANGED,o)))},e.prototype.isPivotActive=function(){return this.pivotActive},e.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},e.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},e.prototype.setValueActive=function(t,o){void 0===o&&(o="api"),this.aggregationActive!==t&&(this.aggregationActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VALUE_CHANGED,o)))},e.prototype.isValueActive=function(){return this.aggregationActive},e.prototype.isAllowPivot=function(){return!0===this.colDef.enablePivot},e.prototype.isAllowValue=function(){return!0===this.colDef.enableValue},e.prototype.isAllowRowGroup=function(){return!0===this.colDef.enableRowGroup},e.prototype.getMenuTabs=function(e){var t=this.getColDef().menuTabs;return null==t&&(t=e),t},e.prototype.isLockPosition=function(){return console.warn("AG Grid: since v21, col.isLockPosition() should not be used, please use col.getColDef().lockPosition instead."),!!this.colDef&&!!this.colDef.lockPosition},e.prototype.isLockVisible=function(){return console.warn("AG Grid: since v21, col.isLockVisible() should not be used, please use col.getColDef().lockVisible instead."),!!this.colDef&&!!this.colDef.lockVisible},e.prototype.isLockPinned=function(){return console.warn("AG Grid: since v21, col.isLockPinned() should not be used, please use col.getColDef().lockPinned instead."),!!this.colDef&&!!this.colDef.lockPinned},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",ve([ne("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ve([ne("columnUtils")],e.prototype,"columnUtils",void 0),ve([te],e.prototype,"initialise",null),e}(); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */ /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */ function Ce(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var o=0;o<e.length;o++){var r=e[o];if(n(r))return r}return null}function we(e){return null!=e&&e.length>0}function Ee(e){if(e&&e.length)return e[e.length-1]}function Re(e,t,o){return null==e&&null==t||null!=e&&null!=t&&e.length===t.length&&e.every((function(e,r){return o?o(e,t[r]):t[r]===e}))}function Oe(e,t){return Re(e,t)}function Se(e,t){return Re(e,t)}function _e(e){return e.sort((function(e,t){return e-t}))}function be(e,t){if(e)for(var o=e.length-2;o>=0;o--){var r=e[o]===t,n=e[o+1]===t;r&&n&&e.splice(o+1,1)}}function Pe(e,t){var o=e.indexOf(t);o>=0&&e.splice(o,1)}function Te(e,t){t.forEach((function(t){return Pe(e,t)}))}function De(e,t,o){e.splice(o,0,t)}function Ae(e,t,o){if(null!=e&&null!=t)for(var r=t.length-1;r>=0;r--){var n=t[r];De(e,n,o)}}function Ne(e,t,o){Te(e,t),t.slice().reverse().forEach((function(t){return De(e,t,o)}))}function Ie(e,t){return e.indexOf(t)>-1}function Ge(e){return[].concat.apply([],e)}function Fe(e,t){null!=t&&null!=e&&t.forEach((function(t){return e.push(t)}))}function Le(e){return e.map(a)}function Me(e,t){if(null!=e)for(var o=e.length-1;o>=0;o--)t(e[o],o)}var xe=Object.freeze({__proto__:null,firstExistingValue:Ce,existsAndNotEmpty:we,last:Ee,areEqual:Re,compareArrays:Oe,shallowCompare:Se,sortNumerically:_e,removeRepeatsFromArray:be,removeFromArray:Pe,removeAllFromArray:Te,insertIntoArray:De,insertArrayIntoArray:Ae,moveInArray:Ne,includes:Ie,flatten:Ge,pushAll:Fe,toStrings:Le,forEachReverse:Me}),He=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Ve=function(){function e(e,t,o,r){this.displayedChildren=[],this.localEventService=new he,this.groupId=t,this.instanceId=o,this.providedColumnGroup=e,this.pinned=r}return e.createUniqueId=function(e,t){return e+"_"+t},e.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},e.prototype.getParent=function(){return this.parent},e.prototype.setParent=function(e){this.parent=e},e.prototype.getUniqueId=function(){return e.createUniqueId(this.groupId,this.instanceId)},e.prototype.isEmptyGroup=function(){return 0===this.displayedChildren.length},e.prototype.isMoving=function(){var e=this.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.gridOptionsWrapper.isEnableRtl()){var t=Ee(this.displayedChildren),o=t.getLeft();this.setLeft(o)}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.getInstanceId=function(){return this.instanceId},e.prototype.isChildInThisGroupDeepSearch=function(t){var o=!1;return this.children.forEach((function(r){t===r&&(o=!0),r instanceof e&&r.isChildInThisGroupDeepSearch(t)&&(o=!0)})),o},e.prototype.getActualWidth=function(){var e=0;return this.displayedChildren&&this.displayedChildren.forEach((function(t){e+=t.getActualWidth()})),e},e.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var e=!1;return this.displayedChildren.forEach((function(t){t.isResizable()&&(e=!0)})),e},e.prototype.getMinWidth=function(){var e=0;return this.displayedChildren.forEach((function(t){e+=t.getMinWidth()||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(o){o instanceof me?t.push(o):o instanceof e&&o.addDisplayedLeafColumns(t)}))},e.prototype.addLeafColumns=function(t){this.children.forEach((function(o){o instanceof me?t.push(o):o instanceof e&&o.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.getOriginalColumnGroup=function(){return console.warn("AG Grid: columnGroup.getOriginalColumnGroup() is deprecated due to a method rename, use columnGroup.getProvidedColumnGroup() instead"),this.getProvidedColumnGroup()},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=[];var o=this;while(null!=o&&o.isPadding())o=o.getParent();var r=!!o&&o.providedColumnGroup.isExpandable();if(!r)return this.displayedChildren=this.children,void this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED));this.children.forEach((function(r){var n=r instanceof e&&(!r.displayedChildren||!r.displayedChildren.length);if(!n){var i=r.getColumnGroupShow();switch(i){case e.HEADER_GROUP_SHOW_OPEN:o.providedColumnGroup.isExpanded()&&t.displayedChildren.push(r);break;case e.HEADER_GROUP_SHOW_CLOSED:o.providedColumnGroup.isExpanded()||t.displayedChildren.push(r);break;default:t.displayedChildren.push(r);break}}})),this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED))},e.HEADER_GROUP_SHOW_OPEN="open",e.HEADER_GROUP_SHOW_CLOSED="closed",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",He([ne("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(),We=function(){function e(e,t,o,r){this.localEventService=new he,this.expandable=!1,this.colGroupDef=e,this.groupId=t,this.expanded=!!e&&!!e.openByDefault,this.padding=o,this.level=r}return e.prototype.reset=function(e,t){this.colGroupDef=e,this.level=t,this.originalParent=null,this.children=void 0,this.expandable=void 0},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 o={type:e.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(o)},e.prototype.isExpandable=function(){return this.expandable},e.prototype.isExpanded=function(){return this.expanded},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getId=function(){return this.getGroupId()},e.prototype.setChildren=function(e){this.children=e},e.prototype.getChildren=function(){return this.children},e.prototype.getColGroupDef=function(){return this.colGroupDef},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.addLeafColumns=function(t){this.children&&this.children.forEach((function(o){o instanceof me?t.push(o):o instanceof e&&o.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.getLeafColumns().forEach((function(t){return t.addEventListener(me.EVENT_VISIBLE_CHANGED,e.onColumnVisibilityChanged.bind(e))}))},e.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,o=!1,r=!1,n=this.findChildrenRemovingPadding(),i=0,s=n.length;i<s;i++){var a=n[i];if(a.isVisible()){var l=a.getColumnGroupShow();l===Ve.HEADER_GROUP_SHOW_OPEN?(t=!0,r=!0):l===Ve.HEADER_GROUP_SHOW_CLOSED?(o=!0,r=!0):(t=!0,o=!0)}}var u=t&&o&&r;if(this.expandable!==u){this.expandable=u;var p={type:e.EVENT_EXPANDABLE_CHANGED};this.localEventService.dispatchEvent(p)}}},e.prototype.findChildrenRemovingPadding=function(){var t=[],o=function(r){r.forEach((function(r){var n=r instanceof e&&r.isPadding();n?o(r.children):t.push(r)}))};return o(this.children),t},e.prototype.onColumnVisibilityChanged=function(){this.setExpandable()},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_EXPANDABLE_CHANGED="expandableChanged",e}(),ke={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},Be="__ag_Grid_Stop_Propagation",je=["touchstart","touchend","touchmove","touchcancel"],Ue={}; /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */function ze(e){e[Be]=!0}function Ke(e){return!0===e[Be]}var Ye=function(){var e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},t=function(t){if("boolean"===typeof Ue[t])return Ue[t];var o=document.createElement(e[t]||"div");return t="on"+t,Ue[t]=t in o};return t}();function qe(e,t,o){var r=t.target;while(r){var n=e.getDomData(r,o);if(n)return n;r=r.parentElement}return null}function Xe(e,t){e.addEventListener("changed",t),e.addEventListener("paste",t),e.addEventListener("input",t)}function Qe(e,t){return!(!t||!e)&&$e(t).indexOf(e)>=0}function Je(e){var t=[],o=e.target;while(o)t.push(o),o=o.parentElement;return t}function Ze(e){e.__agGridEventPath=$e(e)}function $e(e){var t=e;return t.path?t.path:t.composedPath?t.composedPath():t.__agGridEventPath?t.__agGridEventPath:Je(e)}function et(e,t,o,r){var n=Ie(je,o),i=n?{passive:!0}:void 0;e&&e.addEventListener&&e.addEventListener(t,o,r,i)}var tt=Object.freeze({__proto__:null,stopPropagationForAgGrid:ze,isStopPropagationForAgGrid:Ke,isEventSupported:Ye,getCtrlForEvent:qe,addChangeListener:Xe,isElementInEventPath:Qe,createEventPath:Je,addAgGridEventPath:Ze,getEventPath:$e,addSafePassiveEventListener:et}),ot=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},rt=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 he),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,o){var r=this;if(!this.destroyed){e instanceof HTMLElement?et(this.getFrameworkOverrides(),e,t,o):e.addEventListener(t,o);var n=function(){return e.removeEventListener(t,o),r.destroyFunctions=r.destroyFunctions.filter((function(e){return e!==n})),null};return this.destroyFunctions.push(n),n}},e.prototype.addDestroyFunc=function(e){this.isAlive()?this.destroyFunctions.push(e):e()},e.prototype.createManagedBean=function(e,t){var o=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),o},e.prototype.createBean=function(e,t,o){return(t||this.getContext()).createBean(e,o)},e.prototype.destroyBean=function(e,t){return(t||this.getContext()).destroyBean(e)},e.prototype.destroyBeans=function(e,t){var o=this;return e&&e.forEach((function(e){return o.destroyBean(e,t)})),[]},e.EVENT_DESTROYED="destroyed",ot([ne("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),ot([ne("context")],e.prototype,"context",void 0),ot([ne("eventService")],e.prototype,"eventService",void 0),ot([ne("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ot([oe],e.prototype,"destroy",null),e}(),nt=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),it=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},st=function(e,t){return function(o,r){t(o,r,e)}},at=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nt(t,e),t.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},t.prototype.createColumnTree=function(e,t,o){var r=new v,n=this.extractExistingTreeData(o),i=n.existingCols,s=n.existingGroups,a=n.existingColKeys;r.addExistingKeys(a);var l=this.recursivelyCreateColumns(e,0,t,i,r,s),u=this.findMaxDept(l,0);this.logger.log("Number of levels for grouped columns is "+u);var p=this.balanceColumnTree(l,0,u,r),c=function(e,t){e instanceof We&&e.setupExpandable(),e.setOriginalParent(t)};return this.columnUtils.depthFirstOriginalTreeSearch(null,p,c),{columnTree:p,treeDept:u}},t.prototype.extractExistingTreeData=function(e){var t=[],o=[],r=[];return e&&this.columnUtils.depthFirstOriginalTreeSearch(null,e,(function(e){if(e instanceof We){var n=e;o.push(n)}else{var i=e;r.push(i.getId()),t.push(i)}})),{existingCols:t,existingGroups:o,existingColKeys:r}},t.prototype.createForAutoGroups=function(e,t){var o=this;return e.map((function(e){return o.createAutoGroupTreeItem(t,e)}))},t.prototype.createAutoGroupTreeItem=function(e,t){for(var o=this.findDepth(e),r=t,n=o-1;n>=0;n--){var i=new We(null,"FAKE_PATH_"+t.getId()+"}_"+n,!0,n);this.context.createBean(i),i.setChildren([r]),r.setOriginalParent(i),r=i}return r},t.prototype.findDepth=function(e){var t=0,o=e;while(o&&o[0]&&o[0]instanceof We)t++,o=o[0].getChildren();return t},t.prototype.balanceColumnTree=function(e,t,o,r){for(var n=[],i=0;i<e.length;i++){var s=e[i];if(s instanceof We){var a=s,l=this.balanceColumnTree(a.getChildren(),t+1,o,r);a.setChildren(l),n.push(a)}else{for(var u=void 0,p=void 0,c=o-1;c>=t;c--){var d=r.getUniqueKey(null,null),h=this.createMergedColGroupDef(null),f=new We(h,d,!0,t);this.context.createBean(f),p&&p.setChildren([f]),p=f,u||(u=p)}if(u&&p){n.push(u);var g=e.some((function(e){return e instanceof We}));if(g){p.setChildren([s]);continue}p.setChildren(e);break}n.push(s)}}return n},t.prototype.findMaxDept=function(e,t){for(var o=t,r=0;r<e.length;r++){var n=e[r];if(n instanceof We){var i=n,s=this.findMaxDept(i.getChildren(),t+1);o<s&&(o=s)}}return o},t.prototype.recursivelyCreateColumns=function(e,t,o,r,n,i){var s=this;return(e||[]).map((function(e){return s.isColumnGroup(e)?s.createColumnGroup(o,e,t,r,n,i):s.createColumn(o,e,r,n)}))},t.prototype.createColumnGroup=function(e,t,o,r,n,i){var s,a=this.createMergedColGroupDef(t),l=n.getUniqueKey(a.groupId||null,null),u=this.findExistingGroup(t,i);u?(s=u,s.reset(a,o),Pe(i,u)):(s=new We(a,l,!1,o),this.context.createBean(s));var p=this.recursivelyCreateColumns(a.children,o+1,e,r,n,i);return s.setChildren(p),s},t.prototype.createMergedColGroupDef=function(e){var t={};return Object.assign(t,this.gridOptionsWrapper.getDefaultColGroupDef()),Object.assign(t,e),this.checkForDeprecatedItems(t),t},t.prototype.createColumn=function(e,t,o,r){var n=this.mergeColDefs(t);this.checkForDeprecatedItems(n);var i=this.findExistingColumn(t,o);if(o&&i&&Pe(o,i),i)i.setColDef(n,t),this.applyColumnState(i,n);else{var s=r.getUniqueKey(n.colId,n.field);i=new me(n,t,s,e),this.context.createBean(i)}return i},t.prototype.applyColumnState=function(e,t){var o=l(t.flex);void 0!==o&&e.setFlex(o);var r=e.getFlex()<=0;if(r){var n=l(t.width);if(null!=n)e.setActualWidth(n);else{var i=e.getActualWidth();e.setActualWidth(i)}}void 0!==t.sort&&(t.sort==fe.SORT_ASC||t.sort==fe.SORT_DESC?e.setSort(t.sort):e.setSort(void 0));var s=l(t.sortIndex);void 0!==s&&e.setSortIndex(s);var a=u(t.hide);void 0!==a&&e.setVisible(!a),void 0!==t.pinned&&e.setPinned(t.pinned)},t.prototype.findExistingColumn=function(e,t){return(t||[]).find((function(t){var o=t.getUserProvidedColDef();if(!o)return!1;var r=null!=e.colId,n=null!=e.field;return r?t.getId()===e.colId:n?o.field===e.field:o===e}))},t.prototype.findExistingGroup=function(e,t){return t.find((function(t){var o=t.getColGroupDef();if(!o)return!1;var r=null!=e.groupId;return!!r&&t.getId()===e.groupId}))},t.prototype.mergeColDefs=function(e){var t={},o=this.gridOptionsWrapper.getDefaultColDef();P(t,o,!1,!0);var r=e.type;r||(r=o&&o.type),r&&this.assignColumnTypes(r,t),P(t,e,!1,!0);var n=this.gridOptionsWrapper.getAutoGroupColumnDef(),i=this.gridOptionsWrapper.isColumnsSortingCoupledToGroup();return e.rowGroup&&n&&i&&P(t,{sort:n.sort,initialSort:n.initialSort},!1,!0),t},t.prototype.assignColumnTypes=function(e,t){var o=[];if(e instanceof Array){var r=e.some((function(e){return"string"!==typeof e}));r?console.warn("AG Grid: if colDef.type is supplied an array it should be of type 'string[]'"):o=e}else{if("string"!==typeof e)return void console.warn("AG Grid: colDef.type should be of type 'string' | 'string[]'");o=e.split(",")}var n=Object.assign({},ke),i=this.gridOptionsWrapper.getColumnTypes()||{};y(i,(function(e,t){e in n?console.warn("AG Grid: the column type '"+e+"' is a default column type and cannot be overridden."):n[e]=t})),o.forEach((function(e){var o=n[e.trim()];o?P(t,o,!1,!0):console.warn("AG Grid: colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes")}))},t.prototype.checkForDeprecatedItems=function(e){if(e){var t=e;void 0!==t.group&&console.warn("AG Grid: colDef.group is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroup&&console.warn("AG Grid: colDef.headerGroup is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroupShow&&console.warn("AG Grid: colDef.headerGroupShow is invalid, should be columnGroupShow, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.suppressRowGroup&&console.warn("AG Grid: colDef.suppressRowGroup is deprecated, please use colDef.type instead"),void 0!==t.suppressAggregation&&console.warn("AG Grid: colDef.suppressAggregation is deprecated, please use colDef.type instead"),(t.suppressRowGroup||t.suppressAggregation)&&console.warn("AG Grid: colDef.suppressAggregation and colDef.suppressRowGroup are deprecated, use allowRowGroup, allowPivot and allowValue instead"),t.displayName&&(console.warn("AG Grid: Found displayName "+t.displayName+", please use headerName instead, displayName is deprecated."),t.headerName=t.displayName)}},t.prototype.isColumnGroup=function(e){return void 0!==e.children},it([ne("columnUtils")],t.prototype,"columnUtils",void 0),it([st(0,ae("loggerFactory"))],t.prototype,"setBeans",null),t=it([re("columnFactory")],t),t}(rt),lt=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_PASTE_START="pasteStart",e.EVENT_PASTE_END="pasteEnd",e.EVENT_FILL_START="fillStart",e.EVENT_FILL_END="fillEnd",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_FULL_WIDTH_ROW_FOCUSED="fullWidthRowFocused",e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_SELECTION_CHANGED="selectionChanged",e.EVENT_CELL_KEY_DOWN="cellKeyDown",e.EVENT_CELL_KEY_PRESS="cellKeyPress",e.EVENT_CELL_MOUSE_OVER="cellMouseOver",e.EVENT_CELL_MOUSE_OUT="cellMouseOut",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_MODIFIED="filterModified",e.EVENT_FILTER_OPENED="filterOpened",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",e.EVENT_ROW_CLICKED="rowClicked",e.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",e.EVENT_GRID_READY="gridReady",e.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",e.EVENT_VIEWPORT_CHANGED="viewportChanged",e.EVENT_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_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_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}(),ut=function(){function e(){this.existingIds={}}return e.prototype.getInstanceIdForKey=function(e){var t,o=this.existingIds[e];return t="number"!==typeof o?0:o+1,this.existingIds[e]=t,t},e}(),pt=/[&<>"']/g,ct={"&":"&","<":"<",">":">",'"':""","'":"'"}; /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */function dt(e){var t=String.fromCharCode;function o(e){var t=[];if(!e)return[];var o,r,n=e.length,i=0;while(i<n)o=e.charCodeAt(i++),o>=55296&&o<=56319&&i<n?(r=e.charCodeAt(i++),56320==(64512&r)?t.push(((1023&o)<<10)+(1023&r)+65536):(t.push(o),i--)):t.push(o);return t}function r(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function n(e,o){return t(e>>o&63|128)}function i(e){if(e>=0&&e<=31&&10!==e){var o=e.toString(16).toUpperCase(),i=o.padStart(4,"0");return"_x"+i+"_"}if(0==(4294967168&e))return t(e);var s="";return 0==(4294965248&e)?s=t(e>>6&31|192):0==(4294901760&e)?(r(e),s=t(e>>12&15|224),s+=n(e,6)):0==(4292870144&e)&&(s=t(e>>18&7|240),s+=n(e,12),s+=n(e,6)),s+=t(63&e|128),s}var s,a=o(e),l=a.length,u=-1,p="";while(++u<l)s=a[u],p+=i(s);return p}function ht(e){return null===e||void 0===e?null:e.replace(/([A-Z])/g,(function(e){return"-"+e[0].toLowerCase()}))}function ft(e){return null===e||void 0===e?null:e.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))}function gt(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()}function vt(e,t){if(null==e)return null;var o=e.toString().toString();return t?o:o.replace(pt,(function(e){return ct[e]}))}function yt(e){if(!e||null==e)return null;var t=/([A-Z])([A-Z])([a-z])|([a-z])([A-Z])/g,o=e.replace(t,"$1$4 $2$3$5").replace("."," ").split(" ");return o.map((function(e){return e.substring(0,1).toUpperCase()+(e.length>1?e.substring(1,e.length):"")})).join(" ")}var mt=Object.freeze({__proto__:null,utf8_encode:dt,camelCaseToHyphen:ht,hyphenToCamelCase:ft,capitalise:gt,escapeString:vt,camelCaseToHumanText:yt}); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */function Ct(e){var t=new Map;return e.forEach((function(e){return t.set(e[0],e[1])})),t}function wt(e,t){var o=new Map;return e.forEach((function(e){return o.set(t(e),e)})),o}function Et(e){var t=[];return e.forEach((function(e,o){return t.push(o)})),t}var Rt=Object.freeze({__proto__:null,convertToMap:Ct,mapById:wt,keys:Et}),Ot=function(e,t){var o="function"===typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,n,i=o.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=i.next()).done)s.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(o=i["return"])&&o.call(i)}finally{if(n)throw n.error}}return s},St=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ot(arguments[t]));return e},_t=function(){function e(){}return e.STRING_PROPERTIES=["headerName","columnGroupShow","headerClass","toolPanelClass","headerValueGetter","pivotKeys","groupId","colId","sort","initialSort","field","type","tooltipComponent","tooltipField","headerTooltip","cellClass","showRowGroup","filter","initialAggFunc","defaultAggFunc","aggFunc","pinned","initialPinned","chartDataType","cellEditorPopupPosition"],e.OBJECT_PROPERTIES=["headerGroupComponent","headerGroupComponentFramework","headerGroupComponentParams","cellStyle","cellRenderer","cellRendererParams","cellRendererFramework","cellEditor","cellEditorFramework","cellEditorParams","pinnedRowCellRendererFramework","pinnedRowCellRendererParams","filterFramework","filterParams","pivotValueColumn","headerComponent","headerComponentFramework","headerComponentParams","floatingFilterComponent","floatingFilterComponentParams","floatingFilterComponentFramework","tooltipComponent","tooltipComponentParams","tooltipComponentFramework","refData","columnsMenuParams"],e.ARRAY_PROPERTIES=["children","sortingOrder","allowedAggFuncs","menuTabs","pivotTotalColumnIds","cellClassRules","icons"],e.NUMBER_PROPERTIES=["sortedAt","sortIndex","initialSortIndex","flex","initialFlex","width","initialWidth","minWidth","maxWidth","rowGroupIndex","initialRowGroupIndex","pivotIndex","initialPivotIndex"],e.BOOLEAN_PROPERTIES=["suppressCellFlash","suppressColumnsToolPanel","suppressFiltersToolPanel","openByDefault","marryChildren","hide","initialHide","rowGroup","initialRowGroup","pivot","initialPivot","checkboxSelection","showDisabledCheckboxes","headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","suppressMenu","suppressMovable","lockPosition","lockVisible","lockPinned","unSortIcon","suppressSizeToFit","suppressAutoSize","enableRowGroup","enablePivot","enableValue","editable","suppressPaste","suppressNavigable","enableCellChangeFlash","rowDrag","dndSource","autoHeight","wrapText","sortable","resizable","singleClickEdit","floatingFilter","cellEditorPopup","suppressFillHandle","wrapHeaderText","autoHeaderHeight"],e.FUNCTION_PROPERTIES=["dndSourceOnRowDrag","valueGetter","valueSetter","filterValueGetter","keyCreator","pinnedRowCellRenderer","valueFormatter","pinnedRowValueFormatter","valueParser","comparator","equals","pivotComparator","suppressKeyboardEvent","suppressHeaderKeyboardEvent","colSpan","rowSpan","getQuickFilterText","newValueHandler","onCellValueChanged","onCellClicked","onCellDoubleClicked","onCellContextMenu","rowDragText","tooltipValueGetter","tooltipComponent","tooltipComponentFramework","cellRendererSelector","cellEditorSelector"],e.ALL_PROPERTIES=St(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.NUMBER_PROPERTIES,e.FUNCTION_PROPERTIES,e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}(),bt=function(e,t){var o="function"===typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,n,i=o.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=i.next()).done)s.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(o=i["return"])&&o.call(i)}finally{if(n)throw n.error}}return s},Pt=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(bt(arguments[t]));return e},Tt=function(){function e(){}return e.STRING_PROPERTIES=["rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","serverSideStoreType","groupDisplayType","treeDataDisplayType","colResizeDefault"],e.OBJECT_PROPERTIES=["components","frameworkComponents","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultExportParams","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","statusBar","sideBar","chartThemeOverrides","customChartThemes","chartToolPanelsDef"],e.ARRAY_PROPERTIES=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass"],e.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","colWidth","headerHeight","groupHeaderHeight","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","minColWidth","maxColWidth","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","serverSideInitialRowCount","scrollbarWidth","batchUpdateWaitMillis","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDelay","cellFadeDelay","tabIndex"],e.BOOLEAN_PROPERTIES=["suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellSelection","suppressCellFocus","suppressHorizontalScroll","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","angularCompileRows","angularCompileFilters","groupSuppressAutoColumn","groupSelectsChildren","groupIncludeFooter","groupIncludeTotalFooter","groupUseEntireRow","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressParentsInRowNodes","suppressColumnMoveAnimation","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","rememberGroupStateWhenNewData","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressRowGroupHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragEntireRow","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","deprecatedEmbedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupMultiAutoColumn","pagination","stopEditingWhenGridLosesFocus","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","deltaRowDataMode","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","treeData","masterDetail","suppressMultiRangeSelection","enterMovesDownAfterEdit","enterMovesDown","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressEnterpriseResetOnNewColumns","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","suppressSetColumnStateEvents","suppressColumnStateEvents","enableCharts","enableChartToolPanelsButton","deltaColumnMode","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","immutableData","immutableColumns","pivotSuppressAutoColumn","suppressExpandablePivotGroups","applyColumnDefOrder","debounceVerticalScrollbar","detailRowAutoHeight","serverSideFilteringAlwaysResets","serverSideSortingAlwaysResets","serverSideSortAllLevels","serverSideFilterAllLevels","serverSideSortOnServer","serverSideFilterOnServer","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","maintainColumnOrder","groupMaintainOrder","columnHoverHighlight","reactUi","suppressReactUi","readOnlyEdit","suppressRowVirtualisation","enableCellEditingOnBackspace","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges","groupRowsSticky","serverSideInfiniteScroll","rowGroupPanelSuppressSort","allowShowChangeAfterFilter"],e.FUNCTIONAL_PROPERTIES=["localeTextFunc","doesExternalFilterPass","groupRowAggNodes","isFullWidthCell","processSecondaryColDef","processSecondaryColGroupDef","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","postSort","defaultGroupSortComparator","defaultGroupOrderComparator","rowDragText","groupRowInnerRenderer","groupRowInnerRendererFramework","groupRowRenderer","groupRowRendererFramework","fullWidthCellRenderer","fullWidthCellRendererFramework","loadingCellRenderer","loadingCellRendererFramework","loadingOverlayComponent","loadingOverlayComponentFramework","noRowsOverlayComponent","noRowsOverlayComponentFramework","detailCellRenderer","detailCellRendererFramework"],e.CALLBACK_PROPERTIES=["getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getGroupRowAgg","getRowNodeId","isFullWidthRow","sendToClipboard","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","isRowMaster","postSortRows","processHeaderForClipboard","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","suppressKeyboardEvent","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideStoreParams","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","initialGroupOrderComparator","loadingCellRendererSelector","getRowId","groupAggFiltering"],e.FUNCTION_PROPERTIES=Pt(e.FUNCTIONAL_PROPERTIES,e.CALLBACK_PROPERTIES),e.ALL_PROPERTIES=Pt(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.NUMBER_PROPERTIES,e.FUNCTION_PROPERTIES,e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}(),Dt=function(){return Dt=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},Dt.apply(this,arguments)},At=function(e,t){var o="function"===typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,n,i=o.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=i.next()).done)s.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(o=i["return"])&&o.call(i)}finally{if(n)throw n.error}}return s},Nt=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(At(arguments[t]));return e},It=function(){function e(){}return e.getEventCallbacks=function(){return e.EVENT_CALLBACKS||(e.EVENT_CALLBACKS=e.EVENTS.map((function(t){return e.getCallbackForEvent(t)}))),e.EVENT_CALLBACKS},e.copyAttributesToGridOptions=function(t,o,r){"object"!==typeof t&&(t={});var n=t,i=function(e){return"undefined"!==typeof o[e]};return i("groupAggFiltering")&&"function"!==typeof o.groupAggFiltering&&(n.groupAggFiltering=e.toBoolean(o.groupAggFiltering),delete o.groupAggFiltering),Nt(e.ARRAY_PROPERTIES,e.STRING_PROPERTIES,e.OBJECT_PROPERTIES,e.FUNCTION_PROPERTIES,e.getEventCallbacks()).filter(i).forEach((function(e){return n[e]=o[e]})),e.BOOLEAN_PROPERTIES.filter(i).forEach((function(t){return n[t]=e.toBoolean(o[t])})),e.NUMBER_PROPERTIES.filter(i).forEach((function(t){return n[t]=e.toNumber(o[t])})),t},e.getCallbackForEvent=function(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substr(1)},e.processOnChange=function(t,o,r,n){if(t){var i=Dt({},t),s=o,a=function(e){return i[e]};a("groupAggFiltering")&&("function"===typeof i.groupAggFiltering?s.groupAggFiltering=i.groupAggFiltering:s.groupAggFiltering=e.toBoolean(i.groupAggFiltering),delete i.groupAggFiltering),a("groupDisplayType")&&"string"===typeof i.groupDisplayType.currentValue&&(r.setGroupDisplayType(i.groupDisplayType.currentValue),delete i.groupDisplayType),i.domLayout&&(r.setDomLayout(i.domLayout.currentValue),delete i.domLayout),i.rowClass&&(r.setRowClass(i.rowClass.currentValue),delete i.rowClass),i.paginationPageSize&&(r.paginationSetPageSize(e.toNumber(i.paginationPageSize.currentValue)),delete i.paginationPageSize),i.rowGroupPanelShow&&(r.setRowGroupPanelShow(i.rowGroupPanelShow.currentValue),delete i.rowGroupPanelShow),i.groupRemoveSingleChildren&&(r.setGroupRemoveSingleChildren(e.toBoolean(i.groupRemoveSingleChildren.currentValue)),delete i.groupRemoveSingleChildren),i.groupRemoveLowestSingleChildren&&(r.setGroupRemoveLowestSingleChildren(e.toBoolean(i.groupRemoveLowestSingleChildren.currentValue)),delete i.groupRemoveLowestSingleChildren),i.suppressRowDrag&&(r.setSuppressRowDrag(e.toBoolean(i.suppressRowDrag.currentValue)),delete i.suppressRowDrag),i.suppressMoveWhenRowDragging&&(r.setSuppressMoveWhenRowDragging(e.toBoolean(i.suppressMoveWhenRowDragging.currentValue)),delete i.suppressMoveWhenRowDragging),i.suppressRowClickSelection&&(r.setSuppressRowClickSelection(e.toBoolean(i.suppressRowClickSelection.currentValue)),delete i.suppressRowClickSelection),i.suppressClipboardPaste&&(r.setSuppressClipboardPaste(e.toBoolean(i.suppressClipboardPaste.currentValue)),delete i.suppressClipboardPaste),i.headerHeight&&(r.setHeaderHeight(e.toNumber(i.headerHeight.currentValue)),delete i.headerHeight),i.pivotHeaderHeight&&(r.setPivotHeaderHeight(e.toNumber(i.pivotHeaderHeight.currentValue)),delete i.pivotHeaderHeight),i.groupHeaderHeight&&(r.setGroupHeaderHeight(e.toNumber(i.groupHeaderHeight.currentValue)),delete i.groupHeaderHeight),i.pivotGroupHeaderHeight&&(r.setPivotGroupHeaderHeight(e.toNumber(i.pivotGroupHeaderHeight.currentValue)),delete i.pivotGroupHeaderHeight),i.floatingFiltersHeight&&(r.setFloatingFiltersHeight(e.toNumber(i.floatingFiltersHeight.currentValue)),delete i.floatingFiltersHeight),i.functionsReadOnly&&(r.setFunctionsReadOnly(e.toBoolean(i.functionsReadOnly.currentValue)),delete i.functionsReadOnly),Nt(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.getEventCallbacks()).filter(a).forEach((function(e){return s[e]=i[e].currentValue})),e.BOOLEAN_PROPERTIES.filter(a).forEach((function(t){return s[t]=e.toBoolean(i[t].currentValue)})),e.NUMBER_PROPERTIES.filter(a).forEach((function(t){return s[t]=e.toNumber(i[t].currentValue)})),i.enableCellTextSelection&&(r.setEnableCellTextSelection(e.toBoolean(i.enableCellTextSelection.currentValue)),delete i.enableCellTextSelection),i.quickFilterText&&(r.setQuickFilter(i.quickFilterText.currentValue),delete i.quickFilterText),i.autoGroupColumnDef&&(r.setAutoGroupColumnDef(i.autoGroupColumnDef.currentValue,"gridOptionsChanged"),delete i.autoGroupColumnDef),i.columnDefs&&(r.setColumnDefs(i.columnDefs.currentValue,"gridOptionsChanged"),delete i.columnDefs),i.defaultColDef&&(r.setDefaultColDef(i.defaultColDef.currentValue,"gridOptionsChanged"),delete i.defaultColDef),i.pivotMode&&(n.setPivotMode(e.toBoolean(i.pivotMode.currentValue)),delete i.pivotMode);var l=r;Object.keys(i).forEach((function(e){var o="set"+e.charAt(0).toUpperCase()+e.substring(1);l[o]&&l[o](t[e].currentValue)}));var u={type:lt.EVENT_COMPONENT_STATE_CHANGED};y(t,(function(e,t){u[e]=t})),r.dispatchEvent(u)}},e.toBoolean=function(e){return"boolean"===typeof e?e:"string"===typeof e&&("TRUE"===e.toUpperCase()||""==e)},e.toNumber=function(e){return"number"===typeof e?e:"string"===typeof e?Number(e):void 0},e.EVENTS=[],e.PUBLIC_EVENTS=[],e.EXCLUDED_INTERNAL_EVENTS=[],e.STRING_PROPERTIES=Tt.STRING_PROPERTIES,e.OBJECT_PROPERTIES=Tt.OBJECT_PROPERTIES,e.ARRAY_PROPERTIES=Tt.ARRAY_PROPERTIES,e.NUMBER_PROPERTIES=Tt.NUMBER_PROPERTIES,e.BOOLEAN_PROPERTIES=Tt.BOOLEAN_PROPERTIES,e.FUNCTION_PROPERTIES=Tt.FUNCTION_PROPERTIES,e.ALL_PROPERTIES=Tt.ALL_PROPERTIES,e}(); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */It.EVENTS=f(lt),It.EXCLUDED_INTERNAL_EVENTS=[lt.EVENT_SCROLLBAR_WIDTH_CHANGED,lt.EVENT_CHECKBOX_CHANGED,lt.EVENT_HEIGHT_SCALE_CHANGED,lt.EVENT_BODY_HEIGHT_CHANGED,lt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,lt.EVENT_SCROLL_VISIBILITY_CHANGED,lt.EVENT_COLUMN_HOVER_CHANGED,lt.EVENT_FLASH_CELLS,lt.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,lt.EVENT_DISPLAYED_ROWS_CHANGED,lt.EVENT_LEFT_PINNED_WIDTH_CHANGED,lt.EVENT_RIGHT_PINNED_WIDTH_CHANGED,lt.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,lt.EVENT_POPUP_TO_FRONT,lt.EVENT_KEYBOARD_FOCUS,lt.EVENT_MOUSE_FOCUS,lt.EVENT_STORE_UPDATED,lt.EVENT_COLUMN_PANEL_ITEM_DRAG_START,lt.EVENT_COLUMN_PANEL_ITEM_DRAG_END,lt.EVENT_FILL_START,lt.EVENT_FILL_END,lt.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,lt.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,lt.EVENT_FULL_WIDTH_ROW_FOCUSED,lt.EVENT_HEADER_HEIGHT_CHANGED,lt.EVENT_COLUMN_HEADER_HEIGHT_CHANGED],It.PUBLIC_EVENTS=It.EVENTS.filter((function(e){return!Ie(It.EXCLUDED_INTERNAL_EVENTS,e)})); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */ var Gt,Ft,Lt,Mt,xt,Ht,Vt,Wt,kt,Bt,jt=function(){function e(){}return e.parse=function(t){if(!t)return null;if(!0===t)return{toolPanels:[e.DEFAULT_COLUMN_COMP,e.DEFAULT_FILTER_COMP],defaultToolPanel:"columns"};if("string"===typeof t)return e.parse([t]);if(Array.isArray(t)){var o=[];return t.forEach((function(t){var r=e.DEFAULT_BY_KEY[t];r?o.push(r):console.warn("AG Grid: the key "+t+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(e.DEFAULT_BY_KEY).join(","))})),0===o.length?null:{toolPanels:o,defaultToolPanel:o[0].id}}var r={toolPanels:e.parseComponents(t.toolPanels),defaultToolPanel:t.defaultToolPanel,hiddenByDefault:t.hiddenByDefault,position:t.position};return r},e.parseComponents=function(t){var o=[];return t?(t.forEach((function(t){var r=null;if("string"===typeof t){var n=e.DEFAULT_BY_KEY[t];if(!n)return void console.warn("AG Grid: the key "+t+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(e.DEFAULT_BY_KEY).join(","));r=n}else r=t;o.push(r)})),o):o},e.DEFAULT_COLUMN_COMP={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel"},e.DEFAULT_FILTER_COMP={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"},e.DEFAULT_BY_KEY={columns:e.DEFAULT_COLUMN_COMP,filters:e.DEFAULT_FILTER_COMP},e}(),Ut=function(e){var t="function"===typeof Symbol&&Symbol.iterator,o=t&&e[t],r=0;if(o)return o.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}; /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */function zt(){if(Bt)return Bt;var e,t,o=navigator.userAgent,r=o.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];if(/trident/i.test(r[1]))return e=/\brv[ :]+(\d+)/g.exec(o)||[],t=null!=e[1]?parseFloat(e[1]):0,{name:"IE",version:t};if("Chrome"===r[1]&&(e=o.match(/\bOPR|Edge\/(\d+)/),null!=e))return t=null!=e[1]?parseFloat(e[1]):0,{name:"Opera",version:t};r=r[2]?[r[1],r[2]]:[navigator.appName,navigator.appVersion,"-?"],e=o.match(/version\/(\d+)/i),null!=e&&r.splice(1,1,e[1]);var n=r[0];return t=null!=r[1]?parseFloat(r[1]):0,Bt={name:n,version:t},Bt}function Kt(){return void 0===Ft&&(Ft=/*@cc_on!@*/!!document.documentMode),Ft}function Yt(){return void 0===Lt&&(Lt=!Kt()&&!!window.StyleMedia),Lt}function qt(){return void 0===Gt&&(Gt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),Gt}function Xt(){if(void 0===Mt){var e=window;Mt=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return Mt}function Qt(){if(void 0===xt){var e=window;xt="undefined"!==typeof e.InstallTrigger}return xt}function Jt(){return void 0===Ht&&(Ht=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),Ht}function Zt(){return void 0===Vt&&(Vt=(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream),Vt}function $t(){return!qt()||zt().version>=15}function eo(e){if(!e)return null;var t=e.tabIndex,o=e.getAttribute("tabIndex");return-1!==t||null!==o&&(""!==o||Qt())?t.toString():null}function to(){if(!document.body)return-1;var e=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,o=document.createElement("div");document.body.appendChild(o);while(1){var r=2*e;if(o.style.height=r+"px",r>t||o.clientHeight!==r)break;e=r}return document.body.removeChild(o),e}function oo(){return null==kt&&ro(),kt}function ro(){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 o=t.offsetWidth-t.clientWidth;0===o&&0===t.clientWidth&&(o=null),t.parentNode&&t.parentNode.removeChild(t),null!=o&&(kt=o,Wt=0===o)}function no(){return null==Wt&&ro(),Wt}function io(){var e,t,o,r=["webkit","moz","o","ms"],n=document.createElement("div"),i=document.getElementsByTagName("body")[0],s=!1;i.appendChild(n),n.setAttribute("style",r.map((function(e){return"-"+e+"-overflow-scrolling: touch"})).concat("overflow-scrolling: touch").join(";"));var a=window.getComputedStyle(n);if("touch"===a.overflowScrolling&&(s=!0),!s)try{for(var l=Ut(r),u=l.next();!u.done;u=l.next())if(o=u.value,"touch"===a[o+"OverflowScrolling"]){s=!0;break}}catch(p){e={error:p}}finally{try{u&&!u.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}return n.parentNode&&n.parentNode.removeChild(n),s}function so(){return document.body?document.body.clientWidth:window.innerHeight?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:-1}function ao(){return document.body?document.body.clientHeight:window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:-1}var lo=Object.freeze({__proto__:null,getBrowserInfo:zt,isBrowserEdge:Yt,isBrowserSafari:qt,isBrowserChrome:Xt,isBrowserFirefox:Qt,isMacOsUserAgent:Jt,isIOSUserAgent:Zt,browserSupportsPreventScroll:$t,getTabIndex:eo,getMaxDivHeight:to,getScrollbarWidth:oo,isInvisibleScrollbar:no,hasOverflowScrolling:io,getBodyWidth:so,getBodyHeight:ao}); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */function uo(e,t,o){var r={},n=e.filter((function(e){return!t.some((function(t){return t===e}))}));return n.length>0&&n.forEach((function(e){return r[e]=po(e,o)})),r}function po(e,t,o,r){var n=r?fo:ho,i=t.map((function(t){return{value:t,relevance:n(e.toLowerCase(),t.toLocaleLowerCase())}}));return i.sort((function(e,t){return t.relevance-e.relevance})),o&&(i=i.filter((function(e){return 0!==e.relevance}))),i.map((function(e){return e.value}))}function co(e){var t,o,r,n=e.toLowerCase(),i=new Array(n.length-1);for(t=o=0,r=i.length;o<=r;t=o+=1)i[t]=n.slice(t,t+2);return i}function ho(e,t){if(0===e.length&&0===t.length)return 0;var o,r,n=co(e),i=co(t),s=n.length+i.length,a=0;for(o=0,r=n.length;o<r;o++){var l=n[o],u=void 0,p=void 0;for(u=0,p=i.length;u<p;u++){var c=i[u];l===c&&a++}}return a>0?2*a/s:0}function fo(e,t){for(var o=e.replace(/\s/g,""),r=t.replace(/\s/g,""),n=0,i=0,s=0;s<o.length;s++){var a=r.indexOf(o[s],i);-1!==a&&(i=a,n+=100-100*i/1e4*100)}return n}var go=Object.freeze({__proto__:null,fuzzyCheckStrings:uo,fuzzySuggestions:po,get_bigrams:co,string_distances:ho,string_weighted_distances:fo}); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */function vo(e,t){return e.toString().padStart(t,"0")}function yo(e,t){for(var o=[],r=e;r<=t;r++)o.push(r);return o}function mo(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Co(e){return"string"===typeof e&&(e=parseInt(e,10)),"number"===typeof e?Math.floor(e):null}function wo(e,t){for(var o="",r=0;r<t;r++)o+=String.fromCharCode(255&e),e>>>=8;return o}function Eo(e,t,o){return"number"!==typeof e?"":Ro(Math.round(100*e)/100,t,o)}function Ro(e,t,o){return"number"!==typeof e?"":e.toString().replace(".",o).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+t)}function Oo(e){return null==e?null:e.reduce((function(e,t){return e+t}),0)}var So=Object.freeze({__proto__:null,padStartWidthZeros:vo,createArrayOfNumbers:yo,isNumeric:mo,cleanNumber:Co,decToHex:wo,formatNumberTwoDecimalPlacesAndCommas:Eo,formatNumberCommas:Ro,sum:Oo}),_o=function(){return _o=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},_o.apply(this,arguments)},bo=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Po=function(e,t){return function(o,r){t(o,r,e)}},To=function(e,t){var o="function"===typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,n,i=o.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=i.next()).done)s.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(o=i["return"])&&o.call(i)}finally{if(n)throw n.error}}return s},Do=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(To(arguments[t]));return e},Ao=25,No=300,Io=5,Go=5,Fo=10; /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */function Lo(e){return!0===e||"true"===e}function Mo(e){return"number"==typeof e?e:"string"==typeof e?parseInt(e,10):void 0}function xo(e,t){return e>=0?e:t}function Ho(e,t){var o=parseInt(e,10);return mo(o)&&o>0?o:t}var Vo=function(){function e(){this.propertyEventService=new he,this.domDataKey="__AG_"+Math.random().toString(),this.destroyed=!1}var t;return t=e,e.prototype.agWire=function(e,t){this.gridOptions.api=e,this.gridOptions.columnApi=t,this.checkForDeprecated(),this.checkForViolations()},e.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null,this.destroyed=!0},e.prototype.init=function(){var e=this;!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties()),null!=this.gridOptions.sideBar&&(this.gridOptions.sideBar=jt.parse(this.gridOptions.sideBar));var t=this.useAsyncEvents();if(this.eventService.addGlobalListener(this.globalEventHandler.bind(this),t),this.isGroupSelectsChildren()&&this.isSuppressParentsInRowNodes()&&console.warn("AG Grid: 'groupSelectsChildren' does not work with 'suppressParentsInRowNodes', this selection method needs the part in rowNode to work"),this.isGroupSelectsChildren()&&(this.isRowSelectionMulti()||console.warn("AG Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense"),this.isRowModelServerSide()&&console.warn("AG Grid: group selects children is NOT support for Server Side Row Model. This is because the rows are lazy loaded, so selecting a group is not possible asthe grid has no way of knowing what the children are.")),this.isGroupRemoveSingleChildren()&&this.isGroupHideOpenParents()&&console.warn("AG Grid: groupRemoveSingleChildren and groupHideOpenParents do not work with each other, you need to pick one. And don't ask us how to use these together on our support forum either, you will get the same answer!"),this.isRowModelServerSide()){var o=function(e){return"AG Grid: '"+e+"' is not supported on the Server-Side Row Model"};n(this.gridOptions.groupDefaultExpanded)&&console.warn(o("groupDefaultExpanded")),n(this.gridOptions.groupDefaultExpanded)&&console.warn(o("groupIncludeFooter")),n(this.gridOptions.groupDefaultExpanded)&&console.warn(o("groupIncludeTotalFooter"))}Lo(this.gridOptions.enableRangeSelection)?ge.assertRegistered(ue.RangeSelectionModule,"enableRangeSelection"):(this.isEnableRangeHandle()||this.isEnableFillHandle())&&console.warn("AG Grid: 'enableRangeHandle' or 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true"),this.isGroupRowsSticky()&&(this.isGroupHideOpenParents()&&console.warn("AG Grid: groupRowsSticky and groupHideOpenParents do not work with each other, you need to pick one."),this.isMasterDetail()&&console.warn("AG Grid: groupRowsSticky and masterDetail do not work with each other, you need to pick one."),this.isPagination()&&console.warn("AG Grid: groupRowsSticky and pagination do not work with each other, you need to pick one."));var r=function(t){e.gridOptions.icons&&e.gridOptions.icons[t]&&console.warn("gridOptions.icons."+t+" is no longer supported. For information on how to style checkboxes and radio buttons, see https://www.ag-grid.com/javascript-grid-icons/")};r("radioButtonOff"),r("radioButtonOn"),r("checkboxChecked"),r("checkboxUnchecked"),r("checkboxIndeterminate"),this.getScrollbarWidth()},e.prototype.checkColumnDefProperties=function(){var e=this;null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach((function(t){var o=Object.getOwnPropertyNames(t),r=Do(_t.ALL_PROPERTIES,_t.FRAMEWORK_PROPERTIES);e.checkProperties(o,r,r,"colDef","https://www.ag-grid.com/javascript-grid-column-properties/")}))},e.prototype.checkGridOptionsProperties=function(){var e=Object.getOwnPropertyNames(this.gridOptions),t=Do(Tt.ALL_PROPERTIES,Tt.FRAMEWORK_PROPERTIES,f(lt).map((function(e){return It.getCallbackForEvent(e)}))),o=Do(t,["api","columnApi"]);this.checkProperties(e,o,t,"gridOptions","https://www.ag-grid.com/javascript-data-grid/grid-options/")},e.prototype.checkProperties=function(e,t,o,r,n){var i=uo(e,t,o);y(i,(function(e,t){console.warn("ag-grid: invalid "+r+" property '"+e+"' did you mean any of these: "+t.slice(0,8).join(", "))})),Object.keys(i).length>0&&console.warn("ag-grid: to see all the valid "+r+" properties please check: "+n)},e.prototype.mergeGridCommonParams=function(e){var t=this;if(e){var o=function(o){var r=_o(_o({},o),{api:t.getApi(),columnApi:t.getColumnApi(),context:t.getContext()});return e(r)};return o}return e},e.prototype.getDomDataKey=function(){return this.domDataKey},e.prototype.getDomData=function(e,t){var o=e[this.getDomDataKey()];return o?o[t]:void 0},e.prototype.setDomData=function(e,t,o){var r=this.getDomDataKey(),n=e[r];i(n)&&(n={},e[r]=n),n[t]=o},e.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},e.prototype.isSuppressRowDeselection=function(){return Lo(this.gridOptions.suppressRowDeselection)},e.prototype.isRowSelectionMulti=function(){return"multiple"===this.gridOptions.rowSelection},e.prototype.isRowMultiSelectWithClick=function(){return Lo(this.gridOptions.rowMultiSelectWithClick)},e.prototype.getContext=function(){return this.gridOptions.context},e.prototype.isPivotMode=function(){return Lo(this.gridOptions.pivotMode)},e.prototype.isSuppressExpandablePivotGroups=function(){return Lo(this.gridOptions.suppressExpandablePivotGroups)},e.prototype.getPivotColumnGroupTotals=function(){return this.gridOptions.pivotColumnGroupTotals},e.prototype.getPivotRowTotals=function(){return this.gridOptions.pivotRowTotals},e.prototype.isRowModelInfinite=function(){return this.gridOptions.rowModelType===fe.ROW_MODEL_TYPE_INFINITE},e.prototype.isRowModelViewport=function(){return this.gridOptions.rowModelType===fe.ROW_MODEL_TYPE_VIEWPORT},e.prototype.isRowModelServerSide=function(){return this.gridOptions.rowModelType===fe.ROW_MODEL_TYPE_SERVER_SIDE},e.prototype.isRowModelDefault=function(){return i(this.gridOptions.rowModelType)||this.gridOptions.rowModelType===fe.ROW_MODEL_TYPE_CLIENT_SIDE},e.prototype.isFullRowEdit=function(){return"fullRow"===this.gridOptions.editType},e.prototype.isSuppressFocusAfterRefresh=function(){return Lo(this.gridOptions.suppressFocusAfterRefresh)},e.prototype.isSuppressBrowserResizeObserver=function(){return Lo(this.gridOptions.suppressBrowserResizeObserver)},e.prototype.isSuppressMaintainUnsortedOrder=function(){return Lo(this.gridOptions.suppressMaintainUnsortedOrder)},e.prototype.isSuppressClearOnFillReduction=function(){return Lo(this.gridOptions.suppressClearOnFillReduction)},e.prototype.isShowToolPanel=function(){return Lo(this.gridOptions.sideBar&&Array.isArray(this.getSideBar().toolPanels))},e.prototype.getSideBar=function(){return this.gridOptions.sideBar},e.prototype.isSuppressTouch=function(){return Lo(this.gridOptions.suppressTouch)},e.prototype.isMaintainColumnOrder=function(){return Lo(this.gridOptions.maintainColumnOrder)},e.prototype.isSuppressRowTransform=function(){return Lo(this.gridOptions.suppressRowTransform)},e.prototype.isSuppressColumnStateEvents=function(){return Lo(this.gridOptions.suppressColumnStateEvents)},e.prototype.isAllowDragFromColumnsToolPanel=function(){return Lo(this.gridOptions.allowDragFromColumnsToolPanel)},e.prototype.useAsyncEvents=function(){return!Lo(this.gridOptions.suppressAsyncEvents)},e.prototype.isEnableCellChangeFlash=function(){return Lo(this.gridOptions.enableCellChangeFlash)},e.prototype.getCellFlashDelay=function(){return this.gridOptions.cellFlashDelay||500},e.prototype.getCellFadeDelay=function(){return this.gridOptions.cellFadeDelay||1e3},e.prototype.isGroupSelectsChildren=function(){return Lo(this.gridOptions.groupSelectsChildren)},e.prototype.isSuppressRowHoverHighlight=function(){return Lo(this.gridOptions.suppressRowHoverHighlight)},e.prototype.isColumnHoverHighlight=function(){return Lo(this.gridOptions.columnHoverHighlight)},e.prototype.isGroupSelectsFiltered=function(){return Lo(this.gridOptions.groupSelectsFiltered)},e.prototype.isGroupHideOpenParents=function(){return Lo(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupMaintainOrder=function(){return Lo(this.gridOptions.groupMaintainOrder)},e.prototype.getAutoGroupColumnDef=function(){return this.gridOptions.autoGroupColumnDef},e.prototype.isColumnsSortingCoupledToGroup=function(){var e,t=this.getAutoGroupColumnDef(),o=this.isRowModelDefault();return o&&!(null===(e=t)||void 0===e?void 0:e.comparator)},e.prototype.isGroupMultiAutoColumn=function(){return this.gridOptions.groupDisplayType?this.matchesGroupDisplayType("multipleColumns",this.gridOptions.groupDisplayType):Lo(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupUseEntireRow=function(e){return!e&&(!!this.gridOptions.groupDisplayType&&this.matchesGroupDisplayType("groupRows",this.gridOptions.groupDisplayType))},e.prototype.isRowGroupPanelSuppressSort=function(){return Lo(this.gridOptions.rowGroupPanelSuppressSort)},e.prototype.isGroupRowsSticky=function(){return Lo(this.gridOptions.groupRowsSticky)},e.prototype.isGroupSuppressAutoColumn=function(){var e=!!this.gridOptions.groupDisplayType&&this.matchesGroupDisplayType("custom",this.gridOptions.groupDisplayType);return!!e||!!this.gridOptions.treeDataDisplayType&&this.matchesTreeDataDisplayType("custom",this.gridOptions.treeDataDisplayType)},e.prototype.isGroupRemoveSingleChildren=function(){return Lo(this.gridOptions.groupRemoveSingleChildren)},e.prototype.isGroupRemoveLowestSingleChildren=function(){return Lo(this.gridOptions.groupRemoveLowestSingleChildren)},e.prototype.isGroupIncludeFooter=function(){return Lo(this.gridOptions.groupIncludeFooter)},e.prototype.isGroupIncludeTotalFooter=function(){return Lo(this.gridOptions.groupIncludeTotalFooter)},e.prototype.isGroupSuppressBlankHeader=function(){return Lo(this.gridOptions.groupSuppressBlankHeader)},e.prototype.isSuppressRowClickSelection=function(){return Lo(this.gridOptions.suppressRowClickSelection)},e.prototype.isSuppressCellFocus=function(){return Lo(this.gridOptions.suppressCellFocus)},e.prototype.isSuppressMultiSort=function(){return Lo(this.gridOptions.suppressMultiSort)},e.prototype.isAlwaysMultiSort=function(){return Lo(this.gridOptions.alwaysMultiSort)},e.prototype.isMultiSortKeyCtrl=function(){return"ctrl"===this.gridOptions.multiSortKey},e.prototype.isPivotSuppressAutoColumn=function(){return Lo(this.gridOptions.pivotSuppressAutoColumn)},e.prototype.isSuppressDragLeaveHidesColumns=function(){return Lo(this.gridOptions.suppressDragLeaveHidesColumns)},e.prototype.isSuppressRowGroupHidesColumns=function(){return Lo(this.gridOptions.suppressRowGroupHidesColumns)},e.prototype.isSuppressScrollOnNewData=function(){return Lo(this.gridOptions.suppressScrollOnNewData)},e.prototype.isSuppressScrollWhenPopupsAreOpen=function(){return Lo(this.gridOptions.suppressScrollWhenPopupsAreOpen)},e.prototype.isRowDragEntireRow=function(){return Lo(this.gridOptions.rowDragEntireRow)},e.prototype.getRowDragText=function(e){if(e){var t=e.getColDef();if(t.rowDragText)return t.rowDragText}return this.gridOptions.rowDragText},e.prototype.isSuppressRowDrag=function(){return Lo(this.gridOptions.suppressRowDrag)},e.prototype.isRowDragManaged=function(){return Lo(this.gridOptions.rowDragManaged)},e.prototype.isSuppressMoveWhenRowDragging=function(){return Lo(this.gridOptions.suppressMoveWhenRowDragging)},e.prototype.isRowDragMultiRow=function(){return Lo(this.gridOptions.rowDragMultiRow)},e.prototype.getDomLayout=function(){var e=this.gridOptions.domLayout||fe.DOM_LAYOUT_NORMAL,t=[fe.DOM_LAYOUT_PRINT,fe.DOM_LAYOUT_AUTO_HEIGHT,fe.DOM_LAYOUT_NORMAL];return-1===t.indexOf(e)?(x((function(){return console.warn("AG Grid: "+e+" is not valid for DOM Layout, valid values are "+fe.DOM_LAYOUT_NORMAL+", "+fe.DOM_LAYOUT_AUTO_HEIGHT+" and "+fe.DOM_LAYOUT_PRINT)}),"warn about dom layout values"),fe.DOM_LAYOUT_NORMAL):e},e.prototype.isSuppressHorizontalScroll=function(){return Lo(this.gridOptions.suppressHorizontalScroll)},e.prototype.isSuppressMaxRenderedRowRestriction=function(){return Lo(this.gridOptions.suppressMaxRenderedRowRestriction)},e.prototype.isExcludeChildrenWhenTreeDataFiltering=function(){return Lo(this.gridOptions.excludeChildrenWhenTreeDataFiltering)},e.prototype.isAlwaysShowHorizontalScroll=function(){return Lo(this.gridOptions.alwaysShowHorizontalScroll)},e.prototype.isAlwaysShowVerticalScroll=function(){return Lo(this.gridOptions.alwaysShowVerticalScroll)},e.prototype.isDebounceVerticalScrollbar=function(){return Lo(this.gridOptions.debounceVerticalScrollbar)},e.prototype.isSuppressLoadingOverlay=function(){return Lo(this.gridOptions.suppressLoadingOverlay)},e.prototype.isSuppressNoRowsOverlay=function(){return Lo(this.gridOptions.suppressNoRowsOverlay)},e.prototype.isSuppressFieldDotNotation=function(){return Lo(this.gridOptions.suppressFieldDotNotation)},e.prototype.getPinnedTopRowData=function(){return this.gridOptions.pinnedTopRowData},e.prototype.getPinnedBottomRowData=function(){return this.gridOptions.pinnedBottomRowData},e.prototype.isFunctionsPassive=function(){return Lo(this.gridOptions.functionsPassive)},e.prototype.isSuppressChangeDetection=function(){return Lo(this.gridOptions.suppressChangeDetection)},e.prototype.isSuppressAnimationFrame=function(){return Lo(this.gridOptions.suppressAnimationFrame)},e.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText},e.prototype.isCacheQuickFilter=function(){return Lo(this.gridOptions.cacheQuickFilter)},e.prototype.isUnSortIcon=function(){return Lo(this.gridOptions.unSortIcon)},e.prototype.isSuppressMenuHide=function(){return Lo(this.gridOptions.suppressMenuHide)},e.prototype.isEnterMovesDownAfterEdit=function(){return Lo(this.gridOptions.enterMovesDownAfterEdit)},e.prototype.isEnterMovesDown=function(){return Lo(this.gridOptions.enterMovesDown)},e.prototype.isUndoRedoCellEditing=function(){return Lo(this.gridOptions.undoRedoCellEditing)},e.prototype.getUndoRedoCellEditingLimit=function(){return Mo(this.gridOptions.undoRedoCellEditingLimit)},e.prototype.isEnableCellEditingOnBackspace=function(){return Lo(this.gridOptions.enableCellEditingOnBackspace)},e.prototype.getRowStyle=function(){return this.gridOptions.rowStyle},e.prototype.getRowClass=function(){return this.gridOptions.rowClass},e.prototype.getRowStyleFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getRowStyle)},e.prototype.getRowClassFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getRowClass)},e.prototype.rowClassRules=function(){return this.gridOptions.rowClassRules},e.prototype.isServerSideInfiniteScroll=function(){return Lo(this.gridOptions.serverSideInfiniteScroll)},e.prototype.getServerSideGroupLevelParamsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getServerSideGroupLevelParams)},e.prototype.getCreateChartContainerFunc=function(){return this.mergeGridCommonParams(this.gridOptions.createChartContainer)},e.prototype.getPopupParent=function(){return this.gridOptions.popupParent},e.prototype.getBlockLoadDebounceMillis=function(){return this.gridOptions.blockLoadDebounceMillis},e.prototype.getPostProcessPopupFunc=function(){return this.mergeGridCommonParams(this.gridOptions.postProcessPopup)},e.prototype.getPaginationNumberFormatterFunc=function(){return this.mergeGridCommonParams(this.gridOptions.paginationNumberFormatter)},e.prototype.getChildCountFunc=function(){return this.gridOptions.getChildCount},e.prototype.getIsApplyServerSideTransactionFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isApplyServerSideTransaction)},e.prototype.getInitialGroupOrderComparator=function(){var e=this.gridOptions,t=e.initialGroupOrderComparator,o=e.defaultGroupOrderComparator;return t?this.mergeGridCommonParams(t):o?function(e){return o(e.nodeA,e.nodeB)}:void 0},e.prototype.getIsFullWidthCellFunc=function(){var e=this.gridOptions,t=e.isFullWidthRow,o=e.isFullWidthCell;return t?this.mergeGridCommonParams(t):o?function(e){return o(e.rowNode)}:void 0},e.prototype.getFullWidthCellRendererParams=function(){return this.gridOptions.fullWidthCellRendererParams},e.prototype.isEmbedFullWidthRows=function(){return Lo(this.gridOptions.embedFullWidthRows)||Lo(this.gridOptions.deprecatedEmbedFullWidthRows)},e.prototype.isDetailRowAutoHeight=function(){return Lo(this.gridOptions.detailRowAutoHeight)},e.prototype.getSuppressKeyboardEventFunc=function(){return this.gridOptions.suppressKeyboardEvent},e.prototype.getBusinessKeyForNodeFunc=function(){return this.gridOptions.getBusinessKeyForNode},e.prototype.getApi=function(){return this.gridOptions.api},e.prototype.getColumnApi=function(){return this.gridOptions.columnApi},e.prototype.isReadOnlyEdit=function(){return Lo(this.gridOptions.readOnlyEdit)},e.prototype.isImmutableData=function(){var e=null!=this.gridOptions.getRowId,t=Lo(this.gridOptions.immutableData),o=Lo(this.gridOptions.resetRowDataOnUpdate);return!o&&(e||t)},e.prototype.isEnsureDomOrder=function(){return Lo(this.gridOptions.ensureDomOrder)},e.prototype.isEnableCharts=function(){return!!Lo(this.gridOptions.enableCharts)&&ge.assertRegistered(ue.GridChartsModule,"enableCharts")},e.prototype.isEnableChartToolPanelsButton=function(){return Lo(this.gridOptions.enableChartToolPanelsButton)},e.prototype.getColResizeDefault=function(){return this.gridOptions.colResizeDefault},e.prototype.isSingleClickEdit=function(){return Lo(this.gridOptions.singleClickEdit)},e.prototype.isSuppressClickEdit=function(){return Lo(this.gridOptions.suppressClickEdit)},e.prototype.isStopEditingWhenCellsLoseFocus=function(){return Lo(this.gridOptions.stopEditingWhenCellsLoseFocus)},e.prototype.getGroupDefaultExpanded=function(){return this.gridOptions.groupDefaultExpanded},e.prototype.getMaxConcurrentDatasourceRequests=function(){var e=Mo(this.gridOptions.maxConcurrentDatasourceRequests);return null==e?2:e<=0?void 0:e},e.prototype.getMaxBlocksInCache=function(){return this.gridOptions.maxBlocksInCache},e.prototype.getCacheOverflowSize=function(){return this.gridOptions.cacheOverflowSize},e.prototype.getPaginationPageSize=function(){return Mo(this.gridOptions.paginationPageSize)},e.prototype.isPaginateChildRows=function(){var e=this.isGroupRemoveSingleChildren()||this.isGroupRemoveLowestSingleChildren();return!!e||Lo(this.gridOptions.paginateChildRows)},e.prototype.getCacheBlockSize=function(){return Ho(this.gridOptions.cacheBlockSize)},e.prototype.getInfiniteInitialRowCount=function(){return this.gridOptions.infiniteInitialRowCount},e.prototype.getServerSideInitialRowCount=function(){var e=this.gridOptions.serverSideInitialRowCount;return"number"===typeof e&&e>0?e:1},e.prototype.isPurgeClosedRowNodes=function(){return Lo(this.gridOptions.purgeClosedRowNodes)},e.prototype.isSuppressPaginationPanel=function(){return Lo(this.gridOptions.suppressPaginationPanel)},e.prototype.getRowData=function(){return this.gridOptions.rowData},e.prototype.isEnableRtl=function(){return Lo(this.gridOptions.enableRtl)},e.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow},e.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow},e.prototype.isAngularCompileRows=function(){return Lo(this.gridOptions.angularCompileRows)},e.prototype.isAngularCompileFilters=function(){return Lo(this.gridOptions.angularCompileFilters)},e.prototype.isDebug=function(){return Lo(this.gridOptions.debug)},e.prototype.getColumnDefs=function(){return this.gridOptions.columnDefs},e.prototype.getColumnTypes=function(){return this.gridOptions.columnTypes},e.prototype.getDatasource=function(){return this.gridOptions.datasource},e.prototype.getViewportDatasource=function(){return this.gridOptions.viewportDatasource},e.prototype.getServerSideDatasource=function(){return this.gridOptions.serverSideDatasource},e.prototype.isAccentedSort=function(){return Lo(this.gridOptions.accentedSort)},e.prototype.isEnableBrowserTooltips=function(){return Lo(this.gridOptions.enableBrowserTooltips)},e.prototype.isEnableCellExpressions=function(){return Lo(this.gridOptions.enableCellExpressions)},e.prototype.isEnableGroupEdit=function(){return Lo(this.gridOptions.enableGroupEdit)},e.prototype.isSuppressMiddleClickScrolls=function(){return Lo(this.gridOptions.suppressMiddleClickScrolls)},e.prototype.isPreventDefaultOnContextMenu=function(){return Lo(this.gridOptions.preventDefaultOnContextMenu)},e.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return Lo(this.gridOptions.suppressPreventDefaultOnMouseWheel)},e.prototype.isSuppressColumnVirtualisation=function(){return Lo(this.gridOptions.suppressColumnVirtualisation)},e.prototype.isSuppressRowVirtualisation=function(){return Lo(this.gridOptions.suppressRowVirtualisation)},e.prototype.isSuppressContextMenu=function(){return Lo(this.gridOptions.suppressContextMenu)},e.prototype.isAllowContextMenuWithControlKey=function(){return Lo(this.gridOptions.allowContextMenuWithControlKey)},e.prototype.isSuppressCopyRowsToClipboard=function(){return Lo(this.gridOptions.suppressCopyRowsToClipboard)},e.prototype.isSuppressCopySingleCellRanges=function(){return Lo(this.gridOptions.suppressCopySingleCellRanges)},e.prototype.isCopyHeadersToClipboard=function(){return Lo(this.gridOptions.copyHeadersToClipboard)},e.prototype.isCopyGroupHeadersToClipboard=function(){return Lo(this.gridOptions.copyGroupHeadersToClipboard)},e.prototype.isSuppressClipboardPaste=function(){return Lo(this.gridOptions.suppressClipboardPaste)},e.prototype.isSuppressLastEmptyLineOnPaste=function(){return Lo(this.gridOptions.suppressLastEmptyLineOnPaste)},e.prototype.isPagination=function(){return Lo(this.gridOptions.pagination)},e.prototype.isSuppressEnterpriseResetOnNewColumns=function(){return Lo(this.gridOptions.suppressEnterpriseResetOnNewColumns)},e.prototype.getProcessDataFromClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processDataFromClipboard)},e.prototype.getAsyncTransactionWaitMillis=function(){return n(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:fe.BATCH_WAIT_MILLIS},e.prototype.isSuppressMovableColumns=function(){return Lo(this.gridOptions.suppressMovableColumns)},e.prototype.isAnimateRows=function(){return!this.isEnsureDomOrder()&&Lo(this.gridOptions.animateRows)},e.prototype.isSuppressColumnMoveAnimation=function(){return Lo(this.gridOptions.suppressColumnMoveAnimation)},e.prototype.isSuppressAggFuncInHeader=function(){return Lo(this.gridOptions.suppressAggFuncInHeader)},e.prototype.isSuppressAggAtRootLevel=function(){return Lo(this.gridOptions.suppressAggAtRootLevel)},e.prototype.isSuppressAggFilteredOnly=function(){var e=void 0!==this.getGroupAggFiltering();return e||Lo(this.gridOptions.suppressAggFilteredOnly)},e.prototype.isRemovePivotHeaderRowWhenSingleValueColumn=function(){return Lo(this.gridOptions.removePivotHeaderRowWhenSingleValueColumn)},e.prototype.isShowOpenedGroup=function(){return Lo(this.gridOptions.showOpenedGroup)},e.prototype.isReactUi=function(){return Lo(this.gridOptions.reactUi)},e.prototype.isSuppressReactUi=function(){return Lo(this.gridOptions.suppressReactUi)},e.prototype.isEnableRangeSelection=function(){return ge.isRegistered(ue.RangeSelectionModule)&&Lo(this.gridOptions.enableRangeSelection)},e.prototype.isEnableRangeHandle=function(){return Lo(this.gridOptions.enableRangeHandle)},e.prototype.isEnableFillHandle=function(){return Lo(this.gridOptions.enableFillHandle)},e.prototype.getFillHandleDirection=function(){var e=this.gridOptions.fillHandleDirection;return e?"x"!==e&&"y"!==e&&"xy"!==e?(x((function(){return console.warn("AG Grid: valid values for fillHandleDirection are 'x', 'y' and 'xy'. Default to 'xy'.")}),"warn invalid fill direction"),"xy"):e:"xy"},e.prototype.getFillOperation=function(){return this.mergeGridCommonParams(this.gridOptions.fillOperation)},e.prototype.isSuppressMultiRangeSelection=function(){return Lo(this.gridOptions.suppressMultiRangeSelection)},e.prototype.isPaginationAutoPageSize=function(){return Lo(this.gridOptions.paginationAutoPageSize)},e.prototype.isRememberGroupStateWhenNewData=function(){return Lo(this.gridOptions.rememberGroupStateWhenNewData)},e.prototype.getIcons=function(){return this.gridOptions.icons},e.prototype.getGroupAggFiltering=function(){var e=this.gridOptions.groupAggFiltering;return"function"===typeof e?this.mergeGridCommonParams(e):Lo(e)?function(){return!0}:void 0},e.prototype.getAggFuncs=function(){return this.gridOptions.aggFuncs},e.prototype.getSortingOrder=function(){return this.gridOptions.sortingOrder},e.prototype.getAlignedGrids=function(){return this.gridOptions.alignedGrids},e.prototype.isMasterDetail=function(){var e=Lo(this.gridOptions.masterDetail);return!!e&&ge.assertRegistered(ue.MasterDetailModule,"masterDetail")},e.prototype.isKeepDetailRows=function(){return Lo(this.gridOptions.keepDetailRows)},e.prototype.getKeepDetailRowsCount=function(){var e=this.gridOptions.keepDetailRowsCount;return n(e)&&e>0?this.gridOptions.keepDetailRowsCount:Fo},e.prototype.getIsRowMasterFunc=function(){return this.gridOptions.isRowMaster},e.prototype.getIsRowSelectableFunc=function(){return this.gridOptions.isRowSelectable},e.prototype.getGroupRowRendererParams=function(){return this.gridOptions.groupRowRendererParams},e.prototype.getOverlayLoadingTemplate=function(){return this.gridOptions.overlayLoadingTemplate},e.prototype.getOverlayNoRowsTemplate=function(){return this.gridOptions.overlayNoRowsTemplate},e.prototype.isSuppressAutoSize=function(){return Lo(this.gridOptions.suppressAutoSize)},e.prototype.isEnableCellTextSelection=function(){return Lo(this.gridOptions.enableCellTextSelection)},e.prototype.isSuppressParentsInRowNodes=function(){return Lo(this.gridOptions.suppressParentsInRowNodes)},e.prototype.isSuppressClipboardApi=function(){return Lo(this.gridOptions.suppressClipboardApi)},e.prototype.isFunctionsReadOnly=function(){return Lo(this.gridOptions.functionsReadOnly)},e.prototype.isEnableCellTextSelect=function(){return Lo(this.gridOptions.enableCellTextSelection)},e.prototype.getDefaultColDef=function(){return this.gridOptions.defaultColDef},e.prototype.getDefaultColGroupDef=function(){return this.gridOptions.defaultColGroupDef},e.prototype.getDefaultExportParams=function(e){return this.gridOptions.defaultExportParams?(console.warn("AG Grid: Since v25.2 `defaultExportParams` has been replaced by `default"+gt(e)+"ExportParams`'"),this.gridOptions.defaultExportParams):"csv"===e&&this.gridOptions.defaultCsvExportParams?this.gridOptions.defaultCsvExportParams:"excel"===e&&this.gridOptions.defaultExcelExportParams?this.gridOptions.defaultExcelExportParams:void 0},e.prototype.isSuppressCsvExport=function(){return Lo(this.gridOptions.suppressCsvExport)},e.prototype.isAllowShowChangeAfterFilter=function(){return Lo(this.gridOptions.allowShowChangeAfterFilter)},e.prototype.isSuppressExcelExport=function(){return Lo(this.gridOptions.suppressExcelExport)},e.prototype.isSuppressMakeColumnVisibleAfterUnGroup=function(){return Lo(this.gridOptions.suppressMakeColumnVisibleAfterUnGroup)},e.prototype.getDataPathFunc=function(){return this.gridOptions.getDataPath},e.prototype.getIsServerSideGroupFunc=function(){return this.gridOptions.isServerSideGroup},e.prototype.getIsServerSideGroupOpenByDefaultFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isServerSideGroupOpenByDefault)},e.prototype.getIsGroupOpenByDefaultFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isGroupOpenByDefault)},e.prototype.getServerSideGroupKeyFunc=function(){return this.gridOptions.getServerSideGroupKey},e.prototype.getGroupRowAggFunc=function(){var e=this.gridOptions,t=e.getGroupRowAgg,o=e.groupRowAggNodes;return t?this.mergeGridCommonParams(t):o?function(e){return o(e.nodes)}:void 0},e.prototype.getContextMenuItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getContextMenuItems)},e.prototype.getMainMenuItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getMainMenuItems)},e.prototype.getRowIdFunc=function(){var e=this.gridOptions,t=e.getRowId,o=e.getRowNodeId;return t?this.mergeGridCommonParams(t):o?function(e){return o(e.data)}:void 0},e.prototype.getNavigateToNextHeaderFunc=function(){return this.mergeGridCommonParams(this.gridOptions.navigateToNextHeader)},e.prototype.getTabToNextHeaderFunc=function(){return this.mergeGridCommonParams(this.gridOptions.tabToNextHeader)},e.prototype.getNavigateToNextCellFunc=function(){return this.mergeGridCommonParams(this.gridOptions.navigateToNextCell)},e.prototype.getTabToNextCellFunc=function(){return this.mergeGridCommonParams(this.gridOptions.tabToNextCell)},e.prototype.getGridTabIndex=function(){return(this.gridOptions.tabIndex||0).toString()},e.prototype.isTreeData=function(){var e=Lo(this.gridOptions.treeData);return!!e&&ge.assertRegistered(ue.RowGroupingModule,"Tree Data")},e.prototype.isValueCache=function(){return Lo(this.gridOptions.valueCache)},e.prototype.isValueCacheNeverExpires=function(){return Lo(this.gridOptions.valueCacheNeverExpires)},e.prototype.isDeltaSort=function(){return Lo(this.gridOptions.deltaSort)},e.prototype.isAggregateOnlyChangedColumns=function(){return Lo(this.gridOptions.aggregateOnlyChangedColumns)},e.prototype.getProcessPivotResultColDefFunc=function(){return this.gridOptions.processPivotResultColDef||this.gridOptions.processSecondaryColDef},e.prototype.getProcessPivotResultColGroupDefFunc=function(){return this.gridOptions.processPivotResultColGroupDef||this.gridOptions.processSecondaryColGroupDef},e.prototype.getSendToClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.sendToClipboard)},e.prototype.getProcessRowPostCreateFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processRowPostCreate)},e.prototype.getProcessCellForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processCellForClipboard)},e.prototype.getProcessHeaderForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processHeaderForClipboard)},e.prototype.getProcessGroupHeaderForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processGroupHeaderForClipboard)},e.prototype.getProcessCellFromClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processCellFromClipboard)},e.prototype.getViewportRowModelPageSize=function(){return Ho(this.gridOptions.viewportRowModelPageSize,Io)},e.prototype.getViewportRowModelBufferSize=function(){return xo(this.gridOptions.viewportRowModelBufferSize,Go)},e.prototype.isServerSideSortAllLevels=function(){var e=Lo(this.gridOptions.serverSideSortAllLevels);return!this.isRowModelServerSide()&&e?(x((function(){return console.warn("AG Grid: The `serverSideSortAllLevels` property can only be used with the server side row model.")}),"serverSideSortAllLevels"),!1):e},e.prototype.isServerSideFilterAllLevels=function(){var e=Lo(this.gridOptions.serverSideFilterAllLevels);return!this.isRowModelServerSide()&&e?(x((function(){return console.warn("AG Grid: The `serverSideFilterAllLevels` property can only be used with the server side row model.")}),"serverSideFilterAllLevels"),!1):e},e.prototype.isServerSideSortOnServer=function(){var e=Lo(this.gridOptions.serverSideSortOnServer);return!this.isRowModelServerSide()&&e?(x((function(){return console.warn("AG Grid: The `serverSideSortOnServer` property can only be used with the server side row model.")}),"serverSideSortOnServerRowModel"),!1):this.isTreeData()&&e?(x((function(){return console.warn("AG Grid: The `serverSideSortOnServer` property cannot be used while using tree data.")}),"serverSideSortOnServerTreeData"),!1):e},e.prototype.isServerSideFilterOnServer=function(){var e=Lo(this.gridOptions.serverSideFilterOnServer);return!this.isRowModelServerSide()&&e?(x((function(){return console.warn("AG Grid: The `serverSideFilterOnServer` property can only be used with the server side row model.")}),"serverSideFilterOnServerRowModel"),!1):this.isTreeData()&&e?(x((function(){return console.warn("AG Grid: The `serverSideFilterOnServer` property cannot be used while using tree data.")}),"serverSideFilterOnServerTreeData"),!1):e},e.prototype.getPostSortFunc=function(){var e=this.gridOptions,t=e.postSortRows,o=e.postSort;return t?this.mergeGridCommonParams(t):o?function(e){return o(e.nodes)}:void 0},e.prototype.getChartToolbarItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getChartToolbarItems)},e.prototype.getChartThemeOverrides=function(){return this.gridOptions.chartThemeOverrides},e.prototype.getCustomChartThemes=function(){return this.gridOptions.customChartThemes},e.prototype.getChartThemes=function(){return this.gridOptions.chartThemes||["ag-default","ag-material","ag-pastel","ag-vivid","ag-solar"]},e.prototype.getChartToolPanelsDef=function(){return this.gridOptions.chartToolPanelsDef},e.prototype.getClipboardDelimiter=function(){return n(this.gridOptions.clipboardDelimiter)?this.gridOptions.clipboardDelimiter:"\t"},e.prototype.setProperty=function(e,t,o){void 0===o&&(o=!1);var r=this.gridOptions[e];if(o||r!==t){this.gridOptions[e]=t;var n={type:e,currentValue:t,previousValue:r};this.propertyEventService.dispatchEvent(n)}},e.prototype.addEventListener=function(e,t){this.propertyEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.propertyEventService.removeEventListener(e,t)},e.prototype.isSkipHeaderOnAutoSize=function(){return!!this.gridOptions.skipHeaderOnAutoSize},e.prototype.getAutoSizePadding=function(){var e=this.gridOptions.autoSizePadding;return null!=e&&e>=0?e:20},e.prototype.getHeaderHeight=function(){return"number"===typeof this.gridOptions.headerHeight?this.gridOptions.headerHeight:this.getFromTheme(25,"headerHeight")},e.prototype.getFloatingFiltersHeight=function(){return"number"===typeof this.gridOptions.floatingFiltersHeight?this.gridOptions.floatingFiltersHeight:this.getFromTheme(25,"headerHeight")},e.prototype.getGroupHeaderHeight=function(){return"number"===typeof this.gridOptions.groupHeaderHeight?this.gridOptions.groupHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotHeaderHeight=function(){return"number"===typeof this.gridOptions.pivotHeaderHeight?this.gridOptions.pivotHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotGroupHeaderHeight=function(){return"number"===typeof this.gridOptions.pivotGroupHeaderHeight?this.gridOptions.pivotGroupHeaderHeight:this.getGroupHeaderHeight()},e.prototype.isExternalFilterPresent=function(){return"function"===typeof this.gridOptions.isExternalFilterPresent&&this.gridOptions.isExternalFilterPresent({api:this.getApi(),columnApi:this.getColumnApi(),context:this.getContext()})},e.prototype.doesExternalFilterPass=function(e){return"function"===typeof this.gridOptions.doesExternalFilterPass&&this.gridOptions.doesExternalFilterPass(e)},e.prototype.getTooltipDelay=function(e){var t=this.gridOptions,o=t.tooltipShowDelay,r=t.tooltipHideDelay,i="show"===e?o:r,s=gt(e);return n(i)?(i<0&&x((function(){return console.warn("ag-grid: tooltip"+s+"Delay should not be lower than 0")}),"tooltip"+s+"DelayWarn"),Math.max(200,i)):null},e.prototype.isTooltipMouseTrack=function(){return Lo(this.gridOptions.tooltipMouseTrack)},e.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(){return Lo(this.gridOptions.suppressModelUpdateAfterUpdateTransaction)},e.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&n(this.gridOptions.getDocument)?e=this.gridOptions.getDocument():this.eGridDiv&&(e=this.eGridDiv.ownerDocument),e&&n(e)?e:document},e.prototype.getMinColWidth=function(){var e=this.gridOptions.minColWidth;if(n(e)&&e>t.MIN_COL_WIDTH)return this.gridOptions.minColWidth;var o=this.getFromTheme(null,"headerCellMinWidth");return n(o)?Math.max(o,t.MIN_COL_WIDTH):t.MIN_COL_WIDTH},e.prototype.getMaxColWidth=function(){return this.gridOptions.maxColWidth&&this.gridOptions.maxColWidth>t.MIN_COL_WIDTH?this.gridOptions.maxColWidth:null},e.prototype.getColWidth=function(){return"number"!==typeof this.gridOptions.colWidth||this.gridOptions.colWidth<t.MIN_COL_WIDTH?200:this.gridOptions.colWidth},e.prototype.getRowBuffer=function(){var e=this.gridOptions.rowBuffer;return"number"===typeof e?e<0&&(x((function(){return console.warn("AG Grid: rowBuffer should not be negative")}),"warn rowBuffer negative"),this.gridOptions.rowBuffer=e=0):e=fe.ROW_BUFFER_SIZE,e},e.prototype.getRowBufferInPixels=function(){var e=this.getRowBuffer(),t=this.getRowHeightAsNumber();return e*t},e.prototype.getScrollbarWidth=function(){if(null==this.scrollbarWidth){var e="number"===typeof this.gridOptions.scrollbarWidth&&this.gridOptions.scrollbarWidth>=0,t=e?this.gridOptions.scrollbarWidth:oo();null!=t&&(this.scrollbarWidth=t,this.eventService.dispatchEvent({type:lt.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},e.prototype.checkForDeprecated=function(){var e=this.gridOptions;e.deprecatedEmbedFullWidthRows&&console.warn("AG Grid: since v21.2, deprecatedEmbedFullWidthRows has been replaced with embedFullWidthRows."),e.rowDeselection&&console.warn("AG Grid: since v24.x, rowDeselection is deprecated and the behaviour is true by default. Please use `suppressRowDeselection` to prevent rows from being deselected."),e.enableMultiRowDragging&&(e.rowDragMultiRow=!0,delete e.enableMultiRowDragging,console.warn("AG Grid: since v26.1, `enableMultiRowDragging` is deprecated. Please use `rowDragMultiRow`."));var t=function(t,o,r){null!=e[t]&&(console.warn("AG Grid: since version "+r+", '"+t+"' is deprecated / renamed, please use the new property name '"+o+"' instead."),null==e[o]&&(e[o]=e[t]))};if(t("batchUpdateWaitMillis","asyncTransactionWaitMillis","23.1.x"),t("deltaRowDataMode","immutableData","23.1.x"),t("serverSideFilteringAlwaysResets","serverSideFilterAllLevels","28.0.0"),t("serverSideSortingAlwaysResets","serverSideSortAllLevels","28.0.0"),(e.immutableColumns||e.deltaColumnMode)&&console.warn("AG Grid: since v24.0, immutableColumns and deltaColumnMode properties are gone. The grid now works like this as default. To keep column order maintained, set grid property applyColumnDefOrder=true"),t("suppressSetColumnStateEvents","suppressColumnStateEvents","24.0.x"),e.groupRowInnerRenderer||e.groupRowInnerRendererParams||e.groupRowInnerRendererFramework){console.warn("AG Grid: since v24.0, grid properties groupRowInnerRenderer, groupRowInnerRendererFramework and groupRowInnerRendererParams are no longer used."),console.warn(" Instead use the grid properties groupRowRendererParams.innerRenderer, groupRowRendererParams.innerRendererFramework and groupRowRendererParams.innerRendererParams."),console.warn(" For example instead of this:"),console.warn(' groupRowInnerRenderer: "myRenderer"'),console.warn(" groupRowInnerRendererParams: {x: a}"),console.warn(" Replace with this:"),console.warn(" groupRowRendererParams: {"),console.warn(' innerRenderer: "myRenderer",'),console.warn(" innerRendererParams: {x: a}"),console.warn(" }"),console.warn(" We have copied the properties over for you. However to stop this error message, please change your application code."),e.groupRowRendererParams||(e.groupRowRendererParams={});var o=e.groupRowRendererParams;e.groupRowInnerRenderer&&(o.innerRenderer=e.groupRowInnerRenderer),e.groupRowInnerRendererParams&&(o.innerRendererParams=e.groupRowInnerRendererParams),e.groupRowInnerRendererFramework&&(o.innerRendererFramework=e.groupRowInnerRendererFramework)}if(e.rememberGroupStateWhenNewData&&console.warn("AG Grid: since v24.0, grid property rememberGroupStateWhenNewData is deprecated. This feature was provided before Transaction Updates worked (which keep group state). Now that transaction updates are possible and they keep group state, this feature is no longer needed."),e.detailCellRendererParams&&e.detailCellRendererParams.autoHeight&&(console.warn("AG Grid: since v24.1, grid property detailCellRendererParams.autoHeight is replaced with grid property detailRowAutoHeight. This allows this feature to work when you provide a custom DetailCellRenderer"),e.detailRowAutoHeight=!0),e.suppressKeyboardEvent&&console.warn("AG Grid: since v24.1 suppressKeyboardEvent in the gridOptions has been deprecated and will be removed in\n future versions of AG Grid. If you need this to be set for every column use the defaultColDef property."),e.suppressEnterpriseResetOnNewColumns&&console.warn("AG Grid: since v25, grid property suppressEnterpriseResetOnNewColumns is deprecated. This was a temporary property to allow changing columns in Server Side Row Model without triggering a reload. Now that it is possible to dynamically change columns in the grid, this is no longer needed."),e.suppressColumnStateEvents&&console.warn('AG Grid: since v25, grid property suppressColumnStateEvents no longer works due to a refactor that we did. It should be possible to achieve similar using event.source, which would be "api" if the event was due to setting column state via the API'),e.defaultExportParams&&console.warn("AG Grid: since v25.2, the grid property `defaultExportParams` has been replaced by `defaultCsvExportParams` and `defaultExcelExportParams`."),e.stopEditingWhenGridLosesFocus&&(console.warn("AG Grid: since v25.2.2, the grid property `stopEditingWhenGridLosesFocus` has been replaced by `stopEditingWhenCellsLoseFocus`."),e.stopEditingWhenCellsLoseFocus=!0),e.applyColumnDefOrder&&console.warn("AG Grid: since v26.0, the grid property `applyColumnDefOrder` is no longer needed, as this is the default behaviour. To turn this behaviour off, set maintainColumnOrder=true"),e.groupMultiAutoColumn&&(console.warn("AG Grid: since v26.0, the grid property `groupMultiAutoColumn` has been replaced by `groupDisplayType = 'multipleColumns'`"),e.groupDisplayType="multipleColumns"),e.groupUseEntireRow&&(console.warn("AG Grid: since v26.0, the grid property `groupUseEntireRow` has been replaced by `groupDisplayType = 'groupRows'`"),e.groupDisplayType="groupRows"),e.groupSuppressAutoColumn){var r=e.treeData?"treeDataDisplayType":"groupDisplayType";console.warn("AG Grid: since v26.0, the grid property `groupSuppressAutoColumn` has been replaced by `"+r+" = 'custom'`"),e.groupDisplayType="custom"}e.defaultGroupOrderComparator&&console.warn("AG Grid: since v27.2, the grid property `defaultGroupOrderComparator` is deprecated and has been replaced by `initialGroupOrderComparator` and now receives a single params object."),e.defaultGroupSortComparator&&(console.warn("AG Grid: since v26.0, the grid property `defaultGroupSortComparator` has been replaced by `initialGroupOrderComparator`"),e.defaultGroupOrderComparator=e.defaultGroupSortComparator),e.groupRowAggNodes&&console.warn("AG Grid: since v27.2, the grid property `groupRowAggNodes` is deprecated and has been replaced by `getGroupRowAgg` and now receives a single params object."),e.postSort&&console.warn("AG Grid: since v27.2, the grid property `postSort` is deprecated and has been replaced by `postSortRows` and now receives a single params object."),e.isFullWidthCell&&console.warn("AG Grid: since v27.2, the grid property `isFullWidthCell` is deprecated and has been replaced by `isFullWidthRow` and now receives a single params object."),e.localeTextFunc&&console.warn("AG Grid: since v27.2, the grid property `localeTextFunc` is deprecated and has been replaced by `getLocaleText` and now receives a single params object."),e.colWidth&&console.warn("AG Grid: since v26.1, the grid property `colWidth` is deprecated and should be set via `defaultColDef.width`."),e.minColWidth&&console.warn("AG Grid: since v26.1, the grid property `minColWidth` is deprecated and should be set via `defaultColDef.minWidth`."),e.maxColWidth&&console.warn("AG Grid: since v26.1, the grid property `maxColWidth` is deprecated and should be set via `defaultColDef.maxWidth`."),e.reactUi&&console.warn("AG Grid: since v27.0, React UI is on by default, so no need for reactUi=true. To turn it off, set suppressReactUi=true."),e.suppressReactUi&&console.warn("AG Grid: The legacy React rendering engine is deprecated and will be removed in the next major version of the grid."),e.suppressCellSelection&&(console.warn("AG Grid: since v27.0, `suppressCellSelection` has been replaced by `suppressCellFocus`."),e.suppressCellFocus=e.suppressCellSelection),e.getRowNodeId&&console.warn("AG Grid: since v27.1, `getRowNodeId` is deprecated and has been replaced by `getRowId`. The difference: if getRowId() is implemented then immutable data is enabled by default."),e.immutableData&&(e.getRowId?console.warn("AG Grid: since v27.1, `immutableData` is deprecated. With the `getRowId` callback implemented, immutable data is enabled by default so you can remove `immutableData=true`."):console.warn("AG Grid: since v27.1, `immutableData` is deprecated. To enable immutable data you must implement the `getRowId()` callback.")),e.clipboardDeliminator&&(console.warn("AG Grid: since v27.1, `clipboardDeliminator` has been replaced by `clipboardDelimiter`."),e.clipboardDelimiter=e.clipboardDeliminator),t("processSecondaryColDef","processPivotResultColDef","28.0.x"),t("processSecondaryColGroupDef","processPivotResultColGroupDef","28.0.x"),e.serverSideStoreType&&(console.warn("AG Grid: since v28.0, `serverSideStoreType` has been replaced by `serverSideInfiniteScroll`. Set to true to use Partial Store, and false to use Full Store."),e.serverSideInfiniteScroll="partial"===e.serverSideStoreType),t("getServerSideStoreParams","getServerSideGroupLevelParams","28.0.x")},e.prototype.checkForViolations=function(){this.isTreeData()&&this.treeDataViolations()},e.prototype.treeDataViolations=function(){this.isRowModelDefault()&&i(this.getDataPathFunc())&&console.warn("AG Grid: property usingTreeData=true with rowModel=clientSide, but you did not provide getDataPath function, please provide getDataPath function if using tree data."),this.isRowModelServerSide()&&(i(this.getIsServerSideGroupFunc())&&console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide isServerSideGroup function, please provide isServerSideGroup function if using tree data."),i(this.getServerSideGroupKeyFunc())&&console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data."))},e.prototype.getLocaleTextFunc=function(){var e=this,t=this.gridOptions,o=t.localeText,r=t.getLocaleText,n=t.localeTextFunc;return r?function(t,o,n){var i={key:t,defaultValue:o,variableValues:n,api:e.getApi(),columnApi:e.getColumnApi(),context:e.getContext()};return r(i)}:n||function(e,t,r){var n=o&&o[e];if(n&&r&&r.length){var i=0;while(1){if(i>=r.length)break;var s=n.indexOf("${variable}");if(-1===s)break;n=n.replace("${variable}",r[i++])}}return null!==n&&void 0!==n?n:t}},e.prototype.globalEventHandler=function(e,t){if(!this.destroyed){var o=It.getCallbackForEvent(e);"function"===typeof this.gridOptions[o]&&this.gridOptions[o](t)}},e.prototype.setRowHeightVariable=function(e){var t=this.eGridDiv.style.getPropertyValue("--ag-line-height").trim(),o=e+"px";t!=o&&this.eGridDiv.style.setProperty("--ag-line-height",o)},e.prototype.getRowHeightAsNumber=function(){if(!this.gridOptions.rowHeight||i(this.gridOptions.rowHeight))return this.getDefaultRowHeight();var e=this.gridOptions.rowHeight;return e&&this.isNumeric(e)?(this.setRowHeightVariable(e),e):(console.warn("AG Grid row height must be a number if not using standard row model"),this.getDefaultRowHeight())},e.prototype.isGetRowHeightFunction=function(){return"function"===typeof this.gridOptions.getRowHeight},e.prototype.getRowHeightForNode=function(e,t,o){if(void 0===t&&(t=!1),null==o&&(o=this.getDefaultRowHeight()),this.isGetRowHeightFunction()){if(t)return{height:o,estimated:!0};var r={node:e,data:e.data},n=this.mergeGridCommonParams(this.gridOptions.getRowHeight)(r);if(this.isNumeric(n))return 0===n&&x((function(){return console.warn("AG Grid: The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.")}),"invalidRowHeight"),{height:Math.max(1,n),estimated:!1}}if(e.detail&&this.isMasterDetail())return this.isDetailRowAutoHeight()?{height:1,estimated:!1}:this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:No,estimated:!1};var i=this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:o;return{height:i,estimated:!1}},e.prototype.isDynamicRowHeight=function(){return"function"===typeof this.gridOptions.getRowHeight},e.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},e.prototype.chartMenuPanelWidth=function(){return this.environment.chartMenuPanelWidth()},e.prototype.isNumeric=function(e){return!isNaN(e)&&"number"===typeof e&&isFinite(e)},e.prototype.getFromTheme=function(e,t){var o=this.environment.getTheme().theme;return o&&0===o.indexOf("ag-theme")?this.environment.getSassVariable(o,t):e},e.prototype.getDefaultRowHeight=function(){return this.getFromTheme(Ao,"rowHeight")},e.prototype.matchesGroupDisplayType=function(e,t){var o=["groupRows","multipleColumns","custom","singleColumn"];return o.indexOf(t)<0?(console.warn("AG Grid: '"+t+"' is not a valid groupDisplayType value - possible values are: '"+o.join("', '")+"'"),!1):t===e},e.prototype.matchesTreeDataDisplayType=function(e,t){var o=["auto","custom"];return o.indexOf(t)<0?(console.warn("AG Grid: '"+t+"' is not a valid treeDataDisplayType value - possible values are: '"+o.join("', '")+"'"),!1):t===e},e.MIN_COL_WIDTH=10,e.PROP_HEADER_HEIGHT="headerHeight",e.PROP_GROUP_REMOVE_SINGLE_CHILDREN="groupRemoveSingleChildren",e.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN="groupRemoveLowestSingleChildren",e.PROP_GROUP_DISPLAY_TYPE="groupDisplayType",e.PROP_PIVOT_HEADER_HEIGHT="pivotHeaderHeight",e.PROP_SUPPRESS_CLIPBOARD_PASTE="suppressClipboardPaste",e.PROP_GROUP_HEADER_HEIGHT="groupHeaderHeight",e.PROP_PIVOT_GROUP_HEADER_HEIGHT="pivotGroupHeaderHeight",e.PROP_NAVIGATE_TO_NEXT_CELL="navigateToNextCell",e.PROP_TAB_TO_NEXT_CELL="tabToNextCell",e.PROP_NAVIGATE_TO_NEXT_HEADER="navigateToNextHeader",e.PROP_TAB_TO_NEXT_HEADER="tabToNextHeader",e.PROP_IS_EXTERNAL_FILTER_PRESENT="isExternalFilterPresent",e.PROP_DOES_EXTERNAL_FILTER_PASS="doesExternalFilterPass",e.PROP_FLOATING_FILTERS_HEIGHT="floatingFiltersHeight",e.PROP_SUPPRESS_ROW_CLICK_SELECTION="suppressRowClickSelection",e.PROP_SUPPRESS_ROW_DRAG="suppressRowDrag",e.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG="suppressMoveWhenRowDragging",e.PROP_GET_ROW_CLASS="getRowClass",e.PROP_GET_ROW_STYLE="getRowStyle",e.PROP_GET_ROW_HEIGHT="getRowHeight",e.PROP_POPUP_PARENT="popupParent",e.PROP_DOM_LAYOUT="domLayout",e.PROP_ROW_CLASS="rowClass",e.PROP_FILL_HANDLE_DIRECTION="fillHandleDirection",e.PROP_GROUP_ROW_AGG_NODES="groupRowAggNodes",e.PROP_GET_GROUP_ROW_AGG="getGroupRowAgg",e.PROP_GET_BUSINESS_KEY_FOR_NODE="getBusinessKeyForNode",e.PROP_GET_CHILD_COUNT="getChildCount",e.PROP_PROCESS_ROW_POST_CREATE="processRowPostCreate",e.PROP_GET_ROW_NODE_ID="getRowNodeId",e.PROP_GET_ROW_ID="getRowId",e.PROP_IS_FULL_WIDTH_CELL="isFullWidthCell",e.PROP_IS_FULL_WIDTH_ROW="isFullWidthRow",e.PROP_IS_ROW_SELECTABLE="isRowSelectable",e.PROP_IS_ROW_MASTER="isRowMaster",e.PROP_POST_SORT="postSort",e.PROP_POST_SORT_ROWS="postSortRows",e.PROP_GET_DOCUMENT="getDocument",e.PROP_POST_PROCESS_POPUP="postProcessPopup",e.PROP_DEFAULT_GROUP_ORDER_COMPARATOR="defaultGroupOrderComparator",e.PROP_INITIAL_GROUP_ORDER_COMPARATOR="initialGroupOrderComparator",e.PROP_PAGINATION_NUMBER_FORMATTER="paginationNumberFormatter",e.PROP_GET_CONTEXT_MENU_ITEMS="getContextMenuItems",e.PROP_GET_MAIN_MENU_ITEMS="getMainMenuItems",e.PROP_PROCESS_CELL_FOR_CLIPBOARD="processCellForClipboard",e.PROP_PROCESS_CELL_FROM_CLIPBOARD="processCellFromClipboard",e.PROP_SEND_TO_CLIPBOARD="sendToClipboard",e.PROP_PROCESS_PIVOT_RESULT_COL_DEF="processPivotResultColDef",e.PROP_PROCESS_PIVOT_RESULT_COL_GROUP_DEF="processPivotResultColGroupDef",e.PROP_GET_CHART_TOOLBAR_ITEMS="getChartToolbarItems",e.PROP_GET_SERVER_SIDE_GROUP_PARAMS="getServerSideGroupLevelParams",e.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT="isServerSideGroupOpenByDefault",e.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION="isApplyServerSideTransaction",e.PROP_IS_SERVER_SIDE_GROUP="isServerSideGroup",e.PROP_GET_SERVER_SIDE_GROUP_KEY="getServerSideGroupKey",e.PROP_AUTO_GROUP_COLUMN_DEF="autoGroupColumnDef",e.PROP_DEFAULT_COL_DEF="defaultColDef",bo([ne("gridOptions")],e.prototype,"gridOptions",void 0),bo([ne("eventService")],e.prototype,"eventService",void 0),bo([ne("environment")],e.prototype,"environment",void 0),bo([ne("eGridDiv")],e.prototype,"eGridDiv",void 0),bo([Po(0,ae("gridApi")),Po(1,ae("columnApi"))],e.prototype,"agWire",null),bo([oe],e.prototype,"destroy",null),bo([te],e.prototype,"init",null),e=t=bo([re("gridOptionsWrapper")],e),e}(),Wo=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ko=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Bo=function(e,t){return function(o,r){t(o,r,e)}},jo=function(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(o[r[n]]=e[r[n]])}return o},Uo=function(e){var t="function"===typeof Symbol&&Symbol.iterator,o=t&&e[t],r=0;if(o)return o.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},zo=function(e,t){var o="function"===typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,n,i=o.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=i.next()).done)s.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(o=i["return"])&&o.call(i)}finally{if(n)throw n.error}}return s},Ko=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(zo(arguments[t]));return e},Yo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.primaryHeaderRowCount=0,t.secondaryHeaderRowCount=0,t.gridHeaderRowCount=0,t.displayedColumnsLeft=[],t.displayedColumnsRight=[],t.displayedColumnsCenter=[],t.displayedColumns=[],t.displayedColumnsAndGroupsMap={},t.viewportColumns=[],t.viewportColumnsHash="",t.headerViewportColumns=[],t.viewportColumnsCenter=[],t.headerViewportColumnsCenter=[],t.autoHeightActiveAtLeastOnce=!1,t.rowGroupColumns=[],t.valueColumns=[],t.pivotColumns=[],t.ready=!1,t.autoGroupsNeedBuilding=!1,t.forceRecreateAutoGroups=!1,t.pivotMode=!1,t.bodyWidth=0,t.leftWidth=0,t.rightWidth=0,t.bodyWidthDirty=!0,t.flexColsCalculatedAtLestOnce=!1,t}return Wo(t,e),t.prototype.init=function(){var e=this;this.suppressColumnVirtualisation=this.gridOptionsWrapper.isSuppressColumnVirtualisation();var t=this.gridOptionsWrapper.isPivotMode();this.isPivotSettingAllowed(t)&&(this.pivotMode=t),this.usingTreeData=this.gridOptionsWrapper.isTreeData(),this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_GROUP_DISPLAY_TYPE,(function(){return e.onAutoGroupColumnDefChanged()})),this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_AUTO_GROUP_COLUMN_DEF,(function(){return e.onAutoGroupColumnDefChanged()})),this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_DEFAULT_COL_DEF,(function(){return e.onDefaultColDefChanged()}))},t.prototype.onAutoGroupColumnDefChanged=function(){this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns("gridOptionsChanged")},t.prototype.onDefaultColDefChanged=function(){this.forceRecreateAutoGroups=!0,this.createColumnsFromColumnDefs(!0)},t.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api");var o=!!this.columnDefs;this.columnDefs=e,this.createColumnsFromColumnDefs(o,t)},t.prototype.createColumnsFromColumnDefs=function(e,t){var o=this;void 0===t&&(t="api");var r=e?this.compareColumnStatesAndRaiseEvents(t):void 0;this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var n=this.primaryColumns,i=this.primaryColumnTree,s=this.columnFactory.createColumnTree(this.columnDefs,!0,i);this.primaryColumnTree=s.columnTree,this.primaryHeaderRowCount=s.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.primaryColumnsMap={},this.primaryColumns.forEach((function(e){return o.primaryColumnsMap[e.getId()]=e})),this.extractRowGroupColumns(t,n),this.extractPivotColumns(t,n),this.extractValueColumns(t,n),this.ready=!0;var a=void 0===this.gridColsArePrimary,l=this.gridColsArePrimary||a;l&&(this.updateGridColumns(),e&&!this.gridOptionsWrapper.isMaintainColumnOrder()&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(t),this.checkViewportColumns()),this.dispatchEverythingChanged(t),r&&r(),this.dispatchNewColumnsLoaded()},t.prototype.dispatchNewColumnsLoaded=function(){var e={type:lt.EVENT_NEW_COLUMNS_LOADED};this.eventService.dispatchEvent(e)},t.prototype.dispatchEverythingChanged=function(e){void 0===e&&(e="api");var t={type:lt.EVENT_COLUMN_EVERYTHING_CHANGED,source:e};this.eventService.dispatchEvent(t)},t.prototype.orderGridColumnsLikePrimary=function(){var e=this,t=this.primaryColumns;t&&(this.gridColumns.sort((function(o,r){var n=t.indexOf(o),i=t.indexOf(r),s=n>=0,a=i>=0;if(s&&a)return n-i;if(s)return 1;if(a)return-1;var l=e.gridColumns.indexOf(o),u=e.gridColumns.indexOf(r);return l-u})),this.gridColumns=this.placeLockedColumns(this.gridColumns))},t.prototype.getAllDisplayedAutoHeightCols=function(){return this.displayedAutoHeightCols},t.prototype.setViewport=function(){this.gridOptionsWrapper.isEnableRtl()?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},t.prototype.getDisplayedColumnsStartingAt=function(e){var t=e,o=[];while(null!=t)o.push(t),t=this.getDisplayedColAfter(t);return o},t.prototype.checkViewportColumns=function(){if(null!=this.displayedColumnsCenter){var e=this.extractViewport();if(e){var t={type:lt.EVENT_VIRTUAL_COLUMNS_CHANGED};this.eventService.dispatchEvent(t)}}},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.gridOptionsWrapper.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 o={type:lt.EVENT_COLUMN_PIVOT_MODE_CHANGED};this.eventService.dispatchEvent(o)}},t.prototype.getSecondaryPivotColumn=function(e,t){if(i(this.secondaryColumns))return null;var o=this.getPrimaryColumn(t),r=null;return this.secondaryColumns.forEach((function(t){var n=t.getColDef().pivotKeys,i=t.getColDef().pivotValueColumn,s=Re(n,e),a=i===o;s&&a&&(r=t)})),r},t.prototype.setBeans=function(e){this.logger=e.create("columnModel")},t.prototype.setFirstRightAndLastLeftPinned=function(e){var t,o;this.gridOptionsWrapper.isEnableRtl()?(t=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,o=this.displayedColumnsRight?Ee(this.displayedColumnsRight):null):(t=this.displayedColumnsLeft?Ee(this.displayedColumnsLeft):null,o=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach((function(r){r.setLastLeftPinned(r===t,e),r.setFirstRightPinned(r===o,e)}))},t.prototype.autoSizeColumns=function(e){var t=this,o=e.columns,r=e.skipHeader,n=e.skipHeaderGroups,i=e.stopAtGroup,s=e.source,a=void 0===s?"api":s;this.animationFrameService.flushAllFrames();var l=[],u=-1,p=null!=r?r:this.gridOptionsWrapper.isSkipHeaderOnAutoSize(),c=null!=n?n:p;while(0!==u)u=0,this.actionOnGridColumns(o,(function(e){if(l.indexOf(e)>=0)return!1;var o=t.autoWidthCalculator.getPreferredWidthForColumn(e,p);if(o>0){var r=t.normaliseColumnWidth(e,o);e.setActualWidth(r,a),l.push(e),u++}return!0}),a);c||this.autoSizeColumnGroupsByColumns(o,i),this.fireColumnResizedEvent(l,!0,"autosizeColumns")},t.prototype.fireColumnResizedEvent=function(e,t,o,r){if(void 0===r&&(r=null),e&&e.length){var n={type:lt.EVENT_COLUMN_RESIZED,columns:e,column:1===e.length?e[0]:null,flexColumns:r,finished:t,source:o};this.eventService.dispatchEvent(n)}},t.prototype.autoSizeColumn=function(e,t,o){void 0===o&&(o="api"),e&&this.autoSizeColumns({columns:[e],skipHeader:t,skipHeaderGroups:!0,source:o})},t.prototype.autoSizeColumnGroupsByColumns=function(e,t){var o,r,n,i,s,a=new Set,l=this.getGridColumns(e);l.forEach((function(e){var o=e.getParent();while(o&&o!=t)o.isPadding()||a.add(o),o=o.getParent()}));var u=[];try{for(var p=Uo(a),c=p.next();!c.done;c=p.next()){var d=c.value;try{for(var h=(n=void 0,Uo(this.ctrlsService.getHeaderRowContainerCtrls())),f=h.next();!f.done;f=h.next()){var g=f.value;if(s=g.getHeaderCtrlForColumn(d),s)break}}catch(v){n={error:v}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}s&&s.resizeLeafColumnsToFit()}}catch(y){o={error:y}}finally{try{c&&!c.done&&(r=p.return)&&r.call(p)}finally{if(o)throw o.error}}return u},t.prototype.autoSizeAllColumns=function(e,t){void 0===t&&(t="api");var o=this.getAllDisplayedColumns();this.autoSizeColumns({columns:o,skipHeader:e,source:t})},t.prototype.getColumnsFromTree=function(e){var t=[],o=function(e){for(var r=0;r<e.length;r++){var n=e[r];n instanceof me?t.push(n):n instanceof We&&o(n.getChildren())}};return o(e),t},t.prototype.getAllDisplayedTrees=function(){return this.displayedTreeLeft&&this.displayedTreeRight&&this.displayedTreeCentre?this.displayedTreeLeft.concat(this.displayedTreeCentre).concat(this.displayedTreeRight):null},t.prototype.getPrimaryColumnTree=function(){return this.primaryColumnTree},t.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},t.prototype.getDisplayedTreeLeft=function(){return this.displayedTreeLeft},t.prototype.getDisplayedTreeRight=function(){return this.displayedTreeRight},t.prototype.getDisplayedTreeCentre=function(){return this.displayedTreeCentre},t.prototype.isColumnDisplayed=function(e){return this.getAllDisplayedColumns().indexOf(e)>=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.getDisplayedColumnsForRow=function(e,t,o,r){for(var n,i=[],s=null,a=function(a){var l,u=t[a],p=t.length-a,c=Math.min(u.getColSpan(e),p),d=[u];if(c>1){for(var h=c-1,f=1;f<=h;f++)d.push(t[a+f]);a+=h}if(o?(l=!1,d.forEach((function(e){o(e)&&(l=!0)}))):l=!0,l){if(0===i.length&&s){var g=!!r&&r(u);g&&i.push(s)}i.push(u)}s=u,n=a},l=0;l<t.length;l++)a(l),l=n;return i},t.prototype.getViewportCenterColumnsForRow=function(e){var t=this;if(!this.colSpanActive)return this.viewportColumnsCenter;var o=function(e){var o=e.getLeft();return n(o)&&o>t.viewportLeft},r=this.suppressColumnVirtualisation?null:this.isColumnInRowViewport.bind(this);return this.getDisplayedColumnsForRow(e,this.displayedColumnsCenter,r,o)},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,o=t+e.getActualWidth(),r=this.viewportLeft-200,n=this.viewportRight+200,i=t<r&&o<r,s=t>n&&o>n;return!i&&!s},t.prototype.getDisplayedColumnsLeftWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsLeft)},t.prototype.getDisplayedColumnsRightWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsRight)},t.prototype.updatePrimaryColumnList=function(e,t,o,r,n,i){var a=this;if(void 0===i&&(i="api"),e&&!s(e)){var l=!1;if(e.forEach((function(e){var n=a.getPrimaryColumn(e);if(n){if(o){if(t.indexOf(n)>=0)return;t.push(n)}else{if(t.indexOf(n)<0)return;Pe(t,n)}r(n),l=!0}})),l){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(i);var u={type:n,columns:t,column:1===t.length?t[0]:null,source:i};this.eventService.dispatchEvent(u)}}},t.prototype.setRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,lt.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),t)},t.prototype.setRowGroupActive=function(e,t,o){e!==t.isRowGroupActive()&&(t.setRowGroupActive(e,o),e&&!this.gridOptionsWrapper.isSuppressRowGroupHidesColumns()&&this.setColumnVisible(t,!1,o),e||this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()||this.setColumnVisible(t,!0,o))},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),lt.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),lt.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)}),lt.EVENT_COLUMN_PIVOT_CHANGED,t)},t.prototype.setPivotColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.pivotColumns,lt.EVENT_COLUMN_PIVOT_CHANGED,(function(e,o){o.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)}),lt.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,o,r,i){var s=this;t.length=0,n(e)&&e.forEach((function(e){var o=s.getPrimaryColumn(e);o&&t.push(o)})),(this.primaryColumns||[]).forEach((function(e){var o=t.indexOf(e)>=0;r(o,e)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(i),this.fireColumnEvent(o,t,i)},t.prototype.setValueColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.valueColumns,lt.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),t)},t.prototype.setValueActive=function(e,t,o){if(e!==t.isValueActive()&&(t.setValueActive(e,o),e&&!t.getAggFunc())){var r=this.aggFuncService.getDefaultAggFunc(t);t.setAggFunc(r)}},t.prototype.addValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),lt.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),lt.EVENT_COLUMN_VALUE_CHANGED,t)},t.prototype.normaliseColumnWidth=function(e,t){var o=e.getMinWidth();n(o)&&t<o&&(t=o);var r=e.getMaxWidth();return n(r)&&e.isGreaterThanMax(t)&&(t=r),t},t.prototype.getPrimaryOrGridColumn=function(e){var t=this.getPrimaryColumn(e);return t||this.getGridColumn(e)},t.prototype.setColumnWidths=function(e,t,o,r){var n=this;void 0===r&&(r="api");var i=[];e.forEach((function(e){var o=n.getPrimaryOrGridColumn(e.key);if(o){i.push({width:e.newWidth,ratios:[1],columns:[o]});var r="shift"===n.gridOptionsWrapper.getColResizeDefault();if(r&&(t=!t),t){var s=n.getDisplayedColAfter(o);if(!s)return;var a=o.getActualWidth()-e.newWidth,l=s.getActualWidth()+a;i.push({width:l,ratios:[1],columns:[s]})}}})),0!==i.length&&this.resizeColumnSets({resizeSets:i,finished:o,source:r})},t.prototype.checkMinAndMaxWidthsForSet=function(e){var t=e.columns,o=e.width,r=0,i=0,s=!0;t.forEach((function(e){var t=e.getMinWidth();r+=t||0;var o=e.getMaxWidth();n(o)&&o>0?i+=o:s=!1}));var a=o>=r,l=!s||o<=i;return a&&l},t.prototype.resizeColumnSets=function(e){var t=this,o=e.resizeSets,r=e.finished,i=e.source,s=!o||o.every((function(e){return t.checkMinAndMaxWidthsForSet(e)}));if(s){var a=[],l=[];o.forEach((function(e){var t=e.width,o=e.columns,r=e.ratios,s={},u={};o.forEach((function(e){return l.push(e)}));var p=!0,c=0,d=function(){if(c++,c>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";p=!1;var e=[],i=0,a=t;o.forEach((function(t,o){var n=u[t.getId()];if(n)a-=s[t.getId()];else{e.push(t);var l=r[o];i+=l}}));var l=1/i;e.forEach((function(o,i){var c,d=i===e.length-1;d?c=a:(c=Math.round(r[i]*t*l),a-=c);var h=o.getMinWidth(),f=o.getMaxWidth();n(h)&&c<h?(c=h,u[o.getId()]=!0,p=!0):n(f)&&f>0&&c>f&&(c=f,u[o.getId()]=!0,p=!0),s[o.getId()]=c}))};while(p){var h=d();if("break"===h)break}o.forEach((function(e){var t=s[e.getId()],o=e.getActualWidth();o!==t&&(e.setActualWidth(t,i),a.push(e))}))}));var u=a.length>0,p=[];u&&(p=this.refreshFlexedColumns({resizingCols:l,skipSetLeft:!0}),this.setLeftValues(i),this.updateBodyWidths(),this.checkViewportColumns());var c=l.concat(p);(u||r)&&this.fireColumnResizedEvent(c,r,i,p)}else if(r){var d=o&&o.length>0?o[0].columns:null;this.fireColumnResizedEvent(d,r,i)}},t.prototype.setColumnAggFunc=function(e,t,o){if(void 0===o&&(o="api"),e){var r=this.getPrimaryColumn(e);r&&(r.setAggFunc(t),this.fireColumnEvent(lt.EVENT_COLUMN_VALUE_CHANGED,[r],o))}},t.prototype.fireColumnEvent=function(e,t,o){var r={type:e,columns:t,column:t&&1==t.length?t[0]:null,source:o};this.eventService.dispatchEvent(r)},t.prototype.moveRowGroupColumn=function(e,t,o){void 0===o&&(o="api");var r=this.rowGroupColumns[e];this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(t,0,r);var n={type:lt.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:this.rowGroupColumns,column:1===this.rowGroupColumns.length?this.rowGroupColumns[0]:null,source:o};this.eventService.dispatchEvent(n)},t.prototype.moveColumns=function(e,t,o){if(void 0===o&&(o="api"),this.columnAnimationService.start(),t>this.gridColumns.length-e.length)return console.warn("AG Grid: tried to insert columns in invalid location, toIndex = "+t),void console.warn("AG Grid: remember that you should not count the moving columns when calculating the new index");var r=this.getGridColumns(e),n=!this.doesMovePassRules(r,t);if(!n){Ne(this.gridColumns,r,t),this.updateDisplayedColumns(o);var i={type:lt.EVENT_COLUMN_MOVED,columns:r,column:1===r.length?r[0]:null,toIndex:t,source:o};this.eventService.dispatchEvent(i),this.columnAnimationService.finish()}},t.prototype.doesMovePassRules=function(e,t){var o=this.getProposedColumnOrder(e,t);return this.doesOrderPassRules(o)},t.prototype.doesOrderPassRules=function(e){return!!this.doesMovePassMarryChildren(e)&&!!this.doesMovePassLockedPositions(e)},t.prototype.getProposedColumnOrder=function(e,t){var o=this.gridColumns.slice();return Ne(o,e,t),o},t.prototype.sortColumnsLikeGridColumns=function(e){var t=this;if(e&&!(e.length<=1)){var o=e.filter((function(e){return t.gridColumns.indexOf(e)<0})).length>0;o||e.sort((function(e,o){var r=t.gridColumns.indexOf(e),n=t.gridColumns.indexOf(o);return r-n}))}},t.prototype.doesMovePassLockedPositions=function(e){var t=0,o=!0,r=function(e){return e?!0===e||"left"===e?0:2:1};return e.forEach((function(e){var n=r(e.getColDef().lockPosition);n<t&&(o=!1),t=n})),o},t.prototype.doesMovePassMarryChildren=function(e){var t=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(o){if(o instanceof We){var r=o,n=r.getColGroupDef(),i=n&&n.marryChildren;if(i){var s=[];r.getLeafColumns().forEach((function(t){var o=e.indexOf(t);s.push(o)}));var a=Math.max.apply(Math,s),l=Math.min.apply(Math,s),u=a-l,p=r.getLeafColumns().length-1;u>p&&(t=!1)}}})),t},t.prototype.moveColumn=function(e,t,o){void 0===o&&(o="api"),this.moveColumns([e],t,o)},t.prototype.moveColumnByIndex=function(e,t,o){void 0===o&&(o="api");var r=this.gridColumns[e];this.moveColumn(r,t,o)},t.prototype.getColumnDefs=function(){var e=this;if(this.primaryColumns){var t=this.primaryColumns.slice();return this.gridColsArePrimary?t.sort((function(t,o){return e.gridColumns.indexOf(t)-e.gridColumns.indexOf(o)})):this.lastPrimaryOrder&&t.sort((function(t,o){return e.lastPrimaryOrder.indexOf(t)-e.lastPrimaryOrder.indexOf(o)})),this.columnDefFactory.buildColumnDefs(t,this.rowGroupColumns,this.pivotColumns)}},t.prototype.getBodyContainerWidth=function(){return this.bodyWidth},t.prototype.getContainerWidth=function(e){switch(e){case fe.PINNED_LEFT:return this.leftWidth;case fe.PINNED_RIGHT:return this.rightWidth;default:return this.bodyWidth}},t.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedColumnsCenter),t=this.getWidthOfColsInList(this.displayedColumnsLeft),o=this.getWidthOfColsInList(this.displayedColumnsRight);this.bodyWidthDirty=this.bodyWidth!==e;var r=this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==o;if(r){this.bodyWidth=e,this.leftWidth=t,this.rightWidth=o;var n={type:lt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED};this.eventService.dispatchEvent(n)}},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 fe.PINNED_LEFT:return this.getDisplayedLeftColumns();case fe.PINNED_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 s(this.gridColumns)},t.prototype.isRowGroupEmpty=function(){return s(this.rowGroupColumns)},t.prototype.setColumnVisible=function(e,t,o){void 0===o&&(o="api"),this.setColumnsVisible([e],t,o)},t.prototype.setColumnsVisible=function(e,t,o){void 0===t&&(t=!1),void 0===o&&(o="api"),this.applyColumnState({state:e.map((function(e){return{colId:"string"===typeof e?e:e.getColId(),hide:!t}}))},o)},t.prototype.setColumnPinned=function(e,t,o){void 0===o&&(o="api"),e&&this.setColumnsPinned([e],t,o)},t.prototype.setColumnsPinned=function(e,t,o){var r;(void 0===o&&(o="api"),"print"!==this.gridOptionsWrapper.getDomLayout())?(this.columnAnimationService.start(),r=!0===t||t===fe.PINNED_LEFT?fe.PINNED_LEFT:t===fe.PINNED_RIGHT?fe.PINNED_RIGHT:null,this.actionOnGridColumns(e,(function(e){return e.getPinned()!==r&&(e.setPinned(r),!0)}),o,(function(){var e={type:lt.EVENT_COLUMN_PINNED,pinned:r,column:null,columns:null,source:o};return e})),this.columnAnimationService.finish()):console.warn("Changing the column pinning status is not allowed with domLayout='print'")},t.prototype.actionOnGridColumns=function(e,t,o,r){var i=this;if(!s(e)){var a=[];if(e.forEach((function(e){var o=i.getGridColumn(e);if(o){var r=t(o);!1!==r&&a.push(o)}})),a.length&&(this.updateDisplayedColumns(o),n(r)&&r)){var l=r();l.columns=a,l.column=1===a.length?a[0]:null,this.eventService.dispatchEvent(l)}}},t.prototype.getDisplayedColBefore=function(e){var t=this.getAllDisplayedColumns(),o=t.indexOf(e);return o>0?t[o-1]:null},t.prototype.getDisplayedColAfter=function(e){var t=this.getAllDisplayedColumns(),o=t.indexOf(e);return o<t.length-1?t[o+1]:null},t.prototype.getDisplayedGroupAfter=function(e){return this.getDisplayedGroupAtDirection(e,"After")},t.prototype.getDisplayedGroupBefore=function(e){return this.getDisplayedGroupAtDirection(e,"Before")},t.prototype.getDisplayedGroupAtDirection=function(e,t){var o=e.getProvidedColumnGroup().getLevel()+e.getPaddingLevel(),r=e.getDisplayedLeafColumns(),n="After"===t?Ee(r):r[0],i="getDisplayedCol"+t;while(1){var s=this[i](n);if(!s)return null;var a=this.getColumnGroupAtLevel(s,o);if(a!==e)return a}},t.prototype.getColumnGroupAtLevel=function(e,t){var o,r,n=e.getParent();while(1){var i=n.getProvidedColumnGroup();if(o=i.getLevel(),r=n.getPaddingLevel(),o+r<=t)break;n=n.getParent()}return n},t.prototype.isPinningLeft=function(){return this.displayedColumnsLeft.length>0},t.prototype.isPinningRight=function(){return this.displayedColumnsRight.length>0},t.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e;return(e=[]).concat.apply(e,Ko([this.primaryColumns||[],this.groupAutoColumns||[],this.secondaryColumns||[]]))},t.prototype.getPrimaryAndAutoGroupCols=function(){var e;return(e=[]).concat.apply(e,Ko([this.primaryColumns||[],this.groupAutoColumns||[]]))},t.prototype.getPrimaryAndSecondaryColumns=function(){var e;return(e=[]).concat.apply(e,Ko([this.primaryColumns||[],this.secondaryColumns||[]]))},t.prototype.createStateItemFromColumn=function(e){var t=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,o=e.isPivotActive()?this.pivotColumns.indexOf(e):null,r=e.isValueActive()?e.getAggFunc():null,n=null!=e.getSort()?e.getSort():null,i=null!=e.getSortIndex()?e.getSortIndex():null,s=null!=e.getFlex()&&e.getFlex()>0?e.getFlex():null,a={colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:n,sortIndex:i,aggFunc:r,rowGroup:e.isRowGroupActive(),rowGroupIndex:t,pivot:e.isPivotActive(),pivotIndex:o,flex:s};return a},t.prototype.getColumnState=function(){if(i(this.primaryColumns)||!this.isAlive())return[];var e=this.getPrimaryAndSecondaryAndAutoColumns(),t=e.map(this.createStateItemFromColumn.bind(this));return this.orderColumnStateList(t),t},t.prototype.orderColumnStateList=function(e){var t=Ct(this.gridColumns.map((function(e,t){return[e.getColId(),t]})));e.sort((function(e,o){var r=t.has(e.colId)?t.get(e.colId):-1,n=t.has(o.colId)?t.get(o.colId):-1;return r-n}))},t.prototype.resetColumnState=function(e){void 0===e&&(e="api");var t=this.getColumnsFromTree(this.primaryColumnTree),o=[],r=1e3,n=1e3,s=[];this.groupAutoColumns&&(s=s.concat(this.groupAutoColumns)),t&&(s=s.concat(t)),s.forEach((function(e){var t=function(e,t){return null!=e?e:null!=t?t:null},s=e.getColDef(),a=t(s.sort,s.initialSort),l=t(s.sortIndex,s.initialSortIndex),u=t(s.hide,s.initialHide),p=t(s.pinned,s.initialPinned),c=t(s.width,s.initialWidth),d=t(s.flex,s.initialFlex),h=t(s.rowGroupIndex,s.initialRowGroupIndex),f=t(s.rowGroup,s.initialRowGroup);null!=h||null!=f&&0!=f||(h=null,f=null);var g=t(s.pivotIndex,s.initialPivotIndex),v=t(s.pivot,s.initialPivot);null!=g||null!=v&&0!=v||(g=null,v=null);var y=t(s.aggFunc,s.initialAggFunc),m={colId:e.getColId(),sort:a,sortIndex:l,hide:u,pinned:p,width:c,flex:d,rowGroup:f,rowGroupIndex:h,pivot:v,pivotIndex:g,aggFunc:y};i(h)&&f&&(m.rowGroupIndex=r++),i(g)&&v&&(m.pivotIndex=n++),o.push(m)})),this.applyColumnState({state:o,applyOrder:!0},e)},t.prototype.applyColumnState=function(e,t){var o=this;if(s(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 r=function(r,n,i){var s=o.compareColumnStatesAndRaiseEvents(t);o.autoGroupsNeedBuilding=!0;var a=n.slice(),l={},u={},p=[],c=[],d=0,h=o.rowGroupColumns.slice(),f=o.pivotColumns.slice();r.forEach((function(r){var n=r.colId||"",s=n.startsWith(fe.GROUP_AUTO_COLUMN_ID);if(s)return p.push(r),void c.push(r);var h=i(n);h?(o.syncColumnWithStateItem(h,r,e.defaultState,l,u,!1,t),Pe(a,h)):(c.push(r),d+=1)}));var g=function(r){return o.syncColumnWithStateItem(r,null,e.defaultState,l,u,!1,t)};a.forEach(g);var v=function(e,t,o,r){var n=e[o.getId()],i=e[r.getId()],s=null!=n,a=null!=i;if(s&&a)return n-i;if(s)return-1;if(a)return 1;var l=t.indexOf(o),u=t.indexOf(r),p=l>=0,c=u>=0;return p&&c?l-u:p?-1:1};o.rowGroupColumns.sort(v.bind(o,l,h)),o.pivotColumns.sort(v.bind(o,u,f)),o.updateGridColumns();var y=o.groupAutoColumns?o.groupAutoColumns.slice():[];return p.forEach((function(r){var n=o.getAutoColumn(r.colId);Pe(y,n),o.syncColumnWithStateItem(n,r,e.defaultState,null,null,!0,t)})),y.forEach(g),o.applyOrderAfterApplyState(e),o.updateDisplayedColumns(t),o.dispatchEverythingChanged(t),s(),{unmatchedAndAutoStates:c,unmatchedCount:d}};this.columnAnimationService.start();var i=r(e.state||[],this.primaryColumns||[],(function(e){return o.getPrimaryColumn(e)})),a=i.unmatchedAndAutoStates,l=i.unmatchedCount;return(a.length>0||n(e.defaultState))&&(l=r(a,this.secondaryColumns||[],(function(e){return o.getSecondaryColumn(e)})).unmatchedCount),this.columnAnimationService.finish(),0===l},t.prototype.applyOrderAfterApplyState=function(e){var t=this;if(e.applyOrder&&e.state){var o=[],r={};e.state.forEach((function(e){if(e.colId&&!r[e.colId]){var n=t.gridColumnsMap[e.colId];n&&(o.push(n),r[e.colId]=!0)}}));var n=0;this.gridColumns.forEach((function(e){var t=e.getColId(),i=null!=r[t];if(!i){var s=t.startsWith(fe.GROUP_AUTO_COLUMN_ID);s?De(o,e,n++):o.push(e)}})),o=this.placeLockedColumns(o),this.doesMovePassMarryChildren(o)?this.gridColumns=o:console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.")}},t.prototype.compareColumnStatesAndRaiseEvents=function(e){var t=this,o={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},r=this.getColumnState(),n={};return r.forEach((function(e){n[e.colId]=e})),function(){if(!t.gridOptionsWrapper.isSuppressColumnStateEvents()){var i=t.getPrimaryAndSecondaryAndAutoColumns(),s=function(o,r,n,i){var s=r.map(i),a=n.map(i),l=Re(s,a);if(!l){var u={type:o,columns:n,column:1===n.length?n[0]:null,source:e};t.eventService.dispatchEvent(u)}},a=function(e){var t=[];return i.forEach((function(o){var r=n[o.getColId()];r&&e(r,o)&&t.push(o)})),t},l=function(e){return e.getColId()};s(lt.EVENT_COLUMN_ROW_GROUP_CHANGED,o.rowGroupColumns,t.rowGroupColumns,l),s(lt.EVENT_COLUMN_PIVOT_CHANGED,o.pivotColumns,t.pivotColumns,l);var u=function(e,t){var o=null!=e.aggFunc,r=o!=t.isValueActive(),n=o&&e.aggFunc!=t.getAggFunc();return r||n},p=a(u);p.length>0&&t.fireColumnEvent(lt.EVENT_COLUMN_VALUE_CHANGED,t.valueColumns,e);var c=function(e,t){return e.width!=t.getActualWidth()};t.fireColumnResizedEvent(a(c),!0,e);var d=function(e,t){return e.pinned!=t.getPinned()};t.raiseColumnPinnedEvent(a(d),e);var h=function(e,t){return e.hide==t.isVisible()};t.raiseColumnVisibleEvent(a(h),e);var f=function(e,t){return e.sort!=t.getSort()||e.sortIndex!=t.getSortIndex()};a(f).length>0&&t.sortController.dispatchSortChangedEvents(e),t.raiseColumnMovedEvent(r,e)}}},t.prototype.raiseColumnPinnedEvent=function(e,t){if(e.length){var o=1===e.length?e[0]:null,r=this.getCommonValue(e,(function(e){return e.getPinned()})),n={type:lt.EVENT_COLUMN_PINNED,pinned:null!=r?r:null,columns:e,column:o,source:t};this.eventService.dispatchEvent(n)}},t.prototype.getCommonValue=function(e,t){if(e&&0!=e.length){for(var o=t(e[0]),r=1;r<e.length;r++)if(o!==t(e[r]))return;return o}},t.prototype.raiseColumnVisibleEvent=function(e,t){if(e.length){var o=1===e.length?e[0]:null,r=this.getCommonValue(e,(function(e){return e.isVisible()})),n={type:lt.EVENT_COLUMN_VISIBLE,visible:r,columns:e,column:o,source:t};this.eventService.dispatchEvent(n)}},t.prototype.raiseColumnMovedEvent=function(e,t){var o=this,r=this.getColumnState(),n={};r.forEach((function(e){return n[e.colId]=e}));var i={};e.forEach((function(e){n[e.colId]&&(i[e.colId]=!0)}));var s=e.filter((function(e){return i[e.colId]})),a=r.filter((function(e){return i[e.colId]})),l=[];if(a.forEach((function(e,t){var r=s&&s[t];if(r&&r.colId!==e.colId){var n=o.getGridColumn(r.colId);n&&l.push(n)}})),l.length){var u={type:lt.EVENT_COLUMN_MOVED,columns:l,column:null,source:t};this.eventService.dispatchEvent(u)}},t.prototype.syncColumnWithStateItem=function(e,t,o,r,i,s,a){if(e){var l=function(e,r){var i={value1:void 0,value2:void 0},s=!1;return t&&(void 0!==t[e]&&(i.value1=t[e],s=!0),n(r)&&void 0!==t[r]&&(i.value2=t[r],s=!0)),!s&&o&&(void 0!==o[e]&&(i.value1=o[e]),n(r)&&void 0!==o[r]&&(i.value2=o[r])),i},u=l("hide").value1;void 0!==u&&e.setVisible(!u,a);var p=l("pinned").value1;void 0!==p&&e.setPinned(p);var c=this.columnUtils.calculateColMinWidth(e.getColDef()),d=l("flex").value1;void 0!==d&&e.setFlex(d);var h=e.getFlex()<=0;if(h){var f=l("width").value1;null!=f&&null!=c&&f>=c&&e.setActualWidth(f,a)}var g=l("sort").value1;void 0!==g&&(g===fe.SORT_DESC||g===fe.SORT_ASC?e.setSort(g,a):e.setSort(void 0,a));var v=l("sortIndex").value1;if(void 0!==v&&e.setSortIndex(v),!s&&e.isPrimary()){var y=l("aggFunc").value1;void 0!==y&&("string"===typeof y?(e.setAggFunc(y),e.isValueActive()||(e.setValueActive(!0,a),this.valueColumns.push(e))):(n(y)&&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),Pe(this.valueColumns,e))));var m=l("rowGroup","rowGroupIndex"),C=m.value1,w=m.value2;void 0===C&&void 0===w||("number"===typeof w||C?(e.isRowGroupActive()||(e.setRowGroupActive(!0,a),this.rowGroupColumns.push(e)),r&&"number"===typeof w&&(r[e.getId()]=w)):e.isRowGroupActive()&&(e.setRowGroupActive(!1,a),Pe(this.rowGroupColumns,e)));var E=l("pivot","pivotIndex"),R=E.value1,O=E.value2;void 0===R&&void 0===O||("number"===typeof O||R?(e.isPivotActive()||(e.setPivotActive(!0,a),this.pivotColumns.push(e)),i&&"number"===typeof O&&(i[e.getId()]=O)):e.isPivotActive()&&(e.setPivotActive(!1,a),Pe(this.pivotColumns,e)))}}},t.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},t.prototype.getColumns=function(e,t){var o=[];return e&&e.forEach((function(e){var r=t(e);r&&o.push(r)})),o},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,o){if(!e)return null;if("string"==typeof e&&o[e])return o[e];for(var r=0;r<t.length;r++)if(this.columnsMatch(t[r],e))return t[r];return this.getAutoColumn(e)},t.prototype.getSourceColumnsForGroupColumn=function(e){var t=e.getColDef().showRowGroup;if(!t)return null;if(!0===t)return this.rowGroupColumns.slice(0);var o=this.getPrimaryColumn(t);return o?[o]:null},t.prototype.getAutoColumn=function(e){var t=this;return this.groupAutoColumns&&n(this.groupAutoColumns)&&!i(this.groupAutoColumns)&&this.groupAutoColumns.find((function(o){return t.columnsMatch(o,e)}))||null},t.prototype.columnsMatch=function(e,t){var o=e===t,r=e.getColDef()===t,n=e.getColId()==t;return o||r||n},t.prototype.getDisplayNameForColumn=function(e,t,o){if(void 0===o&&(o=!1),!e)return null;var r=this.getHeaderName(e.getColDef(),e,null,null,t);return o?this.wrapHeaderNameWithAggFunc(e,r):r},t.prototype.getDisplayNameForProvidedColumnGroup=function(e,t,o){var r=t?t.getColGroupDef():null;return r?this.getHeaderName(r,null,e,t,o):null},t.prototype.getDisplayNameForColumnGroup=function(e,t){return this.getDisplayNameForProvidedColumnGroup(e,e.getProvidedColumnGroup(),t)},t.prototype.getHeaderName=function(e,t,o,r,n){var i=e.headerValueGetter;if(i){var s={colDef:e,column:t,columnGroup:o,providedColumnGroup:r,location:n,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};return"function"===typeof i?i(s):"string"===typeof i?this.expressionService.evaluate(i,s):(console.warn("ag-grid: headerValueGetter must be a function or a string"),"")}return null!=e.headerName?e.headerName:e.field?yt(e.field):""},t.prototype.wrapHeaderNameWithAggFunc=function(e,t){if(this.gridOptionsWrapper.isSuppressAggFuncInHeader())return t;var o,r=e.getColDef().pivotValueColumn,i=n(r),s=null;if(i){var a=this.gridOptionsWrapper.isRemovePivotHeaderRowWhenSingleValueColumn()&&1===this.valueColumns.length,l=void 0!==e.getColDef().pivotTotalColumnIds;if(a&&!l)return t;s=r?r.getAggFunc():null,o=!0}else{var u=e.isValueActive(),p=this.pivotMode||!this.isRowGroupEmpty();u&&p?(s=e.getAggFunc(),o=!0):o=!1}if(o){var c="string"===typeof s?s:"func",d=this.gridOptionsWrapper.getLocaleTextFunc(),h=d(c,c);return h+"("+t+")"}return t},t.prototype.getColumnGroup=function(e,t){if(!e)return null;if(e instanceof Ve)return e;var o=this.getAllDisplayedTrees(),r="number"===typeof t,n=null;return this.columnUtils.depthFirstAllColumnTreeSearch(o,(function(o){if(o instanceof Ve){var i=o,s=void 0;s=r?e===i.getGroupId()&&t===i.getInstanceId():e===i.getGroupId(),s&&(n=i)}})),n},t.prototype.isReady=function(){return this.ready},t.prototype.extractValueColumns=function(e,t){this.valueColumns=this.extractColumns(t,this.valueColumns,(function(t,o){return t.setValueActive(o,e)}),(function(){}),(function(){}),(function(e){var t=e.aggFunc;return null===t||""===t?null:void 0!==t?!!t:void 0}),(function(e){return null!=e.initialAggFunc&&""!=e.initialAggFunc})),this.valueColumns.forEach((function(e){var t=e.getColDef();null!=t.aggFunc&&""!=t.aggFunc?e.setAggFunc(t.aggFunc):e.getAggFunc()||e.setAggFunc(t.initialAggFunc)}))},t.prototype.extractRowGroupColumns=function(e,t){this.rowGroupColumns=this.extractColumns(t,this.rowGroupColumns,(function(t,o){return t.setRowGroupActive(o,e)}),(function(e){return e.rowGroupIndex}),(function(e){return e.initialRowGroupIndex}),(function(e){return e.rowGroup}),(function(e){return e.initialRowGroup}))},t.prototype.extractColumns=function(e,t,o,r,n,i,s){void 0===e&&(e=[]),void 0===t&&(t=[]);var a=[],p=[];(this.primaryColumns||[]).forEach((function(o){var c,d=e.indexOf(o)<0,h=o.getColDef(),f=u(i(h)),g=u(s(h)),v=l(r(h)),y=l(n(h)),m=void 0!==f,C=void 0!==v,w=void 0!==g,E=void 0!==y;if(c=m?f:C?null!==v&&v>=0:d?w?g:!!E&&(null!=y&&y>=0):t.indexOf(o)>=0,c){var R=d?null!=v||null!=y:null!=v;R?a.push(o):p.push(o)}}));var c=function(e){var t=r(e.getColDef()),o=n(e.getColDef());return null!=t?t:o};a.sort((function(e,t){var o=c(e),r=c(t);return o===r?0:o<r?-1:1}));var d=[].concat(a);return t.forEach((function(e){p.indexOf(e)>=0&&d.push(e)})),p.forEach((function(e){d.indexOf(e)<0&&d.push(e)})),t.forEach((function(e){d.indexOf(e)<0&&o(e,!1)})),d.forEach((function(e){t.indexOf(e)<0&&o(e,!0)})),d},t.prototype.extractPivotColumns=function(e,t){this.pivotColumns=this.extractColumns(t,this.pivotColumns,(function(t,o){return t.setPivotActive(o,e)}),(function(e){return e.pivotIndex}),(function(e){return e.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 We){var o=e.getColGroupDef(),r={groupId:e.getGroupId(),open:o?o.openByDefault:void 0};t.push(r)}})),this.setColumnGroupState(t,e)},t.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(t){t instanceof We&&e.push({groupId:t.getGroupId(),open:t.isExpanded()})})),e},t.prototype.setColumnGroupState=function(e,t){var o=this;void 0===t&&(t="api"),this.columnAnimationService.start();var r=[];e.forEach((function(e){var t=e.groupId,n=e.open,i=o.getProvidedColumnGroup(t);i&&i.isExpanded()!==n&&(o.logger.log("columnGroupOpened("+i.getGroupId()+","+n+")"),i.setExpanded(n),r.push(i))})),this.updateGroupsAndDisplayedColumns(t),this.setFirstRightAndLastLeftPinned(t),r.forEach((function(e){var t={type:lt.EVENT_COLUMN_GROUP_OPENED,columnGroup:e};o.eventService.dispatchEvent(t)})),this.columnAnimationService.finish()},t.prototype.setColumnGroupOpened=function(e,t,o){var r;void 0===o&&(o="api"),r=e instanceof We?e.getId():e||"",this.setColumnGroupState([{groupId:r,open:t}],o)},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(o){o instanceof We&&o.getId()===e&&(t=o)})),t},t.prototype.calculateColumnsForDisplay=function(){var e,t=this;return e=this.pivotMode&&i(this.secondaryColumns)?this.gridColumns.filter((function(e){var o=t.groupAutoColumns&&Ie(t.groupAutoColumns,e),r=t.valueColumns&&Ie(t.valueColumns,e);return o||r})):this.gridColumns.filter((function(e){var o=t.groupAutoColumns&&Ie(t.groupAutoColumns,e);return o||e.isVisible()})),e},t.prototype.checkColSpanActiveInCols=function(e){var t=!1;return e.forEach((function(e){n(e.getColDef().colSpan)&&(t=!0)})),t},t.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[],this.groupDisplayColumnsMap={};var t=function(t){var o=t.getColDef(),r=o.showRowGroup;o&&n(r)&&(e.groupDisplayColumns.push(t),"string"===typeof r?e.groupDisplayColumnsMap[r]=t:!0===r&&e.getRowGroupColumns().forEach((function(o){e.groupDisplayColumnsMap[o.getId()]=t})))};this.gridColumns.forEach(t),this.groupAutoColumns&&this.groupAutoColumns.forEach(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.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},t.prototype.isSecondaryColumnsPresent=function(){return n(this.secondaryColumns)},t.prototype.setSecondaryColumns=function(e,t){var o=this;void 0===t&&(t="api");var r=e&&e.length>0;if(r||!i(this.secondaryColumns)){if(r){this.processSecondaryColumnDefinitions(e);var n=this.columnFactory.createColumnTree(e,!1,this.secondaryBalancedTree||this.previousSecondaryColumns||void 0);this.secondaryBalancedTree=n.columnTree,this.secondaryHeaderRowCount=n.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsMap={},this.secondaryColumns.forEach((function(e){return o.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.gridOptionsWrapper.getProcessPivotResultColDefFunc(),o=this.gridOptionsWrapper.getProcessPivotResultColGroupDefFunc();if(t||o){var r=function(e){e.forEach((function(e){var i=n(e.children);if(i){var s=e;o&&o(s),r(s.children)}else{var a=e;t&&t(a)}}))};e&&r(e)}},t.prototype.updateGridColumns=function(){var e=this,t=this.gridBalancedTree;this.gridColsArePrimary?this.lastPrimaryOrder=this.gridColumns:this.lastSecondaryOrder=this.gridColumns;var o=void 0;if(this.secondaryColumns&&this.secondaryBalancedTree){var r=this.secondaryColumns.every((function(t){return void 0!==e.gridColumnsMap[t.getColId()]}));this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1,r&&(o=this.lastSecondaryOrder)}else this.primaryColumns&&(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,o=this.lastPrimaryOrder);var n=this.createGroupAutoColumnsIfNeeded();if(n&&o){var i=Ct(this.groupAutoColumns.map((function(e){return[e,!0]})));o=o.filter((function(e){return!i.has(e)})),o=Ko(this.groupAutoColumns,o)}if(this.addAutoGroupToGridColumns(),this.orderGridColsLike(o),this.gridColumns=this.placeLockedColumns(this.gridColumns),this.setupQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach((function(t){return e.gridColumnsMap[t.getId()]=t})),this.setAutoHeightActive(),!Re(t,this.gridBalancedTree)){var s={type:lt.EVENT_GRID_COLUMNS_CHANGED};this.eventService.dispatchEvent(s)}},t.prototype.setAutoHeightActive=function(){if(this.autoHeightActive=this.gridColumns.filter((function(e){return e.isAutoHeight()})).length>0,this.autoHeightActive){this.autoHeightActiveAtLeastOnce=!0;var e=this.rowModel.getType(),t=e===fe.ROW_MODEL_TYPE_CLIENT_SIDE||e===fe.ROW_MODEL_TYPE_SERVER_SIDE;if(!t){var o="AG Grid - autoHeight columns only work with Client Side Row Model and Server Side Row Model.";x((function(){return console.warn(o)}),"autoHeightActive.wrongRowModel")}}},t.prototype.orderGridColsLike=function(e){if(!i(e)){var t=Ct(e.map((function(e,t){return[e,t]}))),o=!0;if(this.gridColumns.forEach((function(e){t.has(e)&&(o=!1)})),!o){var r=Ct(this.gridColumns.map((function(e){return[e,!0]}))),n=e.filter((function(e){return r.has(e)})),s=Ct(n.map((function(e){return[e,!0]}))),a=this.gridColumns.filter((function(e){return!s.has(e)})),l=n.slice();a.forEach((function(e){var t=e.getOriginalParent();if(t){var o=[];while(!o.length&&t){var r=t.getLeafColumns();r.forEach((function(e){var t=l.indexOf(e)>=0,r=o.indexOf(e)<0;t&&r&&o.push(e)})),t=t.getOriginalParent()}if(o.length){var n=o.map((function(e){return l.indexOf(e)})),i=Math.max.apply(Math,Ko(n));De(l,e,i+1)}else l.push(e)}else l.push(e)})),this.gridColumns=l}}},t.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},t.prototype.setupQuickFilterColumns=function(){this.groupAutoColumns?this.columnsForQuickFilter=(this.primaryColumns||[]).concat(this.groupAutoColumns):this.primaryColumns&&(this.columnsForQuickFilter=this.primaryColumns)},t.prototype.placeLockedColumns=function(e){var t=[],o=[],r=[];return e.forEach((function(e){var n=e.getColDef().lockPosition;"right"===n?r.push(e):"left"===n||!0===n?t.push(e):o.push(e)})),Ko(t,o,r)},t.prototype.addAutoGroupToGridColumns=function(){if(!i(this.groupAutoColumns)){this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var e=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.gridBalancedTree=e.concat(this.gridBalancedTree)}},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:lt.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.gridOptionsWrapper.isEnableRtl()?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 o=this.primaryColumns.slice(0),r=this.gridOptionsWrapper.isEnableRtl();[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].forEach((function(n){if(r){var i=t.getWidthOfColsInList(n);n.forEach((function(t){i-=t.getActualWidth(),t.setLeft(i,e)}))}else{var s=0;n.forEach((function(t){t.setLeft(s,e),s+=t.getActualWidth()}))}Te(o,n)})),o.forEach((function(t){t.setLeft(null,e)}))}},t.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach((function(e){e.forEach((function(e){if(e instanceof Ve){var t=e;t.checkLeft()}}))}))},t.prototype.derivedDisplayedColumnsFromDisplayedTree=function(e,t){t.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,(function(e){e instanceof me&&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 o;switch(e){case fe.PINNED_LEFT:o=this.viewportRowLeft[t];break;case fe.PINNED_RIGHT:o=this.viewportRowRight[t];break;default:o=this.viewportRowCenter[t];break}return i(o)&&(o=[]),o},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(o,r,n){for(var i=!1,s=0;s<o.length;s++){var a=o[s],l=!1;if(a instanceof me)l=!0===e[a.getId()];else{var u=a,p=u.getDisplayedChildren();p&&(l=t(p,r,n+1))}l&&(i=!0,r[n]||(r[n]=[]),r[n].push(a))}return i};t(this.displayedTreeLeft,this.viewportRowLeft,0),t(this.displayedTreeRight,this.viewportRowRight,0),t(this.displayedTreeCentre,this.viewportRowCenter,0)},t.prototype.extractViewport=function(){var e=function(e){return e.getId()+"-"+(e.getPinned()||"normal")};this.extractViewportColumns();var t=this.viewportColumns.map(e).join("#"),o=this.viewportColumnsHash!==t;return o&&(this.viewportColumnsHash=t,this.calculateHeaderRows()),o},t.prototype.refreshFlexedColumns=function(e){var t=this;void 0===e&&(e={});var o=e.source?e.source:"flex";if(null!=e.viewportWidth&&(this.flexViewportWidth=e.viewportWidth),!this.flexViewportWidth)return[];var r=-1;e.resizingCols&&e.resizingCols.forEach((function(e){var o=t.displayedColumnsCenter.indexOf(e);r<o&&(r=o)}));var i=function(e){var o=t.displayedColumnsCenter.indexOf(e)>r;return e.getFlex()&&o},s=this.displayedColumnsCenter.filter((function(e){return!i(e)})),a=this.displayedColumnsCenter.filter((function(e){return i(e)})),l=[];if(!a.length)return[];var u,p=[];e:while(1){var c=a.reduce((function(e,t){return e+t.getFlex()}),0);u=this.flexViewportWidth-this.getWidthOfColsInList(s);for(var d=0;d<a.length;d++){var h=a[d],f=u*h.getFlex()/c,g=0,v=h.getMinWidth(),y=h.getMaxWidth();if(n(v)&&f<v?g=v:n(y)&&f>y&&(g=y),g){h.setActualWidth(g,o),Pe(a,h),l.push(h),s.push(h);continue e}p[d]=Math.round(f)}break}var m=u;return a.forEach((function(e,t){e.setActualWidth(Math.min(p[t],m),o),l.push(e),m-=p[t]})),e.skipSetLeft||this.setLeftValues(o),e.updateBodyWidths&&this.updateBodyWidths(),e.fireResizedEvent&&this.fireColumnResizedEvent(l,!0,o,a),this.flexColsCalculatedAtLestOnce||(this.gridOptionsWrapper.isRowModelDefault()&&this.rowModel.resetRowHeights(),this.flexColsCalculatedAtLestOnce=!0),a},t.prototype.sizeColumnsToFit=function(e,t,o,r){var i,s,a,l,u,p,c,d,h,f,g;void 0===t&&(t="sizeColumnsToFit");var v={};r&&(null===(s=null===(i=r)||void 0===i?void 0:i.columnLimits)||void 0===s||s.forEach((function(e){var t=e.key,o=jo(e,["key"]);v["string"===typeof t?t:t.getColId()]=o})));var y=this.getAllDisplayedColumns(),m=e===this.getWidthOfColsInList(y);if(!(e<=0||!y.length||m)){var C=[],w=[];y.forEach((function(e){!0===e.getColDef().suppressSizeToFit?w.push(e):C.push(e)}));var E=C.slice(0),R=!1,O=function(e){Pe(C,e),w.push(e)};C.forEach((function(e){return e.resetActualWidth(t)}));while(!R){R=!0;var S=e-this.getWidthOfColsInList(w);if(S<=0)C.forEach((function(e){var o,n,i,s,a=(i=null===(n=null===(o=v)||void 0===o?void 0:o[e.getId()])||void 0===n?void 0:n.minWidth,null!==i&&void 0!==i?i:null===(s=r)||void 0===s?void 0:s.defaultMinWidth);"number"!==typeof a?e.setMinimum(t):e.setActualWidth(a)}));else for(var _=S/this.getWidthOfColsInList(C),b=S,P=C.length-1;P>=0;P--){var T=C[P],D=null===(a=v)||void 0===a?void 0:a[T.getId()],A=(u=null===(l=D)||void 0===l?void 0:l.minWidth,null!==u&&void 0!==u?u:null===(p=r)||void 0===p?void 0:p.defaultMinWidth),N=(d=null===(c=D)||void 0===c?void 0:c.maxWidth,null!==d&&void 0!==d?d:null===(h=r)||void 0===h?void 0:h.defaultMaxWidth),I=(f=T.getMinWidth(),null!==f&&void 0!==f?f:0),G=(g=T.getMaxWidth(),null!==g&&void 0!==g?g:Number.MAX_VALUE),F="number"===typeof A&&A>I?A:T.getMinWidth(),L="number"===typeof N&&N<G?N:T.getMaxWidth(),M=Math.round(T.getActualWidth()*_);n(F)&&M<F?(M=F,O(T),R=!1):n(L)&&M>L?(M=L,O(T),R=!1):0===P&&(M=b),T.setActualWidth(M,t,!0),b-=M}}E.forEach((function(e){e.fireColumnWidthChangedEvent(t)})),this.setLeftValues(t),this.updateBodyWidths(),o||this.fireColumnResizedEvent(E,!0,t)}},t.prototype.buildDisplayedTrees=function(e){var t=[],o=[],r=[];e.forEach((function(e){switch(e.getPinned()){case"left":t.push(e);break;case"right":o.push(e);break;default:r.push(e);break}}));var n=new ut;this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(t,this.gridBalancedTree,n,fe.PINNED_LEFT,this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(o,this.gridBalancedTree,n,fe.PINNED_RIGHT,this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(r,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){var t=this.displayedColumnsAndGroupsMap[e.getUniqueId()];return t===e},t.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedTrees();this.columnUtils.depthFirstAllColumnTreeSearch(e,(function(e){if(e instanceof Ve){var t=e;t.calculateDisplayedColumns()}}))},t.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},t.prototype.createGroupAutoColumnsIfNeeded=function(){if(!this.autoGroupsNeedBuilding)return!1;this.autoGroupsNeedBuilding=!1;var e=this.gridOptionsWrapper.isGroupUseEntireRow(this.pivotMode),t=this.pivotMode?this.gridOptionsWrapper.isPivotSuppressAutoColumn():this.gridOptionsWrapper.isGroupSuppressAutoColumn(),o=this.rowGroupColumns.length>0||this.usingTreeData,r=o&&!t&&!e;if(r){var n=this.groupAutoColumns||[],i=this.autoGroupColService.createAutoGroupColumns(n,this.rowGroupColumns),s=!this.autoColsEqual(i,this.groupAutoColumns);if(s||this.forceRecreateAutoGroups)return this.groupAutoColumns=i,!0}else this.groupAutoColumns=null;return!1},t.prototype.autoColsEqual=function(e,t){return Re(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(){if(!this.gridColumns)return!1;var e=this.gridColumns.some((function(e){return e.getColDef().floatingFilter}));return e},t.prototype.getFirstDisplayedColumn=function(){var e=this.gridOptionsWrapper.isEnableRtl(),t=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];e&&t.reverse();for(var o=0;o<t.length;o++){var r=this[t[o]]();if(r.length)return e?Ee(r):r[0]}return null},t.prototype.setColumnHeaderHeight=function(e,t){var o=e.setAutoHeaderHeight(t);if(o){var r={type:lt.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,column:e,columns:[e],source:"autosizeColumnHeaderHeight"};this.eventService.dispatchEvent(r)}},t.prototype.getColumnGroupHeaderRowHeight=function(){return this.isPivotMode()?this.gridOptionsWrapper.getPivotGroupHeaderHeight():this.gridOptionsWrapper.getGroupHeaderHeight()},t.prototype.getColumnHeaderRowHeight=function(){var e=this.isPivotMode()?this.gridOptionsWrapper.getPivotHeaderHeight():this.gridOptionsWrapper.getHeaderHeight(),t=this.getAllDisplayedColumns().filter((function(e){return e.isAutoHeaderHeight()})).map((function(e){return e.getAutoHeaderHeight()||0}));return Math.max.apply(Math,Ko([e],t))},ko([ne("expressionService")],t.prototype,"expressionService",void 0),ko([ne("columnFactory")],t.prototype,"columnFactory",void 0),ko([ne("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),ko([ne("ctrlsService")],t.prototype,"ctrlsService",void 0),ko([ne("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),ko([ne("columnUtils")],t.prototype,"columnUtils",void 0),ko([ne("columnAnimationService")],t.prototype,"columnAnimationService",void 0),ko([ne("autoGroupColService")],t.prototype,"autoGroupColService",void 0),ko([ie("aggFuncService")],t.prototype,"aggFuncService",void 0),ko([ie("valueCache")],t.prototype,"valueCache",void 0),ko([ie("animationFrameService")],t.prototype,"animationFrameService",void 0),ko([ne("rowModel")],t.prototype,"rowModel",void 0),ko([ne("sortController")],t.prototype,"sortController",void 0),ko([ne("columnDefFactory")],t.prototype,"columnDefFactory",void 0),ko([te],t.prototype,"init",null),ko([Bo(0,ae("loggerFactory"))],t.prototype,"setBeans",null),t=ko([re("columnModel")],t),t}(rt),qo=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Xo=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Qo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qo(t,e),t.prototype.calculateColMinWidth=function(e){return null!=e.minWidth?e.minWidth:this.gridOptionsWrapper.getMinColWidth()},t.prototype.calculateColMaxWidth=function(e){return null!=e.maxWidth?e.maxWidth:this.gridOptionsWrapper.getMaxColWidth()||Number.MAX_SAFE_INTEGER},t.prototype.calculateColInitialWidth=function(e){var t,o=this.calculateColMinWidth(e),r=this.calculateColMaxWidth(e),n=l(e.width),i=l(e.initialWidth);return t=null!=n?n:null!=i?i:this.gridOptionsWrapper.getColWidth(),Math.max(Math.min(t,r),o)},t.prototype.getOriginalPathForColumn=function(e,t){var o=[],r=!1,n=function(t,i){for(var s=0;s<t.length;s++){if(r)return;var a=t[s];if(a instanceof We){var l=a;n(l.getChildren(),i+1),o[i]=a}else a===e&&(r=!0)}};return n(t,0),r?o:null},t.prototype.depthFirstOriginalTreeSearch=function(e,t,o){var r=this;t&&t.forEach((function(t){t instanceof We&&r.depthFirstOriginalTreeSearch(t,t.getChildren(),o),o(t,e)}))},t.prototype.depthFirstAllColumnTreeSearch=function(e,t){var o=this;e&&e.forEach((function(e){e instanceof Ve&&o.depthFirstAllColumnTreeSearch(e.getChildren(),t),t(e)}))},t.prototype.depthFirstDisplayedColumnTreeSearch=function(e,t){var o=this;e&&e.forEach((function(e){e instanceof Ve&&o.depthFirstDisplayedColumnTreeSearch(e.getDisplayedChildren(),t),t(e)}))},t=Xo([re("columnUtils")],t),t}(rt),Jo=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Zo=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},$o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Jo(t,e),t.prototype.createDisplayedGroups=function(e,t,o,r,n){var i,s,a=this,l=[],u=this.mapOldGroupsById(n);return e.forEach((function(e){for(var n=a.getOriginalPathForColumn(t,e),p=[],c=!s,d=0;d<n.length;d++)if(c||n[d]!==s[d]){var h=a.createColumnGroup(n[d],o,u,r);p[d]=h,0==d?l.push(h):p[d-1].addChild(h)}else p[d]=i[d];var f=0===p.length;if(f)l.push(e);else{var g=Ee(p);g.addChild(e)}i=p,s=n})),this.setupParentsIntoColumns(l,null),l},t.prototype.createColumnGroup=function(e,t,o,r){var i=e.getGroupId(),s=t.getInstanceIdForKey(i),a=Ve.createUniqueId(i,s),l=o[a];return l&&l.getProvidedColumnGroup()!==e&&(l=null),n(l)?l.reset():(l=new Ve(e,i,s,r),this.context.createBean(l)),l},t.prototype.mapOldGroupsById=function(e){var t={},o=function(e){e.forEach((function(e){if(e instanceof Ve){var r=e;t[e.getUniqueId()]=r,o(r.getChildren())}}))};return e&&o(e),t},t.prototype.setupParentsIntoColumns=function(e,t){var o=this;e.forEach((function(e){if(e.setParent(t),e instanceof Ve){var r=e;o.setupParentsIntoColumns(r.getChildren(),r)}}))},t.prototype.getOriginalPathForColumn=function(e,t){var o=[],r=!1,n=function(e,i){for(var s=0;s<e.length;s++){if(r)return;var a=e[s];a instanceof We?(n(a.getChildren(),i+1),o[i]=a):a===t&&(r=!0)}};return n(e,0),r?o:(console.warn("AG Grid: could not get path"),null)},t=Zo([re("displayedGroupCreator")],t),t}(rt),er=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),tr=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},or=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.componentsMappedByName={},t}return er(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(),o=t.toUpperCase();this.componentsMappedByName[o]=e.componentClass},t.prototype.getComponentClass=function(e){return this.componentsMappedByName[e]},t=tr([re("agStackComponentsRegistry")],t),t}(rt),rr=function(e,t){var o="function"===typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,n,i=o.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=i.next()).done)s.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(o=i["return"])&&o.call(i)}finally{if(n)throw n.error}}return s},nr=function(){function e(e,t,o,r){void 0===r&&(r=1),this.r=Math.min(1,Math.max(0,e||0)),this.g=Math.min(1,Math.max(0,t||0)),this.b=Math.min(1,Math.max(0,o||0)),this.a=Math.min(1,Math.max(0,r||0))}return e.fromString=function(t){if(t.indexOf("#")>=0)return e.fromHexString(t);var o=e.nameToHex[t];if(o)return e.fromHexString(o);if(t.indexOf("rgb")>=0)return e.fromRgbaString(t);throw new Error("Invalid color string: '"+t+"'")},e.parseHex=function(e){var t;switch(e=e.replace(/ /g,"").slice(1),e.length){case 6:case 8:t=[];for(var o=0;o<e.length;o+=2)t.push(parseInt(""+e[o]+e[o+1],16));break;case 3:case 4:t=e.split("").map((function(e){return parseInt(e,16)})).map((function(e){return e+16*e}));break}if(t.length>=3&&t.every((function(e){return e>=0})))return 3===t.length&&t.push(255),t},e.fromHexString=function(t){var o=e.parseHex(t);if(o){var r=rr(o,4),n=r[0],i=r[1],s=r[2],a=r[3];return new e(n/255,i/255,s/255,a/255)}throw new Error("Malformed hexadecimal color string: '"+t+"'")},e.stringToRgba=function(e){for(var t=rr([NaN,NaN],2),o=t[0],r=t[1],n=0;n<e.length;n++){var i=e[n];if(o||"("!==i){if(")"===i){r=n;break}}else o=n}var s=o&&r&&e.substring(o+1,r);if(s){var a=s.split(","),l=[];for(n=0;n<a.length;n++){var u=a[n],p=parseFloat(u);if(isNaN(p))return;u.indexOf("%")>=0?(p=Math.max(0,Math.min(100,p)),p/=100):3===n?p=Math.max(0,Math.min(1,p)):(p=Math.max(0,Math.min(255,p)),p/=255),l.push(p)}return l}},e.fromRgbaString=function(t){var o=e.stringToRgba(t);if(o){if(3===o.length)return new e(o[0],o[1],o[2]);if(4===o.length)return new e(o[0],o[1],o[2],o[3])}throw new Error("Malformed rgb/rgba color string: '"+t+"'")},e.fromArray=function(t){if(4===t.length)return new e(t[0],t[1],t[2],t[3]);if(3===t.length)return new e(t[0],t[1],t[2]);throw new Error("The given array should contain 3 or 4 color components (numbers).")},e.fromHSB=function(t,o,r,n){void 0===n&&(n=1);var i=e.HSBtoRGB(t,o,r);return new e(i[0],i[1],i[2],n)},e.padHex=function(e){return 1===e.length?"0"+e:e},e.prototype.toHexString=function(){var t="#"+e.padHex(Math.round(255*this.r).toString(16))+e.padHex(Math.round(255*this.g).toString(16))+e.padHex(Math.round(255*this.b).toString(16));return this.a<1&&(t+=e.padHex(Math.round(255*this.a).toString(16))),t},e.prototype.toRgbaString=function(e){void 0===e&&(e=3);var t=[Math.round(255*this.r),Math.round(255*this.g),Math.round(255*this.b)],o=Math.pow(10,e);return 1!==this.a?(t.push(Math.round(this.a*o)/o),"rgba("+t.join(", ")+")"):"rgb("+t.join(", ")+")"},e.prototype.toString=function(){return 1===this.a?this.toHexString():this.toRgbaString()},e.prototype.toHSB=function(){return e.RGBtoHSB(this.r,this.g,this.b)},e.RGBtoHSB=function(e,t,o){var r=Math.min(e,t,o),n=Math.max(e,t,o),i=0!==n?(n-r)/n:0,s=NaN;if(r!==n){var a=n-r,l=(n-e)/a,u=(n-t)/a,p=(n-o)/a;s=e===n?p-u:t===n?2+l-p:4+u-l,s/=6,s<0&&(s+=1)}return[360*s,i,n]},e.HSBtoRGB=function(e,t,o){isNaN(e)&&(e=0),e=(e%360+360)%360/360;var r=0,n=0,i=0;if(0===t)r=n=i=o;else{var s=6*(e-Math.floor(e)),a=s-Math.floor(s),l=o*(1-t),u=o*(1-t*a),p=o*(1-t*(1-a));switch(s>>0){case 0:r=o,n=p,i=l;break;case 1:r=u,n=o,i=l;break;case 2:r=l,n=o,i=p;break;case 3:r=l,n=u,i=o;break;case 4:r=p,n=l,i=o;break;case 5:r=o,n=l,i=u;break}}return[r,n,i]},e.prototype.derive=function(t,o,r,n){var i=e.RGBtoHSB(this.r,this.g,this.b),s=i[2];0==s&&r>1&&(s=.05);var a=((i[0]+t)%360+360)%360,l=Math.max(Math.min(i[1]*o,1),0);s=Math.max(Math.min(s*r,1),0);var u=Math.max(Math.min(this.a*n,1),0),p=e.HSBtoRGB(a,l,s);return p.push(u),e.fromArray(p)},e.prototype.brighter=function(){return this.derive(0,1,1/.7,1)},e.prototype.darker=function(){return this.derive(0,1,.7,1)},e.nameToHex=Object.freeze({aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"}),e}(); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */ /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */ function ir(e,t){void 0===t&&(t=",");var o=[],r=function(e){return"\r"===e||"\n"===e},n=!1;if(""===e)return[[""]];for(var i,s,a,l=function(l,u,p){var c=e[p-1],d=e[p],h=e[p+1],f=function(){o[l]||(o[l]=[]),o[l][u]||(o[l][u]="")};if(f(),'"'===d){if(n)return'"'===h?(o[l][u]+='"',p++):n=!1,i=l,s=u,a=p,"continue";if(void 0===c||c===t||r(c))return n=!0,i=l,s=u,a=p,"continue"}if(!n){if(d===t)return u++,f(),i=l,s=u,a=p,"continue";if(r(d))return u=0,l++,f(),"\r"===d&&"\n"===h&&p++,i=l,s=u,a=p,"continue"}o[l][u]+=d,i=l,s=u,a=p},u=0,p=0,c=0;c<e.length;c++)l(u,p,c),u=i,p=s,c=a;return o}var sr,ar=Object.freeze({__proto__:null,stringToArray:ir}); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */function lr(e,t,o){var r=e.parentElement,n=r&&r.firstChild;while(n)t&&n.classList.toggle(t,n===e),o&&n.classList.toggle(o,n!==e),n=n.nextSibling}function ur(e){var t=Element.prototype.matches||Element.prototype.msMatchesSelector,o=t.call(e,fe.INPUT_SELECTOR),r=t.call(e,fe.FOCUSABLE_EXCLUDE),n=_r(e),i=o&&!r&&n;return i}function pr(e,t){e.classList.toggle("ag-hidden",!t)}function cr(e,t){e.classList.toggle("ag-invisible",!t)}function dr(e,t){var o="disabled",r=t?function(e){return e.setAttribute(o,"")}:function(e){return e.removeAttribute(o)};r(e),Qr(e.querySelectorAll("input"),(function(e){return r(e)}))}function hr(e,t,o){var r=0;while(e){if(e.classList.contains(t))return!0;if(e=e.parentElement,"number"==typeof o){if(++r>o)break}else if(e===o)break}return!1}function fr(e){var t=window.getComputedStyle(e),o=t.height,r=t.width,n=t.paddingTop,i=t.paddingRight,s=t.paddingBottom,a=t.paddingLeft,l=t.marginTop,u=t.marginRight,p=t.marginBottom,c=t.marginLeft,d=t.boxSizing;return{height:parseFloat(o),width:parseFloat(r),paddingTop:parseFloat(n),paddingRight:parseFloat(i),paddingBottom:parseFloat(s),paddingLeft:parseFloat(a),marginTop:parseFloat(l),marginRight:parseFloat(u),marginBottom:parseFloat(p),marginLeft:parseFloat(c),boxSizing:d}}function gr(e){var t=fr(e);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom:t.height}function vr(e){var t=fr(e);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight:t.width}function yr(e){var t=fr(e),o=t.marginBottom+t.marginTop;return Math.ceil(e.offsetHeight+o)}function mr(e){var t=fr(e),o=t.marginLeft+t.marginRight;return Math.ceil(e.offsetWidth+o)}function Cr(){if("boolean"===typeof sr)return sr;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='<div style="width: 2px">\n <span style="display: inline-block; width: 1px"></span>\n <span style="display: inline-block; width: 1px"></span>\n </div>',document.body.appendChild(e),e.scrollLeft=1,sr=0===Math.floor(e.scrollLeft),document.body.removeChild(e),sr}function wr(e,t){var o=e.scrollLeft;return t&&(o=Math.abs(o),Xt()&&!Cr()&&(o=e.scrollWidth-e.clientWidth-o)),o}function Er(e,t,o){o&&(Cr()?t*=-1:(qt()||Xt())&&(t=e.scrollWidth-e.clientWidth-t)),e.scrollLeft=t}function Rr(e){while(e&&e.firstChild)e.removeChild(e.firstChild)}function Or(e,t){Sr(e.querySelector(t))}function Sr(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function _r(e){return null!==e.offsetParent}function br(e){var t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function Pr(e,t){e.lastChild?e.insertAdjacentHTML("afterbegin",t):e.innerHTML=t}function Tr(e,t){if(e.attributes&&e.attributes[t]){var o=e.attributes[t];return o.value}return null}function Dr(e){return e&&e.clientHeight?e.clientHeight:0}function Ar(e){return e&&e.clientWidth?e.clientWidth:0}function Nr(e,t,o){if(!o||o.nextSibling!==t){var r=document.activeElement,n=t.contains(r);o?o.nextSibling?e.insertBefore(t,o.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t),n&&r&&$t()&&r.focus({preventScroll:!0})}}function Ir(e,t){for(var o=0;o<t.length;o++){var r=t[o],n=e.children[o];n!==r&&e.insertBefore(r,n)}}function Gr(e,t,o){o?o.insertAdjacentElement("afterend",t):e.firstChild?e.insertAdjacentElement("afterbegin",t):e.appendChild(t)}function Fr(e,t){n(e.firstChild)?e.insertBefore(t,e.firstChild):e.appendChild(t)}function Lr(e,t){t&&Object.keys(t).forEach((function(o){var r=ft(o);r&&(e.style[r]=t[o])}))}function Mr(e){return e.clientWidth<e.scrollWidth}function xr(e){return e.clientHeight<e.scrollHeight}function Hr(e,t){"flex"===t?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):Vr(e,t)}function Vr(e,t){t=Br(t),e.style.width=t.toString(),e.style.maxWidth=t.toString(),e.style.minWidth=t.toString()}function Wr(e,t){"flex"===t?(e.style.removeProperty("height"),e.style.removeProperty("minHeight"),e.style.removeProperty("maxHeight"),e.style.flex="1 1 auto"):kr(e,t)}function kr(e,t){t=Br(t),e.style.height=t.toString(),e.style.maxHeight=t.toString(),e.style.minHeight=t.toString()}function Br(e){return"number"===typeof e?e+"px":e}function jr(e){return"function"===typeof Node?e instanceof Node:e&&"object"===typeof e&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName}function Ur(e){return"function"===typeof HTMLElement?e instanceof HTMLElement:e&&F(e)&&1===e.nodeType&&"string"===typeof e.nodeName}function zr(e){return jr(e)||Ur(e)}function Kr(e){if(null==e)return[];var t=[];return Qr(e,(function(e){return t.push(e)})),t}function Yr(e,t){if(e)for(var o=0;o<e.length;o++){var r=e[o];t(r.name,r.value)}}function qr(e,t){"boolean"===typeof t?(e.checked=t,e.indeterminate=!1):e.indeterminate=!0}function Xr(e,t,o){null==o?e.removeAttribute(t):e.setAttribute(t,o.toString())}function Qr(e,t){if(null!=e)for(var o=0;o<e.length;o++)t(e[o])}var Jr=Object.freeze({__proto__:null,radioCssClass:lr,isFocusableFormField:ur,setDisplayed:pr,setVisible:cr,setDisabled:dr,isElementChildOfClass:hr,getElementSize:fr,getInnerHeight:gr,getInnerWidth:vr,getAbsoluteHeight:yr,getAbsoluteWidth:mr,isRtlNegativeScroll:Cr,getScrollLeft:wr,setScrollLeft:Er,clearElement:Rr,removeElement:Or,removeFromParent:Sr,isVisible:_r,loadTemplate:br,appendHtml:Pr,getElementAttribute:Tr,offsetHeight:Dr,offsetWidth:Ar,ensureDomOrder:Nr,setDomChildOrder:Ir,insertWithDomOrder:Gr,prependDC:Fr,addStylesToElement:Lr,isHorizontalScrollShowing:Mr,isVerticalScrollShowing:xr,setElementWidth:Hr,setFixedWidth:Vr,setElementHeight:Wr,setFixedHeight:kr,formatSize:Br,isNode:jr,isElement:Ur,isNodeOrElement:zr,copyNodeList:Kr,iterateNamedNodeMap:Yr,setCheckboxState:qr,addOrRemoveAttribute:Xr,nodeListForEach:Qr}); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */function Zr(e){var t=/function (.{1,})\(/,o=e.toString(),r=t.exec(o);return r&&r.length>1?r[1]:""}function $r(e){var t=e.length,o=0;if(t<=1)return e;for(var r=0;r<e.length;r++){var n=e[r],i=n.toString().split("e-");i.length>1?o=Math.max(o,parseInt(i[1],10)):Math.floor(n)!==n&&(o=Math.max(o,n.toString().split(".")[1].length))}for(var s=0,a=0,l=0,u=0,p=0,c=0;c<t;c++)p=e[c],s+=c,a+=p,u+=c*c,l+=c*p;var d=(t*l-s*a)/(t*u-s*s),h=a/t-d*s/t,f=[];for(c=0;c<=t;c++)f.push(parseFloat((c*d+h).toFixed(o)));return f}function en(e){if(!e)return"";var t=[];return y(e,(function(e,o){var r=ht(e);t.push(r+": "+o+";")})),t.join(" ")}function tn(e){var t=document.createElement("div"),o=document.querySelector("#__ag__message");if(t.innerHTML=e,!o){var r='<div id="__ag__message" style="display: inline-block; position: absolute; top: 0px; left: 0px; color: white; background-color: black; z-index: 20; padding: 2px; border: 1px solid darkred; height: 200px; overflow-y: auto;"></div>';o=br(r),document.body&&document.body.appendChild(o)}o.insertBefore(t,o.children[0])}function on(e,t){e.then((function(e){var o=e.getGui();null!=o&&("object"===typeof o?t.appendChild(o):t.innerHTML=o)}))}var rn=Object.freeze({__proto__:null,getNameOfClass:Zr,findLineByLeastSquares:$r,cssStyleObjectToMarkup:en,message:tn,bindCellRendererToHtmlElement:on}); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */function nn(e,t,o){e.setAttribute(an(t),o.toString())}function sn(e,t){e.removeAttribute(an(t))}function an(e){return"aria-"+e}function ln(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function un(e){var t;return t=e.isSortAscending()?"ascending":e.isSortDescending()?"descending":"none",t}function pn(e){return parseInt(e.getAttribute("aria-level"),10)}function cn(e){return parseInt(e.getAttribute("aria-posinset"),10)}function dn(e){return e.getAttribute("aria-describedby")||""}function hn(e,t){var o="label";null!=t&&""!==t?nn(e,o,t):sn(e,o)}function fn(e,t){var o="labelledby";t?nn(e,o,t):sn(e,o)}function gn(e,t){var o="description";t?nn(e,o,t):sn(e,o)}function vn(e,t){var o="describedby";t?nn(e,o,t):sn(e,o)}function yn(e,t){nn(e,"level",t)}function mn(e,t){nn(e,"disabled",t)}function Cn(e,t){t?nn(e,"hidden",!0):sn(e,"hidden")}function wn(e,t){nn(e,"expanded",t)}function En(e){sn(e,"expanded")}function Rn(e,t){nn(e,"setsize",t)}function On(e,t){nn(e,"posinset",t)}function Sn(e,t){nn(e,"multiselectable",t)}function _n(e,t){nn(e,"rowcount",t)}function bn(e,t){nn(e,"rowindex",t)}function Pn(e,t){nn(e,"colcount",t)}function Tn(e,t){nn(e,"colindex",t)}function Dn(e,t){nn(e,"colspan",t)}function An(e,t){nn(e,"sort",t)}function Nn(e){sn(e,"sort")}function In(e,t){var o="selected";t?nn(e,o,t):sn(e,o)}function Gn(e,t){nn(e,"checked",void 0===t?"mixed":t)}var Fn=Object.freeze({__proto__:null,setAriaRole:ln,getAriaSortState:un,getAriaLevel:pn,getAriaPosInSet:cn,getAriaDescribedBy:dn,setAriaLabel:hn,setAriaLabelledBy:fn,setAriaDescription:gn,setAriaDescribedBy:vn,setAriaLevel:yn,setAriaDisabled:mn,setAriaHidden:Cn,setAriaExpanded:wn,removeAriaExpanded:En,setAriaSetSize:Rn,setAriaPosInSet:On,setAriaMultiSelectable:Sn,setAriaRowCount:_n,setAriaRowIndex:bn,setAriaColCount:Pn,setAriaColIndex:Tn,setAriaColSpan:Dn,setAriaSort:An,removeAriaSort:Nn,setAriaSelected:In,setAriaChecked:Gn}),Ln=function(e,t){var o="function"===typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,n,i=o.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=i.next()).done)s.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(o=i["return"])&&o.call(i)}finally{if(n)throw n.error}}return s}; /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */function Mn(e,t,o){if(void 0===t&&(t=!0),void 0===o&&(o="-"),!e)return null;var r=[e.getFullYear(),e.getMonth()+1,e.getDate()].map((function(e){return vo(e,2)})).join(o);return t&&(r+=" "+[e.getHours(),e.getMinutes(),e.getSeconds()].map((function(e){return vo(e,2)})).join(":")),r}var xn=function(e){if(e>3&&e<21)return"th";var t=e%10;switch(t){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"};function Hn(e,t){void 0===t&&(t="YYYY-MM-DD");var o=vo(e.getFullYear(),4),r=["January","February","March","April","May","June","July","August","September","October","November","December"],n=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],i={YYYY:function(){return o.slice(o.length-4,o.length)},YY:function(){return o.slice(o.length-2,o.length)},Y:function(){return""+e.getFullYear()},MMMM:function(){return r[e.getMonth()]},MMM:function(){return r[e.getMonth()].slice(0,3)},MM:function(){return vo(e.getMonth()+1,2)},Mo:function(){return""+(e.getMonth()+1)+xn(e.getMonth()+1)},M:function(){return""+(e.getMonth()+1)},Do:function(){return""+e.getDate()+xn(e.getDate())},DD:function(){return vo(e.getDate(),2)},D:function(){return""+e.getDate()},dddd:function(){return n[e.getDay()]},ddd:function(){return n[e.getDay()].slice(0,3)},dd:function(){return n[e.getDay()].slice(0,2)},do:function(){return""+e.getDay()+xn(e.getDay())},d:function(){return""+e.getDay()}},s=new RegExp(Object.keys(i).join("|"),"g");return t.replace(s,(function(e){return e in i?i[e]():e}))}function Vn(e){if(!e)return null;var t=Ln(e.split(" "),2),o=t[0],r=t[1];if(!o)return null;var n=o.split("-").map((function(e){return parseInt(e,10)}));if(3!==n.filter((function(e){return!isNaN(e)})).length)return null;var i=Ln(n,3),s=i[0],a=i[1],l=i[2],u=new Date(s,a-1,l);if(u.getFullYear()!==s||u.getMonth()!==a-1||u.getDate()!==l)return null;if(!r||"00:00:00"===r)return u;var p=Ln(r.split(":").map((function(e){return parseInt(e,10)})),3),c=p[0],d=p[1],h=p[2];return c>=0&&c<24&&u.setHours(c),d>=0&&d<60&&u.setMinutes(d),h>=0&&h<60&&u.setSeconds(h),u}var Wn=Object.freeze({__proto__:null,serialiseDate:Mn,dateToFormattedString:Hn,parseDateTimeFromString:Vn}),kn={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",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",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"}; /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */function Bn(e,t,o){var r=jn(e,t,o);if(r&&r.className.indexOf("ag-icon")>-1)return r;var n=document.createElement("span");return n.appendChild(r),n}function jn(e,t,o,r){var n=null,i=o&&o.getColDef().icons;if(i&&(n=i[e]),t&&!n){var s=t.getIcons();s&&(n=s[e])}if(!n){var a=document.createElement("span"),l=kn[e];return l||(r?l=e:(console.warn("AG Grid: Did not find icon "+e),l="")),a.setAttribute("class","ag-icon ag-icon-"+l),a.setAttribute("unselectable","on"),ln(a,"presentation"),a}var u=void 0;if("function"===typeof n)u=n();else{if("string"!==typeof n)throw new Error("icon from grid options needs to be a string or a function");u=n}return"string"===typeof u?br(u):zr(u)?u:void console.warn("AG Grid: iconRenderer should return back a string or a dom object")}var Un=Object.freeze({__proto__:null,iconNameClassMap:kn,createIcon:Bn,createIconNoSpan:jn}),zn=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.V="KeyV",e.D="KeyD",e.Z="KeyZ",e.Y="KeyY",e}(),Kn="Del",Yn=46,qn=65,Xn=67,Qn=86,Jn=68,Zn=90,$n=89; /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */function ei(e){if(e.altKey||e.ctrlKey||e.metaKey)return!1;var t=1===e.key.length,o=ri(e);return t||o}function ti(e,t,o,r,n){var i=e.getSuppressKeyboardEventFunc(),s=r?r.getColDef().suppressKeyboardEvent:void 0;if(!i&&!s)return!1;var a={event:t,editing:n,column:r,api:e.getApi(),node:o,data:o.data,colDef:r.getColDef(),context:e.getContext(),columnApi:e.getColumnApi()};if(s){var l=s(a);if(l)return!0}return!!i&&i(a)}function oi(e,t,o,r){var i=r.getDefinition(),s=i&&i.suppressHeaderKeyboardEvent;if(!n(s))return!1;var a={api:e.getApi(),columnApi:e.getColumnApi(),context:e.getContext(),colDef:i,column:r,headerRowIndex:o,event:t};return!!s(a)}function ri(e){return Yt()&&e.key===Kn&&e.charCode===Yn}function ni(e){var t,o=e.keyCode;switch(o){case qn:t=zn.A;break;case Xn:t=zn.C;break;case Qn:t=zn.V;break;case Jn:t=zn.D;break;case Zn:t=zn.Z;break;case $n:t=zn.Y;break;default:t=e.code}return t}function ii(e,t){return void 0===t&&(t=!1),e===zn.DELETE||!t&&e===zn.BACKSPACE&&Jt()}var si=Object.freeze({__proto__:null,isEventFromPrintableCharacter:ei,isUserSuppressingKeyboardEvent:ti,isUserSuppressingHeaderKeyboardEvent:oi,normaliseQwertyAzerty:ni,isDeleteKey:ii}); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */function ai(e,t,o){if(0===o)return!1;var r=Math.abs(e.clientX-t.clientX),n=Math.abs(e.clientY-t.clientY);return Math.max(r,n)<=o}var li=Object.freeze({__proto__:null,areEventsNear:ai}); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */function ui(e,t){if(!e)return!1;for(var o,r,n=function(e,o){var r=t[e.id],n=t[o.id],i=void 0!==r,s=void 0!==n,a=i&&s,l=!i&&!s;return a?r-n:l?e.__objectId-o.__objectId:i?1:-1},i=!1,s=0;s<e.length-1;s++)if(o=e[s],r=e[s+1],n(o,r)>0){i=!0;break}return!!i&&(e.sort(n),!0)}function pi(e,t){var o=[];function r(e){e&&e.forEach((function(e){if(e.group||e.hasChildren()){o.push(e.key);var n=o.join("|");t(e,n),r(e.childrenAfterGroup),o.pop()}}))}r(e)}var ci=Object.freeze({__proto__:null,sortRowNodesByOrder:ui,traverseNodesWithKey:pi}); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */function di(e){var t=new Set;return e.forEach((function(e){return t.add(e)})),t}var hi,fi=Object.freeze({__proto__:null,convertToSet:di}),gi=function(){return gi=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},gi.apply(this,arguments)},vi=gi(gi(gi(gi(gi(gi(gi(gi(gi(gi(gi(gi(gi(gi(gi(gi(gi(gi(gi(gi({},rn),Fn),xe),lo),ar),Wn),Jr),tt),J),go),g),Un),si),Rt),li),So),L),ci),fi),mt),yi=vi,mi=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=1),this.nextValue=e,this.step=t}return e.prototype.next=function(){var e=this.nextValue;return this.nextValue+=this.step,e},e.prototype.peek=function(){return this.nextValue},e.prototype.skip=function(e){this.nextValue+=e},e}(); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */(function(e){e[e["IN_PROGRESS"]=0]="IN_PROGRESS",e[e["RESOLVED"]=1]="RESOLVED"})(hi||(hi={}));var Ci,wi=function(){function e(e){var t=this;this.status=hi.IN_PROGRESS,this.resolution=null,this.waiters=[],e((function(e){return t.onDone(e)}),(function(e){return t.onReject(e)}))}return e.all=function(t){return new e((function(e){var o=t.length,r=new Array(o);t.forEach((function(t,n){t.then((function(t){r[n]=t,o--,0===o&&e(r)}))}))}))},e.resolve=function(t){return void 0===t&&(t=null),new e((function(e){return e(t)}))},e.prototype.then=function(t){var o=this;return new e((function(e){o.status===hi.RESOLVED?e(t(o.resolution)):o.waiters.push((function(o){return e(t(o))}))}))},e.prototype.resolveNow=function(e,t){return this.status===hi.RESOLVED?t(this.resolution):e},e.prototype.onDone=function(e){this.status=hi.RESOLVED,this.resolution=e,this.waiters.forEach((function(t){return t(e)}))},e.prototype.onReject=function(e){console.warn("TBI")},e}(),Ei=(function(){function e(){this.timestamp=(new Date).getTime()}e.prototype.print=function(e){var t=(new Date).getTime()-this.timestamp;console.info(e+" = "+t),this.timestamp=(new Date).getTime()}}(),function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}()),Ri=function(){return Ri=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},Ri.apply(this,arguments)},Oi=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s}; /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */(function(e){e[e["NOTHING"]=0]="NOTHING",e[e["WAITING_TO_SHOW"]=1]="WAITING_TO_SHOW",e[e["SHOWING"]=2]="SHOWING"})(Ci||(Ci={}));var Si=function(e){function t(t){var o=e.call(this)||this;return o.DEFAULT_SHOW_TOOLTIP_DELAY=2e3,o.DEFAULT_HIDE_TOOLTIP_DELAY=1e4,o.SHOW_QUICK_TOOLTIP_DIFF=1e3,o.FADE_OUT_TOOLTIP_TIMEOUT=1e3,o.state=Ci.NOTHING,o.tooltipInstanceCount=0,o.tooltipMouseTrack=!1,o.parentComp=t,o}return Ei(t,e),t.prototype.postConstruct=function(){this.tooltipShowDelay=this.gridOptionsWrapper.getTooltipDelay("show")||this.DEFAULT_SHOW_TOOLTIP_DELAY,this.tooltipHideDelay=this.gridOptionsWrapper.getTooltipDelay("hide")||this.DEFAULT_HIDE_TOOLTIP_DELAY,this.tooltipMouseTrack=this.gridOptionsWrapper.isTooltipMouseTrack();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(!Zt()&&this.state==Ci.NOTHING){var t=this.isLastTooltipHiddenRecently()?200:this.tooltipShowDelay;this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.lastMouseEvent=e,this.state=Ci.WAITING_TO_SHOW}},t.prototype.onMouseLeave=function(){this.setToDoNothing()},t.prototype.onKeyDown=function(){this.setToDoNothing()},t.prototype.setToDoNothing=function(){this.state===Ci.SHOWING&&this.hideTooltip(),this.clearTimeouts(),this.state=Ci.NOTHING},t.prototype.onMouseMove=function(e){this.lastMouseEvent=e,this.tooltipMouseTrack&&this.state===Ci.SHOWING&&this.tooltipComp&&this.positionTooltipUnderLastMouseEvent()},t.prototype.onMouseDown=function(){this.setToDoNothing()},t.prototype.hideTooltip=function(){this.tooltipComp&&(this.destroyTooltipComp(),t.lastTooltipHideTime=(new Date).getTime()),this.state=Ci.NOTHING},t.prototype.destroyTooltipComp=function(){var e=this;this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");var t=this.tooltipPopupDestroyFunc,o=this.tooltipComp;window.setTimeout((function(){t(),e.getContext().destroyBean(o)}),this.FADE_OUT_TOOLTIP_TIMEOUT),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0},t.prototype.isLastTooltipHiddenRecently=function(){var e=(new Date).getTime(),o=t.lastTooltipHideTime;return e-o<this.SHOW_QUICK_TOOLTIP_DIFF},t.prototype.showTooltip=function(){var e=Ri({},this.parentComp.getTooltipParams());if(n(e.value)){this.state=Ci.SHOWING,this.tooltipInstanceCount++;var t=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount),o=this.userComponentFactory.getTooltipCompDetails(e);o.newAgStackInstance().then(t)}else this.setToDoNothing()},t.prototype.newTooltipComponentCallback=function(e,t){var o=this.state!==Ci.SHOWING||this.tooltipInstanceCount!==e;if(o)this.getContext().destroyBean(t);else{var r=t.getGui();this.tooltipComp=t,r.classList.contains("ag-tooltip")||r.classList.add("ag-tooltip-custom");var n=this.gridOptionsWrapper.getLocaleTextFunc(),i=this.popupService.addPopup({eChild:r,ariaLabel:n("ariaLabelTooltip","Tooltip")});i&&(this.tooltipPopupDestroyFunc=i.hideFunc),this.positionTooltipUnderLastMouseEvent(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.tooltipHideDelay)}},t.prototype.positionTooltipUnderLastMouseEvent=function(){this.popupService.positionPopupUnderMouseEvent({type:"tooltip",mouseEvent:this.lastMouseEvent,ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack})},t.prototype.clearTimeouts=function(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0),this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)},Oi([ne("popupService")],t.prototype,"popupService",void 0),Oi([ne("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Oi([ne("columnApi")],t.prototype,"columnApi",void 0),Oi([ne("gridApi")],t.prototype,"gridApi",void 0),Oi([te],t.prototype,"postConstruct",null),t}(rt),_i=function(){function e(e){this.cssClassStates={},this.getGui=e}return e.prototype.addCssClass=function(e){var t=this,o=(e||"").split(" ");if(o.length>1)o.forEach((function(e){return t.addCssClass(e)}));else{var r=!0!==this.cssClassStates[e];if(r&&e.length){var n=this.getGui();n&&n.classList.add(e),this.cssClassStates[e]=!0}}},e.prototype.removeCssClass=function(e){var t=this,o=(e||"").split(" ");if(o.length>1)o.forEach((function(e){return t.removeCssClass(e)}));else{var r=!1!==this.cssClassStates[e];if(r&&e.length){var n=this.getGui();n&&n.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 o=this;if(e){if(e.indexOf(" ")>=0){var r=(e||"").split(" ");if(r.length>1)return void r.forEach((function(e){return o.addOrRemoveCssClass(e,t)}))}var n=this.cssClassStates[e]!==t;if(n&&e.length){var i=this.getGui();i&&i.classList.toggle(e,t),this.cssClassStates[e]=t}}},e}(),bi=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Pi=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Ti=new mi,Di=function(e){function t(t){var o=e.call(this)||this;return o.displayed=!0,o.visible=!0,o.compId=Ti.next(),o.cssClassManager=new _i((function(){return o.eGui})),t&&o.setTemplate(t),o}return bi(t,e),t.prototype.preConstructOnComponent=function(){this.usingBrowserTooltips=this.gridOptionsWrapper.isEnableBrowserTooltips()},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,o=function(){t.usingBrowserTooltips?t.getGui().removeAttribute("title"):t.tooltipFeature=t.destroyBean(t.tooltipFeature)},r=function(){t.usingBrowserTooltips?t.getGui().setAttribute("title",t.tooltipText):t.tooltipFeature=t.createBean(new Si(t))};this.tooltipText!=e&&(this.tooltipText&&o(),null!=e&&(this.tooltipText=e,this.tooltipText&&r()))},t.prototype.createChildComponentsFromTags=function(e,t){var o=this,r=Kr(e.childNodes);r.forEach((function(r){if(r instanceof HTMLElement){var n=o.createComponentFromElement(r,(function(e){var t=e.getGui();t&&o.copyAttributesFromNode(r,e.getGui())}),t);if(n){if(n.addItems&&r.children.length){o.createChildComponentsFromTags(r,t);var i=Array.prototype.slice.call(r.children);n.addItems(i)}o.swapComponentForNode(n,e,r)}else r.childNodes&&o.createChildComponentsFromTags(r,t)}}))},t.prototype.createComponentFromElement=function(e,o,r){var n=e.nodeName,i=r?r[e.getAttribute("ref")]:void 0,s=this.agStackComponentsRegistry.getComponentClass(n);if(s){t.elementGettingCreated=e;var a=new s(i);return a.setParentComponent(this),this.createBean(a,null,o),a}return null},t.prototype.copyAttributesFromNode=function(e,t){Yr(e.attributes,(function(e,o){return t.setAttribute(e,o)}))},t.prototype.swapComponentForNode=function(e,t,o){var r=e.getGui();t.replaceChild(r,o),t.insertBefore(document.createComment(o.nodeName),r),this.addDestroyFunc(this.destroyBean.bind(this,e)),this.swapInComponentForQuerySelectors(e,o)},t.prototype.swapInComponentForQuerySelectors=function(e,t){var o=this;this.iterateOverQuerySelectors((function(r){o[r.attributeName]===t&&(o[r.attributeName]=e)}))},t.prototype.iterateOverQuerySelectors=function(e){var t=Object.getPrototypeOf(this);while(null!=t){var o=t.__agComponentMetaData,r=H(t.constructor);o&&o[r]&&o[r].querySelectors&&o[r].querySelectors.forEach((function(t){return e(t)})),t=Object.getPrototypeOf(t)}},t.prototype.setTemplate=function(e,t){var o=br(e);this.setTemplateFromElement(o,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(o){var r=function(e){return t[o.attributeName]=e},n=o.refSelector&&e.eGui.getAttribute("ref")===o.refSelector;if(n)r(e.eGui);else{var i=e.eGui.querySelector(o.querySelector);i&&r(i.__agComponent||i)}}))}},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),zr(e))t.appendChild(e);else{var o=e;t.appendChild(o.getGui())}},t.prototype.isDisplayed=function(){return this.displayed},t.prototype.setVisible=function(e){e!==this.visible&&(this.visible=e,cr(this.eGui,e))},t.prototype.setDisplayed=function(e){if(e!==this.displayed){this.displayed=e,pr(this.eGui,e);var o={type:t.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(o)}},t.prototype.destroy=function(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),e.prototype.destroy.call(this)},t.prototype.addGuiEventListener=function(e,t){var o=this;this.eGui.addEventListener(e,t),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",Pi([ne("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),Pi([ee],t.prototype,"preConstructOnComponent",null),Pi([ee],t.prototype,"createChildComponentsPreConstruct",null),t}(rt); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */function Ai(e){return Ni.bind(this,"[ref="+e+"]",e)}function Ni(e,t,o,r,n){null!==e?"number"!==typeof n?Ii(o,"querySelectors",{attributeName:r,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 Ii(e,t,o){var r=Gi(e,H(e.constructor));r[t]||(r[t]=[]),r[t].push(o)}function Gi(e,t){return e.__agComponentMetaData||(e.__agComponentMetaData={}),e.__agComponentMetaData[t]||(e.__agComponentMetaData[t]={}),e.__agComponentMetaData[t]} /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */var Fi,Li=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Mi=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},xi=function(e){function t(){return e.call(this,'\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eFloatingFilterText"></ag-input-text-field>\n </div>')||this}return Li(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e;var t=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),o=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(t+" "+o("ariaFilterInput","Filter Input"))},t.prototype.onParentModelChanged=function(e){var t=this;e?this.params.parentFilterInstance((function(o){if(o.getModelAsString){var r=o.getModelAsString(e);t.eFloatingFilterText.setValue(r)}})):this.eFloatingFilterText.setValue("")},Mi([Ai("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),Mi([ne("columnModel")],t.prototype,"columnModel",void 0),t}(Di),Hi=function(){function e(e,t,o,r){var n=this;this.alive=!0,this.context=e,this.eParent=r;var i=t.getDateCompDetails(o),s=i.newAgStackInstance();s.then((function(t){n.alive?(n.dateComp=t,t&&(r.appendChild(t.getGui()),t.afterGuiAttached&&t.afterGuiAttached(),n.tempValue&&t.setDate(n.tempValue),null!=n.disabled&&n.setDateCompDisabled(n.disabled))):e.destroyBean(t)}))}return e.prototype.destroy=function(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)},e.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},e.prototype.setDate=function(e){this.dateComp?this.dateComp.setDate(e):this.tempValue=e},e.prototype.setDisabled=function(e){this.dateComp?this.setDateCompDisabled(e):this.disabled=e},e.prototype.setDisplayed=function(e){pr(this.eParent,e)},e.prototype.setInputPlaceholder=function(e){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(e)},e.prototype.setInputAriaLabel=function(e){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(e)},e.prototype.afterGuiAttached=function(e){this.dateComp&&"function"===typeof this.dateComp.afterGuiAttached&&this.dateComp.afterGuiAttached(e)},e.prototype.setDateCompDisabled=function(e){null!=this.dateComp&&null!=this.dateComp.setDisabled&&this.dateComp.setDisabled(e)},e}(),Vi=function(){return Vi=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},Vi.apply(this,arguments)},Wi=function(){function e(){this.customFilterOptions={}}return e.prototype.init=function(e,t){this.filterOptions=e.filterOptions||t,this.mapCustomOptions(),this.selectDefaultItem(e),this.checkForDeprecatedParams()},e.prototype.checkForDeprecatedParams=function(){this.filterOptions.some((function(e){return"string"!=typeof e&&null!=e.test}))&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, test() has been replaced with predicate()."),this.filterOptions.some((function(e){return"string"!=typeof e&&null!=e.hideFilterInput}))&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, useOfHideFilterInput has been replaced with numberOfInputs.")},e.prototype.getFilterOptions=function(){return this.filterOptions},e.prototype.mapCustomOptions=function(){var e=this;this.filterOptions&&this.filterOptions.forEach((function(t){if("string"!==typeof t){var o=[["displayKey"],["displayName"],["predicate","test"]],r=function(e){return!!e.some((function(e){return null!=t[e]}))||(console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain one of '"+e+"'"),!1)};if(o.every(r)){var n=t.test,i=Vi({},t);null!=n&&null==t.predicate&&(i.predicate=function(e,t){return n(e[0],t)},delete i.test),i.hideFilterInput&&null==i.numberOfInputs&&(i.numberOfInputs=0,delete i.hideFilterInput),e.customFilterOptions[t.displayKey]=i}else e.filterOptions=e.filterOptions.filter((function(e){return e===t}))||[]}}))},e.prototype.selectDefaultItem=function(e){if(e.defaultOption)this.defaultOption=e.defaultOption;else if(this.filterOptions.length>=1){var t=this.filterOptions[0];"string"===typeof t?this.defaultOption=t:t.displayKey?this.defaultOption=t.displayKey:console.warn("AG Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else console.warn("AG Grid: no filter options for filter")},e.prototype.getDefaultOption=function(){return this.defaultOption},e.prototype.getCustomOption=function(e){return this.customFilterOptions[e]},e}(),ki={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose One",equals:"Equals",notEqual:"Not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"In range",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equals",greaterThanOrEqual:"Greater than or equals",contains:"Contains",notContains:"Not contains",startsWith:"Starts with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"},Bi=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ji=function(){return ji=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},ji.apply(this,arguments)},Ui=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},zi=function(e){function t(t,o){void 0===o&&(o={});var r=e.call(this)||this;return r.eFocusableElement=t,r.callbacks=o,r.callbacks=ji({shouldStopEventPropagation:function(){return!1},onTabKeyDown:function(e){if(!e.defaultPrevented){var t=r.focusService.findNextFocusableElement(r.eFocusableElement,!1,e.shiftKey);t&&(t.focus(),e.preventDefault())}}},o),r}return Bi(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||Ke(e)||(t.callbacks.shouldStopEventPropagation(e)?ze(e):e.key===zn.TAB?t.callbacks.onTabKeyDown(e):t.callbacks.handleKeyDown&&t.callbacks.handleKeyDown(e))}))},t.FOCUS_MANAGED_CLASS="ag-focus-managed",Ui([ne("focusService")],t.prototype,"focusService",void 0),Ui([te],t.prototype,"postConstruct",null),t}(rt),Ki=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Yi=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},qi=function(e){function t(t){var o=e.call(this)||this;return o.filterNameKey=t,o.applyActive=!1,o.hidePopup=null,o.appliedModel=null,o}return Ki(t,e),t.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new zi(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)}))},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 o='\n <form class="ag-filter-wrapper">\n <div class="ag-filter-body-wrapper ag-'+this.getCssIdentifier()+'-body-wrapper">\n '+this.createBodyTemplate()+"\n </div>\n </form>";this.setTemplate(o,e),t=this.getGui(),t&&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 o=document.createElement("div");o.classList.add("ag-filter-apply-panel");var r=function(t){var r,n;switch(t){case"apply":r=e.translate("applyFilter"),n=function(t){return e.onBtApply(!1,!1,t)};break;case"clear":r=e.translate("clearFilter"),n=function(){return e.onBtClear()};break;case"reset":r=e.translate("resetFilter"),n=function(){return e.onBtReset()};break;case"cancel":r=e.translate("cancelFilter"),n=function(t){e.onBtCancel(t)};break;default:return void console.warn("AG Grid: Unknown button type specified")}var i="apply"===t?"submit":"button",s=br('<button\n type="'+i+'"\n ref="'+t+'FilterButton"\n class="ag-standard-button ag-filter-apply-panel-button"\n >'+r+"\n </button>");o.appendChild(s),e.addManagedListener(s,"click",n)};di(t).forEach((function(e){return r(e)})),this.getGui().appendChild(o)}},t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.setupOnBtApplyDebounce=function(){var e=t.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs());this.onBtApplyDebounce=z(this.onBtApply.bind(this),e)},t.prototype.getModel=function(){return this.appliedModel?this.appliedModel:null},t.prototype.setModel=function(e){var t=this,o=null!=e?this.setModelIntoUi(e):this.resetUiToDefaults();return o.then((function(){t.updateUiVisibility(),t.applyModel()}))},t.prototype.onBtCancel=function(e){var t=this,o=this.getModel(),r=function(){t.onUiChanged(!1,"prevent"),t.providedFilterParams.closeOnApply&&t.close(e)};null!=o?this.setModelIntoUi(o).then(r):this.resetUiToDefaults().then(r)},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(){var e=this.getModelFromUi();if(!this.isModelValid(e))return!1;var t=this.appliedModel;return this.appliedModel=e,!this.areModelsEqual(t,e)},t.prototype.isModelValid=function(e){return!0},t.prototype.onFormSubmit=function(e){e.preventDefault()},t.prototype.onBtApply=function(e,t,o){void 0===e&&(e=!1),void 0===t&&(t=!1),o&&o.preventDefault(),this.applyModel()&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:t});var r=this.providedFilterParams.closeOnApply;r&&this.applyActive&&!e&&!t&&this.close(o)},t.prototype.onNewRowsLoaded=function(){},t.prototype.close=function(e){if(this.hidePopup){var t,o=e,r=o&&o.key;"Enter"!==r&&"Space"!==r||(t={keyboardEvent:o}),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 o=this.isModelValid(this.getModelFromUi());dr(this.getRefElement("applyFilterButton"),!o)}e&&!t||"immediately"===t?this.onBtApply(e):(this.applyActive||t)&&"debounce"!==t||this.onBtApplyDebounce()},t.prototype.afterGuiAttached=function(e){null!=e&&(this.hidePopup=e.hidePopup)},t.getDebounceMs=function(e,o){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:o},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,e.prototype.destroy.call(this)},t.prototype.translate=function(e){var t=this.gridOptionsWrapper.getLocaleTextFunc();return t(e,ki[e])},t.prototype.getCellValue=function(e){var t=this.providedFilterParams,o=t.api,r=t.colDef,n=t.column,i=t.columnApi,s=t.context;return this.providedFilterParams.valueGetter({api:o,colDef:r,column:n,columnApi:i,context:s,data:e.data,getValue:function(t){return e.data[t]},node:e})},Yi([ne("rowModel")],t.prototype,"rowModel",void 0),Yi([te],t.prototype,"postConstruct",null),t}(Di),Xi=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Qi=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Ji=function(e){function t(t,o){var r=e.call(this,o)||this;return r.labelSeparator="",r.labelAlignment="left",r.disabled=!1,r.label="",r.config=t||{},r}return Xi(t,e),t.prototype.postConstruct=function(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");var e=this.config,t=e.labelSeparator,o=e.label,r=e.labelWidth,n=e.labelAlignment;null!=t&&this.setLabelSeparator(t),null!=o&&this.setLabel(o),null!=r&&this.setLabelWidth(r),this.setLabelAlignment(n||this.labelAlignment),this.refreshLabel()},t.prototype.refreshLabel=function(){Rr(this.eLabel),"string"===typeof this.label?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),""===this.label?(this.eLabel.classList.add("ag-hidden"),ln(this.eLabel,"presentation")):(this.eLabel.classList.remove("ag-hidden"),ln(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(),o=t.classList;return o.toggle("ag-label-align-left","left"===e),o.toggle("ag-label-align-right","right"===e),o.toggle("ag-label-align-top","top"===e),this},t.prototype.setLabelWidth=function(e){return null==this.label||Hr(this.eLabel,e),this},t.prototype.setDisabled=function(e){e=!!e;var t=this.getGui();return dr(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this},t.prototype.isDisabled=function(){return!!this.disabled},Qi([te],t.prototype,"postConstruct",null),t}(Di),Zi=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),$i=function(e){function t(t,o,r){var n=e.call(this,t,o)||this;return n.className=r,n}return Zi(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.className&&this.addCssClass(this.className)},t.prototype.onValueChange=function(e){var o=this;return this.addManagedListener(this,t.EVENT_CHANGED,(function(){return e(o.getValue())})),this},t.prototype.getWidth=function(){return this.getGui().clientWidth},t.prototype.setWidth=function(e){return Vr(this.getGui(),e),this},t.prototype.getPreviousValue=function(){return this.previousValue},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e,o){return this.value===e||(this.previousValue=this.value,this.value=e,o||this.dispatchEvent({type:t.EVENT_CHANGED})),this},t.EVENT_CHANGED="valueChange",t}(Ji),es=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ts=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},os=function(e){function t(t,o,r,n){var i=e.call(this,t,'<div class="ag-picker-field" role="presentation">\n <div ref="eLabel"></div>\n <div ref="eWrapper"\n class="ag-wrapper ag-picker-field-wrapper"\n tabIndex="-1"\n aria-expanded="false"\n '+(n?'role="'+n+'"':"")+'\n >\n <div ref="eDisplayField" class="ag-picker-field-display"></div>\n <div ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>\n </div>\n </div>',o)||this;return i.pickerIcon=r,i.isPickerDisplayed=!1,i.isDestroyingPicker=!1,i.skipClick=!1,i}return es(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this);var o=this.getCompId()+"-display";this.eDisplayField.setAttribute("id",o),vn(this.eWrapper,o);var r=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()&&_r(t.pickerComponent.getGui())&&n.contains(e.target)&&(t.skipClick=!0)})),this.addManagedListener(n,"keydown",(function(e){switch(e.key){case zn.UP:case zn.DOWN:case zn.ENTER:case zn.SPACE:r();case zn.ESCAPE:t.isPickerDisplayed&&e.preventDefault();break}})),this.addManagedListener(this.eWrapper,"click",r),this.addManagedListener(this.eLabel,"click",r),this.pickerIcon){var i=jn(this.pickerIcon,this.gridOptionsWrapper);i&&this.eIcon.appendChild(i)}},t.prototype.refreshLabel=function(){n(this.getLabel())?fn(this.eWrapper,this.getLabelId()):this.eWrapper.removeAttribute("aria-labelledby"),e.prototype.refreshLabel.call(this)},t.prototype.setAriaLabel=function(e){return hn(this.eWrapper,e),this},t.prototype.setInputWidth=function(e){return Hr(this.eWrapper,e),this},t.prototype.getFocusableElement=function(){return this.eWrapper},ts([Ai("eLabel")],t.prototype,"eLabel",void 0),ts([Ai("eWrapper")],t.prototype,"eWrapper",void 0),ts([Ai("eDisplayField")],t.prototype,"eDisplayField",void 0),ts([Ai("eIcon")],t.prototype,"eIcon",void 0),t}($i),rs=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ns=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},is=function(e){function t(t){void 0===t&&(t="default");var o=e.call(this,'<div class="ag-list ag-'+t+'-list" role="listbox"></div>')||this;return o.cssIdentifier=t,o.options=[],o.itemEls=[],o}return rs(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 zn.ENTER:if(this.highlightedEl){var o=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(o)}else this.setValue(this.getValue());break;case zn.DOWN:case zn.UP:var r=t===zn.DOWN,n=void 0;if(e.preventDefault(),this.highlightedEl){var i=this.itemEls.indexOf(this.highlightedEl),s=i+(r?1:-1);s=Math.min(Math.max(s,0),this.itemEls.length-1),n=this.itemEls[s]}else n=this.itemEls[r?0:this.itemEls.length-1];this.highlightItem(n);break}},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,o=e.text,r=vt(o||t);return this.options.push({value:t,text:r}),this.renderOption(t,r),this.updateIndices(),this},t.prototype.updateIndices=function(){var e=this.getGui().querySelectorAll(".ag-list-item");e.forEach((function(t,o){On(t,o+1),Rn(t,e.length)}))},t.prototype.renderOption=function(e,t){var o=this,r=document.createElement("div");ln(r,"option"),r.classList.add("ag-list-item","ag-"+this.cssIdentifier+"-list-item"),r.innerHTML="<span>"+t+"</span>",r.tabIndex=-1,this.itemEls.push(r),this.addManagedListener(r,"mouseover",(function(){return o.highlightItem(r)})),this.addManagedListener(r,"mouseleave",(function(){return o.clearHighlighted()})),this.addManagedListener(r,"click",(function(){return o.setValue(e)})),this.getGui().appendChild(r)},t.prototype.setValue=function(e,t){if(this.value===e)return this.fireItemSelected(),this;if(null==e)return this.reset(),this;var o=this.options.findIndex((function(t){return t.value===e}));if(-1!==o){var r=this.options[o];this.value=r.value,this.displayValue=null!=r.text?r.text:r.value,this.highlightItem(this.itemEls[o]),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),In(this.highlightedEl,!0),this.highlightedEl.focus())},t.prototype.clearHighlighted=function(){this.highlightedEl&&this.highlightedEl.offsetParent&&(this.highlightedEl.classList.remove(t.ACTIVE_CLASS),In(this.highlightedEl,!1),this.highlightedEl=null)},t.prototype.fireChangeEvent=function(){this.dispatchEvent({type:$i.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",ns([te],t.prototype,"init",null),t}(Di),ss=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),as=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},ls=function(e){function t(t){return e.call(this,t,"ag-select","smallDown","listbox")||this}return ss(t,e),t.prototype.init=function(){var e=this;this.listComponent=this.createBean(new is("select")),this.listComponent.setParentComponent(this),this.eWrapper.tabIndex=0,this.listComponent.addManagedListener(this.listComponent,is.EVENT_ITEM_SELECTED,(function(){e.hideList&&e.hideList()})),this.listComponent.addManagedListener(this.listComponent,$i.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(),o=this.gridOptionsWrapper.getDocument(),r=this.addManagedListener(o.body,"wheel",(function(o){!t.contains(o.target)&&e.hideList&&e.hideList()})),n=this.addManagedListener(t,"focusout",(function(o){!t.contains(o.relatedTarget)&&e.hideList&&e.hideList()})),i=this.gridOptionsWrapper.getLocaleTextFunc(),s=this.popupService.addPopup({modal:!0,eChild:t,closeOnEsc:!0,closedCallback:function(){e.hideList=null,e.isPickerDisplayed=!1,n(),r(),e.isAlive()&&(wn(e.eWrapper,!1),e.getFocusableElement().focus())},ariaLabel:i("ariaLabelSelectField","Select Field")});return s&&(this.hideList=s.hideFunc),this.isPickerDisplayed=!0,Hr(t,mr(this.eWrapper)),wn(this.eWrapper,!0),t.style.maxHeight=gr(this.popupService.getPopupParent())+"px",t.style.position="absolute",this.popupService.positionPopupUnderComponent({type:"ag-list",eventSource:this.eWrapper,ePopup:t,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,o,r){if(this.value===t)return this;r||this.listComponent.setValue(t,!0);var n=this.listComponent.getValue();return n===this.getValue()?this:(this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),e.prototype.setValue.call(this,t,o))},t.prototype.destroy=function(){this.hideList&&this.hideList(),this.destroyBean(this.listComponent),e.prototype.destroy.call(this)},as([ne("popupService")],t.prototype,"popupService",void 0),as([te],t.prototype,"init",null),t}(os),us=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ps=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},cs=function(e){function t(t,o,r,n){void 0===r&&(r="text"),void 0===n&&(n="input");var i=e.call(this,t,'\n <div role="presentation">\n <div ref="eLabel" class="ag-input-field-label"></div>\n <div ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">\n <'+n+' ref="eInput" class="ag-input-field-input"></'+n+">\n </div>\n </div>",o)||this;return i.inputType=r,i.displayFieldTag=n,i}return us(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,o=t.width,r=t.value;null!=o&&this.setWidth(o),null!=r&&this.setValue(r),this.addInputListeners()},t.prototype.refreshLabel=function(){n(this.getLabel())?fn(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 Hr(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){var t=this.eInput;return t.maxLength=e,this},t.prototype.setInputPlaceholder=function(e){return Xr(this.eInput,"placeholder",e),this},t.prototype.setInputAriaLabel=function(e){return hn(this.eInput,e),this},t.prototype.setDisabled=function(t){return dr(this.eInput,t),e.prototype.setDisabled.call(this,t)},ps([Ai("eLabel")],t.prototype,"eLabel",void 0),ps([Ai("eWrapper")],t.prototype,"eWrapper",void 0),ps([Ai("eInput")],t.prototype,"eInput",void 0),t}($i),ds=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),hs=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s};(function(e){e[e["One"]=0]="One",e[e["Two"]=1]="Two"})(Fi||(Fi={}));var fs,gs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ds(t,e),t.prototype.getNumberOfInputs=function(e){var o=this.optionsFactory.getCustomOption(e);if(o){var r=o.numberOfInputs;return null!=r?r:1}var n=[t.EMPTY,t.NOT_BLANK,t.BLANK];return e&&n.indexOf(e)>=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){this.eType1.setValue(e),this.eType2.setValue(this.optionsFactory.getDefaultOption()),(this.isDefaultOperator("AND")?this.eJoinOperatorAnd:this.eJoinOperatorOr).setValue(!0)},t.prototype.getModelFromUi=function(){return this.isConditionUiComplete(Fi.One)?this.isAllowTwoConditions()&&this.isConditionUiComplete(Fi.Two)?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:this.createCondition(Fi.One),condition2:this.createCondition(Fi.Two)}:this.createCondition(Fi.One):null},t.prototype.getConditionTypes=function(){return[this.eType1.getValue(),this.eType2.getValue()]},t.prototype.getJoinOperator=function(){return!0===this.eJoinOperatorOr.getValue()?"OR":"AND"},t.prototype.areModelsEqual=function(e,t){if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;var o,r=!e.operator,n=!t.operator,i=!r&&n||r&&!n;if(i)return!1;if(r){var s=e,a=t;o=this.areSimpleModelsEqual(s,a)}else{var l=e,u=t;o=l.operator===u.operator&&this.areSimpleModelsEqual(l.condition1,u.condition1)&&this.areSimpleModelsEqual(l.condition2,u.condition2)}return o},t.prototype.setModelIntoUi=function(e){var t=e.operator;if(t){var o=e,r="OR"===o.operator;this.eJoinOperatorAnd.setValue(!r),this.eJoinOperatorOr.setValue(r),this.eType1.setValue(o.condition1.type),this.eType2.setValue(o.condition2.type),this.setConditionIntoUi(o.condition1,Fi.One),this.setConditionIntoUi(o.condition2,Fi.Two)}else{var n=e;this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND")),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR")),this.eType1.setValue(n.type),this.eType2.setValue(this.optionsFactory.getDefaultOption()),this.setConditionIntoUi(n,Fi.One),this.setConditionIntoUi(null,Fi.Two)}return wi.resolve()},t.prototype.doesFilterPass=function(e){var t=this,o=this.getModel();if(null==o)return!0;var r=o.operator,n=[];if(r){var i=o;n.push(i.condition1,i.condition2)}else n.push(o);var s=r&&"OR"===r?"some":"every";return n[s]((function(o){return t.individualConditionPasses(e,o)}))},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.optionsFactory=new Wi,this.optionsFactory.init(t,this.getDefaultFilterOptions()),this.allowTwoConditions=!t.suppressAndOrCondition,this.alwaysShowBothConditions=!!t.alwaysShowBothConditions,this.defaultJoinOperator=this.getDefaultJoinOperator(t.defaultJoinOperator),this.filterPlaceholder=t.filterPlaceholder,this.putOptionsIntoDropdown(),this.addChangedListeners()},t.prototype.getDefaultJoinOperator=function(e){return Ie(["AND","OR"],e)?e:"AND"},t.prototype.putOptionsIntoDropdown=function(){var e=this,t=this.optionsFactory.getFilterOptions(),o=[this.eType1,this.eType2];t.forEach((function(t){var r="string"===typeof t?e.createBoilerplateListOption(t):e.createCustomListOption(t);o.forEach((function(e){return e.addOption(r)}))})),o.forEach((function(e){return e.setDisabled(t.length<=1)}))},t.prototype.createBoilerplateListOption=function(e){return{value:e,text:this.translate(e)}},t.prototype.createCustomListOption=function(e){var t=e.displayKey,o=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:o?this.gridOptionsWrapper.getLocaleTextFunc()(o.displayKey,o.displayName):this.translate(t)}},t.prototype.isAllowTwoConditions=function(){return this.allowTwoConditions},t.prototype.createBodyTemplate=function(){return'\n <ag-select class="ag-filter-select" ref="eOptions1"></ag-select>\n '+this.createValueTemplate(Fi.One)+'\n <div class="ag-filter-condition" ref="eJoinOperatorPanel">\n <ag-radio-button ref="eJoinOperatorAnd" class="ag-filter-condition-operator ag-filter-condition-operator-and"></ag-radio-button>\n <ag-radio-button ref="eJoinOperatorOr" class="ag-filter-condition-operator ag-filter-condition-operator-or"></ag-radio-button>\n </div>\n <ag-select class="ag-filter-select" ref="eOptions2"></ag-select>\n '+this.createValueTemplate(Fi.Two)},t.prototype.getCssIdentifier=function(){return"simple-filter"},t.prototype.updateUiVisibility=function(){var e=this,t=[[this.eType1],[this.eType2,this.eJoinOperatorPanel,this.eJoinOperatorAnd,this.eJoinOperatorOr]],o=[this.eCondition1Body,this.eCondition2Body];t.forEach((function(t,o){var r=e.isConditionVisible(o),n=e.isConditionDisabled(o);t.forEach((function(e){e instanceof cs||e instanceof ls?(e.setDisabled(n),e.setDisplayed(r)):(dr(e,n),pr(e,r))}))})),o.forEach((function(t,o){pr(t,e.isConditionBodyVisible(o))})),this.forEachInput((function(t,o,r,n){e.setElementDisplayed(t,o<n),e.setElementDisabled(t,e.isConditionDisabled(r))})),this.resetPlaceholder()},t.prototype.afterGuiAttached=function(t){if(e.prototype.afterGuiAttached.call(this,t),this.resetPlaceholder(),!t||!t.suppressFocus&&!this.isReadOnly()){var o=this.getInputs()[0][0];if(!o)return;o instanceof cs&&o.getInputElement().focus()}},t.prototype.getPlaceholderText=function(e,t){var o=this.translate(e);if(V(this.filterPlaceholder)){var r=this.filterPlaceholder,n=0===t?this.eType1.getValue():this.eType2.getValue(),i=this.translate(n);o=r({filterOptionKey:n,filterOption:i,placeholder:o})}else"string"===typeof this.filterPlaceholder&&(o=this.filterPlaceholder);return o},t.prototype.resetPlaceholder=function(){var e=this,t=this.gridOptionsWrapper.getLocaleTextFunc();this.forEachInput((function(o,r,n,i){if(o instanceof cs){var s=0===r&&i>1?"inRangeStart":0===r?"filterOoo":"inRangeEnd",a=0===r&&i>1?t("ariaFilterFromValue","Filter from value"):0===r?t("ariaFilterValue","Filter Value"):t("ariaFilterToValue","Filter to Value");o.setInputPlaceholder(e.getPlaceholderText(s,n)),o.setInputAriaLabel(a)}}))},t.prototype.setElementValue=function(e,t,o){e instanceof cs&&e.setValue(null!=t?String(t):null,o)},t.prototype.setElementDisplayed=function(e,t){e instanceof Di&&pr(e.getGui(),t)},t.prototype.setElementDisabled=function(e,t){e instanceof Di&&dr(e.getGui(),t)},t.prototype.attachElementOnChange=function(e,t){e instanceof cs&&e.onValueChange(t)},t.prototype.forEachInput=function(e){var t=this,o=this.getInputs();this.getConditionTypes().forEach((function(r,n){for(var i=t.getNumberOfInputs(r),s=0;s<o[n].length;s++){var a=o[n][s];null!=a&&e(a,s,n,i)}}))},t.prototype.isConditionVisible=function(e){return 0===e||!!this.allowTwoConditions&&(this.isReadOnly()?this.isConditionUiComplete(e):!!this.alwaysShowBothConditions||this.isConditionUiComplete(e-1))},t.prototype.isConditionDisabled=function(e){return!!this.isReadOnly()||(!this.isConditionVisible(e)||0!==e&&!this.isConditionUiComplete(e-1))},t.prototype.isConditionBodyVisible=function(e){if(!this.isConditionVisible(e))return!1;var t=this.getConditionTypes()[e],o=this.getNumberOfInputs(t);return o>0},t.prototype.isConditionUiComplete=function(e){var o=this.getConditionTypes()[e];return o!==t.EMPTY&&!this.getValues(e).some((function(e){return null==e}))},t.prototype.resetUiToDefaults=function(e){var t=this,o=this.gridOptionsWrapper.getLocaleTextFunc(),r=o("ariaFilteringOperator","Filtering operator"),n="ag-simple-filter-and-or-"+this.getCompId(),i=this.optionsFactory.getDefaultOption();return this.eType1.setValue(i,e).setAriaLabel(r).setDisabled(this.isReadOnly()),this.eType2.setValue(this.optionsFactory.getDefaultOption(),e).setAriaLabel(r).setDisabled(this.isReadOnly()),this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND"),e).setName(n).setLabel(this.translate("andCondition")).setDisabled(this.isReadOnly()),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR"),e).setName(n).setLabel(this.translate("orCondition")).setDisabled(this.isReadOnly()),this.forEachInput((function(o){t.setElementValue(o,null,e),t.setElementDisabled(o,t.isReadOnly())})),this.resetPlaceholder(),wi.resolve()},t.prototype.setConditionIntoUi=function(e,t){var o=this,r=this.mapValuesFromModel(e);this.forEachInput((function(e,n,i,s){i===t&&o.setElementValue(e,null!=r[n]?r[n]:null)}))},t.prototype.setValueFromFloatingFilter=function(e){var t=this;this.forEachInput((function(o,r,n,i){t.setElementValue(o,0===r&&0===n?e:null)}))},t.prototype.isDefaultOperator=function(e){return e===this.defaultJoinOperator},t.prototype.addChangedListeners=function(){var e=this;if(!this.isReadOnly()){var t=function(){return e.onUiChanged()};this.eType1.onValueChange(t),this.eType2.onValueChange(t),this.eJoinOperatorOr.onValueChange(t),this.eJoinOperatorAnd.onValueChange(t),this.forEachInput((function(o){e.attachElementOnChange(o,t)}))}},t.prototype.individualConditionPasses=function(e,t){var o=this.getCellValue(e.node),r=this.mapValuesFromModel(t),n=this.optionsFactory.getCustomOption(t.type),i=this.evaluateCustomFilter(n,r,o);return null!=i?i:null==o?this.evaluateNullValue(t.type):this.evaluateNonNullValue(r,o,t,e)},t.prototype.evaluateCustomFilter=function(e,t,o){if(null!=e){var r=e.predicate;return null==r||t.some((function(e){return null==e}))?void 0:r(t,o)}},t.prototype.isBlank=function(e){return null==e||"string"===typeof e&&0===e.trim().length},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",hs([Ai("eOptions1")],t.prototype,"eType1",void 0),hs([Ai("eOptions2")],t.prototype,"eType2",void 0),hs([Ai("eJoinOperatorPanel")],t.prototype,"eJoinOperatorPanel",void 0),hs([Ai("eJoinOperatorAnd")],t.prototype,"eJoinOperatorAnd",void 0),hs([Ai("eJoinOperatorOr")],t.prototype,"eJoinOperatorOr",void 0),hs([Ai("eCondition1Body")],t.prototype,"eCondition1Body",void 0),hs([Ai("eCondition2Body")],t.prototype,"eCondition2Body",void 0),t}(qi),vs=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ys=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return vs(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,o,r){var n=this.comparator(),i=null!=e[0]?n(e[0],o):0;switch(r.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 s=n(e[1],o);return this.scalarFilterParams.inRangeInclusive?i>=0&&s<=0:i>0&&s<0;case t.BLANK:return this.isBlank(o);case t.NOT_BLANK:return!this.isBlank(o);default:return console.warn('AG Grid: Unexpected type of filter "'+r.type+'", it looks like the filter was configured with incorrect Filter Options'),!0}},t}(gs),ms=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Cs=function(){return Cs=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},Cs.apply(this,arguments)},ws=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Es=1e3,Rs=1/0,Os=function(e){function t(){var t=e.call(this,"dateFilter")||this;return t.minValidYear=Es,t.maxValidYear=Rs,t}return ms(t,e),t.prototype.afterGuiAttached=function(t){e.prototype.afterGuiAttached.call(this,t),this.dateCondition1FromComp.afterGuiAttached(t)},t.prototype.mapValuesFromModel=function(e){var t=e||{},o=t.dateFrom,r=t.dateTo,n=t.type;return[o&&Vn(o)||null,r&&Vn(r)||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){var o=t;return null==t||o<e?-1:o>e?1:0},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.dateFilterParams=t;var o=function(e,o){if(null!=t[e]){if(!isNaN(t[e]))return null==t[e]?o:Number(t[e]);console.warn("AG Grid: DateFilter "+e+" is not a number")}return o};this.minValidYear=o("minValidYear",Es),this.maxValidYear=o("maxValidYear",Rs),this.minValidYear>this.maxValidYear&&console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"),this.createDateComponents()},t.prototype.createDateComponents=function(){var e=this,t=function(t){return new Hi(e.getContext(),e.userComponentFactory,{onDateChanged:function(){return e.onUiChanged()},filterParams:e.dateFilterParams},t)};this.dateCondition1FromComp=t(this.eCondition1PanelFrom),this.dateCondition1ToComp=t(this.eCondition1PanelTo),this.dateCondition2FromComp=t(this.eCondition2PanelFrom),this.dateCondition2ToComp=t(this.eCondition2PanelTo),this.addDestroyFunc((function(){e.forEachInput((function(e){return e.destroy()}))}))},t.prototype.setElementValue=function(e,t,o){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.createValueTemplate=function(e){var t=e===Fi.One?"1":"2";return'\n <div class="ag-filter-body" ref="eCondition'+t+'Body">\n <div class="ag-filter-from ag-filter-date-from" ref="eCondition'+t+'PanelFrom"></div>\n <div class="ag-filter-to ag-filter-date-to" ref="eCondition'+t+'PanelTo"></div>\n </div>'},t.prototype.isConditionUiComplete=function(t){var o=this;if(!e.prototype.isConditionUiComplete.call(this,t))return!1;var r=function(e){return null!=e&&e.getUTCFullYear()>=o.minValidYear&&e.getUTCFullYear()<=o.maxValidYear},n=!0;return this.forEachInput((function(e,o,i,s){i!==t||!n||o>=s||(n=n&&r(e.getDate()))})),n},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.getConditionTypes()[e],o={},r=this.getValues(e);return r.length>0&&(o.dateFrom=Mn(r[0])),r.length>1&&(o.dateTo=Mn(r[1])),Cs({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:t},o)},t.prototype.resetPlaceholder=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.translate("dateFormatOoo"),o=e("ariaFilterValue","Filter Value");this.forEachInput((function(e){e.setInputPlaceholder(t),e.setInputAriaLabel(o)}))},t.prototype.getInputs=function(){return[[this.dateCondition1FromComp,this.dateCondition1ToComp],[this.dateCondition2FromComp,this.dateCondition2ToComp]]},t.prototype.getValues=function(e){var t=[];return this.forEachInput((function(o,r,n,i){e===n&&r<i&&t.push(o.getDate())})),t},t.DEFAULT_FILTER_OPTIONS=[ys.EQUALS,ys.GREATER_THAN,ys.LESS_THAN,ys.NOT_EQUAL,ys.IN_RANGE,ys.BLANK,ys.NOT_BLANK],ws([Ai("eCondition1PanelFrom")],t.prototype,"eCondition1PanelFrom",void 0),ws([Ai("eCondition1PanelTo")],t.prototype,"eCondition1PanelTo",void 0),ws([Ai("eCondition2PanelFrom")],t.prototype,"eCondition2PanelFrom",void 0),ws([Ai("eCondition2PanelTo")],t.prototype,"eCondition2PanelTo",void 0),ws([ne("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(ys),Ss=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),_s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ss(t,e),t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.getTextFromModel=function(e){if(!e)return null;var t=null!=e.operator;if(t){var o=e,r=o||{},n=r.condition1,i=r.condition2,s=this.getTextFromModel(n),a=this.getTextFromModel(i);return[s,o.operator,a].join(" ")}if(e.type===gs.BLANK||e.type===gs.NOT_BLANK){var l=this.gridOptionsWrapper.getLocaleTextFunc();return l(e.type,e.type)}var u=e,p=this.optionsFactory.getCustomOption(u.type),c=p||{},d=c.displayKey,h=c.displayName,f=c.numberOfInputs;return d&&h&&0===f?(this.gridOptionsWrapper.getLocaleTextFunc()(d,h),h):this.conditionToString(u,p)},t.prototype.isEventFromFloatingFilter=function(e){return e&&e.afterFloatingFilter},t.prototype.getLastType=function(){return this.lastType},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setLastTypeFromModel=function(e){if(e){var t,o=e.operator;if(o){var r=e;t=r.condition1}else t=e;this.lastType=t.type}else this.lastType=this.optionsFactory.getDefaultOption()},t.prototype.canWeEditAfterModelFromParentFilter=function(e){if(!e)return this.isTypeEditable(this.lastType);var t=e.operator;if(t)return!1;var o=e;return this.isTypeEditable(o.type)},t.prototype.init=function(e){this.optionsFactory=new Wi,this.optionsFactory.init(e.filterParams,this.getDefaultFilterOptions()),this.lastType=this.optionsFactory.getDefaultOption(),this.readOnly=!!e.filterParams.readOnly;var t=this.isTypeEditable(this.lastType);this.setEditable(t)},t.prototype.doesFilterHaveSingleInput=function(e){var t=this.optionsFactory.getCustomOption(e),o=(t||{}).numberOfInputs;return null==o||1==o},t.prototype.isTypeEditable=function(e){var t=[gs.IN_RANGE,gs.EMPTY,gs.BLANK,gs.NOT_BLANK];return!!e&&!this.isReadOnly()&&this.doesFilterHaveSingleInput(e)&&t.indexOf(e)<0},t}(Di),bs=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ps=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Ts=function(e){function t(){return e.call(this,'\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eReadOnlyText"></ag-input-text-field>\n <div ref="eDateWrapper" style="display: flex;"></div>\n </div>')||this}return bs(t,e),t.prototype.getDefaultFilterOptions=function(){return Os.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e,t){var o=e.type,r=(t||{}).numberOfInputs,n=o==gs.IN_RANGE||2===r,i=Vn(e.dateFrom),s=Vn(e.dateTo),a=this.filterParams.inRangeFloatingFilterDateFormat;if(n){var l=null!==i?Hn(i,a):"null",u=null!==s?Hn(s,a):"null";return l+"-"+u}return null!=i?Hn(i,a):""+o},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.filterParams=t.filterParams,this.createDateComponent();var o=this.gridOptionsWrapper.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(o("ariaDateFilterInput","Date Filter Input"))},t.prototype.setEditable=function(e){pr(this.eDateWrapper,e),pr(this.eReadOnlyText.getGui(),!e)},t.prototype.onParentModelChanged=function(t,o){if(!this.isEventFromFloatingFilter(o)){e.prototype.setLastTypeFromModel.call(this,t);var r=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(t);if(this.setEditable(r),r){if(t){var n=t;this.dateComp.setDate(Vn(n.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.getTextFromModel(t)),this.dateComp.setDate(null)}},t.prototype.onDateChanged=function(){var e=this,t=this.dateComp.getDate(),o=Mn(t);this.params.parentFilterInstance((function(t){if(t){var r=Vn(o);t.onFloatingFilterChanged(e.getLastType()||null,r)}}))},t.prototype.createDateComponent=function(){var e=this,t=qi.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),o={onDateChanged:z(this.onDateChanged.bind(this),t),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new Hi(this.getContext(),this.userComponentFactory,o,this.eDateWrapper),this.addDestroyFunc((function(){return e.dateComp.destroy()}))},Ps([ne("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Ps([Ai("eReadOnlyText")],t.prototype,"eReadOnlyText",void 0),Ps([Ai("eDateWrapper")],t.prototype,"eDateWrapper",void 0),t}(_s),Ds=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),As=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Ns=function(e){function t(){return e.call(this,'\n <div class="ag-filter-filter">\n <ag-input-text-field class="ag-date-filter" ref="eDateInput"></ag-input-text-field>\n </div>')||this}return Ds(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var t=this,o=this.gridOptionsWrapper.getDocument(),r=this.eDateInput.getInputElement();this.shouldUseBrowserDatePicker(e)&&(r.type="date"),this.addManagedListener(r,"mousedown",(function(){t.eDateInput.isDisabled()||r.focus()})),this.addManagedListener(r,"input",(function(r){r.target===o.activeElement&&(t.eDateInput.isDisabled()||e.onDateChanged())}));var n=e.filterParams||{},i=n.minValidYear,s=n.maxValidYear;i&&(r.min=i+"-01-01"),s&&(r.max=s+"-12-31")},t.prototype.getDate=function(){return Vn(this.eDateInput.getValue())},t.prototype.setDate=function(e){this.eDateInput.setValue(Mn(e,!1))},t.prototype.setInputPlaceholder=function(e){this.eDateInput.setInputPlaceholder(e)},t.prototype.setDisabled=function(e){this.eDateInput.setDisabled(e)},t.prototype.afterGuiAttached=function(e){e&&e.suppressFocus||this.eDateInput.getInputElement().focus()},t.prototype.shouldUseBrowserDatePicker=function(e){return e.filterParams&&null!=e.filterParams.browserDatePicker?e.filterParams.browserDatePicker:Xt()||Qt()},As([Ai("eDateInput")],t.prototype,"eDateInput",void 0),t}(Di),Is=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Gs=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Fs=function(e){function t(){return e.call(this,"numberFilter")||this}return Is(t,e),t.prototype.mapValuesFromModel=function(e){var t=e||{},o=t.filter,r=t.filterTo,n=t.type;return[null==o?null:o,null==r?null:r].slice(0,this.getNumberOfInputs(n))},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.comparator=function(){return function(e,t){return e===t?0:e<t?1:-1}},t.prototype.setParams=function(t){this.numberFilterParams=t;var o=this.getAllowedCharPattern();if(o){var r={allowedCharPattern:o};this.resetTemplate({"eValue-index0-1":r,"eValue-index1-1":r,"eValue-index0-2":r,"eValue-index1-2":r})}e.prototype.setParams.call(this,t)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===Fi.One?"1":"2",o=this.getAllowedCharPattern(),r=o?"ag-input-text-field":"ag-input-number-field";return'\n <div class="ag-filter-body" ref="eCondition'+t+'Body" role="presentation">\n <'+r+' class="ag-filter-from ag-filter-filter" ref="eValue-index0-'+t+'"></'+r+">\n <"+r+' class="ag-filter-to ag-filter-filter" ref="eValue-index1-'+t+'"></'+r+">\n </div>"},t.prototype.getValues=function(e){var t=this,o=[];return this.forEachInput((function(r,n,i,s){e===i&&n<s&&o.push(t.stringToFloat(r.getValue()))})),o},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type},t.prototype.getFilterType=function(){return"number"},t.prototype.stringToFloat=function(e){if("number"===typeof e)return e;var t=r(e);return null!=t&&""===t.trim()&&(t=null),this.numberFilterParams.numberParser?this.numberFilterParams.numberParser(t):null==t||"-"===t.trim()?null:parseFloat(t)},t.prototype.createCondition=function(e){var t=this.getConditionTypes()[e],o={filterType:this.getFilterType(),type:t},r=this.getValues(e);return r.length>0&&(o.filter=r[0]),r.length>1&&(o.filterTo=r[1]),o},t.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},t.prototype.getAllowedCharPattern=function(){var e=(this.numberFilterParams||{}).allowedCharPattern;return e||(Xt()||Yt()?null:"\\d\\-\\.")},t.DEFAULT_FILTER_OPTIONS=[ys.EQUALS,ys.NOT_EQUAL,ys.LESS_THAN,ys.LESS_THAN_OR_EQUAL,ys.GREATER_THAN,ys.GREATER_THAN_OR_EQUAL,ys.IN_RANGE,ys.BLANK,ys.NOT_BLANK],Gs([Ai("eValue-index0-1")],t.prototype,"eValueFrom1",void 0),Gs([Ai("eValue-index1-1")],t.prototype,"eValueTo1",void 0),Gs([Ai("eValue-index0-2")],t.prototype,"eValueFrom2",void 0),Gs([Ai("eValue-index1-2")],t.prototype,"eValueTo2",void 0),t}(ys),Ls=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ms=function(){return Ms=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},Ms.apply(this,arguments)},xs=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Hs=function(e){function t(){return e.call(this,"textFilter")||this}return Ls(t,e),t.trimInput=function(e){var t=e&&e.trim();return""===t?e:t},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.setParams=function(o){e.prototype.setParams.call(this,o),this.textFilterParams=o,this.matcher=this.getTextMatcher(),this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?t.DEFAULT_FORMATTER:t.DEFAULT_LOWERCASE_FORMATTER)},t.prototype.getTextMatcher=function(){var e=this.textFilterParams.textCustomComparator;return e?(yi.doOnce((function(){return console.warn("AG Grid - textCustomComparator is deprecated, use textMatcher instead.")}),"textCustomComparator.deprecated"),function(t){var o=t.filterOption,r=t.value,n=t.filterText;return e(o,r,n)}):this.textFilterParams.textMatcher||t.DEFAULT_MATCHER},t.prototype.createCondition=function(e){var t=this.getConditionTypes()[e],o={filterType:this.getFilterType(),type:t},r=this.getValues(e);return r.length>0&&(o.filter=r[0]),r.length>1&&(o.filterTo=r[1]),o},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(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},t.prototype.getValues=function(e){var o=this,n=[];return this.forEachInput((function(i,s,a,l){if(e===a&&s<l){var u=r(i.getValue()),p=(o.textFilterParams.trimInput?t.trimInput(u):u)||null;n.push(p),i.setValue(p,!0)}})),n},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===Fi.One?"1":"2";return'\n <div class="ag-filter-body" ref="eCondition'+t+'Body" role="presentation">\n <ag-input-text-field class=".ag-filter-from ag-filter-filter" ref="eValue-index0-'+t+'"></ag-input-text-field>\n <ag-input-text-field class="ag-filter-to ag-filter-filter" ref="eValue-index1-'+t+'"></ag-input-text-field>\n </div>'},t.prototype.mapValuesFromModel=function(e){var t=e||{},o=t.filter,r=t.filterTo,n=t.type;return[o||null,r||null].slice(0,this.getNumberOfInputs(n))},t.prototype.evaluateNullValue=function(e){var t=[gs.NOT_EQUAL,gs.NOT_CONTAINS,gs.BLANK];return!!e&&t.indexOf(e)>=0},t.prototype.evaluateNonNullValue=function(e,t,o,r){var n=this,i=e.map((function(e){return n.formatter(e)}))||[],s=this.formatter(t),a=this.textFilterParams,l=a.api,u=a.colDef,p=a.column,c=a.columnApi,d=a.context,h=a.textFormatter;if(o.type===gs.BLANK)return this.isBlank(t);if(o.type===gs.NOT_BLANK)return!this.isBlank(t);var f={api:l,colDef:u,column:p,columnApi:c,context:d,node:r.node,data:r.data,filterOption:o.type,value:s,textFormatter:h};return i.some((function(e){return n.matcher(Ms(Ms({},f),{filterText:e}))}))},t.DEFAULT_FILTER_OPTIONS=[gs.CONTAINS,gs.NOT_CONTAINS,gs.EQUALS,gs.NOT_EQUAL,gs.STARTS_WITH,gs.ENDS_WITH,gs.BLANK,gs.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 o=e.filterOption,r=e.value,n=e.filterText;if(null==n)return!1;switch(o){case t.CONTAINS:return r.indexOf(n)>=0;case t.NOT_CONTAINS:return r.indexOf(n)<0;case t.EQUALS:return r===n;case t.NOT_EQUAL:return r!=n;case t.STARTS_WITH:return 0===r.indexOf(n);case t.ENDS_WITH:var i=r.lastIndexOf(n);return i>=0&&i===r.length-n.length;default:return!1}},xs([Ai("eValue-index0-1")],t.prototype,"eValueFrom1",void 0),xs([Ai("eValue-index1-1")],t.prototype,"eValueTo1",void 0),xs([Ai("eValue-index0-2")],t.prototype,"eValueFrom2",void 0),xs([Ai("eValue-index1-2")],t.prototype,"eValueTo2",void 0),t}(gs),Vs=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ws=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},ks=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vs(t,e),t.prototype.postConstruct=function(){this.resetTemplate()},t.prototype.resetTemplate=function(e){this.setTemplate('\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eFloatingFilterInput"></ag-input-text-field>\n </div>\n ',e)},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.onParentModelChanged=function(e,t){this.isEventFromFloatingFilter(t)||(this.setLastTypeFromModel(e),this.eFloatingFilterInput.setValue(this.getTextFromModel(e)),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)))},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.applyActive=qi.isUseApplyButton(this.params.filterParams);var o=this.params.filterParams.allowedCharPattern;if(null!=o&&this.resetTemplate({eFloatingFilterInput:{allowedCharPattern:o}}),!this.isReadOnly()){var r=qi.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),n=z(this.syncUpWithParentFilter.bind(this),r),i=this.eFloatingFilterInput.getGui();this.addManagedListener(i,"input",n),this.addManagedListener(i,"keypress",n),this.addManagedListener(i,"keydown",n)}var s=t.column.getDefinition();(this.isReadOnly()||s.filterParams&&s.filterParams.filterOptions&&1===s.filterParams.filterOptions.length&&"inRange"===s.filterParams.filterOptions[0])&&this.eFloatingFilterInput.setDisabled(!0);var a=this.columnModel.getDisplayNameForColumn(t.column,"header",!0),l=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterInput.setInputAriaLabel(a+" "+l("ariaFilterInput","Filter Input"))},t.prototype.syncUpWithParentFilter=function(e){var t=this,o=e.key===zn.ENTER;if(!this.applyActive||o){var r=this.eFloatingFilterInput.getValue();this.params.filterParams.trimInput&&(r=Hs.trimInput(r),this.eFloatingFilterInput.setValue(r,!0)),this.params.parentFilterInstance((function(e){e&&e.onFloatingFilterChanged(t.getLastType()||null,r||null)}))}},t.prototype.conditionToString=function(e,t){var o=(t||{}).numberOfInputs,r=e.type==gs.IN_RANGE||2===o;return r?e.filter+"-"+e.filterTo:null!=e.filter?""+e.filter:""+e.type},t.prototype.setEditable=function(e){this.eFloatingFilterInput.setDisabled(!e)},Ws([ne("columnModel")],t.prototype,"columnModel",void 0),Ws([Ai("eFloatingFilterInput")],t.prototype,"eFloatingFilterInput",void 0),Ws([te],t.prototype,"postConstruct",null),t}(_s),Bs=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),js=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Bs(t,e),t.prototype.getDefaultFilterOptions=function(){return Fs.DEFAULT_FILTER_OPTIONS},t}(ks),Us=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),zs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Us(t,e),t.prototype.getDefaultFilterOptions=function(){return Hs.DEFAULT_FILTER_OPTIONS},t}(ks),Ks=function(){function e(e,t){var o=this;void 0===t&&(t=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new he,this.eElement=e,this.preventMouseClick=t;var r=this.onTouchStart.bind(this),n=this.onTouchMove.bind(this),i=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",r,{passive:!0}),this.eElement.addEventListener("touchmove",n,{passive:!0}),this.eElement.addEventListener("touchend",i,{passive:!1}),this.destroyFuncs.push((function(){o.eElement.removeEventListener("touchstart",r,{passive:!0}),o.eElement.removeEventListener("touchmove",n,{passive:!0}),o.eElement.removeEventListener("touchend",i,{passive:!1})}))}return e.prototype.getActiveTouch=function(e){for(var t=0;t<e.length;t++){var o=e[t].identifier===this.touchStart.identifier;if(o)return e[t]}return null},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.onTouchStart=function(t){var o=this;if(!this.touching){this.touchStart=t.touches[0],this.touching=!0,this.moved=!1;var r=this.touchStart;window.setTimeout((function(){var n=o.touchStart===r;if(o.touching&&n&&!o.moved){o.moved=!0;var i={type:e.EVENT_LONG_TAP,touchStart:o.touchStart,touchEvent:t};o.eventService.dispatchEvent(i)}}),500)}},e.prototype.onTouchMove=function(e){if(this.touching){var t=this.getActiveTouch(e.touches);if(t){var o=!ai(t,this.touchStart,4);o&&(this.moved=!0)}}},e.prototype.onTouchEnd=function(t){if(this.touching){if(!this.moved){var o={type:e.EVENT_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(o),this.checkForDoubleTap()}this.preventMouseClick&&t.cancelable&&t.preventDefault(),this.touching=!1}},e.prototype.checkForDoubleTap=function(){var t=(new Date).getTime();if(this.lastTapTime&&this.lastTapTime>0){var o=t-this.lastTapTime;if(o>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}(),Ys=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),qs=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Xs=function(e){function t(o){var r=e.call(this)||this;return o||r.setTemplate(t.TEMPLATE),r}return Ys(t,e),t.prototype.attachCustomElements=function(e,t,o,r,n){this.eSortOrder=e,this.eSortAsc=t,this.eSortDesc=o,this.eSortMixed=r,this.eSortNone=n},t.prototype.setupSort=function(e,t){var o=this;void 0===t&&(t=!1),this.column=e,this.suppressOrder=t,this.setupMultiSortIndicator();var r=!!this.column.getColDef().sortable;r&&(this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addManagedListener(this.eventService,lt.EVENT_SORT_CHANGED,(function(){return o.onSortChanged()})),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return o.onSortChanged()})),this.onSortChanged())},t.prototype.addInIcon=function(e,t,o){if(null!=t){var r=jn(e,this.gridOptionsWrapper,o);r&&t.appendChild(r)}},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;this.eSortAsc.classList.toggle("ag-hidden",!t)}if(this.eSortDesc){var o="desc"===e;this.eSortDesc.classList.toggle("ag-hidden",!o)}if(this.eSortNone){var r=!this.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon(),n=null===e||void 0===e;this.eSortNone.classList.toggle("ag-hidden",r||!n)}},t.prototype.setupMultiSortIndicator=function(){var e=this;this.addInIcon("sortUnSort",this.eSortMixed,this.column);var t=this.column.getColDef().showRowGroup,o=this.gridOptionsWrapper.isColumnsSortingCoupledToGroup();o&&t&&(this.addManagedListener(this.eventService,lt.EVENT_SORT_CHANGED,(function(){return e.updateMultiSortIndicator()})),this.addManagedListener(this.eventService,lt.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);this.eSortMixed.classList.toggle("ag-hidden",!e)}},t.prototype.updateSortOrder=function(){var e,t=this;if(this.eSortOrder){var o=this.sortController.getColumnsWithSortingOrdered(),r=(e=this.sortController.getDisplaySortIndexForColumn(this.column),null!==e&&void 0!==e?e:-1),n=o.some((function(e){var o;return o=t.sortController.getDisplaySortIndexForColumn(e),null!==o&&void 0!==o&&o})),i=r>=0&&n;pr(this.eSortOrder,i),r>=0?this.eSortOrder.innerHTML=(r+1).toString():Rr(this.eSortOrder)}},t.TEMPLATE='<span class="ag-sort-indicator-container">\n <span ref="eSortOrder" class="ag-sort-indicator-icon ag-sort-order ag-hidden" aria-hidden="true"></span>\n <span ref="eSortAsc" class="ag-sort-indicator-icon ag-sort-ascending-icon ag-hidden" aria-hidden="true"></span>\n <span ref="eSortDesc" class="ag-sort-indicator-icon ag-sort-descending-icon ag-hidden" aria-hidden="true"></span>\n <span ref="eSortMixed" class="ag-sort-indicator-icon ag-sort-mixed-icon ag-hidden" aria-hidden="true"></span>\n <span ref="eSortNone" class="ag-sort-indicator-icon ag-sort-none-icon ag-hidden" aria-hidden="true"></span>\n </span>',qs([Ai("eSortOrder")],t.prototype,"eSortOrder",void 0),qs([Ai("eSortAsc")],t.prototype,"eSortAsc",void 0),qs([Ai("eSortDesc")],t.prototype,"eSortDesc",void 0),qs([Ai("eSortMixed")],t.prototype,"eSortMixed",void 0),qs([Ai("eSortNone")],t.prototype,"eSortNone",void 0),qs([ne("columnModel")],t.prototype,"columnModel",void 0),qs([ne("sortController")],t.prototype,"sortController",void 0),t}(Di),Qs=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Js=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Zs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastMovingChanged=0,t}return Qs(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.refresh=function(e){return this.params=e,this.workOutTemplate()==this.currentTemplate&&(this.workOutShowMenu()==this.currentShowMenu&&(this.workOutSort()==this.currentSort&&(this.setDisplayName(e),!0)))},t.prototype.workOutTemplate=function(){var e=Ce(this.params.template,t.TEMPLATE);return e=e&&e.trim?e.trim():e,e},t.prototype.init=function(e){this.params=e,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate),this.setupTap(),this.setupIcons(e.column),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setDisplayName(e)},t.prototype.setDisplayName=function(e){if(this.currentDisplayName!=e.displayName){this.currentDisplayName=e.displayName;var t=vt(this.currentDisplayName);this.eText&&(this.eText.innerHTML=t)}},t.prototype.setupIcons=function(e){this.addInIcon("menu",this.eMenu,e),this.addInIcon("filter",this.eFilter,e)},t.prototype.addInIcon=function(e,t,o){if(null!=t){var r=jn(e,this.gridOptionsWrapper,o);r&&t.appendChild(r)}},t.prototype.setupTap=function(){var e=this,t=this.gridOptionsWrapper;if(!t.isSuppressTouch()){var o=new Ks(this.getGui(),!0),r=t.isSuppressMenuHide(),i=r&&n(this.eMenu),s=i?new Ks(this.eMenu,!0):o;if(this.params.enableMenu){var a=i?"EVENT_TAP":"EVENT_LONG_TAP",l=function(o){t.getApi().showColumnMenuAfterMouseClick(e.params.column,o.touchStart)};this.addManagedListener(s,Ks[a],l)}if(this.params.enableSorting){var u=function(t){var o=t.touchStart.target;r&&e.eMenu.contains(o)||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")};this.addManagedListener(o,Ks.EVENT_TAP,u)}this.addDestroyFunc((function(){return o.destroy()})),i&&this.addDestroyFunc((function(){return s.destroy()}))}},t.prototype.workOutShowMenu=function(){var e=!this.gridOptionsWrapper.isSuppressMenuHide(),t=Zt()&&e,o=this.params.enableMenu&&!t;return o},t.prototype.setMenu=function(){var e=this;if(this.eMenu)if(this.currentShowMenu=this.workOutShowMenu(),this.currentShowMenu){var t=this.gridOptionsWrapper.isSuppressMenuHide();this.addManagedListener(this.eMenu,"click",(function(){return e.showMenu(e.eMenu)})),this.eMenu.classList.toggle("ag-header-menu-always-show",t)}else Sr(this.eMenu)},t.prototype.showMenu=function(e){e||(e=this.eMenu),this.menuFactory.showMenuAfterButtonClick(this.params.column,e,"columnMenu")},t.prototype.workOutSort=function(){return this.params.enableSorting},t.prototype.setupSort=function(){var e=this;if(this.currentSort=this.params.enableSorting,this.eSortIndicator||(this.eSortIndicator=this.context.createBean(new Xs(!0)),this.eSortIndicator.attachCustomElements(this.eSortOrder,this.eSortAsc,this.eSortDesc,this.eSortMixed,this.eSortNone)),this.eSortIndicator.setupSort(this.params.column),this.currentSort){var t=this.gridOptionsWrapper.isMultiSortKeyCtrl();this.addManagedListener(this.params.column,me.EVENT_MOVING_CHANGED,(function(){e.lastMovingChanged=(new Date).getTime()})),this.eLabel&&this.addManagedListener(this.eLabel,"click",(function(o){var r=e.params.column.isMoving(),n=(new Date).getTime(),i=n-e.lastMovingChanged<50,s=r||i;if(!s){var a=t?o.ctrlKey||o.metaKey:o.shiftKey;e.params.progressSort(a)}}));var o=function(){var t;if(e.addOrRemoveCssClass("ag-header-cell-sorted-asc",e.params.column.isSortAscending()),e.addOrRemoveCssClass("ag-header-cell-sorted-desc",e.params.column.isSortDescending()),e.addOrRemoveCssClass("ag-header-cell-sorted-none",e.params.column.isSortNone()),e.params.column.getColDef().showRowGroup){var o=e.columnModel.getSourceColumnsForGroupColumn(e.params.column),r=null===(t=o)||void 0===t?void 0:t.every((function(t){return e.params.column.getSort()==t.getSort()})),n=!r;e.addOrRemoveCssClass("ag-header-cell-sorted-mixed",n)}};this.addManagedListener(this.eventService,lt.EVENT_SORT_CHANGED,o),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_ROW_GROUP_CHANGED,o)}},t.prototype.setupFilterIcon=function(){this.eFilter&&(this.addManagedListener(this.params.column,me.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},t.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();this.eFilter.classList.toggle("ag-hidden",!e)},t.TEMPLATE='<div class="ag-cell-label-container" role="presentation">\n <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>\n <div ref="eLabel" class="ag-header-cell-label" role="presentation">\n <span ref="eText" class="ag-header-cell-text"></span>\n <span ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span>\n <ag-sort-indicator ref="eSortIndicator"></ag-sort-indicator>\n </div>\n </div>',Js([ne("sortController")],t.prototype,"sortController",void 0),Js([ne("menuFactory")],t.prototype,"menuFactory",void 0),Js([ne("columnModel")],t.prototype,"columnModel",void 0),Js([Ai("eFilter")],t.prototype,"eFilter",void 0),Js([Ai("eSortIndicator")],t.prototype,"eSortIndicator",void 0),Js([Ai("eMenu")],t.prototype,"eMenu",void 0),Js([Ai("eLabel")],t.prototype,"eLabel",void 0),Js([Ai("eText")],t.prototype,"eText",void 0),Js([Ai("eSortOrder")],t.prototype,"eSortOrder",void 0),Js([Ai("eSortAsc")],t.prototype,"eSortAsc",void 0),Js([Ai("eSortDesc")],t.prototype,"eSortDesc",void 0),Js([Ai("eSortMixed")],t.prototype,"eSortMixed",void 0),Js([Ai("eSortNone")],t.prototype,"eSortNone",void 0),t}(Di),$s=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ea=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},ta=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return $s(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},t.prototype.checkWarnings=function(){var e=this.params;if(e.template){var t="AG Grid: A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)";x((function(){return console.warn(t)}),"HeaderGroupComp.templateNotSupported")}},t.prototype.setupExpandIcons=function(){var e=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var t=function(t){if(!Ke(t)){var o=!e.params.columnGroup.isExpanded();e.columnModel.setColumnGroupOpened(e.params.columnGroup.getProvidedColumnGroup(),o,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,t),this.addTouchAndClickListeners(this.eOpenIcon,t);var o=function(e){ze(e)};this.addManagedListener(this.eCloseIcon,"dblclick",o),this.addManagedListener(this.eOpenIcon,"dblclick",o),this.addManagedListener(this.getGui(),"dblclick",t),this.updateIconVisibility();var r=this.params.columnGroup.getProvidedColumnGroup();this.addManagedListener(r,We.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(r,We.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e,t){var o=new Ks(e,!0);this.addManagedListener(o,Ks.EVENT_TAP,t),this.addDestroyFunc((function(){return o.destroy()})),this.addManagedListener(e,"click",t)},t.prototype.updateIconVisibility=function(){var e=this.params.columnGroup;if(e.isExpandable()){var t=this.params.columnGroup.isExpanded();pr(this.eOpenIcon,t),pr(this.eCloseIcon,!t)}else pr(this.eOpenIcon,!1),pr(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,t){var o=jn(e,this.gridOptionsWrapper,null);o&&this.getRefElement(t).appendChild(o)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return pr(this.eOpenIcon,!1),void pr(this.eCloseIcon,!1)},t.prototype.setupLabel=function(){var e=this.params.displayName;if(n(e)){var t=vt(e);this.getRefElement("agLabel").innerHTML=t}},t.TEMPLATE='<div class="ag-header-group-cell-label" ref="agContainer" role="presentation">\n <span ref="agLabel" class="ag-header-group-text" role="presentation"></span>\n <span ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span>\n <span ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span>\n </div>',ea([ne("columnModel")],t.prototype,"columnModel",void 0),ea([Ai("agOpened")],t.prototype,"eOpenIcon",void 0),ea([Ai("agClosed")],t.prototype,"eCloseIcon",void 0),t}(Di),oa=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ra=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return oa(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,o=t&&t.isAlive();o&&t.getGui().classList.remove("ag-has-popup"),e.prototype.destroy.call(this)},t}(Di),na=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ia=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},sa=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return na(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),n(e.value)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},t.prototype.onKeyDown=function(e){var t=e.key;(t===zn.LEFT||t===zn.UP||t===zn.RIGHT||t===zn.DOWN||e.shiftKey&&t===zn.ENTER)&&e.stopPropagation()},t.prototype.afterGuiAttached=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},t.prototype.getValue=function(){return this.params.parseValue(this.eTextArea.getValue())},t.TEMPLATE='<div class="ag-large-text" tabindex="0">\n <ag-input-text-area ref="eTextArea" class="ag-large-text-input"></ag-input-text-area>\n </div>',ia([Ai("eTextArea")],t.prototype,"eTextArea",void 0),t}(ra),aa=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),la=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},ua=function(e){function t(){var t=e.call(this,'<div class="ag-cell-edit-wrapper"><ag-select class="ag-cell-editor" ref="eSelect"></ag-select></div>')||this;return t.startedByEnter=!1,t}return aa(t,e),t.prototype.init=function(e){var t=this;if(this.focusAfterAttached=e.cellStartedEdit,i(e.values))console.warn("AG Grid: no values found for select cellEditor");else{this.startedByEnter=null!=e.eventKey&&e.eventKey===zn.ENTER;var o=!1;e.values.forEach((function(r){var n={value:r},i=t.valueFormatterService.formatValue(e.column,null,r),s=null!==i&&void 0!==i;n.text=s?i:r,t.eSelect.addOption(n),o=o||e.value===r})),o?this.eSelect.setValue(e.value,!0):e.values.length&&this.eSelect.setValue(e.values[0],!0),this.gridOptionsWrapper.isFullRowEdit()||this.eSelect.onValueChange((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},la([ne("valueFormatterService")],t.prototype,"valueFormatterService",void 0),la([Ai("eSelect")],t.prototype,"eSelect",void 0),t}(ra),pa=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ca=function(e){function t(){var t=e.call(this)||this;return x((function(){return console.warn('AG Grid: The PopupSelectCellEditor (agPopupSelectCellEditor) is deprecated. Instead use {cellEditor: "agSelectCellEditor", cellEditorPopup: true} ')}),"PopupSelectCellEditor.deprecated"),t}return pa(t,e),t.prototype.isPopup=function(){return!0},t}(ua),da=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ha=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},fa=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return da(t,e),t.prototype.init=function(e){this.params=e;var t,o=this.eInput;e.cellStartedEdit?(this.focusAfterAttached=!0,e.eventKey===zn.BACKSPACE||e.eventKey===zn.DELETE?t="":e.charPress?t=e.charPress:(t=this.getStartValue(e),e.eventKey!==zn.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,t=this.getStartValue(e)),null!=t&&o.setValue(t,!0),null!=e.maxLength&&o.setMaxLength(e.maxLength),this.addManagedListener(o.getGui(),"keydown",(function(e){var t=e.key;t!==zn.PAGE_UP&&t!==zn.PAGE_DOWN||e.preventDefault()}))},t.prototype.afterGuiAttached=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.eInput;if(t.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached){qt()||t.getFocusableElement().focus();var o=t.getInputElement();if(this.highlightAllOnFocus)o.select();else{var r=t.getValue(),i=n(r)&&r.length||0;i&&o.setSelectionRange(i,i)}}},t.prototype.focusIn=function(){var e=this.eInput,t=e.getFocusableElement(),o=e.getInputElement();t.focus(),o.select()},t.prototype.getValue=function(){var e=this.eInput;return this.params.parseValue(e.getValue())},t.prototype.getStartValue=function(e){var t=e.useFormatter||e.column.getColDef().refData;return t?e.formatValue(e.value):e.value},t.prototype.isPopup=function(){return!1},t.TEMPLATE='<div class="ag-cell-edit-wrapper">\n <ag-input-text-field class="ag-cell-editor" ref="eInput"></ag-input-text-field>\n </div>',ha([Ai("eInput")],t.prototype,"eInput",void 0),t}(ra),ga=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),va=function(e){function t(){var t=e.call(this)||this;return x((function(){return console.warn('AG Grid: The PopupTextCellEditor (agPopupTextCellEditor) is deprecated. Instead use {cellEditor: "agTextCellEditor", cellEditorPopup: true} ')}),"PopupTextCellEditor.deprecated"),t}return ga(t,e),t.prototype.isPopup=function(){return!0},t}(fa),ya=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ma=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Ca="↑",wa="↓",Ea=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.refreshCount=0,o}return ya(t,e),t.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e)},t.prototype.showDelta=function(e,t){var o=Math.abs(t),r=e.formatValue(o),i=n(r)?r:o,s=t>=0;this.eDelta.innerHTML=s?Ca+i:wa+i,this.eDelta.classList.toggle("ag-value-change-delta-up",s),this.eDelta.classList.toggle("ag-value-change-delta-down",!s)},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"),Rr(this.eDelta)},t.prototype.refresh=function(e){var t=e.value;if(t===this.lastValue)return!1;if(n(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:n(e.value)?this.eValue.innerHTML=t:Rr(this.eValue),this.filterManager.isSuppressFlashingCellsBecauseFiltering())return!1;if("number"===typeof t&&"number"===typeof this.lastValue){var o=t-this.lastValue;this.showDelta(e,o)}return this.lastValue&&this.eValue.classList.add("ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=t,!0},t.TEMPLATE='<span><span class="ag-value-change-delta"></span><span class="ag-value-change-value"></span></span>',ma([ne("filterManager")],t.prototype,"filterManager",void 0),t}(Di),Ra=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Oa=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Sa=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.refreshCount=0,o.eCurrent=o.queryForHtmlElement(".ag-value-slide-current"),o}return Ra(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=br('<span class="ag-value-slide-previous ag-value-slide-out"></span>'),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout((function(){t===e.refreshCount&&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 i(t)&&(t=""),t!==this.lastValue&&(!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&(this.addSlideAnimation(),this.lastValue=t,n(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:n(e.value)?this.eCurrent.innerHTML=t:Rr(this.eCurrent),!0))},t.TEMPLATE='<span>\n <span class="ag-value-slide-current"></span>\n </span>',Oa([ne("filterManager")],t.prototype,"filterManager",void 0),t}(Di); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */(function(e){e[e["Above"]=0]="Above",e[e["Below"]=1]="Below"})(fs||(fs={}));var _a,ba,Pa,Ta=function(){function e(t){this.rowIndex=null,this.key=null,this.childrenMapped={},this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=e.OBJECT_ID_SEQUENCE++,this.__autoHeights={},this.alreadyRendered=!1,this.highlighted=null,this.selected=!1,this.beans=t}return e.prototype.setData=function(e){this.setDataCommon(e,!1)},e.prototype.updateData=function(e){this.setDataCommon(e,!0)},e.prototype.setDataCommon=function(e,t){var o=this.data;this.data=e,this.beans.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable();var r=this.createDataChangedEvent(e,o,t);this.dispatchLocalEvent(r)},e.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},e.prototype.createDataChangedEvent=function(t,o,r){return{type:e.EVENT_DATA_CHANGED,node:this,oldData:o,newData:t,update:r}},e.prototype.createLocalRowEvent=function(e){return{type:e,node:this}},e.prototype.getRowIndexString=function(){return this.rowPinned===fe.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===fe.PINNED_BOTTOM?"b-"+this.rowIndex:this.rowIndex.toString()},e.prototype.createDaemonNode=function(){var t=new e(this.beans);return t.id=this.id,t.data=this.data,t.daemon=!0,t.selected=this.selected,t.level=this.level,t},e.prototype.setDataAndId=function(e,t){var o=n(this.id)?this.createDaemonNode():null,r=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),this.beans.selectionService.syncInRowNode(this,o),this.checkRowSelectable();var i=this.createDataChangedEvent(e,r,!1);this.dispatchLocalEvent(i)},e.prototype.checkRowSelectable=function(){var e=this.beans.gridOptionsWrapper.getIsRowSelectableFunc();this.setRowSelectable(!e||e(this))},e.prototype.setRowSelectable=function(t){if(this.selectable!==t){this.selectable=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_SELECTABLE_CHANGED));var o=this.beans.gridOptionsWrapper.isGroupSelectsChildren();if(o){var r=this.calculateSelectedFromChildren();this.setSelected(null!==r&&void 0!==r&&r)}}},e.prototype.setId=function(t){var o=this.beans.gridOptionsWrapper.getRowIdFunc();if(o)if(this.data){var r=this.getGroupKeys(!0);this.id=o({data:this.data,parentKeys:r.length>0?r: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=[],o=this;e&&(o=o.parent);while(o&&o.level>=0)t.push(o.key),o=o.parent;return t.reverse(),t},e.prototype.isPixelInRange=function(e){return!(!n(this.rowTop)||!n(this.rowHeight))&&(e>=this.rowTop&&e<this.rowTop+this.rowHeight)},e.prototype.setFirstChild=function(t){this.firstChild!==t&&(this.firstChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_FIRST_CHILD_CHANGED)))},e.prototype.setLastChild=function(t){this.lastChild!==t&&(this.lastChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_LAST_CHILD_CHANGED)))},e.prototype.setChildIndex=function(t){this.childIndex!==t&&(this.childIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_CHILD_INDEX_CHANGED)))},e.prototype.setRowTop=function(t){this.oldRowTop=this.rowTop,this.rowTop!==t&&(this.rowTop=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_TOP_CHANGED)),this.setDisplayed(null!==t))},e.prototype.clearRowTopAndRowIndex=function(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)},e.prototype.setDisplayed=function(t){this.displayed!==t&&(this.displayed=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_DISPLAYED_CHANGED)))},e.prototype.setDragging=function(t){this.dragging!==t&&(this.dragging=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_DRAGGING_CHANGED)))},e.prototype.setHighlighted=function(t){t!==this.highlighted&&(this.highlighted=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HIGHLIGHT_CHANGED)))},e.prototype.setAllChildrenCount=function(t){this.allChildrenCount!==t&&(this.allChildrenCount=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ALL_CHILDREN_COUNT_CHANGED)))},e.prototype.setMaster=function(t){this.master!==t&&(this.master&&!t&&(this.expanded=!1),this.master=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_MASTER_CHANGED)))},e.prototype.setGroup=function(t){this.group!==t&&(this.group&&!t&&(this.expanded=!1),this.group=t,this.updateHasChildren(),this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_GROUP_CHANGED)))},e.prototype.setRowHeight=function(t,o){void 0===o&&(o=!1),this.rowHeight=t,this.rowHeightEstimated=o,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HEIGHT_CHANGED))},e.prototype.setRowAutoHeight=function(e,t){this.__autoHeights||(this.__autoHeights={});var o=this.__autoHeights;o[t.getId()]=e,null!=e&&(null==this.checkAutoHeightsDebounced&&(this.checkAutoHeightsDebounced=z(this.checkAutoHeights.bind(this),1)),this.checkAutoHeightsDebounced())},e.prototype.checkAutoHeights=function(){var e=!1,t=!0,o=0,r=this.__autoHeights;if(null!=r){var n=this.beans.columnModel.getAllDisplayedAutoHeightCols();if(n.forEach((function(n){var i=r[n.getId()];null!=i?(t=!1,i>o&&(o=i)):e=!0})),!e&&((t||o<10)&&(o=this.beans.gridOptionsWrapper.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,o){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_EXPANDED_CHANGED));var r=Object.assign({},this.createGlobalRowEvent(lt.EVENT_ROW_GROUP_OPENED),{expanded:t,event:o||null});this.beans.rowNodeEventThrottle.dispatchExpanded(r),this.beans.gridOptionsWrapper.isGroupIncludeFooter()&&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.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi()}},e.prototype.dispatchLocalEvent=function(e){this.eventService&&this.eventService.dispatchEvent(e)},e.prototype.setDataValue=function(e,t,o){var r=this.beans.columnModel.getPrimaryColumn(e),n=this.beans.valueService.getValue(r,this),i=this.beans.valueService.setValue(this,r,t,o);return this.dispatchCellChangedEvent(r,t,n),this.checkRowSelectable(),i},e.prototype.setGroupValue=function(e,t){var o=this.beans.columnModel.getGridColumn(e);i(this.groupData)&&(this.groupData={});var r=o.getColId(),n=this.groupData[r];n!==t&&(this.groupData[r]=t,this.dispatchCellChangedEvent(o,t,n))},e.prototype.setAggData=function(e){var t=this,o=_([this.aggData,e]),r=this.aggData;this.aggData=e,this.eventService&&o.forEach((function(e){var o=t.beans.columnModel.getGridColumn(e),n=t.aggData?t.aggData[e]:void 0,i=r?r[e]:void 0;t.dispatchCellChangedEvent(o,n,i)}))},e.prototype.updateHasChildren=function(){var t=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;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&&s(this.childrenAfterGroup)},e.prototype.dispatchCellChangedEvent=function(t,o,r){var n={type:e.EVENT_CELL_CHANGED,node:this,column:t,newValue:o,oldValue:r};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,o=!1,r=!1;if(!(null===(e=this.childrenAfterGroup)||void 0===e?void 0:e.length))return this.selectable?this.selected:null;for(var n=0;n<this.childrenAfterGroup.length;n++){var i=this.childrenAfterGroup[n],s=i.isSelected();if(!i.selectable){var a=i.calculateSelectedFromChildren();if(null===a)continue;s=a}switch(s){case!0:t=!0;break;case!1:o=!0;break;default:r=!0;break}}return r||t&&o?void 0:!!t||!o&&(this.selectable?this.selected:null)},e.prototype.setSelectedInitialValue=function(e){this.selected=e},e.prototype.setSelected=function(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1),this.setSelectedParams({newValue:e,clearSelection:t,suppressFinishActions:o,rangeSelect:!1})},e.prototype.isRowPinned=function(){return this.rowPinned===fe.PINNED_TOP||this.rowPinned===fe.PINNED_BOTTOM},e.prototype.setSelectedParams=function(e){var t,o=this.beans.gridOptionsWrapper.isGroupSelectsChildren(),r=!0===e.newValue,n=!0===e.clearSelection,i=!0===e.suppressFinishActions,s=!0===e.rangeSelect,a=o&&!0===e.groupSelectsFiltered;if(void 0===this.id)return console.warn("AG Grid: cannot select node until id for node is known"),0;if(this.rowPinned)return console.warn("AG Grid: cannot select pinned rows"),0;if(this.footer)return this.sibling.setSelectedParams(e);if(s&&this.beans.selectionService.getLastSelectedNode()){var l=this.beans.selectionService.getLastSelectedNode()!==this,u=this.beans.gridOptionsWrapper.isRowSelectionMulti();if(l&&u){var p=this.doRowRangeSelection(e.newValue);return this.beans.selectionService.setLastSelectedNode(this),p}}var c=0,d=a&&this.group;if(!d){var h=this.selectThisNode(r,e.event);h&&c++}if(o&&(null===(t=this.childrenAfterGroup)||void 0===t?void 0:t.length)&&(c+=this.selectChildNodes(r,a)),!i){var f=r&&(n||!this.beans.gridOptionsWrapper.isRowSelectionMulti());if(f&&(c+=this.beans.selectionService.clearOtherNodes(this)),c>0){this.beans.selectionService.updateGroupsFromChildrenSelections();var g={type:lt.EVENT_SELECTION_CHANGED};this.beans.eventService.dispatchEvent(g)}r&&this.beans.selectionService.setLastSelectedNode(this)}return c},e.prototype.doRowRangeSelection=function(e){var t=this;void 0===e&&(e=!0);var o=this.beans.gridOptionsWrapper.isGroupSelectsChildren(),r=this.beans.selectionService.getLastSelectedNode(),n=this.beans.rowModel.getNodesInRangeForSelection(this,r),i=0;n.forEach((function(r){if(!(r.group&&o||!1===e&&t===r)){var n=r.selectThisNode(e);n&&i++}})),this.beans.selectionService.updateGroupsFromChildrenSelections();var s={type:lt.EVENT_SELECTION_CHANGED};return this.beans.eventService.dispatchEvent(s),i},e.prototype.isParentOfNode=function(e){var t=this.parent;while(t){if(t===e)return!0;t=t.parent}return!1},e.prototype.selectThisNode=function(t,o){var r=!this.selectable&&t,n=this.selected===t;if(r||n)return!1;this.selected=t,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_ROW_SELECTED));var i=Object.assign({},this.createGlobalRowEvent(lt.EVENT_ROW_SELECTED),{event:o||null});return this.beans.eventService.dispatchEvent(i),!0},e.prototype.selectChildNodes=function(e,t){var o=t?this.childrenAfterAggFilter:this.childrenAfterGroup;if(i(o))return 0;for(var r=0,n=0;n<o.length;n++)r+=o[n].setSelectedParams({newValue:e,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:t});return r},e.prototype.addEventListener=function(e,t){this.eventService||(this.eventService=new he),this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService&&(this.eventService.removeEventListener(e,t),this.eventService.noRegisteredListenersExist()&&(this.eventService=null))},e.prototype.onMouseEnter=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_ENTER))},e.prototype.onMouseLeave=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_LEAVE))},e.prototype.getFirstChildOfFirstChild=function(e){var t=this,o=!0,r=!1,i=null;while(o&&!r){var s=t.parent,a=n(s)&&t.firstChild;a?s.rowGroupColumn===e&&(r=!0,i=s):o=!1,t=s}return r?i:null},e.prototype.isFullWidthCell=function(){var e=this.beans.gridOptionsWrapper.getIsFullWidthCellFunc();return!!e&&e({rowNode:this})},e.prototype.getRoute=function(){if(null!=this.key){var e=[],t=this;while(null!=t.key)e.push(t.key),t=t.parent;return e.reverse()}},e.ID_PREFIX_ROW_GROUP="row-group-",e.ID_PREFIX_TOP_PINNED="t-",e.ID_PREFIX_BOTTOM_PINNED="b-",e.OBJECT_ID_SEQUENCE=0,e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_DATA_CHANGED="dataChanged",e.EVENT_CELL_CHANGED="cellChanged",e.EVENT_ALL_CHILDREN_COUNT_CHANGED="allChildrenCountChanged",e.EVENT_MASTER_CHANGED="masterChanged",e.EVENT_GROUP_CHANGED="groupChanged",e.EVENT_MOUSE_ENTER="mouseEnter",e.EVENT_MOUSE_LEAVE="mouseLeave",e.EVENT_HEIGHT_CHANGED="heightChanged",e.EVENT_TOP_CHANGED="topChanged",e.EVENT_DISPLAYED_CHANGED="displayedChanged",e.EVENT_FIRST_CHILD_CHANGED="firstChildChanged",e.EVENT_LAST_CHILD_CHANGED="lastChildChanged",e.EVENT_CHILD_INDEX_CHANGED="childIndexChanged",e.EVENT_ROW_INDEX_CHANGED="rowIndexChanged",e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_HAS_CHILDREN_CHANGED="hasChildrenChanged",e.EVENT_SELECTABLE_CHANGED="selectableChanged",e.EVENT_UI_LEVEL_CHANGED="uiLevelChanged",e.EVENT_HIGHLIGHT_CHANGED="rowHighlightChanged",e.EVENT_DRAGGING_CHANGED="draggingChanged",e}(),Da=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Aa=function(){return Aa=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},Aa.apply(this,arguments)},Na=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Ia=function(e){function t(){return e.call(this,'\n <div class="ag-selection-checkbox" role="presentation">\n <ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>\n </div>')||this}return Da(t,e),t.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0)},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.gridOptionsWrapper.getLocaleTextFunc(),t=this.rowNode.isSelected(),o=void 0===t?e("ariaIndeterminate","indeterminate"):!0===t?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),r=e("ariaRowToggleSelection","Press Space to toggle row selection");this.eCheckbox.setValue(t,!0),this.eCheckbox.setInputAriaLabel(r+" ("+o+")")},t.prototype.onCheckedClicked=function(e){var t=this.gridOptionsWrapper.isGroupSelectsFiltered(),o=this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:t});return o},t.prototype.onUncheckedClicked=function(e){var t=this.gridOptionsWrapper.isGroupSelectsFiltered(),o=this.rowNode.setSelectedParams({newValue:!0,rangeSelect:e.shiftKey,groupSelectsFiltered:t});return o},t.prototype.init=function(e){var t=this;this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListener(this.eCheckbox.getInputElement(),"dblclick",(function(e){ze(e)})),this.addManagedListener(this.eCheckbox.getInputElement(),"click",(function(e){ze(e);var o=t.eCheckbox.getValue(),r=t.eCheckbox.getPreviousValue();if(void 0===r||void 0===o){var n=t.onUncheckedClicked(e||{});0===n&&t.onCheckedClicked(e)}else o?t.onCheckedClicked(e):t.onUncheckedClicked(e||{})})),this.addManagedListener(this.rowNode,Ta.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this));var o=this.gridOptionsWrapper.getIsRowSelectableFunc(),r=o||"function"===typeof this.getIsVisible();if(r){var n=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,lt.EVENT_DISPLAYED_COLUMNS_CHANGED,n),this.addManagedListener(this.rowNode,Ta.EVENT_DATA_CHANGED,n),this.addManagedListener(this.rowNode,Ta.EVENT_CELL_CHANGED,n),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},t.prototype.showOrHideSelect=function(){var e,t,o,r,n=this.rowNode.selectable,i=this.getIsVisible();if(n)if("function"===typeof i){var s=null===(e=this.overrides)||void 0===e?void 0:e.callbackParams,a=null===(t=this.column)||void 0===t?void 0:t.createColumnFunctionCallbackParams(this.rowNode);n=!!a&&i(Aa(Aa({},s),a))}else n=null!==i&&void 0!==i&&i;var l=null===(o=this.column)||void 0===o?void 0:o.getColDef().showDisabledCheckboxes;if(l)return this.eCheckbox.setDisabled(!n),this.setVisible(!0),void this.setDisplayed(!0);(null===(r=this.overrides)||void 0===r?void 0:r.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},Na([Ai("eCheckbox")],t.prototype,"eCheckbox",void 0),Na([te],t.prototype,"postConstruct",null),t}(Di),Ga=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Fa=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},La=function(e){var t="function"===typeof Symbol&&Symbol.iterator,o=t&&e[t],r=0;if(o)return o.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}; /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */(function(e){e[e["ToolPanel"]=0]="ToolPanel",e[e["HeaderCell"]=1]="HeaderCell",e[e["RowDrag"]=2]="RowDrag",e[e["ChartPanel"]=3]="ChartPanel"})(_a||(_a={})),function(e){e[e["Up"]=0]="Up",e[e["Down"]=1]="Down"}(ba||(ba={})),function(e){e[e["Left"]=0]="Left",e[e["Right"]=1]="Right"}(Pa||(Pa={}));var Ma,xa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragSourceAndParamsList=[],t.dropTargets=[],t}var o;return Ga(t,e),o=t,t.prototype.init=function(){this.ePinnedIcon=Bn("columnMovePin",this.gridOptionsWrapper,null),this.eHideIcon=Bn("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=Bn("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=Bn("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=Bn("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=Bn("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=Bn("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=Bn("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=Bn("dropNotAllowed",this.gridOptionsWrapper,null)},t.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var o={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:o,dragSource:e}),this.dragService.addDragSource(o,t)},t.prototype.removeDragSource=function(e){var t=this.dragSourceAndParamsList.find((function(t){return t.dragSource===e}));t&&(this.dragService.removeDragSource(t.params),Pe(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},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 o,r,n,i,s=this,a=this.getHorizontalDirection(e),l=this.getVerticalDirection(e);this.eventLastTime=e,this.positionGhost(e);var u=this.dropTargets.filter((function(t){return s.isMouseOnDropTarget(e,t)})),p=this.findCurrentDropTarget(e,u);if(p!==this.lastDropTarget)this.leaveLastTargetIfExists(e,a,l,t),null!==this.lastDropTarget&&null===p&&(null===(r=(o=this.dragSource).onGridExit)||void 0===r||r.call(o,this.dragItem)),null===this.lastDropTarget&&null!==p&&(null===(i=(n=this.dragSource).onGridEnter)||void 0===i||i.call(n,this.dragItem)),this.enterDragTargetIfExists(p,e,a,l,t),this.lastDropTarget=p;else if(p&&p.onDragging){var c=this.createDropTargetEvent(p,e,a,l,t);p.onDragging(c)}},t.prototype.getAllContainersFromDropTarget=function(e){var t=e.getSecondaryContainers?e.getSecondaryContainers():null,o=[[e.getContainer()]];return t?o.concat(t):o},t.prototype.allContainersIntersect=function(e,t){var o,r;try{for(var n=La(t),i=n.next();!i.done;i=n.next()){var s=i.value,a=s.getBoundingClientRect();if(0===a.width||0===a.height)return!1;var l=e.clientX>=a.left&&e.clientX<a.right,u=e.clientY>=a.top&&e.clientY<a.bottom;if(!l||!u)return!1}}catch(p){o={error:p}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return!0},t.prototype.isMouseOnDropTarget=function(e,t){var o,r,n=this.getAllContainersFromDropTarget(t),i=!1;try{for(var s=La(n),a=s.next();!a.done;a=s.next()){var l=a.value;if(this.allContainersIntersect(e,l)){i=!0;break}}}catch(u){o={error:u}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(o)throw o.error}}return!(t.targetContainsSource&&!t.getContainer().contains(this.dragSource.eElement))&&(i&&t.isInterestedIn(this.dragSource.type,this.dragSource.eElement))},t.prototype.findCurrentDropTarget=function(e,t){var o,r,n,i,s=t.length;if(0===s)return null;if(1===s)return t[0];var a=this.gridOptionsWrapper.getDocument(),l=a.elementsFromPoint(e.clientX,e.clientY);try{for(var u=La(l),p=u.next();!p.done;p=u.next()){var c=p.value;try{for(var d=(n=void 0,La(t)),h=d.next();!h.done;h=d.next()){var f=h.value,g=Ge(this.getAllContainersFromDropTarget(f));if(-1!==g.indexOf(c))return f}}catch(v){n={error:v}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}}}catch(y){o={error:y}}finally{try{p&&!p.done&&(r=u.return)&&r.call(u)}finally{if(o)throw o.error}}return null},t.prototype.enterDragTargetIfExists=function(e,t,o,r,n){if(e){if(e.onDragEnter){var i=this.createDropTargetEvent(e,t,o,r,n);e.onDragEnter(i)}this.setGhostIcon(e.getIconName?e.getIconName():null)}},t.prototype.leaveLastTargetIfExists=function(e,t,o,r){if(this.lastDropTarget){if(this.lastDropTarget.onDragLeave){var n=this.createDropTargetEvent(this.lastDropTarget,e,t,o,r);this.lastDropTarget.onDragLeave(n)}this.setGhostIcon(null)}},t.prototype.addDropTarget=function(e){this.dropTargets.push(e)},t.prototype.removeDropTarget=function(e){this.dropTargets=this.dropTargets.filter((function(t){return t.getContainer()!==e.getContainer()}))},t.prototype.hasExternalDropZones=function(){return this.dropTargets.some((function(e){return e.external}))},t.prototype.findExternalZone=function(e){var t=this.dropTargets.filter((function(e){return e.external}));return t.find((function(t){return t.getContainer()===e.getContainer()}))||null},t.prototype.getHorizontalDirection=function(e){var t=this.eventLastTime&&this.eventLastTime.clientX,o=e.clientX;return t===o?null:t>o?Pa.Left:Pa.Right},t.prototype.getVerticalDirection=function(e){var t=this.eventLastTime&&this.eventLastTime.clientY,o=e.clientY;return t===o?null:t>o?ba.Up:ba.Down},t.prototype.createDropTargetEvent=function(e,t,o,r,n){var i=e.getContainer(),s=i.getBoundingClientRect(),a=this,l=a.gridApi,u=a.columnApi,p=a.dragItem,c=a.dragSource,d=t.clientX-s.left,h=t.clientY-s.top;return{event:t,x:d,y:h,vDirection:r,hDirection:o,dragSource:c,fromNudge:n,dragItem:p,api:l,columnApi:u,dropZoneTarget:i}},t.prototype.positionGhost=function(e){var t=this.eGhost;if(t){var o=t.getBoundingClientRect(),r=o.height,n=so()-2,i=ao()-2,s=e.pageY-r/2,a=e.pageX-10,l=this.gridOptionsWrapper.getDocument(),u=l.defaultView||window,p=u.pageYOffset||l.documentElement.scrollTop,c=u.pageXOffset||l.documentElement.scrollLeft;n>0&&a+t.clientWidth>n+c&&(a=n+c-t.clientWidth),a<0&&(a=0),i>0&&s+t.clientHeight>i+p&&(s=i+p-t.clientHeight),s<0&&(s=0),t.style.left=a+"px",t.style.top=s+"px"}},t.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},t.prototype.createGhost=function(){this.eGhost=br(o.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"),r=this.dragSource.dragItemName;V(r)&&(r=r()),t.innerHTML=vt(r)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var n=this.gridOptionsWrapper.getDocument(),i=null;try{i=n.fullscreenElement}catch(s){}finally{i||(i=n.querySelector("body"))}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),Rr(this.eGhostIcon);var r=null;switch(e||(e=this.dragSource.defaultIconName||o.ICON_NOT_ALLOWED),e){case o.ICON_PINNED:r=this.ePinnedIcon;break;case o.ICON_MOVE:r=this.eMoveIcon;break;case o.ICON_LEFT:r=this.eLeftIcon;break;case o.ICON_RIGHT:r=this.eRightIcon;break;case o.ICON_GROUP:r=this.eGroupIcon;break;case o.ICON_AGGREGATE:r=this.eAggregateIcon;break;case o.ICON_PIVOT:r=this.ePivotIcon;break;case o.ICON_NOT_ALLOWED:r=this.eDropNotAllowedIcon;break;case o.ICON_HIDE:r=this.eHideIcon;break}this.eGhostIcon.classList.toggle("ag-shake-left-to-right",t),r===this.eHideIcon&&this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()||r&&this.eGhostIcon.appendChild(r)},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='<div class="ag-dnd-ghost ag-unselectable">\n <span class="ag-dnd-ghost-icon ag-shake-left-to-right"></span>\n <div class="ag-dnd-ghost-label"></div>\n </div>',Fa([ne("dragService")],t.prototype,"dragService",void 0),Fa([ne("mouseEventService")],t.prototype,"mouseEventService",void 0),Fa([ne("environment")],t.prototype,"environment",void 0),Fa([ne("columnApi")],t.prototype,"columnApi",void 0),Fa([ne("gridApi")],t.prototype,"gridApi",void 0),Fa([te],t.prototype,"init",null),Fa([oe],t.prototype,"clearDragSourceParamsList",null),t=o=Fa([re("dragAndDropService")],t),t}(rt),Ha=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Va=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Wa=function(e){function t(t,o,r,n,i,s){var a=e.call(this)||this;return a.cellValueFn=t,a.rowNode=o,a.column=r,a.customGui=n,a.dragStartPixels=i,a.suppressVisibilityChange=s,a.dragSource=null,a}return Ha(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('<div class="ag-drag-handle ag-row-drag" aria-hidden="true"></div>'),this.getGui().appendChild(jn("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var e=this.beans.gridOptionsWrapper.isRowDragManaged()?new ja(this,this.beans,this.rowNode,this.column):new Ba(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(){var e=this.beans.gridOptionsWrapper.isRowDragMultiRow();if(!e)return[this.rowNode];var t=this.beans.selectionService.getSelectedNodes();return-1!==t.indexOf(this.rowNode)?t:[this.rowNode]},t.prototype.checkCompatibility=function(){var e=this.beans.gridOptionsWrapper.isRowDragManaged(),t=this.beans.gridOptionsWrapper.isTreeData();t&&e&&x((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.addDragSource=function(e){var t=this;void 0===e&&(e=4),this.dragSource&&this.removeDragSource();var o=this.gridOptionsWrapper.getRowDragText(this.column),r=this.gridOptionsWrapper.getLocaleTextFunc();this.dragSource={type:_a.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 o?o(n,i):1===i?t.cellValueFn():i+" "+r("rowDragRows","rows")},getDragItem:function(){return t.getDragItem()},dragStartPixels:e,dragSourceDomDataKey:this.beans.gridOptionsWrapper.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},t.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},Va([ne("beans")],t.prototype,"beans",void 0),Va([te],t.prototype,"postConstruct",null),Va([oe],t.prototype,"removeDragSource",null),t}(Di),ka=function(e){function t(t,o,r){var n=e.call(this)||this;return n.parent=t,n.rowNode=o,n.column=r,n}return Ha(t,e),t.prototype.setDisplayedOrVisible=function(e){if(e)this.parent.setDisplayed(!1);else{var t=!0,o=!1;this.column&&(t=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),o=V(this.column.getColDef().rowDrag)),o?(this.parent.setDisplayed(!0),this.parent.setVisible(t)):(this.parent.setDisplayed(t),this.parent.setVisible(!0))}},t}(rt),Ba=function(e){function t(t,o,r,n){var i=e.call(this,t,r,n)||this;return i.beans=o,i}return Ha(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,lt.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.gridOptionsWrapper.isSuppressRowDrag();this.setDisplayedOrVisible(e)},Va([te],t.prototype,"postConstruct",null),t}(ka),ja=function(e){function t(t,o,r,n){var i=e.call(this,t,r,n)||this;return i.beans=o,i}return Ha(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,lt.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,lt.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,lt.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,lt.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.ctrlsService.getGridBodyCtrl(),t=e.getRowDragFeature(),o=t&&t.shouldPreventRowMove(),r=this.beans.gridOptionsWrapper.isSuppressRowDrag(),n=this.beans.dragAndDropService.hasExternalDropZones(),i=o&&!n||r;this.setDisplayedOrVisible(i)},Va([te],t.prototype,"postConstruct",null),t}(ka),Ua=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),za=function(){return za=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},za.apply(this,arguments)},Ka=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Ya=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ua(t,e),t.prototype.init=function(e,t,o,r,n,i,s){this.params=s,this.eGui=t,this.eCheckbox=o,this.eExpanded=r,this.eContracted=n,this.comp=e,this.compClass=i;var a=this.isTopLevelFooter(),l=this.isEmbeddedRowMismatch(),u=null==s.value,p=!1;if(this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridOptionsWrapper.isGroupHideOpenParents()){var c=s.node;if(c.footer){var d=s.colDef&&s.colDef.showRowGroup,h=c.rowGroupColumn&&c.rowGroupColumn.getColId();p=d!==h}}this.cellIsBlank=!a&&(l||u||p),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,o=e.eParentOfValue;if(this.expandListener&&(this.expandListener=this.expandListener()),this.isExpandable()){var r=function(){wn(o,!!t.expanded)};this.expandListener=this.addManagedListener(t,Ta.EVENT_EXPANDED_CHANGED,r)||null,r()}else En(o)},t.prototype.isTopLevelFooter=function(){if(!this.gridOptionsWrapper.isGroupIncludeTotalFooter())return!1;if(null!=this.params.value||-1!=this.params.node.level)return!1;var e=this.params.colDef,t=null==e;if(t)return!0;if(!0===e.showRowGroup)return!0;var o=this.columnModel.getRowGroupColumns();if(!o||0===o.length)return!0;var r=o[0];return r.getId()===e.showRowGroup},t.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsWrapper.isEmbedFullWidthRows())return!1;var e=this.params.pinned===fe.PINNED_LEFT,t=this.params.pinned===fe.PINNED_RIGHT,o=!e&&!t;return this.gridOptionsWrapper.isEnableRtl()?this.columnModel.isPinningLeft()?!t:!o:this.columnModel.isPinningLeft()?!e:!o},t.prototype.findDisplayedGroupNode=function(){var e=this.params.column,t=this.params.node;if(this.showingValueForOpenedParent){var o=t.parent;while(null!=o){if(o.rowGroupColumn&&e.isRowGroupDisplayed(o.rowGroupColumn.getId())){this.displayedGroupNode=o;break}o=o.parent}}i(this.displayedGroupNode)&&(this.displayedGroupNode=t)},t.prototype.setupShowingValueForOpenedParent=function(){var e=this.params.node,t=this.params.column;if(this.gridOptionsWrapper.isGroupHideOpenParents())if(e.groupData){var o=null!=e.rowGroupColumn;if(o){var r=e.rowGroupColumn.getId(),n=t.isRowGroupDisplayed(r);if(n)return void(this.showingValueForOpenedParent=!1)}var i=null!=e.groupData[t.getId()];this.showingValueForOpenedParent=i}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),o=e.valueFormatted,r=e.value,n=null!=o?o:r;this.comp.setInnerRenderer(t,n)},t.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var e=this.displayedGroupNode.rowGroupColumn,t=this.params.column;if(!e)return this.params;var o=null!=t;if(o){var r=t.isRowGroupDisplayed(e.getId());if(!r)return this.params}var n=this.params,i=this.params,s=i.value,a=i.node,l=this.valueFormatterService.formatValue(e,a,s),u=za(za({},n),{valueFormatted:l});return u},t.prototype.addFooterValue=function(){var e=this.params.footerValueGetter,t="";if(e){var o=m(this.params);o.value=this.params.value,"function"===typeof e?t=e(o):"string"===typeof e?t=this.expressionService.evaluate(e,o):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 r=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(r,t)},t.prototype.getInnerCompDetails=function(e){var t=this;if(e.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptions.groupRowRendererParams,e);var o=this.userComponentFactory.getInnerRendererDetails(e,e),r=function(e){return e&&e.componentClass==t.compClass};if(o&&!r(o))return o;var n=this.displayedGroupNode.rowGroupColumn,i=n?n.getColDef():void 0;if(i){var s=this.userComponentFactory.getCellRendererDetails(i,e);if(s&&!r(s))return s;if(r(s)&&i.cellRendererParams&&i.cellRendererParams.innerRenderer){var a=this.userComponentFactory.getInnerRendererDetails(i.cellRendererParams,e);return a}}},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,Ta.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},t.prototype.updateChildCount=function(){var e=this.displayedGroupNode.allChildrenCount,t=this.isShowRowGroupForThisRow(),o=t&&null!=e&&e>=0,r=o?"("+e+")":"";this.comp.setChildCount(r)},t.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsWrapper.isTreeData())return!0;var e=this.displayedGroupNode.rowGroupColumn;if(!e)return!1;var t=this.params.column,o=null==t||t.isRowGroupDisplayed(e.getId());return o},t.prototype.addExpandAndContract=function(){var e=this.params,t=jn("groupExpanded",this.gridOptionsWrapper,null),o=jn("groupContracted",this.gridOptionsWrapper,null);t&&this.eExpanded.appendChild(t),o&&this.eContracted.appendChild(o);var r=e.eGridCell;this.gridOptionsWrapper.isEnableGroupEdit()||!this.isExpandable()||e.suppressDoubleClickExpand||this.addManagedListener(r,"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(r,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(e.node,Ta.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var n=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,Ta.EVENT_ALL_CHILDREN_COUNT_CHANGED,n),this.addManagedListener(this.displayedGroupNode,Ta.EVENT_MASTER_CHANGED,n),this.addManagedListener(this.displayedGroupNode,Ta.EVENT_GROUP_CHANGED,n),this.addManagedListener(this.displayedGroupNode,Ta.EVENT_HAS_CHILDREN_CHANGED,n)},t.prototype.onExpandClicked=function(e){Ke(e)||(ze(e),this.onExpandOrContract(e))},t.prototype.onExpandOrContract=function(e){var t=this.displayedGroupNode,o=!t.expanded;!o&&t.sticky&&this.scrollToStickyNode(t),t.setExpanded(o,e)},t.prototype.scrollToStickyNode=function(e){var t=this.ctrlsService.getGridBodyCtrl(),o=t.getScrollFeature();o.setVerticalScrollPosition(e.rowTop-e.stickyRowTop)},t.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var e=this.displayedGroupNode,t=this.columnModel.isPivotMode()&&e.leafGroup,o=e.isExpandable()&&!e.footer&&!t;if(!o)return!1;var r=this.params.column,n=null!=r&&"string"===typeof r.getColDef().showRowGroup;if(n){var i=this.isShowRowGroupForThisRow();return i}return!0},t.prototype.showExpandAndContractIcons=function(){var e=this,t=e.params,o=e.displayedGroupNode,r=e.columnModel,n=t.node,i=this.isExpandable();if(i){var s=!!this.showingValueForOpenedParent||n.expanded;this.comp.setExpandedDisplayed(s),this.comp.setContractedDisplayed(!s)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var a=r.isPivotMode(),l=a&&o.leafGroup,u=i&&!l,p=n.footer&&-1===n.level;this.comp.addOrRemoveCssClass("ag-cell-expandable",u),this.comp.addOrRemoveCssClass("ag-row-group",u),a?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",l):p||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!u)},t.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()},t.prototype.setupIndent=function(){var e=this.params.node,t=this.params.suppressPadding;t||(this.addManagedListener(e,Ta.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.setIndent=function(){if(!this.gridOptionsWrapper.isGroupHideOpenParents()){var e=this.params,t=e.node,o=!!e.colDef,r=this.gridOptionsWrapper.isTreeData(),n=!o||r||!0===e.colDef.showRowGroup,i=n?t.uiLevel:0,s=e.padding>=0;s&&x((function(){return console.warn("AG Grid: cellRendererParams.padding no longer works, it was deprecated in since v14.2 and removed in v26, configuring padding for groupCellRenderer should be done with Sass variables and themes. Please see the AG Grid documentation page for Themes, in particular the property $row-group-indent-size.")}),"groupCellRenderer->doDeprecatedWay"),this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+i,this.comp.addOrRemoveCssClass(this.indentClass,!0)}},t.prototype.addFullWidthRowDraggerIfNeeded=function(){var e=this;if(this.params.fullWidth&&this.params.rowDrag){var t=new Wa((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,o=this.isUserWantsSelected()&&!t.footer&&!t.rowPinned&&!t.detail;if(o){var r=new Ia;this.getContext().createBean(r),r.init({rowNode:t,column:this.params.column,overrides:{isVisible:this.params.checkbox,callbackParams:this.params,removeHidden:!0}}),this.eCheckbox.appendChild(r.getGui()),this.addDestroyFunc((function(){return e.getContext().destroyBean(r)}))}this.comp.setCheckboxVisible(o)},t.prototype.onKeyDown=function(e){var t=e.key===zn.ENTER;if(t&&!this.params.suppressEnterExpand){var o=this.params.column&&this.params.column.isCellEditable(this.params.node);o||this.onExpandOrContract(e)}},t.prototype.onCellDblClicked=function(e){if(!Ke(e)){var t=Qe(this.eExpanded,e)||Qe(this.eContracted,e);t||this.onExpandOrContract(e)}},Ka([ne("expressionService")],t.prototype,"expressionService",void 0),Ka([ne("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Ka([ne("columnModel")],t.prototype,"columnModel",void 0),Ka([ne("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Ka([ne("gridOptions")],t.prototype,"gridOptions",void 0),Ka([ne("ctrlsService")],t.prototype,"ctrlsService",void 0),t}(rt),qa=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Xa=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Qa=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return qa(t,e),t.prototype.init=function(e){var t=this,o={setInnerRenderer:function(e,o){return t.setRenderDetails(e,o)},setChildCount:function(e){return t.eChildCount.innerHTML=e},addOrRemoveCssClass:function(e,o){return t.addOrRemoveCssClass(e,o)},setContractedDisplayed:function(e){return pr(t.eContracted,e)},setExpandedDisplayed:function(e){return pr(t.eExpanded,e)},setCheckboxVisible:function(e){return t.eCheckbox.classList.toggle("ag-invisible",!e)}},r=this.createManagedBean(new Ya),n=!e.colDef,i=this.getGui();r.init(o,i,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,e),n&&ln(i,"gridcell")},t.prototype.setRenderDetails=function(e,t){var o=this;if(e){var r=e.newAgStackInstance();if(!r)return;r.then((function(e){if(e){var t=function(){return o.context.destroyBean(e)};o.isAlive()?(o.eValue.appendChild(e.getGui()),o.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='<span class="ag-cell-wrapper">\n <span class="ag-group-expanded" ref="eExpanded"></span>\n <span class="ag-group-contracted" ref="eContracted"></span>\n <span class="ag-group-checkbox ag-invisible" ref="eCheckbox"></span>\n <span class="ag-group-value" ref="eValue"></span>\n <span class="ag-group-child-count" ref="eChildCount"></span>\n </span>',Xa([Ai("eExpanded")],t.prototype,"eExpanded",void 0),Xa([Ai("eContracted")],t.prototype,"eContracted",void 0),Xa([Ai("eCheckbox")],t.prototype,"eCheckbox",void 0),Xa([Ai("eValue")],t.prototype,"eValue",void 0),Xa([Ai("eChildCount")],t.prototype,"eChildCount",void 0),t}(Di),Ja=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Za=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},$a=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Ja(t,e),t.prototype.init=function(e){e.node.failedLoad?this.setupFailed():this.setupLoading()},t.prototype.setupFailed=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=e("loadingError","ERR")},t.prototype.setupLoading=function(){var e=jn("groupLoading",this.gridOptionsWrapper,null);e&&this.eLoadingIcon.appendChild(e);var t=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=t("loadingOoo","Loading")},t.prototype.refresh=function(e){return!1},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-loading">\n <span class="ag-loading-icon" ref="eLoadingIcon"></span>\n <span class="ag-loading-text" ref="eLoadingText"></span>\n </div>',Za([Ai("eLoadingIcon")],t.prototype,"eLoadingIcon",void 0),Za([Ai("eLoadingText")],t.prototype,"eLoadingText",void 0),t}(Di),el=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),tl=function(e){function t(){return e.call(this)||this}return el(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var o=this.gridOptionsWrapper.getOverlayLoadingTemplate()?this.gridOptionsWrapper.getOverlayLoadingTemplate():t.DEFAULT_LOADING_OVERLAY_TEMPLATE,r=this.gridOptionsWrapper.getLocaleTextFunc(),n=o.replace("[LOADING...]",r("loadingOoo","Loading..."));this.setTemplate(n)},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span class="ag-overlay-loading-center">[LOADING...]</span>',t}(Di),ol=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),rl=function(e){function t(){return e.call(this)||this}return ol(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var o=this.gridOptionsWrapper.getOverlayNoRowsTemplate()?this.gridOptionsWrapper.getOverlayNoRowsTemplate():t.DEFAULT_NO_ROWS_TEMPLATE,r=this.gridOptionsWrapper.getLocaleTextFunc(),n=o.replace("[NO_ROWS_TO_SHOW]",r("noRowsToShow","No Rows To Show"));this.setTemplate(n)},t.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',t}(Di),nl=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),il=function(e){function t(){return e.call(this,'<div class="ag-tooltip"></div>')||this}return nl(t,e),t.prototype.init=function(e){var t=e.value;this.getGui().innerHTML=vt(t)},t}(ra),sl=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),al=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},ll=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.agGridDefaults={agDateInput:Ns,agColumnHeader:Zs,agColumnGroupHeader:ta,agSortIndicator:Xs,agTextColumnFloatingFilter:zs,agNumberColumnFloatingFilter:js,agDateColumnFloatingFilter:Ts,agReadOnlyFloatingFilter:xi,agAnimateShowChangeCellRenderer:Ea,agAnimateSlideCellRenderer:Sa,agGroupCellRenderer:Qa,agGroupRowRenderer:Qa,agLoadingCellRenderer:$a,agCellEditor:fa,agTextCellEditor:fa,agSelectCellEditor:ua,agPopupTextCellEditor:va,agPopupSelectCellEditor:ca,agLargeTextCellEditor:sa,agTextColumnFilter:Hs,agNumberColumnFilter:Fs,agDateColumnFilter:Os,agLoadingOverlay:tl,agNoRowsOverlay:rl,agTooltipComponent:il},t.agDeprecatedNames={set:{newComponentName:"agSetColumnFilter",propertyHolder:"filter"},text:{newComponentName:"agTextColumnFilter",propertyHolder:"filter"},number:{newComponentName:"agNumberColumnFilter",propertyHolder:"filter"},date:{newComponentName:"agDateColumnFilter",propertyHolder:"filter"},group:{newComponentName:"agGroupCellRenderer",propertyHolder:"cellRenderer"},animateShowChange:{newComponentName:"agAnimateShowChangeCellRenderer",propertyHolder:"cellRenderer"},animateSlide:{newComponentName:"agAnimateSlideCellRenderer",propertyHolder:"cellRenderer"},select:{newComponentName:"agSelectCellEditor",propertyHolder:"cellEditor"},largeText:{newComponentName:"agLargeTextCellEditor",propertyHolder:"cellEditor"},popupSelect:{newComponentName:"agPopupSelectCellEditor",propertyHolder:"cellEditor"},popupText:{newComponentName:"agPopupTextCellEditor",propertyHolder:"cellEditor"},richSelect:{newComponentName:"agRichSelectCellEditor",propertyHolder:"cellEditor"},headerComponent:{newComponentName:"agColumnHeader",propertyHolder:"headerComponent"}},t.jsComps={},t.fwComps={},t}return sl(t,e),t.prototype.init=function(){var e=this;null!=this.gridOptions.components&&y(this.gridOptions.components,(function(t,o){return e.registerJsComponent(t,o)})),null!=this.gridOptions.frameworkComponents&&y(this.gridOptions.frameworkComponents,(function(t,o){return e.registerFwComponent(t,o)}))},t.prototype.registerDefaultComponent=function(e,t){var o=this.translateIfDeprecated(e);this.agGridDefaults[o]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[o]=t},t.prototype.registerJsComponent=function(e,t){var o=this.translateIfDeprecated(e);this.fwComps[o]?console.error("Trying to register a component that you have already registered for frameworks: "+o):this.jsComps[o]=t},t.prototype.registerFwComponent=function(e,t){var o="AG Grid: As of v27, registering components via grid property frameworkComponents is deprecated. Instead register both JavaScript AND Framework Components via the components property.";x((function(){return console.warn(o)}),"UserComponentRegistry.frameworkComponentsDeprecated");var r=this.translateIfDeprecated(e);this.fwComps[r]=t},t.prototype.retrieve=function(e){var t=this.translateIfDeprecated(e),o=function(e,t){return{componentFromFramework:t,component:e}},r=this.getFrameworkOverrides().frameworkComponent(t,this.gridOptions.components);if(null!=r)return o(r,!0);var n=this.fwComps[t];if(n)return o(n,!0);var i=this.jsComps[t];if(i){var s=this.getFrameworkOverrides().isFrameworkComponent(i);return o(i,s)}var a=this.agGridDefaults[t];return a?o(a,!1):(Object.keys(this.agGridDefaults).indexOf(t)<0&&console.warn("AG Grid: Looking for component ["+t+"] but it wasn't found."),null)},t.prototype.translateIfDeprecated=function(e){var t=this.agDeprecatedNames[e];return null!=t?(x((function(){console.warn("ag-grid. Since v15.0 component names have been renamed to be namespaced. You should rename "+t.propertyHolder+":"+e+" to "+t.propertyHolder+":"+t.newComponentName)}),"DEPRECATE_COMPONENT_"+e),t.newComponentName):e},al([ne("gridOptions")],t.prototype,"gridOptions",void 0),al([ne("agComponentUtils")],t.prototype,"agComponentUtils",void 0),al([te],t.prototype,"init",null),t=al([re("userComponentRegistry")],t),t}(rt),ul={propertyName:"dateComponent",cellRenderer:!1},pl={propertyName:"headerComponent",cellRenderer:!1},cl={propertyName:"headerGroupComponent",cellRenderer:!1},dl={propertyName:"cellRenderer",cellRenderer:!0},hl={propertyName:"cellEditor",cellRenderer:!1},fl={propertyName:"innerRenderer",cellRenderer:!0},gl={propertyName:"loadingOverlayComponent",cellRenderer:!1},vl={propertyName:"noRowsOverlayComponent",cellRenderer:!1},yl={propertyName:"tooltipComponent",cellRenderer:!1},ml={propertyName:"filter",cellRenderer:!1},Cl={propertyName:"floatingFilterComponent",cellRenderer:!1},wl={propertyName:"toolPanel",cellRenderer:!1},El={propertyName:"statusPanel",cellRenderer:!1},Rl={propertyName:"fullWidthCellRenderer",cellRenderer:!0},Ol={propertyName:"loadingCellRenderer",cellRenderer:!0},Sl={propertyName:"groupRowRenderer",cellRenderer:!0},_l={propertyName:"detailCellRenderer",cellRenderer:!0},bl=function(){function e(){}return e.getFloatingFilterType=function(e){return this.filterToFloatingFilterMapping[e]},e.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},e}(),Pl=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Tl=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Dl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pl(t,e),t.prototype.getHeaderCompDetails=function(e,t){return this.getCompDetails(e,pl,"agColumnHeader",t)},t.prototype.getHeaderGroupCompDetails=function(e){var t=e.columnGroup.getColGroupDef();return this.getCompDetails(t,cl,"agColumnGroupHeader",e)},t.prototype.getFullWidthCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Rl,null,e,!0)},t.prototype.getFullWidthLoadingCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Ol,"agLoadingCellRenderer",e,!0)},t.prototype.getFullWidthGroupCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Sl,"agGroupRowRenderer",e,!0)},t.prototype.getFullWidthDetailCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,_l,"agDetailCellRenderer",e,!0)},t.prototype.getInnerRendererDetails=function(e,t){return this.getCompDetails(e,fl,null,t)},t.prototype.getFullWidthGroupRowInnerCellRenderer=function(e,t){return this.getCompDetails(e,fl,null,t)},t.prototype.getCellRendererDetails=function(e,t){return this.getCompDetails(e,dl,null,t)},t.prototype.getCellEditorDetails=function(e,t){return this.getCompDetails(e,hl,"agCellEditor",t,!0)},t.prototype.getFilterDetails=function(e,t,o){return this.getCompDetails(e,ml,o,t,!0)},t.prototype.getDateCompDetails=function(e){return this.getCompDetails(this.gridOptions,ul,"agDateInput",e,!0)},t.prototype.getLoadingOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,gl,"agLoadingOverlay",e,!0)},t.prototype.getNoRowsOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,vl,"agNoRowsOverlay",e,!0)},t.prototype.getTooltipCompDetails=function(e){return this.getCompDetails(e.colDef,yl,"agTooltipComponent",e,!0)},t.prototype.getSetFilterCellRendererDetails=function(e,t){return this.getCompDetails(e,dl,null,t)},t.prototype.getFloatingFilterCompDetails=function(e,t,o){return this.getCompDetails(e,Cl,o,t)},t.prototype.getToolPanelCompDetails=function(e,t){return this.getCompDetails(e,wl,null,t,!0)},t.prototype.getStatusPanelCompDetails=function(e,t){return this.getCompDetails(e,El,null,t,!0)},t.prototype.getCompDetails=function(e,t,o,r,n){var i=this;void 0===n&&(n=!1);var s=t.propertyName,a=t.cellRenderer,l=this.getCompKeys(e,t,r),u=l.compName,p=l.jsComp,c=l.fwComp,d=l.paramsFromSelector,h=l.popupFromSelector,f=l.popupPositionFromSelector,g=function(e){var t=i.userComponentRegistry.retrieve(e);t&&(p=t.componentFromFramework?void 0:t.component,c=t.componentFromFramework?t.component:void 0)};if(null!=u&&g(u),null==p&&null==c&&null!=o&&g(o),p&&a&&!this.agComponentUtils.doesImplementIComponent(p)&&(p=this.agComponentUtils.adaptFunction(s,p)),p||c){var v=this.mergeParamsWithApplicationProvidedParams(e,t,r,d),y=null==p,m=p||c;return{componentFromFramework:y,componentClass:m,params:v,type:t,popupFromSelector:h,popupPositionFromSelector:f,newAgStackInstance:function(){return i.newAgStackInstance(m,y,v,t)}}}n&&console.error("Could not find component "+u+", did you forget to configure this component?")},t.prototype.getCompKeys=function(e,t,o){var r,n,i,s,a,l,u=this,p=t.propertyName;if(e){var c=e,d=c[p+"Selector"],h=d?d(o):null,f=function(e,t){var o=function(){var e="AG Grid: As of v27, the property "+p+"Framework is deprecated. The property "+p+" can now be used for JavaScript AND Framework Components.";x((function(){return console.warn(e)}),"UserComponentFactory."+p+"FrameworkDeprecated")};if("string"===typeof e)r=e;else if("string"===typeof t)o(),r=t;else if(null!=e&&!0!==e){var s=u.getFrameworkOverrides().isFrameworkComponent(e);s?i=e:n=e}else null!=t&&(o(),i=t)};if(h){if(null!=h.frameworkComponent){var g="AG Grid: As of v27, the return for "+p+"Selector has attributes [component, params] only. The attribute frameworkComponent is deprecated. You should now return back Framework Components using the 'component' attribute and the grid works out if it's a framework component or not.";x((function(){return console.warn(g)}),"UserComponentFactory."+p+"FrameworkSelectorDeprecated"),f(h.frameworkComponent,void 0)}else f(h.component,void 0);s=h.params,a=h.popup,l=h.popupPosition}else f(c[p],c[p+"Framework"])}return{compName:r,jsComp:n,fwComp:i,paramsFromSelector:s,popupFromSelector:a,popupPositionFromSelector:l}},t.prototype.newAgStackInstance=function(e,t,o,r){var n,i=r.propertyName,s=!t;if(s)n=new e;else{var a=this.componentMetadataProvider.retrieve(i);n=this.frameworkComponentWrapper.wrap(e,a.mandatoryMethodList,a.optionalMethodList,r)}var l=this.initComponent(n,o);return null==l?wi.resolve(n):l.then((function(){return n}))},t.prototype.mergeParamsWithApplicationProvidedParams=function(e,t,o,r){void 0===r&&(r=null);var n={context:this.gridOptionsWrapper.getContext(),columnApi:this.gridOptionsWrapper.getColumnApi(),api:this.gridOptionsWrapper.getApi()};P(n,o);var i=e,s=i&&i[t.propertyName+"Params"];if("function"===typeof s){var a=s(o);P(n,a)}else"object"===typeof s&&P(n,s);return P(n,r),n},t.prototype.initComponent=function(e,t){if(this.context.createBean(e),null!=e.init)return e.init(t)},t.prototype.getDefaultFloatingFilterType=function(e){if(null==e)return null;var t=null,o=this.getCompKeys(e,ml),r=o.compName,n=o.jsComp,i=o.fwComp;if(r)t=bl.getFloatingFilterType(r);else{var s=null==n&&null==i&&!0===e.filter;if(s){var a=ge.isRegistered(ue.SetFilterModule);t=a?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter"}}return t},Tl([ne("gridOptions")],t.prototype,"gridOptions",void 0),Tl([ne("agComponentUtils")],t.prototype,"agComponentUtils",void 0),Tl([ne("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),Tl([ne("userComponentRegistry")],t.prototype,"userComponentRegistry",void 0),Tl([ie("frameworkComponentWrapper")],t.prototype,"frameworkComponentWrapper",void 0),t=Tl([re("userComponentFactory")],t),t}(rt); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */(function(e){e[e["SINGLE_SHEET"]=0]="SINGLE_SHEET",e[e["MULTI_SHEET"]=1]="MULTI_SHEET"})(Ma||(Ma={})); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */ var Al,Nl=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Il=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Gl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragEndFunctions=[],t.dragSources=[],t}return Nl(t,e),t.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},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,o=e.mouseDownListener;if(t.removeEventListener("mousedown",o),e.touchEnabled){var r=e.touchStartListener;t.removeEventListener("touchstart",r,{passive:!0})}},t.prototype.removeDragSource=function(e){var t=this.dragSources.find((function(t){return t.dragSource===e}));t&&(this.removeListener(t),Pe(this.dragSources,t))},t.prototype.isDragging=function(){return this.dragging},t.prototype.addDragSource=function(e,t){var o=this;void 0===t&&(t=!1);var r=this.onMouseDown.bind(this,e);e.eElement.addEventListener("mousedown",r);var n=null,i=this.gridOptionsWrapper.isSuppressTouch();t&&!i&&(n=function(t){ur(t.target)||(t.cancelable&&t.preventDefault(),o.onTouchStart(e,t))},e.eElement.addEventListener("touchstart",n,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:r,touchStartListener:n,touchEnabled:t})},t.prototype.onTouchStart=function(e,t){var o=this;this.currentDragParams=e,this.dragging=!1;var r=t.touches[0];this.touchLastTime=r,this.touchStart=r;var n=function(t){return o.onTouchMove(t,e.eElement)},i=function(t){return o.onTouchUp(t,e.eElement)},s=function(e){e.cancelable&&e.preventDefault()},a=t.target,l=[{target:document,type:"touchmove",listener:s,options:{passive:!1}},{target:a,type:"touchmove",listener:n,options:{passive:!0}},{target:a,type:"touchend",listener:i,options:{passive:!0}},{target:a,type:"touchcancel",listener:i,options:{passive:!0}}];this.addTemporaryEvents(l),0===e.dragStartPixels&&this.onCommonMove(r,this.touchStart,e.eElement)},t.prototype.onMouseDown=function(e,t){var o=this,r=t;if((!e.skipMouseEvent||!e.skipMouseEvent(t))&&!r._alreadyProcessedByDragService&&(r._alreadyProcessedByDragService=!0,0===t.button)){this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=t;var n=this.gridOptionsWrapper.getDocument(),i=function(t){return o.onMouseMove(t,e.eElement)},s=function(t){return o.onMouseUp(t,e.eElement)},a=function(e){return e.preventDefault()},l=n,u=[{target:l,type:"mousemove",listener:i},{target:l,type:"mouseup",listener:s},{target:l,type:"contextmenu",listener:a}];this.addTemporaryEvents(u),0===e.dragStartPixels&&this.onMouseMove(t,e.eElement)}},t.prototype.addTemporaryEvents=function(e){e.forEach((function(e){var t=e.target,o=e.type,r=e.listener,n=e.options;t.addEventListener(o,r,n)})),this.dragEndFunctions.push((function(){e.forEach((function(e){var t=e.target,o=e.type,r=e.listener,n=e.options;t.removeEventListener(o,r,n)}))}))},t.prototype.isEventNearStartEvent=function(e,t){var o=this.currentDragParams.dragStartPixels,r=n(o)?o:4;return ai(e,t,r)},t.prototype.getFirstActiveTouch=function(e){for(var t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null},t.prototype.onCommonMove=function(e,t,o){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(e,t))return;this.dragging=!0;var r={type:lt.EVENT_DRAG_STARTED,target:o};this.eventService.dispatchEvent(r),this.currentDragParams.onDragStart(t),this.currentDragParams.onDragging(t)}this.currentDragParams.onDragging(e)},t.prototype.onTouchMove=function(e,t){var o=this.getFirstActiveTouch(e.touches);o&&this.onCommonMove(o,this.touchStart,t)},t.prototype.onMouseMove=function(e,t){(this.gridOptionsWrapper.isEnableCellTextSelect()||qt())&&"mousemove"===e.type&&e.cancelable&&this.mouseEventService.isEventFromThisGrid(e)&&!this.isOverFormFieldElement(e)&&e.preventDefault(),this.onCommonMove(e,this.mouseStartEvent,t)},t.prototype.isOverFormFieldElement=function(e){var t,o,r=e.target,n=null===(t=r)||void 0===t?void 0:t.tagName.toLocaleLowerCase();return!!(null===(o=n)||void 0===o?void 0:o.match("^a$|textarea|input|select|button"))},t.prototype.onTouchUp=function(e,t){var o=this.getFirstActiveTouch(e.changedTouches);o||(o=this.touchLastTime),this.onUpCommon(o,t)},t.prototype.onMouseUp=function(e,t){this.onUpCommon(e,t)},t.prototype.onUpCommon=function(e,t){if(this.dragging){this.dragging=!1,this.currentDragParams.onDragStop(e);var o={type:lt.EVENT_DRAG_STOPPED,target:t};this.eventService.dispatchEvent(o)}this.mouseStartEvent=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach((function(e){return e()})),this.dragEndFunctions.length=0},Il([ne("loggerFactory")],t.prototype,"loggerFactory",void 0),Il([ne("mouseEventService")],t.prototype,"mouseEventService",void 0),Il([te],t.prototype,"init",null),Il([oe],t.prototype,"removeAllListeners",null),t=Il([re("dragService")],t),t}(rt),Fl=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ll=function(){return Ll=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},Ll.apply(this,arguments)},Ml=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},xl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allColumnFilters=new Map,t.activeAggregateFilters=[],t.activeColumnFilters=[],t.quickFilter=null,t.quickFilterParts=null,t.processingFilterChange=!1,t}var o;return Fl(t,e),o=t,t.prototype.init=function(){var e=this;this.addManagedListener(this.eventService,lt.EVENT_GRID_COLUMNS_CHANGED,(function(){return e.onColumnsChanged()})),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_VALUE_CHANGED,(function(){return e.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_PIVOT_CHANGED,(function(){return e.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_PIVOT_MODE_CHANGED,(function(){return e.refreshFiltersForAggregations()})),this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsWrapper.isAllowShowChangeAfterFilter(),this.externalFilterPresent=this.gridOptionsWrapper.isExternalFilterPresent()},t.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(" "):null},t.prototype.setFilterModel=function(e){var t=this,o=[],r=this.getFilterModel();if(e){var n=di(Object.keys(e));this.allColumnFilters.forEach((function(r,i){var s=e[i];o.push(t.setModelOnFilterWrapper(r.filterPromise,s)),n.delete(i)})),n.forEach((function(r){var n=t.columnModel.getPrimaryColumn(r)||t.columnModel.getGridColumn(r);if(n)if(n.isFilterAllowed()){var i=t.getOrCreateFilterWrapper(n,"NO_UI");i?o.push(t.setModelOnFilterWrapper(i.filterPromise,e[r])):console.warn("AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: "+r)}else console.warn("AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: "+r);else console.warn("AG Grid: setFilterModel() - no column found for colId: "+r)}))}else this.allColumnFilters.forEach((function(e){o.push(t.setModelOnFilterWrapper(e.filterPromise,null))}));wi.all(o).then((function(){var e=t.getFilterModel(),o=[];t.allColumnFilters.forEach((function(t,n){var i=r?r[n]:null,s=e?e[n]:null;yi.jsonEquals(i,s)||o.push(t.column)})),o.length>0&&t.onFilterChanged({columns:o})}))},t.prototype.setModelOnFilterWrapper=function(e,t){return new wi((function(o){e.then((function(e){"function"!==typeof e.setModel&&(console.warn("AG Grid: filter missing setModel method, which is needed for setFilterModel"),o()),(e.setModel(t)||wi.resolve()).then((function(){return o()}))}))}))},t.prototype.getFilterModel=function(){var e={};return this.allColumnFilters.forEach((function(t,o){var r=t.filterPromise,i=r.resolveNow(null,(function(e){return e}));if(null==i)return null;if("function"===typeof i.getModel){var s=i.getModel();n(s)&&(e[o]=s)}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))},o=!!this.gridOptionsWrapper.getGroupAggFiltering(),r=function(t){var r=!t.isPrimary();if(r)return!0;var n=!e.columnModel.isPivotActive(),i=t.isValueActive();return!(!i||!n)&&(!!e.columnModel.isPivotMode()||o)};this.allColumnFilters.forEach((function(o){if(o.filterPromise.resolveNow(!1,t)){var n=o.filterPromise.resolveNow(null,(function(e){return e}));r(o.column)?e.activeAggregateFilters.push(n):e.activeColumnFilters.push(n)}}))},t.prototype.updateFilterFlagInColumns=function(e,t){this.allColumnFilters.forEach((function(o){var r=o.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}));o.column.setFilterActive(r,e,t)}))},t.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.isExternalFilterPresent()},t.prototype.doColumnFiltersPass=function(e,t,o){for(var r=e.data,n=e.aggData,i=o?this.activeAggregateFilters:this.activeColumnFilters,s=o?n:r,a=0;a<i.length;a++){var l=i[a];if(null!=l&&l!==t){if("function"!==typeof l.doesFilterPass)throw new Error("Filter is missing method doesFilterPass");if(!l.doesFilterPass({node:e,data:s}))return!1}}return!0},t.prototype.parseQuickFilter=function(e){return n(e)?this.gridOptionsWrapper.isRowModelDefault()?e.toUpperCase():(console.warn("AG Grid - Quick filtering only works with the Client-Side Row Model"),null):null},t.prototype.setQuickFilter=function(e){if(null==e||"string"===typeof e){var t=this.parseQuickFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setQuickFilterParts(),this.onFilterChanged())}else console.warn("AG Grid - setQuickFilter() only supports string inputs, received: "+typeof e)},t.prototype.refreshFiltersForAggregations=function(){var e=this.gridOptionsWrapper.getGroupAggFiltering();e&&this.onFilterChanged()},t.prototype.callOnFilterChangedOutsideRenderCycle=function(e){var t=this;void 0===e&&(e={});var o=function(){return t.onFilterChanged(e)};this.rowRenderer.isRefreshInProgress()?setTimeout(o,0):o()},t.prototype.onFilterChanged=function(e){void 0===e&&(e={});var t=e.filterInstance,o=e.additionalEventAttributes,r=e.columns;this.updateActiveFilters(),this.updateFilterFlagInColumns("filterChanged",o),this.externalFilterPresent=this.gridOptionsWrapper.isExternalFilterPresent(),this.allColumnFilters.forEach((function(e){e.filterPromise&&e.filterPromise.then((function(e){e&&e!==t&&e.onAnyFilterChanged&&e.onAnyFilterChanged()}))}));var n={type:lt.EVENT_FILTER_CHANGED,columns:r||[]};o&&P(n,o),this.processingFilterChange=!0,this.eventService.dispatchEvent(n),this.processingFilterChange=!1},t.prototype.isSuppressFlashingCellsBecauseFiltering=function(){return!this.allowShowChangeAfterFilter&&this.processingFilterChange},t.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},t.prototype.doesRowPassOtherFilters=function(e,t){return this.doesRowPassFilter({rowNode:t,filterInstanceToSkip:e})},t.prototype.doesRowPassQuickFilterNoCache=function(e,t){var o=this,r=this.columnModel.getAllColumnsForQuickFilter();return r.some((function(r){var i=o.getQuickFilterTextForColumn(r,e);return n(i)&&i.indexOf(t)>=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,o=this.gridOptionsWrapper.isCacheQuickFilter();return this.quickFilterParts.every((function(r){return o?t.doesRowPassQuickFilterCache(e,r):t.doesRowPassQuickFilterNoCache(e,r)}))},t.prototype.doesRowPassAggregateFilters=function(e){return!(this.isAggregateFilterPresent()&&!this.doAggregateFiltersPass(e.rowNode,e.filterInstanceToSkip))},t.prototype.doesRowPassFilter=function(e){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(e.rowNode))&&(!(this.isExternalFilterPresent()&&!this.gridOptionsWrapper.doesExternalFilterPass(e.rowNode))&&!(this.isColumnFilterPresent()&&!this.doColumnFiltersPass(e.rowNode,e.filterInstanceToSkip)))},t.prototype.getQuickFilterTextForColumn=function(e,t){var o=this.valueService.getValue(e,t,!0),r=e.getColDef();if(r.getQuickFilterText){var i={value:o,node:t,data:t.data,column:e,colDef:r,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};o=r.getQuickFilterText(i)}return n(o)?o.toString().toUpperCase():null},t.prototype.aggregateRowForQuickFilter=function(e){var t=this,r=[],i=this.columnModel.getAllColumnsForQuickFilter();i.forEach((function(o){var i=t.getQuickFilterTextForColumn(o,e);n(i)&&r.push(i)})),e.quickFilterAggregateText=r.join(o.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),this.updateActiveFilters()},t.prototype.createValueGetter=function(e){var t=this;return function(o){var r=o.node;return t.valueService.getValue(e,r,!0)}},t.prototype.getFilterComponent=function(e,t,o){var r;if(void 0===o&&(o=!0),o)return(null===(r=this.getOrCreateFilterWrapper(e,t))||void 0===r?void 0:r.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){if(!e.isFilterAllowed())return null;var o=this.cachedFilter(e);return o?"NO_UI"!==t&&this.putIntoGui(o,t):(o=this.createFilterWrapper(e,t),this.allColumnFilters.set(e.getColId(),o)),o},t.prototype.cachedFilter=function(e){return this.allColumnFilters.get(e.getColId())},t.prototype.createFilterInstance=function(e){var t,o=this,r=ge.isRegistered(ue.SetFilterModule)?"agSetColumnFilter":"agTextColumnFilter",n=e.getColDef(),i=Ll(Ll({},this.createFilterParams(e,n)),{filterModifiedCallback:function(){var r={type:lt.EVENT_FILTER_MODIFIED,column:e,filterInstance:t};o.eventService.dispatchEvent(r)},filterChangedCallback:function(r){var n={filterInstance:t,additionalEventAttributes:r,columns:[e]};o.callOnFilterChangedOutsideRenderCycle(n)},doesRowPassOtherFilter:function(e){return o.doesRowPassOtherFilters(t,e)}}),s=this.userComponentFactory.getFilterDetails(n,i,r);if(!s)return null;var a=s.newAgStackInstance();return a&&a.then((function(e){return t=e})),a},t.prototype.createFilterParams=function(e,t){var o={api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),column:e,colDef:m(t),rowModel:this.rowModel,filterChangedCallback:function(){},filterModifiedCallback:function(){},valueGetter:this.createValueGetter(e),context:this.gridOptionsWrapper.getContext(),doesRowPassOtherFilter:function(){return!0}};return o},t.prototype.createFilterWrapper=function(e,t){var o={column:e,filterPromise:null,compiledElement:null,guiPromise:wi.resolve(null)};return o.filterPromise=this.createFilterInstance(e),o.filterPromise&&this.putIntoGui(o,t),o},t.prototype.putIntoGui=function(e,t){var o=this,r=document.createElement("div");r.className="ag-filter",e.guiPromise=new wi((function(i){e.filterPromise.then((function(s){var a=s.getGui();n(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=br(a)),r.appendChild(a),i(r);var l={type:lt.EVENT_FILTER_OPENED,column:e.column,source:t,eGui:r};o.eventService.dispatchEvent(l)}))}))},t.prototype.onColumnsChanged=function(){var e=this,t=[];this.allColumnFilters.forEach((function(o,r){var n;n=o.column.isPrimary()?e.columnModel.getPrimaryColumn(r):e.columnModel.getGridColumn(r),n||(t.push(o.column),e.disposeFilterWrapper(o,"filterDestroyed"))})),t.length>0&&this.onFilterChanged({columns:t})},t.prototype.destroyFilter=function(e,t){void 0===t&&(t="api");var o=this.allColumnFilters.get(e.getColId());o&&(this.disposeFilterWrapper(o,t),this.onFilterChanged({columns:[e]}))},t.prototype.disposeFilterWrapper=function(e,t){var o=this;e.filterPromise.then((function(r){(r.setModel(null)||wi.resolve()).then((function(){o.getContext().destroyBean(r),e.column.setFilterActive(!1,t),o.allColumnFilters.delete(e.column.getColId())}))}))},t.prototype.destroy=function(){var t=this;e.prototype.destroy.call(this),this.allColumnFilters.forEach((function(e){return t.disposeFilterWrapper(e,"filterDestroyed")}))},t.QUICK_FILTER_SEPARATOR="\n",Ml([ne("valueService")],t.prototype,"valueService",void 0),Ml([ne("columnModel")],t.prototype,"columnModel",void 0),Ml([ne("rowModel")],t.prototype,"rowModel",void 0),Ml([ne("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Ml([ne("rowRenderer")],t.prototype,"rowRenderer",void 0),Ml([te],t.prototype,"init",null),Ml([oe],t.prototype,"destroy",null),t=o=Ml([re("filterManager")],t),t}(rt),Hl=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Vl=function(e){function t(t,o){var r=e.call(this,t)||this;return r.ctrl=o,r}return Hl(t,e),t.prototype.getCtrl=function(){return this.ctrl},t}(Di),Wl=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),kl=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Bl=function(e){function t(o){return e.call(this,t.TEMPLATE,o)||this}return Wl(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),o={addOrRemoveCssClass:function(t,o){return e.addOrRemoveCssClass(t,o)},addOrRemoveBodyCssClass:function(t,o){return e.eFloatingFilterBody.classList.toggle(t,o)},addOrRemoveButtonWrapperCssClass:function(t,o){return e.eButtonWrapper.classList.toggle(t,o)},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(o,t,this.eButtonShowMainFilter,this.eFloatingFilterBody)},t.prototype.setCompDetails=function(e){var t=this;this.compPromise=e.newAgStackInstance(),this.compPromise.then((function(e){return t.afterCompCreated(e)}))},t.prototype.afterCompCreated=function(e){var t=this;e&&(this.addDestroyFunc((function(){return t.context.destroyBean(e)})),this.isAlive()&&(this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached()))},t.TEMPLATE='<div class="ag-header-cell ag-floating-filter" role="gridcell" tabindex="-1">\n <div ref="eFloatingFilterBody" role="presentation"></div>\n <div class="ag-floating-filter-button ag-hidden" ref="eButtonWrapper" role="presentation">\n <button type="button" aria-label="Open Filter Menu" class="ag-floating-filter-button-button" ref="eButtonShowMainFilter" tabindex="-1"></button>\n </div>\n </div>',kl([Ai("eFloatingFilterBody")],t.prototype,"eFloatingFilterBody",void 0),kl([Ai("eButtonWrapper")],t.prototype,"eButtonWrapper",void 0),kl([Ai("eButtonShowMainFilter")],t.prototype,"eButtonShowMainFilter",void 0),kl([te],t.prototype,"postConstruct",null),t}(Vl),jl=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ul=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s};(function(e){e["AUTO_HEIGHT"]="ag-layout-auto-height",e["NORMAL"]="ag-layout-normal",e["PRINT"]="ag-layout-print"})(Al||(Al={}));var zl,Kl=function(e){function t(t){var o=e.call(this)||this;return o.view=t,o}return jl(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_DOM_LAYOUT,this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},t.prototype.updateLayoutClasses=function(){var e=this.gridOptionsWrapper.getDomLayout(),t={autoHeight:e===fe.DOM_LAYOUT_AUTO_HEIGHT,normal:e===fe.DOM_LAYOUT_NORMAL,print:e===fe.DOM_LAYOUT_PRINT},o=t.autoHeight?Al.AUTO_HEIGHT:t.print?Al.PRINT:Al.NORMAL;this.view.updateLayoutClasses(o,t)},Ul([ne("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Ul([te],t.prototype,"postConstruct",null),t}(rt),Yl=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ql=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Xl=function(e){function t(t){var o=e.call(this)||this;return o.scrollLeft=-1,o.nextScrollTop=-1,o.scrollTop=-1,o.eBodyViewport=t,o.resetLastHorizontalScrollElementDebounced=z(o.resetLastHorizontalScrollElement.bind(o),500),o}return Yl(t,e),t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.addManagedListener(this.eventService,lt.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.getFakeHScrollCtrl();this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(),"scroll",this.onCenterViewportScroll.bind(this)),this.addManagedListener(e.getViewport(),"scroll",this.onFakeHorizontalScroll.bind(this));var t=this.gridOptionsWrapper.isDebounceVerticalScrollbar()?z(this.onVerticalScroll.bind(this),100):this.onVerticalScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",t)},t.prototype.onDisplayedColumnsWidthChanged=function(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},t.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){var t=null==this.centerRowContainerCtrl;if(!t){void 0===e&&(e=this.centerRowContainerCtrl.getCenterViewportScrollLeft());var o=this.enableRtl?e:-e,r=this.ctrlsService.getTopCenterRowContainerCtrl(),n=this.ctrlsService.getStickyTopCenterRowContainerCtrl(),i=this.ctrlsService.getBottomCenterRowContainerCtrl(),s=this.ctrlsService.getFakeHScrollCtrl(),a=this.ctrlsService.getHeaderRowContainerCtrl();a.setHorizontalScroll(o),i.setContainerTranslateX(o),r.setContainerTranslateX(o),n.setContainerTranslateX(o);var l=this.centerRowContainerCtrl.getViewportElement(),u=this.lastHorizontalScrollElement===l,p=u?s.getViewport():this.centerRowContainerCtrl.getViewportElement();Er(p,Math.abs(e),this.enableRtl)}},t.prototype.isControllingScroll=function(e){return this.lastHorizontalScrollElement?e===this.lastHorizontalScrollElement:(this.lastHorizontalScrollElement=e,!0)},t.prototype.onFakeHorizontalScroll=function(){var e=this.ctrlsService.getFakeHScrollCtrl().getViewport();this.isControllingScroll(e)&&this.onBodyHorizontalScroll(e)},t.prototype.onCenterViewportScroll=function(){var e=this.centerRowContainerCtrl.getViewportElement();this.isControllingScroll(e)&&this.onBodyHorizontalScroll(e)},t.prototype.onBodyHorizontalScroll=function(e){var t=this.centerRowContainerCtrl.getViewportElement(),o=t.scrollLeft;this.shouldBlockScrollUpdate("horizontal",o,!0)||(this.doHorizontalScroll(Math.round(wr(e,this.enableRtl))),this.resetLastHorizontalScrollElementDebounced())},t.prototype.onVerticalScroll=function(){var e=this.eBodyViewport.scrollTop;this.shouldBlockScrollUpdate("vertical",e,!0)||(this.animationFrameService.setScrollTop(e),this.nextScrollTop=e,this.gridOptionsWrapper.isSuppressAnimationFrame()?(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()):this.animationFrameService.schedule())},t.prototype.resetLastHorizontalScrollElement=function(){this.lastHorizontalScrollElement=null},t.prototype.doHorizontalScroll=function(e){var t=this.ctrlsService.getFakeHScrollCtrl().getViewport(),o=wr(t,this.enableRtl);this.scrollLeft===e&&e===o||(this.scrollLeft=e,this.fireScrollEvent("horizontal"),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.onHorizontalViewportChanged())},t.prototype.fireScrollEvent=function(e){var t=this,o={type:lt.EVENT_BODY_SCROLL,direction:e,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(o),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout((function(){var e=Object.assign({},o,{type:lt.EVENT_BODY_SCROLL_END});t.eventService.dispatchEvent(e)}),100)},t.prototype.shouldBlockScrollUpdate=function(e,t,o){if(void 0===o&&(o=!1),o&&!Zt())return!1;if("vertical"===e){var r=gr(this.eBodyViewport),n=this.eBodyViewport.scrollHeight;if(t<0||t+r>n)return!0}if("horizontal"===e){var i=this.centerRowContainerCtrl.getCenterWidth(),s=this.centerRowContainerCtrl.getViewportElement().scrollWidth;if(this.enableRtl&&Cr()){if(t>0)return!0}else if(t<0)return!0;if(Math.abs(t)+i>s)return!0}return!1},t.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent("vertical")},t.prototype.onHorizontalViewportChanged=function(){this.centerRowContainerCtrl.onHorizontalViewportChanged()},t.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onBodyHorizontalScroll(this.centerRowContainerCtrl.getViewportElement())},t.prototype.executeAnimationFrameScroll=function(){var e=this.scrollTop!=this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e},t.prototype.setHorizontalScrollPosition=function(e){var t=0,o=this.centerRowContainerCtrl.getViewportElement().scrollWidth-this.centerRowContainerCtrl.getCenterWidth();this.shouldBlockScrollUpdate("horizontal",e)&&(e=this.enableRtl&&Cr()?e>0?0:o:Math.min(Math.max(e,t),o)),Er(this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)},t.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},t.prototype.getVScrollPosition=function(){var e={top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight};return e},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 o=this.rowModel.getRowCount(),r=-1,n=0;n<o;n++){var i=this.rowModel.getRow(n);if("function"===typeof e){var s=e;if(i&&s(i)){r=n;break}}else if(e===i||e===i.data){r=n;break}}r>=0&&this.ensureIndexVisible(r,t)},t.prototype.ensureIndexVisible=function(e,t){if(this.gridOptionsWrapper.getDomLayout()!==fe.DOM_LAYOUT_PRINT){var o=this.paginationProxy.getRowCount();if("number"!==typeof e||e<0||e>=o)console.warn("invalid row index for ensureIndexVisible: "+e);else{var r=this.gridOptionsWrapper.isPagination(),n=r&&!this.gridOptionsWrapper.isSuppressPaginationPanel();n||this.paginationProxy.goToPageWithIndex(e);var i,s=this.ctrlsService.getGridBodyCtrl(),a=s.getStickyTopHeight(),l=this.paginationProxy.getRow(e);do{var u=l.rowTop,p=l.rowHeight,c=this.paginationProxy.getPixelOffset(),d=l.rowTop-c,h=d+l.rowHeight,f=this.getVScrollPosition(),g=this.heightScaler.getDivStretchOffset(),v=f.top+g,y=f.bottom+g,m=y-v,C=this.heightScaler.getScrollPositionForPixel(d),w=this.heightScaler.getScrollPositionForPixel(h-m),E=Math.min((C+w)/2,d),R=v+a>d,O=y<h,S=null;"top"===t?S=C:"bottom"===t?S=w:"middle"===t?S=E:R?S=C-a:O&&(S=w),null!==S&&(this.eBodyViewport.scrollTop=S,this.rowRenderer.redrawAfterScroll()),i=u!==l.rowTop||p!==l.rowHeight}while(i);this.animationFrameService.flushAllFrames()}}},t.prototype.ensureColumnVisible=function(e,t){void 0===t&&(t="auto");var o=this.columnModel.getGridColumn(e);if(o&&!o.isPinned()&&this.columnModel.isColumnDisplayed(o)){var r=this.getPositionedHorizontalScroll(o,t);null!==r&&this.centerRowContainerCtrl.setCenterViewportScrollLeft(r),this.centerRowContainerCtrl.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}},t.prototype.getPositionedHorizontalScroll=function(e,t){var o=this.isColumnOutsideViewport(e),r=o.columnBeforeStart,n=o.columnAfterEnd,i=this.centerRowContainerCtrl.getCenterWidth()<e.getActualWidth(),s=this.centerRowContainerCtrl.getCenterWidth(),a=this.enableRtl,l=(a?r:n)||i,u=a?n:r;"auto"!==t&&(l="start"===t,u="end"===t);var p="middle"===t;if(l||u||p){var c=this.getColumnBounds(e),d=c.colLeft,h=c.colMiddle,f=c.colRight;return p?h-s/2:l?a?f:d:a?d-s:f-s}return null},t.prototype.isColumnOutsideViewport=function(e){var t=this.getViewportBounds(),o=t.start,r=t.end,n=this.getColumnBounds(e),i=n.colLeft,s=n.colRight,a=this.enableRtl,l=a?o>s:r<s,u=a?r<i:o>i;return{columnBeforeStart:l,columnAfterEnd:u}},t.prototype.getColumnBounds=function(e){var t=this.enableRtl,o=this.columnModel.getBodyContainerWidth(),r=e.getActualWidth(),n=e.getLeft(),i=t?-1:1,s=t?o-n:n,a=s+r*i,l=s+r/2*i;return{colLeft:s,colMiddle:l,colRight:a}},t.prototype.getViewportBounds=function(){var e=this.centerRowContainerCtrl.getCenterWidth(),t=this.centerRowContainerCtrl.getCenterViewportScrollLeft(),o=t,r=e+t;return{start:o,end:r,width:e}},ql([ne("ctrlsService")],t.prototype,"ctrlsService",void 0),ql([ne("animationFrameService")],t.prototype,"animationFrameService",void 0),ql([ne("paginationProxy")],t.prototype,"paginationProxy",void 0),ql([ne("rowModel")],t.prototype,"rowModel",void 0),ql([ne("rowContainerHeightService")],t.prototype,"heightScaler",void 0),ql([ne("rowRenderer")],t.prototype,"rowRenderer",void 0),ql([ne("columnModel")],t.prototype,"columnModel",void 0),ql([te],t.prototype,"postConstruct",null),t}(rt),Ql=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 o=t||this.shouldSkipVerticalScroll();if(!o||!this.shouldSkipHorizontalScroll()){var r=this.scrollContainer.getBoundingClientRect(),n=this.scrollByTick;this.tickLeft=e.clientX<r.left+n,this.tickRight=e.clientX>r.right-n,this.tickUp=e.clientY<r.top+n&&!o,this.tickDown=e.clientY>r.bottom-n&&!o,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 o=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(o-e),this.tickRight&&this.setHorizontalPosition(o+e)}this.onScrollCallback&&this.onScrollCallback()},e.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},e}(),Jl=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Zl=function(){return Zl=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},Zl.apply(this,arguments)},$l=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},eu=function(e,t){var o="function"===typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,n,i=o.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=i.next()).done)s.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(o=i["return"])&&o.call(i)}finally{if(n)throw n.error}}return s},tu=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(eu(arguments[t]));return e},ou=function(e){function t(t){var o=e.call(this)||this;return o.isMultiRowDrag=!1,o.isGridSorted=!1,o.isGridFiltered=!1,o.isRowGroupActive=!1,o.eContainer=t,o}return Jl(t,e),t.prototype.postConstruct=function(){var e=this;this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel);var t=function(){e.onSortChanged(),e.onFilterChanged(),e.onRowGroupChanged()};this.addManagedListener(this.eventService,lt.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,lt.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,lt.EVENT_MODEL_UPDATED,(function(){t()})),t(),this.ctrlsService.whenReady((function(){var t=e.ctrlsService.getGridBodyCtrl();e.autoScrollService=new Ql({scrollContainer:t.getBodyViewportElement(),scrollAxis:"y",getVerticalPosition:function(){return t.getScrollFeature().getVScrollPosition().top},setVerticalPosition:function(e){return t.getScrollFeature().setVerticalScrollPosition(e)},onScrollCallback:function(){e.onDragging(e.lastDraggingEvent)}})}))},t.prototype.onSortChanged=function(){this.isGridSorted=this.sortController.isSortActive()},t.prototype.onFilterChanged=function(){this.isGridFiltered=this.filterManager.isAnyFilterPresent()},t.prototype.onRowGroupChanged=function(){var e=this.columnModel.getRowGroupColumns();this.isRowGroupActive=!s(e)},t.prototype.getContainer=function(){return this.eContainer},t.prototype.isInterestedIn=function(e){return e===_a.RowDrag},t.prototype.getIconName=function(){var e=this.gridOptionsWrapper.isRowDragManaged();return e&&this.shouldPreventRowMove()?xa.ICON_NOT_ALLOWED:xa.ICON_MOVE},t.prototype.shouldPreventRowMove=function(){return this.isGridSorted||this.isGridFiltered||this.isRowGroupActive},t.prototype.getRowNodes=function(e){var t=this;if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];var o=this.gridOptionsWrapper.isRowDragMultiRow(),r=tu(this.selectionService.getSelectedNodes()).sort((function(e,o){return null==e.rowIndex||null==o.rowIndex?0:t.getRowIndexNumber(e)-t.getRowIndexNumber(o)})),n=e.dragItem.rowNode;return o&&-1!==r.indexOf(n)?(this.isMultiRowDrag=!0,r):(this.isMultiRowDrag=!1,[n])},t.prototype.onDragEnter=function(e){e.dragItem.rowNodes=this.getRowNodes(e),this.dispatchGridEvent(lt.EVENT_ROW_DRAG_ENTER,e),this.getRowNodes(e).forEach((function(e){e.setDragging(!0)})),this.onEnterOrDragging(e)},t.prototype.onDragging=function(e){this.onEnterOrDragging(e)},t.prototype.isFromThisGrid=function(e){var t=e.dragSource.dragSourceDomDataKey;return t===this.gridOptionsWrapper.getDomDataKey()},t.prototype.isDropZoneWithinThisGrid=function(e){var t=this.ctrlsService.getGridBodyCtrl(),o=t.getGui(),r=e.dropZoneTarget;return!o.contains(r)},t.prototype.onEnterOrDragging=function(e){this.dispatchGridEvent(lt.EVENT_ROW_DRAG_MOVE,e),this.lastDraggingEvent=e;var t=this.mouseEventService.getNormalisedPosition(e).y,o=this.gridOptionsWrapper.isRowDragManaged();o&&this.doManagedDrag(e,t),this.autoScrollService.check(e.event)},t.prototype.doManagedDrag=function(e,t){var o=this.isFromThisGrid(e),r=this.gridOptionsWrapper.isRowDragManaged(),n=e.dragItem.rowNodes;r&&this.shouldPreventRowMove()||(this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()||!o?this.isDropZoneWithinThisGrid(e)||this.clientSideRowModel.highlightRowAtPixel(n[0],t):this.moveRows(n,t))},t.prototype.getRowIndexNumber=function(e){return parseInt(Ee(e.getRowIndexString().split("-")),10)},t.prototype.moveRowAndClearHighlight=function(e){var t=this,o=this.clientSideRowModel.getLastHighlightedRowNode(),r=o&&o.highlighted===fs.Below,n=this.mouseEventService.getNormalisedPosition(e).y,i=e.dragItem.rowNodes,s=r?1:0;if(this.isFromThisGrid(e))i.forEach((function(e){e.rowTop<n&&(s-=1)})),this.moveRows(i,n,s);else{var a=this.gridOptionsWrapper.getRowIdFunc(),l=this.clientSideRowModel.getRowIndexAtPixel(n)+1;this.clientSideRowModel.getHighlightPosition(n)===fs.Above&&l--,this.clientSideRowModel.updateRowData({add:i.map((function(e){return e.data})).filter((function(e){return!t.clientSideRowModel.getRowNode(a?a({data:e,level:0}):e.id)})),addIndex:l})}this.clearRowHighlight()},t.prototype.clearRowHighlight=function(){this.clientSideRowModel.highlightRowAtPixel(null)},t.prototype.moveRows=function(e,t,o){void 0===o&&(o=0);var r=this.clientSideRowModel.ensureRowsAtPixel(e,t,o);r&&(this.focusService.clearFocusedCell(),this.rangeService&&this.rangeService.removeAllCellRanges())},t.prototype.addRowDropZone=function(e){var t=this;if(e.getContainer())if(this.dragAndDropService.findExternalZone(e))console.warn("AG Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.");else{var o={getContainer:e.getContainer};e.fromGrid?(e.fromGrid=void 0,o=e):(e.onDragEnter&&(o.onDragEnter=function(o){e.onDragEnter(t.draggingToRowDragEvent(lt.EVENT_ROW_DRAG_ENTER,o))}),e.onDragLeave&&(o.onDragLeave=function(o){e.onDragLeave(t.draggingToRowDragEvent(lt.EVENT_ROW_DRAG_LEAVE,o))}),e.onDragging&&(o.onDragging=function(o){e.onDragging(t.draggingToRowDragEvent(lt.EVENT_ROW_DRAG_MOVE,o))}),e.onDragStop&&(o.onDragStop=function(o){e.onDragStop(t.draggingToRowDragEvent(lt.EVENT_ROW_DRAG_END,o))})),this.dragAndDropService.addDropTarget(Zl({isInterestedIn:function(e){return e===_a.RowDrag},getIconName:function(){return xa.ICON_MOVE},external:!0},o))}else x((function(){return console.warn("AG Grid: addRowDropZone - A container target needs to be provided")}),"add-drop-zone-empty-target")},t.prototype.getRowDropZone=function(e){var t=this,o=this.getContainer.bind(this),r=this.onDragEnter.bind(this),n=this.onDragLeave.bind(this),i=this.onDragging.bind(this),s=this.onDragStop.bind(this);return e?{getContainer:o,onDragEnter:e.onDragEnter?function(o){r(o),e.onDragEnter(t.draggingToRowDragEvent(lt.EVENT_ROW_DRAG_ENTER,o))}:r,onDragLeave:e.onDragLeave?function(o){n(o),e.onDragLeave(t.draggingToRowDragEvent(lt.EVENT_ROW_DRAG_LEAVE,o))}:n,onDragging:e.onDragging?function(o){i(o),e.onDragging(t.draggingToRowDragEvent(lt.EVENT_ROW_DRAG_MOVE,o))}:i,onDragStop:e.onDragStop?function(o){s(o),e.onDragStop(t.draggingToRowDragEvent(lt.EVENT_ROW_DRAG_END,o))}:s,fromGrid:!0}:{getContainer:o,onDragEnter:r,onDragLeave:n,onDragging:i,onDragStop:s,fromGrid:!0}},t.prototype.draggingToRowDragEvent=function(e,t){var o,r,n=this.mouseEventService.getNormalisedPosition(t).y,i=n>this.paginationProxy.getCurrentPageHeight(),s=-1;switch(i||(s=this.rowModel.getRowIndexAtPixel(n),o=this.rowModel.getRow(s)),t.vDirection){case ba.Down:r="down";break;case ba.Up:r="up";break;default:r=null;break}var a={type:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),event:t.event,node:t.dragItem.rowNode,nodes:t.dragItem.rowNodes,overIndex:s,overNode:o,y:n,vDirection:r};return a},t.prototype.dispatchGridEvent=function(e,t){var o=this.draggingToRowDragEvent(e,t);this.eventService.dispatchEvent(o)},t.prototype.onDragLeave=function(e){this.dispatchGridEvent(lt.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.gridOptionsWrapper.isRowDragManaged()&&this.clearRowHighlight(),this.isFromThisGrid(e)&&(this.isMultiRowDrag=!1)},t.prototype.onDragStop=function(e){this.dispatchGridEvent(lt.EVENT_ROW_DRAG_END,e),this.stopDragging(e),!this.gridOptionsWrapper.isRowDragManaged()||!this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()&&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)}))},$l([ne("dragAndDropService")],t.prototype,"dragAndDropService",void 0),$l([ne("rowModel")],t.prototype,"rowModel",void 0),$l([ne("paginationProxy")],t.prototype,"paginationProxy",void 0),$l([ne("columnModel")],t.prototype,"columnModel",void 0),$l([ne("focusService")],t.prototype,"focusService",void 0),$l([ne("sortController")],t.prototype,"sortController",void 0),$l([ne("filterManager")],t.prototype,"filterManager",void 0),$l([ne("selectionService")],t.prototype,"selectionService",void 0),$l([ne("mouseEventService")],t.prototype,"mouseEventService",void 0),$l([ne("ctrlsService")],t.prototype,"ctrlsService",void 0),$l([ie("rangeService")],t.prototype,"rangeService",void 0),$l([te],t.prototype,"postConstruct",null),t}(rt),ru=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),nu=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s}; /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */(function(e){e["ANIMATION_ON"]="ag-row-animation",e["ANIMATION_OFF"]="ag-row-no-animation"})(zl||(zl={}));var iu,su,au="ag-selectable",lu="ag-force-vertical-scroll",uu="ag-column-moving",pu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stickyTopHeight=0,t}return ru(t,e),t.prototype.getScrollFeature=function(){return this.bodyScrollFeature},t.prototype.getBodyViewportElement=function(){return this.eBodyViewport},t.prototype.setComp=function(e,t,o,r,n,i){this.comp=e,this.eGridBody=t,this.eBodyViewport=o,this.eTop=r,this.eBottom=n,this.eStickyTop=i,this.setCellTextSelection(this.gridOptionsWrapper.isEnableCellTextSelect()),this.createManagedBean(new Kl(this.comp)),this.bodyScrollFeature=this.createManagedBean(new Xl(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([r,o,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,lt.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,lt.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,lt.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,lt.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 o=t.target,r=hr(o,"ag-root",e);e.classList.toggle("ag-has-focus",!r)})),t.addManagedListener(e,"focusout",(function(t){var o=t.target,r=t.relatedTarget,n=e.contains(r),i=hr(r,"ag-root",e),s=hr(o,"ag-root",e);s||n&&!i||e.classList.remove("ag-has-focus")}))}))},t.prototype.setColumnMovingCss=function(e){this.comp.setColumnMovingCss(e?uu:null,e)},t.prototype.setCellTextSelection=function(e){void 0===e&&(e=!1);var t=e?au:null;this.comp.setCellSelectableCss(t,e)},t.prototype.onScrollVisibilityChanged=function(){var e=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(e),this.setStickyTopWidth(e)},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.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus()){var t=function(t){var r=t.relatedTarget;if(null!==eo(r)){var n=o.some((function(e){return e.contains(r)}))&&e.mouseEventService.isElementInThisGrid(r);if(!n){var i=e.popupService;n=i.getActivePopups().some((function(e){return e.contains(r)}))||i.isElementWithinCustomPopup(r)}n||e.rowRenderer.stopEditing()}else e.rowRenderer.stopEditing()},o=[this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop];o.forEach((function(o){return e.addManagedListener(o,"focusout",t)}))}},t.prototype.updateRowCount=function(){var e=this.headerNavigationService.getHeaderRowCount(),t=this.rowModel.isLastRowIndexKnown()?this.rowModel.getRowCount():-1,o=-1===t?-1:e+t;this.comp.setRowCount(o)},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.gridOptionsWrapper.isAlwaysShowVerticalScroll(),t=e?lu:null,o=this.gridOptionsWrapper.getDomLayout()===fe.DOM_LAYOUT_NORMAL;return this.comp.setAlwaysVerticalScrollClass(t,e),e||o&&xr(this.eBodyViewport)},t.prototype.setupRowAnimationCssClass=function(){var e=this,t=function(){var t=e.gridOptionsWrapper.isAnimateRows()&&!e.rowContainerHeightService.isStretching(),o=t?zl.ANIMATION_ON:zl.ANIMATION_OFF;e.comp.setRowAnimationCssOnBodyViewport(o,t)};t(),this.addManagedListener(this.eventService,lt.EVENT_HEIGHT_SCALE_CHANGED,t)},t.prototype.getGridBodyElement=function(){return this.eGridBody},t.prototype.addBodyViewportListener=function(){var e=this,t=function(t,o,r){if(t||r){if(e.gridOptionsWrapper.isPreventDefaultOnContextMenu()){var n=t||r;n.preventDefault()}var i=(t||o).target;i!==e.eBodyViewport&&i!==e.ctrlsService.getCenterRowContainerCtrl().getViewportElement()||e.contextMenuFactory&&(t?e.contextMenuFactory.onContextMenu(t,null,null,null,null,e.eGridBody):r&&e.contextMenuFactory.onContextMenu(null,r,null,null,null,e.eGridBody))}};this.addManagedListener(this.eBodyViewport,"contextmenu",t),this.mockContextMenuForIPad(t),this.addManagedListener(this.eBodyViewport,"wheel",this.onBodyViewportWheel.bind(this)),this.addManagedListener(this.eStickyTop,"wheel",this.onStickyTopWheel.bind(this))},t.prototype.mockContextMenuForIPad=function(e){if(Zt()){var t=new Ks(this.eBodyViewport),o=function(t){e(void 0,t.touchStart,t.touchEvent)};this.addManagedListener(t,Ks.EVENT_LONG_TAP,o),this.addDestroyFunc((function(){return t.destroy()}))}},t.prototype.onBodyViewportWheel=function(e){this.gridOptionsWrapper.isSuppressScrollWhenPopupsAreOpen()&&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 ou(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 o=e.getPinnedBottomTotalHeight();o&&(o+=1),this.comp.setTopHeight(t),this.comp.setBottomHeight(o),this.comp.setTopDisplay(t?"inherit":"none"),this.comp.setBottomDisplay(o?"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.gridOptionsWrapper.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(),t=e.getHeaderHeight(),o=this.pinnedRowModel.getPinnedTopTotalHeight(),r=0;t>0&&(r+=t+1),o>0&&(r+=o+1),this.comp.setStickyTopTop(r+"px")},t.prototype.sizeColumnsToFit=function(e,t){var o=this,r=this.isVerticalScrollShowing(),n=r?this.gridOptionsWrapper.getScrollbarWidth():0,i=vr(this.eBodyViewport),s=i-n;s>0?this.columnModel.sizeColumnsToFit(s,"sizeColumnsToFit",!1,e):void 0===t?window.setTimeout((function(){o.sizeColumnsToFit(e,100)}),0):100===t?window.setTimeout((function(){o.sizeColumnsToFit(e,500)}),100):500===t?window.setTimeout((function(){o.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)},t.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},nu([ne("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),nu([ne("ctrlsService")],t.prototype,"ctrlsService",void 0),nu([ne("columnModel")],t.prototype,"columnModel",void 0),nu([ne("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),nu([ie("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),nu([ne("headerNavigationService")],t.prototype,"headerNavigationService",void 0),nu([ne("dragAndDropService")],t.prototype,"dragAndDropService",void 0),nu([ne("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),nu([ne("rowRenderer")],t.prototype,"rowRenderer",void 0),nu([ne("popupService")],t.prototype,"popupService",void 0),nu([ne("mouseEventService")],t.prototype,"mouseEventService",void 0),nu([ne("rowModel")],t.prototype,"rowModel",void 0),t}(rt);(function(e){e[e["FILL"]=0]="FILL",e[e["RANGE"]=1]="RANGE"})(iu||(iu={})),function(e){e[e["VALUE"]=0]="VALUE",e[e["DIMENSION"]=1]="DIMENSION"}(su||(su={})); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */ var cu,du="ag-cell-range-selected",hu="ag-cell-range-chart",fu="ag-cell-range-single-cell",gu="ag-cell-range-chart-category",vu="ag-cell-range-handle",yu="ag-cell-range-top",mu="ag-cell-range-right",Cu="ag-cell-range-bottom",wu="ag-cell-range-left",Eu=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(du,0!==this.rangeCount),this.cellComp.addOrRemoveCssClass(du+"-1",1===this.rangeCount),this.cellComp.addOrRemoveCssClass(du+"-2",2===this.rangeCount),this.cellComp.addOrRemoveCssClass(du+"-3",3===this.rangeCount),this.cellComp.addOrRemoveCssClass(du+"-4",this.rangeCount>=4),this.cellComp.addOrRemoveCssClass(hu,this.hasChartRange),In(this.eGui,this.rangeCount>0||void 0),this.cellComp.addOrRemoveCssClass(fu,this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle())},e.prototype.updateRangeBorders=function(){var e=this.getRangeBorders(),t=this.isSingleCell(),o=!t&&e.top,r=!t&&e.right,n=!t&&e.bottom,i=!t&&e.left;this.cellComp.addOrRemoveCssClass(yu,o),this.cellComp.addOrRemoveCssClass(mu,r),this.cellComp.addOrRemoveCssClass(Cu,n),this.cellComp.addOrRemoveCssClass(wu,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 Ie([su.DIMENSION,su.VALUE],e.type)}))},e.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},e.prototype.getRangeBorders=function(){var e,t,o=this,r=this.beans.gridOptionsWrapper.isEnableRtl(),n=!1,i=!1,s=!1,a=!1,l=this.cellCtrl.getCellPosition().column,u=this.beans,p=u.rangeService,c=u.columnModel;r?(e=c.getDisplayedColAfter(l),t=c.getDisplayedColBefore(l)):(e=c.getDisplayedColBefore(l),t=c.getDisplayedColAfter(l));var d=p.getCellRanges().filter((function(e){return p.isCellInSpecificRange(o.cellCtrl.getCellPosition(),e)}));e||(a=!0),t||(i=!0);for(var h=0;h<d.length;h++){if(n&&i&&s&&a)break;var f=d[h],g=p.getRangeStartRow(f),v=p.getRangeEndRow(f);!n&&this.beans.rowPositionUtils.sameRow(g,this.cellCtrl.getCellPosition())&&(n=!0),!s&&this.beans.rowPositionUtils.sameRow(v,this.cellCtrl.getCellPosition())&&(s=!0),!a&&e&&f.columns.indexOf(e)<0&&(a=!0),!i&&t&&f.columns.indexOf(t)<0&&(i=!0)}return{top:n,right:i,bottom:s,left:a}},e.prototype.refreshHandle=function(){if(this.beans.rangeService){var e=this.shouldHaveSelectionHandle();this.selectionHandle&&!e&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),e&&this.addSelectionHandle(),this.cellComp.addOrRemoveCssClass(vu,!!this.selectionHandle)}},e.prototype.shouldHaveSelectionHandle=function(){var e=this.beans,t=e.gridOptionsWrapper,o=e.rangeService,r=o.getCellRanges(),n=r.length;if(this.rangeCount<1||n<1)return!1;var i=Ee(r),s=this.cellCtrl.getCellPosition(),a=t.isEnableFillHandle()&&!this.cellCtrl.isSuppressFillHandle(),l=t.isEnableRangeHandle(),u=1===n&&!this.cellCtrl.isEditing()&&(a||l);if(this.hasChartRange){var p=r[0].type===su.DIMENSION,c=p&&o.isCellInSpecificRange(s,r[0]);this.cellComp.addOrRemoveCssClass(gu,c),u=i.type===su.VALUE}return u&&null!=i.endRow&&o.isContiguousRange(i)&&o.isBottomRightCell(i,s)},e.prototype.addSelectionHandle=function(){var e=this.beans,t=e.gridOptionsWrapper,o=e.rangeService,r=Ee(o.getCellRanges()).type,n=t.isEnableFillHandle()&&i(r),s=n?iu.FILL:iu.RANGE;this.selectionHandle&&this.selectionHandle.getType()!==s&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),this.selectionHandle||(this.selectionHandle=this.beans.selectionHandleFactory.createSelectionHandle(s)),this.selectionHandle.refresh(this.cellCtrl)},e.prototype.destroy=function(){this.beans.context.destroyBean(this.selectionHandle)},e}(),Ru=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ou=function(e){function t(t,o){var r=e.call(this)||this;return r.cellCtrl=t,r.beans=o,r.column=t.getColumn(),r.rowNode=t.getRowNode(),r.setupColSpan(),r.setupRowSpan(),r}return Ru(t,e),t.prototype.setupRowSpan=function(){this.rowSpan=this.column.getRowSpan(this.rowNode)},t.prototype.setComp=function(e){this.eGui=e,this.onLeftChanged(),this.onWidthChanged(),this.applyRowSpan()},t.prototype.onDisplayColumnsChanged=function(){var e=this.getColSpanningList();Re(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())},t.prototype.setupColSpan=function(){null!=this.column.getColDef().colSpan&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListener(this.beans.eventService,lt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addManagedListener(this.beans.eventService,lt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)))},t.prototype.onWidthChanged=function(){if(this.eGui){var e=this.getCellWidth();this.eGui.style.width=e+"px"}},t.prototype.getCellWidth=function(){return this.colsSpanning?this.colsSpanning.reduce((function(e,t){return e+t.getActualWidth()}),0):this.column.getActualWidth()},t.prototype.getColSpanningList=function(){var e=this.column.getColSpan(this.rowNode),t=[];if(1===e)t.push(this.column);else for(var o=this.column,r=this.column.getPinned(),n=0;o&&n<e;n++){if(t.push(o),o=this.beans.columnModel.getDisplayedColAfter(o),!o||i(o))break;if(r!==o.getPinned())break}return t},t.prototype.onLeftChanged=function(){if(this.eGui){var e=this.modifyLeftForPrintLayout(this.getCellLeft());this.eGui.style.left=e+"px"}},t.prototype.getCellLeft=function(){var e;return e=this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?Ee(this.colsSpanning):this.column,e.getLeft()},t.prototype.modifyLeftForPrintLayout=function(e){if(!this.cellCtrl.isPrintLayout()||this.column.getPinned()===fe.PINNED_LEFT)return e;var t=this.beans.columnModel.getDisplayedColumnsLeftWidth();if(this.column.getPinned()===fe.PINNED_RIGHT){var o=this.beans.columnModel.getBodyContainerWidth();return t+o+(e||0)}return t+(e||0)},t.prototype.applyRowSpan=function(){if(1!==this.rowSpan){var e=this.beans.gridOptionsWrapper.getRowHeightAsNumber(),t=e*this.rowSpan;this.eGui.style.height=t+"px",this.eGui.style.zIndex="1"}},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(rt),Su=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),_u=function(e){function t(t,o){var r=e.call(this)||this;return r.staticClasses=[],r.cellCtrl=t,r.beans=o,r.column=t.getColumn(),r.rowNode=t.getRowNode(),r}return Su(t,e),t.prototype.setComp=function(e){this.cellComp=e,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()},t.prototype.applyCellClassRules=function(){var e=this,t=this.column.getColDef(),o={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:t,column:this.column,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};this.beans.stylingService.processClassRules(t.cellClassRules,o,(function(t){return e.cellComp.addOrRemoveCssClass(t,!0)}),(function(t){return e.cellComp.addOrRemoveCssClass(t,!1)}))},t.prototype.applyUserStyles=function(){var e=this.column.getColDef();if(e.cellStyle){var t;if("function"===typeof e.cellStyle){var o={column:this.column,value:this.cellCtrl.getValue(),colDef:e,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},r=e.cellStyle;t=r(o)}else t=e.cellStyle;this.cellComp.setUserStyles(t)}},t.prototype.applyClassesFromColDef=function(){var e=this,t=this.column.getColDef(),o={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,column:this.column,colDef:t,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};this.staticClasses.length&&this.staticClasses.forEach((function(t){return e.cellComp.addOrRemoveCssClass(t,!1)})),this.staticClasses=this.beans.stylingService.getStaticCellClasses(t,o),this.staticClasses.length&&this.staticClasses.forEach((function(t){return e.cellComp.addOrRemoveCssClass(t,!0)}))},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(rt),bu=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Pu=function(e){function t(t,o){var r=e.call(this)||this;return r.ctrl=t,r.beans=o,r}return bu(t,e),t.prototype.setComp=function(e){this.comp=e,this.setupTooltip()},t.prototype.setupTooltip=function(){this.browserTooltips=this.beans.gridOptionsWrapper.isEnableBrowserTooltips(),this.updateTooltipText(),this.browserTooltips?this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0):this.createTooltipFeatureIfNeeded()},t.prototype.updateTooltipText=function(){this.tooltip=this.ctrl.getTooltipValue()},t.prototype.createTooltipFeatureIfNeeded=function(){var e=this;if(null==this.genericTooltipFeature){var t={getTooltipParams:function(){return e.getTooltipParams()},getGui:function(){return e.ctrl.getGui()}};this.genericTooltipFeature=this.createManagedBean(new Si(t),this.beans.context)}},t.prototype.refreshToolTip=function(){this.updateTooltipText(),this.browserTooltips&&this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0)},t.prototype.getTooltipParams=function(){var e=this.ctrl,t=e.getColumn?e.getColumn():void 0,o=e.getColDef?e.getColDef():void 0,r=e.getRowNode?e.getRowNode():void 0;return{location:e.getLocation(),colDef:o,column:t,rowIndex:e.getRowIndex?e.getRowIndex():void 0,node:r,data:r?r.data:void 0,value:this.getTooltipText(),valueFormatted:e.getValueFormatted?e.getValueFormatted():void 0}},t.prototype.getTooltipText=function(){return this.tooltip},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(rt),Tu=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Du=function(){function e(){}return e.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail(),this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel),this.gridOptionsWrapper.isRowModelServerSide()&&(this.serverSideRowModel=this.rowModel)},Tu([ne("resizeObserverService")],e.prototype,"resizeObserverService",void 0),Tu([ne("paginationProxy")],e.prototype,"paginationProxy",void 0),Tu([ne("context")],e.prototype,"context",void 0),Tu([ne("columnApi")],e.prototype,"columnApi",void 0),Tu([ne("gridApi")],e.prototype,"gridApi",void 0),Tu([ne("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Tu([ne("expressionService")],e.prototype,"expressionService",void 0),Tu([ne("rowRenderer")],e.prototype,"rowRenderer",void 0),Tu([ne("templateService")],e.prototype,"templateService",void 0),Tu([ne("valueService")],e.prototype,"valueService",void 0),Tu([ne("eventService")],e.prototype,"eventService",void 0),Tu([ne("columnModel")],e.prototype,"columnModel",void 0),Tu([ne("headerNavigationService")],e.prototype,"headerNavigationService",void 0),Tu([ne("navigationService")],e.prototype,"navigationService",void 0),Tu([ne("columnAnimationService")],e.prototype,"columnAnimationService",void 0),Tu([ie("rangeService")],e.prototype,"rangeService",void 0),Tu([ne("focusService")],e.prototype,"focusService",void 0),Tu([ie("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),Tu([ne("popupService")],e.prototype,"popupService",void 0),Tu([ne("valueFormatterService")],e.prototype,"valueFormatterService",void 0),Tu([ne("stylingService")],e.prototype,"stylingService",void 0),Tu([ne("columnHoverService")],e.prototype,"columnHoverService",void 0),Tu([ne("userComponentFactory")],e.prototype,"userComponentFactory",void 0),Tu([ne("userComponentRegistry")],e.prototype,"userComponentRegistry",void 0),Tu([ne("animationFrameService")],e.prototype,"animationFrameService",void 0),Tu([ne("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Tu([ne("sortController")],e.prototype,"sortController",void 0),Tu([ne("filterManager")],e.prototype,"filterManager",void 0),Tu([ne("rowContainerHeightService")],e.prototype,"rowContainerHeightService",void 0),Tu([ne("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),Tu([ne("cellPositionUtils")],e.prototype,"cellPositionUtils",void 0),Tu([ne("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),Tu([ne("selectionService")],e.prototype,"selectionService",void 0),Tu([ie("selectionHandleFactory")],e.prototype,"selectionHandleFactory",void 0),Tu([ne("rowCssClassCalculator")],e.prototype,"rowCssClassCalculator",void 0),Tu([ne("rowModel")],e.prototype,"rowModel",void 0),Tu([ne("ctrlsService")],e.prototype,"ctrlsService",void 0),Tu([ne("ctrlsFactory")],e.prototype,"ctrlsFactory",void 0),Tu([ne("agStackComponentsRegistry")],e.prototype,"agStackComponentsRegistry",void 0),Tu([ne("valueCache")],e.prototype,"valueCache",void 0),Tu([ne("rowNodeEventThrottle")],e.prototype,"rowNodeEventThrottle",void 0),Tu([te],e.prototype,"postConstruct",null),e=Tu([re("beans")],e),e}(),Au=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Nu=function(e){function t(t,o,r){var n=e.call(this)||this;return n.cellCtrl=t,n.beans=o,n.column=r,n}return Au(t,e),t.prototype.onMouseEvent=function(e,t){if(!Ke(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":case"touchstart":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t);break}},t.prototype.onCellClicked=function(e){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(e),void e.preventDefault();var t=this.beans,o=t.eventService,r=t.rangeService,n=t.gridOptionsWrapper,i=e.ctrlKey||e.metaKey;r&&i&&r.getCellRangeCount(this.cellCtrl.getCellPosition())>1&&r.intersectLastRange(!0);var s=this.cellCtrl.createEvent(e,lt.EVENT_CELL_CLICKED);o.dispatchEvent(s);var a=this.column.getColDef();a.onCellClicked&&window.setTimeout((function(){return a.onCellClicked(s)}),0);var l=(n.isSingleClickEdit()||a.singleClickEdit)&&!n.isSuppressClickEdit();l&&this.cellCtrl.startRowOrCellEdit()},t.prototype.isDoubleClickOnIPad=function(){if(!Zt()||Ye("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(),o=this.cellCtrl.createEvent(e,lt.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(o),"function"===typeof t.onCellDoubleClicked&&window.setTimeout((function(){return t.onCellDoubleClicked(o)}),0);var r=!this.beans.gridOptionsWrapper.isSingleClickEdit()&&!this.beans.gridOptionsWrapper.isSuppressClickEdit();r&&this.cellCtrl.startRowOrCellEdit(null,null,e)},t.prototype.onMouseDown=function(e){var t=e.ctrlKey,o=e.metaKey,r=e.shiftKey,n=e.target,i=this.beans,s=i.eventService,a=i.rangeService;if(!this.isRightClickInExistingRange(e)){var l=a&&0!=a.getCellRanges().length;if(!r||!l){var u=(Yt()||qt())&&!this.cellCtrl.isEditing()&&!ur(n);this.cellCtrl.focusCell(u)}if(r&&l&&e.preventDefault(),!this.containsWidget(n)){if(a){var p=this.cellCtrl.getCellPosition();if(r)a.extendLatestRangeToCell(p);else{var c=t||o;a.setRangeToCell(p,c)}}s.dispatchEvent(this.cellCtrl.createEvent(e,lt.EVENT_CELL_MOUSE_DOWN))}}},t.prototype.isRightClickInExistingRange=function(e){var t=this.beans.rangeService;if(t){var o=t.isCellInAnyRange(this.cellCtrl.getCellPosition());if(o&&2===e.button)return!0}return!1},t.prototype.containsWidget=function(e){return hr(e,"ag-selection-checkbox",3)},t.prototype.onMouseOut=function(e){if(!this.mouseStayingInsideCell(e)){var t=this.cellCtrl.createEvent(e,lt.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,lt.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(),o=t.contains(e.target),r=t.contains(e.relatedTarget);return o&&r},t.prototype.destroy=function(){},t}(Du),Iu=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Gu=function(e){function t(t,o,r,n,i){var s=e.call(this)||this;return s.cellCtrl=t,s.beans=o,s.rowNode=n,s.rowCtrl=i,s}return Iu(t,e),t.prototype.setComp=function(e){this.eGui=e},t.prototype.onKeyDown=function(e){var t=e.key;switch(t){case zn.ENTER:this.onEnterKeyDown(e);break;case zn.F2:this.onF2KeyDown(e);break;case zn.ESCAPE:this.onEscapeKeyDown(e);break;case zn.TAB:this.onTabKeyDown(e);break;case zn.BACKSPACE:case zn.DELETE:this.onBackspaceOrDeleteKeyPressed(t,e);break;case zn.DOWN:case zn.UP:case zn.RIGHT:case zn.LEFT:this.onNavigationKeyPressed(e,t);break}},t.prototype.onNavigationKeyPressed=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.onBackspaceOrDeleteKeyPressed=function(e,t){var o=this,r=o.cellCtrl,n=o.beans,i=o.rowNode,s=n.gridOptionsWrapper,a=n.rangeService,l=n.eventService;r.isEditing()||(l.dispatchEvent({type:lt.EVENT_KEY_SHORTCUT_CHANGED_CELL_START}),ii(e,s.isEnableCellEditingOnBackspace())?a&&s.isEnableRangeSelection()?a.clearCellRangeCellValues():r.isCellEditable()&&i.setDataValue(r.getColumn(),null,"cellKeyboardListenerFeature"):r.startRowOrCellEdit(e,void 0,t),l.dispatchEvent({type:lt.EVENT_KEY_SHORTCUT_CHANGED_CELL_END}))},t.prototype.onEnterKeyDown=function(e){this.cellCtrl.isEditing()||this.rowCtrl.isEditing()?this.cellCtrl.stopEditingAndFocus():this.beans.gridOptionsWrapper.isEnterMovesDown()?this.beans.navigationService.navigateToNextCell(null,zn.DOWN,this.cellCtrl.getCellPosition(),!1):(this.cellCtrl.startRowOrCellEdit(zn.ENTER,void 0,e),this.cellCtrl.isEditing()&&e.preventDefault())},t.prototype.onF2KeyDown=function(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(zn.F2,void 0,e)},t.prototype.onEscapeKeyDown=function(e){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},t.prototype.onKeyPress=function(e){var t=e.target,o=t!==this.eGui;if(!o&&!this.cellCtrl.isEditing()){var r=String.fromCharCode(e.charCode);" "===r?this.onSpaceKeyPressed(e):ei(e)&&(this.cellCtrl.startRowOrCellEdit(null,r,e),e.preventDefault())}},t.prototype.onSpaceKeyPressed=function(e){var t=this.beans.gridOptionsWrapper;if(!this.cellCtrl.isEditing()&&t.isRowSelection()){var o=this.rowNode.isSelected(),r=!o;if(r||!t.isSuppressRowDeselection()){var n=this.beans.gridOptionsWrapper.isGroupSelectsFiltered(),i=this.rowNode.setSelectedParams({newValue:r,rangeSelect:e.shiftKey,groupSelectsFiltered:n});void 0===o&&0===i&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:n})}}e.preventDefault()},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(rt),Fu=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Lu=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Mu=function(e){function t(t,o,r,n){var i=e.call(this,'<div class="ag-drag-handle ag-row-drag" draggable="true"></div>')||this;return i.rowNode=t,i.column=o,i.beans=r,i.eCell=n,i}return Fu(t,e),t.prototype.postConstruct=function(){var e=this.getGui();e.appendChild(jn("rowDrag",this.beans.gridOptionsWrapper,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,o=this.column.getColDef().dndSourceOnRowDrag;e.dataTransfer.setDragImage(this.eCell,0,0);var r=function(){try{var o=JSON.stringify(t.rowNode.data);e.dataTransfer.setData("application/json",o),e.dataTransfer.setData("text/plain",o)}catch(r){}};if(o){var n={rowNode:this.rowNode,dragEvent:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};o(n)}else r()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},Lu([te],t.prototype,"postConstruct",null),t}(Di),xu=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Hu=function(){return Hu=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},Hu.apply(this,arguments)},Vu="ag-cell",Wu="ag-cell-auto-height",ku="ag-cell-normal-height",Bu="ag-cell-focus",ju="ag-cell-first-right-pinned",Uu="ag-cell-last-left-pinned",zu="ag-cell-not-inline-editing",Ku="ag-cell-inline-editing",Yu="ag-cell-popup-editing",qu="ag-column-hover",Xu="ag-cell-wrap-text",Qu=0,Ju=function(e){function t(t,o,r,n){var i=e.call(this)||this;return i.suppressRefreshCell=!1,i.onCellCompAttachedFuncs=[],i.column=t,i.rowNode=o,i.beans=r,i.rowCtrl=n,i.instanceId=t.getId()+"-"+Qu++,i.createCellPosition(),i.addFeatures(),i}return xu(t,e),t.prototype.addFeatures=function(){var e=this;this.cellPositionFeature=new Ou(this,this.beans),this.addDestroyFunc((function(){return e.cellPositionFeature.destroy()})),this.cellCustomStyleFeature=new _u(this,this.beans),this.addDestroyFunc((function(){return e.cellCustomStyleFeature.destroy()})),this.cellMouseListenerFeature=new Nu(this,this.beans,this.column),this.addDestroyFunc((function(){return e.cellMouseListenerFeature.destroy()})),this.cellKeyboardListenerFeature=new Gu(this,this.beans,this.column,this.rowNode,this.rowCtrl),this.addDestroyFunc((function(){return e.cellKeyboardListenerFeature.destroy()}));var t=this.beans.rangeService&&this.beans.gridOptionsWrapper.isEnableRangeSelection();t&&(this.cellRangeFeature=new Eu(this.beans,this),this.addDestroyFunc((function(){return e.cellRangeFeature.destroy()}))),this.addTooltipFeature()},t.prototype.addTooltipFeature=function(){var e=this,t=function(){var t=e.column.getColDef(),o=e.rowNode.data;if(t.tooltipField&&n(o))return I(o,t.tooltipField,e.column.isTooltipFieldContainsDots());var r=t.tooltipValueGetter;return r?r({location:"cell",api:e.beans.gridOptionsWrapper.getApi(),columnApi:e.beans.gridOptionsWrapper.getColumnApi(),context:e.beans.gridOptionsWrapper.getContext(),colDef:e.column.getColDef(),column:e.column,rowIndex:e.cellPosition.rowIndex,node:e.rowNode,data:e.rowNode.data,value:e.value,valueFormatted:e.valueFormatted}):null},o={getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getRowIndex:function(){return e.cellPosition.rowIndex},getRowNode:function(){return e.rowNode},getGui:function(){return e.getGui()},getLocation:function(){return"cell"},getTooltipValue:t,getValueFormatted:function(){return e.valueFormatted}};this.tooltipFeature=new Pu(o,this.beans),this.addDestroyFunc((function(){return e.tooltipFeature.destroy()}))},t.prototype.setComp=function(e,t,o,r,n){this.cellComp=e,this.gow=this.beans.gridOptionsWrapper,this.eGui=t,this.printLayout=r,this.updateAndFormatValue(!0),this.addDomData(),this.onCellFocused(),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),o&&this.setupAutoHeight(o),this.setAriaColIndex(),this.gow.isSuppressCellFocus()||this.cellComp.setTabIndex(-1);var i=vt(this.column.getId());this.cellComp.setColId(i),this.cellComp.setRole("gridcell"),this.cellPositionFeature.setComp(t),this.cellCustomStyleFeature.setComp(e),this.tooltipFeature.setComp(e),this.cellKeyboardListenerFeature.setComp(this.eGui),this.cellRangeFeature&&this.cellRangeFeature.setComp(e,t),n&&this.isCellEditable()?this.startEditing():this.showValue(),this.onCellCompAttachedFuncs.length&&(this.onCellCompAttachedFuncs.forEach((function(e){return e()})),this.onCellCompAttachedFuncs=[])},t.prototype.setupAutoHeight=function(e){var t=this;if(this.column.isAutoHeight()){var o=e.parentElement,r=this.beans.gridOptionsWrapper.getRowHeightForNode(this.rowNode).height,n=function(i){if(!t.editing&&t.isAlive()){var s=fr(o),a=s.paddingTop,l=s.paddingBottom,u=e.offsetHeight,p=u+a+l;if(i<5){var c=t.beans.gridOptionsWrapper.getDocument(),d=!c||!c.contains(e),h=0==p;if(d||h)return void t.beans.frameworkOverrides.setTimeout((function(){return n(i+1)}),0)}var f=Math.max(p,r);t.rowNode.setRowAutoHeight(f,t.column)}},i=function(){return n(0)};i();var s=this.beans.resizeObserverService.observeResize(e,i);this.addDestroyFunc((function(){s(),t.rowNode.setRowAutoHeight(void 0,t.column)}))}},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.showValue=function(e){void 0===e&&(e=!1);var t=null!=this.valueFormatted?this.valueFormatted:this.value,o=this.createCellRendererParams(),r=this.beans.userComponentFactory.getCellRendererDetails(this.column.getColDef(),o);this.cellComp.setRenderDetails(r,t,e),this.refreshHandle()},t.prototype.setupControlComps=function(){var e=this.column.getColDef();this.includeSelection=this.isIncludeControl(e.checkboxSelection),this.includeRowDrag=this.isIncludeControl(e.rowDrag),this.includeDndSource=this.isIncludeControl(e.dndSource),this.cellComp.setIncludeSelection(this.includeSelection),this.cellComp.setIncludeDndSource(this.includeDndSource),this.cellComp.setIncludeRowDrag(this.includeRowDrag)},t.prototype.isForceWrapper=function(){var e=this.beans.gridOptionsWrapper.isEnableCellTextSelection()||this.column.isAutoHeight();return e},t.prototype.isIncludeControl=function(e){var t=null!=this.rowNode.rowPinned,o="function"===typeof e,r=!t&&(o||!0===e);return r},t.prototype.refreshShouldDestroy=function(){var e=this.column.getColDef(),t=this.includeSelection!=this.isIncludeControl(e.checkboxSelection),o=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),r=this.includeDndSource!=this.isIncludeControl(e.dndSource);return t||o||r},t.prototype.startEditing=function(e,t,o,r){var n,i,s=this;if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===o&&(o=!1),void 0===r&&(r=null),this.isCellEditable()&&!this.editing)if(this.cellComp){var a=this.createCellEditorParams(e,t,o),l=this.column.getColDef(),u=this.beans.userComponentFactory.getCellEditorDetails(l,a),p=null!=(null===(n=u)||void 0===n?void 0:n.popupFromSelector)?u.popupFromSelector:!!l.cellEditorPopup,c=null!=(null===(i=u)||void 0===i?void 0:i.popupPositionFromSelector)?u.popupPositionFromSelector:l.cellEditorPopupPosition;this.setEditing(!0,p),this.cellComp.setEditDetails(u,p,c);var d=this.createEvent(r,lt.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(d)}else this.onCellCompAttachedFuncs.push((function(){s.startEditing(e,t,o,r)}))},t.prototype.setEditing=function(e,t){void 0===t&&(t=!1),this.editing!==e&&(this.editing=e,this.editingInPopup=t,this.setInlineEditingClass(),this.refreshHandle())},t.prototype.stopRowOrCellEdit=function(e){void 0===e&&(e=!1),this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowCtrl.stopRowEditing(e):this.stopEditing(e)},t.prototype.onPopupEditorClosed=function(){this.isEditing()&&this.stopEditingAndFocus()},t.prototype.takeValueFromCellEditor=function(e){var t={newValueExists:!1};if(e)return t;var o=this.cellComp.getCellEditor();if(!o)return t;var r=o.isCancelAfterEnd&&o.isCancelAfterEnd();if(r)return t;var n=o.getValue();return{newValue:n,newValueExists:!0}},t.prototype.saveNewValue=function(e,t){if(t===e)return!1;if(this.beans.gridOptionsWrapper.isReadOnlyEdit())return this.dispatchEventForSaveValueReadOnly(e,t),!1;this.suppressRefreshCell=!0;var o=this.rowNode.setDataValue(this.column,t);return this.suppressRefreshCell=!1,o},t.prototype.dispatchEventForSaveValueReadOnly=function(e,t){var o=this.rowNode,r={type:lt.EVENT_CELL_EDIT_REQUEST,event:null,rowIndex:o.rowIndex,rowPinned:o.rowPinned,column:this.column,api:this.beans.gridApi,columnApi:this.beans.columnApi,colDef:this.column.getColDef(),context:this.beans.gridOptionsWrapper.getContext(),data:o.data,node:o,oldValue:e,newValue:t,value:t,source:void 0};this.beans.eventService.dispatchEvent(r)},t.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),!this.editing)return!1;var t=this.takeValueFromCellEditor(e),o=t.newValue,r=t.newValueExists,n=this.getValueFromValueService(),i=!1;return r&&(i=this.saveNewValue(n,o)),this.setEditing(!1),this.cellComp.setEditDetails(),this.updateAndFormatValue(),this.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.dispatchEditingStoppedEvent(n,o,!e&&!!i),i},t.prototype.dispatchEditingStoppedEvent=function(e,t,o){var r=Hu(Hu({},this.createEvent(null,lt.EVENT_CELL_EDITING_STOPPED)),{oldValue:e,newValue:t,valueChanged:o});this.beans.eventService.dispatchEvent(r)},t.prototype.setInlineEditingClass=function(){var e=this;if(this.isAlive())if(this.cellComp){var t=this.editing&&!this.editingInPopup,o=this.editing&&this.editingInPopup;this.cellComp.addOrRemoveCssClass(Ku,t),this.cellComp.addOrRemoveCssClass(zu,!t),this.cellComp.addOrRemoveCssClass(Yu,o),this.rowCtrl.setInlineEditingCss(this.editing)}else this.onCellCompAttachedFuncs.push((function(){e.setInlineEditingClass()}))},t.prototype.hackSayEditingInPopup=function(){this.editingInPopup||(this.editingInPopup=!0,this.setInlineEditingClass())},t.prototype.createCellEditorParams=function(e,t,o){var r={value:this.getValueFromValueService(),key:e,eventKey:e,charPress:t,column:this.column,colDef:this.column.getColDef(),rowIndex:this.getCellPosition().rowIndex,node:this.rowNode,data:this.rowNode.data,api:this.beans.gridOptionsWrapper.getApi(),cellStartedEdit:o,columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getGui(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)};return r},t.prototype.createCellRendererParams=function(){var e=this,t=function(t,o){console.warn("AG Grid: since AG Grid v26, params.addRowCompListener() is deprecated. If you need this functionality, please contact AG Grid support and advise why so that we can revert with an appropriate workaround, as we dont have any valid use cases for it. This method was originally provided as a work around to know when cells were destroyed in AG Grid before custom Cell Renderers could be provided."),e.rowCtrl.addEventListener(t,o)},o={value:this.value,valueFormatted:this.valueFormatted,getValue:this.getValueFromValueService.bind(this),setValue:function(t){return e.beans.valueService.setValue(e.rowNode,e.column,t)},formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,pinned:this.column.getPinned(),colDef:this.column.getColDef(),column:this.column,rowIndex:this.getCellPosition().rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.cellComp.getParentOfValue(),registerRowDragger:function(t,o,r,n){return e.registerRowDragger(t,o,n)},addRowCompListener:t};return o},t.prototype.parseValue=function(e){var t=this.column.getColDef(),o={node:this.rowNode,data:this.rowNode.data,oldValue:this.getValue(),newValue:e,colDef:t,column:this.column,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},r=t.valueParser;return n(r)?this.beans.expressionService.evaluate(r,o):e},t.prototype.setFocusOutOnEditor=function(){if(this.editing){var e=this.cellComp.getCellEditor();e&&e.focusOut&&e.focusOut()}},t.prototype.setFocusInOnEditor=function(){if(this.editing){var e=this.cellComp.getCellEditor();e&&e.focusIn?e.focusIn():this.focusCell(!0)}},t.prototype.onCellChanged=function(e){if(this.cellComp){var t=e.column===this.column;t&&this.refreshCell({})}},t.prototype.refreshCell=function(e){if(!this.suppressRefreshCell&&!this.editing&&this.cellComp){var t=this.column.getColDef(),o=null!=e&&!!e.newData,r=null!=e&&!!e.suppressFlash||!!t.suppressCellFlash,n=null==t.field&&null==t.valueGetter&&null==t.showRowGroup,i=e&&e.forceRefresh||n||o,s=this.updateAndFormatValue(),a=i||s;if(a){this.showValue(o);var l=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering(),u=!r&&!l&&(this.beans.gridOptionsWrapper.isEnableCellChangeFlash()||t.enableCellChangeFlash);u&&this.flashCell(),this.cellCustomStyleFeature.applyUserStyles(),this.cellCustomStyleFeature.applyClassesFromColDef()}this.refreshToolTip(),this.cellCustomStyleFeature.applyCellClassRules()}},t.prototype.stopEditingAndFocus=function(e){void 0===e&&(e=!1),this.stopRowOrCellEdit(),this.focusCell(!0),e||this.navigateAfterEdit()},t.prototype.navigateAfterEdit=function(){var e=this.beans.gridOptionsWrapper.isFullRowEdit();if(!e){var t=this.beans.gridOptionsWrapper.isEnterMovesDownAfterEdit();t&&this.beans.navigationService.navigateToNextCell(null,zn.DOWN,this.getCellPosition(),!1)}},t.prototype.flashCell=function(e){var t=e&&e.flashDelay,o=e&&e.fadeDelay;this.animateCell("data-changed",t,o)},t.prototype.animateCell=function(e,t,o){var r=this,i="ag-cell-"+e,s="ag-cell-"+e+"-animation",a=this.beans.gridOptionsWrapper;t||(t=a.getCellFlashDelay()),n(o)||(o=a.getCellFadeDelay()),this.cellComp.addOrRemoveCssClass(i,!0),this.cellComp.addOrRemoveCssClass(s,!1),window.setTimeout((function(){r.isAlive()&&(r.cellComp.addOrRemoveCssClass(i,!1),r.cellComp.addOrRemoveCssClass(s,!0),r.eGui.style.transition="background-color "+o+"ms",window.setTimeout((function(){r.isAlive()&&(r.cellComp.addOrRemoveCssClass(s,!1),r.eGui.style.transition="")}),o))}),t)},t.prototype.onFlashCells=function(e){if(this.cellComp){var t=this.beans.cellPositionUtils.createId(this.getCellPosition()),o=e.cells[t];o&&this.animateCell("highlight")}},t.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},t.prototype.isSuppressFillHandle=function(){return this.column.isSuppressFillHandle()},t.prototype.formatValue=function(e){var t=this.callValueFormatter(e);return null!=t?t:e},t.prototype.callValueFormatter=function(e){return this.beans.valueFormatterService.formatValue(this.column,this.rowNode,e)},t.prototype.updateAndFormatValue=function(e){void 0===e&&(e=!1);var t=this.value,o=this.valueFormatted;this.value=this.getValueFromValueService(),this.valueFormatted=this.callValueFormatter(this.value);var r=!!e||(!this.valuesAreEqual(t,this.value)||this.valueFormatted!=o);return r},t.prototype.valuesAreEqual=function(e,t){var o=this.column.getColDef();return o.equals?o.equals(e,t):e===t},t.prototype.getComp=function(){return this.cellComp},t.prototype.getValueFromValueService=function(){var e=this.rowNode.leafGroup&&this.beans.columnModel.isPivotMode(),t=this.rowNode.group&&this.rowNode.expanded&&!this.rowNode.footer&&!e,o=this.beans.gridOptionsWrapper.isGroupIncludeFooter(),r=this.beans.gridOptionsWrapper.isGroupSuppressBlankHeader(),n=t&&o&&!r,i=this.beans.valueService.getValue(this.column,this.rowNode,!1,n);return i},t.prototype.getValue=function(){return this.value},t.prototype.getValueFormatted=function(){return this.valueFormatted},t.prototype.addDomData=function(){var e=this,o=this.getGui();this.beans.gridOptionsWrapper.setDomData(o,t.DOM_DATA_KEY_CELL_CTRL,this),this.addDestroyFunc((function(){return e.beans.gridOptionsWrapper.setDomData(o,t.DOM_DATA_KEY_CELL_CTRL,null)}))},t.prototype.createEvent=function(e,t){var o={type:t,node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.column.getColDef(),context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridApi,columnApi:this.beans.columnApi,rowPinned:this.rowNode.rowPinned,event:e,rowIndex:this.rowNode.rowIndex};return o},t.prototype.onKeyPress=function(e){this.cellKeyboardListenerFeature.onKeyPress(e)},t.prototype.onKeyDown=function(e){this.cellKeyboardListenerFeature.onKeyDown(e)},t.prototype.onMouseEvent=function(e,t){this.cellMouseListenerFeature.onMouseEvent(e,t)},t.prototype.getGui=function(){return this.eGui},t.prototype.refreshToolTip=function(){this.tooltipFeature.refreshToolTip()},t.prototype.getColSpanningList=function(){return this.cellPositionFeature.getColSpanningList()},t.prototype.onLeftChanged=function(){this.cellComp&&this.cellPositionFeature.onLeftChanged()},t.prototype.onDisplayedColumnsChanged=function(){this.eGui&&this.setAriaColIndex()},t.prototype.setAriaColIndex=function(){var e=this.beans.columnModel.getAriaColumnIndex(this.column);Tn(this.getGui(),e)},t.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},t.prototype.onWidthChanged=function(){return this.cellPositionFeature.onWidthChanged()},t.prototype.getColumn=function(){return this.column},t.prototype.getRowNode=function(){return this.rowNode},t.prototype.getBeans=function(){return this.beans},t.prototype.isPrintLayout=function(){return this.printLayout},t.prototype.appendChild=function(e){this.eGui.appendChild(e)},t.prototype.refreshHandle=function(){this.cellRangeFeature&&this.cellRangeFeature.refreshHandle()},t.prototype.getCellPosition=function(){return this.cellPosition},t.prototype.isEditing=function(){return this.editing},t.prototype.startRowOrCellEdit=function(e,t,o){void 0===o&&(o=null),this.cellComp&&(this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowCtrl.startRowEditing(e,t,this):this.startEditing(e,t,!0,o))},t.prototype.getRowCtrl=function(){return this.rowCtrl},t.prototype.getRowPosition=function(){return{rowIndex:this.cellPosition.rowIndex,rowPinned:this.cellPosition.rowPinned}},t.prototype.updateRangeBordersIfRangeCount=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.updateRangeBordersIfRangeCount()},t.prototype.onRangeSelectionChanged=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},t.prototype.isRangeSelectionEnabled=function(){return null!=this.cellRangeFeature},t.prototype.focusCell=function(e){void 0===e&&(e=!1),this.beans.focusService.setFocusedCell({rowIndex:this.getCellPosition().rowIndex,column:this.column,rowPinned:this.rowNode.rowPinned,forceBrowserFocus:e})},t.prototype.onRowIndexChanged=function(){this.createCellPosition(),this.onCellFocused(),this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},t.prototype.onFirstRightPinnedChanged=function(){if(this.cellComp){var e=this.column.isFirstRightPinned();this.cellComp.addOrRemoveCssClass(ju,e)}},t.prototype.onLastLeftPinnedChanged=function(){if(this.cellComp){var e=this.column.isLastLeftPinned();this.cellComp.addOrRemoveCssClass(Uu,e)}},t.prototype.onCellFocused=function(e){if(this.cellComp&&!this.gow.isSuppressCellFocus()){var t=this.beans.focusService.isCellFocused(this.cellPosition);if(this.cellComp.addOrRemoveCssClass(Bu,t),t&&e&&e.forceBrowserFocus){var o=this.cellComp.getFocusableElement();o.focus({preventScroll:!!e.preventScrollOnBrowserFocus})}var r=this.beans.gridOptionsWrapper.isFullRowEdit();t||r||!this.editing||this.stopRowOrCellEdit()}},t.prototype.createCellPosition=function(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:r(this.rowNode.rowPinned),column:this.column}},t.prototype.applyStaticCssClasses=function(){this.cellComp.addOrRemoveCssClass(Vu,!0),this.cellComp.addOrRemoveCssClass(zu,!0);var e=1==this.column.isAutoHeight();this.cellComp.addOrRemoveCssClass(Wu,e),this.cellComp.addOrRemoveCssClass(ku,!e)},t.prototype.onColumnHover=function(){if(this.cellComp&&this.beans.gridOptionsWrapper.isColumnHoverHighlight()){var e=this.beans.columnHoverService.isHovered(this.column);this.cellComp.addOrRemoveCssClass(qu,e)}},t.prototype.onColDefChanged=function(){this.cellComp&&(this.setWrapText(),this.editing||this.refreshCell({forceRefresh:!0,suppressFlash:!0}))},t.prototype.setWrapText=function(){var e=1==this.column.getColDef().wrapText;this.cellComp.addOrRemoveCssClass(Xu,e)},t.prototype.dispatchCellContextMenuEvent=function(e){var t=this.column.getColDef(),o=this.createEvent(e,lt.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(o),t.onCellContextMenu&&window.setTimeout((function(){return t.onCellContextMenu(o)}),0)},t.prototype.getCellRenderer=function(){return this.cellComp?this.cellComp.getCellRenderer():null},t.prototype.getCellEditor=function(){return this.cellComp?this.cellComp.getCellEditor():null},t.prototype.destroy=function(){this.onCellCompAttachedFuncs=[],e.prototype.destroy.call(this)},t.prototype.createSelectionCheckbox=function(){var e=new Ia;return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e},t.prototype.createDndSource=function(){var e=new Mu(this.rowNode,this.column,this.beans,this.eGui);return this.beans.context.createBean(e),e},t.prototype.registerRowDragger=function(e,t,o){var r=this;if(this.customRowDragComp)this.customRowDragComp.setDragElement(e,t);else{var n=this.createRowDragComp(e,t,o);n&&(this.customRowDragComp=n,this.addDestroyFunc((function(){return r.beans.context.destroyBean(n)})))}},t.prototype.createRowDragComp=function(e,t,o){var r=this,n=this.beans.gridOptionsWrapper.isPagination(),i=this.beans.gridOptionsWrapper.isRowDragManaged(),s=this.beans.gridOptionsWrapper.isRowModelDefault();if(i){if(!s)return void x((function(){return console.warn("AG Grid: managed row dragging is only allowed in the Client Side Row Model")}),"CellComp.addRowDragging");if(n)return void x((function(){return console.warn("AG Grid: managed row dragging is not possible when doing pagination")}),"CellComp.addRowDragging")}var a=new Wa((function(){return r.value}),this.rowNode,this.column,e,t,o);return this.beans.context.createBean(a),a},t.DOM_DATA_KEY_CELL_CTRL="cellCtrl",t}(rt),Zu=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),$u=function(e){var t="function"===typeof Symbol&&Symbol.iterator,o=t&&e[t],r=0;if(o)return o.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ep=function(e,t){var o="function"===typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,n,i=o.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=i.next()).done)s.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(o=i["return"])&&o.call(i)}finally{if(n)throw n.error}}return s},tp=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ep(arguments[t]));return e};(function(e){e["Normal"]="Normal",e["FullWidth"]="FullWidth",e["FullWidthLoading"]="FullWidthLoading",e["FullWidthGroup"]="FullWidthGroup",e["FullWidthDetail"]="FullWidthDetail"})(cu||(cu={}));var op,rp,np=0,ip=function(e){function t(t,o,r,n,i){var s=e.call(this)||this;return s.allRowGuis=[],s.active=!0,s.centerCellCtrls={list:[],map:{}},s.leftCellCtrls={list:[],map:{}},s.rightCellCtrls={list:[],map:{}},s.lastMouseDownOnDragger=!1,s.updateColumnListsPending=!1,s.beans=o,s.rowNode=t,s.paginationPage=s.beans.paginationProxy.getCurrentPage(),s.useAnimationFrameForCreate=n,s.printLayout=i,s.instanceId=t.id+"-"+np++,s.setAnimateFlags(r),s.rowFocused=s.beans.focusService.isRowFocused(s.rowNode.rowIndex,s.rowNode.rowPinned),s.rowLevel=s.beans.rowCssClassCalculator.calculateRowLevel(s.rowNode),s.setRowType(),s.addListeners(),s}return Zu(t,e),t.prototype.isSticky=function(){return this.rowNode.sticky},t.prototype.getBeans=function(){return this.beans},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setComp=function(e,t,o){var r={rowComp:e,element:t,containerType:o};this.allRowGuis.push(r),o===rp.LEFT?this.leftGui=r:o===rp.RIGHT?this.rightGui=r:o===rp.FULL_WIDTH?this.fullWidthGui=r:this.centerGui=r;var n=null!=this.leftGui&&null!=this.rightGui&&null!=this.centerGui,i=null!=this.fullWidthGui;(n||i)&&this.initialiseRowComps(),"FullWidthLoading"!==this.rowType&&this.beans.rowRenderer.dispatchFirstDataRenderedEvent()},t.prototype.isCacheable=function(){return this.rowType===cu.FullWidthDetail&&this.beans.gridOptionsWrapper.isKeepDetailRows()},t.prototype.setCached=function(e){var t=e?"none":"";this.allRowGuis.forEach((function(e){return e.element.style.display=t}))},t.prototype.initialiseRowComps=function(){var e=this,o=this.beans.gridOptionsWrapper;this.onRowHeightChanged(),this.updateRowIndexes(),this.setFocusedClasses(),this.setStylesFromGridOptions(),o.isRowSelection()&&this.rowNode.selectable&&this.onRowSelected(),this.updateColumnLists(!this.useAnimationFrameForCreate),this.slideRowIn&&j(this.onTopChanged.bind(this)),this.fadeRowIn&&j((function(){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)}))}));var r=this.getRowBusinessKey(),n=vt(this.rowNode.id),i=vt(r);this.allRowGuis.forEach((function(r){var s=r.rowComp;s.setRole("row");var a=e.getInitialRowClasses(r.containerType);a.forEach((function(e){return s.addOrRemoveCssClass(e,!0)})),e.rowNode.group&&wn(r.element,1==e.rowNode.expanded),null!=n&&s.setRowId(n),null!=i&&s.setRowBusinessKey(i),e.isFullWidth()&&!e.beans.gridOptionsWrapper.isSuppressCellFocus()&&s.setTabIndex(-1),o.setDomData(r.element,t.DOM_DATA_KEY_ROW_CTRL,e),e.addDestroyFunc((function(){return o.setDomData(r.element,t.DOM_DATA_KEY_ROW_CTRL,null)})),e.useAnimationFrameForCreate?e.beans.animationFrameService.createTask(e.addHoverFunctionality.bind(e,r.element),e.rowNode.rowIndex,"createTasksP2"):e.addHoverFunctionality(r.element),e.isFullWidth()&&e.setupFullWidth(r),o.isRowDragEntireRow()&&e.addRowDraggerToRow(r),e.useAnimationFrameForCreate&&e.beans.animationFrameService.addDestroyTask((function(){e.isAlive()&&r.rowComp.addOrRemoveCssClass("ag-after-created",!0)}))})),this.executeProcessRowPostCreateFunc()},t.prototype.addRowDraggerToRow=function(e){var t=this.beans.gridOptionsWrapper;if(t.isEnableRangeSelection())x((function(){console.warn("AG Grid: Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `enableRangeSelection: true`")}),"rowDragAndRangeSelectionEnabled");else{var o=t.getLocaleTextFunc(),r=new Wa((function(){return"1 "+o("rowDragRow","row")}),this.rowNode,void 0,e.element,void 0,!0);this.createManagedBean(r,this.beans.context)}},t.prototype.setupFullWidth=function(e){var t=this.getPinnedForContainer(e.containerType),o=this.createFullWidthParams(e.element,t),r=ge.isRegistered(ue.MasterDetailModule);if(this.rowType!=cu.FullWidthDetail||r){var n;switch(this.rowType){case cu.FullWidthDetail:n=this.beans.userComponentFactory.getFullWidthDetailCellRendererDetails(o);break;case cu.FullWidthGroup:n=this.beans.userComponentFactory.getFullWidthGroupCellRendererDetails(o);break;case cu.FullWidthLoading:n=this.beans.userComponentFactory.getFullWidthLoadingCellRendererDetails(o);break;default:n=this.beans.userComponentFactory.getFullWidthCellRendererDetails(o);break}e.rowComp.showFullWidth(n)}else ge.isPackageBased()?console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with ag-grid-enterprise package."):console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with AG Grid Enterprise Module "+ue.MasterDetailModule)},t.prototype.isPrintLayout=function(){return this.printLayout},t.prototype.getCellElement=function(e){var t=this.getCellCtrl(e);return t?t.getGui():null},t.prototype.executeProcessRowPostCreateFunc=function(){var e=this.beans.gridOptionsWrapper.getProcessRowPostCreateFunc();if(e){var t={eRow:this.centerGui?this.centerGui.element:void 0,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)};e(t)}},t.prototype.setRowType=function(){var e=this.rowNode.stub,t=this.rowNode.isFullWidthCell(),o=this.beans.doingMasterDetail&&this.rowNode.detail,r=this.beans.columnModel.isPivotMode(),n=!!this.rowNode.group&&!this.rowNode.footer,i=n&&this.beans.gridOptionsWrapper.isGroupUseEntireRow(r);this.rowType=e?cu.FullWidthLoading:o?cu.FullWidthDetail:t?cu.FullWidth:i?cu.FullWidthGroup:cu.Normal},t.prototype.updateColumnLists=function(e){var t=this;if(void 0===e&&(e=!1),!this.isFullWidth()){var o=e||this.beans.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout;o?this.updateColumnListsImpl():this.updateColumnListsPending||(this.beans.animationFrameService.createTask((function(){t.active&&t.updateColumnListsImpl()}),this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0)}},t.prototype.createCellCtrls=function(e,t,o){var r=this;void 0===o&&(o=null);var n={list:[],map:{}},i=function(e,t){n.list.push(t),n.map[e]=t};return t.forEach((function(t){var o=t.getInstanceId(),n=e.map[o];n||(n=new Ju(t,r.rowNode,r.beans,r)),i(o,n)})),e.list.forEach((function(e){var t=null!=n.map[e.getColumn().getInstanceId()];if(!t){var s=!r.isCellEligibleToBeRemoved(e,o);s?i(e.getColumn().getInstanceId(),e):e.destroy()}})),n},t.prototype.updateColumnListsImpl=function(){var e=this;this.updateColumnListsPending=!1;var t=this.beans.columnModel;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,t.getAllDisplayedColumns()),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{var o=t.getViewportCenterColumnsForRow(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,o);var r=t.getDisplayedLeftColumnsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,r,fe.PINNED_LEFT);var n=t.getDisplayedRightColumnsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,n,fe.PINNED_RIGHT)}this.allRowGuis.forEach((function(t){var o=t.containerType===rp.LEFT?e.leftCellCtrls:t.containerType===rp.RIGHT?e.rightCellCtrls:e.centerCellCtrls;t.rowComp.setCellCtrls(o.list)}))},t.prototype.isCellEligibleToBeRemoved=function(e,t){var o=!0,r=!1,n=e.getColumn();if(n.getPinned()!=t)return o;var i=e.isEditing(),s=this.beans.focusService.isCellFocused(e.getCellPosition()),a=i||s;if(a){var l=e.getColumn(),u=this.beans.columnModel.getAllDisplayedColumns(),p=u.indexOf(l)>=0;return p?r:o}return o},t.prototype.setAnimateFlags=function(e){if(!this.isSticky()&&e){var t=n(this.rowNode.oldRowTop);this.slideRowIn=t,this.fadeRowIn=!t}else this.slideRowIn=!1,this.fadeRowIn=!1},t.prototype.isEditing=function(){return this.editingRow},t.prototype.stopRowEditing=function(e){this.stopEditing(e)},t.prototype.isFullWidth=function(){return this.rowType!==cu.Normal},t.prototype.getRowType=function(){return this.rowType},t.prototype.refreshFullWidth=function(){var e=this,t=function(t,o){if(!t)return!0;var r=t.rowComp.getFullWidthCellRenderer();if(!r)return!1;if(!r.refresh)return!1;var n=e.createFullWidthParams(t.element,o),i=r.refresh(n);return i},o=t(this.fullWidthGui,null),r=t(this.centerGui,null),n=t(this.leftGui,fe.PINNED_LEFT),i=t(this.rightGui,fe.PINNED_RIGHT),s=o&&r&&n&&i;return s},t.prototype.addListeners=function(){this.addManagedListener(this.rowNode,Ta.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var e=this.beans.eventService;this.addManagedListener(e,lt.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(e,lt.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(e,lt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(e,lt.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(e,lt.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addManagedListener(e,lt.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(e,lt.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(e,lt.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,Ta.EVENT_ROW_INDEX_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onRowIndexChanged()}))})),this.addManagedListener(this.rowNode,Ta.EVENT_CELL_CHANGED,(function(t){e.getAllCellCtrls().forEach((function(e){return e.onCellChanged(t)}))}))},t.prototype.onRowNodeDataChanged=function(e){this.getAllCellCtrls().forEach((function(t){return t.refreshCell({suppressFlash:!e.update,newData:!e.update})})),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 o=e===fs.Above,r=e===fs.Below;t.rowComp.addOrRemoveCssClass("ag-row-highlight-above",o),t.rowComp.addOrRemoveCssClass("ag-row-highlight-below",r)}))},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(o){o.rowComp.addOrRemoveCssClass("ag-row-group",e),o.rowComp.addOrRemoveCssClass("ag-row-group-expanded",e&&t),o.rowComp.addOrRemoveCssClass("ag-row-group-contracted",e&&!t),wn(o.element,e&&t)}))},t.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},t.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists()},t.prototype.getRowPosition=function(){return{rowPinned:r(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)})),o=t?t.element:null,r=o===e.target;if(r){var n=this.rowNode,i=this.beans.focusService.getFocusedCell(),s={rowIndex:n.rowIndex,rowPinned:n.rowPinned,column:i&&i.column};this.beans.navigationService.navigateToNextCell(e,e.key,s,!0),e.preventDefault()}},t.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented&&!Ke(e)){var t=this.allRowGuis.find((function(t){return t.element.contains(e.target)})),o=t?t.element:null,r=o===e.target,n=null;r||(n=this.beans.focusService.findNextFocusableElement(o,!1,e.shiftKey)),(this.isFullWidth()&&r||!n)&&this.beans.navigationService.onTabKeyDown(this,e)}},t.prototype.onFullWidthRowFocused=function(e){var t,o=this.rowNode,r=this.isFullWidth()&&e.rowIndex===o.rowIndex&&e.rowPinned==o.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",r),r&&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 o={list:[],map:{}};return e.list.forEach((function(e){e!==t&&(o.list.push(e),o.map[e.getInstanceId()]=e)})),o},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);break}},t.prototype.createRowEvent=function(e,t){return{type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),event:t}},t.prototype.createRowEventWithSource=function(e,t){var o=this.createRowEvent(e,t);return o.source=this,o},t.prototype.onRowDblClick=function(e){if(!Ke(e)){var t=this.createRowEventWithSource(lt.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)}},t.prototype.onRowMouseDown=function(e){if(this.lastMouseDownOnDragger=hr(e.target,"ag-row-drag",3),this.isFullWidth()){var t=this.rowNode,o=this.beans.columnModel;this.beans.rangeService&&this.beans.rangeService.removeAllCellRanges(),this.beans.focusService.setFocusedCell({rowIndex:t.rowIndex,column:o.getAllDisplayedColumns()[0],rowPinned:t.rowPinned,forceBrowserFocus:!0})}},t.prototype.onRowClick=function(e){var t=Ke(e)||this.lastMouseDownOnDragger;if(!t){var o=this.createRowEventWithSource(lt.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(o);var r=e.ctrlKey||e.metaKey,n=e.shiftKey,i=this.beans.gridOptionsWrapper.isGroupSelectsChildren();if(!(i&&this.rowNode.group||!this.rowNode.selectable||this.rowNode.rowPinned||!this.beans.gridOptionsWrapper.isRowSelection()||this.beans.gridOptionsWrapper.isSuppressRowClickSelection())){var s=this.beans.gridOptionsWrapper.isRowMultiSelectWithClick(),a=!this.beans.gridOptionsWrapper.isSuppressRowDeselection();if(this.rowNode.isSelected())s?this.rowNode.setSelectedParams({newValue:!1,event:e}):r?a&&this.rowNode.setSelectedParams({newValue:!1,event:e}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!n,rangeSelect:n,event:e});else{var l=!s&&!r;this.rowNode.setSelectedParams({newValue:!0,clearSelection:l,rangeSelect:n,event:e})}}}},t.prototype.setupDetailRowAutoHeight=function(e){var t=this;if(this.rowType===cu.FullWidthDetail&&this.beans.gridOptionsWrapper.isDetailRowAutoHeight()){var o=function(){var o=e.clientHeight;if(null!=o&&o>0){var r=function(){t.rowNode.setRowHeight(o),t.beans.clientSideRowModel?t.beans.clientSideRowModel.onRowHeightChanged():t.beans.serverSideRowModel&&t.beans.serverSideRowModel.onRowHeightChanged()};t.beans.frameworkOverrides.setTimeout(r,0)}},r=this.beans.resizeObserverService.observeResize(e,o);this.addDestroyFunc(r),o()}},t.prototype.createFullWidthParams=function(e,t){var o=this,r={fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,valueFormatted:this.rowNode.key,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(e,t,r,n){return o.addFullWidthRowDragging(e,t,r,n)}};return r},t.prototype.addFullWidthRowDragging=function(e,t,o,r){if(void 0===o&&(o=""),this.isFullWidth()){var n=new Wa((function(){return o}),this.rowNode,void 0,e,t,r);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,o="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach((function(e){e.rowComp.addOrRemoveCssClass(t,!0),e.rowComp.addOrRemoveCssClass(o,!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,o;if(void 0===e&&(e=!1),!this.stoppingRowEdit){var r=this.getAllCellCtrls(),n=this.editingRow;this.stoppingRowEdit=!0;var i=!1;try{for(var s=$u(r),a=s.next();!a.done;a=s.next()){var l=a.value,u=l.stopEditing(e);n&&!e&&!i&&u&&(i=!0)}}catch(c){t={error:c}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(t)throw t.error}}if(i){var p=this.createRowEvent(lt.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(p)}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(lt.EVENT_ROW_EDITING_STARTED):this.createRowEvent(lt.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(t)},t.prototype.startRowEditing=function(e,t,o,r){if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===o&&(o=null),void 0===r&&(r=null),!this.editingRow){var n=this.getAllCellCtrls().reduce((function(n,i){var s=i===o;return s?i.startEditing(e,t,s,r):i.startEditing(null,null,s,r),!!n||i.isEditing()}),!1);n&&this.setEditingRow(!0)}},t.prototype.getAllCellCtrls=function(){var e=tp(this.centerCellCtrls.list,this.leftCellCtrls.list,this.rightCellCtrls.list);return e},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(){var e=this.processStylesFromGridOptions();this.allRowGuis.forEach((function(t){return t.rowComp.setUserStyles(e)}))},t.prototype.getRowBusinessKey=function(){var e=this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc();if("function"===typeof e)return e(this.rowNode)},t.prototype.getPinnedForContainer=function(e){var t=e===rp.LEFT?fe.PINNED_LEFT:e===rp.RIGHT?fe.PINNED_RIGHT:null;return t},t.prototype.getInitialRowClasses=function(e){var t=this.getPinnedForContainer(e),o={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeRowIn,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(o)},t.prototype.processStylesFromGridOptions=function(){var e=this.beans.gridOptionsWrapper.getRowStyle();if(!e||"function"!==typeof e){var t,o=this.beans.gridOptionsWrapper.getRowStyleFunc();if(o){var r={data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex};t=o(r)}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(){var e=this,t=!!this.rowNode.isSelected();this.allRowGuis.forEach((function(o){o.rowComp.addOrRemoveCssClass("ag-row-selected",t),In(o.element,!!t||void 0);var r=e.createAriaLabel();hn(o.element,null==r?"":r)}))},t.prototype.createAriaLabel=function(){var e=this.rowNode.isSelected();if(!e||!this.beans.gridOptionsWrapper.isSuppressRowDeselection()){var t=this.beans.gridOptionsWrapper.getLocaleTextFunc(),o=t(e?"ariaRowDeselect":"ariaRowSelect","Press SPACE to "+(e?"deselect":"select")+" this row.");return o}},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,Ta.EVENT_MOUSE_ENTER,(function(){t.beans.gridOptionsWrapper.isSuppressRowHoverHighlight()||e.classList.add("ag-row-hover")})),this.addManagedListener(this.rowNode,Ta.EVENT_MOUSE_LEAVE,(function(){e.classList.remove("ag-row-hover")})))},t.prototype.roundRowTopToBounds=function(e){var t=this.beans.ctrlsService.getGridBodyCtrl(),o=t.getScrollFeature().getVScrollPosition(),r=this.applyPaginationOffset(o.top,!0)-100,n=this.applyPaginationOffset(o.bottom,!0)+100;return Math.min(Math.max(r,e),n)},t.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},t.prototype.onRowHeightChanged=function(){if(null!=this.rowNode.rowHeight){var e=this.rowNode.rowHeight,t=this.beans.gridOptionsWrapper.getDefaultRowHeight(),o=this.beans.gridOptionsWrapper.isGetRowHeightFunction(),r=o?this.beans.gridOptionsWrapper.getRowHeightForNode(this.rowNode).height:void 0,n=r?Math.min(t,r)-2+"px":void 0;this.allRowGuis.forEach((function(t){t.element.style.height=e+"px",n&&t.element.style.setProperty("--ag-line-height",n)}))}},t.prototype.addEventListener=function(t,o){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=lt.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved is now called "+lt.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.addEventListener.call(this,t,o)},t.prototype.removeEventListener=function(t,o){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=lt.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called "+lt.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.removeEventListener.call(this,t,o)},t.prototype.destroyFirstPass=function(){this.active=!1,this.setupRemoveAnimation();var t=this.createRowEvent(lt.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(t),this.beans.eventService.dispatchEvent(t),e.prototype.destroy.call(this)},t.prototype.setupRemoveAnimation=function(){if(!this.isSticky()){var e=null!=this.rowNode.rowTop;if(e){var t=this.roundRowTopToBounds(this.rowNode.rowTop);this.setRowTop(t)}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(){var e=this;this.allRowGuis.forEach((function(t){t.rowComp.addOrRemoveCssClass("ag-row-focus",e.rowFocused),t.rowComp.addOrRemoveCssClass("ag-row-no-focus",!e.rowFocused)}))},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){if(void 0===t&&(t=!1),this.rowNode.isRowPinned())return e;var o=this.beans.paginationProxy.getPixelOffset(),r=t?1:-1;return e+o*r},t.prototype.setRowTop=function(e){if(!this.printLayout&&n(e)){var t=this.applyPaginationOffset(e),o=this.rowNode.isRowPinned()?t:this.beans.rowContainerHeightService.getRealPixelPosition(t),r=o+"px";this.setRowTopStyle(r)}},t.prototype.getInitialRowTop=function(){var e=this.beans.gridOptionsWrapper.isSuppressRowTransform();return e?this.getInitialRowTopShared():void 0},t.prototype.getInitialTransform=function(){var e=this.beans.gridOptionsWrapper.isSuppressRowTransform();return e?void 0:"translateY("+this.getInitialRowTopShared()+")"},t.prototype.getInitialRowTopShared=function(){if(this.printLayout)return"";var e;if(this.isSticky())e=this.rowNode.stickyRowTop;else{var t=this.slideRowIn?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,o=this.applyPaginationOffset(t);e=this.rowNode.isRowPinned()?o:this.beans.rowContainerHeightService.getRealPixelPosition(o)}return e+"px"},t.prototype.setRowTopStyle=function(e){var t=this.beans.gridOptionsWrapper.isSuppressRowTransform();this.allRowGuis.forEach((function(o){return t?o.rowComp.setTop(e):o.rowComp.setTransform("translateY("+e+")")}))},t.prototype.getRowNode=function(){return this.rowNode},t.prototype.getCellCtrl=function(e){var t=null;return this.getAllCellCtrls().forEach((function(o){o.getColumn()==e&&(t=o)})),null!=t||this.getAllCellCtrls().forEach((function(o){o.getColSpanningList().indexOf(e)>=0&&(t=o)})),t},t.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())},t.prototype.updateRowIndexes=function(){var e=this.rowNode.getRowIndexString(),t=this.beans.headerNavigationService.getHeaderRowCount(),o=this.rowNode.rowIndex%2===0,r=t+this.rowNode.rowIndex+1;this.allRowGuis.forEach((function(t){t.rowComp.setRowIndex(e),t.rowComp.addOrRemoveCssClass("ag-row-even",o),t.rowComp.addOrRemoveCssClass("ag-row-odd",!o),bn(t.element,r)}))},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}(rt),sp=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ap=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},lp=function(e,t){var o="function"===typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,n,i=o.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=i.next()).done)s.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(o=i["return"])&&o.call(i)}finally{if(n)throw n.error}}return s},up=function(e){function t(t){var o=e.call(this)||this;return o.element=t,o}return sp(t,e),t.prototype.postConstruct=function(){this.addMouseListeners(),this.mockContextMenuForIPad(),this.addKeyboardEvents()},t.prototype.addKeyboardEvents=function(){var e=this,t=["keydown","keypress"];t.forEach((function(t){var o=e.processKeyboardEvent.bind(e,t);e.addManagedListener(e.element,t,o)}))},t.prototype.addMouseListeners=function(){var e=this,t=Ye("touchstart")?"touchstart":"mousedown",o=["dblclick","contextmenu","mouseover","mouseout","click",t];o.forEach((function(t){var o=e.processMouseEvent.bind(e,t);e.addManagedListener(e.element,t,o)}))},t.prototype.processMouseEvent=function(e,t){if(this.mouseEventService.isEventFromThisGrid(t)&&!Ke(t)){var o=this.getRowForEvent(t),r=this.mouseEventService.getRenderedCellForEvent(t);"contextmenu"===e?this.handleContextMenuMouseEvent(t,null,o,r):(r&&r.onMouseEvent(e,t),o&&o.onMouseEvent(e,t))}},t.prototype.mockContextMenuForIPad=function(){var e=this;if(Zt()){var t=new Ks(this.element),o=function(t){var o=e.getRowForEvent(t.touchEvent),r=e.mouseEventService.getRenderedCellForEvent(t.touchEvent);e.handleContextMenuMouseEvent(null,t.touchEvent,o,r)};this.addManagedListener(t,Ks.EVENT_LONG_TAP,o),this.addDestroyFunc((function(){return t.destroy()}))}},t.prototype.getRowForEvent=function(e){var t=e.target;while(t){var o=this.gridOptionsWrapper.getDomData(t,ip.DOM_DATA_KEY_ROW_CTRL);if(o)return o;t=t.parentElement}return null},t.prototype.handleContextMenuMouseEvent=function(e,t,o,r){var n=o?o.getRowNode():null,i=r?r.getColumn():null,s=null;if(i){var a=e||t;r.dispatchCellContextMenuEvent(a),s=this.valueService.getValue(i,n)}var l=this.ctrlsService.getGridBodyCtrl(),u=r?r.getGui():l.getGridBodyElement();this.contextMenuFactory&&this.contextMenuFactory.onContextMenu(e,t,n,i,s,u)},t.prototype.processKeyboardEvent=function(e,t){var o=qe(this.gridOptionsWrapper,t,Ju.DOM_DATA_KEY_CELL_CTRL),r=qe(this.gridOptionsWrapper,t,ip.DOM_DATA_KEY_ROW_CTRL);t.defaultPrevented||(o?this.processCellKeyboardEvent(o,e,t):r&&r.isFullWidth()&&this.processFullWidthRowKeyboardEvent(r,e,t))},t.prototype.processCellKeyboardEvent=function(e,t,o){var r=e.getRowNode(),n=e.getColumn(),i=e.isEditing(),s=!ti(this.gridOptionsWrapper,o,r,n,i);if(s)switch(t){case"keydown":var a=!i&&this.navigationService.handlePageScrollingKey(o);a||e.onKeyDown(o),this.doGridOperations(o,e.isEditing());break;case"keypress":e.onKeyPress(o);break}if("keydown"===t){var l=e.createEvent(o,lt.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(l)}if("keypress"===t){var u=e.createEvent(o,lt.EVENT_CELL_KEY_PRESS);this.eventService.dispatchEvent(u)}},t.prototype.processFullWidthRowKeyboardEvent=function(e,t,o){var r=e.getRowNode(),n=this.focusService.getFocusedCell(),i=n&&n.column,s=!ti(this.gridOptionsWrapper,o,r,i,!1);if(s){var a=o.key;if("keydown"===t)switch(a){case zn.UP:case zn.DOWN:e.onKeyboardNavigate(o);break;case zn.TAB:e.onTabKeyDown(o)}}if("keydown"===t){var l=e.createRowEvent(lt.EVENT_CELL_KEY_DOWN,o);this.eventService.dispatchEvent(l)}if("keypress"===t){var u=e.createRowEvent(lt.EVENT_CELL_KEY_PRESS,o);this.eventService.dispatchEvent(u)}},t.prototype.doGridOperations=function(e,t){if((e.ctrlKey||e.metaKey)&&!t&&this.mouseEventService.isEventFromThisGrid(e)){var o=ni(e);return o===zn.A?this.onCtrlAndA(e):o===zn.C?this.onCtrlAndC(e):o===zn.V?this.onCtrlAndV():o===zn.D?this.onCtrlAndD(e):o===zn.Z?this.onCtrlAndZ(e):o===zn.Y?this.onCtrlAndY():void 0}},t.prototype.onCtrlAndA=function(e){var t=this,o=t.pinnedRowModel,r=t.paginationProxy,n=t.rangeService,i=fe.PINNED_BOTTOM,a=fe.PINNED_TOP;if(n&&r.isRowsToRender()){var l=lp([o.isEmpty(a),o.isEmpty(i)],2),u=l[0],p=l[1],c=u?null:a,d=void 0,h=void 0;p?(d=null,h=this.paginationProxy.getRowCount()-1):(d=i,h=o.getPinnedBottomRowData().length-1);var f=this.columnModel.getAllDisplayedColumns();if(s(f))return;n.setCellRange({rowStartIndex:0,rowStartPinned:c,rowEndIndex:h,rowEndPinned:d,columnStart:f[0],columnEnd:Ee(f)})}e.preventDefault()},t.prototype.onCtrlAndC=function(e){this.clipboardService&&!this.gridOptionsWrapper.isEnableCellTextSelection()&&(this.clipboardService.copyToClipboard(),e.preventDefault())},t.prototype.onCtrlAndV=function(){ge.isRegistered(ue.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.pasteFromClipboard()},t.prototype.onCtrlAndD=function(e){ge.isRegistered(ue.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.copyRangeDown(),e.preventDefault()},t.prototype.onCtrlAndZ=function(e){this.gridOptionsWrapper.isUndoRedoCellEditing()&&(e.preventDefault(),e.shiftKey?this.undoRedoService.redo():this.undoRedoService.undo())},t.prototype.onCtrlAndY=function(){this.undoRedoService.redo()},ap([ne("mouseEventService")],t.prototype,"mouseEventService",void 0),ap([ne("valueService")],t.prototype,"valueService",void 0),ap([ie("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),ap([ne("ctrlsService")],t.prototype,"ctrlsService",void 0),ap([ne("navigationService")],t.prototype,"navigationService",void 0),ap([ne("focusService")],t.prototype,"focusService",void 0),ap([ne("undoRedoService")],t.prototype,"undoRedoService",void 0),ap([ne("columnModel")],t.prototype,"columnModel",void 0),ap([ne("paginationProxy")],t.prototype,"paginationProxy",void 0),ap([ne("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),ap([ie("rangeService")],t.prototype,"rangeService",void 0),ap([ie("clipboardService")],t.prototype,"clipboardService",void 0),ap([te],t.prototype,"postConstruct",null),t}(rt),pp=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),cp=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},dp=function(e){function t(t){var o=e.call(this)||this;return o.centerContainerCtrl=t,o}return pp(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.listenForResize()})),this.addManagedListener(this.eventService,lt.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=gr(e);if(this.bodyHeight!==t){this.bodyHeight=t;var o={type:lt.EVENT_BODY_HEIGHT_CHANGED};this.eventService.dispatchEvent(o)}},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),this.gridBodyCtrl.setVerticalScrollPaddingVisible(e.verticalScrollShowing)},t.prototype.isHorizontalScrollShowing=function(){var e=this.gridOptionsWrapper.isAlwaysShowHorizontalScroll();return e||this.centerContainerCtrl.isViewportHScrollShowing()},t.prototype.onHorizontalViewportChanged=function(){var e=this.centerContainerCtrl.getCenterWidth(),t=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(e,t)},cp([ne("ctrlsService")],t.prototype,"ctrlsService",void 0),cp([ne("columnModel")],t.prototype,"columnModel",void 0),cp([ne("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),cp([te],t.prototype,"postConstruct",null),t}(rt),hp=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),fp=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},gp=function(e){function t(t){var o=e.call(this)||this;return o.element=t,o}return hp(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,lt.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},t.prototype.onPinnedLeftWidthChanged=function(){var e=this.pinnedWidthService.getPinnedLeftWidth(),t=e>0;pr(this.element,t),t&&Vr(this.element,e)},fp([ne("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),fp([te],t.prototype,"postConstruct",null),t}(rt),vp=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),yp=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},mp=function(e){function t(t){var o=e.call(this)||this;return o.element=t,o}return vp(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,lt.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},t.prototype.onPinnedRightWidthChanged=function(){var e=this.pinnedWidthService.getPinnedRightWidth(),t=e>0;pr(this.element,t),t&&Vr(this.element,e)},yp([ne("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),yp([te],t.prototype,"postConstruct",null),t}(rt),Cp=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),wp=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Ep=function(e){function t(t,o){var r=e.call(this)||this;return r.eContainer=t,r.eWrapper=o,r}return Cp(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,lt.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))},t.prototype.onHeightChanged=function(){var e=this.maxDivHeightScaler.getUiContainerHeight(),t=null!=e?e+"px":"";this.eContainer.style.height=t,this.eWrapper&&(this.eWrapper.style.height=t)},wp([ne("rowContainerHeightService")],t.prototype,"maxDivHeightScaler",void 0),wp([te],t.prototype,"postConstruct",null),t}(rt),Rp=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Op=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Sp=function(e){function t(t){var o=e.call(this)||this;return o.eContainer=t,o}return Rp(t,e),t.prototype.postConstruct=function(){var e=this;if(this.gridOptionsWrapper.isEnableRangeSelection()&&!i(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)}))}},Op([ie("rangeService")],t.prototype,"rangeService",void 0),Op([ne("dragService")],t.prototype,"dragService",void 0),Op([te],t.prototype,"postConstruct",null),t}(rt),_p=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),bp=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Pp=function(e){function t(t){var o=e.call(this)||this;return o.callback=t,o}return _p(t,e),t.prototype.postConstruct=function(){var e=this.setWidth.bind(this);this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_DOM_LAYOUT,e),this.addManagedListener(this.eventService,lt.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,lt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.setWidth()},t.prototype.setWidth=function(){var e=this.columnModel,t=this.gridOptionsWrapper.getDomLayout()===fe.DOM_LAYOUT_PRINT,o=e.getBodyContainerWidth(),r=e.getDisplayedColumnsLeftWidth(),n=e.getDisplayedColumnsRightWidth(),i=t?o+r+n:o;this.callback(i)},bp([ne("columnModel")],t.prototype,"columnModel",void 0),bp([te],t.prototype,"postConstruct",null),t}(rt),Tp=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Dp=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Ap=function(e,t){var o="function"===typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,n,i=o.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=i.next()).done)s.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(o=i["return"])&&o.call(i)}finally{if(n)throw n.error}}return s},Np=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ap(arguments[t]));return e};function Ip(e){switch(e){case op.CENTER:case op.TOP_CENTER:case op.STICKY_TOP_CENTER:case op.BOTTOM_CENTER:return rp.CENTER;case op.LEFT:case op.TOP_LEFT:case op.STICKY_TOP_LEFT:case op.BOTTOM_LEFT:return rp.LEFT;case op.RIGHT:case op.TOP_RIGHT:case op.STICKY_TOP_RIGHT:case op.BOTTOM_RIGHT:return rp.RIGHT;case op.FULL_WIDTH:case op.TOP_FULL_WIDTH:case op.STICKY_TOP_FULL_WIDTH:case op.BOTTOM_FULL_WIDTH:return rp.FULL_WIDTH;default:throw Error("Invalid Row Container Type")}}(function(e){e["LEFT"]="left",e["RIGHT"]="right",e["CENTER"]="center",e["FULL_WIDTH"]="fullWidth",e["TOP_LEFT"]="topLeft",e["TOP_RIGHT"]="topRight",e["TOP_CENTER"]="topCenter",e["TOP_FULL_WIDTH"]="topFullWidth",e["STICKY_TOP_LEFT"]="stickyTopLeft",e["STICKY_TOP_RIGHT"]="stickyTopRight",e["STICKY_TOP_CENTER"]="stickyTopCenter",e["STICKY_TOP_FULL_WIDTH"]="stickyTopFullWidth",e["BOTTOM_LEFT"]="bottomLeft",e["BOTTOM_RIGHT"]="bottomRight",e["BOTTOM_CENTER"]="bottomCenter",e["BOTTOM_FULL_WIDTH"]="bottomFullWidth"})(op||(op={})),function(e){e["LEFT"]="left",e["RIGHT"]="right",e["CENTER"]="center",e["FULL_WIDTH"]="fullWidth"}(rp||(rp={}));var Gp=Ct([[op.CENTER,"ag-center-cols-container"],[op.LEFT,"ag-pinned-left-cols-container"],[op.RIGHT,"ag-pinned-right-cols-container"],[op.FULL_WIDTH,"ag-full-width-container"],[op.TOP_CENTER,"ag-floating-top-container"],[op.TOP_LEFT,"ag-pinned-left-floating-top"],[op.TOP_RIGHT,"ag-pinned-right-floating-top"],[op.TOP_FULL_WIDTH,"ag-floating-top-full-width-container"],[op.STICKY_TOP_CENTER,"ag-sticky-top-container"],[op.STICKY_TOP_LEFT,"ag-pinned-left-sticky-top"],[op.STICKY_TOP_RIGHT,"ag-pinned-right-sticky-top"],[op.STICKY_TOP_FULL_WIDTH,"ag-sticky-top-full-width-container"],[op.BOTTOM_CENTER,"ag-floating-bottom-container"],[op.BOTTOM_LEFT,"ag-pinned-left-floating-bottom"],[op.BOTTOM_RIGHT,"ag-pinned-right-floating-bottom"],[op.BOTTOM_FULL_WIDTH,"ag-floating-bottom-full-width-container"]]),Fp=Ct([[op.CENTER,"ag-center-cols-viewport"],[op.TOP_CENTER,"ag-floating-top-viewport"],[op.STICKY_TOP_CENTER,"ag-sticky-top-viewport"],[op.BOTTOM_CENTER,"ag-floating-bottom-viewport"]]),Lp=Ct([[op.CENTER,"ag-center-cols-clipper"]]),Mp=function(e){function t(t){var o=e.call(this)||this;return o.name=t,o}return Tp(t,e),t.getRowContainerCssClasses=function(e){var t=Gp.get(e),o=Fp.get(e),r=Lp.get(e);return{container:t,viewport:o,wrapper:r}},t.getPinned=function(e){switch(e){case op.BOTTOM_LEFT:case op.TOP_LEFT:case op.STICKY_TOP_LEFT:case op.LEFT:return fe.PINNED_LEFT;case op.BOTTOM_RIGHT:case op.TOP_RIGHT:case op.STICKY_TOP_RIGHT:case op.RIGHT:return fe.PINNED_RIGHT;default:return null}},t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.embedFullWidthRows=this.gridOptionsWrapper.isEmbedFullWidthRows(),this.forContainers([op.CENTER],(function(){return e.viewportSizeFeature=e.createManagedBean(new dp(e))}))},t.prototype.registerWithCtrlsService=function(){switch(this.name){case op.CENTER:this.ctrlsService.registerCenterRowContainerCtrl(this);break;case op.LEFT:this.ctrlsService.registerLeftRowContainerCtrl(this);break;case op.RIGHT:this.ctrlsService.registerRightRowContainerCtrl(this);break;case op.TOP_CENTER:this.ctrlsService.registerTopCenterRowContainerCtrl(this);break;case op.TOP_LEFT:this.ctrlsService.registerTopLeftRowContainerCon(this);break;case op.TOP_RIGHT:this.ctrlsService.registerTopRightRowContainerCtrl(this);break;case op.STICKY_TOP_CENTER:this.ctrlsService.registerStickyTopCenterRowContainerCtrl(this);break;case op.STICKY_TOP_LEFT:this.ctrlsService.registerStickyTopLeftRowContainerCon(this);break;case op.STICKY_TOP_RIGHT:this.ctrlsService.registerStickyTopRightRowContainerCtrl(this);break;case op.BOTTOM_CENTER:this.ctrlsService.registerBottomCenterRowContainerCtrl(this);break;case op.BOTTOM_LEFT:this.ctrlsService.registerBottomLeftRowContainerCtrl(this);break;case op.BOTTOM_RIGHT:this.ctrlsService.registerBottomRightRowContainerCtrl(this);break}},t.prototype.forContainers=function(e,t){e.indexOf(this.name)>=0&&t()},t.prototype.getContainerElement=function(){return this.eContainer},t.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},t.prototype.setComp=function(e,t,o,r){var n=this;this.comp=e,this.eContainer=t,this.eViewport=o,this.eWrapper=r,this.createManagedBean(new up(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var i=[op.TOP_CENTER,op.TOP_LEFT,op.TOP_RIGHT],s=[op.STICKY_TOP_CENTER,op.STICKY_TOP_LEFT,op.STICKY_TOP_RIGHT],a=[op.BOTTOM_CENTER,op.BOTTOM_LEFT,op.BOTTOM_RIGHT],l=[op.CENTER,op.LEFT,op.RIGHT],u=Np(i,a,l,s),p=[op.CENTER,op.LEFT,op.RIGHT,op.FULL_WIDTH],c=[op.CENTER,op.TOP_CENTER,op.STICKY_TOP_CENTER,op.BOTTOM_CENTER],d=[op.LEFT,op.BOTTOM_LEFT,op.TOP_LEFT,op.STICKY_TOP_LEFT],h=[op.RIGHT,op.BOTTOM_RIGHT,op.TOP_RIGHT,op.STICKY_TOP_RIGHT];this.forContainers(d,(function(){return n.createManagedBean(new gp(n.eContainer))})),this.forContainers(h,(function(){return n.createManagedBean(new mp(n.eContainer))})),this.forContainers(p,(function(){return n.createManagedBean(new Ep(n.eContainer,n.eWrapper))})),this.forContainers(u,(function(){return n.createManagedBean(new Sp(n.eContainer))})),this.forContainers(c,(function(){return n.createManagedBean(new Pp((function(e){return n.comp.setContainerWidth(e+"px")})))})),this.addListeners(),this.registerWithCtrlsService()},t.prototype.addListeners=function(){var e=this;this.addManagedListener(this.eventService,lt.EVENT_SCROLL_VISIBILITY_CHANGED,(function(){return e.onScrollVisibilityChanged()})),this.addManagedListener(this.eventService,lt.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){return e.onDisplayedColumnsChanged()})),this.addManagedListener(this.eventService,lt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){return e.onDisplayedColumnsWidthChanged()})),this.addManagedListener(this.eventService,lt.EVENT_DISPLAYED_ROWS_CHANGED,(function(){return e.onDisplayedRowsChanged()})),this.onScrollVisibilityChanged(),this.onDisplayedColumnsChanged(),this.onDisplayedColumnsWidthChanged(),this.onDisplayedRowsChanged()},t.prototype.listenOnDomOrder=function(){var e=this,t=[op.STICKY_TOP_CENTER,op.STICKY_TOP_LEFT,op.STICKY_TOP_RIGHT,op.STICKY_TOP_FULL_WIDTH],o=t.indexOf(this.name)>=0;if(o)this.comp.setDomOrder(!0);else{var r=function(){return e.comp.setDomOrder(e.gridOptionsWrapper.isEnsureDomOrder())};this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_DOM_LAYOUT,r),r()}},t.prototype.stopHScrollOnPinnedRows=function(){var e=this;this.forContainers([op.TOP_CENTER,op.STICKY_TOP_CENTER,op.BOTTOM_CENTER],(function(){var t=function(){return e.eViewport.scrollLeft=0};e.addManagedListener(e.eViewport,"scroll",t)}))},t.prototype.onDisplayedColumnsChanged=function(){var e=this;this.forContainers([op.CENTER],(function(){return e.onHorizontalViewportChanged()}))},t.prototype.onDisplayedColumnsWidthChanged=function(){var e=this;this.forContainers([op.CENTER],(function(){return e.onHorizontalViewportChanged()}))},t.prototype.onScrollVisibilityChanged=function(){if(this.name===op.CENTER){var e=this.scrollVisibleService.isHorizontalScrollShowing(),t=e&&this.gridOptionsWrapper.getScrollbarWidth()||0,o=0==t?"100%":"calc(100% + "+t+"px)";this.comp.setViewportHeight(o)}},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 vr(this.eViewport)},t.prototype.getCenterViewportScrollLeft=function(){return wr(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 _r(this.eViewport)},t.prototype.isViewportHScrollShowing=function(){return Mr(this.eViewport)},t.prototype.getViewportScrollLeft=function(){return wr(this.eViewport,this.enableRtl)},t.prototype.isHorizontalScrollShowing=function(){var e=this.gridOptionsWrapper.isAlwaysShowHorizontalScroll();return e||Mr(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(){var e={left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth};return e},t.prototype.setCenterViewportScrollLeft=function(e){Er(this.eViewport,e,this.enableRtl)},t.prototype.onDisplayedRowsChanged=function(){var e=this,t=this.name===op.TOP_FULL_WIDTH||this.name===op.STICKY_TOP_FULL_WIDTH||this.name===op.BOTTOM_FULL_WIDTH||this.name===op.FULL_WIDTH,o=function(o){var r=o.isFullWidth(),n=e.gridOptionsWrapper.getDomLayout()===fe.DOM_LAYOUT_PRINT,i=e.embedFullWidthRows||n,s=t?!i&&r:i||!r;return s},r=this.getRowCtrls(),n=r.filter(o);this.comp.setRowCtrls(n)},t.prototype.getRowCtrls=function(){switch(this.name){case op.TOP_CENTER:case op.TOP_LEFT:case op.TOP_RIGHT:case op.TOP_FULL_WIDTH:return this.rowRenderer.getTopRowCtrls();case op.STICKY_TOP_CENTER:case op.STICKY_TOP_LEFT:case op.STICKY_TOP_RIGHT:case op.STICKY_TOP_FULL_WIDTH:return this.rowRenderer.getStickyTopRowCtrls();case op.BOTTOM_CENTER:case op.BOTTOM_LEFT:case op.BOTTOM_RIGHT:case op.BOTTOM_FULL_WIDTH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getRowCtrls()}},Dp([ne("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Dp([ne("dragService")],t.prototype,"dragService",void 0),Dp([ne("ctrlsService")],t.prototype,"ctrlsService",void 0),Dp([ne("columnModel")],t.prototype,"columnModel",void 0),Dp([ne("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Dp([ne("rowRenderer")],t.prototype,"rowRenderer",void 0),Dp([te],t.prototype,"postConstruct",null),t}(rt),xp=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Hp=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Vp='<div class="ag-root ag-unselectable" role="grid">\n <ag-header-root ref="gridHeader"></ag-header-root>\n <div class="ag-floating-top" ref="eTop" role="presentation">\n <ag-row-container ref="topLeftContainer" name="'+op.TOP_LEFT+'"></ag-row-container>\n <ag-row-container ref="topCenterContainer" name="'+op.TOP_CENTER+'"></ag-row-container>\n <ag-row-container ref="topRightContainer" name="'+op.TOP_RIGHT+'"></ag-row-container>\n <ag-row-container ref="topFullWidthContainer" name="'+op.TOP_FULL_WIDTH+'"></ag-row-container>\n </div>\n <div class="ag-body-viewport" ref="eBodyViewport" role="presentation">\n <ag-row-container ref="leftContainer" name="'+op.LEFT+'"></ag-row-container>\n <ag-row-container ref="centerContainer" name="'+op.CENTER+'"></ag-row-container>\n <ag-row-container ref="rightContainer" name="'+op.RIGHT+'"></ag-row-container>\n <ag-row-container ref="fullWidthContainer" name="'+op.FULL_WIDTH+'"></ag-row-container>\n </div>\n <div class="ag-sticky-top" ref="eStickyTop" role="presentation">\n <ag-row-container ref="stickyTopLeftContainer" name="'+op.STICKY_TOP_LEFT+'"></ag-row-container>\n <ag-row-container ref="stickyTopCenterContainer" name="'+op.STICKY_TOP_CENTER+'"></ag-row-container>\n <ag-row-container ref="stickyTopRightContainer" name="'+op.STICKY_TOP_RIGHT+'"></ag-row-container>\n <ag-row-container ref="stickyTopFullWidthContainer" name="'+op.STICKY_TOP_FULL_WIDTH+'"></ag-row-container>\n </div>\n <div class="ag-floating-bottom" ref="eBottom" role="presentation">\n <ag-row-container ref="bottomLeftContainer" name="'+op.BOTTOM_LEFT+'"></ag-row-container>\n <ag-row-container ref="bottomCenterContainer" name="'+op.BOTTOM_CENTER+'"></ag-row-container>\n <ag-row-container ref="bottomRightContainer" name="'+op.BOTTOM_RIGHT+'"></ag-row-container>\n <ag-row-container ref="bottomFullWidthContainer" name="'+op.BOTTOM_FULL_WIDTH+'"></ag-row-container>\n </div>\n <ag-fake-horizontal-scroll></ag-fake-horizontal-scroll>\n <ag-overlay-wrapper></ag-overlay-wrapper>\n </div>',Wp=function(e){function t(){return e.call(this,Vp)||this}return xp(t,e),t.prototype.init=function(){var e=this,t=function(e,t){var o=e+"px";t.style.minHeight=o,t.style.height=o},o={setRowAnimationCssOnBodyViewport:function(t,o){return e.setRowAnimationCssOnBodyViewport(t,o)},setColumnCount:function(t){return Pn(e.getGui(),t)},setRowCount:function(t){return _n(e.getGui(),t)},setTopHeight:function(o){return t(o,e.eTop)},setBottomHeight:function(o){return t(o,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,o){return e.addOrRemoveCssClass(uu,o)},updateLayoutClasses:function(t,o){var r=e.eBodyViewport.classList;r.toggle(Al.AUTO_HEIGHT,o.autoHeight),r.toggle(Al.NORMAL,o.normal),r.toggle(Al.PRINT,o.print),e.addOrRemoveCssClass(Al.AUTO_HEIGHT,o.autoHeight),e.addOrRemoveCssClass(Al.NORMAL,o.normal),e.addOrRemoveCssClass(Al.PRINT,o.print)},setAlwaysVerticalScrollClass:function(t,o){return e.eBodyViewport.classList.toggle(lu,o)},registerBodyViewportResizeListener:function(t){var o=e.resizeObserverService.observeResize(e.eBodyViewport,t);e.addDestroyFunc((function(){return o()}))},setPinnedTopBottomOverflowY:function(t){return e.eTop.style.overflowY=e.eBottom.style.overflowY=t},setCellSelectableCss:function(t,o){[e.eTop,e.eBodyViewport,e.eBottom].forEach((function(e){return e.classList.toggle(au,o)}))}};this.ctrl=this.createManagedBean(new pu),this.ctrl.setComp(o,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop),(this.rangeService||this.gridOptionsWrapper.isRowSelectionMulti())&&Sn(this.getGui(),!0)},t.prototype.setRowAnimationCssOnBodyViewport=function(e,t){var o=this.eBodyViewport.classList;o.toggle(zl.ANIMATION_ON,t),o.toggle(zl.ANIMATION_OFF,!t)},t.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},Hp([ne("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Hp([ie("rangeService")],t.prototype,"rangeService",void 0),Hp([Ai("eBodyViewport")],t.prototype,"eBodyViewport",void 0),Hp([Ai("eStickyTop")],t.prototype,"eStickyTop",void 0),Hp([Ai("eTop")],t.prototype,"eTop",void 0),Hp([Ai("eBottom")],t.prototype,"eBottom",void 0),Hp([Ai("gridHeader")],t.prototype,"headerRootComp",void 0),Hp([te],t.prototype,"init",null),t}(Di),kp=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Bp=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},jp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kp(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,lt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,lt.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){var t=this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing;if(t){this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing;var o={type:lt.EVENT_SCROLL_VISIBILITY_CHANGED};this.eventService.dispatchEvent(o)}},t.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},t.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},Bp([ne("ctrlsService")],t.prototype,"ctrlsService",void 0),Bp([te],t.prototype,"postConstruct",null),t=Bp([re("scrollVisibleService")],t),t}(rt),Up=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),zp=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Kp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.gridInstanceId=o.gridInstanceSequence.next(),t}var o;return Up(t,e),o=t,t.prototype.stampTopLevelGridCompWithGridInstance=function(e){e[o.GRID_DOM_KEY]=this.gridInstanceId},t.prototype.getRenderedCellForEvent=function(e){return qe(this.gridOptionsWrapper,e,Ju.DOM_DATA_KEY_CELL_CTRL)},t.prototype.isEventFromThisGrid=function(e){var t=this.isElementInThisGrid(e.target);return t},t.prototype.isElementInThisGrid=function(e){var t=e;while(t){var r=t[o.GRID_DOM_KEY];if(n(r)){var i=r===this.gridInstanceId;return i}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,o,r=this.gridOptionsWrapper.getDomLayout()===fe.DOM_LAYOUT_NORMAL,n=e;if(null!=n.clientX||null!=n.clientY?(t=n.clientX,o=n.clientY):(t=n.x,o=n.y),r){var i=this.ctrlsService.getGridBodyCtrl(),s=i.getScrollFeature().getVScrollPosition(),a=i.getScrollFeature().getHScrollPosition();t+=a.left,o+=s.top}return{x:t,y:o}},t.gridInstanceSequence=new mi,t.GRID_DOM_KEY="__ag_grid_instance",zp([ne("ctrlsService")],t.prototype,"ctrlsService",void 0),t=o=zp([re("mouseEventService")],t),t}(rt),Yp=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),qp=function(){return qp=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},qp.apply(this,arguments)},Xp=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Qp=function(e){function t(){var t=e.call(this)||this;return t.onPageDown=K(t.onPageDown,100),t.onPageUp=K(t.onPageUp,100),t}return Yp(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,o=e.altKey,r=e.ctrlKey||e.metaKey,n=!!this.rangeService&&e.shiftKey,i=this.mouseEventService.getCellPositionForEvent(e);if(!i)return!1;var s=!1;switch(t){case zn.PAGE_HOME:case zn.PAGE_END:r||o||(this.onHomeOrEndKey(t),s=!0);break;case zn.LEFT:case zn.RIGHT:case zn.UP:case zn.DOWN:!r||o||n||(this.onCtrlUpDownLeftRight(t,i),s=!0);break;case zn.PAGE_DOWN:r||o||(this.onPageDown(i),s=!0);break;case zn.PAGE_UP:r||o||(this.onPageUp(i),s=!0);break}return s&&e.preventDefault(),s},t.prototype.navigateTo=function(e){var t=e.scrollIndex,o=e.scrollType,r=e.scrollColumn,i=e.focusIndex,s=e.focusColumn;if(n(r)&&!r.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(r),n(t)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(t,o),e.isAsync||this.gridBodyCon.getScrollFeature().ensureIndexVisible(i),this.focusService.setFocusedCell({rowIndex:i,column:s,rowPinned:null,forceBrowserFocus:!0}),this.rangeService){var a={rowIndex:i,rowPinned:null,column:s};this.rangeService.setRangeToCell(a)}},t.prototype.onPageDown=function(e){var t=this.ctrlsService.getGridBodyCtrl(),o=t.getScrollFeature().getVScrollPosition(),r=this.getViewportHeight(),n=this.paginationProxy.getPixelOffset(),i=o.top+r,s=this.paginationProxy.getRowIndexAtPixel(i+n);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,s):this.navigateToNextPage(e,s)},t.prototype.onPageUp=function(e){var t=this.ctrlsService.getGridBodyCtrl(),o=t.getScrollFeature().getVScrollPosition(),r=this.paginationProxy.getPixelOffset(),n=o.top,i=this.paginationProxy.getRowIndexAtPixel(n+r);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,i,!0):this.navigateToNextPage(e,i,!0)},t.prototype.navigateToNextPage=function(e,t,o){var r,n;void 0===o&&(o=!1);var i,s=this.getViewportHeight(),a=this.paginationProxy.getPageFirstRow(),l=this.paginationProxy.getPageLastRow(),u=this.paginationProxy.getPixelOffset(),p=this.paginationProxy.getRow(e.rowIndex),c=o?(null===(r=p)||void 0===r?void 0:r.rowHeight)-s-u:s-u,d=(null===(n=p)||void 0===n?void 0:n.rowTop)+c,h=this.paginationProxy.getRowIndexAtPixel(d+u);if(h===e.rowIndex){var f=o?-1:1;t=h=e.rowIndex+f}o?(i="bottom",h<a&&(h=a),t<a&&(t=a)):(i="top",h>l&&(h=l),t>l&&(t=l)),this.isRowTallerThanView(h)&&(t=h,i="top"),this.navigateTo({scrollIndex:t,scrollType:i,scrollColumn:null,focusIndex:h,focusColumn:e.column})},t.prototype.navigateToNextPageWithAutoHeight=function(e,t,o){var r=this;void 0===o&&(o=!1),this.navigateTo({scrollIndex:t,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:t,focusColumn:e.column}),setTimeout((function(){var n=r.getNextFocusIndexForAutoHeight(e,o);r.navigateTo({scrollIndex:t,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:n,focusColumn:e.column,isAsync:!0})}),50)},t.prototype.getNextFocusIndexForAutoHeight=function(e,t){var o;void 0===t&&(t=!1);var r=t?-1:1,n=this.getViewportHeight(),i=this.paginationProxy.getPageLastRow(),s=0,a=e.rowIndex;while(a>=0&&a<=i){var l=this.paginationProxy.getRow(a);if(l){var u=(o=l.rowHeight,null!==o&&void 0!==o?o:0);if(s+u>n)break;s+=u}a+=r}return Math.max(0,Math.min(a,i))},t.prototype.getViewportHeight=function(){var e=this.ctrlsService.getGridBodyCtrl(),t=e.getScrollFeature().getVScrollPosition(),o=this.gridOptionsWrapper.getScrollbarWidth(),r=t.bottom-t.top;return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(r-=o),r},t.prototype.isRowTallerThanView=function(e){var t=this.paginationProxy.getRow(e);if(!t)return!1;var o=t.rowHeight;return"number"===typeof o&&o>this.getViewportHeight()},t.prototype.onCtrlUpDownLeftRight=function(e,t){var o=this.cellNavigationService.getNextCellToFocus(e,t,!0),r=o.rowIndex,n=o.column;this.navigateTo({scrollIndex:r,scrollType:null,scrollColumn:n,focusIndex:r,focusColumn:n})},t.prototype.onHomeOrEndKey=function(e){var t=e===zn.PAGE_HOME,o=this.columnModel.getAllDisplayedColumns(),r=t?o[0]:Ee(o),n=t?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:n,scrollType:null,scrollColumn:r,focusIndex:n,focusColumn:r})},t.prototype.onTabKeyDown=function(e,t){var o=t.shiftKey,r=this.tabToNextCellCommon(e,o,t);if(r)t.preventDefault();else if(o){var n=e.getRowPosition(),i=n.rowIndex,s=n.rowPinned,a=s?0===i:i===this.paginationProxy.getPageFirstRow();a&&(t.preventDefault(),this.focusService.focusLastHeader(t))}else e instanceof Ju&&e.focusCell(!0),this.focusService.focusNextGridCoreContainer(o)&&t.preventDefault()},t.prototype.tabToNextCell=function(e,t){var o=this.focusService.getFocusedCell();if(!o)return!1;var r=this.getCellByPosition(o);return!!(r||(r=this.rowRenderer.getRowByPosition(o),r&&r.isFullWidth()))&&this.tabToNextCellCommon(r,e,t)},t.prototype.tabToNextCellCommon=function(e,t,o){var r,n=e.isEditing();if(!n&&e instanceof Ju){var i=e,s=i.getRowCtrl();s&&(n=s.isEditing())}return r=n?this.gridOptionsWrapper.isFullRowEdit()?this.moveToNextEditingRow(e,t,o):this.moveToNextEditingCell(e,t,o):this.moveToNextCellNotEditing(e,t),r||!!this.focusService.getFocusedHeader()},t.prototype.moveToNextEditingCell=function(e,t,o){void 0===o&&(o=null);var r=e.getCellPosition();e.getGui().focus(),e.stopEditing();var n=this.findNextCellToFocusOn(r,t,!0);return null!=n&&(n.startEditing(null,null,!0,o),n.focusCell(!1),!0)},t.prototype.moveToNextEditingRow=function(e,t,o){void 0===o&&(o=null);var r=e.getCellPosition(),n=this.findNextCellToFocusOn(r,t,!0);if(null==n)return!1;var i=n.getCellPosition(),s=this.isCellEditable(r),a=this.isCellEditable(i),l=i&&r.rowIndex===i.rowIndex&&r.rowPinned===i.rowPinned;if(s&&e.setFocusOutOnEditor(),!l){var u=e.getRowCtrl();u.stopEditing();var p=n.getRowCtrl();p.startRowEditing(void 0,void 0,void 0,o)}return a?(n.setFocusInOnEditor(),n.focusCell()):n.focusCell(!0),!0},t.prototype.moveToNextCellNotEditing=function(e,t){var o,r=this.columnModel.getAllDisplayedColumns();o=e instanceof ip?qp(qp({},e.getRowPosition()),{column:t?r[0]:Ee(r)}):e.getCellPosition();var i=this.findNextCellToFocusOn(o,t,!1);if(i instanceof Ju)i.focusCell(!0);else if(i)return this.tryToFocusFullWidthRow(i.getRowPosition(),t);return n(i)},t.prototype.findNextCellToFocusOn=function(e,t,o){var r=e;while(1){e!==r&&(e=r),t||(r=this.getLastCellOfColSpan(r)),r=this.cellNavigationService.getNextTabbedCell(r,t);var i=this.gridOptionsWrapper.getTabToNextCellFunc();if(n(i)){var s={backwards:t,editing:o,previousCellPosition:e,nextCellPosition:r||null},a=i(s);n(a)?(a.floating&&(x((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"),a.rowPinned=a.floating),r={rowIndex:a.rowIndex,column:a.column,rowPinned:a.rowPinned}):r=null}if(!r)return null;if(r.rowIndex<0){var l=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:l+r.rowIndex,column:r.column}}),null}var u=this.gridOptionsWrapper.isFullRowEdit();if(o&&!u){var p=this.isCellEditable(r);if(!p)continue}this.ensureCellVisible(r);var c=this.getCellByPosition(r);if(c){if(!c.isSuppressNavigable())return this.rangeService&&this.rangeService.setRangeToCell(r),c}else{var d=this.rowRenderer.getRowByPosition(r);if(d&&d.isFullWidth())return d}}},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 e.rowPinned===fe.PINNED_TOP?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.rowPinned===fe.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},t.prototype.navigateToNextCell=function(e,t,o,r){var s=o,a=!1;while(s&&(s===o||!this.isValidNavigateCell(s)))this.gridOptionsWrapper.isEnableRtl()?t===zn.LEFT&&(s=this.getLastCellOfColSpan(s)):t===zn.RIGHT&&(s=this.getLastCellOfColSpan(s)),s=this.cellNavigationService.getNextCellToFocus(t,s),a=i(s);if(a&&e&&e.key===zn.UP&&(s={rowIndex:-1,rowPinned:null,column:o.column}),r){var l=this.gridOptionsWrapper.getNavigateToNextCellFunc();if(n(l)){var u={key:t,previousCellPosition:o,nextCellPosition:s||null,event:e},p=l(u);n(p)?(p.floating&&(x((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"),p.rowPinned=p.floating),s={rowPinned:p.rowPinned,rowIndex:p.rowIndex,column:p.column}):s=null}}if(s)if(s.rowIndex<0){var c=this.headerNavigationService.getHeaderRowCount();this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:c+s.rowIndex,column:o.column},event:e||void 0})}else{var d=this.getNormalisedPosition(s);d?this.focusPosition(d):this.tryToFocusFullWidthRow(s)}},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 o=this.columnModel.getAllDisplayedColumns(),r=this.rowRenderer.getRowByPosition(e);if(!r||!r.isFullWidth())return!1;var n=this.focusService.getFocusedCell(),i={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(t?Ee(o):o[0])};this.focusPosition(i);var s=null!=n&&this.rowPositionUtils.before(i,n),a={type:lt.EVENT_FULL_WIDTH_ROW_FOCUSED,rowIndex:i.rowIndex,rowPinned:i.rowPinned,column:i.column,isFullWidthCell:!0,floating:i.rowPinned,fromBelow:s};return this.eventService.dispatchEvent(a),!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){var t=this.rowPositionUtils.getRowNode(e);return!!t},t.prototype.getLastCellOfColSpan=function(e){var t=this.getCellByPosition(e);if(!t)return e;var o=t.getColSpanningList();return 1===o.length?e:{rowIndex:e.rowIndex,column:Ee(o),rowPinned:e.rowPinned}},t.prototype.ensureCellVisible=function(e){var t,o=this.gridOptionsWrapper.isGroupRowsSticky(),r=this.rowModel.getRow(e.rowIndex),n=o&&(null===(t=r)||void 0===t?void 0:t.sticky);!n&&i(e.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(e.column)},Xp([ne("mouseEventService")],t.prototype,"mouseEventService",void 0),Xp([ne("paginationProxy")],t.prototype,"paginationProxy",void 0),Xp([ne("focusService")],t.prototype,"focusService",void 0),Xp([ie("rangeService")],t.prototype,"rangeService",void 0),Xp([ne("columnModel")],t.prototype,"columnModel",void 0),Xp([ne("rowModel")],t.prototype,"rowModel",void 0),Xp([ne("ctrlsService")],t.prototype,"ctrlsService",void 0),Xp([ne("rowRenderer")],t.prototype,"rowRenderer",void 0),Xp([ne("headerNavigationService")],t.prototype,"headerNavigationService",void 0),Xp([ne("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Xp([ne("cellNavigationService")],t.prototype,"cellNavigationService",void 0),Xp([ne("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Xp([te],t.prototype,"postConstruct",null),t=Xp([re("navigationService")],t),t}(rt),Jp=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Zp=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},$p=function(e){function t(t){var o=e.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return o.params=t,o}return Jp(t,e),t.prototype.postConstruct=function(){this.gridOptionsWrapper.setDomData(this.getGui(),t.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addKeyDownListener()},t.prototype.addKeyDownListener=function(){var e=this,t=this.getGui(),o=this.params,r=function(t){ti(e.gridOptionsWrapper,t,o.node,o.column,!0)||o.onKeyDown(t)};this.addManagedListener(t,"keydown",r)},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",Zp([te],t.prototype,"postConstruct",null),t}(ra),ec=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),tc=function(e){function t(t,o,r,n,i){var s=e.call(this)||this;s.rendererVersion=0,s.editorVersion=0,s.beans=t,s.column=o.getColumn(),s.rowNode=o.getRowNode(),s.rowCtrl=o.getRowCtrl(),s.eRow=n,s.setTemplate('<div comp-id="'+s.getCompId()+'"/>');var a=s.getGui();s.forceWrapper=o.isForceWrapper(),s.refreshWrapper(!1);var l=function(e,t,o){var r=o||a;null!=t&&""!=t?r.setAttribute(e,t):r.removeAttribute(e)},u={addOrRemoveCssClass:function(e,t){return s.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return Lr(a,e)},getFocusableElement:function(){return s.getFocusableElement()},setTabIndex:function(e){return l("tabindex",e.toString())},setRole:function(e){return ln(a,e)},setColId:function(e){return l("col-id",e)},setTitle:function(e){return l("title",e)},setIncludeSelection:function(e){return s.includeSelection=e},setIncludeRowDrag:function(e){return s.includeRowDrag=e},setIncludeDndSource:function(e){return s.includeDndSource=e},setRenderDetails:function(e,t,o){return s.setRenderDetails(e,t,o)},setEditDetails:function(e,t,o){return s.setEditDetails(e,t,o)},getCellEditor:function(){return s.cellEditor||null},getCellRenderer:function(){return s.cellRenderer||null},getParentOfValue:function(){return s.getParentOfValue()}};return s.cellCtrl=o,o.setComp(u,s.getGui(),s.eCellWrapper,r,i),s}return ec(t,e),t.prototype.getParentOfValue=function(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()},t.prototype.setRenderDetails=function(e,t,o){var r=this.cellEditor&&!this.cellEditorPopupWrapper;if(!r){this.firstRender=null==this.firstRender;var n=this.refreshWrapper(!1);if(e){var i=o||n,s=!i&&this.refreshCellRenderer(e);s||(this.destroyRenderer(),this.createCellRendererInstance(e))}else this.destroyRenderer(),this.insertValueWithoutCellRenderer(t)}},t.prototype.setEditDetails=function(e,t,o){e?this.createCellEditorInstance(e,t,o):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,o=t||this.forceWrapper,r=o&&null==this.eCellWrapper;r&&(this.eCellWrapper=br('<div class="ag-cell-wrapper" role="presentation"></div>'),this.getGui().appendChild(this.eCellWrapper));var n=!o&&null!=this.eCellWrapper;n&&(Sr(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!o);var i=!e&&o,s=i&&null==this.eCellValue;s&&(this.eCellValue=br('<span class="ag-cell-value" role="presentation"></span>'),this.eCellWrapper.appendChild(this.eCellValue));var a=!i&&null!=this.eCellValue;a&&(Sr(this.eCellValue),this.eCellValue=void 0);var l=r||n||s||a;return l&&this.removeControls(),!e&&t&&this.addControls(),l},t.prototype.addControls=function(){var e=this.eCellValue.id="cell-"+this.getCompId(),t=[];Cn(this.eCellWrapper,!0),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.push(this.checkboxSelectionComp.getCheckboxId())),t.push(e),vn(this.getGui(),t.join(" "))},t.prototype.createCellEditorInstance=function(e,t,o){var r=this,n=this.editorVersion,s=e.newAgStackInstance();if(s){var a=e.params;s.then((function(e){return r.afterCellEditorCreated(n,e,a,t,o)}));var l=i(this.cellEditor);l&&a.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},t.prototype.insertValueWithoutCellRenderer=function(e){var t=this.getParentOfValue();Rr(t);var o=null!=e?vt(e):null;null!=o&&(t.innerHTML=o)},t.prototype.destroyEditorAndRenderer=function(){this.destroyRenderer(),this.destroyEditor()},t.prototype.destroyRenderer=function(){var e=this.beans.context;this.cellRenderer=e.destroyBean(this.cellRenderer),Sr(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),Sr(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,o=this.beans.gridOptionsWrapper.isAngularCompileRows(),r=this.beans.gridOptionsWrapper.isSuppressAnimationFrame(),n=!o&&!r,i=this.rendererVersion,s=e.componentClass,a=function(){var o=t.rendererVersion!==i||!t.isAlive();if(!o){var r=e.newAgStackInstance(),n=t.afterCellRendererCreated.bind(t,i,s);r&&r.then(n)}};n&&this.firstRender?this.beans.animationFrameService.createTask(a,this.rowNode.rowIndex,"createTasksP2"):a()},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,o){var r=!this.isAlive()||e!==this.rendererVersion;if(r)this.beans.context.destroyBean(o);else if(this.cellRenderer=o,this.cellRendererClass=t,this.cellRendererGui=this.cellRenderer.getGui(),null!=this.cellRendererGui){var n=this.getParentOfValue();Rr(n),n.appendChild(this.cellRendererGui)}},t.prototype.afterCellEditorCreated=function(e,t,o,r,n){var i=e!==this.editorVersion;if(i)this.beans.context.destroyBean(t);else{var s=t.isCancelBeforeStart&&t.isCancelBeforeStart();if(s)return this.beans.context.destroyBean(t),void this.cellCtrl.stopEditing();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 a=r||void 0!==t.isPopup&&t.isPopup();a?(r||this.cellCtrl.hackSayEditingInPopup(),this.addPopupCellEditor(o,n)):this.addInCellEditor(),t.afterGuiAttached&&t.afterGuiAttached()}},t.prototype.addInCellEditor=function(){var e=this.getGui(),t=this.beans.gridOptionsWrapper.getDocument();if(e.contains(t.activeElement)&&e.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui){var o=this.getParentOfValue();o.appendChild(this.cellEditorGui)}},t.prototype.addPopupCellEditor=function(e,t){var o=this;this.beans.gridOptionsWrapper.isFullRowEdit()&&console.warn("AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var r=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new $p(e));var n=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&n.appendChild(this.cellEditorGui);var i=this.beans.popupService,s=this.beans.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus(),a=null!=t?t:r.getPopupPosition?r.getPopupPosition():"over",l={column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),ePopup:n,keepWithinBounds:!0},u="under"===a?i.positionPopupUnderComponent.bind(i,l):i.positionPopupOverComponent.bind(i,l),p=this.beans.gridOptionsWrapper.getLocaleTextFunc(),c=i.addPopup({modal:s,eChild:n,closeOnEsc:!0,closedCallback:function(){o.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:u,ariaLabel:p("ariaLabelCellEditor","Cell Editor")});c&&(this.hideEditorPopup=c.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.gridOptionsWrapper.getDocument();e.contains(t.activeElement)&&$t()&&e.focus({preventScroll:!0}),Rr(this.getParentOfValue())},t}(Di),oc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),rc=function(e){function t(t,o,r){var n=e.call(this)||this;n.cellComps={},n.beans=o,n.rowCtrl=t,n.setTemplate('<div comp-id="'+n.getCompId()+'" style="'+n.getInitialStyle()+'"/>');var i=n.getGui(),s=i.style,a={setDomOrder:function(e){return n.domOrder=e},setCellCtrls:function(e){return n.setCellCtrls(e)},showFullWidth:function(e){return n.showFullWidth(e)},getFullWidthCellRenderer:function(){return n.getFullWidthCellRenderer()},addOrRemoveCssClass:function(e,t){return n.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return Lr(i,e)},setTop:function(e){return s.top=e},setTransform:function(e){return s.transform=e},setRowIndex:function(e){return i.setAttribute("row-index",e)},setRole:function(e){return ln(i,e)},setRowId:function(e){return i.setAttribute("row-id",e)},setRowBusinessKey:function(e){return i.setAttribute("row-business-key",e)},setTabIndex:function(e){return i.setAttribute("tabindex",e.toString())}};return t.setComp(a,n.getGui(),r),n}return oc(t,e),t.prototype.getInitialStyle=function(){var e=this.rowCtrl.getInitialTransform(),t=this.rowCtrl.getInitialRowTop();return e?"transform: "+e:"top: "+t},t.prototype.showFullWidth=function(e){var t=this,o=function(e){if(t.isAlive()){var o=e.getGui();t.getGui().appendChild(o),t.rowCtrl.setupDetailRowAutoHeight(o),t.setFullWidthRowComp(e)}else t.beans.context.destroyBean(e)},r=e.newAgStackInstance();r&&r.then(o)},t.prototype.setCellCtrls=function(e){var t=this,o=Object.assign({},this.cellComps);e.forEach((function(e){var r=e.getInstanceId(),n=t.cellComps[r];null==n?t.newCellComp(e):o[r]=null}));var r=b(o).filter((function(e){return null!=e}));this.destroyCells(r),this.ensureDomOrder(e)},t.prototype.ensureDomOrder=function(e){var t=this;if(this.domOrder){var o=[];e.forEach((function(e){var r=t.cellComps[e.getInstanceId()];r&&o.push(r.getGui())})),Ir(this.getGui(),o)}},t.prototype.newCellComp=function(e){var t=new tc(this.beans,e,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[e.getInstanceId()]=t,this.getGui().appendChild(t.getGui())},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.destroyAllCells()},t.prototype.destroyAllCells=function(){var e=b(this.cellComps).filter((function(e){return null!=e}));this.destroyCells(e)},t.prototype.setFullWidthRowComp=function(e){var t=this;this.fullWidthCellRenderer&&console.error("AG Grid - should not be setting fullWidthRowComponent twice"),this.fullWidthCellRenderer=e,this.addDestroyFunc((function(){t.fullWidthCellRenderer=t.beans.context.destroyBean(t.fullWidthCellRenderer)}))},t.prototype.getFullWidthCellRenderer=function(){return this.fullWidthCellRenderer},t.prototype.destroyCells=function(e){var t=this;e.forEach((function(e){if(e){var o=e.getCtrl().getInstanceId();t.cellComps[o]===e&&(e.detach(),e.destroy(),t.cellComps[o]=null)}}))},t}(Di),nc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ic=function(){return ic=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},ic.apply(this,arguments)},sc=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s};function ac(){var e,t=Di.elementGettingCreated.getAttribute("name"),o=Mp.getRowContainerCssClasses(t),r=t===op.CENTER,n=t===op.TOP_CENTER||t===op.STICKY_TOP_CENTER||t===op.BOTTOM_CENTER;return e=r?'<div class="'+o.wrapper+'" ref="eWrapper" role="presentation">\n <div class="'+o.viewport+'" ref="eViewport" role="presentation">\n <div class="'+o.container+'" ref="eContainer"></div>\n </div>\n </div>':n?'<div class="'+o.viewport+'" ref="eViewport" role="presentation">\n <div class="'+o.container+'" ref="eContainer"></div>\n </div>':'<div class="'+o.container+'" ref="eContainer"></div>',e}var lc,uc=function(e){function t(){var t=e.call(this,ac())||this;return t.rowComps={},t.name=Di.elementGettingCreated.getAttribute("name"),t.type=Ip(t.name),t}return nc(t,e),t.prototype.postConstruct=function(){var e=this,t={setViewportHeight:function(t){return e.eViewport.style.height=t},setRowCtrls:function(t){return e.setRowCtrls(t)},setDomOrder:function(t){e.domOrder=t},setContainerWidth:function(t){return e.eContainer.style.width=t}},o=this.createManagedBean(new Mp(this.name));o.setComp(t,this.eContainer,this.eViewport,this.eWrapper)},t.prototype.preDestroy=function(){this.setRowCtrls([])},t.prototype.setRowCtrls=function(e){var t=this,o=ic({},this.rowComps);this.rowComps={},this.lastPlacedElement=null;var r=function(e){var r=e.getInstanceId(),n=o[r];if(n)t.rowComps[r]=n,delete o[r],t.ensureDomOrder(n.getGui());else{var i=t.newRowComp(e);t.rowComps[r]=i,t.appendRow(i.getGui())}};e.forEach(r),b(o).forEach((function(e){t.eContainer.removeChild(e.getGui()),e.destroy()})),ln(this.eContainer,e.length?"rowgroup":"presentation")},t.prototype.appendRow=function(e){this.domOrder?Gr(this.eContainer,e,this.lastPlacedElement):this.eContainer.appendChild(e),this.lastPlacedElement=e},t.prototype.ensureDomOrder=function(e){this.domOrder&&(Nr(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},t.prototype.newRowComp=function(e){Mp.getPinned(this.name);var t=new rc(e,this.beans,this.type);return t},sc([ne("beans")],t.prototype,"beans",void 0),sc([Ai("eViewport")],t.prototype,"eViewport",void 0),sc([Ai("eContainer")],t.prototype,"eContainer",void 0),sc([Ai("eWrapper")],t.prototype,"eWrapper",void 0),sc([te],t.prototype,"postConstruct",null),sc([oe],t.prototype,"preDestroy",null),t}(Di),pc=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},cc=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.gridOptionsWrapper.isFunctionsReadOnly()){var o=e.dragItem.columns;o&&o.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(){var e=this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length;return e>0?this.pinned?xa.ICON_PINNED:xa.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")},pc([ne("columnModel")],e.prototype,"columnModel",void 0),pc([ne("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(),dc=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},hc=function(e,t){var o="function"===typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,n,i=o.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=i.next()).done)s.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(o=i["return"])&&o.call(i)}finally{if(n)throw n.error}}return s},fc=function(){function e(e,t){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=e,this.eContainer=t,this.centerContainer=!n(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?xa.ICON_PINNED:xa.ICON_MOVE},e.prototype.onDragEnter=function(e){var t=e.dragItem.columns,o=e.dragSource.type===_a.ToolPanel;if(o)this.setColumnsVisible(t,!0,"uiColumnDragged");else{var r=e.dragItem.visibleState,n=(t||[]).filter((function(e){return r[e.getId()]}));this.setColumnsVisible(n,!0,"uiColumnDragged")}this.setColumnsPinned(t,this.pinned,"uiColumnDragged"),this.onDragging(e,!0,!0)},e.prototype.onDragLeave=function(e){this.ensureIntervalCleared()},e.prototype.setColumnsVisible=function(e,t,o){if(void 0===o&&(o="api"),e){var r=e.filter((function(e){return!e.getColDef().lockVisible}));this.columnModel.setColumnsVisible(r,t,o)}},e.prototype.setColumnsPinned=function(e,t,o){if(void 0===o&&(o="api"),e){var r=e.filter((function(e){return!e.getColDef().lockPinned}));this.columnModel.setColumnsPinned(r,t,o)}},e.prototype.onDragStop=function(){this.ensureIntervalCleared()},e.prototype.normaliseX=function(e){if(this.gridOptionsWrapper.isEnableRtl()){var t=this.eContainer.clientWidth;e=t-e}return this.centerContainer&&(e+=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),e},e.prototype.checkCenterForScrolling=function(e){if(this.centerContainer){var t=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),o=t+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsWrapper.isEnableRtl()?(this.needToMoveRight=e<t+50,this.needToMoveLeft=e>o-50):(this.needToMoveLeft=e<t+50,this.needToMoveRight=e>o-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},e.prototype.onDragging=function(e,t,o){var r=this;if(void 0===t&&(t=!1),void 0===o&&(o=!1),this.lastDraggingEvent=e,!i(e.hDirection)){var n=this.normaliseX(e.x);t||this.checkCenterForScrolling(n);var s=this.normaliseDirection(e.hDirection),a=e.dragSource.type,l=e.dragSource.getDragItem().columns;l=l.filter((function(e){return!e.getColDef().lockPinned||e.getPinned()==r.pinned})),this.attemptMoveColumns(a,l,s,n,t,o)}},e.prototype.normaliseDirection=function(e){if(!this.gridOptionsWrapper.isEnableRtl())return e;switch(e){case Pa.Left:return Pa.Right;case Pa.Right:return Pa.Left;default:console.error("AG Grid: Unknown direction "+e)}},e.prototype.calculateOldIndex=function(e){var t=this.columnModel.getAllGridColumns(),o=_e(e.map((function(e){return t.indexOf(e)}))),r=o[0],n=Ee(o),i=n-r,s=i!==o.length-1;return s?null:r},e.prototype.attemptMoveColumns=function(e,t,o,r,n,i){var s=o===Pa.Left,a=o===Pa.Right;if(e===_a.HeaderCell){var l=[];t.forEach((function(e){var t=null,o=e.getParent();while(null!=o&&1===o.getDisplayedLeafColumns().length)t=o,o=o.getParent();null!=t?t.getLeafColumns().forEach((function(e){l.includes(e)||l.push(e)})):l.includes(e)||l.push(e)})),t=l}var u=t.slice();this.columnModel.sortColumnsLikeGridColumns(u);var p=this.calculateValidMoves(u,a,r),c=this.calculateOldIndex(u);if(0!==p.length){var d=p[0],h=null!==c&&!n;if(e==_a.HeaderCell&&(h=null!==c),h&&!i){if(s&&d>=c)return;if(a&&d<=c)return}for(var f=this.columnModel.getAllDisplayedColumns(),g=[],v=null,y=0;y<p.length;y++){var m=p[y],C=this.columnModel.getProposedColumnOrder(u,m);if(this.columnModel.doesOrderPassRules(C)){var w=C.filter((function(e){return f.includes(e)}));if(null===v)v=w;else if(!yi.areEqual(w,v))break;var E=this.groupFragCount(C);g.push({move:m,fragCount:E})}}if(0!==g.length){g.sort((function(e,t){return e.fragCount-t.fragCount}));var R=g[0].move;this.columnModel.moveColumns(u,R,"uiColumnDragged")}}},e.prototype.groupFragCount=function(e){function t(e){var t=[],o=e.getOriginalParent();while(null!=o)t.push(o),o=o.getOriginalParent();return t}for(var o=0,r=function(r){var n,i=t(e[r]),s=t(e[r+1]);n=hc(i.length>s.length?[i,s]:[s,i],2),i=n[0],s=n[1],i.forEach((function(e){-1===s.indexOf(e)&&o++}))},n=0;n<e.length-1;n++)r(n);return o},e.prototype.calculateValidMoves=function(e,t,o){var r=this.gridOptionsWrapper.isSuppressMovableColumns()||e.some((function(e){return e.getColDef().suppressMovable}));if(r)return[];var n,i=this.columnModel.getDisplayedColumns(this.pinned),s=this.columnModel.getAllGridColumns(),a=i.filter((function(t){return Ie(e,t)})),l=i.filter((function(t){return!Ie(e,t)})),u=s.filter((function(t){return!Ie(e,t)})),p=0,c=o;if(t){var d=0;a.forEach((function(e){return d+=e.getActualWidth()})),c-=d}if(c>0){for(var h=0;h<l.length;h++){var f=l[h];if(c-=f.getActualWidth(),c<0)break;p++}t&&p++}if(p>0){var g=l[p-1];n=u.indexOf(g)+1}else n=u.indexOf(l[0]),-1===n&&(n=0);var v=[n],y=function(e,t){return e-t};if(t){var m=n+1,C=s.length-1;while(m<=C)v.push(m),m++;v.sort(y)}else{m=n,C=s.length-1;var w=s[m];while(m<=C&&this.isColumnHidden(i,w))m++,v.push(m),w=s[m];m=n-1;var E=0;while(m>=E)v.push(m),m--;v.sort(y).reverse()}return v},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(xa.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(xa.ICON_RIGHT,!0))},e.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(xa.ICON_MOVE))},e.prototype.moveInterval=function(){var e;this.intervalCount++,e=10+5*this.intervalCount,e>100&&(e=100);var t=null,o=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?t=o.scrollHorizontally(-e):this.needToMoveRight&&(t=o.scrollHorizontally(e)),0!==t)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var r=this.lastDraggingEvent.dragItem.columns,n=r.filter((function(e){return!e.getColDef().lockPinned}));if(n.length>0&&(this.dragAndDropService.setGhostIcon(xa.ICON_PINNED),this.failedMoveAttempts>7)){var i=this.needToMoveLeft?fe.PINNED_LEFT:fe.PINNED_RIGHT;this.setColumnsPinned(n,i,"uiColumnDragged"),this.dragAndDropService.nudge()}}},dc([ne("columnModel")],e.prototype,"columnModel",void 0),dc([ne("dragAndDropService")],e.prototype,"dragAndDropService",void 0),dc([ne("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),dc([ne("ctrlsService")],e.prototype,"ctrlsService",void 0),dc([te],e.prototype,"init",null),e}(),gc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),vc=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},yc=function(e){function t(t,o){var r=e.call(this)||this;return r.pinned=t,r.eContainer=o,r}return gc(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){switch(e.pinned){case fe.PINNED_LEFT:e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.leftRowContainerCtrl.getContainerElement()],[t.bottomLeftRowContainerCtrl.getContainerElement()],[t.topLeftRowContainerCtrl.getContainerElement()]];break;case fe.PINNED_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()]];break}}))},t.prototype.isInterestedIn=function(e){return e===_a.HeaderCell||e===_a.ToolPanel&&this.gridOptionsWrapper.isAllowDragFromColumnsToolPanel()},t.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},t.prototype.getContainer=function(){return this.eContainer},t.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new fc(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new cc(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===_a.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)},vc([ne("dragAndDropService")],t.prototype,"dragAndDropService",void 0),vc([ne("columnModel")],t.prototype,"columnModel",void 0),vc([ne("ctrlsService")],t.prototype,"ctrlsService",void 0),vc([te],t.prototype,"postConstruct",null),vc([te],t.prototype,"init",null),t}(rt),mc=function(e,t){var o="function"===typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,n,i=o.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=i.next()).done)s.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(o=i["return"])&&o.call(i)}finally{if(n)throw n.error}}return s},Cc=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(mc(arguments[t]));return e},wc=function(){function e(){}return e.getHeaderClassesFromColDef=function(e,t,o,r){return i(e)?[]:this.getColumnClassesFromCollDef(e.headerClass,e,t,o,r)},e.getToolPanelClassesFromColDef=function(e,t,o,r){return i(e)?[]:this.getColumnClassesFromCollDef(e.toolPanelClass,e,t,o,r)},e.getClassParams=function(e,t,o,r){return{colDef:e,column:o,columnGroup:r,api:t.getApi(),columnApi:t.getColumnApi(),context:t.getContext()}},e.getColumnClassesFromCollDef=function(e,t,o,r,n){if(i(e))return[];var s;if("function"===typeof e){var a=this.getClassParams(t,o,r,n);s=e(a)}else s=e;return"string"===typeof s?[s]:Array.isArray(s)?Cc(s):[]},e}(),Ec=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Rc=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Oc=function(e){function t(o){var r=e.call(this,t.TEMPLATE,o)||this;return r.headerCompVersion=0,r.column=o.getColumnGroupChild(),r.pinned=o.getPinned(),r}return Ec(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),o=function(e,o,r){var n=r||t;null!=o&&""!=o?n.setAttribute(e,o):n.removeAttribute(e)},r={setWidth:function(e){return t.style.width=e},addOrRemoveCssClass:function(t,o){return e.addOrRemoveCssClass(t,o)},setColId:function(e){return o("col-id",e)},setTitle:function(e){return o("title",e)},setAriaDescription:function(e){return gn(t,e)},setAriaSort:function(e){return e?An(t,e):Nn(t)},setUserCompDetails:function(t){return e.setUserCompDetails(t)},getUserCompInstance:function(){return e.headerComp}};this.ctrl.setComp(r,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 o=this.headerCompVersion;e.newAgStackInstance().then((function(e){return t.afterCompCreated(o,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='<div class="ag-header-cell" role="columnheader" tabindex="-1">\n <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>\n <div ref="eHeaderCompWrapper" class="ag-header-cell-comp-wrapper" role="presentation"></div>\n </div>',Rc([Ai("eResize")],t.prototype,"eResize",void 0),Rc([Ai("eHeaderCompWrapper")],t.prototype,"eHeaderCompWrapper",void 0),Rc([te],t.prototype,"postConstruct",null),Rc([oe],t.prototype,"destroyHeaderComp",null),t}(Vl),Sc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),_c=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},bc=function(e){function t(o){return e.call(this,t.TEMPLATE,o)||this}return Sc(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),o=function(e,o){return void 0!=o?t.setAttribute(e,o):t.removeAttribute(e)},r={addOrRemoveCssClass:function(t,o){return e.addOrRemoveCssClass(t,o)},addOrRemoveResizableCssClass:function(t,o){return e.eResize.classList.toggle(t,o)},setWidth:function(e){return t.style.width=e},setColId:function(e){return t.setAttribute("col-id",e)},setAriaExpanded:function(e){return o("aria-expanded",e)},setTitle:function(e){return o("title",e)},setUserCompDetails:function(t){return e.setUserCompDetails(t)}};this.ctrl.setComp(r,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,o=function(){return t.destroyBean(e)};this.isAlive()?(this.getGui().appendChild(e.getGui()),this.addDestroyFunc(o),this.ctrl.setDragSource(e.getGui())):o()},t.TEMPLATE='<div class="ag-header-group-cell" role="columnheader" tabindex="-1">\n <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>\n </div>',_c([ne("userComponentFactory")],t.prototype,"userComponentFactory",void 0),_c([Ai("eResize")],t.prototype,"eResize",void 0),_c([te],t.prototype,"postConstruct",null),t}(Vl),Pc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Tc=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s}; /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */(function(e){e["COLUMN_GROUP"]="group",e["COLUMN"]="column",e["FLOATING_FILTER"]="filter"})(lc||(lc={}));var Dc,Ac=function(e){function t(t){var o=e.call(this)||this;o.headerComps={};var r=t.getType()==lc.COLUMN_GROUP?"ag-header-row-column-group":t.getType()==lc.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return o.setTemplate('<div class="ag-header-row '+r+'" role="row"></div>'),o.ctrl=t,o}return Pc(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 bn(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 o=this.headerComps;this.headerComps={},e.forEach((function(e){var r=e.getInstanceId(),n=o[r];delete o[r],null==n&&(n=t.createHeaderComp(e),t.getGui().appendChild(n.getGui())),t.headerComps[r]=n})),y(o,(function(e,o){t.getGui().removeChild(o.getGui()),t.destroyBean(o)}));var r=this.gridOptionsWrapper.isEnsureDomOrder();if(r){var n=b(this.headerComps);n.sort((function(e,t){var o=e.getCtrl().getColumnGroupChild().getLeft(),r=t.getCtrl().getColumnGroupChild().getLeft();return o-r}));var i=n.map((function(e){return e.getGui()}));Ir(this.getGui(),i)}}},t.prototype.createHeaderComp=function(e){var t;switch(this.ctrl.getType()){case lc.COLUMN_GROUP:t=new bc(e);break;case lc.FLOATING_FILTER:t=new Bl(e);break;default:t=new Oc(e);break}return this.createBean(t),t.setParentComponent(this),t},Tc([te],t.prototype,"init",null),Tc([oe],t.prototype,"destroyHeaderCtrls",null),t}(Di),Nc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ic=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Gc=0,Fc=function(e){function t(t,o){var r=e.call(this)||this;return r.lastFocusEvent=null,r.columnGroupChild=t,r.parentRowCtrl=o,r.instanceId=t.getUniqueId()+"-"+Gc++,r}return Nc(t,e),t.prototype.shouldStopEventPropagation=function(e){var t=this.focusService.getFocusedHeader(),o=t.headerRowIndex,r=t.column;return oi(this.gridOptionsWrapper,e,o,r)},t.prototype.getWrapperHasFocus=function(){var e=this.gridOptionsWrapper.getDocument(),t=e.activeElement;return t===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 zn.PAGE_DOWN:case zn.PAGE_UP:case zn.PAGE_HOME:case zn.PAGE_END:t&&e.preventDefault()}},t.prototype.addDomData=function(){var e=this,o=t.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsWrapper.setDomData(this.eGui,o,this),this.addDestroyFunc((function(){return e.gridOptionsWrapper.setDomData(e.eGui,o,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",Ic([ne("focusService")],t.prototype,"focusService",void 0),Ic([ne("beans")],t.prototype,"beans",void 0),Ic([ne("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(rt); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */(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"})(Dc||(Dc={})); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */ var Lc=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s};function Mc(e){var t=e,o=null!=t&&null!=t.getFrameworkComponentInstance;return o?t.getFrameworkComponentInstance():e}var xc,Hc=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 fe.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case fe.ROW_MODEL_TYPE_INFINITE:this.infiniteRowModel=this.rowModel;break;case fe.ROW_MODEL_TYPE_SERVER_SIDE:this.serverSideRowModel=this.rowModel;break}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.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;y(this.detailGridInfoMap,(function(o,r){n(r)&&(e(r,t),t++)}))},e.prototype.getDataAsCsv=function(e){if(ge.assertRegistered(ue.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(e)},e.prototype.exportDataAsCsv=function(e){ge.assertRegistered(ue.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(e)},e.prototype.getExcelExportMode=function(e){var t=this.gridOptionsWrapper.getDefaultExportParams("excel"),o=Object.assign({exportMode:"xlsx"},t,e);return o.exportMode},e.prototype.getDataAsExcel=function(e){if(ge.assertRegistered(ue.ExcelExportModule,"api.getDataAsExcel")){var t=this.getExcelExportMode(e);if(this.excelCreator.getFactoryMode(t)!==Ma.MULTI_SHEET)return this.excelCreator.getDataAsExcel(e);console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`")}},e.prototype.exportDataAsExcel=function(e){if(ge.assertRegistered(ue.ExcelExportModule,"api.exportDataAsExcel")){var t=this.getExcelExportMode(e);this.excelCreator.getFactoryMode(t)!==Ma.MULTI_SHEET?this.excelCreator.exportDataAsExcel(e):console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`")}},e.prototype.getSheetDataForExcel=function(e){if(ge.assertRegistered(ue.ExcelExportModule,"api.getSheetDataForExcel")){var t=this.getExcelExportMode(e);return this.excelCreator.setFactoryMode(Ma.MULTI_SHEET,t),this.excelCreator.getSheetDataForExcel(e)}},e.prototype.getMultipleSheetsAsExcel=function(e){if(ge.assertRegistered(ue.ExcelExportModule,"api.getMultipleSheetsAsExcel"))return this.excelCreator.getMultipleSheetsAsExcel(e)},e.prototype.exportMultipleSheetsAsExcel=function(e){if(ge.assertRegistered(ue.ExcelExportModule,"api.exportMultipleSheetsAsExcel"))return this.excelCreator.exportMultipleSheetsAsExcel(e)},e.prototype.setEnterpriseDatasource=function(e){console.warn("AG Grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()"),this.setServerSideDatasource(e)},e.prototype.setGridAriaProperty=function(e,t){if(e){var o=this.ctrlsService.getGridBodyCtrl().getGui(),r="aria-"+e;null===t?o.removeAttribute(r):o.setAttribute(r,t)}},e.prototype.setServerSideDatasource=function(e){this.serverSideRowModel?this.serverSideRowModel.setDatasource(e):console.warn("AG Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '"+fe.ROW_MODEL_TYPE_SERVER_SIDE+"'")},e.prototype.setCacheBlockSize=function(e){this.serverSideRowModel?(this.gridOptionsWrapper.setProperty("cacheBlockSize",e),this.serverSideRowModel.resetRootStore()):console.warn("AG Grid: you can only set cacheBlockSize with gridOptions.rowModelType '"+fe.ROW_MODEL_TYPE_SERVER_SIDE+"'")},e.prototype.setDatasource=function(e){this.gridOptionsWrapper.isRowModelInfinite()?this.rowModel.setDatasource(e):console.warn("AG Grid: you can only use a datasource when gridOptions.rowModelType is '"+fe.ROW_MODEL_TYPE_INFINITE+"'")},e.prototype.setViewportDatasource=function(e){this.gridOptionsWrapper.isRowModelViewport()?this.rowModel.setViewportDatasource(e):console.warn("AG Grid: you can only use a viewport datasource when gridOptions.rowModelType is '"+fe.ROW_MODEL_TYPE_VIEWPORT+"'")},e.prototype.setRowData=function(e){var t=null==this.immutableService;t?console.warn("AG Grid: you can only set rowData when using the Client Side Row Model"):this.immutableService.isActive()?this.immutableService.setRowData(e):(this.selectionService.reset(),this.clientSideRowModel.setRowData(e))},e.prototype.setFloatingTopRowData=function(e){console.warn("AG Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()"),this.setPinnedTopRowData(e)},e.prototype.setFloatingBottomRowData=function(e){console.warn("AG Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()"),this.setPinnedBottomRowData(e)},e.prototype.getFloatingTopRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()"),this.getPinnedTopRowCount()},e.prototype.getFloatingBottomRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()"),this.getPinnedBottomRowCount()},e.prototype.getFloatingTopRow=function(e){return console.warn("AG Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()"),this.getPinnedTopRow(e)},e.prototype.getFloatingBottomRow=function(e){return console.warn("AG Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()"),this.getPinnedBottomRow(e)},e.prototype.setPinnedTopRowData=function(e){this.pinnedRowModel.setPinnedTopRowData(e)},e.prototype.setPinnedBottomRowData=function(e){this.pinnedRowModel.setPinnedBottomRowData(e)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},e.prototype.getPinnedTopRow=function(e){return this.pinnedRowModel.getPinnedTopRow(e)},e.prototype.getPinnedBottomRow=function(e){return this.pinnedRowModel.getPinnedBottomRow(e)},e.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api"),this.columnModel.setColumnDefs(e,t)},e.prototype.setAutoGroupColumnDef=function(e,t){this.gridOptionsWrapper.setProperty(Vo.PROP_AUTO_GROUP_COLUMN_DEF,e,!0)},e.prototype.setDefaultColDef=function(e,t){this.gridOptionsWrapper.setProperty(Vo.PROP_DEFAULT_COL_DEF,e,!0)},e.prototype.expireValueCache=function(){this.valueCache.expire()},e.prototype.getVerticalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getVScrollPosition()},e.prototype.getHorizontalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getHScrollPosition()},e.prototype.setAlwaysShowHorizontalScroll=function(e){this.gridOptionsWrapper.setProperty("alwaysShowHorizontalScroll",e)},e.prototype.setAlwaysShowVerticalScroll=function(e){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",e)},e.prototype.refreshToolPanel=function(){this.sideBarComp&&this.sideBarComp.refresh()},e.prototype.refreshCells=function(e){void 0===e&&(e={}),Array.isArray(e)?console.warn("since AG Grid v11.1, refreshCells() now takes parameters, please see the documentation."):this.rowRenderer.refreshCells(e)},e.prototype.flashCells=function(e){void 0===e&&(e={}),this.rowRenderer.flashCells(e)},e.prototype.redrawRows=function(e){void 0===e&&(e={});var t=e?e.rowNodes:void 0;this.rowRenderer.redrawRows(t)},e.prototype.setFunctionsReadOnly=function(e){this.gridOptionsWrapper.setProperty("functionsReadOnly",e)},e.prototype.refreshHeader=function(){this.ctrlsService.getHeaderRowContainerCtrls().forEach((function(e){return e.refresh()}))},e.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},e.prototype.isColumnFilterPresent=function(){return this.filterManager.isColumnFilterPresent()||this.filterManager.isAggregateFilterPresent()},e.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},e.prototype.getModel=function(){return this.rowModel},e.prototype.setRowNodeExpanded=function(e,t){e&&e.setExpanded(t)},e.prototype.onGroupExpandedOrCollapsed=function(e){i(this.clientSideRowModel)&&console.warn("AG Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),n(e)&&console.warn("AG Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows"),this.clientSideRowModel.refreshModel({step:Dc.MAP})},e.prototype.refreshInMemoryRowModel=function(e){console.warn("AG Grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()"),this.refreshClientSideRowModel(e)},e.prototype.refreshClientSideRowModel=function(e){i(this.clientSideRowModel)&&console.warn("cannot call refreshClientSideRowModel unless using normal row model");var t=Dc.EVERYTHING,o={everything:Dc.EVERYTHING,group:Dc.EVERYTHING,filter:Dc.FILTER,map:Dc.MAP,aggregate:Dc.AGGREGATE,sort:Dc.SORT,pivot:Dc.PIVOT};if(n(e)&&(t=o[e]),i(t))console.error("AG Grid: invalid step "+e+", available steps are "+Object.keys(o).join(", "));else{var r=!this.gridOptionsWrapper.isSuppressAnimationFrame(),s={step:t,keepRenderedRows:!0,keepEditingRows:!0,animate:r};this.clientSideRowModel.refreshModel(s)}},e.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},e.prototype.flushAllAnimationFrames=function(){this.animationFrameService.flushAllFrames()},e.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},e.prototype.getSizesForCurrentTheme=function(){return{rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),headerHeight:this.gridOptionsWrapper.getHeaderHeight()}},e.prototype.expandAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!0):this.serverSideRowModel?this.serverSideRowModel.expandAll(!0):console.warn("AG Grid: expandAll only works with Client Side Row Model and Server Side Row Model")},e.prototype.collapseAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!1):this.serverSideRowModel?this.serverSideRowModel.expandAll(!1):console.warn("AG Grid: collapseAll only works with Client Side Row Model and Server Side Row Model")},e.prototype.getToolPanelInstance=function(e){if(this.sideBarComp){var t=this.sideBarComp.getToolPanelInstance(e);return Mc(t)}console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},e.prototype.addVirtualRowListener=function(e,t,o){"string"!==typeof e&&console.warn("AG Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(e,t,o)},e.prototype.addRenderedRowListener=function(e,t,o){"virtualRowSelected"===e&&console.warn("AG Grid: event virtualRowSelected is deprecated, to register for individual row\n selection events, add a listener directly to the row node."),this.rowRenderer.addRenderedRowListener(e,t,o)},e.prototype.setQuickFilter=function(e){this.filterManager.setQuickFilter(e)},e.prototype.selectIndex=function(e,t,o){console.warn("AG Grid: do not use api for selection, call rowNode.setSelected(value) instead"),o&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.selectIndex(e,t)},e.prototype.deselectIndex=function(e,t){void 0===t&&(t=!1),console.warn("AG Grid: do not use api for selection, call rowNode.setSelected(value) instead"),t&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.deselectIndex(e)},e.prototype.selectNode=function(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1),console.warn("AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead"),o&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!0,clearSelection:!t})},e.prototype.deselectNode=function(e,t){void 0===t&&(t=!1),console.warn("AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead"),t&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!1})},e.prototype.selectAll=function(){this.selectionService.selectAllRowNodes()},e.prototype.deselectAll=function(){this.selectionService.deselectAllRowNodes()},e.prototype.selectAllFiltered=function(){this.selectionService.selectAllRowNodes(!0)},e.prototype.deselectAllFiltered=function(){this.selectionService.deselectAllRowNodes(!0)},e.prototype.recomputeAggregates=function(){i(this.clientSideRowModel)&&console.warn("cannot call recomputeAggregates unless using normal row model"),console.warn("recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead"),this.clientSideRowModel.refreshModel({step:Dc.AGGREGATE})},e.prototype.sizeColumnsToFit=function(e){this.gridBodyCtrl.sizeColumnsToFit(e)},e.prototype.showLoadingOverlay=function(){this.overlayWrapperComp.showLoadingOverlay()},e.prototype.showNoRowsOverlay=function(){this.overlayWrapperComp.showNoRowsOverlay()},e.prototype.hideOverlay=function(){this.overlayWrapperComp.hideOverlay()},e.prototype.isNodeSelected=function(e){return console.warn("AG Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead"),e.isSelected()},e.prototype.getSelectedNodesById=function(){return console.error("AG Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead"),null},e.prototype.getSelectedNodes=function(){return this.selectionService.getSelectedNodes()},e.prototype.getSelectedRows=function(){return this.selectionService.getSelectedRows()},e.prototype.getBestCostNodeSelection=function(){return this.selectionService.getBestCostNodeSelection()},e.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},e.prototype.ensureColIndexVisible=function(e){console.warn("AG Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.")},e.prototype.ensureColumnVisible=function(e,t){void 0===t&&(t="auto"),this.gridBodyCtrl.getScrollFeature().ensureColumnVisible(e,t)},e.prototype.ensureIndexVisible=function(e,t){this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(e,t)},e.prototype.ensureNodeVisible=function(e,t){void 0===t&&(t=null),this.gridBodyCtrl.getScrollFeature().ensureNodeVisible(e,t)},e.prototype.forEachLeafNode=function(e){i(this.clientSideRowModel)&&console.warn("cannot call forEachNode unless using normal row model"),this.clientSideRowModel.forEachLeafNode(e)},e.prototype.forEachNode=function(e){this.rowModel.forEachNode(e)},e.prototype.forEachNodeAfterFilter=function(e){i(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilter unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilter(e)},e.prototype.forEachNodeAfterFilterAndSort=function(e){i(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilterAndSort unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilterAndSort(e)},e.prototype.getFilterInstance=function(e,t){var o=this.getFilterInstanceImpl(e,(function(e){if(t){var o=Mc(e);t(o)}})),r=Mc(o);return r},e.prototype.getFilterInstanceImpl=function(e,t){var o=this.columnModel.getPrimaryColumn(e);if(o){var r=this.filterManager.getFilterComponent(o,"NO_UI"),n=r&&r.resolveNow(null,(function(e){return e}));return n?setTimeout(t,0,n):r&&r.then((function(e){t(e)})),n}},e.prototype.destroyFilter=function(e){var t=this.columnModel.getPrimaryColumn(e);if(t)return this.filterManager.destroyFilter(t,"filterDestroyed")},e.prototype.getStatusPanel=function(e){if(this.statusBarService){var t=this.statusBarService.getStatusPanel(e);return Mc(t)}},e.prototype.getColumnDef=function(e){var t=this.columnModel.getPrimaryColumn(e);return t?t.getColDef():null},e.prototype.getColumnDefs=function(){return this.columnModel.getColumnDefs()},e.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},e.prototype.onSortChanged=function(){this.sortController.onSortChanged("api")},e.prototype.setFilterModel=function(e){this.filterManager.setFilterModel(e)},e.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},e.prototype.getFocusedCell=function(){return this.focusService.getFocusedCell()},e.prototype.clearFocusedCell=function(){return this.focusService.clearFocusedCell()},e.prototype.setFocusedCell=function(e,t,o){this.focusService.setFocusedCell({rowIndex:e,column:t,rowPinned:o,forceBrowserFocus:!0})},e.prototype.setSuppressRowDrag=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_SUPPRESS_ROW_DRAG,e)},e.prototype.setSuppressMoveWhenRowDragging=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG,e)},e.prototype.setSuppressRowClickSelection=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_SUPPRESS_ROW_CLICK_SELECTION,e)},e.prototype.addRowDropZone=function(e){this.gridBodyCtrl.getRowDragFeature().addRowDropZone(e)},e.prototype.removeRowDropZone=function(e){var t=this.dragAndDropService.findExternalZone(e);t&&this.dragAndDropService.removeDropTarget(t)},e.prototype.getRowDropZoneParams=function(e){return this.gridBodyCtrl.getRowDragFeature().getRowDropZone(e)},e.prototype.setHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_HEADER_HEIGHT,e)},e.prototype.setDomLayout=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_DOM_LAYOUT,e)},e.prototype.setEnableCellTextSelection=function(e){this.gridBodyCtrl.setCellTextSelection(e)},e.prototype.setFillHandleDirection=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_FILL_HANDLE_DIRECTION,e)},e.prototype.setGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_GROUP_HEADER_HEIGHT,e)},e.prototype.setFloatingFiltersHeight=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_FLOATING_FILTERS_HEIGHT,e)},e.prototype.setPivotHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_PIVOT_HEADER_HEIGHT,e)},e.prototype.setPivotGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_PIVOT_GROUP_HEADER_HEIGHT,e)},e.prototype.setIsExternalFilterPresent=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_IS_EXTERNAL_FILTER_PRESENT,e)},e.prototype.setDoesExternalFilterPass=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_DOES_EXTERNAL_FILTER_PASS,e)},e.prototype.setNavigateToNextCell=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_NAVIGATE_TO_NEXT_CELL,e)},e.prototype.setTabToNextCell=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_TAB_TO_NEXT_CELL,e)},e.prototype.setTabToNextHeader=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_TAB_TO_NEXT_HEADER,e)},e.prototype.setNavigateToNextHeader=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_NAVIGATE_TO_NEXT_HEADER,e)},e.prototype.setRowGroupPanelShow=function(e){this.gridOptionsWrapper.setProperty("rowGroupPanelShow",e)},e.prototype.setGroupRowAggNodes=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_GROUP_ROW_AGG_NODES,e)},e.prototype.setGetGroupRowAgg=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_GET_GROUP_ROW_AGG,e)},e.prototype.setGetBusinessKeyForNode=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_GET_BUSINESS_KEY_FOR_NODE,e)},e.prototype.setGetChildCount=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_GET_CHILD_COUNT,e)},e.prototype.setProcessRowPostCreate=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_PROCESS_ROW_POST_CREATE,e)},e.prototype.setGetRowNodeId=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_GET_ROW_NODE_ID,e)},e.prototype.setGetRowId=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_GET_ROW_ID,e)},e.prototype.setGetRowClass=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_GET_ROW_CLASS,e)},e.prototype.setIsFullWidthCell=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_IS_FULL_WIDTH_CELL,e)},e.prototype.setIsFullWidthRow=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_IS_FULL_WIDTH_ROW,e)},e.prototype.setIsRowSelectable=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_IS_ROW_SELECTABLE,e)},e.prototype.setIsRowMaster=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_IS_ROW_MASTER,e)},e.prototype.setPostSort=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_POST_SORT,e)},e.prototype.setPostSortRows=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_POST_SORT_ROWS,e)},e.prototype.setGetDocument=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_GET_DOCUMENT,e)},e.prototype.setGetContextMenuItems=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_GET_CONTEXT_MENU_ITEMS,e)},e.prototype.setGetMainMenuItems=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_GET_MAIN_MENU_ITEMS,e)},e.prototype.setProcessCellForClipboard=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_PROCESS_CELL_FOR_CLIPBOARD,e)},e.prototype.setSendToClipboard=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_SEND_TO_CLIPBOARD,e)},e.prototype.setProcessCellFromClipboard=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_PROCESS_CELL_FROM_CLIPBOARD,e)},e.prototype.setProcessSecondaryColDef=function(e){console.warn("AG Grid: since version 28.0.x setProcessSecondaryColDef has been renamed, please use setProcessPivotResultColDef instead"),this.setProcessPivotResultColDef(e)},e.prototype.setProcessSecondaryColGroupDef=function(e){console.warn("AG Grid: since version 28.0.x setProcessSecondaryColGroupDef has been renamed, please use setProcessPivotResultColGroupDef instead"),this.setProcessPivotResultColGroupDef(e)},e.prototype.setProcessPivotResultColDef=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_PROCESS_PIVOT_RESULT_COL_DEF,e)},e.prototype.setProcessPivotResultColGroupDef=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_PROCESS_PIVOT_RESULT_COL_GROUP_DEF,e)},e.prototype.setPostProcessPopup=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_POST_PROCESS_POPUP,e)},e.prototype.setDefaultGroupOrderComparator=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_DEFAULT_GROUP_ORDER_COMPARATOR,e)},e.prototype.setInitialGroupOrderComparator=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_INITIAL_GROUP_ORDER_COMPARATOR,e)},e.prototype.setGetChartToolbarItems=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_GET_CHART_TOOLBAR_ITEMS,e)},e.prototype.setPaginationNumberFormatter=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_PAGINATION_NUMBER_FORMATTER,e)},e.prototype.setGetServerSideStoreParams=function(e){this.setGetServerSideGroupLevelParams(e)},e.prototype.setGetServerSideGroupLevelParams=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_GET_SERVER_SIDE_GROUP_PARAMS,e)},e.prototype.setIsServerSideGroupOpenByDefault=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT,e)},e.prototype.setIsApplyServerSideTransaction=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION,e)},e.prototype.setIsServerSideGroup=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_IS_SERVER_SIDE_GROUP,e)},e.prototype.setGetServerSideGroupKey=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_GET_SERVER_SIDE_GROUP_KEY,e)},e.prototype.setGetRowStyle=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_GET_ROW_STYLE,e)},e.prototype.setGetRowHeight=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_GET_ROW_HEIGHT,e)},e.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isDisplayed()},e.prototype.setSideBarVisible=function(e){this.sideBarComp?this.sideBarComp.setDisplayed(e):e&&console.warn("AG Grid: sideBar is not loaded")},e.prototype.setSideBarPosition=function(e){this.sideBarComp?this.sideBarComp.setSideBarPosition(e):console.warn("AG Grid: sideBar is not loaded")},e.prototype.openToolPanel=function(e){this.sideBarComp?this.sideBarComp.openToolPanel(e):console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},e.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},e.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},e.prototype.getSideBar=function(){return this.gridOptionsWrapper.getSideBar()},e.prototype.setSideBar=function(e){this.gridOptionsWrapper.setProperty("sideBar",jt.parse(e))},e.prototype.setSuppressClipboardPaste=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_SUPPRESS_CLIPBOARD_PASTE,e)},e.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},e.prototype.doLayout=function(){var e="AG Grid - since version 25.1, doLayout was taken out, as it's not needed. The grid responds to grid size changes automatically";x((function(){return console.warn(e)}),"doLayoutDeprecated")},e.prototype.resetRowHeights=function(){if(n(this.clientSideRowModel)){if(this.columnModel.isAutoRowHeightActive())return void console.warn("AG Grid: calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.");this.clientSideRowModel.resetRowHeights()}},e.prototype.setGroupRemoveSingleChildren=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_GROUP_REMOVE_SINGLE_CHILDREN,e)},e.prototype.setGroupRemoveLowestSingleChildren=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,e)},e.prototype.setGroupDisplayType=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_GROUP_DISPLAY_TYPE,e)},e.prototype.onRowHeightChanged=function(){this.clientSideRowModel?this.clientSideRowModel.onRowHeightChanged():this.serverSideRowModel&&this.serverSideRowModel.onRowHeightChanged()},e.prototype.getValue=function(e,t){var o=this.columnModel.getPrimaryColumn(e);return i(o)&&(o=this.columnModel.getGridColumn(e)),i(o)?null:this.valueService.getValue(o,t)},e.prototype.addEventListener=function(e,t){var o=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addEventListener(e,t,o)},e.prototype.addGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addGlobalListener(e,t)},e.prototype.removeEventListener=function(e,t){var o=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeEventListener(e,t,o)},e.prototype.removeGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeGlobalListener(e,t)},e.prototype.dispatchEvent=function(e){this.eventService.dispatchEvent(e)},e.prototype.destroy=function(){if(!this.destroyCalled){this.destroyCalled=!0;var e=this.ctrlsService.getGridCtrl();e&&e.destroyGridUi(),this.context.destroy()}},e.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(G.bind(window,this,"Grid API"),100)},e.prototype.warnIfDestroyed=function(e){return this.destroyCalled&&console.warn("AG Grid: Grid API method "+e+" was called on a grid that was destroyed."),this.destroyCalled},e.prototype.resetQuickFilter=function(){this.warnIfDestroyed("resetQuickFilter")||this.rowModel.forEachNode((function(e){return e.quickFilterAggregateText=null}))},e.prototype.getRangeSelections=function(){return console.warn("AG Grid: in v20.1.x, api.getRangeSelections() is gone, please use getCellRanges() instead.\n We had to change how cell selections works a small bit to allow charting to integrate. The return type of\n getCellRanges() is a bit different, please check the AG Grid documentation."),null},e.prototype.getCellRanges=function(){return this.rangeService?this.rangeService.getCellRanges():(console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),null)},e.prototype.camelCaseToHumanReadable=function(e){return yt(e)},e.prototype.addRangeSelection=function(e){console.warn("AG Grid: As of version 21.x, range selection changed slightly to allow charting integration. Please call api.addCellRange() instead of api.addRangeSelection()")},e.prototype.addCellRange=function(e){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.addCellRange(e)},e.prototype.clearRangeSelection=function(){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.removeAllCellRanges()},e.prototype.undoCellEditing=function(){this.undoRedoService.undo()},e.prototype.redoCellEditing=function(){this.undoRedoService.redo()},e.prototype.getCurrentUndoSize=function(){return this.undoRedoService.getCurrentUndoStackSize()},e.prototype.getCurrentRedoSize=function(){return this.undoRedoService.getCurrentRedoStackSize()},e.prototype.getChartModels=function(){if(ge.assertRegistered(ue.RangeSelectionModule,"api.getChartModels")&&ge.assertRegistered(ue.GridChartsModule,"api.getChartModels"))return this.chartService.getChartModels()},e.prototype.getChartRef=function(e){if(ge.assertRegistered(ue.RangeSelectionModule,"api.getChartRef")&&ge.assertRegistered(ue.GridChartsModule,"api.getChartRef"))return this.chartService.getChartRef(e)},e.prototype.getChartImageDataURL=function(e){if(ge.assertRegistered(ue.GridChartsModule,"api.getChartImageDataURL"))return this.chartService.getChartImageDataURL(e)},e.prototype.downloadChart=function(e){if(ge.assertRegistered(ue.GridChartsModule,"api.downloadChart"))return this.chartService.downloadChart(e)},e.prototype.openChartToolPanel=function(e){if(ge.assertRegistered(ue.GridChartsModule,"api.openChartToolPanel"))return this.chartService.openChartToolPanel(e)},e.prototype.closeChartToolPanel=function(e){if(ge.assertRegistered(ue.GridChartsModule,"api.closeChartToolPanel"))return this.chartService.closeChartToolPanel(e.chartId)},e.prototype.createRangeChart=function(e){if(ge.assertRegistered(ue.RangeSelectionModule,"api.createRangeChart")&&ge.assertRegistered(ue.GridChartsModule,"api.createRangeChart"))return this.chartService.createRangeChart(e)},e.prototype.createCrossFilterChart=function(e){if(ge.assertRegistered(ue.RangeSelectionModule,"api.createCrossFilterChart")&&ge.assertRegistered(ue.GridChartsModule,"api.createCrossFilterChart"))return this.chartService.createCrossFilterChart(e)},e.prototype.restoreChart=function(e,t){if(ge.assertRegistered(ue.RangeSelectionModule,"api.restoreChart")&&ge.assertRegistered(ue.GridChartsModule,"api.restoreChart"))return this.chartService.restoreChart(e,t)},e.prototype.createPivotChart=function(e){if(ge.assertRegistered(ue.RangeSelectionModule,"api.createPivotChart")&&ge.assertRegistered(ue.GridChartsModule,"api.createPivotChart"))return this.chartService.createPivotChart(e)},e.prototype.copyToClipboard=function(e){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copyToClipboard(e)},e.prototype.copySelectedRowsToClipboard=function(e){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRowsToClipboard(e)},e.prototype.copySelectedRangeToClipboard=function(e){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRangeToClipboard(e)},e.prototype.copySelectedRangeDown=function(){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copyRangeDown()},e.prototype.showColumnMenuAfterButtonClick=function(e,t){var o=this.columnModel.getGridColumn(e);this.menuFactory.showMenuAfterButtonClick(o,t,"columnMenu")},e.prototype.showColumnMenuAfterMouseClick=function(e,t){var o=this.columnModel.getGridColumn(e);o||(o=this.columnModel.getPrimaryColumn(e)),o?this.menuFactory.showMenuAfterMouseEvent(o,t):console.error("AG Grid: column '"+e+"' not found")},e.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},e.prototype.setPopupParent=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_POPUP_PARENT,e)},e.prototype.tabToNextCell=function(e){return this.navigationService.tabToNextCell(!1,e)},e.prototype.tabToPreviousCell=function(e){return this.navigationService.tabToNextCell(!0,e)},e.prototype.getCellRendererInstances=function(e){void 0===e&&(e={});var t=this.rowRenderer.getCellRendererInstances(e),o=t.map(Mc);return o},e.prototype.getCellEditorInstances=function(e){void 0===e&&(e={});var t=this.rowRenderer.getCellEditorInstances(e),o=t.map(Mc);return o},e.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},e.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.rowRenderer.stopEditing(e)},e.prototype.startEditingCell=function(e){var t=this.columnModel.getGridColumn(e.colKey);if(t){var o={rowIndex:e.rowIndex,rowPinned:e.rowPinned||null,column:t},r=null==e.rowPinned;r&&this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(e.rowIndex);var n=this.navigationService.getCellByPosition(o);n&&n.startRowOrCellEdit(e.key,e.charPress)}else console.warn("AG Grid: no column found for "+e.colKey)},e.prototype.addAggFunc=function(e,t){this.aggFuncService&&this.aggFuncService.addAggFunc(e,t)},e.prototype.addAggFuncs=function(e){this.aggFuncService&&this.aggFuncService.addAggFuncs(e)},e.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},e.prototype.applyServerSideTransaction=function(e){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransaction(e);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},e.prototype.applyServerSideTransactionAsync=function(e,t){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransactionAsync(e,t);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},e.prototype.retryServerSideLoads=function(){this.serverSideRowModel?this.serverSideRowModel.retryLoads():console.warn("AG Grid: API retryServerSideLoads() can only be used when using Server-Side Row Model.")},e.prototype.flushServerSideAsyncTransactions=function(){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.flushAsyncTransactions();console.warn("AG Grid: Cannot flush Server Side Transaction if not using the Server Side Row Model.")},e.prototype.applyTransaction=function(e){if(this.clientSideRowModel){var t=this.clientSideRowModel.updateRowData(e);return this.rowRenderer.refreshFullWidthRows(t.update),this.gridOptionsWrapper.isSuppressChangeDetection()||this.rowRenderer.refreshCells(),t}console.error("AG Grid: updateRowData() only works with ClientSideRowModel. Working with InfiniteRowModel was deprecated in v23.1 and removed in v24.1")},e.prototype.setDeltaSort=function(e){this.gridOptionsWrapper.setProperty("deltaSort",e)},e.prototype.updateRowData=function(e){var t="AG Grid: as of v23.1, grid API updateRowData(transaction) is now called applyTransaction(transaction). updateRowData is deprecated and will be removed in a future major release.";return x((function(){return console.warn(t)}),"updateRowData deprecated"),this.applyTransaction(e)},e.prototype.applyTransactionAsync=function(e,t){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(e,t):console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},e.prototype.flushAsyncTransactions=function(){this.clientSideRowModel?this.clientSideRowModel.flushAsyncTransactions():console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},e.prototype.batchUpdateRowData=function(e,t){var o="AG Grid: as of v23.1, grid API batchUpdateRowData(transaction, callback) is now called applyTransactionAsync(transaction, callback). batchUpdateRowData is deprecated and will be removed in a future major release.";x((function(){return console.warn(o)}),"batchUpdateRowData deprecated"),this.applyTransactionAsync(e,t)},e.prototype.insertItemsAtIndex=function(e,t,o){console.warn("AG Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:t,addIndex:e,update:null,remove:null})},e.prototype.removeItems=function(e,t){console.warn("AG Grid: removeItems() is deprecated, use updateRowData(transaction) instead.");var o=e.map((function(e){return e.data}));this.updateRowData({add:null,addIndex:null,update:null,remove:o})},e.prototype.addItems=function(e,t){console.warn("AG Grid: addItems() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:e,addIndex:null,update:null,remove:null})},e.prototype.refreshVirtualPageCache=function(){console.warn("AG Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfinitePageCache=function(){console.warn("AG Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():console.warn("AG Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeVirtualPageCache=function(){console.warn("AG Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfinitePageCache()},e.prototype.purgeInfinitePageCache=function(){console.warn("AG Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfiniteCache()},e.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():console.warn("AG Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeEnterpriseCache=function(e){console.warn("AG Grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.refreshServerSide({purge: true})"),this.purgeServerSideCache(e)},e.prototype.purgeServerSideCache=function(e){void 0===e&&(e=[]),this.serverSideRowModel?(console.warn("AG Grid: since v25.0, api.purgeServerSideCache is deprecated. Please use api.refreshServerSide({purge: true}) instead."),this.refreshServerSide({route:e,purge:!0})):console.warn("AG Grid: api.purgeServerSideCache is only available when rowModelType='serverSide'.")},e.prototype.refreshServerSide=function(e){this.serverSideRowModel?this.serverSideRowModel.refreshStore(e):console.warn("AG Grid: api.refreshServerSide is only available when rowModelType='serverSide'.")},e.prototype.refreshServerSideStore=function(e){var t="AG Grid: Grid API refreshServerSideStore() was renamed to refreshServerSide() in v28.0";return x((function(){return console.warn(t)}),"refreshServerSideStore-renamed"),this.refreshServerSide(e)},e.prototype.getServerSideStoreState=function(){var e="AG Grid: Grid API getServerSideStoreState() was renamed to getServerSideGroupLevelState() in v28.0";return x((function(){return console.warn(e)}),"getServerSideStoreState-renamed"),this.getServerSideGroupLevelState()},e.prototype.getServerSideGroupLevelState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(console.warn("AG Grid: api.getServerSideGroupLevelState is only available when rowModelType='serverSide'."),[])},e.prototype.getVirtualRowCount=function(){return console.warn("AG Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead"),this.getInfiniteRowCount()},e.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();console.warn("AG Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},e.prototype.isMaxRowFound=function(){return console.warn("AG Grid: api.isMaxRowFound is deprecated, please use api.isLastRowIndexKnown()"),this.isLastRowIndexKnown()},e.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();console.warn("AG Grid: api.isMaxRowFound is only available when rowModelType='virtual'.")},e.prototype.setVirtualRowCount=function(e,t){console.warn("AG Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead"),this.setRowCount(e,t)},e.prototype.setInfiniteRowCount=function(e,t){console.warn("AG Grid: setInfiniteRowCount() is now called setRowCount(), please call setRowCount() instead"),this.setRowCount(e,t)},e.prototype.setRowCount=function(e,t){this.infiniteRowModel?this.infiniteRowModel.setRowCount(e,t):console.warn("AG Grid: api.setRowCount is only available for Infinite Row Model.")},e.prototype.getVirtualPageState=function(){return console.warn("AG Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getInfinitePageState=function(){return console.warn("AG Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getCacheBlockState=function(){return this.rowNodeBlockLoader.getBlockState()},e.prototype.checkGridSize=function(){console.warn("In AG Grid v25.2.0, checkGridSize() was removed, as it was legacy and didn't do anything useful.")},e.prototype.getFirstRenderedRow=function(){return console.warn("In AG Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()"),this.getFirstDisplayedRow()},e.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},e.prototype.getLastRenderedRow=function(){return console.warn("in AG Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()"),this.getLastDisplayedRow()},e.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},e.prototype.getDisplayedRowAtIndex=function(e){return this.rowModel.getRow(e)},e.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},e.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},e.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},e.prototype.paginationSetPageSize=function(e){this.gridOptionsWrapper.setProperty("paginationPageSize",e)},e.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},e.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},e.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},e.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},e.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},e.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},e.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},e.prototype.paginationGoToPage=function(e){this.paginationProxy.goToPage(e)},e.prototype.setRowClass=function(e){this.gridOptionsWrapper.setProperty(Vo.PROP_ROW_CLASS,e)},Lc([ie("immutableService")],e.prototype,"immutableService",void 0),Lc([ie("csvCreator")],e.prototype,"csvCreator",void 0),Lc([ie("excelCreator")],e.prototype,"excelCreator",void 0),Lc([ne("rowRenderer")],e.prototype,"rowRenderer",void 0),Lc([ne("navigationService")],e.prototype,"navigationService",void 0),Lc([ne("filterManager")],e.prototype,"filterManager",void 0),Lc([ne("columnModel")],e.prototype,"columnModel",void 0),Lc([ne("selectionService")],e.prototype,"selectionService",void 0),Lc([ne("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Lc([ne("valueService")],e.prototype,"valueService",void 0),Lc([ne("alignedGridsService")],e.prototype,"alignedGridsService",void 0),Lc([ne("eventService")],e.prototype,"eventService",void 0),Lc([ne("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Lc([ne("context")],e.prototype,"context",void 0),Lc([ne("rowModel")],e.prototype,"rowModel",void 0),Lc([ne("sortController")],e.prototype,"sortController",void 0),Lc([ne("paginationProxy")],e.prototype,"paginationProxy",void 0),Lc([ne("focusService")],e.prototype,"focusService",void 0),Lc([ne("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Lc([ie("rangeService")],e.prototype,"rangeService",void 0),Lc([ie("clipboardService")],e.prototype,"clipboardService",void 0),Lc([ie("aggFuncService")],e.prototype,"aggFuncService",void 0),Lc([ne("menuFactory")],e.prototype,"menuFactory",void 0),Lc([ie("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),Lc([ne("valueCache")],e.prototype,"valueCache",void 0),Lc([ne("animationFrameService")],e.prototype,"animationFrameService",void 0),Lc([ie("statusBarService")],e.prototype,"statusBarService",void 0),Lc([ie("chartService")],e.prototype,"chartService",void 0),Lc([ie("undoRedoService")],e.prototype,"undoRedoService",void 0),Lc([ie("rowNodeBlockLoader")],e.prototype,"rowNodeBlockLoader",void 0),Lc([ie("ssrmTransactionManager")],e.prototype,"serverSideTransactionManager",void 0),Lc([ne("ctrlsService")],e.prototype,"ctrlsService",void 0),Lc([ie("frameworkComponentWrapper")],e.prototype,"frameworkComponentWrapper",void 0),Lc([te],e.prototype,"init",null),Lc([oe],e.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),e=Lc([re("gridApi")],e),e}(),Vc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Wc=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},kc=function(e){function t(t,o,r,n){var i=e.call(this)||this;return i.columnOrGroup=t,i.eCell=o,i.ariaEl=i.eCell.querySelector("[role=columnheader]")||i.eCell,i.colsSpanning=n,i.beans=r,i}return Vc(t,e),t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?Ee(this.colsSpanning):this.columnOrGroup},t.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,me.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,lt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,Vo.PROP_DOM_LAYOUT,this.onLeftChanged.bind(this))},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),t=n(this.columnOrGroup.getOldLeft()),o=this.beans.columnAnimationService.isActive()&&t&&!e;o?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,t=this.getColumnOrGroup(),o=t.getLeft(),r=t.getOldLeft(),n=this.modifyLeftForPrintLayout(t,r),i=this.modifyLeftForPrintLayout(t,o);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){var o=this.beans.gridOptionsWrapper.getDomLayout()===fe.DOM_LAYOUT_PRINT;if(!o)return t;if(e.getPinned()===fe.PINNED_LEFT)return t;var r=this.beans.columnModel.getDisplayedColumnsLeftWidth();if(e.getPinned()===fe.PINNED_RIGHT){var n=this.beans.columnModel.getBodyContainerWidth();return r+n+t}return r+t},t.prototype.setLeft=function(e){var t;if(n(e)&&(this.eCell.style.left=e+"px"),this.columnOrGroup instanceof me)t=this.columnOrGroup;else{var o=this.columnOrGroup,r=o.getLeafColumns();if(!r.length)return;r.length>1&&Dn(this.ariaEl,r.length),t=r[0]}var i=this.beans.columnModel.getAriaColumnIndex(t);Tn(this.ariaEl,i)},Wc([te],t.prototype,"postConstruct",null),t}(rt),Bc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),jc=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Uc=function(e){function t(t,o){var r=e.call(this)||this;return r.columns=t,r.element=o,r}return Bc(t,e),t.prototype.postConstruct=function(){this.gridOptionsWrapper.isColumnHoverHighlight()&&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)},jc([ne("columnHoverService")],t.prototype,"columnHoverService",void 0),jc([te],t.prototype,"postConstruct",null),t}(rt),zc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Kc=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Yc=function(e){function t(t,o){var r=e.call(this,t,o)||this;return r.column=t,r}return zc(t,e),t.prototype.setComp=function(t,o,r,n){e.prototype.setGui.call(this,o),this.comp=t,this.eButtonShowMainFilter=r,this.eFloatingFilterBody=n;var i=this.column.getColDef(),s=!!i.filter||!!i.filterFramework,a=!!i.floatingFilter;this.active=s&&a,this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},t.prototype.setupUi=function(){if(this.comp.addOrRemoveButtonWrapperCssClass("ag-hidden",!this.active||this.suppressFilterButton),this.active){this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton);var e=jn("filter",this.gridOptionsWrapper,this.column);e&&this.eButtonShowMainFilter.appendChild(e)}},t.prototype.setupFocus=function(){this.createManagedBean(new zi(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},t.prototype.onTabKeyDown=function(e){var t=this.gridOptionsWrapper.getDocument(),o=t.activeElement,r=o===this.eGui;if(!r){var n=this.focusService.findNextFocusableElement(this.eGui,null,e.shiftKey);if(n)return this.beans.headerNavigationService.scrollToColumn(this.column),e.preventDefault(),void n.focus();var i=this.findNextColumnWithFloatingFilter(e.shiftKey);i&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:i},event:e})&&e.preventDefault()}},t.prototype.findNextColumnWithFloatingFilter=function(e){var t=this.beans.columnModel,o=this.column;do{if(o=e?t.getDisplayedColBefore(o):t.getDisplayedColAfter(o),!o)break}while(!o.getColDef().filter||!o.getColDef().floatingFilter);return o},t.prototype.handleKeyDown=function(t){e.prototype.handleKeyDown.call(this,t);var o=this.getWrapperHasFocus();switch(t.key){case zn.UP:case zn.DOWN:o||t.preventDefault();case zn.LEFT:case zn.RIGHT:if(o)return;t.stopPropagation();case zn.ENTER:o&&this.focusService.focusInto(this.eGui)&&t.preventDefault();break;case zn.ESCAPE:o||this.eGui.focus()}},t.prototype.onFocusIn=function(e){var t=this.eGui.contains(e.relatedTarget);if(!t){var o=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),r=!!e.relatedTarget&&hr(e.relatedTarget,"ag-floating-filter");if(o&&r&&e.target===this.eGui){var n=this.lastFocusEvent,i=!(!n||n.key!==zn.TAB);if(n&&i){var s=n.shiftKey;this.focusService.focusInto(this.eGui,s)}}var a=this.getRowIndex();this.beans.focusService.setFocusedHeader(a,this.column)}},t.prototype.setupHover=function(){var e=this;this.createManagedBean(new Uc([this.column],this.eGui));var t=function(){if(e.gridOptionsWrapper.isColumnHoverHighlight()){var t=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",t)}};this.addManagedListener(this.eventService,lt.EVENT_COLUMN_HOVER_CHANGED,t),t()},t.prototype.setupLeft=function(){var e=new kc(this.column,this.eGui,this.beans);this.createManagedBean(e)},t.prototype.setupUserComp=function(){var e=this;if(this.active){var t=this.column.getColDef(),o=this.filterManager.createFilterParams(this.column,t),r=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(t,ml,o),n=this.userComponentFactory.getDefaultFloatingFilterType(t);null==n&&(n="agReadOnlyFloatingFilter");var i={column:this.column,filterParams:r,currentParentModel:function(){return e.currentParentModel()},parentFilterInstance:function(t){return e.parentFilterInstance(t)},showParentFilter:function(){return e.showParentFilter()},suppressFilterButton:!1};this.suppressFilterButton=!!t.floatingFilterComponentParams&&!!t.floatingFilterComponentParams.suppressFilterButton;var s=this.userComponentFactory.getFloatingFilterCompDetails(t,i,n);s&&this.comp.setCompDetails(s)}},t.prototype.currentParentModel=function(){var e=this.getFilterComponent(!1);return e?e.resolveNow(null,(function(e){return e&&e.getModel()})):null},t.prototype.getFilterComponent=function(e){return void 0===e&&(e=!0),this.filterManager.getFilterComponent(this.column,"NO_UI",e)},t.prototype.parentFilterInstance=function(e){var t=this.getFilterComponent();null!=t&&t.then((function(t){e(Mc(t))}))},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 o=e.comp.getFloatingFilterComp();if(o){var r=e.currentParentModel();o.then((function(e){e&&e.onParentModelChanged(r,t)}))}};this.addManagedListener(this.column,me.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,me.EVENT_WIDTH_CHANGED,t),t()},Kc([ne("filterManager")],t.prototype,"filterManager",void 0),Kc([ne("columnHoverService")],t.prototype,"columnHoverService",void 0),Kc([ne("menuFactory")],t.prototype,"menuFactory",void 0),t}(Fc),qc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Xc=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Qc=function(e){function t(t,o,r,n,i){var s=e.call(this)||this;return s.pinned=t,s.column=o,s.eResize=r,s.comp=n,s.ctrl=i,s}return qc(t,e),t.prototype.postConstruct=function(){var e,t,o=this,r=this.column.getColDef(),n=[],i=function(){if(pr(o.eResize,e),e){var r=o.horizontalResizeService.addResizeBar({eResizeBar:o.eResize,onResizeStart:o.onResizeStart.bind(o),onResizing:o.onResizing.bind(o,!1),onResizeEnd:o.onResizing.bind(o,!0)});if(n.push(r),t){var i=o.gridOptionsWrapper.isSkipHeaderOnAutoSize(),s=function(){o.columnModel.autoSizeColumn(o.column,i,"uiColumnResized")};o.eResize.addEventListener("dblclick",s);var a=new Ks(o.eResize);a.addEventListener(Ks.EVENT_DOUBLE_TAP,s),o.addDestroyFunc((function(){o.eResize.removeEventListener("dblclick",s),a.removeEventListener(Ks.EVENT_DOUBLE_TAP,s),a.destroy()}))}}},s=function(){n.forEach((function(e){return e()})),n.length=0},a=function(){var n=o.column.isResizable(),a=!o.gridOptionsWrapper.isSuppressAutoSize()&&!r.suppressAutoSize,l=n!==e||a!==t;l&&(e=n,t=a,s(),i())};a(),this.addDestroyFunc(s),this.ctrl.addRefreshFunction(a)},t.prototype.onResizing=function(e,t){var o=this.normaliseResizeAmount(t),r=[{key:this.column,newWidth:this.resizeStartWidth+o}];this.columnModel.setColumnWidths(r,this.resizeWithShiftKey,e,"uiColumnDragged"),e&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},t.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=e,this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},t.prototype.normaliseResizeAmount=function(e){var t=e,o=this.pinned!==fe.PINNED_LEFT,r=this.pinned===fe.PINNED_RIGHT;return this.gridOptionsWrapper.isEnableRtl()?o&&(t*=-1):r&&(t*=-1),t},Xc([ne("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),Xc([ne("columnModel")],t.prototype,"columnModel",void 0),Xc([te],t.prototype,"postConstruct",null),t}(rt),Jc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Zc=function(e){function t(t,o,r){void 0===o&&(o="ag-checkbox"),void 0===r&&(r="checkbox");var n=e.call(this,t,o,r)||this;return n.labelAlignment="right",n.selected=!1,n.readOnly=!1,n.passive=!1,n}return Jc(t,e),t.prototype.addInputListeners=function(){this.addManagedListener(this.eInput,"click",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,"click",this.toggle.bind(this))},t.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},t.prototype.setPassive=function(e){this.passive=e},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setReadOnly=function(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e},t.prototype.setDisabled=function(t){return this.eWrapper.classList.toggle("ag-disabled",t),e.prototype.setDisabled.call(this,t)},t.prototype.toggle=function(){if(!this.eInput.disabled){var e=this.isSelected(),t=this.getNextValue();this.passive?this.dispatchChange(t,e):this.setValue(t)}},t.prototype.getValue=function(){return this.isSelected()},t.prototype.setValue=function(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this},t.prototype.setName=function(e){var t=this.getInputElement();return t.name=e,this},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e,t){this.isSelected()!==e&&(this.previousValue=this.isSelected(),e=this.selected="boolean"===typeof e?e:void 0,this.eInput.checked=e,this.eInput.indeterminate=void 0===e,t||this.dispatchChange(this.selected,this.previousValue))},t.prototype.dispatchChange=function(e,o,r){this.dispatchEvent({type:t.EVENT_CHANGED,selected:e,previousValue:o,event:r});var n=this.getInputElement(),i={type:lt.EVENT_CHECKBOX_CHANGED,id:n.id,name:n.name,selected:e,previousValue:o};this.eventService.dispatchEvent(i)},t.prototype.onCheckboxClick=function(e){if(!this.passive&&!this.eInput.disabled){var t=this.isSelected(),o=this.selected=e.target.checked;this.refreshSelectedClass(o),this.dispatchChange(o,t,e)}},t.prototype.refreshSelectedClass=function(e){this.eWrapper.classList.toggle("ag-checked",!0===e),this.eWrapper.classList.toggle("ag-indeterminate",null==e)},t}(cs),$c=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ed=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},td=function(e){function t(t){var o=e.call(this)||this;o.cbSelectAllVisible=!1,o.processingEventFromCheckbox=!1,o.column=t;var r=t.getColDef();return o.filteredOnly=!!r&&!!r.headerCheckboxSelectionFilteredOnly,o}return $c(t,e),t.prototype.onSpaceKeyPressed=function(e){var t=this.cbSelectAll,o=this.gridOptionsWrapper.getDocument();t.isDisplayed()&&!t.getGui().contains(o.activeElement)&&(e.preventDefault(),t.setValue(!t.getValue()))},t.prototype.getCheckboxGui=function(){return this.cbSelectAll.getGui()},t.prototype.setComp=function(e){this.headerCellCtrl=e,this.cbSelectAll=this.createManagedBean(new Zc),this.cbSelectAll.addCssClass("ag-header-select-all"),ln(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,lt.EVENT_NEW_COLUMNS_LOADED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,lt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,lt.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,lt.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,Zc.EVENT_CHANGED,this.onCbSelectAll.bind(this)),Cn(this.cbSelectAll.getGui(),!0),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()},t.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType(),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()},t.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.getNextCheckboxState=function(e){return(0!==e.selected||0!==e.notSelected)&&(e.selected>0&&e.notSelected>0?null:e.selected>0)},t.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.getSelectionCount(),t=this.getNextCheckboxState(e);this.cbSelectAll.setValue(t),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},t.prototype.refreshSelectAllLabel=function(){if(this.cbSelectAllVisible){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.cbSelectAll.getValue(),o=t?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),r=e("ariaRowSelectAll","Press Space to toggle all rows selection");this.headerCellCtrl.setAriaDescriptionProperty("selectAll",r+" ("+o+")"),this.cbSelectAll.setInputAriaLabel(r+" ("+o+")")}else this.headerCellCtrl.setAriaDescriptionProperty("selectAll",null),this.cbSelectAll.setInputAriaLabel(null);this.headerCellCtrl.refreshAriaDescription()},t.prototype.getSelectionCount=function(){var e=this,t=0,o=0,r=function(r){e.gridOptionsWrapper.isGroupSelectsChildren()&&r.group||(r.isSelected()?t++:r.selectable&&o++)};return this.filteredOnly?this.gridApi.forEachNodeAfterFilter(r):this.gridApi.forEachNode(r),{notSelected:o,selected:t}},t.prototype.checkRightRowModelType=function(){var e=this.rowModel.getType(),t=e===fe.ROW_MODEL_TYPE_CLIENT_SIDE;t||console.warn("AG Grid: selectAllCheckbox is only available if using normal row model, you are using "+e)},t.prototype.onCbSelectAll=function(){if(!this.processingEventFromCheckbox&&this.cbSelectAllVisible){var e=this.cbSelectAll.getValue();e?this.selectionService.selectAllRowNodes(this.filteredOnly):this.selectionService.deselectAllRowNodes(this.filteredOnly)}},t.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;if("function"===typeof e){var t=e,o={column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi,context:this.gridOptionsWrapper.getContext()};e=t(o)}return!!e&&(this.gridOptionsWrapper.isRowModelServerSide()?(console.warn("AG Grid: headerCheckboxSelection is not supported for Server Side Row Model"),!1):this.gridOptionsWrapper.isRowModelInfinite()?(console.warn("AG Grid: headerCheckboxSelection is not supported for Infinite Row Model"),!1):!this.gridOptionsWrapper.isRowModelViewport()||(console.warn("AG Grid: headerCheckboxSelection is not supported for Viewport Row Model"),!1))},ed([ne("gridApi")],t.prototype,"gridApi",void 0),ed([ne("columnApi")],t.prototype,"columnApi",void 0),ed([ne("rowModel")],t.prototype,"rowModel",void 0),ed([ne("selectionService")],t.prototype,"selectionService",void 0),t}(rt),od=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),rd=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},nd=function(e){function t(t,o){var r=e.call(this,t,o)||this;return r.refreshFunctions=[],r.userHeaderClasses=new Set,r.ariaDescriptionProperties=new Map,r.column=t,r}return od(t,e),t.prototype.setComp=function(t,o,r,n){var i=this;e.prototype.setGui.call(this,o),this.comp=t,this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.setupWrapTextClass(),this.setupAutoHeight(n),this.addColumnHoverListener(),this.setupFilterCss(),this.setupColId(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.refreshAria(),this.createManagedBean(new Qc(this.getPinned(),this.column,r,t,this)),this.createManagedBean(new Uc([this.column],o)),this.createManagedBean(new kc(this.column,o,this.beans)),this.createManagedBean(new zi(o,{shouldStopEventPropagation:function(e){return i.shouldStopEventPropagation(e)},onTabKeyDown:function(){return null},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.column,me.EVENT_COL_DEF_CHANGED,this.onColDefChanged.bind(this)),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this))},t.prototype.setupUserComp=function(){var e=this.lookupUserCompDetails();this.setCompDetails(e)},t.prototype.setCompDetails=function(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)},t.prototype.lookupUserCompDetails=function(){var e=this.createParams(),t=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(t,e)},t.prototype.createParams=function(){var e=this,t=this.column.getColDef(),o={column:this.column,displayName:this.displayName,enableSorting:t.sortable,enableMenu:this.menuEnabled,showColumnMenu:function(t){e.gridApi.showColumnMenuAfterButtonClick(e.column,t)},progressSort:function(t){e.sortController.progressSort(e.column,!!t,"uiColumnSorted")},setSort:function(t,o){e.sortController.setSortForColumn(e.column,t,!!o,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext(),eGridHeader:this.getGui()};return o},t.prototype.setupSelectAll=function(){this.selectAllFeature=this.createManagedBean(new td(this.column)),this.selectAllFeature.setComp(this)},t.prototype.getSelectAllGui=function(){return this.selectAllFeature.getCheckboxGui()},t.prototype.handleKeyDown=function(t){e.prototype.handleKeyDown.call(this,t),t.key===zn.SPACE&&this.selectAllFeature.onSpaceKeyPressed(t),t.key===zn.ENTER&&this.onEnterKeyPressed(t)},t.prototype.onEnterKeyPressed=function(e){var t=this.comp.getUserCompInstance();if(t)if(e.ctrlKey||e.metaKey)this.menuEnabled&&t.showMenu&&(e.preventDefault(),t.showMenu());else if(this.sortable){var o=e.shiftKey;this.sortController.progressSort(this.column,o,"uiColumnSorted")}},t.prototype.isMenuEnabled=function(){return this.menuEnabled},t.prototype.onFocusIn=function(e){if(!this.getGui().contains(e.relatedTarget)){var t=this.getRowIndex();this.focusService.setFocusedHeader(t,this.column)}this.setActiveHeader(!0)},t.prototype.onFocusOut=function(e){this.getGui().contains(e.relatedTarget)||this.setActiveHeader(!1)},t.prototype.setupTooltip=function(){var e=this,t={getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getGui:function(){return e.eGui},getLocation:function(){return"header"},getTooltipValue:function(){var t=e.column.getColDef().headerTooltip;return t}},o=this.createManagedBean(new Pu(t,this.beans));o.setComp(this.comp),this.refreshFunctions.push((function(){return o.refreshToolTip()}))},t.prototype.setupClassesFromColDef=function(){var e=this,t=function(){var t=e.column.getColDef(),o=e.gridOptionsWrapper,r=wc.getHeaderClassesFromColDef(t,o,e.column,null),n=e.userHeaderClasses;e.userHeaderClasses=new Set(r),r.forEach((function(t){n.has(t)?n.delete(t):e.comp.addOrRemoveCssClass(t,!0)})),n.forEach((function(t){return e.comp.addOrRemoveCssClass(t,!1)}))};this.refreshFunctions.push(t),t()},t.prototype.setDragSource=function(e){var t=this;if(this.dragSourceElement=e,this.removeDragSource(),e&&this.draggable){var o=!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns();this.moveDragSource={type:_a.HeaderCell,eElement:e,defaultIconName:o?xa.ICON_HIDE:xa.ICON_NOT_ALLOWED,getDragItem:function(){return t.createDragItem()},dragItemName:this.displayName,onDragStarted:function(){return t.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return t.column.setMoving(!1,"uiColumnMoved")},onGridEnter:function(e){var r,n;if(o){var i=(null===(n=null===(r=e)||void 0===r?void 0:r.columns)||void 0===n?void 0:n.filter((function(e){return!e.getColDef().lockVisible})))||[];t.columnModel.setColumnsVisible(i,!0,"uiColumnMoved")}},onGridExit:function(e){var r,n;if(o){var i=(null===(n=null===(r=e)||void 0===r?void 0:r.columns)||void 0===n?void 0:n.filter((function(e){return!e.getColDef().lockVisible})))||[];t.columnModel.setColumnsVisible(i,!1,"uiColumnMoved")}}},this.dragAndDropService.addDragSource(this.moveDragSource,!0)}},t.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},t.prototype.removeDragSource=function(){this.moveDragSource&&(this.dragAndDropService.removeDragSource(this.moveDragSource),this.moveDragSource=void 0)},t.prototype.onColDefChanged=function(){this.refresh()},t.prototype.updateState=function(){var e=this.column.getColDef();this.menuEnabled=this.menuFactory.isMenuEnabled(this.column)&&!e.suppressMenu,this.sortable=e.sortable,this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()},t.prototype.addRefreshFunction=function(e){this.refreshFunctions.push(e)},t.prototype.refresh=function(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),this.refreshFunctions.forEach((function(e){return e()}))},t.prototype.refreshHeaderComp=function(){var e=this.lookupUserCompDetails(),t=this.comp.getUserCompInstance(),o=null!=t&&this.userCompDetails.componentClass==e.componentClass,r=!!o&&this.attemptHeaderCompRefresh(e.params);r?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)},t.prototype.attemptHeaderCompRefresh=function(e){var t=this.comp.getUserCompInstance();if(!t)return!1;if(!t.refresh)return!1;var o=t.refresh(e);return o},t.prototype.calculateDisplayName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"header",!0)},t.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},t.prototype.workOutDraggable=function(){var e=this.column.getColDef(),t=this.gridOptionsWrapper.isSuppressMovableColumns(),o=!t&&!e.suppressMovable&&!e.lockPosition;return!!o||!!e.enableRowGroup||!!e.enablePivot},t.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},t.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},t.prototype.onColumnValueChanged=function(){this.checkDisplayName()},t.prototype.setupWidth=function(){var e=this,t=function(){e.comp.setWidth(e.column.getActualWidth()+"px")};this.addManagedListener(this.column,me.EVENT_WIDTH_CHANGED,t),t()},t.prototype.setupMovingCss=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.column.isMoving())};this.addManagedListener(this.column,me.EVENT_MOVING_CHANGED,t),t()},t.prototype.setupMenuClass=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-column-menu-visible",e.column.isMenuVisible())};this.addManagedListener(this.column,me.EVENT_MENU_VISIBLE_CHANGED,t),t()},t.prototype.setupSortableClass=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!e.sortable)};t(),this.addRefreshFunction(t),this.addManagedListener(this.column,me.EVENT_SORT_CHANGED,this.refreshAriaSort.bind(this))},t.prototype.setupWrapTextClass=function(){var e=this,t=function(){var t=!!e.column.getColDef().wrapHeaderText;e.comp.addOrRemoveCssClass("ag-header-cell-wrap-text",t)};t(),this.addRefreshFunction(t)},t.prototype.setupAutoHeight=function(e){var t,o=this,r=function(t){if(o.isAlive()){var n=fr(o.getGui()),i=n.paddingTop,s=n.paddingBottom,a=e.offsetHeight,l=a+i+s;if(t<5){var u=o.beans.gridOptionsWrapper.getDocument(),p=!u||!u.contains(e),c=0==l;if(p||c)return void o.beans.frameworkOverrides.setTimeout((function(){return r(t+1)}),0)}o.columnModel.setColumnHeaderHeight(o.column,l)}},n=!1,i=function(){var e=o.column.isAutoHeaderHeight();e&&!n&&s(),!e&&n&&a()},s=function(){n=!0,r(0),o.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),t=o.resizeObserverService.observeResize(e,(function(){return r(0)}))},a=function(){n=!1,t&&t(),o.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),t=void 0};i(),this.addDestroyFunc((function(){return a()})),this.addManagedListener(this.column,me.EVENT_WIDTH_CHANGED,(function(){return n&&r(0)})),this.addManagedListener(this.column,me.EVENT_SORT_CHANGED,(function(){n&&o.beans.frameworkOverrides.setTimeout((function(){return r(0)}))})),this.addRefreshFunction(i)},t.prototype.refreshAriaSort=function(){if(this.sortable){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.comp.setAriaSort(un(this.column)),this.setAriaDescriptionProperty("sort",e("ariaSortableColumn","Press ENTER to sort."))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)},t.prototype.refreshAriaMenu=function(){if(this.menuEnabled){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",e("ariaMenuColumn","Press CTRL ENTER to open column menu."))}else this.setAriaDescriptionProperty("menu",null)},t.prototype.setAriaDescriptionProperty=function(e,t){null!=t?this.ariaDescriptionProperties.set(e,t):this.ariaDescriptionProperties.delete(e)},t.prototype.refreshAriaDescription=function(){var e=Array.from(this.ariaDescriptionProperties.values());this.comp.setAriaDescription(e.length?e.join(" "):void 0)},t.prototype.refreshAria=function(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaDescription()},t.prototype.addColumnHoverListener=function(){var e=this,t=function(){if(e.gridOptionsWrapper.isColumnHoverHighlight()){var t=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",t)}};this.addManagedListener(this.eventService,lt.EVENT_COLUMN_HOVER_CHANGED,t),t()},t.prototype.setupFilterCss=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-header-cell-filtered",e.column.isFilterActive())};this.addManagedListener(this.column,me.EVENT_FILTER_ACTIVE_CHANGED,t),t()},t.prototype.setupColId=function(){this.comp.setColId(this.column.getColId())},t.prototype.addActiveHeaderMouseListeners=function(){var e=this,t=function(t){return e.setActiveHeader("mouseenter"===t.type)};this.addManagedListener(this.getGui(),"mouseenter",t),this.addManagedListener(this.getGui(),"mouseleave",t)},t.prototype.setActiveHeader=function(e){this.comp.addOrRemoveCssClass("ag-header-active",e)},rd([ne("columnModel")],t.prototype,"columnModel",void 0),rd([ne("columnHoverService")],t.prototype,"columnHoverService",void 0),rd([ne("sortController")],t.prototype,"sortController",void 0),rd([ne("menuFactory")],t.prototype,"menuFactory",void 0),rd([ne("dragAndDropService")],t.prototype,"dragAndDropService",void 0),rd([ne("resizeObserverService")],t.prototype,"resizeObserverService",void 0),rd([ne("gridApi")],t.prototype,"gridApi",void 0),rd([ne("columnApi")],t.prototype,"columnApi",void 0),rd([oe],t.prototype,"removeDragSource",null),t}(Fc),id=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),sd=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},ad=function(e){function t(t,o,r,n){var i=e.call(this)||this;return i.eResize=o,i.comp=t,i.pinned=r,i.columnGroup=n,i}return id(t,e),t.prototype.postConstruct=function(){var e=this;if(this.columnGroup.isResizable()){var t=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(t),!this.gridOptionsWrapper.isSuppressAutoSize()){var o=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();this.eResize.addEventListener("dblclick",(function(){var t=[],r=e.columnGroup.getDisplayedLeafColumns();r.forEach((function(e){e.getColDef().suppressAutoSize||t.push(e.getColId())})),t.length>0&&e.columnModel.autoSizeColumns({columns:t,skipHeader:o,stopAtGroup:e.columnGroup,source:"uiColumnResized"}),e.resizeLeafColumnsToFit()}))}}else this.comp.addOrRemoveResizableCssClass("ag-hidden",!0)},t.prototype.onResizeStart=function(e){var t=this;this.calculateInitialValues();var o=null;if(e&&(o=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),o){var r=o.getDisplayedLeafColumns();this.resizeTakeFromCols=r.filter((function(e){return e.isResizable()})),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach((function(e){return t.resizeTakeFromStartWidth+=e.getActualWidth()})),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach((function(e){return t.resizeTakeFromRatios.push(e.getActualWidth()/t.resizeTakeFromStartWidth)}))}else this.resizeTakeFromCols=null,this.resizeTakeFromStartWidth=null,this.resizeTakeFromRatios=null;this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},t.prototype.onResizing=function(e,t){var o=this.normaliseDragChange(t),r=this.resizeStartWidth+o;this.resizeColumns(r,e)},t.prototype.resizeLeafColumnsToFit=function(){var e=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup);this.calculateInitialValues(),e>this.resizeStartWidth&&this.resizeColumns(e,!0)},t.prototype.resizeColumns=function(e,t){void 0===t&&(t=!0);var o=[];if(o.push({columns:this.resizeCols,ratios:this.resizeRatios,width:e}),this.resizeTakeFromCols){var r=e-this.resizeStartWidth;o.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-r})}this.columnModel.resizeColumnSets({resizeSets:o,finished:t,source:"uiColumnDragged"}),t&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},t.prototype.calculateInitialValues=function(){var e=this,t=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=t.filter((function(e){return e.isResizable()})),this.resizeStartWidth=0,this.resizeCols.forEach((function(t){return e.resizeStartWidth+=t.getActualWidth()})),this.resizeRatios=[],this.resizeCols.forEach((function(t){return e.resizeRatios.push(t.getActualWidth()/e.resizeStartWidth)}))},t.prototype.normaliseDragChange=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==fe.PINNED_LEFT&&(t*=-1):this.pinned===fe.PINNED_RIGHT&&(t*=-1),t},sd([ne("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),sd([ne("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),sd([ne("columnModel")],t.prototype,"columnModel",void 0),sd([te],t.prototype,"postConstruct",null),t}(rt),ld=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ud=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},pd=function(e){function t(t,o){var r=e.call(this)||this;return r.removeChildListenersFuncs=[],r.columnGroup=o,r.comp=t,r}return ld(t,e),t.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,Ve.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},t.prototype.addListenersToChildrenColumns=function(){var e=this;this.removeListenersOnChildrenColumns();var t=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach((function(o){o.addEventListener(me.EVENT_WIDTH_CHANGED,t),o.addEventListener(me.EVENT_VISIBLE_CHANGED,t),e.removeChildListenersFuncs.push((function(){o.removeEventListener(me.EVENT_WIDTH_CHANGED,t),o.removeEventListener(me.EVENT_VISIBLE_CHANGED,t)}))}))},t.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach((function(e){return e()})),this.removeChildListenersFuncs=[]},t.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},t.prototype.onWidthChanged=function(){this.comp.setWidth(this.columnGroup.getActualWidth()+"px")},ud([te],t.prototype,"postConstruct",null),t}(rt),cd=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),dd=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},hd=function(e){function t(t,o){var r=e.call(this,t,o)||this;return r.columnGroup=t,r}return cd(t,e),t.prototype.setComp=function(t,o,r){e.prototype.setGui.call(this,o),this.comp=t,this.displayName=this.columnModel.getDisplayNameForColumnGroup(this.columnGroup,"header"),this.addClasses(),this.addAttributes(),this.setupMovingCss(),this.setupExpandable(),this.setupTooltip(),this.setupUserComp();var n=this.getParentRowCtrl().getPinned(),i=this.columnGroup.getProvidedColumnGroup().getLeafColumns();this.createManagedBean(new Uc(i,o)),this.createManagedBean(new kc(this.columnGroup,o,this.beans)),this.createManagedBean(new pd(t,this.columnGroup)),this.groupResizeFeature=this.createManagedBean(new ad(t,r,n,this.columnGroup)),this.createManagedBean(new zi(o,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:function(){},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},t.prototype.resizeLeafColumnsToFit=function(){this.groupResizeFeature.onResizeStart(!1),this.groupResizeFeature.resizeLeafColumnsToFit()},t.prototype.setupUserComp=function(){var e=this,t=this.displayName,o={displayName:this.displayName,columnGroup:this.columnGroup,setExpanded:function(t){e.columnModel.setColumnGroupOpened(e.columnGroup.getProvidedColumnGroup(),t,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};if(!t){var r=this.columnGroup,n=r.getLeafColumns();while(r.getParent()&&r.getParent().getLeafColumns().length===n.length)r=r.getParent();var i=r.getColGroupDef();i&&(t=i.headerName),t||(t=n?this.columnModel.getDisplayNameForColumn(n[0],"header",!0):"")}var s=this.userComponentFactory.getHeaderGroupCompDetails(o);this.comp.setUserCompDetails(s)},t.prototype.setupTooltip=function(){var e=this,t=this.columnGroup.getColGroupDef(),o={getColumn:function(){return e.columnGroup},getGui:function(){return e.eGui},getLocation:function(){return"headerGroup"},getTooltipValue:function(){return t&&t.headerTooltip}};t&&(o.getColDef=function(){return t});var r=this.createManagedBean(new Pu(o,this.beans));r.setComp(this.comp)},t.prototype.setupExpandable=function(){var e=this.columnGroup.getProvidedColumnGroup();this.refreshExpanded(),this.addManagedListener(e,We.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(e,We.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},t.prototype.refreshExpanded=function(){var e=this.columnGroup;this.expandable=e.isExpandable();var t=e.isExpanded();this.expandable?this.comp.setAriaExpanded(t?"true":"false"):this.comp.setAriaExpanded(void 0)},t.prototype.addAttributes=function(){this.comp.setColId(this.columnGroup.getUniqueId())},t.prototype.addClasses=function(){var e=this,t=this.columnGroup.getColGroupDef(),o=wc.getHeaderClassesFromColDef(t,this.gridOptionsWrapper,null,this.columnGroup);o.push(this.columnGroup.isPadding()?"ag-header-group-cell-no-group":"ag-header-group-cell-with-group"),o.forEach((function(t){return e.comp.addOrRemoveCssClass(t,!0)}))},t.prototype.setupMovingCss=function(){var e=this,t=this.columnGroup.getProvidedColumnGroup(),o=t.getLeafColumns(),r=function(){return e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.columnGroup.isMoving())};o.forEach((function(t){e.addManagedListener(t,me.EVENT_MOVING_CHANGED,r)})),r()},t.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var t=this.getRowIndex();this.beans.focusService.setFocusedHeader(t,this.columnGroup)}},t.prototype.handleKeyDown=function(t){e.prototype.handleKeyDown.call(this,t);var o=this.getWrapperHasFocus();if(this.expandable&&o&&t.key===zn.ENTER){var r=this.columnGroup,n=!r.isExpanded();this.columnModel.setColumnGroupOpened(r.getProvidedColumnGroup(),n,"uiColumnExpanded")}},t.prototype.setDragSource=function(e){var t=this;if(!this.isSuppressMoving()){var o=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),r=!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns(),n={type:_a.HeaderCell,eElement:e,defaultIconName:r?xa.ICON_HIDE:xa.ICON_NOT_ALLOWED,dragItemName:this.displayName,getDragItem:this.getDragItemForGroup.bind(this),onDragStarted:function(){return o.forEach((function(e){return e.setMoving(!0,"uiColumnDragged")}))},onDragStopped:function(){return o.forEach((function(e){return e.setMoving(!1,"uiColumnDragged")}))},onGridEnter:function(e){var o,n;if(r){var i=(null===(n=null===(o=e)||void 0===o?void 0:o.columns)||void 0===n?void 0:n.filter((function(e){return!e.getColDef().lockVisible})))||[];t.columnModel.setColumnsVisible(i,!0,"uiColumnMoved")}},onGridExit:function(e){var o,n;if(r){var i=(null===(n=null===(o=e)||void 0===o?void 0:o.columns)||void 0===n?void 0:n.filter((function(e){return!e.getColDef().lockVisible})))||[];t.columnModel.setColumnsVisible(i,!1,"uiColumnMoved")}}};this.dragAndDropService.addDragSource(n,!0),this.addDestroyFunc((function(){return t.dragAndDropService.removeDragSource(n)}))}},t.prototype.getDragItemForGroup=function(){var e=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),t={};e.forEach((function(e){return t[e.getId()]=e.isVisible()}));var o=[];return this.columnModel.getAllDisplayedColumns().forEach((function(t){e.indexOf(t)>=0&&(o.push(t),Pe(e,t))})),e.forEach((function(e){return o.push(e)})),{columns:o,visibleState:t}},t.prototype.isSuppressMoving=function(){var e=!1;this.columnGroup.getLeafColumns().forEach((function(t){(t.getColDef().suppressMovable||t.getColDef().lockPosition)&&(e=!0)}));var t=e||this.gridOptionsWrapper.isSuppressMovableColumns();return t},dd([ne("columnModel")],t.prototype,"columnModel",void 0),dd([ne("dragAndDropService")],t.prototype,"dragAndDropService",void 0),dd([ne("gridApi")],t.prototype,"gridApi",void 0),dd([ne("columnApi")],t.prototype,"columnApi",void 0),t}(Fc),fd=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),gd=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},vd=0,yd=function(e){function t(t,o,r){var n=e.call(this)||this;return n.instanceId=vd++,n.headerCellCtrls={},n.rowIndex=t,n.pinned=o,n.type=r,n}return fd(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(),qt()&&this.comp.setTransform("translateZ(0)"),e.setAriaRowIndex(this.rowIndex+1)},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,lt.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_DOM_LAYOUT,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,lt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,lt.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_PIVOT_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_FLOATING_FILTERS_HEIGHT,this.onRowHeightChanged.bind(this))},t.prototype.getHeaderCellCtrl=function(e){return f(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(){var e=this.gridOptionsWrapper.getDomLayout()===fe.DOM_LAYOUT_PRINT;if(e){var t=null!=this.pinned;return t?0:this.columnModel.getContainerWidth(fe.PINNED_RIGHT)+this.columnModel.getContainerWidth(fe.PINNED_LEFT)+this.columnModel.getContainerWidth(null)}return this.columnModel.getContainerWidth(this.pinned)},t.prototype.onRowHeightChanged=function(){var e=this.columnModel.getHeaderRowCount(),t=[],o=0;this.columnModel.hasFloatingFilters()&&(e++,o=1);for(var r=this.columnModel.getColumnGroupHeaderRowHeight(),n=this.columnModel.getColumnHeaderRowHeight(),i=1+o,s=e-i,a=0;a<s;a++)t.push(r);t.push(n);for(a=0;a<o;a++)t.push(this.gridOptionsWrapper.getFloatingFiltersHeight());var l=0;for(a=0;a<this.rowIndex;a++)l+=t[a];var u=t[this.rowIndex]+"px";this.comp.setTop(l+"px"),this.comp.setHeight(u)},t.prototype.getPinned=function(){return this.pinned},t.prototype.getRowIndex=function(){return this.rowIndex},t.prototype.onVirtualColumnsChanged=function(){var e=this,t=this.headerCellCtrls;this.headerCellCtrls={};var o=this.getColumnsInViewport();o.forEach((function(o){if(!o.isEmptyGroup()){var r=o.getUniqueId(),n=t[r];delete t[r];var i=n&&n.getColumnGroupChild()!=o;if(i&&(e.destroyBean(n),n=void 0),null==n)switch(e.type){case lc.FLOATING_FILTER:n=e.createBean(new Yc(o,e));break;case lc.COLUMN_GROUP:n=e.createBean(new hd(o,e));break;default:n=e.createBean(new nd(o,e));break}e.headerCellCtrls[r]=n}}));var r=function(t){var o=e.focusService.isHeaderWrapperFocused(t);if(!o)return!1;var r=e.columnModel.isDisplayed(t.getColumnGroupChild());return r};y(t,(function(t,o){var n=r(o);n?e.headerCellCtrls[t]=o:e.destroyBean(o)}));var n=b(this.headerCellCtrls);this.comp.setHeaderCtrls(n)},t.prototype.destroyCtrls=function(){var e=this;y(this.headerCellCtrls,(function(t,o){e.destroyBean(o)})),this.headerCellCtrls={}},t.prototype.getColumnsInViewport=function(){var e=this.gridOptionsWrapper.getDomLayout()===fe.DOM_LAYOUT_PRINT;return e?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()},t.prototype.getColumnsInViewportPrintLayout=function(){var e=this;if(null!=this.pinned)return[];var t=[],o=this.getActualDepth();return[fe.PINNED_LEFT,null,fe.PINNED_RIGHT].forEach((function(r){var n=e.columnModel.getVirtualHeaderGroupRow(r,o);t=t.concat(n)})),t},t.prototype.getActualDepth=function(){return this.type==lc.FLOATING_FILTER?this.rowIndex-1:this.rowIndex},t.prototype.getColumnsInViewportNormalLayout=function(){return this.columnModel.getVirtualHeaderGroupRow(this.pinned,this.getActualDepth())},t.prototype.focusHeader=function(e,t){var o=b(this.headerCellCtrls),r=o.find((function(t){return t.getColumnGroupChild()==e}));return!!r&&(r.focus(t),!0)},gd([ne("columnModel")],t.prototype,"columnModel",void 0),gd([ne("focusService")],t.prototype,"focusService",void 0),gd([oe],t.prototype,"destroyCtrls",null),t}(rt),md=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Cd=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},wd=function(e,t){var o="function"===typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,n,i=o.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=i.next()).done)s.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(o=i["return"])&&o.call(i)}finally{if(n)throw n.error}}return s},Ed=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(wd(arguments[t]));return e},Rd=function(e){function t(t){var o=e.call(this)||this;return o.groupsRowCtrls=[],o.pinned=t,o}return md(t,e),t.prototype.setComp=function(e,t){this.comp=e,this.eViewport=t,this.setupCenterWidth(),this.setupPinnedWidth(),this.setupDragAndDrop(this.eViewport),this.addManagedListener(this.eventService,lt.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eViewport,"scroll",this.resetScrollLeft.bind(this)),this.ctrlsService.registerHeaderContainer(this,this.pinned),this.columnModel.isReady()&&this.refresh()},t.prototype.setupDragAndDrop=function(e){var t=new yc(this.pinned,e);this.createManagedBean(t)},t.prototype.refresh=function(e){var t=this;void 0===e&&(e=!1);var o=new mi,r=this.focusService.getFocusHeaderToUseAfterRefresh(),n=function(){var e=t.columnModel.getHeaderRowCount()-1;t.groupsRowCtrls=t.destroyBeans(t.groupsRowCtrls);for(var r=0;r<e;r++){var n=t.createBean(new yd(o.next(),t.pinned,lc.COLUMN_GROUP));t.groupsRowCtrls.push(n)}},i=function(){var r=o.next(),n=null==t.columnsRowCtrl||!e||t.columnsRowCtrl.getRowIndex()!==r;n&&(t.destroyBean(t.columnsRowCtrl),t.columnsRowCtrl=t.createBean(new yd(r,t.pinned,lc.COLUMN)))},s=function(){var r=t.columnModel.hasFloatingFilters(),n=function(){t.filtersRowCtrl=t.destroyBean(t.filtersRowCtrl)};if(r){var i=o.next();if(t.filtersRowCtrl){var s=t.filtersRowCtrl.getRowIndex()!==i;e&&!s||n()}t.filtersRowCtrl||(t.filtersRowCtrl=t.createBean(new yd(i,t.pinned,lc.FLOATING_FILTER)))}else n()};n(),i(),s();var a=this.getAllCtrls();this.comp.setCtrls(a),this.restoreFocusOnHeader(r)},t.prototype.restoreFocusOnHeader=function(e){null!=e&&e.column.getPinned()==this.pinned&&this.focusService.focusHeaderPosition({headerPosition:e})},t.prototype.getAllCtrls=function(){var e=Ed(this.groupsRowCtrls,[this.columnsRowCtrl]);return this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e},t.prototype.onGridColumnsChanged=function(){this.refresh(!0)},t.prototype.setupCenterWidth=function(){var e=this;null==this.pinned&&this.createManagedBean(new Pp((function(t){return e.comp.setCenterWidth(t+"px")})))},t.prototype.setHorizontalScroll=function(e){this.comp.setContainerTransform("translateX("+e+"px)")},t.prototype.resetScrollLeft=function(){this.eViewport.scrollLeft=0},t.prototype.setupPinnedWidth=function(){var e=this;if(null!=this.pinned){var t=this.pinned===fe.PINNED_LEFT,o=this.pinned===fe.PINNED_RIGHT,r=function(){var r=t?e.pinnedWidthService.getPinnedLeftWidth():e.pinnedWidthService.getPinnedRightWidth();if(null!=r){var n=0==r,i=e.gridOptionsWrapper.isEnableRtl(),s=e.gridOptionsWrapper.getScrollbarWidth(),a=e.scrollVisibleService.isVerticalScrollShowing()&&(i&&t||!i&&o),l=a?r+s:r;e.comp.setPinnedContainerWidth(l+"px"),e.comp.addOrRemoveCssClass("ag-hidden",n)}};this.addManagedListener(this.eventService,lt.EVENT_LEFT_PINNED_WIDTH_CHANGED,r),this.addManagedListener(this.eventService,lt.EVENT_RIGHT_PINNED_WIDTH_CHANGED,r),this.addManagedListener(this.eventService,lt.EVENT_SCROLL_VISIBILITY_CHANGED,r),this.addManagedListener(this.eventService,lt.EVENT_SCROLLBAR_WIDTH_CHANGED,r)}},t.prototype.getHeaderCtrlForColumn=function(e){if(e instanceof me){if(!this.columnsRowCtrl)return;return this.columnsRowCtrl.getHeaderCellCtrl(e)}if(0!==this.groupsRowCtrls.length)for(var t=0;t<this.groupsRowCtrls.length;t++){var o=this.groupsRowCtrls[t].getHeaderCellCtrl(e);if(o)return o}},t.prototype.getHtmlElementForColumnHeader=function(e){var t=this.getHeaderCtrlForColumn(e);return t?t.getGui():null},t.prototype.getRowType=function(e){var t=this.getAllCtrls(),o=t[e];return o?o.getType():void 0},t.prototype.focusHeader=function(e,t,o){var r=this.getAllCtrls(),n=r[e];return!!n&&n.focusHeader(t,o)},t.prototype.getRowCount=function(){return this.getAllCtrls().length},Cd([ne("ctrlsService")],t.prototype,"ctrlsService",void 0),Cd([ne("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Cd([ne("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),Cd([ne("columnModel")],t.prototype,"columnModel",void 0),Cd([ne("focusService")],t.prototype,"focusService",void 0),t}(rt),Od=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Sd=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},_d=function(e){function t(t){var o=e.call(this)||this;return o.headerRowComps={},o.rowCompsList=[],o.pinned=t,o}return Od(t,e),t.prototype.init=function(){var e=this;this.selectAndSetTemplate();var t={addOrRemoveCssClass:function(t,o){return e.addOrRemoveCssClass(t,o)},setCtrls:function(t){return e.setCtrls(t)},setCenterWidth:function(t){return e.eCenterContainer.style.width=t},setContainerTransform:function(t){return e.eCenterContainer.style.transform=t},setPinnedContainerWidth:function(t){var o=e.getGui();o.style.width=t,o.style.maxWidth=t,o.style.minWidth=t}},o=this.createManagedBean(new Rd(this.pinned));o.setComp(t,this.getGui())},t.prototype.selectAndSetTemplate=function(){var e=this.pinned==fe.PINNED_LEFT,o=this.pinned==fe.PINNED_RIGHT,r=e?t.PINNED_LEFT_TEMPLATE:o?t.PINNED_RIGHT_TEMPLATE:t.CENTER_TEMPLATE;this.setTemplate(r),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,o=this,r=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];var n=function(e){var r=e.getGui(),n=r.parentElement!=o.eRowContainer;n&&o.eRowContainer.appendChild(r),t&&Nr(o.eRowContainer,r,t),t=r};e.forEach((function(e){var t=e.getInstanceId(),i=r[t];delete r[t];var s=i||o.createBean(new Ac(e));o.headerRowComps[t]=s,o.rowCompsList.push(s),n(s)})),b(r).forEach((function(e){return o.destroyRowComp(e)}))},t.PINNED_LEFT_TEMPLATE='<div class="ag-pinned-left-header" role="presentation"/>',t.PINNED_RIGHT_TEMPLATE='<div class="ag-pinned-right-header" role="presentation"/>',t.CENTER_TEMPLATE='<div class="ag-header-viewport" role="presentation">\n <div class="ag-header-container" ref="eCenterContainer" role="rowgroup"></div>\n </div>',Sd([Ai("eCenterContainer")],t.prototype,"eCenterContainer",void 0),Sd([te],t.prototype,"init",null),Sd([oe],t.prototype,"destroyRowComps",null),t}(Di),bd=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Pd=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s}; /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */(function(e){e[e["UP"]=0]="UP",e[e["DOWN"]=1]="DOWN",e[e["LEFT"]=2]="LEFT",e[e["RIGHT"]=3]="RIGHT"})(xc||(xc={}));var Td=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bd(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.getHeaderRowType=function(e){var t=this.ctrlsService.getHeaderRowContainerCtrl();if(t)return t.getRowType(e)},t.prototype.navigateVertically=function(e,t,o){if(t||(t=this.focusService.getFocusedHeader()),!t)return!1;var r=t.headerRowIndex,n=t.column,i=this.getHeaderRowCount(),s=e===xc.UP,a=s?r-1:r+1,l=null,u=!1;a<0&&(a=0,l=n,u=!0),a>=i&&(a=-1);var p=this.getHeaderRowType(r);if(!u){if(p===lc.COLUMN_GROUP){var c=n;l=s?n.getParent():c.getDisplayedChildren()[0]}else if(p===lc.FLOATING_FILTER)l=n;else{c=n;l=s?c.getParent():c}if(!l)return!1}return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:a,column:l},allowUserOverride:!0,event:o})},t.prototype.navigateHorizontally=function(e,t,o){void 0===t&&(t=!1);var r,n,i=this.focusService.getFocusedHeader(),s=e===xc.LEFT,a=this.gridOptionsWrapper.isEnableRtl();return s!==a?(n="Before",r=this.headerPositionUtils.findHeader(i,n)):(n="After",r=this.headerPositionUtils.findHeader(i,n)),r||!t?this.focusService.focusHeaderPosition({headerPosition:r,direction:n,fromTab:t,allowUserOverride:!0,event:o}):this.focusNextHeaderRow(i,n,o)},t.prototype.focusNextHeaderRow=function(e,t,o){var r,n=e.headerRowIndex,i=null;return"Before"===t?n>0&&(r=n-1,i=this.headerPositionUtils.findColAtEdgeForHeaderRow(r,"end")):(r=n+1,i=this.headerPositionUtils.findColAtEdgeForHeaderRow(r,"start")),this.focusService.focusHeaderPosition({headerPosition:i,direction:t,fromTab:!0,allowUserOverride:!0,event:o})},t.prototype.scrollToColumn=function(e,t){if(void 0===t&&(t="After"),!e.getPinned()){var o;if(e instanceof Ve){var r=e.getDisplayedLeafColumns();o="Before"===t?Ee(r):r[0]}else o=e;this.gridBodyCon.getScrollFeature().ensureColumnVisible(o)}},Pd([ne("focusService")],t.prototype,"focusService",void 0),Pd([ne("headerPositionUtils")],t.prototype,"headerPositionUtils",void 0),Pd([ne("animationFrameService")],t.prototype,"animationFrameService",void 0),Pd([ne("ctrlsService")],t.prototype,"ctrlsService",void 0),Pd([te],t.prototype,"postConstruct",null),t=Pd([re("headerNavigationService")],t),t}(rt),Dd=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ad=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Nd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Dd(t,e),t.prototype.setComp=function(e,t,o){this.comp=e,this.eGui=t,this.createManagedBean(new zi(o,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.onPivotModeChanged(),this.setupHeaderHeight(),this.ctrlsService.registerGridHeaderCtrl(this)},t.prototype.setupHeaderHeight=function(){var e=this.setHeaderHeight.bind(this);e(),this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_PIVOT_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_GROUP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_PIVOT_GROUP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_FLOATING_FILTERS_HEIGHT,e),this.addManagedListener(this.eventService,lt.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,e)},t.prototype.getHeaderHeight=function(){return this.headerHeight},t.prototype.setHeaderHeight=function(){var e,t=this,o=t.columnModel,r=t.gridOptionsWrapper,n=0,i=o.getHeaderRowCount(),s=o.hasFloatingFilters();s&&(i++,n=1);var a=this.columnModel.getColumnGroupHeaderRowHeight(),l=this.columnModel.getColumnHeaderRowHeight(),u=1+n,p=i-u;if(e=n*r.getFloatingFiltersHeight(),e+=p*a,e+=l,this.headerHeight!==e){this.headerHeight=e;var c=e+1+"px";this.comp.setHeightAndMinHeight(c),this.eventService.dispatchEvent({type:lt.EVENT_HEADER_HEIGHT_CHANGED})}},t.prototype.onPivotModeChanged=function(){var e=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",e),this.comp.addOrRemoveCssClass("ag-pivot-off",!e)},t.prototype.onTabKeyDown=function(e){var t=this.gridOptionsWrapper.isEnableRtl(),o=e.shiftKey!==t?xc.LEFT:xc.RIGHT;(this.headerNavigationService.navigateHorizontally(o,!0,e)||this.focusService.focusNextGridCoreContainer(e.shiftKey))&&e.preventDefault()},t.prototype.handleKeyDown=function(e){var t=null;switch(e.key){case zn.LEFT:t=xc.LEFT;case zn.RIGHT:n(t)||(t=xc.RIGHT),this.headerNavigationService.navigateHorizontally(t,!1,e);break;case zn.UP:t=xc.UP;case zn.DOWN:n(t)||(t=xc.DOWN),this.headerNavigationService.navigateVertically(t,null,e)&&e.preventDefault();break;default:return}},t.prototype.onFocusOut=function(e){var t=this.gridOptionsWrapper.getDocument(),o=e.relatedTarget;!o&&this.eGui.contains(t.activeElement)||this.eGui.contains(o)||this.focusService.clearFocusedHeader()},Ad([ne("headerNavigationService")],t.prototype,"headerNavigationService",void 0),Ad([ne("focusService")],t.prototype,"focusService",void 0),Ad([ne("columnModel")],t.prototype,"columnModel",void 0),Ad([ne("ctrlsService")],t.prototype,"ctrlsService",void 0),t}(rt),Id=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Gd=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Fd=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Id(t,e),t.prototype.postConstruct=function(){var e=this,t={addOrRemoveCssClass:function(t,o){return e.addOrRemoveCssClass(t,o)},setHeightAndMinHeight:function(t){e.getGui().style.height=t,e.getGui().style.minHeight=t}},o=this.createManagedBean(new Nd);o.setComp(t,this.getGui(),this.getFocusableElement());var r=function(t){e.createManagedBean(t),e.appendChild(t)};r(new _d(fe.PINNED_LEFT)),r(new _d(null)),r(new _d(fe.PINNED_RIGHT))},t.TEMPLATE='<div class="ag-header" role="presentation"/>',Gd([te],t.prototype,"postConstruct",null),t}(Di),Ld=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Md=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},xd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ld(t,e),t.prototype.addResizeBar=function(e){var t=this,o={dragStartPixels:e.dragStartPixels||0,eElement:e.eResizeBar,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this,e),onDragging:this.onDragging.bind(this,e)};this.dragService.addDragSource(o,!0);var r=function(){return t.dragService.removeDragSource(o)};return r},t.prototype.onDragStart=function(e,t){this.dragStartX=t.clientX,this.setResizeIcons();var o=t instanceof MouseEvent&&!0===t.shiftKey;e.onResizeStart(o)},t.prototype.setResizeIcons=function(){var e=this.ctrlsService.getGridCtrl();e.setResizeCursor(!0),e.disableUserSelect(!0)},t.prototype.onDragStop=function(e,t){e.onResizeEnd(this.resizeAmount),this.resetIcons()},t.prototype.resetIcons=function(){var e=this.ctrlsService.getGridCtrl();e.setResizeCursor(!1),e.disableUserSelect(!1)},t.prototype.onDragging=function(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)},Md([ne("dragService")],t.prototype,"dragService",void 0),Md([ne("ctrlsService")],t.prototype,"ctrlsService",void 0),t=Md([re("horizontalResizeService")],t),t}(rt),Hd=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Vd=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Wd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Hd(t,e),t.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},t.prototype.showMenuAfterMouseEvent=function(e,t){var o=this;this.showPopup(e,(function(r){o.popupService.positionPopupUnderMouseEvent({column:e,type:"columnMenu",mouseEvent:t,ePopup:r})}),t.target)},t.prototype.showMenuAfterButtonClick=function(e,t,o){var r=this;this.showPopup(e,(function(n){r.popupService.positionPopupUnderComponent({type:o,eventSource:t,ePopup:n,keepWithinBounds:!0,column:e})}),t)},t.prototype.showPopup=function(e,t,o){var r=this,n=this.filterManager.getOrCreateFilterWrapper(e,"COLUMN_MENU");if(!n)throw new Error("AG Grid - unable to show popup filter, filter instantiation failed");var i,s=document.createElement("div");ln(s,"presentation"),s.classList.add("ag-menu"),this.tabListener=this.addManagedListener(s,"keydown",(function(e){return r.trapFocusWithin(e,s)})),n.guiPromise.then((function(e){return s.appendChild(e)}));var a=o||this.ctrlsService.getGridBodyCtrl().getGui(),l=function(t){e.setMenuVisible(!1,"contextMenu");var n=t instanceof KeyboardEvent;if(r.tabListener&&(r.tabListener=r.tabListener()),n&&o&&_r(o)){var i=r.focusService.findTabbableParent(o);i&&i.focus()}},u=this.gridOptionsWrapper.getLocaleTextFunc(),p=this.popupService.addPopup({modal:!0,eChild:s,closeOnEsc:!0,closedCallback:l,positionCallback:function(){return t(s)},anchorToElement:a,ariaLabel:u("ariaLabelColumnMenu","Column Menu")});p&&(this.hidePopup=i=p.hideFunc),n.filterPromise.then((function(e){t(s),e.afterGuiAttached&&e.afterGuiAttached({container:"columnMenu",hidePopup:i})})),e.setMenuVisible(!0,"contextMenu")},t.prototype.trapFocusWithin=function(e,t){e.key!==zn.TAB||e.defaultPrevented||this.focusService.findNextFocusableElement(t,!1,e.shiftKey)||(e.preventDefault(),this.focusService.focusInto(t,e.shiftKey))},t.prototype.isMenuEnabled=function(e){return e.isFilterAllowed()},Vd([ne("filterManager")],t.prototype,"filterManager",void 0),Vd([ne("popupService")],t.prototype,"popupService",void 0),Vd([ne("focusService")],t.prototype,"focusService",void 0),Vd([ne("ctrlsService")],t.prototype,"ctrlsService",void 0),t=Vd([re("menuFactory")],t),t}(rt),kd=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Bd=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s}; /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */(function(e){function t(o){var r=e.call(this,t.getTemplate(o.cssClass))||this;return r.items=[],r.tabbedItemScrollMap=new Map,r.params=o,o.items&&o.items.forEach((function(e){return r.addItem(e)})),r}kd(t,e),t.prototype.postConstruct=function(){this.createManagedBean(new zi(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)}))},t.getTemplate=function(e){return'<div class="ag-tabs '+e+'">\n <div ref="eHeader" role="tablist" class="ag-tabs-header '+(e?e+"-header":"")+'"></div>\n <div ref="eBody" role="presentation" class="ag-tabs-body '+(e?e+"-body":"")+'"></div>\n </div>'},t.prototype.handleKeyDown=function(e){var t=this.gridOptionsWrapper.getDocument();switch(e.key){case zn.RIGHT:case zn.LEFT:if(!this.eHeader.contains(t.activeElement))return;var o=e.key===zn.RIGHT,r=this.gridOptionsWrapper.isEnableRtl(),n=this.items.indexOf(this.activeItem),i=o!==r?Math.min(n+1,this.items.length-1):Math.max(n-1,0);if(n===i)return;e.preventDefault();var s=this.items[i];this.showItemWrapper(s),s.eHeaderButton.focus();break;case zn.UP:case zn.DOWN:e.stopPropagation();break}},t.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented){var t=this,o=t.focusService,r=t.eHeader,n=t.eBody,i=t.activeItem,s=this.gridOptionsWrapper.getDocument(),a=s.activeElement;if(e.preventDefault(),r.contains(a))o.focusInto(n,e.shiftKey);else if(o.isFocusUnderManagedComponent(n))i.eHeaderButton.focus();else{var l=o.findNextFocusableElement(n,!1,e.shiftKey);l?l.focus():i.eHeaderButton.focus()}}},t.prototype.setAfterAttachedParams=function(e){this.afterAttachedParams=e},t.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},t.prototype.addItem=function(e){var t=document.createElement("span");ln(t,"tab"),t.setAttribute("tabIndex","-1"),t.appendChild(e.title),t.classList.add("ag-tab"),this.eHeader.appendChild(t),hn(t,e.titleLabel);var o={tabbedItem:e,eHeaderButton:t};this.items.push(o),t.addEventListener("click",this.showItemWrapper.bind(this,o))},t.prototype.showItem=function(e){var t=this.items.find((function(t){return t.tabbedItem===e}));t&&this.showItemWrapper(t)},t.prototype.showItemWrapper=function(e){var t=this,o=e.tabbedItem,r=e.eHeaderButton;this.params.onItemClicked&&this.params.onItemClicked({item:o}),this.activeItem!==e?(this.lastScrollListener&&(this.lastScrollListener=this.lastScrollListener()),Rr(this.eBody),o.bodyPromise.then((function(e){t.eBody.appendChild(e);var r=!t.focusService.isKeyboardMode();if(t.focusService.focusInto(t.eBody,!1,r),o.afterAttachedCallback&&o.afterAttachedCallback(t.afterAttachedParams),t.params.keepScrollPosition){var n=o.getScrollableContainer&&o.getScrollableContainer()||e;t.lastScrollListener=t.addManagedListener(n,"scroll",(function(){t.tabbedItemScrollMap.set(o.name,n.scrollTop)}));var i=t.tabbedItemScrollMap.get(o.name);void 0!==i&&setTimeout((function(){n.scrollTop=i}),0)}})),this.activeItem&&this.activeItem.eHeaderButton.classList.remove("ag-tab-selected"),r.classList.add("ag-tab-selected"),this.activeItem=e):X(this.params.onActiveItemClicked)},Bd([ne("focusService")],t.prototype,"focusService",void 0),Bd([Ai("eHeader")],t.prototype,"eHeader",void 0),Bd([Ai("eBody")],t.prototype,"eBody",void 0),Bd([te],t.prototype,"postConstruct",null)})(Di); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */ var jd,Ud=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),zd=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Kd=50,Yd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.polyfillFunctions=[],t}return Ud(t,e),t.prototype.observeResize=function(e,t){var o=this,r=this.gridOptionsWrapper.getDocument(),n=r.defaultView||window,i=z(t,Kd),s=function(){var t=new n.ResizeObserver(i);return t.observe(e),function(){return t.disconnect()}},a=function(){var r=Ar(e),n=Dr(e),i=!0,s=function(){if(i){var a=Ar(e),l=Dr(e),u=a!==r||l!==n;u&&(r=a,n=l,t()),o.doNextPolyfillTurn(s)}};return s(),function(){return i=!1}},l=this.gridOptionsWrapper.isSuppressBrowserResizeObserver(),u=!!n.ResizeObserver;return u&&!l?s():a()},t.prototype.doNextPolyfillTurn=function(e){this.polyfillFunctions.push(e),this.schedulePolyfill()},t.prototype.schedulePolyfill=function(){var e=this;if(!this.polyfillScheduled){var t=function(){var t=e.polyfillFunctions;e.polyfillScheduled=!1,e.polyfillFunctions=[],t.forEach((function(e){return e()}))};this.polyfillScheduled=!0,this.getFrameworkOverrides().setTimeout(t,Kd)}},t=zd([re("resizeObserverService")],t),t}(rt),qd=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Xd=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Qd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.createTasksP1={list:[],sorted:!1},t.createTasksP2={list:[],sorted:!1},t.destroyTasks=[],t.ticking=!1,t.scrollGoingDown=!0,t.lastScrollTop=0,t.taskCount=0,t.cancelledTasks=new Set,t}return qd(t,e),t.prototype.setScrollTop=function(e){this.scrollGoingDown=e>this.lastScrollTop,this.lastScrollTop=e},t.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsWrapper.isSuppressAnimationFrame()},t.prototype.isOn=function(){return this.useAnimationFrame},t.prototype.verifyAnimationFrameOn=function(e){!1===this.useAnimationFrame&&console.warn("AG Grid: AnimationFrameService."+e+" called but animation frames are off")},t.prototype.createTask=function(e,t,o){this.verifyAnimationFrameOn(o);var r={task:e,index:t,createOrder:++this.taskCount};this.addTaskToList(this[o],r),this.schedule()},t.prototype.cancelTask=function(e){this.cancelledTasks.add(e)},t.prototype.addTaskToList=function(e,t){e.list.push(t),e.sorted=!1},t.prototype.sortTaskList=function(e){if(!e.sorted){var t=this.scrollGoingDown?1:-1;e.list.sort((function(e,o){return e.index!==o.index?t*(o.index-e.index):o.createOrder-e.createOrder})),e.sorted=!0}},t.prototype.addDestroyTask=function(e){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(e),this.schedule()},t.prototype.executeFrame=function(e){this.verifyAnimationFrameOn("executeFrame");var t=this.createTasksP1,o=t.list,r=this.createTasksP2,n=r.list,i=this.destroyTasks,s=(new Date).getTime(),a=(new Date).getTime()-s,l=e<=0,u=this.ctrlsService.getGridBodyCtrl();while(l||a<e){var p=u.getScrollFeature().executeAnimationFrameScroll();if(!p){var c=void 0;if(o.length)this.sortTaskList(t),c=o.pop().task;else if(n.length)this.sortTaskList(r),c=n.pop().task;else{if(!i.length){this.cancelledTasks.clear();break}c=i.pop()}this.cancelledTasks.has(c)||c()}a=(new Date).getTime()-s}o.length||n.length||i.length?this.requestFrame():this.stopTicking()},t.prototype.stopTicking=function(){this.ticking=!1},t.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},t.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},t.prototype.requestFrame=function(){var e=this.executeFrame.bind(this,60),t=this.gridOptionsWrapper.getDocument(),o=t.defaultView||window;o.requestAnimationFrame?o.requestAnimationFrame(e):o.webkitRequestAnimationFrame?o.webkitRequestAnimationFrame(e):o.setTimeout(e,0)},t.prototype.isQueueEmpty=function(){return!this.ticking},t.prototype.debounce=function(e){var t=this,o=!1;return function(){t.isOn()?o||(o=!0,t.addDestroyTask((function(){o=!1,e()}))):t.getFrameworkOverrides().setTimeout(e,0)}},Xd([ne("ctrlsService")],t.prototype,"ctrlsService",void 0),Xd([te],t.prototype,"init",null),t=Xd([re("animationFrameService")],t),t}(rt),Jd=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Zd=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},$d="ag-resizer-wrapper",eh='<div class="'+$d+'">\n <div ref="eTopLeftResizer" class="ag-resizer ag-resizer-topLeft"></div>\n <div ref="eTopResizer" class="ag-resizer ag-resizer-top"></div>\n <div ref="eTopRightResizer" class="ag-resizer ag-resizer-topRight"></div>\n <div ref="eRightResizer" class="ag-resizer ag-resizer-right"></div>\n <div ref="eBottomRightResizer" class="ag-resizer ag-resizer-bottomRight"></div>\n <div ref="eBottomResizer" class="ag-resizer ag-resizer-bottom"></div>\n <div ref="eBottomLeftResizer" class="ag-resizer ag-resizer-bottomLeft"></div>\n <div ref="eLeftResizer" class="ag-resizer ag-resizer-left"></div>\n </div>',th=function(e){function t(t,o){var r=e.call(this)||this;return r.element=t,r.dragStartPosition={x:0,y:0},r.position={x:0,y:0},r.lastSize={width:-1,height:-1},r.positioned=!1,r.resizersAdded=!1,r.resizeListeners=[],r.boundaryEl=null,r.isResizing=!1,r.isMoving=!1,r.resizable={},r.movable=!1,r.currentResizer=null,r.config=Object.assign({},{popup:!1},o),r}return Jd(t,e),t.prototype.center=function(){var e=this.offsetParent,t=e.clientHeight,o=e.clientWidth,r=o/2-this.getWidth()/2,n=t/2-this.getHeight()/2;this.offsetElement(r,n)},t.prototype.initialisePosition=function(){var e=this.config,t=e.centered,o=e.forcePopupParentAsOffsetParent,r=e.minWidth,n=e.width,i=e.minHeight,s=e.height,a=e.x,l=e.y;this.offsetParent||this.setOffsetParent();var u=0,p=0,c=!!this.element.offsetParent;if(c){var d=this.findBoundaryElement(),h=window.getComputedStyle(d);if(null!=h.minWidth){var f=d.offsetWidth-this.element.offsetWidth;p=parseInt(h.minWidth,10)-f}if(null!=h.minHeight){var g=d.offsetHeight-this.element.offsetHeight;u=parseInt(h.minHeight,10)-g}}if(this.minHeight=i||u,this.minWidth=r||p,n&&this.setWidth(n),s&&this.setHeight(s),n&&s||this.refreshSize(),t)this.center();else if(a||l)this.offsetElement(a,l);else if(c&&o&&this.boundaryEl){var v=parseFloat(this.boundaryEl.style.top),y=parseFloat(this.boundaryEl.style.left);this.offsetElement(isNaN(y)?0:y,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 o=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(o),this.moveElementDragListener=o):(this.dragService.removeDragSource(o),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(o){var r=e,n=!!r[o],i=t.getResizerElement(o),s={dragStartPixels:0,eElement:i,onDragStart:function(e){return t.onResizeStart(e,o)},onDragging:t.onResize.bind(t),onDragStop:function(e){return t.onResizeEnd(e,o)}};!!t.resizable[o]===n&&(t.isAlive()||n)||(n?(t.dragService.addDragSource(s),t.resizeListeners.push(s),i.style.pointerEvents="all"):i.style.pointerEvents="none",t.resizable[o]=n)}))},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,o=e.width;-1!==o&&(this.element.style.width=o+"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,o=this.element,r=!1;if("string"===typeof e&&-1!==e.indexOf("%"))kr(o,e),e=yr(o),r=!0;else if(this.positioned){var n=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect();e=Math.max(this.minHeight,e);var s=this.offsetParent.clientHeight,a=t?this.position.y:n.top,l=t?0:i.top;s&&e+a>s+l&&(e=s-a)}this.getHeight()!==e&&(r?(o.style.maxHeight="unset",o.style.minHeight="unset"):t?kr(o,e):(o.style.height=e+"px",o.style.flex="0 0 auto",this.lastSize.height="number"===typeof e?e:parseFloat(e)))},t.prototype.getWidth=function(){return this.element.offsetWidth},t.prototype.setWidth=function(e){var t=this.element,o=this.config.popup,r=!1;if("string"===typeof e&&-1!==e.indexOf("%"))Vr(t,e),e=mr(t),r=!0;else if(this.positioned){e=Math.max(this.minWidth,e);var n=this.offsetParent.clientWidth,i=o?this.position.x:this.element.getBoundingClientRect().left;n&&e+i>n&&(e=n-i)}this.getWidth()!==e&&(r?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?Vr(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 o=this.config.forcePopupParentAsOffsetParent?this.boundaryEl:this.element;this.popupService.positionPopup({ePopup:o,x:e,y:t,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable()}),this.setPosition(parseFloat(o.style.left),parseFloat(o.style.top))},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,o=e.isLeft,r=e.isTop,n=e.anywhereWithin,i=e.topBuffer,s=t.clientX-this.dragStartPosition.x,a=t.clientY-this.dragStartPosition.y,l=this.shouldSkipX(t,!!o,!!n,s)?0:s,u=this.shouldSkipY(t,!!r,i,a)?0:a;return{movementX:l,movementY:u}},t.prototype.shouldSkipX=function(e,t,o,r){var n=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.x:n.left,l=a<=0&&i.left>=e.clientX||i.right<=e.clientX&&i.right<=s.right;return!!l||(l=t?r<0&&e.clientX>a+i.left||r>0&&e.clientX<a+i.left:o?r<0&&e.clientX>s.right||r>0&&e.clientX<a+i.left:r<0&&e.clientX>s.right||r>0&&e.clientX<s.right,l)},t.prototype.shouldSkipY=function(e,t,o,r){void 0===o&&(o=0);var n=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.y:n.top,l=a<=0&&i.top>=e.clientY||i.bottom<=e.clientY&&i.bottom<=s.bottom;return!!l||(l=t?r<0&&e.clientY>a+i.top+o||r>0&&e.clientY<a+i.top:r<0&&e.clientY>s.bottom||r>0&&e.clientY<s.bottom,l)},t.prototype.createResizeMap=function(){var e=this.element;this.resizerMap={topLeft:{element:e.querySelector("[ref=eTopLeftResizer]")},top:{element:e.querySelector("[ref=eTopResizer]")},topRight:{element:e.querySelector("[ref=eTopRightResizer]")},right:{element:e.querySelector("[ref=eRightResizer]")},bottomRight:{element:e.querySelector("[ref=eBottomRightResizer]")},bottom:{element:e.querySelector("[ref=eBottomResizer]")},bottomLeft:{element:e.querySelector("[ref=eBottomLeftResizer]")},left:{element:e.querySelector("[ref=eLeftResizer]")}}},t.prototype.addResizers=function(){if(!this.resizersAdded){var e=this.element;if(e){var t=new DOMParser,o=t.parseFromString(eh,"text/html").body;e.appendChild(o.firstChild),this.createResizeMap(),this.resizersAdded=!0}}},t.prototype.removeResizers=function(){this.resizerMap=void 0;var e=this.element.querySelector("."+$d);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 o=this.config,r=o.popup,n=o.forcePopupParentAsOffsetParent;r||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,t=e.parentElement;return t?Array.prototype.slice.call(t.children).filter((function(e){return!e.classList.contains("ag-hidden")})):null},t.prototype.getMinSizeOfSiblings=function(){for(var e=this.getSiblings()||[],t=0,o=0,r=0;r<e.length;r++){var n=e[r],i=!!n.style.flex&&"0 0 auto"!==n.style.flex;if(n!==this.element){var s=this.minHeight||0,a=this.minWidth||0;if(i){var l=window.getComputedStyle(n);l.minHeight&&(s=parseInt(l.minHeight,10)),l.minWidth&&(a=parseInt(l.minWidth,10))}else s=n.offsetHeight,a=n.offsetWidth;t+=s,o+=a}}return{height:t,width:o}},t.prototype.applySizeToSiblings=function(e){var t=null,o=this.getSiblings();if(o){for(var r=0;r<o.length;r++){var n=o[r];n!==t&&(e?n.style.height=n.offsetHeight+"px":n.style.width=n.offsetWidth+"px",n.style.flex="0 0 auto",n===this.element&&(t=o[r+1]))}t&&(t.style.removeProperty("height"),t.style.removeProperty("min-height"),t.style.removeProperty("max-height"),t.style.flex="1 1 auto")}},t.prototype.isResizable=function(){return Object.values(this.resizable).some((function(e){return e}))},t.prototype.onResize=function(e){if(this.isResizing&&this.currentResizer){var t=this.config,o=t.popup,r=t.forcePopupParentAsOffsetParent,n=this.currentResizer,i=n.isTop,s=n.isRight,a=n.isBottom,l=n.isLeft,u=s||l,p=a||i,c=this.calculateMouseMovement({e:e,isLeft:l,isTop:i}),d=c.movementX,h=c.movementY,f=this.position.x,g=this.position.y,v=0,y=0;if(u&&d){var m=l?-1:1,C=this.getWidth(),w=C+d*m,E=!1;l&&(v=C-w,(f+v<=0||w<=this.minWidth)&&(E=!0,v=0)),E||this.setWidth(w)}if(p&&h){m=i?-1:1;var R=this.getHeight(),O=R+h*m,S=!1;i?(y=R-O,(g+y<=0||O<=this.minHeight)&&(S=!0,y=0)):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&R<O&&this.getMinSizeOfSiblings().height+O>this.element.parentElement.offsetHeight&&(S=!0),S||this.setHeight(O)}this.updateDragStartPosition(e.clientX,e.clientY),((o||r)&&v||y)&&this.offsetElement(f+v,g+y)}},t.prototype.onResizeEnd=function(e,t){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null;var o={type:"resize",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()};this.element.classList.remove("ag-resizing"),this.resizerMap[t].element.classList.remove("ag-active"),this.dispatchEvent(o)},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,o=this.position,r=o.x,n=o.y;this.config.calculateTopBuffer&&(t=this.config.calculateTopBuffer());var i=this.calculateMouseMovement({e:e,isTop:!0,anywhereWithin:!0,topBuffer:t}),s=i.movementX,a=i.movementY;this.offsetElement(r+s,n+a),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(){var e=this.element;while(e){if("static"!==window.getComputedStyle(e).position)return e;e=e.parentElement}return this.element},t.prototype.clearResizeListeners=function(){while(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.clearResizeListeners(),this.removeResizers()},Zd([ne("popupService")],t.prototype,"popupService",void 0),Zd([ne("dragService")],t.prototype,"dragService",void 0),t}(rt),oh=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),rh=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},nh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return oh(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.centerRowContainerCtrl=t.centerRowContainerCtrl}))},t.prototype.getPreferredWidthForColumn=function(e,t){var o=this.getHeaderCellForColumn(e);if(!o)return-1;var r=this.rowRenderer.getAllCellsForColumn(e);return t||r.push(o),this.addElementsToContainerAndGetWidth(r)},t.prototype.getPreferredWidthForColumnGroup=function(e){var t=this.getHeaderCellForColumn(e);return t?this.addElementsToContainerAndGetWidth([t]):-1},t.prototype.addElementsToContainerAndGetWidth=function(e){var t=this,o=document.createElement("form");o.style.position="fixed";var r=this.centerRowContainerCtrl.getContainerElement();r.appendChild(o),e.forEach((function(e){return t.cloneItemIntoDummy(e,o)}));var n=o.offsetWidth;r.removeChild(o);var i=this.gridOptionsWrapper.getAutoSizePadding();return n+i},t.prototype.getHeaderCellForColumn=function(e){var t=null;return this.ctrlsService.getHeaderRowContainerCtrls().forEach((function(o){var r=o.getHtmlElementForColumnHeader(e);null!=r&&(t=r)})),t},t.prototype.cloneItemIntoDummy=function(e,t){var o=e.cloneNode(!0);o.style.width="",o.style.position="static",o.style.left="";var r=document.createElement("div"),n=r.classList,i=["ag-header-cell","ag-header-group-cell"].some((function(e){return o.classList.contains(e)}));i?(n.add("ag-header","ag-header-row"),r.style.position="static"):n.add("ag-row");var s=e.parentElement;while(s){var a=["ag-header-row","ag-row"].some((function(e){return s.classList.contains(e)}));if(a){for(var l=0;l<s.classList.length;l++){var u=s.classList[l];"ag-row-position-absolute"!=u&&n.add(u)}break}s=s.parentElement}r.appendChild(o),t.appendChild(r)},rh([ne("rowRenderer")],t.prototype,"rowRenderer",void 0),rh([ne("ctrlsService")],t.prototype,"ctrlsService",void 0),rh([ne("rowCssClassCalculator")],t.prototype,"rowCssClassCalculator",void 0),rh([te],t.prototype,"postConstruct",null),t=rh([re("autoWidthCalculator")],t),t}(rt),ih=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),sh=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},ah=function(e){var t="function"===typeof Symbol&&Symbol.iterator,o=t&&e[t],r=0;if(o)return o.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},lh=function(e,t){var o="function"===typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,n,i=o.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=i.next()).done)s.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(o=i["return"])&&o.call(i)}finally{if(n)throw n.error}}return s},uh=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(lh(arguments[t]));return e},ph=function(e){function t(t,o){var r=e.call(this)||this;return r.createRowCon=t,r.destroyRowCtrls=o,r.stickyRowCtrls=[],r.containerHeight=0,r}return ih(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.gridBodyCtrl=t.gridBodyCtrl}))},t.prototype.getStickyRowCtrls=function(){return this.stickyRowCtrls},t.prototype.checkStickyRows=function(){var e=0;if(this.gridOptionsWrapper.isGroupRowsSticky()){var t=[],o=this.rowRenderer.getFirstVisibleVerticalPixel(),r=function(r){t.push(r);var n=r;while(n.expanded)n=Ee(n.childrenAfterSort);var i=n.rowTop+n.rowHeight,s=o+e+r.rowHeight;r.stickyRowTop=i<s?e+(i-s):e,e=0,t.forEach((function(t){var o=t.stickyRowTop+t.rowHeight;e<o&&(e=o)}))};while(1){var n=o+e,i=this.rowModel.getRowIndexAtPixel(n),s=this.rowModel.getRow(i);if(null==s)break;if(s.level<0)break;var a=[],l=s.parent;while(l.level>=0)a.push(l),l=l.parent;var u=a.reverse().find((function(e){return t.indexOf(e)<0&&e.displayed}));if(u)r(u);else{if(!(s.group&&s.expanded&&!s.footer&&s.rowTop<n))break;r(s)}}this.refreshNodesAndContainerHeight(t,e)}else this.refreshNodesAndContainerHeight([],e)},t.prototype.refreshNodesAndContainerHeight=function(e,t){var o,r,n,i=this,s=this.stickyRowCtrls.filter((function(t){return-1===e.indexOf(t.getRowNode())})),a=e.filter((function(e){return-1===i.stickyRowCtrls.findIndex((function(t){return t.getRowNode()===e}))})),l={};s.forEach((function(e){l[e.getRowNode().id]=e,i.stickyRowCtrls=i.stickyRowCtrls.filter((function(t){return t!==e}))}));try{for(var u=ah(Object.values(l)),p=u.next();!p.done;p=u.next()){var c=p.value;c.getRowNode().sticky=!1}}catch(h){o={error:h}}finally{try{p&&!p.done&&(r=u.return)&&r.call(u)}finally{if(o)throw o.error}}this.destroyRowCtrls(l,!1);var d=a.map((function(e){return e.sticky=!0,i.createRowCon(e,!1,!1)}));(n=this.stickyRowCtrls).push.apply(n,uh(d)),this.stickyRowCtrls.forEach((function(e){return e.setRowTop(e.getRowNode().stickyRowTop)})),this.stickyRowCtrls.sort((function(e,t){return t.getRowNode().rowIndex-e.getRowNode().rowIndex})),this.containerHeight!==t&&(this.containerHeight=t,this.gridBodyCtrl.setStickyTopHeight(t))},sh([ne("rowModel")],t.prototype,"rowModel",void 0),sh([ne("rowRenderer")],t.prototype,"rowRenderer",void 0),sh([ne("ctrlsService")],t.prototype,"ctrlsService",void 0),sh([te],t.prototype,"postConstruct",null),t}(rt),ch=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),dh=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},hh=function(e,t){var o="function"===typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,n,i=o.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=i.next()).done)s.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(o=i["return"])&&o.call(i)}finally{if(n)throw n.error}}return s},fh=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(hh(arguments[t]));return e},gh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.destroyFuncsForColumnListeners=[],t.rowCtrlsByRowIndex={},t.zombieRowCtrls={},t.allRowCtrls=[],t.topRowCtrls=[],t.bottomRowCtrls=[],t.refreshInProgress=!1,t.dataFirstRenderedFired=!1,t}return ch(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.initialise()}))},t.prototype.initialise=function(){this.addManagedListener(this.eventService,lt.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addManagedListener(this.eventService,lt.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,lt.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,lt.EVENT_BODY_SCROLL,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.eventService,lt.EVENT_BODY_HEIGHT_CHANGED,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_ROW_CLASS,this.redrawRows.bind(this)),this.gridOptionsWrapper.isGroupRowsSticky()&&(this.rowModel.getType()!=fe.ROW_MODEL_TYPE_CLIENT_SIDE?x((function(){return console.warn("AG Grid: The feature Sticky Row Groups only works with the Client Side Row Model")}),"rowRenderer.stickyWorksWithCsrmOnly"):this.gridOptionsWrapper.isTreeData()?x((function(){return console.warn("AG Grid: The feature Sticky Row Groups does not work with Tree Data.")}),"rowRenderer.stickyDoesNotWorkWithTreeData"):this.stickyRowFeature=this.createManagedBean(new ph(this.createRowCon.bind(this),this.destroyRowCtrls.bind(this)))),this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===fe.DOM_LAYOUT_PRINT,this.embedFullWidthRows=this.printLayout||this.gridOptionsWrapper.isEmbedFullWidthRows(),this.redrawAfterModelUpdate()},t.prototype.initialiseCache=function(){if(this.gridOptionsWrapper.isKeepDetailRows()){var e=this.gridOptionsWrapper.getKeepDetailRowsCount(),t=null!=e?e:3;this.cachedRowCtrls=new vh(t)}},t.prototype.getRowCtrls=function(){return this.allRowCtrls},t.prototype.getStickyTopRowCtrls=function(){return this.stickyRowFeature?this.stickyRowFeature.getStickyRowCtrls():[]},t.prototype.updateAllRowCtrls=function(){var e=b(this.rowCtrlsByRowIndex);this.gridOptionsWrapper.isEnsureDomOrder()&&e.sort((function(e,t){return e.getRowNode().rowIndex-t.getRowNode.rowIndex}));var t=b(this.zombieRowCtrls),o=this.cachedRowCtrls?this.cachedRowCtrls.getEntries():[];this.allRowCtrls=fh(e,t,o)},t.prototype.registerCellEventListeners=function(){var e=this;this.addManagedListener(this.eventService,lt.EVENT_CELL_FOCUSED,(function(t){e.getAllCellCtrls().forEach((function(e){return e.onCellFocused(t)})),e.getFullWidthRowCtrls().forEach((function(e){e.onFullWidthRowFocused(t)}))})),this.addManagedListener(this.eventService,lt.EVENT_FLASH_CELLS,(function(t){e.getAllCellCtrls().forEach((function(e){return e.onFlashCells(t)}))})),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_HOVER_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onColumnHover()}))})),this.addManagedListener(this.eventService,lt.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onDisplayedColumnsChanged()}))})),this.addManagedListener(this.eventService,lt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){e.printLayout&&e.getAllCellCtrls().forEach((function(e){return e.onLeftChanged()}))}));var t=this.gridOptionsWrapper.isEnableRangeSelection();t&&(this.addManagedListener(this.eventService,lt.EVENT_RANGE_SELECTION_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onRangeSelectionChanged()}))})),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_MOVED,(function(){e.getAllCellCtrls().forEach((function(e){return e.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_PINNED,(function(){e.getAllCellCtrls().forEach((function(e){return e.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_VISIBLE,(function(){e.getAllCellCtrls().forEach((function(e){return e.updateRangeBordersIfRangeCount()}))}))),this.refreshListenersToColumnsForCellComps(),this.addManagedListener(this.eventService,lt.EVENT_GRID_COLUMNS_CHANGED,this.refreshListenersToColumnsForCellComps.bind(this)),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))},t.prototype.removeGridColumnListeners=function(){this.destroyFuncsForColumnListeners.forEach((function(e){return e()})),this.destroyFuncsForColumnListeners.length=0},t.prototype.refreshListenersToColumnsForCellComps=function(){var e=this;this.removeGridColumnListeners();var t=this.columnModel.getAllGridColumns();t&&t.forEach((function(t){var o=function(o){e.getAllCellCtrls().forEach((function(e){e.getColumn()===t&&o(e)}))},r=function(){o((function(e){return e.onLeftChanged()}))},n=function(){o((function(e){return e.onWidthChanged()}))},i=function(){o((function(e){return e.onFirstRightPinnedChanged()}))},s=function(){o((function(e){return e.onLastLeftPinnedChanged()}))},a=function(){o((function(e){return e.onColDefChanged()}))};t.addEventListener(me.EVENT_LEFT_CHANGED,r),t.addEventListener(me.EVENT_WIDTH_CHANGED,n),t.addEventListener(me.EVENT_FIRST_RIGHT_PINNED_CHANGED,i),t.addEventListener(me.EVENT_LAST_LEFT_PINNED_CHANGED,s),t.addEventListener(me.EVENT_COL_DEF_CHANGED,a),e.destroyFuncsForColumnListeners.push((function(){t.removeEventListener(me.EVENT_LEFT_CHANGED,r),t.removeEventListener(me.EVENT_WIDTH_CHANGED,n),t.removeEventListener(me.EVENT_FIRST_RIGHT_PINNED_CHANGED,i),t.removeEventListener(me.EVENT_LAST_LEFT_PINNED_CHANGED,s),t.removeEventListener(me.EVENT_COL_DEF_CHANGED,a)}))}))},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===fe.DOM_LAYOUT_PRINT,t=e||this.gridOptionsWrapper.isEmbedFullWidthRows(),o=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,o&&this.redrawAfterModelUpdate()},t.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)},t.prototype.onPageLoaded=function(e){var t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)},t.prototype.getAllCellsForColumn=function(e){var t=[];return this.getAllRowCtrls().forEach((function(o){var r=o.getCellElement(e);r&&t.push(r)})),t},t.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.topRowCtrls,this.pinnedRowModel.getPinnedTopRowData()),this.refreshFloatingRows(this.bottomRowCtrls,this.pinnedRowModel.getPinnedBottomRowData())},t.prototype.getTopRowCtrls=function(){return this.topRowCtrls},t.prototype.getBottomRowCtrls=function(){return this.bottomRowCtrls},t.prototype.refreshFloatingRows=function(e,t){var o=this;e.forEach((function(e){e.destroyFirstPass(),e.destroySecondPass()})),e.length=0,t&&t.forEach((function(t){var r=new ip(t,o.beans,!1,!1,o.printLayout);e.push(r)}))},t.prototype.onPinnedRowDataChanged=function(){var e={recycleRows:!0};this.redrawAfterModelUpdate(e)},t.prototype.getRenderedIndexesForRowNodes=function(e){var t=[];return i(e)||y(this.rowCtrlsByRowIndex,(function(o,r){var n=r.getRowNode();e.indexOf(n)>=0&&t.push(o)})),t},t.prototype.redrawRows=function(e){var t=null!=e&&e.length>0;if(t){var o=this.getRenderedIndexesForRowNodes(e);this.removeRowCtrls(o)}this.redrawAfterModelUpdate({recycleRows:t})},t.prototype.getCellToRestoreFocusToAfterRefresh=function(e){var t,o=(null===(t=e)||void 0===t?void 0:t.suppressKeepFocus)?null:this.focusService.getFocusCellToUseAfterRefresh();if(null==o)return null;var r=this.gridOptionsWrapper.getDocument(),n=r.activeElement,i=this.gridOptionsWrapper.getDomData(n,Ju.DOM_DATA_KEY_CELL_CTRL),s=this.gridOptionsWrapper.getDomData(n,ip.DOM_DATA_KEY_ROW_CTRL),a=i||s;return a?o:null},t.prototype.redrawAfterModelUpdate=function(e){void 0===e&&(e={}),this.getLockOnRefresh();var t=this.getCellToRestoreFocusToAfterRefresh(e);this.updateContainerHeights(),this.scrollToTopIfNewData(e);var o=!this.printLayout&&!!e.recycleRows,r=e.animate&&this.gridOptionsWrapper.isAnimateRows(),n=o?this.recycleRows():null;o||this.removeAllRowComps();var i=function(){if(null==t||null==n)return!1;var e=!1;return y(n,(function(o,r){var n=r.getRowNode(),i=n.rowIndex==t.rowIndex,s=n.rowPinned==t.rowPinned;i&&s&&(e=!0)})),e},s=i();this.redraw(n,r),this.gridBodyCtrl.updateRowCount(),e.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),s||this.restoreFocusedCell(t),this.releaseLockOnRefresh()},t.prototype.scrollToTopIfNewData=function(e){var t=e.newData||e.newPage,o=this.gridOptionsWrapper.isSuppressScrollOnNewData();t&&!o&&this.gridBodyCtrl.getScrollFeature().scrollToTop()},t.prototype.updateContainerHeights=function(){if(this.printLayout)this.rowContainerHeightService.setModelHeight(null);else{var e=this.paginationProxy.getCurrentPageHeight();0===e&&(e=1),this.rowContainerHeightService.setModelHeight(e)}},t.prototype.getLockOnRefresh=function(){if(this.refreshInProgress)throw new Error("AG Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0). To see what part of your code that caused the refresh check this stacktrace.");this.refreshInProgress=!0},t.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},t.prototype.isRefreshInProgress=function(){return this.refreshInProgress},t.prototype.restoreFocusedCell=function(e){e&&this.focusService.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})},t.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.getAllRowCtrls().forEach((function(t){t.stopEditing(e)}))},t.prototype.getAllCellCtrls=function(){var e=[];return this.getAllRowCtrls().forEach((function(t){return e=e.concat(t.getAllCellCtrls())})),e},t.prototype.getAllRowCtrls=function(){var e=this,t=this.stickyRowFeature&&this.stickyRowFeature.getStickyRowCtrls()||[],o=fh(this.topRowCtrls,this.bottomRowCtrls,t);return Object.keys(this.rowCtrlsByRowIndex).forEach((function(t){return o.push(e.rowCtrlsByRowIndex[t])})),o},t.prototype.addRenderedRowListener=function(e,t,o){var r=this.rowCtrlsByRowIndex[t];r&&r.addEventListener(e,o)},t.prototype.flashCells=function(e){void 0===e&&(e={});var t=e.flashDelay,o=e.fadeDelay;this.getCellCtrls(e.rowNodes,e.columns).forEach((function(e){return e.flashCell({flashDelay:t,fadeDelay:o})}))},t.prototype.refreshCells=function(e){void 0===e&&(e={});var t={forceRefresh:e.force,newData:!1,suppressFlash:e.suppressFlash};this.getCellCtrls(e.rowNodes,e.columns).forEach((function(e){if(e.refreshShouldDestroy()){var o=e.getRowCtrl();o&&o.refreshCell(e)}else e.refreshCell(t)})),this.getFullWidthRowCtrls(e.rowNodes).forEach((function(e){e.refreshFullWidth()}))},t.prototype.getCellRendererInstances=function(e){var t=this.getCellCtrls(e.rowNodes,e.columns).map((function(e){return e.getCellRenderer()})).filter((function(e){return null!=e}));return t},t.prototype.getCellEditorInstances=function(e){var t=[];return this.getCellCtrls(e.rowNodes,e.columns).forEach((function(e){var o=e.getCellEditor();o&&t.push(o)})),t},t.prototype.getEditingCells=function(){var e=[];return this.getAllCellCtrls().forEach((function(t){if(t.isEditing()){var o=t.getCellPosition();e.push(o)}})),e},t.prototype.mapRowNodes=function(e){if(e){var t={top:{},bottom:{},normal:{}};return e.forEach((function(e){var o=e.id;e.rowPinned===fe.PINNED_TOP?t.top[o]=e:e.rowPinned===fe.PINNED_BOTTOM?t.bottom[o]=e:t.normal[o]=e})),t}},t.prototype.isRowInMap=function(e,t){var o=e.id,r=e.rowPinned;return r===fe.PINNED_BOTTOM?null!=t.bottom[o]:r===fe.PINNED_TOP?null!=t.top[o]:null!=t.normal[o]},t.prototype.getCellCtrls=function(e,t){var o,r=this,i=this.mapRowNodes(e),s=[];n(t)&&(o={},t.forEach((function(e){var t=r.columnModel.getGridColumn(e);n(t)&&(o[t.getId()]=!0)})));var a=function(e){var t=e.getRowNode();(null==i||r.isRowInMap(t,i))&&e.getAllCellCtrls().forEach((function(e){var t=e.getColumn().getId(),r=o&&!o[t];r||s.push(e)}))};return y(this.rowCtrlsByRowIndex,(function(e,t){a(t)})),this.topRowCtrls&&this.topRowCtrls.forEach(a),this.bottomRowCtrls&&this.bottomRowCtrls.forEach(a),s},t.prototype.destroy=function(){this.removeAllRowComps(),e.prototype.destroy.call(this)},t.prototype.removeAllRowComps=function(){var e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)},t.prototype.recycleRows=function(){var e=[];y(this.rowCtrlsByRowIndex,(function(t,o){var r=null==o.getRowNode().id;r&&e.push(t)})),this.removeRowCtrls(e);var t={};return y(this.rowCtrlsByRowIndex,(function(e,o){var r=o.getRowNode();t[r.id]=o})),this.rowCtrlsByRowIndex={},t},t.prototype.removeRowCtrls=function(e){var t=this;e.forEach((function(e){var o=t.rowCtrlsByRowIndex[e];o&&(o.destroyFirstPass(),o.destroySecondPass()),delete t.rowCtrlsByRowIndex[e]}))},t.prototype.redrawAfterScroll=function(){var e;if(this.stickyRowFeature&&$t()&&(e=this.getCellToRestoreFocusToAfterRefresh()||void 0),this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(),null!=e){var t=this.getCellToRestoreFocusToAfterRefresh();null!=e&&null==t&&(this.animationFrameService.flushAllFrames(),this.restoreFocusedCell(e))}},t.prototype.removeRowCompsNotToDraw=function(e){var t={};e.forEach((function(e){return t[e]=!0}));var o=Object.keys(this.rowCtrlsByRowIndex),r=o.filter((function(e){return!t[e]}));this.removeRowCtrls(r)},t.prototype.calculateIndexesToDraw=function(e){var t=this,o=yo(this.firstRenderedRow,this.lastRenderedRow),r=function(e,r){var n=r.getRowNode().rowIndex;null!=n&&(n<t.firstRenderedRow||n>t.lastRenderedRow)&&t.doNotUnVirtualiseRow(r)&&o.push(n)};return y(this.rowCtrlsByRowIndex,r),y(e,r),o.sort((function(e,t){return e-t})),o=o.filter((function(e){var o=t.paginationProxy.getRow(e);return o&&!o.sticky})),o},t.prototype.redraw=function(e,t,o){var r=this;void 0===t&&(t=!1),void 0===o&&(o=!1),this.rowContainerHeightService.updateOffset(),this.workOutFirstAndLastRowsToRender(),this.stickyRowFeature&&this.stickyRowFeature.checkStickyRows();var i=this.calculateIndexesToDraw(e);if(this.removeRowCompsNotToDraw(i),this.printLayout&&(t=!1),i.forEach((function(i){var s=r.createOrUpdateRowCtrl(i,e,t,o);n(s)})),e){var s=o&&!this.gridOptionsWrapper.isSuppressAnimationFrame()&&!this.printLayout;s?this.beans.animationFrameService.addDestroyTask((function(){r.destroyRowCtrls(e,t),r.updateAllRowCtrls(),r.dispatchDisplayedRowsChanged()})):this.destroyRowCtrls(e,t)}this.updateAllRowCtrls()},t.prototype.dispatchDisplayedRowsChanged=function(){var e={type:lt.EVENT_DISPLAYED_ROWS_CHANGED};this.eventService.dispatchEvent(e)},t.prototype.onDisplayedColumnsChanged=function(){var e=this.columnModel.isPinningLeft(),t=this.columnModel.isPinningRight(),o=this.pinningLeft!==e||t!==this.pinningRight;o&&(this.pinningLeft=e,this.pinningRight=t,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},t.prototype.redrawFullWidthEmbeddedRows=function(){var e=[];this.getFullWidthRowCtrls().forEach((function(t){var o=t.getRowNode().rowIndex;e.push(o.toString())})),this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redrawAfterScroll()},t.prototype.getFullWidthRowCtrls=function(e){var t=this,o=this.mapRowNodes(e);return b(this.rowCtrlsByRowIndex).filter((function(e){if(!e.isFullWidth())return!1;var r=e.getRowNode();return!(null!=o&&!t.isRowInMap(r,o))}))},t.prototype.refreshFullWidthRows=function(e){var t=[],o=!!e,r=o?{}:void 0;o&&r&&e.forEach((function(e){return r[e.id]=!0})),this.getFullWidthRowCtrls().forEach((function(e){var n=e.getRowNode();if(o&&r){var i=n.level>0&&n.parent?n.parent.id:void 0,s=!r[n.id]&&!r[i];if(s)return}var a=e.refreshFullWidth();if(!a){var l=e.getRowNode().rowIndex;t.push(l.toString())}})),this.removeRowCtrls(t),this.redrawAfterScroll()},t.prototype.createOrUpdateRowCtrl=function(e,t,o,r){var i,s=this.rowCtrlsByRowIndex[e];s||(i=this.paginationProxy.getRow(e),n(i)&&n(t)&&t[i.id]&&i.alreadyRendered&&(s=t[i.id],t[i.id]=null));var a=!s;if(a){if(i||(i=this.paginationProxy.getRow(e)),!n(i))return;s=this.createRowCon(i,o,r)}return i&&(i.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=s,s},t.prototype.destroyRowCtrls=function(e,t){var o=this,r=[];y(e,(function(e,n){n&&(o.cachedRowCtrls&&n.isCacheable()?o.cachedRowCtrls.addRow(n):(n.destroyFirstPass(),t?(o.zombieRowCtrls[n.getInstanceId()]=n,r.push((function(){n.destroySecondPass(),delete o.zombieRowCtrls[n.getInstanceId()]}))):n.destroySecondPass()))})),t&&(r.push((function(){o.updateAllRowCtrls(),o.dispatchDisplayedRowsChanged()})),W(r))},t.prototype.workOutFirstAndLastRowsToRender=function(){var e,t;if(this.paginationProxy.isRowsToRender())if(this.printLayout)e=this.paginationProxy.getPageFirstRow(),t=this.paginationProxy.getPageLastRow();else{var o=this.gridOptionsWrapper.getRowBufferInPixels(),r=this.ctrlsService.getGridBodyCtrl(),n=this.gridOptionsWrapper.isSuppressRowVirtualisation(),i=!1,s=void 0,a=void 0;do{var l=this.paginationProxy.getPixelOffset(),u=this.paginationProxy.getCurrentPagePixelRange(),p=u.pageFirstPixel,c=u.pageLastPixel,d=this.rowContainerHeightService.getDivStretchOffset(),h=r.getScrollFeature().getVScrollPosition(),f=h.top,g=h.bottom;n?(s=p+d,a=c+d):(s=Math.max(f+l-o,p)+d,a=Math.min(g+l+o,c)+d),this.firstVisibleVPixel=Math.max(f+l,p)+d,i=this.ensureAllRowsInRangeHaveHeightsCalculated(s,a)}while(i);var v=this.paginationProxy.getRowIndexAtPixel(s),y=this.paginationProxy.getRowIndexAtPixel(a),m=this.paginationProxy.getPageFirstRow(),C=this.paginationProxy.getPageLastRow();v<m&&(v=m),y>C&&(y=C),e=v,t=y}else e=0,t=-1;var w=this.gridOptionsWrapper.getDomLayout()===fe.DOM_LAYOUT_NORMAL,E=this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction(),R=Math.max(this.gridOptionsWrapper.getRowBuffer(),500);w&&!E&&t-e>R&&(t=e+R);var O=e!==this.firstRenderedRow,S=t!==this.lastRenderedRow;if(O||S){this.firstRenderedRow=e,this.lastRenderedRow=t;var _={type:lt.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:t};this.eventService.dispatchEvent(_)}},t.prototype.dispatchFirstDataRenderedEvent=function(){var e=this;if(!this.dataFirstRenderedFired){this.dataFirstRenderedFired=!0;var t={type:lt.EVENT_FIRST_DATA_RENDERED,firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow};window.requestAnimationFrame((function(){e.beans.eventService.dispatchEvent(t)}))}},t.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(e,t){var o=this.paginationProxy.ensureRowHeightsValid(e,t,-1,-1);return o&&this.updateContainerHeights(),o},t.prototype.getFirstVisibleVerticalPixel=function(){return this.firstVisibleVPixel},t.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},t.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},t.prototype.doNotUnVirtualiseRow=function(e){var t=!1,o=!0,r=e.getRowNode(),n=this.focusService.isRowNodeFocused(r),i=e.isEditing(),s=r.detail,a=n||i||s;if(!a)return t;var l=this.paginationProxy.isRowPresent(r);return l?o:t},t.prototype.createRowCon=function(e,t,o){var r=this.cachedRowCtrls?this.cachedRowCtrls.getRow(e):null;if(r)return r;var n=this.gridOptionsWrapper.isSuppressAnimationFrame(),i=o&&!n&&!this.printLayout,s=new ip(e,this.beans,t,i,this.printLayout);return s},t.prototype.getRenderedNodes=function(){var e=this.rowCtrlsByRowIndex;return Object.keys(e).map((function(t){return e[t].getRowNode()}))},t.prototype.getRowByPosition=function(e){var t,o=e.rowIndex;switch(e.rowPinned){case fe.PINNED_TOP:t=this.topRowCtrls[o];break;case fe.PINNED_BOTTOM:t=this.bottomRowCtrls[o];break;default:t=this.rowCtrlsByRowIndex[o],t||(t=this.getStickyTopRowCtrls().find((function(e){return e.getRowNode().rowIndex===o}))||null);break}return t},t.prototype.getRowNode=function(e){switch(e.rowPinned){case fe.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case fe.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.isRangeInRenderedViewport=function(e,t){var o=null==e||null==t;if(o)return!1;var r=e>this.lastRenderedRow,n=t<this.firstRenderedRow,i=!n&&!r;return i},dh([ne("animationFrameService")],t.prototype,"animationFrameService",void 0),dh([ne("paginationProxy")],t.prototype,"paginationProxy",void 0),dh([ne("columnModel")],t.prototype,"columnModel",void 0),dh([ne("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),dh([ne("rowModel")],t.prototype,"rowModel",void 0),dh([ne("focusService")],t.prototype,"focusService",void 0),dh([ne("beans")],t.prototype,"beans",void 0),dh([ne("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),dh([ne("ctrlsService")],t.prototype,"ctrlsService",void 0),dh([te],t.prototype,"postConstruct",null),t=dh([re("rowRenderer")],t),t}(rt),vh=function(){function e(e){this.entriesMap={},this.entriesList=[],this.maxCount=e}return e.prototype.addRow=function(e){if(this.entriesMap[e.getRowNode().id]=e,this.entriesList.push(e),e.setCached(!0),this.entriesList.length>this.maxCount){var t=this.entriesList[0];t.destroyFirstPass(),t.destroySecondPass(),this.removeFromCache(t)}},e.prototype.getRow=function(e){if(null==e||null==e.id)return null;var t=this.entriesMap[e.id];if(!t)return null;this.removeFromCache(t),t.setCached(!1);var o=t.getRowNode()!=e;return o?null:t},e.prototype.removeFromCache=function(e){var t=e.getRowNode().id;delete this.entriesMap[t],Pe(this.entriesList,e)},e.prototype.getEntries=function(){return this.entriesList},e}(),yh=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),mh=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Ch=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return yh(t,e),t.prototype.formatValue=function(e,t,o,r,n){void 0===n&&(n=!0);var i,s=null,a=e.getColDef();if(r?i=r:n&&(i=t&&t.rowPinned&&a.pinnedRowValueFormatter?a.pinnedRowValueFormatter:a.valueFormatter),i){var l={value:o,node:t,data:t?t.data:null,colDef:a,column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};s=this.expressionService.evaluate(i,l)}else if(a.refData)return a.refData[o]||"";return null==s&&Array.isArray(o)&&(s=o.join(", ")),s},mh([ne("expressionService")],t.prototype,"expressionService",void 0),t=mh([re("valueFormatterService")],t),t}(rt),wh=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Eh=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Rh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wh(t,e),t.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData()),this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData())},t.prototype.isEmpty=function(e){var t=e===fe.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;return s(t)},t.prototype.isRowsToRender=function(e){return!this.isEmpty(e)},t.prototype.getRowAtPixel=function(e,t){var o=t===fe.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;if(s(o))return 0;for(var r=0;r<o.length;r++){var n=o[r],i=n.rowTop+n.rowHeight-1;if(i>=e)return r}return o.length-1},t.prototype.setPinnedTopRowData=function(e){this.pinnedTopRows=this.createNodesFromData(e,!0);var t={type:lt.EVENT_PINNED_ROW_DATA_CHANGED};this.eventService.dispatchEvent(t)},t.prototype.setPinnedBottomRowData=function(e){this.pinnedBottomRows=this.createNodesFromData(e,!1);var t={type:lt.EVENT_PINNED_ROW_DATA_CHANGED};this.eventService.dispatchEvent(t)},t.prototype.createNodesFromData=function(e,t){var o=this,r=[];if(e){var n=0;e.forEach((function(e,i){var s=new Ta(o.beans);s.data=e;var a=t?Ta.ID_PREFIX_TOP_PINNED:Ta.ID_PREFIX_BOTTOM_PINNED;s.id=a+i,s.rowPinned=t?fe.PINNED_TOP:fe.PINNED_BOTTOM,s.setRowTop(n),s.setRowHeight(o.gridOptionsWrapper.getRowHeightForNode(s).height),s.setRowIndex(i),n+=s.rowHeight,r.push(s)}))}return r},t.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},t.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},t.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},t.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},t.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},t.prototype.getPinnedTopRow=function(e){return this.pinnedTopRows[e]},t.prototype.getPinnedBottomRow=function(e){return this.pinnedBottomRows[e]},t.prototype.forEachPinnedTopRow=function(e){s(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)},t.prototype.forEachPinnedBottomRow=function(e){s(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(e)},t.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},t.prototype.getTotalHeight=function(e){if(!e||0===e.length)return 0;var t=Ee(e);return t.rowTop+t.rowHeight},Eh([ne("beans")],t.prototype,"beans",void 0),Eh([te],t.prototype,"init",null),t=Eh([re("pinnedRowModel")],t),t}(rt);(function(e){e["Applied"]="Applied",e["StoreNotFound"]="StoreNotFound",e["StoreLoading"]="StoreLoading",e["StoreWaitingToLoad"]="StoreWaitingToLoad",e["StoreLoadingFailed"]="StoreLoadingFailed",e["StoreWrongType"]="StoreWrongType",e["Cancelled"]="Cancelled"})(jd||(jd={})); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */ var Oh,Sh=function(){function e(e,t){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=e,this.pathRoot={rowNode:t,children:null},this.mapToItems[t.id]=this.pathRoot}return e.prototype.setInactive=function(){this.active=!1},e.prototype.isActive=function(){return this.active},e.prototype.depthFirstSearchChangedPath=function(e,t){if(e.children)for(var o=0;o<e.children.length;o++)this.depthFirstSearchChangedPath(e.children[o],t);t(e.rowNode)},e.prototype.depthFirstSearchEverything=function(e,t,o){if(e.childrenAfterGroup)for(var r=0;r<e.childrenAfterGroup.length;r++){var n=e.childrenAfterGroup[r];n.childrenAfterGroup?this.depthFirstSearchEverything(e.childrenAfterGroup[r],t,o):o&&t(n)}t(e)},e.prototype.forEachChangedNodeDepthFirst=function(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1),this.active&&!o?this.depthFirstSearchChangedPath(this.pathRoot,e):this.depthFirstSearchEverything(this.pathRoot.rowNode,e,t)},e.prototype.executeFromRootNode=function(e){e(this.pathRoot.rowNode)},e.prototype.createPathItems=function(e){var t=e,o=0;while(!this.mapToItems[t.id]){var r={rowNode:t,children:null};this.mapToItems[t.id]=r,o++,t=t.parent}return o},e.prototype.populateColumnsMap=function(e,t){var o=this;if(this.keepingColumns&&t){var r=e;while(r)this.nodeIdsToColumns[r.id]||(this.nodeIdsToColumns[r.id]={}),t.forEach((function(e){return o.nodeIdsToColumns[r.id][e.getId()]=!0})),r=r.parent}},e.prototype.linkPathItems=function(e,t){for(var o=e,r=0;r<t;r++){var n=this.mapToItems[o.id],i=this.mapToItems[o.parent.id];i.children||(i.children=[]),i.children.push(n),o=o.parent}},e.prototype.addParentNode=function(e,t){if(e&&!e.isRowPinned()){var o=this.createPathItems(e);this.linkPathItems(e,o),this.populateColumnsMap(e,t)}},e.prototype.canSkip=function(e){return this.active&&!this.mapToItems[e.id]},e.prototype.getValueColumnsForNode=function(e,t){if(!this.keepingColumns)return t;var o=this.nodeIdsToColumns[e.id],r=t.filter((function(e){return o[e.getId()]}));return r},e.prototype.getNotValueColumnsForNode=function(e,t){if(!this.keepingColumns)return null;var o=this.nodeIdsToColumns[e.id],r=t.filter((function(e){return!o[e.getId()]}));return r},e}(),_h=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),bh=function(e){function t(o){var r=e.call(this)||this;return r.state=t.STATE_WAITING_TO_LOAD,r.version=0,r.id=o,r}return _h(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){var o=this.isRequestMostRecentAndLive(e);o&&(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,o){this.successCommon(e,{rowData:t,rowCount:o})},t.prototype.isRequestMostRecentAndLive=function(e){var t=e===this.version,o=this.isAlive();return t&&o},t.prototype.successCommon=function(e,o){this.dispatchLoadCompleted();var r=this.isRequestMostRecentAndLive(e);r&&(this.state=t.STATE_LOADED,this.processServerResult(o))},t.prototype.dispatchLoadCompleted=function(e){void 0===e&&(e=!0);var o={type:t.EVENT_LOAD_COMPLETE,success:e,block:this};this.dispatchEvent(o)},t.EVENT_LOAD_COMPLETE="loadComplete",t.STATE_WAITING_TO_LOAD="needsLoading",t.STATE_LOADING="loading",t.STATE_LOADED="loaded",t.STATE_FAILED="failed",t}(rt),Ph=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Th=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Dh=function(e,t){return function(o,r){t(o,r,e)}},Ah=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.activeBlockLoadsCount=0,t.blocks=[],t.active=!0,t}var o;return Ph(t,e),o=t,t.prototype.postConstruct=function(){this.maxConcurrentRequests=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests();var e=this.gridOptionsWrapper.getBlockLoadDebounceMillis();e&&e>0&&(this.checkBlockToLoadDebounce=yi.debounce(this.performCheckBlocksToLoad.bind(this),e))},t.prototype.setBeans=function(e){this.logger=e.create("RowNodeBlockLoader")},t.prototype.addBlock=function(e){this.blocks.push(e),e.addEventListener(bh.EVENT_LOAD_COMPLETE,this.loadComplete.bind(this)),this.checkBlockToLoad()},t.prototype.removeBlock=function(e){yi.removeFromArray(this.blocks,e)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.active=!1},t.prototype.loadComplete=function(){this.activeBlockLoadsCount--,this.checkBlockToLoad(),0==this.activeBlockLoadsCount&&this.dispatchEvent({type:o.BLOCK_LOADER_FINISHED_EVENT})},t.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},t.prototype.performCheckBlocksToLoad=function(){if(this.active)if(this.printCacheStatus(),null!=this.maxConcurrentRequests&&this.activeBlockLoadsCount>=this.maxConcurrentRequests)this.logger.log("checkBlockToLoad: max loads exceeded");else{var e=void 0!==this.maxConcurrentRequests?this.maxConcurrentRequests-this.activeBlockLoadsCount:void 0,t=this.blocks.filter((function(e){return e.getState()===bh.STATE_WAITING_TO_LOAD})).slice(0,e);this.activeBlockLoadsCount+=t.length,t.forEach((function(e){return e.load()})),this.printCacheStatus()}},t.prototype.getBlockState=function(){var e={};return this.blocks.forEach((function(t){var o=t.getBlockStateJson(),r=o.id,n=o.state;e[r]=n})),e},t.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},t.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},t.BLOCK_LOADER_FINISHED_EVENT="blockLoaderFinished",Th([te],t.prototype,"postConstruct",null),Th([Dh(0,ae("loggerFactory"))],t.prototype,"setBeans",null),t=o=Th([re("rowNodeBlockLoader")],t),t}(rt),Nh=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ih=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Gh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentPage=0,t.topDisplayedRowIndex=0,t.bottomDisplayedRowIndex=0,t.pixelOffset=0,t.masterRowCount=0,t}return Nh(t,e),t.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isPagination(),this.paginateChildRows=this.gridOptionsWrapper.isPaginateChildRows(),this.addManagedListener(this.eventService,lt.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(this.gridOptionsWrapper,"paginationPageSize",this.onPaginationPageSizeChanged.bind(this)),this.onModelUpdated()},t.prototype.ensureRowHeightsValid=function(e,t,o,r){var n=this.rowModel.ensureRowHeightsValid(e,t,this.getPageFirstRow(),this.getPageLastRow());return n&&this.calculatePages(),n},t.prototype.onModelUpdated=function(e){this.calculatePages();var t={type:lt.EVENT_PAGINATION_CHANGED,animate:!!e&&e.animate,newData:!!e&&e.newData,newPage:!!e&&e.newPage,keepRenderedRows:!!e&&e.keepRenderedRows};this.eventService.dispatchEvent(t)},t.prototype.onPaginationPageSizeChanged=function(){this.calculatePages();var e={type:lt.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!1,keepRenderedRows:!0};this.eventService.dispatchEvent(e)},t.prototype.goToPage=function(e){if(this.active&&this.currentPage!==e){this.currentPage=e;var t={type:lt.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0};this.onModelUpdated(t)}},t.prototype.getPixelOffset=function(){return this.pixelOffset},t.prototype.getRow=function(e){return this.rowModel.getRow(e)},t.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},t.prototype.getRowIndexAtPixel=function(e){return this.rowModel.getRowIndexAtPixel(e)},t.prototype.getCurrentPageHeight=function(){return i(this.topRowBounds)||i(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},t.prototype.getCurrentPagePixelRange=function(){var e=this.topRowBounds?this.topRowBounds.rowTop:0,t=this.bottomRowBounds?this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight:0;return{pageFirstPixel:e,pageLastPixel:t}},t.prototype.isRowPresent=function(e){if(!this.rowModel.isRowPresent(e))return!1;var t=e.rowIndex>=this.topDisplayedRowIndex&&e.rowIndex<=this.bottomDisplayedRowIndex;return t},t.prototype.isEmpty=function(){return this.rowModel.isEmpty()},t.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},t.prototype.getNodesInRangeForSelection=function(e,t){return this.rowModel.getNodesInRangeForSelection(e,t)},t.prototype.forEachNode=function(e){return this.rowModel.forEachNode(e)},t.prototype.getType=function(){return this.rowModel.getType()},t.prototype.getRowBounds=function(e){var t=this.rowModel.getRowBounds(e);return t.rowIndex=e,t},t.prototype.getPageFirstRow=function(){return this.topRowBounds?this.topRowBounds.rowIndex:-1},t.prototype.getPageLastRow=function(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1},t.prototype.getRowCount=function(){return this.rowModel.getRowCount()},t.prototype.getPageForIndex=function(e){return Math.floor(e/this.pageSize)},t.prototype.goToPageWithIndex=function(e){if(this.active){var t=this.getPageForIndex(e);this.goToPage(t)}},t.prototype.isRowInPage=function(e){if(!this.active)return!0;var t=this.getPageForIndex(e.rowIndex);return t===this.currentPage},t.prototype.isLastPageFound=function(){return this.rowModel.isLastRowIndexKnown()},t.prototype.getCurrentPage=function(){return this.currentPage},t.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},t.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},t.prototype.goToFirstPage=function(){this.goToPage(0)},t.prototype.goToLastPage=function(){var e=this.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)},t.prototype.getPageSize=function(){return this.pageSize},t.prototype.getTotalPages=function(){return this.totalPages},t.prototype.setPageSize=function(){this.pageSize=this.gridOptionsWrapper.getPaginationPageSize(),(null==this.pageSize||this.pageSize<1)&&(this.pageSize=100)},t.prototype.calculatePages=function(){this.active?(this.setPageSize(),this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly()):this.calculatedPagesNotActive(),this.topRowBounds=this.rowModel.getRowBounds(this.topDisplayedRowIndex),this.topRowBounds&&(this.topRowBounds.rowIndex=this.topDisplayedRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomDisplayedRowIndex),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=this.bottomDisplayedRowIndex),this.setPixelOffset(n(this.topRowBounds)?this.topRowBounds.rowTop:0)},t.prototype.setPixelOffset=function(e){this.pixelOffset!==e&&(this.pixelOffset=e,this.eventService.dispatchEvent({type:lt.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED}))},t.prototype.setZeroRows=function(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0},t.prototype.calculatePagesMasterRowsOnly=function(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),this.masterRowCount<=0)this.setZeroRows();else{var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!mo(this.currentPage)||this.currentPage<0)&&(this.currentPage=0);var t=this.pageSize*this.currentPage,o=this.pageSize*(this.currentPage+1)-1;if(o>e&&(o=e),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(t),o===e)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{var r=this.rowModel.getTopLevelRowDisplayedIndex(o+1);this.bottomDisplayedRowIndex=r-1}}},t.prototype.getMasterRowCount=function(){return this.masterRowCount},t.prototype.calculatePagesAllRows=function(){if(this.masterRowCount=this.rowModel.getRowCount(),0!==this.masterRowCount){var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!mo(this.currentPage)||this.currentPage<0)&&(this.currentPage=0),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>e&&(this.bottomDisplayedRowIndex=e)}else this.setZeroRows()},t.prototype.calculatedPagesNotActive=function(){this.pageSize=this.rowModel.getRowCount(),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1},Ih([ne("rowModel")],t.prototype,"rowModel",void 0),Ih([te],t.prototype,"postConstruct",null),t=Ih([re("paginationProxy")],t),t}(rt),Fh=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Lh=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Mh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Fh(t,e),t.prototype.processAllCellClasses=function(e,t,o,r){this.processClassRules(e.cellClassRules,t,o,r),this.processStaticCellClasses(e,t,o)},t.prototype.processClassRules=function(e,t,o,r){if(null!=e){for(var n=Object.keys(e),i={},s={},a=function(o){var r,a=n[o],u=e[a];"string"===typeof u?r=l.expressionService.evaluate(u,t):"function"===typeof u&&(r=u(t)),a.split(" ").forEach((function(e){null!=e&&""!=e.trim()&&(r?i[e]=!0:s[e]=!0)}))},l=this,u=0;u<n.length;u++)a(u);r&&Object.keys(s).forEach(r),Object.keys(i).forEach(o)}},t.prototype.getStaticCellClasses=function(e,t){var o,r=e.cellClass;if(!r)return[];if("function"===typeof r){var n=r;o=n(t)}else o=r;return"string"===typeof o&&(o=[o]),o||[]},t.prototype.processStaticCellClasses=function(e,t,o){var r=this.getStaticCellClasses(e,t);r.forEach((function(e){o(e)}))},Lh([ne("expressionService")],t.prototype,"expressionService",void 0),t=Lh([re("stylingService")],t),t}(rt),xh=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Hh=function(e){function t(t){return e.call(this,t,"ag-radio-button","radio")||this}return xh(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,lt.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}(Zc),Vh=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Wh=function(e){function t(t){return e.call(this,t,"ag-toggle-button")||this}return Vh(t,e),t.prototype.setValue=function(t,o){return e.prototype.setValue.call(this,t,o),this.addOrRemoveCssClass("ag-selected",this.getValue()),this},t}(Zc),kh=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Bh=function(e){function t(t,o,r){return void 0===o&&(o="ag-text-field"),void 0===r&&(r="text"),e.call(this,t,o,r)||this}return kh(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},t.prototype.setValue=function(t,o){var r=e.prototype.setValue.call(this,t,o);return this.eInput.value!==t&&(this.eInput.value=n(t)?t:""),r},t.prototype.preventDisallowedCharacters=function(){var e=new RegExp("["+this.config.allowedCharPattern+"]"),t=function(t){t.key&&!e.test(t.key)&&t.preventDefault()};this.addManagedListener(this.eInput,"keypress",t),this.addManagedListener(this.eInput,"paste",(function(t){var o,r=null===(o=t.clipboardData)||void 0===o?void 0:o.getData("text");r&&r.split("").some((function(t){return!e.test(t)}))&&t.preventDefault()}))},t}(cs),jh=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Uh=function(e){function t(t){return e.call(this,t,"ag-text-area",null,"textarea")||this}return jh(t,e),t.prototype.setValue=function(t,o){var r=e.prototype.setValue.call(this,t,o);return this.eInput.value=t,r},t.prototype.setCols=function(e){return this.eInput.cols=e,this},t.prototype.setRows=function(e){return this.eInput.rows=e,this},t}(cs),zh=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Kh=function(e){function t(t){return e.call(this,t,"ag-number-field","number")||this}return zh(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"blur",(function(){var e=parseFloat(t.eInput.value),o=isNaN(e)?"":t.normalizeValue(e.toString());t.value!==o&&t.setValue(o)})),this.addManagedListener(this.eInput,"wheel",this.onWheel.bind(this)),this.eInput.step="any"},t.prototype.onWheel=function(e){document.activeElement===this.eInput&&e.preventDefault()},t.prototype.normalizeValue=function(e){if(""===e)return"";this.precision&&(e=this.adjustPrecision(e));var t=parseFloat(e);return null!=this.min&&t<this.min?e=this.min.toString():null!=this.max&&t>this.max&&(e=this.max.toString()),e},t.prototype.adjustPrecision=function(e){if(this.precision){var t=parseFloat(e).toFixed(this.precision);e=parseFloat(t).toString()}return e},t.prototype.setMin=function(e){return this.min===e||(this.min=e,Xr(this.eInput,"min",e)),this},t.prototype.setMax=function(e){return this.max===e||(this.max=e,Xr(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,Xr(this.eInput,"step",e)),this},t.prototype.setValue=function(t,o){t=this.adjustPrecision(t);var r=this.normalizeValue(t);return t!=r?this:e.prototype.setValue.call(this,t,o)},t}(Bh),Yh=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),qh=function(e){function t(t){return e.call(this,t,"ag-range-field","range")||this}return Yh(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this);var t=this.config,o=t.min,r=t.max,n=t.step;null!=o&&this.setMinValue(o),null!=r&&this.setMaxValue(r),this.setStep(n||1)},t.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",(function(t){var o=t.target.value;e.setValue(o)}))},t.prototype.setMinValue=function(e){return this.min=e,this.eInput.setAttribute("min",e.toString()),this},t.prototype.setMaxValue=function(e){return this.max=e,this.eInput.setAttribute("max",e.toString()),this},t.prototype.setStep=function(e){return this.eInput.setAttribute("step",e.toString()),this},t.prototype.setValue=function(t,o){null!=this.min&&(t=Math.max(parseFloat(t),this.min).toString()),null!=this.max&&(t=Math.min(parseFloat(t),this.max).toString());var r=e.prototype.setValue.call(this,t,o);return this.eInput.value=t,r},t}(cs),Xh=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Qh=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Jh=function(e){function t(o){var r=e.call(this,o,t.TEMPLATE)||this;return r.labelAlignment="top",r}return Xh(t,e),t.prototype.init=function(){this.eSlider.addCssClass("ag-slider-field")},t.prototype.onValueChange=function(e){var t=this,o=$i.EVENT_CHANGED;return this.addManagedListener(this.eText,o,(function(){var o=parseFloat(t.eText.getValue());t.eSlider.setValue(o.toString(),!0),e(o||0)})),this.addManagedListener(this.eSlider,o,(function(){var o=t.eSlider.getValue();t.eText.setValue(o,!0),e(parseFloat(o))})),this},t.prototype.setSliderWidth=function(e){return this.eSlider.setWidth(e),this},t.prototype.setTextFieldWidth=function(e){return this.eText.setWidth(e),this},t.prototype.setMinValue=function(e){return this.eSlider.setMinValue(e),this.eText.setMin(e),this},t.prototype.setMaxValue=function(e){return this.eSlider.setMaxValue(e),this.eText.setMax(e),this},t.prototype.getValue=function(){return this.eText.getValue()},t.prototype.setValue=function(e){return this.getValue()===e||(this.eText.setValue(e,!0),this.eSlider.setValue(e,!0),this.dispatchEvent({type:$i.EVENT_CHANGED})),this},t.prototype.setStep=function(e){return this.eSlider.setStep(e),this.eText.setStep(e),this},t.TEMPLATE='<div class="ag-slider">\n <label ref="eLabel"></label>\n <div class="ag-wrapper ag-slider-wrapper">\n <ag-input-range ref="eSlider"></ag-input-range>\n <ag-input-number-field ref="eText"></ag-input-number-field>\n </div>\n </div>',Qh([Ai("eLabel")],t.prototype,"eLabel",void 0),Qh([Ai("eSlider")],t.prototype,"eSlider",void 0),Qh([Ai("eText")],t.prototype,"eText",void 0),Qh([te],t.prototype,"init",null),t}(Ji),Zh=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),$h=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},ef=function(e){function t(o){var r=e.call(this,o,t.TEMPLATE)||this;return r.radius=0,r.offsetX=0,r.offsetY=0,r}return Zh(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.dragListener={eElement:this.eParentCircle,dragStartPixels:0,onDragStart:function(e){t.parentCircleRect=t.eParentCircle.getBoundingClientRect()},onDragging:function(e){return t.calculateAngleDrag(e)},onDragStop:function(){}},this.dragService.addDragSource(this.dragListener),this.eAngleValue.setLabel("").setLabelWidth(5).setInputWidth(45).setMin(0).setMax(360).setValue(""+this.degrees).onValueChange((function(e){null!=e&&""!==e||(e="0"),e=t.eAngleValue.normalizeValue(e);var o=parseFloat(e);o>180&&(o-=360),t.setValue(o)})),this.updateNumberInput(),n(this.getValue())&&this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString()),this.addManagedListener(this,$i.EVENT_CHANGED,(function(){var e=t.gridOptionsWrapper.getDocument();t.eAngleValue.getInputElement().contains(e.activeElement)||t.updateNumberInput()}))},t.prototype.updateNumberInput=function(){var e=this.normalizeNegativeValue(this.getValue());this.eAngleValue.setValue(e.toString())},t.prototype.positionChildCircle=function(e){var t=this.parentCircleRect||{width:24,height:24},o=this.eChildCircle,r=t.width/2,n=t.height/2;o.style.left=r+8*Math.cos(e)+"px",o.style.top=n+8*Math.sin(e)+"px"},t.prototype.calculatePolar=function(){var e=this.offsetX,t=this.offsetY,o=Math.atan2(t,e);this.degrees=this.toDegrees(o),this.radius=Math.sqrt(e*e+t*t),this.positionChildCircle(o)},t.prototype.calculateCartesian=function(){var e=this.toRadians(this.getValue()),t=this.getRadius();this.setOffsetX(Math.cos(e)*t).setOffsetY(Math.sin(e)*t)},t.prototype.setOffsetX=function(e){return this.offsetX!==e&&(this.offsetX=e,this.calculatePolar()),this},t.prototype.setOffsetY=function(e){return this.offsetY!==e&&(this.offsetY=e,this.calculatePolar()),this},t.prototype.calculateAngleDrag=function(e){var t=this.parentCircleRect,o=t.width/2,r=t.height/2,n=e.clientX-t.left,i=e.clientY-t.top,s=n-o,a=i-r,l=Math.atan2(a,s);this.setValue(l,!0)},t.prototype.toDegrees=function(e){return e/Math.PI*180},t.prototype.toRadians=function(e){return e/180*Math.PI},t.prototype.normalizeNegativeValue=function(e){return e<0?360+e:e},t.prototype.normalizeAngle180=function(e){return e%=2*Math.PI,e<-Math.PI?e+=2*Math.PI:e>=Math.PI&&(e-=2*Math.PI),e},t.prototype.getRadius=function(){return this.radius},t.prototype.setRadius=function(e){return this.radius===e||(this.radius=e,this.calculateCartesian()),this},t.prototype.onValueChange=function(e){var t=this;return this.addManagedListener(this,$i.EVENT_CHANGED,(function(){e(t.degrees)})),this},t.prototype.getValue=function(e){return e?this.toRadians(this.degrees):this.degrees},t.prototype.setValue=function(e,t){var o;return o=t?e:this.normalizeAngle180(this.toRadians(e)),e=this.toDegrees(o),this.degrees!==e&&(this.degrees=Math.floor(e),this.calculateCartesian(),this.positionChildCircle(o),this.dispatchEvent({type:$i.EVENT_CHANGED})),this},t.prototype.setWidth=function(e){return Vr(this.getGui(),e),this},t.prototype.setDisabled=function(t){return e.prototype.setDisabled.call(this,t),this.eAngleValue.setDisabled(t),this},t.prototype.destroy=function(){this.dragService.removeDragSource(this.dragListener),e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-angle-select">\n <div ref="eLabel"></div>\n <div class="ag-wrapper ag-angle-select-wrapper">\n <div ref="eAngleSelectField" class="ag-angle-select-field">\n <div ref="eParentCircle" class="ag-angle-select-parent-circle">\n <div ref="eChildCircle" class="ag-angle-select-child-circle"></div>\n </div>\n </div>\n <ag-input-number-field ref="eAngleValue"></ag-input-number-field>\n </div>\n </div>',$h([Ai("eLabel")],t.prototype,"eLabel",void 0),$h([Ai("eParentCircle")],t.prototype,"eParentCircle",void 0),$h([Ai("eChildCircle")],t.prototype,"eChildCircle",void 0),$h([Ai("eAngleValue")],t.prototype,"eAngleValue",void 0),$h([ne("dragService")],t.prototype,"dragService",void 0),t}(Ji),tf=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),of=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},rf=function(e,t){var o="function"===typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,n,i=o.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=i.next()).done)s.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(o=i["return"])&&o.call(i)}finally{if(n)throw n.error}}return s},nf=function(e){function t(o){var r=e.call(this,t.TEMPLATE)||this;return r.H=1,r.S=1,r.B=1,r.A=1,r.isSpectrumDragging=!1,r.isSpectrumHueDragging=!1,r.isSpectrumAlphaDragging=!1,r.colorChanged=!1,r.picker=o.picker,r}return tf(t,e),t.prototype.postConstruct=function(){var e=this.getGui();this.initRecentColors(),this.addManagedListener(this.spectrumVal,"mousedown",this.onSpectrumDraggerDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumDraggerMove.bind(this)),this.addManagedListener(this.spectrumHue,"mousedown",this.onSpectrumHueDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumHueMove.bind(this)),this.addManagedListener(this.spectrumAlpha,"mousedown",this.onSpectrumAlphaDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumAlphaMove.bind(this)),this.addManagedListener(document,"mouseup",this.onMouseUp.bind(this)),this.addManagedListener(this.recentColors,"click",this.onRecentColorClick.bind(this))},t.prototype.refreshSpectrumRect=function(){return this.spectrumValRect=this.spectrumVal.getBoundingClientRect()},t.prototype.refreshHueRect=function(){return this.spectrumHueRect=this.spectrumHue.getBoundingClientRect()},t.prototype.refreshAlphaRect=function(){return this.spectrumAlphaRect=this.spectrumAlpha.getBoundingClientRect()},t.prototype.onSpectrumDraggerDown=function(e){this.refreshSpectrumRect(),this.isSpectrumDragging=!0,this.moveDragger(e)},t.prototype.onSpectrumDraggerMove=function(e){this.isSpectrumDragging&&this.moveDragger(e)},t.prototype.onSpectrumHueDown=function(e){this.refreshHueRect(),this.isSpectrumHueDragging=!0,this.moveHueSlider(e)},t.prototype.onSpectrumHueMove=function(e){this.isSpectrumHueDragging&&this.moveHueSlider(e)},t.prototype.onSpectrumAlphaDown=function(e){this.refreshAlphaRect(),this.isSpectrumAlphaDragging=!0,this.moveAlphaSlider(e)},t.prototype.onSpectrumAlphaMove=function(e){this.isSpectrumAlphaDragging&&this.moveAlphaSlider(e)},t.prototype.onMouseUp=function(){this.isSpectrumDragging=!1,this.isSpectrumHueDragging=!1,this.isSpectrumAlphaDragging=!1},t.prototype.moveDragger=function(e){var t=this.spectrumValRect;if(t){var o=e.clientX-t.left,r=e.clientY-t.top;o=Math.max(o,0),o=Math.min(o,t.width),r=Math.max(r,0),r=Math.min(r,t.height),this.setSpectrumValue(o/t.width,1-r/t.height)}},t.prototype.moveHueSlider=function(e){var t=this.spectrumHueRect;if(t){var o=this.spectrumHueSlider,r=o.getBoundingClientRect(),n=e.clientX-t.left;n=Math.max(n,0),n=Math.min(n,t.width),this.H=1-n/t.width,o.style.left=n+r.width/2+"px",this.update()}},t.prototype.moveAlphaSlider=function(e){var t=this.spectrumAlphaRect;if(t){var o=this.spectrumAlphaSlider,r=o.getBoundingClientRect(),n=e.clientX-t.left;n=Math.max(n,0),n=Math.min(n,t.width),this.A=n/t.width,o.style.left=n+r.width/2+"px",this.update()}},t.prototype.update=function(){var e=nr.fromHSB(360*this.H,this.S,this.B,this.A),t=nr.fromHSB(360*this.H,1,1),o=e.toRgbaString(),r=this.picker,n=nr.fromString(r.getValue());n.toRgbaString()!==o&&(this.colorChanged=!0),r.setValue(o),this.spectrumColor.style.backgroundColor=t.toRgbaString(),this.spectrumDragger.style.backgroundColor=o},t.prototype.setSpectrumValue=function(e,t){var o=this.spectrumValRect||this.refreshSpectrumRect();if(o){var r=this.spectrumDragger,n=r.getBoundingClientRect();e=Math.max(0,e),e=Math.min(1,e),t=Math.max(0,t),t=Math.min(1,t),this.S=e,this.B=t,r.style.left=e*o.width-n.width/2+"px",r.style.top=(1-t)*o.height-n.height/2+"px",this.update()}},t.prototype.initRecentColors=function(){var e=t.recentColors,o=e.map((function(e,t){return'<div class="ag-recent-color" id='+t+' style="background-color: '+e+'; width: 15px; height: 15px;" recent-color="'+e+'"></div>'}));this.recentColors.innerHTML=o.join("")},t.prototype.setValue=function(e){var t=nr.fromString(e),o=rf(t.toHSB(),3),r=o[0],n=o[1],i=o[2];this.H=(isNaN(r)?0:r)/360,this.A=t.a;var s=this.spectrumHueRect||this.refreshHueRect(),a=this.spectrumAlphaRect||this.refreshAlphaRect();this.spectrumHueSlider.style.left=(this.H-1)*-s.width+"px",this.spectrumAlphaSlider.style.left=this.A*a.width+"px",this.setSpectrumValue(n,i)},t.prototype.onRecentColorClick=function(e){var o=e.target;if(n(o.id)){var r=parseInt(o.id,10);this.setValue(t.recentColors[r]),this.destroy()}},t.prototype.addRecentColor=function(){var e=nr.fromHSB(360*this.H,this.S,this.B,this.A),o=e.toRgbaString(),r=t.recentColors;this.colorChanged&&r[0]!==o&&(r=r.filter((function(e){return e!=o})),r=[o].concat(r),r.length>t.maxRecentColors&&(r=r.slice(0,t.maxRecentColors)),t.recentColors=r)},t.prototype.destroy=function(){this.addRecentColor(),e.prototype.destroy.call(this)},t.maxRecentColors=8,t.recentColors=[],t.TEMPLATE='<div class="ag-color-panel">\n <div ref="spectrumColor" class="ag-spectrum-color">\n <div class="ag-spectrum-sat ag-spectrum-fill">\n <div ref="spectrumVal" class="ag-spectrum-val ag-spectrum-fill">\n <div ref="spectrumDragger" class="ag-spectrum-dragger"></div>\n </div>\n </div>\n </div>\n <div class="ag-spectrum-tools">\n <div ref="spectrumHue" class="ag-spectrum-hue ag-spectrum-tool">\n <div class="ag-spectrum-hue-background"></div>\n <div ref="spectrumHueSlider" class="ag-spectrum-slider"></div>\n </div>\n <div ref="spectrumAlpha" class="ag-spectrum-alpha ag-spectrum-tool">\n <div class="ag-spectrum-alpha-background"></div>\n <div ref="spectrumAlphaSlider" class="ag-spectrum-slider"></div>\n </div>\n <div ref="recentColors" class="ag-recent-colors"></div>\n </div>\n </div>',of([Ai("spectrumColor")],t.prototype,"spectrumColor",void 0),of([Ai("spectrumVal")],t.prototype,"spectrumVal",void 0),of([Ai("spectrumDragger")],t.prototype,"spectrumDragger",void 0),of([Ai("spectrumHue")],t.prototype,"spectrumHue",void 0),of([Ai("spectrumHueSlider")],t.prototype,"spectrumHueSlider",void 0),of([Ai("spectrumAlpha")],t.prototype,"spectrumAlpha",void 0),of([Ai("spectrumAlphaSlider")],t.prototype,"spectrumAlphaSlider",void 0),of([Ai("recentColors")],t.prototype,"recentColors",void 0),of([te],t.prototype,"postConstruct",null),t}(Di),sf=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),af=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},lf=function(e){function t(o){var r=e.call(this,t.getTemplate(o))||this;return r.closable=!0,r.config=o,r}return sf(t,e),t.getTemplate=function(e){var t=e&&e.cssIdentifier||"default";return'<div class="ag-panel ag-'+t+'-panel" tabindex="-1">\n <div ref="eTitleBar" class="ag-panel-title-bar ag-'+t+'-panel-title-bar ag-unselectable">\n <span ref="eTitle" class="ag-panel-title-bar-title ag-'+t+'-panel-title-bar-title"></span>\n <div ref="eTitleBarButtons" class="ag-panel-title-bar-buttons ag-'+t+'-panel-title-bar-buttons"></div>\n </div>\n <div ref="eContentWrapper" class="ag-panel-content-wrapper ag-'+t+'-panel-content-wrapper"></div>\n </div>'},t.prototype.postConstruct=function(){var e=this,t=this.config,o=t.component,r=t.closable,n=t.hideTitleBar,i=t.title,s=t.minWidth,a=void 0===s?250:s,l=t.width,u=t.minHeight,p=void 0===u?250:u,c=t.height,d=t.centered,h=t.popup,f=t.x,g=t.y;this.positionableFeature=new th(this.getGui(),{minWidth:a,width:l,minHeight:p,height:c,centered:d,x:f,y:g,popup:h,calculateTopBuffer:function(){return e.positionableFeature.getHeight()-e.getBodyHeight()}}),this.createManagedBean(this.positionableFeature);var v=this.getGui();o&&this.setBodyComponent(o),n?this.eTitleBar.classList.add("ag-hidden"):(i&&this.setTitle(i),this.setClosable(null!=r?r:this.closable)),this.addManagedListener(this.eTitleBar,"mousedown",(function(t){var o=e.gridOptionsWrapper.getDocument();if(v.contains(t.relatedTarget)||v.contains(o.activeElement)||e.eTitleBarButtons.contains(t.target))t.preventDefault();else{var r=e.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");r&&r.focus()}})),h&&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 o=this.closeButtonComp=new Di(t.CLOSE_BTN_TEMPLATE);this.getContext().createBean(o);var r=o.getGui(),n=jn("close",this.gridOptionsWrapper);n.classList.add("ag-panel-title-bar-button-icon"),r.appendChild(n),this.addTitleBarButton(o),o.addManagedListener(r,"click",this.onBtClose.bind(this))}else if(this.closeButtonComp){r=this.closeButtonComp.getGui();r.parentElement.removeChild(r),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 o=this.eTitleBarButtons,r=o.children,n=r.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?o.insertAdjacentElement("afterbegin",i):t===n?o.insertAdjacentElement("beforeend",i):r[t-1].insertAdjacentElement("afterend",i),e.setParentComponent(this)},t.prototype.getBodyHeight=function(){return gr(this.eContentWrapper)},t.prototype.getBodyWidth=function(){return vr(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='<div class="ag-button"></div>',af([Ai("eContentWrapper")],t.prototype,"eContentWrapper",void 0),af([Ai("eTitleBar")],t.prototype,"eTitleBar",void 0),af([Ai("eTitleBarButtons")],t.prototype,"eTitleBarButtons",void 0),af([Ai("eTitle")],t.prototype,"eTitle",void 0),af([te],t.prototype,"postConstruct",null),t}(Di),uf=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),pf=function(){return pf=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},pf.apply(this,arguments)},cf=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},df=function(e){function t(t){var o=e.call(this,pf(pf({},t),{popup:!0}))||this;return o.isMaximizable=!1,o.isMaximized=!1,o.maximizeListeners=[],o.resizeListenerDestroy=null,o.lastPosition={x:0,y:0,width:0,height:0},o}return uf(t,e),t.prototype.postConstruct=function(){var t=this,o=this.getGui(),r=this.config,n=r.movable,i=r.resizable,s=r.maximizable;this.addCssClass("ag-dialog"),e.prototype.postConstruct.call(this),this.addManagedListener(o,"focusin",(function(e){o.contains(e.relatedTarget)||t.popupService.bringPopupToFront(o)})),n&&this.setMovable(n),s&&this.setMaximizable(s),i&&this.setResizable(i)},t.prototype.renderComponent=function(){var e=this.getGui(),t=this.config,o=t.alwaysOnTop,r=t.modal,n=t.title,i=this.gridOptionsWrapper.getLocaleTextFunc(),s=this.popupService.addPopup({modal:r,eChild:e,closeOnEsc:!0,closedCallback:this.destroy.bind(this),alwaysOnTop:o,ariaLabel:n||i("ariaLabelDialog","Dialog")});s&&(this.close=s.hideFunc)},t.prototype.toggleMaximize=function(){var e=this.positionableFeature.getPosition();if(this.isMaximized){var t=this.lastPosition,o=t.x,r=t.y,n=t.width,i=t.height;this.setWidth(n),this.setHeight(i),this.positionableFeature.offsetElement(o,r)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=e.x,this.lastPosition.y=e.y,this.positionableFeature.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()},t.prototype.refreshMaximizeIcon=function(){pr(this.maximizeIcon,!this.isMaximized),pr(this.minimizeIcon,this.isMaximized)},t.prototype.clearMaximizebleListeners=function(){this.maximizeListeners.length&&(this.maximizeListeners.forEach((function(e){return e()})),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)},t.prototype.destroy=function(){this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),e.prototype.destroy.call(this)},t.prototype.setResizable=function(e){this.positionableFeature.setResizable(e)},t.prototype.setMovable=function(e){this.positionableFeature.setMovable(e,this.eTitleBar)},t.prototype.setMaximizable=function(e){var t=this;if(!e)return this.clearMaximizebleListeners(),void(this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0));var o=this.eTitleBar;if(o&&e!==this.isMaximizable){var r=this.maximizeButtonComp=this.createBean(new Di('<div class="ag-dialog-button"></span>')),n=r.getGui();n.appendChild(this.maximizeIcon=jn("maximize",this.gridOptionsWrapper)),this.maximizeIcon.classList.add("ag-panel-title-bar-button-icon"),n.appendChild(this.minimizeIcon=jn("minimize",this.gridOptionsWrapper)),this.minimizeIcon.classList.add("ag-panel-title-bar-button-icon","ag-hidden"),r.addManagedListener(n,"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(r,0),this.maximizeListeners.push(this.addManagedListener(o,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addManagedListener(this,"resize",(function(){t.isMaximized=!1,t.refreshMaximizeIcon()}))}},cf([ne("popupService")],t.prototype,"popupService",void 0),t}(lf),hf=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ff=function(e){function t(t){var o=e.call(this,t,"ag-color-picker","colorPicker")||this;return t&&t.color&&(o.value=t.color),o}return hf(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.value&&this.setValue(this.value)},t.prototype.showPicker=function(){var e=this,t=this.getGui().getBoundingClientRect(),o=this.createBean(new df({closable:!1,modal:!0,hideTitleBar:!0,minWidth:190,width:190,height:250,x:t.right-190,y:t.top-250}));this.isPickerDisplayed=!0,o.addCssClass("ag-color-dialog"),wn(this.eWrapper,!0);var r=this.createBean(new nf({picker:this}));return r.addDestroyFunc((function(){o.isAlive()&&e.destroyBean(o)})),o.setParentComponent(this),o.setBodyComponent(r),r.setValue(this.getValue()),o.addDestroyFunc((function(){e.isDestroyingPicker?e.isDestroyingPicker=!1:(e.isDestroyingPicker=!0,r.isAlive()&&e.destroyBean(r)),e.isAlive()&&(wn(e.eWrapper,!1),e.getFocusableElement().focus()),e.isPickerDisplayed=!1})),o},t.prototype.setValue=function(t){return this.value===t?this:(this.eDisplayField.style.backgroundColor=t,e.prototype.setValue.call(this,t))},t.prototype.getValue=function(){return this.value},t}(os),gf=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),vf=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},yf=function(e){function t(o){void 0===o&&(o={});var r=e.call(this,t.getTemplate(o))||this;r.suppressEnabledCheckbox=!0,r.suppressOpenCloseIcons=!1;var n=o.title,i=o.enabled,s=o.items,a=o.suppressEnabledCheckbox,l=o.suppressOpenCloseIcons;return r.title=n,r.cssIdentifier=o.cssIdentifier||"default",r.enabled=null==i||i,r.items=s||[],r.alignItems=o.alignItems||"center",null!=a&&(r.suppressEnabledCheckbox=a),null!=l&&(r.suppressOpenCloseIcons=l),r}return gf(t,e),t.getTemplate=function(e){var t=e.cssIdentifier||"default",o=e.direction||"vertical";return'<div class="ag-group ag-'+t+'-group" role="presentation">\n <div class="ag-group-title-bar ag-'+t+'-group-title-bar ag-unselectable" ref="eTitleBar" role="button">\n <span class="ag-group-title-bar-icon ag-'+t+'-group-title-bar-icon" ref="eGroupOpenedIcon" role="presentation"></span>\n <span class="ag-group-title-bar-icon ag-'+t+'-group-title-bar-icon" ref="eGroupClosedIcon" role="presentation"></span>\n <span ref="eTitle" class="ag-group-title ag-'+t+'-group-title"></span>\n </div>\n <div ref="eToolbar" class="ag-group-toolbar ag-'+t+'-group-toolbar">\n <ag-checkbox ref="cbGroupEnabled"></ag-checkbox>\n </div>\n <div ref="eContainer" class="ag-group-container ag-group-container-'+o+" ag-"+t+'-group-container"></div>\n </div>'},t.prototype.postConstruct=function(){if(this.items.length){var e=this.items;this.items=[],this.addItems(e)}var t=this.gridOptionsWrapper.getLocaleTextFunc();this.cbGroupEnabled.setLabel(t("enabled","Enabled")),this.title&&this.setTitle(this.title),this.enabled&&this.setEnabled(this.enabled),this.setAlignItems(this.alignItems),this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract(),this.refreshAriaStatus(),this.refreshChildDisplay()},t.prototype.setupExpandContract=function(){var e=this;this.eGroupClosedIcon.appendChild(Bn("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(Bn("columnSelectOpen",this.gridOptionsWrapper,null)),this.addManagedListener(this.eTitleBar,"click",(function(){return e.toggleGroupExpand()})),this.addManagedListener(this.eTitleBar,"keydown",(function(t){switch(t.key){case zn.ENTER:case zn.SPACE:t.preventDefault(),e.toggleGroupExpand();break;case zn.RIGHT:case zn.LEFT:t.preventDefault(),e.toggleGroupExpand(t.key===zn.RIGHT);break}}))},t.prototype.refreshAriaStatus=function(){this.suppressOpenCloseIcons||wn(this.eTitleBar,this.expanded)},t.prototype.refreshChildDisplay=function(){var e=!this.suppressOpenCloseIcons;pr(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),pr(this.eGroupOpenedIcon,e&&this.expanded),pr(this.eGroupClosedIcon,e&&!this.expanded)},t.prototype.isExpanded=function(){return this.expanded},t.prototype.setAlignItems=function(e){this.alignItems!==e&&this.removeCssClass("ag-group-item-alignment-"+this.alignItems),this.alignItems=e;var t="ag-group-item-alignment-"+this.alignItems;return this.addCssClass(t),this},t.prototype.toggleGroupExpand=function(e){return this.suppressOpenCloseIcons?(this.expanded=!0,this.refreshChildDisplay(),pr(this.eContainer,!0),this):(e=null!=e?e:!this.expanded,this.expanded===e||(this.expanded=e,this.refreshAriaStatus(),this.refreshChildDisplay(),pr(this.eContainer,e),this.dispatchEvent({type:this.expanded?t.EVENT_EXPANDED:t.EVENT_COLLAPSED})),this)},t.prototype.addItems=function(e){var t=this;e.forEach((function(e){return t.addItem(e)}))},t.prototype.addItem=function(e){var t=this.eContainer,o=e instanceof Di?e.getGui():e;o.classList.add("ag-group-item","ag-"+this.cssIdentifier+"-group-item"),t.appendChild(o),this.items.push(o)},t.prototype.hideItem=function(e,t){var o=this.items[t];o.classList.toggle("ag-hidden",e)},t.prototype.setTitle=function(e){return this.eTitle.innerText=e,this},t.prototype.addCssClassToTitleBar=function(e){this.eTitleBar.classList.add(e)},t.prototype.setEnabled=function(e,t){return this.enabled=e,this.refreshDisabledStyles(),this.toggleGroupExpand(e),t||this.cbGroupEnabled.setValue(e),this},t.prototype.isEnabled=function(){return this.enabled},t.prototype.onEnableChange=function(e){var t=this;return this.cbGroupEnabled.onValueChange((function(o){t.setEnabled(o,!0),e(o)})),this},t.prototype.hideEnabledCheckbox=function(e){return this.suppressEnabledCheckbox=e,this.refreshChildDisplay(),this.refreshDisabledStyles(),this},t.prototype.hideOpenCloseIcons=function(e){return this.suppressOpenCloseIcons=e,e&&this.toggleGroupExpand(!0),this},t.prototype.refreshDisabledStyles=function(){this.addOrRemoveCssClass("ag-disabled",!this.enabled),this.suppressEnabledCheckbox&&!this.enabled?(this.eTitleBar.classList.add("ag-disabled-group-title-bar"),this.eTitleBar.removeAttribute("tabindex")):(this.eTitleBar.classList.remove("ag-disabled-group-title-bar"),this.eTitleBar.setAttribute("tabindex","0")),this.eContainer.classList.toggle("ag-disabled-group-container",!this.enabled)},t.EVENT_EXPANDED="expanded",t.EVENT_COLLAPSED="collapsed",vf([Ai("eTitleBar")],t.prototype,"eTitleBar",void 0),vf([Ai("eGroupOpenedIcon")],t.prototype,"eGroupOpenedIcon",void 0),vf([Ai("eGroupClosedIcon")],t.prototype,"eGroupClosedIcon",void 0),vf([Ai("eToolbar")],t.prototype,"eToolbar",void 0),vf([Ai("cbGroupEnabled")],t.prototype,"cbGroupEnabled",void 0),vf([Ai("eTitle")],t.prototype,"eTitle",void 0),vf([Ai("eContainer")],t.prototype,"eContainer",void 0),vf([te],t.prototype,"postConstruct",null),t}(Di),mf=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Cf=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},wf=function(e){function t(t){var o=e.call(this)||this;o.skipTabGuardFocus=!1;var r=t.comp,n=t.eTopGuard,i=t.eBottomGuard,s=t.focusInnerElement,a=t.onFocusIn,l=t.onFocusOut,u=t.shouldStopEventPropagation,p=t.onTabKeyDown,c=t.handleKeyDown,d=t.eFocusableElement;return o.comp=r,o.eTopGuard=n,o.eBottomGuard=i,o.providedFocusInnerElement=s,o.eFocusableElement=d,o.providedFocusIn=a,o.providedFocusOut=l,o.providedShouldStopEventPropagation=u,o.providedOnTabKeyDown=p,o.providedHandleKeyDown=c,o}return mf(t,e),t.prototype.postConstruct=function(){var e=this;this.createManagedBean(new zi(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 o=this.tabGuardsAreActive();o&&this.deactivateTabGuards();var r=this.getNextFocusableElement(e.shiftKey);o&&setTimeout((function(){return t.activateTabGuards()}),0),r&&(r.focus(),e.preventDefault())}},t.prototype.getGridTabIndex=function(){return this.gridOptionsWrapper.getGridTabIndex()},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()},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()},Cf([ne("focusService")],t.prototype,"focusService",void 0),Cf([te],t.prototype,"postConstruct",null),t}(rt),Ef=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Rf=function(e,t){var o="function"===typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,n,i=o.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=i.next()).done)s.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(o=i["return"])&&o.call(i)}finally{if(n)throw n.error}}return s},Of=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Rf(arguments[t]));return e},Sf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ef(t,e),t.prototype.initialiseTabGuard=function(e){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.getFocusableElement();var t=[this.eTopGuard,this.eBottomGuard],o={setTabIndex:function(e){t.forEach((function(t){return null!=e?t.setAttribute("tabIndex",e):t.removeAttribute("tabIndex")}))}};this.addTabGuards(this.eTopGuard,this.eBottomGuard),this.tabGuardCtrl=this.createManagedBean(new wf({comp:o,eTopGuard:this.eTopGuard,eBottomGuard:this.eBottomGuard,eFocusableElement:this.eFocusableElement,onFocusIn:e.onFocusIn,onFocusOut:e.onFocusOut,focusInnerElement:e.focusInnerElement,handleKeyDown:e.handleKeyDown,onTabKeyDown:e.onTabKeyDown,shouldStopEventPropagation:e.shouldStopEventPropagation}))},t.prototype.createTabGuard=function(e){var t=document.createElement("div");return t.classList.add("ag-tab-guard","ag-tab-guard-"+e),ln(t,"presentation"),t},t.prototype.addTabGuards=function(e,t){this.eFocusableElement.insertAdjacentElement("afterbegin",e),this.eFocusableElement.insertAdjacentElement("beforeend",t)},t.prototype.removeAllChildrenExceptTabGuards=function(){var e=[this.eTopGuard,this.eBottomGuard];Rr(this.getFocusableElement()),this.addTabGuards.apply(this,Of(e))},t.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1),this.tabGuardCtrl.forceFocusOutOfContainer(e)},t.prototype.appendChild=function(t,o){zr(t)||(t=t.getGui());var r=this.eBottomGuard;r?r.insertAdjacentElement("beforebegin",t):e.prototype.appendChild.call(this,t,o)},t}(Di),_f=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),bf=function(){return bf=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},bf.apply(this,arguments)},Pf=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Tf=function(e){function t(t){void 0===t&&(t=1);var o=e.call(this,'<div class="ag-menu-list" role="tree"></div>')||this;return o.level=t,o.menuItems=[],o}return _f(t,e),t.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)}})},t.prototype.onTabKeyDown=function(e){var t=this.getParentComponent(),o=t&&t.getGui(),r=o&&o.classList.contains("ag-focus-managed");r||e.preventDefault(),e.shiftKey&&this.closeIfIsChild(e)},t.prototype.handleKeyDown=function(e){switch(e.key){case zn.UP:case zn.RIGHT:case zn.DOWN:case zn.LEFT:e.preventDefault(),this.handleNavKey(e.key);break;case zn.ESCAPE:var t=this.findTopMenu();t&&this.focusService.focusInto(t.getGui());break}},t.prototype.clearActiveItem=function(){this.activeMenuItem&&(this.activeMenuItem.deactivate(),this.activeMenuItem=null)},t.prototype.addMenuItems=function(e){var t=this;null!=e&&e.forEach((function(e){"separator"===e?t.addSeparator():"string"===typeof e?console.warn("AG Grid: unrecognised menu item "+e):t.addItem(e)}))},t.prototype.addItem=function(e){var t=this,o=this.createManagedBean(new Ff(bf(bf({},e),{isAnotherSubMenuOpen:function(){return t.menuItems.some((function(e){return e.isSubMenuOpen()}))}})));o.setParentComponent(this),yn(o.getGui(),this.level),this.menuItems.push(o),this.appendChild(o.getGui()),this.addManagedListener(o,Ff.EVENT_MENU_ITEM_SELECTED,(function(e){t.dispatchEvent(e)})),this.addManagedListener(o,Ff.EVENT_MENU_ITEM_ACTIVATED,(function(e){t.activeMenuItem&&t.activeMenuItem!==e.menuItem&&t.activeMenuItem.deactivate(),t.activeMenuItem=e.menuItem}))},t.prototype.activateFirstItem=function(){var e=this.menuItems.filter((function(e){return!e.isDisabled()}))[0];e&&e.activate()},t.prototype.addSeparator=function(){var e='\n <div class="ag-menu-separator" aria-hidden="true">\n <div class="ag-menu-separator-part"></div>\n <div class="ag-menu-separator-part"></div>\n <div class="ag-menu-separator-part"></div>\n <div class="ag-menu-separator-part"></div>\n </div>';this.appendChild(br(e))},t.prototype.findTopMenu=function(){var e=this.getParentComponent();if(!e&&this instanceof t)return this;while(1){var o=e&&e.getParentComponent&&e.getParentComponent();if(!o||!(o instanceof t||o instanceof Ff))break;e=o}return e instanceof t?e:void 0},t.prototype.handleNavKey=function(e){switch(e){case zn.UP:case zn.DOWN:var t=this.findNextItem(e===zn.UP);return void(t&&t!==this.activeMenuItem&&t.activate())}var o=this.gridOptionsWrapper.isEnableRtl()?zn.RIGHT:zn.LEFT;e===o?this.closeIfIsChild():this.openChild()},t.prototype.closeIfIsChild=function(e){var t=this.getParentComponent();t&&t instanceof Ff&&(e&&e.preventDefault(),t.closeSubMenu(),t.getGui().focus())},t.prototype.openChild=function(){this.activeMenuItem&&this.activeMenuItem.openSubMenu(!0)},t.prototype.findNextItem=function(e){var t=this.menuItems.filter((function(e){return!e.isDisabled()}));if(t.length){if(!this.activeMenuItem)return e?Ee(t):t[0];var o;e&&t.reverse();for(var r=!1,n=0;n<t.length;n++){var i=t[n];if(r){o=i;break}i===this.activeMenuItem&&(r=!0)}return o||this.activeMenuItem}},t.prototype.destroy=function(){this.clearActiveItem(),e.prototype.destroy.call(this)},Pf([ne("focusService")],t.prototype,"focusService",void 0),Pf([te],t.prototype,"postConstruct",null),t}(Sf),Df=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Af=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Nf=function(e){function t(t){var o=e.call(this)||this;return o.wrappedComponent=t,o.setTemplateFromElement(t.getGui()),o}return Df(t,e),t.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)}})},t.prototype.handleKeyDown=function(e){e.key===zn.ESCAPE&&this.closePanel()},t.prototype.onTabKeyDown=function(e){e.defaultPrevented||(this.closePanel(),e.preventDefault())},t.prototype.closePanel=function(){var e=this.parentComponent;e.closeSubMenu(),setTimeout((function(){return e.getGui().focus()}),0)},Af([te],t.prototype,"postConstruct",null),t}(Sf),If=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Gf=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Ff=function(e){function t(t){var o=e.call(this)||this;return o.params=t,o.isActive=!1,o.subMenuIsOpen=!1,o.setTemplate('<div class="'+o.getClassName()+'" tabindex="-1" role="treeitem"></div>'),o}return If(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")),mn(t,!0)):(this.addGuiEventListener("click",(function(t){return e.onItemSelected(t)})),this.addGuiEventListener("keydown",(function(t){t.key!==zn.ENTER&&t.key!==zn.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 o=this;if(void 0===e&&(e=!1),this.closeSubMenu(),this.params.subMenu){var r,n=br('<div class="ag-menu" role="presentation"></div>');if(this.params.subMenu instanceof Array){var i=pn(this.getGui()),s=isNaN(i)?1:i+1,a=this.createBean(new Tf(s));a.setParentComponent(this),a.addMenuItems(this.params.subMenu),n.appendChild(a.getGui()),this.addManagedListener(a,t.EVENT_MENU_ITEM_SELECTED,(function(e){return o.dispatchEvent(e)})),a.addGuiEventListener("mouseenter",(function(){return o.cancelDeactivate()})),r=function(){return o.destroyBean(a)},e&&setTimeout((function(){return a.activateFirstItem()}),0)}else{var l=this.params.subMenu,u=this.createBean(new Nf(l));u.setParentComponent(this);var p=u.getGui(),c="mouseenter",d=function(){return o.cancelDeactivate()};p.addEventListener(c,d),r=function(){return p.removeEventListener(c,d)},n.appendChild(p),l.afterGuiAttached&&setTimeout((function(){return l.afterGuiAttached()}),0)}var h=this.getGui(),f=this.popupService.positionPopupForMenu.bind(this.popupService,{eventSource:h,ePopup:n}),g=this.gridOptionsWrapper.getLocaleTextFunc(),v=this.popupService.addPopup({modal:!0,eChild:n,positionCallback:f,anchorToElement:h,ariaLabel:g("ariaLabelSubMenu","SubMenu")});this.subMenuIsOpen=!0,wn(h,!0),this.hideSubMenu=function(){v&&v.hideFunc(),o.subMenuIsOpen=!1,wn(h,!1),r()}}},t.prototype.closeSubMenu=function(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,wn(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=br('<span ref="eIcon" class="'+this.getClassName("part")+" "+this.getClassName("icon")+'" role="presentation"></span>');this.params.checked?e.appendChild(jn("check",this.gridOptionsWrapper)):this.params.icon&&(zr(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=br('<span ref="eName" class="'+this.getClassName("part")+" "+this.getClassName("text")+'">'+(this.params.name||"")+"</span>");this.getGui().appendChild(e)}},t.prototype.addTooltip=function(){this.params.tooltip&&(this.tooltip=this.params.tooltip,this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",this.tooltip):this.createManagedBean(new Si(this)))},t.prototype.getTooltipParams=function(){return{location:"menu",value:this.tooltip}},t.prototype.addShortcut=function(){if(this.params.shortcut||!this.params.isCompact){var e=br('<span ref="eShortcut" class="'+this.getClassName("part")+" "+this.getClassName("shortcut")+'">'+(this.params.shortcut||"")+"</span>");this.getGui().appendChild(e)}},t.prototype.addSubMenu=function(){if(this.params.subMenu||!this.params.isCompact){var e=br('<span ref="ePopupPointer" class="'+this.getClassName("part")+" "+this.getClassName("popup-pointer")+'"></span>'),t=this.getGui();if(this.params.subMenu){var o=this.gridOptionsWrapper.isEnableRtl()?"smallLeft":"smallRight";wn(t,!1),e.appendChild(jn(o,this.gridOptionsWrapper))}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 o={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(o)}},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,Gf([ne("popupService")],t.prototype,"popupService",void 0),Gf([te],t.prototype,"init",null),t}(Di),Lf=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Mf=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},xf=function(e,t){var o="function"===typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,n,i=o.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=i.next()).done)s.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(o=i["return"])&&o.call(i)}finally{if(n)throw n.error}}return s},Hf=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(xf(arguments[t]));return e},Vf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var o;return Lf(t,e),o=t,t.addKeyboardModeEvents=function(e,t){var r=o.instancesMonitored.get(e);r&&r.length>0?-1===r.indexOf(t)&&r.push(t):(o.instancesMonitored.set(e,[t]),e.addEventListener("keydown",o.toggleKeyboardMode),e.addEventListener("mousedown",o.toggleKeyboardMode))},t.removeKeyboardModeEvents=function(e,t){var r=o.instancesMonitored.get(e),n=[];r&&r.length&&(n=Hf(r).filter((function(e){return e!==t})),o.instancesMonitored.set(e,n)),0===n.length&&(e.removeEventListener("keydown",o.toggleKeyboardMode),e.removeEventListener("mousedown",o.toggleKeyboardMode))},t.toggleKeyboardMode=function(e){var t=o.keyboardModeActive,r="keydown"===e.type;if((!r||!(e.ctrlKey||e.metaKey||e.altKey))&&!(t&&r||!t&&!r)){o.keyboardModeActive=r;var n=e.target.ownerDocument;if(n){var i=o.instancesMonitored.get(n);i&&i.forEach((function(e){e.dispatchEvent({type:r?lt.EVENT_KEYBOARD_FOCUS:lt.EVENT_MOUSE_FOCUS})}))}}},t.prototype.init=function(){var e=this,t=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,lt.EVENT_COLUMN_PIVOT_MODE_CHANGED,t),this.addManagedListener(this.eventService,lt.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_GROUP_OPENED,t),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_ROW_GROUP_CHANGED,t),this.ctrlsService.whenReady((function(t){e.gridCtrl=t.gridCtrl;var r=e.gridOptionsWrapper.getDocument();o.addKeyboardModeEvents(r,e.gridCtrl),e.addDestroyFunc((function(){return e.unregisterGridCompController(e.gridCtrl)}))}))},t.prototype.unregisterGridCompController=function(e){var t=this.gridOptionsWrapper.getDocument();o.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 o.keyboardModeActive},t.prototype.getFocusCellToUseAfterRefresh=function(){var e=this.gridOptionsWrapper.getDocument();return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedCellPosition||this.isDomDataMissingInHierarchy(e.activeElement,ip.DOM_DATA_KEY_ROW_CTRL)?null:this.focusedCellPosition},t.prototype.getFocusHeaderToUseAfterRefresh=function(){var e=this.gridOptionsWrapper.getDocument();return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedHeaderPosition||this.isDomDataMissingInHierarchy(e.activeElement,Fc.DOM_DATA_KEY_HEADER_CTRL)?null:this.focusedHeaderPosition},t.prototype.isDomDataMissingInHierarchy=function(e,t){var o=e;while(o){var r=this.gridOptionsWrapper.getDomData(o,t);if(r)return!1;o=o.parentNode}return!0},t.prototype.clearFocusedCell=function(){this.focusedCellPosition=null,this.onCellFocused(!1,!1)},t.prototype.getFocusedCell=function(){return this.focusedCellPosition},t.prototype.setFocusedCell=function(e){var t=e.column,o=e.rowIndex,n=e.rowPinned,i=e.forceBrowserFocus,s=void 0!==i&&i,a=e.preventScrollOnBrowserFocus,l=void 0!==a&&a,u=this.columnModel.getGridColumn(t);u?(this.focusedCellPosition=u?{rowIndex:o,rowPinned:r(n),column:u}:null,this.onCellFocused(s,l)):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(),o=e.getRowIndex(),r=e.getPinned(),n=this.focusedHeaderPosition,i=n.column,s=n.headerRowIndex;return t===i&&o===s&&r==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,o=e.fromTab,r=e.allowUserOverride,n=e.event,i=e.headerPosition;if(r){var s=this.gridOptionsWrapper,a=this.getFocusedHeader(),l=this.headerNavigationService.getHeaderRowCount();if(o){var u=s.getTabToNextHeaderFunc();if(u){var p={backwards:"Before"===t,previousHeaderPosition:a,nextHeaderPosition:i,headerRowCount:l};i=u(p)}}else{u=s.getNavigateToNextHeaderFunc();if(u&&n){var c={key:n.key,previousHeaderPosition:a,nextHeaderPosition:i,headerRowCount:l,event:n};i=u(c)}}}if(!i)return!1;if(-1===i.headerRowIndex)return this.focusGridView(i.column);this.headerNavigationService.scrollToColumn(i.column,t);var d=this.ctrlsService.getHeaderRowContainerCtrl(i.column.getPinned()),h=d.focusHeader(i.headerRowIndex,i.column,n);return h},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,o=Ee(this.columnModel.getAllDisplayedColumns());return this.focusHeaderPosition({headerPosition:{headerRowIndex:t,column:o},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===r(t))},t.prototype.findFocusableElements=function(e,t,o){void 0===o&&(o=!1);var r=fe.FOCUSABLE_SELECTOR,n=fe.FOCUSABLE_EXCLUDE;t&&(n+=", "+t),o&&(n+=', [tabindex="-1"]');var i=Array.prototype.slice.apply(e.querySelectorAll(r)),s=Array.prototype.slice.apply(e.querySelectorAll(n));if(!s.length)return i;var a=function(e,t){return e.filter((function(e){return-1===t.indexOf(e)}))};return a(i,s)},t.prototype.focusInto=function(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1);var r=this.findFocusableElements(e,null,o),n=t?Ee(r):r[0];return!!n&&(n.focus(),!0)},t.prototype.findNextFocusableElement=function(e,t,o){void 0===e&&(e=this.eGridDiv);var r,n=this.findFocusableElements(e,t?':not([tabindex="-1"])':null),i=this.gridOptionsWrapper.getDocument(),s=i.activeElement;r=t?n.findIndex((function(e){return e.contains(s)})):n.indexOf(s);var a=r+(o?-1:1);return a<0||a>=n.length?null:n[a]},t.prototype.isFocusUnderManagedComponent=function(e){var t=this.gridOptionsWrapper.getDocument(),o=e.querySelectorAll("."+zi.FOCUS_MANAGED_CLASS);if(!o.length)return!1;for(var r=0;r<o.length;r++)if(o[r].contains(t.activeElement))return!0;return!1},t.prototype.findTabbableParent=function(e,t){void 0===t&&(t=5);var o=0;while(e&&null===eo(e)&&++o<=t)e=e.parentElement;return null===eo(e)?null:e},t.prototype.onCellFocused=function(e,t){var o={type:lt.EVENT_CELL_FOCUSED,forceBrowserFocus:e,preventScrollOnBrowserFocus:t,rowIndex:null,column:null,floating:null,rowPinned:null,isFullWidthCell:!1};if(this.focusedCellPosition){var r=o.rowIndex=this.focusedCellPosition.rowIndex,n=o.rowPinned=this.focusedCellPosition.rowPinned;o.column=this.focusedCellPosition.column;var i=this.rowRenderer.getRowByPosition({rowIndex:r,rowPinned:n});i&&(o.isFullWidthCell=i.isFullWidth())}this.eventService.dispatchEvent(o)},t.prototype.focusGridView=function(e,t){if(this.gridOptionsWrapper.isSuppressCellFocus())return t?this.focusLastHeader():this.focusNextGridCoreContainer(!1);var o=t?this.rowPositionUtils.getLastRow():this.rowPositionUtils.getFirstRow();if(!o)return!1;var n=o.rowIndex,i=o.rowPinned,s=this.getFocusedHeader();if(!e&&s&&(e=s.column),null==n||!e)return!1;if(this.navigationService.ensureCellVisible({rowIndex:n,column:e,rowPinned:i}),this.setFocusedCell({rowIndex:n,column:e,rowPinned:r(i),forceBrowserFocus:!0}),this.rangeService){var a={rowIndex:n,rowPinned:i,column:e};this.rangeService.setRangeToCell(a)}return!0},t.prototype.focusNextGridCoreContainer=function(e){return!!this.gridCtrl.focusNextInnerContainer(e)||(e||this.gridCtrl.isDetailGrid()||this.gridCtrl.forceFocusOutOfContainer(),!1)},t.AG_KEYBOARD_FOCUS="ag-keyboard-focus",t.keyboardModeActive=!1,t.instancesMonitored=new Map,Mf([ne("eGridDiv")],t.prototype,"eGridDiv",void 0),Mf([ne("columnModel")],t.prototype,"columnModel",void 0),Mf([ne("headerNavigationService")],t.prototype,"headerNavigationService",void 0),Mf([ne("rowRenderer")],t.prototype,"rowRenderer",void 0),Mf([ne("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Mf([ie("rangeService")],t.prototype,"rangeService",void 0),Mf([ne("navigationService")],t.prototype,"navigationService",void 0),Mf([ne("ctrlsService")],t.prototype,"ctrlsService",void 0),Mf([te],t.prototype,"init",null),t=o=Mf([re("focusService")],t),t}(rt),Wf=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),kf=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Bf=function(e,t){var o="function"===typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,n,i=o.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=i.next()).done)s.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(o=i["return"])&&o.call(i)}finally{if(n)throw n.error}}return s},jf=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Bf(arguments[t]));return e}; /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */(function(e){e[e["vertical"]=0]="vertical",e[e["horizontal"]=1]="horizontal"})(Oh||(Oh={}));var Uf,zf=0,Kf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.popupList=[],t}var o;return Wf(t,e),o=t,t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.gridCtrl=t.gridCtrl,e.addManagedListener(e.gridCtrl,lt.EVENT_KEYBOARD_FOCUS,(function(){e.popupList.forEach((function(e){return e.element.classList.add(Vf.AG_KEYBOARD_FOCUS)}))})),e.addManagedListener(e.gridCtrl,lt.EVENT_MOUSE_FOCUS,(function(){e.popupList.forEach((function(e){return e.element.classList.remove(Vf.AG_KEYBOARD_FOCUS)}))}))}))},t.prototype.getPopupParent=function(){var e=this.gridOptionsWrapper.getPopupParent();return e||this.gridCtrl.getGui()},t.prototype.positionPopupForMenu=function(e){var t=e.eventSource.getBoundingClientRect(),o=this.getParentRect(),r=this.keepXYWithinBounds(e.ePopup,t.top-o.top,Oh.vertical),n=e.ePopup.clientWidth>0?e.ePopup.clientWidth:200;e.ePopup.style.minWidth=n+"px";var i,s=o.right-o.left,a=s-n;function l(){return t.right-o.left-2}function u(){return t.left-o.left-n}this.gridOptionsWrapper.isEnableRtl()?(i=u(),i<0&&(i=l()),i>a&&(i=0)):(i=l(),i>a&&(i=u()),i<0&&(i=0)),e.ePopup.style.left=i+"px",e.ePopup.style.top=r+"px"},t.prototype.positionPopupUnderMouseEvent=function(e){var t=e.ePopup,o=e.nudgeX,r=e.nudgeY,n=e.skipObserver,i=this.calculatePointerAlign(e.mouseEvent),s=i.x,a=i.y;this.positionPopup({ePopup:t,x:s,y:a,nudgeX:o,nudgeY:r,keepWithinBounds:!0,skipObserver:n}),this.callPostProcessPopup(e.type,e.ePopup,null,e.mouseEvent,e.column,e.rowNode)},t.prototype.calculatePointerAlign=function(e){var t=this.getParentRect();return{x:e.clientX-t.left,y:e.clientY-t.top}},t.prototype.positionPopupUnderComponent=function(e){var t=e.eventSource.getBoundingClientRect(),o=e.alignSide||"left",r=this.getParentRect(),n=t.left-r.left;"right"===o&&(n-=e.ePopup.offsetWidth-t.width),this.positionPopup({ePopup:e.ePopup,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:n,y:t.top-r.top+t.height,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.type,e.ePopup,e.eventSource,null,e.column,e.rowNode)},t.prototype.positionPopupOverComponent=function(e){var t=e.eventSource.getBoundingClientRect(),o=this.getParentRect();this.positionPopup({ePopup:e.ePopup,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:t.left-o.left,y:t.top-o.top,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.type,e.ePopup,e.eventSource,null,e.column,e.rowNode)},t.prototype.callPostProcessPopup=function(e,t,o,r,n,i){var s=this.gridOptionsWrapper.getPostProcessPopupFunc();if(s){var a={column:n,rowNode:i,ePopup:t,type:e,eventSource:o,mouseEvent:r};s(a)}},t.prototype.positionPopup=function(e){var t=this,r=e.x,n=e.y,i=e.ePopup,s=e.keepWithinBounds,a=e.nudgeX,l=e.nudgeY,u=e.skipObserver,p=r,c=n;a&&(p+=a),l&&(c+=l);var d=function(){s&&(p=t.keepXYWithinBounds(i,p,Oh.horizontal),c=t.keepXYWithinBounds(i,c,Oh.vertical)),i.style.left=p+"px",i.style.top=c+"px"};if(d(),!u){var h=this.resizeObserverService.observeResize(i,d);setTimeout((function(){return h()}),o.WAIT_FOR_POPUP_CONTENT_RESIZE)}},t.prototype.getActivePopups=function(){return this.popupList.map((function(e){return e.element}))},t.prototype.getPopupList=function(){return this.popupList},t.prototype.getParentRect=function(){var e=this.gridOptionsWrapper.getDocument(),t=this.getPopupParent();t===e.body?t=e.documentElement:"static"===getComputedStyle(t).position&&(t=t.offsetParent);var o=getComputedStyle(t),r=t.getBoundingClientRect();return{top:r.top+parseFloat(o.borderTopWidth)||0,left:r.left+parseFloat(o.borderLeftWidth)||0,right:r.right+parseFloat(o.borderRightWidth)||0,bottom:r.bottom+parseFloat(o.borderBottomWidth)||0}},t.prototype.keepXYWithinBounds=function(e,t,o){var r=o===Oh.vertical,n=r?"clientHeight":"clientWidth",i=r?"top":"left",s=r?"offsetHeight":"offsetWidth",a=r?"scrollTop":"scrollLeft",l=this.gridOptionsWrapper.getDocument(),u=l.documentElement,p=this.getPopupParent(),c=p.getBoundingClientRect(),d=l.documentElement.getBoundingClientRect(),h=p===l.body,f=e[s],g=r?yr:mr,v=h?g(u)+u[a]:p[n];h&&(v-=Math.abs(d[i]-c[i]));var y=v-f;return Math.min(Math.max(t,0),Math.abs(y))},t.prototype.keepPopupPositionedRelativeTo=function(e){var t=this,o=this.getPopupParent(),r=o.getBoundingClientRect(),n=e.element.getBoundingClientRect(),i=r.top-n.top,s=r.left-n.left,a=i,l=s,u=e.ePopup.style.top,p=parseInt(u.substring(0,u.length-1),10),c=e.ePopup.style.left,d=parseInt(c.substring(0,c.length-1),10);return new wi((function(r){t.getFrameworkOverrides().setInterval((function(){var r=o.getBoundingClientRect(),n=e.element.getBoundingClientRect(),u=0==n.top&&0==n.left&&0==n.height&&0==n.width;if(u)e.hidePopup();else{var c=r.top-n.top;if(c!=a){var h=t.keepXYWithinBounds(e.ePopup,p+i-c,Oh.vertical);e.ePopup.style.top=h+"px"}a=c;var f=r.left-n.left;if(f!=l){var g=t.keepXYWithinBounds(e.ePopup,d+s-f,Oh.horizontal);e.ePopup.style.left=g+"px"}l=f}}),200).then((function(e){var t=function(){null!=e&&window.clearInterval(e)};r(t)}))}))},t.prototype.addPopup=function(e){var t,o=this,r=e.modal,n=e.eChild,i=e.closeOnEsc,s=e.closedCallback,a=e.click,l=e.alwaysOnTop,u=e.afterGuiAttached,p=e.positionCallback,c=e.anchorToElement,d=e.ariaLabel,h=this.gridOptionsWrapper.getDocument(),f=new wi((function(e){return e((function(){}))}));if(!h)return console.warn("ag-grid: could not find the document, document is empty"),{hideFunc:function(){},stopAnchoringPromise:f};var g=this.popupList.findIndex((function(e){return e.element===n}));if(-1!==g){var v=this.popupList[g];return{hideFunc:v.hideFunc,stopAnchoringPromise:v.stopAnchoringPromise}}var y=this.getPopupParent();null==n.style.top&&(n.style.top="0px"),null==n.style.left&&(n.style.left="0px");var m=document.createElement("div"),C=this.environment.getTheme().allThemes;C.length&&(t=m.classList).add.apply(t,jf(C)),m.classList.add("ag-popup"),n.classList.add(this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr","ag-popup-child"),n.hasAttribute("role")||ln(n,"dialog"),hn(n,d),this.focusService.isKeyboardMode()&&n.classList.add(Vf.AG_KEYBOARD_FOCUS),m.appendChild(n),y.appendChild(m),l?this.setAlwaysOnTop(m,!0):this.bringPopupToFront(m);var w=!1,E=function(e){if(m.contains(h.activeElement)){var t=e.key;t===zn.ESCAPE&&S({keyboardEvent:e})}},R=function(e){return S({mouseEvent:e})},O=function(e){return S({touchEvent:e})},S=function(e){void 0===e&&(e={});var t=e.mouseEvent,r=e.touchEvent,i=e.keyboardEvent;o.isEventFromCurrentPopup({mouseEvent:t,touchEvent:r},n)||o.isEventSameChainAsOriginalEvent({originalMouseEvent:a,mouseEvent:t,touchEvent:r})||w||(w=!0,y.removeChild(m),h.removeEventListener("keydown",E),h.removeEventListener("mousedown",R),h.removeEventListener("touchstart",O),h.removeEventListener("contextmenu",R),o.eventService.removeEventListener(lt.EVENT_DRAG_STARTED,R),s&&s(t||r||i),o.popupList=o.popupList.filter((function(e){return e.element!==n})),f&&f.then((function(e){return e&&e()})))};return u&&u({hidePopup:S}),window.setTimeout((function(){i&&h.addEventListener("keydown",E),r&&(h.addEventListener("mousedown",R),o.eventService.addEventListener(lt.EVENT_DRAG_STARTED,R),h.addEventListener("touchstart",O),h.addEventListener("contextmenu",R))}),0),p&&p(),c&&(f=this.keepPopupPositionedRelativeTo({element:c,ePopup:n,hidePopup:S})),this.popupList.push({element:n,wrapper:m,hideFunc:S,stopAnchoringPromise:f,instanceId:zf++,isAnchored:!!c}),{hideFunc:S,stopAnchoringPromise:f}},t.prototype.hasAnchoredPopup=function(){return this.popupList.some((function(e){return e.isAnchored}))},t.prototype.isEventFromCurrentPopup=function(e,t){var o=e.mouseEvent,r=e.touchEvent,n=o||r;if(!n)return!1;var i=this.popupList.findIndex((function(e){return e.element===t}));if(-1===i)return!1;for(var s=i;s<this.popupList.length;s++){var a=this.popupList[s];if(Qe(a.element,n))return!0}return this.isElementWithinCustomPopup(n.target)},t.prototype.isElementWithinCustomPopup=function(e){var t=this.gridOptionsWrapper.getDocument();while(e&&e!==t.body){if(e.classList.contains("ag-custom-component-popup")||null===e.parentElement)return!0;e=e.parentElement}return!1},t.prototype.isEventSameChainAsOriginalEvent=function(e){var t=e.originalMouseEvent,o=e.mouseEvent,r=e.touchEvent,n=null;if(o?n=o:r&&(n=r.touches[0]),n&&t){var i=o?o.screenX:0,s=o?o.screenY:0,a=Math.abs(t.screenX-i)<5,l=Math.abs(t.screenY-s)<5;if(a&&l)return!0}return!1},t.prototype.getWrapper=function(e){while(!e.classList.contains("ag-popup")&&e.parentElement)e=e.parentElement;return e.classList.contains("ag-popup")?e:null},t.prototype.setAlwaysOnTop=function(e,t){var o=this.getWrapper(e);o&&(o.classList.toggle("ag-always-on-top",!!t),t&&this.bringPopupToFront(o))},t.prototype.bringPopupToFront=function(e){var t=this.getPopupParent(),o=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),r=o.length,n=Array.prototype.slice.call(t.querySelectorAll(".ag-popup.ag-always-on-top")),i=n.length,s=this.getWrapper(e);if(s&&!(r<=1)&&t.contains(e)){var a=o.indexOf(s),l=s.querySelectorAll("div"),u=[];if(l.forEach((function(e){0!==e.scrollTop&&u.push([e,e.scrollTop])})),i){var p=s.classList.contains("ag-always-on-top");p?a!==r-1&&Ee(n).insertAdjacentElement("afterend",s):a!==r-i-1&&n[0].insertAdjacentElement("beforebegin",s)}else a!==r-1&&Ee(o).insertAdjacentElement("afterend",s);while(u.length){var c=u.pop();c[0].scrollTop=c[1]}var d={type:"popupToFront",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),eWrapper:s};this.eventService.dispatchEvent(d)}},t.WAIT_FOR_POPUP_CONTENT_RESIZE=200,kf([ne("environment")],t.prototype,"environment",void 0),kf([ne("focusService")],t.prototype,"focusService",void 0),kf([ne("ctrlsService")],t.prototype,"ctrlsService",void 0),kf([ne("resizeObserverService")],t.prototype,"resizeObserverService",void 0),kf([ne("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),kf([te],t.prototype,"postConstruct",null),t=o=kf([re("popupService")],t),t}(rt),Yf=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),qf=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Xf=(function(e){function t(o,r,n){void 0===o&&(o="default"),void 0===r&&(r="listbox");var i=e.call(this,t.getTemplate(o))||this;return i.cssIdentifier=o,i.ariaRole=r,i.listName=n,i.renderedRows=new Map,i.rowHeight=20,i}Yf(t,e),t.prototype.postConstruct=function(){var e=this;this.addScrollListener(),this.rowHeight=this.getItemHeight(),this.addResizeObserver(),this.initialiseTabGuard({onFocusIn:function(t){return e.onFocusIn(t)},onFocusOut:function(t){return e.onFocusOut(t)},focusInnerElement:function(t){return e.focusInnerElement(t)},onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)}}),this.setAriaProperties()},t.prototype.setAriaProperties=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=e("ariaDefaultListName",this.listName||"List"),o=this.eContainer;ln(o,this.ariaRole),hn(o,t)},t.prototype.addResizeObserver=function(){var e=this.drawVirtualRows.bind(this),t=this.resizeObserverService.observeResize(this.getGui(),e);this.addDestroyFunc(t)},t.prototype.focusInnerElement=function(e){this.focusRow(e?this.model.getRowCount()-1:0)},t.prototype.onFocusIn=function(e){var t=e.target;return t.classList.contains("ag-virtual-list-item")&&(this.lastFocusedRowIndex=cn(t)-1),!1},t.prototype.onFocusOut=function(e){return this.getFocusableElement().contains(e.relatedTarget)||(this.lastFocusedRowIndex=null),!1},t.prototype.handleKeyDown=function(e){switch(e.key){case zn.UP:case zn.DOWN:this.navigate(e.key===zn.UP)&&e.preventDefault();break}},t.prototype.onTabKeyDown=function(e){this.navigate(e.shiftKey)?e.preventDefault():this.focusService.focusInto(this.getGui(),!e.shiftKey)},t.prototype.navigate=function(e){if(null==this.lastFocusedRowIndex)return!1;var t=this.lastFocusedRowIndex+(e?-1:1);return!(t<0||t>=this.model.getRowCount())&&(this.focusRow(t),!0)},t.prototype.getLastFocusedRow=function(){return this.lastFocusedRowIndex},t.prototype.focusRow=function(e){var t=this;this.ensureIndexVisible(e),window.setTimeout((function(){if(t.isAlive()){var o=t.renderedRows.get(e);o&&o.eDiv.focus()}}),10)},t.prototype.getComponentAt=function(e){var t=this.renderedRows.get(e);return t&&t.rowComponent},t.prototype.forEachRenderedRow=function(e){this.renderedRows.forEach((function(t,o){return e(t.rowComponent,o)}))},t.getTemplate=function(e){return'\n <div class="ag-virtual-list-viewport ag-'+e+'-virtual-list-viewport" role="presentation">\n <div class="ag-virtual-list-container ag-'+e+'-virtual-list-container" ref="eContainer"></div>\n </div>'},t.prototype.getItemHeight=function(){return this.gridOptionsWrapper.getListItemHeight()},t.prototype.ensureIndexVisible=function(e){var t=this.model.getRowCount();if("number"!==typeof e||e<0||e>=t)console.warn("AG Grid: invalid row index for ensureIndexVisible: "+e);else{var o=e*this.rowHeight,r=o+this.rowHeight,n=this.getGui(),i=n.scrollTop,s=n.offsetHeight,a=i+s,l=i>o,u=a<r;if(l)n.scrollTop=o;else if(u){var p=r-s;n.scrollTop=p}}},t.prototype.setComponentCreator=function(e){this.componentCreator=e},t.prototype.getRowHeight=function(){return this.rowHeight},t.prototype.getScrollTop=function(){return this.getGui().scrollTop},t.prototype.setRowHeight=function(e){this.rowHeight=e,this.refresh()},t.prototype.refresh=function(){var e=this;if(null!=this.model&&this.isAlive()){var t=this.model.getRowCount();this.eContainer.style.height=t*this.rowHeight+"px",Y((function(){return e.eContainer.clientHeight>=t*e.rowHeight}),(function(){e.isAlive()&&(e.clearVirtualRows(),e.drawVirtualRows())}))}},t.prototype.clearVirtualRows=function(){var e=this;this.renderedRows.forEach((function(t,o){return e.removeRow(o)}))},t.prototype.drawVirtualRows=function(){if(this.isAlive()){var e=this.getGui(),t=e.scrollTop,o=t+e.offsetHeight,r=Math.floor(t/this.rowHeight),n=Math.floor(o/this.rowHeight);this.ensureRowsRendered(r,n)}},t.prototype.ensureRowsRendered=function(e,t){var o=this;this.renderedRows.forEach((function(r,n){(n<e||n>t)&&n!==o.lastFocusedRowIndex&&o.removeRow(n)}));for(var r=e;r<=t;r++)this.renderedRows.has(r)||r<this.model.getRowCount()&&this.insertRow(r)},t.prototype.insertRow=function(e){var t=this,o=this.model.getRow(e),r=document.createElement("div");if(r.classList.add("ag-virtual-list-item","ag-"+this.cssIdentifier+"-virtual-list-item"),ln(r,"tree"===this.ariaRole?"treeitem":"option"),Rn(r,this.model.getRowCount()),On(r,e+1),r.setAttribute("tabindex","-1"),"function"===typeof this.model.isRowSelected){var n=this.model.isRowSelected(e);In(r,!!n),Gn(r,n)}r.style.height=this.rowHeight+"px",r.style.top=this.rowHeight*e+"px";var i=this.componentCreator(o,r);i.addGuiEventListener("focusin",(function(){return t.lastFocusedRowIndex=e})),r.appendChild(i.getGui()),this.renderedRows.has(e-1)?this.renderedRows.get(e-1).eDiv.insertAdjacentElement("afterend",r):this.renderedRows.has(e+1)?this.renderedRows.get(e+1).eDiv.insertAdjacentElement("beforebegin",r):this.eContainer.appendChild(r),this.renderedRows.set(e,{rowComponent:i,eDiv:r})},t.prototype.removeRow=function(e){var t=this.renderedRows.get(e);this.eContainer.removeChild(t.eDiv),this.destroyBean(t.rowComponent),this.renderedRows.delete(e)},t.prototype.addScrollListener=function(){var e=this;this.addGuiEventListener("scroll",(function(){return e.drawVirtualRows()}))},t.prototype.setModel=function(e){this.model=e},t.prototype.destroy=function(){this.isAlive()&&(this.clearVirtualRows(),e.prototype.destroy.call(this))},qf([ne("resizeObserverService")],t.prototype,"resizeObserverService",void 0),qf([ne("focusService")],t.prototype,"focusService",void 0),qf([Ai("eContainer")],t.prototype,"eContainer",void 0),qf([te],t.prototype,"postConstruct",null)}(Sf),["mouseover","mouseout","mouseenter","mouseleave"]),Qf=["touchstart","touchend","touchmove","touchcancel"],Jf=function(){function e(){this.isOutsideAngular=function(e){return Ie(Xf,e)}}return e.prototype.setTimeout=function(e,t){window.setTimeout(e,t)},e.prototype.setInterval=function(e,t){return new wi((function(o){o(window.setInterval(e,t))}))},e.prototype.addEventListener=function(e,t,o,r){var n=Ie(Qf,t);e.addEventListener(t,o,{capture:!!r,passive:n})},e.prototype.dispatchEvent=function(e,t,o){t()},e.prototype.frameworkComponent=function(e){return null},e.prototype.isFrameworkComponent=function(e){return!1},e}(),Zf=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),$f=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},eg=function(e,t){var o="function"===typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,n,i=o.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=i.next()).done)s.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(o=i["return"])&&o.call(i)}finally{if(n)throw n.error}}return s},tg=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(eg(arguments[t]));return e},og=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Zf(t,e),t.prototype.getNextCellToFocus=function(e,t,o){return void 0===o&&(o=!1),o?this.getNextCellToFocusWithCtrlPressed(e,t):this.getNextCellToFocusWithoutCtrlPressed(e,t)},t.prototype.getNextCellToFocusWithCtrlPressed=function(e,t){var o,r,n=e===zn.UP,i=e===zn.DOWN,s=e===zn.LEFT;if(n||i)r=n?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow(),o=t.column;else{var a=this.columnModel.getAllDisplayedColumns(),l=this.gridOptionsWrapper.isEnableRtl();r=t.rowIndex,o=s!==l?a[0]:Ee(a)}return{rowIndex:r,rowPinned:null,column:o}},t.prototype.getNextCellToFocusWithoutCtrlPressed=function(e,t){var o=t,r=!1;while(!r){switch(e){case zn.UP:o=this.getCellAbove(o);break;case zn.DOWN:o=this.getCellBelow(o);break;case zn.RIGHT:o=this.gridOptionsWrapper.isEnableRtl()?this.getCellToLeft(o):this.getCellToRight(o);break;case zn.LEFT:o=this.gridOptionsWrapper.isEnableRtl()?this.getCellToRight(o):this.getCellToLeft(o);break;default:o=null,console.warn("AG Grid: unknown key for navigation "+e);break}r=!o||this.isCellGoodToFocusOn(o)}return o},t.prototype.isCellGoodToFocusOn=function(e){var t,o=e.column;switch(e.rowPinned){case fe.PINNED_TOP:t=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case fe.PINNED_BOTTOM:t=this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);break;default:t=this.rowModel.getRow(e.rowIndex);break}if(!t)return!1;var r=o.isSuppressNavigable(t);return!r},t.prototype.getCellToLeft=function(e){if(!e)return null;var t=this.columnModel.getDisplayedColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},t.prototype.getCellToRight=function(e){if(!e)return null;var t=this.columnModel.getDisplayedColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},t.prototype.getRowBelow=function(e){var t=e.rowIndex,o=e.rowPinned;if(this.isLastRowInContainer(e))switch(o){case fe.PINNED_BOTTOM:return null;case fe.PINNED_TOP:return this.rowModel.isRowsToRender()?{rowIndex:this.paginationProxy.getPageFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender(fe.PINNED_BOTTOM)?{rowIndex:0,rowPinned:fe.PINNED_BOTTOM}:null;default:return this.pinnedRowModel.isRowsToRender(fe.PINNED_BOTTOM)?{rowIndex:0,rowPinned:fe.PINNED_BOTTOM}:null}var r=this.rowModel.getRow(e.rowIndex),n=this.getNextStickyPosition(r);return n||{rowIndex:t+1,rowPinned:o}},t.prototype.getNextStickyPosition=function(e,t){if(this.gridOptionsWrapper.isGroupRowsSticky()&&e&&e.sticky){var o=tg(this.rowRenderer.getStickyTopRowCtrls()).sort((function(e,t){return e.getRowNode().rowIndex-t.getRowNode().rowIndex})),r=t?-1:1,n=o.findIndex((function(t){return t.getRowNode().rowIndex===e.rowIndex})),i=o[n+r];return i?{rowIndex:i.getRowNode().rowIndex,rowPinned:null}:void 0}},t.prototype.getCellBelow=function(e){if(!e)return null;var t=this.getRowBelow(e);return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},t.prototype.isLastRowInContainer=function(e){var t=e.rowPinned,o=e.rowIndex;if(t===fe.PINNED_TOP){var r=this.pinnedRowModel.getPinnedTopRowData().length-1;return r<=o}if(t===fe.PINNED_BOTTOM){var n=this.pinnedRowModel.getPinnedBottomRowData().length-1;return n<=o}var i=this.paginationProxy.getPageLastRow();return i<=o},t.prototype.getRowAbove=function(e){var t=e.rowIndex,o=e.rowPinned,r=o?0===t:t===this.paginationProxy.getPageFirstRow();if(r)return o===fe.PINNED_TOP?null:o&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(fe.PINNED_TOP)?this.getLastFloatingTopRow():null;var n=this.rowModel.getRow(e.rowIndex),i=this.getNextStickyPosition(n,!0);return i||{rowIndex:t-1,rowPinned:o}},t.prototype.getCellAbove=function(e){if(!e)return null;var t=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},t.prototype.getLastBodyCell=function(){var e=this.paginationProxy.getPageLastRow();return{rowIndex:e,rowPinned:null}},t.prototype.getLastFloatingTopRow=function(){var e=this.pinnedRowModel.getPinnedTopRowData().length-1;return{rowIndex:e,rowPinned:fe.PINNED_TOP}},t.prototype.getNextTabbedCell=function(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)},t.prototype.getNextTabbedCellForwards=function(e){var t=this.columnModel.getAllDisplayedColumns(),o=e.rowIndex,r=e.rowPinned,n=this.columnModel.getDisplayedColAfter(e.column);if(!n){n=t[0];var s=this.getRowBelow(e);if(i(s))return null;if(!s.rowPinned&&!this.paginationProxy.isRowInPage(s))return null;o=s?s.rowIndex:null,r=s?s.rowPinned:null}return{rowIndex:o,column:n,rowPinned:r}},t.prototype.getNextTabbedCellBackwards=function(e){var t=this.columnModel.getAllDisplayedColumns(),o=e.rowIndex,r=e.rowPinned,n=this.columnModel.getDisplayedColBefore(e.column);if(!n){n=Ee(t);var s=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(i(s))return null;if(!s.rowPinned&&!this.paginationProxy.isRowInPage(s))return null;o=s?s.rowIndex:null,r=s?s.rowPinned:null}return{rowIndex:o,column:n,rowPinned:r}},$f([ne("columnModel")],t.prototype,"columnModel",void 0),$f([ne("rowModel")],t.prototype,"rowModel",void 0),$f([ne("rowRenderer")],t.prototype,"rowRenderer",void 0),$f([ne("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),$f([ne("paginationProxy")],t.prototype,"paginationProxy",void 0),t=$f([re("cellNavigationService")],t),t}(rt),rg=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ng=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},ig=function(e,t){return function(o,r){t(o,r,e)}},sg=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.consuming=!1,t}return rg(t,e),t.prototype.setBeans=function(e){this.logger=e.create("AlignedGridsService")},t.prototype.init=function(){this.addManagedListener(this.eventService,lt.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,lt.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},t.prototype.fireEvent=function(e){if(!this.consuming){var t=this.gridOptionsWrapper.getAlignedGrids();t&&t.forEach((function(t){if(t.api){var o=t.api.__getAlignedGridService();e(o)}}))}},t.prototype.onEvent=function(e){this.consuming=!0,e(),this.consuming=!1},t.prototype.fireColumnEvent=function(e){this.fireEvent((function(t){t.onColumnEvent(e)}))},t.prototype.fireScrollEvent=function(e){"horizontal"===e.direction&&this.fireEvent((function(t){t.onScrollEvent(e)}))},t.prototype.onScrollEvent=function(e){var t=this;this.onEvent((function(){var o=t.ctrlsService.getGridBodyCtrl();o.getScrollFeature().setHorizontalScrollPosition(e.left)}))},t.prototype.getMasterColumns=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e)})):e.column&&t.push(e.column),t},t.prototype.getColumnIds=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e.getColId())})):e.column&&t.push(e.column.getColId()),t},t.prototype.onColumnEvent=function(e){var t=this;this.onEvent((function(){switch(e.type){case lt.EVENT_COLUMN_MOVED:case lt.EVENT_COLUMN_VISIBLE:case lt.EVENT_COLUMN_PINNED:case lt.EVENT_COLUMN_RESIZED:var o=e;t.processColumnEvent(o);break;case lt.EVENT_COLUMN_GROUP_OPENED:var r=e;t.processGroupOpenedEvent(r);break;case lt.EVENT_COLUMN_PIVOT_CHANGED:console.warn("AG Grid: pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.");break}}))},t.prototype.processGroupOpenedEvent=function(e){var t=e.columnGroup,o=null;if(t){var r=t.getGroupId();o=this.columnModel.getProvidedColumnGroup(r)}t&&!o||(this.logger.log("onColumnEvent-> processing "+e+" expanded = "+t.isExpanded()),this.columnModel.setColumnGroupOpened(o,t.isExpanded(),"alignedGridChanged"))},t.prototype.processColumnEvent=function(e){var t,o=this,r=e.column,n=null;if(r&&(n=this.columnModel.getPrimaryColumn(r.getColId())),!r||n){var i=this.getMasterColumns(e);switch(e.type){case lt.EVENT_COLUMN_MOVED:var s=e,a=e.columnApi.getColumnState(),l=a.map((function(e){return{colId:e.colId}}));this.columnModel.applyColumnState({state:l,applyOrder:!0},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" toIndex = "+s.toIndex);break;case lt.EVENT_COLUMN_VISIBLE:var u=e;a=e.columnApi.getColumnState(),l=a.map((function(e){return{colId:e.colId,hide:e.hide}}));this.columnModel.applyColumnState({state:l},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" visible = "+u.visible);break;case lt.EVENT_COLUMN_PINNED:var p=e;a=e.columnApi.getColumnState(),l=a.map((function(e){return{colId:e.colId,pinned:e.pinned}}));this.columnModel.applyColumnState({state:l},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" pinned = "+p.pinned);break;case lt.EVENT_COLUMN_RESIZED:var c=e,d={};i.forEach((function(t){o.logger.log("onColumnEvent-> processing "+e.type+" actualWidth = "+t.getActualWidth()),d[t.getId()]={key:t.getColId(),newWidth:t.getActualWidth()}})),null===(t=c.flexColumns)||void 0===t||t.forEach((function(e){d[e.getId()]&&delete d[e.getId()]})),this.columnModel.setColumnWidths(Object.values(d),!1,c.finished,"alignedGridChanged");break}var h=this.ctrlsService.getGridBodyCtrl(),f=h.isVerticalScrollShowing(),g=this.gridOptionsWrapper.getAlignedGrids();g&&g.forEach((function(e){e.api&&e.api.setAlwaysShowVerticalScroll(f)}))}},ng([ne("columnModel")],t.prototype,"columnModel",void 0),ng([ne("ctrlsService")],t.prototype,"ctrlsService",void 0),ng([ig(0,ae("loggerFactory"))],t.prototype,"setBeans",null),ng([te],t.prototype,"init",null),t=ng([re("alignedGridsService")],t),t}(rt),ag=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),lg=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},ug=function(e,t){return function(o,r){t(o,r,e)}},pg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ag(t,e),t.prototype.setBeans=function(e){this.logger=e.create("selectionService"),this.reset()},t.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.addManagedListener(this.eventService,lt.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},t.prototype.setLastSelectedNode=function(e){this.lastSelectedNode=e},t.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},t.prototype.getSelectedNodes=function(){var e=[];return y(this.selectedNodes,(function(t,o){o&&e.push(o)})),e},t.prototype.getSelectedRows=function(){var e=[];return y(this.selectedNodes,(function(t,o){o&&o.data&&e.push(o.data)})),e},t.prototype.removeGroupsFromSelection=function(){var e=this;y(this.selectedNodes,(function(t,o){o&&o.group&&(e.selectedNodes[o.id]=void 0)}))},t.prototype.updateGroupsFromChildrenSelections=function(e){if(this.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowModel.getType()===fe.ROW_MODEL_TYPE_CLIENT_SIDE){var t=this.rowModel,o=t.getRootNode();e||(e=new Sh(!0,o),e.setInactive()),e.forEachChangedNodeDepthFirst((function(e){if(e!==o){var t=e.calculateSelectedFromChildren();e.selectThisNode(null!==t&&t)}}))}},t.prototype.getNodeForIdIfSelected=function(e){return this.selectedNodes[e]},t.prototype.clearOtherNodes=function(e){var t=this,o={},r=0;return y(this.selectedNodes,(function(n,i){if(i&&i.id!==e.id){var s=t.selectedNodes[i.id];r+=s.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0}),t.groupSelectsChildren&&i.parent&&(o[i.parent.id]=i.parent)}})),y(o,(function(e,t){var o=t.calculateSelectedFromChildren();t.selectThisNode(null!==o&&o)})),r},t.prototype.onRowSelected=function(e){var t=e.node;this.groupSelectsChildren&&t.group||(t.isSelected()?this.selectedNodes[t.id]=t:this.selectedNodes[t.id]=void 0)},t.prototype.syncInRowNode=function(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)},t.prototype.syncInOldRowNode=function(e,t){var o=n(t)&&e.id!==t.id;if(o&&t){var r=t.id,i=this.selectedNodes[r]==e;i&&(this.selectedNodes[t.id]=t)}},t.prototype.syncInNewRowNode=function(e){n(this.selectedNodes[e.id])?(e.setSelectedInitialValue(!0),this.selectedNodes[e.id]=e):e.setSelectedInitialValue(!1)},t.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},t.prototype.getBestCostNodeSelection=function(){if(this.rowModel.getType()===fe.ROW_MODEL_TYPE_CLIENT_SIDE){var e=this.rowModel,t=e.getTopLevelNodes();if(null!==t){var o=[];return r(t),o}console.warn("AG Grid: `selectAll` not available doing `rowModel=virtual`")}else console.warn("AG Grid: `getBestCostNodeSelection` is only available when using normal row model");function r(e){for(var t=0,n=e.length;t<n;t++){var i=e[t];if(i.isSelected())o.push(i);else{var s=i;s.group&&s.children&&r(s.children)}}}},t.prototype.setRowModel=function(e){this.rowModel=e},t.prototype.isEmpty=function(){var e=0;return y(this.selectedNodes,(function(t,o){o&&e++})),0===e},t.prototype.deselectAllRowNodes=function(e){void 0===e&&(e=!1);var t=function(e){return e.selectThisNode(!1)},o=this.rowModel.getType()===fe.ROW_MODEL_TYPE_CLIENT_SIDE;if(e){if(!o)return void console.error("AG Grid: selecting just filtered only works with In Memory Row Model");var r=this.rowModel;r.forEachNodeAfterFilter(t)}else y(this.selectedNodes,(function(e,o){o&&t(o)})),this.reset();o&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var n={type:lt.EVENT_SELECTION_CHANGED};this.eventService.dispatchEvent(n)},t.prototype.selectAllRowNodes=function(e){if(void 0===e&&(e=!1),this.rowModel.getType()!==fe.ROW_MODEL_TYPE_CLIENT_SIDE)throw new Error("selectAll only available with normal row model, ie not "+this.rowModel.getType());var t=this.rowModel,o=function(e){return e.selectThisNode(!0)};e?t.forEachNodeAfterFilter(o):t.forEachNode(o),this.rowModel.getType()===fe.ROW_MODEL_TYPE_CLIENT_SIDE&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var r={type:lt.EVENT_SELECTION_CHANGED};this.eventService.dispatchEvent(r)},t.prototype.selectNode=function(e,t){e&&e.setSelectedParams({newValue:!0,clearSelection:!t})},t.prototype.deselectIndex=function(e){var t=this.rowModel.getRow(e);this.deselectNode(t)},t.prototype.deselectNode=function(e){e&&e.setSelectedParams({newValue:!1,clearSelection:!1})},t.prototype.selectIndex=function(e,t){var o=this.rowModel.getRow(e);this.selectNode(o,t)},lg([ne("rowModel")],t.prototype,"rowModel",void 0),lg([ug(0,ae("loggerFactory"))],t.prototype,"setBeans",null),lg([te],t.prototype,"init",null),t=lg([re("selectionService")],t),t}(rt),cg=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},dg=function(){function e(){}return e.prototype.sizeColumnsToFit=function(e){"undefined"===typeof e&&console.error("AG Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)"),this.columnModel.sizeColumnsToFit(e,"api")},e.prototype.setColumnGroupOpened=function(e,t){this.columnModel.setColumnGroupOpened(e,t,"api")},e.prototype.getColumnGroup=function(e,t){return this.columnModel.getColumnGroup(e,t)},e.prototype.getProvidedColumnGroup=function(e){return this.columnModel.getProvidedColumnGroup(e)},e.prototype.getDisplayNameForColumn=function(e,t){return this.columnModel.getDisplayNameForColumn(e,t)||""},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this.columnModel.getDisplayNameForColumnGroup(e,t)||""},e.prototype.getColumn=function(e){return this.columnModel.getPrimaryColumn(e)},e.prototype.getColumns=function(){return this.columnModel.getAllPrimaryColumns()},e.prototype.applyColumnState=function(e){return this.columnModel.applyColumnState(e,"api")},e.prototype.getColumnState=function(){return this.columnModel.getColumnState()},e.prototype.resetColumnState=function(){this.columnModel.resetColumnState("api")},e.prototype.getColumnGroupState=function(){return this.columnModel.getColumnGroupState()},e.prototype.setColumnGroupState=function(e){this.columnModel.setColumnGroupState(e,"api")},e.prototype.resetColumnGroupState=function(){this.columnModel.resetColumnGroupState("api")},e.prototype.isPinning=function(){return this.columnModel.isPinningLeft()||this.columnModel.isPinningRight()},e.prototype.isPinningLeft=function(){return this.columnModel.isPinningLeft()},e.prototype.isPinningRight=function(){return this.columnModel.isPinningRight()},e.prototype.getDisplayedColAfter=function(e){return this.columnModel.getDisplayedColAfter(e)},e.prototype.getDisplayedColBefore=function(e){return this.columnModel.getDisplayedColBefore(e)},e.prototype.setColumnVisible=function(e,t){this.columnModel.setColumnVisible(e,t,"api")},e.prototype.setColumnsVisible=function(e,t){this.columnModel.setColumnsVisible(e,t,"api")},e.prototype.setColumnPinned=function(e,t){this.columnModel.setColumnPinned(e,t,"api")},e.prototype.setColumnsPinned=function(e,t){this.columnModel.setColumnsPinned(e,t,"api")},e.prototype.getAllGridColumns=function(){return this.columnModel.getAllGridColumns()},e.prototype.getDisplayedLeftColumns=function(){return this.columnModel.getDisplayedLeftColumns()},e.prototype.getDisplayedCenterColumns=function(){return this.columnModel.getDisplayedCenterColumns()},e.prototype.getDisplayedRightColumns=function(){return this.columnModel.getDisplayedRightColumns()},e.prototype.getAllDisplayedColumns=function(){return this.columnModel.getAllDisplayedColumns()},e.prototype.getAllDisplayedVirtualColumns=function(){return this.columnModel.getViewportColumns()},e.prototype.moveColumn=function(e,t){"number"===typeof e?(console.warn("AG Grid: you are using moveColumn(fromIndex, toIndex) - moveColumn takes a column key and a destination index, not two indexes, to move with indexes use moveColumnByIndex(from,to) instead"),this.columnModel.moveColumnByIndex(e,t,"api")):this.columnModel.moveColumn(e,t,"api")},e.prototype.moveColumnByIndex=function(e,t){this.columnModel.moveColumnByIndex(e,t,"api")},e.prototype.moveColumns=function(e,t){this.columnModel.moveColumns(e,t,"api")},e.prototype.moveRowGroupColumn=function(e,t){this.columnModel.moveRowGroupColumn(e,t)},e.prototype.setColumnAggFunc=function(e,t){this.columnModel.setColumnAggFunc(e,t)},e.prototype.setColumnWidth=function(e,t,o,r){void 0===o&&(o=!0),this.columnModel.setColumnWidths([{key:e,newWidth:t}],!1,o,r)},e.prototype.setColumnWidths=function(e,t,o){void 0===t&&(t=!0),this.columnModel.setColumnWidths(e,!1,t,o)},e.prototype.setPivotMode=function(e){this.columnModel.setPivotMode(e)},e.prototype.isPivotMode=function(){return this.columnModel.isPivotMode()},e.prototype.getSecondaryPivotColumn=function(e,t){return console.warn("AG Grid: since version 28.0.x getSecondaryPivotColumn has been renamed, please use getPivotResultColumn instead"),this.getPivotResultColumn(e,t)},e.prototype.getPivotResultColumn=function(e,t){return this.columnModel.getSecondaryPivotColumn(e,t)},e.prototype.setValueColumns=function(e){this.columnModel.setValueColumns(e,"api")},e.prototype.getValueColumns=function(){return this.columnModel.getValueColumns()},e.prototype.removeValueColumn=function(e){this.columnModel.removeValueColumn(e,"api")},e.prototype.removeValueColumns=function(e){this.columnModel.removeValueColumns(e,"api")},e.prototype.addValueColumn=function(e){this.columnModel.addValueColumn(e,"api")},e.prototype.addValueColumns=function(e){this.columnModel.addValueColumns(e,"api")},e.prototype.setRowGroupColumns=function(e){this.columnModel.setRowGroupColumns(e,"api")},e.prototype.removeRowGroupColumn=function(e){this.columnModel.removeRowGroupColumn(e,"api")},e.prototype.removeRowGroupColumns=function(e){this.columnModel.removeRowGroupColumns(e,"api")},e.prototype.addRowGroupColumn=function(e){this.columnModel.addRowGroupColumn(e,"api")},e.prototype.addRowGroupColumns=function(e){this.columnModel.addRowGroupColumns(e,"api")},e.prototype.getRowGroupColumns=function(){return this.columnModel.getRowGroupColumns()},e.prototype.setPivotColumns=function(e){this.columnModel.setPivotColumns(e,"api")},e.prototype.removePivotColumn=function(e){this.columnModel.removePivotColumn(e,"api")},e.prototype.removePivotColumns=function(e){this.columnModel.removePivotColumns(e,"api")},e.prototype.addPivotColumn=function(e){this.columnModel.addPivotColumn(e,"api")},e.prototype.addPivotColumns=function(e){this.columnModel.addPivotColumns(e,"api")},e.prototype.getPivotColumns=function(){return this.columnModel.getPivotColumns()},e.prototype.getLeftDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeLeft()},e.prototype.getCenterDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeCentre()},e.prototype.getRightDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeRight()},e.prototype.getAllDisplayedColumnGroups=function(){return this.columnModel.getAllDisplayedTrees()},e.prototype.autoSizeColumn=function(e,t){return this.columnModel.autoSizeColumn(e,t,"api")},e.prototype.autoSizeColumns=function(e,t){this.columnModel.autoSizeColumns({columns:e,skipHeader:t})},e.prototype.autoSizeAllColumns=function(e){this.columnModel.autoSizeAllColumns(e,"api")},e.prototype.setSecondaryColumns=function(e){console.warn("AG Grid: since version 28.0.x setSecondaryColumns has been renamed, please use setPivotResultColumns instead"),this.setPivotResultColumns(e)},e.prototype.setPivotResultColumns=function(e){this.columnModel.setSecondaryColumns(e,"api")},e.prototype.getSecondaryColumns=function(){return console.warn("AG Grid: since version 28.0.x getSecondaryColumns has been renamed, please use getPivotResultColumns instead"),this.getPivotResultColumns()},e.prototype.getPivotResultColumns=function(){return this.columnModel.getSecondaryColumns()},e.prototype.getPrimaryColumns=function(){return console.warn("AG Grid: since version 28.0.x getPrimaryColumns has been renamed, please use getColumns instead"),this.getColumns()},e.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(yi.removeAllReferences.bind(window,this,"Column API"),100)},e.prototype.getAllColumns=function(){return console.warn("AG Grid: since version 28.0.x getAllColumns has been renamed, please use getColumns instead"),this.getColumns()},e.prototype.columnGroupOpened=function(e,t){console.error("AG Grid: columnGroupOpened no longer exists, use setColumnGroupOpened"),this.setColumnGroupOpened(e,t)},e.prototype.hideColumns=function(e,t){console.error("AG Grid: hideColumns is deprecated, use setColumnsVisible"),this.columnModel.setColumnsVisible(e,!t,"api")},e.prototype.hideColumn=function(e,t){console.error("AG Grid: hideColumn is deprecated, use setColumnVisible"),this.columnModel.setColumnVisible(e,!t,"api")},e.prototype.setState=function(e){return console.error("AG Grid: setState is deprecated, use setColumnState"),this.setColumnState(e)},e.prototype.getState=function(){return console.error("AG Grid: getState is deprecated, use getColumnState"),this.getColumnState()},e.prototype.resetState=function(){console.error("AG Grid: resetState is deprecated, use resetColumnState"),this.resetColumnState()},e.prototype.getAggregationColumns=function(){return console.error("AG Grid: getAggregationColumns is deprecated, use getValueColumns"),this.columnModel.getValueColumns()},e.prototype.removeAggregationColumn=function(e){console.error("AG Grid: removeAggregationColumn is deprecated, use removeValueColumn"),this.columnModel.removeValueColumn(e,"api")},e.prototype.removeAggregationColumns=function(e){console.error("AG Grid: removeAggregationColumns is deprecated, use removeValueColumns"),this.columnModel.removeValueColumns(e,"api")},e.prototype.addAggregationColumn=function(e){console.error("AG Grid: addAggregationColumn is deprecated, use addValueColumn"),this.columnModel.addValueColumn(e,"api")},e.prototype.addAggregationColumns=function(e){console.error("AG Grid: addAggregationColumns is deprecated, use addValueColumns"),this.columnModel.addValueColumns(e,"api")},e.prototype.setColumnAggFunction=function(e,t){console.error("AG Grid: setColumnAggFunction is deprecated, use setColumnAggFunc"),this.columnModel.setColumnAggFunc(e,t,"api")},e.prototype.getDisplayNameForCol=function(e){return console.error("AG Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn"),this.getDisplayNameForColumn(e,null)},e.prototype.setColumnState=function(e){return console.error("AG Grid: setColumnState is deprecated, use applyColumnState"),this.columnModel.applyColumnState({state:e,applyOrder:!0},"api")},e.prototype.getOriginalColumnGroup=function(e){return console.error("AG Grid: getOriginalColumnGroup is deprecated, use getProvidedColumnGroup"),this.columnModel.getProvidedColumnGroup(e)},cg([ne("columnModel")],e.prototype,"columnModel",void 0),cg([oe],e.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),e=cg([re("columnApi")],e),e}(),hg=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),fg=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},gg=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.initialised=!1,t}return hg(t,e),t.prototype.init=function(){var e=this;this.cellExpressions=this.gridOptionsWrapper.isEnableCellExpressions(),this.initialised=!0,this.eventService.addEventListener(lt.EVENT_CELL_VALUE_CHANGED,(function(t){return e.callColumnCellValueChangedHandler(t)}),this.gridOptionsWrapper.useAsyncEvents())},t.prototype.getValue=function(e,t,o,r){if(void 0===o&&(o=!1),void 0===r&&(r=!1),this.initialised||this.init(),t){var n,i=e.getColDef(),s=i.field,a=e.getId(),l=t.data,u=t.groupData&&void 0!==t.groupData[a],p=!r&&t.aggData&&void 0!==t.aggData[a];if(o&&i.filterValueGetter?n=this.executeFilterValueGetter(i.filterValueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&p?n=t.aggData[a]:this.gridOptionsWrapper.isTreeData()&&i.valueGetter?n=this.executeValueGetter(i.valueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&s&&l?n=I(l,s,e.isFieldContainsDots()):u?n=t.groupData[a]:p?n=t.aggData[a]:i.valueGetter?n=this.executeValueGetter(i.valueGetter,l,e,t):s&&l&&(n=I(l,s,e.isFieldContainsDots())),this.cellExpressions&&"string"===typeof n&&0===n.indexOf("=")){var c=n.substring(1);n=this.executeValueGetter(c,l,e,t)}if(null==n){var d=this.getOpenedGroup(t,e);if(null!=d)return d}return n}},t.prototype.getOpenedGroup=function(e,t){if(this.gridOptionsWrapper.isShowOpenedGroup()){var o=t.getColDef();if(o.showRowGroup){var r=t.getColDef().showRowGroup,n=e.parent;while(null!=n){if(n.rowGroupColumn&&(!0===r||r===n.rowGroupColumn.getId()))return n.key;n=n.parent}}}},t.prototype.setValue=function(e,t,o,r){var s=this.columnModel.getPrimaryColumn(t);if(!e||!s)return!1;i(e.data)&&(e.data={});var a=s.getColDef(),l=a.field,u=a.newValueHandler,p=a.valueSetter;if(i(l)&&i(u)&&i(p))return console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work"),!1;var c,d={node:e,data:e.data,oldValue:this.getValue(s,e),newValue:o,colDef:s.getColDef(),column:s,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};if(d.newValue=o,c=u&&n(u)?u(d):n(p)?this.expressionService.evaluate(p,d):this.setValueUsingField(e.data,l,o,s.isFieldContainsDots()),void 0===c&&(c=!0),!c)return!1;e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),d.newValue=this.getValue(s,e);var h={type:lt.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:d.column,api:d.api,columnApi:d.columnApi,colDef:d.colDef,context:d.context,data:e.data,node:e,oldValue:d.oldValue,newValue:d.newValue,value:d.newValue,source:r};return this.eventService.dispatchEvent(h),!0},t.prototype.callColumnCellValueChangedHandler=function(e){var t=e.colDef.onCellValueChanged;"function"===typeof t&&t({node:e.node,data:e.data,oldValue:e.oldValue,newValue:e.newValue,colDef:e.colDef,column:e.column,api:e.api,columnApi:e.columnApi,context:e.context})},t.prototype.setValueUsingField=function(e,t,o,r){if(!t)return!1;var n=!1;if(r){var i=t.split("."),s=e;while(i.length>0&&s){var a=i.shift();0===i.length?(n=s[a]==o,n||(s[a]=o)):s=s[a]}}else n=e[t]==o,n||(e[t]=o);return!n},t.prototype.executeFilterValueGetter=function(e,t,o,r){var n={data:t,node:r,column:o,colDef:o.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,r)};return this.expressionService.evaluate(e,n)},t.prototype.executeValueGetter=function(e,t,o,r){var n=o.getId(),i=this.valueCache.getValue(r,n);if(void 0!==i)return i;var s={data:t,node:r,column:o,colDef:o.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,r)},a=this.expressionService.evaluate(e,s);return this.valueCache.setValue(r,n,a),a},t.prototype.getValueCallback=function(e,t){var o=this.columnModel.getPrimaryColumn(t);return o?this.getValue(o,e):null},t.prototype.getKeyForNode=function(e,t){var o=this.getValue(e,t),r=e.getColDef().keyCreator,n=o;if(r){var i={value:o,colDef:e.getColDef(),column:e,node:t,data:t.data,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};n=r(i)}return"string"===typeof n||null==n||(n=String(n),"[object Object]"===n&&x((function(){console.warn("AG Grid: a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (se AG Grid docs) or b) to toString() on the object to return a key")}),"getKeyForNode - warn about [object,object]")),n},fg([ne("expressionService")],t.prototype,"expressionService",void 0),fg([ne("columnModel")],t.prototype,"columnModel",void 0),fg([ne("valueCache")],t.prototype,"valueCache",void 0),fg([te],t.prototype,"init",null),t=fg([re("valueService")],t),t}(rt),vg=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),yg=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},mg=function(e,t){return function(o,r){t(o,r,e)}},Cg=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.expressionToFunctionCache={},t}return vg(t,e),t.prototype.setBeans=function(e){this.logger=e.create("ExpressionService")},t.prototype.evaluate=function(e,t){if("function"===typeof e){var o=e;return o(t)}if("string"===typeof e){var r=e;return this.evaluateExpression(r,t)}console.error("AG Grid: value should be either a string or a function",e)},t.prototype.evaluateExpression=function(e,t){try{var o=this.createExpressionFunction(e),r=o(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.columnApi,t.getValue,t.column,t.columnGroup);return r}catch(n){return console.log("Processing of the expression failed"),console.log("Expression = "+e),console.log("Params =",t),console.log("Exception = "+n),null}},t.prototype.createExpressionFunction=function(e){if(this.expressionToFunctionCache[e])return this.expressionToFunctionCache[e];var t=this.createFunctionBody(e),o=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",t);return this.expressionToFunctionCache[e]=o,o},t.prototype.createFunctionBody=function(e){return e.indexOf("return")>=0?e:"return "+e+";"},yg([mg(0,ae("loggerFactory"))],t.prototype,"setBeans",null),t=yg([re("expressionService")],t),t}(rt),wg=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Eg=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Rg=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.templateCache={},t.waitingCallbacks={},t}return wg(t,e),t.prototype.getTemplate=function(e,t){var o=this.templateCache[e];if(o)return o;var r=this.waitingCallbacks[e],n=this;if(!r){r=[],this.waitingCallbacks[e]=r;var i=new XMLHttpRequest;i.onload=function(){n.handleHttpResult(this,e)},i.open("GET",e),i.send()}return t&&r.push(t),null},t.prototype.handleHttpResult=function(e,t){if(200===e.status&&null!==e.response){this.templateCache[t]=e.response||e.responseText;for(var o=this.waitingCallbacks[t],r=0;r<o.length;r++){var n=o[r];n()}}else console.warn("AG Grid: Unable to get template error "+e.status+" - "+t)},t=Eg([re("templateService")],t),t}(rt),Og=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Sg=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},_g=function(e,t){return function(o,r){t(o,r,e)}},bg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Og(t,e),t.prototype.setBeans=function(e){this.logging=e.isDebug()},t.prototype.create=function(e){return new Pg(e,this.isLogging.bind(this))},t.prototype.isLogging=function(){return this.logging},Sg([_g(0,ae("gridOptionsWrapper"))],t.prototype,"setBeans",null),t=Sg([re("loggerFactory")],t),t}(rt),Pg=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}(),Tg=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Dg=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Ag=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tg(t,e),t.prototype.setComp=function(e,t,o){var r=this;this.view=e,this.eGridHostDiv=t,this.eGui=o,this.dragAndDropService.addDropTarget({getContainer:function(){return r.eGui},isInterestedIn:function(e){return e===_a.HeaderCell||e===_a.ToolPanel},getIconName:function(){return xa.ICON_NOT_ALLOWED}}),this.mouseEventService.stampTopLevelGridCompWithGridInstance(t),this.createManagedBean(new Kl(this.view)),this.addRtlSupport(),this.addManagedListener(this,lt.EVENT_KEYBOARD_FOCUS,(function(){r.view.addOrRemoveKeyboardFocusClass(!0)})),this.addManagedListener(this,lt.EVENT_MOUSE_FOCUS,(function(){r.view.addOrRemoveKeyboardFocusClass(!1)}));var n=this.resizeObserverService.observeResize(this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((function(){return n()})),this.ctrlsService.registerGridCtrl(this)},t.prototype.isDetailGrid=function(){var e,t,o=this.focusService.findTabbableParent(this.getGui());return(null===(t=null===(e=o)||void 0===e?void 0:e.getAttribute("row-id"))||void 0===t?void 0:t.startsWith("detail"))||!1},t.prototype.showDropZones=function(){return ge.isRegistered(ue.RowGroupingModule)},t.prototype.showSideBar=function(){return ge.isRegistered(ue.SideBarModule)},t.prototype.showStatusBar=function(){return ge.isRegistered(ue.StatusBarModule)},t.prototype.showWatermark=function(){return ge.isRegistered(ue.EnterpriseCoreModule)},t.prototype.onGridSizeChanged=function(){var e={type:lt.EVENT_GRID_SIZE_CHANGED,clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight};this.eventService.dispatchEvent(e)},t.prototype.addRtlSupport=function(){var e=this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr";this.view.setRtlClass(e)},t.prototype.destroyGridUi=function(){this.view.destroyGridUi()},t.prototype.getGui=function(){return this.eGui},t.prototype.setResizeCursor=function(e){this.view.setCursor(e?"ew-resize":null)},t.prototype.disableUserSelect=function(e){this.view.setUserSelect(e?"none":null)},t.prototype.focusNextInnerContainer=function(e){var t=this.gridOptionsWrapper.getDocument(),o=this.view.getFocusableContainers(),r=o.findIndex((function(e){return e.contains(t.activeElement)})),n=r+(e?-1:1);return!(n<=0||n>=o.length)&&this.focusService.focusInto(o[n])},t.prototype.focusInnerElement=function(e){var t=this.view.getFocusableContainers();if(e){if(t.length>1)return this.focusService.focusInto(Ee(t),!0);var o=Ee(this.columnModel.getAllDisplayedColumns());if(this.focusService.focusGridView(o,!0))return!0}return this.focusService.focusFirstHeader()},t.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1),this.view.forceFocusOutOfContainer(e)},Dg([ne("focusService")],t.prototype,"focusService",void 0),Dg([ne("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Dg([ne("columnModel")],t.prototype,"columnModel",void 0),Dg([ne("ctrlsService")],t.prototype,"ctrlsService",void 0),Dg([ne("mouseEventService")],t.prototype,"mouseEventService",void 0),Dg([ne("dragAndDropService")],t.prototype,"dragAndDropService",void 0),t}(rt),Ng=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ig=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Gg=function(e){function t(t){var o=e.call(this,void 0)||this;return o.eGridDiv=t,o}return Ng(t,e),t.prototype.postConstruct=function(){var e=this;this.logger=this.loggerFactory.create("GridComp");var t={destroyGridUi:function(){return e.destroyBean(e)},setRtlClass:function(t){return e.addCssClass(t)},addOrRemoveKeyboardFocusClass:function(t){return e.addOrRemoveCssClass(Vf.AG_KEYBOARD_FOCUS,t)},forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:function(t){e.getGui().style.userSelect=null!=t?t:"",e.getGui().style.webkitUserSelect=null!=t?t:""},setCursor:function(t){e.getGui().style.cursor=null!=t?t:""}};this.ctrl=this.createManagedBean(new Ag);var o=this.createTemplate();this.setTemplate(o),this.ctrl.setComp(t,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:function(){},focusInnerElement:function(t){return e.ctrl.focusInnerElement(t)}})},t.prototype.insertGridIntoDom=function(){var e=this,t=this.getGui();this.eGridDiv.appendChild(t),this.addDestroyFunc((function(){e.eGridDiv.removeChild(t),e.logger.log("Grid removed from DOM")}))},t.prototype.updateLayoutClasses=function(e,t){var o=this.eRootWrapperBody.classList;o.toggle(Al.AUTO_HEIGHT,t.autoHeight),o.toggle(Al.NORMAL,t.normal),o.toggle(Al.PRINT,t.print),this.addOrRemoveCssClass(Al.AUTO_HEIGHT,t.autoHeight),this.addOrRemoveCssClass(Al.NORMAL,t.normal),this.addOrRemoveCssClass(Al.PRINT,t.print)},t.prototype.createTemplate=function(){var e=this.ctrl.showDropZones()?"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>":"",t=this.ctrl.showSideBar()?'<ag-side-bar ref="sideBar"></ag-side-bar>':"",o=this.ctrl.showStatusBar()?'<ag-status-bar ref="statusBar"></ag-status-bar>':"",r=this.ctrl.showWatermark()?"<ag-watermark></ag-watermark>":"",n='<div class="ag-root-wrapper" role="presentation">\n '+e+'\n <div class="ag-root-wrapper-body" ref="rootWrapperBody" role="presentation">\n <ag-grid-body ref="gridBody"></ag-grid-body>\n '+t+"\n </div>\n "+o+"\n <ag-pagination></ag-pagination>\n "+r+"\n </div>";return n},t.prototype.getFocusableElement=function(){return this.eRootWrapperBody},t.prototype.getFocusableContainers=function(){var e=[this.gridBodyComp.getGui()];return this.sideBarComp&&e.push(this.sideBarComp.getGui()),e.filter((function(e){return _r(e)}))},Ig([ne("loggerFactory")],t.prototype,"loggerFactory",void 0),Ig([Ai("gridBody")],t.prototype,"gridBodyComp",void 0),Ig([Ai("sideBar")],t.prototype,"sideBarComp",void 0),Ig([Ai("rootWrapperBody")],t.prototype,"eRootWrapperBody",void 0),Ig([te],t.prototype,"postConstruct",null),t}(Sf),Fg=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Lg=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Mg=function(e,t){var o="function"===typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,n,i=o.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=i.next()).done)s.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(o=i["return"])&&o.call(i)}finally{if(n)throw n.error}}return s},xg=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Mg(arguments[t]));return e},Hg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var o;return Fg(t,e),o=t,t.prototype.progressSort=function(e,t,o){var r=this.getNextSortDirection(e);this.setSortForColumn(e,r,t,o)},t.prototype.setSortForColumn=function(e,t,o,r){var n;t!==fe.SORT_ASC&&t!==fe.SORT_DESC&&(t=null);var i=this.gridOptionsWrapper.isColumnsSortingCoupledToGroup(),s=[e];if(i&&e.getColDef().showRowGroup){var a=this.columnModel.getSourceColumnsForGroupColumn(e),l=null===(n=a)||void 0===n?void 0:n.filter((function(e){return e.getColDef().sortable}));l&&(s=xg([e],l))}s.forEach((function(e){return e.setSort(t,r)}));var u=(o||this.gridOptionsWrapper.isAlwaysMultiSort())&&!this.gridOptionsWrapper.isSuppressMultiSort();u||this.clearSortBarTheseColumns(s,r),this.updateSortIndex(e),this.dispatchSortChangedEvents(r)},t.prototype.updateSortIndex=function(e){var t=this.gridOptionsWrapper.isColumnsSortingCoupledToGroup(),o=this.columnModel.getGroupDisplayColumnForGroup(e.getId()),r=t&&o||e,n=this.getIndexableColumnsOrdered();this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach((function(e){return e.setSortIndex(null)}));var i=n.filter((function(e){return e!==r})),s=r.getSort()?xg(i,[r]):i;s.forEach((function(e,t){return e.setSortIndex(t)}))},t.prototype.onSortChanged=function(e){this.dispatchSortChangedEvents(e)},t.prototype.isSortActive=function(){var e=this.columnModel.getPrimaryAndSecondaryAndAutoColumns(),t=e.filter((function(e){return!!e.getSort()}));return t&&t.length>0},t.prototype.dispatchSortChangedEvents=function(e){var t={type:lt.EVENT_SORT_CHANGED,source:e};this.eventService.dispatchEvent(t)},t.prototype.clearSortBarTheseColumns=function(e,t){this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach((function(o){e.includes(o)||o.setSort(void 0,t)}))},t.prototype.getNextSortDirection=function(e){var t;if(t=e.getColDef().sortingOrder?e.getColDef().sortingOrder:this.gridOptionsWrapper.getSortingOrder()?this.gridOptionsWrapper.getSortingOrder():o.DEFAULT_SORTING_ORDER,!Array.isArray(t)||t.length<=0)return console.warn("AG Grid: sortingOrder must be an array with at least one element, currently it's "+t),null;var r,n=t.indexOf(e.getSort()),i=n<0,s=n==t.length-1;return r=i||s?t[0]:t[n+1],o.DEFAULT_SORTING_ORDER.indexOf(r)<0?(console.warn("AG Grid: invalid sort type "+r),null):r},t.prototype.getColumnsOrderedForSort=function(){var e=this.columnModel.getPrimaryAndSecondaryAndAutoColumns(),t={};return e.forEach((function(e,o){return t[e.getId()]=o})),e.sort((function(e,o){var r=e.getSortIndex(),n=o.getSortIndex();if(null!=r&&null!=n)return r-n;if(null==r&&null==n){var i=t[e.getId()],s=t[o.getId()];return i>s?1:-1}return null==n?-1:1})),e},t.prototype.getIndexableColumnsOrdered=function(){var e=this;return this.gridOptionsWrapper.isColumnsSortingCoupledToGroup()?this.getColumnsOrderedForSort().filter((function(t){var o;if(t.getColDef().showRowGroup){if(t.getColDef().field&&t.getSort())return!0;var r=e.columnModel.getSourceColumnsForGroupColumn(t);return null===(o=r)||void 0===o?void 0:o.some((function(e){return!!e.getSort()}))}return!!t.getSort()})):this.getColumnsWithSortingOrdered()},t.prototype.getColumnsWithSortingOrdered=function(){var e=this.getColumnsOrderedForSort();return e.filter((function(e){return!!e.getSort()}))},t.prototype.getSortModel=function(){return this.getColumnsWithSortingOrdered().map((function(e){return{sort:e.getSort(),colId:e.getId()}}))},t.prototype.getSortOptions=function(){return this.getColumnsWithSortingOrdered().map((function(e){return{sort:e.getSort(),column:e}}))},t.prototype.canColumnDisplayMixedSort=function(e){var t=this.gridOptionsWrapper.isColumnsSortingCoupledToGroup(),o=!!e.getColDef().showRowGroup;return t&&o},t.prototype.getDisplaySortForColumn=function(e){var t,o=this.columnModel.getSourceColumnsForGroupColumn(e);if(!this.canColumnDisplayMixedSort(e)||!(null===(t=o)||void 0===t?void 0:t.length))return e.getSort();var r=!!e.getColDef().field,n=r?xg([e],o):o,i=n[0].getSort(),s=n.every((function(e){return e.getSort()==i}));return s?i:"mixed"},t.prototype.getDisplaySortIndexForColumn=function(e){var t=this,o=this.gridOptionsWrapper.isColumnsSortingCoupledToGroup();if(!o)return this.getColumnsWithSortingOrdered().indexOf(e);var r=this.columnModel.getGroupDisplayColumnForGroup(e.getId());if(r)return e.getSort()?this.getDisplaySortIndexForColumn(r):null;var n=this.getIndexableColumnsOrdered().filter((function(e){return!t.columnModel.getGroupDisplayColumnForGroup(e.getId())}));return n.indexOf(e)},t.DEFAULT_SORTING_ORDER=[fe.SORT_ASC,fe.SORT_DESC,null],Lg([ne("columnModel")],t.prototype,"columnModel",void 0),t=o=Lg([re("sortController")],t),t}(rt),Vg=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Wg=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},kg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vg(t,e),t.prototype.setMouseOver=function(e){this.selectedColumns=e;var t={type:lt.EVENT_COLUMN_HOVER_CHANGED};this.eventService.dispatchEvent(t)},t.prototype.clearMouseOver=function(){this.selectedColumns=null;var e={type:lt.EVENT_COLUMN_HOVER_CHANGED};this.eventService.dispatchEvent(e)},t.prototype.isHovered=function(e){return!!this.selectedColumns&&this.selectedColumns.indexOf(e)>=0},t=Wg([re("columnHoverService")],t),t}(rt),Bg=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),jg=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Ug=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.executeNextFuncs=[],t.executeLaterFuncs=[],t.active=!1,t.animationThreadCount=0,t}return Bg(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){return e.gridBodyCtrl=t.gridBodyCtrl}))},t.prototype.isActive=function(){return this.active},t.prototype.start=function(){this.active||this.gridOptionsWrapper.isSuppressColumnMoveAnimation()||this.gridOptionsWrapper.isEnableRtl()||(this.ensureAnimationCssClassPresent(),this.active=!0)},t.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},t.prototype.executeNextVMTurn=function(e){this.active?this.executeNextFuncs.push(e):e()},t.prototype.executeLaterVMTurn=function(e){this.active?this.executeLaterFuncs.push(e):e()},t.prototype.ensureAnimationCssClassPresent=function(){var e=this;this.animationThreadCount++;var t=this.animationThreadCount;this.gridBodyCtrl.setColumnMovingCss(!0),this.executeLaterFuncs.push((function(){e.animationThreadCount===t&&e.gridBodyCtrl.setColumnMovingCss(!1)}))},t.prototype.flush=function(){var e=this.executeNextFuncs;this.executeNextFuncs=[];var t=this.executeLaterFuncs;this.executeLaterFuncs=[],0===e.length&&0===t.length||(window.setTimeout((function(){return e.forEach((function(e){return e()}))}),0),window.setTimeout((function(){return t.forEach((function(e){return e()}))}),300))},jg([ne("ctrlsService")],t.prototype,"ctrlsService",void 0),jg([te],t.prototype,"postConstruct",null),t=jg([re("columnAnimationService")],t),t}(rt),zg=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Kg=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Yg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var o;return zg(t,e),o=t,t.prototype.createAutoGroupColumns=function(e,t){var o=this,r=[],n=this.gridOptionsWrapper.isTreeData(),i=this.gridOptionsWrapper.isGroupMultiAutoColumn();return n&&i&&(console.warn("AG Grid: you cannot mix groupMultiAutoColumn with treeData, only one column can be used to display groups when doing tree data"),i=!1),i?t.forEach((function(t,n){r.push(o.createOneAutoGroupColumn(e,t,n))})):r.push(this.createOneAutoGroupColumn(e)),r},t.prototype.createOneAutoGroupColumn=function(e,t,r){var n,s=this.generateDefaultColDef(t);n=t?fe.GROUP_AUTO_COLUMN_ID+"-"+t.getId():o.GROUP_AUTO_COLUMN_BUNDLE_ID;var a=this.gridOptionsWrapper.getAutoGroupColumnDef();if(P(s,a),s=this.columnFactory.mergeColDefs(s),s.colId=n,!this.gridOptionsWrapper.isTreeData()){var l=i(s.field)&&i(s.valueGetter)&&i(s.filterValueGetter);l&&(s.filter=!1)}r&&r>0&&(s.headerCheckboxSelection=!1);var u=e.find((function(e){return e.getId()==n}));if(u)return u.setColDef(s,null),this.columnFactory.applyColumnState(u,s),u;var p=new me(s,null,n,!0);return this.context.createBean(p),p},t.prototype.generateDefaultColDef=function(e){var t=this.gridOptionsWrapper.getAutoGroupColumnDef(),o=this.gridOptionsWrapper.getLocaleTextFunc(),r={headerName:o("group","Group")},n=t&&(t.cellRenderer||t.cellRendererFramework||t.cellRendererSelector);if(n||(r.cellRenderer="agGroupCellRenderer"),e){var i=e.getColDef();Object.assign(r,{headerName:this.columnModel.getDisplayNameForColumn(e,"header"),headerValueGetter:i.headerValueGetter}),(i.cellRenderer||i.cellRendererFramework)&&Object.assign(r,{cellRendererParams:{innerRenderer:i.cellRenderer,innerRendererFramework:i.cellRendererFramework,innerRendererParams:i.cellRendererParams}}),r.showRowGroup=e.getColId()}else r.showRowGroup=!0;return r},t.GROUP_AUTO_COLUMN_BUNDLE_ID=fe.GROUP_AUTO_COLUMN_ID,Kg([ne("columnModel")],t.prototype,"columnModel",void 0),Kg([ne("columnFactory")],t.prototype,"columnFactory",void 0),t=o=Kg([re("autoGroupColService")],t),t}(rt),qg=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Xg=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Qg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qg(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.centerRowContainerCon=t.centerRowContainerCtrl,e.addManagedListener(e.eventService,lt.EVENT_BODY_HEIGHT_CHANGED,e.onBodyHeightChanged.bind(e)),e.addManagedListener(e.eventService,lt.EVENT_SCROLL_VISIBILITY_CHANGED,e.onScrollVisibilityChanged.bind(e)),e.checkPageSize()}))},t.prototype.notActive=function(){return!this.gridOptionsWrapper.isPaginationAutoPageSize()},t.prototype.onScrollVisibilityChanged=function(){this.checkPageSize()},t.prototype.onBodyHeightChanged=function(){this.checkPageSize()},t.prototype.checkPageSize=function(){if(!this.notActive()){var e=this.gridOptionsWrapper.getRowHeightAsNumber(),t=this.centerRowContainerCon.getViewportSizeFeature().getBodyHeight();if(t>0){var o=Math.floor(t/e);this.gridOptionsWrapper.setProperty("paginationPageSize",o)}}},Xg([ne("ctrlsService")],t.prototype,"ctrlsService",void 0),Xg([te],t.prototype,"postConstruct",null),t=Xg([re("paginationAutoPageSizeService")],t),t}(rt),Jg=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Zg=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},$g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cacheVersion=0,t}return Jg(t,e),t.prototype.init=function(){this.active=this.gridOptionsWrapper.isValueCache(),this.neverExpires=this.gridOptionsWrapper.isValueCacheNeverExpires()},t.prototype.onDataChanged=function(){this.neverExpires||this.expire()},t.prototype.expire=function(){this.cacheVersion++},t.prototype.setValue=function(e,t,o){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[t]=o)},t.prototype.getValue=function(e,t){if(this.active&&e.__cacheVersion===this.cacheVersion)return e.__cacheData[t]},Zg([te],t.prototype,"init",null),t=Zg([re("valueCache")],t),t}(rt),ev=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),tv=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},ov=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ev(t,e),t.prototype.init=function(){this.rowModel.getType()===fe.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,lt.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},t.prototype.onCellValueChanged=function(e){e.source!==fe.SOURCE_PASTE&&this.doChangeDetection(e.node,e.column)},t.prototype.doChangeDetection=function(e,t){if(!this.gridOptionsWrapper.isSuppressChangeDetection()){if(this.clientSideRowModel&&!e.isRowPinned()){var o=this.gridOptionsWrapper.isAggregateOnlyChangedColumns(),r=new Sh(o,this.clientSideRowModel.getRootNode());r.addParentNode(e.parent,[t]),this.clientSideRowModel.doAggregate(r)}this.rowRenderer.refreshCells()}},tv([ne("rowModel")],t.prototype,"rowModel",void 0),tv([ne("rowRenderer")],t.prototype,"rowRenderer",void 0),tv([te],t.prototype,"init",null),t=tv([re("changeDetectionService")],t),t}(rt),rv=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),nv=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},iv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rv(t,e),t.prototype.adaptFunction=function(e,t){var o=this.componentMetadataProvider.retrieve(e);return o&&o.functionAdapter?o.functionAdapter(t):null},t.prototype.adaptCellRendererFunction=function(e){var t=function(){function t(){}return t.prototype.refresh=function(e){return!1},t.prototype.getGui=function(){return this.eGui},t.prototype.init=function(t){var o=e(t),r=typeof o;this.eGui="string"!==r&&"number"!==r&&"boolean"!==r?null!=o?o:br("<span></span>"):br("<span>"+o+"</span>")},t}();return t},t.prototype.doesImplementIComponent=function(e){return!!e&&(e.prototype&&"getGui"in e.prototype)},nv([ne("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),t=nv([re("agComponentUtils")],t),t}(rt),sv=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),av=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},lv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sv(t,e),t.prototype.postConstruct=function(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},headerComponent:{mandatoryMethodList:[],optionalMethodList:["refresh"]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},loadingCellRenderer:{mandatoryMethodList:[],optionalMethodList:[]},loadingOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},noRowsOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},floatingFilterComponent:{mandatoryMethodList:["onParentModelChanged"],optionalMethodList:["afterGuiAttached"]},floatingFilterWrapperComponent:{mandatoryMethodList:[],optionalMethodList:[]},cellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},cellEditor:{mandatoryMethodList:["getValue"],optionalMethodList:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached"]},innerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},pinnedRowCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged"]},filterComponent:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]}}},t.prototype.retrieve=function(e){return this.componentMetaData[e]},av([ne("agComponentUtils")],t.prototype,"agComponentUtils",void 0),av([te],t.prototype,"postConstruct",null),t=av([re("componentMetadataProvider")],t),t}(rt),uv=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),pv=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},cv=8,dv=4,hv=4,fv=6,gv={"ag-theme-custom":{headerHeight:25,headerCellMinWidth:24,listItemHeight:5*dv,rowHeight:25,chartMenuPanelWidth:220},"ag-theme-material":{headerHeight:7*cv,headerCellMinWidth:48,listItemHeight:4*cv,rowHeight:6*cv,chartMenuPanelWidth:240},"ag-theme-balham":{headerHeight:8*hv,headerCellMinWidth:24,listItemHeight:6*hv,rowHeight:7*hv,chartMenuPanelWidth:220},"ag-theme-alpine":{headerHeight:8*fv,headerCellMinWidth:36,listItemHeight:4*fv,rowHeight:7*fv,chartMenuPanelWidth:240}},vv={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},yv={},mv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return uv(t,e),t.prototype.getSassVariable=function(e,t){var o="ag-theme-"+(e.match("material")?"material":e.match("balham")?"balham":e.match("alpine")?"alpine":"custom"),r=gv[o][t],n=0;yv[e]||(yv[e]={});var i=yv[e][t];if(null!=i)return i;if(vv[t]){var s=vv[t],a=document.createElement("div");a.classList.add(e),a.style.position="absolute";var l=s.reduce((function(e,t){var o=document.createElement("div");return o.style.position="static",o.classList.add(t),e.appendChild(o),o}),a);if(document.body){document.body.appendChild(a);var u=-1!==t.toLowerCase().indexOf("height")?"height":"width";n=parseInt(window.getComputedStyle(l)[u],10),document.body.removeChild(a)}}return yv[e][t]=n||r,yv[e][t]},t.prototype.isThemeDark=function(){var e=this.getTheme().theme;return!!e&&e.indexOf("dark")>=0},t.prototype.chartMenuPanelWidth=function(){var e=this.getTheme().themeFamily;return this.getSassVariable(e,"chartMenuPanelWidth")},t.prototype.getTheme=function(){var e=/\bag-(material|(?:theme-([\w\-]*)))\b/g,t=this.eGridDiv,o=null,r=[];while(t){if(o=e.exec(t.className),o){var n=t.className.match(e);n&&(r=n);break}t=t.parentElement||void 0}if(!o)return{allThemes:r};var i=o[0],s=void 0===o[2];if(s){var a=i.replace("ag-","ag-theme-");x((function(){return console.warn("AG Grid: As of v19 old theme are no longer provided. Please replace "+i+" with "+a+".")}),"using-old-theme")}return{theme:i,el:t,themeFamily:i.replace(/-dark$/,""),allThemes:r}},pv([ne("eGridDiv")],t.prototype,"eGridDiv",void 0),t=pv([re("environment")],t),t}(rt),Cv=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),wv=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Ev=function(e,t){return function(o,r){t(o,r,e)}},Rv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scrollY=0,t.uiBodyHeight=0,t}return Cv(t,e),t.prototype.agWire=function(e){this.logger=e.create("RowContainerHeightService")},t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,lt.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.maxDivHeight=to(),this.logger.log("maxDivHeight = "+this.maxDivHeight)},t.prototype.isStretching=function(){return this.stretching},t.prototype.getDivStretchOffset=function(){return this.divStretchOffset},t.prototype.updateOffset=function(){if(this.stretching){var e=this.ctrlsService.getGridBodyCtrl(),t=e.getScrollFeature().getVScrollPosition().top,o=this.getUiBodyHeight(),r=t!==this.scrollY||o!==this.uiBodyHeight;r&&(this.scrollY=t,this.uiBodyHeight=o,this.calculateOffset())}},t.prototype.calculateOffset=function(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;var e=this.scrollY/this.maxScrollY,t=e*this.pixelsToShave;this.logger.log("Div Stretch Offset = "+t+" ("+this.pixelsToShave+" * "+e+")"),this.setDivStretchOffset(t)},t.prototype.setUiContainerHeight=function(e){e!==this.uiContainerHeight&&(this.uiContainerHeight=e,this.eventService.dispatchEvent({type:lt.EVENT_ROW_CONTAINER_HEIGHT_CHANGED}))},t.prototype.clearOffset=function(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)},t.prototype.setDivStretchOffset=function(e){var t="number"===typeof e?Math.floor(e):null;this.divStretchOffset!==t&&(this.divStretchOffset=t,this.eventService.dispatchEvent({type:lt.EVENT_HEIGHT_SCALE_CHANGED}))},t.prototype.setModelHeight=function(e){this.modelHeight=e,this.stretching=null!=e&&this.maxDivHeight>0&&e>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()},t.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},t.prototype.getRealPixelPosition=function(e){return e-this.divStretchOffset},t.prototype.getUiBodyHeight=function(){var e=this.ctrlsService.getGridBodyCtrl(),t=e.getScrollFeature().getVScrollPosition();return t.bottom-t.top},t.prototype.getScrollPositionForPixel=function(e){if(this.pixelsToShave<=0)return e;var t=this.modelHeight-this.getUiBodyHeight(),o=e/t,r=this.maxScrollY*o;return r},wv([ne("ctrlsService")],t.prototype,"ctrlsService",void 0),wv([Ev(0,ae("loggerFactory"))],t.prototype,"agWire",null),wv([te],t.prototype,"postConstruct",null),t=wv([re("rowContainerHeightService")],t),t}(rt),Ov=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Sv=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},_v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ov(t,e),t.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc()},t.prototype.updateSelectableAfterGrouping=function(e){if(this.isRowSelectableFunc){var t=function(e){return e.childrenAfterGroup};this.recurseDown(e.childrenAfterGroup,t)}},t.prototype.recurseDown=function(e,t){var o=this;e&&e.forEach((function(e){if(e.group){var r;if(e.hasChildren()&&o.recurseDown(t(e),t),o.groupSelectsChildren){var i=(t(e)||[]).find((function(e){return!0===e.selectable}));r=n(i)}else r=!!o.isRowSelectableFunc&&o.isRowSelectableFunc(e);e.setRowSelectable(r)}}))},Sv([te],t.prototype,"init",null),t=Sv([re("selectableService")],t),t}(rt),bv=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Pv=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Tv=function(e){function t(){var t=e.call(this)||this;return t.previousAndFirstButtonsDisabled=!1,t.nextButtonDisabled=!1,t.lastButtonDisabled=!1,t}return bv(t,e),t.prototype.postConstruct=function(){var e=this,t=this.gridOptionsWrapper.isEnableRtl();this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement("afterbegin",jn(t?"last":"first",this.gridOptionsWrapper)),this.btPrevious.insertAdjacentElement("afterbegin",jn(t?"next":"previous",this.gridOptionsWrapper)),this.btNext.insertAdjacentElement("afterbegin",jn(t?"previous":"next",this.gridOptionsWrapper)),this.btLast.insertAdjacentElement("afterbegin",jn(t?"first":"last",this.gridOptionsWrapper));var o=this.gridOptionsWrapper.isPagination(),r=o&&!this.gridOptionsWrapper.isSuppressPaginationPanel();r?(this.addManagedListener(this.eventService,lt.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}].forEach((function(t){var o=t.el,r=t.fn;e.addManagedListener(o,"click",r),e.addManagedListener(o,"keydown",(function(e){e.key!==zn.ENTER&&e.key!==zn.SPACE||(e.preventDefault(),r())}))})),this.onPaginationChanged()):this.setDisplayed(!1)},t.prototype.onPaginationChanged=function(){this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels()},t.prototype.onBtFirst=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToFirstPage()},t.prototype.setCurrentPageLabel=function(){var e=this.paginationProxy.getTotalPages()>0,t=this.paginationProxy.getCurrentPage(),o=e?t+1:0;this.lbCurrent.innerHTML=this.formatNumber(o)},t.prototype.formatNumber=function(e){var t=this.gridOptionsWrapper.getPaginationNumberFormatterFunc();if(t){var o={value:e};return t(o)}var r=this.gridOptionsWrapper.getLocaleTextFunc(),n=r("thousandSeparator",","),i=r("decimalSeparator",".");return Ro(e,n,i)},t.prototype.getTemplate=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=e("page","Page"),o=e("to","to"),r=e("of","of"),n=e("firstPage","First Page"),i=e("previousPage","Previous Page"),s=e("nextPage","Next Page"),a=e("lastPage","Last Page"),l=this.getCompId();return'<div class="ag-paging-panel ag-unselectable" id="ag-'+l+'">\n <span class="ag-paging-row-summary-panel" role="status">\n <span id="ag-'+l+'-first-row" ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n <span id="ag-'+l+'-to">'+o+'</span>\n <span id="ag-'+l+'-last-row" ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n <span id="ag-'+l+'-of">'+r+'</span>\n <span id="ag-'+l+'-row-count" ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span>\n </span>\n <span class="ag-paging-page-summary-panel" role="presentation">\n <div ref="btFirst" class="ag-paging-button" role="button" aria-label="'+n+'"></div>\n <div ref="btPrevious" class="ag-paging-button" role="button" aria-label="'+i+'"></div>\n <span class="ag-paging-description" role="status">\n <span id="ag-'+l+'-start-page">'+t+'</span>\n <span id="ag-'+l+'-start-page-number" ref="lbCurrent" class="ag-paging-number"></span>\n <span id="ag-'+l+'-of-page">'+r+'</span>\n <span id="ag-'+l+'-of-page-number" ref="lbTotal" class="ag-paging-number"></span>\n </span>\n <div ref="btNext" class="ag-paging-button" role="button" aria-label="'+s+'"></div>\n <div ref="btLast" class="ag-paging-button" role="button" aria-label="'+a+'"></div>\n </span>\n </div>'},t.prototype.onBtNext=function(){this.nextButtonDisabled||this.paginationProxy.goToNextPage()},t.prototype.onBtPrevious=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToPreviousPage()},t.prototype.onBtLast=function(){this.lastButtonDisabled||this.paginationProxy.goToLastPage()},t.prototype.enableOrDisableButtons=function(){var e=this.paginationProxy.getCurrentPage(),t=this.paginationProxy.isLastPageFound(),o=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=0===e,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);var r=this.isZeroPagesToDisplay(),n=t&&e===o-1;this.nextButtonDisabled=n||r,this.lastButtonDisabled=!t||r||e===o-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)},t.prototype.toggleButtonDisabled=function(e,t){mn(e,t),e.classList.toggle("ag-disabled",t),t?e.removeAttribute("tabindex"):e.setAttribute("tabindex","0")},t.prototype.updateRowLabels=function(){var e,t,o=this.paginationProxy.getCurrentPage(),r=this.paginationProxy.getPageSize(),n=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;this.isZeroPagesToDisplay()?e=t=0:(e=r*o+1,t=e+r-1,n&&t>i&&(t=i)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(e),this.rowNodeBlockLoader.isLoading()?this.lbLastRowOnPage.innerHTML="?":this.lbLastRowOnPage.innerHTML=this.formatNumber(t)},t.prototype.isZeroPagesToDisplay=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages();return e&&0===t},t.prototype.setTotalLabels=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages(),o=e?this.paginationProxy.getMasterRowCount():null;if(1===o){var r=this.paginationProxy.getRow(0),n=r&&r.group&&!(r.groupData||r.aggData);if(n)return void this.setTotalLabelsToZero()}if(e)this.lbTotal.innerHTML=this.formatNumber(t),this.lbRecordCount.innerHTML=this.formatNumber(o);else{var i=this.gridOptionsWrapper.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=i,this.lbRecordCount.innerHTML=i}},t.prototype.setTotalLabelsToZero=function(){this.lbFirstRowOnPage.innerHTML=this.formatNumber(0),this.lbCurrent.innerHTML=this.formatNumber(0),this.lbLastRowOnPage.innerHTML=this.formatNumber(0),this.lbTotal.innerHTML=this.formatNumber(0),this.lbRecordCount.innerHTML=this.formatNumber(0)},Pv([ne("paginationProxy")],t.prototype,"paginationProxy",void 0),Pv([ne("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),Pv([Ai("btFirst")],t.prototype,"btFirst",void 0),Pv([Ai("btPrevious")],t.prototype,"btPrevious",void 0),Pv([Ai("btNext")],t.prototype,"btNext",void 0),Pv([Ai("btLast")],t.prototype,"btLast",void 0),Pv([Ai("lbRecordCount")],t.prototype,"lbRecordCount",void 0),Pv([Ai("lbFirstRowOnPage")],t.prototype,"lbFirstRowOnPage",void 0),Pv([Ai("lbLastRowOnPage")],t.prototype,"lbLastRowOnPage",void 0),Pv([Ai("lbCurrent")],t.prototype,"lbCurrent",void 0),Pv([Ai("lbTotal")],t.prototype,"lbTotal",void 0),Pv([te],t.prototype,"postConstruct",null),t}(Di),Dv=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Av=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s};(function(e){e[e["Loading"]=0]="Loading",e[e["NoRows"]=1]="NoRows"})(Uf||(Uf={}));var Nv=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.inProgress=!1,o.destroyRequested=!1,o.manuallyDisplayed=!1,o}return Dv(t,e),t.prototype.updateLayoutClasses=function(e,t){var o=this.eOverlayWrapper.classList;o.toggle(Al.AUTO_HEIGHT,t.autoHeight),o.toggle(Al.NORMAL,t.normal),o.toggle(Al.PRINT,t.print)},t.prototype.postConstruct=function(){this.createManagedBean(new Kl(this)),this.setDisplayed(!1),this.addManagedListener(this.eventService,lt.EVENT_ROW_DATA_UPDATED,this.onRowDataUpdated.bind(this)),this.addManagedListener(this.eventService,lt.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.gridOptionsWrapper.isRowModelDefault()&&!this.gridOptionsWrapper.getRowData()&&this.showLoadingOverlay(),this.gridApi.registerOverlayWrapperComp(this)},t.prototype.setWrapperTypeClass=function(e){var t=this.eOverlayWrapper.classList;t.toggle("ag-overlay-loading-wrapper",e===Uf.Loading),t.toggle("ag-overlay-no-rows-wrapper",e===Uf.NoRows)},t.prototype.showLoadingOverlay=function(){if(!this.gridOptionsWrapper.isSuppressLoadingOverlay()){var e={},t=this.userComponentFactory.getLoadingOverlayCompDetails(e),o=t.newAgStackInstance();this.showOverlay(o,Uf.Loading)}},t.prototype.showNoRowsOverlay=function(){if(!this.gridOptionsWrapper.isSuppressNoRowsOverlay()){var e={},t=this.userComponentFactory.getNoRowsOverlayCompDetails(e),o=t.newAgStackInstance();this.showOverlay(o,Uf.NoRows)}},t.prototype.showOverlay=function(e,t){var o=this;this.inProgress||(this.setWrapperTypeClass(t),this.destroyActiveOverlay(),this.inProgress=!0,e&&e.then((function(e){o.inProgress=!1,o.eOverlayWrapper.appendChild(e.getGui()),o.activeOverlay=e,o.destroyRequested&&(o.destroyRequested=!1,o.destroyActiveOverlay())})),this.manuallyDisplayed=this.columnModel.isReady()&&!this.paginationProxy.isEmpty(),this.setDisplayed(!0))},t.prototype.destroyActiveOverlay=function(){this.inProgress?this.destroyRequested=!0:this.activeOverlay&&(this.activeOverlay=this.getContext().destroyBean(this.activeOverlay),Rr(this.eOverlayWrapper))},t.prototype.hideOverlay=function(){this.manuallyDisplayed=!1,this.destroyActiveOverlay(),this.setDisplayed(!1)},t.prototype.destroy=function(){this.destroyActiveOverlay(),e.prototype.destroy.call(this)},t.prototype.showOrHideOverlay=function(){var e=this.paginationProxy.isEmpty(),t=this.gridOptionsWrapper.isSuppressNoRowsOverlay();e&&!t?this.showNoRowsOverlay():this.hideOverlay()},t.prototype.onRowDataUpdated=function(){this.showOrHideOverlay()},t.prototype.onNewColumnsLoaded=function(){!this.columnModel.isReady()||this.paginationProxy.isEmpty()||this.manuallyDisplayed||this.hideOverlay()},t.TEMPLATE='\n <div class="ag-overlay" aria-hidden="true">\n <div class="ag-overlay-panel">\n <div class="ag-overlay-wrapper" ref="eOverlayWrapper"></div>\n </div>\n </div>',Av([ne("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Av([ne("paginationProxy")],t.prototype,"paginationProxy",void 0),Av([ne("gridApi")],t.prototype,"gridApi",void 0),Av([ne("columnModel")],t.prototype,"columnModel",void 0),Av([Ai("eOverlayWrapper")],t.prototype,"eOverlayWrapper",void 0),Av([te],t.prototype,"postConstruct",null),t}(Di),Iv=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Gv=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Fv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Iv(t,e),t.prototype.getFirstRow=function(){var e,t=0;return this.pinnedRowModel.getPinnedTopRowCount()?e=fe.PINNED_TOP:this.rowModel.getRowCount()?(e=null,t=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(e=fe.PINNED_BOTTOM),void 0===e?null:{rowIndex:t,rowPinned:e}},t.prototype.getLastRow=function(){var e,t=null,o=this.pinnedRowModel.getPinnedBottomRowCount(),r=this.pinnedRowModel.getPinnedTopRowCount();return o?(t=fe.PINNED_BOTTOM,e=o-1):this.rowModel.getRowCount()?(t=null,e=this.paginationProxy.getPageLastRow()):r&&(t=fe.PINNED_TOP,e=r-1),void 0===e?null:{rowIndex:e,rowPinned:t}},t.prototype.getRowNode=function(e){switch(e.rowPinned){case fe.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case fe.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.sameRow=function(e,t){return!e&&!t||!(e&&!t||!e&&t)&&(e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned)},t.prototype.before=function(e,t){switch(e.rowPinned){case fe.PINNED_TOP:if(t.rowPinned!==fe.PINNED_TOP)return!0;break;case fe.PINNED_BOTTOM:if(t.rowPinned!==fe.PINNED_BOTTOM)return!1;break;default:if(n(t.rowPinned))return t.rowPinned!==fe.PINNED_TOP;break}return e.rowIndex<t.rowIndex},t.prototype.rowMax=function(e){var t,o=this;return e.forEach((function(e){(void 0===t||o.before(t,e))&&(t=e)})),t},t.prototype.rowMin=function(e){var t,o=this;return e.forEach((function(e){(void 0===t||o.before(e,t))&&(t=e)})),t},Gv([ne("rowModel")],t.prototype,"rowModel",void 0),Gv([ne("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Gv([ne("paginationProxy")],t.prototype,"paginationProxy",void 0),t=Gv([re("rowPositionUtils")],t),t}(rt),Lv=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Mv=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},xv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Lv(t,e),t.prototype.createId=function(e){var t=e.rowIndex,o=e.rowPinned,r=e.column;return this.createIdFromValues(t,r,o)},t.prototype.createIdFromValues=function(e,t,o){return e+"."+(null==o?"null":o)+"."+t.getId()},t.prototype.equals=function(e,t){var o=e.column===t.column,r=e.rowPinned===t.rowPinned,n=e.rowIndex===t.rowIndex;return o&&r&&n},t=Mv([re("cellPositionUtils")],t),t}(rt),Hv=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Vv=function(){function e(e){this.cellValueChanges=e}return e}(),Wv=function(e){function t(t,o,r,n){var i=e.call(this,t)||this;return i.initialRange=o,i.finalRange=r,i.ranges=n,i}return Hv(t,e),t}(Vv),kv=function(){function e(t){this.actionStack=[],this.maxStackSize=t||e.DEFAULT_STACK_SIZE,this.actionStack=new Array(this.maxStackSize)}return e.prototype.pop=function(){return this.actionStack.pop()},e.prototype.push=function(e){var t=e.cellValueChanges&&e.cellValueChanges.length>0;t&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))},e.prototype.clear=function(){this.actionStack=[]},e.prototype.getCurrentStackSize=function(){return this.actionStack.length},e.DEFAULT_STACK_SIZE=10,e}(),Bv=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),jv=function(){return jv=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},jv.apply(this,arguments)},Uv=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},zv=function(e,t){var o="function"===typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,n,i=o.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=i.next()).done)s.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(o=i["return"])&&o.call(i)}finally{if(n)throw n.error}}return s},Kv=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(zv(arguments[t]));return e},Yv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cellValueChanges=[],t.activeCellEdit=null,t.activeRowEdit=null,t.isPasting=!1,t.isRangeInAction=!1,t.onCellValueChanged=function(e){var o={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned},r=null!==t.activeCellEdit&&t.cellPositionUtils.equals(t.activeCellEdit,o),n=null!==t.activeRowEdit&&t.rowPositionUtils.sameRow(t.activeRowEdit,o),i=r||n||t.isPasting||t.isRangeInAction;if(i){var s=e.rowPinned,a=e.rowIndex,l=e.column,u=e.oldValue,p=e.value,c={rowPinned:s,rowIndex:a,columnId:l.getColId(),newValue:p,oldValue:u};t.cellValueChanges.push(c)}},t.clearStacks=function(){t.undoStack.clear(),t.redoStack.clear()},t}return Bv(t,e),t.prototype.init=function(){var e=this;if(this.gridOptionsWrapper.isUndoRedoCellEditing()){var t=this.gridOptionsWrapper.getUndoRedoCellEditingLimit();t<=0||(this.undoStack=new kv(t),this.redoStack=new kv(t),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.addCellKeyListeners(),this.addManagedListener(this.eventService,lt.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.addManagedListener(this.eventService,lt.EVENT_MODEL_UPDATED,(function(t){t.keepUndoRedoStack||e.clearStacks()})),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,lt.EVENT_NEW_COLUMNS_LOADED,this.clearStacks),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_MOVED,this.clearStacks),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_PINNED,this.clearStacks),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_VISIBLE,this.clearStacks),this.addManagedListener(this.eventService,lt.EVENT_ROW_DRAG_END,this.clearStacks),this.ctrlsService.whenReady((function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl()})))}},t.prototype.getCurrentUndoStackSize=function(){return this.undoStack?this.undoStack.getCurrentStackSize():0},t.prototype.getCurrentRedoStackSize=function(){return this.redoStack?this.redoStack.getCurrentStackSize():0},t.prototype.undo=function(){if(this.undoStack){var e=this.undoStack.pop();e&&e.cellValueChanges&&(this.processAction(e,(function(e){return e.oldValue})),e instanceof Wv?this.processRange(e.ranges||[e.initialRange]):this.processCell(e.cellValueChanges),this.redoStack.push(e))}},t.prototype.redo=function(){if(this.redoStack){var e=this.redoStack.pop();e&&e.cellValueChanges&&(this.processAction(e,(function(e){return e.newValue})),e instanceof Wv?this.processRange(e.ranges||[e.finalRange]):this.processCell(e.cellValueChanges),this.undoStack.push(e))}},t.prototype.processAction=function(e,t){var o=this;e.cellValueChanges.forEach((function(e){var r,n=e.rowIndex,i=e.rowPinned,s=e.columnId,a={rowIndex:n,rowPinned:i},l=o.getRowNode(a);if(l.displayed){var u=t(e),p="function"===typeof(null===(r=u)||void 0===r?void 0:r.toString)?u.toString():u;l.setDataValue(s,p)}}))},t.prototype.processRange=function(e){var t,o=this;this.rangeService.removeAllCellRanges(!0),e.forEach((function(r,n){if(r){var i=r.startRow,s=r.endRow;n===e.length-1&&(t={rowPinned:i.rowPinned,rowIndex:i.rowIndex,columnId:r.startColumn.getColId()},o.setLastFocusedCell(t));var a={rowStartIndex:i.rowIndex,rowStartPinned:i.rowPinned,rowEndIndex:s.rowIndex,rowEndPinned:s.rowPinned,columnStart:r.startColumn,columns:r.columns};o.rangeService.addCellRange(a)}}))},t.prototype.processCell=function(e){var t=e[0],o=t.rowIndex,r=t.rowPinned,n={rowIndex:o,rowPinned:r},i=this.getRowNode(n),s={rowPinned:t.rowPinned,rowIndex:i.rowIndex,columnId:t.columnId};this.setLastFocusedCell(s,!0)},t.prototype.setLastFocusedCell=function(e,t){var o=e.rowIndex,r=e.columnId,n=e.rowPinned,i=this.gridBodyCtrl.getScrollFeature(),s=this.columnModel.getGridColumn(r);if(s){i.ensureIndexVisible(o),i.ensureColumnVisible(s);var a={rowIndex:o,column:s,rowPinned:n};this.focusService.setFocusedCell(jv(jv({},a),{forceBrowserFocus:!0})),t&&this.rangeService.setRangeToCell(a)}},t.prototype.addRowEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,lt.EVENT_ROW_EDITING_STARTED,(function(t){e.activeRowEdit={rowIndex:t.rowIndex,rowPinned:t.rowPinned}})),this.addManagedListener(this.eventService,lt.EVENT_ROW_EDITING_STOPPED,(function(){var t=new Vv(e.cellValueChanges);e.pushActionsToUndoStack(t),e.activeRowEdit=null}))},t.prototype.addCellEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,lt.EVENT_CELL_EDITING_STARTED,(function(t){e.activeCellEdit={column:t.column,rowIndex:t.rowIndex,rowPinned:t.rowPinned}})),this.addManagedListener(this.eventService,lt.EVENT_CELL_EDITING_STOPPED,(function(t){e.activeCellEdit=null;var o=t.valueChanged&&!e.activeRowEdit&&!e.isPasting&&!e.isRangeInAction;if(o){var r=new Vv(e.cellValueChanges);e.pushActionsToUndoStack(r)}}))},t.prototype.addPasteListeners=function(){var e=this;this.addManagedListener(this.eventService,lt.EVENT_PASTE_START,(function(){e.isPasting=!0})),this.addManagedListener(this.eventService,lt.EVENT_PASTE_END,(function(){var t=new Vv(e.cellValueChanges);e.pushActionsToUndoStack(t),e.isPasting=!1}))},t.prototype.addFillListeners=function(){var e=this;this.addManagedListener(this.eventService,lt.EVENT_FILL_START,(function(){e.isRangeInAction=!0})),this.addManagedListener(this.eventService,lt.EVENT_FILL_END,(function(t){var o=new Wv(e.cellValueChanges,t.initialRange,t.finalRange);e.pushActionsToUndoStack(o),e.isRangeInAction=!1}))},t.prototype.addCellKeyListeners=function(){var e=this;this.addManagedListener(this.eventService,lt.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,(function(){e.isRangeInAction=!0})),this.addManagedListener(this.eventService,lt.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,(function(){var t;t=e.rangeService&&e.gridOptionsWrapper.isEnableRangeSelection()?new Wv(e.cellValueChanges,void 0,void 0,Kv(e.rangeService.getCellRanges())):new Vv(e.cellValueChanges),e.pushActionsToUndoStack(t),e.isRangeInAction=!1}))},t.prototype.pushActionsToUndoStack=function(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()},t.prototype.getRowNode=function(e){switch(e.rowPinned){case fe.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case fe.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},Uv([ne("focusService")],t.prototype,"focusService",void 0),Uv([ne("ctrlsService")],t.prototype,"ctrlsService",void 0),Uv([ne("rowModel")],t.prototype,"rowModel",void 0),Uv([ne("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Uv([ne("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),Uv([ne("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Uv([ne("columnModel")],t.prototype,"columnModel",void 0),Uv([ie("rangeService")],t.prototype,"rangeService",void 0),Uv([te],t.prototype,"init",null),t=Uv([re("undoRedoService")],t),t}(rt),qv=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Xv=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Qv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qv(t,e),t.prototype.findHeader=function(e,t){var o,r,n;if(e.column instanceof Ve?(r="getDisplayedGroup"+t,o=this.columnModel[r](e.column)):(n="getDisplayedCol"+t,o=this.columnModel[n](e.column)),o)return{column:o,headerRowIndex:e.headerRowIndex}},t.prototype.findColAtEdgeForHeaderRow=function(e,t){var o=this.columnModel.getAllDisplayedColumns(),r=o["start"===t?0:o.length-1];if(r){var n=this.ctrlsService.getHeaderRowContainerCtrl(r.getPinned()),i=n.getRowType(e);if(i==lc.COLUMN_GROUP){var s=this.columnModel.getColumnGroupAtLevel(r,e);return{headerRowIndex:e,column:s}}return{headerRowIndex:null==i?-1:e,column:r}}},Xv([ne("columnModel")],t.prototype,"columnModel",void 0),Xv([ne("ctrlsService")],t.prototype,"ctrlsService",void 0),t=Xv([re("headerPositionUtils")],t),t}(rt),Jv=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Zv=function(){function e(){}return e.prototype.buildColumnDefs=function(e,t,o){var r=this,n=[],i={};return e.forEach((function(e){var s=r.createDefFromColumn(e,t,o),a=!0,l=s,u=e.getOriginalParent();while(u){var p=null;if(u.isPadding())u=u.getOriginalParent();else{var c=i[u.getGroupId()];if(c){c.children.push(l),a=!1;break}p=r.createDefFromGroup(u),p&&(p.children=[l],i[p.groupId]=p,l=p,u=u.getOriginalParent())}}a&&n.push(l)})),n},e.prototype.createDefFromGroup=function(e){var t=w(e.getColGroupDef(),["children"]);return t&&(t.groupId=e.getGroupId()),t},e.prototype.createDefFromColumn=function(e,t,o){var r=w(e.getColDef());return r.colId=e.getColId(),r.width=e.getActualWidth(),r.rowGroup=e.isRowGroupActive(),r.rowGroupIndex=e.isRowGroupActive()?t.indexOf(e):null,r.pivot=e.isPivotActive(),r.pivotIndex=e.isPivotActive()?o.indexOf(e):null,r.aggFunc=e.isValueActive()?e.getAggFunc():null,r.hide=!e.isVisible()||void 0,r.pinned=e.isPinned()?e.getPinned():null,r.sort=e.getSort()?e.getSort():null,r.sortIndex=null!=e.getSortIndex()?e.getSortIndex():null,r},e=Jv([re("columnDefFactory")],e),e}(),$v=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},ey=function(){function e(){}return e.prototype.getInitialRowClasses=function(e){var t=[];return n(e.extraCssClass)&&t.push(e.extraCssClass),t.push("ag-row"),t.push(e.rowFocused?"ag-row-focus":"ag-row-no-focus"),e.fadeRowIn&&t.push("ag-opacity-zero"),t.push(e.rowIsEven?"ag-row-even":"ag-row-odd"),e.rowNode.isRowPinned()&&t.push("ag-row-pinned"),e.rowNode.isSelected()&&t.push("ag-row-selected"),e.rowNode.footer&&t.push("ag-row-footer"),t.push("ag-row-level-"+e.rowLevel),e.rowNode.stub&&t.push("ag-row-loading"),e.fullWidthRow&&t.push("ag-full-width-row"),e.expandable&&(t.push("ag-row-group"),t.push(e.rowNode.expanded?"ag-row-group-expanded":"ag-row-group-contracted")),e.rowNode.dragging&&t.push("ag-row-dragging"),Fe(t,this.processClassesFromGridOptions(e.rowNode)),Fe(t,this.preProcessRowClassRules(e.rowNode)),t.push(e.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),e.firstRowOnPage&&t.push("ag-row-first"),e.lastRowOnPage&&t.push("ag-row-last"),e.fullWidthRow&&(e.pinned===fe.PINNED_LEFT&&t.push("ag-cell-last-left-pinned"),e.pinned===fe.PINNED_RIGHT&&t.push("ag-cell-first-right-pinned")),t},e.prototype.processClassesFromGridOptions=function(e){var t=[],o=function(e){"string"===typeof e?t.push(e):Array.isArray(e)&&e.forEach((function(e){return t.push(e)}))},r=this.gridOptionsWrapper.getRowClass();if(r){if("function"===typeof r)return console.warn("AG Grid: rowClass should not be a function, please use getRowClass instead"),[];o(r)}var n=this.gridOptionsWrapper.getRowClassFunc();if(n){var i={data:e.data,node:e,rowIndex:e.rowIndex},s=n(i);o(s)}return t},e.prototype.preProcessRowClassRules=function(e){var t=[];return this.processRowClassRules(e,(function(e){t.push(e)}),(function(e){})),t},e.prototype.processRowClassRules=function(e,t,o){var r={data:e.data,node:e,rowIndex:e.rowIndex,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};this.stylingService.processClassRules(this.gridOptionsWrapper.rowClassRules(),r,t,o)},e.prototype.calculateRowLevel=function(e){return e.group?e.level:e.parent?e.parent.level+1:0},$v([ne("stylingService")],e.prototype,"stylingService",void 0),$v([ne("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=$v([re("rowCssClassCalculator")],e),e}(),ty=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},oy=function(){function e(){}return e.prototype.doFullSort=function(e,t){var o=function(e,t){return{currentPos:t,rowNode:e}},r=e.map(o);return r.sort(this.compareRowNodes.bind(this,t)),r.map((function(e){return e.rowNode}))},e.prototype.compareRowNodes=function(e,t,o){for(var r=t.rowNode,n=o.rowNode,i=0,s=e.length;i<s;i++){var a=e[i],l=a.sort===fe.SORT_DESC,u=this.getValue(r,a.column),p=this.getValue(n,a.column),c=void 0,d=this.getComparator(a,r);c=d?d(u,p,r,n,l):yi.defaultComparator(u,p,this.gridOptionsWrapper.isAccentedSort());var h=!isNaN(c);if(h&&0!==c)return a.sort===fe.SORT_ASC?c:-1*c}return t.currentPos-o.currentPos},e.prototype.getComparator=function(e,t){var o=e.column,r=o.getColDef().comparator;if(null!=r)return r;if(o.getColDef().showRowGroup){var n=!t.group&&o.getColDef().field;if(n){var i=this.columnModel.getPrimaryColumn(n);if(i)return i.getColDef().comparator}}},e.prototype.getValue=function(e,t){var o,r,n=this.gridOptionsWrapper.isColumnsSortingCoupledToGroup();if(!n)return this.valueService.getValue(t,e,!1,!1);var i=e.rowGroupColumn===t;if(i){var s=this.gridOptionsWrapper.isGroupUseEntireRow(this.columnModel.isPivotActive());if(s){var a=t.getColDef().keyCreator;if(a)return e.key;var l=null===(o=e.allLeafChildren)||void 0===o?void 0:o[0];return l?this.valueService.getValue(t,l,!1,!1):void 0}var u=this.columnModel.getGroupDisplayColumnForGroup(t.getId());if(!u)return;return null===(r=e.groupData)||void 0===r?void 0:r[u.getId()]}return e.group&&t.getColDef().showRowGroup?void 0:this.valueService.getValue(t,e,!1,!1)},ty([ne("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ty([ne("valueService")],e.prototype,"valueService",void 0),ty([ne("columnModel")],e.prototype,"columnModel",void 0),e=ty([re("rowNodeSorter")],e),e}(),ry=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ny=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},iy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ready=!1,t.readyCallbacks=[],t}var o;return ry(t,e),o=t,t.prototype.checkReady=function(){if(this.ready=null!=this.gridCtrl&&null!=this.gridBodyCtrl&&null!=this.centerRowContainerCtrl&&null!=this.leftRowContainerCtrl&&null!=this.rightRowContainerCtrl&&null!=this.bottomCenterRowContainerCtrl&&null!=this.bottomLeftRowContainerCtrl&&null!=this.bottomRightRowContainerCtrl&&null!=this.topCenterRowContainerCtrl&&null!=this.topLeftRowContainerCtrl&&null!=this.topRightRowContainerCtrl&&null!=this.stickyTopCenterRowContainerCtrl&&null!=this.stickyTopLeftRowContainerCtrl&&null!=this.stickyTopRightRowContainerCtrl&&null!=this.centerHeaderRowContainerCtrl&&null!=this.leftHeaderRowContainerCtrl&&null!=this.rightHeaderRowContainerCtrl&&null!=this.fakeHScrollCtrl&&null!=this.gridHeaderCtrl,this.ready){var e=this.createReadyParams();this.readyCallbacks.forEach((function(t){return t(e)})),this.readyCallbacks.length=0}},t.prototype.whenReady=function(e){this.ready?e(this.createReadyParams()):this.readyCallbacks.push(e)},t.prototype.createReadyParams=function(){return{centerRowContainerCtrl:this.centerRowContainerCtrl,leftRowContainerCtrl:this.leftRowContainerCtrl,rightRowContainerCtrl:this.rightRowContainerCtrl,bottomCenterRowContainerCtrl:this.bottomCenterRowContainerCtrl,bottomLeftRowContainerCtrl:this.bottomLeftRowContainerCtrl,bottomRightRowContainerCtrl:this.bottomRightRowContainerCtrl,topCenterRowContainerCtrl:this.topCenterRowContainerCtrl,topLeftRowContainerCtrl:this.topLeftRowContainerCtrl,topRightRowContainerCtrl:this.topRightRowContainerCtrl,stickyTopCenterRowContainerCtrl:this.stickyTopCenterRowContainerCtrl,stickyTopLeftRowContainerCtrl:this.stickyTopLeftRowContainerCtrl,stickyTopRightRowContainerCtrl:this.stickyTopRightRowContainerCtrl,centerHeaderRowContainerCtrl:this.centerHeaderRowContainerCtrl,leftHeaderRowContainerCtrl:this.leftHeaderRowContainerCtrl,rightHeaderRowContainerCtrl:this.rightHeaderRowContainerCtrl,fakeHScrollCtrl:this.fakeHScrollCtrl,gridBodyCtrl:this.gridBodyCtrl,gridCtrl:this.gridCtrl,gridHeaderCtrl:this.gridHeaderCtrl}},t.prototype.registerFakeHScrollCtrl=function(e){this.fakeHScrollCtrl=e,this.checkReady()},t.prototype.registerGridHeaderCtrl=function(e){this.gridHeaderCtrl=e,this.checkReady()},t.prototype.registerCenterRowContainerCtrl=function(e){this.centerRowContainerCtrl=e,this.checkReady()},t.prototype.registerLeftRowContainerCtrl=function(e){this.leftRowContainerCtrl=e,this.checkReady()},t.prototype.registerRightRowContainerCtrl=function(e){this.rightRowContainerCtrl=e,this.checkReady()},t.prototype.registerTopCenterRowContainerCtrl=function(e){this.topCenterRowContainerCtrl=e,this.checkReady()},t.prototype.registerTopLeftRowContainerCon=function(e){this.topLeftRowContainerCtrl=e,this.checkReady()},t.prototype.registerTopRightRowContainerCtrl=function(e){this.topRightRowContainerCtrl=e,this.checkReady()},t.prototype.registerStickyTopCenterRowContainerCtrl=function(e){this.stickyTopCenterRowContainerCtrl=e,this.checkReady()},t.prototype.registerStickyTopLeftRowContainerCon=function(e){this.stickyTopLeftRowContainerCtrl=e,this.checkReady()},t.prototype.registerStickyTopRightRowContainerCtrl=function(e){this.stickyTopRightRowContainerCtrl=e,this.checkReady()},t.prototype.registerBottomCenterRowContainerCtrl=function(e){this.bottomCenterRowContainerCtrl=e,this.checkReady()},t.prototype.registerBottomLeftRowContainerCtrl=function(e){this.bottomLeftRowContainerCtrl=e,this.checkReady()},t.prototype.registerBottomRightRowContainerCtrl=function(e){this.bottomRightRowContainerCtrl=e,this.checkReady()},t.prototype.registerHeaderContainer=function(e,t){switch(t){case fe.PINNED_LEFT:this.leftHeaderRowContainerCtrl=e;break;case fe.PINNED_RIGHT:this.rightHeaderRowContainerCtrl=e;break;default:this.centerHeaderRowContainerCtrl=e;break}this.checkReady()},t.prototype.registerGridBodyCtrl=function(e){this.gridBodyCtrl=e,this.checkReady()},t.prototype.registerGridCtrl=function(e){this.gridCtrl=e,this.checkReady()},t.prototype.getFakeHScrollCtrl=function(){return this.fakeHScrollCtrl},t.prototype.getGridHeaderCtrl=function(){return this.gridHeaderCtrl},t.prototype.getGridCtrl=function(){return this.gridCtrl},t.prototype.getCenterRowContainerCtrl=function(){return this.centerRowContainerCtrl},t.prototype.getTopCenterRowContainerCtrl=function(){return this.topCenterRowContainerCtrl},t.prototype.getBottomCenterRowContainerCtrl=function(){return this.bottomCenterRowContainerCtrl},t.prototype.getStickyTopCenterRowContainerCtrl=function(){return this.stickyTopCenterRowContainerCtrl},t.prototype.getGridBodyCtrl=function(){return this.gridBodyCtrl},t.prototype.getHeaderRowContainerCtrls=function(){return[this.leftHeaderRowContainerCtrl,this.rightHeaderRowContainerCtrl,this.centerHeaderRowContainerCtrl]},t.prototype.getHeaderRowContainerCtrl=function(e){switch(e){case fe.PINNED_LEFT:return this.leftHeaderRowContainerCtrl;case fe.PINNED_RIGHT:return this.rightHeaderRowContainerCtrl;default:return this.centerHeaderRowContainerCtrl}},t.NAME="ctrlsService",t=o=ny([re(o.NAME)],t),t}(rt),sy=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ay=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},ly=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registry={},t}return sy(t,e),t.prototype.register=function(e){this.registry[e.controllerName]=e.controllerClass},t.prototype.getInstance=function(e){var t=this.registry[e];if(null!=t)return new t},t=ay([re("ctrlsFactory")],t),t}(rt),uy=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),py=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},cy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return uy(t,e),t.prototype.setComp=function(e,t,o,r){this.view=e,this.eViewport=o,this.eContainer=r,this.eGui=t,this.addManagedListener(this.eventService,lt.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this));var n=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedListener(this.eventService,lt.EVENT_DISPLAYED_COLUMNS_CHANGED,n),this.addManagedListener(this.eventService,lt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,n),this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_DOM_LAYOUT,n),this.addManagedListener(this.eventService,lt.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.onScrollVisibilityChanged(),this.ctrlsService.registerFakeHScrollCtrl(this),this.view.addOrRemoveCssClass("ag-apple-scrollbar",Jt()||Zt())},t.prototype.addActiveListenerToggles=function(){var e=this,t=["mouseenter","mousedown","touchstart"],o=["mouseleave","touchend"];t.forEach((function(t){return e.addManagedListener(e.eGui,t,(function(){return e.view.addOrRemoveCssClass("ag-scrollbar-active",!0)}))})),o.forEach((function(t){return e.addManagedListener(e.eGui,t,(function(){return e.view.addOrRemoveCssClass("ag-scrollbar-active",!1)}))}))},t.prototype.initialiseInvisibleScrollbar=function(){void 0===this.invisibleScrollbar&&(this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.invisibleScrollbar=no(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles(),this.refreshCompBottom()))},t.prototype.onPinnedRowDataChanged=function(){this.refreshCompBottom()},t.prototype.refreshCompBottom=function(){if(this.invisibleScrollbar){var e=this.pinnedRowModel.getPinnedBottomTotalHeight();this.view.setBottom(e)}},t.prototype.onScrollVisibilityChanged=function(){void 0===this.invisibleScrollbar&&this.initialiseInvisibleScrollbar(),this.setScrollVisible(),this.setFakeHScrollSpacerWidths()},t.prototype.hideAndShowInvisibleScrollAsNeeded=function(){var e=this;this.addManagedListener(this.eventService,lt.EVENT_BODY_SCROLL,(function(t){"horizontal"===t.direction&&e.view.addOrRemoveCssClass("ag-scrollbar-scrolling",!0)})),this.addManagedListener(this.eventService,lt.EVENT_BODY_SCROLL_END,(function(){return e.view.addOrRemoveCssClass("ag-scrollbar-scrolling",!1)}))},t.prototype.setFakeHScrollSpacerWidths=function(){var e=this.scrollVisibleService.isVerticalScrollShowing(),t=this.columnModel.getDisplayedColumnsRightWidth(),o=!this.enableRtl&&e,r=this.gridOptionsWrapper.getScrollbarWidth();o&&(t+=r),this.view.setRightSpacerFixedWidth(t),this.view.includeRightSpacerScrollerCss("ag-scroller-corner",t<=r);var n=this.columnModel.getDisplayedColumnsLeftWidth(),i=this.enableRtl&&e;i&&(n+=r),this.view.setLeftSpacerFixedWidth(n),this.view.includeLeftSpacerScrollerCss("ag-scroller-corner",n<=r)},t.prototype.setScrollVisible=function(){var e=this.scrollVisibleService.isHorizontalScrollShowing(),t=this.invisibleScrollbar,o=this.gridOptionsWrapper.isSuppressHorizontalScroll(),r=e&&this.gridOptionsWrapper.getScrollbarWidth()||0,n=0===r&&t?15:r,i=o?0:n;this.view.addOrRemoveCssClass("ag-scrollbar-invisible",t),this.view.setHeight(i),this.view.setViewportHeight(i),this.view.setContainerHeight(i),this.view.addOrRemoveCssClass("ag-hidden",!e)},t.prototype.getViewport=function(){return this.eViewport},t.prototype.getContainer=function(){return this.eContainer},py([ne("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),py([ne("columnModel")],t.prototype,"columnModel",void 0),py([ne("ctrlsService")],t.prototype,"ctrlsService",void 0),py([ne("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),t}(rt),dy=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),hy=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},fy=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return dy(t,e),t.prototype.postConstruct=function(){var e=this,t={addOrRemoveCssClass:function(t,o){return e.addOrRemoveCssClass(t,o)},setHeight:function(t){return kr(e.getGui(),t)},setBottom:function(t){return e.getGui().style.bottom=t+"px"},setContainerHeight:function(t){return kr(e.eContainer,t)},setViewportHeight:function(t){return kr(e.eViewport,t)},setRightSpacerFixedWidth:function(t){return Vr(e.eRightSpacer,t)},setLeftSpacerFixedWidth:function(t){return Vr(e.eLeftSpacer,t)},includeLeftSpacerScrollerCss:function(t,o){return e.eLeftSpacer.classList.toggle(t,o)},includeRightSpacerScrollerCss:function(t,o){return e.eRightSpacer.classList.toggle(t,o)}},o=this.createManagedBean(new cy);o.setComp(t,this.getGui(),this.eViewport,this.eContainer),this.createManagedBean(new Pp((function(t){return e.eContainer.style.width=t+"px"})))},t.TEMPLATE='<div class="ag-body-horizontal-scroll" aria-hidden="true">\n <div class="ag-horizontal-left-spacer" ref="eLeftSpacer"></div>\n <div class="ag-body-horizontal-scroll-viewport" ref="eViewport">\n <div class="ag-body-horizontal-scroll-container" ref="eContainer"></div>\n </div>\n <div class="ag-horizontal-right-spacer" ref="eRightSpacer"></div>\n </div>',hy([Ai("eLeftSpacer")],t.prototype,"eLeftSpacer",void 0),hy([Ai("eRightSpacer")],t.prototype,"eRightSpacer",void 0),hy([Ai("eViewport")],t.prototype,"eViewport",void 0),hy([Ai("eContainer")],t.prototype,"eContainer",void 0),hy([te],t.prototype,"postConstruct",null),t}(Di),gy=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),vy=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},yy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gy(t,e),t.prototype.postConstruct=function(){var e=this.checkContainerWidths.bind(this);this.addManagedListener(this.eventService,lt.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,lt.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_DOM_LAYOUT,e)},t.prototype.checkContainerWidths=function(){var e=this.gridOptionsWrapper.getDomLayout()===fe.DOM_LAYOUT_PRINT,t=e?0:this.columnModel.getDisplayedColumnsLeftWidth(),o=e?0:this.columnModel.getDisplayedColumnsRightWidth();t!=this.leftWidth&&(this.leftWidth=t,this.eventService.dispatchEvent({type:lt.EVENT_LEFT_PINNED_WIDTH_CHANGED})),o!=this.rightWidth&&(this.rightWidth=o,this.eventService.dispatchEvent({type:lt.EVENT_RIGHT_PINNED_WIDTH_CHANGED}))},t.prototype.getPinnedRightWidth=function(){return this.rightWidth},t.prototype.getPinnedLeftWidth=function(){return this.leftWidth},vy([ne("columnModel")],t.prototype,"columnModel",void 0),vy([te],t.prototype,"postConstruct",null),t=vy([re("pinnedWidthService")],t),t}(rt),my=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Cy=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},wy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.events=[],t}return my(t,e),t.prototype.postConstruct=function(){this.rowModel.getType()==fe.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},t.prototype.dispatchExpanded=function(e){var t=this;if(null!=this.clientSideRowModel){this.events.push(e);var o=function(){t.clientSideRowModel&&t.clientSideRowModel.onRowGroupOpened(),t.events.forEach((function(e){return t.eventService.dispatchEvent(e)})),t.events=[]};null==this.dispatchExpandedDebounced&&(this.dispatchExpandedDebounced=this.animationFrameService.debounce(o)),this.dispatchExpandedDebounced()}else this.eventService.dispatchEvent(e)},Cy([ne("animationFrameService")],t.prototype,"animationFrameService",void 0),Cy([ne("rowModel")],t.prototype,"rowModel",void 0),Cy([te],t.prototype,"postConstruct",null),t=Cy([re("rowNodeEventThrottle")],t),t}(rt),Ey=function(e,t){var o="function"===typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,n,i=o.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=i.next()).done)s.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(o=i["return"])&&o.call(i)}finally{if(n)throw n.error}}return s},Ry=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ey(arguments[t]));return e},Oy=function(){function e(e,t,o){t?(this.gridOptions=t,(new Sy).create(e,t,(function(t){var o=new Gg(e);t.createBean(o)}),void 0,o)):console.error("AG Grid: no gridOptions provided to the grid")}return e.prototype.destroy=function(){this.gridOptions&&this.gridOptions.api&&this.gridOptions.api.destroy()},e}(),Sy=function(){function e(){}return e.prototype.create=function(e,t,o,r,n){var i=this,s=!!t.debug,a=this.getRegisteredModules(n),l=this.createBeansList(t.rowModelType,a),u=this.createProvidedBeans(e,t,n);if(l){var p={providedBeanInstances:u,beanClasses:l,debug:s},c=new Pg("AG Grid",(function(){return t.debug})),d=new Pg("Context",(function(){return p.debug})),h=new Z(p,d),f=h.getBean("beans");this.registerModuleUserComponents(f,a),this.registerStackComponents(f,a),this.registerControllers(f,a),o(h),f.ctrlsService.whenReady((function(){i.setColumnsAndData(f),i.dispatchGridReadyEvent(f);var e=ge.isRegistered(ue.EnterpriseCoreModule);c.log("initialised successfully, enterprise = "+e)})),r&&r(h)}},e.prototype.registerControllers=function(e,t){t.forEach((function(t){t.controllers&&t.controllers.forEach((function(t){return e.ctrlsFactory.register(t)}))}))},e.prototype.registerStackComponents=function(e,t){var o=this.createAgStackComponentsList(t);e.agStackComponentsRegistry.setupComponents(o)},e.prototype.getRegisteredModules=function(e){var t=e?e.modules:null,o=ge.getRegisteredModules(),r=[],n={};function i(e,t){function o(t){n[t.moduleName]||(n[t.moduleName]=!0,r.push(t),ge.register(t,e))}o(t),t.dependantModules&&t.dependantModules.forEach(i.bind(null,e))}return t&&t.forEach(i.bind(null,!0)),o&&o.forEach(i.bind(null,!ge.isPackageBased())),r},e.prototype.registerModuleUserComponents=function(e,t){var o=this.extractModuleEntity(t,(function(e){return e.userComponents?e.userComponents:[]}));o.forEach((function(t){e.userComponentRegistry.registerDefaultComponent(t.componentName,t.componentClass)}))},e.prototype.createProvidedBeans=function(e,t,o){var r=o?o.frameworkOverrides:null;i(r)&&(r=new Jf);var n={gridOptions:t,eGridDiv:e,globalEventListener:o?o.globalEventListener:null,frameworkOverrides:r};return o&&o.providedBeanInstances&&Object.assign(n,o.providedBeanInstances),n},e.prototype.createAgStackComponentsList=function(e){var t=[{componentName:"AgCheckbox",componentClass:Zc},{componentName:"AgRadioButton",componentClass:Hh},{componentName:"AgToggleButton",componentClass:Wh},{componentName:"AgInputTextField",componentClass:Bh},{componentName:"AgInputTextArea",componentClass:Uh},{componentName:"AgInputNumberField",componentClass:Kh},{componentName:"AgInputRange",componentClass:qh},{componentName:"AgSelect",componentClass:ls},{componentName:"AgSlider",componentClass:Jh},{componentName:"AgAngleSelect",componentClass:ef},{componentName:"AgColorPicker",componentClass:ff},{componentName:"AgGridBody",componentClass:Wp},{componentName:"AgHeaderRoot",componentClass:Fd},{componentName:"AgSortIndicator",componentClass:Xs},{componentName:"AgPagination",componentClass:Tv},{componentName:"AgOverlayWrapper",componentClass:Nv},{componentName:"AgGroupComponent",componentClass:yf},{componentName:"AgPanel",componentClass:lf},{componentName:"AgDialog",componentClass:df},{componentName:"AgRowContainer",componentClass:uc},{componentName:"AgFakeHorizontalScroll",componentClass:fy}],o=this.extractModuleEntity(e,(function(e){return e.agStackComponents?e.agStackComponents:[]}));return t=t.concat(o),t},e.prototype.createBeansList=function(e,t){var o=this.getRowModelClass(e,t);if(o){var r=[o,Du,Fv,xv,Qv,Qg,Hc,ll,iv,lv,Yd,Dl,Rv,xd,Rh,Gl,$o,he,Vo,Kf,pg,xl,Yo,Td,Gh,gh,Cg,at,Rg,sg,Qp,$g,gg,bg,Qo,nh,Wd,xa,dg,Vf,Kp,mv,og,Ch,Mh,jp,Hg,kg,Ug,_v,Yg,ov,Qd,Yv,or,Zv,ey,Ah,oy,iy,yy,wy,ly],n=this.extractModuleEntity(t,(function(e){return e.beans?e.beans:[]}));r.push.apply(r,Ry(n));var i=[];return r.forEach((function(e){i.indexOf(e)<0&&i.push(e)})),i}},e.prototype.extractModuleEntity=function(e,t){return[].concat.apply([],Ry(e.map(t)))},e.prototype.setColumnsAndData=function(e){var t=e.gridOptionsWrapper.getColumnDefs();e.columnModel.setColumnDefs(t||[],"gridInitializing"),e.rowModel.start()},e.prototype.dispatchGridReadyEvent=function(e){var t={type:lt.EVENT_GRID_READY};e.eventService.dispatchEvent(t)},e.prototype.getRowModelClass=function(e,t){e||(e=fe.ROW_MODEL_TYPE_CLIENT_SIDE);var o={};t.forEach((function(e){y(e.rowModels,(function(e,t){o[e]=t}))}));var r=o[e];if(n(r))return r;ge.isPackageBased()?[fe.ROW_MODEL_TYPE_VIEWPORT,fe.ROW_MODEL_TYPE_SERVER_SIDE].includes(e)?console.error('AG Grid: Row Model "'+e+"\" not found. Please ensure the package 'ag-grid-enterprise' is imported. Please see: https://www.ag-grid.com/javascript-grid/packages/"):console.error("AG Grid: could not find row model for rowModelType "+e):e===fe.ROW_MODEL_TYPE_INFINITE?console.error('AG Grid: Row Model "Infinite" not found. Please ensure the '+ue.InfiniteRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):e===fe.ROW_MODEL_TYPE_VIEWPORT?console.error('AG Grid: Row Model "Viewport" not found. Please ensure the AG Grid Enterprise Module '+ue.ViewportRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):e===fe.ROW_MODEL_TYPE_SERVER_SIDE?console.error('AG Grid: Row Model "Server Side" not found. Please ensure the AG Grid Enterprise Module '+ue.ServerSideRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):e===fe.ROW_MODEL_TYPE_CLIENT_SIDE?console.error('AG Grid: Row Model "Client Side" not found. Please ensure the '+ue.ClientSideRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):console.error("AG Grid: could not find row model for rowModelType "+e)},e}(); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */ /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */ var _y,by=function(){function e(){}return e.prototype.wrap=function(e,t,o,r){var n=this;void 0===o&&(o=[]);var i=this.createWrapper(e,r);return t.forEach((function(e){n.createMethod(i,e,!0)})),o.forEach((function(e){n.createMethod(i,e,!1)})),i},e.prototype.unwrap=function(e){return e},e.prototype.createMethod=function(e,t,o){e.addMethod(t,this.createMethodProxy(e,t,o))},e.prototype.createMethodProxy=function(e,t,o){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(o&&console.warn("AG Grid: Framework component is missing the method "+t+"()"),null)}},e}(); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */(function(e){e["InsideBase"]="insideBase",e["InsideEnd"]="insideEnd",e["Center"]="center",e["OutsideEnd"]="outsideEnd"})(_y||(_y={})); /** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license MIT */ var Py="undefined"===typeof e?{}:e;Py.HTMLElement="undefined"===typeof HTMLElement?{}:HTMLElement,Py.HTMLButtonElement="undefined"===typeof HTMLButtonElement?{}:HTMLButtonElement,Py.HTMLSelectElement="undefined"===typeof HTMLSelectElement?{}:HTMLSelectElement,Py.HTMLInputElement="undefined"===typeof HTMLInputElement?{}:HTMLInputElement,Py.Node="undefined"===typeof Node?{}:Node,Py.MouseEvent="undefined"===typeof MouseEvent?{}:MouseEvent;var Ty,Dy=function(e,t){var o="function"===typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,n,i=o.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=i.next()).done)s.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(o=i["return"])&&o.call(i)}finally{if(n)throw n.error}}return s},Ay=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Dy(arguments[t]));return e},Ny=function(){function e(t,o,r,n,i,s){this.nextId=0,this.allNodesMap={},this.rootNode=t,this.gridOptionsWrapper=o,this.eventService=r,this.columnModel=n,this.beans=s,this.selectionService=i,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=e.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterAggFilter=[],this.rootNode.childrenAfterFilter=[],this.postConstruct()}return e.prototype.postConstruct=function(){this.suppressParentsInRowNodes=this.gridOptionsWrapper.isSuppressParentsInRowNodes(),this.isRowMasterFunc=this.gridOptionsWrapper.getIsRowMasterFunc(),this.doingTreeData=this.gridOptionsWrapper.isTreeData(),this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},e.prototype.getCopyOfNodesMap=function(){return yi.cloneObject(this.allNodesMap)},e.prototype.getRowNode=function(e){return this.allNodesMap[e]},e.prototype.setRowData=function(t){var o=this;if("string"!==typeof t){var r=this.rootNode,n=this.rootNode.sibling;r.childrenAfterFilter=null,r.childrenAfterGroup=null,r.childrenAfterAggFilter=null,r.childrenAfterSort=null,r.childrenMapped=null,r.updateHasChildren(),this.nextId=0,this.allNodesMap={},t?r.allLeafChildren=t.map((function(t){return o.createNode(t,o.rootNode,e.TOP_LEVEL)})):(r.allLeafChildren=[],r.childrenAfterGroup=[]),n&&(n.childrenAfterFilter=r.childrenAfterFilter,n.childrenAfterGroup=r.childrenAfterGroup,n.childrenAfterAggFilter=r.childrenAfterAggFilter,n.childrenAfterSort=r.childrenAfterSort,n.childrenMapped=r.childrenMapped,n.allLeafChildren=r.allLeafChildren)}else console.warn("AG Grid: rowData must be an array, however you passed in a string. If you are loading JSON, make sure you convert the JSON string to JavaScript objects first")},e.prototype.updateRowData=function(e,t){var o={remove:[],update:[],add:[]},r=[];return this.executeRemove(e,o,r),this.executeUpdate(e,o,r),this.executeAdd(e,o),this.updateSelection(r),t&&yi.sortRowNodesByOrder(this.rootNode.allLeafChildren,t),o},e.prototype.updateSelection=function(e){var t=e.length>0;if(t&&e.forEach((function(e){e.setSelected(!1,!1,!0)})),this.selectionService.updateGroupsFromChildrenSelections(),t){var o={type:lt.EVENT_SELECTION_CHANGED};this.eventService.dispatchEvent(o)}},e.prototype.executeAdd=function(t,o){var r=this,n=t.add,i=t.addIndex;if(!yi.missingOrEmpty(n)){var s,a,l=n.map((function(t){return r.createNode(t,r.rootNode,e.TOP_LEVEL)})),u="number"===typeof i&&i>=0;if(u){var p=this.rootNode.allLeafChildren,c=0===i?0:p.reduce((function(e,t,o){var r,n=t.rowIndex,s=null===(r=p[e])||void 0===r?void 0:r.rowIndex,a=null!=n&&null!=s&&n<i&&n>s;return a?o:e}),0)+1;s=p.slice(0,c),a=p.slice(c,p.length)}else s=this.rootNode.allLeafChildren,a=[];this.rootNode.allLeafChildren=Ay(s,l,a),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren),o.add=l}},e.prototype.executeRemove=function(e,t,o){var r=this,n=e.remove;if(!yi.missingOrEmpty(n)){var i={};n.forEach((function(e){var n=r.lookupRowNode(e);n&&(n.isSelected()&&o.push(n),n.clearRowTopAndRowIndex(),i[n.id]=!0,delete r.allNodesMap[n.id],t.remove.push(n))})),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter((function(e){return!i[e.id]})),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren)}},e.prototype.executeUpdate=function(t,o,r){var n=this,i=t.update;yi.missingOrEmpty(i)||i.forEach((function(t){var i=n.lookupRowNode(t);i&&(i.updateData(t),!i.selectable&&i.isSelected()&&r.push(i),n.setMasterForRow(i,t,e.TOP_LEVEL,!1),o.update.push(i))}))},e.prototype.lookupRowNode=function(e){var t,o=this.gridOptionsWrapper.getRowIdFunc();if(o){var r=o({data:e,level:0});if(t=this.allNodesMap[r],!t)return console.error("AG Grid: could not find row id="+r+", data item was not found for this id"),null}else if(t=this.rootNode.allLeafChildren.find((function(t){return t.data===e})),!t)return console.error("AG Grid: could not find data item as object was not found",e),console.error("Consider using getRowId to help the Grid find matching row data"),null;return t||null},e.prototype.createNode=function(e,t,o){var r=new Ta(this.beans);return r.group=!1,this.setMasterForRow(r,e,o,!0),t&&!this.suppressParentsInRowNodes&&(r.parent=t),r.level=o,r.setDataAndId(e,this.nextId.toString()),this.allNodesMap[r.id]&&console.warn("AG Grid: duplicate node id '"+r.id+"' detected from getRowId callback, this could cause issues in your grid."),this.allNodesMap[r.id]=r,this.nextId++,r},e.prototype.setMasterForRow=function(e,t,o,r){if(this.doingTreeData)e.setMaster(!1),r&&(e.expanded=!1);else if(this.doingMasterDetail?this.isRowMasterFunc?e.setMaster(this.isRowMasterFunc(t)):e.setMaster(!0):e.setMaster(!1),r){var n=this.columnModel.getRowGroupColumns(),i=n?n.length:0,s=o+i;e.expanded=!!e.master&&this.isExpanded(s)}},e.prototype.isExpanded=function(e){var t=this.gridOptionsWrapper.getGroupDefaultExpanded();return-1===t||e<t},e.TOP_LEVEL=0,e.ROOT_NODE_ID="ROOT_NODE_ID",e}(),Iy=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Gy=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s};(function(e){e[e["Normal"]=0]="Normal",e[e["AfterFilter"]=1]="AfterFilter",e[e["AfterFilterAndSort"]=2]="AfterFilterAndSort",e[e["PivotNodes"]=3]="PivotNodes"})(Ty||(Ty={}));var Fy,Ly=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onRowHeightChanged_debounced=yi.debounce(t.onRowHeightChanged.bind(t),100),t.rowsToDisplay=[],t}return Iy(t,e),t.prototype.init=function(){var e=this.refreshModel.bind(this,{step:Dc.EVERYTHING}),t=!this.gridOptionsWrapper.isSuppressAnimationFrame(),o=this.refreshModel.bind(this,{step:Dc.EVERYTHING,afterColumnsChanged:!0,keepRenderedRows:!0,animate:t});this.addManagedListener(this.eventService,lt.EVENT_NEW_COLUMNS_LOADED,o),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:Dc.PIVOT})),this.addManagedListener(this.eventService,lt.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,lt.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,lt.EVENT_COLUMN_PIVOT_MODE_CHANGED,e);var r=this.refreshModel.bind(this,{step:Dc.MAP,keepRenderedRows:!0,animate:t});this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_GROUP_REMOVE_SINGLE_CHILDREN,r),this.addManagedListener(this.gridOptionsWrapper,Vo.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,r),this.rootNode=new Ta(this.beans),this.nodeManager=new Ny(this.rootNode,this.gridOptionsWrapper,this.eventService,this.columnModel,this.selectionService,this.beans)},t.prototype.start=function(){var e=this.gridOptionsWrapper.getRowData();e&&this.setRowData(e)},t.prototype.ensureRowHeightsValid=function(e,t,o,r){var n,i=!1;do{n=!1;for(var s=this.getRowIndexAtPixel(e),a=this.getRowIndexAtPixel(t),l=Math.max(s,o),u=Math.min(a,r),p=l;p<=u;p++){var c=this.getRow(p);if(c.rowHeightEstimated){var d=this.gridOptionsWrapper.getRowHeightForNode(c);c.setRowHeight(d.height),n=!0,i=!0}}n&&this.setRowTopAndRowIndex()}while(n);return i},t.prototype.setRowTopAndRowIndex=function(){for(var e=this.gridOptionsWrapper.getDefaultRowHeight(),t=0,o=new Set,r=this.gridOptionsWrapper.getDomLayout()===fe.DOM_LAYOUT_NORMAL,n=0;n<this.rowsToDisplay.length;n++){var i=this.rowsToDisplay[n];if(null!=i.id&&o.add(i.id),null==i.rowHeight){var s=this.gridOptionsWrapper.getRowHeightForNode(i,r,e);i.setRowHeight(s.height,s.estimated)}i.setRowTop(t),i.setRowIndex(n),t+=i.rowHeight}return o},t.prototype.clearRowTopAndRowIndex=function(e,t){var o=e.isActive(),r=function(e){e&&null!=e.id&&!t.has(e.id)&&e.clearRowTopAndRowIndex()},n=function(e){if(r(e),r(e.detailNode),r(e.sibling),e.hasChildren()&&e.childrenAfterGroup){var t=-1==e.level,i=o&&!t&&!e.expanded;i||e.childrenAfterGroup.forEach(n)}};n(this.rootNode)},t.prototype.ensureRowsAtPixel=function(e,t,o){var r=this;void 0===o&&(o=0);var n=this.getRowIndexAtPixel(t),i=this.getRow(n),s=!this.gridOptionsWrapper.isSuppressAnimationFrame();return i!==e[0]&&(e.forEach((function(e){yi.removeFromArray(r.rootNode.allLeafChildren,e)})),e.forEach((function(e,t){yi.insertIntoArray(r.rootNode.allLeafChildren,e,Math.max(n+o,0)+t)})),this.refreshModel({step:Dc.EVERYTHING,keepRenderedRows:!0,keepEditingRows:!0,animate:s}),!0)},t.prototype.highlightRowAtPixel=function(e,t){var o=null!=t?this.getRowIndexAtPixel(t):null,r=null!=o?this.getRow(o):null;if(r&&e&&r!==e&&null!=t){var n=this.getHighlightPosition(t,r);this.lastHighlightedRow&&this.lastHighlightedRow!==r&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null),r.setHighlighted(n),this.lastHighlightedRow=r}else this.lastHighlightedRow&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null)},t.prototype.getHighlightPosition=function(e,t){if(!t){var o=this.getRowIndexAtPixel(e);if(t=this.getRow(o||0),!t)return fs.Below}var r=t.rowTop,n=t.rowHeight;return e-r<n/2?fs.Above:fs.Below},t.prototype.getLastHighlightedRowNode=function(){return this.lastHighlightedRow},t.prototype.isLastRowIndexKnown=function(){return!0},t.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},t.prototype.getTopLevelRowCount=function(){var e=this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode;if(e)return 1;var t=this.rootNode.childrenAfterAggFilter;return t?t.length:0},t.prototype.getTopLevelRowDisplayedIndex=function(e){var t=this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode;if(t)return e;var o=this.rootNode.childrenAfterSort[e];if(this.gridOptionsWrapper.isGroupHideOpenParents())while(o.expanded&&o.childrenAfterSort&&o.childrenAfterSort.length>0)o=o.childrenAfterSort[0];return o.rowIndex},t.prototype.getRowBounds=function(e){if(yi.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.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:Dc.MAP,keepRenderedRows:!0,animate:e})},t.prototype.onFilterChanged=function(e){if(!e.afterDataChange){var t=this.gridOptionsWrapper.isAnimateRows(),o=0===e.columns.length||e.columns.some((function(e){return e.isPrimary()})),r=o?Dc.FILTER:Dc.FILTER_AGGREGATES;this.refreshModel({step:r,keepRenderedRows:!0,animate:t})}},t.prototype.onSortChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:Dc.SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},t.prototype.getType=function(){return fe.ROW_MODEL_TYPE_CLIENT_SIDE},t.prototype.onValueChanged=function(){this.columnModel.isPivotActive()?this.refreshModel({step:Dc.PIVOT}):this.refreshModel({step:Dc.AGGREGATE})},t.prototype.createChangePath=function(e){var t=yi.missingOrEmpty(e),o=new Sh(!1,this.rootNode);return(t||this.gridOptionsWrapper.isTreeData())&&o.setInactive(),o},t.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(e){if(!this.gridOptionsWrapper.isSuppressModelUpdateAfterUpdateTransaction())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})),o=null==t||0==t.length;return o},t.prototype.refreshModel=function(e){if(!this.isSuppressModelUpdateAfterUpdateTransaction(e)){var t=this.createChangePath(e.rowNodeTransactions);switch(e.step){case Dc.EVERYTHING:this.doRowGrouping(e.groupState,e.rowNodeTransactions,e.rowNodeOrder,t,!!e.afterColumnsChanged);case Dc.FILTER:this.doFilter(t);case Dc.PIVOT:this.doPivot(t);case Dc.AGGREGATE:this.doAggregate(t);case Dc.FILTER_AGGREGATES:this.doFilterAggregates(t);case Dc.SORT:this.doSort(e.rowNodeTransactions,t);case Dc.MAP:this.doRowsToDisplay()}var o=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(t,o);var r={type:lt.EVENT_MODEL_UPDATED,animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1,keepUndoRedoStack:e.keepUndoRedoStack};this.eventService.dispatchEvent(r)}},t.prototype.isEmpty=function(){var e=yi.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length;return yi.missing(this.rootNode)||e||!this.columnModel.isReady()},t.prototype.isRowsToRender=function(){return yi.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},t.prototype.getNodesInRangeForSelection=function(e,t){var o,r=!t,n=!1,i=[],s=this.gridOptionsWrapper.isGroupSelectsChildren();return this.forEachNodeAfterFilterAndSort((function(a){var l=r&&!n;r||a!==t&&a!==e||(r=!0);var u=a.group&&s;if(!u){var p=r&&!n,c=a.isParentOfNode(o);(p||c)&&i.push(a)}l&&(a!==t&&a!==e||(n=!0,o=a===t?t:e))})),i},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,o=this.rowsToDisplay.length-1;if(e<=0)return 0;var r=yi.last(this.rowsToDisplay);if(r.rowTop<=e)return this.rowsToDisplay.length-1;var n=-1,i=-1;while(1){var s=Math.floor((t+o)/2),a=this.rowsToDisplay[s];if(this.isRowInPixel(a,e))return s;a.rowTop<e?t=s+1:a.rowTop>e&&(o=s-1);var l=n===t&&i===o;if(l)return s;n=t,i=o}},t.prototype.isRowInPixel=function(e,t){var o=e.rowTop,r=e.rowTop+e.rowHeight,n=o<=t&&r>t;return n},t.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach((function(t,o){return e(t,o)}))},t.prototype.forEachNode=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterGroup,e,Ty.Normal,0)},t.prototype.forEachNodeAfterFilter=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterAggFilter,e,Ty.AfterFilter,0)},t.prototype.forEachNodeAfterFilterAndSort=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,e,Ty.AfterFilterAndSort,0)},t.prototype.forEachPivotNode=function(e){this.recursivelyWalkNodesAndCallback([this.rootNode],e,Ty.PivotNodes,0)},t.prototype.recursivelyWalkNodesAndCallback=function(e,t,o,r){if(!e)return r;for(var n=0;n<e.length;n++){var i=e[n];if(t(i,r++),i.hasChildren()){var s=null;switch(o){case Ty.Normal:s=i.childrenAfterGroup;break;case Ty.AfterFilter:s=i.childrenAfterAggFilter;break;case Ty.AfterFilterAndSort:s=i.childrenAfterSort;break;case Ty.PivotNodes:s=i.leafGroup?null:i.childrenAfterSort;break}s&&(r=this.recursivelyWalkNodesAndCallback(s,t,o,r))}}return r},t.prototype.doAggregate=function(e){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.doFilterAggregates=function(e){this.filterAggregatesStage?this.filterAggregatesStage.execute({rowNode:this.rootNode,changedPath:e}):this.rootNode.childrenAfterAggFilter=this.rootNode.childrenAfterFilter},t.prototype.expandOrCollapseAll=function(e){var t=this.gridOptionsWrapper.isTreeData(),o=this.columnModel.isPivotActive(),r=function(n){n&&n.forEach((function(n){var i=function(){n.expanded=e,r(n.childrenAfterGroup)};if(t){var s=yi.exists(n.childrenAfterGroup);s&&i()}else if(o){var a=!n.leafGroup;a&&i()}else{var l=n.group;l&&i()}}))};this.rootNode&&r(this.rootNode.childrenAfterGroup),this.refreshModel({step:Dc.MAP});var n=e?"expandAll":"collapseAll",i={type:lt.EVENT_EXPAND_COLLAPSE_ALL,source:n};this.eventService.dispatchEvent(i)},t.prototype.doSort=function(e,t){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:t})},t.prototype.doRowGrouping=function(e,t,o,r,n){this.groupStage?(t?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransactions:t,rowNodeOrder:o,changedPath:r}):(this.groupStage.execute({rowNode:this.rootNode,changedPath:r,afterColumnsChanged:n}),this.restoreGroupState(e)),this.gridOptionsWrapper.isGroupSelectsChildren()&&this.selectionService.updateGroupsFromChildrenSelections(r)):(this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren,this.rootNode.sibling&&(this.rootNode.sibling.childrenAfterGroup=this.rootNode.childrenAfterGroup),this.rootNode.updateHasChildren())},t.prototype.restoreGroupState=function(e){e&&yi.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,o){"boolean"===typeof e[o]&&(t.expanded=e[o])}))},t.prototype.doFilter=function(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.doPivot=function(e){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsWrapper.isRememberGroupStateWhenNewData())return null;var e={};return yi.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,o){return e[o]=t.expanded})),e},t.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},t.prototype.getRowNode=function(e){var t="string"==typeof e&&0==e.indexOf(Ta.ID_PREFIX_ROW_GROUP);if(t){var o=void 0;return this.forEachNode((function(t){t.id===e&&(o=t)})),o}return this.nodeManager.getRowNode(e)},t.prototype.setRowData=function(e){var t=this.getGroupState();this.nodeManager.setRowData(e),this.selectionService.reset(),this.filterManager.onNewRowsLoaded("rowDataUpdated");var o={type:lt.EVENT_ROW_DATA_UPDATED};this.eventService.dispatchEvent(o),this.refreshModel({step:Dc.EVERYTHING,groupState:t,newData:!0})},t.prototype.batchUpdateRowData=function(e,t){var o=this;if(null==this.applyAsyncTransactionsTimeout){this.rowDataTransactionBatch=[];var r=this.gridOptionsWrapper.getAsyncTransactionWaitMillis();this.applyAsyncTransactionsTimeout=window.setTimeout((function(){o.executeBatchUpdateRowData()}),r)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:t})},t.prototype.flushAsyncTransactions=function(){null!=this.applyAsyncTransactionsTimeout&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())},t.prototype.executeBatchUpdateRowData=function(){var e=this;this.valueCache.onDataChanged();var t=[],o=[],r=!1;if(this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach((function(n){var i=e.nodeManager.updateRowData(n.rowDataTransaction,void 0);o.push(i),n.callback&&t.push(n.callback.bind(null,i)),"number"===typeof n.rowDataTransaction.addIndex&&(r=!0)})),this.commonUpdateRowData(o,void 0,r),t.length>0&&window.setTimeout((function(){t.forEach((function(e){return e()}))}),0),o.length>0){var n={type:lt.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:o};this.eventService.dispatchEvent(n)}this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0},t.prototype.updateRowData=function(e,t){this.valueCache.onDataChanged();var o=this.nodeManager.updateRowData(e,t),r="number"===typeof e.addIndex;return this.commonUpdateRowData([o],t,r),o},t.prototype.createRowNodeOrder=function(){var e=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder();if(!e){var t={};if(this.rootNode&&this.rootNode.allLeafChildren)for(var o=0;o<this.rootNode.allLeafChildren.length;o++){var r=this.rootNode.allLeafChildren[o];t[r.id]=o}return t}},t.prototype.commonUpdateRowData=function(e,t,o){var r=!this.gridOptionsWrapper.isSuppressAnimationFrame();o&&(t=this.createRowNodeOrder()),this.refreshModel({step:Dc.EVERYTHING,rowNodeTransactions:e,rowNodeOrder:t,keepRenderedRows:!0,keepEditingRows:!0,animate:r}),this.filterManager.onNewRowsLoaded("rowDataUpdated");var n={type:lt.EVENT_ROW_DATA_UPDATED};this.eventService.dispatchEvent(n)},t.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},t.prototype.onRowHeightChanged=function(){this.refreshModel({step:Dc.MAP,keepRenderedRows:!0,keepEditingRows:!0,keepUndoRedoStack:!0})},t.prototype.onRowHeightChangedDebounced=function(){this.onRowHeightChanged_debounced()},t.prototype.resetRowHeights=function(){var e=!1;this.forEachNode((function(t){t.setRowHeight(t.rowHeight,!0);var o=t.detailNode;o&&o.setRowHeight(o.rowHeight,!0),e=!0})),e&&this.onRowHeightChanged()},Gy([ne("columnModel")],t.prototype,"columnModel",void 0),Gy([ne("selectionService")],t.prototype,"selectionService",void 0),Gy([ne("filterManager")],t.prototype,"filterManager",void 0),Gy([ne("valueCache")],t.prototype,"valueCache",void 0),Gy([ne("beans")],t.prototype,"beans",void 0),Gy([ne("filterStage")],t.prototype,"filterStage",void 0),Gy([ne("sortStage")],t.prototype,"sortStage",void 0),Gy([ne("flattenStage")],t.prototype,"flattenStage",void 0),Gy([ie("groupStage")],t.prototype,"groupStage",void 0),Gy([ie("aggregationStage")],t.prototype,"aggregationStage",void 0),Gy([ie("pivotStage")],t.prototype,"pivotStage",void 0),Gy([ie("filterAggregatesStage")],t.prototype,"filterAggregatesStage",void 0),Gy([te],t.prototype,"init",null),t=Gy([re("rowModel")],t),t}(rt),My=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),xy=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Hy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return My(t,e),t.prototype.execute=function(e){var t=e.changedPath;this.filterService.filter(t)},xy([ne("filterService")],t.prototype,"filterService",void 0),t=xy([re("filterStage")],t),t}(rt),Vy=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Wy=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},ky=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vy(t,e),t.prototype.execute=function(e){var t=this,o=this.sortController.getSortOptions(),r=yi.exists(o)&&o.length>0,n=r&&yi.exists(e.rowNodeTransactions)&&this.gridOptionsWrapper.isDeltaSort(),i=o.some((function(e){return!!t.columnModel.getGroupDisplayColumnForGroup(e.column.getId())}));this.sortService.sort(o,r,n,e.rowNodeTransactions,e.changedPath,i)},Wy([ne("sortService")],t.prototype,"sortService",void 0),Wy([ne("sortController")],t.prototype,"sortController",void 0),Wy([ne("columnModel")],t.prototype,"columnModel",void 0),t=Wy([re("sortStage")],t),t}(rt),By=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),jy=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Uy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return By(t,e),t.prototype.execute=function(e){var t=e.rowNode,o=[],r={value:0},n=this.columnModel.isPivotMode(),i=n&&t.leafGroup,s=i?[t]:t.childrenAfterSort;this.recursivelyAddToRowsToDisplay(s,o,r,n,0);var a=o.length>0,l=!i&&a&&this.gridOptionsWrapper.isGroupIncludeTotalFooter();return l&&(this.ensureFooterNodeExists(t),this.addRowNodeToRowsToDisplay(t.sibling,o,r,0)),o},t.prototype.recursivelyAddToRowsToDisplay=function(e,t,o,r,n){if(!yi.missingOrEmpty(e))for(var i=this.gridOptionsWrapper.isGroupHideOpenParents(),s=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),a=!s&&this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),l=0;l<e.length;l++){var u=e[l],p=u.hasChildren(),c=r&&!p,d=s&&p&&1===u.childrenAfterGroup.length,h=a&&p&&u.leafGroup&&1===u.childrenAfterGroup.length,f=r&&u.leafGroup,g=i&&u.expanded&&!u.master&&!f,v=!c&&!g&&!d&&!h;if(v&&this.addRowNodeToRowsToDisplay(u,t,o,n),!r||!u.leafGroup)if(p){var y=d||h;if(u.expanded||y){var m=y?n:n+1;this.recursivelyAddToRowsToDisplay(u.childrenAfterSort,t,o,r,m),this.gridOptionsWrapper.isGroupIncludeFooter()&&(this.ensureFooterNodeExists(u),this.addRowNodeToRowsToDisplay(u.sibling,t,o,n))}}else if(u.master&&u.expanded){var C=this.createDetailNode(u);this.addRowNodeToRowsToDisplay(C,t,o,n)}}},t.prototype.addRowNodeToRowsToDisplay=function(e,t,o,r){var n=this.gridOptionsWrapper.isGroupMultiAutoColumn();t.push(e),e.setUiLevel(n?0:r)},t.prototype.ensureFooterNodeExists=function(e){if(!yi.exists(e.sibling)){var t=new Ta(this.beans);Object.keys(e).forEach((function(o){t[o]=e[o]})),t.footer=!0,t.setRowTop(null),t.setRowIndex(null),t.oldRowTop=null,yi.exists(t.id)&&(t.id="rowGroupFooter_"+t.id),t.sibling=e,e.sibling=t}},t.prototype.createDetailNode=function(e){if(yi.exists(e.detailNode))return e.detailNode;var t=new Ta(this.beans);return t.detail=!0,t.selectable=!1,t.parent=e,yi.exists(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1,e.detailNode=t,t},jy([ne("columnModel")],t.prototype,"columnModel",void 0),jy([ne("beans")],t.prototype,"beans",void 0),t=jy([re("flattenStage")],t),t}(rt),zy=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ky=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Yy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zy(t,e),t.prototype.init=function(){this.postSortFunc=this.gridOptionsWrapper.getPostSortFunc()},t.prototype.sort=function(e,t,o,r,n,i){var s=this,a=this.gridOptionsWrapper.isGroupMaintainOrder(),l=this.columnModel.getAllGridColumns().some((function(e){return e.isRowGroupActive()})),u={};o&&r&&(u=this.calculateDirtyNodes(r));var p=this.columnModel.isPivotMode(),c=function(r){s.pullDownGroupDataForHideOpenParents(r.childrenAfterAggFilter,!0);var c=p&&r.leafGroup,d=a&&l&&!r.leafGroup&&!i;if(!t||d||c){var h=r.childrenAfterAggFilter.slice(0);if(a&&r.childrenAfterSort){var f=r.childrenAfterSort.reduce((function(e,t,o){return e[t.id]=o,e}),{});h.sort((function(e,t){return(f[e.id]||0)-(f[t.id]||0)}))}r.childrenAfterSort=h}else r.childrenAfterSort=o?s.doDeltaSort(r,u,n,e):s.rowNodeSorter.doFullSort(r.childrenAfterAggFilter,e);if(r.sibling&&(r.sibling.childrenAfterSort=r.childrenAfterSort),s.updateChildIndexes(r),s.postSortFunc){var g={nodes:r.childrenAfterSort};s.postSortFunc(g)}};n&&n.forEachChangedNodeDepthFirst(c),this.updateGroupDataForHideOpenParents(n)},t.prototype.calculateDirtyNodes=function(e){var t={},o=function(e){e&&e.forEach((function(e){return t[e.id]=!0}))};return e&&e.forEach((function(e){o(e.add),o(e.update),o(e.remove)})),t},t.prototype.doDeltaSort=function(e,t,o,r){var n=this,i=e.childrenAfterAggFilter,s=e.childrenAfterSort;if(!s)return this.rowNodeSorter.doFullSort(i,r);var a={},l=[];i.forEach((function(e){t[e.id]||!o.canSkip(e)?l.push(e):a[e.id]=!0}));var u=s.filter((function(e){return a[e.id]})),p=function(e,t){return{currentPos:t,rowNode:e}},c=l.map(p).sort((function(e,t){return n.rowNodeSorter.compareRowNodes(r,e,t)}));return this.mergeSortedArrays(r,c,u.map(p)).map((function(e){var t=e.rowNode;return t}))},t.prototype.mergeSortedArrays=function(e,t,o){var r=[],n=0,i=0;while(n<t.length&&i<o.length){var s=this.rowNodeSorter.compareRowNodes(e,t[n],o[i]);s<0?r.push(t[n++]):r.push(o[i++])}while(n<t.length)r.push(t[n++]);while(i<o.length)r.push(o[i++]);return r},t.prototype.updateChildIndexes=function(e){if(!yi.missing(e.childrenAfterSort))for(var t=e.childrenAfterSort,o=0;o<t.length;o++){var r=t[o],n=0===o,i=o===e.childrenAfterSort.length-1;r.setFirstChild(n),r.setLastChild(i),r.setChildIndex(o)}},t.prototype.updateGroupDataForHideOpenParents=function(e){var t=this;if(this.gridOptionsWrapper.isGroupHideOpenParents()){if(this.gridOptionsWrapper.isTreeData()){var o="AG Grid: The property hideOpenParents dose not work with Tree Data. This is because Tree Data has values at the group level, it doesn't make sense to hide them (as opposed to Row Grouping, which only has Aggregated Values at the group level).";return yi.doOnce((function(){return console.warn(o)}),"sortService.hideOpenParentsWithTreeData"),!1}var r=function(e){t.pullDownGroupDataForHideOpenParents(e.childrenAfterSort,!1),e.childrenAfterSort.forEach((function(e){e.hasChildren()&&r(e)}))};e&&e.executeFromRootNode((function(e){return r(e)}))}},t.prototype.pullDownGroupDataForHideOpenParents=function(e,t){var o=this;this.gridOptionsWrapper.isGroupHideOpenParents()&&!yi.missing(e)&&e.forEach((function(e){var r=o.columnModel.getGroupDisplayColumns();r.forEach((function(r){var n=r.getColDef().showRowGroup;if("string"===typeof n){var i=n,s=o.columnModel.getPrimaryColumn(i),a=s===e.rowGroupColumn;if(!a)if(t)e.setGroupValue(r.getId(),void 0);else{var l=e.getFirstChildOfFirstChild(s);l&&e.setGroupValue(r.getId(),l.key)}}else console.error("AG Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup")}))}))},Ky([ne("columnModel")],t.prototype,"columnModel",void 0),Ky([ne("rowNodeSorter")],t.prototype,"rowNodeSorter",void 0),Ky([te],t.prototype,"init",null),t=Ky([re("sortService")],t),t}(rt),qy=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Xy=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Qy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qy(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 o=this,r=function(t,r){t.hasChildren()?t.childrenAfterFilter=e&&!r?t.childrenAfterGroup.filter((function(e){var t=e.childrenAfterFilter&&e.childrenAfterFilter.length>0,r=e.data&&o.filterManager.doesRowPassFilter({rowNode:e});return t||r})):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<e.childrenAfterGroup.length;i++){var s=e.childrenAfterGroup[i],a=t||o.filterManager.doesRowPassFilter({rowNode:s});s.childrenAfterGroup?n(e.childrenAfterGroup[i],a):r(s,a)}r(e,t)},i=function(e){return n(e,!1)};t.executeFromRootNode(i)}else{var s=function(e){return r(e,!1)};t.forEachChangedNodeDepthFirst(s,!0)}},t.prototype.doingTreeDataFiltering=function(){return this.gridOptionsWrapper.isTreeData()&&!this.gridOptionsWrapper.isExcludeChildrenWhenTreeDataFiltering()},Xy([ne("filterManager")],t.prototype,"filterManager",void 0),t=Xy([re("filterService")],t),t}(rt),Jy=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Zy=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},$y=function(e,t){var o="function"===typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,n,i=o.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=i.next()).done)s.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(o=i["return"])&&o.call(i)}finally{if(n)throw n.error}}return s},em=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Jy(t,e),t.prototype.postConstruct=function(){this.rowModel.getType()===fe.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},t.prototype.isActive=function(){return this.gridOptionsWrapper.isImmutableData()},t.prototype.setRowData=function(e){var t=this.createTransactionForRowData(e);if(t){var o=$y(t,2),r=o[0],n=o[1],i=this.clientSideRowModel.updateRowData(r,n);i&&this.rowRenderer.refreshFullWidthRows(i.update)}},t.prototype.createTransactionForRowData=function(e){if(yi.missing(this.clientSideRowModel))console.error("AG Grid: ImmutableService only works with ClientSideRowModel");else{var t=this.gridOptionsWrapper.getRowIdFunc();if(null!=t){var o={remove:[],update:[],add:[]},r=this.clientSideRowModel.getCopyOfNodesMap(),n=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder(),i=n?void 0:{};return yi.exists(e)&&e.forEach((function(e,n){var s=t({data:e,level:0}),a=r[s];if(i&&(i[s]=n),a){var l=a.data!==e;l&&o.update.push(e),r[s]=void 0}else o.add.push(e)})),yi.iterateObject(r,(function(e,t){t&&o.remove.push(t.data)})),[o,i]}console.error("AG Grid: ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!")}},Zy([ne("rowModel")],t.prototype,"rowModel",void 0),Zy([ne("rowRenderer")],t.prototype,"rowRenderer",void 0),Zy([ne("columnApi")],t.prototype,"columnApi",void 0),Zy([ne("gridApi")],t.prototype,"gridApi",void 0),Zy([ne("filterManager")],t.prototype,"filterManager",void 0),Zy([te],t.prototype,"postConstruct",null),t=Zy([re("immutableService")],t),t}(rt),tm={moduleName:ue.ClientSideRowModelModule,beans:[Hy,ky,Uy,Yy,Qy,em],rowModels:{clientSide:Ly}},om=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),rm=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},nm=function(e){function t(t,o,r){var n=e.call(this,t)||this;return n.parentCache=o,n.params=r,n.startRow=t*r.blockSize,n.endRow=n.startRow+r.blockSize,n}return om(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,o){!e.id&&e.alreadyRendered&&(e.alreadyRendered=!1),yi.exists(t)?e.setDataAndId(t,o.toString()):e.setDataAndId(void 0,void 0)},t.prototype.loadFromDatasource=function(){var e=this,t=this.createLoadParams();yi.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(){var e={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.gridOptionsWrapper.getContext()};return e},t.prototype.forEachNode=function(e,t,o){var r=this;this.rowNodes.forEach((function(n,i){var s=r.startRow+i;s<o&&e(n,t.next())}))},t.prototype.getLastAccessed=function(){return this.lastAccessed},t.prototype.getRow=function(e,t){void 0===t&&(t=!1),t||(this.lastAccessed=this.params.lastAccessedSequence.next());var o=e-this.startRow;return this.rowNodes[o]},t.prototype.getStartRow=function(){return this.startRow},t.prototype.getEndRow=function(){return this.endRow},t.prototype.createRowNodes=function(){this.rowNodes=[];for(var e=0;e<this.params.blockSize;e++){var t=this.startRow+e,o=new Ta(this.beans);o.setRowHeight(this.params.rowHeight),o.uiLevel=0,o.setRowIndex(t),o.setRowTop(this.params.rowHeight*t),this.rowNodes.push(o)}},t.prototype.processServerResult=function(e){var t=this;this.rowNodes.forEach((function(o,r){var n=e.rowData?e.rowData[r]:void 0;t.setDataAndId(o,n,t.startRow+r)}));var o=null!=e.rowCount&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,o)},t.prototype.destroyRowNodes=function(){this.rowNodes.forEach((function(e){e.clearRowTopAndRowIndex()}))},rm([ne("beans")],t.prototype,"beans",void 0),rm([te],t.prototype,"postConstruct",null),rm([oe],t.prototype,"destroyRowNodes",null),t}(bh),im=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),sm=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},am=function(e,t){return function(o,r){t(o,r,e)}},lm=function(e){function t(t){var o=e.call(this)||this;return o.lastRowIndexKnown=!1,o.blocks={},o.blockCount=0,o.rowCount=t.initialRowCount,o.params=t,o}return im(t,e),t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.getRow=function(e,t){void 0===t&&(t=!1);var o=Math.floor(e/this.params.blockSize),r=this.blocks[o];if(!r){if(t)return;r=this.createBlock(o)}return r.getRow(e)},t.prototype.createBlock=function(e){var t=this.createBean(new nm(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(){var e=0==this.blockCount;e?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 o=this,r=this.getBlocksInOrder().filter((function(t){return t!=e})),n=function(e,t){return t.getLastAccessed()-e.getLastAccessed()};r.sort(n);var i=this.params.maxBlocksInCache>0,s=i?this.params.maxBlocksInCache-1:null,a=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;r.forEach((function(e,t){var r=e.getState()===nm.STATE_WAITING_TO_LOAD&&t>=a,n=!!i&&t>=s;if(r||n){if(o.isBlockCurrentlyDisplayed(e))return;if(o.isBlockFocused(e))return;o.removeBlockFromCache(e)}}))},t.prototype.isBlockFocused=function(e){var t=this.focusService.getFocusCellToUseAfterRefresh();if(!t)return!1;if(null!=t.rowPinned)return!1;var o=e.getStartRow(),r=e.getEndRow(),n=t.rowIndex>=o&&t.rowIndex<r;return n},t.prototype.isBlockCurrentlyDisplayed=function(e){var t=e.getStartRow(),o=e.getEndRow()-1;return this.rowRenderer.isRangeInRenderedViewport(t,o)},t.prototype.removeBlockFromCache=function(e){e&&this.destroyBlock(e)},t.prototype.checkRowCount=function(e,t){if("number"===typeof t&&t>=0)this.rowCount=t,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){var o=(e.getId()+1)*this.params.blockSize,r=o+this.params.overflowSize;this.rowCount<r&&(this.rowCount=r)}},t.prototype.setRowCount=function(e,t){this.rowCount=e,yi.exists(t)&&(this.lastRowIndexKnown=t),this.lastRowIndexKnown||this.rowCount%this.params.blockSize===0&&this.rowCount++,this.onCacheUpdated()},t.prototype.forEachNodeDeep=function(e){var t=this,o=new mi;this.getBlocksInOrder().forEach((function(r){return r.forEachNode(e,o,t.rowCount)}))},t.prototype.getBlocksInOrder=function(){var e=function(e,t){return e.getId()-t.getId()},t=yi.getAllValuesInObject(this.blocks).sort(e);return t},t.prototype.destroyBlock=function(e){delete this.blocks[e.getId()],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)},t.prototype.onCacheUpdated=function(){if(this.isAlive()){this.destroyAllBlocksPastVirtualRowCount();var e={type:lt.EVENT_STORE_UPDATED};this.eventService.dispatchEvent(e)}},t.prototype.destroyAllBlocksPastVirtualRowCount=function(){var e=this,t=[];this.getBlocksInOrder().forEach((function(o){var r=o.getId()*e.params.blockSize;r>=e.rowCount&&t.push(o)})),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 o=this,r=[],n=-1,i=!1,s=new mi;yi.missing(e)&&(i=!0);var a=!1;this.getBlocksInOrder().forEach((function(l){a||(i&&n+1!==l.getId()?a=!0:(n=l.getId(),l.forEachNode((function(o){var n=o===e||o===t;(i||n)&&r.push(o),n&&(i=!i)}),s,o.rowCount)))}));var l=a||i;return l?[]:r},t.MAX_EMPTY_BLOCKS_TO_KEEP=2,sm([ne("rowRenderer")],t.prototype,"rowRenderer",void 0),sm([ne("focusService")],t.prototype,"focusService",void 0),sm([am(0,ae("loggerFactory"))],t.prototype,"setBeans",null),sm([oe],t.prototype,"destroyAllBlocks",null),t}(rt),um=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),pm=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},cm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return um(t,e),t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.ensureRowHeightsValid=function(e,t,o,r){return!1},t.prototype.init=function(){var e=this;this.gridOptionsWrapper.isRowModelInfinite()&&(this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.addEventListeners(),this.addDestroyFunc((function(){return e.destroyCache()})),this.verifyProps())},t.prototype.verifyProps=function(){if(null!=this.gridOptionsWrapper.getInitialGroupOrderComparator()){var e="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.";yi.doOnce((function(){return console.warn(e)}),"IRM.InitialGroupOrderComparator")}},t.prototype.start=function(){this.setDatasource(this.gridOptionsWrapper.getDatasource())},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,lt.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,lt.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,lt.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverything.bind(this)),this.addManagedListener(this.eventService,lt.EVENT_STORE_UPDATED,this.onCacheUpdated.bind(this))},t.prototype.onFilterChanged=function(){this.reset()},t.prototype.onSortChanged=function(){this.reset()},t.prototype.onColumnEverything=function(){var e;e=!this.cacheParams||this.isSortModelDifferent(),e&&this.reset()},t.prototype.isSortModelDifferent=function(){return!yi.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return fe.ROW_MODEL_TYPE_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){var e=this.gridOptionsWrapper.getRowIdFunc(),t=null!=e;t||this.selectionService.reset(),this.resetCache();var o=this.createModelUpdatedEvent();this.eventService.dispatchEvent(o)}},t.prototype.createModelUpdatedEvent=function(){return{type:lt.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.gridOptionsWrapper.getInfiniteInitialRowCount(),1),maxBlocksInCache:this.gridOptionsWrapper.getMaxBlocksInCache(),rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),overflowSize:this.defaultIfInvalid(this.gridOptionsWrapper.getCacheOverflowSize(),1),blockSize:this.defaultIfInvalid(this.gridOptionsWrapper.getCacheBlockSize(),100),lastAccessedSequence:new mi},this.infiniteCache=this.createBean(new lm(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(o){o.id===e&&(t=o)})),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),o=this.getRowCount()-1;return t>o?o:t}return 0},t.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getRowCount():0},t.prototype.isRowPresent=function(e){var t=this.getRowNode(e.id);return!!t},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)},pm([ne("filterManager")],t.prototype,"filterManager",void 0),pm([ne("sortController")],t.prototype,"sortController",void 0),pm([ne("selectionService")],t.prototype,"selectionService",void 0),pm([ne("rowRenderer")],t.prototype,"rowRenderer",void 0),pm([ne("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),pm([te],t.prototype,"init",null),pm([oe],t.prototype,"destroyDatasource",null),t=pm([re("rowModel")],t),t}(rt),dm={moduleName:ue.InfiniteRowModelModule,rowModels:{infinite:cm}},hm=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),o=this.beans.gridSerializer.serialize(t,e);return o},e}(),fm=function(){function e(e){this.groupColumns=[];var t=e.columnModel,o=e.valueService,r=e.gridOptionsWrapper,n=e.processCellCallback,i=e.processHeaderCallback,s=e.processGroupHeaderCallback,a=e.processRowGroupCallback;this.columnModel=t,this.valueService=o,this.gridOptionsWrapper=r,this.processCellCallback=n,this.processHeaderCallback=i,this.processGroupHeaderCallback=s,this.processRowGroupCallback=a}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,o,r,n){var i=this.gridOptionsWrapper.isGroupHideOpenParents(),s=!i&&this.shouldRenderGroupSummaryCell(n,e,t)?this.createValueForGroupNode(n):this.valueService.getValue(e,n),a=this.processCell({accumulatedRowIndex:o,rowNode:n,column:e,value:s,processCellCallback:this.processCellCallback,type:r});return null!=a?a:""},e.prototype.shouldRenderGroupSummaryCell=function(e,t,o){var r,n=e&&e.group;if(!n)return!1;var i=this.groupColumns.indexOf(t);if(-1!==i&&(null===(r=e.groupData)||void 0===r?void 0:r[t.getId()]))return!0;var s=this.gridOptionsWrapper.isGroupUseEntireRow(this.columnModel.isPivotMode());return 0===o&&s},e.prototype.getHeaderName=function(e,t){return e?e({column:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):this.columnModel.getDisplayNameForColumn(t,"csv",!0)},e.prototype.createValueForGroupNode=function(e){if(this.processRowGroupCallback)return this.processRowGroupCallback({node:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()});var t=[e.key];if(!this.gridOptionsWrapper.isGroupMultiAutoColumn())while(e.parent)e=e.parent,t.push(e.key);return t.reverse().join(" -> ")},e.prototype.processCell=function(e){var t=e.accumulatedRowIndex,o=e.rowNode,r=e.column,n=e.value,i=e.processCellCallback,s=e.type;return i?i({accumulatedRowIndex:t,column:r,node:o,value:n,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:s}):null!=n?n:""},e}(),gm=function(){function e(){}return e.download=function(e,t){var o=document.defaultView||window;if(o){var r=document.createElement("a"),n=o.URL.createObjectURL(t);r.setAttribute("href",n),r.setAttribute("download",e),r.style.display="none",document.body.appendChild(r),r.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:o})),document.body.removeChild(r),o.setTimeout((function(){o.URL.revokeObjectURL(n)}),0)}else console.warn("AG Grid: There is no `window` associated with the current `document`")},e}(),vm=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ym="\r\n",mm=function(e){function t(t){var o=e.call(this,t)||this;o.isFirstLine=!0,o.result="";var r=t.suppressQuotes,n=t.columnSeparator;return o.suppressQuotes=r,o.columnSeparator=n,o}return vm(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,ym),this.result+=e):e.forEach((function(e){t.beginNewLine(),e.forEach((function(e,o){0!==o&&(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,o,r){0!=o&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(t),this.appendEmptyCells(r)},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,o){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(e,t,t,fe.EXPORT_TYPE_CSV,o))},t.prototype.putInQuotes=function(e){if(this.suppressQuotes)return e;if(null===e||void 0===e)return'""';var t;"string"===typeof e?t=e:"function"===typeof e.toString?t=e.toString():(console.warn("AG Grid: unknown value type during csv conversion"),t="");var o=t.replace(/"/g,'""');return'"'+o+'"'},t.prototype.parse=function(){return this.result},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+=ym),this.isFirstLine=!1},t}(fm),Cm=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),wm=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},Em=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Cm(t,e),t.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},t.prototype.getMergedParams=function(e){var t=this.gridOptionsWrapper.getDefaultExportParams("csv");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),o=this.getData(t),r=new Blob(["\ufeff",o],{type:"text/plain"});return gm.download(this.getFileName(t.fileName),r),o},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e,t){void 0===t&&(t=!1);var o=t?Object.assign({},e):this.getMergedParams(e);return this.getData(o)},t.prototype.getDefaultFileName=function(){return"export.csv"},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var t=this,o=t.columnModel,r=t.valueService,n=t.gridOptionsWrapper,i=e,s=i.processCellCallback,a=i.processHeaderCallback,l=i.processGroupHeaderCallback,u=i.processRowGroupCallback,p=i.suppressQuotes,c=i.columnSeparator;return new mm({columnModel:o,valueService:r,gridOptionsWrapper:n,processCellCallback:s||void 0,processHeaderCallback:a||void 0,processGroupHeaderCallback:l||void 0,processRowGroupCallback:u||void 0,suppressQuotes:p||!1,columnSeparator:c||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},wm([ne("columnModel")],t.prototype,"columnModel",void 0),wm([ne("valueService")],t.prototype,"valueService",void 0),wm([ne("gridSerializer")],t.prototype,"gridSerializer",void 0),wm([ne("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),wm([te],t.prototype,"postConstruct",null),t=wm([re("csvCreator")],t),t}(hm),Rm=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},e(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Om=function(e,t,o,r){var n,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,o,s):n(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s};(function(e){e[e["HEADER_GROUPING"]=0]="HEADER_GROUPING",e[e["HEADER"]=1]="HEADER",e[e["BODY"]=2]="BODY"})(Fy||(Fy={}));var Sm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Rm(t,e),t.prototype.serialize=function(e,t){void 0===t&&(t={});var o=this.getColumnsToExport(t.allColumns,t.columnKeys),r=yi.compose(this.prepareSession(o),this.prependContent(t),this.exportColumnGroups(t,o),this.exportHeaders(t,o),this.processPinnedTopRows(t,o),this.processRows(t,o),this.processPinnedBottomRows(t,o),this.appendContent(t));return r(e).parse()},t.prototype.processRow=function(e,t,o,r){var n=t.shouldRowBeSkipped||function(){return!1},i=this.gridOptionsWrapper,s=i.getContext(),a=i.getApi(),l=i.getColumnApi(),u=i.isGroupRemoveSingleChildren(),p=i.isGroupRemoveLowestSingleChildren(),c=null!=t.rowPositions,d=c||!!t.onlySelected,h=i.isGroupHideOpenParents()&&!d,f=this.columnModel.isPivotMode()?r.leafGroup:!r.group,g=t.skipGroups||t.skipRowGroups,v=p&&r.leafGroup,y=1===r.allChildrenCount&&(u||v);if(g&&t.skipGroups&&yi.doOnce((function(){return console.warn("AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.")}),"gridSerializer-skipGroups"),!(!f&&(t.skipRowGroups||y||h)||t.onlySelected&&!r.isSelected()||t.skipPinnedTop&&"top"===r.rowPinned||t.skipPinnedBottom&&"bottom"===r.rowPinned)){var m=-1===r.level;if(!m||r.leafGroup||r.footer&&c){var C=n({node:r,api:a,columnApi:l,context:s});if(!C){var w=e.onNewBodyRow();if(o.forEach((function(e,t){w.onColumn(e,t,r)})),t.getCustomContentBelowRow){var E=t.getCustomContentBelowRow({node:r,api:a,columnApi:l,context:s});E&&e.addCustomContent(E)}}}}},t.prototype.appendContent=function(e){return function(t){var o=e.customFooter||e.appendContent;return o&&(e.customFooter&&yi.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(o)),t}},t.prototype.prependContent=function(e){return function(t){var o=e.customHeader||e.prependContent;return o&&(e.customHeader&&yi.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(o)),t}},t.prototype.prepareSession=function(e){return function(t){return t.prepare(e),t}},t.prototype.exportColumnGroups=function(e,t){var o=this;return function(r){if(e.skipColumnGroupHeaders)e.columnGroups&&yi.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 ut,i=o.displayedGroupCreator.createDisplayedGroups(t,o.columnModel.getGridBalancedTree(),n,null);o.recursivelyAddHeaderGroups(i,r,e.processGroupHeaderCallback)}return r}},t.prototype.exportHeaders=function(e,t){return function(o){if(e.skipHeader||e.skipColumnHeaders)e.skipHeader&&yi.doOnce((function(){return console.warn("AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.")}),"gridSerializer-skipHeader");else{var r=o.onNewHeaderRow();t.forEach((function(e,t){r.onColumn(e,t,void 0)}))}return o}},t.prototype.processPinnedTopRows=function(e,t){var o=this;return function(r){var n=o.processRow.bind(o,r,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 o.pinnedRowModel.getPinnedTopRow(e.rowIndex)})).forEach(n):o.pinnedRowModel.forEachPinnedTopRow(n),r}},t.prototype.processRows=function(e,t){var o=this;return function(r){var n=o.rowModel,i=n.getType(),s=i===fe.ROW_MODEL_TYPE_CLIENT_SIDE,a=i===fe.ROW_MODEL_TYPE_SERVER_SIDE,l=!s&&e.onlySelected,u=o.processRow.bind(o,r,e,t),p=e.exportedRows,c=void 0===p?"filteredAndSorted":p;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(u);else if(o.columnModel.isPivotMode())s?n.forEachPivotNode(u):n.forEachNode(u);else if(e.onlySelectedAllPages||l){var d=o.selectionService.getSelectedNodes();d.forEach(u)}else"all"===c?n.forEachNode(u):s||a?n.forEachNodeAfterFilterAndSort(u):n.forEachNode(u);return r}},t.prototype.processPinnedBottomRows=function(e,t){var o=this;return function(r){var n=o.processRow.bind(o,r,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 o.pinnedRowModel.getPinnedBottomRow(e.rowIndex)})).forEach(n):o.pinnedRowModel.forEachPinnedBottomRow(n),r}},t.prototype.getColumnsToExport=function(e,t){void 0===e&&(e=!1);var o=this.columnModel.isPivotMode();if(t&&t.length)return this.columnModel.getGridColumns(t);if(e&&!o){var r=this.gridOptionsWrapper.isTreeData()?this.columnModel.getGridColumns([fe.GROUP_AUTO_COLUMN_ID]):[];return r.concat(this.columnModel.getAllPrimaryColumns()||[])}return this.columnModel.getAllDisplayedColumns()},t.prototype.recursivelyAddHeaderGroups=function(e,t,o){var r=[];e.forEach((function(e){var t=e;t.getChildren&&t.getChildren().forEach((function(e){return r.push(e)}))})),e.length>0&&e[0]instanceof Ve&&this.doAddHeaderHeader(t,e,o),r&&r.length>0&&this.recursivelyAddHeaderGroups(r,t,o)},t.prototype.doAddHeaderHeader=function(e,t,o){var r=this,n=e.onNewHeaderGroupingRow(),i=0;t.forEach((function(e){var t,s=e;t=o?o({columnGroup:s,api:r.gridOptionsWrapper.getApi(),columnApi:r.gridOptionsWrapper.getColumnApi(),context:r.gridOptionsWrapper.getContext()}):r.columnModel.getDisplayNameForColumnGroup(s,"header");var a=s.getLeafColumns().reduce((function(e,t,o,r){var n=yi.last(e),i="open"===t.getColumnGroupShow();return i?n&&null==n[1]||(n=[o],e.push(n)):n&&null==n[1]&&(n[1]=o-1),o===r.length-1&&n&&null==n[1]&&(n[1]=o),e}),[]);n.onColumn(s,t||"",i++,s.getLeafColumns().length-1,a)}))},Om([ne("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),Om([ne("columnModel")],t.prototype,"columnModel",void 0),Om([ne("rowModel")],t.prototype,"rowModel",void 0),Om([ne("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Om([ne("selectionService")],t.prototype,"selectionService",void 0),Om([ne("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),t=Om([re("gridSerializer")],t),t}(rt),_m={moduleName:ue.CsvExportModule,beans:[Em,Sm]},bm="\r\n",Pm=(function(){function e(){}e.createHeader=function(e){void 0===e&&(e={});var t="<?",o="?>",r=["version"];e.version||(e.version="1.0"),e.encoding&&r.push("encoding"),e.standalone&&r.push("standalone");var n=r.map((function(t){return t+'="'+e[t]+'"'})).join(" ");return t+"xml "+n+" "+o},e.createXml=function(e,t){var o=this,r="";e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEach((function(e){Object.keys(e.map).forEach((function(n){r+=o.returnAttributeIfPopulated(e.prefix+n,e.map[n],t)}))})),e.properties.rawMap&&Object.keys(e.properties.rawMap).forEach((function(n){r+=o.returnAttributeIfPopulated(n,e.properties.rawMap[n],t)})));var n="<"+e.name+r;return e.children||null!=e.textNode?null!=e.textNode?n+">"+e.textNode+"</"+e.name+">"+bm:(n+=">"+bm,e.children&&e.children.forEach((function(e){n+=o.createXml(e,t)})),n+"</"+e.name+">"+bm):n+"/>"+bm},e.returnAttributeIfPopulated=function(e,t,o){if(!t&&""!==t&&0!==t)return"";var r=t;return"boolean"===typeof t&&o&&(r=o(t))," "+e+'="'+r+'"'}}(),function(e){var t="function"===typeof Symbol&&Symbol.iterator,o=t&&e[t],r=0;if(o)return o.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),Tm=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]),Dm=(function(){function e(){}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,o){void 0===o&&(o=!1),this.files.push({path:e,created:new Date,content:t,isBase64:o})},e.getContent=function(e){void 0===e&&(e="application/zip");var t=this.buildFileStream(),o=this.buildUint8Array(t);return this.clearStream(),new Blob([o],{type:e})},e.clearStream=function(){this.folders=[],this.files=[]},e.buildFileStream=function(e){var t,o;void 0===e&&(e="");var r=this.folders.concat(this.files),n=r.length,i="",s=0,a=0;try{for(var l=Pm(r),u=l.next();!u.done;u=l.next()){var p=u.value,c=this.getHeader(p,s),d=c.fileHeader,h=c.folderHeader,f=c.content;s+=d.length+f.length,a+=h.length,e+=d+f,i+=h}}catch(v){t={error:v}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(t)throw t.error}}var g=this.buildFolderEnd(n,a,s);return e+i+g},e.getHeader=function(e,t){var o=e.content,r=e.path,n=e.created,i=e.isBase64,s=yi.utf8_encode,a=yi.decToHex,l=s(r),u=l!==r,p=this.convertTime(n),c=this.convertDate(n),d="";if(u){var h=a(1,1)+a(this.getFromCrc32Table(l),4)+l;d="up"+a(h.length,2)+h}var f=o?this.getConvertedContent(o,i):{size:0,content:""},g=f.size,v=f.content,y="\n\0"+(u?"\0\b":"\0\0")+"\0\0"+a(p,2)+a(c,2)+a(g?this.getFromCrc32Table(v):0,4)+a(g,4)+a(g,4)+a(l.length,2)+a(d.length,2),m="PK"+y+l+d,C="PK\0"+y+"\0\0\0\0\0\0"+(o?"\0\0\0\0":"\0\0\0")+a(t,4)+l+d;return{fileHeader:m,folderHeader:C,content:v||""}},e.getConvertedContent=function(e,t){return void 0===t&&(t=!1),t&&(e=e.split(";base64,")[1]),e=t?atob(e):e,{size:e.length,content:e}},e.buildFolderEnd=function(e,t,o){var r=yi.decToHex;return"PK\0\0\0\0"+r(e,2)+r(e,2)+r(t,4)+r(o,4)+"\0\0"},e.buildUint8Array=function(e){for(var t=new Uint8Array(e.length),o=0;o<t.length;o++)t[o]=e.charCodeAt(o);return t},e.getFromCrc32Table=function(e){if(!e.length)return 0;for(var t=e.length,o=new Uint8Array(t),r=0;r<t;r++)o[r]=e.charCodeAt(r);var n=-1,i=0,s=0,a=0;for(r=0;r<t;r++)i=o[r],s=255&(n^i),a=Tm[s],n=n>>>8^a;return-1^n},e.convertTime=function(e){var t=e.getHours();return t<<=6,t|=e.getMinutes(),t<<=5,t|=e.getSeconds()/2,t},e.convertDate=function(e){var t=e.getFullYear()-1980;return t<<=4,t|=e.getMonth()+1,t<<=5,t|=e.getDate(),t},e.folders=[],e.files=[]}(),[tm,dm,_m]);ge.registerModules(Dm)}).call(this,o("c8ba"))},"401b":function(e,t,o){"use strict";function r(e){for(var o in e)t.hasOwnProperty(o)||(t[o]=e[o])}Object.defineProperty(t,"__esModule",{value:!0}),r(o("1283"))}}]); //# sourceMappingURL=chunk-1edd9110.bc00ce5a.js.map
Copyright ©2k19 -
Hexid
|
Tex7ure